@openspecui/core 3.7.0 → 3.7.2

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 (30) hide show
  1. package/dist/document-translation-CvUxMOPl.mjs +44 -0
  2. package/dist/document-translation-D_ryOn9u.d.mts +140 -0
  3. package/dist/document-translation.d.mts +2 -2
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/hosted-app-BqJw9WgW.d.mts +43 -0
  6. package/dist/{hosted-app-Bl5W6LWQ.mjs → hosted-app-Du65UHRo.mjs} +24 -3
  7. package/dist/hosted-app.d.mts +2 -2
  8. package/dist/hosted-app.mjs +2 -2
  9. package/dist/index.d.mts +70 -22
  10. package/dist/index.mjs +98 -17
  11. package/dist/{notifications-CbKmEdCU.d.mts → notifications-C9NFber0.d.mts} +9 -9
  12. package/dist/notifications.d.mts +2 -2
  13. package/dist/{openspec-projection-Co3CUAHe.d.mts → openspec-projection-Cv9_trD5.d.mts} +1 -1
  14. package/dist/openspec-projection.d.mts +2 -2
  15. package/dist/{opsx-entity-Cz89hbt3.d.mts → opsx-entity-FVK74l1t.d.mts} +13 -13
  16. package/dist/opsx-entity.d.mts +2 -2
  17. package/dist/{opsx-schema-detail-CuDl2xjZ.d.mts → opsx-schema-detail-COXlZ7Gm.d.mts} +1 -1
  18. package/dist/opsx-schema-detail.d.mts +3 -3
  19. package/dist/{schemas-q7tGvvxx.d.mts → schemas-CFIuaIAS.d.mts} +66 -66
  20. package/dist/{sounds-BORGLPIt.d.mts → sounds-Dz-aToh_.d.mts} +4 -4
  21. package/dist/sounds.d.mts +1 -1
  22. package/dist/{terminal-audio-Dmi6lR7o.d.mts → terminal-audio-Btx-il9w.d.mts} +1 -1
  23. package/dist/terminal-audio.d.mts +2 -2
  24. package/dist/terminal-control.d.mts +2 -2
  25. package/dist/{terminal-invocation-C733ofmf.d.mts → terminal-invocation-42mkV55p.d.mts} +90 -90
  26. package/dist/terminal-invocation.d.mts +1 -1
  27. package/package.json +37 -1
  28. package/dist/document-translation-CEI09yZe.mjs +0 -13
  29. package/dist/document-translation-CuCbRCNb.d.mts +0 -22
  30. package/dist/hosted-app-DHrXW3jc.d.mts +0 -31
