@astrosheep/keiyaku 4.6.32 → 4.6.34
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.
- package/README.md +18 -7
- package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +18 -11
- package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +8 -6
- package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +18 -11
- package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +8 -6
- package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +18 -11
- package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +8 -6
- package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/plugins/pi/README.md +55 -97
- package/build/plugins/pi/keiyaku.ts +1 -142
- package/build/skills/keiyaku-akuma/SKILL.md +18 -11
- package/build/skills/keiyaku-babysit/SKILL.md +8 -6
- package/build/skills/keiyaku-debt/SKILL.md +2 -1
- package/build/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/src/akuma/akuma-instance.d.ts +11 -0
- package/build/src/akuma/akuma-instance.js +1 -2
- package/build/src/akuma/akuma-observe.d.ts +8 -0
- package/build/src/akuma/akuma-observe.js +81 -14
- package/build/src/akuma/akuma-owner.d.ts +1 -0
- package/build/src/akuma/akuma-owner.js +3 -5
- package/build/src/akuma/akuma-selection-execution.d.ts +82 -7
- package/build/src/akuma/akuma-selection-execution.js +26 -27
- package/build/src/akuma/akuma-wait.d.ts +155 -1
- package/build/src/akuma/akuma-wait.js +94 -34
- package/build/src/akuma/akuma.d.ts +17 -1
- package/build/src/akuma/akuma.js +37 -18
- package/build/src/akuma/body.js +13 -18
- package/build/src/akuma/call-initial-tell.d.ts +0 -1
- package/build/src/akuma/call-initial-tell.js +0 -1
- package/build/src/akuma/heart/activity-schema.d.ts +16 -0
- package/build/src/akuma/heart/activity-schema.js +7 -0
- package/build/src/akuma/heart/facts.d.ts +1 -0
- package/build/src/akuma/heart/facts.js +14 -0
- package/build/src/akuma/heart/index.d.ts +7 -1
- package/build/src/akuma/heart/index.js +35 -9
- package/build/src/akuma/heart/rows.d.ts +1 -0
- package/build/src/akuma/heart/rows.js +4 -0
- package/build/src/akuma/heart/timeline.js +4 -4
- package/build/src/akuma/lineage-cache.d.ts +7 -2
- package/build/src/akuma/lineage-cache.js +48 -24
- package/build/src/akuma/projection-read.d.ts +4 -2
- package/build/src/akuma/projection-read.js +25 -23
- package/build/src/akuma/projection.d.ts +94 -2
- package/build/src/akuma/projection.js +47 -47
- package/build/src/akuma/provider.d.ts +2 -2
- package/build/src/akuma/provider.js +27 -20
- package/build/src/akuma/providers/acp/core.js +2 -5
- package/build/src/akuma/providers/opencode-sdk/events.d.ts +2 -1
- package/build/src/akuma/providers/opencode-sdk/events.js +31 -1
- package/build/src/akuma/publication.js +3 -2
- package/build/src/akuma/selection-observation.d.ts +645 -0
- package/build/src/akuma/selection-observation.js +22 -7
- package/build/src/akuma/status-projection.d.ts +14 -1
- package/build/src/akuma/status-projection.js +40 -2
- package/build/src/akuma/turn-drive.js +21 -15
- package/build/src/body/amend.js +5 -17
- package/build/src/body/decode.js +11 -1
- package/build/src/body/envelope.d.ts +5 -1
- package/build/src/body/envelope.js +4 -2
- package/build/src/body/render.js +4 -6
- package/build/src/bounded-list.d.ts +8 -0
- package/build/src/bounded-list.js +10 -0
- package/build/src/cli/commands/akuma-grammar.d.ts +5 -8
- package/build/src/cli/commands/akuma-grammar.js +52 -77
- package/build/src/cli/commands/akuma.d.ts +1 -2
- package/build/src/cli/commands/akuma.js +12 -61
- package/build/src/cli/commands/contract-grammar.d.ts +1 -0
- package/build/src/cli/commands/contract-grammar.js +39 -42
- package/build/src/cli/commands/contract-help.d.ts +6 -5
- package/build/src/cli/commands/contract-help.js +21 -13
- package/build/src/cli/commands/contract.d.ts +3 -3
- package/build/src/cli/commands/contract.js +13 -9
- package/build/src/cli/commands/debt-grammar.js +2 -4
- package/build/src/cli/parse.d.ts +4 -10
- package/build/src/cli/parse.js +2 -5
- package/build/src/cli/render/akuma-activity.d.ts +12 -34
- package/build/src/cli/render/akuma-activity.js +99 -180
- package/build/src/cli/render/akuma.d.ts +5 -11
- package/build/src/cli/render/akuma.js +22 -30
- package/build/src/cli/render/catalog.js +4 -6
- package/build/src/cli/render/contract-history.d.ts +1 -3
- package/build/src/cli/render/contract-history.js +70 -49
- package/build/src/cli/render/contract-observation.d.ts +2 -1
- package/build/src/cli/render/contract-observation.js +25 -1
- package/build/src/cli/render/contract-wait.d.ts +2 -2
- package/build/src/cli/render/contract-wait.js +21 -17
- package/build/src/cli/render/contract.js +12 -9
- package/build/src/cli/render/debt.js +1 -2
- package/build/src/cli/render/execution-progress.js +1 -3
- package/build/src/cli/render/kanshi-akuma.d.ts +4 -3
- package/build/src/cli/render/kanshi-akuma.js +27 -23
- package/build/src/cli/render/kanshi.js +45 -60
- package/build/src/cli/render/receipt.d.ts +1 -1
- package/build/src/cli/render/receipt.js +33 -28
- package/build/src/cli/render/reconcile.js +2 -5
- package/build/src/cli/render/refusal.js +3 -6
- package/build/src/cli/render/terminal.d.ts +2 -4
- package/build/src/cli/render/terminal.js +10 -17
- package/build/src/cli/render/verbs.d.ts +1 -0
- package/build/src/cli/render/verbs.js +39 -34
- package/build/src/cli/runtime.js +12 -32
- package/build/src/core/facts/codec.js +7 -2
- package/build/src/core/facts/eligibility.d.ts +4 -4
- package/build/src/core/facts/eligibility.js +11 -0
- package/build/src/core/facts/fold.js +9 -5
- package/build/src/core/facts/gate.d.ts +5 -1
- package/build/src/core/facts/gate.js +14 -10
- package/build/src/core/facts/types.d.ts +5 -1
- package/build/src/core/facts/types.js +7 -0
- package/build/src/core/subject.d.ts +4 -1
- package/build/src/core/subject.js +10 -2
- package/build/src/core/verbs/amend.d.ts +15 -4
- package/build/src/core/verbs/amend.js +19 -9
- package/build/src/debt/board.d.ts +2 -1
- package/build/src/debt/board.js +3 -3
- package/build/src/debt/catalog.js +2 -1
- package/build/src/debt/document.d.ts +1 -0
- package/build/src/debt/document.js +3 -0
- package/build/src/debt/index.d.ts +2 -2
- package/build/src/debt/index.js +9 -14
- package/build/src/debt/input.d.ts +2 -1
- package/build/src/debt/input.js +6 -4
- package/build/src/debt/operations.d.ts +2 -1
- package/build/src/dispatch/index.d.ts +0 -17
- package/build/src/dispatch/index.js +1 -10
- package/build/src/git/identity.js +16 -45
- package/build/src/git/nuke.js +13 -23
- package/build/src/git/observe.d.ts +7 -3
- package/build/src/git/observe.js +29 -26
- package/build/src/git/process.js +11 -18
- package/build/src/git/read-observation.d.ts +5 -4
- package/build/src/git/repository.d.ts +2 -0
- package/build/src/git/repository.js +13 -1
- package/build/src/git/scratch.js +2 -14
- package/build/src/git/terminal-reconcile.js +1 -13
- package/build/src/history.d.ts +26 -0
- package/build/src/history.js +43 -0
- package/build/src/index.d.ts +6 -3
- package/build/src/kanshi/counts.d.ts +15 -1
- package/build/src/kanshi/counts.js +14 -3
- package/build/src/kanshi/index.d.ts +3 -4
- package/build/src/kanshi/index.js +2 -3
- package/build/src/kanshi/read.d.ts +21 -0
- package/build/src/kanshi/read.js +7 -3
- package/build/src/kanshi/report.d.ts +94 -0
- package/build/src/library/address.d.ts +12 -5
- package/build/src/library/address.js +18 -32
- package/build/src/library/akuma-creation.d.ts +39 -0
- package/build/src/library/akuma-creation.js +3 -9
- package/build/src/library/akumas.d.ts +5 -1
- package/build/src/library/akumas.js +11 -5
- package/build/src/library/continuation.d.ts +10 -0
- package/build/src/library/contract-composition.js +10 -10
- package/build/src/library/contract-creation.js +12 -13
- package/build/src/library/contract-outcomes.d.ts +72 -1
- package/build/src/library/contract-outcomes.js +1 -0
- package/build/src/library/contract-types.d.ts +233 -25
- package/build/src/library/contract-types.js +32 -12
- package/build/src/library/contract-wait.d.ts +212 -0
- package/build/src/library/contract-wait.js +65 -49
- package/build/src/library/delivery.d.ts +25 -0
- package/build/src/library/input.d.ts +8 -26
- package/build/src/library/input.js +17 -12
- package/build/src/library/kei.js +167 -90
- package/build/src/library/keiyaku-attribution.d.ts +1 -1
- package/build/src/library/keiyaku-attribution.js +3 -1
- package/build/src/library/keiyaku-classify.js +8 -4
- package/build/src/library/keiyaku-debt.d.ts +8 -7
- package/build/src/library/keiyaku-debt.js +1 -2
- package/build/src/library/keiyaku-identity.d.ts +4 -3
- package/build/src/library/keiyaku-identity.js +35 -7
- package/build/src/library/keiyaku-verbs.d.ts +974 -1409
- package/build/src/library/keiyaku-verbs.js +154 -161
- package/build/src/library/keiyaku-wait.d.ts +753 -0
- package/build/src/library/keiyaku-wait.js +230 -0
- package/build/src/library/keiyaku.d.ts +3110 -29
- package/build/src/library/keiyaku.js +342 -438
- package/build/src/library/model-tools.d.ts +754 -0
- package/build/src/library/model-tools.js +362 -0
- package/build/src/library/outcome.js +5 -6
- package/build/src/library/refusal.d.ts +25 -1
- package/build/src/library/refusal.js +4 -5
- package/build/src/library/selection.d.ts +18 -5
- package/build/src/library/selection.js +11 -5
- package/build/src/mcp/adapter.d.ts +0 -6
- package/build/src/mcp/adapter.js +11 -160
- package/build/src/mcp/description.d.ts +2 -0
- package/build/src/mcp/description.js +2 -0
- package/build/src/mcp/help.d.ts +1 -1
- package/build/src/mcp/help.js +10 -7
- package/build/src/pi/index.d.ts +5 -0
- package/build/src/pi/index.js +99 -0
- package/build/src/pi/status.d.ts +12 -0
- package/build/src/pi/status.js +140 -0
- package/build/src/protocol/amend.d.ts +14 -3
- package/build/src/protocol/amend.js +113 -46
- package/build/src/protocol/bind.d.ts +1 -1
- package/build/src/protocol/bind.js +5 -16
- package/build/src/protocol/completion.d.ts +30 -0
- package/build/src/protocol/completion.js +8 -5
- package/build/src/protocol/deliver.js +7 -20
- package/build/src/protocol/delivery-preview.d.ts +5 -0
- package/build/src/protocol/execution-observation.d.ts +8 -0
- package/build/src/protocol/intent.d.ts +1 -0
- package/build/src/protocol/intent.js +4 -1
- package/build/src/protocol/operations.d.ts +56 -16
- package/build/src/protocol/operations.js +18 -32
- package/build/src/protocol/placement.js +7 -1
- package/build/src/protocol/progress.js +0 -6
- package/build/src/protocol/read/status.d.ts +52 -4
- package/build/src/protocol/read/status.js +26 -22
- package/build/src/protocol/reintegrate.js +2 -2
- package/build/src/protocol/result-leaves.d.ts +56 -8
- package/build/src/protocol/result-leaves.js +11 -2
- package/build/src/protocol/run.js +1 -4
- package/build/src/protocol/verify.d.ts +10 -0
- package/build/src/protocol/verify.js +1 -0
- package/build/src/runtime/proc/windows-launch.exe +0 -0
- package/build/src/settlement/settle.js +19 -68
- package/package.json +7 -3
- package/plugins/paseo/plugin/index.server.ts +6 -2
- package/plugins/paseo/plugin/server/attach.ts +68 -48
- package/plugins/paseo/plugin/server/directory.ts +259 -0
- package/plugins/paseo/plugin/server/mirror-identity.ts +3 -32
- package/plugins/paseo/plugin/server/reopen.ts +52 -38
- package/plugins/pi/README.md +55 -97
- package/plugins/pi/keiyaku.ts +1 -142
- package/skills/keiyaku-akuma/SKILL.md +18 -11
- package/skills/keiyaku-babysit/SKILL.md +8 -6
- package/skills/keiyaku-debt/SKILL.md +2 -1
- package/skills/keiyaku-workflow/SKILL.md +2 -1
- package/build/plugins/pi/akuma-tools.ts +0 -283
- package/build/src/body/keys.d.ts +0 -4
- package/build/src/body/keys.js +0 -11
- package/build/src/kanshi/roster.d.ts +0 -2
- package/build/src/kanshi/roster.js +0 -2
- package/build/src/mcp/output.d.ts +0 -385
- package/build/src/mcp/output.js +0 -193
- package/plugins/pi/akuma-tools.ts +0 -283
|
@@ -0,0 +1,753 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type AkumaId } from "../akuma/identity.js";
|
|
3
|
+
import type { ContractId } from "../core/facts/types.js";
|
|
4
|
+
import type { WorldRoot } from "../world.js";
|
|
5
|
+
import { type Repo } from "./repo.js";
|
|
6
|
+
export declare const invocationWaitMemberSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
7
|
+
kind: z.ZodLiteral<"contract">;
|
|
8
|
+
observation: z.ZodReadonly<z.ZodObject<{
|
|
9
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
10
|
+
changed: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
11
|
+
presence: z.ZodExactOptional<z.ZodEnum<{
|
|
12
|
+
unknown: "unknown";
|
|
13
|
+
missing: "missing";
|
|
14
|
+
}>>;
|
|
15
|
+
terminal: z.ZodExactOptional<z.ZodEnum<{
|
|
16
|
+
claimed: "claimed";
|
|
17
|
+
abandoned: "abandoned";
|
|
18
|
+
}>>;
|
|
19
|
+
summary: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
20
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
21
|
+
title: z.ZodExactOptional<z.ZodString>;
|
|
22
|
+
phase: z.ZodEnum<{
|
|
23
|
+
claimed: "claimed";
|
|
24
|
+
abandoned: "abandoned";
|
|
25
|
+
bound: "bound";
|
|
26
|
+
}>;
|
|
27
|
+
phaseAt: z.ZodString;
|
|
28
|
+
delivered: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
29
|
+
gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
30
|
+
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
31
|
+
verdict: z.ZodEnum<{
|
|
32
|
+
missing: "missing";
|
|
33
|
+
satisfied: "satisfied";
|
|
34
|
+
unsatisfied: "unsatisfied";
|
|
35
|
+
stale: "stale";
|
|
36
|
+
}>;
|
|
37
|
+
}, z.core.$strict>>>>>;
|
|
38
|
+
attention: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"workspace-unavailable">;
|
|
40
|
+
path: z.ZodString;
|
|
41
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
42
|
+
kind: z.ZodLiteral<"workspace-unappointed">;
|
|
43
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
44
|
+
kind: z.ZodLiteral<"workspace-failed">;
|
|
45
|
+
path: z.ZodString;
|
|
46
|
+
diagnostic: z.ZodString;
|
|
47
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
48
|
+
kind: z.ZodLiteral<"merge-in-progress">;
|
|
49
|
+
path: z.ZodString;
|
|
50
|
+
conflicts: z.ZodExactOptional<z.ZodNumber>;
|
|
51
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
52
|
+
kind: z.ZodLiteral<"target-behind">;
|
|
53
|
+
behind: z.ZodNumber;
|
|
54
|
+
subject: z.ZodExactOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
56
|
+
kind: z.ZodLiteral<"target-unknown">;
|
|
57
|
+
subject: z.ZodExactOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strict>>]>>>>;
|
|
59
|
+
}, z.core.$strict>>>;
|
|
60
|
+
}, z.core.$strict>>;
|
|
61
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
62
|
+
kind: z.ZodLiteral<"akuma">;
|
|
63
|
+
observation: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
64
|
+
kind: z.ZodLiteral<"observed">;
|
|
65
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
66
|
+
life: z.ZodEnum<{
|
|
67
|
+
hung: "hung";
|
|
68
|
+
untidy: "untidy";
|
|
69
|
+
killed: "killed";
|
|
70
|
+
running: "running";
|
|
71
|
+
asleep: "asleep";
|
|
72
|
+
stranded: "stranded";
|
|
73
|
+
}>;
|
|
74
|
+
lastActivityAt: z.ZodExactOptional<z.ZodString>;
|
|
75
|
+
events: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
76
|
+
kind: z.ZodLiteral<"permission">;
|
|
77
|
+
sequence: z.ZodNumber;
|
|
78
|
+
turnSequence: z.ZodNumber;
|
|
79
|
+
at: z.ZodString;
|
|
80
|
+
requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
action: z.ZodString;
|
|
83
|
+
resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
84
|
+
tool: z.ZodExactOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strict>>>>;
|
|
86
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
87
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
88
|
+
kind: z.ZodLiteral<"turn">;
|
|
89
|
+
sequence: z.ZodNumber;
|
|
90
|
+
bodySequence: z.ZodNumber;
|
|
91
|
+
at: z.ZodString;
|
|
92
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"call">;
|
|
94
|
+
sequence: z.ZodNumber;
|
|
95
|
+
turnSequence: z.ZodNumber;
|
|
96
|
+
at: z.ZodString;
|
|
97
|
+
text: z.ZodString;
|
|
98
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
99
|
+
kind: z.ZodLiteral<"report">;
|
|
100
|
+
sequence: z.ZodNumber;
|
|
101
|
+
bodySequence: z.ZodNumber;
|
|
102
|
+
turnSequence: z.ZodNumber;
|
|
103
|
+
text: z.ZodString;
|
|
104
|
+
at: z.ZodString;
|
|
105
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
106
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
107
|
+
sequence: z.ZodNumber;
|
|
108
|
+
turnSequence: z.ZodNumber;
|
|
109
|
+
at: z.ZodString;
|
|
110
|
+
text: z.ZodString;
|
|
111
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
112
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
113
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
114
|
+
sequence: z.ZodNumber;
|
|
115
|
+
turnSequence: z.ZodNumber;
|
|
116
|
+
at: z.ZodString;
|
|
117
|
+
text: z.ZodString;
|
|
118
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
119
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
121
|
+
sequence: z.ZodNumber;
|
|
122
|
+
turnSequence: z.ZodNumber;
|
|
123
|
+
at: z.ZodString;
|
|
124
|
+
text: z.ZodString;
|
|
125
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
126
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
127
|
+
kind: z.ZodLiteral<"tell">;
|
|
128
|
+
sequence: z.ZodNumber;
|
|
129
|
+
at: z.ZodString;
|
|
130
|
+
tellId: z.ZodString;
|
|
131
|
+
text: z.ZodString;
|
|
132
|
+
state: z.ZodEnum<{
|
|
133
|
+
pending: "pending";
|
|
134
|
+
told: "told";
|
|
135
|
+
}>;
|
|
136
|
+
deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
137
|
+
deliveredAt: z.ZodString;
|
|
138
|
+
route: z.ZodEnum<{
|
|
139
|
+
launch: "launch";
|
|
140
|
+
live: "live";
|
|
141
|
+
}>;
|
|
142
|
+
turnSequence: z.ZodNumber;
|
|
143
|
+
}, z.core.$strict>>>>;
|
|
144
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
145
|
+
kind: z.ZodLiteral<"tool">;
|
|
146
|
+
sequence: z.ZodNumber;
|
|
147
|
+
turnSequence: z.ZodNumber;
|
|
148
|
+
at: z.ZodString;
|
|
149
|
+
durationMs: z.ZodExactOptional<z.ZodNumber>;
|
|
150
|
+
name: z.ZodString;
|
|
151
|
+
call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
152
|
+
kind: z.ZodLiteral<"run">;
|
|
153
|
+
command: z.ZodString;
|
|
154
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
155
|
+
kind: z.ZodLiteral<"read">;
|
|
156
|
+
path: z.ZodString;
|
|
157
|
+
offset: z.ZodExactOptional<z.ZodNumber>;
|
|
158
|
+
limit: z.ZodExactOptional<z.ZodNumber>;
|
|
159
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
160
|
+
kind: z.ZodLiteral<"search">;
|
|
161
|
+
query: z.ZodString;
|
|
162
|
+
scope: z.ZodExactOptional<z.ZodEnum<{
|
|
163
|
+
content: "content";
|
|
164
|
+
files: "files";
|
|
165
|
+
web: "web";
|
|
166
|
+
}>>;
|
|
167
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
168
|
+
glob: z.ZodExactOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
170
|
+
kind: z.ZodLiteral<"fileChange">;
|
|
171
|
+
changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
172
|
+
op: z.ZodEnum<{
|
|
173
|
+
add: "add";
|
|
174
|
+
update: "update";
|
|
175
|
+
delete: "delete";
|
|
176
|
+
unspecified: "unspecified";
|
|
177
|
+
}>;
|
|
178
|
+
path: z.ZodString;
|
|
179
|
+
diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
180
|
+
added: z.ZodNumber;
|
|
181
|
+
removed: z.ZodNumber;
|
|
182
|
+
}, z.core.$strict>>>;
|
|
183
|
+
patch: z.ZodExactOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strict>>>>;
|
|
185
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
186
|
+
kind: z.ZodLiteral<"other">;
|
|
187
|
+
input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
188
|
+
json: z.ZodString;
|
|
189
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
190
|
+
}, z.core.$strict>>>;
|
|
191
|
+
}, z.core.$strict>>]>;
|
|
192
|
+
toolId: z.ZodString;
|
|
193
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
194
|
+
state: z.ZodUnion<readonly [z.ZodEnum<{
|
|
195
|
+
active: "active";
|
|
196
|
+
unsettled: "unsettled";
|
|
197
|
+
}>, z.ZodReadonly<z.ZodObject<{
|
|
198
|
+
status: z.ZodEnum<{
|
|
199
|
+
error: "error";
|
|
200
|
+
ok: "ok";
|
|
201
|
+
}>;
|
|
202
|
+
message: z.ZodExactOptional<z.ZodString>;
|
|
203
|
+
output: z.ZodExactOptional<z.ZodString>;
|
|
204
|
+
exitCode: z.ZodExactOptional<z.ZodNumber>;
|
|
205
|
+
}, z.core.$strict>>]>;
|
|
206
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
207
|
+
kind: z.ZodLiteral<"outcome">;
|
|
208
|
+
sequence: z.ZodNumber;
|
|
209
|
+
turnSequence: z.ZodNumber;
|
|
210
|
+
at: z.ZodString;
|
|
211
|
+
outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
212
|
+
kind: z.ZodLiteral<"answered">;
|
|
213
|
+
answer: z.ZodString;
|
|
214
|
+
foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
215
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
216
|
+
kind: z.ZodLiteral<"failed">;
|
|
217
|
+
diagnostic: z.ZodString;
|
|
218
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
219
|
+
kind: z.ZodLiteral<"canceled">;
|
|
220
|
+
}, z.core.$strict>>]>;
|
|
221
|
+
}, z.core.$strict>>]>>>>;
|
|
222
|
+
eventsUnavailable: z.ZodExactOptional<z.ZodString>;
|
|
223
|
+
pending: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
224
|
+
outcome: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
225
|
+
kind: z.ZodLiteral<"answered">;
|
|
226
|
+
historyId: z.ZodTemplateLiteral<`turn/${number}`>;
|
|
227
|
+
answer: z.ZodString;
|
|
228
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
229
|
+
kind: z.ZodLiteral<"failed">;
|
|
230
|
+
historyId: z.ZodTemplateLiteral<`turn/${number}`>;
|
|
231
|
+
diagnostic: z.ZodString;
|
|
232
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
233
|
+
kind: z.ZodLiteral<"canceled">;
|
|
234
|
+
historyId: z.ZodTemplateLiteral<`turn/${number}`>;
|
|
235
|
+
}, z.core.$strict>>]>>;
|
|
236
|
+
strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
|
|
237
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
238
|
+
kind: z.ZodLiteral<"unobserved">;
|
|
239
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
240
|
+
diagnostic: z.ZodString;
|
|
241
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
242
|
+
kind: z.ZodLiteral<"missing">;
|
|
243
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
244
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
245
|
+
kind: z.ZodLiteral<"unknown">;
|
|
246
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
247
|
+
}, z.core.$strict>>]>;
|
|
248
|
+
}, z.core.$strict>>]>;
|
|
249
|
+
export declare const invocationWaitResultSchema: z.ZodReadonly<z.ZodObject<{
|
|
250
|
+
kind: z.ZodLiteral<"wait">;
|
|
251
|
+
reason: z.ZodEnum<{
|
|
252
|
+
deadline: "deadline";
|
|
253
|
+
unavailable: "unavailable";
|
|
254
|
+
missing: "missing";
|
|
255
|
+
completed: "completed";
|
|
256
|
+
}>;
|
|
257
|
+
members: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
258
|
+
kind: z.ZodLiteral<"contract">;
|
|
259
|
+
observation: z.ZodReadonly<z.ZodObject<{
|
|
260
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
261
|
+
changed: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
262
|
+
presence: z.ZodExactOptional<z.ZodEnum<{
|
|
263
|
+
unknown: "unknown";
|
|
264
|
+
missing: "missing";
|
|
265
|
+
}>>;
|
|
266
|
+
terminal: z.ZodExactOptional<z.ZodEnum<{
|
|
267
|
+
claimed: "claimed";
|
|
268
|
+
abandoned: "abandoned";
|
|
269
|
+
}>>;
|
|
270
|
+
summary: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
271
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
272
|
+
title: z.ZodExactOptional<z.ZodString>;
|
|
273
|
+
phase: z.ZodEnum<{
|
|
274
|
+
claimed: "claimed";
|
|
275
|
+
abandoned: "abandoned";
|
|
276
|
+
bound: "bound";
|
|
277
|
+
}>;
|
|
278
|
+
phaseAt: z.ZodString;
|
|
279
|
+
delivered: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
280
|
+
gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
281
|
+
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
282
|
+
verdict: z.ZodEnum<{
|
|
283
|
+
missing: "missing";
|
|
284
|
+
satisfied: "satisfied";
|
|
285
|
+
unsatisfied: "unsatisfied";
|
|
286
|
+
stale: "stale";
|
|
287
|
+
}>;
|
|
288
|
+
}, z.core.$strict>>>>>;
|
|
289
|
+
attention: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
290
|
+
kind: z.ZodLiteral<"workspace-unavailable">;
|
|
291
|
+
path: z.ZodString;
|
|
292
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
293
|
+
kind: z.ZodLiteral<"workspace-unappointed">;
|
|
294
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
295
|
+
kind: z.ZodLiteral<"workspace-failed">;
|
|
296
|
+
path: z.ZodString;
|
|
297
|
+
diagnostic: z.ZodString;
|
|
298
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
299
|
+
kind: z.ZodLiteral<"merge-in-progress">;
|
|
300
|
+
path: z.ZodString;
|
|
301
|
+
conflicts: z.ZodExactOptional<z.ZodNumber>;
|
|
302
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
303
|
+
kind: z.ZodLiteral<"target-behind">;
|
|
304
|
+
behind: z.ZodNumber;
|
|
305
|
+
subject: z.ZodExactOptional<z.ZodString>;
|
|
306
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
307
|
+
kind: z.ZodLiteral<"target-unknown">;
|
|
308
|
+
subject: z.ZodExactOptional<z.ZodString>;
|
|
309
|
+
}, z.core.$strict>>]>>>>;
|
|
310
|
+
}, z.core.$strict>>>;
|
|
311
|
+
}, z.core.$strict>>;
|
|
312
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
313
|
+
kind: z.ZodLiteral<"akuma">;
|
|
314
|
+
observation: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
315
|
+
kind: z.ZodLiteral<"observed">;
|
|
316
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
317
|
+
life: z.ZodEnum<{
|
|
318
|
+
hung: "hung";
|
|
319
|
+
untidy: "untidy";
|
|
320
|
+
killed: "killed";
|
|
321
|
+
running: "running";
|
|
322
|
+
asleep: "asleep";
|
|
323
|
+
stranded: "stranded";
|
|
324
|
+
}>;
|
|
325
|
+
lastActivityAt: z.ZodExactOptional<z.ZodString>;
|
|
326
|
+
events: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
327
|
+
kind: z.ZodLiteral<"permission">;
|
|
328
|
+
sequence: z.ZodNumber;
|
|
329
|
+
turnSequence: z.ZodNumber;
|
|
330
|
+
at: z.ZodString;
|
|
331
|
+
requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
action: z.ZodString;
|
|
334
|
+
resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
335
|
+
tool: z.ZodExactOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strict>>>>;
|
|
337
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
338
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
339
|
+
kind: z.ZodLiteral<"turn">;
|
|
340
|
+
sequence: z.ZodNumber;
|
|
341
|
+
bodySequence: z.ZodNumber;
|
|
342
|
+
at: z.ZodString;
|
|
343
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
344
|
+
kind: z.ZodLiteral<"call">;
|
|
345
|
+
sequence: z.ZodNumber;
|
|
346
|
+
turnSequence: z.ZodNumber;
|
|
347
|
+
at: z.ZodString;
|
|
348
|
+
text: z.ZodString;
|
|
349
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
350
|
+
kind: z.ZodLiteral<"report">;
|
|
351
|
+
sequence: z.ZodNumber;
|
|
352
|
+
bodySequence: z.ZodNumber;
|
|
353
|
+
turnSequence: z.ZodNumber;
|
|
354
|
+
text: z.ZodString;
|
|
355
|
+
at: z.ZodString;
|
|
356
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
357
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
358
|
+
sequence: z.ZodNumber;
|
|
359
|
+
turnSequence: z.ZodNumber;
|
|
360
|
+
at: z.ZodString;
|
|
361
|
+
text: z.ZodString;
|
|
362
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
363
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
364
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
365
|
+
sequence: z.ZodNumber;
|
|
366
|
+
turnSequence: z.ZodNumber;
|
|
367
|
+
at: z.ZodString;
|
|
368
|
+
text: z.ZodString;
|
|
369
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
370
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
371
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
372
|
+
sequence: z.ZodNumber;
|
|
373
|
+
turnSequence: z.ZodNumber;
|
|
374
|
+
at: z.ZodString;
|
|
375
|
+
text: z.ZodString;
|
|
376
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
377
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
378
|
+
kind: z.ZodLiteral<"tell">;
|
|
379
|
+
sequence: z.ZodNumber;
|
|
380
|
+
at: z.ZodString;
|
|
381
|
+
tellId: z.ZodString;
|
|
382
|
+
text: z.ZodString;
|
|
383
|
+
state: z.ZodEnum<{
|
|
384
|
+
pending: "pending";
|
|
385
|
+
told: "told";
|
|
386
|
+
}>;
|
|
387
|
+
deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
388
|
+
deliveredAt: z.ZodString;
|
|
389
|
+
route: z.ZodEnum<{
|
|
390
|
+
launch: "launch";
|
|
391
|
+
live: "live";
|
|
392
|
+
}>;
|
|
393
|
+
turnSequence: z.ZodNumber;
|
|
394
|
+
}, z.core.$strict>>>>;
|
|
395
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
396
|
+
kind: z.ZodLiteral<"tool">;
|
|
397
|
+
sequence: z.ZodNumber;
|
|
398
|
+
turnSequence: z.ZodNumber;
|
|
399
|
+
at: z.ZodString;
|
|
400
|
+
durationMs: z.ZodExactOptional<z.ZodNumber>;
|
|
401
|
+
name: z.ZodString;
|
|
402
|
+
call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
403
|
+
kind: z.ZodLiteral<"run">;
|
|
404
|
+
command: z.ZodString;
|
|
405
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
406
|
+
kind: z.ZodLiteral<"read">;
|
|
407
|
+
path: z.ZodString;
|
|
408
|
+
offset: z.ZodExactOptional<z.ZodNumber>;
|
|
409
|
+
limit: z.ZodExactOptional<z.ZodNumber>;
|
|
410
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
411
|
+
kind: z.ZodLiteral<"search">;
|
|
412
|
+
query: z.ZodString;
|
|
413
|
+
scope: z.ZodExactOptional<z.ZodEnum<{
|
|
414
|
+
content: "content";
|
|
415
|
+
files: "files";
|
|
416
|
+
web: "web";
|
|
417
|
+
}>>;
|
|
418
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
419
|
+
glob: z.ZodExactOptional<z.ZodString>;
|
|
420
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
421
|
+
kind: z.ZodLiteral<"fileChange">;
|
|
422
|
+
changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
423
|
+
op: z.ZodEnum<{
|
|
424
|
+
add: "add";
|
|
425
|
+
update: "update";
|
|
426
|
+
delete: "delete";
|
|
427
|
+
unspecified: "unspecified";
|
|
428
|
+
}>;
|
|
429
|
+
path: z.ZodString;
|
|
430
|
+
diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
431
|
+
added: z.ZodNumber;
|
|
432
|
+
removed: z.ZodNumber;
|
|
433
|
+
}, z.core.$strict>>>;
|
|
434
|
+
patch: z.ZodExactOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$strict>>>>;
|
|
436
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
437
|
+
kind: z.ZodLiteral<"other">;
|
|
438
|
+
input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
439
|
+
json: z.ZodString;
|
|
440
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
441
|
+
}, z.core.$strict>>>;
|
|
442
|
+
}, z.core.$strict>>]>;
|
|
443
|
+
toolId: z.ZodString;
|
|
444
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
445
|
+
state: z.ZodUnion<readonly [z.ZodEnum<{
|
|
446
|
+
active: "active";
|
|
447
|
+
unsettled: "unsettled";
|
|
448
|
+
}>, z.ZodReadonly<z.ZodObject<{
|
|
449
|
+
status: z.ZodEnum<{
|
|
450
|
+
error: "error";
|
|
451
|
+
ok: "ok";
|
|
452
|
+
}>;
|
|
453
|
+
message: z.ZodExactOptional<z.ZodString>;
|
|
454
|
+
output: z.ZodExactOptional<z.ZodString>;
|
|
455
|
+
exitCode: z.ZodExactOptional<z.ZodNumber>;
|
|
456
|
+
}, z.core.$strict>>]>;
|
|
457
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
458
|
+
kind: z.ZodLiteral<"outcome">;
|
|
459
|
+
sequence: z.ZodNumber;
|
|
460
|
+
turnSequence: z.ZodNumber;
|
|
461
|
+
at: z.ZodString;
|
|
462
|
+
outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
463
|
+
kind: z.ZodLiteral<"answered">;
|
|
464
|
+
answer: z.ZodString;
|
|
465
|
+
foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
466
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
467
|
+
kind: z.ZodLiteral<"failed">;
|
|
468
|
+
diagnostic: z.ZodString;
|
|
469
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
470
|
+
kind: z.ZodLiteral<"canceled">;
|
|
471
|
+
}, z.core.$strict>>]>;
|
|
472
|
+
}, z.core.$strict>>]>>>>;
|
|
473
|
+
eventsUnavailable: z.ZodExactOptional<z.ZodString>;
|
|
474
|
+
pending: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
475
|
+
outcome: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
476
|
+
kind: z.ZodLiteral<"answered">;
|
|
477
|
+
historyId: z.ZodTemplateLiteral<`turn/${number}`>;
|
|
478
|
+
answer: z.ZodString;
|
|
479
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
480
|
+
kind: z.ZodLiteral<"failed">;
|
|
481
|
+
historyId: z.ZodTemplateLiteral<`turn/${number}`>;
|
|
482
|
+
diagnostic: z.ZodString;
|
|
483
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
484
|
+
kind: z.ZodLiteral<"canceled">;
|
|
485
|
+
historyId: z.ZodTemplateLiteral<`turn/${number}`>;
|
|
486
|
+
}, z.core.$strict>>]>>;
|
|
487
|
+
strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
|
|
488
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
489
|
+
kind: z.ZodLiteral<"unobserved">;
|
|
490
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
491
|
+
diagnostic: z.ZodString;
|
|
492
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
493
|
+
kind: z.ZodLiteral<"missing">;
|
|
494
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
495
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
496
|
+
kind: z.ZodLiteral<"unknown">;
|
|
497
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
498
|
+
}, z.core.$strict>>]>;
|
|
499
|
+
}, z.core.$strict>>]>>>;
|
|
500
|
+
}, z.core.$strict>>;
|
|
501
|
+
export declare const invocationWaitNormalResultSchema: z.ZodReadonly<z.ZodObject<{
|
|
502
|
+
kind: z.ZodLiteral<"wait">;
|
|
503
|
+
reason: z.ZodEnum<{
|
|
504
|
+
deadline: "deadline";
|
|
505
|
+
completed: "completed";
|
|
506
|
+
}>;
|
|
507
|
+
members: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
508
|
+
kind: z.ZodLiteral<"contract">;
|
|
509
|
+
observation: z.ZodReadonly<z.ZodObject<{
|
|
510
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
511
|
+
changed: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
512
|
+
terminal: z.ZodExactOptional<z.ZodEnum<{
|
|
513
|
+
claimed: "claimed";
|
|
514
|
+
abandoned: "abandoned";
|
|
515
|
+
}>>;
|
|
516
|
+
summary: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
517
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
518
|
+
title: z.ZodExactOptional<z.ZodString>;
|
|
519
|
+
phase: z.ZodEnum<{
|
|
520
|
+
claimed: "claimed";
|
|
521
|
+
abandoned: "abandoned";
|
|
522
|
+
bound: "bound";
|
|
523
|
+
}>;
|
|
524
|
+
phaseAt: z.ZodString;
|
|
525
|
+
delivered: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
526
|
+
gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
527
|
+
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
528
|
+
verdict: z.ZodEnum<{
|
|
529
|
+
missing: "missing";
|
|
530
|
+
satisfied: "satisfied";
|
|
531
|
+
unsatisfied: "unsatisfied";
|
|
532
|
+
stale: "stale";
|
|
533
|
+
}>;
|
|
534
|
+
}, z.core.$strict>>>>>;
|
|
535
|
+
attention: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
536
|
+
kind: z.ZodLiteral<"workspace-unavailable">;
|
|
537
|
+
path: z.ZodString;
|
|
538
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
539
|
+
kind: z.ZodLiteral<"workspace-unappointed">;
|
|
540
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
541
|
+
kind: z.ZodLiteral<"workspace-failed">;
|
|
542
|
+
path: z.ZodString;
|
|
543
|
+
diagnostic: z.ZodString;
|
|
544
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
545
|
+
kind: z.ZodLiteral<"merge-in-progress">;
|
|
546
|
+
path: z.ZodString;
|
|
547
|
+
conflicts: z.ZodExactOptional<z.ZodNumber>;
|
|
548
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
549
|
+
kind: z.ZodLiteral<"target-behind">;
|
|
550
|
+
behind: z.ZodNumber;
|
|
551
|
+
subject: z.ZodExactOptional<z.ZodString>;
|
|
552
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
553
|
+
kind: z.ZodLiteral<"target-unknown">;
|
|
554
|
+
subject: z.ZodExactOptional<z.ZodString>;
|
|
555
|
+
}, z.core.$strict>>]>>>>;
|
|
556
|
+
}, z.core.$strict>>>;
|
|
557
|
+
presence: z.ZodExactOptional<z.ZodLiteral<"unknown">>;
|
|
558
|
+
}, z.core.$strict>>;
|
|
559
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
560
|
+
kind: z.ZodLiteral<"akuma">;
|
|
561
|
+
observation: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
562
|
+
kind: z.ZodLiteral<"observed">;
|
|
563
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
564
|
+
life: z.ZodEnum<{
|
|
565
|
+
hung: "hung";
|
|
566
|
+
untidy: "untidy";
|
|
567
|
+
killed: "killed";
|
|
568
|
+
running: "running";
|
|
569
|
+
asleep: "asleep";
|
|
570
|
+
stranded: "stranded";
|
|
571
|
+
}>;
|
|
572
|
+
lastActivityAt: z.ZodExactOptional<z.ZodString>;
|
|
573
|
+
events: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
574
|
+
kind: z.ZodLiteral<"permission">;
|
|
575
|
+
sequence: z.ZodNumber;
|
|
576
|
+
turnSequence: z.ZodNumber;
|
|
577
|
+
at: z.ZodString;
|
|
578
|
+
requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
579
|
+
id: z.ZodString;
|
|
580
|
+
action: z.ZodString;
|
|
581
|
+
resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
582
|
+
tool: z.ZodExactOptional<z.ZodString>;
|
|
583
|
+
}, z.core.$strict>>>>;
|
|
584
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
585
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
586
|
+
kind: z.ZodLiteral<"turn">;
|
|
587
|
+
sequence: z.ZodNumber;
|
|
588
|
+
bodySequence: z.ZodNumber;
|
|
589
|
+
at: z.ZodString;
|
|
590
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
591
|
+
kind: z.ZodLiteral<"call">;
|
|
592
|
+
sequence: z.ZodNumber;
|
|
593
|
+
turnSequence: z.ZodNumber;
|
|
594
|
+
at: z.ZodString;
|
|
595
|
+
text: z.ZodString;
|
|
596
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
597
|
+
kind: z.ZodLiteral<"report">;
|
|
598
|
+
sequence: z.ZodNumber;
|
|
599
|
+
bodySequence: z.ZodNumber;
|
|
600
|
+
turnSequence: z.ZodNumber;
|
|
601
|
+
text: z.ZodString;
|
|
602
|
+
at: z.ZodString;
|
|
603
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
604
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
605
|
+
sequence: z.ZodNumber;
|
|
606
|
+
turnSequence: z.ZodNumber;
|
|
607
|
+
at: z.ZodString;
|
|
608
|
+
text: z.ZodString;
|
|
609
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
610
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
611
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
612
|
+
sequence: z.ZodNumber;
|
|
613
|
+
turnSequence: z.ZodNumber;
|
|
614
|
+
at: z.ZodString;
|
|
615
|
+
text: z.ZodString;
|
|
616
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
617
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
618
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
619
|
+
sequence: z.ZodNumber;
|
|
620
|
+
turnSequence: z.ZodNumber;
|
|
621
|
+
at: z.ZodString;
|
|
622
|
+
text: z.ZodString;
|
|
623
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
624
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
625
|
+
kind: z.ZodLiteral<"tell">;
|
|
626
|
+
sequence: z.ZodNumber;
|
|
627
|
+
at: z.ZodString;
|
|
628
|
+
tellId: z.ZodString;
|
|
629
|
+
text: z.ZodString;
|
|
630
|
+
state: z.ZodEnum<{
|
|
631
|
+
pending: "pending";
|
|
632
|
+
told: "told";
|
|
633
|
+
}>;
|
|
634
|
+
deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
635
|
+
deliveredAt: z.ZodString;
|
|
636
|
+
route: z.ZodEnum<{
|
|
637
|
+
launch: "launch";
|
|
638
|
+
live: "live";
|
|
639
|
+
}>;
|
|
640
|
+
turnSequence: z.ZodNumber;
|
|
641
|
+
}, z.core.$strict>>>>;
|
|
642
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
643
|
+
kind: z.ZodLiteral<"tool">;
|
|
644
|
+
sequence: z.ZodNumber;
|
|
645
|
+
turnSequence: z.ZodNumber;
|
|
646
|
+
at: z.ZodString;
|
|
647
|
+
durationMs: z.ZodExactOptional<z.ZodNumber>;
|
|
648
|
+
name: z.ZodString;
|
|
649
|
+
call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
650
|
+
kind: z.ZodLiteral<"run">;
|
|
651
|
+
command: z.ZodString;
|
|
652
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
653
|
+
kind: z.ZodLiteral<"read">;
|
|
654
|
+
path: z.ZodString;
|
|
655
|
+
offset: z.ZodExactOptional<z.ZodNumber>;
|
|
656
|
+
limit: z.ZodExactOptional<z.ZodNumber>;
|
|
657
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
658
|
+
kind: z.ZodLiteral<"search">;
|
|
659
|
+
query: z.ZodString;
|
|
660
|
+
scope: z.ZodExactOptional<z.ZodEnum<{
|
|
661
|
+
content: "content";
|
|
662
|
+
files: "files";
|
|
663
|
+
web: "web";
|
|
664
|
+
}>>;
|
|
665
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
666
|
+
glob: z.ZodExactOptional<z.ZodString>;
|
|
667
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
668
|
+
kind: z.ZodLiteral<"fileChange">;
|
|
669
|
+
changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
670
|
+
op: z.ZodEnum<{
|
|
671
|
+
add: "add";
|
|
672
|
+
update: "update";
|
|
673
|
+
delete: "delete";
|
|
674
|
+
unspecified: "unspecified";
|
|
675
|
+
}>;
|
|
676
|
+
path: z.ZodString;
|
|
677
|
+
diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
678
|
+
added: z.ZodNumber;
|
|
679
|
+
removed: z.ZodNumber;
|
|
680
|
+
}, z.core.$strict>>>;
|
|
681
|
+
patch: z.ZodExactOptional<z.ZodString>;
|
|
682
|
+
}, z.core.$strict>>>>;
|
|
683
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
684
|
+
kind: z.ZodLiteral<"other">;
|
|
685
|
+
input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
686
|
+
json: z.ZodString;
|
|
687
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
688
|
+
}, z.core.$strict>>>;
|
|
689
|
+
}, z.core.$strict>>]>;
|
|
690
|
+
toolId: z.ZodString;
|
|
691
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
692
|
+
state: z.ZodUnion<readonly [z.ZodEnum<{
|
|
693
|
+
active: "active";
|
|
694
|
+
unsettled: "unsettled";
|
|
695
|
+
}>, z.ZodReadonly<z.ZodObject<{
|
|
696
|
+
status: z.ZodEnum<{
|
|
697
|
+
error: "error";
|
|
698
|
+
ok: "ok";
|
|
699
|
+
}>;
|
|
700
|
+
message: z.ZodExactOptional<z.ZodString>;
|
|
701
|
+
output: z.ZodExactOptional<z.ZodString>;
|
|
702
|
+
exitCode: z.ZodExactOptional<z.ZodNumber>;
|
|
703
|
+
}, z.core.$strict>>]>;
|
|
704
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
705
|
+
kind: z.ZodLiteral<"outcome">;
|
|
706
|
+
sequence: z.ZodNumber;
|
|
707
|
+
turnSequence: z.ZodNumber;
|
|
708
|
+
at: z.ZodString;
|
|
709
|
+
outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
710
|
+
kind: z.ZodLiteral<"answered">;
|
|
711
|
+
answer: z.ZodString;
|
|
712
|
+
foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
713
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
714
|
+
kind: z.ZodLiteral<"failed">;
|
|
715
|
+
diagnostic: z.ZodString;
|
|
716
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
717
|
+
kind: z.ZodLiteral<"canceled">;
|
|
718
|
+
}, z.core.$strict>>]>;
|
|
719
|
+
}, z.core.$strict>>]>>>>;
|
|
720
|
+
eventsUnavailable: z.ZodExactOptional<z.ZodString>;
|
|
721
|
+
pending: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
722
|
+
outcome: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
723
|
+
kind: z.ZodLiteral<"answered">;
|
|
724
|
+
historyId: z.ZodTemplateLiteral<`turn/${number}`>;
|
|
725
|
+
answer: z.ZodString;
|
|
726
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
727
|
+
kind: z.ZodLiteral<"failed">;
|
|
728
|
+
historyId: z.ZodTemplateLiteral<`turn/${number}`>;
|
|
729
|
+
diagnostic: z.ZodString;
|
|
730
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
731
|
+
kind: z.ZodLiteral<"canceled">;
|
|
732
|
+
historyId: z.ZodTemplateLiteral<`turn/${number}`>;
|
|
733
|
+
}, z.core.$strict>>]>>;
|
|
734
|
+
strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
|
|
735
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
736
|
+
kind: z.ZodLiteral<"unknown">;
|
|
737
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
738
|
+
}, z.core.$strict>>]>;
|
|
739
|
+
}, z.core.$strict>>]>>>;
|
|
740
|
+
}, z.core.$strict>>;
|
|
741
|
+
export type InvocationWaitMember = z.output<typeof invocationWaitMemberSchema>;
|
|
742
|
+
export type InvocationWaitResult = z.output<typeof invocationWaitResultSchema>;
|
|
743
|
+
type WaitInput = Readonly<{
|
|
744
|
+
selectors: readonly string[];
|
|
745
|
+
repo?: Repo;
|
|
746
|
+
world?: WorldRoot;
|
|
747
|
+
completion?: "any" | "all";
|
|
748
|
+
timeoutMs?: number;
|
|
749
|
+
signal?: AbortSignal;
|
|
750
|
+
}>;
|
|
751
|
+
/** Freeze selection once, then compose native observations under one invocation deadline. */
|
|
752
|
+
export declare function waitInvocation(input: WaitInput): Promise<InvocationWaitResult>;
|
|
753
|
+
export {};
|