@tai42/api-client 31.1.0 → 33.0.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/client/backend-client.d.ts +27 -0
- package/dist/client/backend-client.d.ts.map +1 -1
- package/dist/client/backup-client.d.ts +4 -0
- package/dist/client/backup-client.d.ts.map +1 -1
- package/dist/client/config-client.d.ts +31 -0
- package/dist/client/config-client.d.ts.map +1 -1
- package/dist/client/index.d.ts +148 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/manifest-client.d.ts +33 -1
- package/dist/client/manifest-client.d.ts.map +1 -1
- package/dist/client/manifest-client.js +3 -3
- package/dist/client/manifest-client.js.map +1 -1
- package/dist/client/marketplace-client.d.ts +40 -0
- package/dist/client/marketplace-client.d.ts.map +1 -1
- package/dist/client/profiles-client.d.ts +4 -0
- package/dist/client/profiles-client.d.ts.map +1 -1
- package/dist/client/tool-extensions-client.d.ts +4 -0
- package/dist/client/tool-extensions-client.d.ts.map +1 -1
- package/dist/client/tools-client.d.ts +1 -0
- package/dist/client/tools-client.d.ts.map +1 -1
- package/dist/failed-mcp-roster.d.ts +30 -0
- package/dist/failed-mcp-roster.d.ts.map +1 -0
- package/dist/failed-mcp-roster.js +56 -0
- package/dist/failed-mcp-roster.js.map +1 -0
- package/dist/failed-reply-roll.d.ts +22 -0
- package/dist/failed-reply-roll.d.ts.map +1 -0
- package/dist/failed-reply-roll.js +46 -0
- package/dist/failed-reply-roll.js.map +1 -0
- package/dist/fleet-report.d.ts +78 -50
- package/dist/fleet-report.d.ts.map +1 -1
- package/dist/fleet-report.js +106 -89
- package/dist/fleet-report.js.map +1 -1
- package/dist/generated/api-routes.d.ts +4 -4
- package/dist/generated/api-routes.js +1 -1
- package/dist/generated/api-routes.js.map +1 -1
- package/dist/generated/openapi-schemas.d.ts +303 -30
- package/dist/generated/openapi-schemas.d.ts.map +1 -1
- package/dist/generated/openapi-schemas.js +14 -13
- package/dist/generated/openapi-schemas.js.map +1 -1
- package/dist/generated/served-schemas.d.ts +1 -1
- package/dist/generated/served-schemas.js +1 -1
- package/dist/generated/served-schemas.js.map +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +5 -2
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp-failure.d.ts +18 -0
- package/dist/mcp-failure.d.ts.map +1 -0
- package/dist/mcp-failure.js +39 -0
- package/dist/mcp-failure.js.map +1 -0
- package/dist/schemas/backup.d.ts +8 -0
- package/dist/schemas/backup.d.ts.map +1 -1
- package/dist/schemas/fleet.d.ts +49 -10
- package/dist/schemas/fleet.d.ts.map +1 -1
- package/dist/schemas/fleet.js +20 -11
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/manifest-mcp.d.ts +9 -6
- package/dist/schemas/manifest-mcp.d.ts.map +1 -1
- package/dist/schemas/manifest-mcp.js +4 -3
- package/dist/schemas/manifest-mcp.js.map +1 -1
- package/dist/schemas/marketplace.d.ts +44 -2
- package/dist/schemas/marketplace.d.ts.map +1 -1
- package/dist/schemas/marketplace.js +8 -2
- package/dist/schemas/marketplace.js.map +1 -1
- package/dist/schemas/profiles.d.ts +13 -7
- package/dist/schemas/profiles.d.ts.map +1 -1
- package/dist/schemas/profiles.js +9 -7
- package/dist/schemas/profiles.js.map +1 -1
- package/dist/schemas/served.d.ts +1 -1
- package/dist/schemas/system-kinds.d.ts +4 -0
- package/dist/schemas/system-kinds.d.ts.map +1 -1
- package/dist/schemas/system-kinds.js +5 -4
- package/dist/schemas/system-kinds.js.map +1 -1
- package/dist/schemas/tools.d.ts +5 -1
- package/dist/schemas/tools.d.ts.map +1 -1
- package/dist/schemas/tools.js +3 -1
- package/dist/schemas/tools.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +5 -0
- package/src/client/manifest-client.ts +4 -4
- package/src/failed-mcp-roster.ts +70 -0
- package/src/failed-reply-roll.ts +71 -0
- package/src/fleet-report.ts +192 -118
- package/src/generated/api-routes.ts +1 -1
- package/src/generated/openapi-schemas.ts +16 -13
- package/src/generated/served-schemas.ts +1 -1
- package/src/http.ts +5 -2
- package/src/index.ts +9 -2
- package/src/mcp-failure.ts +46 -0
- package/src/schemas/fleet.ts +20 -11
- package/src/schemas/manifest-mcp.ts +4 -3
- package/src/schemas/marketplace.ts +8 -2
- package/src/schemas/profiles.ts +9 -7
- package/src/schemas/system-kinds.ts +5 -4
- package/src/schemas/tools.ts +3 -1
|
@@ -439,7 +439,8 @@ export type MarketplaceInstalled = z.infer<typeof marketplaceInstalled>;
|
|
|
439
439
|
/**
|
|
440
440
|
* One per-plugin outcome of `POST /api/marketplace/upgrade-all`: `upgraded`,
|
|
441
441
|
* already `up-to-date`, `no-compatible-version` in the registry, or `failed`;
|
|
442
|
-
* `detail` always carries the human-readable specifics
|
|
442
|
+
* `detail` always carries the human-readable specifics; `span_release_error` the store's
|
|
443
|
+
* errors releasing its write span after the ref's config writes, or `null` when it released.
|
|
443
444
|
*/
|
|
444
445
|
export declare const marketplaceUpgradeAllRow: z.ZodObject<{
|
|
445
446
|
detail: z.ZodString;
|
|
@@ -453,8 +454,38 @@ export declare const marketplaceUpgradeAllRow: z.ZodObject<{
|
|
|
453
454
|
span_release_error: z.ZodNullable<z.ZodString>;
|
|
454
455
|
}, z.core.$strip>;
|
|
455
456
|
export type MarketplaceUpgradeAllRow = z.infer<typeof marketplaceUpgradeAllRow>;
|
|
456
|
-
/**
|
|
457
|
+
/**
|
|
458
|
+
* The whole upgrade-all reply: one outcome row per installed plugin, the one recycle roll
|
|
459
|
+
* the batch settled (`recycle`, `null` when it had no worker to visit), the workers still
|
|
460
|
+
* awaiting a respawn after it, and `roll_deferred` / `roll_deferred_to` (set, naming the
|
|
461
|
+
* worker, when the roll is carried out after the reply).
|
|
462
|
+
*/
|
|
457
463
|
export declare const marketplaceUpgradeAllResult: z.ZodObject<{
|
|
464
|
+
awaiting_respawn: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
465
|
+
keys: z.ZodArray<z.ZodString>;
|
|
466
|
+
name: z.ZodString;
|
|
467
|
+
}, z.core.$strip>>>;
|
|
468
|
+
recycle: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
469
|
+
fresh: z.ZodArray<z.ZodObject<{
|
|
470
|
+
generation: z.ZodNumber;
|
|
471
|
+
kind: z.ZodString;
|
|
472
|
+
name: z.ZodString;
|
|
473
|
+
}, z.core.$strip>>;
|
|
474
|
+
recycle: z.ZodArray<z.ZodObject<{
|
|
475
|
+
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
476
|
+
generation_before: z.ZodNumber;
|
|
477
|
+
keys: z.ZodArray<z.ZodString>;
|
|
478
|
+
kind: z.ZodString;
|
|
479
|
+
name: z.ZodString;
|
|
480
|
+
status: z.ZodString;
|
|
481
|
+
}, z.core.$strip>>;
|
|
482
|
+
recycle_stopped: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
483
|
+
detail: z.ZodString;
|
|
484
|
+
kind: z.ZodString;
|
|
485
|
+
name: z.ZodNullable<z.ZodString>;
|
|
486
|
+
}, z.core.$strip>>>;
|
|
487
|
+
skipped: z.ZodArray<z.ZodString>;
|
|
488
|
+
}, z.core.$strip>>>;
|
|
458
489
|
results: z.ZodArray<z.ZodObject<{
|
|
459
490
|
detail: z.ZodString;
|
|
460
491
|
outcome: z.ZodEnum<{
|
|
@@ -466,6 +497,8 @@ export declare const marketplaceUpgradeAllResult: z.ZodObject<{
|
|
|
466
497
|
ref: z.ZodString;
|
|
467
498
|
span_release_error: z.ZodNullable<z.ZodString>;
|
|
468
499
|
}, z.core.$strip>>;
|
|
500
|
+
roll_deferred: z.ZodDefault<z.ZodBoolean>;
|
|
501
|
+
roll_deferred_to: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
469
502
|
}, z.core.$strip>;
|
|
470
503
|
export type MarketplaceUpgradeAllResult = z.infer<typeof marketplaceUpgradeAllResult>;
|
|
471
504
|
/** The advisory state for installed plugins, with when it was last fetched. */
|
|
@@ -554,6 +587,7 @@ export declare const marketplaceInstallResult: z.ZodObject<{
|
|
|
554
587
|
recycle: z.ZodArray<z.ZodObject<{
|
|
555
588
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
556
589
|
generation_before: z.ZodNumber;
|
|
590
|
+
keys: z.ZodArray<z.ZodString>;
|
|
557
591
|
kind: z.ZodString;
|
|
558
592
|
name: z.ZodString;
|
|
559
593
|
status: z.ZodString;
|
|
@@ -563,7 +597,10 @@ export declare const marketplaceInstallResult: z.ZodObject<{
|
|
|
563
597
|
kind: z.ZodString;
|
|
564
598
|
name: z.ZodNullable<z.ZodString>;
|
|
565
599
|
}, z.core.$strip>>>;
|
|
600
|
+
skipped: z.ZodArray<z.ZodString>;
|
|
566
601
|
}, z.core.$strip>>>;
|
|
602
|
+
roll_deferred: z.ZodDefault<z.ZodBoolean>;
|
|
603
|
+
roll_deferred_to: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
567
604
|
span_release_error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
568
605
|
status: z.ZodString;
|
|
569
606
|
fanout: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -771,6 +808,7 @@ export type MarketplaceInstallPreview = z.infer<typeof marketplaceInstallPreview
|
|
|
771
808
|
* receipt's notes. `reload` is `null` when the plugin wrote no manifest entry to remove.
|
|
772
809
|
*/
|
|
773
810
|
export declare const marketplaceUninstallResult: z.ZodObject<{
|
|
811
|
+
manifest_written: z.ZodBoolean;
|
|
774
812
|
notes: z.ZodArray<z.ZodString>;
|
|
775
813
|
ref: z.ZodString;
|
|
776
814
|
uninstalled: z.ZodBoolean;
|
|
@@ -789,6 +827,7 @@ export declare const marketplaceUninstallResult: z.ZodObject<{
|
|
|
789
827
|
recycle: z.ZodArray<z.ZodObject<{
|
|
790
828
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
791
829
|
generation_before: z.ZodNumber;
|
|
830
|
+
keys: z.ZodArray<z.ZodString>;
|
|
792
831
|
kind: z.ZodString;
|
|
793
832
|
name: z.ZodString;
|
|
794
833
|
status: z.ZodString;
|
|
@@ -798,7 +837,10 @@ export declare const marketplaceUninstallResult: z.ZodObject<{
|
|
|
798
837
|
kind: z.ZodString;
|
|
799
838
|
name: z.ZodNullable<z.ZodString>;
|
|
800
839
|
}, z.core.$strip>>>;
|
|
840
|
+
skipped: z.ZodArray<z.ZodString>;
|
|
801
841
|
}, z.core.$strip>>>;
|
|
842
|
+
roll_deferred: z.ZodDefault<z.ZodBoolean>;
|
|
843
|
+
roll_deferred_to: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
802
844
|
span_release_error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
803
845
|
status: z.ZodString;
|
|
804
846
|
fanout: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.d.ts","sourceRoot":"","sources":["../../src/schemas/marketplace.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;;;;GAKG;AACH,eAAO,MAAM,WAAW;;;;;;EAA6C,CAAC;AACtE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;EAAsC,CAAC;AACvE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;EAAqC,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC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AAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -227,10 +227,16 @@ export const marketplaceInstalled = openapi.installedInventory;
|
|
|
227
227
|
/**
|
|
228
228
|
* One per-plugin outcome of `POST /api/marketplace/upgrade-all`: `upgraded`,
|
|
229
229
|
* already `up-to-date`, `no-compatible-version` in the registry, or `failed`;
|
|
230
|
-
* `detail` always carries the human-readable specifics
|
|
230
|
+
* `detail` always carries the human-readable specifics; `span_release_error` the store's
|
|
231
|
+
* errors releasing its write span after the ref's config writes, or `null` when it released.
|
|
231
232
|
*/
|
|
232
233
|
export const marketplaceUpgradeAllRow = openapi.upgradeRow;
|
|
233
|
-
/**
|
|
234
|
+
/**
|
|
235
|
+
* The whole upgrade-all reply: one outcome row per installed plugin, the one recycle roll
|
|
236
|
+
* the batch settled (`recycle`, `null` when it had no worker to visit), the workers still
|
|
237
|
+
* awaiting a respawn after it, and `roll_deferred` / `roll_deferred_to` (set, naming the
|
|
238
|
+
* worker, when the roll is carried out after the reply).
|
|
239
|
+
*/
|
|
234
240
|
export const marketplaceUpgradeAllResult = openapi.upgradeAllResult;
|
|
235
241
|
/** The advisory state for installed plugins, with when it was last fetched. */
|
|
236
242
|
export const marketplaceAdvisories = openapi.advisorySnapshot.extend({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.js","sourceRoot":"","sources":["../../src/schemas/marketplace.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,4FAA4F;AAC5F,0FAA0F;AAC1F,yEAAyE;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;AAGtE;;;;;GA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,eAAe,CAAC,MAAM,CAAC;IACvE,MAAM,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -66,18 +66,20 @@ export type SettingsProfileDiff = z.infer<typeof settingsProfileDiff>;
|
|
|
66
66
|
/**
|
|
67
67
|
* `POST /api/config/profiles/{name}/apply` — the dedicated `profile_apply_response`
|
|
68
68
|
* (action=fenced, destructive). NAMES-ONLY (no env value in any
|
|
69
|
-
* section): `hot` is the hot-swapped key names; `recycle` is the
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* `fresh` is the per-kind list of NEW ready lives observed since the pre-apply snapshot
|
|
69
|
+
* section): `hot` is the hot-swapped key names; `recycle` is the roll's worker lines —
|
|
70
|
+
* one `{name, kind, status, generation_before, keys, detail}` line per worker the roll
|
|
71
|
+
* reached (`RecycleEntry` names the statuses), the applier's OWN line carrying the
|
|
72
|
+
* `self-deferred` status when its own restart is armed; `skipped` names the workers whose
|
|
73
|
+
* reload confirmed no moved recycle-class key, left running; `fresh` is the per-kind list of NEW ready lives observed since the pre-apply snapshot
|
|
74
74
|
* (each `{name, kind, generation}`), evidence of fresh capacity and never claimed as any
|
|
75
75
|
* target's successor; `refused` is `[]` on success by construction (the refused key
|
|
76
76
|
* names only on a refusal), the populated refusal surfaces being the diff preview and
|
|
77
77
|
* the refusal error report; `recycle_stopped` names the target a stopped recycle roll
|
|
78
78
|
* halted at, or is `null` when the roll ran to its end; `awaiting_respawn` names the
|
|
79
|
-
* workers (name + keys) still awaiting a respawn after the apply
|
|
80
|
-
* converged
|
|
79
|
+
* workers (name + keys) still awaiting a respawn after the apply — when the roll
|
|
80
|
+
* converged, only the workers whose reload was refused at their epoch build, left running
|
|
81
|
+
* on their current config; `roll_deferred` is `true` when the roll is not judged in this
|
|
82
|
+
* reply, `roll_deferred_to` then naming the worker that carries it out. `fanout` is the mode-wrapped fleet broadcast, parsed EXPLICITLY so a failed
|
|
81
83
|
* propagation reaches the shared fleet-report handler. A drift throws `ApiSchemaError`.
|
|
82
84
|
*/
|
|
83
85
|
export declare const profileApplyResponse: z.ZodObject<{
|
|
@@ -94,6 +96,7 @@ export declare const profileApplyResponse: z.ZodObject<{
|
|
|
94
96
|
recycle: z.ZodArray<z.ZodObject<{
|
|
95
97
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
96
98
|
generation_before: z.ZodNumber;
|
|
99
|
+
keys: z.ZodArray<z.ZodString>;
|
|
97
100
|
kind: z.ZodString;
|
|
98
101
|
name: z.ZodString;
|
|
99
102
|
status: z.ZodString;
|
|
@@ -104,6 +107,9 @@ export declare const profileApplyResponse: z.ZodObject<{
|
|
|
104
107
|
name: z.ZodNullable<z.ZodString>;
|
|
105
108
|
}, z.core.$strip>>>;
|
|
106
109
|
refused: z.ZodArray<z.ZodString>;
|
|
110
|
+
roll_deferred: z.ZodDefault<z.ZodBoolean>;
|
|
111
|
+
roll_deferred_to: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
skipped: z.ZodArray<z.ZodString>;
|
|
107
113
|
span_release_error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
108
114
|
fanout: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
109
115
|
mode: z.ZodLiteral<"local-only">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/schemas/profiles.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAS7B;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;iBAAyB,CAAC;AAC7D,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC5E,eAAO,MAAM,mBAAmB;;;kBAA8B,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;iBAA8B,CAAC;AAC/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,MAAM,sBAAsB;;iBAAmB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;iBAA6B,CAAC;AAClE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAAsB,CAAC;AACvD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;;iBAAgC,CAAC;AACxE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,eAAO,MAAM,0BAA0B;;;;;kBAAqC,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;iBAA6B,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/schemas/profiles.js
CHANGED
|
@@ -36,18 +36,20 @@ export const settingsProfileDiff = openapi.profileDiff;
|
|
|
36
36
|
/**
|
|
37
37
|
* `POST /api/config/profiles/{name}/apply` — the dedicated `profile_apply_response`
|
|
38
38
|
* (action=fenced, destructive). NAMES-ONLY (no env value in any
|
|
39
|
-
* section): `hot` is the hot-swapped key names; `recycle` is the
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* `fresh` is the per-kind list of NEW ready lives observed since the pre-apply snapshot
|
|
39
|
+
* section): `hot` is the hot-swapped key names; `recycle` is the roll's worker lines —
|
|
40
|
+
* one `{name, kind, status, generation_before, keys, detail}` line per worker the roll
|
|
41
|
+
* reached (`RecycleEntry` names the statuses), the applier's OWN line carrying the
|
|
42
|
+
* `self-deferred` status when its own restart is armed; `skipped` names the workers whose
|
|
43
|
+
* reload confirmed no moved recycle-class key, left running; `fresh` is the per-kind list of NEW ready lives observed since the pre-apply snapshot
|
|
44
44
|
* (each `{name, kind, generation}`), evidence of fresh capacity and never claimed as any
|
|
45
45
|
* target's successor; `refused` is `[]` on success by construction (the refused key
|
|
46
46
|
* names only on a refusal), the populated refusal surfaces being the diff preview and
|
|
47
47
|
* the refusal error report; `recycle_stopped` names the target a stopped recycle roll
|
|
48
48
|
* halted at, or is `null` when the roll ran to its end; `awaiting_respawn` names the
|
|
49
|
-
* workers (name + keys) still awaiting a respawn after the apply
|
|
50
|
-
* converged
|
|
49
|
+
* workers (name + keys) still awaiting a respawn after the apply — when the roll
|
|
50
|
+
* converged, only the workers whose reload was refused at their epoch build, left running
|
|
51
|
+
* on their current config; `roll_deferred` is `true` when the roll is not judged in this
|
|
52
|
+
* reply, `roll_deferred_to` then naming the worker that carries it out. `fanout` is the mode-wrapped fleet broadcast, parsed EXPLICITLY so a failed
|
|
51
53
|
* propagation reaches the shared fleet-report handler. A drift throws `ApiSchemaError`.
|
|
52
54
|
*/
|
|
53
55
|
// The fan-out is hand-typed: the spec publishes it as one object with optional fields.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/schemas/profiles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,gFAAgF;AAChF,0FAA0F;AAC1F,2CAA2C;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,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GAAG,OAAO,CAAC,WAAW,CAAC;AAGvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,uFAAuF;AACvF,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC;IACtE,MAAM,EAAE,iBAAiB;CAC1B,CAAC,CAAC;AAGH;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAO,CAAC,qBAAqB,CAAC;AAExE,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC;AAE7E;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,CAAC"}
|
package/dist/schemas/served.d.ts
CHANGED
|
@@ -5846,7 +5846,7 @@ export declare const servedDocumentsJson: {
|
|
|
5846
5846
|
};
|
|
5847
5847
|
};
|
|
5848
5848
|
readonly additionalProperties: false;
|
|
5849
|
-
readonly description: "One row of the schedule listing: no arguments, no kwargs.";
|
|
5849
|
+
readonly description: "One row of the schedule listing: no arguments, no kwargs.\n\n``next_run_at_ts`` is the next run's POSIX timestamp, ``None`` when the schedule has no next\nrun (``0.0`` is a timestamp like any other). ``next_run_at_iso`` is derived from it, the UTC\nISO-8601 form or ``None``: a row is built without it, and a given value that disagrees with\nthe timestamp is refused.";
|
|
5850
5850
|
readonly properties: {
|
|
5851
5851
|
readonly cadence: {
|
|
5852
5852
|
readonly discriminator: {
|
|
@@ -45,6 +45,7 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
|
|
|
45
45
|
recycle: z.ZodArray<z.ZodObject<{
|
|
46
46
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
generation_before: z.ZodNumber;
|
|
48
|
+
keys: z.ZodArray<z.ZodString>;
|
|
48
49
|
kind: z.ZodString;
|
|
49
50
|
name: z.ZodString;
|
|
50
51
|
status: z.ZodString;
|
|
@@ -54,7 +55,10 @@ export declare const toolExtensionsApplyResult: z.ZodObject<{
|
|
|
54
55
|
kind: z.ZodString;
|
|
55
56
|
name: z.ZodNullable<z.ZodString>;
|
|
56
57
|
}, z.core.$strip>>>;
|
|
58
|
+
skipped: z.ZodArray<z.ZodString>;
|
|
57
59
|
}, z.core.$strip>>>;
|
|
60
|
+
roll_deferred: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
+
roll_deferred_to: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
58
62
|
span_release_error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
59
63
|
status: z.ZodString;
|
|
60
64
|
fanout: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-kinds.d.ts","sourceRoot":"","sources":["../../src/schemas/system-kinds.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAc7B,eAAO,MAAM,UAAU;;;;;;;;;iBAAqB,CAAC;AAC7C,eAAO,MAAM,cAAc;;;;;;;;;kBAA6B,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"system-kinds.d.ts","sourceRoot":"","sources":["../../src/schemas/system-kinds.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAc7B,eAAO,MAAM,UAAU;;;;;;;;;iBAAqB,CAAC;AAC7C,eAAO,MAAM,cAAc;;;;;;;;;kBAA6B,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAqB,CAAC;AAC5D,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAQlF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;iBAA4B,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;iBAAc,CAAC;AAC3C,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -22,10 +22,11 @@ export const kindStatusList = openapi.systemKindsListing;
|
|
|
22
22
|
export const toolExtensionsApplyResult = reloadConfigResult;
|
|
23
23
|
// `GET /api/mcp-status` — the bound-server map, the servers the viability check
|
|
24
24
|
// skipped, and each server's health record. Each failed entry carries the coarse,
|
|
25
|
-
// credential-free
|
|
26
|
-
// `unreachable` for a transport error or
|
|
27
|
-
//
|
|
28
|
-
// failure)
|
|
25
|
+
// credential-free detail the platform records: `category` (`preset_store` when the preset
|
|
26
|
+
// store could not be read, `auth` for a 401/403, `unreachable` for a transport error or a
|
|
27
|
+
// start that outran the start budget, `starting` for a start still in progress — not a
|
|
28
|
+
// failure, read through `isMcpStarting` — and `error` otherwise), the redacted `message`,
|
|
29
|
+
// and the `http_status` the failure carried (`null` for a pure transport failure).
|
|
29
30
|
export const mcpStatus = openapi.mcpStatusSnapshot;
|
|
30
31
|
/**
|
|
31
32
|
* `POST /api/mcp-status/{title}/reload` — re-probe a single MCP server and broadcast
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-kinds.js","sourceRoot":"","sources":["../../src/schemas/system-kinds.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,4EAA4E;AAC5E,6EAA6E;AAC7E,4EAA4E;AAC5E,iFAAiF;AACjF,mFAAmF;AACnF,kFAAkF;AAClF,iEAAiE;AAEjE,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;AAGzD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;AAE5D,gFAAgF;AAChF,kFAAkF;AAClF,
|
|
1
|
+
{"version":3,"file":"system-kinds.js","sourceRoot":"","sources":["../../src/schemas/system-kinds.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,4EAA4E;AAC5E,6EAA6E;AAC7E,4EAA4E;AAC5E,iFAAiF;AACjF,mFAAmF;AACnF,kFAAkF;AAClF,iEAAiE;AAEjE,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;AAGzD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;AAE5D,gFAAgF;AAChF,kFAAkF;AAClF,0FAA0F;AAC1F,0FAA0F;AAC1F,uFAAuF;AACvF,0FAA0F;AAC1F,mFAAmF;AACnF,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC"}
|
package/dist/schemas/tools.d.ts
CHANGED
|
@@ -262,10 +262,13 @@ export type ToolMediaResult = z.infer<typeof toolMediaResult>;
|
|
|
262
262
|
* `badges` are the tool's plugin-DECLARED capability labels — purely INFORMATIONAL
|
|
263
263
|
* (e.g. `network`, `filesystem`), never a gate the server enforces. The overlay's
|
|
264
264
|
* own badges are merged on top client-side; this read exposes only the declaration.
|
|
265
|
-
* `schedulable` is whether the tool can be scheduled.
|
|
265
|
+
* `schedulable` is whether the tool can be scheduled. `description` is the tool's own
|
|
266
|
+
* declared description, `null` when it declares none; tool pickers draw it under the
|
|
267
|
+
* tool's option and search it with the tool's label.
|
|
266
268
|
*/
|
|
267
269
|
export declare const toolTagEntry: z.ZodObject<{
|
|
268
270
|
badges: z.ZodArray<z.ZodString>;
|
|
271
|
+
description: z.ZodNullable<z.ZodString>;
|
|
269
272
|
hidden: z.ZodBoolean;
|
|
270
273
|
name: z.ZodString;
|
|
271
274
|
schedulable: z.ZodBoolean;
|
|
@@ -273,6 +276,7 @@ export declare const toolTagEntry: z.ZodObject<{
|
|
|
273
276
|
}, z.core.$strip>;
|
|
274
277
|
export declare const toolTags: z.ZodArray<z.ZodObject<{
|
|
275
278
|
badges: z.ZodArray<z.ZodString>;
|
|
279
|
+
description: z.ZodNullable<z.ZodString>;
|
|
276
280
|
hidden: z.ZodBoolean;
|
|
277
281
|
name: z.ZodString;
|
|
278
282
|
schedulable: z.ZodBoolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/schemas/tools.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS,yBAA6B,CAAC;AAEpD,eAAO,MAAM,UAAU;;;;iBAAyB,CAAC;AACjD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,cAAc;;;;kBAAyB,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA4B,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAAY,CAAC;AAEvC;6FAC6F;AAC7F,eAAO,MAAM,YAAY;;;;;EAAmC,CAAC;AAC7D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAsB,CAAC;AACnD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAG9D;;;iFAGiF;AACjF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAGxD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;;;;;;iBASxB,CAAC;AACL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY;;;;;;;iBAAqB,CAAC;AAC/C,eAAO,MAAM,QAAQ;;;;;;;kBAA8B,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
package/dist/schemas/tools.js
CHANGED
|
@@ -66,7 +66,9 @@ export const toolMediaResult = z
|
|
|
66
66
|
* `badges` are the tool's plugin-DECLARED capability labels — purely INFORMATIONAL
|
|
67
67
|
* (e.g. `network`, `filesystem`), never a gate the server enforces. The overlay's
|
|
68
68
|
* own badges are merged on top client-side; this read exposes only the declaration.
|
|
69
|
-
* `schedulable` is whether the tool can be scheduled.
|
|
69
|
+
* `schedulable` is whether the tool can be scheduled. `description` is the tool's own
|
|
70
|
+
* declared description, `null` when it declares none; tool pickers draw it under the
|
|
71
|
+
* tool's option and search it with the tool's label.
|
|
70
72
|
*/
|
|
71
73
|
export const toolTagEntry = openapi.toolTagRow;
|
|
72
74
|
export const toolTags = openapi.toolTagListResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/schemas/tools.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,kBAAkB,CAAC;AAEpD,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC;AAGjD,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;AAErD;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;AAGnD,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AAEvC;6FAC6F;AAC7F,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC;AAG7D;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;AAGnD,2FAA2F;AAC3F;;;iFAGiF;AACjF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACvD,SAAS,E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AC,IAAI,GAAG,CAAC,EAAE;IAC9D,OAAO,EAAE,iFAAiF;IAC1F,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC,CAAC;AAGL;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC;AAC/C,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,CAAC,mBAAmB,CAAC"}
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/** Composition root: assembles the per-resource sub-clients into the client. */
|
|
2
2
|
import { holdersFromError, storedPresetFaultFromError } from '../errors';
|
|
3
|
+
import { failedReplyRoll } from '../failed-reply-roll';
|
|
3
4
|
import type { ApiConfig } from '../http';
|
|
5
|
+
import { isMcpNotLoadedError, isMcpStartingError } from '../mcp-failure';
|
|
4
6
|
import { servedConstants } from '../schemas';
|
|
5
7
|
import { agentsClient } from './agents-client';
|
|
6
8
|
import { authClient } from './auth-client';
|
|
@@ -98,6 +100,9 @@ export function createApiClient(config: ApiConfig) {
|
|
|
98
100
|
* the client that raised it. */
|
|
99
101
|
holdersFromError,
|
|
100
102
|
storedPresetFaultFromError,
|
|
103
|
+
isMcpStartingError,
|
|
104
|
+
isMcpNotLoadedError,
|
|
105
|
+
failedReplyRoll,
|
|
101
106
|
...toolsClient(t),
|
|
102
107
|
...presetsClient(t),
|
|
103
108
|
...statesClient(t),
|
|
@@ -97,13 +97,13 @@ export function mcpServersClient(t: Transport) {
|
|
|
97
97
|
return {
|
|
98
98
|
getMcpStatus: (signal?: AbortSignal) =>
|
|
99
99
|
req(apiRoutes.get_api_mcp_status.path, s.mcpStatus, { signal }),
|
|
100
|
-
// Every tool the server
|
|
101
|
-
//
|
|
100
|
+
// Every tool the server advertised at its bind on the answering worker, before the
|
|
101
|
+
// entry's tool filter. Read from the listing the worker holds; never starts the server.
|
|
102
102
|
listMcpAdvertisedTools: (title: string, signal?: AbortSignal) =>
|
|
103
103
|
req(
|
|
104
|
-
buildPath(apiRoutes.
|
|
104
|
+
buildPath(apiRoutes.get_api_mcp_status_title_advertised_tools.path, { title }),
|
|
105
105
|
s.mcpAdvertisedTools,
|
|
106
|
-
{
|
|
106
|
+
{ signal },
|
|
107
107
|
),
|
|
108
108
|
// Replace the entry's include/exclude tool filter; crosses the config pipeline.
|
|
109
109
|
setMcpToolFilter: (title: string, filter: McpToolFilter) =>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The failed-MCP roster: the servers a `GET /api/mcp-status/failed` broadcast report names as
|
|
3
|
+
* having no bound tools on some worker, read from each worker's own failed list.
|
|
4
|
+
*/
|
|
5
|
+
import { isMcpStarting } from './mcp-failure';
|
|
6
|
+
import type { FleetResult } from './schemas';
|
|
7
|
+
|
|
8
|
+
/** One MCP server skipped by the viability check — its title, a coarse status, and the
|
|
9
|
+
* credential-free detail the platform records when present: `category` (`preset_store`
|
|
10
|
+
* when the preset store could not be read, `auth` for a 401/403, `unreachable` for a
|
|
11
|
+
* transport error or a start that outran the start budget, `starting` for a start still
|
|
12
|
+
* in progress — not a failure, read through `isMcpStarting` — and `error` otherwise), the
|
|
13
|
+
* redacted `message`, and the `http_status` the failure carried (`null` for a pure
|
|
14
|
+
* transport failure). The three detail fields are absent when the reporting server
|
|
15
|
+
* omitted them. */
|
|
16
|
+
export interface FailedMcpEntry {
|
|
17
|
+
readonly title: string;
|
|
18
|
+
readonly status: string;
|
|
19
|
+
readonly category?: string;
|
|
20
|
+
readonly message?: string;
|
|
21
|
+
readonly http_status?: number | null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** One worker's failed-list entry as a roster row, or `null` when it is not an object with a
|
|
25
|
+
* non-empty string title. A missing status reads as `unavailable`; a detail field of the
|
|
26
|
+
* wrong type is dropped, never coerced. */
|
|
27
|
+
function failedMcpEntryOf(entry: unknown): FailedMcpEntry | null {
|
|
28
|
+
if (typeof entry !== 'object' || entry === null || Array.isArray(entry)) return null;
|
|
29
|
+
const record = entry as Record<string, unknown>;
|
|
30
|
+
const { title, status, category, message } = record;
|
|
31
|
+
if (typeof title !== 'string' || title === '') return null;
|
|
32
|
+
return {
|
|
33
|
+
title,
|
|
34
|
+
status: typeof status === 'string' ? status : 'unavailable',
|
|
35
|
+
...(typeof category === 'string' ? { category } : {}),
|
|
36
|
+
...(typeof message === 'string' ? { message } : {}),
|
|
37
|
+
...(typeof record.http_status === 'number' || record.http_status === null
|
|
38
|
+
? { http_status: record.http_status }
|
|
39
|
+
: {}),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The failed-MCP roster carried by a `GET /api/mcp-status/failed` broadcast report.
|
|
45
|
+
* The query op rides the fleet fan-out primitive, so each worker's own failed list
|
|
46
|
+
* arrives as its per-worker `payload` (opaque on the wire). This unions those lists
|
|
47
|
+
* by title — a server failed on ANY worker is a server the operator must see — and
|
|
48
|
+
* name-sorts the result, tolerating a worker whose payload is absent or malformed
|
|
49
|
+
* (skipped, never a throw: a partial fleet report still yields the roster it can).
|
|
50
|
+
*
|
|
51
|
+
* One record per title carries the whole row, detail fields included: a failure record
|
|
52
|
+
* on any worker wins over a server start still in progress ({@link isMcpStarting}) on
|
|
53
|
+
* another, and otherwise the first-seen record wins.
|
|
54
|
+
*/
|
|
55
|
+
export function failedMcpsFromReport(result: Omit<FleetResult, 'ok'>): FailedMcpEntry[] {
|
|
56
|
+
const byTitle = new Map<string, FailedMcpEntry>();
|
|
57
|
+
for (const worker of result.results) {
|
|
58
|
+
const payload: unknown = worker.payload;
|
|
59
|
+
if (!Array.isArray(payload)) continue;
|
|
60
|
+
for (const entry of payload) {
|
|
61
|
+
const row = failedMcpEntryOf(entry);
|
|
62
|
+
if (row === null) continue;
|
|
63
|
+
const seen = byTitle.get(row.title);
|
|
64
|
+
if (seen === undefined || (isMcpStarting(seen) && !isMcpStarting(row))) {
|
|
65
|
+
byTitle.set(row.title, row);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return [...byTitle.values()].sort((a, b) => a.title.localeCompare(b.title));
|
|
70
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The recycle roll a failed reply carries. A config change whose propagation failed after its
|
|
3
|
+
* roll ran answers with the error beside the roll's fields: a fleet broadcast's failure with
|
|
4
|
+
* `report` when its cause is operator-facing and without it when the cause is masked, a marketplace
|
|
5
|
+
* failure with the roll's fields alone, under any status. This module is the one reader of them:
|
|
6
|
+
* the transport refuses a reply whose roll does not match its schema, and every door reads a
|
|
7
|
+
* well-formed one through {@link failedReplyRoll}.
|
|
8
|
+
*/
|
|
9
|
+
import type { z } from 'zod';
|
|
10
|
+
|
|
11
|
+
import { ApiError, ApiSchemaError } from './errors';
|
|
12
|
+
import { type FleetReportSummary, summarizeFleetFanout } from './fleet-report';
|
|
13
|
+
import { applyResponse } from './generated/openapi-schemas';
|
|
14
|
+
import { fleetResult, type RecycleRoll } from './schemas/fleet';
|
|
15
|
+
|
|
16
|
+
const rollFields = applyResponse.pick({
|
|
17
|
+
awaiting_respawn: true,
|
|
18
|
+
recycle: true,
|
|
19
|
+
roll_deferred: true,
|
|
20
|
+
roll_deferred_to: true,
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const failedReplyBody = rollFields.extend({ report: fleetResult.optional() });
|
|
24
|
+
type FailedReplyBody = z.infer<typeof failedReplyBody>;
|
|
25
|
+
|
|
26
|
+
/** What a failed reply states about the change's roll, ready for the fleet outcome report. */
|
|
27
|
+
export interface FailedReplyRoll {
|
|
28
|
+
/**
|
|
29
|
+
* The fold of the reply's fleet report and its workers awaiting a respawn. A reply without
|
|
30
|
+
* `report` has no broadcast rows, so its summary states no failed worker and no
|
|
31
|
+
* propagation result; a surface never reads a `converged` status here as a success.
|
|
32
|
+
*/
|
|
33
|
+
readonly summary: FleetReportSummary | null;
|
|
34
|
+
/** The roll the change ran, or `null` when it ran none. */
|
|
35
|
+
readonly recycle: RecycleRoll | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function carriesRoll(body: unknown): boolean {
|
|
39
|
+
if (typeof body !== 'object' || body === null) return false;
|
|
40
|
+
return Object.keys(rollFields.shape).some((field) => field in body);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** Refuse a failed reply from `endpoint` whose roll does not match its schema. */
|
|
44
|
+
export function checkFailedReplyRoll(endpoint: string, body: unknown): void {
|
|
45
|
+
if (!carriesRoll(body)) return;
|
|
46
|
+
const parsed = failedReplyBody.safeParse(body);
|
|
47
|
+
if (!parsed.success) throw new ApiSchemaError(endpoint, parsed.error.issues);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function foldRoll(body: FailedReplyBody): FailedReplyRoll {
|
|
51
|
+
const { report, recycle, awaiting_respawn } = body;
|
|
52
|
+
const fanout = report === undefined ? null : { ...report, mode: fanoutMode(report.reachable) };
|
|
53
|
+
return {
|
|
54
|
+
summary: summarizeFleetFanout({ fanout, awaiting_respawn, recycle, span_release_error: null }),
|
|
55
|
+
recycle,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function fanoutMode(reachable: boolean): 'fleet' | 'unreachable' {
|
|
60
|
+
return reachable ? 'fleet' : 'unreachable';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The roll the failed reply behind `error` carries: an `ApiError` whose body has roll fields
|
|
65
|
+
* answers it, parsed (a malformed roll throws). Any other error, or a body without roll fields,
|
|
66
|
+
* answers `null`.
|
|
67
|
+
*/
|
|
68
|
+
export function failedReplyRoll(error: unknown): FailedReplyRoll | null {
|
|
69
|
+
if (!(error instanceof ApiError) || !carriesRoll(error.body)) return null;
|
|
70
|
+
return foldRoll(failedReplyBody.parse(error.body));
|
|
71
|
+
}
|