wicked-crew-api-types 0.103.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 +106 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -322,6 +322,19 @@ export interface AgentSession {
|
|
|
322
322
|
* in-run delivery (its receipt is `deliverLiftEvaluated.assurance`) and for an undelivered run.
|
|
323
323
|
*/
|
|
324
324
|
delivery_assurance?: DeliveryAssurance;
|
|
325
|
+
/**
|
|
326
|
+
* (crew#720) The zip of the run's FINAL codebase, taken for every delivery whatever its outcome
|
|
327
|
+
* (delivered, push refused, credentials missing, wrong account, lift conflict, a run that failed
|
|
328
|
+
* after building, a cancel): `GET codebase_archive.url` downloads it. ABSENT when the run had no
|
|
329
|
+
* repository, no archive has been taken yet, or the daemon predates the field.
|
|
330
|
+
*/
|
|
331
|
+
codebase_archive?: CodebaseArchive;
|
|
332
|
+
/**
|
|
333
|
+
* (crew#720) Present when the run's deliver phase REFUSED for want of the provider credential
|
|
334
|
+
* (`status: 'missing'`): the run waits at the deliver gate with its work kept, and `message` /
|
|
335
|
+
* `missing` say what to set before approving the retry. ABSENT otherwise.
|
|
336
|
+
*/
|
|
337
|
+
deliver_credentials?: DeliverCredentials;
|
|
325
338
|
/**
|
|
326
339
|
* The project this run is filed into (DES-UX-001 §8.2, CREW-UX-2; api-types 0.8.0) —
|
|
327
340
|
* populated by the crew server from the membership record at DTO assembly on BOTH
|
|
@@ -4634,8 +4647,51 @@ export interface SetGuidanceResult {
|
|
|
4634
4647
|
* — the body's `error` carries the script's own words, e.g. the rebase-conflict message), 500
|
|
4635
4648
|
* (the script produced no verifiable PR URL, or could not be spawned).
|
|
4636
4649
|
*/
|
|
4650
|
+
/**
|
|
4651
|
+
* (crew#720) The deliver phase's provider credential preflight — ONE shape for GitHub and Azure
|
|
4652
|
+
* DevOps. Presence only: no value is ever read into a crew record.
|
|
4653
|
+
* - GitHub: `GH_TOKEN` exported (`source: 'gh_token'`), else a gh login for github.com
|
|
4654
|
+
* (`'gh_login'`); gh absent or signed out is `missing` (`missing: ['gh auth login', 'GH_TOKEN']`).
|
|
4655
|
+
* - Azure DevOps: the service principal `CREW_ADO_TENANT_ID` + `CREW_ADO_CLIENT_ID` +
|
|
4656
|
+
* `CREW_ADO_CLIENT_SECRET` (`'service_principal'`), else `AZURE_DEVOPS_EXT_PAT` (`'pat'`).
|
|
4657
|
+
* `unknown` = the probe could not answer (gh timed out) — never read it as missing.
|
|
4658
|
+
*/
|
|
4659
|
+
export interface DeliverCredentials {
|
|
4660
|
+
provider: 'github' | 'azure_devops';
|
|
4661
|
+
status: 'configured' | 'missing' | 'unknown';
|
|
4662
|
+
source: 'gh_token' | 'gh_login' | 'service_principal' | 'pat' | null;
|
|
4663
|
+
/** What to set when `missing` (env var names, commands), in the order the phase tries them. */
|
|
4664
|
+
missing: string[];
|
|
4665
|
+
/** One sentence, for the gate card and the run record. */
|
|
4666
|
+
message: string;
|
|
4667
|
+
}
|
|
4668
|
+
|
|
4669
|
+
/** (crew#720) A run's final-codebase zip (`AgentSession.codebase_archive`). */
|
|
4670
|
+
export interface CodebaseArchive {
|
|
4671
|
+
/** Daemon-relative: `/api/v1/runs/<id>/artifacts/codebase.zip` (also answers `X-Content-SHA256`). */
|
|
4672
|
+
url: string;
|
|
4673
|
+
/** Hex sha256 of the zip's bytes. */
|
|
4674
|
+
sha256: string;
|
|
4675
|
+
bytes: number;
|
|
4676
|
+
/** The git tree the zip was written from (`git archive --format=zip <tree>`): HEAD plus the
|
|
4677
|
+
* worktree's tracked changes plus the untracked files the deliver phase ships — never `.git`,
|
|
4678
|
+
* gitignored files, or untracked `.env*` / key material. */
|
|
4679
|
+
tree: string;
|
|
4680
|
+
/** The commit the tree was taken on; `null` on an unborn branch. */
|
|
4681
|
+
commit: string | null;
|
|
4682
|
+
/** Unix millis. */
|
|
4683
|
+
created_at: number;
|
|
4684
|
+
/** `deliver`: the deliver phase's output landed (or a post-hoc deliver ran); `run_end`: the run ended. */
|
|
4685
|
+
trigger: 'deliver' | 'run_end';
|
|
4686
|
+
/** `worktree`: read from the live run worktree; `branch`: from the retained `wicked/<run>` branch. */
|
|
4687
|
+
source: 'worktree' | 'branch';
|
|
4688
|
+
}
|
|
4689
|
+
|
|
4637
4690
|
export interface DeliverRunResult {
|
|
4638
4691
|
prUrl: string;
|
|
4692
|
+
/** (crew#720) The final-codebase zip taken for this delivery (also on `AgentSession.codebase_archive`).
|
|
4693
|
+
* ABSENT when no archive could be taken, and on an idempotent replay. */
|
|
4694
|
+
codebase?: CodebaseArchive;
|
|
4639
4695
|
/** (crew ≥ 0.9.0, EX-04) Always `verified: false, via: 'post_hoc'` here: nothing re-verified the
|
|
4640
4696
|
* delivered tree. ABSENT on an idempotent replay of a delivery recorded before crew 0.9.0. */
|
|
4641
4697
|
assurance?: DeliveryAssurance;
|
|
@@ -4933,6 +4989,12 @@ export interface DeliverTargetResponse {
|
|
|
4933
4989
|
origin: 'github' | 'local' | 'other' | 'none' | 'unknown';
|
|
4934
4990
|
githubRepo: string | null;
|
|
4935
4991
|
sentence: string;
|
|
4992
|
+
/** (crew#720) Where the pull request opens when the origin is Azure DevOps: `org/project/repo`;
|
|
4993
|
+
* `null` otherwise. ABSENT on an older daemon. */
|
|
4994
|
+
adoRepo?: string | null;
|
|
4995
|
+
/** (crew#720) The provider credential preflight for this origin — `missing` says what to set
|
|
4996
|
+
* BEFORE launching. `null` when no provider applies (a local or other origin); ABSENT on an older daemon. */
|
|
4997
|
+
credentials?: DeliverCredentials | null;
|
|
4936
4998
|
}
|
|
4937
4999
|
|
|
4938
5000
|
/**
|
|
@@ -5212,6 +5274,50 @@ export interface ElicitationResponse {
|
|
|
5212
5274
|
content?: { response: string };
|
|
5213
5275
|
}
|
|
5214
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
|
+
|
|
5215
5321
|
// ── Presets (DES-TEAMING-002 §8.4, seam C2) — saved phase selections ──────────
|
|
5216
5322
|
|
|
5217
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",
|