wicked-crew-api-types 0.108.0 → 0.110.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 +132 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -978,6 +978,11 @@ export interface SeatHealth {
|
|
|
978
978
|
* the seat intact so it round-trips verbatim into `clisJson` on launch.
|
|
979
979
|
*/
|
|
980
980
|
export interface RosterSeat {
|
|
981
|
+
/** (api-types 0.110.0, operator ruling 2026-10-11) An OPT-IN seat (opencode): never in a default
|
|
982
|
+
* launch roster — a launch surface shows it unticked with `optInNote` ("opt-in: known to stall")
|
|
983
|
+
* and includes it only when the operator ticks it. ABSENT for every other seat. */
|
|
984
|
+
optIn?: true;
|
|
985
|
+
optInNote?: string;
|
|
981
986
|
key: string;
|
|
982
987
|
display_name: string;
|
|
983
988
|
binary: string;
|
|
@@ -1958,8 +1963,24 @@ export type AssuranceInstrument =
|
|
|
1958
1963
|
| 'judge'
|
|
1959
1964
|
| 'evaluator_pass'
|
|
1960
1965
|
| 'distinct_evaluator'
|
|
1966
|
+
/** (api-types 0.110.0) The operator judged a gate whose judge could not rule. */
|
|
1967
|
+
| 'operator_judge'
|
|
1961
1968
|
| (string & {});
|
|
1962
1969
|
|
|
1970
|
+
/**
|
|
1971
|
+
* (api-types 0.110.0, operator ruling 2026-10-11) "Judged by operator": the operator's explicit
|
|
1972
|
+
* approve at a `judge_unavailable` gate (no eligible judge, or a judge that gave no verdict). `by` is
|
|
1973
|
+
* the actor the gate API recorded (the operator, or the agent acting for them); never automatic.
|
|
1974
|
+
*/
|
|
1975
|
+
export interface OperatorJudgment {
|
|
1976
|
+
by: string;
|
|
1977
|
+
/** Unix millis. */
|
|
1978
|
+
at: number;
|
|
1979
|
+
note: string | null;
|
|
1980
|
+
/** Why the judge could not rule (the gate's denial reason). */
|
|
1981
|
+
reason: string | null;
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1963
1984
|
/** Why an instrument is absent from a receipt. */
|
|
1964
1985
|
export type AssuranceSkipReason =
|
|
1965
1986
|
| 'reduced_assurance'
|
|
@@ -2038,6 +2059,13 @@ export interface AssuranceReceipt {
|
|
|
2038
2059
|
* run does not require QE acceptance (or on an older engine). A waived or skipped one is also a
|
|
2039
2060
|
* `skipped[]` entry (reason `qe_waived_by_score` | `qe_skipped_by_operator`). */
|
|
2040
2061
|
qe?: QeAcceptanceDecision;
|
|
2062
|
+
/** (api-types 0.109.0, core#888) The councils this decision's disputes convened, each with WHO
|
|
2063
|
+
* decided (`seats`) and the draw's `seed`. ABSENT when none was convened (the routine case) or on
|
|
2064
|
+
* an older engine. A delivery receipt lists every council of the run. */
|
|
2065
|
+
councils?: TeamDispute[];
|
|
2066
|
+
/** (api-types 0.110.0) Every gate the operator judged ("judged by operator"); ABSENT when none or on
|
|
2067
|
+
* an older engine. A unit receipt carries its own; a delivery receipt lists the run's. */
|
|
2068
|
+
operatorJudges?: OperatorJudgment[];
|
|
2041
2069
|
}
|
|
2042
2070
|
|
|
2043
2071
|
/**
|
|
@@ -5110,6 +5138,21 @@ export interface SystemSettings {
|
|
|
5110
5138
|
* the engine default `~/.wicked-worker`.
|
|
5111
5139
|
*/
|
|
5112
5140
|
worker_config_root?: string;
|
|
5141
|
+
/**
|
|
5142
|
+
* (api-types 0.109.0, operator ruling 2026-10-11) How many seats a council convenes — councils
|
|
5143
|
+
* sit only on concrete decisions (a team dispute). Integer 1..9, default 3; the seats are drawn
|
|
5144
|
+
* AT RANDOM from the run's eligible seats (not benched, not a party to the dispute), distinct
|
|
5145
|
+
* model families first, and the draw's seats + seed ride the gate's receipt
|
|
5146
|
+
* (`AssuranceReceipt.councils`). The daemon exports it as `WICKED_COUNCIL_SIZE` at boot and on
|
|
5147
|
+
* every change; the engine reads it per council. Absent = the default.
|
|
5148
|
+
*/
|
|
5149
|
+
councilSize?: number;
|
|
5150
|
+
/**
|
|
5151
|
+
* (api-types 0.109.0) Milliseconds between two council seat spawns of one ballot, so a council
|
|
5152
|
+
* never forks every heavy CLI at once. Integer 0..30000, default 3000 (`0` = all at once).
|
|
5153
|
+
* Exported as `WICKED_COUNCIL_SPAWN_STAGGER_MS`, read per council. Absent = the default.
|
|
5154
|
+
*/
|
|
5155
|
+
councilSpawnStaggerMs?: number;
|
|
5113
5156
|
/*
|
|
5114
5157
|
* There is NO skills setting (skills keystone, api-types 0.28.0). The daemon-owned skills root is
|
|
5115
5158
|
* `<state home>/skills` — the directory holding `manifest.json`, `baseline/<hash>/`, `effective/`,
|
|
@@ -8433,8 +8476,28 @@ export type TeamCouncilRuledPayload = TeamEnvelope & {
|
|
|
8433
8476
|
dissent: string[];
|
|
8434
8477
|
returned: number;
|
|
8435
8478
|
seated: number;
|
|
8479
|
+
/** (api-types 0.109.0, core#888) The seats drawn onto the council, the draw's seed, and the
|
|
8480
|
+
* eligible seats it was drawn from. ABSENT when nothing was convened or on an older engine. */
|
|
8481
|
+
seats?: string[];
|
|
8482
|
+
seed?: number;
|
|
8483
|
+
eligible?: string[];
|
|
8436
8484
|
};
|
|
8437
8485
|
|
|
8486
|
+
/**
|
|
8487
|
+
* A one-off council's verdict on a dispute (DES-001 §6.3). (api-types 0.109.0, core#888) `seats`
|
|
8488
|
+
* names WHO decided — the seats drawn onto the council (empty when none was convened, or on an
|
|
8489
|
+
* older engine) — and `seed` is the random draw's seed: re-drawing with it seats the same council.
|
|
8490
|
+
* `seed` is ABSENT when no council was drawn or on an older engine.
|
|
8491
|
+
*/
|
|
8492
|
+
export interface TeamDispute {
|
|
8493
|
+
verdict: 'yes' | 'no' | 'no_verdict' | (string & {});
|
|
8494
|
+
agreementPct: number | null;
|
|
8495
|
+
dissent: number | null;
|
|
8496
|
+
seats: string[];
|
|
8497
|
+
seed?: number;
|
|
8498
|
+
reason: string | null;
|
|
8499
|
+
}
|
|
8500
|
+
|
|
8438
8501
|
/** DES-001 §7 `teamLedger.findings[]` (camelCase). */
|
|
8439
8502
|
export interface TeamLedgerFinding {
|
|
8440
8503
|
findingId: string;
|
|
@@ -8454,13 +8517,7 @@ export interface TeamLedgerFinding {
|
|
|
8454
8517
|
status: 'accepted' | 'declined' | 'withdrawn' | 'unanswered' | 'superseded' | (string & {});
|
|
8455
8518
|
workerReason: string | null;
|
|
8456
8519
|
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;
|
|
8520
|
+
dispute: TeamDispute | null;
|
|
8464
8521
|
/**
|
|
8465
8522
|
* (T6, api-types 0.42.0) The enclosing location the finding id is minted over (git's funcname
|
|
8466
8523
|
* heuristic). Omitted when file-level.
|
|
@@ -10333,3 +10390,71 @@ export interface ProductComposeResponse {
|
|
|
10333
10390
|
/** How many requirements the draft was handed. */
|
|
10334
10391
|
requirements: number;
|
|
10335
10392
|
}
|
|
10393
|
+
|
|
10394
|
+
// ── learn schedules (DES-learn-workflow §5) ────────────────────────────────────────────────────
|
|
10395
|
+
|
|
10396
|
+
/** A learn schedule's last outcome: `launched` while its run is open; `refused` = the launch failed. */
|
|
10397
|
+
export type LearnScheduleOutcome = 'launched' | 'refused' | 'completed' | 'failed' | 'cancelled';
|
|
10398
|
+
|
|
10399
|
+
/** One learned topic's refresh schedule (`GET /learn/schedules`). `id` = `<repoRef>:<slug>`. */
|
|
10400
|
+
export interface LearnSchedule {
|
|
10401
|
+
id: string;
|
|
10402
|
+
repoRef: string;
|
|
10403
|
+
/** The topic's directory under `.wicked/knowledge/`. */
|
|
10404
|
+
slug: string;
|
|
10405
|
+
/** The topic in plain words (the refresh run's intent names it). */
|
|
10406
|
+
topic: string;
|
|
10407
|
+
projectId?: string;
|
|
10408
|
+
/** Interval, 24..2160 hours. */
|
|
10409
|
+
everyHours: number;
|
|
10410
|
+
enabled: boolean;
|
|
10411
|
+
/** ISO-8601. Missed intervals coalesce into one launch. */
|
|
10412
|
+
nextDueAt: string;
|
|
10413
|
+
lastRunId: string | null;
|
|
10414
|
+
lastRunAt: string | null;
|
|
10415
|
+
lastOutcome: LearnScheduleOutcome | null;
|
|
10416
|
+
/** Consecutive refused launches (backoff = min(2^failures, 24) h). */
|
|
10417
|
+
failures: number;
|
|
10418
|
+
lastError: string | null;
|
|
10419
|
+
/** The git tree id of `.wicked/knowledge/<slug>` last indexed into estate (null = never). */
|
|
10420
|
+
indexedTree: string | null;
|
|
10421
|
+
createdAt: string;
|
|
10422
|
+
updatedAt: string;
|
|
10423
|
+
}
|
|
10424
|
+
|
|
10425
|
+
export interface LearnSchedulesResponse {
|
|
10426
|
+
schedules: LearnSchedule[];
|
|
10427
|
+
}
|
|
10428
|
+
|
|
10429
|
+
/** `PUT /learn/schedules/:id` (`:id` must equal `<repoRef>:<slug>`). */
|
|
10430
|
+
export interface LearnSchedulePutBody {
|
|
10431
|
+
repoRef: string;
|
|
10432
|
+
slug: string;
|
|
10433
|
+
topic: string;
|
|
10434
|
+
everyHours: number;
|
|
10435
|
+
enabled?: boolean;
|
|
10436
|
+
projectId?: string;
|
|
10437
|
+
}
|
|
10438
|
+
|
|
10439
|
+
/** One learned topic of a repository (`GET /learn/topics?repoRef=`), read from `.wicked/knowledge/<slug>/`. */
|
|
10440
|
+
export interface LearnTopic {
|
|
10441
|
+
slug: string;
|
|
10442
|
+
title: string;
|
|
10443
|
+
kind: 'topic' | 'event';
|
|
10444
|
+
/** topic.json `refreshed_at` (else `created_at`), ISO-8601; null when absent. */
|
|
10445
|
+
refreshedAt: string | null;
|
|
10446
|
+
claims: { active: number; superseded: number; contradicted: number; retired: number };
|
|
10447
|
+
/** The oldest `last_verified` among active claims (ISO-8601), null when none. */
|
|
10448
|
+
oldestVerifiedAt: string | null;
|
|
10449
|
+
/** Active claims not re-verified within the staleness window (2 intervals when scheduled, else 60 days). */
|
|
10450
|
+
staleActive: number;
|
|
10451
|
+
/** Distinct source URLs across the ledger. */
|
|
10452
|
+
sources: number;
|
|
10453
|
+
/** A plain-words reason a file could not be read, else null. */
|
|
10454
|
+
problem: string | null;
|
|
10455
|
+
}
|
|
10456
|
+
|
|
10457
|
+
export interface LearnTopicsResponse {
|
|
10458
|
+
repoRef: string;
|
|
10459
|
+
topics: LearnTopic[];
|
|
10460
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-crew-api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.110.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",
|