@openspecui/core 4.0.2 → 4.1.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 (86) hide show
  1. package/dist/{document-translation-BAhXJaIl.d.mts → document-translation-CIPGsZD8.d.mts} +100 -100
  2. package/dist/{document-translation-C3SE2CBJ.mjs → document-translation-D4YK18I3.mjs} +1 -1
  3. package/dist/document-translation.d.mts +1 -1
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/hosted-app.d.mts +1 -1
  6. package/dist/hosted-app.mjs +1 -1
  7. package/dist/index.d.mts +226 -211
  8. package/dist/index.mjs +46 -20
  9. package/dist/{local-download-profiles-C6VVRttC.d.mts → local-download-profiles-B30HrSO2.d.mts} +1 -1
  10. package/dist/local-download-profiles.d.mts +2 -2
  11. package/dist/local-download-profiles.mjs +1 -1
  12. package/dist/markdown-facts.d.mts +1 -1
  13. package/dist/markdown-facts.mjs +1 -1
  14. package/dist/{markdown-reading-BnoDddEA.d.mts → markdown-reading-CgXuXp6s.d.mts} +1 -1
  15. package/dist/{markdown-reading-4d3w3xgw.mjs → markdown-reading-DdcB7run.mjs} +1 -1
  16. package/dist/markdown-reading.d.mts +2 -2
  17. package/dist/markdown-reading.mjs +2 -2
  18. package/dist/{notifications-3ZJ6BBzT.mjs → notifications-AKAcmeKT.mjs} +2 -2
  19. package/dist/{notifications-DcBVI03P.d.mts → notifications-HYH-lklF.d.mts} +16 -16
  20. package/dist/notifications.d.mts +2 -2
  21. package/dist/notifications.mjs +3 -3
  22. package/dist/{openspec-annotations-DDKeedpf.d.mts → openspec-annotations-CeXd0JIZ.d.mts} +2 -2
  23. package/dist/{openspec-annotations-DZDb0Qox.mjs → openspec-annotations-D_6Pz7k4.mjs} +2 -2
  24. package/dist/openspec-annotations.d.mts +3 -3
  25. package/dist/openspec-annotations.mjs +3 -3
  26. package/dist/openspec-compat.d.mts +8 -7
  27. package/dist/openspec-compat.mjs +23 -8
  28. package/dist/{openspec-projection-DJ_mSfmq.mjs → openspec-projection-B8s-KWQ7.mjs} +2 -2
  29. package/dist/{openspec-projection-i2pkZ4hQ.d.mts → openspec-projection-BphzrwYP.d.mts} +3 -3
  30. package/dist/openspec-projection.d.mts +5 -5
  31. package/dist/openspec-projection.mjs +4 -4
  32. package/dist/opsx-display-path.d.mts +1 -1
  33. package/dist/opsx-display-path.mjs +1 -1
  34. package/dist/{opsx-entity-DNzyALN-.d.mts → opsx-entity-CFUCqev8.d.mts} +2 -2
  35. package/dist/opsx-entity.d.mts +3 -3
  36. package/dist/opsx-entity.mjs +1 -1
  37. package/dist/{opsx-schema-detail-BZpl9jiW.d.mts → opsx-schema-detail-DXKXqMQa.d.mts} +2 -2
  38. package/dist/opsx-schema-detail.d.mts +4 -4
  39. package/dist/opsx-schema-detail.mjs +1 -1
  40. package/dist/{opsx-types-Ccrsvb3l.d.mts → opsx-types-2rgsQHsB.d.mts} +20 -20
  41. package/dist/{schemas-C01jZKK1.d.mts → schemas-CNKCVc7m.d.mts} +18 -18
  42. package/dist/{sounds-BhmJDMmO.d.mts → sounds-J6z7o4mt.d.mts} +5 -5
  43. package/dist/sounds.d.mts +1 -1
  44. package/dist/sounds.mjs +1 -1
  45. package/dist/store-types-BiE-Ey--.d.mts +1092 -0
  46. package/dist/store-types-Cu41QSww.mjs +109 -0
  47. package/dist/store-types.d.mts +2 -0
  48. package/dist/store-types.mjs +3 -0
  49. package/dist/{task-progress-C2YCGSyC.d.mts → task-progress-BHn4bCoD.d.mts} +2 -2
  50. package/dist/{task-progress-RLYFNkpL.mjs → task-progress-DhHYHnTv.mjs} +1 -1
  51. package/dist/task-progress.d.mts +3 -3
  52. package/dist/task-progress.mjs +2 -2
  53. package/dist/{terminal-audio-BDbVowLy.d.mts → terminal-audio-BeUXlQgj.d.mts} +2 -2
  54. package/dist/{terminal-audio-DhslppvD.mjs → terminal-audio-TBoU2jSK.mjs} +1 -1
  55. package/dist/terminal-audio.d.mts +2 -2
  56. package/dist/terminal-audio.mjs +2 -2
  57. package/dist/terminal-control.d.mts +2 -2
  58. package/dist/terminal-control.mjs +1 -1
  59. package/dist/{terminal-invocation-Be3YlFOI.d.mts → terminal-invocation-ClVh0HeM.d.mts} +22 -22
  60. package/dist/terminal-invocation.d.mts +1 -1
  61. package/dist/terminal-invocation.mjs +1 -1
  62. package/dist/terminal-theme.d.mts +1 -1
  63. package/dist/terminal-theme.mjs +1 -1
  64. package/dist/translation-language-pair.d.mts +1 -1
  65. package/dist/translation-language-pair.mjs +1 -1
  66. package/dist/{translator-CZeKoeLW.d.mts → translator-D6t_LEVN.d.mts} +77 -77
  67. package/dist/translator.d.mts +1 -1
  68. package/dist/translator.mjs +1 -1
  69. package/package.json +9 -3
  70. /package/dist/{hosted-app-DfEh4rR3.mjs → hosted-app-CzMRiEgY.mjs} +0 -0
  71. /package/dist/{hosted-app-BZvbSDOk.d.mts → hosted-app-DHs94gIR.d.mts} +0 -0
  72. /package/dist/{local-download-profiles-C8ZHpk2F.mjs → local-download-profiles-kpNEcdF_.mjs} +0 -0
  73. /package/dist/{markdown-facts-ByM-tdm5.mjs → markdown-facts-BBCTe_qq.mjs} +0 -0
  74. /package/dist/{markdown-facts-DQe77Xbc.d.mts → markdown-facts-Dk7FKaaT.d.mts} +0 -0
  75. /package/dist/{opsx-display-path-DGjayJTF.mjs → opsx-display-path-CUCOrHcM.mjs} +0 -0
  76. /package/dist/{opsx-display-path-dEtDIqJD.d.mts → opsx-display-path-cIMKa1aw.d.mts} +0 -0
  77. /package/dist/{opsx-entity-DrY7pgMe.mjs → opsx-entity-c7m5CbgU.mjs} +0 -0
  78. /package/dist/{opsx-schema-detail-B-4bLoZS.mjs → opsx-schema-detail-BH82X6aU.mjs} +0 -0
  79. /package/dist/{sounds-CuSsy7X-.mjs → sounds-CB3ubSnj.mjs} +0 -0
  80. /package/dist/{terminal-control-D5dCna6A.mjs → terminal-control-VpTuh17B.mjs} +0 -0
  81. /package/dist/{terminal-invocation-BSrS_0zu.mjs → terminal-invocation-C2MCNBhK.mjs} +0 -0
  82. /package/dist/{terminal-theme-TogWGicr.mjs → terminal-theme-cevliJw2.mjs} +0 -0
  83. /package/dist/{terminal-theme-DO6B6-o0.d.mts → terminal-theme-hvQjTsNh.d.mts} +0 -0
  84. /package/dist/{translation-language-pair-D2B_LoN1.mjs → translation-language-pair-DZ_WNp_M.mjs} +0 -0
  85. /package/dist/{translation-language-pair-C1tou_ks.d.mts → translation-language-pair-DmaOfHqD.d.mts} +0 -0
  86. /package/dist/{translator-bwybQ07U.mjs → translator-DbUT1Ayn.mjs} +0 -0
