@openspecui/core 5.0.0 → 6.0.0-beta.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.
Files changed (116) hide show
  1. package/dist/cli-projection-DxnVGm2B.d.mts +789 -0
  2. package/dist/cli-projection-vO3-FJg5.mjs +161 -0
  3. package/dist/cli-projection.d.mts +6 -0
  4. package/dist/cli-projection.mjs +4 -0
  5. package/dist/command-result-fkH3Ekdz.d.mts +8477 -0
  6. package/dist/common-D8YUK9dA.mjs +57 -0
  7. package/dist/dashboard-summary-transport-CQ4is5_e.d.mts +66227 -0
  8. package/dist/dashboard-summary-transport-D2VBAIxg.mjs +175 -0
  9. package/dist/dashboard-summary-transport.d.mts +25 -0
  10. package/dist/dashboard-summary-transport.mjs +6 -0
  11. package/dist/{document-translation-D4YK18I3.mjs → document-translation-CeJFGMoy.mjs} +1 -1
  12. package/dist/{document-translation-7R8cf8_B.d.mts → document-translation-D50BnvVh.d.mts} +2 -2
  13. package/dist/document-translation.d.mts +1 -1
  14. package/dist/document-translation.mjs +2 -2
  15. package/dist/{hosted-app-CzMRiEgY.mjs → hosted-app-BPU4OR41.mjs} +31 -9
  16. package/dist/hosted-app.d.mts +25 -2
  17. package/dist/hosted-app.mjs +7 -2
  18. package/dist/hosted-contract-CcRnb51e.mjs +234 -0
  19. package/dist/hosted-contract.d.mts +25 -0
  20. package/dist/hosted-contract.mjs +7 -0
  21. package/dist/index.d.mts +25 -2686
  22. package/dist/index.mjs +2114 -1098
  23. package/dist/{local-download-profiles-caa4PECd.d.mts → local-download-profiles-BL_rtlVM.d.mts} +1 -1
  24. package/dist/local-download-profiles.d.mts +2 -2
  25. package/dist/local-download-profiles.mjs +1 -1
  26. package/dist/markdown-facts.d.mts +1 -1
  27. package/dist/markdown-facts.mjs +1 -1
  28. package/dist/{markdown-reading-CgXuXp6s.d.mts → markdown-reading-LUdqfbxH.d.mts} +1 -1
  29. package/dist/{markdown-reading-DdcB7run.mjs → markdown-reading-mG4OAbDO.mjs} +1 -1
  30. package/dist/markdown-reading.d.mts +2 -2
  31. package/dist/markdown-reading.mjs +2 -2
  32. package/dist/{notifications-AKAcmeKT.mjs → notifications-C2bxAzX_.mjs} +13 -2
  33. package/dist/{notifications-DZeOl4HV.d.mts → notifications-CgJlLgLO.d.mts} +51 -25
  34. package/dist/notifications.d.mts +2 -2
  35. package/dist/notifications.mjs +3 -3
  36. package/dist/{openspec-annotations-CeXd0JIZ.d.mts → openspec-annotations-C58Aoi-V.d.mts} +2 -2
  37. package/dist/{openspec-annotations-D_6Pz7k4.mjs → openspec-annotations-DCfqBMal.mjs} +2 -2
  38. package/dist/openspec-annotations.d.mts +3 -3
  39. package/dist/openspec-annotations.mjs +3 -3
  40. package/dist/openspec-compat.d.mts +18 -11
  41. package/dist/openspec-compat.mjs +20 -13
  42. package/dist/{openspec-projection-B8s-KWQ7.mjs → openspec-projection-DCgToo0Q.mjs} +2 -2
  43. package/dist/{openspec-projection-B0ch1rZw.d.mts → openspec-projection-RohNZI4p.d.mts} +3 -3
  44. package/dist/openspec-projection.d.mts +5 -5
  45. package/dist/openspec-projection.mjs +4 -4
  46. package/dist/opsx-display-path.d.mts +1 -1
  47. package/dist/opsx-display-path.mjs +1 -1
  48. package/dist/{opsx-entity-DZyl-uhQ.d.mts → opsx-entity-D7kDQsze.d.mts} +2 -2
  49. package/dist/opsx-entity.d.mts +7 -3
  50. package/dist/opsx-entity.mjs +1 -1
  51. package/dist/{opsx-schema-detail-CS0tWa9v.d.mts → opsx-schema-detail-BxDXEwDY.d.mts} +2 -2
  52. package/dist/opsx-schema-detail.d.mts +8 -4
  53. package/dist/opsx-schema-detail.mjs +1 -1
  54. package/dist/opsx-types-BJ8AjhrS.d.mts +3642 -0
  55. package/dist/opsx-workflows-BvnJqjfL.d.mts +36 -0
  56. package/dist/opsx-workflows-Ccc6U7IR.mjs +89 -0
  57. package/dist/opsx-workflows.d.mts +2 -0
  58. package/dist/opsx-workflows.mjs +3 -0
  59. package/dist/planning-cli-projection-DIRxeq2H.mjs +421 -0
  60. package/dist/planning-cli-projection.d.mts +25 -0
  61. package/dist/planning-cli-projection.mjs +9 -0
  62. package/dist/schemas-BFroDdOC.mjs +287 -0
  63. package/dist/{schemas-D01aQnV4.d.mts → schemas-DS-JqAJ2.d.mts} +524 -78
  64. package/dist/{sounds-kgDn4x8v.d.mts → sounds-qhRgCy0F.d.mts} +12 -12
  65. package/dist/sounds.d.mts +1 -1
  66. package/dist/sounds.mjs +1 -1
  67. package/dist/spec-catalog-ZGuiZ4CE.mjs +901 -0
  68. package/dist/spec-catalog.d.mts +25 -0
  69. package/dist/spec-catalog.mjs +6 -0
  70. package/dist/store-mutation-protocol-5tfs-RmD.d.mts +727 -0
  71. package/dist/store-mutation-protocol-CSwD-xPO.mjs +63 -0
  72. package/dist/store-mutation-protocol.d.mts +2 -0
  73. package/dist/store-mutation-protocol.mjs +4 -0
  74. package/dist/{store-types-Cu41QSww.mjs → store-types-DlX1REBg.mjs} +39 -18
  75. package/dist/{store-types-BiE-Ey--.d.mts → store-types-b554wAQJ.d.mts} +22 -12
  76. package/dist/store-types.d.mts +6 -2
  77. package/dist/store-types.mjs +2 -2
  78. package/dist/task-progress-B_IWVXjA.mjs +216 -0
  79. package/dist/task-progress.d.mts +7 -4
  80. package/dist/task-progress.mjs +3 -3
  81. package/dist/{terminal-audio-TBoU2jSK.mjs → terminal-audio-d6KItUeJ.mjs} +1 -1
  82. package/dist/{terminal-audio-CsuGTNV-.d.mts → terminal-audio-tXDm_EDe.d.mts} +1 -1
  83. package/dist/terminal-audio.d.mts +2 -2
  84. package/dist/terminal-audio.mjs +2 -2
  85. package/dist/terminal-control.d.mts +2 -2
  86. package/dist/terminal-control.mjs +1 -1
  87. package/dist/{terminal-invocation-BlFwKpIc.d.mts → terminal-invocation-BOvxThym.d.mts} +239 -120
  88. package/dist/terminal-invocation.d.mts +1 -1
  89. package/dist/terminal-invocation.mjs +1 -1
  90. package/dist/terminal-theme.d.mts +1 -1
  91. package/dist/terminal-theme.mjs +1 -1
  92. package/dist/translation-language-pair.d.mts +1 -1
  93. package/dist/translation-language-pair.mjs +1 -1
  94. package/dist/{translator-BErXgQxx.d.mts → translator-NKv1wo3o.d.mts} +86 -86
  95. package/dist/translator.d.mts +1 -1
  96. package/dist/translator.mjs +1 -1
  97. package/package.json +55 -7
  98. package/dist/hosted-app-DHs94gIR.d.mts +0 -43
  99. package/dist/opsx-types-Dnb06uff.d.mts +0 -402
  100. package/dist/task-progress-C1TGMbIR.d.mts +0 -24
  101. package/dist/task-progress-DhHYHnTv.mjs +0 -70
  102. /package/dist/{local-download-profiles-kpNEcdF_.mjs → local-download-profiles-odzOdf96.mjs} +0 -0
  103. /package/dist/{markdown-facts-BBCTe_qq.mjs → markdown-facts-BUqLvFRf.mjs} +0 -0
  104. /package/dist/{markdown-facts-Dk7FKaaT.d.mts → markdown-facts-CCw3QdbM.d.mts} +0 -0
  105. /package/dist/{opsx-display-path-CUCOrHcM.mjs → opsx-display-path-D13XV20v.mjs} +0 -0
  106. /package/dist/{opsx-display-path-cIMKa1aw.d.mts → opsx-display-path-RXS5JTbV.d.mts} +0 -0
  107. /package/dist/{opsx-entity-c7m5CbgU.mjs → opsx-entity-Cn_Zu1J3.mjs} +0 -0
  108. /package/dist/{opsx-schema-detail-BH82X6aU.mjs → opsx-schema-detail-Beis4Ba2.mjs} +0 -0
  109. /package/dist/{sounds-CB3ubSnj.mjs → sounds-NXwveBqq.mjs} +0 -0
  110. /package/dist/{terminal-control-VpTuh17B.mjs → terminal-control-BSAlOTs8.mjs} +0 -0
  111. /package/dist/{terminal-invocation-C2MCNBhK.mjs → terminal-invocation-0p-j2eSP.mjs} +0 -0
  112. /package/dist/{terminal-theme-cevliJw2.mjs → terminal-theme-B8iRttTR.mjs} +0 -0
  113. /package/dist/{terminal-theme-hvQjTsNh.d.mts → terminal-theme-m3MSGJ7U.d.mts} +0 -0
  114. /package/dist/{translation-language-pair-DZ_WNp_M.mjs → translation-language-pair-Bbhk-LAC.mjs} +0 -0
  115. /package/dist/{translation-language-pair-DmaOfHqD.d.mts → translation-language-pair-C18GPATW.d.mts} +0 -0
  116. /package/dist/{translator-DbUT1Ayn.mjs → translator-Cjtv4tya.mjs} +0 -0
