diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 00:30:35 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 01:12:53 -0300 |
| commit | 2bbcc0a9aca11a418b8e51fd5d3158f2bc632d4b (patch) | |
| tree | beff90286c8cbccab11bcf3037037a75a0aca48a /core/builtins.zig | |
| parent | 3a3601f984d25f1e03cee3ac47da7eeb2548e511 (diff) | |
| download | pardes-2bbcc0a9aca11a418b8e51fd5d3158f2bc632d4b.tar.gz pardes-2bbcc0a9aca11a418b8e51fd5d3158f2bc632d4b.zip | |
tape: the calls out to the host by the Host table's own names, step 6a (the design of reports/pardes-handle-69-design.md, P33): Host gains what a call names, gives and gets, derived from its table (Fn, Args, Ret, has, mask, call), the tape one method, p.tape.host(p, .tty_taken, .{.at(id)}), whose absent arm is the caller's after orelse, and the 7 calls made straight on the table (hostForegroundName, hostTtyTaken, hostKillJob, Adopt, Upgrade, clockNow, askAhead) go through it; hostCall is the one body (the wrappers forward to it until 6c deletes them), its text in place; the tape's bytes do not move (semantics 32640d4a722b811c unmoved, cross_replay both ways)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/builtins.zig')
| -rw-r--r-- | core/builtins.zig | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/builtins.zig b/core/builtins.zig index a7340352..7122cd02 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"); } }; |
