@openspecui/core 3.7.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/document-translation-CvUxMOPl.mjs +44 -0
  2. package/dist/document-translation-VavI1QOl.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 +74 -26
  10. package/dist/index.mjs +98 -17
  11. package/dist/{notifications-CbKmEdCU.d.mts → notifications-Clq2bq-i.d.mts} +9 -9
  12. package/dist/notifications.d.mts +2 -2
  13. package/dist/{openspec-projection-Co3CUAHe.d.mts → openspec-projection-DgnEag63.d.mts} +1 -1
  14. package/dist/openspec-projection.d.mts +2 -2
  15. package/dist/{opsx-entity-Cz89hbt3.d.mts → opsx-entity-BhvuPO8B.d.mts} +15 -15
  16. package/dist/opsx-entity.d.mts +2 -2
  17. package/dist/{opsx-schema-detail-CuDl2xjZ.d.mts → opsx-schema-detail-SFENVa0g.d.mts} +1 -1
  18. package/dist/opsx-schema-detail.d.mts +3 -3
  19. package/dist/{schemas-q7tGvvxx.d.mts → schemas-DZwT0am4.d.mts} +34 -34
  20. package/dist/{sounds-BORGLPIt.d.mts → sounds-PZqzoKxJ.d.mts} +1 -1
  21. package/dist/sounds.d.mts +1 -1
  22. package/dist/{terminal-audio-Dmi6lR7o.d.mts → terminal-audio-Ci4x-tyQ.d.mts} +2 -2
  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-owPZDVJF.d.mts} +36 -36
  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
@@ -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-C733ofmf.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-owPZDVJF.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 };
package/package.json CHANGED
@@ -1,81 +1,117 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.mts",
8
8
  "exports": {
9
9
  ".": {
10
+ "development": "./src/index.ts",
10
11
  "import": "./dist/index.mjs",
12
+ "default": "./dist/index.mjs",
11
13
  "types": "./dist/index.d.mts"
12
14
  },
13
15
  "./dashboard-display": {
16
+ "development": "./src/dashboard-display.ts",
14
17
  "import": "./dist/dashboard-display.mjs",
18
+ "default": "./dist/dashboard-display.mjs",
15
19
  "types": "./dist/dashboard-display.d.mts"
16
20
  },
17
21
  "./hosted-app": {
22
+ "development": "./src/hosted-app.ts",
18
23
  "import": "./dist/hosted-app.mjs",
24
+ "default": "./dist/hosted-app.mjs",
19
25
  "types": "./dist/hosted-app.d.mts"
20
26
  },
21
27
  "./openspec-compat": {
28
+ "development": "./src/openspec-compat.ts",
22
29
  "import": "./dist/openspec-compat.mjs",
30
+ "default": "./dist/openspec-compat.mjs",
23
31
  "types": "./dist/openspec-compat.d.mts"
24
32
  },
25
33
  "./markdown-facts": {
34
+ "development": "./src/markdown-facts.ts",
26
35
  "import": "./dist/markdown-facts.mjs",
36
+ "default": "./dist/markdown-facts.mjs",
27
37
  "types": "./dist/markdown-facts.d.mts"
28
38
  },
29
39
  "./markdown-reading": {
40
+ "development": "./src/markdown-reading.ts",
30
41
  "import": "./dist/markdown-reading.mjs",
42
+ "default": "./dist/markdown-reading.mjs",
31
43
  "types": "./dist/markdown-reading.d.mts"
32
44
  },
33
45
  "./document-translation": {
46
+ "development": "./src/document-translation.ts",
34
47
  "import": "./dist/document-translation.mjs",
48
+ "default": "./dist/document-translation.mjs",
35
49
  "types": "./dist/document-translation.d.mts"
36
50
  },
37
51
  "./openspec-annotations": {
52
+ "development": "./src/openspec-annotations.ts",
38
53
  "import": "./dist/openspec-annotations.mjs",
54
+ "default": "./dist/openspec-annotations.mjs",
39
55
  "types": "./dist/openspec-annotations.d.mts"
40
56
  },
41
57
  "./openspec-projection": {
58
+ "development": "./src/openspec-projection.ts",
42
59
  "import": "./dist/openspec-projection.mjs",
60
+ "default": "./dist/openspec-projection.mjs",
43
61
  "types": "./dist/openspec-projection.d.mts"
44
62
  },
45
63
  "./opsx-display-path": {
64
+ "development": "./src/opsx-display-path.ts",
46
65
  "import": "./dist/opsx-display-path.mjs",
66
+ "default": "./dist/opsx-display-path.mjs",
47
67
  "types": "./dist/opsx-display-path.d.mts"
48
68
  },
49
69
  "./opsx-entity": {
70
+ "development": "./src/opsx-entity.ts",
50
71
  "import": "./dist/opsx-entity.mjs",
72
+ "default": "./dist/opsx-entity.mjs",
51
73
  "types": "./dist/opsx-entity.d.mts"
52
74
  },
53
75
  "./opsx-schema-detail": {
76
+ "development": "./src/opsx-schema-detail.ts",
54
77
  "import": "./dist/opsx-schema-detail.mjs",
78
+ "default": "./dist/opsx-schema-detail.mjs",
55
79
  "types": "./dist/opsx-schema-detail.d.mts"
56
80
  },
57
81
  "./notifications": {
82
+ "development": "./src/notifications.ts",
58
83
  "import": "./dist/notifications.mjs",
84
+ "default": "./dist/notifications.mjs",
59
85
  "types": "./dist/notifications.d.mts"
60
86
  },
61
87
  "./sounds": {
88
+ "development": "./src/sounds.ts",
62
89
  "import": "./dist/sounds.mjs",
90
+ "default": "./dist/sounds.mjs",
63
91
  "types": "./dist/sounds.d.mts"
64
92
  },
65
93
  "./terminal-theme": {
94
+ "development": "./src/terminal-theme.ts",
66
95
  "import": "./dist/terminal-theme.mjs",
96
+ "default": "./dist/terminal-theme.mjs",
67
97
  "types": "./dist/terminal-theme.d.mts"
68
98
  },
69
99
  "./terminal-invocation": {
100
+ "development": "./src/terminal-invocation.ts",
70
101
  "import": "./dist/terminal-invocation.mjs",
102
+ "default": "./dist/terminal-invocation.mjs",
71
103
  "types": "./dist/terminal-invocation.d.mts"
72
104
  },
73
105
  "./terminal-audio": {
106
+ "development": "./src/terminal-audio.ts",
74
107
  "import": "./dist/terminal-audio.mjs",
108
+ "default": "./dist/terminal-audio.mjs",
75
109
  "types": "./dist/terminal-audio.d.mts"
76
110
  },
77
111
  "./terminal-control": {
112
+ "development": "./src/terminal-control.ts",
78
113
  "import": "./dist/terminal-control.mjs",
114
+ "default": "./dist/terminal-control.mjs",
79
115
  "types": "./dist/terminal-control.d.mts"
80
116
  }
81
117
  },
