mandala-computer-mcp 0.6.0 → 0.7.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.
Files changed (62) hide show
  1. package/README.md +165 -16
  2. package/dist/api.d.ts +26 -1
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/api.js +23 -0
  5. package/dist/api.js.map +1 -1
  6. package/dist/errors.d.ts +90 -3
  7. package/dist/errors.d.ts.map +1 -1
  8. package/dist/errors.js +211 -3
  9. package/dist/errors.js.map +1 -1
  10. package/dist/format.d.ts +65 -0
  11. package/dist/format.d.ts.map +1 -1
  12. package/dist/format.js +71 -0
  13. package/dist/format.js.map +1 -1
  14. package/dist/http.d.ts.map +1 -1
  15. package/dist/http.js +15 -5
  16. package/dist/http.js.map +1 -1
  17. package/dist/paths.d.ts +64 -1
  18. package/dist/paths.d.ts.map +1 -1
  19. package/dist/paths.js +74 -5
  20. package/dist/paths.js.map +1 -1
  21. package/dist/server.d.ts +1 -1
  22. package/dist/server.d.ts.map +1 -1
  23. package/dist/server.js +3 -1
  24. package/dist/server.js.map +1 -1
  25. package/dist/tool-filters.d.ts +4 -4
  26. package/dist/tool-filters.d.ts.map +1 -1
  27. package/dist/tool-filters.js +13 -1
  28. package/dist/tool-filters.js.map +1 -1
  29. package/dist/tools/account.d.ts +14 -0
  30. package/dist/tools/account.d.ts.map +1 -1
  31. package/dist/tools/account.js +118 -0
  32. package/dist/tools/account.js.map +1 -1
  33. package/dist/tools/agent.d.ts.map +1 -1
  34. package/dist/tools/agent.js +7 -2
  35. package/dist/tools/agent.js.map +1 -1
  36. package/dist/tools/computers.d.ts.map +1 -1
  37. package/dist/tools/computers.js +267 -48
  38. package/dist/tools/computers.js.map +1 -1
  39. package/dist/tools/guest.d.ts.map +1 -1
  40. package/dist/tools/guest.js +6 -2
  41. package/dist/tools/guest.js.map +1 -1
  42. package/dist/tools/input.d.ts +9 -0
  43. package/dist/tools/input.d.ts.map +1 -1
  44. package/dist/tools/input.js +247 -16
  45. package/dist/tools/input.js.map +1 -1
  46. package/dist/tools/operations.d.ts +44 -0
  47. package/dist/tools/operations.d.ts.map +1 -0
  48. package/dist/tools/operations.js +232 -0
  49. package/dist/tools/operations.js.map +1 -0
  50. package/dist/tools/secrets.d.ts +10 -1
  51. package/dist/tools/secrets.d.ts.map +1 -1
  52. package/dist/tools/secrets.js +59 -12
  53. package/dist/tools/secrets.js.map +1 -1
  54. package/dist/tools/snapshots.d.ts.map +1 -1
  55. package/dist/tools/snapshots.js +35 -12
  56. package/dist/tools/snapshots.js.map +1 -1
  57. package/dist/tools/ssh.d.ts.map +1 -1
  58. package/dist/tools/ssh.js +19 -2
  59. package/dist/tools/ssh.js.map +1 -1
  60. package/dist/tools/templates.js +1 -1
  61. package/dist/tools/templates.js.map +1 -1
  62. package/package.json +1 -1
