wicked-crew-api-types 0.97.0 → 0.98.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 +52 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -227,6 +227,8 @@ export interface HealthCapabilities {
|
|
|
227
227
|
/**
|
|
228
228
|
* `LaunchRunBody.revisesPr` is accepted (crew#550; crew ≥ 0.7.36). ABSENT on a daemon before
|
|
229
229
|
* the field — read as `false`: do not send `revisesPr` to such a daemon.
|
|
230
|
+
* NOTE (crew#662): this CAPABILITY flag is a boolean; the LAUNCH field of the same name,
|
|
231
|
+
* `LaunchRunBody.revisesPr`, is the pull request NUMBER (a positive integer) — never `true`.
|
|
230
232
|
*/
|
|
231
233
|
revisesPr?: boolean;
|
|
232
234
|
/**
|
|
@@ -246,6 +248,12 @@ export interface HealthCapabilities {
|
|
|
246
248
|
* as `false`: group such a daemon's runs one session per run.
|
|
247
249
|
*/
|
|
248
250
|
runChatId?: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* (crew#825; additive) `LaunchRunBody.excludeLinkedIssues` is accepted and
|
|
253
|
+
* `POST /linked-issues/preview` is served. ABSENT on an older daemon — read as `false`: do not
|
|
254
|
+
* send the field (its strict launch schema 400s on it) and do not call the preview.
|
|
255
|
+
*/
|
|
256
|
+
linkedIssuesExclude?: boolean;
|
|
249
257
|
/**
|
|
250
258
|
* Repo-bound runs get an EVIDENCE ROOT for walkthroughs (WT-W1, api-types 0.74.0): the engine
|
|
251
259
|
* addon takes `LaunchOptions.evidenceRoot` (wicked-core-ts ≥ 0.7.35), so a walkthrough step on a
|
|
@@ -4063,6 +4071,8 @@ export interface LaunchRunBody {
|
|
|
4063
4071
|
* `deliver: 'none'` is a 400), and the PR must be OPEN and not from a fork (409 naming why).
|
|
4064
4072
|
* Send it ONLY when `GET /health.capabilities.revisesPr === true` — an older daemon's strict
|
|
4065
4073
|
* launch schema rejects the key with a 400.
|
|
4074
|
+
* NOTE (crew#662): a positive integer PR number — not the boolean capability flag
|
|
4075
|
+
* `HealthCapabilities.revisesPr` of the same name. A 400 names the field and what it expected.
|
|
4066
4076
|
*/
|
|
4067
4077
|
revisesPr?: number;
|
|
4068
4078
|
/**
|
|
@@ -4120,6 +4130,30 @@ export interface LaunchRunBody {
|
|
|
4120
4130
|
* guard as `channel` above.
|
|
4121
4131
|
*/
|
|
4122
4132
|
actor?: string;
|
|
4133
|
+
/**
|
|
4134
|
+
* (crew#825; additive) Issue refs the intent names that the daemon must NOT read and append to
|
|
4135
|
+
* the problem (`"541"`, `"#541"`, `"owner/repo#541"`; at most 50) — a reference in passing is not
|
|
4136
|
+
* a request to inline the issue. Answered as `LaunchRunResponse.linkedIssues[]` entries with
|
|
4137
|
+
* `excluded: true`. Send only when `GET /health.capabilities.linkedIssuesExclude === true`.
|
|
4138
|
+
*/
|
|
4139
|
+
excludeLinkedIssues?: string[];
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4142
|
+
/** `POST /linked-issues/preview` (crew#825): what a workflow launch of `problem` WOULD append. */
|
|
4143
|
+
export interface LinkedIssuesPreviewBody {
|
|
4144
|
+
problem: string;
|
|
4145
|
+
repoRef?: string;
|
|
4146
|
+
excludeLinkedIssues?: string[];
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
/** The `POST /linked-issues/preview` 200 body: the same reading `POST /runs` does, nothing launched. */
|
|
4150
|
+
export interface LinkedIssuesPreviewResponse {
|
|
4151
|
+
issues: LinkedIssue[];
|
|
4152
|
+
/** Characters the block would add to the problem; `0` when nothing would be appended. */
|
|
4153
|
+
appendedChars: number;
|
|
4154
|
+
/** Present when the reading itself failed (the repo list or gh unreadable): a launch now runs on
|
|
4155
|
+
* the intent alone, exactly as `POST /runs` does on the same fault. */
|
|
4156
|
+
error?: string;
|
|
4123
4157
|
}
|
|
4124
4158
|
|
|
4125
4159
|
/**
|
|
@@ -4136,6 +4170,10 @@ export interface LinkedIssue {
|
|
|
4136
4170
|
title?: string;
|
|
4137
4171
|
/** Present when not `resolved`: why, in one line. */
|
|
4138
4172
|
error?: string;
|
|
4173
|
+
/** (crew#825; additive) Present when `resolved`: characters this issue adds to the problem. */
|
|
4174
|
+
chars?: number;
|
|
4175
|
+
/** (crew#825; additive) `true` when the launch left this ref out (`excludeLinkedIssues`). */
|
|
4176
|
+
excluded?: true;
|
|
4139
4177
|
}
|
|
4140
4178
|
|
|
4141
4179
|
/** The `POST /runs` 201 body. `linkedIssues` (crew#627, additive) is present when the intent of a
|
|
@@ -4149,6 +4187,12 @@ export interface LaunchRunResponse {
|
|
|
4149
4187
|
* delivery), and `notice` says so in words a composer can show. ABSENT on every other launch.
|
|
4150
4188
|
*/
|
|
4151
4189
|
freeText?: { notice: string };
|
|
4190
|
+
/**
|
|
4191
|
+
* (crew#874) PRESENT when the installed wicked-garden is not the one the published skills
|
|
4192
|
+
* generation was built from: the run executes the PUBLISHED generation, and this says so — the
|
|
4193
|
+
* same `skills.installed-ahead` finding `GET /diagnostics.skills.findings` carries.
|
|
4194
|
+
*/
|
|
4195
|
+
skillsWarning?: { kind: 'skills.installed-ahead'; severity: 'warning'; message: string };
|
|
4152
4196
|
}
|
|
4153
4197
|
|
|
4154
4198
|
/**
|
|
@@ -6504,7 +6548,12 @@ export interface DiagnosticsSkillsFinding {
|
|
|
6504
6548
|
* generation landed with (a reference the skill's author owns that names nothing in the
|
|
6505
6549
|
* snapshot — published as found); `message` names the publish finding's kind, `file:line` and
|
|
6506
6550
|
* evidence. Reported while that generation is current, from the publish that found them until the
|
|
6507
|
-
* daemon restarts (a restart re-verifies `current` without re-scanning it)
|
|
6551
|
+
* daemon restarts (a restart re-verifies `current` without re-scanning it);
|
|
6552
|
+
* `skills.installed-ahead` (`warning`, crew#874) = the installed wicked-garden's content hash is
|
|
6553
|
+
* not the baseline the published generation was built from — runs use the published (older)
|
|
6554
|
+
* skills; `message` names both versions and the remedy (refresh-baseline, then publish). A
|
|
6555
|
+
* daemon boot refreshes and publishes on its own when nothing in the catalog is user-edited
|
|
6556
|
+
* (`WICKED_CREW_SKILLS_AUTO_REFRESH=0` turns that off); when it did not, the message says why. */
|
|
6508
6557
|
kind:
|
|
6509
6558
|
| 'skills.fallback'
|
|
6510
6559
|
| 'skills.blocked'
|
|
@@ -6515,7 +6564,8 @@ export interface DiagnosticsSkillsFinding {
|
|
|
6515
6564
|
| 'skills.base-skill'
|
|
6516
6565
|
| 'skills.phase-skill'
|
|
6517
6566
|
| 'skills.garden'
|
|
6518
|
-
| 'skills.publish-warning'
|
|
6567
|
+
| 'skills.publish-warning'
|
|
6568
|
+
| 'skills.installed-ahead';
|
|
6519
6569
|
severity: 'warning' | 'error';
|
|
6520
6570
|
message: string;
|
|
6521
6571
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-crew-api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.98.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",
|