@openspecui/core 4.1.0 → 6.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-projection-DxnVGm2B.d.mts +789 -0
- package/dist/cli-projection-vO3-FJg5.mjs +161 -0
- package/dist/cli-projection.d.mts +6 -0
- package/dist/cli-projection.mjs +4 -0
- package/dist/command-result-fkH3Ekdz.d.mts +8477 -0
- package/dist/common-D8YUK9dA.mjs +57 -0
- package/dist/dashboard-summary-transport-CQ4is5_e.d.mts +66227 -0
- package/dist/dashboard-summary-transport-D2VBAIxg.mjs +175 -0
- package/dist/dashboard-summary-transport.d.mts +25 -0
- package/dist/dashboard-summary-transport.mjs +6 -0
- package/dist/{document-translation-D4YK18I3.mjs → document-translation-CeJFGMoy.mjs} +1 -1
- package/dist/{document-translation-CIPGsZD8.d.mts → document-translation-D50BnvVh.d.mts} +100 -100
- package/dist/document-translation.d.mts +1 -1
- package/dist/document-translation.mjs +2 -2
- package/dist/{hosted-app-CzMRiEgY.mjs → hosted-app-BPU4OR41.mjs} +31 -9
- package/dist/hosted-app.d.mts +25 -2
- package/dist/hosted-app.mjs +7 -2
- package/dist/hosted-contract-CcRnb51e.mjs +234 -0
- package/dist/hosted-contract.d.mts +25 -0
- package/dist/hosted-contract.mjs +7 -0
- package/dist/index.d.mts +25 -2686
- package/dist/index.mjs +2114 -1098
- package/dist/{local-download-profiles-B30HrSO2.d.mts → local-download-profiles-BL_rtlVM.d.mts} +1 -1
- package/dist/local-download-profiles.d.mts +2 -2
- package/dist/local-download-profiles.mjs +1 -1
- package/dist/markdown-facts.d.mts +1 -1
- package/dist/markdown-facts.mjs +1 -1
- package/dist/{markdown-reading-CgXuXp6s.d.mts → markdown-reading-LUdqfbxH.d.mts} +1 -1
- package/dist/{markdown-reading-DdcB7run.mjs → markdown-reading-mG4OAbDO.mjs} +1 -1
- package/dist/markdown-reading.d.mts +2 -2
- package/dist/markdown-reading.mjs +2 -2
- package/dist/{notifications-AKAcmeKT.mjs → notifications-C2bxAzX_.mjs} +13 -2
- package/dist/{notifications-HYH-lklF.d.mts → notifications-CgJlLgLO.d.mts} +34 -8
- package/dist/notifications.d.mts +2 -2
- package/dist/notifications.mjs +3 -3
- package/dist/{openspec-annotations-CeXd0JIZ.d.mts → openspec-annotations-C58Aoi-V.d.mts} +2 -2
- package/dist/{openspec-annotations-D_6Pz7k4.mjs → openspec-annotations-DCfqBMal.mjs} +2 -2
- package/dist/openspec-annotations.d.mts +3 -3
- package/dist/openspec-annotations.mjs +3 -3
- package/dist/openspec-compat.d.mts +18 -11
- package/dist/openspec-compat.mjs +22 -14
- package/dist/{openspec-projection-B8s-KWQ7.mjs → openspec-projection-DCgToo0Q.mjs} +2 -2
- package/dist/{openspec-projection-BphzrwYP.d.mts → openspec-projection-RohNZI4p.d.mts} +3 -3
- package/dist/openspec-projection.d.mts +5 -5
- package/dist/openspec-projection.mjs +4 -4
- package/dist/opsx-display-path.d.mts +1 -1
- package/dist/opsx-display-path.mjs +1 -1
- package/dist/{opsx-entity-CFUCqev8.d.mts → opsx-entity-D7kDQsze.d.mts} +2 -2
- package/dist/opsx-entity.d.mts +7 -3
- package/dist/opsx-entity.mjs +1 -1
- package/dist/{opsx-schema-detail-DXKXqMQa.d.mts → opsx-schema-detail-BxDXEwDY.d.mts} +2 -2
- package/dist/opsx-schema-detail.d.mts +8 -4
- package/dist/opsx-schema-detail.mjs +1 -1
- package/dist/opsx-types-BJ8AjhrS.d.mts +3642 -0
- package/dist/opsx-workflows-BvnJqjfL.d.mts +36 -0
- package/dist/opsx-workflows-Ccc6U7IR.mjs +89 -0
- package/dist/opsx-workflows.d.mts +2 -0
- package/dist/opsx-workflows.mjs +3 -0
- package/dist/planning-cli-projection-DIRxeq2H.mjs +421 -0
- package/dist/planning-cli-projection.d.mts +25 -0
- package/dist/planning-cli-projection.mjs +9 -0
- package/dist/schemas-BFroDdOC.mjs +287 -0
- package/dist/{schemas-CNKCVc7m.d.mts → schemas-DS-JqAJ2.d.mts} +498 -52
- package/dist/{sounds-J6z7o4mt.d.mts → sounds-qhRgCy0F.d.mts} +5 -5
- package/dist/sounds.d.mts +1 -1
- package/dist/sounds.mjs +1 -1
- package/dist/spec-catalog-ZGuiZ4CE.mjs +901 -0
- package/dist/spec-catalog.d.mts +25 -0
- package/dist/spec-catalog.mjs +6 -0
- package/dist/store-mutation-protocol-5tfs-RmD.d.mts +727 -0
- package/dist/store-mutation-protocol-CSwD-xPO.mjs +63 -0
- package/dist/store-mutation-protocol.d.mts +2 -0
- package/dist/store-mutation-protocol.mjs +4 -0
- package/dist/{store-types-Cu41QSww.mjs → store-types-DlX1REBg.mjs} +39 -18
- package/dist/{store-types-BiE-Ey--.d.mts → store-types-b554wAQJ.d.mts} +22 -12
- package/dist/store-types.d.mts +6 -2
- package/dist/store-types.mjs +2 -2
- package/dist/task-progress-B_IWVXjA.mjs +216 -0
- package/dist/task-progress.d.mts +7 -4
- package/dist/task-progress.mjs +3 -3
- package/dist/{terminal-audio-TBoU2jSK.mjs → terminal-audio-d6KItUeJ.mjs} +1 -1
- package/dist/{terminal-audio-BeUXlQgj.d.mts → terminal-audio-tXDm_EDe.d.mts} +2 -2
- package/dist/terminal-audio.d.mts +2 -2
- package/dist/terminal-audio.mjs +2 -2
- package/dist/terminal-control.d.mts +2 -2
- package/dist/terminal-control.mjs +1 -1
- package/dist/{terminal-invocation-ClVh0HeM.d.mts → terminal-invocation-BOvxThym.d.mts} +203 -84
- package/dist/terminal-invocation.d.mts +1 -1
- package/dist/terminal-invocation.mjs +1 -1
- package/dist/terminal-theme.d.mts +1 -1
- package/dist/terminal-theme.mjs +1 -1
- package/dist/translation-language-pair.d.mts +1 -1
- package/dist/translation-language-pair.mjs +1 -1
- package/dist/{translator-D6t_LEVN.d.mts → translator-NKv1wo3o.d.mts} +208 -208
- package/dist/translator.d.mts +1 -1
- package/dist/translator.mjs +1 -1
- package/package.json +55 -7
- package/dist/hosted-app-DHs94gIR.d.mts +0 -43
- package/dist/opsx-types-2rgsQHsB.d.mts +0 -402
- package/dist/task-progress-BHn4bCoD.d.mts +0 -24
- package/dist/task-progress-DhHYHnTv.mjs +0 -70
- /package/dist/{local-download-profiles-kpNEcdF_.mjs → local-download-profiles-odzOdf96.mjs} +0 -0
- /package/dist/{markdown-facts-BBCTe_qq.mjs → markdown-facts-BUqLvFRf.mjs} +0 -0
- /package/dist/{markdown-facts-Dk7FKaaT.d.mts → markdown-facts-CCw3QdbM.d.mts} +0 -0
- /package/dist/{opsx-display-path-CUCOrHcM.mjs → opsx-display-path-D13XV20v.mjs} +0 -0
- /package/dist/{opsx-display-path-cIMKa1aw.d.mts → opsx-display-path-RXS5JTbV.d.mts} +0 -0
- /package/dist/{opsx-entity-c7m5CbgU.mjs → opsx-entity-Cn_Zu1J3.mjs} +0 -0
- /package/dist/{opsx-schema-detail-BH82X6aU.mjs → opsx-schema-detail-Beis4Ba2.mjs} +0 -0
- /package/dist/{sounds-CB3ubSnj.mjs → sounds-NXwveBqq.mjs} +0 -0
- /package/dist/{terminal-control-VpTuh17B.mjs → terminal-control-BSAlOTs8.mjs} +0 -0
- /package/dist/{terminal-invocation-C2MCNBhK.mjs → terminal-invocation-0p-j2eSP.mjs} +0 -0
- /package/dist/{terminal-theme-cevliJw2.mjs → terminal-theme-B8iRttTR.mjs} +0 -0
- /package/dist/{terminal-theme-hvQjTsNh.d.mts → terminal-theme-m3MSGJ7U.d.mts} +0 -0
- /package/dist/{translation-language-pair-DZ_WNp_M.mjs → translation-language-pair-Bbhk-LAC.mjs} +0 -0
- /package/dist/{translation-language-pair-DmaOfHqD.d.mts → translation-language-pair-C18GPATW.d.mts} +0 -0
- /package/dist/{translator-DbUT1Ayn.mjs → translator-Cjtv4tya.mjs} +0 -0
|
@@ -9,31 +9,31 @@ declare const TranslationEngineProjectSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
9
9
|
model: z.ZodOptional<z.ZodString>;
|
|
10
10
|
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
selectedGroupId?: string | undefined;
|
|
13
12
|
model?: string | undefined;
|
|
14
|
-
}, {
|
|
15
13
|
selectedGroupId?: string | undefined;
|
|
14
|
+
}, {
|
|
16
15
|
model?: string | undefined;
|
|
16
|
+
selectedGroupId?: string | undefined;
|
|
17
17
|
}>>;
|
|
18
18
|
localCt2: z.ZodDefault<z.ZodObject<{
|
|
19
19
|
model: z.ZodOptional<z.ZodString>;
|
|
20
20
|
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
selectedGroupId?: string | undefined;
|
|
23
22
|
model?: string | undefined;
|
|
24
|
-
}, {
|
|
25
23
|
selectedGroupId?: string | undefined;
|
|
24
|
+
}, {
|
|
26
25
|
model?: string | undefined;
|
|
26
|
+
selectedGroupId?: string | undefined;
|
|
27
27
|
}>>;
|
|
28
28
|
localLlama: z.ZodDefault<z.ZodObject<{
|
|
29
29
|
model: z.ZodOptional<z.ZodString>;
|
|
30
30
|
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
selectedGroupId?: string | undefined;
|
|
33
32
|
model?: string | undefined;
|
|
34
|
-
}, {
|
|
35
33
|
selectedGroupId?: string | undefined;
|
|
34
|
+
}, {
|
|
36
35
|
model?: string | undefined;
|
|
36
|
+
selectedGroupId?: string | undefined;
|
|
37
37
|
}>>;
|
|
38
38
|
openai: z.ZodDefault<z.ZodObject<{
|
|
39
39
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -44,34 +44,34 @@ declare const TranslationEngineProjectSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
44
44
|
}>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
local: {
|
|
47
|
-
selectedGroupId?: string | undefined;
|
|
48
|
-
model?: string | undefined;
|
|
49
|
-
};
|
|
50
|
-
openai: {
|
|
51
47
|
model?: string | undefined;
|
|
48
|
+
selectedGroupId?: string | undefined;
|
|
52
49
|
};
|
|
53
50
|
localCt2: {
|
|
54
|
-
selectedGroupId?: string | undefined;
|
|
55
51
|
model?: string | undefined;
|
|
52
|
+
selectedGroupId?: string | undefined;
|
|
56
53
|
};
|
|
57
54
|
localLlama: {
|
|
55
|
+
model?: string | undefined;
|
|
58
56
|
selectedGroupId?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
openai: {
|
|
59
59
|
model?: string | undefined;
|
|
60
60
|
};
|
|
61
61
|
}, {
|
|
62
62
|
local?: {
|
|
63
|
-
selectedGroupId?: string | undefined;
|
|
64
|
-
model?: string | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
openai?: {
|
|
67
63
|
model?: string | undefined;
|
|
64
|
+
selectedGroupId?: string | undefined;
|
|
68
65
|
} | undefined;
|
|
69
66
|
localCt2?: {
|
|
70
|
-
selectedGroupId?: string | undefined;
|
|
71
67
|
model?: string | undefined;
|
|
68
|
+
selectedGroupId?: string | undefined;
|
|
72
69
|
} | undefined;
|
|
73
70
|
localLlama?: {
|
|
71
|
+
model?: string | undefined;
|
|
74
72
|
selectedGroupId?: string | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
openai?: {
|
|
75
75
|
model?: string | undefined;
|
|
76
76
|
} | undefined;
|
|
77
77
|
}>>;
|
|
@@ -80,31 +80,31 @@ declare const TranslationEngineProjectSettingsUpdateSchema: z.ZodObject<{
|
|
|
80
80
|
model: z.ZodOptional<z.ZodString>;
|
|
81
81
|
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
selectedGroupId?: string | null | undefined;
|
|
84
83
|
model?: string | undefined;
|
|
85
|
-
}, {
|
|
86
84
|
selectedGroupId?: string | null | undefined;
|
|
85
|
+
}, {
|
|
87
86
|
model?: string | undefined;
|
|
87
|
+
selectedGroupId?: string | null | undefined;
|
|
88
88
|
}>>;
|
|
89
89
|
localCt2: z.ZodOptional<z.ZodObject<{
|
|
90
90
|
model: z.ZodOptional<z.ZodString>;
|
|
91
91
|
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
selectedGroupId?: string | null | undefined;
|
|
94
93
|
model?: string | undefined;
|
|
95
|
-
}, {
|
|
96
94
|
selectedGroupId?: string | null | undefined;
|
|
95
|
+
}, {
|
|
97
96
|
model?: string | undefined;
|
|
97
|
+
selectedGroupId?: string | null | undefined;
|
|
98
98
|
}>>;
|
|
99
99
|
localLlama: z.ZodOptional<z.ZodObject<{
|
|
100
100
|
model: z.ZodOptional<z.ZodString>;
|
|
101
101
|
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
selectedGroupId?: string | null | undefined;
|
|
104
103
|
model?: string | undefined;
|
|
105
|
-
}, {
|
|
106
104
|
selectedGroupId?: string | null | undefined;
|
|
105
|
+
}, {
|
|
107
106
|
model?: string | undefined;
|
|
107
|
+
selectedGroupId?: string | null | undefined;
|
|
108
108
|
}>>;
|
|
109
109
|
openai: z.ZodOptional<z.ZodObject<{
|
|
110
110
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -115,34 +115,34 @@ declare const TranslationEngineProjectSettingsUpdateSchema: z.ZodObject<{
|
|
|
115
115
|
}>>;
|
|
116
116
|
}, "strip", z.ZodTypeAny, {
|
|
117
117
|
local?: {
|
|
118
|
-
selectedGroupId?: string | null | undefined;
|
|
119
|
-
model?: string | undefined;
|
|
120
|
-
} | undefined;
|
|
121
|
-
openai?: {
|
|
122
118
|
model?: string | undefined;
|
|
119
|
+
selectedGroupId?: string | null | undefined;
|
|
123
120
|
} | undefined;
|
|
124
121
|
localCt2?: {
|
|
125
|
-
selectedGroupId?: string | null | undefined;
|
|
126
122
|
model?: string | undefined;
|
|
123
|
+
selectedGroupId?: string | null | undefined;
|
|
127
124
|
} | undefined;
|
|
128
125
|
localLlama?: {
|
|
126
|
+
model?: string | undefined;
|
|
129
127
|
selectedGroupId?: string | null | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
openai?: {
|
|
130
130
|
model?: string | undefined;
|
|
131
131
|
} | undefined;
|
|
132
132
|
}, {
|
|
133
133
|
local?: {
|
|
134
|
-
selectedGroupId?: string | null | undefined;
|
|
135
|
-
model?: string | undefined;
|
|
136
|
-
} | undefined;
|
|
137
|
-
openai?: {
|
|
138
134
|
model?: string | undefined;
|
|
135
|
+
selectedGroupId?: string | null | undefined;
|
|
139
136
|
} | undefined;
|
|
140
137
|
localCt2?: {
|
|
141
|
-
selectedGroupId?: string | null | undefined;
|
|
142
138
|
model?: string | undefined;
|
|
139
|
+
selectedGroupId?: string | null | undefined;
|
|
143
140
|
} | undefined;
|
|
144
141
|
localLlama?: {
|
|
142
|
+
model?: string | undefined;
|
|
145
143
|
selectedGroupId?: string | null | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
openai?: {
|
|
146
146
|
model?: string | undefined;
|
|
147
147
|
} | undefined;
|
|
148
148
|
}>;
|
|
@@ -157,31 +157,31 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
|
|
|
157
157
|
model: z.ZodOptional<z.ZodString>;
|
|
158
158
|
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
selectedGroupId?: string | undefined;
|
|
161
160
|
model?: string | undefined;
|
|
162
|
-
}, {
|
|
163
161
|
selectedGroupId?: string | undefined;
|
|
162
|
+
}, {
|
|
164
163
|
model?: string | undefined;
|
|
164
|
+
selectedGroupId?: string | undefined;
|
|
165
165
|
}>>;
|
|
166
166
|
localCt2: z.ZodDefault<z.ZodObject<{
|
|
167
167
|
model: z.ZodOptional<z.ZodString>;
|
|
168
168
|
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
selectedGroupId?: string | undefined;
|
|
171
170
|
model?: string | undefined;
|
|
172
|
-
}, {
|
|
173
171
|
selectedGroupId?: string | undefined;
|
|
172
|
+
}, {
|
|
174
173
|
model?: string | undefined;
|
|
174
|
+
selectedGroupId?: string | undefined;
|
|
175
175
|
}>>;
|
|
176
176
|
localLlama: z.ZodDefault<z.ZodObject<{
|
|
177
177
|
model: z.ZodOptional<z.ZodString>;
|
|
178
178
|
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
selectedGroupId?: string | undefined;
|
|
181
180
|
model?: string | undefined;
|
|
182
|
-
}, {
|
|
183
181
|
selectedGroupId?: string | undefined;
|
|
182
|
+
}, {
|
|
184
183
|
model?: string | undefined;
|
|
184
|
+
selectedGroupId?: string | undefined;
|
|
185
185
|
}>>;
|
|
186
186
|
openai: z.ZodDefault<z.ZodObject<{
|
|
187
187
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -192,80 +192,80 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
|
|
|
192
192
|
}>>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
194
|
local: {
|
|
195
|
-
selectedGroupId?: string | undefined;
|
|
196
|
-
model?: string | undefined;
|
|
197
|
-
};
|
|
198
|
-
openai: {
|
|
199
195
|
model?: string | undefined;
|
|
196
|
+
selectedGroupId?: string | undefined;
|
|
200
197
|
};
|
|
201
198
|
localCt2: {
|
|
202
|
-
selectedGroupId?: string | undefined;
|
|
203
199
|
model?: string | undefined;
|
|
200
|
+
selectedGroupId?: string | undefined;
|
|
204
201
|
};
|
|
205
202
|
localLlama: {
|
|
203
|
+
model?: string | undefined;
|
|
206
204
|
selectedGroupId?: string | undefined;
|
|
205
|
+
};
|
|
206
|
+
openai: {
|
|
207
207
|
model?: string | undefined;
|
|
208
208
|
};
|
|
209
209
|
}, {
|
|
210
210
|
local?: {
|
|
211
|
-
selectedGroupId?: string | undefined;
|
|
212
|
-
model?: string | undefined;
|
|
213
|
-
} | undefined;
|
|
214
|
-
openai?: {
|
|
215
211
|
model?: string | undefined;
|
|
212
|
+
selectedGroupId?: string | undefined;
|
|
216
213
|
} | undefined;
|
|
217
214
|
localCt2?: {
|
|
218
|
-
selectedGroupId?: string | undefined;
|
|
219
215
|
model?: string | undefined;
|
|
216
|
+
selectedGroupId?: string | undefined;
|
|
220
217
|
} | undefined;
|
|
221
218
|
localLlama?: {
|
|
219
|
+
model?: string | undefined;
|
|
222
220
|
selectedGroupId?: string | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
openai?: {
|
|
223
223
|
model?: string | undefined;
|
|
224
224
|
} | undefined;
|
|
225
225
|
}>>;
|
|
226
226
|
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
228
|
-
targetLanguage: string;
|
|
229
227
|
enabled: boolean;
|
|
228
|
+
targetLanguage: string;
|
|
230
229
|
displayMode: "direct" | "bilingual";
|
|
231
230
|
cacheEnabled: boolean;
|
|
231
|
+
engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
|
|
232
232
|
engines: {
|
|
233
233
|
local: {
|
|
234
|
-
selectedGroupId?: string | undefined;
|
|
235
|
-
model?: string | undefined;
|
|
236
|
-
};
|
|
237
|
-
openai: {
|
|
238
234
|
model?: string | undefined;
|
|
235
|
+
selectedGroupId?: string | undefined;
|
|
239
236
|
};
|
|
240
237
|
localCt2: {
|
|
241
|
-
selectedGroupId?: string | undefined;
|
|
242
238
|
model?: string | undefined;
|
|
239
|
+
selectedGroupId?: string | undefined;
|
|
243
240
|
};
|
|
244
241
|
localLlama: {
|
|
242
|
+
model?: string | undefined;
|
|
245
243
|
selectedGroupId?: string | undefined;
|
|
244
|
+
};
|
|
245
|
+
openai: {
|
|
246
246
|
model?: string | undefined;
|
|
247
247
|
};
|
|
248
248
|
};
|
|
249
249
|
}, {
|
|
250
|
-
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
251
|
-
targetLanguage?: string | undefined;
|
|
252
250
|
enabled?: boolean | undefined;
|
|
251
|
+
targetLanguage?: string | undefined;
|
|
253
252
|
displayMode?: "direct" | "bilingual" | undefined;
|
|
254
253
|
cacheEnabled?: boolean | undefined;
|
|
254
|
+
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
255
255
|
engines?: {
|
|
256
256
|
local?: {
|
|
257
|
-
selectedGroupId?: string | undefined;
|
|
258
|
-
model?: string | undefined;
|
|
259
|
-
} | undefined;
|
|
260
|
-
openai?: {
|
|
261
257
|
model?: string | undefined;
|
|
258
|
+
selectedGroupId?: string | undefined;
|
|
262
259
|
} | undefined;
|
|
263
260
|
localCt2?: {
|
|
264
|
-
selectedGroupId?: string | undefined;
|
|
265
261
|
model?: string | undefined;
|
|
262
|
+
selectedGroupId?: string | undefined;
|
|
266
263
|
} | undefined;
|
|
267
264
|
localLlama?: {
|
|
265
|
+
model?: string | undefined;
|
|
268
266
|
selectedGroupId?: string | undefined;
|
|
267
|
+
} | undefined;
|
|
268
|
+
openai?: {
|
|
269
269
|
model?: string | undefined;
|
|
270
270
|
} | undefined;
|
|
271
271
|
} | undefined;
|
|
@@ -281,31 +281,31 @@ declare const DocumentTranslationConfigUpdateSchema: z.ZodObject<{
|
|
|
281
281
|
model: z.ZodOptional<z.ZodString>;
|
|
282
282
|
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
283
|
}, "strip", z.ZodTypeAny, {
|
|
284
|
-
selectedGroupId?: string | null | undefined;
|
|
285
284
|
model?: string | undefined;
|
|
286
|
-
}, {
|
|
287
285
|
selectedGroupId?: string | null | undefined;
|
|
286
|
+
}, {
|
|
288
287
|
model?: string | undefined;
|
|
288
|
+
selectedGroupId?: string | null | undefined;
|
|
289
289
|
}>>;
|
|
290
290
|
localCt2: z.ZodOptional<z.ZodObject<{
|
|
291
291
|
model: z.ZodOptional<z.ZodString>;
|
|
292
292
|
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
293
|
}, "strip", z.ZodTypeAny, {
|
|
294
|
-
selectedGroupId?: string | null | undefined;
|
|
295
294
|
model?: string | undefined;
|
|
296
|
-
}, {
|
|
297
295
|
selectedGroupId?: string | null | undefined;
|
|
296
|
+
}, {
|
|
298
297
|
model?: string | undefined;
|
|
298
|
+
selectedGroupId?: string | null | undefined;
|
|
299
299
|
}>>;
|
|
300
300
|
localLlama: z.ZodOptional<z.ZodObject<{
|
|
301
301
|
model: z.ZodOptional<z.ZodString>;
|
|
302
302
|
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
303
|
}, "strip", z.ZodTypeAny, {
|
|
304
|
-
selectedGroupId?: string | null | undefined;
|
|
305
304
|
model?: string | undefined;
|
|
306
|
-
}, {
|
|
307
305
|
selectedGroupId?: string | null | undefined;
|
|
306
|
+
}, {
|
|
308
307
|
model?: string | undefined;
|
|
308
|
+
selectedGroupId?: string | null | undefined;
|
|
309
309
|
}>>;
|
|
310
310
|
openai: z.ZodOptional<z.ZodObject<{
|
|
311
311
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -316,80 +316,80 @@ declare const DocumentTranslationConfigUpdateSchema: z.ZodObject<{
|
|
|
316
316
|
}>>;
|
|
317
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
318
|
local?: {
|
|
319
|
-
selectedGroupId?: string | null | undefined;
|
|
320
|
-
model?: string | undefined;
|
|
321
|
-
} | undefined;
|
|
322
|
-
openai?: {
|
|
323
319
|
model?: string | undefined;
|
|
320
|
+
selectedGroupId?: string | null | undefined;
|
|
324
321
|
} | undefined;
|
|
325
322
|
localCt2?: {
|
|
326
|
-
selectedGroupId?: string | null | undefined;
|
|
327
323
|
model?: string | undefined;
|
|
324
|
+
selectedGroupId?: string | null | undefined;
|
|
328
325
|
} | undefined;
|
|
329
326
|
localLlama?: {
|
|
327
|
+
model?: string | undefined;
|
|
330
328
|
selectedGroupId?: string | null | undefined;
|
|
329
|
+
} | undefined;
|
|
330
|
+
openai?: {
|
|
331
331
|
model?: string | undefined;
|
|
332
332
|
} | undefined;
|
|
333
333
|
}, {
|
|
334
334
|
local?: {
|
|
335
|
-
selectedGroupId?: string | null | undefined;
|
|
336
|
-
model?: string | undefined;
|
|
337
|
-
} | undefined;
|
|
338
|
-
openai?: {
|
|
339
335
|
model?: string | undefined;
|
|
336
|
+
selectedGroupId?: string | null | undefined;
|
|
340
337
|
} | undefined;
|
|
341
338
|
localCt2?: {
|
|
342
|
-
selectedGroupId?: string | null | undefined;
|
|
343
339
|
model?: string | undefined;
|
|
340
|
+
selectedGroupId?: string | null | undefined;
|
|
344
341
|
} | undefined;
|
|
345
342
|
localLlama?: {
|
|
343
|
+
model?: string | undefined;
|
|
346
344
|
selectedGroupId?: string | null | undefined;
|
|
345
|
+
} | undefined;
|
|
346
|
+
openai?: {
|
|
347
347
|
model?: string | undefined;
|
|
348
348
|
} | undefined;
|
|
349
349
|
}>>;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
352
|
-
targetLanguage?: string | undefined;
|
|
353
351
|
enabled?: boolean | undefined;
|
|
352
|
+
targetLanguage?: string | undefined;
|
|
354
353
|
displayMode?: "direct" | "bilingual" | undefined;
|
|
355
354
|
cacheEnabled?: boolean | undefined;
|
|
355
|
+
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
356
356
|
engines?: {
|
|
357
357
|
local?: {
|
|
358
|
-
selectedGroupId?: string | null | undefined;
|
|
359
|
-
model?: string | undefined;
|
|
360
|
-
} | undefined;
|
|
361
|
-
openai?: {
|
|
362
358
|
model?: string | undefined;
|
|
359
|
+
selectedGroupId?: string | null | undefined;
|
|
363
360
|
} | undefined;
|
|
364
361
|
localCt2?: {
|
|
365
|
-
selectedGroupId?: string | null | undefined;
|
|
366
362
|
model?: string | undefined;
|
|
363
|
+
selectedGroupId?: string | null | undefined;
|
|
367
364
|
} | undefined;
|
|
368
365
|
localLlama?: {
|
|
366
|
+
model?: string | undefined;
|
|
369
367
|
selectedGroupId?: string | null | undefined;
|
|
368
|
+
} | undefined;
|
|
369
|
+
openai?: {
|
|
370
370
|
model?: string | undefined;
|
|
371
371
|
} | undefined;
|
|
372
372
|
} | undefined;
|
|
373
373
|
}, {
|
|
374
|
-
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
375
|
-
targetLanguage?: string | undefined;
|
|
376
374
|
enabled?: boolean | undefined;
|
|
375
|
+
targetLanguage?: string | undefined;
|
|
377
376
|
displayMode?: "direct" | "bilingual" | undefined;
|
|
378
377
|
cacheEnabled?: boolean | undefined;
|
|
378
|
+
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
379
379
|
engines?: {
|
|
380
380
|
local?: {
|
|
381
|
-
selectedGroupId?: string | null | undefined;
|
|
382
|
-
model?: string | undefined;
|
|
383
|
-
} | undefined;
|
|
384
|
-
openai?: {
|
|
385
381
|
model?: string | undefined;
|
|
382
|
+
selectedGroupId?: string | null | undefined;
|
|
386
383
|
} | undefined;
|
|
387
384
|
localCt2?: {
|
|
388
|
-
selectedGroupId?: string | null | undefined;
|
|
389
385
|
model?: string | undefined;
|
|
386
|
+
selectedGroupId?: string | null | undefined;
|
|
390
387
|
} | undefined;
|
|
391
388
|
localLlama?: {
|
|
389
|
+
model?: string | undefined;
|
|
392
390
|
selectedGroupId?: string | null | undefined;
|
|
391
|
+
} | undefined;
|
|
392
|
+
openai?: {
|
|
393
393
|
model?: string | undefined;
|
|
394
394
|
} | undefined;
|
|
395
395
|
} | undefined;
|
|
@@ -449,13 +449,13 @@ declare const TranslationCacheEntrySchema: z.ZodObject<{
|
|
|
449
449
|
createdAt: z.ZodNumber;
|
|
450
450
|
lastAccessedAt: z.ZodNumber;
|
|
451
451
|
}, "strip", z.ZodTypeAny, {
|
|
452
|
-
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
453
|
-
sourceLanguage: string;
|
|
454
452
|
targetLanguage: string;
|
|
453
|
+
engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
|
|
455
454
|
key: string;
|
|
456
455
|
keyHash: string;
|
|
457
456
|
sourceText: string;
|
|
458
457
|
translatedText: string;
|
|
458
|
+
sourceLanguage: string;
|
|
459
459
|
placeholderTopologyHash: string;
|
|
460
460
|
attributeTopologyHash: string;
|
|
461
461
|
displayPolicyVersion: number;
|
|
@@ -466,19 +466,19 @@ declare const TranslationCacheEntrySchema: z.ZodObject<{
|
|
|
466
466
|
targetNodesJson?: string | undefined;
|
|
467
467
|
engineVersion?: string | undefined;
|
|
468
468
|
}, {
|
|
469
|
-
sourceLanguage: string;
|
|
470
469
|
targetLanguage: string;
|
|
471
470
|
key: string;
|
|
472
471
|
keyHash: string;
|
|
473
472
|
sourceText: string;
|
|
474
473
|
translatedText: string;
|
|
474
|
+
sourceLanguage: string;
|
|
475
475
|
placeholderTopologyHash: string;
|
|
476
476
|
attributeTopologyHash: string;
|
|
477
477
|
displayPolicyVersion: number;
|
|
478
478
|
createdAt: number;
|
|
479
479
|
lastAccessedAt: number;
|
|
480
|
-
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
481
480
|
model?: string | undefined;
|
|
481
|
+
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
482
482
|
targetNodesJson?: string | undefined;
|
|
483
483
|
engineVersion?: string | undefined;
|
|
484
484
|
translatorContractVersion?: number | undefined;
|
|
@@ -502,13 +502,13 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
|
|
|
502
502
|
createdAt: z.ZodNumber;
|
|
503
503
|
lastAccessedAt: z.ZodNumber;
|
|
504
504
|
}, "createdAt" | "lastAccessedAt">, "strip", z.ZodTypeAny, {
|
|
505
|
-
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
506
|
-
sourceLanguage: string;
|
|
507
505
|
targetLanguage: string;
|
|
506
|
+
engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
|
|
508
507
|
key: string;
|
|
509
508
|
keyHash: string;
|
|
510
509
|
sourceText: string;
|
|
511
510
|
translatedText: string;
|
|
511
|
+
sourceLanguage: string;
|
|
512
512
|
placeholderTopologyHash: string;
|
|
513
513
|
attributeTopologyHash: string;
|
|
514
514
|
displayPolicyVersion: number;
|
|
@@ -517,17 +517,17 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
|
|
|
517
517
|
targetNodesJson?: string | undefined;
|
|
518
518
|
engineVersion?: string | undefined;
|
|
519
519
|
}, {
|
|
520
|
-
sourceLanguage: string;
|
|
521
520
|
targetLanguage: string;
|
|
522
521
|
key: string;
|
|
523
522
|
keyHash: string;
|
|
524
523
|
sourceText: string;
|
|
525
524
|
translatedText: string;
|
|
525
|
+
sourceLanguage: string;
|
|
526
526
|
placeholderTopologyHash: string;
|
|
527
527
|
attributeTopologyHash: string;
|
|
528
528
|
displayPolicyVersion: number;
|
|
529
|
-
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
530
529
|
model?: string | undefined;
|
|
530
|
+
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
531
531
|
targetNodesJson?: string | undefined;
|
|
532
532
|
engineVersion?: string | undefined;
|
|
533
533
|
translatorContractVersion?: number | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as TranslationCacheWriteInputSchema, D as TranslationEngineProjectSettingsUpdateSchema, E as TranslationEngineProjectSettingsUpdate, S as TranslationCacheWriteInput, T as TranslationEngineProjectSettingsSchema, _ as TranslationCacheSettings, a as DocumentTranslationConfigSchema, b as TranslationCacheStats, c as DocumentTranslationDisplayMode, d as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, f as TRANSLATION_CACHE_POLICY_VERSION, g as TranslationCacheReadInputSchema, h as TranslationCacheReadInput, i as DocumentTranslationConfigInput, l as DocumentTranslationDisplayModeSchema, m as TranslationCacheEntrySchema, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as DocumentTranslationConfigUpdate, p as TranslationCacheEntry, r as DocumentTranslationConfig, s as DocumentTranslationConfigUpdateSchema, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, v as TranslationCacheSettingsSchema, w as TranslationEngineProjectSettings, x as TranslationCacheStatsSchema, y as TranslationCacheSettingsUpdateSchema } from "./document-translation-
|
|
1
|
+
import { C as TranslationCacheWriteInputSchema, D as TranslationEngineProjectSettingsUpdateSchema, E as TranslationEngineProjectSettingsUpdate, S as TranslationCacheWriteInput, T as TranslationEngineProjectSettingsSchema, _ as TranslationCacheSettings, a as DocumentTranslationConfigSchema, b as TranslationCacheStats, c as DocumentTranslationDisplayMode, d as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, f as TRANSLATION_CACHE_POLICY_VERSION, g as TranslationCacheReadInputSchema, h as TranslationCacheReadInput, i as DocumentTranslationConfigInput, l as DocumentTranslationDisplayModeSchema, m as TranslationCacheEntrySchema, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as DocumentTranslationConfigUpdate, p as TranslationCacheEntry, r as DocumentTranslationConfig, s as DocumentTranslationConfigUpdateSchema, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, v as TranslationCacheSettingsSchema, w as TranslationEngineProjectSettings, x as TranslationCacheStatsSchema, y as TranslationCacheSettingsUpdateSchema } from "./document-translation-D50BnvVh.mjs";
|
|
2
2
|
export { DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfig, DocumentTranslationConfigInput, DocumentTranslationConfigSchema, DocumentTranslationConfigUpdate, DocumentTranslationConfigUpdateSchema, DocumentTranslationDisplayMode, DocumentTranslationDisplayModeSchema, MAX_TRANSLATION_CACHE_ENTRY_LIMIT, MIN_TRANSLATION_CACHE_ENTRY_LIMIT, TRANSLATION_CACHE_POLICY_VERSION, TranslationCacheEntry, TranslationCacheEntrySchema, TranslationCacheReadInput, TranslationCacheReadInputSchema, TranslationCacheSettings, TranslationCacheSettingsSchema, TranslationCacheSettingsUpdateSchema, TranslationCacheStats, TranslationCacheStatsSchema, TranslationCacheWriteInput, TranslationCacheWriteInputSchema, TranslationEngineProjectSettings, TranslationEngineProjectSettingsSchema, TranslationEngineProjectSettingsUpdate, TranslationEngineProjectSettingsUpdateSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./translator-
|
|
2
|
-
import { a as DocumentTranslationDisplayModeSchema, c as TRANSLATION_CACHE_POLICY_VERSION, d as TranslationCacheSettingsSchema, f as TranslationCacheSettingsUpdateSchema, g as TranslationEngineProjectSettingsUpdateSchema, h as TranslationEngineProjectSettingsSchema, i as DocumentTranslationConfigUpdateSchema, l as TranslationCacheEntrySchema, m as TranslationCacheWriteInputSchema, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, p as TranslationCacheStatsSchema, r as DocumentTranslationConfigSchema, s as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as TranslationCacheReadInputSchema } from "./document-translation-
|
|
1
|
+
import "./translator-Cjtv4tya.mjs";
|
|
2
|
+
import { a as DocumentTranslationDisplayModeSchema, c as TRANSLATION_CACHE_POLICY_VERSION, d as TranslationCacheSettingsSchema, f as TranslationCacheSettingsUpdateSchema, g as TranslationEngineProjectSettingsUpdateSchema, h as TranslationEngineProjectSettingsSchema, i as DocumentTranslationConfigUpdateSchema, l as TranslationCacheEntrySchema, m as TranslationCacheWriteInputSchema, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, p as TranslationCacheStatsSchema, r as DocumentTranslationConfigSchema, s as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as TranslationCacheReadInputSchema } from "./document-translation-CeJFGMoy.mjs";
|
|
3
3
|
|
|
4
4
|
export { DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfigSchema, DocumentTranslationConfigUpdateSchema, DocumentTranslationDisplayModeSchema, MAX_TRANSLATION_CACHE_ENTRY_LIMIT, MIN_TRANSLATION_CACHE_ENTRY_LIMIT, TRANSLATION_CACHE_POLICY_VERSION, TranslationCacheEntrySchema, TranslationCacheReadInputSchema, TranslationCacheSettingsSchema, TranslationCacheSettingsUpdateSchema, TranslationCacheStatsSchema, TranslationCacheWriteInputSchema, TranslationEngineProjectSettingsSchema, TranslationEngineProjectSettingsUpdateSchema };
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
import { i as HostedBackendHealthResponseSchema, n as HOSTED_STORE_CAPABILITIES, t as HOSTED_SHELL_PROTOCOL_VERSION, v as OPENSPECUI_RUNTIME_CAPABILITIES } from "./hosted-contract-CcRnb51e.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/hosted-app.ts
|
|
4
|
+
/**
|
|
5
|
+
* Orthogonal intents (updated 2026-07-25 Asia/Shanghai):
|
|
6
|
+
* 1. Define browser-safe hosted backend metadata and compatibility capability facts.
|
|
7
|
+
* 2. Normalize App/embedded launch locators and carry session-only credentials in fragments.
|
|
8
|
+
* 3. Validate embedded UI origins without inventing backend authority.
|
|
9
|
+
* 4. Re-export the browser-safe hosted runtime schema source without a Node-bearing Core root import.
|
|
10
|
+
*
|
|
11
|
+
* Original request (2026-07-15): "app 模式提供了多标签管理。"
|
|
12
|
+
* Delivery correction (2026-07-24): privately carry the exact Access Gate credential to Project Web.
|
|
13
|
+
*/
|
|
2
14
|
const OFFICIAL_APP_BASE_URL = "https://app.openspecui.com";
|
|
3
|
-
const
|
|
4
|
-
const OPENSPECUI_RUNTIME_CAPABILITIES = ["notifications.subscribe", "config.notifications"];
|
|
5
|
-
function isRecord(value) {
|
|
6
|
-
return typeof value === "object" && value !== null;
|
|
7
|
-
}
|
|
15
|
+
const ACCESS_GATE_CREDENTIAL_FRAGMENT_PARAM = "credential";
|
|
8
16
|
function withHttpsProtocol(value) {
|
|
9
17
|
if (/^[a-zA-Z][a-zA-Z\d+.-]*:\/\//.test(value)) return value;
|
|
10
18
|
return `https://${value}`;
|
|
@@ -55,15 +63,23 @@ function isSupportedEmbeddedUiUrl(input) {
|
|
|
55
63
|
if (parsed.protocol === "https:") return true;
|
|
56
64
|
return parsed.protocol === "http:" && isLoopbackHostname(parsed.hostname);
|
|
57
65
|
}
|
|
66
|
+
function setAccessGateCredentialFragment(url, credential) {
|
|
67
|
+
if (!credential) return;
|
|
68
|
+
const fragment = new URLSearchParams(url.hash.slice(1));
|
|
69
|
+
fragment.set(ACCESS_GATE_CREDENTIAL_FRAGMENT_PARAM, credential);
|
|
70
|
+
url.hash = fragment.toString();
|
|
71
|
+
}
|
|
58
72
|
function buildHostedLaunchUrl(options) {
|
|
59
73
|
const url = new URL(normalizeHostedAppBaseUrl(options.baseUrl));
|
|
60
74
|
url.searchParams.set("api", options.apiBaseUrl);
|
|
75
|
+
setAccessGateCredentialFragment(url, options.credential);
|
|
61
76
|
return url.toString();
|
|
62
77
|
}
|
|
63
78
|
function buildEmbeddedUiLaunchUrl(options) {
|
|
64
79
|
const url = new URL(normalizeEmbeddedUiUrl(options.embeddedUiUrl));
|
|
65
80
|
url.searchParams.set("api", options.apiBaseUrl);
|
|
66
81
|
url.searchParams.set("session", options.sessionId);
|
|
82
|
+
setAccessGateCredentialFragment(url, options.credential);
|
|
67
83
|
return url.toString();
|
|
68
84
|
}
|
|
69
85
|
function buildBackendHealthPayload(input) {
|
|
@@ -75,7 +91,13 @@ function buildBackendHealthPayload(input) {
|
|
|
75
91
|
openspecuiVersion: input.openspecuiVersion,
|
|
76
92
|
hostedShellProtocolVersion: HOSTED_SHELL_PROTOCOL_VERSION,
|
|
77
93
|
embeddedUiUrl: input.embeddedUiUrl,
|
|
78
|
-
runtimeCapabilities: OPENSPECUI_RUNTIME_CAPABILITIES
|
|
94
|
+
runtimeCapabilities: [...OPENSPECUI_RUNTIME_CAPABILITIES],
|
|
95
|
+
apiBaseUrl: input.apiBaseUrl,
|
|
96
|
+
cliVersion: input.cliVersion,
|
|
97
|
+
envUri: input.envUri,
|
|
98
|
+
rootSummary: input.rootSummary,
|
|
99
|
+
hostedCapabilities: [...HOSTED_STORE_CAPABILITIES],
|
|
100
|
+
accessGateEnabled: input.accessGateEnabled
|
|
79
101
|
};
|
|
80
102
|
}
|
|
81
103
|
function hasRequiredRuntimeCapabilities(value) {
|
|
@@ -84,12 +106,12 @@ function hasRequiredRuntimeCapabilities(value) {
|
|
|
84
106
|
return OPENSPECUI_RUNTIME_CAPABILITIES.every((capability) => capabilities.has(capability));
|
|
85
107
|
}
|
|
86
108
|
function isBackendHealthRuntimeMetadata(value) {
|
|
87
|
-
|
|
88
|
-
return
|
|
109
|
+
const decoded = HostedBackendHealthResponseSchema.safeParse(value);
|
|
110
|
+
return decoded.success && hasRequiredRuntimeCapabilities(decoded.data.runtimeCapabilities);
|
|
89
111
|
}
|
|
90
112
|
function isHostedBackendHealthResponse(value) {
|
|
91
113
|
return isBackendHealthRuntimeMetadata(value) && isSupportedEmbeddedUiUrl(value.embeddedUiUrl);
|
|
92
114
|
}
|
|
93
115
|
|
|
94
116
|
//#endregion
|
|
95
|
-
export {
|
|
117
|
+
export { buildHostedLaunchUrl as a, isSupportedEmbeddedUiUrl as c, resolveHostedAppBaseUrl as d, buildEmbeddedUiLaunchUrl as i, normalizeEmbeddedUiUrl as l, OFFICIAL_APP_BASE_URL as n, isBackendHealthRuntimeMetadata as o, buildBackendHealthPayload as r, isHostedBackendHealthResponse as s, ACCESS_GATE_CREDENTIAL_FRAGMENT_PARAM as t, normalizeHostedAppBaseUrl as u };
|
package/dist/hosted-app.d.mts
CHANGED
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "./command-result-fkH3Ekdz.mjs";
|
|
2
|
+
import "./document-translation-D50BnvVh.mjs";
|
|
3
|
+
import "./sounds-qhRgCy0F.mjs";
|
|
4
|
+
import "./notifications-CgJlLgLO.mjs";
|
|
5
|
+
import "./cli-projection-DxnVGm2B.mjs";
|
|
6
|
+
import "./schemas-DS-JqAJ2.mjs";
|
|
7
|
+
import "./opsx-types-BJ8AjhrS.mjs";
|
|
8
|
+
import "./opsx-entity-D7kDQsze.mjs";
|
|
9
|
+
import { A as buildHostedLaunchUrl, B as HostedBackendHealthResponse, D as OpenSpecUIRuntimeCapability, E as OFFICIAL_APP_BASE_URL, F as normalizeHostedAppBaseUrl, H as HostedBackendRootSummary, I as resolveHostedAppBaseUrl, L as HOSTED_SHELL_PROTOCOL_VERSION, M as isHostedBackendHealthResponse, N as isSupportedEmbeddedUiUrl, O as buildBackendHealthPayload, P as normalizeEmbeddedUiUrl, R as HOSTED_STORE_CAPABILITIES, T as BackendHealthPayloadInput, V as HostedBackendHealthResponseSchema, gt as OPENSPECUI_RUNTIME_CAPABILITIES, j as isBackendHealthRuntimeMetadata, k as buildEmbeddedUiLaunchUrl, w as ACCESS_GATE_CREDENTIAL_FRAGMENT_PARAM } from "./dashboard-summary-transport-CQ4is5_e.mjs";
|
|
10
|
+
import "./markdown-facts-CCw3QdbM.mjs";
|
|
11
|
+
import "./markdown-reading-LUdqfbxH.mjs";
|
|
12
|
+
import "./openspec-annotations-C58Aoi-V.mjs";
|
|
13
|
+
import "./openspec-projection-RohNZI4p.mjs";
|
|
14
|
+
import "./translator-NKv1wo3o.mjs";
|
|
15
|
+
import "./terminal-audio-tXDm_EDe.mjs";
|
|
16
|
+
import "./local-download-profiles-BL_rtlVM.mjs";
|
|
17
|
+
import "./translation-language-pair-C18GPATW.mjs";
|
|
18
|
+
import "./opsx-workflows-BvnJqjfL.mjs";
|
|
19
|
+
import "./opsx-display-path-RXS5JTbV.mjs";
|
|
20
|
+
import "./store-mutation-protocol-5tfs-RmD.mjs";
|
|
21
|
+
import "./store-types-b554wAQJ.mjs";
|
|
22
|
+
import "./terminal-invocation-BOvxThym.mjs";
|
|
23
|
+
import "./terminal-theme-m3MSGJ7U.mjs";
|
|
24
|
+
import "./opsx-schema-detail-BxDXEwDY.mjs";
|
|
25
|
+
export { ACCESS_GATE_CREDENTIAL_FRAGMENT_PARAM, BackendHealthPayloadInput, HOSTED_SHELL_PROTOCOL_VERSION, HOSTED_STORE_CAPABILITIES, HostedBackendHealthResponse, HostedBackendHealthResponseSchema, HostedBackendRootSummary, OFFICIAL_APP_BASE_URL, OPENSPECUI_RUNTIME_CAPABILITIES, OpenSpecUIRuntimeCapability, buildBackendHealthPayload, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, isBackendHealthRuntimeMetadata, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, resolveHostedAppBaseUrl };
|
package/dist/hosted-app.mjs
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./common-D8YUK9dA.mjs";
|
|
2
|
+
import "./cli-projection-vO3-FJg5.mjs";
|
|
3
|
+
import "./store-mutation-protocol-CSwD-xPO.mjs";
|
|
4
|
+
import "./store-types-DlX1REBg.mjs";
|
|
5
|
+
import { i as HostedBackendHealthResponseSchema, n as HOSTED_STORE_CAPABILITIES, t as HOSTED_SHELL_PROTOCOL_VERSION, v as OPENSPECUI_RUNTIME_CAPABILITIES } from "./hosted-contract-CcRnb51e.mjs";
|
|
6
|
+
import { a as buildHostedLaunchUrl, c as isSupportedEmbeddedUiUrl, d as resolveHostedAppBaseUrl, i as buildEmbeddedUiLaunchUrl, l as normalizeEmbeddedUiUrl, n as OFFICIAL_APP_BASE_URL, o as isBackendHealthRuntimeMetadata, r as buildBackendHealthPayload, s as isHostedBackendHealthResponse, t as ACCESS_GATE_CREDENTIAL_FRAGMENT_PARAM, u as normalizeHostedAppBaseUrl } from "./hosted-app-BPU4OR41.mjs";
|
|
2
7
|
|
|
3
|
-
export { HOSTED_SHELL_PROTOCOL_VERSION, OFFICIAL_APP_BASE_URL, OPENSPECUI_RUNTIME_CAPABILITIES, buildBackendHealthPayload, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, isBackendHealthRuntimeMetadata, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, resolveHostedAppBaseUrl };
|
|
8
|
+
export { ACCESS_GATE_CREDENTIAL_FRAGMENT_PARAM, HOSTED_SHELL_PROTOCOL_VERSION, HOSTED_STORE_CAPABILITIES, HostedBackendHealthResponseSchema, OFFICIAL_APP_BASE_URL, OPENSPECUI_RUNTIME_CAPABILITIES, buildBackendHealthPayload, buildEmbeddedUiLaunchUrl, buildHostedLaunchUrl, isBackendHealthRuntimeMetadata, isHostedBackendHealthResponse, isSupportedEmbeddedUiUrl, normalizeEmbeddedUiUrl, normalizeHostedAppBaseUrl, resolveHostedAppBaseUrl };
|