summaryrefslogtreecommitdiff
path: root/core/tape.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/tape.zig')
-rw-r--r--core/tape.zig8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/tape.zig b/core/tape.zig
index 0f0678d0..ce94f4ae 100644
--- a/core/tape.zig
+++ b/core/tape.zig
@@ -98,6 +98,9 @@ pub const Site = enum(u16) {
search,
/// The daemon's registry, as /sessions reads it (daemon.ask "list").
sessions,
+ /// Whether a shell is installed (host_io.Shell.refusal): the session's
+ /// disk, asked as any file is.
+ shell,
// Read in place (`value`).
clock,
budget,
@@ -105,9 +108,7 @@ pub const Site = enum(u16) {
env,
interpreter,
denied,
- shell,
mtime,
- cwd,
/// What a terminal's ingest told the positions pardes keeps over it.
positions,
/// Whether a terminal is at its prompt, as a step reads it after its
@@ -163,8 +164,9 @@ fn ErrorOf(comptime f: anytype) type {
}
/// Every type the tape carries, as walk.shape says it: wire.semantics's.
+/// The sites too: a record names one by its number.
pub const shape = blk: {
- var types: []const type = &.{ Input, []const u64, struct { u8, u64 } };
+ var types: []const type = &.{ Input, Site, []const u64, struct { u8, u64 } };
for (results) |R| types = types ++ .{R};
for (host_fns) |f| types = types ++ .{@typeInfo(@typeInfo(@typeInfo(@FieldType(VTable, f)).optional.child).pointer.child).@"fn".return_type.?};
for (watched) |name| types = types ++ .{Watched(name)};