@@ -0,0 +1,44 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/document-translation.ts
4
+ const DOCUMENT_TRANSLATION_DISPLAY_MODES = ["direct", "bilingual"];
5
+ const DocumentTranslationDisplayModeSchema = z.enum(DOCUMENT_TRANSLATION_DISPLAY_MODES);
6
+ const DocumentTranslationConfigSchema = z.object({
7
+ enabled: z.boolean().default(false),
8
+ targetLanguage: z.string().min(1).default("zh"),
9
+ displayMode: DocumentTranslationDisplayModeSchema.default("direct"),
10
+ cacheEnabled: z.boolean().default(false)
11
+ });
12
+ const DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT = 1e4;
13
+ const MIN_TRANSLATION_CACHE_ENTRY_LIMIT = 100;
14
+ const MAX_TRANSLATION_CACHE_ENTRY_LIMIT = 2e5;
15
+ const TRANSLATION_CACHE_POLICY_VERSION = 2;
16
+ const TranslationCacheSettingsSchema = z.object({ entryLimit: z.number().int().min(MIN_TRANSLATION_CACHE_ENTRY_LIMIT).max(MAX_TRANSLATION_CACHE_ENTRY_LIMIT).default(DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT) });
17
+ const TranslationCacheEntrySchema = z.object({
18
+ key: z.string().min(1),
19
+ keyHash: z.string().min(1),
20
+ sourceText: z.string(),
21
+ translatedText: z.string(),
22
+ targetNodesJson: z.string().optional(),
23
+ sourceLanguage: z.string().min(1),
24
+ targetLanguage: z.string().min(1),
25
+ placeholderTopologyHash: z.string().min(1),
26
+ attributeTopologyHash: z.string().min(1),
27
+ displayPolicyVersion: z.number().int().positive(),
28
+ createdAt: z.number().int().nonnegative(),
29
+ lastAccessedAt: z.number().int().nonnegative()
30
+ });
31
+ const TranslationCacheWriteInputSchema = TranslationCacheEntrySchema.omit({
32
+ createdAt: true,
33
+ lastAccessedAt: true
34
+ });
35
+ const TranslationCacheReadInputSchema = z.object({ keyHash: z.string().min(1) });
36
+ const TranslationCacheStatsSchema = z.object({
37
+ enabled: z.boolean(),
38
+ entryLimit: z.number().int().positive(),
39
+ entries: z.number().int().nonnegative(),
40
+ databasePath: z.string().optional()
41
+ });
42
+
43
+ //#endregion
44
+ export { MAX_TRANSLATION_CACHE_ENTRY_LIMIT as a, TranslationCacheEntrySchema as c, TranslationCacheStatsSchema as d, TranslationCacheWriteInputSchema as f, DocumentTranslationDisplayModeSchema as i, TranslationCacheReadInputSchema as l, DOCUMENT_TRANSLATION_DISPLAY_MODES as n, MIN_TRANSLATION_CACHE_ENTRY_LIMIT as o, DocumentTranslationConfigSchema as r, TRANSLATION_CACHE_POLICY_VERSION as s, DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT as t, TranslationCacheSettingsSchema as u };
@@ -0,0 +1,140 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/document-translation.d.ts
4
+ declare const DOCUMENT_TRANSLATION_DISPLAY_MODES: readonly ["direct", "bilingual"];
5
+ declare const DocumentTranslationDisplayModeSchema: z.ZodEnum<["direct", "bilingual"]>;
6
+ type DocumentTranslationDisplayMode = z.infer<typeof DocumentTranslationDisplayModeSchema>;
7
+ declare const DocumentTranslationConfigSchema: z.ZodObject<{
8
+ enabled: z.ZodDefault<z.ZodBoolean>;
9
+ targetLanguage: z.ZodDefault<z.ZodString>;
10
+ displayMode: z.ZodDefault<z.ZodEnum<["direct", "bilingual"]>>;
11
+ cacheEnabled: z.ZodDefault<z.ZodBoolean>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ enabled: boolean;
14
+ targetLanguage: string;
15
+ displayMode: "direct" | "bilingual";
16
+ cacheEnabled: boolean;
17
+ }, {
18
+ enabled?: boolean | undefined;
19
+ targetLanguage?: string | undefined;
20
+ displayMode?: "direct" | "bilingual" | undefined;
21
+ cacheEnabled?: boolean | undefined;
22
+ }>;
23
+ type DocumentTranslationConfig = z.infer<typeof DocumentTranslationConfigSchema>;
24
+ declare const DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT = 10000;
25
+ declare const MIN_TRANSLATION_CACHE_ENTRY_LIMIT = 100;
26
+ declare const MAX_TRANSLATION_CACHE_ENTRY_LIMIT = 200000;
27
+ declare const TRANSLATION_CACHE_POLICY_VERSION = 2;
28
+ declare const TranslationCacheSettingsSchema: z.ZodObject<{
29
+ entryLimit: z.ZodDefault<z.ZodNumber>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ entryLimit: number;
32
+ }, {
33
+ entryLimit?: number | undefined;
34
+ }>;
35
+ type TranslationCacheSettings = z.infer<typeof TranslationCacheSettingsSchema>;
36
+ declare const TranslationCacheEntrySchema: z.ZodObject<{
37
+ key: z.ZodString;
38
+ keyHash: z.ZodString;
39
+ sourceText: z.ZodString;
40
+ translatedText: z.ZodString;
41
+ targetNodesJson: z.ZodOptional<z.ZodString>;
42
+ sourceLanguage: z.ZodString;
43
+ targetLanguage: z.ZodString;
44
+ placeholderTopologyHash: z.ZodString;
45
+ attributeTopologyHash: z.ZodString;
46
+ displayPolicyVersion: z.ZodNumber;
47
+ createdAt: z.ZodNumber;
48
+ lastAccessedAt: z.ZodNumber;
49
+ }, "strip", z.ZodTypeAny, {
50
+ createdAt: number;
51
+ targetLanguage: string;
52
+ key: string;
53
+ keyHash: string;
54
+ sourceText: string;
55
+ translatedText: string;
56
+ sourceLanguage: string;
57
+ placeholderTopologyHash: string;
58
+ attributeTopologyHash: string;
59
+ displayPolicyVersion: number;
60
+ lastAccessedAt: number;
61
+ targetNodesJson?: string | undefined;
62
+ }, {
63
+ createdAt: number;
64
+ targetLanguage: string;
65
+ key: string;
66
+ keyHash: string;
67
+ sourceText: string;
68
+ translatedText: string;
69
+ sourceLanguage: string;
70
+ placeholderTopologyHash: string;
71
+ attributeTopologyHash: string;
72
+ displayPolicyVersion: number;
73
+ lastAccessedAt: number;
74
+ targetNodesJson?: string | undefined;
75
+ }>;
76
+ type TranslationCacheEntry = z.infer<typeof TranslationCacheEntrySchema>;
77
+ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
78
+ key: z.ZodString;
79
+ keyHash: z.ZodString;
80
+ sourceText: z.ZodString;
81
+ translatedText: z.ZodString;
82
+ targetNodesJson: z.ZodOptional<z.ZodString>;
83
+ sourceLanguage: z.ZodString;
84
+ targetLanguage: z.ZodString;
85
+ placeholderTopologyHash: z.ZodString;
86
+ attributeTopologyHash: z.ZodString;
87
+ displayPolicyVersion: z.ZodNumber;
88
+ createdAt: z.ZodNumber;
89
+ lastAccessedAt: z.ZodNumber;
90
+ }, "createdAt" | "lastAccessedAt">, "strip", z.ZodTypeAny, {
91
+ targetLanguage: string;
92
+ key: string;
93
+ keyHash: string;
94
+ sourceText: string;
95
+ translatedText: string;
96
+ sourceLanguage: string;
97
+ placeholderTopologyHash: string;
98
+ attributeTopologyHash: string;
99
+ displayPolicyVersion: number;
100
+ targetNodesJson?: string | undefined;
101
+ }, {
102
+ targetLanguage: string;
103
+ key: string;
104
+ keyHash: string;
105
+ sourceText: string;
106
+ translatedText: string;
107
+ sourceLanguage: string;
108
+ placeholderTopologyHash: string;
109
+ attributeTopologyHash: string;
110
+ displayPolicyVersion: number;
111
+ targetNodesJson?: string | undefined;
112
+ }>;
113
+ type TranslationCacheWriteInput = z.infer<typeof TranslationCacheWriteInputSchema>;
114
+ declare const TranslationCacheReadInputSchema: z.ZodObject<{
115
+ keyHash: z.ZodString;
116
+ }, "strip", z.ZodTypeAny, {
117
+ keyHash: string;
118
+ }, {
119
+ keyHash: string;
120
+ }>;
121
+ type TranslationCacheReadInput = z.infer<typeof TranslationCacheReadInputSchema>;
122
+ declare const TranslationCacheStatsSchema: z.ZodObject<{
123
+ enabled: z.ZodBoolean;
124
+ entryLimit: z.ZodNumber;
125
+ entries: z.ZodNumber;
126
+ databasePath: z.ZodOptional<z.ZodString>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ entries: number;
129
+ enabled: boolean;
130
+ entryLimit: number;
131
+ databasePath?: string | undefined;
132
+ }, {
133
+ entries: number;
134
+ enabled: boolean;
135
+ entryLimit: number;
136
+ databasePath?: string | undefined;
137
+ }>;
138
+ type TranslationCacheStats = z.infer<typeof TranslationCacheStatsSchema>;
139
+ //#endregion
140
+ export { TranslationCacheStatsSchema as _, DocumentTranslationDisplayMode as a, MIN_TRANSLATION_CACHE_ENTRY_LIMIT as c, TranslationCacheEntrySchema as d, TranslationCacheReadInput as f, TranslationCacheStats as g, TranslationCacheSettingsSchema as h, DocumentTranslationConfigSchema as i, TRANSLATION_CACHE_POLICY_VERSION as l, TranslationCacheSettings as m, DOCUMENT_TRANSLATION_DISPLAY_MODES as n, DocumentTranslationDisplayModeSchema as o, TranslationCacheReadInputSchema as p, DocumentTranslationConfig as r, MAX_TRANSLATION_CACHE_ENTRY_LIMIT as s, DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT as t, TranslationCacheEntry as u, TranslationCacheWriteInput as v, TranslationCacheWriteInputSchema as y };
@@ -1,2 +1,2 @@
1
- import { a as DocumentTranslationDisplayModeSchema, i as DocumentTranslationDisplayMode, n as DocumentTranslationConfig, r as DocumentTranslationConfigSchema, t as DOCUMENT_TRANSLATION_DISPLAY_MODES } from "./document-translation-CuCbRCNb.mjs";
2
- export { DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfig, DocumentTranslationConfigSchema, DocumentTranslationDisplayMode, DocumentTranslationDisplayModeSchema };
1
+ import { _ as TranslationCacheStatsSchema, a as DocumentTranslationDisplayMode, c as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, d as TranslationCacheEntrySchema, f as TranslationCacheReadInput, g as TranslationCacheStats, h as TranslationCacheSettingsSchema, i as DocumentTranslationConfigSchema, l as TRANSLATION_CACHE_POLICY_VERSION, m as TranslationCacheSettings, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as DocumentTranslationDisplayModeSchema, p as TranslationCacheReadInputSchema, r as DocumentTranslationConfig, s as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as TranslationCacheEntry, v as TranslationCacheWriteInput, y as TranslationCacheWriteInputSchema } from "./document-translation-D_ryOn9u.mjs";
2
+ export { DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfig, DocumentTranslationConfigSchema, DocumentTranslationDisplayMode, DocumentTranslationDisplayModeSchema, MAX_TRANSLATION_CACHE_ENTRY_LIMIT, MIN_TRANSLATION_CACHE_ENTRY_LIMIT, TRANSLATION_CACHE_POLICY_VERSION, TranslationCacheEntry, TranslationCacheEntrySchema, TranslationCacheReadInput, TranslationCacheReadInputSchema, TranslationCacheSettings, TranslationCacheSettingsSchema, TranslationCacheStats, TranslationCacheStatsSchema, TranslationCacheWriteInput, TranslationCacheWriteInputSchema };
@@ -1,3 +1,3 @@
1
- import { n as DocumentTranslationConfigSchema, r as DocumentTranslationDisplayModeSchema, t as DOCUMENT_TRANSLATION_DISPLAY_MODES } from "./document-translation-CEI09yZe.mjs";
1
+ import { a as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, c as TranslationCacheEntrySchema, d as TranslationCacheStatsSchema, f as TranslationCacheWriteInputSchema, i as DocumentTranslationDisplayModeSchema, l as TranslationCacheReadInputSchema, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, r as DocumentTranslationConfigSchema, s as TRANSLATION_CACHE_POLICY_VERSION, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as TranslationCacheSettingsSchema } from "./document-translation-CvUxMOPl.mjs";
2
2
 
