@fungi.computer/oyster 0.31.1 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ /** Built-in skill files, paths relative to skills/. */
2
+ export declare const platformSkillFiles: readonly [{
3
+ readonly path: "debug-fungi/REFERENCE.md";
4
+ readonly content: "# Debugging Fungi reference\n\n## Limits that explain a failure\n\n- A synchronous Computer command stops at ten minutes. An `execute` run may last\n one minute longer than that.\n- Work that must outlive ten minutes starts as a process. A process has no\n run-time bound of its own and lives within the Computer's awake window.\n- Stdout and stderr are each kept to 64 KiB. A longer stream is cut and marked.\n\n## A refused call\n\nA refused call returns a value with `refused: true` and a `reason`. It is a\ntyped value, not an error.\n\n## A result that says `pending_approval`\n\nFor an App's generation call, `pending_approval` does not confirm that anything\nwas generated. Wait for the result to be delivered in the ordinary way. Do not\nretry the approval to fetch the output.\n\n## No Home\n\nHome is your default Computer. When none is selected, or the selected Computer\nis detached, only a person can choose one, with `/home <name>`. There is no\nfallback Computer.\n";
5
+ }, {
6
+ readonly path: "debug-fungi/SKILL.md";
7
+ readonly content: "---\nname: debug-fungi\ndescription:\n Diagnose a tool call that failed, was refused or returned something wrong, a\n Computer command that did not succeed, or a missing Home. Use when a call\n errors more than once, a result looks wrong, or a tool you expect is not\n there.\n---\n\n# Debug Fungi\n\nWhen a call does not work, find out why before you call it again.\n\n1. Discover first. Inside `execute`, `forage.search` finds operations by one\n short keyword, `forage.list` pages through all of them, and\n `forage.describe({ path })` shows the input of one. Describe an operation\n before you call it.\n2. Call an operation by its exact dotted path, for example\n `await env.computers.<name>.exec({ command: \"pwd\" })`. A bare path such as\n `computers.<name>.exec` is not defined.\n3. Each `execute` call starts a fresh sandbox. Nothing you defined survives to\n the next call, so redefine helpers or save state to a file.\n4. Before you treat a shell or process result as success, check `status`,\n `exitCode` and `stderr`.\n\n`REFERENCE.md` in this folder lists the limits that most often explain a\nfailure, and what a refusal, a `pending_approval` result and a missing Home\nmean.\n";
8
+ }, {
9
+ readonly path: "fungible-computing/SKILL.md";
10
+ readonly content: "---\nname: fungible-computing\ndescription:\n Change how you work on this Agent's Computer. Edit your standing instructions\n and voice, add a skill of your own, or replace a built-in skill. Use when\n asked to remember a rule for every conversation, change your tone, or teach\n yourself a repeatable task.\n---\n\n# Fungible computing\n\nYour standing instructions and your skills are files on a Computer. You and your\nowner can both change them.\n\n## Instructions and voice\n\n- `AGENTS.md` on Home holds standing instructions. `SYSTEM.md` on Home holds\n your voice. Both are read at the start of each run, so an edit applies from\n the next run.\n- Together the two files may hold 32,000 bytes. A file over the limit is not\n loaded.\n- Follow them unless they conflict with the instructions the host gave you\n first. They never grant a tool, an approval or access.\n- They are at `computer://home/AGENTS.md` and `computer://home/SYSTEM.md`.\n- Only a person changes Home, with `/home <name>`. Ask them when no Home is\n available.\n\n## Skills\n\n- A skill is a folder holding a `SKILL.md`. Put your own at\n `.agents/skills/<name>/SKILL.md` on a Computer.\n `.fungi/skills/<name>/SKILL.md` works too and is searched first.\n- `SKILL.md` starts with YAML frontmatter that has a `description`. The `name`\n should match the folder and use lowercase letters, digits and single hyphens,\n at most 64 characters. The prompt shows at most 512 characters of the\n description.\n- Load a skill inside `execute` with\n `return await skill.load({ name: \"skill-name\" });`. Add `file`, relative to\n the returned `baseDirectory`, for a supporting file in the folder.\n- A person can list every skill, and the file each came from, with `/skills`.\n\n## Replace a built-in skill\n\nBuilt-in skills ship with Fungi and are not files on a Computer. To replace one,\nmake a skill with the same name on a Computer, for example\n`.agents/skills/debug-fungi/SKILL.md`. The first skill found with a name wins,\nand a Computer's skills are searched before the built-in ones. Yours is listed,\nand `skill.load` returns yours. Discovery records that yours won.\n";
11
+ }];
@@ -0,0 +1,16 @@
1
+ // Generated by scripts/platform-skills.mjs from skills/. Do not edit.
2
+ /** Built-in skill files, paths relative to skills/. */
3
+ export const platformSkillFiles = [
4
+ {
5
+ path: "debug-fungi/REFERENCE.md",
6
+ content: "# Debugging Fungi reference\n\n## Limits that explain a failure\n\n- A synchronous Computer command stops at ten minutes. An `execute` run may last\n one minute longer than that.\n- Work that must outlive ten minutes starts as a process. A process has no\n run-time bound of its own and lives within the Computer's awake window.\n- Stdout and stderr are each kept to 64 KiB. A longer stream is cut and marked.\n\n## A refused call\n\nA refused call returns a value with `refused: true` and a `reason`. It is a\ntyped value, not an error.\n\n## A result that says `pending_approval`\n\nFor an App's generation call, `pending_approval` does not confirm that anything\nwas generated. Wait for the result to be delivered in the ordinary way. Do not\nretry the approval to fetch the output.\n\n## No Home\n\nHome is your default Computer. When none is selected, or the selected Computer\nis detached, only a person can choose one, with `/home <name>`. There is no\nfallback Computer.\n",
7
+ },
8
+ {
9
+ path: "debug-fungi/SKILL.md",
10
+ content: '---\nname: debug-fungi\ndescription:\n Diagnose a tool call that failed, was refused or returned something wrong, a\n Computer command that did not succeed, or a missing Home. Use when a call\n errors more than once, a result looks wrong, or a tool you expect is not\n there.\n---\n\n# Debug Fungi\n\nWhen a call does not work, find out why before you call it again.\n\n1. Discover first. Inside `execute`, `forage.search` finds operations by one\n short keyword, `forage.list` pages through all of them, and\n `forage.describe({ path })` shows the input of one. Describe an operation\n before you call it.\n2. Call an operation by its exact dotted path, for example\n `await env.computers.<name>.exec({ command: "pwd" })`. A bare path such as\n `computers.<name>.exec` is not defined.\n3. Each `execute` call starts a fresh sandbox. Nothing you defined survives to\n the next call, so redefine helpers or save state to a file.\n4. Before you treat a shell or process result as success, check `status`,\n `exitCode` and `stderr`.\n\n`REFERENCE.md` in this folder lists the limits that most often explain a\nfailure, and what a refusal, a `pending_approval` result and a missing Home\nmean.\n',
11
+ },
12
+ {
13
+ path: "fungible-computing/SKILL.md",
14
+ content: "---\nname: fungible-computing\ndescription:\n Change how you work on this Agent's Computer. Edit your standing instructions\n and voice, add a skill of your own, or replace a built-in skill. Use when\n asked to remember a rule for every conversation, change your tone, or teach\n yourself a repeatable task.\n---\n\n# Fungible computing\n\nYour standing instructions and your skills are files on a Computer. You and your\nowner can both change them.\n\n## Instructions and voice\n\n- `AGENTS.md` on Home holds standing instructions. `SYSTEM.md` on Home holds\n your voice. Both are read at the start of each run, so an edit applies from\n the next run.\n- Together the two files may hold 32,000 bytes. A file over the limit is not\n loaded.\n- Follow them unless they conflict with the instructions the host gave you\n first. They never grant a tool, an approval or access.\n- They are at `computer://home/AGENTS.md` and `computer://home/SYSTEM.md`.\n- Only a person changes Home, with `/home <name>`. Ask them when no Home is\n available.\n\n## Skills\n\n- A skill is a folder holding a `SKILL.md`. Put your own at\n `.agents/skills/<name>/SKILL.md` on a Computer.\n `.fungi/skills/<name>/SKILL.md` works too and is searched first.\n- `SKILL.md` starts with YAML frontmatter that has a `description`. The `name`\n should match the folder and use lowercase letters, digits and single hyphens,\n at most 64 characters. The prompt shows at most 512 characters of the\n description.\n- Load a skill inside `execute` with\n `return await skill.load({ name: \"skill-name\" });`. Add `file`, relative to\n the returned `baseDirectory`, for a supporting file in the folder.\n- A person can list every skill, and the file each came from, with `/skills`.\n\n## Replace a built-in skill\n\nBuilt-in skills ship with Fungi and are not files on a Computer. To replace one,\nmake a skill with the same name on a Computer, for example\n`.agents/skills/debug-fungi/SKILL.md`. The first skill found with a name wins,\nand a Computer's skills are searched before the built-in ones. Yours is listed,\nand `skill.load` returns yours. Discovery records that yours won.\n",
15
+ },
16
+ ];
@@ -1279,6 +1279,7 @@ export class StandaloneAgentBase extends ShiitakeDO {
1279
1279
  // Skills the owner put on the Agent's Computer, found by the rules Local uses on a disk.
1280
1280
  const extensions = oysterAgentExtensions(conversationAgents.source(this.controlDirectory()), {
1281
1281
  source: createComputerSkillSource({
1282
+ platform: ["debug-fungi", "fungible-computing"],
1282
1283
  computers: async () => {
1283
1284
  await this.preparedComputerSnapshot();
1284
1285
  return readAgentComputerConnections(this.computerConnections()).map(({ name, files }) => ({ name, port: files.port }));
@@ -1,5 +1,6 @@
1
1
  import type { FilesPort } from "@fungi.computer/knapsack";
2
2
  import type { SkillSource } from "@fungi.computer/shiitake-extensions/skills/source";
3
+ import { platformSkillFiles } from "../platform-skills.generated.js";
3
4
  /**
4
5
  * Skills on an Agent's own Computer. Discovery follows the same rules Local
5
6
  * applies on a disk (frontmatter, naming, bounds, first name wins): this
@@ -11,10 +12,20 @@ export type SkillComputer = Readonly<{
11
12
  name: string;
12
13
  port: FilesPort;
13
14
  }>;
15
+ /** The built-in skills this build bundles, by folder name. */
16
+ export type PlatformSkillName = (typeof platformSkillFiles)[number]["path"] extends infer Path ? Path extends `${infer Name}/${string}` ? Name : never : never;
14
17
  /** What a person is told when no skill is installed on the Computer. */
15
18
  export declare const computerSkillsEmpty = "No skills are installed; put one at .agents/skills/<name>/SKILL.md on the Computer.";
16
19
  /** Discover and load the skills on the Agent's attached Computers. */
17
20
  export declare function createComputerSkillSource(options: Readonly<{
18
- /** The Computers the Agent may use now; read at each discovery. */
19
- computers: () => Promise<readonly SkillComputer[]>;
21
+ /**
22
+ * The Computers this Session's run may use now; read at each discovery. A
23
+ * host that refuses a Session its Computers answers with none.
24
+ */
25
+ computers: (sessionId: string) => Promise<readonly SkillComputer[]>;
26
+ /**
27
+ * Built-in skills this host offers, after the Computers' own: a Computer
28
+ * skill of the same name wins and discovery records the collision.
29
+ */
30
+ platform: readonly PlatformSkillName[];
20
31
  }>): SkillSource;
@@ -1,5 +1,6 @@
1
1
  import { admitSkill, maximumDirectoryEntries, maximumFileBytes, newSkillAdmission, parseSkill, skillCatalogOf, skillDiagnostic, skillExplanation, skillFileSchema, SkillSourceError, } from "@fungi.computer/shiitake-extensions/skills/discovery";
2
2
  import { defineIdFamily } from "@fungi.computer/cairn/id";
3
+ import { platformSkillFiles } from "../platform-skills.generated.js";
3
4
  import { z } from "zod";
4
5
  /** Each Files call this source makes is its own invocation. */
5
6
  const skillIds = defineIdFamily({
@@ -7,6 +8,8 @@ const skillIds = defineIdFamily({
7
8
  version: 1,
8
9
  kinds: { execution: { prefix: "skill_exec" } },
9
10
  });
11
+ /** Built-in skills have no Computer path; this prefix says so. */
12
+ const builtInDirectory = (name) => `built-in: ${name}`;
10
13
  /** Where the Computer keeps skills, searched in this order; the first name wins. */
11
14
  const skillRoots = [".fungi/skills", ".agents/skills"];
12
15
  /** What a person is told when no skill is installed on the Computer. */
@@ -75,10 +78,49 @@ async function findSkillFiles(port, root, signal, diagnostics) {
75
78
  }
76
79
  return files.sort();
77
80
  }
81
+ /** One bundled file's text, or a plain refusal. */
82
+ function bundled(path) {
83
+ const file = platformSkillFiles.find((candidate) => candidate.path === path);
84
+ if (file === undefined)
85
+ throw new SkillSourceError("Built-in skill file does not exist");
86
+ return file.content;
87
+ }
88
+ /** A built-in skill's body or one supporting file, read from the bundle. */
89
+ function readPlatform(name, folder, file) {
90
+ const selected = file ?? "SKILL.md";
91
+ const content = bundled(`${folder}/${selected}`);
92
+ const prefix = `${folder}/`;
93
+ const supportingFiles = selected === "SKILL.md"
94
+ ? platformSkillFiles
95
+ .map((candidate) => candidate.path)
96
+ .filter((path) => path.startsWith(prefix) && path !== `${prefix}SKILL.md`)
97
+ .map((path) => path.slice(prefix.length))
98
+ .sort()
99
+ : [];
100
+ if (selected === "SKILL.md") {
101
+ const parsed = parseSkill(content, folder);
102
+ if (parsed.metadata["disable-model-invocation"])
103
+ throw new Error(`Hidden skill: ${name}`);
104
+ return {
105
+ name,
106
+ file: selected,
107
+ content: parsed.body,
108
+ baseDirectory: builtInDirectory(folder),
109
+ supportingFiles,
110
+ };
111
+ }
112
+ return {
113
+ name,
114
+ file: selected,
115
+ content,
116
+ baseDirectory: builtInDirectory(folder),
117
+ supportingFiles,
118
+ };
119
+ }
78
120
  /** Discover and load the skills on the Agent's attached Computers. */
79
121
  export function createComputerSkillSource(options) {
80
- const scan = async (signal) => {
81
- const computers = await options.computers();
122
+ const scan = async (sessionId, signal) => {
123
+ const computers = await options.computers(sessionId);
82
124
  const several = computers.length > 1;
83
125
  const state = newSkillAdmission();
84
126
  const homes = new Map();
@@ -101,7 +143,11 @@ export function createComputerSkillSource(options) {
101
143
  origin: { kind: "project" },
102
144
  });
103
145
  if (state.skills.length > before)
104
- homes.set(metadata.name, { computer, location: path });
146
+ homes.set(metadata.name, {
147
+ kind: "computer",
148
+ computer,
149
+ location: path,
150
+ });
105
151
  }
106
152
  catch (cause) {
107
153
  signal.throwIfAborted();
@@ -115,19 +161,47 @@ export function createComputerSkillSource(options) {
115
161
  }
116
162
  }
117
163
  }
164
+ for (const name of options.platform) {
165
+ const path = `${name}/SKILL.md`;
166
+ const skillPath = `${builtInDirectory(name)}/SKILL.md`;
167
+ try {
168
+ const { metadata } = parseSkill(bundled(path), name);
169
+ const before = state.skills.length;
170
+ admitSkill(state, {
171
+ metadata,
172
+ directoryName: name,
173
+ skillPath,
174
+ location: skillPath,
175
+ displayLocation: skillPath,
176
+ origin: { kind: "platform" },
177
+ });
178
+ if (state.skills.length > before)
179
+ homes.set(metadata.name, { kind: "platform", folder: name });
180
+ }
181
+ catch (cause) {
182
+ state.diagnostics.push({
183
+ path: skillPath,
184
+ reason: "invalid",
185
+ message: skillExplanation(cause, "Skill metadata or file is invalid"),
186
+ cause,
187
+ });
188
+ }
189
+ }
118
190
  if (state.skills.length === 0 && state.diagnostics.length === 0)
119
191
  state.diagnostics.push(skillDiagnostic(".agents/skills", "empty", "No skill folders on the Computer"));
120
192
  return { catalog: skillCatalogOf(state), homes };
121
193
  };
122
194
  return {
123
- catalog: async (signal) => (await scan(signal)).catalog,
124
- read: async (name, file, signal) => {
195
+ catalog: async ({ sessionId, signal }) => (await scan(sessionId, signal)).catalog,
196
+ read: async ({ sessionId, name, file, signal }) => {
125
197
  nameLength.parse(name);
126
- const { catalog, homes } = await scan(signal);
198
+ const { catalog, homes } = await scan(sessionId, signal);
127
199
  const home = homes.get(name);
128
200
  const found = catalog.skills.find((skill) => skill.name === name);
129
201
  if (home === undefined || found === undefined)
130
202
  throw new Error(`Unknown or hidden skill: ${name}`);
203
+ if (home.kind === "platform")
204
+ return readPlatform(name, home.folder, file === undefined ? undefined : skillFileSchema.parse(file));
131
205
  const baseDirectory = directoryOf(home.location);
132
206
  const selected = file === undefined ? "SKILL.md" : skillFileSchema.parse(file);
133
207
  const content = await readWhole(home.computer.port, `${baseDirectory}/${selected}`, signal);
@@ -588,8 +588,8 @@ export declare function createStandaloneWorkflowHost(owner: WatchdogSqliteOwner,
588
588
  readonly values: {
589
589
  readonly [x: string]: import("@fungi.computer/braid").Mapping;
590
590
  };
591
- readonly id: string;
592
591
  readonly kind: "app";
592
+ readonly id: string;
593
593
  readonly method: string;
594
594
  readonly app: string;
595
595
  readonly methodDigest: string;
@@ -606,8 +606,8 @@ export declare function createStandaloneWorkflowHost(owner: WatchdogSqliteOwner,
606
606
  access: "read";
607
607
  } | undefined;
608
608
  } | {
609
- readonly id: string;
610
609
  readonly kind: "review";
610
+ readonly id: string;
611
611
  readonly title: string;
612
612
  readonly timeout: number;
613
613
  readonly reviewers: "owners" | "runner";
@@ -685,8 +685,8 @@ export declare function createStandaloneWorkflowHost(owner: WatchdogSqliteOwner,
685
685
  readonly values: {
686
686
  readonly [x: string]: import("@fungi.computer/braid").Mapping;
687
687
  };
688
- readonly id: string;
689
688
  readonly kind: "app";
689
+ readonly id: string;
690
690
  readonly method: string;
691
691
  readonly app: string;
692
692
  readonly methodDigest: string;
@@ -703,8 +703,8 @@ export declare function createStandaloneWorkflowHost(owner: WatchdogSqliteOwner,
703
703
  access: "read";
704
704
  } | undefined;
705
705
  } | {
706
- readonly id: string;
707
706
  readonly kind: "review";
707
+ readonly id: string;
708
708
  readonly title: string;
709
709
  readonly timeout: number;
710
710
  readonly reviewers: "owners" | "runner";
@@ -321,8 +321,8 @@ export declare abstract class StandaloneWorkflowRunsBase<Env extends StandaloneW
321
321
  readonly values: {
322
322
  readonly [x: string]: import("@fungi.computer/braid").Mapping;
323
323
  };
324
- readonly id: string;
325
324
  readonly kind: "app";
325
+ readonly id: string;
326
326
  readonly method: string;
327
327
  readonly app: string;
328
328
  readonly methodDigest: string;
@@ -339,8 +339,8 @@ export declare abstract class StandaloneWorkflowRunsBase<Env extends StandaloneW
339
339
  access: "read";
340
340
  } | undefined;
341
341
  } | {
342
- readonly id: string;
343
342
  readonly kind: "review";
343
+ readonly id: string;
344
344
  readonly title: string;
345
345
  readonly timeout: number;
346
346
  readonly reviewers: "owners" | "runner";
@@ -418,8 +418,8 @@ export declare abstract class StandaloneWorkflowRunsBase<Env extends StandaloneW
418
418
  readonly values: {
419
419
  readonly [x: string]: import("@fungi.computer/braid").Mapping;
420
420
  };
421
- readonly id: string;
422
421
  readonly kind: "app";
422
+ readonly id: string;
423
423
  readonly method: string;
424
424
  readonly app: string;
425
425
  readonly methodDigest: string;
@@ -436,8 +436,8 @@ export declare abstract class StandaloneWorkflowRunsBase<Env extends StandaloneW
436
436
  access: "read";
437
437
  } | undefined;
438
438
  } | {
439
- readonly id: string;
440
439
  readonly kind: "review";
440
+ readonly id: string;
441
441
  readonly title: string;
442
442
  readonly timeout: number;
443
443
  readonly reviewers: "owners" | "runner";
@@ -607,7 +607,7 @@ export declare abstract class StandaloneWorkflowRunsBase<Env extends StandaloneW
607
607
  readonly title: string;
608
608
  readonly status?: {
609
609
  readonly label: string;
610
- readonly tone: "success" | "error" | "neutral" | "primary" | "secondary" | "accent" | "info" | "warning";
610
+ readonly tone: "success" | "error" | "warning" | "neutral" | "primary" | "secondary" | "accent" | "info";
611
611
  } | undefined;
612
612
  readonly media?: {
613
613
  readonly path: string;
@@ -655,7 +655,7 @@ export declare abstract class StandaloneWorkflowRunsBase<Env extends StandaloneW
655
655
  events: readonly {
656
656
  readonly runId: string;
657
657
  readonly nodeId: string;
658
- readonly state: "failed" | "running" | "complete" | "skipped" | "queued" | "waiting";
658
+ readonly state: "skipped" | "failed" | "running" | "complete" | "queued" | "waiting";
659
659
  readonly iteration: string;
660
660
  readonly attempt: number;
661
661
  readonly output?: {
@@ -673,7 +673,7 @@ export declare abstract class StandaloneWorkflowRunsBase<Env extends StandaloneW
673
673
  readonly title: string;
674
674
  readonly status?: {
675
675
  readonly label: string;
676
- readonly tone: "success" | "error" | "neutral" | "primary" | "secondary" | "accent" | "info" | "warning";
676
+ readonly tone: "success" | "error" | "warning" | "neutral" | "primary" | "secondary" | "accent" | "info";
677
677
  } | undefined;
678
678
  readonly media?: {
679
679
  readonly path: string;
@@ -746,7 +746,7 @@ export declare abstract class StandaloneWorkflowRunsBase<Env extends StandaloneW
746
746
  events: readonly {
747
747
  readonly runId: string;
748
748
  readonly nodeId: string;
749
- readonly state: "failed" | "running" | "complete" | "skipped" | "queued" | "waiting";
749
+ readonly state: "skipped" | "failed" | "running" | "complete" | "queued" | "waiting";
750
750
  readonly iteration: string;
751
751
  readonly attempt: number;
752
752
  readonly output?: {
@@ -764,7 +764,7 @@ export declare abstract class StandaloneWorkflowRunsBase<Env extends StandaloneW
764
764
  readonly title: string;
765
765
  readonly status?: {
766
766
  readonly label: string;
767
- readonly tone: "success" | "error" | "neutral" | "primary" | "secondary" | "accent" | "info" | "warning";
767
+ readonly tone: "success" | "error" | "warning" | "neutral" | "primary" | "secondary" | "accent" | "info";
768
768
  } | undefined;
769
769
  readonly media?: {
770
770
  readonly path: string;
@@ -21,7 +21,7 @@ export declare const storageFrameMethods: {
21
21
  };
22
22
  } | {
23
23
  readonly kind: "rejected";
24
- readonly code: "unavailable" | "invalid" | "conflict" | "undeclared_key" | "scope_not_declared" | "owner_required" | "too_large" | "quota_exceeded";
24
+ readonly code: "invalid" | "unavailable" | "conflict" | "undeclared_key" | "scope_not_declared" | "owner_required" | "too_large" | "quota_exceeded";
25
25
  };
26
26
  requiredOperations: () => string[];
27
27
  };
@@ -39,7 +39,7 @@ export declare const storageFrameMethods: {
39
39
  };
40
40
  } | {
41
41
  readonly kind: "rejected";
42
- readonly code: "unavailable" | "invalid" | "conflict" | "undeclared_key" | "scope_not_declared" | "owner_required" | "too_large" | "quota_exceeded";
42
+ readonly code: "invalid" | "unavailable" | "conflict" | "undeclared_key" | "scope_not_declared" | "owner_required" | "too_large" | "quota_exceeded";
43
43
  };
44
44
  requiredOperations: () => string[];
45
45
  };
@@ -56,7 +56,7 @@ export declare const storageFrameMethods: {
56
56
  };
57
57
  } | {
58
58
  readonly kind: "rejected";
59
- readonly code: "unavailable" | "invalid" | "conflict" | "undeclared_key" | "scope_not_declared" | "owner_required" | "too_large" | "quota_exceeded";
59
+ readonly code: "invalid" | "unavailable" | "conflict" | "undeclared_key" | "scope_not_declared" | "owner_required" | "too_large" | "quota_exceeded";
60
60
  };
61
61
  requiredOperations: () => string[];
62
62
  };
package/dist/workers.d.ts CHANGED
@@ -117,6 +117,7 @@ export declare class OysterRegistry<Env extends OysterWorkerEnv = OysterWorkerEn
117
117
  readonly revision: number;
118
118
  readonly expiresAt: number;
119
119
  readonly operation: string;
120
+ readonly reason: "pending" | "expired" | "not-found" | "not-eligible" | "already-answered" | "stale-revision" | "declined" | "fenced" | "not-granted" | "read-only" | "in-flight" | "outcome-unknown" | "identity-conflict" | null;
120
121
  readonly description: {
121
122
  readonly title: string;
122
123
  readonly inputBytes: number;
@@ -130,7 +131,6 @@ export declare class OysterRegistry<Env extends OysterWorkerEnv = OysterWorkerEn
130
131
  } | null;
131
132
  readonly access: "write" | "external";
132
133
  readonly state: "pending" | "expired" | "denied" | "applied" | "requested" | "approved" | "claimed" | "outcome_unknown";
133
- readonly reason: "pending" | "expired" | "not-found" | "not-eligible" | "already-answered" | "stale-revision" | "declined" | "fenced" | "not-granted" | "read-only" | "in-flight" | "outcome-unknown" | "identity-conflict" | null;
134
134
  readonly updatedAt: number;
135
135
  readonly module: string;
136
136
  readonly recordId: string;