@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
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { a as CliRootSchema, n as CliDiagnosticSchema, o as CliRootSourceSchema, r as CliDoctorReferenceEntrySchema } from "./common-D8YUK9dA.mjs";
|
|
2
|
+
import { o as CliProjectionNoticeSchema, u as createCliProjectionStateSchema } from "./cli-projection-vO3-FJg5.mjs";
|
|
3
|
+
import { i as StoreMutationStartResponseSchema } from "./store-mutation-protocol-CSwD-xPO.mjs";
|
|
4
|
+
import { i as StoreListEntrySchema, r as StoreDoctorStoreSchema } from "./store-types-DlX1REBg.mjs";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
|
|
7
|
+
//#region src/hosted-protocol-browser.ts
|
|
8
|
+
/** Mark a backend-issued string as an opaque `EnvUri` without dereferencing or reconstructing it. */
|
|
9
|
+
function asEnvUri(value) {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
/** Whether a backend advertises a compatibility fact. This authorizes nothing. */
|
|
13
|
+
function hasCapability(capabilities, capability) {
|
|
14
|
+
return Boolean(capabilities?.includes(capability));
|
|
15
|
+
}
|
|
16
|
+
/** Whether a Store mutation status is terminal. */
|
|
17
|
+
function isTerminalMutationStatus(status) {
|
|
18
|
+
return status === "succeeded" || status === "failed" || status === "indeterminate";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/hosted-contract.ts
|
|
23
|
+
/**
|
|
24
|
+
* Orthogonal intents (created 2026-07-25 Asia/Shanghai):
|
|
25
|
+
* 1. Publish the browser-safe runtime schemas for hosted Health, Store, Root Context, and mutation facts.
|
|
26
|
+
* 2. Decode one successful tRPC result envelope into typed data or retained contract-error evidence.
|
|
27
|
+
* 3. Preserve upstream Store and OpenSpec diagnostic facts without inferring health or ownership.
|
|
28
|
+
* 4. Keep this protocol entry free of Node runtime dependencies for hosted browser consumers.
|
|
29
|
+
* 5. Publish Store CLI projection lifecycle Pull schemas and data-free Push notices.
|
|
30
|
+
*
|
|
31
|
+
* Original request (2026-07-24): "可以归档旧change了,然后我们继续新的change 的开发推进"
|
|
32
|
+
* P4.1 contract boundary: malformed successful hosted payloads must not become asserted public facts.
|
|
33
|
+
* Original request (2026-07-26): "这是一套通用的数据拉取推送技术。"
|
|
34
|
+
*/
|
|
35
|
+
const HOSTED_SHELL_PROTOCOL_VERSION = 1;
|
|
36
|
+
const OPENSPECUI_RUNTIME_CAPABILITIES = ["notifications.subscribe", "config.notifications"];
|
|
37
|
+
const HOSTED_STORE_CAPABILITIES = [
|
|
38
|
+
"stores.inspect",
|
|
39
|
+
"stores.mutate",
|
|
40
|
+
"contexts.inspect"
|
|
41
|
+
];
|
|
42
|
+
/** Display-safe summary emitted with a hosted backend health response. */
|
|
43
|
+
const HostedBackendRootSummarySchema = z.object({
|
|
44
|
+
planningRootPath: z.string().nullable(),
|
|
45
|
+
rootSource: CliRootSourceSchema,
|
|
46
|
+
storeId: z.string().nullable(),
|
|
47
|
+
ready: z.boolean()
|
|
48
|
+
}).passthrough();
|
|
49
|
+
/** Browser-safe runtime contract for one hosted backend health response. */
|
|
50
|
+
const HostedBackendHealthResponseSchema = z.object({
|
|
51
|
+
status: z.literal("ok"),
|
|
52
|
+
projectDir: z.string(),
|
|
53
|
+
projectName: z.string(),
|
|
54
|
+
watcherEnabled: z.boolean(),
|
|
55
|
+
openspecuiVersion: z.string(),
|
|
56
|
+
hostedShellProtocolVersion: z.literal(HOSTED_SHELL_PROTOCOL_VERSION),
|
|
57
|
+
embeddedUiUrl: z.string(),
|
|
58
|
+
runtimeCapabilities: z.array(z.enum(OPENSPECUI_RUNTIME_CAPABILITIES)),
|
|
59
|
+
apiBaseUrl: z.string().optional(),
|
|
60
|
+
cliVersion: z.string().nullable().optional(),
|
|
61
|
+
envUri: z.string().optional(),
|
|
62
|
+
rootSummary: HostedBackendRootSummarySchema.nullable().optional(),
|
|
63
|
+
hostedCapabilities: z.array(z.enum(HOSTED_STORE_CAPABILITIES)).optional(),
|
|
64
|
+
accessGateEnabled: z.boolean().optional()
|
|
65
|
+
}).passthrough();
|
|
66
|
+
const HostedStoreFeatureErrorSchema = z.object({
|
|
67
|
+
kind: z.string(),
|
|
68
|
+
message: z.string(),
|
|
69
|
+
cliVersion: z.string().optional()
|
|
70
|
+
}).passthrough();
|
|
71
|
+
/** Browser-safe Store-list projection wrapper returned by the hosted router. */
|
|
72
|
+
const HostedStoreListEnvelopeSchema = z.object({
|
|
73
|
+
available: z.boolean(),
|
|
74
|
+
stores: z.array(StoreListEntrySchema),
|
|
75
|
+
evidence: z.unknown().nullable().optional(),
|
|
76
|
+
error: HostedStoreFeatureErrorSchema.optional(),
|
|
77
|
+
cliVersion: z.string().optional()
|
|
78
|
+
}).passthrough();
|
|
79
|
+
/** Browser-safe Store-Doctor projection wrapper returned by the hosted router. */
|
|
80
|
+
const HostedStoreDoctorEnvelopeSchema = z.object({
|
|
81
|
+
available: z.boolean(),
|
|
82
|
+
stores: z.array(StoreDoctorStoreSchema),
|
|
83
|
+
evidence: z.unknown().nullable().optional(),
|
|
84
|
+
error: HostedStoreFeatureErrorSchema.optional(),
|
|
85
|
+
cliVersion: z.string().optional()
|
|
86
|
+
}).passthrough();
|
|
87
|
+
/** Browser-safe Pull state for Store Inventory CLI Projection Work. */
|
|
88
|
+
const HostedStoreListProjectionStateSchema = createCliProjectionStateSchema(HostedStoreListEnvelopeSchema);
|
|
89
|
+
/** Browser-safe Pull state for Store Doctor CLI Projection Work. */
|
|
90
|
+
const HostedStoreDoctorProjectionStateSchema = createCliProjectionStateSchema(HostedStoreDoctorEnvelopeSchema);
|
|
91
|
+
/** Browser-safe lifecycle-only Push shared by hosted CLI projections. */
|
|
92
|
+
const HostedCliProjectionNoticeSchema = CliProjectionNoticeSchema;
|
|
93
|
+
const HostedRootContextCliSchema = z.object({
|
|
94
|
+
available: z.boolean(),
|
|
95
|
+
version: z.string().optional(),
|
|
96
|
+
error: z.string().optional(),
|
|
97
|
+
effectiveCommand: z.string().optional(),
|
|
98
|
+
tried: z.array(z.string()).optional()
|
|
99
|
+
}).passthrough();
|
|
100
|
+
const HostedRootContextCommandEvidenceSchema = z.object({
|
|
101
|
+
success: z.boolean(),
|
|
102
|
+
stdout: z.string(),
|
|
103
|
+
stderr: z.string(),
|
|
104
|
+
exitCode: z.number().int().nullable(),
|
|
105
|
+
diagnostics: z.array(CliDiagnosticSchema),
|
|
106
|
+
contractError: z.string().optional()
|
|
107
|
+
}).passthrough();
|
|
108
|
+
const HostedPlanningRootSchema = CliRootSchema.extend({
|
|
109
|
+
healthy: z.boolean(),
|
|
110
|
+
status: z.array(CliDiagnosticSchema)
|
|
111
|
+
}).passthrough();
|
|
112
|
+
const HostedContextMemberSchema = z.object({
|
|
113
|
+
role: z.literal("referenced_store"),
|
|
114
|
+
id: z.string(),
|
|
115
|
+
path: z.string().optional(),
|
|
116
|
+
remote: z.string().optional(),
|
|
117
|
+
fetch: z.string().optional(),
|
|
118
|
+
status: z.array(CliDiagnosticSchema)
|
|
119
|
+
}).passthrough();
|
|
120
|
+
/** Browser-safe complete Root Context fact retained by the hosted App projection. */
|
|
121
|
+
const HostedRootContextSchema = z.object({
|
|
122
|
+
launchProject: z.object({ path: z.string() }).passthrough(),
|
|
123
|
+
planningRoot: HostedPlanningRootSchema.nullable(),
|
|
124
|
+
storeId: z.string().nullable(),
|
|
125
|
+
generation: z.string().optional(),
|
|
126
|
+
cli: HostedRootContextCliSchema,
|
|
127
|
+
references: z.array(CliDoctorReferenceEntrySchema),
|
|
128
|
+
contextMembers: z.array(HostedContextMemberSchema),
|
|
129
|
+
dataScope: z.object({
|
|
130
|
+
path: z.string(),
|
|
131
|
+
source: z.enum([
|
|
132
|
+
"xdg-data-home",
|
|
133
|
+
"local-app-data",
|
|
134
|
+
"user-home-default"
|
|
135
|
+
]),
|
|
136
|
+
environmentVariable: z.enum(["XDG_DATA_HOME", "LOCALAPPDATA"]).nullable()
|
|
137
|
+
}).passthrough(),
|
|
138
|
+
diagnostics: z.object({
|
|
139
|
+
root: z.array(CliDiagnosticSchema),
|
|
140
|
+
doctor: z.array(CliDiagnosticSchema),
|
|
141
|
+
context: z.array(CliDiagnosticSchema)
|
|
142
|
+
}).passthrough(),
|
|
143
|
+
evidence: z.object({
|
|
144
|
+
doctor: HostedRootContextCommandEvidenceSchema.nullable(),
|
|
145
|
+
context: HostedRootContextCommandEvidenceSchema.nullable()
|
|
146
|
+
}).passthrough(),
|
|
147
|
+
observedAt: z.number()
|
|
148
|
+
}).passthrough();
|
|
149
|
+
const HostedRootContextErrorCodeSchema = z.enum([
|
|
150
|
+
"cli-unavailable",
|
|
151
|
+
"doctor-command-failed",
|
|
152
|
+
"doctor-contract-drift",
|
|
153
|
+
"root-unresolved",
|
|
154
|
+
"root-unhealthy",
|
|
155
|
+
"context-command-failed",
|
|
156
|
+
"context-contract-drift",
|
|
157
|
+
"context-root-mismatch",
|
|
158
|
+
"references-unresolved",
|
|
159
|
+
"resolver-failed"
|
|
160
|
+
]);
|
|
161
|
+
const HostedRootContextLoadingStateSchema = z.object({
|
|
162
|
+
state: z.literal("loading"),
|
|
163
|
+
data: z.null(),
|
|
164
|
+
attempt: z.null(),
|
|
165
|
+
error: z.null(),
|
|
166
|
+
observedAt: z.number()
|
|
167
|
+
});
|
|
168
|
+
const HostedRootContextReadyStateSchema = z.object({
|
|
169
|
+
state: z.literal("ready"),
|
|
170
|
+
data: HostedRootContextSchema,
|
|
171
|
+
attempt: z.null(),
|
|
172
|
+
error: z.null(),
|
|
173
|
+
observedAt: z.number()
|
|
174
|
+
});
|
|
175
|
+
const HostedRootContextRefreshingStateSchema = z.object({
|
|
176
|
+
state: z.literal("refreshing"),
|
|
177
|
+
data: HostedRootContextSchema,
|
|
178
|
+
attempt: z.null(),
|
|
179
|
+
error: z.null(),
|
|
180
|
+
observedAt: z.number()
|
|
181
|
+
});
|
|
182
|
+
const HostedRootContextErrorStateSchema = z.object({
|
|
183
|
+
state: z.literal("error"),
|
|
184
|
+
data: HostedRootContextSchema.nullable(),
|
|
185
|
+
attempt: HostedRootContextSchema,
|
|
186
|
+
error: z.object({
|
|
187
|
+
code: HostedRootContextErrorCodeSchema,
|
|
188
|
+
message: z.string()
|
|
189
|
+
}),
|
|
190
|
+
observedAt: z.number()
|
|
191
|
+
});
|
|
192
|
+
/** Browser-safe settled CLI result cached by Root Context Projection Work. */
|
|
193
|
+
const HostedRootContextResolvedStateSchema = z.discriminatedUnion("state", [HostedRootContextReadyStateSchema, HostedRootContextErrorStateSchema]);
|
|
194
|
+
/** Browser-safe Pull lifecycle for cached Root Context CLI Projection Work. */
|
|
195
|
+
const HostedRootContextProjectionStateSchema = createCliProjectionStateSchema(HostedRootContextResolvedStateSchema);
|
|
196
|
+
/** Browser-safe legacy Root Context lifecycle retained for project-workspace adapters. */
|
|
197
|
+
const HostedRootContextStateSchema = z.discriminatedUnion("state", [
|
|
198
|
+
HostedRootContextLoadingStateSchema,
|
|
199
|
+
HostedRootContextReadyStateSchema,
|
|
200
|
+
HostedRootContextRefreshingStateSchema,
|
|
201
|
+
HostedRootContextErrorStateSchema
|
|
202
|
+
]);
|
|
203
|
+
/** Hosted mutation admission shares the Server-owned P3 lifecycle schema. */
|
|
204
|
+
const HostedStoreMutationStartResponseSchema = StoreMutationStartResponseSchema;
|
|
205
|
+
/** One explicit browser-visible contract error, retaining the decoder's parse cause. */
|
|
206
|
+
var HostedBackendContractError = class extends Error {
|
|
207
|
+
kind = "contract";
|
|
208
|
+
constructor(message, options) {
|
|
209
|
+
super(message, options);
|
|
210
|
+
this.name = "HostedBackendContractError";
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
/** Structural tRPC envelope used by every successful hosted router ingress. */
|
|
214
|
+
const HostedTrpcResultEnvelopeSchema = z.object({ result: z.object({ data: z.unknown() }).passthrough() }).passthrough();
|
|
215
|
+
/** Decode one successful hosted tRPC `{ result: { data } }` envelope into typed data. */
|
|
216
|
+
function decodeHostedTrpcData(schema, payload) {
|
|
217
|
+
const envelope = HostedTrpcResultEnvelopeSchema.safeParse(payload);
|
|
218
|
+
if (!envelope.success) return {
|
|
219
|
+
kind: "contract-error",
|
|
220
|
+
error: new HostedBackendContractError("Malformed hosted tRPC result envelope.", { cause: envelope.error })
|
|
221
|
+
};
|
|
222
|
+
const decoded = schema.safeParse(envelope.data.result.data);
|
|
223
|
+
if (!decoded.success) return {
|
|
224
|
+
kind: "contract-error",
|
|
225
|
+
error: new HostedBackendContractError("Malformed hosted tRPC result data.", { cause: decoded.error })
|
|
226
|
+
};
|
|
227
|
+
return {
|
|
228
|
+
kind: "success",
|
|
229
|
+
data: decoded.data
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
//#endregion
|
|
234
|
+
export { isTerminalMutationStatus as S, HostedTrpcResultEnvelopeSchema as _, HostedBackendRootSummarySchema as a, asEnvUri as b, HostedRootContextProjectionStateSchema as c, HostedRootContextStateSchema as d, HostedStoreDoctorEnvelopeSchema as f, HostedStoreMutationStartResponseSchema as g, HostedStoreListProjectionStateSchema as h, HostedBackendHealthResponseSchema as i, HostedRootContextResolvedStateSchema as l, HostedStoreListEnvelopeSchema as m, HOSTED_STORE_CAPABILITIES as n, HostedCliProjectionNoticeSchema as o, HostedStoreDoctorProjectionStateSchema as p, HostedBackendContractError as r, HostedRootContextErrorCodeSchema as s, HOSTED_SHELL_PROTOCOL_VERSION as t, HostedRootContextSchema as u, OPENSPECUI_RUNTIME_CAPABILITIES as v, hasCapability as x, decodeHostedTrpcData as y };
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { $ as HostedRootContextResolvedStateSchema, B as HostedBackendHealthResponse, Ct as StoreMutationResult, Dt as isTerminalMutationStatus, Et as hasCapability, G as HostedCliProjectionNotice, H as HostedBackendRootSummary, J as HostedRootContextErrorCode, K as HostedCliProjectionNoticeSchema, L as HOSTED_SHELL_PROTOCOL_VERSION, Q as HostedRootContextResolvedState, R as HOSTED_STORE_CAPABILITIES, St as StoreMutationKind, Tt as asEnvUri, U as HostedBackendRootSummarySchema, V as HostedBackendHealthResponseSchema, W as HostedCliDiagnostic, X as HostedRootContextProjectionState, Y as HostedRootContextErrorCodeSchema, Z as HostedRootContextProjectionStateSchema, _t as decodeHostedTrpcData, at as HostedStoreDoctorEnvelopeSchema, bt as StoreCapabilitySet, ct as HostedStoreListEnvelope, dt as HostedStoreListProjectionStateSchema, et as HostedRootContextSchema, ft as HostedStoreMutationStartResponse, gt as OPENSPECUI_RUNTIME_CAPABILITIES, ht as HostedTrpcResultEnvelopeSchema, it as HostedStoreDoctorEnvelope, lt as HostedStoreListEnvelopeSchema, mt as HostedTrpcDecodeResult, nt as HostedRootContextStateSchema, ot as HostedStoreDoctorProjectionState, pt as HostedStoreMutationStartResponseSchema, q as HostedRootContext, rt as HostedRootSource, st as HostedStoreDoctorProjectionStateSchema, tt as HostedRootContextState, ut as HostedStoreListProjectionState, vt as EnvUri, wt as StoreMutationStatus, xt as StoreMutation, yt as StoreCapability, z as HostedBackendContractError } 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 { EnvUri, HOSTED_SHELL_PROTOCOL_VERSION, HOSTED_STORE_CAPABILITIES, HostedBackendContractError, HostedBackendHealthResponse, HostedBackendHealthResponseSchema, HostedBackendRootSummary, HostedBackendRootSummarySchema, HostedCliDiagnostic, HostedCliProjectionNotice, HostedCliProjectionNoticeSchema, HostedRootContext, HostedRootContextErrorCode, HostedRootContextErrorCodeSchema, HostedRootContextProjectionState, HostedRootContextProjectionStateSchema, HostedRootContextResolvedState, HostedRootContextResolvedStateSchema, HostedRootContextSchema, HostedRootContextState, HostedRootContextStateSchema, HostedRootSource, HostedStoreDoctorEnvelope, HostedStoreDoctorEnvelopeSchema, HostedStoreDoctorProjectionState, HostedStoreDoctorProjectionStateSchema, HostedStoreListEnvelope, HostedStoreListEnvelopeSchema, HostedStoreListProjectionState, HostedStoreListProjectionStateSchema, HostedStoreMutationStartResponse, HostedStoreMutationStartResponseSchema, HostedTrpcDecodeResult, HostedTrpcResultEnvelopeSchema, OPENSPECUI_RUNTIME_CAPABILITIES, StoreCapability, StoreCapabilitySet, StoreMutation, StoreMutationKind, StoreMutationResult, StoreMutationStatus, asEnvUri, decodeHostedTrpcData, hasCapability, isTerminalMutationStatus };
|
|
@@ -0,0 +1,7 @@
|
|
|
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 { S as isTerminalMutationStatus, _ as HostedTrpcResultEnvelopeSchema, a as HostedBackendRootSummarySchema, b as asEnvUri, c as HostedRootContextProjectionStateSchema, d as HostedRootContextStateSchema, f as HostedStoreDoctorEnvelopeSchema, g as HostedStoreMutationStartResponseSchema, h as HostedStoreListProjectionStateSchema, i as HostedBackendHealthResponseSchema, l as HostedRootContextResolvedStateSchema, m as HostedStoreListEnvelopeSchema, n as HOSTED_STORE_CAPABILITIES, o as HostedCliProjectionNoticeSchema, p as HostedStoreDoctorProjectionStateSchema, r as HostedBackendContractError, s as HostedRootContextErrorCodeSchema, t as HOSTED_SHELL_PROTOCOL_VERSION, u as HostedRootContextSchema, v as OPENSPECUI_RUNTIME_CAPABILITIES, x as hasCapability, y as decodeHostedTrpcData } from "./hosted-contract-CcRnb51e.mjs";
|
|
6
|
+
|
|
7
|
+
export { HOSTED_SHELL_PROTOCOL_VERSION, HOSTED_STORE_CAPABILITIES, HostedBackendContractError, HostedBackendHealthResponseSchema, HostedBackendRootSummarySchema, HostedCliProjectionNoticeSchema, HostedRootContextErrorCodeSchema, HostedRootContextProjectionStateSchema, HostedRootContextResolvedStateSchema, HostedRootContextSchema, HostedRootContextStateSchema, HostedStoreDoctorEnvelopeSchema, HostedStoreDoctorProjectionStateSchema, HostedStoreListEnvelopeSchema, HostedStoreListProjectionStateSchema, HostedStoreMutationStartResponseSchema, HostedTrpcResultEnvelopeSchema, OPENSPECUI_RUNTIME_CAPABILITIES, asEnvUri, decodeHostedTrpcData, hasCapability, isTerminalMutationStatus };
|