3
- export { DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfigSchema, DocumentTranslationDisplayModeSchema };
3
+ export { DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfigSchema, DocumentTranslationDisplayModeSchema, MAX_TRANSLATION_CACHE_ENTRY_LIMIT, MIN_TRANSLATION_CACHE_ENTRY_LIMIT, TRANSLATION_CACHE_POLICY_VERSION, TranslationCacheEntrySchema, TranslationCacheReadInputSchema, TranslationCacheSettingsSchema, TranslationCacheStatsSchema, TranslationCacheWriteInputSchema };
@@ -0,0 +1,43 @@
1
+ //#region src/hosted-app.d.ts
2
+ declare const OFFICIAL_APP_BASE_URL = "https://app.openspecui.com";
3
+ declare const HOSTED_SHELL_PROTOCOL_VERSION = 1;
4
+ declare const OPENSPECUI_RUNTIME_CAPABILITIES: readonly ["notifications.subscribe", "config.notifications"];
5
+ type OpenSpecUIRuntimeCapability = (typeof OPENSPECUI_RUNTIME_CAPABILITIES)[number];
6
+ interface HostedBackendHealthResponse {
7
+ status: 'ok';
8
+ projectDir: string;
9
+ projectName: string;
10
+ watcherEnabled: boolean;
11
+ openspecuiVersion: string;
12
+ hostedShellProtocolVersion: typeof HOSTED_SHELL_PROTOCOL_VERSION;
13
+ embeddedUiUrl: string;
14
+ runtimeCapabilities: readonly OpenSpecUIRuntimeCapability[];
15
+ }
16
+ interface BackendHealthPayloadInput {
17
+ projectDir: string;
18
+ projectName: string;
19
+ watcherEnabled: boolean;
20
+ openspecuiVersion: string;
21
+ embeddedUiUrl: string;
22
+ }
23
+ declare function normalizeHostedAppBaseUrl(input: string): string;
24
+ declare function resolveHostedAppBaseUrl(options: {
25
+ override?: string | null;
26
+ configured?: string | null;
27
+ }): string;
28
+ declare function normalizeEmbeddedUiUrl(input: string): string;
29
+ declare function isSupportedEmbeddedUiUrl(input: string): boolean;
30
+ declare function buildHostedLaunchUrl(options: {
31
+ baseUrl: string;
32
+ apiBaseUrl: string;
33
+ }): string;
34
+ declare function buildEmbeddedUiLaunchUrl(options: {
35
+ embeddedUiUrl: string;
36
+ apiBaseUrl: string;
37
+ sessionId: string;
38
+ }): string;
39
+ declare function buildBackendHealthPayload(input: BackendHealthPayloadInput): HostedBackendHealthResponse;
40
+ declare function isBackendHealthRuntimeMetadata(value: unknown): value is HostedBackendHealthResponse;
41
+ declare function isHostedBackendHealthResponse(value: unknown): value is HostedBackendHealthResponse;
42
+ //#endregion
43
+ export { OPENSPECUI_RUNTIME_CAPABILITIES as a, buildEmbeddedUiLaunchUrl as c, isHostedBackendHealthResponse as d, isSupportedEmbeddedUiUrl as f, resolveHostedAppBaseUrl as h, OFFICIAL_APP_BASE_URL as i, buildHostedLaunchUrl as l, normalizeHostedAppBaseUrl as m, HOSTED_SHELL_PROTOCOL_VERSION as n, OpenSpecUIRuntimeCapability as o, normalizeEmbeddedUiUrl as p, HostedBackendHealthResponse as r, buildBackendHealthPayload as s, BackendHealthPayloadInput as t, isBackendHealthRuntimeMetadata as u };
@@ -1,6 +1,7 @@
1
1
  //#region src/hosted-app.ts
2
2
  const OFFICIAL_APP_BASE_URL = "https://app.openspecui.com";
3
3
  const HOSTED_SHELL_PROTOCOL_VERSION = 1;
4
+ const OPENSPECUI_RUNTIME_CAPABILITIES = ["notifications.subscribe", "config.notifications"];
4
5
  function isRecord(value) {
5
6
  return typeof value === "object" && value !== null;
6
7
  }
@@ -65,10 +66,30 @@ function buildEmbeddedUiLaunchUrl(options) {
65
66
  url.searchParams.set("session", options.sessionId);
66
67
  return url.toString();
67
68
  }