package/dist/errors.d.ts CHANGED
@@ -38,9 +38,10 @@ export declare class APIError extends MandalaError {
38
38
  /**
39
39
  * The platform's own word for what KIND of refusal this is, where it sent
40
40
  * one: `contention`, `starting`, `unavailable` or `unsupported` (OPL-3898),
41
- * or `revoked` (OPL-4801) — the one word about the caller rather than the
42
- * computer. `undefined` for most errors, and always will be — the platform is
43
- * explicit that an absent value means unclassified rather than "none of these".
41
+ * `revoked` (OPL-4801) — the one word about the caller rather than the
42
+ * computer — `exists` (OPL-4994), or `running` (OPL-5050). `undefined` for
43
+ * most errors, and always will be — the platform is explicit that an absent
44
+ * value means unclassified rather than "none of these".
44
45
  *
45
46
  * Read on the base class rather than on the one 409 it was filed for, because
46
47
  * the platform keys it on the ERROR and not on the route: the same sentinel is
@@ -107,6 +108,92 @@ export declare function reasonKind(reason: string | undefined): ReasonKind | und
107
108
  * platform's "absent means unclassified" contract exists to prevent.
108
109
  */
109
110
  export declare function reasonAdvice(reason: string | undefined): string | undefined;
111
+ /** The platform's `code` on a keyed call's own refusals (OPL-5127), or `undefined`. */
112
+ export declare function idempotencyCode(err: APIError): string | undefined;
113
+ /**
114
+ * What to tell a model about the refusals a call's `idempotency_key` produces
115
+ * (platform OPL-5127), or `undefined` for any other error. Ahead of the
116
+ * `reason` advice, which for `idempotency_in_progress` says only "worth sending
117
+ * again" and not with WHAT. `tool` is the lifecycle tool that was called, which
118
+ * decides the route after `idempotency_outcome_unknown` (see
119
+ * {@link resendAfterSpentKey}); without it the cautious route is given.
120
+ */
121
+ export declare function idempotencyAdvice(err: unknown, tool?: string): string | undefined;
122
+ /** Whether a spent key's resend for `tool` is the user's call, since no read shows the step. */
123
+ export declare function resendUnseenByRead(tool: string | undefined): boolean;
124
+ /** Whether a spent key's resend for `tool` waits for its operation; `true` when the tool is not known. */
125
+ export declare function resendWaitsForFinal(tool: string | undefined): boolean;
126
+ /**
127
+ * The route to a new-key resend after a keyed call whose outcome is unknown and
128
+ * whose key is spent, chosen by the tool that was called: the wait for a final
129
+ * operation ({@link resendOnlyOnceFinal}) where a duplicate is costly and
130
+ * unseen, the operation and then the user ({@link resendAfterUnseenStep}) for a
131
+ * restart, which no read of the computer shows, and a read of the computer
132
+ * ({@link resendAfterRead}) everywhere else.
133
+ */
134
+ export declare function resendAfterSpentKey(tool: string | undefined, operation?: string, key?: string, resend?: string): string;
135
+ /**
136
+ * The route for a spent key on a restart (see {@link UNSEEN_BY_READ}). It never
137
+ * conditions a resend on get_computer, which reads `running` either way: the
138
+ * operation says the restart happened (`succeeded`) or is under way
139
+ * (`running`), and anything else leaves it possibly done, so a second restart
140
+ * is the user's call.
141
+ */
142
+ export declare function resendAfterUnseenStep(operation?: string, key?: string, resend?: string): string;
143
+ /**
144
+ * The route for a spent key on a step a read of the computer shows: start,
145
+ * stop, suspend, delete, move, update_computer (not restart; see
146
+ * {@link UNSEEN_BY_READ}). Read, and resend with
147
+ * a new key or none if the step did not take effect. A named operation is read
148
+ * too, because `succeeded` and `running` do answer the question; `pending` does
149
+ * not, since a spent key's operation stays pending for an hour whatever
150
+ * happened, so it is named as no reason to wait.
151
+ */
152
+ export declare function resendAfterRead(operation?: string, resend?: string): string;
153
+ /**
154
+ * The route to a new-key resend for the tools that make a new computer or
155
+ * overwrite a disk (see {@link WAITS_FOR_FINAL}) after a keyed call whose
156
+ * outcome is unknown and whose key is spent: a `5xx` the platform answered, or
157
+ * `idempotency_outcome_unknown` (platform OPL-5304).
158
+ *
159
+ * The condition has to be one a read can decide. The platform keeps such a
160
+ * call's operation `pending` for up to an hour, because its host may still be
161
+ * carrying the call out, so a read of the computer made straight away can show
162
+ * no effect for a create, clone or restore that then lands; a resend with a new
163
+ * key at that moment is not deduplicated and does the step twice. So the first
164
+ * read is the operation, and a resend waits until it is final. `key`, when
165
+ * known, names how to find an operation the error did not name; `resend` is
166
+ * the verb phrase for the resend, e.g. `call start_computer again`.
167
+ */
168
+ export declare function resendOnlyOnceFinal(operation?: string, key?: string, resend?: string): string;
169
+ /**
170
+ * Whether a lifecycle call that failed with this may still have happened, and
171
+ * its key is still the safe way to send it again: a request that may have been
172
+ * received before the connection died, the platform saying the keyed call is
173
+ * still running, or a `5xx` that the platform itself never answered (see
174
+ * {@link platformAnsweredFailure}).
175
+ *
176
+ * NOT a `5xx` the platform answered. The platform settles a keyed call it
177
+ * answered outside `2xx` and `4xx` as lost (OPL-5304), so the same key sent
178
+ * again can only be answered `409 idempotency_outcome_unknown` for the rest of
179
+ * its 24 hours. Advising that resend is advising a retry that cannot succeed;
180
+ * `keyedFailure` in tools/operations.ts tells that caller to read first instead.
181
+ */
182
+ export declare function keyedOutcomeUnknown(err: unknown): boolean;
183
+ /**
184
+ * Whether a `5xx` came from the platform itself rather than from a hop in
185
+ * front of it.
186
+ *
187
+ * The platform answers every error with a JSON object. A proxy that gave up
188
+ * (a Cloudflare or nginx `502`/`504`, or an edge-only `520`-`526`) answers
189
+ * with an HTML page or nothing, which the code that settles the key did not
190
+ * write, so the same key sent again answers the call's own outcome or says it
191
+ * is still running. The `520`-`526` range is an edge's own vocabulary whatever
192
+ * its body says. Should one of these turn out to have been settled as lost
193
+ * after all, the resend is answered `idempotency_outcome_unknown`, whose own
194
+ * advice says what to do next; nothing is done twice either way.
195
+ */
196
+ export declare function platformAnsweredFailure(err: unknown): boolean;
110
197
  /**
111
198
  * What to tell a model about a refusal that is about the CALLER, not the computer.
112
199
  *
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,qBAAa,YAAa,SAAQ,KAAK;IAC5B,IAAI,SAAkB;CAChC;AAED,+FAA+F;AAC/F,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,qBAAa,QAAS,SAAQ,YAAY;IA0BtC,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO;IACvB,gFAAgF;IAChF,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM;IA5BvB,IAAI,SAAc;IAC3B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,mFAAmF;IACnF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,gDAAgD;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,iEAAiE;IACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAEvB,OAAO,EAAE,MAAM,EACN,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,OAAO,YAAA;IACvB,gFAAgF;IACvE,YAAY,CAAC,EAAE,MAAM,YAAA,EAC9B,QAAQ,CAAC,EAAE,gBAAgB;CAU9B;AAwCD,gEAAgE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AAgB,GAC1B,QAAQ,CA4DV;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CA6DjD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAexD"}
package/dist/errors.js CHANGED
@@ -26,9 +26,10 @@ export class APIError extends MandalaError {
26
26
  /**
27
27
  * The platform's own word for what KIND of refusal this is, where it sent
28
28
  * one: `contention`, `starting`, `unavailable` or `unsupported` (OPL-3898),
29
- * or `revoked` (OPL-4801) — the one word about the caller rather than the
30
- * computer. `undefined` for most errors, and always will be — the platform is
31
- * explicit that an absent value means unclassified rather than "none of these".
29
+ * `revoked` (OPL-4801) — the one word about the caller rather than the
30
+ * computer — `exists` (OPL-4994), or `running` (OPL-5050). `undefined` for
31
+ * most errors, and always will be — the platform is explicit that an absent
32
+ * value means unclassified rather than "none of these".
32
33
  *
33
34
  * Read on the base class rather than on the one 409 it was filed for, because
34
35
  * the platform keys it on the ERROR and not on the route: the same sentinel is
@@ -91,11 +92,21 @@ const REASON_CLEARS = new Set(['contention', 'starting']);
91
92
  * {@link isTransient} calls worth sending again. {@link FileExistsError} is the
92
93
  * class it arrives as.
93
94
  */
95
+ /**
96
+ * `running` is a computer that IS running, asked for something only a stopped one
97
+ * can have: a resize, today (platform OPL-5050). The mirror of `unavailable`, and
98
+ * kept apart from it for that reason: nothing clears either by waiting and both
99
+ * are fixed by an action on the computer, but the action is the opposite one.
100
+ * Stopping the computer is the fix. Without it here this would be an ordinary
101
+ * {@link ConflictError}, which {@link isTransient} calls worth sending again, and
102
+ * a caller looping on that would resend the same resize until it gave up.
103
+ */
94
104
  const REASON_PERMANENT = new Set([
95
105
  'unavailable',
96
106
  'unsupported',
97
107
  'revoked',
98
108
  'exists',
109
+ 'running',
99
110
  ]);
100
111
  /**
101
112
  * How a refusal the platform classified behaves, or `undefined` for a word this
@@ -173,6 +184,11 @@ export function reasonAdvice(reason) {
173
184
  // write whose earlier attempt lost its answer may have written the file
174
185
  // itself, and the retry meets that file here.
175
186
  return 'something is already at that path and this attempt wrote nothing. This does not clear by waiting. If an earlier attempt\u2019s outcome was unknown, the file may be yours: read it and compare before choosing another path or overwriting (without overwrite: false, a write replaces it)';
187
+ case 'running':
188
+ // The mirror of `unavailable`, with the opposite fix. The last clause is
189
+ // there because stop_computer is a thing a model can do on its own
190
+ // initiative, and a stop the user did not ask for ends whatever was open.
191
+ return 'the computer is running and this needs it stopped (a resize, today). This does not clear by waiting: stop_computer first, then send it again \u2014 and say so rather than stopping a computer the user did not ask you to stop';
176
192
  case 'revoked':
177
193
  // Reached only on a status statusAdvice has no sentence for, because the
178
194
  // formatter asks that one first and the platform sends this word on 401 and
@@ -184,6 +200,189 @@ export function reasonAdvice(reason) {
184
200
  return undefined;
185
201
  }
186
202
  }
203
+ /** The platform's `code` on a keyed call's own refusals (OPL-5127), or `undefined`. */
204
+ export function idempotencyCode(err) {
205
+ const code = record(err.body) ? err.body.code : undefined;
206
+ return code === 'idempotency_in_progress' ||
207
+ code === 'idempotency_outcome_unknown' ||
208
+ code === 'idempotency_key_reused'
209
+ ? code
210
+ : undefined;
211
+ }
212
+ /**
213
+ * What to tell a model about the refusals a call's `idempotency_key` produces
214
+ * (platform OPL-5127), or `undefined` for any other error. Ahead of the
215
+ * `reason` advice, which for `idempotency_in_progress` says only "worth sending
216
+ * again" and not with WHAT. `tool` is the lifecycle tool that was called, which
217
+ * decides the route after `idempotency_outcome_unknown` (see
218
+ * {@link resendAfterSpentKey}); without it the cautious route is given.
219
+ */
220
+ export function idempotencyAdvice(err, tool) {
221
+ if (!(err instanceof APIError))
222
+ return undefined;
223
+ const operation = record(err.body) && typeof err.body.operation_id === 'string'
224
+ ? err.body.operation_id
225
+ : undefined;
226
+ switch (idempotencyCode(err)) {
227
+ case 'idempotency_in_progress':
228
+ return `the same call with this idempotency_key is still running; wait and call again with the same idempotency_key for its answer${operation ? `, or read get_operation ${operation}` : ''}`;
229
+ case 'idempotency_outcome_unknown':
230
+ return `the platform did not hear how the call with this idempotency_key ended; do not send it again with this key, since the same key answers the same thing. ${resendAfterSpentKey(tool, operation, undefined, tool ? `call ${tool} again` : undefined)}`;
231
+ case 'idempotency_key_reused':
232
+ return 'this idempotency_key was already used with a different request, so nothing was done; send this request with a new key, or none';
233
+ default:
234
+ return undefined;
235
+ }
236
+ }
237
+ /**
238
+ * The lifecycle tools whose resend after a spent key waits for the operation
239
+ * to be final: the ones that make a new computer or overwrite a disk. A second
240
+ * one is costly (a second computer, a second overwrite), and a read of the
241
+ * computer made straight away cannot see one that is still landing.
242
+ *
243
+ * Every other keyed tool but restart (start, stop, suspend, delete, move and
244
+ * update_computer) changes a computer a read shows, and doing it twice does no
245
+ * harm the read cannot catch, while the operation of a call whose key is spent
246
+ * stays `pending` for an hour however quickly the host gave up (platform
247
+ * OPL-5304). Holding those to the same gate would mean an hour before the start
248
+ * the user asked for could be sent again.
249
+ *
250
+ * restart_computer is neither: see {@link UNSEEN_BY_READ}.
251
+ */
252
+ const WAITS_FOR_FINAL = new Set([
253
+ 'create_computer',
254
+ 'clone_computer',
255
+ 'clone_snapshot',
256
+ 'restore_snapshot',
257
+ ]);
258
+ /**
259
+ * The keyed tools whose step a read of the computer cannot see: a restart is a
260
+ * guest reset, and the computer reads `running` before and after one, with no
261
+ * boot or reset time among its fields. "Read the computer, and resend if the
262
+ * step did not take effect" can then only ever read as "did not take effect",
263
+ * and a resend resets the guest a second time, losing whatever ran since the
264
+ * first. Nor does waiting for the operation settle it: a spent key's operation
265
+ * ends `failed` (`lost`) an hour later whether or not the host reset the guest.
266
+ * So the route is the operation's `succeeded` or `running` where it says one,
267
+ * and otherwise the user's say before a second restart
268
+ * ({@link resendAfterUnseenStep}).
269
+ */
270
+ const UNSEEN_BY_READ = new Set(['restart_computer']);
271
+ /** Whether a spent key's resend for `tool` is the user's call, since no read shows the step. */
272
+ export function resendUnseenByRead(tool) {
273
+ return tool !== undefined && UNSEEN_BY_READ.has(tool);
274
+ }
275
+ /** Whether a spent key's resend for `tool` waits for its operation; `true` when the tool is not known. */
276
+ export function resendWaitsForFinal(tool) {
277
+ return tool === undefined || WAITS_FOR_FINAL.has(tool);
278
+ }
279
+ /**
280
+ * The route to a new-key resend after a keyed call whose outcome is unknown and
281
+ * whose key is spent, chosen by the tool that was called: the wait for a final
282
+ * operation ({@link resendOnlyOnceFinal}) where a duplicate is costly and
283
+ * unseen, the operation and then the user ({@link resendAfterUnseenStep}) for a
284
+ * restart, which no read of the computer shows, and a read of the computer
285
+ * ({@link resendAfterRead}) everywhere else.
286
+ */
287
+ export function resendAfterSpentKey(tool, operation, key, resend = 'send the call again') {
288
+ if (resendUnseenByRead(tool))
289
+ return resendAfterUnseenStep(operation, key, resend);
290
+ return resendWaitsForFinal(tool)
291
+ ? resendOnlyOnceFinal(operation, key, resend)
292
+ : resendAfterRead(operation, resend);
293
+ }
294
+ /**
295
+ * The route for a spent key on a restart (see {@link UNSEEN_BY_READ}). It never
296
+ * conditions a resend on get_computer, which reads `running` either way: the
297
+ * operation says the restart happened (`succeeded`) or is under way
298
+ * (`running`), and anything else leaves it possibly done, so a second restart
299
+ * is the user's call.
300
+ */
301
+ export function resendAfterUnseenStep(operation, key, resend = 'send the call again') {
302
+ const find = operation
303
+ ? `get_operation ${operation}`
304
+ : `the operation it recorded, found by list_operations with idempotency_key ${key ? `"${key}"` : 'set to this key'}`;
305
+ return (`A restart cannot be seen in get_computer — it reads running before and after one — so do not read the computer to decide. Read ${find} instead. ` +
306
+ `If it succeeded, the restart happened; if it is running, it is under way, so wait_for_operation${operation ? ` ${operation}` : ''} rather than resending. ` +
307
+ `Otherwise (pending, failed, lost, or no operation found), treat the restart as possibly done: the guest may already have been reset. Ask the user before you ${resend} with a new idempotency_key, or none, since a second restart resets the guest again and loses whatever ran since the first`);
308
+ }
309
+ /**
310
+ * The route for a spent key on a step a read of the computer shows: start,
311
+ * stop, suspend, delete, move, update_computer (not restart; see
312
+ * {@link UNSEEN_BY_READ}). Read, and resend with
313
+ * a new key or none if the step did not take effect. A named operation is read
314
+ * too, because `succeeded` and `running` do answer the question; `pending` does
315
+ * not, since a spent key's operation stays pending for an hour whatever
316
+ * happened, so it is named as no reason to wait.
317
+ */
318
+ export function resendAfterRead(operation, resend = 'send the call again') {
319
+ return (`Read get_computer${operation ? ` and get_operation ${operation}` : ''} first. ` +
320
+ (operation
321
+ ? `If the operation succeeded, the step happened; if it is running, the step is under way, so wait_for_operation ${operation} rather than resending. Pending says only that the platform has not settled it yet, which can take an hour, and is no reason to wait. `
322
+ : '') +
323
+ `If get_computer shows the step did not take effect, ${resend} with a new idempotency_key, or none — there is no need to wait for the operation to be final first`);
324
+ }
325
+ /**
326
+ * The route to a new-key resend for the tools that make a new computer or
327
+ * overwrite a disk (see {@link WAITS_FOR_FINAL}) after a keyed call whose
328
+ * outcome is unknown and whose key is spent: a `5xx` the platform answered, or
329
+ * `idempotency_outcome_unknown` (platform OPL-5304).
330
+ *
331
+ * The condition has to be one a read can decide. The platform keeps such a
332
+ * call's operation `pending` for up to an hour, because its host may still be
333
+ * carrying the call out, so a read of the computer made straight away can show
334
+ * no effect for a create, clone or restore that then lands; a resend with a new
335
+ * key at that moment is not deduplicated and does the step twice. So the first
336
+ * read is the operation, and a resend waits until it is final. `key`, when
337
+ * known, names how to find an operation the error did not name; `resend` is
338
+ * the verb phrase for the resend, e.g. `call start_computer again`.
339
+ */
340
+ export function resendOnlyOnceFinal(operation, key, resend = 'send the call again') {
341
+ const find = operation
342
+ ? `get_operation ${operation} (wait_for_operation ${operation} waits on it)`
343
+ : `the operation it recorded, found by list_operations with idempotency_key ${key ? `"${key}"` : 'set to this key'}`;
344
+ return (`Read ${find} first. While it is pending or running the call may still be carried out, so wait for it to be final — wait_for_operation, again if that wait runs out — and do NOT resend it meanwhile, with any key. ` +
345
+ `If it succeeded, the step happened. Only once it is final as failed (error.code lost, for one) or no longer found, AND get_computer (list_computers after a create or a clone) shows the step did not take effect, ${resend} with a new idempotency_key, or none. ` +
346
+ 'If no operation is found at all, a slow create or clone may still land: read the computer again after a few minutes before resending');
347
+ }
348
+ /**
349
+ * Whether a lifecycle call that failed with this may still have happened, and
350
+ * its key is still the safe way to send it again: a request that may have been
351
+ * received before the connection died, the platform saying the keyed call is
352
+ * still running, or a `5xx` that the platform itself never answered (see
353
+ * {@link platformAnsweredFailure}).
354
+ *
355
+ * NOT a `5xx` the platform answered. The platform settles a keyed call it
356
+ * answered outside `2xx` and `4xx` as lost (OPL-5304), so the same key sent
357
+ * again can only be answered `409 idempotency_outcome_unknown` for the rest of
358
+ * its 24 hours. Advising that resend is advising a retry that cannot succeed;
359
+ * `keyedFailure` in tools/operations.ts tells that caller to read first instead.
360
+ */
361
+ export function keyedOutcomeUnknown(err) {
362
+ return (err instanceof ConnectivityInterruptedError ||
363
+ (err instanceof APIError &&
364
+ (idempotencyCode(err) === 'idempotency_in_progress' ||
365
+ (err.status >= 500 && !platformAnsweredFailure(err)))));
366
+ }
367
+ /**
368
+ * Whether a `5xx` came from the platform itself rather than from a hop in
369
+ * front of it.
370
+ *
371
+ * The platform answers every error with a JSON object. A proxy that gave up
372
+ * (a Cloudflare or nginx `502`/`504`, or an edge-only `520`-`526`) answers
373
+ * with an HTML page or nothing, which the code that settles the key did not
374
+ * write, so the same key sent again answers the call's own outcome or says it
375
+ * is still running. The `520`-`526` range is an edge's own vocabulary whatever
376
+ * its body says. Should one of these turn out to have been settled as lost
377
+ * after all, the resend is answered `idempotency_outcome_unknown`, whose own
378
+ * advice says what to do next; nothing is done twice either way.
379
+ */
380
+ export function platformAnsweredFailure(err) {
381
+ return (err instanceof APIError &&
382
+ err.status >= 500 &&
383
+ !(err.status >= 520 && err.status <= 526) &&
384
+ record(err.body));
385
+ }
187
386
  /**
188
387
  * What to tell a model about a refusal that is about the CALLER, not the computer.
189
388
  *
@@ -1033,6 +1232,15 @@ export function errorForStatus(status, message, body, retryAfterMs, metadata) {
1033
1232
  export function isTransient(err) {
1034
1233
  if (err instanceof APIError && [401, 402, 403, 404, 405].includes(err.status))
1035
1234
  return false;
1235
+ // A keyed call the platform never heard end (platform OPL-5127). A 409 with no
1236
+ // `reason`, so the ConflictError branch below would call it worth sending
1237
+ // again — and the same key answers the same thing forever: the computer is
1238
+ // what says whether it happened. Its sibling `idempotency_in_progress` carries
1239
+ // `reason: "contention"` and IS worth sending again: that is the wait for the
1240
+ // first call's answer.
1241
+ if (err instanceof APIError && idempotencyCode(err) === 'idempotency_outcome_unknown') {
1242
+ return false;
1243
+ }
1036
1244
  // Preparation requires the original template and a token, and may have failed.
1037
1245
  // A generic retry of the unchanged create is not the continuation protocol.
1038
1246
  if (err instanceof APIError &&
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK;IAC5B,IAAI,GAAG,cAAc,CAAC;CAChC;AAgBD,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAsB,EAAE,CACtD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,MAAM,MAAM,GAAG,CAAC,KAAc,EAAoC,EAAE,CAClE,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEvE,MAAM,OAAO,QAAS,SAAQ,YAAY;IA0B7B;IACA;IAEA;IA5BF,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AAQ;YAAE,OAAO,IAAI,CAAC;QAC9F,IAAI,IAAI,KAAK,WAAW;YAAE,OAAO,KAAK,CAAC;IACzC,CAAC;IACD,OAAO,CACL,GAAG,YAAY,aAAa;QAC5B,GAAG,YAAY,cAAc;QAC7B,GAAG,YAAY,iBAAiB,CACjC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAY;IAC7C,IAAI,CAAC,CAAC,GAAG,YAAY,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,YAAY,iBAAiB,CAAC;QAAE,OAAO,KAAK,CAAC;IACpF,IACE,GAAG,YAAY,iBAAiB;QAChC,GAAG,YAAY,eAAe;QAC9B,GAAG,YAAY,uBAAuB;QAEtC,OAAO,KAAK,CAAC;IACf,IAAI,GAAG,YAAY,cAAc;QAAE,OAAO,KAAK,CAAC;IAChD,IAAI,GAAG,YAAY,QAAQ,EAAE,CAAC;QAC5B,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG;YAAE,OAAO,KAAK,CAAC;QACrC,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG;YAAE,OAAO,IAAI,CAAC;QAChF,OAAO,GAAG,CAAC,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC;IAC/C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
package/dist/format.d.ts CHANGED
@@ -113,6 +113,12 @@ export type Computer = {
113
113
  deleted_at?: string;
114
114
  lost_at?: string;
115
115
  start_error?: string;
116
+ /**
117
+ * The lifecycle operation this answer started (platform OPL-5055), on a
118
+ * create, a clone or a resize only — never on a read. `wait_for_operation`
119
+ * follows it to its end.
120
+ */
121
+ operation_id?: string;
116
122
  /**
117
123
  * Guest RAM the platform is holding for this computer against the account's
118
124
  * running pool (platform OPL-4630).
@@ -144,8 +150,45 @@ export type Computer = {
144
150
  secrets_pending?: boolean | null;
145
151
  /** Why the last delivering start was stopped, in one fixed sentence. Never a value. */
146
152
  secrets_error?: string;
153
+ /**
154
+ * Whether values are on their way into the desktop right now: true from a
155
+ * delivering start until they are applied, so a computer reads `running`
156
+ * with this still true for a few seconds. Absent where nothing is bound, or
157
+ * from a platform that predates it.
158
+ */
159
+ secrets_delivering?: boolean;
147
160
  secrets_generation?: number;
148
161
  secrets_applied?: unknown;
162
+ /**
163
+ * The proxy this computer's browsers are sent through (platform OPL-5056):
164
+ * the server URL, the hosts they reach directly, and the id of the secret
165
+ * holding its `user:password` when it asks for one. Absent when none is set.
166
+ */
167
+ browser_proxy?: {
168
+ server?: string;
169
+ bypass?: string[];
170
+ credentials_secret_id?: string;
171
+ };
172
+ /**
173
+ * `true` while a running computer's guest does not have its browser proxy
174
+ * yet, or still holds the files of one just removed. Absent otherwise, and
175
+ * never present on a computer that is not running.
176
+ */
177
+ browser_proxy_pending?: boolean;
178
+ /**
179
+ * The proxy ALL of this computer's outbound TCP is sent through: the server
180
+ * URL, and the id of the secret holding its `user:password` when it asks for
181
+ * one. Absent when none is set.
182
+ */
183
+ egress_proxy?: {
184
+ server?: string;
185
+ credentials_secret_id?: string;
186
+ };
187
+ /**
188
+ * `true` while a running computer's egress proxy names credentials its host
189
+ * does not hold yet; every connection is closed meanwhile. Absent otherwise.
190
+ */
191
+ egress_proxy_pending?: boolean;
149
192
  vnc?: Record<string, unknown>;
150
193
  };
