wicked-crew-api-types 0.108.0 → 0.109.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 +108 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2038,6 +2038,10 @@ export interface AssuranceReceipt {
|
|
|
2038
2038
|
* run does not require QE acceptance (or on an older engine). A waived or skipped one is also a
|
|
2039
2039
|
* `skipped[]` entry (reason `qe_waived_by_score` | `qe_skipped_by_operator`). */
|
|
2040
2040
|
qe?: QeAcceptanceDecision;
|
|
2041
|
+
/** (api-types 0.109.0, core#888) The councils this decision's disputes convened, each with WHO
|
|
2042
|
+
* decided (`seats`) and the draw's `seed`. ABSENT when none was convened (the routine case) or on
|
|
2043
|
+
* an older engine. A delivery receipt lists every council of the run. */
|
|
2044
|
+
councils?: TeamDispute[];
|
|
2041
2045
|
}
|
|
2042
2046
|
|
|
2043
2047
|
/**
|
|
@@ -5110,6 +5114,21 @@ export interface SystemSettings {
|
|
|
5110
5114
|
* the engine default `~/.wicked-worker`.
|
|
5111
5115
|
*/
|
|
5112
5116
|
worker_config_root?: string;
|
|
5117
|
+
/**
|
|
5118
|
+
* (api-types 0.109.0, operator ruling 2026-10-11) How many seats a council convenes — councils
|
|
5119
|
+
* sit only on concrete decisions (a team dispute). Integer 1..9, default 3; the seats are drawn
|
|
5120
|
+
* AT RANDOM from the run's eligible seats (not benched, not a party to the dispute), distinct
|
|
5121
|
+
* model families first, and the draw's seats + seed ride the gate's receipt
|
|
5122
|
+
* (`AssuranceReceipt.councils`). The daemon exports it as `WICKED_COUNCIL_SIZE` at boot and on
|
|
5123
|
+
* every change; the engine reads it per council. Absent = the default.
|
|
5124
|
+
*/
|
|
5125
|
+
councilSize?: number;
|
|
5126
|
+
/**
|
|
5127
|
+
* (api-types 0.109.0) Milliseconds between two council seat spawns of one ballot, so a council
|
|
5128
|
+
* never forks every heavy CLI at once. Integer 0..30000, default 3000 (`0` = all at once).
|
|
5129
|
+
* Exported as `WICKED_COUNCIL_SPAWN_STAGGER_MS`, read per council. Absent = the default.
|
|
5130
|
+
*/
|
|
5131
|
+
councilSpawnStaggerMs?: number;
|
|
5113
5132
|
/*
|
|
5114
5133
|
* There is NO skills setting (skills keystone, api-types 0.28.0). The daemon-owned skills root is
|
|
5115
5134
|
* `<state home>/skills` — the directory holding `manifest.json`, `baseline/<hash>/`, `effective/`,
|
|
@@ -8433,8 +8452,28 @@ export type TeamCouncilRuledPayload = TeamEnvelope & {
|
|
|
8433
8452
|
dissent: string[];
|
|
8434
8453
|
returned: number;
|
|
8435
8454
|
seated: number;
|
|
8455
|
+
/** (api-types 0.109.0, core#888) The seats drawn onto the council, the draw's seed, and the
|
|
8456
|
+
* eligible seats it was drawn from. ABSENT when nothing was convened or on an older engine. */
|
|
8457
|
+
seats?: string[];
|
|
8458
|
+
seed?: number;
|
|
8459
|
+
eligible?: string[];
|
|
8436
8460
|
};
|
|
8437
8461
|
|
|
8462
|
+
/**
|
|
8463
|
+
* A one-off council's verdict on a dispute (DES-001 §6.3). (api-types 0.109.0, core#888) `seats`
|
|
8464
|
+
* names WHO decided — the seats drawn onto the council (empty when none was convened, or on an
|
|
8465
|
+
* older engine) — and `seed` is the random draw's seed: re-drawing with it seats the same council.
|
|
8466
|
+
* `seed` is ABSENT when no council was drawn or on an older engine.
|
|
8467
|
+
*/
|
|
8468
|
+
export interface TeamDispute {
|
|
8469
|
+
verdict: 'yes' | 'no' | 'no_verdict' | (string & {});
|
|
8470
|
+
agreementPct: number | null;
|
|
8471
|
+
dissent: number | null;
|
|
8472
|
+
seats: string[];
|
|
8473
|
+
seed?: number;
|
|
8474
|
+
reason: string | null;
|
|
8475
|
+
}
|
|
8476
|
+
|
|
8438
8477
|
/** DES-001 §7 `teamLedger.findings[]` (camelCase). */
|
|
8439
8478
|
export interface TeamLedgerFinding {
|
|
8440
8479
|
findingId: string;
|
|
@@ -8454,13 +8493,7 @@ export interface TeamLedgerFinding {
|
|
|
8454
8493
|
status: 'accepted' | 'declined' | 'withdrawn' | 'unanswered' | 'superseded' | (string & {});
|
|
8455
8494
|
workerReason: string | null;
|
|
8456
8495
|
monitorReply: { kind: 'hold' | 'withdraw' | (string & {}); reason: string } | null;
|
|
8457
|
-
dispute:
|
|
8458
|
-
verdict: 'yes' | 'no' | 'no_verdict' | (string & {});
|
|
8459
|
-
agreementPct: number | null;
|
|
8460
|
-
dissent: number | null;
|
|
8461
|
-
seats: string[];
|
|
8462
|
-
reason: string | null;
|
|
8463
|
-
} | null;
|
|
8496
|
+
dispute: TeamDispute | null;
|
|
8464
8497
|
/**
|
|
8465
8498
|
* (T6, api-types 0.42.0) The enclosing location the finding id is minted over (git's funcname
|
|
8466
8499
|
* heuristic). Omitted when file-level.
|
|
@@ -10333,3 +10366,71 @@ export interface ProductComposeResponse {
|
|
|
10333
10366
|
/** How many requirements the draft was handed. */
|
|
10334
10367
|
requirements: number;
|
|
10335
10368
|
}
|
|
10369
|
+
|
|
10370
|
+
// ── learn schedules (DES-learn-workflow §5) ────────────────────────────────────────────────────
|
|
10371
|
+
|
|
10372
|
+
/** A learn schedule's last outcome: `launched` while its run is open; `refused` = the launch failed. */
|
|
10373
|
+
export type LearnScheduleOutcome = 'launched' | 'refused' | 'completed' | 'failed' | 'cancelled';
|
|
10374
|
+
|
|
10375
|
+
/** One learned topic's refresh schedule (`GET /learn/schedules`). `id` = `<repoRef>:<slug>`. */
|
|
10376
|
+
export interface LearnSchedule {
|
|
10377
|
+
id: string;
|
|
10378
|
+
repoRef: string;
|
|
10379
|
+
/** The topic's directory under `.wicked/knowledge/`. */
|
|
10380
|
+
slug: string;
|
|
10381
|
+
/** The topic in plain words (the refresh run's intent names it). */
|
|
10382
|
+
topic: string;
|
|
10383
|
+
projectId?: string;
|
|
10384
|
+
/** Interval, 24..2160 hours. */
|
|
10385
|
+
everyHours: number;
|
|
10386
|
+
enabled: boolean;
|
|
10387
|
+
/** ISO-8601. Missed intervals coalesce into one launch. */
|
|
10388
|
+
nextDueAt: string;
|
|
10389
|
+
lastRunId: string | null;
|
|
10390
|
+
lastRunAt: string | null;
|
|
10391
|
+
lastOutcome: LearnScheduleOutcome | null;
|
|
10392
|
+
/** Consecutive refused launches (backoff = min(2^failures, 24) h). */
|
|
10393
|
+
failures: number;
|
|
10394
|
+
lastError: string | null;
|
|
10395
|
+
/** The git tree id of `.wicked/knowledge/<slug>` last indexed into estate (null = never). */
|
|
10396
|
+
indexedTree: string | null;
|
|
10397
|
+
createdAt: string;
|
|
10398
|
+
updatedAt: string;
|
|
10399
|
+
}
|
|
10400
|
+
|
|
10401
|
+
export interface LearnSchedulesResponse {
|
|
10402
|
+
schedules: LearnSchedule[];
|
|
10403
|
+
}
|
|
10404
|
+
|
|
10405
|
+
/** `PUT /learn/schedules/:id` (`:id` must equal `<repoRef>:<slug>`). */
|
|
10406
|
+
export interface LearnSchedulePutBody {
|
|
10407
|
+
repoRef: string;
|
|
10408
|
+
slug: string;
|
|
10409
|
+
topic: string;
|
|
10410
|
+
everyHours: number;
|
|
10411
|
+
enabled?: boolean;
|
|
10412
|
+
projectId?: string;
|
|
10413
|
+
}
|
|
10414
|
+
|
|
10415
|
+
/** One learned topic of a repository (`GET /learn/topics?repoRef=`), read from `.wicked/knowledge/<slug>/`. */
|
|
10416
|
+
export interface LearnTopic {
|
|
10417
|
+
slug: string;
|
|
10418
|
+
title: string;
|
|
10419
|
+
kind: 'topic' | 'event';
|
|
10420
|
+
/** topic.json `refreshed_at` (else `created_at`), ISO-8601; null when absent. */
|
|
10421
|
+
refreshedAt: string | null;
|
|
10422
|
+
claims: { active: number; superseded: number; contradicted: number; retired: number };
|
|
10423
|
+
/** The oldest `last_verified` among active claims (ISO-8601), null when none. */
|
|
10424
|
+
oldestVerifiedAt: string | null;
|
|
10425
|
+
/** Active claims not re-verified within the staleness window (2 intervals when scheduled, else 60 days). */
|
|
10426
|
+
staleActive: number;
|
|
10427
|
+
/** Distinct source URLs across the ledger. */
|
|
10428
|
+
sources: number;
|
|
10429
|
+
/** A plain-words reason a file could not be read, else null. */
|
|
10430
|
+
problem: string | null;
|
|
10431
|
+
}
|
|
10432
|
+
|
|
10433
|
+
export interface LearnTopicsResponse {
|
|
10434
|
+
repoRef: string;
|
|
10435
|
+
topics: LearnTopic[];
|
|
10436
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-crew-api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.109.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",
|