68
- function isHostedBackendHealthResponse(value) {
69
+ function buildBackendHealthPayload(input) {
70
+ return {
71
+ status: "ok",
72
+ projectDir: input.projectDir,
73
+ projectName: input.projectName,
74
+ watcherEnabled: input.watcherEnabled,
75
+ openspecuiVersion: input.openspecuiVersion,
76
+ hostedShellProtocolVersion: HOSTED_SHELL_PROTOCOL_VERSION,
77
+ embeddedUiUrl: input.embeddedUiUrl,
78
+ runtimeCapabilities: OPENSPECUI_RUNTIME_CAPABILITIES
79
+ };
80
+ }
81
+ function hasRequiredRuntimeCapabilities(value) {
82
+ if (!Array.isArray(value)) return false;
83
+ const capabilities = new Set(value);
84
+ return OPENSPECUI_RUNTIME_CAPABILITIES.every((capability) => capabilities.has(capability));
85
+ }
86
+ function isBackendHealthRuntimeMetadata(value) {
69
87
  if (!isRecord(value)) return false;
70
- return value.status === "ok" && typeof value.projectDir === "string" && typeof value.projectName === "string" && typeof value.watcherEnabled === "boolean" && typeof value.openspecuiVersion === "string" && value.hostedShellProtocolVersion === HOSTED_SHELL_PROTOCOL_VERSION && typeof value.embeddedUiUrl === "string" && isSupportedEmbeddedUiUrl(value.embeddedUiUrl);
88
+ return value.status === "ok" && typeof value.projectDir === "string" && typeof value.projectName === "string" && typeof value.watcherEnabled === "boolean" && typeof value.openspecuiVersion === "string" && value.hostedShellProtocolVersion === HOSTED_SHELL_PROTOCOL_VERSION && typeof value.embeddedUiUrl === "string" && hasRequiredRuntimeCapabilities(value.runtimeCapabilities);
89
+ }
90
+ function isHostedBackendHealthResponse(value) {
91
+ return isBackendHealthRuntimeMetadata(value) && isSupportedEmbeddedUiUrl(value.embeddedUiUrl);
71
92
  }
72
93
 
73
94
  //#endregion
74
- export { isHostedBackendHealthResponse as a, normalizeHostedAppBaseUrl as c, buildHostedLaunchUrl as i, resolveHostedAppBaseUrl as l, OFFICIAL_APP_BASE_URL as n, isSupportedEmbeddedUiUrl as o, buildEmbeddedUiLaunchUrl as r, normalizeEmbeddedUiUrl as s, HOSTED_SHELL_PROTOCOL_VERSION as t };
95
+ export { buildEmbeddedUiLaunchUrl as a, isHostedBackendHealthResponse as c, normalizeHostedAppBaseUrl as d, resolveHostedAppBaseUrl as f, buildBackendHealthPayload as i, isSupportedEmbeddedUiUrl as l, OFFICIAL_APP_BASE_URL as n, buildHostedLaunchUrl as o, OPENSPECUI_RUNTIME_CAPABILITIES as r, isBackendHealthRuntimeMetadata as s, HOSTED_SHELL_PROTOCOL_VERSION as t, normalizeEmbeddedUiUrl as u };
@@ -1,2 +1,2 @@
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-DHrXW3jc.mjs";
2
- export { HOSTED_SHELL_PROTOCOL_VERSION, HostedBackendHealthResponse, OFFICIAL_APP_BASE_URL, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, resolveHostedAppBaseUrl };
1
+ import { a as OPENSPECUI_RUNTIME_CAPABILITIES, c as buildEmbeddedUiLaunchUrl, d as isHostedBackendHealthResponse, f as isSupportedEmbeddedUiUrl, h as resolveHostedAppBaseUrl, i as OFFICIAL_APP_BASE_URL, l as buildHostedLaunchUrl, m as normalizeHostedAppBaseUrl, n as HOSTED_SHELL_PROTOCOL_VERSION, o as OpenSpecUIRuntimeCapability, p as normalizeEmbeddedUiUrl, r as HostedBackendHealthResponse, s as buildBackendHealthPayload, t as BackendHealthPayloadInput, u as isBackendHealthRuntimeMetadata } from "./hosted-app-BqJw9WgW.mjs";
2
+ export { BackendHealthPayloadInput, HOSTED_SHELL_PROTOCOL_VERSION, HostedBackendHealthResponse, OFFICIAL_APP_BASE_URL, OPENSPECUI_RUNTIME_CAPABILITIES, OpenSpecUIRuntimeCapability, buildBackendHealthPayload, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, isBackendHealthRuntimeMetadata, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, resolveHostedAppBaseUrl };
@@ -1,3 +1,3 @@
1
- import { a as isHostedBackendHealthResponse, c as normalizeHostedAppBaseUrl, i as buildHostedLaunchUrl, l as resolveHostedAppBaseUrl, n as OFFICIAL_APP_BASE_URL, o as isSupportedEmbeddedUiUrl, r as buildEmbeddedUiLaunchUrl, s as normalizeEmbeddedUiUrl, t as HOSTED_SHELL_PROTOCOL_VERSION } from "./hosted-app-Bl5W6LWQ.mjs";
1
+ import { a as buildEmbeddedUiLaunchUrl, c as isHostedBackendHealthResponse, d as normalizeHostedAppBaseUrl, f as resolveHostedAppBaseUrl, i as buildBackendHealthPayload, l as isSupportedEmbeddedUiUrl, n as OFFICIAL_APP_BASE_URL, o as buildHostedLaunchUrl, r as OPENSPECUI_RUNTIME_CAPABILITIES, s as isBackendHealthRuntimeMetadata, t as HOSTED_SHELL_PROTOCOL_VERSION, u as normalizeEmbeddedUiUrl } from "./hosted-app-Du65UHRo.mjs";
2
2
 
3
- export { HOSTED_SHELL_PROTOCOL_VERSION, OFFICIAL_APP_BASE_URL, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, resolveHostedAppBaseUrl };
3
+ export { HOSTED_SHELL_PROTOCOL_VERSION, OFFICIAL_APP_BASE_URL, OPENSPECUI_RUNTIME_CAPABILITIES, buildBackendHealthPayload, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, isBackendHealthRuntimeMetadata, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, resolveHostedAppBaseUrl };
package/dist/index.d.mts CHANGED
@@ -1,18 +1,18 @@
1
- import { a as DocumentTranslationDisplayModeSchema, i as DocumentTranslationDisplayMode, n as DocumentTranslationConfig, r as DocumentTranslationConfigSchema, t as DOCUMENT_TRANSLATION_DISPLAY_MODES } from "./document-translation-CuCbRCNb.mjs";
2
- 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-DHrXW3jc.mjs";
3
- import { A as SchemaArtifactSchema, C as ArtifactStatus, D as DependencyInfo, E as ChangeStatusSchema, F as SchemaResolution, I as SchemaResolutionSchema, L as TemplatesMap, M as SchemaDetailSchema, N as SchemaInfo, O as DependencyInfoSchema, P as SchemaInfoSchema, R as TemplatesSchema, S as ArtifactInstructionsSchema, T as ChangeStatus, _ as ApplyInstructionsContextFilesSchema, a as OpsxEntityFile, b as ApplyTaskSchema, c as buildOpsxEntityDetail, d as isOpsxGlobPattern, f as normalizeOpsxEntityPath, g as ApplyInstructions, h as parseOpsxEntityMetadata, i as OpsxEntityDiagnostic, j as SchemaDetail, k as SchemaArtifact, l as getOpsxEntityMetadataPath, m as opsxPathMatchesPattern, n as OpsxEntityArtifactFile, o as OpsxEntityReadOptions, p as opsxGlobToRegex, r as OpsxEntityDetail, s as OpsxEntityStage, t as OpsxEntityArtifact, u as getOpsxEntityRootRelativePath, v as ApplyInstructionsSchema, w as ArtifactStatusSchema, x as ArtifactInstructions, y as ApplyTask, z as isGlobPattern } from "./opsx-entity-Cz89hbt3.mjs";
4
- import { _ as SpecSchema, a as Delta, c as DeltaSchema, d as Requirement, f as RequirementSchema, g as Spec, h as ScenarioStepSchema, i as ChangeSchema, l as DeltaSpec, m as ScenarioStepKeywordSchema, n as ChangeFile, o as DeltaOperation, p as ScenarioStep, r as ChangeFileSchema, s as DeltaOperationType, t as Change, u as DeltaSpecSchema, v as Task, y as TaskSchema } from "./schemas-q7tGvvxx.mjs";
1
+ import { _ as TranslationCacheStatsSchema, a as DocumentTranslationDisplayMode, c as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, d as TranslationCacheEntrySchema, f as TranslationCacheReadInput, g as TranslationCacheStats, h as TranslationCacheSettingsSchema, i as DocumentTranslationConfigSchema, l as TRANSLATION_CACHE_POLICY_VERSION, m as TranslationCacheSettings, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as DocumentTranslationDisplayModeSchema, p as TranslationCacheReadInputSchema, r as DocumentTranslationConfig, s as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as TranslationCacheEntry, v as TranslationCacheWriteInput, y as TranslationCacheWriteInputSchema } from "./document-translation-D_ryOn9u.mjs";
2
+ import { a as OPENSPECUI_RUNTIME_CAPABILITIES, c as buildEmbeddedUiLaunchUrl, d as isHostedBackendHealthResponse, f as isSupportedEmbeddedUiUrl, h as resolveHostedAppBaseUrl, i as OFFICIAL_APP_BASE_URL, l as buildHostedLaunchUrl, m as normalizeHostedAppBaseUrl, n as HOSTED_SHELL_PROTOCOL_VERSION, o as OpenSpecUIRuntimeCapability, p as normalizeEmbeddedUiUrl, r as HostedBackendHealthResponse, s as buildBackendHealthPayload, u as isBackendHealthRuntimeMetadata } from "./hosted-app-BqJw9WgW.mjs";
3
+ import { A as SchemaArtifactSchema, C as ArtifactStatus, D as DependencyInfo, E as ChangeStatusSchema, F as SchemaResolution, I as SchemaResolutionSchema, L as TemplatesMap, M as SchemaDetailSchema, N as SchemaInfo, O as DependencyInfoSchema, P as SchemaInfoSchema, R as TemplatesSchema, S as ArtifactInstructionsSchema, T as ChangeStatus, _ as ApplyInstructionsContextFilesSchema, a as OpsxEntityFile, b as ApplyTaskSchema, c as buildOpsxEntityDetail, d as isOpsxGlobPattern, f as normalizeOpsxEntityPath, g as ApplyInstructions, h as parseOpsxEntityMetadata, i as OpsxEntityDiagnostic, j as SchemaDetail, k as SchemaArtifact, l as getOpsxEntityMetadataPath, m as opsxPathMatchesPattern, n as OpsxEntityArtifactFile, o as OpsxEntityReadOptions, p as opsxGlobToRegex, r as OpsxEntityDetail, s as OpsxEntityStage, t as OpsxEntityArtifact, u as getOpsxEntityRootRelativePath, v as ApplyInstructionsSchema, w as ArtifactStatusSchema, x as ArtifactInstructions, y as ApplyTask, z as isGlobPattern } from "./opsx-entity-FVK74l1t.mjs";
4
+ import { _ as SpecSchema, a as Delta, c as DeltaSchema, d as Requirement, f as RequirementSchema, g as Spec, h as ScenarioStepSchema, i as ChangeSchema, l as DeltaSpec, m as ScenarioStepKeywordSchema, n as ChangeFile, o as DeltaOperation, p as ScenarioStep, r as ChangeFileSchema, s as DeltaOperationType, t as Change, u as DeltaSpecSchema, v as Task, y as TaskSchema } from "./schemas-CFIuaIAS.mjs";
5
5
  import { a as MarkdownSourceRange, i as MarkdownSourcePoint, n as MarkdownFactKind, o as parseMarkdownFacts, r as MarkdownFactsDocument, s as toMarkdownFactKind, t as MarkdownFact } from "./markdown-facts-DxElzSsp.mjs";
6
6
  import { S as trimMarkdownSlice, _ as getMarkdownAnnotationsForFact, a as MarkdownAnnotationRule, b as getMarkdownHeadingFacts, c as MarkdownProjectionRule, d as MarkdownReadingPlugin, f as MarkdownReadingPluginRegistry, g as getMarkdownAnnotation, h as createMarkdownReadingDocumentFromFacts, i as MarkdownAnnotationInput, l as MarkdownReadingDocument, m as createMarkdownReadingDocument, n as MarkdownAnnotationConfidence, o as MarkdownFactSpan, p as buildMarkdownParentMap, r as MarkdownAnnotationContext, s as MarkdownProjectionContext, t as MarkdownAnnotation, u as MarkdownReadingLookup, v as getMarkdownFactSpan, x as sortMarkdownReadingPlugins, y as getMarkdownHeadingEnd } from "./markdown-reading-BC6uFgx0.mjs";
7
7
  import { c as OpenSpecScenarioStepKeyword, d as annotateOpenSpecMarkdown, f as builtinOpenSpecReadingPlugin, h as openSpecAnnotationRules, l as OpenSpecSemanticKind, m as getOpenSpecAnnotationsForFact, n as OpenSpecAnnotation, p as getOpenSpecAnnotation, r as OpenSpecAnnotationConfidence, t as AnnotatedOpenSpecDocument, u as annotateOpenSpecFacts } from "./openspec-annotations-DKP1Uuho.mjs";
8
- import { a as OpenSpecReadingSectionsProjection, c as ProjectedOpenSpecDocument, d as getOpenSpecReadingSections, f as parseOpenSpecMarkdownToSpec, i as OpenSpecProjectionOptions, l as createOpenSpecReadingPlugin, m as projectOpenSpecMarkdown, n as OPEN_SPEC_SPEC_PROJECTION_ID, o as OpenSpecRequirementBlock, p as projectAnnotatedOpenSpecToSpec, r as OpenSpecHeadingSection, s as OpenSpecScenarioBlock, t as OPEN_SPEC_READING_SECTIONS_PROJECTION_ID, u as getOpenSpecProjectionAnnotation } from "./openspec-projection-Co3CUAHe.mjs";
9
- import { D as normalizeLegacySoundId, E as getBuiltinSoundUrl, O as soundIdFromCustomHash, S as SoundIdSchema, T as customHashFromSoundId, a as BuiltinSoundOption, b as SoundConfigIdSchema, c as CustomSoundHashSchema, d as CustomSoundMetadata, f as CustomSoundMetadataFile, g as DEFAULT_NOTIFICATION_SOUND_ID, h as DEFAULT_BELL_SOUND_ID, i as BuiltinSoundIdSchema, l as CustomSoundId, m as CustomSoundMetadataSchema, n as BUILTIN_SOUND_OPTIONS, o as CUSTOM_SOUND_ADD_VALUE, p as CustomSoundMetadataFileSchema, r as BuiltinSoundId, s as CustomSoundHash, t as BUILTIN_SOUND_IDS, u as CustomSoundIdSchema, v as LEGACY_SOUND_ID_MAP, x as SoundId, y as SILENT_SOUND_ID } from "./sounds-BORGLPIt.mjs";
10
- import { A as TerminalNotificationProtocol, D as TerminalControlEvent, E as groupNotifications, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, T as getNotificationGroupLabel, _ as NotificationSource, b as TerminalNotificationParseResult, c as NotificationGroupKeySchema, d as NotificationRecord, f as NotificationRecordSchema, g as NotificationSoundSchema, h as NotificationSound, i as NotificationActionSchema, j as TerminalProgressState, k as TerminalControlParser, l as NotificationPublishInput, m as NotificationSettingsSchema, n as NOTIFICATION_SOUND_VALUES, o as NotificationGroup, p as NotificationSettings, r as NotificationAction, s as NotificationGroupKey, t as NOTIFICATION_SOUND_OPTIONS, u as NotificationPublishInputSchema, v as NotificationSourceSchema, w as getNotificationGroupKey, x as TerminalNotificationParser, y as TerminalNotificationEvent } from "./notifications-CbKmEdCU.mjs";
11
- import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-Dmi6lR7o.mjs";
8
+ import { a as OpenSpecReadingSectionsProjection, c as ProjectedOpenSpecDocument, d as getOpenSpecReadingSections, f as parseOpenSpecMarkdownToSpec, i as OpenSpecProjectionOptions, l as createOpenSpecReadingPlugin, m as projectOpenSpecMarkdown, n as OPEN_SPEC_SPEC_PROJECTION_ID, o as OpenSpecRequirementBlock, p as projectAnnotatedOpenSpecToSpec, r as OpenSpecHeadingSection, s as OpenSpecScenarioBlock, t as OPEN_SPEC_READING_SECTIONS_PROJECTION_ID, u as getOpenSpecProjectionAnnotation } from "./openspec-projection-Cv9_trD5.mjs";
9
+ import { D as normalizeLegacySoundId, E as getBuiltinSoundUrl, O as soundIdFromCustomHash, S as SoundIdSchema, T as customHashFromSoundId, a as BuiltinSoundOption, b as SoundConfigIdSchema, c as CustomSoundHashSchema, d as CustomSoundMetadata, f as CustomSoundMetadataFile, g as DEFAULT_NOTIFICATION_SOUND_ID, h as DEFAULT_BELL_SOUND_ID, i as BuiltinSoundIdSchema, l as CustomSoundId, m as CustomSoundMetadataSchema, n as BUILTIN_SOUND_OPTIONS, o as CUSTOM_SOUND_ADD_VALUE, p as CustomSoundMetadataFileSchema, r as BuiltinSoundId, s as CustomSoundHash, t as BUILTIN_SOUND_IDS, u as CustomSoundIdSchema, v as LEGACY_SOUND_ID_MAP, x as SoundId, y as SILENT_SOUND_ID } from "./sounds-Dz-aToh_.mjs";
10
+ import { A as TerminalNotificationProtocol, D as TerminalControlEvent, E as groupNotifications, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, T as getNotificationGroupLabel, _ as NotificationSource, b as TerminalNotificationParseResult, c as NotificationGroupKeySchema, d as NotificationRecord, f as NotificationRecordSchema, g as NotificationSoundSchema, h as NotificationSound, i as NotificationActionSchema, j as TerminalProgressState, k as TerminalControlParser, l as NotificationPublishInput, m as NotificationSettingsSchema, n as NOTIFICATION_SOUND_VALUES, o as NotificationGroup, p as NotificationSettings, r as NotificationAction, s as NotificationGroupKey, t as NOTIFICATION_SOUND_OPTIONS, u as NotificationPublishInputSchema, v as NotificationSourceSchema, w as getNotificationGroupKey, x as TerminalNotificationParser, y as TerminalNotificationEvent } from "./notifications-C9NFber0.mjs";
11
+ import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-Btx-il9w.mjs";
12
12
  import { n as toOpsxDisplayPath, t as VIRTUAL_PROJECT_DIRNAME } from "./opsx-display-path-BKUYCqwP.mjs";
13
- import { $ as PtyServerMessageSchema, B as PtyCreatedResponseSchema, C as TerminalSpawnCommand, E as getTerminalCommandDefaultValues, F as PtyBufferResponseSchema, G as PtyListMessageSchema, H as PtyErrorResponseSchema, I as PtyClientMessage, J as PtyPlatform, K as PtyListResponseSchema, L as PtyClientMessageSchema, M as resolveTerminalShellDefaults, N as PtyAttachMessageSchema, O as quoteTerminalShellArg, P as PtyBellResponseSchema, Q as PtyServerMessage, R as PtyCloseMessageSchema, S as TerminalShellQuoteStyleSchema, U as PtyExitResponseSchema, V as PtyErrorCodeSchema, W as PtyInputMessageSchema, X as PtyProcessTitleResponseSchema, Y as PtyPlatformSchema, Z as PtyResizeMessageSchema, _ as TerminalShellDefaults, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, et as PtySessionInfo, 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 PtyOutputResponseSchema, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, tt as PtyTitleResponseSchema, u as TerminalCommandFieldValues, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile, z as PtyCreateMessageSchema } from "./terminal-invocation-C733ofmf.mjs";
13
+ import { $ as PtyServerMessageSchema, B as PtyCreatedResponseSchema, C as TerminalSpawnCommand, E as getTerminalCommandDefaultValues, F as PtyBufferResponseSchema, G as PtyListMessageSchema, H as PtyErrorResponseSchema, I as PtyClientMessage, J as PtyPlatform, K as PtyListResponseSchema, L as PtyClientMessageSchema, M as resolveTerminalShellDefaults, N as PtyAttachMessageSchema, O as quoteTerminalShellArg, P as PtyBellResponseSchema, Q as PtyServerMessage, R as PtyCloseMessageSchema, S as TerminalShellQuoteStyleSchema, U as PtyExitResponseSchema, V as PtyErrorCodeSchema, W as PtyInputMessageSchema, X as PtyProcessTitleResponseSchema, Y as PtyPlatformSchema, Z as PtyResizeMessageSchema, _ as TerminalShellDefaults, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, et as PtySessionInfo, 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 PtyOutputResponseSchema, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, tt as PtyTitleResponseSchema, u as TerminalCommandFieldValues, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile, z as PtyCreateMessageSchema } from "./terminal-invocation-42mkV55p.mjs";
14
14
  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-DdhVuegL.mjs";
15
- import { n as parseOpsxSchemaDetail, t as ParsedOpsxSchemaDetail } from "./opsx-schema-detail-CuDl2xjZ.mjs";
15
+ import { n as parseOpsxSchemaDetail, t as ParsedOpsxSchemaDetail } from "./opsx-schema-detail-COXlZ7Gm.mjs";
16
16
  import { AsyncLocalStorage } from "node:async_hooks";
17
17
  import { z } from "zod";
18
18
  import { EventEmitter } from "events";
@@ -163,9 +163,9 @@ declare class OpenSpecAdapter {
163
163
  name: string;
164
164
  overview: string;
165
165
  requirements: {
166
- title: string;
167
- id: string;
168
166
  text: string;
167
+ id: string;
168
+ title: string;
169
169
  bodyMarkdown: string;
170
170
  scenarios: {
171
171
  title: string;
@@ -187,10 +187,6 @@ declare class OpenSpecAdapter {
187
187
  changes: {
188
188
  id: string;
189
189
  name: string;
190
- progress: {
191
- completed: number;
192
- total: number;
193
- };
194
190
  why: string;
195
191
  whatChanges: string;
196
192
  deltas: {
@@ -198,9 +194,9 @@ declare class OpenSpecAdapter {
198
194
  spec: string;
199
195
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
200
196
  requirements?: {
201
- title: string;
202
- id: string;
203
197
  text: string;
198
+ id: string;
199
+ title: string;
204
200
  bodyMarkdown: string;
205
201
  scenarios: {
206
202
  title: string;
@@ -214,9 +210,9 @@ declare class OpenSpecAdapter {
214
210
  }[];
215
211
  }[] | undefined;
216
212
  requirement?: {
217
- title: string;
218
- id: string;
219
213
  text: string;
214
+ id: string;
215
+ title: string;
220
216
  bodyMarkdown: string;
221
217
  scenarios: {
222
218
  title: string;
@@ -235,11 +231,15 @@ declare class OpenSpecAdapter {
235
231
  } | undefined;
236
232
  }[];
237
233
  tasks: {
238
- id: string;
239
234
  text: string;
235
+ id: string;
240
236
  completed: boolean;
241
237
  section?: string | undefined;
242
238
  }[];
239
+ progress: {
240
+ completed: number;
241
+ total: number;
242
+ };
243
243
  metadata?: {
244
244
  version: string;
245
245
  format: "openspec-change";
@@ -1021,14 +1021,17 @@ declare const OpenSpecUIConfigSchema: z.ZodObject<{
1021
1021
  enabled: z.ZodDefault<z.ZodBoolean>;
1022
1022
  targetLanguage: z.ZodDefault<z.ZodString>;
1023
1023
  displayMode: z.ZodDefault<z.ZodEnum<["direct", "bilingual"]>>;
1024
+ cacheEnabled: z.ZodDefault<z.ZodBoolean>;
1024
1025
  }, "strip", z.ZodTypeAny, {
1025
1026
  enabled: boolean;
1026
1027
  targetLanguage: string;
1027
1028
  displayMode: "direct" | "bilingual";
1029
+ cacheEnabled: boolean;
1028
1030
  }, {
1029
1031
  enabled?: boolean | undefined;
1030
1032
  targetLanguage?: string | undefined;
1031
1033
  displayMode?: "direct" | "bilingual" | undefined;
1034
+ cacheEnabled?: boolean | undefined;
1032
1035
  }>>;
1033
1036
  }, "strip", z.ZodTypeAny, {
1034
1037
  terminal: {
@@ -1071,6 +1074,7 @@ declare const OpenSpecUIConfigSchema: z.ZodObject<{
1071
1074
  enabled: boolean;
1072
1075
  targetLanguage: string;
1073
1076
  displayMode: "direct" | "bilingual";
1077
+ cacheEnabled: boolean;
1074
1078
  };
1075
1079
  }, {
1076
1080
  terminal?: {
@@ -1113,6 +1117,7 @@ declare const OpenSpecUIConfigSchema: z.ZodObject<{
1113
1117
  enabled?: boolean | undefined;
1114
1118
  targetLanguage?: string | undefined;
1115
1119
  displayMode?: "direct" | "bilingual" | undefined;
1120
+ cacheEnabled?: boolean | undefined;
1116
1121
  } | undefined;
1117
1122
  }>;
1118
1123
  type OpenSpecUIConfig = z.infer<typeof OpenSpecUIConfigSchema>;
@@ -1200,6 +1205,49 @@ declare class ConfigManager {
1200
1205
  setTerminalConfig(terminal: Partial<TerminalConfig>): Promise<void>;
1201
1206
  }
1202
1207
  //#endregion
1208
+ //#region src/global-settings.d.ts
1209
+ declare const OpenSpecUIGlobalSettingsSchema: z.ZodObject<{
1210
+ translationCache: z.ZodDefault<z.ZodObject<{
1211
+ entryLimit: z.ZodDefault<z.ZodNumber>;
1212
+ }, "strip", z.ZodTypeAny, {
1213
+ entryLimit: number;
1214
+ }, {
1215
+ entryLimit?: number | undefined;
1216
+ }>>;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ translationCache: {
1219
+ entryLimit: number;
1220
+ };
1221
+ }, {
1222
+ translationCache?: {
1223
+ entryLimit?: number | undefined;
1224
+ } | undefined;
1225
+ }>;
1226
+ type OpenSpecUIGlobalSettings = z.infer<typeof OpenSpecUIGlobalSettingsSchema>;
1227
+ type OpenSpecUIGlobalSettingsUpdate = {
1228
+ translationCache?: Partial<TranslationCacheSettings>;
1229
+ };
1230
+ type PersistedOpenSpecUIGlobalSettings = {
1231
+ translationCache?: Partial<TranslationCacheSettings>;
1232
+ };
1233
+ declare const DEFAULT_GLOBAL_SETTINGS: OpenSpecUIGlobalSettings;
1234
+ declare function getDefaultGlobalSettingsPath(): string;
1235
+ declare function toPersistedGlobalSettings(settings: OpenSpecUIGlobalSettings): PersistedOpenSpecUIGlobalSettings;
1236
+ /**
1237
+ * User-level OpenSpecUI settings stored outside project worktrees.
1238
+ *
1239
+ * This manager owns cross-project policy only; project opt-in remains in
1240
+ * `openspec/.openspecui.json`.
1241
+ */
1242
+ declare class GlobalSettingsManager {
1243
+ private readonly settingsPath;
1244
+ constructor(settingsPath?: string);
1245
+ getSettingsPath(): string;
1246
+ private parseSettingsContent;
1247
+ readSettings(): Promise<OpenSpecUIGlobalSettings>;
1248
+ writeSettings(update: OpenSpecUIGlobalSettingsUpdate): Promise<void>;
1249
+ }
1250
+ //#endregion
1203
1251
  //#region src/cli-executor.d.ts
1204
1252
  /** CLI 执行结果 */
1205
1253
  interface CliResult {
@@ -1956,4 +2004,4 @@ declare class OpsxKernel {
1956
2004
  private combineSignals;
1957
2005
  }
1958
2006
  //#endregion
1959
- export { type AIToolOption, AI_TOOLS, type AnnotatedOpenSpecDocument, type ApplyInstructions, ApplyInstructionsContextFilesSchema, ApplyInstructionsSchema, type ApplyTask, ApplyTaskSchema, type ArchiveMeta, type ArtifactInstructions, ArtifactInstructionsSchema, type ArtifactStatus, ArtifactStatusSchema, BUILTIN_SOUND_IDS, BUILTIN_SOUND_OPTIONS, BUILTIN_TERMINAL_SPAWN_COMMANDS, type BuiltinSoundId, BuiltinSoundIdSchema, type BuiltinSoundOption, CODE_EDITOR_THEME_VALUES, CUSTOM_SOUND_ADD_VALUE, type Change, type ChangeFile, ChangeFileSchema, type ChangeMeta, ChangeSchema, type ChangeStatus, ChangeStatusSchema, CliExecutor, type CliResult, type CliRunnerAttempt, type CliSniffResult, type CliStreamEvent, type CodeEditorTheme, CodeEditorThemeSchema, ConfigManager, type CustomSoundHash, CustomSoundHashSchema, type CustomSoundId, CustomSoundIdSchema, type CustomSoundMetadata, type CustomSoundMetadataFile, CustomSoundMetadataFileSchema, CustomSoundMetadataSchema, DASHBOARD_METRIC_KEYS, DEFAULT_BELL_SOUND_ID, DEFAULT_CONFIG, DEFAULT_GIT_DIFF_EAGER_LINE_BUDGET, DEFAULT_NOTIFICATION_SOUND_ID, DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, DOCUMENT_TRANSLATION_DISPLAY_MODES, 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 DocumentTranslationConfig, DocumentTranslationConfigSchema, type DocumentTranslationDisplayMode, DocumentTranslationDisplayModeSchema, 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, LEGACY_SOUND_ID_MAP, type MarkdownAnnotation, type MarkdownAnnotationConfidence, type MarkdownAnnotationContext, type MarkdownAnnotationInput, type MarkdownAnnotationRule, type MarkdownFact, type MarkdownFactKind, type MarkdownFactSpan, type MarkdownFactsDocument, MarkdownParser, type MarkdownProjectionContext, type MarkdownProjectionRule, type MarkdownReadingDocument, type MarkdownReadingLookup, type MarkdownReadingPlugin, MarkdownReadingPluginRegistry, type MarkdownSourcePoint, type MarkdownSourceRange, NOTIFICATION_SOUND_OPTIONS, NOTIFICATION_SOUND_VALUES, type NotificationAction, NotificationActionSchema, type NotificationGroup, type NotificationGroupKey, NotificationGroupKeySchema, type NotificationPublishInput, NotificationPublishInputSchema, type NotificationRecord, NotificationRecordSchema, type NotificationSettings, NotificationSettingsSchema, type NotificationSound, NotificationSoundSchema, type NotificationSource, NotificationSourceSchema, OFFICIAL_APP_BASE_URL, OPENSPECUI_HOOKS_VERSION, OPEN_SPEC_READING_SECTIONS_PROJECTION_ID, OPEN_SPEC_SPEC_PROJECTION_ID, OPSX_AGENT_INVOCATION_MODE_VALUES, type OnReadDocumentHookV1, type OnRunWorkflowHookV1, OpenSpecAdapter, type OpenSpecAnnotation, type OpenSpecAnnotationConfidence, type OpenSpecHeadingSection, type OpenSpecProjectionOptions, type OpenSpecReadingSectionsProjection, type OpenSpecRequirementBlock, type OpenSpecScenarioBlock, type OpenSpecScenarioStepKeyword, type OpenSpecSemanticKind, type OpenSpecUIConfig, OpenSpecUIConfigSchema, type OpenSpecUIConfigUpdate, type OpenSpecUIHooksV1, OpenSpecWatcher, type OpsxAgentInvocationMode, OpsxAgentInvocationModeSchema, type OpsxConfig, OpsxConfigSchema, type OpsxEntityArtifact, type OpsxEntityArtifactFile, type OpsxEntityDetail, type OpsxEntityDiagnostic, type OpsxEntityFile, type OpsxEntityReadOptions, type OpsxEntityStage, OpsxKernel, type ParsedOpsxSchemaDetail, type PathCallback, type ProjectRecoveryStatus, type ProjectResidencyEvictionReason, type ProjectResidencyStatus, ProjectWatcher, type ProjectWatcherReinitializeReason, type ProjectWatcherRuntimeStatus, type ProjectWatcherRuntimeStatusListener, type ProjectedOpenSpecDocument, PtyAttachMessageSchema, PtyBellResponseSchema, PtyBufferResponseSchema, type PtyClientMessage, PtyClientMessageSchema, PtyCloseMessageSchema, PtyCreateMessageSchema, PtyCreatedResponseSchema, PtyErrorCodeSchema, PtyErrorResponseSchema, PtyExitResponseSchema, PtyInputMessageSchema, PtyListMessageSchema, PtyListResponseSchema, PtyOutputResponseSchema, type PtyPlatform, PtyPlatformSchema, PtyProcessTitleResponseSchema, 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, SILENT_SOUND_ID, type ScenarioStep, ScenarioStepKeywordSchema, ScenarioStepSchema, type SchemaArtifact, SchemaArtifactSchema, type SchemaDetail, SchemaDetailSchema, type SchemaInfo, SchemaInfoSchema, type SchemaResolution, SchemaResolutionSchema, SoundConfigIdSchema, type SoundId, SoundIdSchema, type Spec, type SpecMeta, SpecSchema, TERMINAL_BELL_SOUND_OPTIONS, TERMINAL_BELL_SOUND_VALUES, 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 TerminalBellSound, TerminalBellSoundSchema, type TerminalCommandArgument, type TerminalCommandField, TerminalCommandFieldSchema, type TerminalCommandFieldValue, type TerminalCommandFieldValues, type TerminalConfig, TerminalConfigSchema, type TerminalControlEvent, type TerminalControlParseResult, TerminalControlParser, type TerminalInvocationSettings, TerminalInvocationSettingsSchema, type TerminalNotificationEvent, type TerminalNotificationParseResult, TerminalNotificationParser, type TerminalNotificationProtocol, type TerminalProgressState, type TerminalPromptState, type TerminalRendererEngine, TerminalRendererEngineSchema, type TerminalShellDefaults, type TerminalShellProfile, TerminalShellProfileSchema, type TerminalShellQuoteStyle, TerminalShellQuoteStyleSchema, type TerminalSpawnCommand, TerminalSpawnCommandSchema, type TerminalThemeId, type TerminalThemeMode, TerminalThemeModeSchema, TerminalThemeSchema, type TerminalTitleTarget, 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, annotateOpenSpecFacts, annotateOpenSpecMarkdown, buildCliRunnerCandidates, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, buildMarkdownParentMap, buildOpsxEntityDetail, builtinOpenSpecReadingPlugin, clearCache, closeAllProjectWatchers, closeAllWatchers, contextStorage, createCleanCliEnv, createFileChangeObservable, createMarkdownReadingDocument, createMarkdownReadingDocumentFromFacts, createOpenSpecReadingPlugin, customHashFromSoundId, getActiveWatcherCount, getAllToolIds, getAllTools, getAvailableToolIds, getAvailableTools, getBuiltinSoundUrl, getCacheSize, getConfiguredTools, getDefaultCliCommand, getDefaultCliCommandString, getDetectedProjectTools, getMarkdownAnnotation, getMarkdownAnnotationsForFact, getMarkdownFactSpan, getMarkdownHeadingEnd, getMarkdownHeadingFacts, getNotificationGroupKey, getNotificationGroupLabel, getOpenSpecAnnotation, getOpenSpecAnnotationsForFact, getOpenSpecProjectionAnnotation, getOpenSpecReadingSections, getOpsxEntityMetadataPath, getOpsxEntityRootRelativePath, getProjectWatcher, getTerminalCommandDefaultValues, getToolById, getToolInitStates, getWatchedProjectDir, getWatcherRuntimeStatus, groupNotifications, initWatcherPool, isGlobPattern, isHostedBackendHealthResponse, isOpsxGlobPattern, isSupportedEmbeddedUiUrl, isTerminalRendererEngine, isToolConfigured, isWatcherPoolInitialized, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, normalizeLegacySoundId, normalizeOpsxEntityPath, openSpecAnnotationRules, opsxGlobToRegex, opsxPathMatchesPattern, parseCliCommand, parseMarkdownFacts, parseOpenSpecMarkdownToSpec, parseOpsxEntityMetadata, parseOpsxSchemaDetail, projectAnnotatedOpenSpecToSpec, projectOpenSpecMarkdown, quoteTerminalShellArg, reactiveExists, reactiveReadDir, reactiveReadFile, reactiveStat, renderTerminalCommandArgs, renderTerminalSpawnCommandLine, resolveHostedAppBaseUrl, resolveTerminalShellDefaults, sniffGlobalCli, sortMarkdownReadingPlugins, soundIdFromCustomHash, subscribeWatcherRuntimeStatus, terminalNotificationEventToPublishInput, toMarkdownFactKind, toOpsxDisplayPath, trimMarkdownSlice };
2007
+ export { type AIToolOption, AI_TOOLS, type AnnotatedOpenSpecDocument, type ApplyInstructions, ApplyInstructionsContextFilesSchema, ApplyInstructionsSchema, type ApplyTask, ApplyTaskSchema, type ArchiveMeta, type ArtifactInstructions, ArtifactInstructionsSchema, type ArtifactStatus, ArtifactStatusSchema, BUILTIN_SOUND_IDS, BUILTIN_SOUND_OPTIONS, BUILTIN_TERMINAL_SPAWN_COMMANDS, type BuiltinSoundId, BuiltinSoundIdSchema, type BuiltinSoundOption, CODE_EDITOR_THEME_VALUES, CUSTOM_SOUND_ADD_VALUE, type Change, type ChangeFile, ChangeFileSchema, type ChangeMeta, ChangeSchema, type ChangeStatus, ChangeStatusSchema, CliExecutor, type CliResult, type CliRunnerAttempt, type CliSniffResult, type CliStreamEvent, type CodeEditorTheme, CodeEditorThemeSchema, ConfigManager, type CustomSoundHash, CustomSoundHashSchema, type CustomSoundId, CustomSoundIdSchema, type CustomSoundMetadata, type CustomSoundMetadataFile, CustomSoundMetadataFileSchema, CustomSoundMetadataSchema, DASHBOARD_METRIC_KEYS, DEFAULT_BELL_SOUND_ID, DEFAULT_CONFIG, DEFAULT_GIT_DIFF_EAGER_LINE_BUDGET, DEFAULT_GLOBAL_SETTINGS, DEFAULT_NOTIFICATION_SOUND_ID, DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, DOCUMENT_TRANSLATION_DISPLAY_MODES, 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 DocumentTranslationConfig, DocumentTranslationConfigSchema, type DocumentTranslationDisplayMode, DocumentTranslationDisplayModeSchema, 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, GlobalSettingsManager, HOSTED_SHELL_PROTOCOL_VERSION, type HookDiagnosticLevel, type HookDiagnosticV1, type HookLifecycleV1, type HostedBackendHealthResponse, LEGACY_SOUND_ID_MAP, MAX_TRANSLATION_CACHE_ENTRY_LIMIT, MIN_TRANSLATION_CACHE_ENTRY_LIMIT, type MarkdownAnnotation, type MarkdownAnnotationConfidence, type MarkdownAnnotationContext, type MarkdownAnnotationInput, type MarkdownAnnotationRule, type MarkdownFact, type MarkdownFactKind, type MarkdownFactSpan, type MarkdownFactsDocument, MarkdownParser, type MarkdownProjectionContext, type MarkdownProjectionRule, type MarkdownReadingDocument, type MarkdownReadingLookup, type MarkdownReadingPlugin, MarkdownReadingPluginRegistry, type MarkdownSourcePoint, type MarkdownSourceRange, NOTIFICATION_SOUND_OPTIONS, NOTIFICATION_SOUND_VALUES, type NotificationAction, NotificationActionSchema, type NotificationGroup, type NotificationGroupKey, NotificationGroupKeySchema, type NotificationPublishInput, NotificationPublishInputSchema, type NotificationRecord, NotificationRecordSchema, type NotificationSettings, NotificationSettingsSchema, type NotificationSound, NotificationSoundSchema, type NotificationSource, NotificationSourceSchema, OFFICIAL_APP_BASE_URL, OPENSPECUI_HOOKS_VERSION, OPENSPECUI_RUNTIME_CAPABILITIES, OPEN_SPEC_READING_SECTIONS_PROJECTION_ID, OPEN_SPEC_SPEC_PROJECTION_ID, OPSX_AGENT_INVOCATION_MODE_VALUES, type OnReadDocumentHookV1, type OnRunWorkflowHookV1, OpenSpecAdapter, type OpenSpecAnnotation, type OpenSpecAnnotationConfidence, type OpenSpecHeadingSection, type OpenSpecProjectionOptions, type OpenSpecReadingSectionsProjection, type OpenSpecRequirementBlock, type OpenSpecScenarioBlock, type OpenSpecScenarioStepKeyword, type OpenSpecSemanticKind, type OpenSpecUIConfig, OpenSpecUIConfigSchema, type OpenSpecUIConfigUpdate, type OpenSpecUIGlobalSettings, OpenSpecUIGlobalSettingsSchema, type OpenSpecUIGlobalSettingsUpdate, type OpenSpecUIHooksV1, type OpenSpecUIRuntimeCapability, OpenSpecWatcher, type OpsxAgentInvocationMode, OpsxAgentInvocationModeSchema, type OpsxConfig, OpsxConfigSchema, type OpsxEntityArtifact, type OpsxEntityArtifactFile, type OpsxEntityDetail, type OpsxEntityDiagnostic, type OpsxEntityFile, type OpsxEntityReadOptions, type OpsxEntityStage, OpsxKernel, type ParsedOpsxSchemaDetail, type PathCallback, type PersistedOpenSpecUIGlobalSettings, type ProjectRecoveryStatus, type ProjectResidencyEvictionReason, type ProjectResidencyStatus, ProjectWatcher, type ProjectWatcherReinitializeReason, type ProjectWatcherRuntimeStatus, type ProjectWatcherRuntimeStatusListener, type ProjectedOpenSpecDocument, PtyAttachMessageSchema, PtyBellResponseSchema, PtyBufferResponseSchema, type PtyClientMessage, PtyClientMessageSchema, PtyCloseMessageSchema, PtyCreateMessageSchema, PtyCreatedResponseSchema, PtyErrorCodeSchema, PtyErrorResponseSchema, PtyExitResponseSchema, PtyInputMessageSchema, PtyListMessageSchema, PtyListResponseSchema, PtyOutputResponseSchema, type PtyPlatform, PtyPlatformSchema, PtyProcessTitleResponseSchema, 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, SILENT_SOUND_ID, type ScenarioStep, ScenarioStepKeywordSchema, ScenarioStepSchema, type SchemaArtifact, SchemaArtifactSchema, type SchemaDetail, SchemaDetailSchema, type SchemaInfo, SchemaInfoSchema, type SchemaResolution, SchemaResolutionSchema, SoundConfigIdSchema, type SoundId, SoundIdSchema, type Spec, type SpecMeta, SpecSchema, TERMINAL_BELL_SOUND_OPTIONS, TERMINAL_BELL_SOUND_VALUES, TERMINAL_COMMAND_FIELD_TYPE_VALUES, TERMINAL_SHELL_QUOTE_STYLE_VALUES, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TOOL_WORKFLOW_TO_SKILL_DIR, TRANSLATION_CACHE_POLICY_VERSION, type Task, TaskSchema, type TemplateContentMap, type TemplatesMap, TemplatesSchema, type TerminalBellSound, TerminalBellSoundSchema, type TerminalCommandArgument, type TerminalCommandField, TerminalCommandFieldSchema, type TerminalCommandFieldValue, type TerminalCommandFieldValues, type TerminalConfig, TerminalConfigSchema, type TerminalControlEvent, type TerminalControlParseResult, TerminalControlParser, type TerminalInvocationSettings, TerminalInvocationSettingsSchema, type TerminalNotificationEvent, type TerminalNotificationParseResult, TerminalNotificationParser, type TerminalNotificationProtocol, type TerminalProgressState, type TerminalPromptState, type TerminalRendererEngine, TerminalRendererEngineSchema, type TerminalShellDefaults, type TerminalShellProfile, TerminalShellProfileSchema, type TerminalShellQuoteStyle, TerminalShellQuoteStyleSchema, type TerminalSpawnCommand, TerminalSpawnCommandSchema, type TerminalThemeId, type TerminalThemeMode, TerminalThemeModeSchema, TerminalThemeSchema, type TerminalTitleTarget, type ToolConfig, type ToolInitDelivery, type ToolInitState, type ToolInitStatus, type ToolWorkflowId, type TranslationCacheEntry, TranslationCacheEntrySchema, type TranslationCacheReadInput, TranslationCacheReadInputSchema, type TranslationCacheSettings, TranslationCacheSettingsSchema, type TranslationCacheStats, TranslationCacheStatsSchema, type TranslationCacheWriteInput, TranslationCacheWriteInputSchema, VIRTUAL_PROJECT_DIRNAME, type ValidationIssue, type ValidationResult, Validator, type WatchEvent, type WatchEventType, type WatcherRuntimeStatus, type WorkflowActionV1, type WorkflowInvocationModeResolutionV1, type WorkflowRequestedModeV1, acquireWatcher, annotateOpenSpecFacts, annotateOpenSpecMarkdown, buildBackendHealthPayload, buildCliRunnerCandidates, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, buildMarkdownParentMap, buildOpsxEntityDetail, builtinOpenSpecReadingPlugin, clearCache, closeAllProjectWatchers, closeAllWatchers, contextStorage, createCleanCliEnv, createFileChangeObservable, createMarkdownReadingDocument, createMarkdownReadingDocumentFromFacts, createOpenSpecReadingPlugin, customHashFromSoundId, getActiveWatcherCount, getAllToolIds, getAllTools, getAvailableToolIds, getAvailableTools, getBuiltinSoundUrl, getCacheSize, getConfiguredTools, getDefaultCliCommand, getDefaultCliCommandString, getDefaultGlobalSettingsPath, getDetectedProjectTools, getMarkdownAnnotation, getMarkdownAnnotationsForFact, getMarkdownFactSpan, getMarkdownHeadingEnd, getMarkdownHeadingFacts, getNotificationGroupKey, getNotificationGroupLabel, getOpenSpecAnnotation, getOpenSpecAnnotationsForFact, getOpenSpecProjectionAnnotation, getOpenSpecReadingSections, getOpsxEntityMetadataPath, getOpsxEntityRootRelativePath, getProjectWatcher, getTerminalCommandDefaultValues, getToolById, getToolInitStates, getWatchedProjectDir, getWatcherRuntimeStatus, groupNotifications, initWatcherPool, isBackendHealthRuntimeMetadata, isGlobPattern, isHostedBackendHealthResponse, isOpsxGlobPattern, isSupportedEmbeddedUiUrl, isTerminalRendererEngine, isToolConfigured, isWatcherPoolInitialized, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, normalizeLegacySoundId, normalizeOpsxEntityPath, openSpecAnnotationRules, opsxGlobToRegex, opsxPathMatchesPattern, parseCliCommand, parseMarkdownFacts, parseOpenSpecMarkdownToSpec, parseOpsxEntityMetadata, parseOpsxSchemaDetail, projectAnnotatedOpenSpecToSpec, projectOpenSpecMarkdown, quoteTerminalShellArg, reactiveExists, reactiveReadDir, reactiveReadFile, reactiveStat, renderTerminalCommandArgs, renderTerminalSpawnCommandLine, resolveHostedAppBaseUrl, resolveTerminalShellDefaults, sniffGlobalCli, sortMarkdownReadingPlugins, soundIdFromCustomHash, subscribeWatcherRuntimeStatus, terminalNotificationEventToPublishInput, toMarkdownFactKind, toOpsxDisplayPath, toPersistedGlobalSettings, trimMarkdownSlice };