@@ -1,7 +1,9 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/pty-protocol.d.ts
4
+
4
5
  declare const PtyPlatformSchema: z.ZodEnum<["windows", "macos", "common"]>;
6
+ declare const TerminalCwdTargetSchema: z.ZodEnum<["launch-project", "planning-root"]>;
5
7
  declare const PtySessionInfoSchema: z.ZodObject<{
6
8
  id: z.ZodString;
7
9
  title: z.ZodString;
@@ -12,23 +14,32 @@ declare const PtySessionInfoSchema: z.ZodObject<{
12
14
  exitCode: z.ZodNullable<z.ZodNumber>;
13
15
  closeTip: z.ZodOptional<z.ZodString>;
14
16
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
17
+ cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>;
18
+ initialCwd: z.ZodString;
19
+ rootGeneration: z.ZodNullable<z.ZodString>;
15
20
  }, "strip", z.ZodTypeAny, {
16
- title: string;
21
+ exitCode: number | null;
17
22
  id: string;
18
23
  command: string;
24
+ title: string;
19
25
  args: string[];
26
+ cwdTarget: "launch-project" | "planning-root";
20
27
  platform: "windows" | "macos" | "common";
21
- exitCode: number | null;
28
+ initialCwd: string;
29
+ rootGeneration: string | null;
22
30
  isExited: boolean;
23
31
  closeTip?: string | undefined;
24
32
  closeCallbackUrl?: string | Record<string, string> | undefined;
25
33
  }, {
26
- title: string;
34
+ exitCode: number | null;
27
35
  id: string;
28
36
  command: string;
37
+ title: string;
29
38
  args: string[];
39
+ cwdTarget: "launch-project" | "planning-root";
30
40
  platform: "windows" | "macos" | "common";
31
- exitCode: number | null;
41
+ initialCwd: string;
42
+ rootGeneration: string | null;
32
43
  isExited: boolean;
33
44
  closeTip?: string | undefined;
34
45
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -40,24 +51,31 @@ declare const PtyCreateMessageSchema: z.ZodObject<{
40
51
  rows: z.ZodOptional<z.ZodNumber>;
41
52
  command: z.ZodOptional<z.ZodString>;
42
53
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
54
+ cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>;
55
+ /** Opaque planning-root generation captured by a Server workflow preparation. */
56
+ expectedRootGeneration: z.ZodOptional<z.ZodString>;
43
57
  closeTip: z.ZodOptional<z.ZodString>;
44
58
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
45
59
  }, "strip", z.ZodTypeAny, {
46
60
  type: "create";
47
61
  requestId: string;
62
+ cwdTarget: "launch-project" | "planning-root";
48
63
  command?: string | undefined;
49
64
  args?: string[] | undefined;
50
65
  cols?: number | undefined;
51
66
  rows?: number | undefined;
67
+ expectedRootGeneration?: string | undefined;
52
68
  closeTip?: string | undefined;
53
69
  closeCallbackUrl?: string | Record<string, string> | undefined;
54
70
  }, {
55
71
  type: "create";
56
72
  requestId: string;
73
+ cwdTarget: "launch-project" | "planning-root";
57
74
  command?: string | undefined;
58
75
  args?: string[] | undefined;
59
76
  cols?: number | undefined;
60
77
  rows?: number | undefined;
78
+ expectedRootGeneration?: string | undefined;
61
79
  closeTip?: string | undefined;
62
80
  closeCallbackUrl?: string | Record<string, string> | undefined;
63
81
  }>;
@@ -67,12 +85,12 @@ declare const PtyInputMessageSchema: z.ZodObject<{
67
85
  data: z.ZodString;
68
86
  }, "strip", z.ZodTypeAny, {
69
87
  type: "input";
70
- sessionId: string;
71
88
  data: string;
89
+ sessionId: string;
72
90
  }, {
73
91
  type: "input";
74
- sessionId: string;
75
92
  data: string;
93
+ sessionId: string;
76
94
  }>;
77
95
  declare const PtyResizeMessageSchema: z.ZodObject<{
78
96
  type: z.ZodLiteral<"resize">;
@@ -130,24 +148,31 @@ declare const PtyClientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
130
148
  rows: z.ZodOptional<z.ZodNumber>;
131
149
  command: z.ZodOptional<z.ZodString>;
132
150
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
151
+ cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>;
152
+ /** Opaque planning-root generation captured by a Server workflow preparation. */
153
+ expectedRootGeneration: z.ZodOptional<z.ZodString>;
133
154
  closeTip: z.ZodOptional<z.ZodString>;
134
155
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
135
156
  }, "strip", z.ZodTypeAny, {
136
157
  type: "create";
137
158
  requestId: string;
159
+ cwdTarget: "launch-project" | "planning-root";
138
160
  command?: string | undefined;
139
161
  args?: string[] | undefined;
140
162
  cols?: number | undefined;
141
163
  rows?: number | undefined;
164
+ expectedRootGeneration?: string | undefined;
142
165
  closeTip?: string | undefined;
143
166
  closeCallbackUrl?: string | Record<string, string> | undefined;
144
167
  }, {
145
168
  type: "create";
146
169
  requestId: string;
170
+ cwdTarget: "launch-project" | "planning-root";
147
171
  command?: string | undefined;
148
172
  args?: string[] | undefined;
149
173
  cols?: number | undefined;
150
174
  rows?: number | undefined;
175
+ expectedRootGeneration?: string | undefined;
151
176
  closeTip?: string | undefined;
152
177
  closeCallbackUrl?: string | Record<string, string> | undefined;
153
178
  }>, z.ZodObject<{
@@ -156,12 +181,30 @@ declare const PtyClientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
156
181
  data: z.ZodString;
157
182
  }, "strip", z.ZodTypeAny, {
158
183
  type: "input";
159
- sessionId: string;
160
184
  data: string;
185
+ sessionId: string;
161
186
  }, {
162
187
  type: "input";
188
+ data: string;
163
189
  sessionId: string;
190
+ }>, z.ZodObject<{
191
+ type: z.ZodLiteral<"workflow-input">;
192
+ requestId: z.ZodString;
193
+ sessionId: z.ZodString;
194
+ expectedRootGeneration: z.ZodString;
195
+ data: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ type: "workflow-input";
198
+ data: string;
199
+ requestId: string;
200
+ sessionId: string;
201
+ expectedRootGeneration: string;
202
+ }, {
203
+ type: "workflow-input";
164
204
  data: string;
205
+ requestId: string;
206
+ sessionId: string;
207
+ expectedRootGeneration: string;
165
208
  }>, z.ZodObject<{
166
209
  type: z.ZodLiteral<"resize">;
167
210
  sessionId: z.ZodString;
@@ -213,16 +256,25 @@ declare const PtyCreatedResponseSchema: z.ZodObject<{
213
256
  requestId: z.ZodString;
214
257
  sessionId: z.ZodString;
215
258
  platform: z.ZodEnum<["windows", "macos", "common"]>;
259
+ cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>;
260
+ initialCwd: z.ZodString;
261
+ rootGeneration: z.ZodNullable<z.ZodString>;
216
262
  }, "strip", z.ZodTypeAny, {
217
263
  type: "created";
218
- sessionId: string;
219
264
  requestId: string;
265
+ sessionId: string;
266
+ cwdTarget: "launch-project" | "planning-root";
220
267
  platform: "windows" | "macos" | "common";
268
+ initialCwd: string;
269
+ rootGeneration: string | null;
221
270
  }, {
222
271
  type: "created";
223
- sessionId: string;
224
272
  requestId: string;
273
+ sessionId: string;
274
+ cwdTarget: "launch-project" | "planning-root";
225
275
  platform: "windows" | "macos" | "common";
276
+ initialCwd: string;
277
+ rootGeneration: string | null;
226
278
  }>;
227
279
  declare const PtyOutputResponseSchema: z.ZodObject<{
228
280
  type: z.ZodLiteral<"output">;
@@ -230,25 +282,25 @@ declare const PtyOutputResponseSchema: z.ZodObject<{
230
282
  data: z.ZodString;
231
283
  }, "strip", z.ZodTypeAny, {
232
284
  type: "output";
233
- sessionId: string;
234
285
  data: string;
286
+ sessionId: string;
235
287
  }, {
236
288
  type: "output";
237
- sessionId: string;
238
289
  data: string;
290
+ sessionId: string;
239
291
  }>;
240
292
  declare const PtyExitResponseSchema: z.ZodObject<{
241
293
  type: z.ZodLiteral<"exit">;
242
294
  sessionId: z.ZodString;
243
295
  exitCode: z.ZodNumber;
244
296
  }, "strip", z.ZodTypeAny, {
297
+ exitCode: number;
245
298
  type: "exit";
246
299
  sessionId: string;
247
- exitCode: number;
248
300
  }, {
301
+ exitCode: number;
249
302
  type: "exit";
250
303
  sessionId: string;
251
- exitCode: number;
252
304
  }>;
253
305
  declare const PtyTitleResponseSchema: z.ZodObject<{
254
306
  type: z.ZodLiteral<"title">;
@@ -295,12 +347,12 @@ declare const PtyBufferResponseSchema: z.ZodObject<{
295
347
  data: z.ZodString;
296
348
  }, "strip", z.ZodTypeAny, {
297
349
  type: "buffer";
298
- sessionId: string;
299
350
  data: string;
351
+ sessionId: string;
300
352
  }, {
301
353
  type: "buffer";
302
- sessionId: string;
303
354
  data: string;
355
+ sessionId: string;
304
356
  }>;
305
357
  declare const PtyListResponseSchema: z.ZodObject<{
306
358
  type: z.ZodLiteral<"list">;
@@ -314,23 +366,32 @@ declare const PtyListResponseSchema: z.ZodObject<{
314
366
  exitCode: z.ZodNullable<z.ZodNumber>;
315
367
  closeTip: z.ZodOptional<z.ZodString>;
316
368
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
369
+ cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>;
370
+ initialCwd: z.ZodString;
371
+ rootGeneration: z.ZodNullable<z.ZodString>;
317
372
  }, "strip", z.ZodTypeAny, {
318
- title: string;
373
+ exitCode: number | null;
319
374
  id: string;
320
375
  command: string;
376
+ title: string;
321
377
  args: string[];
378
+ cwdTarget: "launch-project" | "planning-root";
322
379
  platform: "windows" | "macos" | "common";
323
- exitCode: number | null;
380
+ initialCwd: string;
381
+ rootGeneration: string | null;
324
382
  isExited: boolean;
325
383
  closeTip?: string | undefined;
326
384
  closeCallbackUrl?: string | Record<string, string> | undefined;
327
385
  }, {
328
- title: string;
386
+ exitCode: number | null;
329
387
  id: string;
330
388
  command: string;
389
+ title: string;
331
390
  args: string[];
391
+ cwdTarget: "launch-project" | "planning-root";
332
392
  platform: "windows" | "macos" | "common";
333
- exitCode: number | null;
393
+ initialCwd: string;
394
+ rootGeneration: string | null;
334
395
  isExited: boolean;
335
396
  closeTip?: string | undefined;
336
397
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -338,12 +399,15 @@ declare const PtyListResponseSchema: z.ZodObject<{
338
399
  }, "strip", z.ZodTypeAny, {
339
400
  type: "list";
340
401
  sessions: {
341
- title: string;
402
+ exitCode: number | null;
342
403
  id: string;
343
404
  command: string;
405
+ title: string;
344
406
  args: string[];
407
+ cwdTarget: "launch-project" | "planning-root";
345
408
  platform: "windows" | "macos" | "common";
346
- exitCode: number | null;
409
+ initialCwd: string;
410
+ rootGeneration: string | null;
347
411
  isExited: boolean;
348
412
  closeTip?: string | undefined;
349
413
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -351,30 +415,33 @@ declare const PtyListResponseSchema: z.ZodObject<{
351
415
  }, {
352
416
  type: "list";
353
417
  sessions: {
354
- title: string;
418
+ exitCode: number | null;
355
419
  id: string;
356
420
  command: string;
421
+ title: string;
357
422
  args: string[];
423
+ cwdTarget: "launch-project" | "planning-root";
358
424
  platform: "windows" | "macos" | "common";
359
- exitCode: number | null;
425
+ initialCwd: string;
426
+ rootGeneration: string | null;
360
427
  isExited: boolean;
361
428
  closeTip?: string | undefined;
362
429
  closeCallbackUrl?: string | Record<string, string> | undefined;
363
430
  }[];
364
431
  }>;
365
- declare const PtyErrorCodeSchema: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
432
+ declare const PtyErrorCodeSchema: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED", "UNAUTHORIZED"]>;
366
433
  declare const PtyErrorResponseSchema: z.ZodObject<{
367
434
  type: z.ZodLiteral<"error">;
368
- code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
435
+ code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED", "UNAUTHORIZED"]>;
369
436
  message: z.ZodString;
370
437
  sessionId: z.ZodOptional<z.ZodString>;
371
438
  }, "strip", z.ZodTypeAny, {
372
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
439
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED" | "UNAUTHORIZED";
373
440
  message: string;
374
441
  type: "error";
375
442
  sessionId?: string | undefined;
376
443
  }, {
377
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
444
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED" | "UNAUTHORIZED";
378
445
  message: string;
379
446
  type: "error";
380
447
  sessionId?: string | undefined;
@@ -384,40 +451,76 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
384
451
  requestId: z.ZodString;
385
452
  sessionId: z.ZodString;
386
453
  platform: z.ZodEnum<["windows", "macos", "common"]>;
454
+ cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>;
455
+ initialCwd: z.ZodString;
456
+ rootGeneration: z.ZodNullable<z.ZodString>;
387
457
  }, "strip", z.ZodTypeAny, {
388
458
  type: "created";
389
- sessionId: string;
390
459
  requestId: string;
460
+ sessionId: string;
461
+ cwdTarget: "launch-project" | "planning-root";
391
462
  platform: "windows" | "macos" | "common";
463
+ initialCwd: string;
464
+ rootGeneration: string | null;
392
465
  }, {
393
466
  type: "created";
394
- sessionId: string;
395
467
  requestId: string;
468
+ sessionId: string;
469
+ cwdTarget: "launch-project" | "planning-root";
396
470
  platform: "windows" | "macos" | "common";
471
+ initialCwd: string;
472
+ rootGeneration: string | null;
473
+ }>, z.ZodObject<{
474
+ type: z.ZodLiteral<"workflow-input-accepted">;
475
+ requestId: z.ZodString;
476
+ sessionId: z.ZodString;
477
+ }, "strip", z.ZodTypeAny, {
478
+ type: "workflow-input-accepted";
479
+ requestId: string;
480
+ sessionId: string;
481
+ }, {
482
+ type: "workflow-input-accepted";
483
+ requestId: string;
484
+ sessionId: string;
485
+ }>, z.ZodObject<{
486
+ type: z.ZodLiteral<"workflow-input-rejected">;
487
+ requestId: z.ZodString;
488
+ sessionId: z.ZodString;
489
+ message: z.ZodString;
490
+ }, "strip", z.ZodTypeAny, {
491
+ message: string;
492
+ type: "workflow-input-rejected";
493
+ requestId: string;
494
+ sessionId: string;
495
+ }, {
496
+ message: string;
497
+ type: "workflow-input-rejected";
498
+ requestId: string;
499
+ sessionId: string;
397
500
  }>, z.ZodObject<{
398
501
  type: z.ZodLiteral<"output">;
399
502
  sessionId: z.ZodString;
400
503
  data: z.ZodString;
401
504
  }, "strip", z.ZodTypeAny, {
402
505
  type: "output";
403
- sessionId: string;
404
506
  data: string;
507
+ sessionId: string;
405
508
  }, {
406
509
  type: "output";
407
- sessionId: string;
408
510
  data: string;
511
+ sessionId: string;
409
512
  }>, z.ZodObject<{
410
513
  type: z.ZodLiteral<"exit">;
411
514
  sessionId: z.ZodString;
412
515
  exitCode: z.ZodNumber;
413
516
  }, "strip", z.ZodTypeAny, {
517
+ exitCode: number;
414
518
  type: "exit";
415
519
  sessionId: string;
416
- exitCode: number;
417
520
  }, {
521
+ exitCode: number;
418
522
  type: "exit";
419
523
  sessionId: string;
420
- exitCode: number;
421
524
  }>, z.ZodObject<{
422
525
  type: z.ZodLiteral<"title">;
423
526
  sessionId: z.ZodString;
@@ -462,13 +565,13 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
462
565
  }, "strip", z.ZodTypeAny, {
463
566
  value: number | null;
464
567
  type: "progress";
568
+ state: "set" | "error" | "warning" | "indeterminate" | "clear";
465
569
  sessionId: string;
466
- state: "clear" | "set" | "warning" | "error" | "indeterminate";
467
570
  }, {
468
571
  value: number | null;
469
572
  type: "progress";
573
+ state: "set" | "error" | "warning" | "indeterminate" | "clear";
470
574
  sessionId: string;
471
- state: "clear" | "set" | "warning" | "error" | "indeterminate";
472
575
  }>, z.ZodObject<{
473
576
  type: z.ZodLiteral<"prompt-state">;
474
577
  sessionId: z.ZodString;
@@ -476,13 +579,13 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
476
579
  exitCode: z.ZodOptional<z.ZodNumber>;
477
580
  }, "strip", z.ZodTypeAny, {
478
581
  type: "prompt-state";
479
- sessionId: string;
480
582
  state: "prompt-start" | "prompt-end" | "command-start" | "command-output" | "command-end";
583
+ sessionId: string;
481
584
  exitCode?: number | undefined;
482
585
  }, {
483
586
  type: "prompt-state";
484
- sessionId: string;
485
587
  state: "prompt-start" | "prompt-end" | "command-start" | "command-output" | "command-end";
588
+ sessionId: string;
486
589
  exitCode?: number | undefined;
487
590
  }>, z.ZodObject<{
488
591
  type: z.ZodLiteral<"bell">;
@@ -502,12 +605,12 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
502
605
  data: z.ZodString;
503
606
  }, "strip", z.ZodTypeAny, {
504
607
  type: "buffer";
505
- sessionId: string;
506
608
  data: string;
609
+ sessionId: string;
507
610
  }, {
508
611
  type: "buffer";
509
- sessionId: string;
510
612
  data: string;
613
+ sessionId: string;
511
614
  }>, z.ZodObject<{
512
615
  type: z.ZodLiteral<"list">;
513
616
  sessions: z.ZodArray<z.ZodObject<{
@@ -520,23 +623,32 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
520
623
  exitCode: z.ZodNullable<z.ZodNumber>;
521
624
  closeTip: z.ZodOptional<z.ZodString>;
522
625
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
626
+ cwdTarget: z.ZodEnum<["launch-project", "planning-root"]>;
627
+ initialCwd: z.ZodString;
628
+ rootGeneration: z.ZodNullable<z.ZodString>;
523
629
  }, "strip", z.ZodTypeAny, {
524
- title: string;
630
+ exitCode: number | null;
525
631
  id: string;
526
632
  command: string;
633
+ title: string;
527
634
  args: string[];
635
+ cwdTarget: "launch-project" | "planning-root";
528
636
  platform: "windows" | "macos" | "common";
529
- exitCode: number | null;
637
+ initialCwd: string;
638
+ rootGeneration: string | null;
530
639
  isExited: boolean;
531
640
  closeTip?: string | undefined;
532
641
  closeCallbackUrl?: string | Record<string, string> | undefined;
533
642
  }, {
534
- title: string;
643
+ exitCode: number | null;
535
644
  id: string;
536
645
  command: string;
646
+ title: string;
537
647
  args: string[];
648
+ cwdTarget: "launch-project" | "planning-root";
538
649
  platform: "windows" | "macos" | "common";
539
- exitCode: number | null;
650
+ initialCwd: string;
651
+ rootGeneration: string | null;
540
652
  isExited: boolean;
541
653
  closeTip?: string | undefined;
542
654
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -544,12 +656,15 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
544
656
  }, "strip", z.ZodTypeAny, {
545
657
  type: "list";
546
658
  sessions: {
547
- title: string;
659
+ exitCode: number | null;
548
660
  id: string;
549
661
  command: string;
662
+ title: string;
550
663
  args: string[];
664
+ cwdTarget: "launch-project" | "planning-root";
551
665
  platform: "windows" | "macos" | "common";
552
- exitCode: number | null;
666
+ initialCwd: string;
667
+ rootGeneration: string | null;
553
668
  isExited: boolean;
554
669
  closeTip?: string | undefined;
555
670
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -557,28 +672,31 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
557
672
  }, {
558
673
  type: "list";
559
674
  sessions: {
560
- title: string;
675
+ exitCode: number | null;
561
676
  id: string;
562
677
  command: string;
678
+ title: string;
563
679
  args: string[];
680
+ cwdTarget: "launch-project" | "planning-root";
564
681
  platform: "windows" | "macos" | "common";
565
- exitCode: number | null;
682
+ initialCwd: string;
683
+ rootGeneration: string | null;
566
684
  isExited: boolean;
567
685
  closeTip?: string | undefined;
568
686
  closeCallbackUrl?: string | Record<string, string> | undefined;
569
687
  }[];
570
688
  }>, z.ZodObject<{
571
689
  type: z.ZodLiteral<"error">;
572
- code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
690
+ code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED", "UNAUTHORIZED"]>;
573
691
  message: z.ZodString;
574
692
  sessionId: z.ZodOptional<z.ZodString>;
575
693
  }, "strip", z.ZodTypeAny, {
576
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
694
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED" | "UNAUTHORIZED";
577
695
  message: string;
578
696
  type: "error";
579
697
  sessionId?: string | undefined;
580
698
  }, {
581
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
699
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED" | "UNAUTHORIZED";
582
700
  message: string;
583
701
  type: "error";
584
702
  sessionId?: string | undefined;
@@ -587,6 +705,7 @@ type PtyClientMessage = z.infer<typeof PtyClientMessageSchema>;
587
705
  type PtyServerMessage = z.infer<typeof PtyServerMessageSchema>;
588
706
  type PtySessionInfo = z.infer<typeof PtySessionInfoSchema>;
589
707
  type PtyPlatform = z.infer<typeof PtyPlatformSchema>;
708
+ type TerminalCwdTarget = z.infer<typeof TerminalCwdTargetSchema>;
590
709
  //#endregion
591
710
  //#region src/terminal-invocation.d.ts
592
711
  interface TerminalShellEnv {
@@ -605,16 +724,16 @@ declare const TerminalShellProfileSchema: z.ZodObject<{
605
724
  source: z.ZodDefault<z.ZodEnum<["builtin", "custom"]>>;
606
725
  quoteStyle: z.ZodDefault<z.ZodEnum<["posix", "cmd", "powershell"]>>;
607
726
  }, "strip", z.ZodTypeAny, {
608
- label: string;
609
- source: "custom" | "builtin";
610
727
  id: string;
728
+ source: "custom" | "builtin";
611
729
  command: string;
730
+ label: string;
612
731
  args: string[];
613
732
  quoteStyle: "posix" | "cmd" | "powershell";
614
733
  }, {
615
- label: string;
616
734
  id: string;
617
735
  command: string;
736
+ label: string;
618
737
  source?: "custom" | "builtin" | undefined;
619
738
  args?: string[] | undefined;
620
739
  quoteStyle?: "posix" | "cmd" | "powershell" | undefined;
@@ -633,20 +752,20 @@ declare const TerminalCommandFieldSchema: z.ZodObject<{
633
752
  }, "strip", z.ZodTypeAny, {
634
753
  options: string[];
635
754
  type: "boolean" | "text" | "textarea" | "select";
636
- label: string;
637
755
  id: string;
638
756
  required: boolean;
757
+ label: string;
639
758
  advanced: boolean;
640
759
  description?: string | undefined;
641
760
  placeholder?: string | undefined;
642
761
  defaultValue?: string | boolean | undefined;
643
762
  }, {
644
763
  type: "boolean" | "text" | "textarea" | "select";
645
- label: string;
646
764
  id: string;
765
+ label: string;
647
766
  options?: string[] | undefined;
648
- required?: boolean | undefined;
649
767
  description?: string | undefined;
768
+ required?: boolean | undefined;
650
769
  placeholder?: string | undefined;
651
770
  defaultValue?: string | boolean | undefined;
652
771
  advanced?: boolean | undefined;
@@ -698,14 +817,14 @@ declare const TerminalCommandJsonSchemaPropertySchema: z.ZodObject<{
698
817
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
699
818
  }, "strip", z.ZodTypeAny, {
700
819
  type: "string" | "boolean";
701
- title?: string | undefined;
702
820
  description?: string | undefined;
821
+ title?: string | undefined;
703
822
  default?: string | boolean | undefined;
704
823
  enum?: string[] | undefined;
705
824
  }, {
706
825
  type?: "string" | "boolean" | undefined;
707
- title?: string | undefined;
708
826
  description?: string | undefined;
827
+ title?: string | undefined;
709
828
  default?: string | boolean | undefined;
710
829
  enum?: string[] | undefined;
711
830
  }>;
@@ -720,14 +839,14 @@ declare const TerminalCommandJsonSchemaSchema: z.ZodObject<{
720
839
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
721
840
  }, "strip", z.ZodTypeAny, {
722
841
  type: "string" | "boolean";
723
- title?: string | undefined;
724
842
  description?: string | undefined;
843
+ title?: string | undefined;
725
844
  default?: string | boolean | undefined;
726
845
  enum?: string[] | undefined;
727
846
  }, {
728
847
  type?: "string" | "boolean" | undefined;
729
- title?: string | undefined;
730
848
  description?: string | undefined;
849
+ title?: string | undefined;
731
850
  default?: string | boolean | undefined;
732
851
  enum?: string[] | undefined;
733
852
  }>>>;
@@ -737,8 +856,8 @@ declare const TerminalCommandJsonSchemaSchema: z.ZodObject<{
737
856
  required: string[];
738
857
  properties: Record<string, {
739
858
  type: "string" | "boolean";
740
- title?: string | undefined;
741
859
  description?: string | undefined;
860
+ title?: string | undefined;
742
861
  default?: string | boolean | undefined;
743
862
  enum?: string[] | undefined;
744
863
  }>;
@@ -747,8 +866,8 @@ declare const TerminalCommandJsonSchemaSchema: z.ZodObject<{
747
866
  required?: string[] | undefined;
748
867
  properties?: Record<string, {
749
868
  type?: "string" | "boolean" | undefined;
750
- title?: string | undefined;
751
869
  description?: string | undefined;
870
+ title?: string | undefined;
752
871
  default?: string | boolean | undefined;
753
872
  enum?: string[] | undefined;
754
873
  }> | undefined;
@@ -765,14 +884,14 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
765
884
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
766
885
  }, "strip", z.ZodTypeAny, {
767
886
  type: "string" | "boolean";
768
- title?: string | undefined;
769
887
  description?: string | undefined;
888
+ title?: string | undefined;
770
889
  default?: string | boolean | undefined;
771
890
  enum?: string[] | undefined;
772
891
  }, {
773
892
  type?: "string" | "boolean" | undefined;
774
- title?: string | undefined;
775
893
  description?: string | undefined;
894
+ title?: string | undefined;
776
895
  default?: string | boolean | undefined;
777
896
  enum?: string[] | undefined;
778
897
  }>>>;
@@ -782,8 +901,8 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
782
901
  required: string[];
783
902
  properties: Record<string, {
784
903
  type: "string" | "boolean";
785
- title?: string | undefined;
786
904
  description?: string | undefined;
905
+ title?: string | undefined;
787
906
  default?: string | boolean | undefined;
788
907
  enum?: string[] | undefined;
789
908
  }>;
@@ -792,8 +911,8 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
792
911
  required?: string[] | undefined;
793
912
  properties?: Record<string, {
794
913
  type?: "string" | "boolean" | undefined;
795
- title?: string | undefined;
796
914
  description?: string | undefined;
915
+ title?: string | undefined;
797
916
  default?: string | boolean | undefined;
798
917
  enum?: string[] | undefined;
799
918
  }> | undefined;
@@ -805,8 +924,8 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
805
924
  required: string[];
806
925
  properties: Record<string, {
807
926
  type: "string" | "boolean";
808
- title?: string | undefined;
809
927
  description?: string | undefined;
928
+ title?: string | undefined;
810
929
  default?: string | boolean | undefined;
811
930
  enum?: string[] | undefined;
812
931
  }>;
@@ -818,8 +937,8 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
818
937
  required?: string[] | undefined;
819
938
  properties?: Record<string, {
820
939
  type?: "string" | "boolean" | undefined;
821
- title?: string | undefined;
822
940
  description?: string | undefined;
941
+ title?: string | undefined;
823
942
  default?: string | boolean | undefined;
824
943
  enum?: string[] | undefined;
825
944
  }> | undefined;
@@ -1000,20 +1119,20 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1000
1119
  }, "strip", z.ZodTypeAny, {
1001
1120
  options: string[];
1002
1121
  type: "boolean" | "text" | "textarea" | "select";
1003
- label: string;
1004
1122
  id: string;
1005
1123
  required: boolean;
1124
+ label: string;
1006
1125
  advanced: boolean;
1007
1126
  description?: string | undefined;
1008
1127
  placeholder?: string | undefined;
1009
1128
  defaultValue?: string | boolean | undefined;
1010
1129
  }, {
1011
1130
  type: "boolean" | "text" | "textarea" | "select";
1012
- label: string;
1013
1131
  id: string;
1132
+ label: string;
1014
1133
  options?: string[] | undefined;
1015
- required?: boolean | undefined;
1016
1134
  description?: string | undefined;
1135
+ required?: boolean | undefined;
1017
1136
  placeholder?: string | undefined;
1018
1137
  defaultValue?: string | boolean | undefined;
1019
1138
  advanced?: boolean | undefined;
@@ -1029,14 +1148,14 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1029
1148
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1030
1149
  }, "strip", z.ZodTypeAny, {
1031
1150
  type: "string" | "boolean";
1032
- title?: string | undefined;
1033
1151
  description?: string | undefined;
1152
+ title?: string | undefined;
1034
1153
  default?: string | boolean | undefined;
1035
1154
  enum?: string[] | undefined;
1036
1155
  }, {
1037
1156
  type?: "string" | "boolean" | undefined;
1038
- title?: string | undefined;
1039
1157
  description?: string | undefined;
1158
+ title?: string | undefined;
1040
1159
  default?: string | boolean | undefined;
1041
1160
  enum?: string[] | undefined;
1042
1161
  }>>>;
@@ -1046,8 +1165,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1046
1165
  required: string[];
1047
1166
  properties: Record<string, {
1048
1167
  type: "string" | "boolean";
1049
- title?: string | undefined;
1050
1168
  description?: string | undefined;
1169
+ title?: string | undefined;
1051
1170
  default?: string | boolean | undefined;
1052
1171
  enum?: string[] | undefined;
1053
1172
  }>;
@@ -1056,8 +1175,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1056
1175
  required?: string[] | undefined;
1057
1176
  properties?: Record<string, {
1058
1177
  type?: "string" | "boolean" | undefined;
1059
- title?: string | undefined;
1060
1178
  description?: string | undefined;
1179
+ title?: string | undefined;
1061
1180
  default?: string | boolean | undefined;
1062
1181
  enum?: string[] | undefined;
1063
1182
  }> | undefined;
@@ -1069,8 +1188,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1069
1188
  required: string[];
1070
1189
  properties: Record<string, {
1071
1190
  type: "string" | "boolean";
1072
- title?: string | undefined;
1073
1191
  description?: string | undefined;
1192
+ title?: string | undefined;
1074
1193
  default?: string | boolean | undefined;
1075
1194
  enum?: string[] | undefined;
1076
1195
  }>;
@@ -1082,8 +1201,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1082
1201
  required?: string[] | undefined;
1083
1202
  properties?: Record<string, {
1084
1203
  type?: "string" | "boolean" | undefined;
1085
- title?: string | undefined;
1086
1204
  description?: string | undefined;
1205
+ title?: string | undefined;
1087
1206
  default?: string | boolean | undefined;
1088
1207
  enum?: string[] | undefined;
1089
1208
  }> | undefined;
@@ -1172,10 +1291,10 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1172
1291
  shellProfileId: z.ZodOptional<z.ZodString>;
1173
1292
  source: z.ZodDefault<z.ZodEnum<["builtin", "custom"]>>;
1174
1293
  }, "strip", z.ZodTypeAny, {
1175
- label: string;
1176
- source: "custom" | "builtin";
1177
1294
  id: string;
1295
+ source: "custom" | "builtin";
1178
1296
  command: string;
1297
+ label: string;
1179
1298
  args: ({
1180
1299
  value: string;
1181
1300
  kind: "literal";
@@ -1192,9 +1311,9 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1192
1311
  fields: {
1193
1312
  options: string[];
1194
1313
  type: "boolean" | "text" | "textarea" | "select";
1195
- label: string;
1196
1314
  id: string;
1197
1315
  required: boolean;
1316
+ label: string;
1198
1317
  advanced: boolean;
1199
1318
  description?: string | undefined;
1200
1319
  placeholder?: string | undefined;
@@ -1207,8 +1326,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1207
1326
  required: string[];
1208
1327
  properties: Record<string, {
1209
1328
  type: "string" | "boolean";
1210
- title?: string | undefined;
1211
1329
  description?: string | undefined;
1330
+ title?: string | undefined;
1212
1331
  default?: string | boolean | undefined;
1213
1332
  enum?: string[] | undefined;
1214
1333
  }>;
@@ -1236,10 +1355,11 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1236
1355
  } | undefined;
1237
1356
  shellProfileId?: string | undefined;
1238
1357
  }, {
1239
- label: string;
1240
1358
  id: string;
1241
1359
  command: string;
1360
+ label: string;
1242
1361
  source?: "custom" | "builtin" | undefined;
1362
+ description?: string | undefined;
1243
1363
  args?: ({
1244
1364
  value: string;
1245
1365
  kind: "literal";
@@ -1253,14 +1373,13 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1253
1373
  fieldId: string;
1254
1374
  flag: string;
1255
1375
  })[] | undefined;
1256
- description?: string | undefined;
1257
1376
  fields?: {
1258
1377
  type: "boolean" | "text" | "textarea" | "select";
1259
- label: string;
1260
1378
  id: string;
1379
+ label: string;
1261
1380
  options?: string[] | undefined;
1262
- required?: boolean | undefined;
1263
1381
  description?: string | undefined;
1382
+ required?: boolean | undefined;
1264
1383
  placeholder?: string | undefined;
1265
1384
  defaultValue?: string | boolean | undefined;
1266
1385
  advanced?: boolean | undefined;
@@ -1271,8 +1390,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1271
1390
  required?: string[] | undefined;
1272
1391
  properties?: Record<string, {
1273
1392
  type?: "string" | "boolean" | undefined;
1274
- title?: string | undefined;
1275
1393
  description?: string | undefined;
1394
+ title?: string | undefined;
1276
1395
  default?: string | boolean | undefined;
1277
1396
  enum?: string[] | undefined;
1278
1397
  }> | undefined;
@@ -1311,16 +1430,16 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1311
1430
  source: z.ZodDefault<z.ZodEnum<["builtin", "custom"]>>;
1312
1431
  quoteStyle: z.ZodDefault<z.ZodEnum<["posix", "cmd", "powershell"]>>;
1313
1432
  }, "strip", z.ZodTypeAny, {
1314
- label: string;
1315
- source: "custom" | "builtin";
1316
1433
  id: string;
1434
+ source: "custom" | "builtin";
1317
1435
  command: string;
1436
+ label: string;
1318
1437
  args: string[];
1319
1438
  quoteStyle: "posix" | "cmd" | "powershell";
1320
1439
  }, {
1321
- label: string;
1322
1440
  id: string;
1323
1441
  command: string;
1442
+ label: string;
1324
1443
  source?: "custom" | "builtin" | undefined;
1325
1444
  args?: string[] | undefined;
1326
1445
  quoteStyle?: "posix" | "cmd" | "powershell" | undefined;
@@ -1380,20 +1499,20 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1380
1499
  }, "strip", z.ZodTypeAny, {
1381
1500
  options: string[];
1382
1501
  type: "boolean" | "text" | "textarea" | "select";
1383
- label: string;
1384
1502
  id: string;
1385
1503
  required: boolean;
1504
+ label: string;
1386
1505
  advanced: boolean;
1387
1506
  description?: string | undefined;
1388
1507
  placeholder?: string | undefined;
1389
1508
  defaultValue?: string | boolean | undefined;
1390
1509
  }, {
1391
1510
  type: "boolean" | "text" | "textarea" | "select";
1392
- label: string;
1393
1511
  id: string;
1512
+ label: string;
1394
1513
  options?: string[] | undefined;
1395
- required?: boolean | undefined;
1396
1514
  description?: string | undefined;
1515
+ required?: boolean | undefined;
1397
1516
  placeholder?: string | undefined;
1398
1517
  defaultValue?: string | boolean | undefined;
1399
1518
  advanced?: boolean | undefined;
@@ -1409,14 +1528,14 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1409
1528
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1410
1529
  }, "strip", z.ZodTypeAny, {
1411
1530
  type: "string" | "boolean";
1412
- title?: string | undefined;
1413
1531
  description?: string | undefined;
1532
+ title?: string | undefined;
1414
1533
  default?: string | boolean | undefined;
1415
1534
  enum?: string[] | undefined;
1416
1535
  }, {
1417
1536
  type?: "string" | "boolean" | undefined;
1418
- title?: string | undefined;
1419
1537
  description?: string | undefined;
1538
+ title?: string | undefined;
1420
1539
  default?: string | boolean | undefined;
1421
1540
  enum?: string[] | undefined;
1422
1541
  }>>>;
@@ -1426,8 +1545,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1426
1545
  required: string[];
1427
1546
  properties: Record<string, {
1428
1547
  type: "string" | "boolean";
1429
- title?: string | undefined;
1430
1548
  description?: string | undefined;
1549
+ title?: string | undefined;
1431
1550
  default?: string | boolean | undefined;
1432
1551
  enum?: string[] | undefined;
1433
1552
  }>;
@@ -1436,8 +1555,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1436
1555
  required?: string[] | undefined;
1437
1556
  properties?: Record<string, {
1438
1557
  type?: "string" | "boolean" | undefined;
1439
- title?: string | undefined;
1440
1558
  description?: string | undefined;
1559
+ title?: string | undefined;
1441
1560
  default?: string | boolean | undefined;
1442
1561
  enum?: string[] | undefined;
1443
1562
  }> | undefined;
@@ -1449,8 +1568,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1449
1568
  required: string[];
1450
1569
  properties: Record<string, {
1451
1570
  type: "string" | "boolean";
1452
- title?: string | undefined;
1453
1571
  description?: string | undefined;
1572
+ title?: string | undefined;
1454
1573
  default?: string | boolean | undefined;
1455
1574
  enum?: string[] | undefined;
1456
1575
  }>;
@@ -1462,8 +1581,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1462
1581
  required?: string[] | undefined;
1463
1582
  properties?: Record<string, {
1464
1583
  type?: "string" | "boolean" | undefined;
1465
- title?: string | undefined;
1466
1584
  description?: string | undefined;
1585
+ title?: string | undefined;
1467
1586
  default?: string | boolean | undefined;
1468
1587
  enum?: string[] | undefined;
1469
1588
  }> | undefined;
@@ -1552,10 +1671,10 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1552
1671
  shellProfileId: z.ZodOptional<z.ZodString>;
1553
1672
  source: z.ZodDefault<z.ZodEnum<["builtin", "custom"]>>;
1554
1673
  }, "strip", z.ZodTypeAny, {
1555
- label: string;
1556
- source: "custom" | "builtin";
1557
1674
  id: string;
1675
+ source: "custom" | "builtin";
1558
1676
  command: string;
1677
+ label: string;
1559
1678
  args: ({
1560
1679
  value: string;
1561
1680
  kind: "literal";
@@ -1572,9 +1691,9 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1572
1691
  fields: {
1573
1692
  options: string[];
1574
1693
  type: "boolean" | "text" | "textarea" | "select";
1575
- label: string;
1576
1694
  id: string;
1577
1695
  required: boolean;
1696
+ label: string;
1578
1697
  advanced: boolean;
1579
1698
  description?: string | undefined;
1580
1699
  placeholder?: string | undefined;
@@ -1587,8 +1706,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1587
1706
  required: string[];
1588
1707
  properties: Record<string, {
1589
1708
  type: "string" | "boolean";
1590
- title?: string | undefined;
1591
1709
  description?: string | undefined;
1710
+ title?: string | undefined;
1592
1711
  default?: string | boolean | undefined;
1593
1712
  enum?: string[] | undefined;
1594
1713
  }>;
@@ -1616,10 +1735,11 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1616
1735
  } | undefined;
1617
1736
  shellProfileId?: string | undefined;
1618
1737
  }, {
1619
- label: string;
1620
1738
  id: string;
1621
1739
  command: string;
1740
+ label: string;
1622
1741
  source?: "custom" | "builtin" | undefined;
1742
+ description?: string | undefined;
1623
1743
  args?: ({
1624
1744
  value: string;
1625
1745
  kind: "literal";
@@ -1633,14 +1753,13 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1633
1753
  fieldId: string;
1634
1754
  flag: string;
1635
1755
  })[] | undefined;
1636
- description?: string | undefined;
1637
1756
  fields?: {
1638
1757
  type: "boolean" | "text" | "textarea" | "select";
1639
- label: string;
1640
1758
  id: string;
1759
+ label: string;
1641
1760
  options?: string[] | undefined;
1642
- required?: boolean | undefined;
1643
1761
  description?: string | undefined;
1762
+ required?: boolean | undefined;
1644
1763
  placeholder?: string | undefined;
1645
1764
  defaultValue?: string | boolean | undefined;
1646
1765
  advanced?: boolean | undefined;
@@ -1651,8 +1770,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1651
1770
  required?: string[] | undefined;
1652
1771
  properties?: Record<string, {
1653
1772
  type?: "string" | "boolean" | undefined;
1654
- title?: string | undefined;
1655
1773
  description?: string | undefined;
1774
+ title?: string | undefined;
1656
1775
  default?: string | boolean | undefined;
1657
1776
  enum?: string[] | undefined;
1658
1777
  }> | undefined;
@@ -1682,18 +1801,18 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1682
1801
  }>, "many">>;
1683
1802
  }, "strip", z.ZodTypeAny, {
1684
1803
  customShellProfiles: {
1685
- label: string;
1686
- source: "custom" | "builtin";
1687
1804
  id: string;
1805
+ source: "custom" | "builtin";
1688
1806
  command: string;
1807
+ label: string;
1689
1808
  args: string[];
1690
1809
  quoteStyle: "posix" | "cmd" | "powershell";
1691
1810
  }[];
1692
1811
  customSpawnCommands: {
1693
- label: string;
1694
- source: "custom" | "builtin";
1695
1812
  id: string;
1813
+ source: "custom" | "builtin";
1696
1814
  command: string;
1815
+ label: string;
1697
1816
  args: ({
1698
1817
  value: string;
1699
1818
  kind: "literal";
@@ -1710,9 +1829,9 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1710
1829
  fields: {
1711
1830
  options: string[];
1712
1831
  type: "boolean" | "text" | "textarea" | "select";
1713
- label: string;
1714
1832
  id: string;
1715
1833
  required: boolean;
1834
+ label: string;
1716
1835
  advanced: boolean;
1717
1836
  description?: string | undefined;
1718
1837
  placeholder?: string | undefined;
@@ -1725,8 +1844,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1725
1844
  required: string[];
1726
1845
  properties: Record<string, {
1727
1846
  type: "string" | "boolean";
1728
- title?: string | undefined;
1729
1847
  description?: string | undefined;
1848
+ title?: string | undefined;
1730
1849
  default?: string | boolean | undefined;
1731
1850
  enum?: string[] | undefined;
1732
1851
  }>;
@@ -1758,18 +1877,19 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1758
1877
  }, {
1759
1878
  defaultShellProfileId?: string | undefined;
1760
1879
  customShellProfiles?: {
1761
- label: string;
1762
1880
  id: string;
1763
1881
  command: string;
1882
+ label: string;
1764
1883
  source?: "custom" | "builtin" | undefined;
1765
1884
  args?: string[] | undefined;
1766
1885
  quoteStyle?: "posix" | "cmd" | "powershell" | undefined;
1767
1886
  }[] | undefined;
1768
1887
  customSpawnCommands?: {
1769
- label: string;
1770
1888
  id: string;
1771
1889
  command: string;
1890
+ label: string;
1772
1891
  source?: "custom" | "builtin" | undefined;
1892
+ description?: string | undefined;
1773
1893
  args?: ({
1774
1894
  value: string;
1775
1895
  kind: "literal";
@@ -1783,14 +1903,13 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1783
1903
  fieldId: string;
1784
1904
  flag: string;
1785
1905
  })[] | undefined;
1786
- description?: string | undefined;
1787
1906
  fields?: {
1788
1907
  type: "boolean" | "text" | "textarea" | "select";
1789
- label: string;
1790
1908
  id: string;
1909
+ label: string;
1791
1910
  options?: string[] | undefined;
1792
- required?: boolean | undefined;
1793
1911
  description?: string | undefined;
1912
+ required?: boolean | undefined;
1794
1913
  placeholder?: string | undefined;
1795
1914
  defaultValue?: string | boolean | undefined;
1796
1915
  advanced?: boolean | undefined;
@@ -1801,8 +1920,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1801
1920
  required?: string[] | undefined;
1802
1921
  properties?: Record<string, {
1803
1922
  type?: "string" | "boolean" | undefined;
1804
- title?: string | undefined;
1805
1923
  description?: string | undefined;
1924
+ title?: string | undefined;
1806
1925
  default?: string | boolean | undefined;
1807
1926
  enum?: string[] | undefined;
1808
1927
  }> | undefined;
@@ -1866,4 +1985,4 @@ declare function renderTerminalSpawnCommandLine(options: {
1866
1985
  quoteStyle: TerminalShellQuoteStyle;
1867
1986
  }): string;
1868
1987
  //#endregion
1869
- export { PtyServerMessageSchema as $, renderTerminalSpawnCommand as A, PtyCreatedResponseSchema as B, TerminalSpawnCommand as C, getTerminalCommandParameters as D, getTerminalCommandDefaultValues as E, PtyBufferResponseSchema as F, PtyListMessageSchema as G, PtyErrorResponseSchema as H, PtyClientMessage as I, PtyPlatform as J, PtyListResponseSchema as K, PtyClientMessageSchema as L, resolveTerminalShellDefaults as M, PtyAttachMessageSchema as N, quoteTerminalShellArg as O, PtyBellResponseSchema as P, PtyServerMessage as Q, PtyCloseMessageSchema as R, TerminalShellQuoteStyleSchema as S, fieldsToTerminalCommandParameters as T, PtyExitResponseSchema as U, PtyErrorCodeSchema as V, PtyInputMessageSchema as W, PtyProcessTitleResponseSchema as X, PtyPlatformSchema as Y, PtyResizeMessageSchema as Z, TerminalShellDefaults as _, TerminalCommandBuilder as a, TerminalShellProfileSchema as b, TerminalCommandFieldSchema as c, TerminalCommandJsonSchema as d, PtySessionInfo as et, TerminalCommandJsonSchemaProperty as f, TerminalInvocationSettingsSchema as g, TerminalInvocationSettings as h, TerminalCommandArgument as i, renderTerminalSpawnCommandLine as j, renderTerminalCommandArgs as k, TerminalCommandFieldValue as l, TerminalCommandRenderResult as m, TERMINAL_COMMAND_FIELD_TYPE_VALUES as n, TerminalCommandBuilderPart as o, TerminalCommandParameters as p, PtyOutputResponseSchema as q, TERMINAL_SHELL_QUOTE_STYLE_VALUES as r, TerminalCommandField as s, BUILTIN_TERMINAL_SPAWN_COMMANDS as t, PtyTitleResponseSchema as tt, TerminalCommandFieldValues as u, TerminalShellEnv as v, TerminalSpawnCommandSchema as w, TerminalShellQuoteStyle as x, TerminalShellProfile as y, PtyCreateMessageSchema as z };
1988
+ export { PtyServerMessageSchema as $, renderTerminalSpawnCommand as A, PtyCreatedResponseSchema as B, TerminalSpawnCommand as C, getTerminalCommandParameters as D, getTerminalCommandDefaultValues as E, PtyBufferResponseSchema as F, PtyListMessageSchema as G, PtyErrorResponseSchema as H, PtyClientMessage as I, PtyPlatform as J, PtyListResponseSchema as K, PtyClientMessageSchema as L, resolveTerminalShellDefaults as M, PtyAttachMessageSchema as N, quoteTerminalShellArg as O, PtyBellResponseSchema as P, PtyServerMessage as Q, PtyCloseMessageSchema as R, TerminalShellQuoteStyleSchema as S, fieldsToTerminalCommandParameters as T, PtyExitResponseSchema as U, PtyErrorCodeSchema as V, PtyInputMessageSchema as W, PtyProcessTitleResponseSchema as X, PtyPlatformSchema as Y, PtyResizeMessageSchema as Z, TerminalShellDefaults as _, TerminalCommandBuilder as a, TerminalShellProfileSchema as b, TerminalCommandFieldSchema as c, TerminalCommandJsonSchema as d, PtySessionInfo as et, TerminalCommandJsonSchemaProperty as f, TerminalInvocationSettingsSchema as g, TerminalInvocationSettings as h, TerminalCommandArgument as i, renderTerminalSpawnCommandLine as j, renderTerminalCommandArgs as k, TerminalCommandFieldValue as l, TerminalCommandRenderResult as m, TERMINAL_COMMAND_FIELD_TYPE_VALUES as n, TerminalCwdTarget as nt, TerminalCommandBuilderPart as o, TerminalCommandParameters as p, PtyOutputResponseSchema as q, TERMINAL_SHELL_QUOTE_STYLE_VALUES as r, TerminalCwdTargetSchema as rt, TerminalCommandField as s, BUILTIN_TERMINAL_SPAWN_COMMANDS as t, PtyTitleResponseSchema as tt, TerminalCommandFieldValues as u, TerminalShellEnv as v, TerminalSpawnCommandSchema as w, TerminalShellQuoteStyle as x, TerminalShellProfile as y, PtyCreateMessageSchema as z };