@goah/cli 0.11.4 → 0.13.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.
- package/dist/cli.js +165 -66
- package/dist/cli.js.map +1 -1
- package/dist/console/assets/index-3sYrDMmt.css +1 -0
- package/dist/console/assets/index-Rtc_B7cs.js +52 -0
- package/dist/console/assets/index-Rtc_B7cs.js.map +1 -0
- package/dist/console/index.html +2 -2
- package/dist/control.d.ts +13 -13
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +77 -50
- package/dist/control.js.map +1 -1
- package/dist/index.d.ts +6 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +156 -28
- package/dist/index.js.map +1 -1
- package/dist/live-config.js +2 -2
- package/dist/live-config.js.map +1 -1
- package/dist/prompt-queue.d.ts.map +1 -1
- package/dist/prompt-queue.js +5 -0
- package/dist/prompt-queue.js.map +1 -1
- package/dist/setup-wizard.d.ts +13 -2
- package/dist/setup-wizard.d.ts.map +1 -1
- package/dist/setup-wizard.js +87 -63
- package/dist/setup-wizard.js.map +1 -1
- package/dist/thread-inspect.d.ts +47 -0
- package/dist/thread-inspect.d.ts.map +1 -0
- package/dist/thread-inspect.js +78 -0
- package/dist/thread-inspect.js.map +1 -0
- package/dist/transcript.d.ts +2 -0
- package/dist/transcript.d.ts.map +1 -0
- package/dist/transcript.js +2 -0
- package/dist/transcript.js.map +1 -0
- package/dist/tui-theme.d.ts +1 -0
- package/dist/tui-theme.d.ts.map +1 -1
- package/dist/tui-theme.js +1 -0
- package/dist/tui-theme.js.map +1 -1
- package/dist/tui.d.ts +16 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +332 -80
- package/dist/tui.js.map +1 -1
- package/dist/update.d.ts +1 -0
- package/dist/update.d.ts.map +1 -1
- package/dist/update.js +15 -7
- package/dist/update.js.map +1 -1
- package/dist/web-console.d.ts +1 -1
- package/dist/web-console.d.ts.map +1 -1
- package/dist/web-console.js +27 -37
- package/dist/web-console.js.map +1 -1
- package/dist/welcome.d.ts +2 -2
- package/dist/welcome.d.ts.map +1 -1
- package/dist/welcome.js +24 -36
- package/dist/welcome.js.map +1 -1
- package/node_modules/goah-ledger-contract/dist/execution.d.ts +272 -130
- package/node_modules/goah-ledger-contract/dist/execution.d.ts.map +1 -1
- package/node_modules/goah-ledger-contract/dist/execution.js +31 -19
- package/node_modules/goah-ledger-contract/dist/execution.js.map +1 -1
- package/node_modules/goah-ledger-contract/dist/index.d.ts +1 -2
- package/node_modules/goah-ledger-contract/dist/index.d.ts.map +1 -1
- package/node_modules/goah-ledger-contract/dist/index.js +1 -2
- package/node_modules/goah-ledger-contract/dist/index.js.map +1 -1
- package/node_modules/goah-ledger-contract/dist/kernel.d.ts +1 -1
- package/node_modules/goah-ledger-contract/dist/kernel.d.ts.map +1 -1
- package/node_modules/goah-ledger-contract/dist/kernel.js +1 -1
- package/node_modules/goah-ledger-contract/dist/kernel.js.map +1 -1
- package/node_modules/goah-ledger-contract/dist/transcript.d.ts +63 -0
- package/node_modules/goah-ledger-contract/dist/transcript.d.ts.map +1 -0
- package/node_modules/goah-ledger-contract/dist/transcript.js +115 -0
- package/node_modules/goah-ledger-contract/dist/transcript.js.map +1 -0
- package/node_modules/goah-ledger-contract/package.json +3 -4
- package/node_modules/goah-ledger-sqlite/dist/index.d.ts +32 -23
- package/node_modules/goah-ledger-sqlite/dist/index.d.ts.map +1 -1
- package/node_modules/goah-ledger-sqlite/dist/index.js +764 -394
- package/node_modules/goah-ledger-sqlite/dist/index.js.map +1 -1
- package/node_modules/goah-ledger-sqlite/package.json +2 -2
- package/node_modules/goah-runner-pi/dist/configurator.d.ts.map +1 -1
- package/node_modules/goah-runner-pi/dist/configurator.js +186 -30
- package/node_modules/goah-runner-pi/dist/configurator.js.map +1 -1
- package/node_modules/goah-runner-pi/dist/credential-store.d.ts +2 -0
- package/node_modules/goah-runner-pi/dist/credential-store.d.ts.map +1 -1
- package/node_modules/goah-runner-pi/dist/credential-store.js +117 -23
- package/node_modules/goah-runner-pi/dist/credential-store.js.map +1 -1
- package/node_modules/goah-runner-pi/dist/index.d.ts +18 -6
- package/node_modules/goah-runner-pi/dist/index.d.ts.map +1 -1
- package/node_modules/goah-runner-pi/dist/index.js +97 -12
- package/node_modules/goah-runner-pi/dist/index.js.map +1 -1
- package/node_modules/goah-runner-pi/dist/pi-worker.d.ts +6 -2
- package/node_modules/goah-runner-pi/dist/pi-worker.d.ts.map +1 -1
- package/node_modules/goah-runner-pi/dist/pi-worker.js +232 -70
- package/node_modules/goah-runner-pi/dist/pi-worker.js.map +1 -1
- package/node_modules/goah-runner-pi/dist/steering-no-ack.test-fixture.d.ts +2 -0
- package/node_modules/goah-runner-pi/dist/steering-no-ack.test-fixture.d.ts.map +1 -0
- package/node_modules/goah-runner-pi/dist/steering-no-ack.test-fixture.js +3 -0
- package/node_modules/goah-runner-pi/dist/steering-no-ack.test-fixture.js.map +1 -0
- package/node_modules/goah-runner-pi/dist/steering-reject.test-fixture.d.ts +2 -0
- package/node_modules/goah-runner-pi/dist/steering-reject.test-fixture.d.ts.map +1 -0
- package/node_modules/goah-runner-pi/dist/steering-reject.test-fixture.js +5 -0
- package/node_modules/goah-runner-pi/dist/steering-reject.test-fixture.js.map +1 -0
- package/node_modules/goah-runner-pi/dist/steering-worker.test-fixture.d.ts +2 -0
- package/node_modules/goah-runner-pi/dist/steering-worker.test-fixture.d.ts.map +1 -0
- package/node_modules/goah-runner-pi/dist/steering-worker.test-fixture.js +5 -0
- package/node_modules/goah-runner-pi/dist/steering-worker.test-fixture.js.map +1 -0
- package/node_modules/goah-runner-pi/dist/test-helpers.d.ts +1 -1
- package/node_modules/goah-runner-pi/dist/test-helpers.d.ts.map +1 -1
- package/node_modules/goah-runner-pi/dist/test-helpers.js +3 -1
- package/node_modules/goah-runner-pi/dist/test-helpers.js.map +1 -1
- package/node_modules/goah-runner-pi/dist/verification-worker.d.ts.map +1 -1
- package/node_modules/goah-runner-pi/dist/verification-worker.js +3 -5
- package/node_modules/goah-runner-pi/dist/verification-worker.js.map +1 -1
- package/node_modules/goah-runner-pi/package.json +2 -2
- package/node_modules/goah-supervisor/dist/context-view.d.ts +4 -5
- package/node_modules/goah-supervisor/dist/context-view.d.ts.map +1 -1
- package/node_modules/goah-supervisor/dist/context-view.js +7 -20
- package/node_modules/goah-supervisor/dist/context-view.js.map +1 -1
- package/node_modules/goah-supervisor/dist/index.d.ts +38 -36
- package/node_modules/goah-supervisor/dist/index.d.ts.map +1 -1
- package/node_modules/goah-supervisor/dist/index.js +762 -575
- package/node_modules/goah-supervisor/dist/index.js.map +1 -1
- package/node_modules/goah-supervisor/dist/roles.d.ts +2 -1
- package/node_modules/goah-supervisor/dist/roles.d.ts.map +1 -1
- package/node_modules/goah-supervisor/dist/roles.js +20 -5
- package/node_modules/goah-supervisor/dist/roles.js.map +1 -1
- package/node_modules/goah-supervisor/dist/verification.d.ts +8 -29
- package/node_modules/goah-supervisor/dist/verification.d.ts.map +1 -1
- package/node_modules/goah-supervisor/dist/verification.js +71 -46
- package/node_modules/goah-supervisor/dist/verification.js.map +1 -1
- package/node_modules/goah-supervisor/package.json +2 -2
- package/node_modules/goah-testkit/dist/faux-runner-worker.js +16 -9
- package/node_modules/goah-testkit/dist/faux-runner-worker.js.map +1 -1
- package/node_modules/goah-testkit/dist/index.d.ts +13 -16
- package/node_modules/goah-testkit/dist/index.d.ts.map +1 -1
- package/node_modules/goah-testkit/dist/index.js +27 -44
- package/node_modules/goah-testkit/dist/index.js.map +1 -1
- package/node_modules/goah-testkit/package.json +5 -5
- package/package.json +7 -8
- package/dist/console/assets/index-BJTGvlCH.js +0 -52
- package/dist/console/assets/index-BJTGvlCH.js.map +0 -1
- package/dist/console/assets/index-msBn41Cl.css +0 -1
- package/dist/inspect.d.ts +0 -61
- package/dist/inspect.d.ts.map +0 -1
- package/dist/inspect.js +0 -110
- package/dist/inspect.js.map +0 -1
- package/dist/metrics.d.ts +0 -2
- package/dist/metrics.d.ts.map +0 -1
- package/dist/metrics.js +0 -2
- package/dist/metrics.js.map +0 -1
- package/dist/session.d.ts +0 -2
- package/dist/session.d.ts.map +0 -1
- package/dist/session.js +0 -2
- package/dist/session.js.map +0 -1
- package/node_modules/goah-ledger-contract/dist/metrics.d.ts +0 -40
- package/node_modules/goah-ledger-contract/dist/metrics.d.ts.map +0 -1
- package/node_modules/goah-ledger-contract/dist/metrics.js +0 -25
- package/node_modules/goah-ledger-contract/dist/metrics.js.map +0 -1
- package/node_modules/goah-ledger-contract/dist/session.d.ts +0 -63
- package/node_modules/goah-ledger-contract/dist/session.d.ts.map +0 -1
- package/node_modules/goah-ledger-contract/dist/session.js +0 -115
- package/node_modules/goah-ledger-contract/dist/session.js.map +0 -1
- package/node_modules/goah-testkit/dist/mock-connector-worker.d.ts +0 -2
- package/node_modules/goah-testkit/dist/mock-connector-worker.d.ts.map +0 -1
- package/node_modules/goah-testkit/dist/mock-connector-worker.js +0 -29
- package/node_modules/goah-testkit/dist/mock-connector-worker.js.map +0 -1
package/dist/welcome.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../src/welcome.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../src/welcome.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAW1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AACpC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC;AACvC,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG;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AAK,QAAQ,CAAC,KAAK,CAAC,gDAAgD,CAAC,EAAE,CAAC,CAAC;IACxG,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM;QAAE,KAAK,CAAC,IAAI,CAAC,KAAK,QAAQ,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,cAAc,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,EAAE,CAAC,CAAC;IAC9J,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,8 +1,126 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
1
|
+
import { type EventInput, type EventRecord, type EventStore, type JsonValue } from "./kernel.js";
|
|
2
|
+
export type WakeStatus = "queued" | "claimed" | "consumed" | "cancelled";
|
|
3
|
+
export type WakeTriggerStatus = "pending" | "resolved";
|
|
4
|
+
export type ScheduleStatus = "pending" | "consumed" | "cancelled" | "superseded";
|
|
5
5
|
export type GoalPhase = "active" | "paused" | "blocked" | "complete";
|
|
6
|
+
export type TurnStatus = "in_progress" | "completed" | "failed" | "interrupted";
|
|
7
|
+
export type TurnSourceKind = "human" | "goal" | "system";
|
|
8
|
+
export type SpecialistRole = "verifier" | "audit";
|
|
9
|
+
export type ExecutionBinding = {
|
|
10
|
+
bindingKind: "human";
|
|
11
|
+
agent: "ceo";
|
|
12
|
+
goalId: null;
|
|
13
|
+
specialistRole: null;
|
|
14
|
+
} | {
|
|
15
|
+
bindingKind: "goal";
|
|
16
|
+
agent: string;
|
|
17
|
+
goalId: string;
|
|
18
|
+
specialistRole: null;
|
|
19
|
+
} | {
|
|
20
|
+
bindingKind: "specialist";
|
|
21
|
+
agent: string;
|
|
22
|
+
goalId: null;
|
|
23
|
+
specialistRole: SpecialistRole;
|
|
24
|
+
};
|
|
25
|
+
export type ScheduleBinding = Exclude<ExecutionBinding, {
|
|
26
|
+
bindingKind: "human";
|
|
27
|
+
}>;
|
|
28
|
+
export type MailRoute = {
|
|
29
|
+
routeKind: "goal";
|
|
30
|
+
goalId: string;
|
|
31
|
+
specialistRole: null;
|
|
32
|
+
} | {
|
|
33
|
+
routeKind: "human_inbox";
|
|
34
|
+
goalId: null;
|
|
35
|
+
specialistRole: null;
|
|
36
|
+
} | {
|
|
37
|
+
routeKind: "human_request";
|
|
38
|
+
goalId: null;
|
|
39
|
+
specialistRole: null;
|
|
40
|
+
} | {
|
|
41
|
+
routeKind: "specialist_inbox";
|
|
42
|
+
goalId: null;
|
|
43
|
+
specialistRole: SpecialistRole;
|
|
44
|
+
};
|
|
45
|
+
export declare function humanBinding(): Extract<ExecutionBinding, {
|
|
46
|
+
bindingKind: "human";
|
|
47
|
+
}>;
|
|
48
|
+
export declare function goalExecutionBinding(agent: string, goalId: string): Extract<ExecutionBinding, {
|
|
49
|
+
bindingKind: "goal";
|
|
50
|
+
}>;
|
|
51
|
+
export declare function specialistBinding(agent: string, role: SpecialistRole): Extract<ExecutionBinding, {
|
|
52
|
+
bindingKind: "specialist";
|
|
53
|
+
}>;
|
|
54
|
+
export declare function goalRoute(goalId: string): Extract<MailRoute, {
|
|
55
|
+
routeKind: "goal";
|
|
56
|
+
}>;
|
|
57
|
+
export declare function humanInboxRoute(): Extract<MailRoute, {
|
|
58
|
+
routeKind: "human_inbox";
|
|
59
|
+
}>;
|
|
60
|
+
export declare function humanRequestRoute(): Extract<MailRoute, {
|
|
61
|
+
routeKind: "human_request";
|
|
62
|
+
}>;
|
|
63
|
+
export declare function specialistInboxRoute(role: SpecialistRole): Extract<MailRoute, {
|
|
64
|
+
routeKind: "specialist_inbox";
|
|
65
|
+
}>;
|
|
66
|
+
export type TurnItemType = "user_message" | "assistant_message" | "reasoning" | "tool_call" | "tool_result" | "plan" | "handoff";
|
|
67
|
+
export type TurnItemStatus = "in_progress" | "completed" | "failed";
|
|
68
|
+
export interface ThreadSnapshot {
|
|
69
|
+
id: string;
|
|
70
|
+
agent: string;
|
|
71
|
+
parentThreadId: string | null;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
updatedAt: string;
|
|
74
|
+
}
|
|
75
|
+
export type TurnBinding = {
|
|
76
|
+
bindingKind: "human";
|
|
77
|
+
goalId: null;
|
|
78
|
+
goalRevision: null;
|
|
79
|
+
specialistRole: null;
|
|
80
|
+
} | {
|
|
81
|
+
bindingKind: "goal";
|
|
82
|
+
goalId: string;
|
|
83
|
+
goalRevision: number;
|
|
84
|
+
specialistRole: null;
|
|
85
|
+
} | {
|
|
86
|
+
bindingKind: "specialist";
|
|
87
|
+
goalId: null;
|
|
88
|
+
goalRevision: null;
|
|
89
|
+
specialistRole: SpecialistRole;
|
|
90
|
+
};
|
|
91
|
+
export declare function humanTurnBinding(): Extract<TurnBinding, {
|
|
92
|
+
bindingKind: "human";
|
|
93
|
+
}>;
|
|
94
|
+
export declare function goalTurnBinding(goalId: string, goalRevision: number): Extract<TurnBinding, {
|
|
95
|
+
bindingKind: "goal";
|
|
96
|
+
}>;
|
|
97
|
+
export declare function specialistTurnBinding(role: SpecialistRole): Extract<TurnBinding, {
|
|
98
|
+
bindingKind: "specialist";
|
|
99
|
+
}>;
|
|
100
|
+
export type TurnSnapshot = TurnBinding & {
|
|
101
|
+
id: string;
|
|
102
|
+
threadId: string;
|
|
103
|
+
source: TurnSourceKind;
|
|
104
|
+
status: TurnStatus;
|
|
105
|
+
attempt: number;
|
|
106
|
+
error: JsonValue | null;
|
|
107
|
+
startedAt: string;
|
|
108
|
+
endedAt: string | null;
|
|
109
|
+
leaseUntil: string | null;
|
|
110
|
+
leaseToken: string | null;
|
|
111
|
+
runnerPid: number | null;
|
|
112
|
+
runnerProfileId?: string;
|
|
113
|
+
};
|
|
114
|
+
export interface TurnItemSnapshot {
|
|
115
|
+
id: string;
|
|
116
|
+
turnId: string;
|
|
117
|
+
ordinal: number;
|
|
118
|
+
type: TurnItemType;
|
|
119
|
+
status: TurnItemStatus;
|
|
120
|
+
data: JsonValue;
|
|
121
|
+
createdAt: string;
|
|
122
|
+
completedAt: string | null;
|
|
123
|
+
}
|
|
6
124
|
export interface GoalSnapshot {
|
|
7
125
|
id: string;
|
|
8
126
|
parentId: string | null;
|
|
@@ -13,6 +131,32 @@ export interface GoalSnapshot {
|
|
|
13
131
|
phase: GoalPhase;
|
|
14
132
|
revision: number;
|
|
15
133
|
}
|
|
134
|
+
export type GoalChangeOperation = "create" | "revise" | "pause" | "resume" | "block" | "complete" | "reassign";
|
|
135
|
+
export type GoalChangeAuthority = {
|
|
136
|
+
kind: "human";
|
|
137
|
+
} | {
|
|
138
|
+
kind: "parent_goal";
|
|
139
|
+
goalId: string;
|
|
140
|
+
goalRevision: number;
|
|
141
|
+
} | {
|
|
142
|
+
kind: "system";
|
|
143
|
+
reason: string;
|
|
144
|
+
};
|
|
145
|
+
export interface GoalChangeMetadata {
|
|
146
|
+
operation: GoalChangeOperation;
|
|
147
|
+
reason: string;
|
|
148
|
+
evidence: number[];
|
|
149
|
+
authority?: GoalChangeAuthority;
|
|
150
|
+
sourceTurnId?: string;
|
|
151
|
+
sourceWakeId?: string;
|
|
152
|
+
idempotencyKey?: string;
|
|
153
|
+
}
|
|
154
|
+
export interface GoalChangedData extends GoalChangeMetadata {
|
|
155
|
+
version: 1;
|
|
156
|
+
previousRevision: number | null;
|
|
157
|
+
snapshot: GoalSnapshot;
|
|
158
|
+
authority: GoalChangeAuthority;
|
|
159
|
+
}
|
|
16
160
|
export interface WorkRecordSnapshot {
|
|
17
161
|
goalId: string;
|
|
18
162
|
recordRevision: number;
|
|
@@ -20,7 +164,7 @@ export interface WorkRecordSnapshot {
|
|
|
20
164
|
content: string;
|
|
21
165
|
updatedBy: string;
|
|
22
166
|
updatedInTurn: string;
|
|
23
|
-
|
|
167
|
+
sourceWakeId: string | null;
|
|
24
168
|
updatedAt: string;
|
|
25
169
|
reason: string;
|
|
26
170
|
evidence: number[];
|
|
@@ -34,7 +178,7 @@ export interface WorkRecordUpdateRequest {
|
|
|
34
178
|
reason: string;
|
|
35
179
|
evidence: number[];
|
|
36
180
|
turnId: string;
|
|
37
|
-
|
|
181
|
+
sourceWakeId?: string;
|
|
38
182
|
}
|
|
39
183
|
export interface WorkRecordDiff {
|
|
40
184
|
goalId: string;
|
|
@@ -42,38 +186,47 @@ export interface WorkRecordDiff {
|
|
|
42
186
|
toRevision: number;
|
|
43
187
|
text: string;
|
|
44
188
|
}
|
|
45
|
-
export
|
|
189
|
+
export type ScheduleSnapshot = ScheduleBinding & {
|
|
46
190
|
id: string;
|
|
47
|
-
agent: string;
|
|
48
191
|
nextWakeAt: string;
|
|
49
192
|
reason: string;
|
|
50
193
|
setBy: string;
|
|
51
|
-
|
|
52
|
-
|
|
194
|
+
status: ScheduleStatus;
|
|
195
|
+
resolvedAt: string | null;
|
|
196
|
+
};
|
|
197
|
+
export type WakeSnapshot = ExecutionBinding & {
|
|
53
198
|
id: string;
|
|
54
|
-
|
|
199
|
+
/** Initial trigger retained for display and provenance. Runtime decisions use WakeTriggerSnapshot. */
|
|
55
200
|
triggerRef: string;
|
|
56
201
|
status: WakeStatus;
|
|
57
|
-
leaseUntil: string | null;
|
|
58
202
|
attempt: number;
|
|
59
|
-
startedAt: string | null;
|
|
60
|
-
endedAt: string | null;
|
|
61
203
|
enqueuedSeq: number;
|
|
62
|
-
|
|
63
|
-
|
|
204
|
+
claimedAt: string | null;
|
|
205
|
+
consumedAt: string | null;
|
|
206
|
+
turnId: string | null;
|
|
207
|
+
};
|
|
208
|
+
export interface WakeTriggerSnapshot {
|
|
209
|
+
wakeId: string;
|
|
210
|
+
agent: string;
|
|
211
|
+
triggerRef: string;
|
|
212
|
+
source: TurnSourceKind;
|
|
213
|
+
status: WakeTriggerStatus;
|
|
214
|
+
addedAt: string;
|
|
215
|
+
resolvedAt: string | null;
|
|
64
216
|
}
|
|
65
217
|
export type MailLevel = "fyi" | "decision" | "emergency";
|
|
66
|
-
export
|
|
218
|
+
export type MailSnapshot = MailRoute & {
|
|
67
219
|
id: string;
|
|
68
220
|
to: string;
|
|
69
221
|
from: string;
|
|
70
222
|
level: MailLevel;
|
|
71
223
|
body: JsonValue;
|
|
72
224
|
readAt: string | null;
|
|
73
|
-
}
|
|
225
|
+
};
|
|
74
226
|
export interface DelegationRequest {
|
|
75
227
|
id: string;
|
|
76
228
|
parentGoalId: string;
|
|
229
|
+
expectedParentRevision: number;
|
|
77
230
|
childGoal: {
|
|
78
231
|
id: string;
|
|
79
232
|
objective: string;
|
|
@@ -84,6 +237,7 @@ export interface DelegationRequest {
|
|
|
84
237
|
brief: JsonValue;
|
|
85
238
|
reason: string;
|
|
86
239
|
evidence: number[];
|
|
240
|
+
sourceTurnId?: string;
|
|
87
241
|
}
|
|
88
242
|
export interface DelegationResult {
|
|
89
243
|
delegationId: string;
|
|
@@ -94,84 +248,85 @@ export interface DelegationResult {
|
|
|
94
248
|
export interface ReassignmentRequest {
|
|
95
249
|
id: string;
|
|
96
250
|
goalId: string;
|
|
251
|
+
expectedGoalRevision: number;
|
|
97
252
|
newOwner: string;
|
|
98
253
|
brief: JsonValue;
|
|
99
254
|
reason: string;
|
|
100
255
|
evidence: number[];
|
|
256
|
+
sourceTurnId?: string;
|
|
101
257
|
}
|
|
102
258
|
export interface ReassignmentResult {
|
|
103
259
|
reassignmentId: string;
|
|
104
260
|
goal: GoalSnapshot;
|
|
105
261
|
mail: MailSnapshot[];
|
|
106
|
-
wake: WakeSnapshot;
|
|
262
|
+
wake: WakeSnapshot | null;
|
|
107
263
|
}
|
|
108
264
|
export interface GoalCompletionRequest {
|
|
109
265
|
goalId: string;
|
|
110
266
|
revision: number;
|
|
111
267
|
reason: string;
|
|
112
268
|
evidence: number[];
|
|
269
|
+
sourceTurnId?: string;
|
|
113
270
|
}
|
|
114
|
-
export type
|
|
271
|
+
export type TeamMemberMotion = "running" | "queued" | "scheduled" | "idle" | "retired";
|
|
115
272
|
export interface TeamMemberView {
|
|
116
273
|
agent: string;
|
|
117
274
|
goalIds: string[];
|
|
118
|
-
|
|
275
|
+
motion: TeamMemberMotion;
|
|
276
|
+
lastOutcome: GoalOutcome | null;
|
|
119
277
|
lastHandoffSeq: number | null;
|
|
120
278
|
lastWakeStatus: WakeStatus | null;
|
|
121
279
|
nextWakeAt: string | null;
|
|
122
280
|
}
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
body: JsonValue;
|
|
281
|
+
export type GoalOutcome = "progress" | "waiting" | "blocked" | "completion_proposed";
|
|
282
|
+
export interface AgentHandoff {
|
|
283
|
+
outcome: GoalOutcome;
|
|
127
284
|
evidence: number[];
|
|
128
285
|
}
|
|
129
|
-
export interface
|
|
130
|
-
id: string;
|
|
131
|
-
agent: string;
|
|
132
|
-
kind: string;
|
|
133
|
-
connector: string;
|
|
134
|
-
payload: JsonValue;
|
|
135
|
-
reason: string;
|
|
136
|
-
evidence: number[];
|
|
137
|
-
gated: boolean;
|
|
138
|
-
status: ActionStatus;
|
|
139
|
-
reconciledAt: string | null;
|
|
140
|
-
externalRef: string | null;
|
|
141
|
-
auditAdvice: AuditAdvice | null;
|
|
142
|
-
adviceAcked: boolean;
|
|
143
|
-
}
|
|
144
|
-
export interface LegacyHandoff {
|
|
145
|
-
observations: string[];
|
|
146
|
-
results: string[];
|
|
147
|
-
nextSteps: string[];
|
|
148
|
-
blocker?: string;
|
|
149
|
-
material?: boolean;
|
|
150
|
-
}
|
|
151
|
-
export interface GoalHandoff {
|
|
286
|
+
export interface GoalHandoff extends AgentHandoff {
|
|
152
287
|
goalId: string;
|
|
153
288
|
goalRevision: number;
|
|
154
289
|
recordRevision: number;
|
|
155
|
-
outcome: "progress" | "waiting" | "blocked" | "completion_proposed";
|
|
156
|
-
evidence: number[];
|
|
157
290
|
}
|
|
158
|
-
export type Handoff =
|
|
159
|
-
export interface
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
291
|
+
export type Handoff = GoalHandoff;
|
|
292
|
+
export interface HandoffValidationIssue {
|
|
293
|
+
code: string;
|
|
294
|
+
message: string;
|
|
295
|
+
details?: JsonValue;
|
|
296
|
+
}
|
|
297
|
+
export type HandoffValidationResult = {
|
|
298
|
+
accepted: true;
|
|
299
|
+
fatal: false;
|
|
300
|
+
attemptId: number;
|
|
301
|
+
token: string;
|
|
302
|
+
goalId: string;
|
|
303
|
+
goalRevision: number;
|
|
304
|
+
} | {
|
|
305
|
+
accepted: false;
|
|
306
|
+
fatal: boolean;
|
|
307
|
+
attemptId: number;
|
|
308
|
+
issues: HandoffValidationIssue[];
|
|
309
|
+
};
|
|
310
|
+
export interface HandoffValidationRequest {
|
|
311
|
+
handoff: AgentHandoff;
|
|
312
|
+
candidateMessage: string;
|
|
163
313
|
}
|
|
164
|
-
export interface
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
314
|
+
export interface TurnOutput {
|
|
315
|
+
validationAttemptId: number;
|
|
316
|
+
validationToken: string;
|
|
317
|
+
handoff: AgentHandoff;
|
|
318
|
+
}
|
|
319
|
+
export interface CommittedTurnOutput {
|
|
320
|
+
handoff: GoalHandoff;
|
|
168
321
|
}
|
|
169
322
|
export interface RunnerTraceEvent {
|
|
170
323
|
type: string;
|
|
171
324
|
data: JsonValue;
|
|
172
325
|
}
|
|
173
326
|
export type AgentRole = "child" | "ceo" | "verifier" | "audit";
|
|
174
|
-
export type AgentCapability = "ledger.search" | "mail.send" | "schedule.set" | "
|
|
327
|
+
export type AgentCapability = "ledger.search" | "mail.send" | "schedule.set" | "goal.put" | "team.list" | "goal.get" | "goal.create" | "goal.work" | "goal.delegate" | "goal.reassign" | "goal.revise" | "goal.pause" | "goal.resume" | "goal.complete" | "human.request" | "work_record.list" | "work_record.read" | "work_record.history" | "work_record.diff" | "work_record.search" | "work_record.update" | "memory.append";
|
|
328
|
+
export type RunnerControlMethod = "goal.handoff.validate";
|
|
329
|
+
export type RunnerRpcMethod = AgentCapability | RunnerControlMethod;
|
|
175
330
|
export interface RunnerProfile {
|
|
176
331
|
id: string;
|
|
177
332
|
runner: string;
|
|
@@ -225,14 +380,22 @@ export interface RunnerDiagnostic {
|
|
|
225
380
|
ok: boolean;
|
|
226
381
|
name: string;
|
|
227
382
|
detail: string;
|
|
383
|
+
severity?: "warning" | "error";
|
|
228
384
|
}
|
|
229
385
|
export interface RunnerCommandResult {
|
|
230
386
|
config?: JsonValue;
|
|
231
387
|
output: string[];
|
|
388
|
+
rollback?(): Promise<void>;
|
|
389
|
+
}
|
|
390
|
+
export interface RunnerSetupTransaction {
|
|
391
|
+
config: JsonValue | null;
|
|
392
|
+
commit(): Promise<JsonValue | null>;
|
|
393
|
+
rollback(): Promise<void>;
|
|
232
394
|
}
|
|
233
395
|
export interface RunnerConfigurator {
|
|
234
396
|
describe(): RunnerManifest;
|
|
235
397
|
setup(current: JsonValue | null, interaction: RunnerSetupInteraction): Promise<JsonValue | null>;
|
|
398
|
+
beginSetup?(current: JsonValue | null, interaction: RunnerSetupInteraction): Promise<RunnerSetupTransaction>;
|
|
236
399
|
doctor(config: JsonValue, context?: {
|
|
237
400
|
root: string;
|
|
238
401
|
}): Promise<RunnerDiagnostic[]>;
|
|
@@ -245,7 +408,7 @@ export interface RunnerConfigurator {
|
|
|
245
408
|
export type TurnSource = {
|
|
246
409
|
kind: "human";
|
|
247
410
|
} | {
|
|
248
|
-
kind: "
|
|
411
|
+
kind: "goal";
|
|
249
412
|
round: number;
|
|
250
413
|
} | {
|
|
251
414
|
kind: "system";
|
|
@@ -263,19 +426,22 @@ export interface AssistantResponse {
|
|
|
263
426
|
content: string;
|
|
264
427
|
}
|
|
265
428
|
export interface RunRequest {
|
|
266
|
-
|
|
429
|
+
agent: string;
|
|
430
|
+
execution: TurnSnapshot;
|
|
431
|
+
sourceWake?: WakeSnapshot;
|
|
432
|
+
sourceWakeTriggers?: WakeTriggerSnapshot[];
|
|
267
433
|
turn: TurnContext;
|
|
268
434
|
context: JsonValue;
|
|
269
435
|
now(): string;
|
|
270
436
|
emit(event: RunnerTraceEvent): void;
|
|
271
|
-
rpc?(method:
|
|
437
|
+
rpc?(method: RunnerRpcMethod, params: JsonValue): Promise<JsonValue>;
|
|
272
438
|
}
|
|
273
|
-
export type
|
|
439
|
+
export type RunnerCandidateResult = {
|
|
274
440
|
outcome: "response";
|
|
275
441
|
response: AssistantResponse;
|
|
276
442
|
} | {
|
|
277
443
|
outcome: "handoff";
|
|
278
|
-
output:
|
|
444
|
+
output: TurnOutput;
|
|
279
445
|
} | {
|
|
280
446
|
outcome: "abnormal";
|
|
281
447
|
reason: string;
|
|
@@ -283,97 +449,76 @@ export type RunnerResult = {
|
|
|
283
449
|
export interface RunnerHandle {
|
|
284
450
|
pid: number | null;
|
|
285
451
|
begin(): void;
|
|
286
|
-
result: Promise<
|
|
452
|
+
result: Promise<RunnerCandidateResult>;
|
|
453
|
+
steer?(message: string): Promise<void>;
|
|
287
454
|
terminate(): Promise<void>;
|
|
288
455
|
}
|
|
289
456
|
export interface Runner {
|
|
290
457
|
readonly isolation: "process";
|
|
291
458
|
prepare(request: RunRequest): RunnerHandle;
|
|
292
|
-
terminateProcess(pid: number): Promise<void>;
|
|
293
|
-
}
|
|
294
|
-
export interface ConnectorCapability {
|
|
295
|
-
kind: string;
|
|
296
|
-
nativeIdempotency: boolean;
|
|
297
|
-
query: "by_idempotency_key" | "by_external_ref" | "none";
|
|
298
|
-
automaticRetry: boolean;
|
|
299
|
-
risk: "reversible" | "gated" | "irreversible";
|
|
300
|
-
}
|
|
301
|
-
export interface ConnectorManifest {
|
|
302
|
-
contractVersion: typeof CONTRACT_VERSION;
|
|
303
|
-
connector: string;
|
|
304
|
-
dryRun: boolean;
|
|
305
|
-
capabilities: ConnectorCapability[];
|
|
306
|
-
}
|
|
307
|
-
export interface ConnectorDispatchResult {
|
|
308
|
-
status: "confirmed" | "failed";
|
|
309
|
-
externalRef?: string;
|
|
310
|
-
}
|
|
311
|
-
export interface ConnectorQueryResult {
|
|
312
|
-
status: "confirmed" | "failed" | "pending";
|
|
313
|
-
externalRef?: string;
|
|
314
|
-
}
|
|
315
|
-
export interface ConnectorProcessSpec {
|
|
316
|
-
manifest: ConnectorManifest;
|
|
317
|
-
command: string;
|
|
318
|
-
args: string[];
|
|
319
|
-
env?: Record<string, string>;
|
|
320
|
-
timeoutMs?: number;
|
|
459
|
+
terminateProcess(pid: number, runnerProfileId?: string): Promise<void>;
|
|
321
460
|
}
|
|
322
461
|
export interface HandoffCommit {
|
|
323
462
|
agent: string;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
outgoingMail: MailSnapshot[];
|
|
328
|
-
schedule: ScheduleSnapshot | null;
|
|
329
|
-
}
|
|
330
|
-
export interface InteractionCommit {
|
|
331
|
-
agent: string;
|
|
332
|
-
wakeId: string;
|
|
333
|
-
mailId: string;
|
|
463
|
+
turnId: string;
|
|
464
|
+
sourceWakeId: string | null;
|
|
465
|
+
mailIds: string[];
|
|
334
466
|
ts: string;
|
|
335
|
-
|
|
467
|
+
output: CommittedTurnOutput;
|
|
468
|
+
responseItemId: string;
|
|
469
|
+
item: TurnItemSnapshot;
|
|
336
470
|
}
|
|
337
471
|
/** Standard execution modules composed on top of the generic event store. */
|
|
338
472
|
export interface Ledger extends EventStore {
|
|
339
|
-
|
|
473
|
+
putThread(thread: ThreadSnapshot, actor: string): EventRecord;
|
|
474
|
+
putTurn(turn: TurnSnapshot, actor: string): EventRecord;
|
|
475
|
+
putTurnItem(item: TurnItemSnapshot, actor: string): EventRecord;
|
|
476
|
+
thread(id: string): ThreadSnapshot | null;
|
|
477
|
+
threads(): ThreadSnapshot[];
|
|
478
|
+
turn(id: string): TurnSnapshot | null;
|
|
479
|
+
turns(threadId?: string): TurnSnapshot[];
|
|
480
|
+
turnItems(turnId: string): TurnItemSnapshot[];
|
|
481
|
+
activeTurn(threadId: string): TurnSnapshot | null;
|
|
482
|
+
putGoal(goal: GoalSnapshot, actor: string, wakeId?: string, change?: GoalChangeMetadata): EventRecord;
|
|
340
483
|
updateWorkRecord(request: WorkRecordUpdateRequest, actor: string): WorkRecordSnapshot;
|
|
341
484
|
commitDelegation(request: DelegationRequest, actor: string, wakeId?: string): DelegationResult;
|
|
342
485
|
commitReassignment(request: ReassignmentRequest, actor: string, wakeId?: string): ReassignmentResult;
|
|
343
486
|
completeGoal(request: GoalCompletionRequest, actor: string, wakeId?: string): GoalSnapshot;
|
|
344
487
|
putSchedule(schedule: ScheduleSnapshot, actor: string, wakeId?: string): EventRecord;
|
|
488
|
+
consumeSchedule(id: string, wake: WakeSnapshot, now: string): {
|
|
489
|
+
schedule: ScheduleSnapshot;
|
|
490
|
+
wake: WakeSnapshot;
|
|
491
|
+
};
|
|
492
|
+
cancelSchedule(id: string, now: string): ScheduleSnapshot;
|
|
493
|
+
supersedeSchedule(id: string, now: string): ScheduleSnapshot;
|
|
345
494
|
enqueueWake(wake: WakeSnapshot, actor: string): {
|
|
346
495
|
event: EventRecord;
|
|
347
496
|
created: boolean;
|
|
348
497
|
};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
rejectAction(id: string, approver: string, reason: string, evidence: number[]): ActionSnapshot;
|
|
360
|
-
transitionAction(id: string, status: ActionStatus, patch?: Partial<Pick<ActionSnapshot, "externalRef" | "reconciledAt">>): ActionSnapshot;
|
|
361
|
-
recoverDispatchingActions(): ActionSnapshot[];
|
|
362
|
-
putAuditAdvice(id: string, advice: Omit<AuditAdvice, "at">, wakeId?: string): ActionSnapshot;
|
|
363
|
-
ackAuditAdvice(id: string, agent: string): ActionSnapshot;
|
|
498
|
+
addWakeTrigger(wakeId: string, triggerRef: string, actor: string): WakeTriggerSnapshot;
|
|
499
|
+
claimNextWake(now: string): WakeSnapshot | null;
|
|
500
|
+
startTurnFromWake(id: string, turn: TurnSnapshot, now: string): WakeSnapshot;
|
|
501
|
+
releaseWake(id: string, now: string): WakeSnapshot;
|
|
502
|
+
cancelWake(id: string, now: string): WakeSnapshot;
|
|
503
|
+
attachTurnProcess(id: string, leaseToken: string, pid: number): TurnSnapshot;
|
|
504
|
+
renewTurnLease(id: string, leaseToken: string, leaseUntil: string, now: string): TurnSnapshot;
|
|
505
|
+
appendTurnEvent(input: EventInput, leaseToken: string): EventRecord;
|
|
506
|
+
repairTurnAttempt(id: string, reason: string, now: string, actor: string): TurnItemSnapshot[];
|
|
507
|
+
finishTurn(id: string, status: "completed" | "failed" | "interrupted", error: JsonValue | null, now: string, actor: string, mailIds?: string[]): TurnSnapshot;
|
|
364
508
|
putMail(mail: MailSnapshot, actor: string, wakeId?: string): EventRecord;
|
|
509
|
+
putMails(mail: MailSnapshot[], actor: string, wakeId?: string): EventRecord[];
|
|
365
510
|
commitHandoff(commit: HandoffCommit): EventRecord;
|
|
366
|
-
commitInteraction(commit: InteractionCommit): EventRecord;
|
|
367
511
|
dueSchedules(now: string): ScheduleSnapshot[];
|
|
368
512
|
unreadMail(agent: string): MailSnapshot[];
|
|
369
|
-
unackedAuditAdvice(agent: string): ActionSnapshot[];
|
|
370
513
|
lastEvent(actor: string, type: string): EventRecord | null;
|
|
514
|
+
lastGoalHandoff(goalId: string): EventRecord | null;
|
|
371
515
|
latestEvent(): EventRecord | null;
|
|
372
516
|
eventsForWake(wakeId: string): EventRecord[];
|
|
373
517
|
wake(id: string): WakeSnapshot | null;
|
|
374
518
|
wakeByTrigger(agent: string, triggerRef: string): WakeSnapshot | null;
|
|
519
|
+
wakeTriggers(wakeId: string): WakeTriggerSnapshot[];
|
|
520
|
+
wakeTriggersForAgent(agent: string): WakeTriggerSnapshot[];
|
|
375
521
|
queuedWakeForAgent(agent: string): WakeSnapshot | null;
|
|
376
|
-
action(id: string): ActionSnapshot | null;
|
|
377
522
|
goalsForOwner(owner: string): GoalSnapshot[];
|
|
378
523
|
goal(id: string): GoalSnapshot | null;
|
|
379
524
|
workRecord(goalId: string): WorkRecordSnapshot | null;
|
|
@@ -382,21 +527,18 @@ export interface Ledger extends EventStore {
|
|
|
382
527
|
searchWorkRecords(query: string, limit?: number): WorkRecordSnapshot[];
|
|
383
528
|
triggeringMail(): MailSnapshot[];
|
|
384
529
|
searchEvents(query: string, limit?: number): EventRecord[];
|
|
385
|
-
metricSamples(goalId: string): MetricSample[];
|
|
386
530
|
goals(): GoalSnapshot[];
|
|
387
531
|
workRecords(): WorkRecordSnapshot[];
|
|
388
532
|
schedules(): ScheduleSnapshot[];
|
|
389
533
|
wakes(): WakeSnapshot[];
|
|
390
|
-
actions(): ActionSnapshot[];
|
|
391
534
|
mailbox(): MailSnapshot[];
|
|
392
535
|
rebuildProjections(): void;
|
|
393
536
|
close(): void;
|
|
394
537
|
}
|
|
395
538
|
export declare function assertWakeTransition(from: WakeStatus, to: WakeStatus): void;
|
|
396
|
-
export declare function assertActionTransition(from: ActionStatus, to: ActionStatus): void;
|
|
397
539
|
export declare function assertGoalTransition(from: GoalPhase, to: GoalPhase): void;
|
|
398
540
|
export declare function assertHandoff(value: Handoff): void;
|
|
399
|
-
export declare function
|
|
541
|
+
export declare function assertAgentHandoff(value: AgentHandoff): void;
|
|
542
|
+
export declare function assertTurnOutput(value: TurnOutput): void;
|
|
400
543
|
export declare function assertGoalSnapshot(value: GoalSnapshot): void;
|
|
401
|
-
export declare function capabilityFor(manifest: ConnectorManifest, kind: string): ConnectorCapability | null;
|
|
402
544
|
//# sourceMappingURL=execution.d.ts.map
|