wicked-crew-api-types 0.104.0 → 0.105.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/index.d.ts +44 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5274,6 +5274,50 @@ export interface ElicitationResponse {
|
|
|
5274
5274
|
content?: { response: string };
|
|
5275
5275
|
}
|
|
5276
5276
|
|
|
5277
|
+
// ── Inventory claims (wicked-crew#721) — whether each enumerating step's list is complete ──
|
|
5278
|
+
|
|
5279
|
+
/**
|
|
5280
|
+
* How fully an enumerating step's source answered (wicked-garden `core/refs/inventory-report.md`).
|
|
5281
|
+
* `unknown` is crew's own reading of a block that does not parse, or has a required field missing
|
|
5282
|
+
* or misshapen: it never reads as `full`.
|
|
5283
|
+
*/
|
|
5284
|
+
export type InventoryAnswered = 'full' | 'partial' | 'none' | 'unknown';
|
|
5285
|
+
|
|
5286
|
+
/**
|
|
5287
|
+
* One `wicked-inventory` block a step ended its reply with: where it listed from, how fully the
|
|
5288
|
+
* source answered, how many it listed, the total the source reported (`null` when it reports
|
|
5289
|
+
* none) and what it could not read. A `full` its own numbers contradict reads `partial`, with the
|
|
5290
|
+
* contradiction added to `unread`.
|
|
5291
|
+
*/
|
|
5292
|
+
export interface InventoryClaim {
|
|
5293
|
+
source: string | null;
|
|
5294
|
+
answered: InventoryAnswered;
|
|
5295
|
+
listed: number | null;
|
|
5296
|
+
expected: number | null;
|
|
5297
|
+
unread: string[];
|
|
5298
|
+
}
|
|
5299
|
+
|
|
5300
|
+
/** One unit of a run that claimed an inventory. */
|
|
5301
|
+
export interface RunInventoryUnit {
|
|
5302
|
+
ord: number;
|
|
5303
|
+
unitId: string;
|
|
5304
|
+
claims: InventoryClaim[];
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
/**
|
|
5308
|
+
* `GET /runs/:id/inventory` (404 for an unknown run). `complete` is true only when at least one
|
|
5309
|
+
* unit claimed an inventory, every claim is `full` and every finished unit's output was readable;
|
|
5310
|
+
* a unit whose output could not be read is listed in `unreadUnits`. `readable: false` when the
|
|
5311
|
+
* adapter keeps no transcripts (then `units` and `unreadUnits` are empty).
|
|
5312
|
+
*/
|
|
5313
|
+
export interface RunInventoryResponse {
|
|
5314
|
+
runId: string;
|
|
5315
|
+
readable: boolean;
|
|
5316
|
+
complete: boolean;
|
|
5317
|
+
units: RunInventoryUnit[];
|
|
5318
|
+
unreadUnits: string[];
|
|
5319
|
+
}
|
|
5320
|
+
|
|
5277
5321
|
// ── Presets (DES-TEAMING-002 §8.4, seam C2) — saved phase selections ──────────
|
|
5278
5322
|
|
|
5279
5323
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-crew-api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.105.0",
|
|
4
4
|
"description": "The wire contract of the wicked-crew daemon's /api/v1 REST surface and /ws CoreEvent frames \u2014 types only, zero runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./index.d.ts",
|