@openspecui/core 3.2.3 → 3.4.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/dist/hosted-app.d.mts +1 -1
- package/dist/hosted-app.mjs +1 -1
- package/dist/index.d.mts +228 -582
- package/dist/index.mjs +9 -4
- package/dist/opsx-display-path.d.mts +1 -1
- package/dist/opsx-display-path.mjs +1 -1
- package/dist/terminal-invocation-8OLmCJfv.mjs +1216 -0
- package/dist/terminal-invocation-ajsrCPhf.d.mts +1777 -0
- package/dist/terminal-invocation.d.mts +2 -0
- package/dist/terminal-invocation.mjs +3 -0
- package/dist/terminal-theme.d.mts +1 -1
- package/dist/terminal-theme.mjs +1 -1
- package/package.json +7 -3
- /package/dist/{hosted-app-BTvoFBMY.d.mts → hosted-app-Be-ourtC.d.mts} +0 -0
- /package/dist/{hosted-app-DAtQMMt1.mjs → hosted-app-CC8DBuyE.mjs} +0 -0
- /package/dist/{opsx-display-path-DDr9O-4r.mjs → opsx-display-path-DNqQo2uK.mjs} +0 -0
- /package/dist/{opsx-display-path-Bs-P2sK2.d.mts → opsx-display-path-ElGeez1E.d.mts} +0 -0
- /package/dist/{terminal-theme-BxBl5NsA.d.mts → terminal-theme-C_2UGXPr.d.mts} +0 -0
- /package/dist/{terminal-theme-B-mkZOey.mjs → terminal-theme-Cyyo2Zln.mjs} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as buildHostedLaunchUrl, c as normalizeEmbeddedUiUrl, i as buildEmbeddedUiLaunchUrl, l as normalizeHostedAppBaseUrl, n as HostedBackendHealthResponse, o as isHostedBackendHealthResponse, r as OFFICIAL_APP_BASE_URL, s as isSupportedEmbeddedUiUrl, t as HOSTED_SHELL_PROTOCOL_VERSION, u as resolveHostedAppBaseUrl } from "./hosted-app-
|
|
2
|
-
import { n as toOpsxDisplayPath, t as VIRTUAL_PROJECT_DIRNAME } from "./opsx-display-path-
|
|
3
|
-
import {
|
|
1
|
+
import { a as buildHostedLaunchUrl, c as normalizeEmbeddedUiUrl, i as buildEmbeddedUiLaunchUrl, l as normalizeHostedAppBaseUrl, n as HostedBackendHealthResponse, o as isHostedBackendHealthResponse, r as OFFICIAL_APP_BASE_URL, s as isSupportedEmbeddedUiUrl, t as HOSTED_SHELL_PROTOCOL_VERSION, u as resolveHostedAppBaseUrl } from "./hosted-app-Be-ourtC.mjs";
|
|
2
|
+
import { n as toOpsxDisplayPath, t as VIRTUAL_PROJECT_DIRNAME } from "./opsx-display-path-ElGeez1E.mjs";
|
|
3
|
+
import { $ as PtyTitleResponseSchema, B as PtyErrorCodeSchema, C as TerminalSpawnCommand, E as getTerminalCommandDefaultValues, F as PtyClientMessage, G as PtyListResponseSchema, H as PtyExitResponseSchema, I as PtyClientMessageSchema, J as PtyPlatformSchema, K as PtyOutputResponseSchema, L as PtyCloseMessageSchema, M as resolveTerminalShellDefaults, N as PtyAttachMessageSchema, O as quoteTerminalShellArg, P as PtyBufferResponseSchema, Q as PtySessionInfo, R as PtyCreateMessageSchema, S as TerminalShellQuoteStyleSchema, U as PtyInputMessageSchema, V as PtyErrorResponseSchema, W as PtyListMessageSchema, X as PtyServerMessage, Y as PtyResizeMessageSchema, Z as PtyServerMessageSchema, _ as TerminalShellDefaults, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, q as PtyPlatform, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as TerminalCommandFieldValues, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile, z as PtyCreatedResponseSchema } from "./terminal-invocation-ajsrCPhf.mjs";
|
|
4
|
+
import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, r as DEFAULT_TERMINAL_THEME_MODE, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-C_2UGXPr.mjs";
|
|
4
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
6
|
import { z } from "zod";
|
|
6
7
|
import { EventEmitter } from "events";
|
|
@@ -49,14 +50,14 @@ declare const RequirementSchema: z.ZodObject<{
|
|
|
49
50
|
rawText: string;
|
|
50
51
|
}>, "many">;
|
|
51
52
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
id: string;
|
|
53
53
|
text: string;
|
|
54
|
+
id: string;
|
|
54
55
|
scenarios: {
|
|
55
56
|
rawText: string;
|
|
56
57
|
}[];
|
|
57
58
|
}, {
|
|
58
|
-
id: string;
|
|
59
59
|
text: string;
|
|
60
|
+
id: string;
|
|
60
61
|
scenarios: {
|
|
61
62
|
rawText: string;
|
|
62
63
|
}[];
|
|
@@ -88,14 +89,14 @@ declare const SpecSchema: z.ZodObject<{
|
|
|
88
89
|
rawText: string;
|
|
89
90
|
}>, "many">;
|
|
90
91
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
id: string;
|
|
92
92
|
text: string;
|
|
93
|
+
id: string;
|
|
93
94
|
scenarios: {
|
|
94
95
|
rawText: string;
|
|
95
96
|
}[];
|
|
96
97
|
}, {
|
|
97
|
-
id: string;
|
|
98
98
|
text: string;
|
|
99
|
+
id: string;
|
|
99
100
|
scenarios: {
|
|
100
101
|
rawText: string;
|
|
101
102
|
}[];
|
|
@@ -119,8 +120,8 @@ declare const SpecSchema: z.ZodObject<{
|
|
|
119
120
|
name: string;
|
|
120
121
|
overview: string;
|
|
121
122
|
requirements: {
|
|
122
|
-
id: string;
|
|
123
123
|
text: string;
|
|
124
|
+
id: string;
|
|
124
125
|
scenarios: {
|
|
125
126
|
rawText: string;
|
|
126
127
|
}[];
|
|
@@ -135,8 +136,8 @@ declare const SpecSchema: z.ZodObject<{
|
|
|
135
136
|
name: string;
|
|
136
137
|
overview: string;
|
|
137
138
|
requirements: {
|
|
138
|
-
id: string;
|
|
139
139
|
text: string;
|
|
140
|
+
id: string;
|
|
140
141
|
scenarios: {
|
|
141
142
|
rawText: string;
|
|
142
143
|
}[];
|
|
@@ -175,14 +176,14 @@ declare const DeltaSchema: z.ZodObject<{
|
|
|
175
176
|
rawText: string;
|
|
176
177
|
}>, "many">;
|
|
177
178
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
id: string;
|
|
179
179
|
text: string;
|
|
180
|
+
id: string;
|
|
180
181
|
scenarios: {
|
|
181
182
|
rawText: string;
|
|
182
183
|
}[];
|
|
183
184
|
}, {
|
|
184
|
-
id: string;
|
|
185
185
|
text: string;
|
|
186
|
+
id: string;
|
|
186
187
|
scenarios: {
|
|
187
188
|
rawText: string;
|
|
188
189
|
}[];
|
|
@@ -202,14 +203,14 @@ declare const DeltaSchema: z.ZodObject<{
|
|
|
202
203
|
rawText: string;
|
|
203
204
|
}>, "many">;
|
|
204
205
|
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
id: string;
|
|
206
206
|
text: string;
|
|
207
|
+
id: string;
|
|
207
208
|
scenarios: {
|
|
208
209
|
rawText: string;
|
|
209
210
|
}[];
|
|
210
211
|
}, {
|
|
211
|
-
id: string;
|
|
212
212
|
text: string;
|
|
213
|
+
id: string;
|
|
213
214
|
scenarios: {
|
|
214
215
|
rawText: string;
|
|
215
216
|
}[];
|
|
@@ -226,19 +227,19 @@ declare const DeltaSchema: z.ZodObject<{
|
|
|
226
227
|
to: string;
|
|
227
228
|
}>>;
|
|
228
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
description: string;
|
|
229
231
|
spec: string;
|
|
230
232
|
operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
|
|
231
|
-
description: string;
|
|
232
233
|
requirements?: {
|
|
233
|
-
id: string;
|
|
234
234
|
text: string;
|
|
235
|
+
id: string;
|
|
235
236
|
scenarios: {
|
|
236
237
|
rawText: string;
|
|
237
238
|
}[];
|
|
238
239
|
}[] | undefined;
|
|
239
240
|
requirement?: {
|
|
240
|
-
id: string;
|
|
241
241
|
text: string;
|
|
242
|
+
id: string;
|
|
242
243
|
scenarios: {
|
|
243
244
|
rawText: string;
|
|
244
245
|
}[];
|
|
@@ -248,19 +249,19 @@ declare const DeltaSchema: z.ZodObject<{
|
|
|
248
249
|
to: string;
|
|
249
250
|
} | undefined;
|
|
250
251
|
}, {
|
|
252
|
+
description: string;
|
|
251
253
|
spec: string;
|
|
252
254
|
operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
|
|
253
|
-
description: string;
|
|
254
255
|
requirements?: {
|
|
255
|
-
id: string;
|
|
256
256
|
text: string;
|
|
257
|
+
id: string;
|
|
257
258
|
scenarios: {
|
|
258
259
|
rawText: string;
|
|
259
260
|
}[];
|
|
260
261
|
}[] | undefined;
|
|
261
262
|
requirement?: {
|
|
262
|
-
id: string;
|
|
263
263
|
text: string;
|
|
264
|
+
id: string;
|
|
264
265
|
scenarios: {
|
|
265
266
|
rawText: string;
|
|
266
267
|
}[];
|
|
@@ -286,13 +287,13 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
286
287
|
/** Optional section heading the task belongs to */
|
|
287
288
|
section: z.ZodOptional<z.ZodString>;
|
|
288
289
|
}, "strip", z.ZodTypeAny, {
|
|
289
|
-
id: string;
|
|
290
290
|
text: string;
|
|
291
|
+
id: string;
|
|
291
292
|
completed: boolean;
|
|
292
293
|
section?: string | undefined;
|
|
293
294
|
}, {
|
|
294
|
-
id: string;
|
|
295
295
|
text: string;
|
|
296
|
+
id: string;
|
|
296
297
|
completed: boolean;
|
|
297
298
|
section?: string | undefined;
|
|
298
299
|
}>;
|
|
@@ -307,11 +308,11 @@ declare const DeltaSpecSchema: z.ZodObject<{
|
|
|
307
308
|
/** Raw markdown content of the delta spec */
|
|
308
309
|
content: z.ZodString;
|
|
309
310
|
}, "strip", z.ZodTypeAny, {
|
|
310
|
-
content: string;
|
|
311
311
|
specId: string;
|
|
312
|
-
}, {
|
|
313
312
|
content: string;
|
|
313
|
+
}, {
|
|
314
314
|
specId: string;
|
|
315
|
+
content: string;
|
|
315
316
|
}>;
|
|
316
317
|
type DeltaSpec = z.infer<typeof DeltaSpecSchema>;
|
|
317
318
|
/**
|
|
@@ -353,14 +354,14 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
353
354
|
rawText: string;
|
|
354
355
|
}>, "many">;
|
|
355
356
|
}, "strip", z.ZodTypeAny, {
|
|
356
|
-
id: string;
|
|
357
357
|
text: string;
|
|
358
|
+
id: string;
|
|
358
359
|
scenarios: {
|
|
359
360
|
rawText: string;
|
|
360
361
|
}[];
|
|
361
362
|
}, {
|
|
362
|
-
id: string;
|
|
363
363
|
text: string;
|
|
364
|
+
id: string;
|
|
364
365
|
scenarios: {
|
|
365
366
|
rawText: string;
|
|
366
367
|
}[];
|
|
@@ -380,14 +381,14 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
380
381
|
rawText: string;
|
|
381
382
|
}>, "many">;
|
|
382
383
|
}, "strip", z.ZodTypeAny, {
|
|
383
|
-
id: string;
|
|
384
384
|
text: string;
|
|
385
|
+
id: string;
|
|
385
386
|
scenarios: {
|
|
386
387
|
rawText: string;
|
|
387
388
|
}[];
|
|
388
389
|
}, {
|
|
389
|
-
id: string;
|
|
390
390
|
text: string;
|
|
391
|
+
id: string;
|
|
391
392
|
scenarios: {
|
|
392
393
|
rawText: string;
|
|
393
394
|
}[];
|
|
@@ -404,19 +405,19 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
404
405
|
to: string;
|
|
405
406
|
}>>;
|
|
406
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
|
+
description: string;
|
|
407
409
|
spec: string;
|
|
408
410
|
operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
|
|
409
|
-
description: string;
|
|
410
411
|
requirements?: {
|
|
411
|
-
id: string;
|
|
412
412
|
text: string;
|
|
413
|
+
id: string;
|
|
413
414
|
scenarios: {
|
|
414
415
|
rawText: string;
|
|
415
416
|
}[];
|
|
416
417
|
}[] | undefined;
|
|
417
418
|
requirement?: {
|
|
418
|
-
id: string;
|
|
419
419
|
text: string;
|
|
420
|
+
id: string;
|
|
420
421
|
scenarios: {
|
|
421
422
|
rawText: string;
|
|
422
423
|
}[];
|
|
@@ -426,19 +427,19 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
426
427
|
to: string;
|
|
427
428
|
} | undefined;
|
|
428
429
|
}, {
|
|
430
|
+
description: string;
|
|
429
431
|
spec: string;
|
|
430
432
|
operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
|
|
431
|
-
description: string;
|
|
432
433
|
requirements?: {
|
|
433
|
-
id: string;
|
|
434
434
|
text: string;
|
|
435
|
+
id: string;
|
|
435
436
|
scenarios: {
|
|
436
437
|
rawText: string;
|
|
437
438
|
}[];
|
|
438
439
|
}[] | undefined;
|
|
439
440
|
requirement?: {
|
|
440
|
-
id: string;
|
|
441
441
|
text: string;
|
|
442
|
+
id: string;
|
|
442
443
|
scenarios: {
|
|
443
444
|
rawText: string;
|
|
444
445
|
}[];
|
|
@@ -459,13 +460,13 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
459
460
|
/** Optional section heading the task belongs to */
|
|
460
461
|
section: z.ZodOptional<z.ZodString>;
|
|
461
462
|
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
id: string;
|
|
463
463
|
text: string;
|
|
464
|
+
id: string;
|
|
464
465
|
completed: boolean;
|
|
465
466
|
section?: string | undefined;
|
|
466
467
|
}, {
|
|
467
|
-
id: string;
|
|
468
468
|
text: string;
|
|
469
|
+
id: string;
|
|
469
470
|
completed: boolean;
|
|
470
471
|
section?: string | undefined;
|
|
471
472
|
}>, "many">;
|
|
@@ -489,11 +490,11 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
489
490
|
/** Raw markdown content of the delta spec */
|
|
490
491
|
content: z.ZodString;
|
|
491
492
|
}, "strip", z.ZodTypeAny, {
|
|
492
|
-
content: string;
|
|
493
493
|
specId: string;
|
|
494
|
-
}, {
|
|
495
494
|
content: string;
|
|
495
|
+
}, {
|
|
496
496
|
specId: string;
|
|
497
|
+
content: string;
|
|
497
498
|
}>, "many">>;
|
|
498
499
|
/** Optional metadata */
|
|
499
500
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -512,19 +513,19 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
512
513
|
why: string;
|
|
513
514
|
whatChanges: string;
|
|
514
515
|
deltas: {
|
|
516
|
+
description: string;
|
|
515
517
|
spec: string;
|
|
516
518
|
operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
|
|
517
|
-
description: string;
|
|
518
519
|
requirements?: {
|
|
519
|
-
id: string;
|
|
520
520
|
text: string;
|
|
521
|
+
id: string;
|
|
521
522
|
scenarios: {
|
|
522
523
|
rawText: string;
|
|
523
524
|
}[];
|
|
524
525
|
}[] | undefined;
|
|
525
526
|
requirement?: {
|
|
526
|
-
id: string;
|
|
527
527
|
text: string;
|
|
528
|
+
id: string;
|
|
528
529
|
scenarios: {
|
|
529
530
|
rawText: string;
|
|
530
531
|
}[];
|
|
@@ -535,8 +536,8 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
535
536
|
} | undefined;
|
|
536
537
|
}[];
|
|
537
538
|
tasks: {
|
|
538
|
-
id: string;
|
|
539
539
|
text: string;
|
|
540
|
+
id: string;
|
|
540
541
|
completed: boolean;
|
|
541
542
|
section?: string | undefined;
|
|
542
543
|
}[];
|
|
@@ -550,8 +551,8 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
550
551
|
} | undefined;
|
|
551
552
|
design?: string | undefined;
|
|
552
553
|
deltaSpecs?: {
|
|
553
|
-
content: string;
|
|
554
554
|
specId: string;
|
|
555
|
+
content: string;
|
|
555
556
|
}[] | undefined;
|
|
556
557
|
}, {
|
|
557
558
|
id: string;
|
|
@@ -559,19 +560,19 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
559
560
|
why: string;
|
|
560
561
|
whatChanges: string;
|
|
561
562
|
deltas: {
|
|
563
|
+
description: string;
|
|
562
564
|
spec: string;
|
|
563
565
|
operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
|
|
564
|
-
description: string;
|
|
565
566
|
requirements?: {
|
|
566
|
-
id: string;
|
|
567
567
|
text: string;
|
|
568
|
+
id: string;
|
|
568
569
|
scenarios: {
|
|
569
570
|
rawText: string;
|
|
570
571
|
}[];
|
|
571
572
|
}[] | undefined;
|
|
572
573
|
requirement?: {
|
|
573
|
-
id: string;
|
|
574
574
|
text: string;
|
|
575
|
+
id: string;
|
|
575
576
|
scenarios: {
|
|
576
577
|
rawText: string;
|
|
577
578
|
}[];
|
|
@@ -582,8 +583,8 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
582
583
|
} | undefined;
|
|
583
584
|
}[];
|
|
584
585
|
tasks: {
|
|
585
|
-
id: string;
|
|
586
586
|
text: string;
|
|
587
|
+
id: string;
|
|
587
588
|
completed: boolean;
|
|
588
589
|
section?: string | undefined;
|
|
589
590
|
}[];
|
|
@@ -597,8 +598,8 @@ declare const ChangeSchema: z.ZodObject<{
|
|
|
597
598
|
} | undefined;
|
|
598
599
|
design?: string | undefined;
|
|
599
600
|
deltaSpecs?: {
|
|
600
|
-
content: string;
|
|
601
601
|
specId: string;
|
|
602
|
+
content: string;
|
|
602
603
|
}[] | undefined;
|
|
603
604
|
}>;
|
|
604
605
|
type Change = z.infer<typeof ChangeSchema>;
|
|
@@ -748,8 +749,8 @@ declare class OpenSpecAdapter {
|
|
|
748
749
|
name: string;
|
|
749
750
|
overview: string;
|
|
750
751
|
requirements: {
|
|
751
|
-
id: string;
|
|
752
752
|
text: string;
|
|
753
|
+
id: string;
|
|
753
754
|
scenarios: {
|
|
754
755
|
rawText: string;
|
|
755
756
|
}[];
|
|
@@ -766,19 +767,19 @@ declare class OpenSpecAdapter {
|
|
|
766
767
|
why: string;
|
|
767
768
|
whatChanges: string;
|
|
768
769
|
deltas: {
|
|
770
|
+
description: string;
|
|
769
771
|
spec: string;
|
|
770
772
|
operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
|
|
771
|
-
description: string;
|
|
772
773
|
requirements?: {
|
|
773
|
-
id: string;
|
|
774
774
|
text: string;
|
|
775
|
+
id: string;
|
|
775
776
|
scenarios: {
|
|
776
777
|
rawText: string;
|
|
777
778
|
}[];
|
|
778
779
|
}[] | undefined;
|
|
779
780
|
requirement?: {
|
|
780
|
-
id: string;
|
|
781
781
|
text: string;
|
|
782
|
+
id: string;
|
|
782
783
|
scenarios: {
|
|
783
784
|
rawText: string;
|
|
784
785
|
}[];
|
|
@@ -789,8 +790,8 @@ declare class OpenSpecAdapter {
|
|
|
789
790
|
} | undefined;
|
|
790
791
|
}[];
|
|
791
792
|
tasks: {
|
|
792
|
-
id: string;
|
|
793
793
|
text: string;
|
|
794
|
+
id: string;
|
|
794
795
|
completed: boolean;
|
|
795
796
|
section?: string | undefined;
|
|
796
797
|
}[];
|
|
@@ -804,8 +805,8 @@ declare class OpenSpecAdapter {
|
|
|
804
805
|
} | undefined;
|
|
805
806
|
design?: string | undefined;
|
|
806
807
|
deltaSpecs?: {
|
|
807
|
-
content: string;
|
|
808
808
|
specId: string;
|
|
809
|
+
content: string;
|
|
809
810
|
}[] | undefined;
|
|
810
811
|
}[];
|
|
811
812
|
archivedCount: number;
|
|
@@ -1456,9 +1457,9 @@ type GitConfig = z.infer<typeof GitConfigSchema>;
|
|
|
1456
1457
|
declare const OpsxConfigSchema: z.ZodObject<{
|
|
1457
1458
|
agentInvocationMode: z.ZodDefault<z.ZodEnum<["compose", "command"]>>;
|
|
1458
1459
|
}, "strip", z.ZodTypeAny, {
|
|
1459
|
-
agentInvocationMode: "
|
|
1460
|
+
agentInvocationMode: "command" | "compose";
|
|
1460
1461
|
}, {
|
|
1461
|
-
agentInvocationMode?: "
|
|
1462
|
+
agentInvocationMode?: "command" | "compose" | undefined;
|
|
1462
1463
|
}>;
|
|
1463
1464
|
type OpsxConfig = z.infer<typeof OpsxConfigSchema>;
|
|
1464
1465
|
/**
|
|
@@ -1496,9 +1497,9 @@ declare const OpenSpecUIConfigSchema: z.ZodObject<{
|
|
|
1496
1497
|
opsx: z.ZodDefault<z.ZodObject<{
|
|
1497
1498
|
agentInvocationMode: z.ZodDefault<z.ZodEnum<["compose", "command"]>>;
|
|
1498
1499
|
}, "strip", z.ZodTypeAny, {
|
|
1499
|
-
agentInvocationMode: "
|
|
1500
|
+
agentInvocationMode: "command" | "compose";
|
|
1500
1501
|
}, {
|
|
1501
|
-
agentInvocationMode?: "
|
|
1502
|
+
agentInvocationMode?: "command" | "compose" | undefined;
|
|
1502
1503
|
}>>;
|
|
1503
1504
|
/** 终端配置 */
|
|
1504
1505
|
terminal: z.ZodDefault<z.ZodObject<{
|
|
@@ -1559,7 +1560,7 @@ declare const OpenSpecUIConfigSchema: z.ZodObject<{
|
|
|
1559
1560
|
};
|
|
1560
1561
|
appBaseUrl: string;
|
|
1561
1562
|
opsx: {
|
|
1562
|
-
agentInvocationMode: "
|
|
1563
|
+
agentInvocationMode: "command" | "compose";
|
|
1563
1564
|
};
|
|
1564
1565
|
terminal: {
|
|
1565
1566
|
fontSize: number;
|
|
@@ -1589,7 +1590,7 @@ declare const OpenSpecUIConfigSchema: z.ZodObject<{
|
|
|
1589
1590
|
} | undefined;
|
|
1590
1591
|
appBaseUrl?: string | undefined;
|
|
1591
1592
|
opsx?: {
|
|
1592
|
-
agentInvocationMode?: "
|
|
1593
|
+
agentInvocationMode?: "command" | "compose" | undefined;
|
|
1593
1594
|
} | undefined;
|
|
1594
1595
|
terminal?: {
|
|
1595
1596
|
fontSize?: number | undefined;
|
|
@@ -2012,14 +2013,14 @@ declare const ArtifactStatusSchema: z.ZodObject<{
|
|
|
2012
2013
|
missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2013
2014
|
relativePath: z.ZodOptional<z.ZodString>;
|
|
2014
2015
|
}, "strip", z.ZodTypeAny, {
|
|
2015
|
-
status: "done" | "ready" | "blocked";
|
|
2016
2016
|
id: string;
|
|
2017
|
+
status: "done" | "ready" | "blocked";
|
|
2017
2018
|
outputPath: string;
|
|
2018
2019
|
missingDeps?: string[] | undefined;
|
|
2019
2020
|
relativePath?: string | undefined;
|
|
2020
2021
|
}, {
|
|
2021
|
-
status: "done" | "ready" | "blocked";
|
|
2022
2022
|
id: string;
|
|
2023
|
+
status: "done" | "ready" | "blocked";
|
|
2023
2024
|
outputPath: string;
|
|
2024
2025
|
missingDeps?: string[] | undefined;
|
|
2025
2026
|
relativePath?: string | undefined;
|
|
@@ -2037,14 +2038,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
|
|
|
2037
2038
|
missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2038
2039
|
relativePath: z.ZodOptional<z.ZodString>;
|
|
2039
2040
|
}, "strip", z.ZodTypeAny, {
|
|
2040
|
-
status: "done" | "ready" | "blocked";
|
|
2041
2041
|
id: string;
|
|
2042
|
+
status: "done" | "ready" | "blocked";
|
|
2042
2043
|
outputPath: string;
|
|
2043
2044
|
missingDeps?: string[] | undefined;
|
|
2044
2045
|
relativePath?: string | undefined;
|
|
2045
2046
|
}, {
|
|
2046
|
-
status: "done" | "ready" | "blocked";
|
|
2047
2047
|
id: string;
|
|
2048
|
+
status: "done" | "ready" | "blocked";
|
|
2048
2049
|
outputPath: string;
|
|
2049
2050
|
missingDeps?: string[] | undefined;
|
|
2050
2051
|
relativePath?: string | undefined;
|
|
@@ -2055,8 +2056,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
|
|
|
2055
2056
|
isComplete: boolean;
|
|
2056
2057
|
applyRequires: string[];
|
|
2057
2058
|
artifacts: {
|
|
2058
|
-
status: "done" | "ready" | "blocked";
|
|
2059
2059
|
id: string;
|
|
2060
|
+
status: "done" | "ready" | "blocked";
|
|
2060
2061
|
outputPath: string;
|
|
2061
2062
|
missingDeps?: string[] | undefined;
|
|
2062
2063
|
relativePath?: string | undefined;
|
|
@@ -2067,8 +2068,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
|
|
|
2067
2068
|
isComplete: boolean;
|
|
2068
2069
|
applyRequires: string[];
|
|
2069
2070
|
artifacts: {
|
|
2070
|
-
status: "done" | "ready" | "blocked";
|
|
2071
2071
|
id: string;
|
|
2072
|
+
status: "done" | "ready" | "blocked";
|
|
2072
2073
|
outputPath: string;
|
|
2073
2074
|
missingDeps?: string[] | undefined;
|
|
2074
2075
|
relativePath?: string | undefined;
|
|
@@ -2081,13 +2082,13 @@ declare const DependencyInfoSchema: z.ZodObject<{
|
|
|
2081
2082
|
path: z.ZodString;
|
|
2082
2083
|
description: z.ZodString;
|
|
2083
2084
|
}, "strip", z.ZodTypeAny, {
|
|
2084
|
-
path: string;
|
|
2085
2085
|
id: string;
|
|
2086
|
+
path: string;
|
|
2086
2087
|
description: string;
|
|
2087
2088
|
done: boolean;
|
|
2088
2089
|
}, {
|
|
2089
|
-
path: string;
|
|
2090
2090
|
id: string;
|
|
2091
|
+
path: string;
|
|
2091
2092
|
description: string;
|
|
2092
2093
|
done: boolean;
|
|
2093
2094
|
}>;
|
|
@@ -2196,28 +2197,28 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
|
|
|
2196
2197
|
path: z.ZodString;
|
|
2197
2198
|
description: z.ZodString;
|
|
2198
2199
|
}, "strip", z.ZodTypeAny, {
|
|
2199
|
-
path: string;
|
|
2200
2200
|
id: string;
|
|
2201
|
+
path: string;
|
|
2201
2202
|
description: string;
|
|
2202
2203
|
done: boolean;
|
|
2203
2204
|
}, {
|
|
2204
|
-
path: string;
|
|
2205
2205
|
id: string;
|
|
2206
|
+
path: string;
|
|
2206
2207
|
description: string;
|
|
2207
2208
|
done: boolean;
|
|
2208
2209
|
}>, "many">;
|
|
2209
2210
|
unlocks: z.ZodArray<z.ZodString, "many">;
|
|
2210
2211
|
}, "strip", z.ZodTypeAny, {
|
|
2211
2212
|
description: string;
|
|
2213
|
+
template: string;
|
|
2212
2214
|
outputPath: string;
|
|
2213
2215
|
changeName: string;
|
|
2214
2216
|
schemaName: string;
|
|
2215
2217
|
changeDir: string;
|
|
2216
2218
|
artifactId: string;
|
|
2217
|
-
template: string;
|
|
2218
2219
|
dependencies: {
|
|
2219
|
-
path: string;
|
|
2220
2220
|
id: string;
|
|
2221
|
+
path: string;
|
|
2221
2222
|
description: string;
|
|
2222
2223
|
done: boolean;
|
|
2223
2224
|
}[];
|
|
@@ -2227,15 +2228,15 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
|
|
|
2227
2228
|
rules?: string[] | null | undefined;
|
|
2228
2229
|
}, {
|
|
2229
2230
|
description: string;
|
|
2231
|
+
template: string;
|
|
2230
2232
|
outputPath: string;
|
|
2231
2233
|
changeName: string;
|
|
2232
2234
|
schemaName: string;
|
|
2233
2235
|
changeDir: string;
|
|
2234
2236
|
artifactId: string;
|
|
2235
|
-
template: string;
|
|
2236
2237
|
dependencies: {
|
|
2237
|
-
path: string;
|
|
2238
2238
|
id: string;
|
|
2239
|
+
path: string;
|
|
2239
2240
|
description: string;
|
|
2240
2241
|
done: boolean;
|
|
2241
2242
|
}[];
|
|
@@ -2251,14 +2252,14 @@ declare const SchemaInfoSchema: z.ZodObject<{
|
|
|
2251
2252
|
artifacts: z.ZodArray<z.ZodString, "many">;
|
|
2252
2253
|
source: z.ZodEnum<["project", "user", "package"]>;
|
|
2253
2254
|
}, "strip", z.ZodTypeAny, {
|
|
2255
|
+
source: "project" | "user" | "package";
|
|
2254
2256
|
name: string;
|
|
2255
2257
|
artifacts: string[];
|
|
2256
|
-
source: "project" | "user" | "package";
|
|
2257
2258
|
description?: string | undefined;
|
|
2258
2259
|
}, {
|
|
2260
|
+
source: "project" | "user" | "package";
|
|
2259
2261
|
name: string;
|
|
2260
2262
|
artifacts: string[];
|
|
2261
|
-
source: "project" | "user" | "package";
|
|
2262
2263
|
description?: string | undefined;
|
|
2263
2264
|
}>;
|
|
2264
2265
|
type SchemaInfo = z.infer<typeof SchemaInfoSchema>;
|
|
@@ -2282,8 +2283,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
|
|
|
2282
2283
|
}>, "many">;
|
|
2283
2284
|
}, "strip", z.ZodTypeAny, {
|
|
2284
2285
|
path: string;
|
|
2285
|
-
name: string;
|
|
2286
2286
|
source: "project" | "user" | "package";
|
|
2287
|
+
name: string;
|
|
2287
2288
|
shadows: {
|
|
2288
2289
|
path: string;
|
|
2289
2290
|
source: "project" | "user" | "package";
|
|
@@ -2292,8 +2293,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
|
|
|
2292
2293
|
displayPath?: string | undefined;
|
|
2293
2294
|
}, {
|
|
2294
2295
|
path: string;
|
|
2295
|
-
name: string;
|
|
2296
2296
|
source: "project" | "user" | "package";
|
|
2297
|
+
name: string;
|
|
2297
2298
|
shadows: {
|
|
2298
2299
|
path: string;
|
|
2299
2300
|
source: "project" | "user" | "package";
|
|
@@ -2328,15 +2329,15 @@ declare const SchemaArtifactSchema: z.ZodObject<{
|
|
|
2328
2329
|
outputPath: string;
|
|
2329
2330
|
requires: string[];
|
|
2330
2331
|
description?: string | undefined;
|
|
2331
|
-
instruction?: string | undefined;
|
|
2332
2332
|
template?: string | undefined;
|
|
2333
|
+
instruction?: string | undefined;
|
|
2333
2334
|
}, {
|
|
2334
2335
|
id: string;
|
|
2335
2336
|
outputPath: string;
|
|
2336
2337
|
requires: string[];
|
|
2337
2338
|
description?: string | undefined;
|
|
2338
|
-
instruction?: string | undefined;
|
|
2339
2339
|
template?: string | undefined;
|
|
2340
|
+
instruction?: string | undefined;
|
|
2340
2341
|
}>;
|
|
2341
2342
|
type SchemaArtifact = z.infer<typeof SchemaArtifactSchema>;
|
|
2342
2343
|
declare const SchemaDetailSchema: z.ZodObject<{
|
|
@@ -2355,15 +2356,15 @@ declare const SchemaDetailSchema: z.ZodObject<{
|
|
|
2355
2356
|
outputPath: string;
|
|
2356
2357
|
requires: string[];
|
|
2357
2358
|
description?: string | undefined;
|
|
2358
|
-
instruction?: string | undefined;
|
|
2359
2359
|
template?: string | undefined;
|
|
2360
|
+
instruction?: string | undefined;
|
|
2360
2361
|
}, {
|
|
2361
2362
|
id: string;
|
|
2362
2363
|
outputPath: string;
|
|
2363
2364
|
requires: string[];
|
|
2364
2365
|
description?: string | undefined;
|
|
2365
|
-
instruction?: string | undefined;
|
|
2366
2366
|
template?: string | undefined;
|
|
2367
|
+
instruction?: string | undefined;
|
|
2367
2368
|
}>, "many">;
|
|
2368
2369
|
applyRequires: z.ZodArray<z.ZodString, "many">;
|
|
2369
2370
|
applyTracks: z.ZodOptional<z.ZodString>;
|
|
@@ -2376,11 +2377,11 @@ declare const SchemaDetailSchema: z.ZodObject<{
|
|
|
2376
2377
|
outputPath: string;
|
|
2377
2378
|
requires: string[];
|
|
2378
2379
|
description?: string | undefined;
|
|
2379
|
-
instruction?: string | undefined;
|
|
2380
2380
|
template?: string | undefined;
|
|
2381
|
+
instruction?: string | undefined;
|
|
2381
2382
|
}[];
|
|
2382
|
-
version?: string | number | undefined;
|
|
2383
2383
|
description?: string | undefined;
|
|
2384
|
+
version?: string | number | undefined;
|
|
2384
2385
|
applyTracks?: string | undefined;
|
|
2385
2386
|
applyInstruction?: string | undefined;
|
|
2386
2387
|
}, {
|
|
@@ -2391,11 +2392,11 @@ declare const SchemaDetailSchema: z.ZodObject<{
|
|
|
2391
2392
|
outputPath: string;
|
|
2392
2393
|
requires: string[];
|
|
2393
2394
|
description?: string | undefined;
|
|
2394
|
-
instruction?: string | undefined;
|
|
2395
2395
|
template?: string | undefined;
|
|
2396
|
+
instruction?: string | undefined;
|
|
2396
2397
|
}[];
|
|
2397
|
-
version?: string | number | undefined;
|
|
2398
2398
|
description?: string | undefined;
|
|
2399
|
+
version?: string | number | undefined;
|
|
2399
2400
|
applyTracks?: string | undefined;
|
|
2400
2401
|
applyInstruction?: string | undefined;
|
|
2401
2402
|
}>;
|
|
@@ -2441,7 +2442,10 @@ interface ExportSnapshot {
|
|
|
2441
2442
|
specs: Array<{
|
|
2442
2443
|
id: string;
|
|
2443
2444
|
name: string;
|
|
2445
|
+
/** Processed markdown shown by default in static OpenSpecUI. */
|
|
2444
2446
|
content: string;
|
|
2447
|
+
/** Original source markdown, preserved for raw/source views. */
|
|
2448
|
+
sourceContent?: string;
|
|
2445
2449
|
overview: string;
|
|
2446
2450
|
requirements: Array<{
|
|
2447
2451
|
id: string;
|
|
@@ -2457,9 +2461,14 @@ interface ExportSnapshot {
|
|
|
2457
2461
|
changes: Array<{
|
|
2458
2462
|
id: string;
|
|
2459
2463
|
name: string;
|
|
2464
|
+
/** Processed proposal markdown shown by default in static OpenSpecUI. */
|
|
2460
2465
|
proposal: string;
|
|
2466
|
+
/** Original source proposal markdown. */
|
|
2467
|
+
sourceProposal?: string;
|
|
2461
2468
|
tasks?: string;
|
|
2469
|
+
sourceTasks?: string;
|
|
2462
2470
|
design?: string;
|
|
2471
|
+
sourceDesign?: string;
|
|
2463
2472
|
why: string;
|
|
2464
2473
|
whatChanges: string;
|
|
2465
2474
|
parsedTasks: Array<{
|
|
@@ -2470,7 +2479,10 @@ interface ExportSnapshot {
|
|
|
2470
2479
|
}>;
|
|
2471
2480
|
deltas: Array<{
|
|
2472
2481
|
capability: string;
|
|
2482
|
+
/** Processed delta spec markdown. */
|
|
2473
2483
|
content: string;
|
|
2484
|
+
/** Original source delta spec markdown. */
|
|
2485
|
+
sourceContent?: string;
|
|
2474
2486
|
}>;
|
|
2475
2487
|
progress: {
|
|
2476
2488
|
total: number;
|
|
@@ -2483,9 +2495,14 @@ interface ExportSnapshot {
|
|
|
2483
2495
|
archives: Array<{
|
|
2484
2496
|
id: string;
|
|
2485
2497
|
name: string;
|
|
2498
|
+
/** Processed proposal markdown shown by default in static OpenSpecUI. */
|
|
2486
2499
|
proposal: string;
|
|
2500
|
+
/** Original source proposal markdown. */
|
|
2501
|
+
sourceProposal?: string;
|
|
2487
2502
|
tasks?: string;
|
|
2503
|
+
sourceTasks?: string;
|
|
2488
2504
|
design?: string;
|
|
2505
|
+
sourceDesign?: string;
|
|
2489
2506
|
why: string;
|
|
2490
2507
|
whatChanges: string;
|
|
2491
2508
|
parsedTasks: Array<{
|
|
@@ -2580,6 +2597,131 @@ interface GitWorktreeHandoff {
|
|
|
2580
2597
|
serverUrl: string;
|
|
2581
2598
|
}
|
|
2582
2599
|
//#endregion
|
|
2600
|
+
//#region src/hooks.d.ts
|
|
2601
|
+
declare const OPENSPECUI_HOOKS_VERSION = 1;
|
|
2602
|
+
/** Severity level for diagnostics returned by project hooks. */
|
|
2603
|
+
type HookDiagnosticLevel = 'info' | 'warning' | 'error';
|
|
2604
|
+
/** Non-fatal hook diagnostic surfaced with the processed result. */
|
|
2605
|
+
interface HookDiagnosticV1 {
|
|
2606
|
+
level: HookDiagnosticLevel;
|
|
2607
|
+
message: string;
|
|
2608
|
+
}
|
|
2609
|
+
/** Project-scoped lifecycle helpers available to hooks. */
|
|
2610
|
+
interface HookLifecycleV1 {
|
|
2611
|
+
/**
|
|
2612
|
+
* Register cleanup work for the project hook runtime.
|
|
2613
|
+
*
|
|
2614
|
+
* This lifecycle is project-scoped, not call-scoped, so daemon-style hooks can
|
|
2615
|
+
* keep one process alive for the OpenSpecUI session.
|
|
2616
|
+
*/
|
|
2617
|
+
onDispose(cleanup: () => void | Promise<void>): void;
|
|
2618
|
+
}
|
|
2619
|
+
/** OpenSpecUI consumer requesting a processed document projection. */
|
|
2620
|
+
type DocumentConsumerV1 = 'view' | 'search' | 'export';
|
|
2621
|
+
/** Document read mode; source reads bypass hooks and stay audit-safe. */
|
|
2622
|
+
type DocumentReadModeV1 = 'source' | 'processed';
|
|
2623
|
+
/** Stable identity for the OpenSpec document currently being read. */
|
|
2624
|
+
interface DocumentRefV1 {
|
|
2625
|
+
stage: 'project' | 'main' | 'change' | 'archive';
|
|
2626
|
+
kind: 'project' | 'spec' | 'proposal' | 'design' | 'tasks' | 'delta-spec';
|
|
2627
|
+
relativePath: string;
|
|
2628
|
+
absolutePath: string;
|
|
2629
|
+
specId?: string;
|
|
2630
|
+
changeId?: string;
|
|
2631
|
+
}
|
|
2632
|
+
/** Context passed to `onReadDocument`. */
|
|
2633
|
+
interface ReadDocumentContextV1 {
|
|
2634
|
+
version: typeof OPENSPECUI_HOOKS_VERSION;
|
|
2635
|
+
projectDir: string;
|
|
2636
|
+
consumer: DocumentConsumerV1;
|
|
2637
|
+
document: DocumentRefV1;
|
|
2638
|
+
signal: AbortSignal;
|
|
2639
|
+
lifecycle: HookLifecycleV1;
|
|
2640
|
+
}
|
|
2641
|
+
/** Markdown projection returned by document reads and `onReadDocument`. */
|
|
2642
|
+
interface ReadDocumentResultV1 {
|
|
2643
|
+
markdown: string;
|
|
2644
|
+
sourceLabel?: string;
|
|
2645
|
+
title?: string;
|
|
2646
|
+
diagnostics?: HookDiagnosticV1[];
|
|
2647
|
+
watchFiles?: string[];
|
|
2648
|
+
}
|
|
2649
|
+
/** Intercepts processed OpenSpec markdown reads for view, search, and export. */
|
|
2650
|
+
type OnReadDocumentHookV1 = (ctx: ReadDocumentContextV1, read: () => Promise<ReadDocumentResultV1>) => Promise<ReadDocumentResultV1>;
|
|
2651
|
+
/** OPSX workflow action names that can be customized by `onRunWorkflow`. */
|
|
2652
|
+
type WorkflowActionV1 = 'explore' | 'propose' | 'new' | 'continue' | 'ff' | 'apply' | 'verify' | 'sync' | 'archive' | 'bulk-archive' | 'onboard';
|
|
2653
|
+
/** Invocation mode requested by the UI before action-specific fallback resolution. */
|
|
2654
|
+
type WorkflowRequestedModeV1 = 'compose' | 'command' | 'direct';
|
|
2655
|
+
/** Normalized OPSX workflow input passed to `onRunWorkflow`. */
|
|
2656
|
+
type RunWorkflowInputV1 = {
|
|
2657
|
+
action: 'explore' | 'propose';
|
|
2658
|
+
text: string;
|
|
2659
|
+
} | {
|
|
2660
|
+
action: 'new';
|
|
2661
|
+
changeId: string;
|
|
2662
|
+
schema?: string;
|
|
2663
|
+
description?: string;
|
|
2664
|
+
extraArgs: string[];
|
|
2665
|
+
} | {
|
|
2666
|
+
action: 'continue' | 'ff';
|
|
2667
|
+
changeId: string;
|
|
2668
|
+
artifactId: string;
|
|
2669
|
+
schema?: string;
|
|
2670
|
+
} | {
|
|
2671
|
+
action: 'apply' | 'archive' | 'verify' | 'sync';
|
|
2672
|
+
changeId: string;
|
|
2673
|
+
schema?: string;
|
|
2674
|
+
strict?: boolean;
|
|
2675
|
+
} | {
|
|
2676
|
+
action: 'bulk-archive';
|
|
2677
|
+
changeIds?: string[];
|
|
2678
|
+
schema?: string;
|
|
2679
|
+
} | {
|
|
2680
|
+
action: 'onboard';
|
|
2681
|
+
};
|
|
2682
|
+
/** Actual invocation mode after OpenSpecUI applies action capability rules. */
|
|
2683
|
+
interface WorkflowInvocationModeResolutionV1 {
|
|
2684
|
+
requestedMode: WorkflowRequestedModeV1;
|
|
2685
|
+
actualMode: WorkflowRequestedModeV1;
|
|
2686
|
+
fallbackReason: string | null;
|
|
2687
|
+
}
|
|
2688
|
+
/** Context passed to `onRunWorkflow`. */
|
|
2689
|
+
interface RunWorkflowContextV1 {
|
|
2690
|
+
version: typeof OPENSPECUI_HOOKS_VERSION;
|
|
2691
|
+
projectDir: string;
|
|
2692
|
+
action: WorkflowActionV1;
|
|
2693
|
+
requestedMode: WorkflowRequestedModeV1;
|
|
2694
|
+
input: RunWorkflowInputV1;
|
|
2695
|
+
signal: AbortSignal;
|
|
2696
|
+
lifecycle: HookLifecycleV1;
|
|
2697
|
+
}
|
|
2698
|
+
/** Final OPSX invocation payload produced by OpenSpecUI or `onRunWorkflow`. */
|
|
2699
|
+
type RunWorkflowResultV1 = {
|
|
2700
|
+
kind: 'agent-prompt';
|
|
2701
|
+
text: string;
|
|
2702
|
+
format: 'markdown';
|
|
2703
|
+
mode?: WorkflowInvocationModeResolutionV1;
|
|
2704
|
+
diagnostics?: HookDiagnosticV1[];
|
|
2705
|
+
} | {
|
|
2706
|
+
kind: 'agent-command';
|
|
2707
|
+
text: string;
|
|
2708
|
+
mode?: WorkflowInvocationModeResolutionV1;
|
|
2709
|
+
diagnostics?: HookDiagnosticV1[];
|
|
2710
|
+
} | {
|
|
2711
|
+
kind: 'cli-command';
|
|
2712
|
+
command: string;
|
|
2713
|
+
args: string[];
|
|
2714
|
+
mode?: WorkflowInvocationModeResolutionV1;
|
|
2715
|
+
diagnostics?: HookDiagnosticV1[];
|
|
2716
|
+
};
|
|
2717
|
+
/** Intercepts the final OPSX invocation payload before the UI runs it. */
|
|
2718
|
+
type OnRunWorkflowHookV1 = (ctx: RunWorkflowContextV1, run: () => Promise<RunWorkflowResultV1>) => Promise<RunWorkflowResultV1>;
|
|
2719
|
+
/** Project hook module shape exported from `openspec/openspecui.hooks.ts`. */
|
|
2720
|
+
interface OpenSpecUIHooksV1 {
|
|
2721
|
+
onReadDocument?: OnReadDocumentHookV1;
|
|
2722
|
+
onRunWorkflow?: OnRunWorkflowHookV1;
|
|
2723
|
+
}
|
|
2724
|
+
//#endregion
|
|
2583
2725
|
//#region src/runtime-types.d.ts
|
|
2584
2726
|
type ProjectRecoveryStatus = {
|
|
2585
2727
|
state: 'idle';
|
|
@@ -2708,500 +2850,4 @@ declare class OpsxKernel {
|
|
|
2708
2850
|
private combineSignals;
|
|
2709
2851
|
}
|
|
2710
2852
|
//#endregion
|
|
2711
|
-
|
|
2712
|
-
declare const PtyPlatformSchema: z.ZodEnum<["windows", "macos", "common"]>;
|
|
2713
|
-
declare const PtySessionInfoSchema: z.ZodObject<{
|
|
2714
|
-
id: z.ZodString;
|
|
2715
|
-
title: z.ZodString;
|
|
2716
|
-
command: z.ZodString;
|
|
2717
|
-
args: z.ZodArray<z.ZodString, "many">;
|
|
2718
|
-
platform: z.ZodEnum<["windows", "macos", "common"]>;
|
|
2719
|
-
isExited: z.ZodBoolean;
|
|
2720
|
-
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
2721
|
-
closeTip: z.ZodOptional<z.ZodString>;
|
|
2722
|
-
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2723
|
-
}, "strip", z.ZodTypeAny, {
|
|
2724
|
-
id: string;
|
|
2725
|
-
command: string;
|
|
2726
|
-
args: string[];
|
|
2727
|
-
platform: "windows" | "macos" | "common";
|
|
2728
|
-
exitCode: number | null;
|
|
2729
|
-
title: string;
|
|
2730
|
-
isExited: boolean;
|
|
2731
|
-
closeTip?: string | undefined;
|
|
2732
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2733
|
-
}, {
|
|
2734
|
-
id: string;
|
|
2735
|
-
command: string;
|
|
2736
|
-
args: string[];
|
|
2737
|
-
platform: "windows" | "macos" | "common";
|
|
2738
|
-
exitCode: number | null;
|
|
2739
|
-
title: string;
|
|
2740
|
-
isExited: boolean;
|
|
2741
|
-
closeTip?: string | undefined;
|
|
2742
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2743
|
-
}>;
|
|
2744
|
-
declare const PtyCreateMessageSchema: z.ZodObject<{
|
|
2745
|
-
type: z.ZodLiteral<"create">;
|
|
2746
|
-
requestId: z.ZodString;
|
|
2747
|
-
cols: z.ZodOptional<z.ZodNumber>;
|
|
2748
|
-
rows: z.ZodOptional<z.ZodNumber>;
|
|
2749
|
-
command: z.ZodOptional<z.ZodString>;
|
|
2750
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2751
|
-
closeTip: z.ZodOptional<z.ZodString>;
|
|
2752
|
-
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2753
|
-
}, "strip", z.ZodTypeAny, {
|
|
2754
|
-
type: "create";
|
|
2755
|
-
requestId: string;
|
|
2756
|
-
command?: string | undefined;
|
|
2757
|
-
args?: string[] | undefined;
|
|
2758
|
-
cols?: number | undefined;
|
|
2759
|
-
rows?: number | undefined;
|
|
2760
|
-
closeTip?: string | undefined;
|
|
2761
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2762
|
-
}, {
|
|
2763
|
-
type: "create";
|
|
2764
|
-
requestId: string;
|
|
2765
|
-
command?: string | undefined;
|
|
2766
|
-
args?: string[] | undefined;
|
|
2767
|
-
cols?: number | undefined;
|
|
2768
|
-
rows?: number | undefined;
|
|
2769
|
-
closeTip?: string | undefined;
|
|
2770
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2771
|
-
}>;
|
|
2772
|
-
declare const PtyInputMessageSchema: z.ZodObject<{
|
|
2773
|
-
type: z.ZodLiteral<"input">;
|
|
2774
|
-
sessionId: z.ZodString;
|
|
2775
|
-
data: z.ZodString;
|
|
2776
|
-
}, "strip", z.ZodTypeAny, {
|
|
2777
|
-
type: "input";
|
|
2778
|
-
sessionId: string;
|
|
2779
|
-
data: string;
|
|
2780
|
-
}, {
|
|
2781
|
-
type: "input";
|
|
2782
|
-
sessionId: string;
|
|
2783
|
-
data: string;
|
|
2784
|
-
}>;
|
|
2785
|
-
declare const PtyResizeMessageSchema: z.ZodObject<{
|
|
2786
|
-
type: z.ZodLiteral<"resize">;
|
|
2787
|
-
sessionId: z.ZodString;
|
|
2788
|
-
cols: z.ZodNumber;
|
|
2789
|
-
rows: z.ZodNumber;
|
|
2790
|
-
}, "strip", z.ZodTypeAny, {
|
|
2791
|
-
type: "resize";
|
|
2792
|
-
cols: number;
|
|
2793
|
-
rows: number;
|
|
2794
|
-
sessionId: string;
|
|
2795
|
-
}, {
|
|
2796
|
-
type: "resize";
|
|
2797
|
-
cols: number;
|
|
2798
|
-
rows: number;
|
|
2799
|
-
sessionId: string;
|
|
2800
|
-
}>;
|
|
2801
|
-
declare const PtyCloseMessageSchema: z.ZodObject<{
|
|
2802
|
-
type: z.ZodLiteral<"close">;
|
|
2803
|
-
sessionId: z.ZodString;
|
|
2804
|
-
}, "strip", z.ZodTypeAny, {
|
|
2805
|
-
type: "close";
|
|
2806
|
-
sessionId: string;
|
|
2807
|
-
}, {
|
|
2808
|
-
type: "close";
|
|
2809
|
-
sessionId: string;
|
|
2810
|
-
}>;
|
|
2811
|
-
declare const PtyAttachMessageSchema: z.ZodObject<{
|
|
2812
|
-
type: z.ZodLiteral<"attach">;
|
|
2813
|
-
sessionId: z.ZodString;
|
|
2814
|
-
cols: z.ZodOptional<z.ZodNumber>;
|
|
2815
|
-
rows: z.ZodOptional<z.ZodNumber>;
|
|
2816
|
-
}, "strip", z.ZodTypeAny, {
|
|
2817
|
-
type: "attach";
|
|
2818
|
-
sessionId: string;
|
|
2819
|
-
cols?: number | undefined;
|
|
2820
|
-
rows?: number | undefined;
|
|
2821
|
-
}, {
|
|
2822
|
-
type: "attach";
|
|
2823
|
-
sessionId: string;
|
|
2824
|
-
cols?: number | undefined;
|
|
2825
|
-
rows?: number | undefined;
|
|
2826
|
-
}>;
|
|
2827
|
-
declare const PtyListMessageSchema: z.ZodObject<{
|
|
2828
|
-
type: z.ZodLiteral<"list">;
|
|
2829
|
-
}, "strip", z.ZodTypeAny, {
|
|
2830
|
-
type: "list";
|
|
2831
|
-
}, {
|
|
2832
|
-
type: "list";
|
|
2833
|
-
}>;
|
|
2834
|
-
declare const PtyClientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2835
|
-
type: z.ZodLiteral<"create">;
|
|
2836
|
-
requestId: z.ZodString;
|
|
2837
|
-
cols: z.ZodOptional<z.ZodNumber>;
|
|
2838
|
-
rows: z.ZodOptional<z.ZodNumber>;
|
|
2839
|
-
command: z.ZodOptional<z.ZodString>;
|
|
2840
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2841
|
-
closeTip: z.ZodOptional<z.ZodString>;
|
|
2842
|
-
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2843
|
-
}, "strip", z.ZodTypeAny, {
|
|
2844
|
-
type: "create";
|
|
2845
|
-
requestId: string;
|
|
2846
|
-
command?: string | undefined;
|
|
2847
|
-
args?: string[] | undefined;
|
|
2848
|
-
cols?: number | undefined;
|
|
2849
|
-
rows?: number | undefined;
|
|
2850
|
-
closeTip?: string | undefined;
|
|
2851
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2852
|
-
}, {
|
|
2853
|
-
type: "create";
|
|
2854
|
-
requestId: string;
|
|
2855
|
-
command?: string | undefined;
|
|
2856
|
-
args?: string[] | undefined;
|
|
2857
|
-
cols?: number | undefined;
|
|
2858
|
-
rows?: number | undefined;
|
|
2859
|
-
closeTip?: string | undefined;
|
|
2860
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2861
|
-
}>, z.ZodObject<{
|
|
2862
|
-
type: z.ZodLiteral<"input">;
|
|
2863
|
-
sessionId: z.ZodString;
|
|
2864
|
-
data: z.ZodString;
|
|
2865
|
-
}, "strip", z.ZodTypeAny, {
|
|
2866
|
-
type: "input";
|
|
2867
|
-
sessionId: string;
|
|
2868
|
-
data: string;
|
|
2869
|
-
}, {
|
|
2870
|
-
type: "input";
|
|
2871
|
-
sessionId: string;
|
|
2872
|
-
data: string;
|
|
2873
|
-
}>, z.ZodObject<{
|
|
2874
|
-
type: z.ZodLiteral<"resize">;
|
|
2875
|
-
sessionId: z.ZodString;
|
|
2876
|
-
cols: z.ZodNumber;
|
|
2877
|
-
rows: z.ZodNumber;
|
|
2878
|
-
}, "strip", z.ZodTypeAny, {
|
|
2879
|
-
type: "resize";
|
|
2880
|
-
cols: number;
|
|
2881
|
-
rows: number;
|
|
2882
|
-
sessionId: string;
|
|
2883
|
-
}, {
|
|
2884
|
-
type: "resize";
|
|
2885
|
-
cols: number;
|
|
2886
|
-
rows: number;
|
|
2887
|
-
sessionId: string;
|
|
2888
|
-
}>, z.ZodObject<{
|
|
2889
|
-
type: z.ZodLiteral<"close">;
|
|
2890
|
-
sessionId: z.ZodString;
|
|
2891
|
-
}, "strip", z.ZodTypeAny, {
|
|
2892
|
-
type: "close";
|
|
2893
|
-
sessionId: string;
|
|
2894
|
-
}, {
|
|
2895
|
-
type: "close";
|
|
2896
|
-
sessionId: string;
|
|
2897
|
-
}>, z.ZodObject<{
|
|
2898
|
-
type: z.ZodLiteral<"attach">;
|
|
2899
|
-
sessionId: z.ZodString;
|
|
2900
|
-
cols: z.ZodOptional<z.ZodNumber>;
|
|
2901
|
-
rows: z.ZodOptional<z.ZodNumber>;
|
|
2902
|
-
}, "strip", z.ZodTypeAny, {
|
|
2903
|
-
type: "attach";
|
|
2904
|
-
sessionId: string;
|
|
2905
|
-
cols?: number | undefined;
|
|
2906
|
-
rows?: number | undefined;
|
|
2907
|
-
}, {
|
|
2908
|
-
type: "attach";
|
|
2909
|
-
sessionId: string;
|
|
2910
|
-
cols?: number | undefined;
|
|
2911
|
-
rows?: number | undefined;
|
|
2912
|
-
}>, z.ZodObject<{
|
|
2913
|
-
type: z.ZodLiteral<"list">;
|
|
2914
|
-
}, "strip", z.ZodTypeAny, {
|
|
2915
|
-
type: "list";
|
|
2916
|
-
}, {
|
|
2917
|
-
type: "list";
|
|
2918
|
-
}>]>;
|
|
2919
|
-
declare const PtyCreatedResponseSchema: z.ZodObject<{
|
|
2920
|
-
type: z.ZodLiteral<"created">;
|
|
2921
|
-
requestId: z.ZodString;
|
|
2922
|
-
sessionId: z.ZodString;
|
|
2923
|
-
platform: z.ZodEnum<["windows", "macos", "common"]>;
|
|
2924
|
-
}, "strip", z.ZodTypeAny, {
|
|
2925
|
-
type: "created";
|
|
2926
|
-
requestId: string;
|
|
2927
|
-
sessionId: string;
|
|
2928
|
-
platform: "windows" | "macos" | "common";
|
|
2929
|
-
}, {
|
|
2930
|
-
type: "created";
|
|
2931
|
-
requestId: string;
|
|
2932
|
-
sessionId: string;
|
|
2933
|
-
platform: "windows" | "macos" | "common";
|
|
2934
|
-
}>;
|
|
2935
|
-
declare const PtyOutputResponseSchema: z.ZodObject<{
|
|
2936
|
-
type: z.ZodLiteral<"output">;
|
|
2937
|
-
sessionId: z.ZodString;
|
|
2938
|
-
data: z.ZodString;
|
|
2939
|
-
}, "strip", z.ZodTypeAny, {
|
|
2940
|
-
type: "output";
|
|
2941
|
-
sessionId: string;
|
|
2942
|
-
data: string;
|
|
2943
|
-
}, {
|
|
2944
|
-
type: "output";
|
|
2945
|
-
sessionId: string;
|
|
2946
|
-
data: string;
|
|
2947
|
-
}>;
|
|
2948
|
-
declare const PtyExitResponseSchema: z.ZodObject<{
|
|
2949
|
-
type: z.ZodLiteral<"exit">;
|
|
2950
|
-
sessionId: z.ZodString;
|
|
2951
|
-
exitCode: z.ZodNumber;
|
|
2952
|
-
}, "strip", z.ZodTypeAny, {
|
|
2953
|
-
type: "exit";
|
|
2954
|
-
sessionId: string;
|
|
2955
|
-
exitCode: number;
|
|
2956
|
-
}, {
|
|
2957
|
-
type: "exit";
|
|
2958
|
-
sessionId: string;
|
|
2959
|
-
exitCode: number;
|
|
2960
|
-
}>;
|
|
2961
|
-
declare const PtyTitleResponseSchema: z.ZodObject<{
|
|
2962
|
-
type: z.ZodLiteral<"title">;
|
|
2963
|
-
sessionId: z.ZodString;
|
|
2964
|
-
title: z.ZodString;
|
|
2965
|
-
}, "strip", z.ZodTypeAny, {
|
|
2966
|
-
type: "title";
|
|
2967
|
-
sessionId: string;
|
|
2968
|
-
title: string;
|
|
2969
|
-
}, {
|
|
2970
|
-
type: "title";
|
|
2971
|
-
sessionId: string;
|
|
2972
|
-
title: string;
|
|
2973
|
-
}>;
|
|
2974
|
-
declare const PtyBufferResponseSchema: z.ZodObject<{
|
|
2975
|
-
type: z.ZodLiteral<"buffer">;
|
|
2976
|
-
sessionId: z.ZodString;
|
|
2977
|
-
data: z.ZodString;
|
|
2978
|
-
}, "strip", z.ZodTypeAny, {
|
|
2979
|
-
type: "buffer";
|
|
2980
|
-
sessionId: string;
|
|
2981
|
-
data: string;
|
|
2982
|
-
}, {
|
|
2983
|
-
type: "buffer";
|
|
2984
|
-
sessionId: string;
|
|
2985
|
-
data: string;
|
|
2986
|
-
}>;
|
|
2987
|
-
declare const PtyListResponseSchema: z.ZodObject<{
|
|
2988
|
-
type: z.ZodLiteral<"list">;
|
|
2989
|
-
sessions: z.ZodArray<z.ZodObject<{
|
|
2990
|
-
id: z.ZodString;
|
|
2991
|
-
title: z.ZodString;
|
|
2992
|
-
command: z.ZodString;
|
|
2993
|
-
args: z.ZodArray<z.ZodString, "many">;
|
|
2994
|
-
platform: z.ZodEnum<["windows", "macos", "common"]>;
|
|
2995
|
-
isExited: z.ZodBoolean;
|
|
2996
|
-
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
2997
|
-
closeTip: z.ZodOptional<z.ZodString>;
|
|
2998
|
-
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2999
|
-
}, "strip", z.ZodTypeAny, {
|
|
3000
|
-
id: string;
|
|
3001
|
-
command: string;
|
|
3002
|
-
args: string[];
|
|
3003
|
-
platform: "windows" | "macos" | "common";
|
|
3004
|
-
exitCode: number | null;
|
|
3005
|
-
title: string;
|
|
3006
|
-
isExited: boolean;
|
|
3007
|
-
closeTip?: string | undefined;
|
|
3008
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
3009
|
-
}, {
|
|
3010
|
-
id: string;
|
|
3011
|
-
command: string;
|
|
3012
|
-
args: string[];
|
|
3013
|
-
platform: "windows" | "macos" | "common";
|
|
3014
|
-
exitCode: number | null;
|
|
3015
|
-
title: string;
|
|
3016
|
-
isExited: boolean;
|
|
3017
|
-
closeTip?: string | undefined;
|
|
3018
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
3019
|
-
}>, "many">;
|
|
3020
|
-
}, "strip", z.ZodTypeAny, {
|
|
3021
|
-
type: "list";
|
|
3022
|
-
sessions: {
|
|
3023
|
-
id: string;
|
|
3024
|
-
command: string;
|
|
3025
|
-
args: string[];
|
|
3026
|
-
platform: "windows" | "macos" | "common";
|
|
3027
|
-
exitCode: number | null;
|
|
3028
|
-
title: string;
|
|
3029
|
-
isExited: boolean;
|
|
3030
|
-
closeTip?: string | undefined;
|
|
3031
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
3032
|
-
}[];
|
|
3033
|
-
}, {
|
|
3034
|
-
type: "list";
|
|
3035
|
-
sessions: {
|
|
3036
|
-
id: string;
|
|
3037
|
-
command: string;
|
|
3038
|
-
args: string[];
|
|
3039
|
-
platform: "windows" | "macos" | "common";
|
|
3040
|
-
exitCode: number | null;
|
|
3041
|
-
title: string;
|
|
3042
|
-
isExited: boolean;
|
|
3043
|
-
closeTip?: string | undefined;
|
|
3044
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
3045
|
-
}[];
|
|
3046
|
-
}>;
|
|
3047
|
-
declare const PtyErrorCodeSchema: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
|
|
3048
|
-
declare const PtyErrorResponseSchema: z.ZodObject<{
|
|
3049
|
-
type: z.ZodLiteral<"error">;
|
|
3050
|
-
code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
|
|
3051
|
-
message: z.ZodString;
|
|
3052
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
3053
|
-
}, "strip", z.ZodTypeAny, {
|
|
3054
|
-
type: "error";
|
|
3055
|
-
code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
|
|
3056
|
-
message: string;
|
|
3057
|
-
sessionId?: string | undefined;
|
|
3058
|
-
}, {
|
|
3059
|
-
type: "error";
|
|
3060
|
-
code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
|
|
3061
|
-
message: string;
|
|
3062
|
-
sessionId?: string | undefined;
|
|
3063
|
-
}>;
|
|
3064
|
-
declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3065
|
-
type: z.ZodLiteral<"created">;
|
|
3066
|
-
requestId: z.ZodString;
|
|
3067
|
-
sessionId: z.ZodString;
|
|
3068
|
-
platform: z.ZodEnum<["windows", "macos", "common"]>;
|
|
3069
|
-
}, "strip", z.ZodTypeAny, {
|
|
3070
|
-
type: "created";
|
|
3071
|
-
requestId: string;
|
|
3072
|
-
sessionId: string;
|
|
3073
|
-
platform: "windows" | "macos" | "common";
|
|
3074
|
-
}, {
|
|
3075
|
-
type: "created";
|
|
3076
|
-
requestId: string;
|
|
3077
|
-
sessionId: string;
|
|
3078
|
-
platform: "windows" | "macos" | "common";
|
|
3079
|
-
}>, z.ZodObject<{
|
|
3080
|
-
type: z.ZodLiteral<"output">;
|
|
3081
|
-
sessionId: z.ZodString;
|
|
3082
|
-
data: z.ZodString;
|
|
3083
|
-
}, "strip", z.ZodTypeAny, {
|
|
3084
|
-
type: "output";
|
|
3085
|
-
sessionId: string;
|
|
3086
|
-
data: string;
|
|
3087
|
-
}, {
|
|
3088
|
-
type: "output";
|
|
3089
|
-
sessionId: string;
|
|
3090
|
-
data: string;
|
|
3091
|
-
}>, z.ZodObject<{
|
|
3092
|
-
type: z.ZodLiteral<"exit">;
|
|
3093
|
-
sessionId: z.ZodString;
|
|
3094
|
-
exitCode: z.ZodNumber;
|
|
3095
|
-
}, "strip", z.ZodTypeAny, {
|
|
3096
|
-
type: "exit";
|
|
3097
|
-
sessionId: string;
|
|
3098
|
-
exitCode: number;
|
|
3099
|
-
}, {
|
|
3100
|
-
type: "exit";
|
|
3101
|
-
sessionId: string;
|
|
3102
|
-
exitCode: number;
|
|
3103
|
-
}>, z.ZodObject<{
|
|
3104
|
-
type: z.ZodLiteral<"title">;
|
|
3105
|
-
sessionId: z.ZodString;
|
|
3106
|
-
title: z.ZodString;
|
|
3107
|
-
}, "strip", z.ZodTypeAny, {
|
|
3108
|
-
type: "title";
|
|
3109
|
-
sessionId: string;
|
|
3110
|
-
title: string;
|
|
3111
|
-
}, {
|
|
3112
|
-
type: "title";
|
|
3113
|
-
sessionId: string;
|
|
3114
|
-
title: string;
|
|
3115
|
-
}>, z.ZodObject<{
|
|
3116
|
-
type: z.ZodLiteral<"buffer">;
|
|
3117
|
-
sessionId: z.ZodString;
|
|
3118
|
-
data: z.ZodString;
|
|
3119
|
-
}, "strip", z.ZodTypeAny, {
|
|
3120
|
-
type: "buffer";
|
|
3121
|
-
sessionId: string;
|
|
3122
|
-
data: string;
|
|
3123
|
-
}, {
|
|
3124
|
-
type: "buffer";
|
|
3125
|
-
sessionId: string;
|
|
3126
|
-
data: string;
|
|
3127
|
-
}>, z.ZodObject<{
|
|
3128
|
-
type: z.ZodLiteral<"list">;
|
|
3129
|
-
sessions: z.ZodArray<z.ZodObject<{
|
|
3130
|
-
id: z.ZodString;
|
|
3131
|
-
title: z.ZodString;
|
|
3132
|
-
command: z.ZodString;
|
|
3133
|
-
args: z.ZodArray<z.ZodString, "many">;
|
|
3134
|
-
platform: z.ZodEnum<["windows", "macos", "common"]>;
|
|
3135
|
-
isExited: z.ZodBoolean;
|
|
3136
|
-
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
3137
|
-
closeTip: z.ZodOptional<z.ZodString>;
|
|
3138
|
-
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
3139
|
-
}, "strip", z.ZodTypeAny, {
|
|
3140
|
-
id: string;
|
|
3141
|
-
command: string;
|
|
3142
|
-
args: string[];
|
|
3143
|
-
platform: "windows" | "macos" | "common";
|
|
3144
|
-
exitCode: number | null;
|
|
3145
|
-
title: string;
|
|
3146
|
-
isExited: boolean;
|
|
3147
|
-
closeTip?: string | undefined;
|
|
3148
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
3149
|
-
}, {
|
|
3150
|
-
id: string;
|
|
3151
|
-
command: string;
|
|
3152
|
-
args: string[];
|
|
3153
|
-
platform: "windows" | "macos" | "common";
|
|
3154
|
-
exitCode: number | null;
|
|
3155
|
-
title: string;
|
|
3156
|
-
isExited: boolean;
|
|
3157
|
-
closeTip?: string | undefined;
|
|
3158
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
3159
|
-
}>, "many">;
|
|
3160
|
-
}, "strip", z.ZodTypeAny, {
|
|
3161
|
-
type: "list";
|
|
3162
|
-
sessions: {
|
|
3163
|
-
id: string;
|
|
3164
|
-
command: string;
|
|
3165
|
-
args: string[];
|
|
3166
|
-
platform: "windows" | "macos" | "common";
|
|
3167
|
-
exitCode: number | null;
|
|
3168
|
-
title: string;
|
|
3169
|
-
isExited: boolean;
|
|
3170
|
-
closeTip?: string | undefined;
|
|
3171
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
3172
|
-
}[];
|
|
3173
|
-
}, {
|
|
3174
|
-
type: "list";
|
|
3175
|
-
sessions: {
|
|
3176
|
-
id: string;
|
|
3177
|
-
command: string;
|
|
3178
|
-
args: string[];
|
|
3179
|
-
platform: "windows" | "macos" | "common";
|
|
3180
|
-
exitCode: number | null;
|
|
3181
|
-
title: string;
|
|
3182
|
-
isExited: boolean;
|
|
3183
|
-
closeTip?: string | undefined;
|
|
3184
|
-
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
3185
|
-
}[];
|
|
3186
|
-
}>, z.ZodObject<{
|
|
3187
|
-
type: z.ZodLiteral<"error">;
|
|
3188
|
-
code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
|
|
3189
|
-
message: z.ZodString;
|
|
3190
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
3191
|
-
}, "strip", z.ZodTypeAny, {
|
|
3192
|
-
type: "error";
|
|
3193
|
-
code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
|
|
3194
|
-
message: string;
|
|
3195
|
-
sessionId?: string | undefined;
|
|
3196
|
-
}, {
|
|
3197
|
-
type: "error";
|
|
3198
|
-
code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
|
|
3199
|
-
message: string;
|
|
3200
|
-
sessionId?: string | undefined;
|
|
3201
|
-
}>]>;
|
|
3202
|
-
type PtyClientMessage = z.infer<typeof PtyClientMessageSchema>;
|
|
3203
|
-
type PtyServerMessage = z.infer<typeof PtyServerMessageSchema>;
|
|
3204
|
-
type PtySessionInfo = z.infer<typeof PtySessionInfoSchema>;
|
|
3205
|
-
type PtyPlatform = z.infer<typeof PtyPlatformSchema>;
|
|
3206
|
-
//#endregion
|
|
3207
|
-
export { type AIToolOption, AI_TOOLS, type ApplyInstructions, ApplyInstructionsContextFilesSchema, ApplyInstructionsSchema, type ApplyTask, ApplyTaskSchema, type ArchiveMeta, type ArtifactInstructions, ArtifactInstructionsSchema, type ArtifactStatus, ArtifactStatusSchema, CODE_EDITOR_THEME_VALUES, type Change, type ChangeFile, ChangeFileSchema, type ChangeMeta, ChangeSchema, type ChangeStatus, ChangeStatusSchema, CliExecutor, type CliResult, type CliRunnerAttempt, type CliSniffResult, type CliStreamEvent, type CodeEditorTheme, CodeEditorThemeSchema, ConfigManager, DASHBOARD_METRIC_KEYS, DEFAULT_CONFIG, DEFAULT_GIT_DIFF_EAGER_LINE_BUDGET, DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, type DashboardCardAvailability, type DashboardConfig, DashboardConfigSchema, type DashboardGitCommitEntry, type DashboardGitDiffStats, type DashboardGitEntry, type DashboardGitSnapshot, type DashboardGitUncommittedEntry, type DashboardGitWorktree, type DashboardMetricKey, type DashboardOverview, type DashboardSummary, type DashboardTrendKind, type DashboardTrendMeta, type DashboardTrendPoint, type DashboardTriColorTrendPoint, type Delta, type DeltaOperation, DeltaOperationType, DeltaSchema, type DeltaSpec, DeltaSpecSchema, type DependencyInfo, DependencyInfoSchema, type ExportSnapshot, type FileChangeEvent, type FileChangeType, type GitConfig, GitConfigSchema, type GitEntriesPage, type GitEntryCursor, type GitEntryDetail, type GitEntryFileDiff, type GitEntryFilePatch, type GitEntryFileSource, type GitEntryFileSummary, type GitEntryFiles, type GitEntryPatch, type GitEntrySelector, type GitEntryShell, type GitFileChangeType, type GitPatchFile, type GitPatchState, type GitWorktreeHandoff, type GitWorktreeOverview, type GitWorktreeSummary, HOSTED_SHELL_PROTOCOL_VERSION, type HostedBackendHealthResponse, MarkdownParser, OFFICIAL_APP_BASE_URL, OPSX_AGENT_INVOCATION_MODE_VALUES, OpenSpecAdapter, type OpenSpecUIConfig, OpenSpecUIConfigSchema, type OpenSpecUIConfigUpdate, OpenSpecWatcher, type OpsxAgentInvocationMode, OpsxAgentInvocationModeSchema, type OpsxConfig, OpsxConfigSchema, OpsxKernel, type PathCallback, type ProjectRecoveryStatus, type ProjectResidencyEvictionReason, type ProjectResidencyStatus, ProjectWatcher, type ProjectWatcherReinitializeReason, type ProjectWatcherRuntimeStatus, type ProjectWatcherRuntimeStatusListener, PtyAttachMessageSchema, PtyBufferResponseSchema, type PtyClientMessage, PtyClientMessageSchema, PtyCloseMessageSchema, PtyCreateMessageSchema, PtyCreatedResponseSchema, PtyErrorCodeSchema, PtyErrorResponseSchema, PtyExitResponseSchema, PtyInputMessageSchema, PtyListMessageSchema, PtyListResponseSchema, PtyOutputResponseSchema, type PtyPlatform, PtyPlatformSchema, PtyResizeMessageSchema, type PtyServerMessage, PtyServerMessageSchema, type PtySessionInfo, PtyTitleResponseSchema, ReactiveContext, ReactiveState, type ReactiveStateOptions, type Requirement, RequirementSchema, type ResolvedCliRunner, type SchemaArtifact, SchemaArtifactSchema, type SchemaDetail, SchemaDetailSchema, type SchemaInfo, SchemaInfoSchema, type SchemaResolution, SchemaResolutionSchema, type Spec, type SpecMeta, SpecSchema, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TOOL_WORKFLOW_TO_SKILL_DIR, type Task, TaskSchema, type TemplateContentMap, type TemplatesMap, TemplatesSchema, type TerminalConfig, TerminalConfigSchema, type TerminalRendererEngine, TerminalRendererEngineSchema, type TerminalThemeId, type TerminalThemeMode, TerminalThemeModeSchema, TerminalThemeSchema, type ToolConfig, type ToolInitDelivery, type ToolInitState, type ToolInitStatus, type ToolWorkflowId, VIRTUAL_PROJECT_DIRNAME, type ValidationIssue, type ValidationResult, Validator, type WatchEvent, type WatchEventType, type WatcherRuntimeStatus, acquireWatcher, buildCliRunnerCandidates, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, clearCache, closeAllProjectWatchers, closeAllWatchers, contextStorage, createCleanCliEnv, createFileChangeObservable, getActiveWatcherCount, getAllToolIds, getAllTools, getAvailableToolIds, getAvailableTools, getCacheSize, getConfiguredTools, getDefaultCliCommand, getDefaultCliCommandString, getDetectedProjectTools, getProjectWatcher, getToolById, getToolInitStates, getWatchedProjectDir, getWatcherRuntimeStatus, initWatcherPool, isGlobPattern, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, isTerminalRendererEngine, isToolConfigured, isWatcherPoolInitialized, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, parseCliCommand, reactiveExists, reactiveReadDir, reactiveReadFile, reactiveStat, resolveHostedAppBaseUrl, sniffGlobalCli, subscribeWatcherRuntimeStatus, toOpsxDisplayPath };
|
|
2853
|
+
export { type AIToolOption, AI_TOOLS, type ApplyInstructions, ApplyInstructionsContextFilesSchema, ApplyInstructionsSchema, type ApplyTask, ApplyTaskSchema, type ArchiveMeta, type ArtifactInstructions, ArtifactInstructionsSchema, type ArtifactStatus, ArtifactStatusSchema, BUILTIN_TERMINAL_SPAWN_COMMANDS, CODE_EDITOR_THEME_VALUES, type Change, type ChangeFile, ChangeFileSchema, type ChangeMeta, ChangeSchema, type ChangeStatus, ChangeStatusSchema, CliExecutor, type CliResult, type CliRunnerAttempt, type CliSniffResult, type CliStreamEvent, type CodeEditorTheme, CodeEditorThemeSchema, ConfigManager, DASHBOARD_METRIC_KEYS, DEFAULT_CONFIG, DEFAULT_GIT_DIFF_EAGER_LINE_BUDGET, DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, type DashboardCardAvailability, type DashboardConfig, DashboardConfigSchema, type DashboardGitCommitEntry, type DashboardGitDiffStats, type DashboardGitEntry, type DashboardGitSnapshot, type DashboardGitUncommittedEntry, type DashboardGitWorktree, type DashboardMetricKey, type DashboardOverview, type DashboardSummary, type DashboardTrendKind, type DashboardTrendMeta, type DashboardTrendPoint, type DashboardTriColorTrendPoint, type Delta, type DeltaOperation, DeltaOperationType, DeltaSchema, type DeltaSpec, DeltaSpecSchema, type DependencyInfo, DependencyInfoSchema, type DocumentConsumerV1, type DocumentReadModeV1, type DocumentRefV1, type ExportSnapshot, type FileChangeEvent, type FileChangeType, type GitConfig, GitConfigSchema, type GitEntriesPage, type GitEntryCursor, type GitEntryDetail, type GitEntryFileDiff, type GitEntryFilePatch, type GitEntryFileSource, type GitEntryFileSummary, type GitEntryFiles, type GitEntryPatch, type GitEntrySelector, type GitEntryShell, type GitFileChangeType, type GitPatchFile, type GitPatchState, type GitWorktreeHandoff, type GitWorktreeOverview, type GitWorktreeSummary, HOSTED_SHELL_PROTOCOL_VERSION, type HookDiagnosticLevel, type HookDiagnosticV1, type HookLifecycleV1, type HostedBackendHealthResponse, MarkdownParser, OFFICIAL_APP_BASE_URL, OPENSPECUI_HOOKS_VERSION, OPSX_AGENT_INVOCATION_MODE_VALUES, type OnReadDocumentHookV1, type OnRunWorkflowHookV1, OpenSpecAdapter, type OpenSpecUIConfig, OpenSpecUIConfigSchema, type OpenSpecUIConfigUpdate, type OpenSpecUIHooksV1, OpenSpecWatcher, type OpsxAgentInvocationMode, OpsxAgentInvocationModeSchema, type OpsxConfig, OpsxConfigSchema, OpsxKernel, type PathCallback, type ProjectRecoveryStatus, type ProjectResidencyEvictionReason, type ProjectResidencyStatus, ProjectWatcher, type ProjectWatcherReinitializeReason, type ProjectWatcherRuntimeStatus, type ProjectWatcherRuntimeStatusListener, PtyAttachMessageSchema, PtyBufferResponseSchema, type PtyClientMessage, PtyClientMessageSchema, PtyCloseMessageSchema, PtyCreateMessageSchema, PtyCreatedResponseSchema, PtyErrorCodeSchema, PtyErrorResponseSchema, PtyExitResponseSchema, PtyInputMessageSchema, PtyListMessageSchema, PtyListResponseSchema, PtyOutputResponseSchema, type PtyPlatform, PtyPlatformSchema, PtyResizeMessageSchema, type PtyServerMessage, PtyServerMessageSchema, type PtySessionInfo, PtyTitleResponseSchema, ReactiveContext, ReactiveState, type ReactiveStateOptions, type ReadDocumentContextV1, type ReadDocumentResultV1, type Requirement, RequirementSchema, type ResolvedCliRunner, type RunWorkflowContextV1, type RunWorkflowInputV1, type RunWorkflowResultV1, type SchemaArtifact, SchemaArtifactSchema, type SchemaDetail, SchemaDetailSchema, type SchemaInfo, SchemaInfoSchema, type SchemaResolution, SchemaResolutionSchema, type Spec, type SpecMeta, SpecSchema, TERMINAL_COMMAND_FIELD_TYPE_VALUES, TERMINAL_SHELL_QUOTE_STYLE_VALUES, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TOOL_WORKFLOW_TO_SKILL_DIR, type Task, TaskSchema, type TemplateContentMap, type TemplatesMap, TemplatesSchema, type TerminalCommandArgument, type TerminalCommandField, TerminalCommandFieldSchema, type TerminalCommandFieldValue, type TerminalCommandFieldValues, type TerminalConfig, TerminalConfigSchema, type TerminalInvocationSettings, TerminalInvocationSettingsSchema, type TerminalRendererEngine, TerminalRendererEngineSchema, type TerminalShellDefaults, type TerminalShellProfile, TerminalShellProfileSchema, type TerminalShellQuoteStyle, TerminalShellQuoteStyleSchema, type TerminalSpawnCommand, TerminalSpawnCommandSchema, type TerminalThemeId, type TerminalThemeMode, TerminalThemeModeSchema, TerminalThemeSchema, type ToolConfig, type ToolInitDelivery, type ToolInitState, type ToolInitStatus, type ToolWorkflowId, VIRTUAL_PROJECT_DIRNAME, type ValidationIssue, type ValidationResult, Validator, type WatchEvent, type WatchEventType, type WatcherRuntimeStatus, type WorkflowActionV1, type WorkflowInvocationModeResolutionV1, type WorkflowRequestedModeV1, acquireWatcher, buildCliRunnerCandidates, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, clearCache, closeAllProjectWatchers, closeAllWatchers, contextStorage, createCleanCliEnv, createFileChangeObservable, getActiveWatcherCount, getAllToolIds, getAllTools, getAvailableToolIds, getAvailableTools, getCacheSize, getConfiguredTools, getDefaultCliCommand, getDefaultCliCommandString, getDetectedProjectTools, getProjectWatcher, getTerminalCommandDefaultValues, getToolById, getToolInitStates, getWatchedProjectDir, getWatcherRuntimeStatus, initWatcherPool, isGlobPattern, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, isTerminalRendererEngine, isToolConfigured, isWatcherPoolInitialized, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, parseCliCommand, quoteTerminalShellArg, reactiveExists, reactiveReadDir, reactiveReadFile, reactiveStat, renderTerminalCommandArgs, renderTerminalSpawnCommandLine, resolveHostedAppBaseUrl, resolveTerminalShellDefaults, sniffGlobalCli, subscribeWatcherRuntimeStatus, toOpsxDisplayPath };
|