@claudexor/schema 3.20.1 → 3.23.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/agent-capabilities.d.ts +9 -9
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +2 -1
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/command-list.d.ts +108 -37
- package/dist/command-list.d.ts.map +1 -1
- package/dist/command-list.js +17 -35
- package/dist/command-list.js.map +1 -1
- package/dist/command-summary.d.ts +8 -0
- package/dist/command-summary.d.ts.map +1 -0
- package/dist/command-summary.js +33 -0
- package/dist/command-summary.js.map +1 -0
- package/dist/continuation-admission.d.ts +41 -0
- package/dist/continuation-admission.d.ts.map +1 -0
- package/dist/continuation-admission.js +136 -0
- package/dist/continuation-admission.js.map +1 -0
- package/dist/control-operation-responses.d.ts +357 -0
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +2 -0
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +726 -0
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-execution.js +1 -1
- package/dist/control-run-execution.js.map +1 -1
- package/dist/control-thread-requests.d.ts +17 -3
- package/dist/control-thread-requests.d.ts.map +1 -1
- package/dist/control-thread-requests.js +24 -1
- package/dist/control-thread-requests.js.map +1 -1
- package/dist/control.d.ts +347 -22
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +32 -4
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +144 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/credential-profile.d.ts +1 -1
- package/dist/credential-profile.js +1 -1
- package/dist/daemon-status.d.ts +177 -0
- package/dist/daemon-status.d.ts.map +1 -0
- package/dist/daemon-status.js +27 -0
- package/dist/daemon-status.js.map +1 -0
- package/dist/decision.d.ts +12 -0
- package/dist/decision.d.ts.map +1 -1
- package/dist/effort.d.ts +33 -12
- package/dist/effort.d.ts.map +1 -1
- package/dist/effort.js +43 -13
- package/dist/effort.js.map +1 -1
- package/dist/events.d.ts +4 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +11 -0
- package/dist/events.js.map +1 -1
- package/dist/harness.d.ts +16 -9
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +3 -3
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +155 -0
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/mcp-run-result.js +38 -0
- package/dist/mcp-run-result.js.map +1 -1
- package/dist/project.d.ts +2 -2
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +3 -3
- package/dist/project.js.map +1 -1
- package/dist/quota.d.ts +252 -0
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +42 -17
- package/dist/quota.js.map +1 -1
- package/dist/raw.d.ts +1 -1
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +0 -1
- package/dist/raw.js.map +1 -1
- package/dist/run-continuation.d.ts +166 -0
- package/dist/run-continuation.d.ts.map +1 -0
- package/dist/run-continuation.js +65 -0
- package/dist/run-continuation.js.map +1 -0
- package/dist/run-continuity.d.ts +215 -0
- package/dist/run-continuity.d.ts.map +1 -0
- package/dist/run-continuity.js +170 -0
- package/dist/run-continuity.js.map +1 -0
- package/dist/run-facts.d.ts +7 -0
- package/dist/run-facts.d.ts.map +1 -1
- package/dist/run-list-page.d.ts +74 -0
- package/dist/run-list-page.d.ts.map +1 -0
- package/dist/run-list-page.js +85 -0
- package/dist/run-list-page.js.map +1 -0
- package/dist/run-strategy.d.ts +18 -0
- package/dist/run-strategy.d.ts.map +1 -1
- package/dist/run-strategy.js +15 -0
- package/dist/run-strategy.js.map +1 -1
- package/dist/status-projection.d.ts +8 -1
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +22 -1
- package/dist/status-projection.js.map +1 -1
- package/dist/telemetry.d.ts +33 -3
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +3 -3
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +24 -10
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +14 -4
- package/dist/thread.js.map +1 -1
- package/dist/work-report.d.ts +18 -4
- package/dist/work-report.d.ts.map +1 -1
- package/dist/work-report.js +26 -5
- package/dist/work-report.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +5 -4
- package/generated/CommandListQuery.schema.json +204 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +21 -6
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +21 -6
- package/generated/ControlDaemonStatus.schema.json +150 -0
- package/generated/ControlHarnessListResponse.schema.json +1 -1
- package/generated/ControlHarnessSettingsPatch.schema.json +1 -1
- package/generated/ControlProjectRemoveReceipt.schema.json +1 -1
- package/generated/ControlQuotaResponse.schema.json +20 -5
- package/generated/ControlRetainedEnvelope.schema.json +63 -0
- package/generated/ControlRunAgainDraft.schema.json +17 -1
- package/generated/ControlRunDetail.schema.json +406 -1
- package/generated/ControlRunListResponse.schema.json +406 -1
- package/generated/ControlRunStartRequest.schema.json +17 -1
- package/generated/ControlRunSummary.schema.json +406 -1
- package/generated/ControlSettingsSnapshot.schema.json +1 -1
- package/generated/ControlSettingsUpdateRequest.schema.json +1 -1
- package/generated/ControlThread.schema.json +11 -2
- package/generated/ControlThreadCreateRequest.schema.json +7 -2
- package/generated/ControlThreadDetail.schema.json +25 -3
- package/generated/ControlThreadListResponse.schema.json +11 -2
- package/generated/ControlThreadTurnRequest.schema.json +4 -0
- package/generated/DecisionRecord.schema.json +14 -1
- package/generated/EnvelopeCustody.schema.json +195 -0
- package/generated/GlobalConfig.schema.json +1 -1
- package/generated/HarnessEvent.schema.json +7 -2
- package/generated/HarnessManifest.schema.json +1 -1
- package/generated/HarnessStatusDto.schema.json +1 -1
- package/generated/McpRunHandleResult.schema.json +109 -1
- package/generated/McpRunToolResult.schema.json +14 -1
- package/generated/RunContinuityReceipt.schema.json +182 -0
- package/generated/RunEvent.schema.json +3 -1
- package/generated/RunFacts.schema.json +14 -1
- package/generated/RunListQuery.schema.json +66 -0
- package/generated/RunResumable.schema.json +153 -0
- package/generated/RunTelemetry.schema.json +14 -1
- package/generated/SessionCapsule.schema.json +78 -0
- package/generated/TaskContract.schema.json +1 -1
- package/generated/Thread.schema.json +12 -3
- package/package.json +2 -2
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
export declare const DaemonMemoryFacts: z.ZodObject<{
|
|
3
|
+
heapUsedBytes: z.ZodNumber;
|
|
4
|
+
heapLimitBytes: z.ZodNumber;
|
|
5
|
+
rssBytes: z.ZodNumber;
|
|
6
|
+
externalBytes: z.ZodNumber;
|
|
7
|
+
nodeHeapArgs: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
atAdmission: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
heapUsedBytes: z.ZodNumber;
|
|
10
|
+
rssBytes: z.ZodNumber;
|
|
11
|
+
at: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
heapUsedBytes: number;
|
|
14
|
+
rssBytes: number;
|
|
15
|
+
at: string;
|
|
16
|
+
}, {
|
|
17
|
+
heapUsedBytes: number;
|
|
18
|
+
rssBytes: number;
|
|
19
|
+
at: string;
|
|
20
|
+
}>>;
|
|
21
|
+
sampledAt: z.ZodString;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
heapUsedBytes: number;
|
|
24
|
+
heapLimitBytes: number;
|
|
25
|
+
rssBytes: number;
|
|
26
|
+
externalBytes: number;
|
|
27
|
+
nodeHeapArgs: string[];
|
|
28
|
+
atAdmission: {
|
|
29
|
+
heapUsedBytes: number;
|
|
30
|
+
rssBytes: number;
|
|
31
|
+
at: string;
|
|
32
|
+
} | null;
|
|
33
|
+
sampledAt: string;
|
|
34
|
+
}, {
|
|
35
|
+
heapUsedBytes: number;
|
|
36
|
+
heapLimitBytes: number;
|
|
37
|
+
rssBytes: number;
|
|
38
|
+
externalBytes: number;
|
|
39
|
+
nodeHeapArgs: string[];
|
|
40
|
+
atAdmission: {
|
|
41
|
+
heapUsedBytes: number;
|
|
42
|
+
rssBytes: number;
|
|
43
|
+
at: string;
|
|
44
|
+
} | null;
|
|
45
|
+
sampledAt: string;
|
|
46
|
+
}>;
|
|
47
|
+
export type DaemonMemoryFacts = z.infer<typeof DaemonMemoryFacts>;
|
|
48
|
+
/** Authenticated process facts, separate from the strict protocol handshake. */
|
|
49
|
+
export declare const ControlDaemonStatus: z.ZodObject<{
|
|
50
|
+
ok: z.ZodLiteral<true>;
|
|
51
|
+
uptime_ms: z.ZodNumber;
|
|
52
|
+
queue: z.ZodNumber;
|
|
53
|
+
running: z.ZodBoolean;
|
|
54
|
+
active: z.ZodNumber;
|
|
55
|
+
jobs: z.ZodNumber;
|
|
56
|
+
stopping: z.ZodBoolean;
|
|
57
|
+
servingMode: z.ZodEnum<["normal", "recovery_only"]>;
|
|
58
|
+
capacity: z.ZodObject<{
|
|
59
|
+
maxConcurrent: z.ZodNumber;
|
|
60
|
+
maxCouncilMembers: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
maxDeepScanWidth: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
maxParallelCandidates: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
maxConcurrent: number;
|
|
65
|
+
maxCouncilMembers?: number | undefined;
|
|
66
|
+
maxDeepScanWidth?: number | undefined;
|
|
67
|
+
maxParallelCandidates?: number | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
maxConcurrent: number;
|
|
70
|
+
maxCouncilMembers?: number | undefined;
|
|
71
|
+
maxDeepScanWidth?: number | undefined;
|
|
72
|
+
maxParallelCandidates?: number | undefined;
|
|
73
|
+
}>;
|
|
74
|
+
memory: z.ZodObject<{
|
|
75
|
+
heapUsedBytes: z.ZodNumber;
|
|
76
|
+
heapLimitBytes: z.ZodNumber;
|
|
77
|
+
rssBytes: z.ZodNumber;
|
|
78
|
+
externalBytes: z.ZodNumber;
|
|
79
|
+
nodeHeapArgs: z.ZodArray<z.ZodString, "many">;
|
|
80
|
+
atAdmission: z.ZodNullable<z.ZodObject<{
|
|
81
|
+
heapUsedBytes: z.ZodNumber;
|
|
82
|
+
rssBytes: z.ZodNumber;
|
|
83
|
+
at: z.ZodString;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
heapUsedBytes: number;
|
|
86
|
+
rssBytes: number;
|
|
87
|
+
at: string;
|
|
88
|
+
}, {
|
|
89
|
+
heapUsedBytes: number;
|
|
90
|
+
rssBytes: number;
|
|
91
|
+
at: string;
|
|
92
|
+
}>>;
|
|
93
|
+
sampledAt: z.ZodString;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
heapUsedBytes: number;
|
|
96
|
+
heapLimitBytes: number;
|
|
97
|
+
rssBytes: number;
|
|
98
|
+
externalBytes: number;
|
|
99
|
+
nodeHeapArgs: string[];
|
|
100
|
+
atAdmission: {
|
|
101
|
+
heapUsedBytes: number;
|
|
102
|
+
rssBytes: number;
|
|
103
|
+
at: string;
|
|
104
|
+
} | null;
|
|
105
|
+
sampledAt: string;
|
|
106
|
+
}, {
|
|
107
|
+
heapUsedBytes: number;
|
|
108
|
+
heapLimitBytes: number;
|
|
109
|
+
rssBytes: number;
|
|
110
|
+
externalBytes: number;
|
|
111
|
+
nodeHeapArgs: string[];
|
|
112
|
+
atAdmission: {
|
|
113
|
+
heapUsedBytes: number;
|
|
114
|
+
rssBytes: number;
|
|
115
|
+
at: string;
|
|
116
|
+
} | null;
|
|
117
|
+
sampledAt: string;
|
|
118
|
+
}>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
ok: true;
|
|
121
|
+
uptime_ms: number;
|
|
122
|
+
queue: number;
|
|
123
|
+
running: boolean;
|
|
124
|
+
active: number;
|
|
125
|
+
jobs: number;
|
|
126
|
+
stopping: boolean;
|
|
127
|
+
servingMode: "normal" | "recovery_only";
|
|
128
|
+
capacity: {
|
|
129
|
+
maxConcurrent: number;
|
|
130
|
+
maxCouncilMembers?: number | undefined;
|
|
131
|
+
maxDeepScanWidth?: number | undefined;
|
|
132
|
+
maxParallelCandidates?: number | undefined;
|
|
133
|
+
};
|
|
134
|
+
memory: {
|
|
135
|
+
heapUsedBytes: number;
|
|
136
|
+
heapLimitBytes: number;
|
|
137
|
+
rssBytes: number;
|
|
138
|
+
externalBytes: number;
|
|
139
|
+
nodeHeapArgs: string[];
|
|
140
|
+
atAdmission: {
|
|
141
|
+
heapUsedBytes: number;
|
|
142
|
+
rssBytes: number;
|
|
143
|
+
at: string;
|
|
144
|
+
} | null;
|
|
145
|
+
sampledAt: string;
|
|
146
|
+
};
|
|
147
|
+
}, {
|
|
148
|
+
ok: true;
|
|
149
|
+
uptime_ms: number;
|
|
150
|
+
queue: number;
|
|
151
|
+
running: boolean;
|
|
152
|
+
active: number;
|
|
153
|
+
jobs: number;
|
|
154
|
+
stopping: boolean;
|
|
155
|
+
servingMode: "normal" | "recovery_only";
|
|
156
|
+
capacity: {
|
|
157
|
+
maxConcurrent: number;
|
|
158
|
+
maxCouncilMembers?: number | undefined;
|
|
159
|
+
maxDeepScanWidth?: number | undefined;
|
|
160
|
+
maxParallelCandidates?: number | undefined;
|
|
161
|
+
};
|
|
162
|
+
memory: {
|
|
163
|
+
heapUsedBytes: number;
|
|
164
|
+
heapLimitBytes: number;
|
|
165
|
+
rssBytes: number;
|
|
166
|
+
externalBytes: number;
|
|
167
|
+
nodeHeapArgs: string[];
|
|
168
|
+
atAdmission: {
|
|
169
|
+
heapUsedBytes: number;
|
|
170
|
+
rssBytes: number;
|
|
171
|
+
at: string;
|
|
172
|
+
} | null;
|
|
173
|
+
sampledAt: string;
|
|
174
|
+
};
|
|
175
|
+
}>;
|
|
176
|
+
export type ControlDaemonStatus = z.infer<typeof ControlDaemonStatus>;
|
|
177
|
+
//# sourceMappingURL=daemon-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daemon-status.d.ts","sourceRoot":"","sources":["../src/daemon-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,gFAAgF;AAChF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
import { IsoTimestamp } from "./primitives.js";
|
|
3
|
+
import { RuntimeConcurrencyState } from "./runtime-concurrency.js";
|
|
4
|
+
const bytes = z.number().int().nonnegative();
|
|
5
|
+
export const DaemonMemoryFacts = z.object({
|
|
6
|
+
heapUsedBytes: bytes,
|
|
7
|
+
heapLimitBytes: bytes,
|
|
8
|
+
rssBytes: bytes,
|
|
9
|
+
externalBytes: bytes,
|
|
10
|
+
nodeHeapArgs: z.array(z.string()),
|
|
11
|
+
atAdmission: z.object({ heapUsedBytes: bytes, rssBytes: bytes, at: IsoTimestamp }).nullable(),
|
|
12
|
+
sampledAt: IsoTimestamp,
|
|
13
|
+
});
|
|
14
|
+
/** Authenticated process facts, separate from the strict protocol handshake. */
|
|
15
|
+
export const ControlDaemonStatus = z.object({
|
|
16
|
+
ok: z.literal(true),
|
|
17
|
+
uptime_ms: z.number().nonnegative(),
|
|
18
|
+
queue: z.number().int().nonnegative(),
|
|
19
|
+
running: z.boolean(),
|
|
20
|
+
active: z.number().int().nonnegative(),
|
|
21
|
+
jobs: z.number().int().nonnegative(),
|
|
22
|
+
stopping: z.boolean(),
|
|
23
|
+
servingMode: z.enum(["normal", "recovery_only"]),
|
|
24
|
+
capacity: RuntimeConcurrencyState.shape.effective.partial().required({ maxConcurrent: true }),
|
|
25
|
+
memory: DaemonMemoryFacts,
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=daemon-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daemon-status.js","sourceRoot":"","sources":["../src/daemon-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;AAC7C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,KAAK;IACrB,QAAQ,EAAE,KAAK;IACf,aAAa,EAAE,KAAK;IACpB,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7F,SAAS,EAAE,YAAY;CACxB,CAAC,CAAC;AAGH,gFAAgF;AAChF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IAChD,QAAQ,EAAE,uBAAuB,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;IAC7F,MAAM,EAAE,iBAAiB;CAC1B,CAAC,CAAC"}
|
package/dist/decision.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export declare const RunOutcomeFacts: z.ZodObject<{
|
|
|
76
76
|
locator?: string | null | undefined;
|
|
77
77
|
description: string;
|
|
78
78
|
}>, "many">>;
|
|
79
|
+
unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
|
|
79
80
|
}, "strip", z.ZodTypeAny, {
|
|
80
81
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
81
82
|
source: "absent" | "constrained" | "validated";
|
|
@@ -84,6 +85,7 @@ export declare const RunOutcomeFacts: z.ZodObject<{
|
|
|
84
85
|
locator: string | null;
|
|
85
86
|
description: string;
|
|
86
87
|
}[] | undefined;
|
|
88
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
87
89
|
}, {
|
|
88
90
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
89
91
|
source: "absent" | "constrained" | "validated";
|
|
@@ -92,6 +94,7 @@ export declare const RunOutcomeFacts: z.ZodObject<{
|
|
|
92
94
|
locator?: string | null | undefined;
|
|
93
95
|
description: string;
|
|
94
96
|
}[] | undefined;
|
|
97
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
95
98
|
}>>;
|
|
96
99
|
}, "strict", z.ZodTypeAny, {
|
|
97
100
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
@@ -108,6 +111,7 @@ export declare const RunOutcomeFacts: z.ZodObject<{
|
|
|
108
111
|
locator: string | null;
|
|
109
112
|
description: string;
|
|
110
113
|
}[] | undefined;
|
|
114
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
111
115
|
} | undefined;
|
|
112
116
|
}, {
|
|
113
117
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
@@ -124,6 +128,7 @@ export declare const RunOutcomeFacts: z.ZodObject<{
|
|
|
124
128
|
locator?: string | null | undefined;
|
|
125
129
|
description: string;
|
|
126
130
|
}[] | undefined;
|
|
131
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
127
132
|
} | undefined;
|
|
128
133
|
}>;
|
|
129
134
|
export type RunOutcomeFacts = z.infer<typeof RunOutcomeFacts>;
|
|
@@ -222,6 +227,7 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
222
227
|
locator?: string | null | undefined;
|
|
223
228
|
description: string;
|
|
224
229
|
}>, "many">>;
|
|
230
|
+
unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
|
|
225
231
|
}, "strip", z.ZodTypeAny, {
|
|
226
232
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
227
233
|
source: "absent" | "constrained" | "validated";
|
|
@@ -230,6 +236,7 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
230
236
|
locator: string | null;
|
|
231
237
|
description: string;
|
|
232
238
|
}[] | undefined;
|
|
239
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
233
240
|
}, {
|
|
234
241
|
state: "completed" | "incomplete" | "needs_input" | "unverified";
|
|
235
242
|
source: "absent" | "constrained" | "validated";
|
|
@@ -238,6 +245,7 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
238
245
|
locator?: string | null | undefined;
|
|
239
246
|
description: string;
|
|
240
247
|
}[] | undefined;
|
|
248
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
241
249
|
}>>;
|
|
242
250
|
}, "strict", z.ZodTypeAny, {
|
|
243
251
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
@@ -254,6 +262,7 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
254
262
|
locator: string | null;
|
|
255
263
|
description: string;
|
|
256
264
|
}[] | undefined;
|
|
265
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
257
266
|
} | undefined;
|
|
258
267
|
}, {
|
|
259
268
|
lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
|
|
@@ -270,6 +279,7 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
270
279
|
locator?: string | null | undefined;
|
|
271
280
|
description: string;
|
|
272
281
|
}[] | undefined;
|
|
282
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
273
283
|
} | undefined;
|
|
274
284
|
}>;
|
|
275
285
|
why_winner: z.ZodDefault<z.ZodString>;
|
|
@@ -388,6 +398,7 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
388
398
|
locator: string | null;
|
|
389
399
|
description: string;
|
|
390
400
|
}[] | undefined;
|
|
401
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
391
402
|
} | undefined;
|
|
392
403
|
};
|
|
393
404
|
why_winner: string;
|
|
@@ -446,6 +457,7 @@ export declare const DecisionRecord: z.ZodObject<{
|
|
|
446
457
|
locator?: string | null | undefined;
|
|
447
458
|
description: string;
|
|
448
459
|
}[] | undefined;
|
|
460
|
+
unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
|
|
449
461
|
} | undefined;
|
|
450
462
|
};
|
|
451
463
|
why_winner?: string | undefined;
|
package/dist/decision.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision.d.ts","sourceRoot":"","sources":["../src/decision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAciD,CAAC;AACjF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;;uEAEuE;AACvE,eAAO,MAAM,WAAW,mDAIrB,C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CAAC"}
|
package/dist/effort.d.ts
CHANGED
|
@@ -6,15 +6,26 @@ import { z } from "zod/v3";
|
|
|
6
6
|
* its own consumers — adapters, the CLI, the MCP tool schema and the macOS
|
|
7
7
|
* picker all resolve through here rather than copying a level list.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* their effort levels ORDERED
|
|
11
|
-
* `supportedReasoningEfforts` is an
|
|
12
|
-
* prints the `--effort` values in
|
|
13
|
-
*
|
|
14
|
-
* sequence: a model's ladder is its own ordered list, a harness's ladder is
|
|
9
|
+
* ORDERING DOCTRINE. The vendor's own advertised order is the primary rank
|
|
10
|
+
* authority: vendors already return their effort levels ORDERED
|
|
11
|
+
* weakest→strongest (codex `model/list` → `supportedReasoningEfforts` is an
|
|
12
|
+
* ordered array per model; `claude --help` prints the `--effort` values in
|
|
13
|
+
* order), so a model's ladder is its own ordered list, a harness's ladder is
|
|
15
14
|
* the positional merge of its models' lists (`mergeEffortLadders`), and a
|
|
16
|
-
* level's rank is its position in that merged list. A
|
|
17
|
-
*
|
|
15
|
+
* level's rank is its position in that merged list. A brand-new vendor level
|
|
16
|
+
* therefore sorts correctly with no code change.
|
|
17
|
+
*
|
|
18
|
+
* `EFFORT_PREFERENCE_ORDER` below is NOT a second copy of that knowledge and
|
|
19
|
+
* never replaces it. It is the shared vocabulary every Claudexor client speaks
|
|
20
|
+
* (Ouroboros' `EFFORT_SCALE` is the same row), consulted ONLY to place a
|
|
21
|
+
* requested word that the route's own vendor ladder does not list at all
|
|
22
|
+
* (`ultra` on a Claude binary that stops at `max`, `none` on a vendor whose
|
|
23
|
+
* ladder starts at `low`). Placing a word is not a claim that the vendor
|
|
24
|
+
* supports it, nor that two vendors' words of the same name are of equal
|
|
25
|
+
* quality: the resolver still submits only a level the route actually
|
|
26
|
+
* advertises, and the receipt says the shared order did the placing. Where the
|
|
27
|
+
* vendor lists contradict the shared order, the vendor wins inside its own
|
|
28
|
+
* ladder and the shared fallback is unavailable (never an invented rank).
|
|
18
29
|
*/
|
|
19
30
|
/** Longest effort slug accepted on the wire. */
|
|
20
31
|
export declare const EFFORT_HINT_MAX_LENGTH = 32;
|
|
@@ -26,13 +37,23 @@ export declare const EFFORT_HINT_PATTERN: RegExp;
|
|
|
26
37
|
* `ReasoningEffort` as "a non-empty reasoning effort value advertised by the
|
|
27
38
|
* model"). Adapters advertise the subset they actually accept per (harness,
|
|
28
39
|
* model); the shared normalizer passes an advertised level through verbatim,
|
|
29
|
-
* resolves a known preference downward (or to the known minimum)
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* change, and a typo is
|
|
40
|
+
* resolves a known preference downward (or to the known minimum) inside the
|
|
41
|
+
* vendor's own order, falls back to `EFFORT_PREFERENCE_ORDER` only to place a
|
|
42
|
+
* word the vendor ladder does not list, and REFUSES a word neither places — so
|
|
43
|
+
* a vendor level newer than this repo works with no code change, and a typo is
|
|
44
|
+
* never silently downgraded.
|
|
33
45
|
*/
|
|
34
46
|
export declare const EffortHint: z.ZodString;
|
|
35
47
|
export type EffortHint = z.infer<typeof EffortHint>;
|
|
48
|
+
/**
|
|
49
|
+
* The shared preference order every Claudexor client speaks, weakest→strongest.
|
|
50
|
+
* A FALLBACK placement aid, not a rank table (see the doctrine above): the
|
|
51
|
+
* resolver consults it only for a word the route's own vendor ladder does not
|
|
52
|
+
* list, submits only vendor-advertised levels, and names the placement in the
|
|
53
|
+
* receipt. Listing a word here declares neither vendor support nor equal
|
|
54
|
+
* quality across vendors. Same row as Ouroboros' `EFFORT_SCALE`.
|
|
55
|
+
*/
|
|
56
|
+
export declare const EFFORT_PREFERENCE_ORDER: readonly EffortHint[];
|
|
36
57
|
/** One receipt for preparation and independent provider observation. Dispatch
|
|
37
58
|
* remains the operation/session lifecycle's fact, never inferred from this. */
|
|
38
59
|
export declare const EffortResolution: z.ZodObject<{
|
package/dist/effort.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effort.d.ts","sourceRoot":"","sources":["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;CAC5D,EACD,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,SAAS,UAAU,EAAE,CAIvB;AAED,wEAAwE;AACxE,MAAM,WAAW,kBAAkB;IACjC;;;;;;;OAOG;IACH,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB;;;;;;;;;OASG;IACH,aAAa,EAAE,UAAU,EAAE,CAAC;IAC5B;;;;;;OAMG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,aAAa,CAAC,SAAS,UAAU,EAAE,CAAC,GAC1C,kBAAkB,CAkDpB"}
|
package/dist/effort.js
CHANGED
|
@@ -7,15 +7,26 @@ import { NonBlankString } from "./primitives.js";
|
|
|
7
7
|
* its own consumers — adapters, the CLI, the MCP tool schema and the macOS
|
|
8
8
|
* picker all resolve through here rather than copying a level list.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* their effort levels ORDERED
|
|
12
|
-
* `supportedReasoningEfforts` is an
|
|
13
|
-
* prints the `--effort` values in
|
|
14
|
-
*
|
|
15
|
-
* sequence: a model's ladder is its own ordered list, a harness's ladder is
|
|
10
|
+
* ORDERING DOCTRINE. The vendor's own advertised order is the primary rank
|
|
11
|
+
* authority: vendors already return their effort levels ORDERED
|
|
12
|
+
* weakest→strongest (codex `model/list` → `supportedReasoningEfforts` is an
|
|
13
|
+
* ordered array per model; `claude --help` prints the `--effort` values in
|
|
14
|
+
* order), so a model's ladder is its own ordered list, a harness's ladder is
|
|
16
15
|
* the positional merge of its models' lists (`mergeEffortLadders`), and a
|
|
17
|
-
* level's rank is its position in that merged list. A
|
|
18
|
-
*
|
|
16
|
+
* level's rank is its position in that merged list. A brand-new vendor level
|
|
17
|
+
* therefore sorts correctly with no code change.
|
|
18
|
+
*
|
|
19
|
+
* `EFFORT_PREFERENCE_ORDER` below is NOT a second copy of that knowledge and
|
|
20
|
+
* never replaces it. It is the shared vocabulary every Claudexor client speaks
|
|
21
|
+
* (Ouroboros' `EFFORT_SCALE` is the same row), consulted ONLY to place a
|
|
22
|
+
* requested word that the route's own vendor ladder does not list at all
|
|
23
|
+
* (`ultra` on a Claude binary that stops at `max`, `none` on a vendor whose
|
|
24
|
+
* ladder starts at `low`). Placing a word is not a claim that the vendor
|
|
25
|
+
* supports it, nor that two vendors' words of the same name are of equal
|
|
26
|
+
* quality: the resolver still submits only a level the route actually
|
|
27
|
+
* advertises, and the receipt says the shared order did the placing. Where the
|
|
28
|
+
* vendor lists contradict the shared order, the vendor wins inside its own
|
|
29
|
+
* ladder and the shared fallback is unavailable (never an invented rank).
|
|
19
30
|
*/
|
|
20
31
|
/** Longest effort slug accepted on the wire. */
|
|
21
32
|
export const EFFORT_HINT_MAX_LENGTH = 32;
|
|
@@ -27,17 +38,36 @@ export const EFFORT_HINT_PATTERN = /^[a-z0-9]+(?:[_-][a-z0-9]+)*$/;
|
|
|
27
38
|
* `ReasoningEffort` as "a non-empty reasoning effort value advertised by the
|
|
28
39
|
* model"). Adapters advertise the subset they actually accept per (harness,
|
|
29
40
|
* model); the shared normalizer passes an advertised level through verbatim,
|
|
30
|
-
* resolves a known preference downward (or to the known minimum)
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* change, and a typo is
|
|
41
|
+
* resolves a known preference downward (or to the known minimum) inside the
|
|
42
|
+
* vendor's own order, falls back to `EFFORT_PREFERENCE_ORDER` only to place a
|
|
43
|
+
* word the vendor ladder does not list, and REFUSES a word neither places — so
|
|
44
|
+
* a vendor level newer than this repo works with no code change, and a typo is
|
|
45
|
+
* never silently downgraded.
|
|
34
46
|
*/
|
|
35
47
|
export const EffortHint = z
|
|
36
48
|
.string()
|
|
37
49
|
.min(1)
|
|
38
50
|
.max(EFFORT_HINT_MAX_LENGTH)
|
|
39
51
|
.regex(EFFORT_HINT_PATTERN, "effort must be a lowercase slug (letters, digits, single - or _ separators)")
|
|
40
|
-
.describe("Cross-harness reasoning-effort level as a lowercase slug (open vocabulary, mirroring the vendor contract); adapters advertise the levels they accept per model, ordered weakest to strongest by the vendor itself, and a shared normalizer passes advertised levels through, clamps inside the vendor order,
|
|
52
|
+
.describe("Cross-harness reasoning-effort level as a lowercase slug (open vocabulary, mirroring the vendor contract); adapters advertise the levels they accept per model, ordered weakest to strongest by the vendor itself, and a shared normalizer passes advertised levels through, clamps inside the vendor order, places a word the vendor order lacks by the shared preference order (none < minimal < low < medium < high < xhigh < max < ultra) onto an advertised level, and refuses words neither order places.");
|
|
53
|
+
/**
|
|
54
|
+
* The shared preference order every Claudexor client speaks, weakest→strongest.
|
|
55
|
+
* A FALLBACK placement aid, not a rank table (see the doctrine above): the
|
|
56
|
+
* resolver consults it only for a word the route's own vendor ladder does not
|
|
57
|
+
* list, submits only vendor-advertised levels, and names the placement in the
|
|
58
|
+
* receipt. Listing a word here declares neither vendor support nor equal
|
|
59
|
+
* quality across vendors. Same row as Ouroboros' `EFFORT_SCALE`.
|
|
60
|
+
*/
|
|
61
|
+
export const EFFORT_PREFERENCE_ORDER = [
|
|
62
|
+
"none",
|
|
63
|
+
"minimal",
|
|
64
|
+
"low",
|
|
65
|
+
"medium",
|
|
66
|
+
"high",
|
|
67
|
+
"xhigh",
|
|
68
|
+
"max",
|
|
69
|
+
"ultra",
|
|
70
|
+
];
|
|
41
71
|
/** One receipt for preparation and independent provider observation. Dispatch
|
|
42
72
|
* remains the operation/session lifecycle's fact, never inferred from this. */
|
|
43
73
|
export const EffortResolution = z
|
package/dist/effort.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effort.js","sourceRoot":"","sources":["../src/effort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"effort.js","sourceRoot":"","sources":["../src/effort.ts"],"names":[],"mapp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,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAClB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,KAAK,MAAM,IAAI,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;YAC9C,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;AACpD,CAAC"}
|
package/dist/events.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare const JournaledRunCreatedPayload: z.ZodObject<{
|
|
|
56
56
|
prompt_bytes: z.ZodNumber;
|
|
57
57
|
}, z.ZodTypeAny, "passthrough">>;
|
|
58
58
|
export type JournaledRunCreatedPayload = z.infer<typeof JournaledRunCreatedPayload>;
|
|
59
|
-
export declare const RunEventType: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
|
|
59
|
+
export declare const RunEventType: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied", "run.continuity", "workspace.retained"]>;
|
|
60
60
|
export type RunEventType = z.infer<typeof RunEventType>;
|
|
61
61
|
/**
|
|
62
62
|
* Typed receipt emitted only after a user-facing run artifact has materialized.
|
|
@@ -248,7 +248,7 @@ export declare const RunEvent: z.ZodObject<{
|
|
|
248
248
|
/** Thread this run is a turn of, when any. Lets the global event multiplex
|
|
249
249
|
* route live progress to a chat surface without a reverse job lookup. */
|
|
250
250
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
251
|
-
type: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
|
|
251
|
+
type: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied", "run.continuity", "workspace.retained"]>;
|
|
252
252
|
payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
253
253
|
}, "strip", z.ZodTypeAny, {
|
|
254
254
|
seq?: number | undefined;
|
|
@@ -256,7 +256,7 @@ export declare const RunEvent: z.ZodObject<{
|
|
|
256
256
|
run_id: string;
|
|
257
257
|
task_id: string;
|
|
258
258
|
thread_id?: string | undefined;
|
|
259
|
-
type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
|
|
259
|
+
type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.continuity" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted" | "workspace.retained";
|
|
260
260
|
payload: Record<string, unknown>;
|
|
261
261
|
}, {
|
|
262
262
|
seq?: number | undefined;
|
|
@@ -264,7 +264,7 @@ export declare const RunEvent: z.ZodObject<{
|
|
|
264
264
|
run_id: string;
|
|
265
265
|
task_id: string;
|
|
266
266
|
thread_id?: string | undefined;
|
|
267
|
-
type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
|
|
267
|
+
type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.continuity" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted" | "workspace.retained";
|
|
268
268
|
payload?: Record<string, unknown> | undefined;
|
|
269
269
|
}>;
|
|
270
270
|
export type RunEvent = z.infer<typeof RunEvent>;
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAU4C,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc;;;;;;;;;;;;EAoBxB,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;gCAiBpC,CAAC;AACJ,MAA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,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAiBrC,CAAC;AACJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEtF;;4EAE4E;AAC5E,eAAO,MAAM,cAAc,2GAW6C,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBlC,CAAC;AACJ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,iDAAiD;AACjD,eAAO,MAAM,QAAQ;IAEjB;;;;OAIG;;;;;IAYH;6EACyE;;;;;;;;;;;;;;;;;;;;EAKO,CAAC;AACrF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
package/dist/events.js
CHANGED
|
@@ -208,6 +208,17 @@ export const RunEventType = z
|
|
|
208
208
|
* never leaves a disclosure claiming a continuation launched. No attempt ran
|
|
209
209
|
* and the one-shot is not consumed. Payload: {from_attempt, cause, reason}. */
|
|
210
210
|
"run.continuation.denied",
|
|
211
|
+
/** Per-try receipt of a CONTINUED try: the in-run continuation ladder's
|
|
212
|
+
* later tries and the first try of a `continueFrom` successor. Carrier,
|
|
213
|
+
* cause, accounts, workspace, memory and this try's model attestation.
|
|
214
|
+
* Payload: {harness_id, attempt_id, session_id, receipt:
|
|
215
|
+
* RunContinuityReceipt}. */
|
|
216
|
+
"run.continuity",
|
|
217
|
+
/** A stopped run's isolated envelope was kept for continuation (custody
|
|
218
|
+
* `retained`). Payload: {attempt_id, root, cause, bytes}. Released by
|
|
219
|
+
* adoption (`continueFrom`), apply or the discard decision; never removed
|
|
220
|
+
* automatically. */
|
|
221
|
+
"workspace.retained",
|
|
211
222
|
])
|
|
212
223
|
.describe("Type of an append-only run event, covering run lifecycle, contract/context creation, budget, routing fallbacks, harness activity, interactions, gates, review, arbitration, work products, and control verbs.");
|
|
213
224
|
/**
|