@@ -1,13 +0,0 @@
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
- });
11
-
12
- //#endregion
13
- export { DocumentTranslationConfigSchema as n, DocumentTranslationDisplayModeSchema as r, DOCUMENT_TRANSLATION_DISPLAY_MODES as t };
@@ -1,22 +0,0 @@
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
- }, "strip", z.ZodTypeAny, {
12
- enabled: boolean;
13
- targetLanguage: string;
14
- displayMode: "direct" | "bilingual";
15
- }, {
16
- enabled?: boolean | undefined;
17
- targetLanguage?: string | undefined;
18
- displayMode?: "direct" | "bilingual" | undefined;
19
- }>;
20
- type DocumentTranslationConfig = z.infer<typeof DocumentTranslationConfigSchema>;
21
- //#endregion
22
- export { DocumentTranslationDisplayModeSchema as a, DocumentTranslationDisplayMode as i, DocumentTranslationConfig as n, DocumentTranslationConfigSchema as r, DOCUMENT_TRANSLATION_DISPLAY_MODES as t };
@@ -1,31 +0,0 @@
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
- interface HostedBackendHealthResponse {
5
- status: 'ok';
6
- projectDir: string;
7
- projectName: string;
8
- watcherEnabled: boolean;
9
- openspecuiVersion: string;
10
- hostedShellProtocolVersion: typeof HOSTED_SHELL_PROTOCOL_VERSION;
11
- embeddedUiUrl: string;
12
- }
13
- declare function normalizeHostedAppBaseUrl(input: string): string;
14
- declare function resolveHostedAppBaseUrl(options: {
15
- override?: string | null;
16
- configured?: string | null;
17
- }): string;
18
- declare function normalizeEmbeddedUiUrl(input: string): string;
19
- declare function isSupportedEmbeddedUiUrl(input: string): boolean;
20
- declare function buildHostedLaunchUrl(options: {
21
- baseUrl: string;
22
- apiBaseUrl: string;
23
- }): string;
24
- declare function buildEmbeddedUiLaunchUrl(options: {
25
- embeddedUiUrl: string;
26
- apiBaseUrl: string;
27
- sessionId: string;
28
- }): string;
29
- declare function isHostedBackendHealthResponse(value: unknown): value is HostedBackendHealthResponse;
30
- //#endregion
31
- export { buildHostedLaunchUrl as a, normalizeEmbeddedUiUrl as c, buildEmbeddedUiLaunchUrl as i, normalizeHostedAppBaseUrl as l, HostedBackendHealthResponse as n, isHostedBackendHealthResponse as o, OFFICIAL_APP_BASE_URL as r, isSupportedEmbeddedUiUrl as s, HOSTED_SHELL_PROTOCOL_VERSION as t, resolveHostedAppBaseUrl as u };