@openspecui/core 13.0.2 → 14.0.1
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/dist/{active-root-config-DvfqdWF7.d.mts → active-root-config-BsXJyZZp.d.mts} +5 -5
- package/dist/active-root-config.d.mts +4 -4
- package/dist/app-daemon-control.d.mts +24 -24
- package/dist/{cli-projection-CXrDqHG1.d.mts → cli-projection-B_27VEwm.d.mts} +17 -17
- package/dist/cli-projection.d.mts +4 -4
- package/dist/{command-result-DqV3-Bf9.mjs → command-result-BBsaUYw2.mjs} +76 -7
- package/dist/{dashboard-summary-transport-C4sdZq07.d.mts → dashboard-summary-transport-BkD39FFY.d.mts} +2765 -2665
- package/dist/dashboard-summary-transport.d.mts +17 -17
- package/dist/hosted-app.d.mts +17 -17
- package/dist/hosted-contract.d.mts +17 -17
- package/dist/{index-D9LApBD3.d.mts → index-Cq1QTNYt.d.mts} +1263 -29
- package/dist/index.d.mts +17 -17
- package/dist/index.mjs +167 -41
- package/dist/{local-download-profiles-DtOKu_Qa.d.mts → local-download-profiles-HZbMuz-1.d.mts} +1 -1
- package/dist/local-download-profiles.d.mts +2 -2
- package/dist/{notifications-B72cq-2I.d.mts → notifications-BTw6HjnW.d.mts} +8 -8
- package/dist/notifications.d.mts +2 -2
- package/dist/{openspec-compat-CNMMuTot.mjs → openspec-compat-B1OCT-hK.mjs} +14 -13
- package/dist/openspec-compat.d.mts +3 -3
- package/dist/openspec-compat.mjs +2 -2
- package/dist/{openspec-projection-Dm-H-UMk.d.mts → openspec-projection-Bwg6_biK.d.mts} +1 -1
- package/dist/openspec-projection.d.mts +2 -2
- package/dist/{opsx-entity-C4DJzbUg.d.mts → opsx-entity-Dyf7xyle.d.mts} +2 -2
- package/dist/opsx-entity.d.mts +6 -6
- package/dist/{opsx-schema-detail-CnTtGQsR.d.mts → opsx-schema-detail-BMQ-0DiJ.d.mts} +2 -2
- package/dist/opsx-schema-detail.d.mts +7 -7
- package/dist/{opsx-types-BbERbtH2.d.mts → opsx-types-meKGpVeE.d.mts} +165 -91
- package/dist/{planning-cli-projection-DpQfHj61.mjs → planning-cli-projection-DJ9Llzan.mjs} +23 -6
- package/dist/planning-cli-projection.d.mts +17 -17
- package/dist/planning-cli-projection.mjs +3 -3
- package/dist/{schemas-Bmw7OKBb.d.mts → schemas-BCj8yHEb.d.mts} +6 -6
- package/dist/{sounds-BpMOHwvO.d.mts → sounds-Dnrd1hM8.d.mts} +5 -5
- package/dist/sounds.d.mts +1 -1
- package/dist/{spec-catalog-Cx_PE3WR.mjs → spec-catalog-Ce-UQqxo.mjs} +14 -1
- package/dist/spec-catalog.d.mts +17 -17
- package/dist/spec-catalog.mjs +2 -2
- package/dist/{store-mutation-protocol-DXeWtAvN.d.mts → store-mutation-protocol-C9xgZkNh.d.mts} +24 -24
- package/dist/store-mutation-protocol.d.mts +1 -1
- package/dist/{store-types-DzBETNjJ.d.mts → store-types-Bwv7qA06.d.mts} +1 -1
- package/dist/store-types.d.mts +4 -4
- package/dist/task-progress.d.mts +5 -5
- package/dist/{terminal-audio-BZDsms7w.d.mts → terminal-audio-D6bjkP9j.d.mts} +2 -2
- package/dist/terminal-audio.d.mts +2 -2
- package/dist/terminal-control.d.mts +2 -2
- package/dist/{terminal-invocation-BA-nywHh.d.mts → terminal-invocation-31WVPw0E.d.mts} +36 -36
- package/dist/terminal-invocation.d.mts +1 -1
- package/dist/{translator-C_jPrCMR.d.mts → translator-C9XtBiCJ.d.mts} +34 -34
- package/dist/translator.d.mts +1 -1
- package/dist/workspace-directory-catalog.d.mts +2 -2
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as CliResult, Ct as CliCommandResult, Dt as CliDiagnostic, Lt as CliRootSource, Tt as CliJsonValue, f as CliDoctor, jt as CliDoctorReferenceEntry, l as OpenSpecCliContractExecutor, n as CliRootSelector, u as CliContext, zt as CliExecutor } from "./index-
|
|
1
|
+
import { Bt as CliResult, Ct as CliCommandResult, Dt as CliDiagnostic, Lt as CliRootSource, Tt as CliJsonValue, f as CliDoctor, jt as CliDoctorReferenceEntry, l as OpenSpecCliContractExecutor, n as CliRootSelector, u as CliContext, zt as CliExecutor } from "./index-Cq1QTNYt.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/open-spec-data-scope.d.ts
|
|
@@ -551,8 +551,8 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
|
|
|
551
551
|
filePath: z.ZodString;
|
|
552
552
|
revision: z.ZodString;
|
|
553
553
|
}, "strict", z.ZodTypeAny, {
|
|
554
|
-
filePath: string;
|
|
555
554
|
revision: string;
|
|
555
|
+
filePath: string;
|
|
556
556
|
mode: "structured";
|
|
557
557
|
update: {
|
|
558
558
|
context: string | null;
|
|
@@ -569,8 +569,8 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
|
|
|
569
569
|
};
|
|
570
570
|
ownerPath: string;
|
|
571
571
|
}, {
|
|
572
|
-
filePath: string;
|
|
573
572
|
revision: string;
|
|
573
|
+
filePath: string;
|
|
574
574
|
mode: "structured";
|
|
575
575
|
update: {
|
|
576
576
|
context: string | null;
|
|
@@ -593,14 +593,14 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
|
|
|
593
593
|
filePath: z.ZodString;
|
|
594
594
|
revision: z.ZodString;
|
|
595
595
|
}, "strict", z.ZodTypeAny, {
|
|
596
|
-
filePath: string;
|
|
597
596
|
revision: string;
|
|
597
|
+
filePath: string;
|
|
598
598
|
mode: "raw";
|
|
599
599
|
content: string;
|
|
600
600
|
ownerPath: string;
|
|
601
601
|
}, {
|
|
602
|
-
filePath: string;
|
|
603
602
|
revision: string;
|
|
603
|
+
filePath: string;
|
|
604
604
|
mode: "raw";
|
|
605
605
|
content: string;
|
|
606
606
|
ownerPath: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./index-
|
|
1
|
+
import "./index-Cq1QTNYt.mjs";
|
|
2
2
|
import "./document-translation-CGMD0RLA.mjs";
|
|
3
|
-
import "./sounds-
|
|
4
|
-
import "./notifications-
|
|
5
|
-
import { _ as ActiveRootStructuredUpdateSchema, a as ActiveRootConfigDiagnostic, c as ActiveRootMutation, d as ActiveRootOfficialConfig, f as ActiveRootOfficialConfigSchema, g as ActiveRootStructuredUpdate, h as ActiveRootRevisionSchema, i as ActiveRootConfig, l as ActiveRootMutationResult, m as ActiveRootRevision, n as patchActiveRootOfficialFields, o as ActiveRootConfigFile, p as ActiveRootRawValidation, r as validateActiveRootRawYaml, s as ActiveRootConfigInspection, t as inspectActiveRootOfficialConfig, u as ActiveRootMutationSchema, v as MAX_ACTIVE_ROOT_CONTEXT_BYTES } from "./active-root-config-
|
|
3
|
+
import "./sounds-Dnrd1hM8.mjs";
|
|
4
|
+
import "./notifications-BTw6HjnW.mjs";
|
|
5
|
+
import { _ as ActiveRootStructuredUpdateSchema, a as ActiveRootConfigDiagnostic, c as ActiveRootMutation, d as ActiveRootOfficialConfig, f as ActiveRootOfficialConfigSchema, g as ActiveRootStructuredUpdate, h as ActiveRootRevisionSchema, i as ActiveRootConfig, l as ActiveRootMutationResult, m as ActiveRootRevision, n as patchActiveRootOfficialFields, o as ActiveRootConfigFile, p as ActiveRootRawValidation, r as validateActiveRootRawYaml, s as ActiveRootConfigInspection, t as inspectActiveRootOfficialConfig, u as ActiveRootMutationSchema, v as MAX_ACTIVE_ROOT_CONTEXT_BYTES } from "./active-root-config-BsXJyZZp.mjs";
|
|
6
6
|
export { ActiveRootConfig, ActiveRootConfigDiagnostic, ActiveRootConfigFile, ActiveRootConfigInspection, ActiveRootMutation, ActiveRootMutationResult, ActiveRootMutationSchema, ActiveRootOfficialConfig, ActiveRootOfficialConfigSchema, ActiveRootRawValidation, ActiveRootRevision, ActiveRootRevisionSchema, ActiveRootStructuredUpdate, ActiveRootStructuredUpdateSchema, MAX_ACTIVE_ROOT_CONTEXT_BYTES, inspectActiveRootOfficialConfig, patchActiveRootOfficialFields, validateActiveRootRawYaml };
|
|
@@ -27,8 +27,8 @@ declare const AppDaemonWorkspaceBindingSchema: z.ZodObject<{
|
|
|
27
27
|
}>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
id: string;
|
|
30
|
-
backendUrl: string;
|
|
31
30
|
credential: string | null;
|
|
31
|
+
backendUrl: string;
|
|
32
32
|
projectDir: string;
|
|
33
33
|
ownership: "daemon-managed" | "external";
|
|
34
34
|
registeredAt: number;
|
|
@@ -41,8 +41,8 @@ declare const AppDaemonWorkspaceBindingSchema: z.ZodObject<{
|
|
|
41
41
|
} | null;
|
|
42
42
|
}, {
|
|
43
43
|
id: string;
|
|
44
|
-
backendUrl: string;
|
|
45
44
|
credential: string | null;
|
|
45
|
+
backendUrl: string;
|
|
46
46
|
projectDir: string;
|
|
47
47
|
ownership: "daemon-managed" | "external";
|
|
48
48
|
registeredAt: number;
|
|
@@ -82,8 +82,8 @@ declare const AppDaemonWorkspaceSnapshotSchema: z.ZodObject<{
|
|
|
82
82
|
}>>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
84
|
id: string;
|
|
85
|
-
backendUrl: string;
|
|
86
85
|
credential: string | null;
|
|
86
|
+
backendUrl: string;
|
|
87
87
|
projectDir: string;
|
|
88
88
|
ownership: "daemon-managed" | "external";
|
|
89
89
|
registeredAt: number;
|
|
@@ -96,8 +96,8 @@ declare const AppDaemonWorkspaceSnapshotSchema: z.ZodObject<{
|
|
|
96
96
|
} | null;
|
|
97
97
|
}, {
|
|
98
98
|
id: string;
|
|
99
|
-
backendUrl: string;
|
|
100
99
|
credential: string | null;
|
|
100
|
+
backendUrl: string;
|
|
101
101
|
projectDir: string;
|
|
102
102
|
ownership: "daemon-managed" | "external";
|
|
103
103
|
registeredAt: number;
|
|
@@ -113,8 +113,8 @@ declare const AppDaemonWorkspaceSnapshotSchema: z.ZodObject<{
|
|
|
113
113
|
revision: number;
|
|
114
114
|
workspaces: {
|
|
115
115
|
id: string;
|
|
116
|
-
backendUrl: string;
|
|
117
116
|
credential: string | null;
|
|
117
|
+
backendUrl: string;
|
|
118
118
|
projectDir: string;
|
|
119
119
|
ownership: "daemon-managed" | "external";
|
|
120
120
|
registeredAt: number;
|
|
@@ -130,8 +130,8 @@ declare const AppDaemonWorkspaceSnapshotSchema: z.ZodObject<{
|
|
|
130
130
|
revision: number;
|
|
131
131
|
workspaces: {
|
|
132
132
|
id: string;
|
|
133
|
-
backendUrl: string;
|
|
134
133
|
credential: string | null;
|
|
134
|
+
backendUrl: string;
|
|
135
135
|
projectDir: string;
|
|
136
136
|
ownership: "daemon-managed" | "external";
|
|
137
137
|
registeredAt: number;
|
|
@@ -174,17 +174,17 @@ declare const AppDaemonOpenWorkspaceResponseSchema: z.ZodDiscriminatedUnion<"ok"
|
|
|
174
174
|
message: string;
|
|
175
175
|
}>;
|
|
176
176
|
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
ok: false;
|
|
177
178
|
error: {
|
|
178
179
|
code: "NOT_FOUND" | "PRESENTATION_FAILED";
|
|
179
180
|
message: string;
|
|
180
181
|
};
|
|
181
|
-
ok: false;
|
|
182
182
|
}, {
|
|
183
|
+
ok: false;
|
|
183
184
|
error: {
|
|
184
185
|
code: "NOT_FOUND" | "PRESENTATION_FAILED";
|
|
185
186
|
message: string;
|
|
186
187
|
};
|
|
187
|
-
ok: false;
|
|
188
188
|
}>]>;
|
|
189
189
|
type AppDaemonOpenWorkspaceResponse = z.infer<typeof AppDaemonOpenWorkspaceResponseSchema>;
|
|
190
190
|
/** Same-origin request body for starting one daemon-managed project from a local directory. */
|
|
@@ -232,8 +232,8 @@ declare const AppDaemonStartManagedProjectResponseSchema: z.ZodDiscriminatedUnio
|
|
|
232
232
|
}>>;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
234
|
id: string;
|
|
235
|
-
backendUrl: string;
|
|
236
235
|
credential: string | null;
|
|
236
|
+
backendUrl: string;
|
|
237
237
|
projectDir: string;
|
|
238
238
|
ownership: "daemon-managed" | "external";
|
|
239
239
|
registeredAt: number;
|
|
@@ -246,8 +246,8 @@ declare const AppDaemonStartManagedProjectResponseSchema: z.ZodDiscriminatedUnio
|
|
|
246
246
|
} | null;
|
|
247
247
|
}, {
|
|
248
248
|
id: string;
|
|
249
|
-
backendUrl: string;
|
|
250
249
|
credential: string | null;
|
|
250
|
+
backendUrl: string;
|
|
251
251
|
projectDir: string;
|
|
252
252
|
ownership: "daemon-managed" | "external";
|
|
253
253
|
registeredAt: number;
|
|
@@ -264,8 +264,8 @@ declare const AppDaemonStartManagedProjectResponseSchema: z.ZodDiscriminatedUnio
|
|
|
264
264
|
ok: true;
|
|
265
265
|
workspace: {
|
|
266
266
|
id: string;
|
|
267
|
-
backendUrl: string;
|
|
268
267
|
credential: string | null;
|
|
268
|
+
backendUrl: string;
|
|
269
269
|
projectDir: string;
|
|
270
270
|
ownership: "daemon-managed" | "external";
|
|
271
271
|
registeredAt: number;
|
|
@@ -282,8 +282,8 @@ declare const AppDaemonStartManagedProjectResponseSchema: z.ZodDiscriminatedUnio
|
|
|
282
282
|
ok: true;
|
|
283
283
|
workspace: {
|
|
284
284
|
id: string;
|
|
285
|
-
backendUrl: string;
|
|
286
285
|
credential: string | null;
|
|
286
|
+
backendUrl: string;
|
|
287
287
|
projectDir: string;
|
|
288
288
|
ownership: "daemon-managed" | "external";
|
|
289
289
|
registeredAt: number;
|
|
@@ -302,24 +302,24 @@ declare const AppDaemonStartManagedProjectResponseSchema: z.ZodDiscriminatedUnio
|
|
|
302
302
|
code: z.ZodEnum<["UNSUPPORTED", "INVALID_DIRECTORY", "SPAWN_FAILED", "GENERATION_MISMATCH", "INVALID_REQUEST"]>;
|
|
303
303
|
message: z.ZodString;
|
|
304
304
|
}, "strip", z.ZodTypeAny, {
|
|
305
|
-
code: "
|
|
305
|
+
code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
|
|
306
306
|
message: string;
|
|
307
307
|
}, {
|
|
308
|
-
code: "
|
|
308
|
+
code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
|
|
309
309
|
message: string;
|
|
310
310
|
}>;
|
|
311
311
|
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
ok: false;
|
|
312
313
|
error: {
|
|
313
|
-
code: "
|
|
314
|
+
code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
|
|
314
315
|
message: string;
|
|
315
316
|
};
|
|
316
|
-
ok: false;
|
|
317
317
|
}, {
|
|
318
|
+
ok: false;
|
|
318
319
|
error: {
|
|
319
|
-
code: "
|
|
320
|
+
code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
|
|
320
321
|
message: string;
|
|
321
322
|
};
|
|
322
|
-
ok: false;
|
|
323
323
|
}>]>;
|
|
324
324
|
type AppDaemonStartManagedProjectResponse = z.infer<typeof AppDaemonStartManagedProjectResponseSchema>;
|
|
325
325
|
/** Settled same-origin exact-generation Stop response. */
|
|
@@ -338,24 +338,24 @@ declare const AppDaemonStopManagedProjectResponseSchema: z.ZodDiscriminatedUnion
|
|
|
338
338
|
code: z.ZodEnum<["UNSUPPORTED", "INVALID_DIRECTORY", "SPAWN_FAILED", "GENERATION_MISMATCH", "INVALID_REQUEST"]>;
|
|
339
339
|
message: z.ZodString;
|
|
340
340
|
}, "strip", z.ZodTypeAny, {
|
|
341
|
-
code: "
|
|
341
|
+
code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
|
|
342
342
|
message: string;
|
|
343
343
|
}, {
|
|
344
|
-
code: "
|
|
344
|
+
code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
|
|
345
345
|
message: string;
|
|
346
346
|
}>;
|
|
347
347
|
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
ok: false;
|
|
348
349
|
error: {
|
|
349
|
-
code: "
|
|
350
|
+
code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
|
|
350
351
|
message: string;
|
|
351
352
|
};
|
|
352
|
-
ok: false;
|
|
353
353
|
}, {
|
|
354
|
+
ok: false;
|
|
354
355
|
error: {
|
|
355
|
-
code: "
|
|
356
|
+
code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
|
|
356
357
|
message: string;
|
|
357
358
|
};
|
|
358
|
-
ok: false;
|
|
359
359
|
}>]>;
|
|
360
360
|
type AppDaemonStopManagedProjectResponse = z.infer<typeof AppDaemonStopManagedProjectResponseSchema>;
|
|
361
361
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as CliCommandResult, Tt as CliJsonValue } from "./index-
|
|
1
|
+
import { Ct as CliCommandResult, Tt as CliJsonValue } from "./index-Cq1QTNYt.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/cli-projection.d.ts
|
|
@@ -216,21 +216,21 @@ declare function createCliProjectionStateSchema<TOutput, TInput>(dataSchema: z.Z
|
|
|
216
216
|
invalidationCause: z.ZodEnum<["initial", "dependency", "explicit-refresh", "subscriber-resume"]>;
|
|
217
217
|
}, "strip", z.ZodTypeAny, {
|
|
218
218
|
error: null;
|
|
219
|
+
identity: string;
|
|
220
|
+
workGeneration: number;
|
|
221
|
+
snapshotGeneration: null;
|
|
219
222
|
state: "loading";
|
|
220
223
|
data: null;
|
|
221
224
|
freshness: null;
|
|
222
|
-
snapshotGeneration: null;
|
|
223
|
-
identity: string;
|
|
224
|
-
workGeneration: number;
|
|
225
225
|
invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
|
|
226
226
|
}, {
|
|
227
227
|
error: null;
|
|
228
|
+
identity: string;
|
|
229
|
+
workGeneration: number;
|
|
230
|
+
snapshotGeneration: null;
|
|
228
231
|
state: "loading";
|
|
229
232
|
data: null;
|
|
230
233
|
freshness: null;
|
|
231
|
-
snapshotGeneration: null;
|
|
232
|
-
identity: string;
|
|
233
|
-
workGeneration: number;
|
|
234
234
|
invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
|
|
235
235
|
}>, z.ZodObject<{
|
|
236
236
|
state: z.ZodLiteral<"ready">;
|
|
@@ -409,12 +409,12 @@ declare function createCliProjectionStateSchema<TOutput, TInput>(dataSchema: z.Z
|
|
|
409
409
|
contractError?: string | undefined;
|
|
410
410
|
} | null;
|
|
411
411
|
};
|
|
412
|
+
identity: string;
|
|
413
|
+
workGeneration: number;
|
|
414
|
+
snapshotGeneration: null;
|
|
412
415
|
state: "error";
|
|
413
416
|
data: null;
|
|
414
417
|
freshness: null;
|
|
415
|
-
snapshotGeneration: null;
|
|
416
|
-
identity: string;
|
|
417
|
-
workGeneration: number;
|
|
418
418
|
invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
|
|
419
419
|
}, {
|
|
420
420
|
error: {
|
|
@@ -436,12 +436,12 @@ declare function createCliProjectionStateSchema<TOutput, TInput>(dataSchema: z.Z
|
|
|
436
436
|
contractError?: string | undefined;
|
|
437
437
|
} | null;
|
|
438
438
|
};
|
|
439
|
+
identity: string;
|
|
440
|
+
workGeneration: number;
|
|
441
|
+
snapshotGeneration: null;
|
|
439
442
|
state: "error";
|
|
440
443
|
data: null;
|
|
441
444
|
freshness: null;
|
|
442
|
-
snapshotGeneration: null;
|
|
443
|
-
identity: string;
|
|
444
|
-
workGeneration: number;
|
|
445
445
|
invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
|
|
446
446
|
}>, z.ZodObject<{
|
|
447
447
|
state: z.ZodLiteral<"refresh-error">;
|
|
@@ -761,16 +761,16 @@ declare const CliProjectionNoticeSchema: z.ZodObject<{
|
|
|
761
761
|
state: z.ZodEnum<["loading", "ready", "revalidating", "error", "refresh-error"]>;
|
|
762
762
|
invalidationCause: z.ZodEnum<["initial", "dependency", "explicit-refresh", "subscriber-resume"]>;
|
|
763
763
|
}, "strip", z.ZodTypeAny, {
|
|
764
|
-
state: "error" | "loading" | "ready" | "revalidating" | "refresh-error";
|
|
765
|
-
snapshotGeneration: number | null;
|
|
766
764
|
identity: string;
|
|
767
765
|
workGeneration: number;
|
|
766
|
+
snapshotGeneration: number | null;
|
|
767
|
+
state: "error" | "loading" | "ready" | "revalidating" | "refresh-error";
|
|
768
768
|
invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
|
|
769
769
|
}, {
|
|
770
|
-
state: "error" | "loading" | "ready" | "revalidating" | "refresh-error";
|
|
771
|
-
snapshotGeneration: number | null;
|
|
772
770
|
identity: string;
|
|
773
771
|
workGeneration: number;
|
|
772
|
+
snapshotGeneration: number | null;
|
|
773
|
+
state: "error" | "loading" | "ready" | "revalidating" | "refresh-error";
|
|
774
774
|
invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
|
|
775
775
|
}>;
|
|
776
776
|
type CliProjectionNotice = z.infer<typeof CliProjectionNoticeSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./index-
|
|
1
|
+
import "./index-Cq1QTNYt.mjs";
|
|
2
2
|
import "./document-translation-CGMD0RLA.mjs";
|
|
3
|
-
import "./sounds-
|
|
4
|
-
import "./notifications-
|
|
5
|
-
import { _ as toCliProjectionCommandEvidence, a as CliProjectionFailure, c as CliProjectionInvalidationCauseSchema, d as CliProjectionState, f as CliProjectionStateName, g as createCliProjectionStateSchema, h as cliProjectionStates, i as CliProjectionCommandEvidenceSchema, l as CliProjectionNotice, m as cliProjectionInvalidationCauses, n as CliProjectionCommandError, o as CliProjectionFailureSchema, p as CliProjectionStateNameSchema, r as CliProjectionCommandEvidence, s as CliProjectionInvalidationCause, t as CliJsonValueSchema, u as CliProjectionNoticeSchema, v as toCliProjectionFailure, y as toCliProjectionNotice } from "./cli-projection-
|
|
3
|
+
import "./sounds-Dnrd1hM8.mjs";
|
|
4
|
+
import "./notifications-BTw6HjnW.mjs";
|
|
5
|
+
import { _ as toCliProjectionCommandEvidence, a as CliProjectionFailure, c as CliProjectionInvalidationCauseSchema, d as CliProjectionState, f as CliProjectionStateName, g as createCliProjectionStateSchema, h as cliProjectionStates, i as CliProjectionCommandEvidenceSchema, l as CliProjectionNotice, m as cliProjectionInvalidationCauses, n as CliProjectionCommandError, o as CliProjectionFailureSchema, p as CliProjectionStateNameSchema, r as CliProjectionCommandEvidence, s as CliProjectionInvalidationCause, t as CliJsonValueSchema, u as CliProjectionNoticeSchema, v as toCliProjectionFailure, y as toCliProjectionNotice } from "./cli-projection-B_27VEwm.mjs";
|
|
6
6
|
export { CliJsonValueSchema, CliProjectionCommandError, CliProjectionCommandEvidence, CliProjectionCommandEvidenceSchema, CliProjectionFailure, CliProjectionFailureSchema, CliProjectionInvalidationCause, CliProjectionInvalidationCauseSchema, CliProjectionNotice, CliProjectionNoticeSchema, CliProjectionState, CliProjectionStateName, CliProjectionStateNameSchema, cliProjectionInvalidationCauses, cliProjectionStates, createCliProjectionStateSchema, toCliProjectionCommandEvidence, toCliProjectionFailure, toCliProjectionNotice };
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
|
|
4
4
|
//#region src/cli-contracts/workflow.ts
|
|
5
5
|
/**
|
|
6
|
-
* Orthogonal intents (updated 2026-
|
|
6
|
+
* Orthogonal intents (updated 2026-10-02 Asia/Shanghai):
|
|
7
7
|
* 1. Model camelCase workflow JSON independently from Store-family JSON.
|
|
8
8
|
* 2. Preserve strict, archived, and bulk Validate plus Archive outcomes, including failure payloads.
|
|
9
9
|
* 3. Preserve multiline requirement bodies from `show --json`.
|
|
@@ -30,6 +30,17 @@ import { z } from "zod";
|
|
|
30
30
|
* members: 1.13.2 always emits the boolean while 1.13.0/1.13.1 (still admitted) emit
|
|
31
31
|
* neither, so absence stays "unknown" and is never synthesized; the array is
|
|
32
32
|
* absent-when-everything-is-readable and both stay verbatim evidence.
|
|
33
|
+
* 11. Type the OpenSpec 1.14 members (references/openspec-1.14.0-report.md, Verified CLI
|
|
34
|
+
* observations) as additive optional facts: apply task `sourcePath` (absolute) +
|
|
35
|
+
* `line` (1-based, upstream LocatedTask) — older in-flight payloads may lack them and
|
|
36
|
+
* OpenSpecUI never re-derives them; show-Spec requirement/scenario `name` members
|
|
37
|
+
* (upstream normalizeRequirementName/scenarioNameFromHeaderText) preserved by CLI
|
|
38
|
+
* value with old snapshots still decoding; Status top-level `warnings` advisory array
|
|
39
|
+
* on the single success payload and every batch healthy entry (same fields schema),
|
|
40
|
+
* verbatim CLI evidence that never gates anything; change-list per-entry `archived`
|
|
41
|
+
* boolean from `list --archived`/`--all` (default list never emits it); and the new
|
|
42
|
+
* `openspec version --json` envelope (`schemaVersion: 1` literal, `version`,
|
|
43
|
+
* `install`, check-gated passthrough `update`).
|
|
33
44
|
*
|
|
34
45
|
* Original request (2026-07-15): "为不同命令建立强类型适配器,不实现平行解析规则。"
|
|
35
46
|
* Original request (2026-07-26): "展开全面的接口升级和内核升级和测试升级。"
|
|
@@ -39,6 +50,7 @@ import { z } from "zod";
|
|
|
39
50
|
* Original request (2026-09-12): "Openspec 1.13.0 释放了,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进。让 codex 参与。"
|
|
40
51
|
* Original request (2026-09-17): "Openspec 1.13.1 释放了…" — change-list nested/warnings projection (update-openspec-cli-1131 Slice 2).
|
|
41
52
|
* Original request (2026-09-26): "Openspec 1.13.2 释放了…" — Apply tracking-evidence decode contract (update-openspec-cli-1132 Slice 2).
|
|
53
|
+
* Original request (2026-10-02): "Openspec v1.14.0 释放了,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进。让 codex 参与。完成后关于 github 上的相关 issue" — typed contracts Slice 2 (target-openspec-cli-114-line).
|
|
42
54
|
*/
|
|
43
55
|
/**
|
|
44
56
|
* One top-level change-list hygiene warning (OpenSpec 1.13.1 `list --json`).
|
|
@@ -64,7 +76,8 @@ const CliChangeListEntrySchema = z.object({
|
|
|
64
76
|
"complete",
|
|
65
77
|
"in-progress"
|
|
66
78
|
]),
|
|
67
|
-
nested: z.array(z.string()).optional()
|
|
79
|
+
nested: z.array(z.string()).optional(),
|
|
80
|
+
archived: z.boolean().optional()
|
|
68
81
|
}).passthrough();
|
|
69
82
|
/** Typed result of the CLI change-list JSON command. */
|
|
70
83
|
const CliChangeListSchema = z.object({
|
|
@@ -114,10 +127,21 @@ const CliTemplateEntrySchema = z.object({
|
|
|
114
127
|
])
|
|
115
128
|
}).passthrough();
|
|
116
129
|
const CliTemplatesSchema = z.record(CliTemplateEntrySchema);
|
|
117
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* One requirement body shared by Spec documents and Change deltas.
|
|
132
|
+
*
|
|
133
|
+
* OpenSpec 1.14 adds `name` on requirements and scenarios (upstream
|
|
134
|
+
* `normalizeRequirementName` / `scenarioNameFromHeaderText`): the requirement name is
|
|
135
|
+
* the identity archive matches on. Optional because old snapshots and in-window
|
|
136
|
+
* payloads may lack it; preserved strictly by CLI value, never re-derived locally.
|
|
137
|
+
*/
|
|
118
138
|
const CliSpecRequirementSchema = z.object({
|
|
139
|
+
name: z.string().optional(),
|
|
119
140
|
text: z.string(),
|
|
120
|
-
scenarios: z.array(z.object({
|
|
141
|
+
scenarios: z.array(z.object({
|
|
142
|
+
name: z.string().optional(),
|
|
143
|
+
rawText: z.string()
|
|
144
|
+
}).passthrough())
|
|
121
145
|
}).passthrough();
|
|
122
146
|
/** Typed successful document returned by the CLI show-Spec JSON command. */
|
|
123
147
|
const CliShowSpecDocumentSchema = z.object({
|
|
@@ -188,7 +212,8 @@ const CliWorkflowStatusFieldsSchema = z.object({
|
|
|
188
212
|
applyRequires: z.array(z.string()),
|
|
189
213
|
nextSteps: z.array(z.string()),
|
|
190
214
|
actionContext: CliActionContextSchema,
|
|
191
|
-
artifacts: z.array(CliStatusArtifactSchema)
|
|
215
|
+
artifacts: z.array(CliStatusArtifactSchema),
|
|
216
|
+
warnings: z.array(z.string()).optional()
|
|
192
217
|
}).passthrough();
|
|
193
218
|
/** Complete successful Status payload for one OpenSpec change. */
|
|
194
219
|
const CliWorkflowStatusSuccessSchema = CliWorkflowStatusFieldsSchema.extend({ root: CliRootSchema }).passthrough();
|
|
@@ -226,7 +251,9 @@ const CliArtifactInstructionsSchema = z.union([CliArtifactInstructionsSuccessSch
|
|
|
226
251
|
const CliApplyTaskSchema = z.object({
|
|
227
252
|
id: z.string(),
|
|
228
253
|
description: z.string(),
|
|
229
|
-
done: z.boolean()
|
|
254
|
+
done: z.boolean(),
|
|
255
|
+
sourcePath: z.string().optional(),
|
|
256
|
+
line: z.number().optional()
|
|
230
257
|
}).passthrough();
|
|
231
258
|
/** Complete successful Apply Instructions payload, including raw Apply progress. */
|
|
232
259
|
const CliApplyInstructionsSuccessSchema = z.object({
|
|
@@ -409,6 +436,48 @@ const CliArchiveSchema = z.object({
|
|
|
409
436
|
root: CliRootSchema.optional(),
|
|
410
437
|
status: z.array(CliDiagnosticSchema).optional()
|
|
411
438
|
}).passthrough();
|
|
439
|
+
/**
|
|
440
|
+
* Typed result of the OpenSpec 1.14 `openspec version --json` command.
|
|
441
|
+
*
|
|
442
|
+
* Upstream (pinned v1.14.0, src/cli/index.ts + src/core/version-check.ts) always emits
|
|
443
|
+
* `schemaVersion: 1`, the running `version`, and the resolved `install` facts (every
|
|
444
|
+
* install member nullable — an unresolvable install reports all-null, never a guess).
|
|
445
|
+
* `update` is conditionally spread only under `--check` (a registry probe honoring
|
|
446
|
+
* CI/no-network and DO_NOT_TRACK opt-outs), so it is optional with no default and its
|
|
447
|
+
* facts stay passthrough evidence; the probe is opt-in and OpenSpecUI composes no
|
|
448
|
+
* capability gate for this admitted-window command.
|
|
449
|
+
*/
|
|
450
|
+
const CliVersionSchema = z.object({
|
|
451
|
+
schemaVersion: z.literal(1),
|
|
452
|
+
version: z.string(),
|
|
453
|
+
install: z.object({
|
|
454
|
+
location: z.string().nullable(),
|
|
455
|
+
packageManager: z.enum([
|
|
456
|
+
"npm",
|
|
457
|
+
"pnpm",
|
|
458
|
+
"bun",
|
|
459
|
+
"yarn",
|
|
460
|
+
"volta"
|
|
461
|
+
]).nullable(),
|
|
462
|
+
scope: z.enum([
|
|
463
|
+
"global",
|
|
464
|
+
"project",
|
|
465
|
+
"temporary",
|
|
466
|
+
"source"
|
|
467
|
+
]).nullable()
|
|
468
|
+
}).passthrough(),
|
|
469
|
+
update: z.object({
|
|
470
|
+
status: z.enum([
|
|
471
|
+
"disabled",
|
|
472
|
+
"offline",
|
|
473
|
+
"available",
|
|
474
|
+
"current"
|
|
475
|
+
]),
|
|
476
|
+
latest: z.string().nullable(),
|
|
477
|
+
command: z.string().nullable(),
|
|
478
|
+
canSelfUpgrade: z.boolean()
|
|
479
|
+
}).passthrough().optional()
|
|
480
|
+
}).passthrough();
|
|
412
481
|
|
|
413
482
|
//#endregion
|
|
414
483
|
//#region src/cli-contracts/command-result.ts
|
|
@@ -484,4 +553,4 @@ function parseCliCommandResult(result, schema) {
|
|
|
484
553
|
}
|
|
485
554
|
|
|
486
555
|
//#endregion
|
|
487
|
-
export {
|
|
556
|
+
export { CliWorkflowStatusSchema as A, CliTemplatesSchema as C, CliValidateSchema as D, CliValidateReportSchema as E, isCliValidateFindings as M, CliVersionSchema as O, CliTemplateEntrySchema as S, CliValidateFindingsSchema as T, CliSchemaWhichSchema as _, CliApplyInstructionsSuccessSchema as a, CliSpecListSchema as b, CliArchiveSchema as c, CliArtifactPathSchema as d, CliChangeListSchema as f, CliSchemaShadowSchema as g, CliSchemaResolutionSchema as h, CliApplyInstructionsSchema as i, CliWorkflowStatusSuccessSchema as j, CliWorkflowStatusFieldsSchema as k, CliArtifactInstructionsSchema as l, CliPlanningHomeSchema as m, parseCliCommandResult as n, CliArchiveInstructionsSchema as o, CliChangeListWarningSchema as p, CliActionContextSchema as r, CliArchiveInstructionsSuccessSchema as s, CliCommandTransportSchema as t, CliArtifactInstructionsSuccessSchema as u, CliShowSpecDocumentSchema as v, CliValidateFindingsResultSchema as w, CliSpecRequirementSchema as x, CliShowSpecSchema as y };
|