@vite-hub/workspace 0.0.4 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +225 -58
  2. package/dist/{ai-CjxvGqM0.d.ts → ai-BW2ZhizI.d.ts} +22 -7
  3. package/dist/{ai-BqCC8BpY.js → ai-BZyLwULx.js} +147 -66
  4. package/dist/ai.d.ts +2 -2
  5. package/dist/ai.js +1 -1
  6. package/dist/{asset-registry-8QI3ML3K.js → asset-registry-DfBV5kmw.js} +3 -2
  7. package/dist/association-Cm0dUTDU-CDDhJnIh-Cv3bWnVb.js +19 -0
  8. package/dist/blob-database.d.ts +521 -0
  9. package/dist/blob-database.js +601 -0
  10. package/dist/cloudflare.d.ts +5 -6
  11. package/dist/cloudflare.js +1 -1
  12. package/dist/config-B7dmzDX3.js +1112 -0
  13. package/dist/{config-DE9xlaIw.d.ts → config-DLKdaFWN.d.ts} +1 -2
  14. package/dist/error-diagnostics-A_8Kp-48.js +116 -0
  15. package/dist/error-diagnostics-DY5GP47p.js +96 -0
  16. package/dist/events-7EBoeIPd-A2RUkJi5-BxrICQ17.js +354 -0
  17. package/dist/events-CRaLy7U3-3PNNp5WZ-Gv9nd0cH.js +214 -0
  18. package/dist/events-CeChclTf-CX-gD8oy-4aL2j6V-.js +527 -0
  19. package/dist/feed-DsC7Vws1-M_de2nSK-tKc0Pwo8.js +248 -0
  20. package/dist/feed-Dyf730Ys-D0HgBba6-BUnCa5gS.js +179 -0
  21. package/dist/file-C0_aPWSS.js +26 -0
  22. package/dist/file-metadata-CxDy-E2H.js +58 -0
  23. package/dist/{files-Q6xZjDHA.js → files-C7Px8uaC.js} +3 -3
  24. package/dist/forgejo-BN8ItCfl-Bbn4vhDd.js +2278 -0
  25. package/dist/{github-DHnjxQIX.js → github-CPxHtFB7.js} +16 -23
  26. package/dist/github-DtncTfmv-Du2S8lGF.js +4159 -0
  27. package/dist/gitlab-BoDm8-BC-xzZsW9eW.js +2530 -0
  28. package/dist/glob--XcLlcml.js +22 -0
  29. package/dist/glob--kNYDbfU.js +30 -0
  30. package/dist/graphql-DG5aJBT3-DceyFYdM-C4saqX37.js +489 -0
  31. package/dist/{host-DJH8cuoU.js → host-CFnrTXTK.js} +97 -41
  32. package/dist/{hosted-RPeJOCFz.js → hosted-acMA5XyL.js} +102 -19
  33. package/dist/hosted-vercel-blob-DKntsHaf.js +12603 -0
  34. package/dist/hosted-vercel-blob.d.ts +5 -6
  35. package/dist/hosted-vercel-blob.js +1 -1
  36. package/dist/hosted.d.ts +6 -7
  37. package/dist/hosted.js +1 -1
  38. package/dist/index.d.ts +57 -36
  39. package/dist/index.js +56 -56
  40. package/dist/inspect-BoObD2cJ.js +167 -0
  41. package/dist/internal/path.d.ts +2 -0
  42. package/dist/internal/path.js +2 -0
  43. package/dist/lifecycle-BwZ7c9hb.js +596 -0
  44. package/dist/loader.d.ts +5 -6
  45. package/dist/loader.js +3 -2
  46. package/dist/mcp-resources-BREFCmtn.js +39 -0
  47. package/dist/memory-BbwOqDXl.js +248 -0
  48. package/dist/metadata-target-DZEZQGHA.js +1588 -0
  49. package/dist/mountx.d.ts +4 -6
  50. package/dist/mountx.js +10 -8
  51. package/dist/nitro.d.ts +1 -1
  52. package/dist/nitro.js +1 -1
  53. package/dist/nuxt.d.ts +13 -12
  54. package/dist/nuxt.js +4 -8
  55. package/dist/operations-BcpWr41m.js +159 -0
  56. package/dist/operations-CGqY1XeG.js +965 -0
  57. package/dist/operations-DnOwKsJT.d.ts +136 -0
  58. package/dist/operations.d.ts +53 -0
  59. package/dist/operations.js +2 -0
  60. package/dist/path-CNAwN7pw.js +114 -0
  61. package/dist/path-DrSIenjj.js +59 -0
  62. package/dist/path-zHxQUbqa.d.ts +9 -0
  63. package/dist/plugins-DqQ8b4T5.d.ts +10 -0
  64. package/dist/provider-kXjfli9u.js +1457 -0
  65. package/dist/providers/github/store.d.ts +3 -5
  66. package/dist/providers/github/store.js +1 -1
  67. package/dist/{registry-D3yzt8HQ.js → registry-Bp-8UUfG.js} +9 -7
  68. package/dist/{registry-Uj6IVxes.d.ts → registry-Cg1TJVVZ.d.ts} +1 -2
  69. package/dist/{request-execution-B-dSFlGB.js → request-execution-Dk9rY-Yh.js} +19 -19
  70. package/dist/{chunk-2rV9d50f.js → rolldown-runtime-B4iAMlE-.js} +2 -2
  71. package/dist/runtime/assets.d.ts +3 -5
  72. package/dist/runtime/assets.js +7 -6
  73. package/dist/runtime/empty-assets-registry.d.ts +1 -2
  74. package/dist/runtime/empty-registry.d.ts +1 -2
  75. package/dist/runtime/state.d.ts +3 -3
  76. package/dist/runtime/state.js +6 -6
  77. package/dist/runtime/workspace.d.ts +1 -1
  78. package/dist/runtime/workspace.js +1 -1
  79. package/dist/runtime.d.ts +51 -17
  80. package/dist/runtime.js +320 -60
  81. package/dist/{search-BpiCF2Tw.js → search-CrTmXj5h.js} +10 -9
  82. package/dist/server-BNQ-Nbjj.js +290 -0
  83. package/dist/server.d.ts +22 -34
  84. package/dist/server.js +2 -328
  85. package/dist/shared-DalXdP0i.js +2158 -0
  86. package/dist/source-metadata.d.ts +6 -7
  87. package/dist/source-metadata.js +7 -7
  88. package/dist/{state-tYcRWEh2.d.ts → state-B8zbLi5t.d.ts} +3 -3
  89. package/dist/store-CXgmu-uw.js +1729 -0
  90. package/dist/{sync-DnTQwt8r.js → sync-CN6ec-5M.js} +61 -41
  91. package/dist/templates-Bn8a-pd2-D9DhJEVD-CBfXNRzz.js +125 -0
  92. package/dist/test.d.ts +1 -1
  93. package/dist/test.js +1 -1
  94. package/dist/{token-CVzURBxC.js → token-CO62GglH.js} +3 -3
  95. package/dist/{types-CYuwjJ4V.d.ts → types-DeK9GIxy.d.ts} +256 -24
  96. package/dist/{use-BTNDR5Rd.js → use-BQj7nSz6.js} +82 -41
  97. package/dist/{use-BiHzt0xA.d.ts → use-DhwhbAVV.d.ts} +16 -11
  98. package/dist/utils-Blrh4N2n.js +545 -0
  99. package/dist/vite-BEvgU2GY.js +20909 -0
  100. package/dist/vite-CcZmMQ7S.d.ts +476 -0
  101. package/dist/vite.d.ts +2 -2
  102. package/dist/vite.js +2 -2
  103. package/dist/webhooks-DgHwxxYz-D1V2LOr1-azofFOiP.js +1565 -0
  104. package/dist/{workspace-Dq08Yn72.js → workspace-6pxkOuxr.js} +361 -230
  105. package/dist/{workspace-Xddf4G1B.d.ts → workspace-BWJQBK1u.d.ts} +4 -3
  106. package/package.json +89 -55
  107. package/dist/collections/client.d.ts +0 -39
  108. package/dist/collections/client.js +0 -137
  109. package/dist/collections.d.ts +0 -59
  110. package/dist/collections.js +0 -159
  111. package/dist/config-Bc3c4Su1.js +0 -7904
  112. package/dist/config-CHLLWklZ.js +0 -36
  113. package/dist/file-Bc1X7pco.js +0 -23
  114. package/dist/glob-CEZKeZFC.js +0 -18
  115. package/dist/hosted-vercel-blob-d6C8ND5j.js +0 -23580
  116. package/dist/lifecycle-LrL3sA4n.js +0 -316
  117. package/dist/metadata-target-B0tOmVW7.js +0 -717
  118. package/dist/path-Cp59koVz.js +0 -139
  119. package/dist/provider-B1yLjCJJ.js +0 -746
  120. package/dist/publish.d.ts +0 -35
  121. package/dist/publish.js +0 -112
  122. package/dist/runtime-options-BsPSv5O7.js +0 -13
  123. package/dist/runtime-type-iEE6BjQJ.js +0 -34
  124. package/dist/shared-DTR1Hhma.js +0 -331
  125. package/dist/store-Dt_Jyys3.js +0 -608
  126. package/dist/vite-BptCrpv2.js +0 -4526
  127. package/dist/vite-CtA9guIM.d.ts +0 -66
