summaryrefslogtreecommitdiff
path: root/core/builtins.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 04:16:41 -0300
committerGabriel Schneider <[email protected]>2026-11-20 04:16:41 -0300
commit5b7124d10f9b2db8d1c5e99eacb9b6d2fffff0cc (patch)
treedc50936490ad8636f5431da30ec3aaa38339c936 /core/builtins.zig
parent6e8735895d04c0073eb28cc1a2f431a2ba587e9d (diff)
parent8fb080c6208bccf9ef12eca630b0534312ae5fe7 (diff)
downloadpardes-5b7124d10f9b2db8d1c5e99eacb9b6d2fffff0cc.tar.gz
pardes-5b7124d10f9b2db8d1c5e99eacb9b6d2fffff0cc.zip
integration: the core's calls out to the host go through the tape's handle, on the devices once and the attach that is always a client: pardes-handle-6 (6a, 6b, 6c, 8a: p.tape.host(p, .name, .{ args }) derived from the Host table; Wrap, hostOf and wrap deleted; no line of core/ outside the tape names the host's table, held by root.zig's scan; the tape's bytes unmoved) and pardes-merge30, merged without a textual conflict; tui core-test 857/1008 (151 skipped), shell-test 1048/1051, the window builds; the coordinator's gate in the ledger (reorg/merge31)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/builtins.zig')
-rw-r--r--core/builtins.zig6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/builtins.zig b/core/builtins.zig
index 2740e05a..39c06206 100644
--- a/core/builtins.zig
+++ b/core/builtins.zig
@@ -547,8 +547,7 @@ pub const Adopt = struct {
pub const scope: Scope = .session;
pub const enabled = pardes.can_attach;
pub fn run(c: Ctx) void {
- const adopt = c.p.host.vtable.adopt orelse return c.p.reportFailure(c.id, "Adopt: no pardes daemon is keeping shells for this session");
- adopt(c.p.host.ctx, .at(c.id));
+ c.p.tape.host(c.p, .adopt, .{.at(c.id)}) orelse c.p.reportFailure(c.id, "Adopt: no pardes daemon is keeping shells for this session");
}
};
@@ -559,8 +558,7 @@ pub const Upgrade = struct {
pub const scope: Scope = .session;
pub const enabled = pardes.can_attach;
pub fn run(c: Ctx) void {
- const upgrade = c.p.host.vtable.upgrade orelse return c.p.reportFailure(c.id, "Upgrade: this pardes cannot move to another build in place");
- upgrade(c.p.host.ctx, .at(c.id));
+ c.p.tape.host(c.p, .upgrade, .{.at(c.id)}) orelse c.p.reportFailure(c.id, "Upgrade: this pardes cannot move to another build in place");
}
};