@cat-factory/contracts 0.264.0 → 0.266.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/bug-hunt.d.ts +5 -5
- package/dist/debug-api.d.ts +10 -0
- package/dist/debug-api.d.ts.map +1 -1
- package/dist/execution.d.ts +10 -0
- package/dist/execution.d.ts.map +1 -1
- package/dist/public-api.d.ts +2 -2
- package/dist/recurring.d.ts +4 -4
- package/dist/routes/agent-runs.d.ts +10 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/bug-hunt.d.ts +15 -5
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/debug-api.d.ts +5 -0
- package/dist/routes/debug-api.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +40 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +5 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +25 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/public-api.d.ts +1 -1
- package/dist/routes/recurring.d.ts +6 -6
- package/dist/routes/runners.d.ts +10 -0
- package/dist/routes/runners.d.ts.map +1 -1
- package/dist/routes/tasks.d.ts +16 -14
- package/dist/routes/tasks.d.ts.map +1 -1
- package/dist/routes/visual-confirm.d.ts +15 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +12 -2
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/runners.d.ts +120 -0
- package/dist/runners.d.ts.map +1 -1
- package/dist/runners.js +12 -0
- package/dist/runners.js.map +1 -1
- package/dist/snapshot.d.ts +6 -1
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/tasks.d.ts +39 -14
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +29 -3
- package/dist/tasks.js.map +1 -1
- package/dist/tool-servers.d.ts +82 -0
- package/dist/tool-servers.d.ts.map +1 -1
- package/dist/tool-servers.js +75 -0
- package/dist/tool-servers.js.map +1 -1
- package/package.json +1 -1
package/dist/tool-servers.d.ts
CHANGED
|
@@ -69,6 +69,54 @@ export type ToolServerUnavailableReason = v.InferOutput<typeof toolServerUnavail
|
|
|
69
69
|
* deployment now wires, so a reader asking what the step HAS is asking about the live attempt, and
|
|
70
70
|
* a re-armed step holding the previous round's answer would name servers nothing will ask for.
|
|
71
71
|
*/
|
|
72
|
+
/**
|
|
73
|
+
* The state the agent's CLI gave one tool server when it started up.
|
|
74
|
+
*
|
|
75
|
+
* A CLOSED vocabulary normalised by the harness from the CLI's OWN open one, which is why
|
|
76
|
+
* `unknown` is a member rather than a dropped row: the CLI's status words belong to a third party
|
|
77
|
+
* that may add to them, and a server whose state this platform cannot name is still a server the
|
|
78
|
+
* CLI knew about. Reporting it as `ready` would dress a dead tool up as a live one, and dropping
|
|
79
|
+
* it reads as a server the CLI never loaded — a different fact with a different fix.
|
|
80
|
+
*
|
|
81
|
+
* - `ready` — loaded and connected. Its tools were available to the agent.
|
|
82
|
+
* - `failed` — the CLI could not bring it up. The prompt promised its tools and they never existed.
|
|
83
|
+
* - `needs_auth` — the server answered, and refused the credential (or asked for one that never
|
|
84
|
+
* arrived). Separate from `failed` because the fix is a credential or an OAuth reconnect rather
|
|
85
|
+
* than the endpoint or the package.
|
|
86
|
+
* - `unknown` — the CLI named a state this platform's mapping does not cover.
|
|
87
|
+
*
|
|
88
|
+
* PERSISTED and closed, so a member retired later must be RENDERED as retired rather than dropped
|
|
89
|
+
* (the same rule the unavailability vocabulary above carries, for the same reason).
|
|
90
|
+
*/
|
|
91
|
+
export declare const toolServerObservedStatusSchema: v.PicklistSchema<["ready", "failed", "needs_auth", "unknown"], undefined>;
|
|
92
|
+
export type ToolServerObservedStatus = v.InferOutput<typeof toolServerObservedStatusSchema>;
|
|
93
|
+
/**
|
|
94
|
+
* Whether a reported status is a member of the vocabulary — DERIVED from the picklist's own
|
|
95
|
+
* options, so it cannot drift from it the way a hand-written second list would.
|
|
96
|
+
*
|
|
97
|
+
* The narrowing every producer of this field needs: the value arrives from an agent CLI, through
|
|
98
|
+
* the harness's normalisation, over a job-view hop, and the engine has to place it in a closed
|
|
99
|
+
* union without either trusting it or reaching for valibot in a package that does not depend on
|
|
100
|
+
* it. The negative case is `unknown`, which the vocabulary carries precisely so this narrowing
|
|
101
|
+
* has an honest answer to give.
|
|
102
|
+
*/
|
|
103
|
+
export declare function isToolServerObservedStatus(value: unknown): value is ToolServerObservedStatus;
|
|
104
|
+
/** One server's line in the CLI's own startup report. See {@link stepToolServersSchema}'s `observed`. */
|
|
105
|
+
export declare const observedToolServerSchema: v.ObjectSchema<{
|
|
106
|
+
readonly id: v.StringSchema<undefined>;
|
|
107
|
+
readonly status: v.PicklistSchema<["ready", "failed", "needs_auth", "unknown"], undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* How many tools the CLI exposed for this server.
|
|
110
|
+
*
|
|
111
|
+
* ABSENT and `0` are different facts, and conflating them is the mistake this field exists to
|
|
112
|
+
* avoid: absent means the CLI listed no tools at all so nothing was counted, while `0` means it
|
|
113
|
+
* listed its tools and this server contributed none — a server that connected and offers
|
|
114
|
+
* nothing, which reaches the agent exactly like one that was never wired and is otherwise
|
|
115
|
+
* indistinguishable from a healthy connection.
|
|
116
|
+
*/
|
|
117
|
+
readonly toolCount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
118
|
+
}, undefined>;
|
|
119
|
+
export type ObservedToolServer = v.InferOutput<typeof observedToolServerSchema>;
|
|
72
120
|
export declare const stepToolServersSchema: v.ObjectSchema<{
|
|
73
121
|
/** The servers whose transport, harness and credentials all resolved, so the agent could call them. */
|
|
74
122
|
readonly wired: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -100,6 +148,40 @@ export declare const stepToolServersSchema: v.ObjectSchema<{
|
|
|
100
148
|
* `step.dispatches`, so an executor cannot mislabel it.
|
|
101
149
|
*/
|
|
102
150
|
readonly agentKind: v.StringSchema<undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* What the agent's CLI reported about the servers it actually loaded, folded from the run's
|
|
153
|
+
* polls beside what the platform decided above.
|
|
154
|
+
*
|
|
155
|
+
* The two halves answer different questions and neither substitutes for the other: `wired` and
|
|
156
|
+
* `unavailable` are the PLATFORM's account of what it promised the agent and what it withheld,
|
|
157
|
+
* decided before the container started; this is the CLI's account of what it managed to start.
|
|
158
|
+
* A vendor endpoint that 500s, a pinned `npx` package that no longer resolves, a token the
|
|
159
|
+
* vendor revoked between dispatch and launch — all of them leave a server in `wired` and a
|
|
160
|
+
* prompt promising a tool nothing can call, and this is the only place that shows up.
|
|
161
|
+
*
|
|
162
|
+
* ABSENT means no observation was made, NOT that nothing was observed: the run's harness never
|
|
163
|
+
* reported (codex's CLI publishes no such report, and neither does any image older than the one
|
|
164
|
+
* that introduced this), or the step is inline, or it has been re-armed for a re-run. So a
|
|
165
|
+
* reader may never conclude from an absent field that a wired server failed. Never persisted
|
|
166
|
+
* empty for the same reason — the producer omits it rather than sending `[]`.
|
|
167
|
+
*
|
|
168
|
+
* A `wired` id MISSING from a present list is meaningful in the other direction: the CLI
|
|
169
|
+
* announced its servers and did not name this one, so it was never loaded at all.
|
|
170
|
+
*/
|
|
171
|
+
readonly observed: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
172
|
+
readonly id: v.StringSchema<undefined>;
|
|
173
|
+
readonly status: v.PicklistSchema<["ready", "failed", "needs_auth", "unknown"], undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* How many tools the CLI exposed for this server.
|
|
176
|
+
*
|
|
177
|
+
* ABSENT and `0` are different facts, and conflating them is the mistake this field exists to
|
|
178
|
+
* avoid: absent means the CLI listed no tools at all so nothing was counted, while `0` means it
|
|
179
|
+
* listed its tools and this server contributed none — a server that connected and offers
|
|
180
|
+
* nothing, which reaches the agent exactly like one that was never wired and is otherwise
|
|
181
|
+
* indistinguishable from a healthy connection.
|
|
182
|
+
*/
|
|
183
|
+
readonly toolCount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
184
|
+
}, undefined>, undefined>, undefined>;
|
|
103
185
|
}, undefined>;
|
|
104
186
|
export type StepToolServers = v.InferOutput<typeof stepToolServersSchema>;
|
|
105
187
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-servers.d.ts","sourceRoot":"","sources":["../src/tool-servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA8B5B,qFAAqF;AACrF,eAAO,MAAM,yBAAyB,gDAAgC,CAAA;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kCAAkC,4FAI7C,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEnG;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iCAAiC,gLAQ5C,CAAA;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,qBAAqB;IAChC,uGAAuG;;;;;QAMnG;;;;WAIG;;;IAIP,oGAAoG;;;;;;IAQpG;;;;;;;;;;OAUG;;
|
|
1
|
+
{"version":3,"file":"tool-servers.d.ts","sourceRoot":"","sources":["../src/tool-servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA8B5B,qFAAqF;AACrF,eAAO,MAAM,yBAAyB,gDAAgC,CAAA;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MA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AuB,MAAM,CAAA;AAE1C;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,QAAS,CAAA"}
|
package/dist/tool-servers.js
CHANGED
|
@@ -105,6 +105,60 @@ export const toolServerUnavailableReasonSchema = v.picklist([
|
|
|
105
105
|
* deployment now wires, so a reader asking what the step HAS is asking about the live attempt, and
|
|
106
106
|
* a re-armed step holding the previous round's answer would name servers nothing will ask for.
|
|
107
107
|
*/
|
|
108
|
+
/**
|
|
109
|
+
* The state the agent's CLI gave one tool server when it started up.
|
|
110
|
+
*
|
|
111
|
+
* A CLOSED vocabulary normalised by the harness from the CLI's OWN open one, which is why
|
|
112
|
+
* `unknown` is a member rather than a dropped row: the CLI's status words belong to a third party
|
|
113
|
+
* that may add to them, and a server whose state this platform cannot name is still a server the
|
|
114
|
+
* CLI knew about. Reporting it as `ready` would dress a dead tool up as a live one, and dropping
|
|
115
|
+
* it reads as a server the CLI never loaded — a different fact with a different fix.
|
|
116
|
+
*
|
|
117
|
+
* - `ready` — loaded and connected. Its tools were available to the agent.
|
|
118
|
+
* - `failed` — the CLI could not bring it up. The prompt promised its tools and they never existed.
|
|
119
|
+
* - `needs_auth` — the server answered, and refused the credential (or asked for one that never
|
|
120
|
+
* arrived). Separate from `failed` because the fix is a credential or an OAuth reconnect rather
|
|
121
|
+
* than the endpoint or the package.
|
|
122
|
+
* - `unknown` — the CLI named a state this platform's mapping does not cover.
|
|
123
|
+
*
|
|
124
|
+
* PERSISTED and closed, so a member retired later must be RENDERED as retired rather than dropped
|
|
125
|
+
* (the same rule the unavailability vocabulary above carries, for the same reason).
|
|
126
|
+
*/
|
|
127
|
+
export const toolServerObservedStatusSchema = v.picklist([
|
|
128
|
+
'ready',
|
|
129
|
+
'failed',
|
|
130
|
+
'needs_auth',
|
|
131
|
+
'unknown',
|
|
132
|
+
]);
|
|
133
|
+
/**
|
|
134
|
+
* Whether a reported status is a member of the vocabulary — DERIVED from the picklist's own
|
|
135
|
+
* options, so it cannot drift from it the way a hand-written second list would.
|
|
136
|
+
*
|
|
137
|
+
* The narrowing every producer of this field needs: the value arrives from an agent CLI, through
|
|
138
|
+
* the harness's normalisation, over a job-view hop, and the engine has to place it in a closed
|
|
139
|
+
* union without either trusting it or reaching for valibot in a package that does not depend on
|
|
140
|
+
* it. The negative case is `unknown`, which the vocabulary carries precisely so this narrowing
|
|
141
|
+
* has an honest answer to give.
|
|
142
|
+
*/
|
|
143
|
+
export function isToolServerObservedStatus(value) {
|
|
144
|
+
return typeof value === 'string' && TOOL_SERVER_OBSERVED_STATUS_SET.has(value);
|
|
145
|
+
}
|
|
146
|
+
const TOOL_SERVER_OBSERVED_STATUS_SET = new Set(toolServerObservedStatusSchema.options);
|
|
147
|
+
/** One server's line in the CLI's own startup report. See {@link stepToolServersSchema}'s `observed`. */
|
|
148
|
+
export const observedToolServerSchema = v.object({
|
|
149
|
+
id: v.string(),
|
|
150
|
+
status: toolServerObservedStatusSchema,
|
|
151
|
+
/**
|
|
152
|
+
* How many tools the CLI exposed for this server.
|
|
153
|
+
*
|
|
154
|
+
* ABSENT and `0` are different facts, and conflating them is the mistake this field exists to
|
|
155
|
+
* avoid: absent means the CLI listed no tools at all so nothing was counted, while `0` means it
|
|
156
|
+
* listed its tools and this server contributed none — a server that connected and offers
|
|
157
|
+
* nothing, which reaches the agent exactly like one that was never wired and is otherwise
|
|
158
|
+
* indistinguishable from a healthy connection.
|
|
159
|
+
*/
|
|
160
|
+
toolCount: v.optional(v.number()),
|
|
161
|
+
});
|
|
108
162
|
export const stepToolServersSchema = v.object({
|
|
109
163
|
/** The servers whose transport, harness and credentials all resolved, so the agent could call them. */
|
|
110
164
|
wired: v.array(v.object({
|
|
@@ -136,6 +190,27 @@ export const stepToolServersSchema = v.object({
|
|
|
136
190
|
* `step.dispatches`, so an executor cannot mislabel it.
|
|
137
191
|
*/
|
|
138
192
|
agentKind: v.string(),
|
|
193
|
+
/**
|
|
194
|
+
* What the agent's CLI reported about the servers it actually loaded, folded from the run's
|
|
195
|
+
* polls beside what the platform decided above.
|
|
196
|
+
*
|
|
197
|
+
* The two halves answer different questions and neither substitutes for the other: `wired` and
|
|
198
|
+
* `unavailable` are the PLATFORM's account of what it promised the agent and what it withheld,
|
|
199
|
+
* decided before the container started; this is the CLI's account of what it managed to start.
|
|
200
|
+
* A vendor endpoint that 500s, a pinned `npx` package that no longer resolves, a token the
|
|
201
|
+
* vendor revoked between dispatch and launch — all of them leave a server in `wired` and a
|
|
202
|
+
* prompt promising a tool nothing can call, and this is the only place that shows up.
|
|
203
|
+
*
|
|
204
|
+
* ABSENT means no observation was made, NOT that nothing was observed: the run's harness never
|
|
205
|
+
* reported (codex's CLI publishes no such report, and neither does any image older than the one
|
|
206
|
+
* that introduced this), or the step is inline, or it has been re-armed for a re-run. So a
|
|
207
|
+
* reader may never conclude from an absent field that a wired server failed. Never persisted
|
|
208
|
+
* empty for the same reason — the producer omits it rather than sending `[]`.
|
|
209
|
+
*
|
|
210
|
+
* A `wired` id MISSING from a present list is meaningful in the other direction: the CLI
|
|
211
|
+
* announced its servers and did not name this one, so it was never loaded at all.
|
|
212
|
+
*/
|
|
213
|
+
observed: v.optional(v.array(observedToolServerSchema)),
|
|
139
214
|
});
|
|
140
215
|
/**
|
|
141
216
|
* One credential a declaration asks for, by NAME.
|
package/dist/tool-servers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-servers.js","sourceRoot":"","sources":["../src/tool-servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,6FAA6F;AAC7F,yBAAyB;AACzB,EAAE;AACF,oGAAoG;AACpG,+FAA+F;AAC/F,mGAAmG;AACnG,iGAAiG;AACjG,oGAAoG;AACpG,EAAE;AACF,sCAAsC;AACtC,EAAE;AACF,oGAAoG;AACpG,6FAA6F;AAC7F,mDAAmD;AACnD,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