package/dist/server.js CHANGED
@@ -1,328 +1,2 @@
1
- import { o as matchesAny, s as normalizeSafeWorkspacePath } from "./path-Cp59koVz.js";
2
- import { d as resolveWorkspaceAutoCommit } from "./workspace-Dq08Yn72.js";
3
- import { r as withWorkspaceProgress } from "./host-DJH8cuoU.js";
4
- import { t as useWorkspace } from "./use-BTNDR5Rd.js";
5
- import { getWorkspaceCollectionItem, queryWorkspaceCollection, workspaceCollectionEmpty } from "./collections.js";
6
- import { getViteHubErrorShape } from "@vite-hub/runtime";
7
- import { lookup } from "mrmime";
8
- import { createError, defineEventHandler, getQuery, getRouterParam } from "h3";
9
- //#region src/server.ts
10
- const workspaceDevRoute = "/__vitehub/workspace/dev";
11
- const workspaceDevHeader = "x-vitehub-workspace-dev";
12
- const workspaceDevHeaderValue = "1";
13
- const workspaceDevTokenHeader = "x-vitehub-dev-token";
14
- function hasWorkspaceCommitRules(definition) {
15
- return [...Object.values(definition.rules || {}), ...(definition.plugins || []).flatMap((plugin) => Object.values(plugin.rules || {}))].some((rule) => rule.commit !== void 0);
16
- }
17
- const workspaceDevTokensKey = Symbol.for("vitehub.workspace.devTokens");
18
- function workspaceDevTokens() {
19
- const scope = globalThis;
20
- scope[workspaceDevTokensKey] ??= /* @__PURE__ */ new Map();
21
- return scope[workspaceDevTokensKey];
22
- }
23
- function workspaceDevTokenServerId(port) {
24
- return `${process.pid}:${port ?? "unknown"}`;
25
- }
26
- async function workspaceDevTokenRoot(rootDir, options = {}) {
27
- const [{ createHash }, { tmpdir }, { join, resolve }] = await Promise.all([
28
- import("node:crypto"),
29
- import("node:os"),
30
- import("node:path")
31
- ]);
32
- const resolvedRoot = resolve(rootDir);
33
- const rootKey = createHash("sha256").update(resolvedRoot).digest("hex");
34
- const serverKey = createHash("sha256").update(options.serverId || "default").digest("hex");
35
- return {
36
- file: join(tmpdir(), "vitehub-workspace-dev", rootKey, serverKey, "dev-token"),
37
- key: `${rootKey}:${serverKey}`
38
- };
39
- }
40
- function headerValue(headers, name) {
41
- if (headers instanceof Headers) return headers.get(name) || void 0;
42
- const value = headers[name];
43
- return Array.isArray(value) ? value[0] : value;
44
- }
45
- function randomToken() {
46
- return [...globalThis.crypto.getRandomValues(new Uint8Array(32))].map((byte) => byte.toString(16).padStart(2, "0")).join("");
47
- }
48
- async function refreshWorkspaceDevToken(rootDir, options = {}) {
49
- const token = randomToken();
50
- const tokenRoot = await workspaceDevTokenRoot(rootDir, options);
51
- workspaceDevTokens().set(tokenRoot.key, token);
52
- const [{ mkdir, writeFile }, { dirname }] = await Promise.all([import("node:fs/promises"), import("node:path")]);
53
- const file = tokenRoot.file;
54
- await mkdir(dirname(file), {
55
- mode: 448,
56
- recursive: true
57
- });
58
- await writeFile(file, `${token}\n`, { mode: 384 });
59
- return token;
60
- }
61
- async function ensureWorkspaceDevToken(rootDir, options = {}) {
62
- return workspaceDevTokens().get((await workspaceDevTokenRoot(rootDir, options)).key) || await refreshWorkspaceDevToken(rootDir, options);
63
- }
64
- async function readWorkspaceDevToken(rootDir, options = {}) {
65
- try {
66
- const { readFile } = await import("node:fs/promises");
67
- return (await readFile((await workspaceDevTokenRoot(rootDir, options)).file, "utf8")).trim() || void 0;
68
- } catch (error) {
69
- if (error && typeof error === "object" && "code" in error && error.code === "ENOENT") return;
70
- throw error;
71
- }
72
- }
73
- async function validateWorkspaceDevToken(rootDir, headers, options = {}) {
74
- const token = headerValue(headers, workspaceDevTokenHeader);
75
- return typeof token === "string" && token === await ensureWorkspaceDevToken(rootDir, options);
76
- }
77
- async function resolveWorkspace(workspace) {
78
- if (typeof workspace === "string") return useWorkspace(workspace);
79
- if (typeof workspace === "function") return await workspace();
80
- return workspace;
81
- }
82
- function resolveWorkspaceFilePath(path, root) {
83
- const normalizedPath = normalizeSafeWorkspacePath(path, { allowEmpty: false });
84
- if (!root) return normalizedPath;
85
- return `${normalizeSafeWorkspacePath(root, { allowEmpty: false })}/${normalizedPath}`;
86
- }
87
- function resolveContentType(path, mediaType, contentTypes) {
88
- if (mediaType) return mediaType;
89
- if (contentTypes?.[path]) return contentTypes[path];
90
- const extension = path.includes(".") ? `.${path.split(".").at(-1)}` : "";
91
- if (extension && contentTypes?.[extension]) return contentTypes[extension];
92
- return lookup(path) || "application/octet-stream";
93
- }
94
- function isNotFoundError(error) {
95
- const code = getViteHubErrorShape(error)?.code;
96
- return code === "WORKSPACE_NOT_FOUND" || code === "WORKSPACE_PATH_INVALID" || error instanceof Error && error.message.includes("Workspace file does not exist:") || error instanceof Error && error.message.includes("Workspace path does not exist:");
97
- }
98
- var WorkspaceCollectionRequestError = class extends Error {};
99
- function collectionQueryValue(query, key) {
100
- const value = query[key];
101
- if (value === void 0) return;
102
- if (Array.isArray(value)) throw new WorkspaceCollectionRequestError(`Workspace collection query parameter "${key}" must have one value.`);
103
- return value;
104
- }
105
- function collectionLimit(query) {
106
- const value = collectionQueryValue(query, "limit");
107
- if (value === void 0) return;
108
- if (!/^\d+$/.test(value)) throw new WorkspaceCollectionRequestError("Workspace collection limit must be a positive integer.");
109
- const limit = Number(value);
110
- if (!Number.isSafeInteger(limit) || limit < 1) throw new WorkspaceCollectionRequestError("Workspace collection limit must be a positive integer.");
111
- return limit;
112
- }
113
- function collectionFilters(query, allowed) {
114
- const filters = {};
115
- const allowedFields = new Set(allowed || []);
116
- for (const [key, value] of Object.entries(query)) {
117
- if (!key.startsWith("filter.") && !key.startsWith("empty.")) continue;
118
- const empty = key.startsWith("empty.");
119
- const field = key.slice(empty ? 6 : 7);
120
- if (!allowedFields.has(field)) throw new WorkspaceCollectionRequestError(`Workspace collection filter "${field}" is not allowed.`);
121
- if (empty) {
122
- if (value !== "true") throw new WorkspaceCollectionRequestError(`Workspace collection empty filter "${field}" must be true.`);
123
- filters[field] = workspaceCollectionEmpty;
124
- continue;
125
- }
126
- filters[field] = (Array.isArray(value) ? value : [value]).map((item) => item.trim());
127
- }
128
- return filters;
129
- }
130
- function parseWorkspaceCollectionQuery(query, options) {
131
- for (const key of Object.keys(query)) if (![
132
- "cursor",
133
- "limit",
134
- "search",
135
- "value"
136
- ].includes(key) && !key.startsWith("filter.") && !key.startsWith("empty.")) throw new WorkspaceCollectionRequestError(`Workspace collection query parameter "${key}" is not allowed.`);
137
- const itemValue = collectionQueryValue(query, "value");
138
- if (itemValue !== void 0 && !options.item) throw new WorkspaceCollectionRequestError("Workspace collection item lookup is not enabled.");
139
- const search = collectionQueryValue(query, "search");
140
- if (search && !options.searchFields?.length) throw new WorkspaceCollectionRequestError("Workspace collection search is not enabled.");
141
- return {
142
- itemValue,
143
- page: {
144
- cursor: collectionQueryValue(query, "cursor"),
145
- facets: options.facets,
146
- filters: collectionFilters(query, options.filters),
147
- limit: collectionLimit(query),
148
- search,
149
- searchFields: options.searchFields,
150
- select: options.select,
151
- sort: options.sort
152
- }
153
- };
154
- }
155
- function workspaceSessionStarter(input) {
156
- return input && typeof input === "object" && typeof input.startSession === "function" ? input : void 0;
157
- }
158
- function workspaceSourceMaterializer(input) {
159
- return input && typeof input === "object" && typeof input.materializeSources === "function" ? input.materializeSources.bind(input) : void 0;
160
- }
161
- async function materializeWorkspaceDevSources(workspace, input) {
162
- const materialize = workspaceSourceMaterializer(workspace) ?? workspaceSourceMaterializer(workspace.fs);
163
- if (!materialize) return;
164
- const paths = input.paths?.length ? input.paths : [""];
165
- await withWorkspaceProgress(input.onProgress, {
166
- data: { paths },
167
- id: "workspace.dev.materialize",
168
- label: "Materializing workspace sources"
169
- }, async () => {
170
- await Promise.all(paths.map(async (path) => {
171
- await materialize({
172
- abortSignal: input.abortSignal,
173
- onProgress: async (event) => await input.onProgress?.({
174
- data: { ...event },
175
- durationMs: event.durationMs,
176
- error: event.error,
177
- id: `workspace.dev.materialize.${event.source}`,
178
- label: `Materializing source ${event.source}`,
179
- status: event.status
180
- }),
181
- path
182
- }).catch((error) => {
183
- if (path && isNotFoundError(error)) return;
184
- throw error;
185
- });
186
- }));
187
- });
188
- }
189
- async function readWorkspaceFileResponse(options) {
190
- let filePath;
191
- try {
192
- filePath = resolveWorkspaceFilePath(options.path, options.root);
193
- if (!matchesAny(filePath, options.allow)) throw createError({
194
- statusCode: 404,
195
- statusMessage: "Workspace file not found."
196
- });
197
- } catch (error) {
198
- if (isNotFoundError(error)) throw createError({
199
- statusCode: 404,
200
- statusMessage: "Workspace file not found."
201
- });
202
- throw error;
203
- }
204
- const workspace = await resolveWorkspace(options.workspace);
205
- try {
206
- const [content, stat] = await Promise.all([workspace.fs.readFile(filePath, { encoding: "binary" }), workspace.fs.stat(filePath)]);
207
- if (stat.type !== "file") throw createError({
208
- statusCode: 404,
209
- statusMessage: "Workspace file not found."
210
- });
211
- const headers = new Headers(options.headers);
212
- headers.set("content-type", resolveContentType(filePath, stat.mediaType, options.contentTypes));
213
- headers.set("x-content-type-options", "nosniff");
214
- if (options.cacheControl) headers.set("cache-control", options.cacheControl);
215
- return new Response(content, { headers });
216
- } catch (error) {
217
- if (isNotFoundError(error)) throw createError({
218
- statusCode: 404,
219
- statusMessage: "Workspace file not found."
220
- });
221
- throw error;
222
- }
223
- }
224
- function defineWorkspaceFileHandler(options) {
225
- return defineEventHandler((event) => {
226
- const path = getRouterParam(event, options.param || "path") || "";
227
- return readWorkspaceFileResponse({
228
- ...options,
229
- path
230
- });
231
- });
232
- }
233
- function defineWorkspaceCollectionHandler(options) {
234
- return defineEventHandler(async (event) => {
235
- try {
236
- const parsed = parseWorkspaceCollectionQuery(getQuery(event), options);
237
- if (parsed.itemValue !== void 0 && options.item) return await getWorkspaceCollectionItem({
238
- ...options,
239
- query: {
240
- key: options.item.key,
241
- select: options.item.select,
242
- value: parsed.itemValue
243
- }
244
- });
245
- return await queryWorkspaceCollection({
246
- ...options,
247
- query: parsed.page
248
- });
249
- } catch (error) {
250
- if (error instanceof WorkspaceCollectionRequestError) throw createError({
251
- cause: error,
252
- statusCode: 400,
253
- statusMessage: error.message
254
- });
255
- if (getViteHubErrorShape(error)?.code === "WORKSPACE_COLLECTION_CURSOR_INVALID") {
256
- const reason = getViteHubErrorShape(error)?.details?.reason;
257
- throw createError({
258
- cause: error,
259
- statusCode: reason === "stale" ? 409 : 400,
260
- statusMessage: error instanceof Error ? error.message : "Invalid workspace collection cursor."
261
- });
262
- }
263
- if (isNotFoundError(error)) throw createError({
264
- cause: error,
265
- statusCode: 404,
266
- statusMessage: "Workspace collection not found."
267
- });
268
- throw createError({
269
- cause: error,
270
- statusCode: 500,
271
- statusMessage: "Workspace collection query failed."
272
- });
273
- }
274
- });
275
- }
276
- async function runWorkspaceDevCommand(input) {
277
- const command = input.command.trim();
278
- if (!command) throw new Error("Workspace Dev command cannot be empty.");
279
- const definition = input.definition;
280
- const workspace = typeof input.workspace === "string" ? await useWorkspace(input.workspace, definition ? {
281
- definition,
282
- mode: "write"
283
- } : { mode: "write" }) : input.workspace;
284
- const starter = workspaceSessionStarter(workspace) ?? workspaceSessionStarter(workspace.fs);
285
- const startSession = starter?.startSession.bind(starter);
286
- if (!startSession) throw new Error("Workspace Dev command requires a Workspace Session.");
287
- await materializeWorkspaceDevSources(workspace, input);
288
- let session;
289
- const execOptions = {
290
- abortSignal: input.abortSignal,
291
- timeout: input.timeout
292
- };
293
- let result;
294
- try {
295
- await withWorkspaceProgress(input.onProgress, {
296
- data: { paths: input.paths ?? null },
297
- id: "workspace.dev.start-session",
298
- label: "Starting workspace session"
299
- }, async () => {
300
- session = await startSession({
301
- abortSignal: input.abortSignal,
302
- host: input.host,
303
- paths: input.paths
304
- });
305
- return session;
306
- });
307
- if (!session) throw new Error("Workspace Dev Session did not start.");
308
- result = input.args ? await session.exec(command, input.args, execOptions) : await session.exec("sh", ["-lc", command], execOptions);
309
- const diff = result.exitCode === 0 ? await session.diff() : void 0;
310
- if (diff?.entries.length) {
311
- const commit = definition ? resolveWorkspaceAutoCommit(definition, diff) : void 0;
312
- if (!definition || !hasWorkspaceCommitRules(definition) || commit) await session.commit({ message: commit?.message || "workspace dev command" });
313
- }
314
- } catch (error) {
315
- if (!session) throw error;
316
- try {
317
- await session.close();
318
- } catch (closeError) {
319
- throw new AggregateError([error, closeError], "[vitehub] Workspace Dev command failed and session cleanup also failed.");
320
- }
321
- throw error;
322
- }
323
- if (!session) throw new Error("Workspace Dev Session did not start.");
324
- await session.close();
325
- return result;
326
- }
327
- //#endregion
328
- export { defineWorkspaceCollectionHandler, defineWorkspaceFileHandler, ensureWorkspaceDevToken, readWorkspaceDevToken, readWorkspaceFileResponse, refreshWorkspaceDevToken, runWorkspaceDevCommand, validateWorkspaceDevToken, workspaceDevHeader, workspaceDevHeaderValue, workspaceDevRoute, workspaceDevTokenHeader, workspaceDevTokenServerId };
1
+ import { a as refreshWorkspaceDevToken, c as workspaceDevHeader, d as workspaceDevTokenHeader, f as workspaceDevTokenServerId, i as readWorkspaceFileResponse, l as workspaceDevHeaderValue, n as ensureWorkspaceDevToken, o as runWorkspaceDevCommand, r as readWorkspaceDevToken, s as validateWorkspaceDevToken, t as defineWorkspaceFileHandler, u as workspaceDevRoute } from "./server-BNQ-Nbjj.js";
2
+ export { defineWorkspaceFileHandler, ensureWorkspaceDevToken, readWorkspaceDevToken, readWorkspaceFileResponse, refreshWorkspaceDevToken, runWorkspaceDevCommand, validateWorkspaceDevToken, workspaceDevHeader, workspaceDevHeaderValue, workspaceDevRoute, workspaceDevTokenHeader, workspaceDevTokenServerId };