151
194
  /**
@@ -164,6 +207,16 @@ export type Computer = {
164
207
  * the same distinction the same way (OPL-4628, OPL-4629).
165
208
  */
166
209
  export declare function nothingAdmitted(c: Computer): boolean;
210
+ /**
211
+ * Whether a running computer's secrets are still on their way into its desktop.
212
+ *
213
+ * `secrets_delivering` answers it where the platform reports the field. Where
214
+ * it does not (a platform that predates it), the receipt does: it names the
215
+ * delivering start it is for, so a receipt behind `secrets_generation` is a
216
+ * delivery still under way — the fallback both SDKs' waits use. Nothing bound
217
+ * is nothing coming.
218
+ */
219
+ export declare function secretsOnTheirWay(c: Computer): boolean;
167
220
  /**
168
221
  * A create or a clone can answer `{computer, start_error}` rather than a bare
169
222
  * computer: the guest was made and then would not boot, so the machine exists
@@ -171,6 +224,18 @@ export declare function nothingAdmitted(c: Computer): boolean;
171
224
  * flattens it, so every reader of a computer sees the same shape and the
172
225
  * failure travels beside the fields rather than wrapping them.
173
226
  */
227
+ /**
228
+ * The `operation_id` a lifecycle answer carried, or `undefined` for none
229
+ * (platform OPL-5055). Absent is ordinary: the platform leaves it out, with the
230
+ * call still done, when it could not record the operation. Anything that is not
231
+ * a non-empty string reads as absent for the same reason.
232
+ */
233
+ export declare function operationIdOf(body: unknown): string | undefined;
234
+ /**
235
+ * The operation an answer carried, as the clause a tool's sentence ends with:
236
+ * `` (operation op_…)`` or nothing.
237
+ */
238
+ export declare const operationClause: (body: unknown) => string;
174
239
  export declare function unwrapComputer(body: unknown): Computer;
175
240
  /**
176
241
  * A computer without its desktop credentials.
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EACL,QAAQ,EAOT,MAAM,aAAa,CAAC;AAErB,2BAA2B;AAC3B,eAAO,MAAM,IAAI,GAAI,GAAG,MAAM,KAAG,cAA4D,CAAC;AAE9F,6FAA6F;AAC7F,eAAO,MAAM,IAAI,GAAI,GAAG,OAAO,KAAG,cAAkD,CAAC;AAErF,yDAAyD;AACzD,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,EAAE,IAAI,OAAO,KAAG,cAC0B,CAAC;AAE5E;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,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