@@ -0,0 +1,109 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/store-types.ts
4
+ /**
5
+ * Beta feature fault-tolerance model (manager directive).
6
+ *
7
+ * 对于 beta 功能,openspecui 不负责兼容性。但这也意味着所有功能在后台需要有较强的容错能力
8
+ * (没有这个功能也要能捕捉到错误),然后前端显示这个错误。这个错误一般是两种:
9
+ *
10
+ * 1. 数据不兼容 — 当前的 openspecui 不支持/不兼容 openspec-cli 提供的数据。通过 zod 对 CLI
11
+ * 输出做宽松验证,所以除非 openspec-cli 破坏性更新提供了不兼容的数据结构,我们才会异常。
12
+ * → 前端处理:客观显示错误,并提供错误的版本来源信息(版本信息非常重要)。
13
+ *
14
+ * 2. 指令用法变了 — openspec-cli 直接修改了指令的用法,属于 openspec 上了比较大的破坏性更新。
15
+ * → 前端处理:直接隐藏入口(对弱 beta 入口而言)。
16
+ *
17
+ * 不论哪种情况,前端都不能因此崩溃。
18
+ *
19
+ * Stores (OpenSpec 1.5.0, very early beta) 是这个范式的首个落地:它是个很弱的入口——低版本
20
+ * 没有、当前版本不稳定,因此异常一只需客观显示版本信息,异常二直接隐藏入口即可。
21
+ *
22
+ * Spec: openspec-cli-integration › "Beta Feature Fault Tolerance".
23
+ */
24
+ const StoreDiagnosticSchema = z.object({
25
+ severity: z.string().optional(),
26
+ code: z.string().optional(),
27
+ message: z.string().optional(),
28
+ target: z.string().optional(),
29
+ fix: z.string().optional()
30
+ }).passthrough();
31
+ const StoreListEntrySchema = z.object({
32
+ id: z.string(),
33
+ root: z.string()
34
+ }).passthrough();
35
+ const StoreListResultSchema = z.object({
36
+ stores: z.array(StoreListEntrySchema).default([]),
37
+ status: z.array(StoreDiagnosticSchema).optional()
38
+ }).passthrough();
39
+ const StoreOpenSpecRootSchema = z.object({
40
+ present: z.boolean().nullable().optional(),
41
+ healthy: z.boolean().nullable().optional()
42
+ }).passthrough();
43
+ const StoreMetadataSchema = z.object({
44
+ present: z.boolean().nullable().optional(),
45
+ valid: z.boolean().nullable().optional(),
46
+ id: z.string().nullable().optional(),
47
+ remote: z.string().nullable().optional()
48
+ }).passthrough();
49
+ const StoreGitFactsSchema = z.object({
50
+ is_repository: z.boolean().nullable().optional(),
51
+ has_commits: z.boolean().nullable().optional(),
52
+ has_uncommitted_changes: z.boolean().nullable().optional(),
53
+ has_remote: z.boolean().nullable().optional(),
54
+ origin_url: z.string().nullable().optional()
55
+ }).passthrough();
56
+ const StoreDoctorStoreSchema = z.object({
57
+ id: z.string().optional(),
58
+ root: z.string().optional(),
59
+ metadata_path: z.string().nullable().optional(),
60
+ openspec_root: StoreOpenSpecRootSchema.optional(),
61
+ metadata: StoreMetadataSchema.optional(),
62
+ git: StoreGitFactsSchema.optional(),
63
+ status: z.array(StoreDiagnosticSchema).optional()
64
+ }).passthrough();
65
+ const StoreDoctorResultSchema = z.object({
66
+ stores: z.array(StoreDoctorStoreSchema).default([]),
67
+ status: z.array(StoreDiagnosticSchema).optional()
68
+ }).passthrough();
69
+ function classifyStoreCliOutput(input) {
70
+ const { success, stdout, stderr, parse, cliVersion } = input;
71
+ if (!success) return {
72
+ kind: "command-unavailable",
73
+ message: stderr.trim() || "OpenSpec CLI store command failed or is unavailable.",
74
+ ...cliVersion ? { cliVersion } : {}
75
+ };
76
+ try {
77
+ return {
78
+ kind: "ok",
79
+ data: parse(stdout)
80
+ };
81
+ } catch (error) {
82
+ return {
83
+ kind: "data-incompatible",
84
+ message: `OpenSpec CLI returned an incompatible stores payload: ${error instanceof Error ? error.message : String(error)}`,
85
+ ...cliVersion ? { cliVersion } : {}
86
+ };
87
+ }
88
+ }
89
+ /**
90
+ * 把归类结果转换成端点返回型。成功时 stores = data,失败时 stores = fallback(通常是空数组)
91
+ * 并附上 error。始终尽力带上 cliVersion(版本信息非常重要)。
92
+ */
93
+ function toStoreFeatureResult(classification, options) {
94
+ const cliVersion = options.cliVersion;
95
+ if (classification.kind === "ok") return {
96
+ available: true,
97
+ stores: options.fromData(classification.data),
98
+ ...cliVersion ? { cliVersion } : {}
99
+ };
100
+ return {
101
+ available: false,
102
+ stores: options.fallback,
103
+ error: classification,
104
+ ...cliVersion ? { cliVersion } : {}
105
+ };
106
+ }
107
+
108
+ //#endregion
109
+ export { toStoreFeatureResult as i, StoreListResultSchema as n, classifyStoreCliOutput as r, StoreDoctorResultSchema as t };
@@ -0,0 +1,2 @@
1
+ import { a as StoreDoctorResult, c as StoreFeatureError, d as StoreListResult, f as StoreListResultSchema, i as StoreDiagnostic, l as StoreFeatureResult, m as toStoreFeatureResult, n as StoreCommandUnavailableError, o as StoreDoctorResultSchema, p as classifyStoreCliOutput, r as StoreDataIncompatibleError, s as StoreDoctorStore, t as StoreClassification, u as StoreListEntry } from "./store-types-BiE-Ey--.mjs";
2
+ export { StoreClassification, StoreCommandUnavailableError, StoreDataIncompatibleError, StoreDiagnostic, StoreDoctorResult, StoreDoctorResultSchema, StoreDoctorStore, StoreFeatureError, StoreFeatureResult, StoreListEntry, StoreListResult, StoreListResultSchema, classifyStoreCliOutput, toStoreFeatureResult };
@@ -0,0 +1,3 @@
1
+ import { i as toStoreFeatureResult, n as StoreListResultSchema, r as classifyStoreCliOutput, t as StoreDoctorResultSchema } from "./store-types-Cu41QSww.mjs";
2
+
3
+ export { StoreDoctorResultSchema, StoreListResultSchema, classifyStoreCliOutput, toStoreFeatureResult };
@@ -1,5 +1,5 @@
1
- import { g as SchemaDetail } from "./opsx-types-Ccrsvb3l.mjs";
2
- import { n as ChangeFile, v as Task } from "./schemas-C01jZKK1.mjs";
1
+ import { g as SchemaDetail } from "./opsx-types-2rgsQHsB.mjs";
2
+ import { n as ChangeFile, v as Task } from "./schemas-CNKCVc7m.mjs";
3
3
 
4
4
  //#region src/task-progress.d.ts
5
5
  interface TaskProgress {
@@ -1,4 +1,4 @@
1
- import { s as opsxPathMatchesPattern } from "./opsx-entity-DrY7pgMe.mjs";
1
+ import { s as opsxPathMatchesPattern } from "./opsx-entity-c7m5CbgU.mjs";
2
2
 
3
3
  //#region src/task-progress.ts
4
4
  const CHECKBOX_TASK_LINE = /^\s*[-*]\s+\[([ xX])\]\s+(.+)$/;
@@ -1,4 +1,4 @@
1
- import "./opsx-types-Ccrsvb3l.mjs";
2
- import "./schemas-C01jZKK1.mjs";
3
- import { a as isMarkdownTaskSourcePath, i as computeTaskProgress, n as TaskProjection, o as parseMarkdownTasks, r as TaskProjectionOptions, s as projectTasksFromMarkdownFiles, t as TaskProgress } from "./task-progress-C2YCGSyC.mjs";
1
+ import "./opsx-types-2rgsQHsB.mjs";
2
+ import "./schemas-CNKCVc7m.mjs";
3
+ import { a as isMarkdownTaskSourcePath, i as computeTaskProgress, n as TaskProjection, o as parseMarkdownTasks, r as TaskProjectionOptions, s as projectTasksFromMarkdownFiles, t as TaskProgress } from "./task-progress-BHn4bCoD.mjs";
4
4
  export { TaskProgress, TaskProjection, TaskProjectionOptions, computeTaskProgress, isMarkdownTaskSourcePath, parseMarkdownTasks, projectTasksFromMarkdownFiles };
@@ -1,4 +1,4 @@
1
- import "./opsx-entity-DrY7pgMe.mjs";
2
- import { i as projectTasksFromMarkdownFiles, n as isMarkdownTaskSourcePath, r as parseMarkdownTasks, t as computeTaskProgress } from "./task-progress-RLYFNkpL.mjs";
1
+ import "./opsx-entity-c7m5CbgU.mjs";
2
+ import { i as projectTasksFromMarkdownFiles, n as isMarkdownTaskSourcePath, r as parseMarkdownTasks, t as computeTaskProgress } from "./task-progress-DhHYHnTv.mjs";
3
3
 
4
4
  export { computeTaskProgress, isMarkdownTaskSourcePath, parseMarkdownTasks, projectTasksFromMarkdownFiles };
@@ -1,9 +1,9 @@
1
- import { x as SoundId } from "./sounds-BhmJDMmO.mjs";
1
+ import { x as SoundId } from "./sounds-J6z7o4mt.mjs";
2
2
  import * as zod0 from "zod";
3
3
 
4
4
  //#region src/terminal-audio.d.ts
5
5
  declare const TERMINAL_BELL_SOUND_VALUES: readonly ["silent", "bell", "soft", "clear", "pulse"];
6
- declare const TerminalBellSoundSchema: zod0.ZodEffects<zod0.ZodUnion<[zod0.ZodLiteral<"silent">, zod0.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, zod0.ZodType<`custom:${string}`, zod0.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Basso" | "builtin:Blow" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | "builtin:Tink" | `custom:${string}`, unknown>;
6
+ declare const TerminalBellSoundSchema: zod0.ZodEffects<zod0.ZodUnion<[zod0.ZodLiteral<"silent">, zod0.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, zod0.ZodType<`custom:${string}`, zod0.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Tink" | "builtin:Blow" | "builtin:Basso" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | `custom:${string}`, unknown>;
7
7
  type TerminalBellSound = SoundId;
8
8
  declare const TERMINAL_BELL_SOUND_OPTIONS: readonly {
9
9
  id: TerminalBellSound;
@@ -1,4 +1,4 @@
1
- import { l as DEFAULT_BELL_SOUND_ID, m as SoundConfigIdSchema } from "./sounds-CuSsy7X-.mjs";
1
+ import { l as DEFAULT_BELL_SOUND_ID, m as SoundConfigIdSchema } from "./sounds-CB3ubSnj.mjs";
2
2
 
3
3
  //#region src/terminal-audio.ts
4
4
  const TERMINAL_BELL_SOUND_VALUES = [
@@ -1,3 +1,3 @@
1
- import "./sounds-BhmJDMmO.mjs";
2
- import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-BDbVowLy.mjs";
1
+ import "./sounds-J6z7o4mt.mjs";
2
+ import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-BeUXlQgj.mjs";
3
3
  export { TERMINAL_BELL_SOUND_OPTIONS, TERMINAL_BELL_SOUND_VALUES, TerminalBellSound, TerminalBellSoundSchema };
@@ -1,4 +1,4 @@
1
- import "./sounds-CuSsy7X-.mjs";
2
- import { n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSoundSchema, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-DhslppvD.mjs";
1
+ import "./sounds-CB3ubSnj.mjs";
2
+ import { n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSoundSchema, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-TBoU2jSK.mjs";
3
3
 
4
4
  export { TERMINAL_BELL_SOUND_OPTIONS, TERMINAL_BELL_SOUND_VALUES, TerminalBellSoundSchema };
@@ -1,3 +1,3 @@
1
- import "./sounds-BhmJDMmO.mjs";
2
- import { A as TerminalNotificationProtocol, D as TerminalControlEvent, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, j as TerminalProgressState, k as TerminalControlParser } from "./notifications-DcBVI03P.mjs";
1
+ import "./sounds-J6z7o4mt.mjs";
2
+ import { A as TerminalNotificationProtocol, D as TerminalControlEvent, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, j as TerminalProgressState, k as TerminalControlParser } from "./notifications-HYH-lklF.mjs";
3
3
  export { TerminalControlEvent, TerminalControlParseResult, TerminalControlParser, TerminalNotificationProtocol, TerminalProgressState, TerminalPromptState, TerminalTitleTarget, terminalNotificationEventToPublishInput };
@@ -1,3 +1,3 @@
1
- import { n as terminalNotificationEventToPublishInput, t as TerminalControlParser } from "./terminal-control-D5dCna6A.mjs";
1
+ import { n as terminalNotificationEventToPublishInput, t as TerminalControlParser } from "./terminal-control-VpTuh17B.mjs";
2
2
 
3
3
  export { TerminalControlParser, terminalNotificationEventToPublishInput };
@@ -14,9 +14,9 @@ declare const PtySessionInfoSchema: z.ZodObject<{
14
14
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  id: string;
17
- title: string;
18
17
  command: string;
19
18
  args: string[];
19
+ title: string;
20
20
  platform: "windows" | "macos" | "common";
21
21
  exitCode: number | null;
22
22
  isExited: boolean;
@@ -24,9 +24,9 @@ declare const PtySessionInfoSchema: z.ZodObject<{
24
24
  closeCallbackUrl?: string | Record<string, string> | undefined;
25
25
  }, {
26
26
  id: string;
27
- title: string;
28
27
  command: string;
29
28
  args: string[];
29
+ title: string;
30
30
  platform: "windows" | "macos" | "common";
31
31
  exitCode: number | null;
32
32
  isExited: boolean;
@@ -316,9 +316,9 @@ declare const PtyListResponseSchema: z.ZodObject<{
316
316
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
317
317
  }, "strip", z.ZodTypeAny, {
318
318
  id: string;
319
- title: string;
320
319
  command: string;
321
320
  args: string[];
321
+ title: string;
322
322
  platform: "windows" | "macos" | "common";
323
323
  exitCode: number | null;
324
324
  isExited: boolean;
@@ -326,9 +326,9 @@ declare const PtyListResponseSchema: z.ZodObject<{
326
326
  closeCallbackUrl?: string | Record<string, string> | undefined;
327
327
  }, {
328
328
  id: string;
329
- title: string;
330
329
  command: string;
331
330
  args: string[];
331
+ title: string;
332
332
  platform: "windows" | "macos" | "common";
333
333
  exitCode: number | null;
334
334
  isExited: boolean;
@@ -339,9 +339,9 @@ declare const PtyListResponseSchema: z.ZodObject<{
339
339
  type: "list";
340
340
  sessions: {
341
341
  id: string;
342
- title: string;
343
342
  command: string;
344
343
  args: string[];
344
+ title: string;
345
345
  platform: "windows" | "macos" | "common";
346
346
  exitCode: number | null;
347
347
  isExited: boolean;
@@ -352,9 +352,9 @@ declare const PtyListResponseSchema: z.ZodObject<{
352
352
  type: "list";
353
353
  sessions: {
354
354
  id: string;
355
- title: string;
356
355
  command: string;
357
356
  args: string[];
357
+ title: string;
358
358
  platform: "windows" | "macos" | "common";
359
359
  exitCode: number | null;
360
360
  isExited: boolean;
@@ -522,9 +522,9 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
522
522
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
523
523
  }, "strip", z.ZodTypeAny, {
524
524
  id: string;
525
- title: string;
526
525
  command: string;
527
526
  args: string[];
527
+ title: string;
528
528
  platform: "windows" | "macos" | "common";
529
529
  exitCode: number | null;
530
530
  isExited: boolean;
@@ -532,9 +532,9 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
532
532
  closeCallbackUrl?: string | Record<string, string> | undefined;
533
533
  }, {
534
534
  id: string;
535
- title: string;
536
535
  command: string;
537
536
  args: string[];
537
+ title: string;
538
538
  platform: "windows" | "macos" | "common";
539
539
  exitCode: number | null;
540
540
  isExited: boolean;
@@ -545,9 +545,9 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
545
545
  type: "list";
546
546
  sessions: {
547
547
  id: string;
548
- title: string;
549
548
  command: string;
550
549
  args: string[];
550
+ title: string;
551
551
  platform: "windows" | "macos" | "common";
552
552
  exitCode: number | null;
553
553
  isExited: boolean;
@@ -558,9 +558,9 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
558
558
  type: "list";
559
559
  sessions: {
560
560
  id: string;
561
- title: string;
562
561
  command: string;
563
562
  args: string[];
563
+ title: string;
564
564
  platform: "windows" | "macos" | "common";
565
565
  exitCode: number | null;
566
566
  isExited: boolean;
@@ -631,18 +631,18 @@ declare const TerminalCommandFieldSchema: z.ZodObject<{
631
631
  required: z.ZodDefault<z.ZodBoolean>;
632
632
  advanced: z.ZodDefault<z.ZodBoolean>;
633
633
  }, "strip", z.ZodTypeAny, {
634
+ id: string;
634
635
  options: string[];
635
636
  type: "boolean" | "text" | "textarea" | "select";
636
637
  required: boolean;
637
- id: string;
638
638
  label: string;
639
639
  advanced: boolean;
640
640
  description?: string | undefined;
641
641
  placeholder?: string | undefined;
642
642
  defaultValue?: string | boolean | undefined;
643
643
  }, {
644
- type: "boolean" | "text" | "textarea" | "select";
645
644
  id: string;
645
+ type: "boolean" | "text" | "textarea" | "select";
646
646
  label: string;
647
647
  options?: string[] | undefined;
648
648
  required?: boolean | undefined;
@@ -998,18 +998,18 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
998
998
  required: z.ZodDefault<z.ZodBoolean>;
999
999
  advanced: z.ZodDefault<z.ZodBoolean>;
1000
1000
  }, "strip", z.ZodTypeAny, {
1001
+ id: string;
1001
1002
  options: string[];
1002
1003
  type: "boolean" | "text" | "textarea" | "select";
1003
1004
  required: boolean;
1004
- id: string;
1005
1005
  label: string;
1006
1006
  advanced: boolean;
1007
1007
  description?: string | undefined;
1008
1008
  placeholder?: string | undefined;
1009
1009
  defaultValue?: string | boolean | undefined;
1010
1010
  }, {
1011
- type: "boolean" | "text" | "textarea" | "select";
1012
1011
  id: string;
1012
+ type: "boolean" | "text" | "textarea" | "select";
1013
1013
  label: string;
1014
1014
  options?: string[] | undefined;
1015
1015
  required?: boolean | undefined;
@@ -1190,10 +1190,10 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1190
1190
  flag: string;
1191
1191
  })[];
1192
1192
  fields: {
1193
+ id: string;
1193
1194
  options: string[];
1194
1195
  type: "boolean" | "text" | "textarea" | "select";
1195
1196
  required: boolean;
1196
- id: string;
1197
1197
  label: string;
1198
1198
  advanced: boolean;
1199
1199
  description?: string | undefined;
@@ -1255,8 +1255,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1255
1255
  flag: string;
1256
1256
  })[] | undefined;
1257
1257
  fields?: {
1258
- type: "boolean" | "text" | "textarea" | "select";
1259
1258
  id: string;
1259
+ type: "boolean" | "text" | "textarea" | "select";
1260
1260
  label: string;
1261
1261
  options?: string[] | undefined;
1262
1262
  required?: boolean | undefined;
@@ -1378,18 +1378,18 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1378
1378
  required: z.ZodDefault<z.ZodBoolean>;
1379
1379
  advanced: z.ZodDefault<z.ZodBoolean>;
1380
1380
  }, "strip", z.ZodTypeAny, {
1381
+ id: string;
1381
1382
  options: string[];
1382
1383
  type: "boolean" | "text" | "textarea" | "select";
1383
1384
  required: boolean;
1384
- id: string;
1385
1385
  label: string;
1386
1386
  advanced: boolean;
1387
1387
  description?: string | undefined;
1388
1388
  placeholder?: string | undefined;
1389
1389
  defaultValue?: string | boolean | undefined;
1390
1390
  }, {
1391
- type: "boolean" | "text" | "textarea" | "select";
1392
1391
  id: string;
1392
+ type: "boolean" | "text" | "textarea" | "select";
1393
1393
  label: string;
1394
1394
  options?: string[] | undefined;
1395
1395
  required?: boolean | undefined;
@@ -1570,10 +1570,10 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1570
1570
  flag: string;
1571
1571
  })[];
1572
1572
  fields: {
1573
+ id: string;
1573
1574
  options: string[];
1574
1575
  type: "boolean" | "text" | "textarea" | "select";
1575
1576
  required: boolean;
1576
- id: string;
1577
1577
  label: string;
1578
1578
  advanced: boolean;
1579
1579
  description?: string | undefined;
@@ -1635,8 +1635,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1635
1635
  flag: string;
1636
1636
  })[] | undefined;
1637
1637
  fields?: {
1638
- type: "boolean" | "text" | "textarea" | "select";
1639
1638
  id: string;
1639
+ type: "boolean" | "text" | "textarea" | "select";
1640
1640
  label: string;
1641
1641
  options?: string[] | undefined;
1642
1642
  required?: boolean | undefined;
@@ -1708,10 +1708,10 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1708
1708
  flag: string;
1709
1709
  })[];
1710
1710
  fields: {
1711
+ id: string;
1711
1712
  options: string[];
1712
1713
  type: "boolean" | "text" | "textarea" | "select";
1713
1714
  required: boolean;
1714
- id: string;
1715
1715
  label: string;
1716
1716
  advanced: boolean;
1717
1717
  description?: string | undefined;
@@ -1785,8 +1785,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1785
1785
  flag: string;
1786
1786
  })[] | undefined;
1787
1787
  fields?: {
1788
- type: "boolean" | "text" | "textarea" | "select";
1789
1788
  id: string;
1789
+ type: "boolean" | "text" | "textarea" | "select";
1790
1790
  label: string;
1791
1791
  options?: string[] | undefined;
1792
1792
  required?: boolean | undefined;
@@ -1,2 +1,2 @@
1
- import { A as renderTerminalSpawnCommand, C as TerminalSpawnCommand, D as getTerminalCommandParameters, E as getTerminalCommandDefaultValues, M as resolveTerminalShellDefaults, O as quoteTerminalShellArg, S as TerminalShellQuoteStyleSchema, T as fieldsToTerminalCommandParameters, _ as TerminalShellDefaults, a as TerminalCommandBuilder, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, d as TerminalCommandJsonSchema, f as TerminalCommandJsonSchemaProperty, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, m as TerminalCommandRenderResult, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalCommandBuilderPart, p as TerminalCommandParameters, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as TerminalCommandFieldValues, v as TerminalShellEnv, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile } from "./terminal-invocation-Be3YlFOI.mjs";
1
+ import { A as renderTerminalSpawnCommand, C as TerminalSpawnCommand, D as getTerminalCommandParameters, E as getTerminalCommandDefaultValues, M as resolveTerminalShellDefaults, O as quoteTerminalShellArg, S as TerminalShellQuoteStyleSchema, T as fieldsToTerminalCommandParameters, _ as TerminalShellDefaults, a as TerminalCommandBuilder, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, d as TerminalCommandJsonSchema, f as TerminalCommandJsonSchemaProperty, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, m as TerminalCommandRenderResult, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalCommandBuilderPart, p as TerminalCommandParameters, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as TerminalCommandFieldValues, v as TerminalShellEnv, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile } from "./terminal-invocation-ClVh0HeM.mjs";
2
2
  export { BUILTIN_TERMINAL_SPAWN_COMMANDS, TERMINAL_COMMAND_FIELD_TYPE_VALUES, TERMINAL_SHELL_QUOTE_STYLE_VALUES, TerminalCommandArgument, TerminalCommandBuilder, TerminalCommandBuilderPart, TerminalCommandField, TerminalCommandFieldSchema, TerminalCommandFieldValue, TerminalCommandFieldValues, TerminalCommandJsonSchema, TerminalCommandJsonSchemaProperty, TerminalCommandParameters, TerminalCommandRenderResult, TerminalInvocationSettings, TerminalInvocationSettingsSchema, TerminalShellDefaults, TerminalShellEnv, TerminalShellProfile, TerminalShellProfileSchema, TerminalShellQuoteStyle, TerminalShellQuoteStyleSchema, TerminalSpawnCommand, TerminalSpawnCommandSchema, fieldsToTerminalCommandParameters, getTerminalCommandDefaultValues, getTerminalCommandParameters, quoteTerminalShellArg, renderTerminalCommandArgs, renderTerminalSpawnCommand, renderTerminalSpawnCommandLine, resolveTerminalShellDefaults };
@@ -1,3 +1,3 @@
1
- import { a as TerminalInvocationSettingsSchema, c as TerminalSpawnCommandSchema, d as getTerminalCommandParameters, f as quoteTerminalShellArg, g as resolveTerminalShellDefaults, h as renderTerminalSpawnCommandLine, i as TerminalCommandFieldSchema, l as fieldsToTerminalCommandParameters, m as renderTerminalSpawnCommand, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalShellProfileSchema, p as renderTerminalCommandArgs, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalShellQuoteStyleSchema, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as getTerminalCommandDefaultValues } from "./terminal-invocation-BSrS_0zu.mjs";
1
+ import { a as TerminalInvocationSettingsSchema, c as TerminalSpawnCommandSchema, d as getTerminalCommandParameters, f as quoteTerminalShellArg, g as resolveTerminalShellDefaults, h as renderTerminalSpawnCommandLine, i as TerminalCommandFieldSchema, l as fieldsToTerminalCommandParameters, m as renderTerminalSpawnCommand, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalShellProfileSchema, p as renderTerminalCommandArgs, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalShellQuoteStyleSchema, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as getTerminalCommandDefaultValues } from "./terminal-invocation-C2MCNBhK.mjs";
2
2
 
3
3
  export { BUILTIN_TERMINAL_SPAWN_COMMANDS, TERMINAL_COMMAND_FIELD_TYPE_VALUES, TERMINAL_SHELL_QUOTE_STYLE_VALUES, TerminalCommandFieldSchema, TerminalInvocationSettingsSchema, TerminalShellProfileSchema, TerminalShellQuoteStyleSchema, TerminalSpawnCommandSchema, fieldsToTerminalCommandParameters, getTerminalCommandDefaultValues, getTerminalCommandParameters, quoteTerminalShellArg, renderTerminalCommandArgs, renderTerminalSpawnCommand, renderTerminalSpawnCommandLine, resolveTerminalShellDefaults };
@@ -1,2 +1,2 @@
1
- import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, o as TerminalThemeId, r as DEFAULT_TERMINAL_THEME_MODE, s as TerminalThemeMode, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-DO6B6-o0.mjs";
1
+ import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, o as TerminalThemeId, r as DEFAULT_TERMINAL_THEME_MODE, s as TerminalThemeMode, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-hvQjTsNh.mjs";
2
2
  export { DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TerminalThemeId, TerminalThemeMode };
@@ -1,3 +1,3 @@
1
- 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-TogWGicr.mjs";
1
+ 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-cevliJw2.mjs";
2
2
 
3
3
  export { DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES };
@@ -1,2 +1,2 @@
1
- import { i as inferLocalDirectionalModelLanguagePair, n as TranslationLanguagePair, r as checkLocalDirectionalModelLanguagePair, t as LocalDirectionalModelLanguagePairCheck } from "./translation-language-pair-C1tou_ks.mjs";
1
+ import { i as inferLocalDirectionalModelLanguagePair, n as TranslationLanguagePair, r as checkLocalDirectionalModelLanguagePair, t as LocalDirectionalModelLanguagePairCheck } from "./translation-language-pair-DmaOfHqD.mjs";
2
2
  export { LocalDirectionalModelLanguagePairCheck, TranslationLanguagePair, checkLocalDirectionalModelLanguagePair, inferLocalDirectionalModelLanguagePair };
@@ -1,3 +1,3 @@
1
- import { n as inferLocalDirectionalModelLanguagePair, t as checkLocalDirectionalModelLanguagePair } from "./translation-language-pair-D2B_LoN1.mjs";
1
+ import { n as inferLocalDirectionalModelLanguagePair, t as checkLocalDirectionalModelLanguagePair } from "./translation-language-pair-DZ_WNp_M.mjs";
2
2
 
3
3
  export { checkLocalDirectionalModelLanguagePair, inferLocalDirectionalModelLanguagePair };