@vite-hub/workspace 0.0.1 → 0.0.3
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/README.md +225 -17
- package/dist/{ai-Bk3LLnit.js → ai-Ce3PtWFW.js} +160 -29
- package/dist/ai-nmHdzjCM.d.ts +162 -0
- package/dist/ai.d.ts +2 -85
- package/dist/ai.js +1 -1
- package/dist/asset-registry-CaG9b7tf.js +19 -0
- package/dist/cloudflare.d.ts +18 -0
- package/dist/cloudflare.js +2 -0
- package/dist/collections/client.d.ts +39 -0
- package/dist/collections/client.js +137 -0
- package/dist/collections.d.ts +59 -0
- package/dist/collections.js +159 -0
- package/dist/config-3I1BnsdO.d.ts +28 -0
- package/dist/config-CDoyls2X.js +30 -0
- package/dist/config-CZLO0m9h.js +7811 -0
- package/dist/file-CHfsZpso.js +23 -0
- package/dist/{files-DbsIjBya.js → files-QRV55OCx.js} +6 -5
- package/dist/github-CfA5vpJ5.js +189 -0
- package/dist/glob-D0vD_wRY.js +17 -0
- package/dist/host-CAnbugpI.js +370 -0
- package/dist/hosted-C1-tTTTf.js +581 -0
- package/dist/{providers/vercel/blob-store.js → hosted-vercel-blob-CWBILDVo.js} +100 -19
- package/dist/hosted-vercel-blob.d.ts +15 -0
- package/dist/hosted-vercel-blob.js +2 -0
- package/dist/hosted.d.ts +18 -0
- package/dist/hosted.js +2 -0
- package/dist/index.d.ts +129 -102
- package/dist/index.js +477 -599
- package/dist/lifecycle-BYoa9hVb.js +176 -0
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +1 -1
- package/dist/mountx.d.ts +10 -0
- package/dist/mountx.js +143 -0
- package/dist/nitro.d.ts +2 -31
- package/dist/nitro.js +2 -2
- package/dist/nuxt.d.ts +26 -0
- package/dist/nuxt.js +36 -0
- package/dist/path-CNI6wKIU.js +115 -0
- package/dist/{provider-BZuKAV4e.js → provider-C3_elpEh.js} +142 -37
- package/dist/providers/github/store.d.ts +6 -0
- package/dist/providers/github/store.js +2 -0
- package/dist/publish.d.ts +3 -2
- package/dist/publish.js +48 -142
- package/dist/{registry-D4Qzq26I.d.ts → registry-BIQVCBWI.d.ts} +3 -2
- package/dist/registry-CqyDTW9Y.js +74 -0
- package/dist/request-execution-u9mgUXKX.js +80 -0
- package/dist/runtime/assets.d.ts +2 -1
- package/dist/runtime/assets.js +5 -5
- package/dist/runtime/empty-assets-registry.d.ts +1 -1
- package/dist/runtime/empty-registry.d.ts +1 -1
- package/dist/runtime/state.d.ts +4 -21
- package/dist/runtime/state.js +7 -4
- package/dist/runtime/workspace.d.ts +2 -0
- package/dist/runtime/workspace.js +2 -0
- package/dist/runtime-options-BsPSv5O7.js +13 -0
- package/dist/runtime.d.ts +38 -0
- package/dist/runtime.js +626 -0
- package/dist/{search-DtaEyjpO.js → search-C4REyHj9.js} +2 -2
- package/dist/server.d.ts +65 -0
- package/dist/server.js +355 -0
- package/dist/shared-jfogBrd5.js +273 -0
- package/dist/source-metadata.d.ts +2 -0
- package/dist/source-metadata.js +2 -0
- package/dist/state-TTqa3x3Y.d.ts +25 -0
- package/dist/store-Bs1SLh55.js +414 -0
- package/dist/sync-DiuDmSGk.js +269 -0
- package/dist/target-D4Bqb1eH.js +11 -0
- package/dist/test.d.ts +1 -1
- package/dist/test.js +1 -1
- package/dist/types-60Yn149G.d.ts +612 -0
- package/dist/use-CUFSnFCS.d.ts +86 -0
- package/dist/use-CsV3oIxH.js +336 -0
- package/dist/vite-tbfDxtlu.js +2191 -0
- package/dist/vite.d.ts +33 -5
- package/dist/vite.js +2 -131
- package/dist/workspace-66SKyiec.d.ts +6 -0
- package/dist/workspace-C4k92Ow8.js +1460 -0
- package/package.json +143 -62
- package/dist/asset-registry-CMuQbyvl.js +0 -14
- package/dist/cloudflare-env-DL94Uvpz.js +0 -12
- package/dist/config-CvS-7sre.js +0 -49
- package/dist/errors-BUL8SoFS.js +0 -21
- package/dist/lifecycle-uD82JeGh.js +0 -92
- package/dist/module-8LZUMEXC.js +0 -922
- package/dist/path-BVv9OXhg.js +0 -63
- package/dist/providers/cloudflare/artifacts-store.d.ts +0 -6
- package/dist/providers/cloudflare/artifacts-store.js +0 -384
- package/dist/providers/vercel/blob-store.d.ts +0 -6
- package/dist/registry-Cnr0NoKv.js +0 -932
- package/dist/runtime/nitro-plugin.d.ts +0 -6
- package/dist/runtime/nitro-plugin.js +0 -14
- package/dist/sandbox-DtGXCWRq.js +0 -198
- package/dist/types-CwNcWTdt.d.ts +0 -378
- package/dist/utils-BtAm_K5P.js +0 -51
- /package/dist/{chunk-DrSxFLj_.js → chunk-8H4AJuhK.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { r as
|
|
4
|
-
import {
|
|
1
|
+
import { a as matchesAny, c as normalizeWorkspacePath, d as sha256, o as normalizeSafeWorkspacePath, p as workspaceError, r as contentToBytes, s as normalizeSafeWorkspacePattern } from "./path-CNI6wKIU.js";
|
|
2
|
+
import { a as resolveRuntimeVercelBlobWorkspaceStore, c as getWorkspaceHostedStoreLoader, d as setWorkspaceRuntimeConfig, l as setWorkspaceHostedStoreLoader, o as resolveVercelBlobWorkspaceStore } from "./provider-C3_elpEh.js";
|
|
3
|
+
import { i as diffSnapshots, r as createSnapshotFromEntries } from "./store-Bs1SLh55.js";
|
|
4
|
+
import { resolve } from "node:path";
|
|
5
5
|
//#region src/providers/vercel/blob-store.ts
|
|
6
6
|
function joinBlobPath(...parts) {
|
|
7
7
|
return parts.map((part) => normalizeWorkspacePath(part)).filter(Boolean).join("/");
|
|
@@ -11,16 +11,80 @@ function contentType(path, fallback) {
|
|
|
11
11
|
if (path.endsWith(".json")) return "application/json; charset=utf-8";
|
|
12
12
|
if (path.endsWith(".md") || path.endsWith(".txt")) return "text/plain; charset=utf-8";
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
function auth(options) {
|
|
15
|
+
return options.token ? { token: options.token } : {};
|
|
16
|
+
}
|
|
17
|
+
async function createVercelBlobClient(options) {
|
|
18
|
+
const blob = await importVercelBlobPeer();
|
|
19
|
+
const access = options.access || "private";
|
|
20
|
+
return {
|
|
21
|
+
async delete(key) {
|
|
22
|
+
await blob.del(key, auth(options));
|
|
23
|
+
},
|
|
24
|
+
async download(key) {
|
|
25
|
+
const result = await blob.get(key, {
|
|
26
|
+
access,
|
|
27
|
+
...auth(options)
|
|
28
|
+
});
|
|
29
|
+
if (!result || result.statusCode !== 200 || !result.stream) throw Object.assign(/* @__PURE__ */ new Error("not found"), { code: "NotFound" });
|
|
30
|
+
return await new Response(result.stream, { headers: result.blob.contentType ? { "content-type": result.blob.contentType } : void 0 }).blob();
|
|
31
|
+
},
|
|
32
|
+
async head(key) {
|
|
33
|
+
const result = await blob.head(key, auth(options));
|
|
34
|
+
return {
|
|
35
|
+
key: result.pathname,
|
|
36
|
+
lastModified: result.uploadedAt.getTime(),
|
|
37
|
+
size: result.size,
|
|
38
|
+
type: result.contentType
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
async list(optionsInput) {
|
|
42
|
+
const result = await blob.list({
|
|
43
|
+
...optionsInput,
|
|
44
|
+
...auth(options)
|
|
45
|
+
});
|
|
46
|
+
return {
|
|
47
|
+
cursor: result.cursor,
|
|
48
|
+
items: result.blobs.map((item) => ({
|
|
49
|
+
key: item.pathname,
|
|
50
|
+
lastModified: item.uploadedAt?.getTime(),
|
|
51
|
+
size: item.size
|
|
52
|
+
}))
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
async upload(key, body, uploadOptions = {}) {
|
|
56
|
+
await blob.put(key, body, {
|
|
57
|
+
access,
|
|
58
|
+
addRandomSuffix: false,
|
|
59
|
+
allowOverwrite: true,
|
|
60
|
+
contentType: uploadOptions.contentType,
|
|
61
|
+
...auth(options)
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const vercelBlobPeerSpecifier = "@vercel/blob";
|
|
67
|
+
async function importVercelBlobPeer() {
|
|
68
|
+
try {
|
|
69
|
+
const testImport = globalThis.__vitehubWorkspaceImportVercelBlobPeer;
|
|
70
|
+
if (testImport) return await testImport();
|
|
71
|
+
return await import(vercelBlobPeerSpecifier);
|
|
72
|
+
} catch (error) {
|
|
73
|
+
handleVercelBlobImportError(error);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function handleVercelBlobImportError(error) {
|
|
77
|
+
if (isMissingVercelBlobError(error)) throw workspaceError("[vitehub] @vercel/blob is required for the Vercel Blob Workspace Store. Package: @vercel/blob.", { cause: error });
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
80
|
+
function isMissingVercelBlobError(error) {
|
|
81
|
+
if (!(error instanceof Error)) return false;
|
|
82
|
+
const code = error.code;
|
|
83
|
+
if (code !== "ERR_MODULE_NOT_FOUND" && code !== "MODULE_NOT_FOUND") return false;
|
|
84
|
+
return error.message.includes("Cannot find package '@vercel/blob'") || error.message.includes("Cannot find module '@vercel/blob'");
|
|
22
85
|
}
|
|
23
86
|
var VercelBlobWorkspaceStore = class {
|
|
87
|
+
workspaceName;
|
|
24
88
|
#baseline;
|
|
25
89
|
#options;
|
|
26
90
|
#files;
|
|
@@ -35,7 +99,7 @@ var VercelBlobWorkspaceStore = class {
|
|
|
35
99
|
return joinBlobPath(this.#root, "files", normalizeSafeWorkspacePath(path, { allowEmpty: options.allowEmpty }));
|
|
36
100
|
}
|
|
37
101
|
async #client() {
|
|
38
|
-
this.#files ||=
|
|
102
|
+
this.#files ||= createVercelBlobClient(this.#options);
|
|
39
103
|
return await this.#files;
|
|
40
104
|
}
|
|
41
105
|
#metaKey(key) {
|
|
@@ -127,7 +191,7 @@ var VercelBlobWorkspaceStore = class {
|
|
|
127
191
|
else if (options.recursive) for (const blob of await this.#listBlobs(`${this.#fileKey(normalized)}/`)) targets.push(blob.key);
|
|
128
192
|
if (!targets.length) {
|
|
129
193
|
if (options.force) return;
|
|
130
|
-
throw
|
|
194
|
+
throw workspaceError(`[vitehub] Workspace path does not exist: ${path}.`);
|
|
131
195
|
}
|
|
132
196
|
await Promise.all(targets.map((target) => client.delete(target)));
|
|
133
197
|
}
|
|
@@ -160,10 +224,6 @@ var VercelBlobWorkspaceStore = class {
|
|
|
160
224
|
} while (cursor);
|
|
161
225
|
return blobs;
|
|
162
226
|
}
|
|
163
|
-
async #readBytes(path) {
|
|
164
|
-
const file = await this.readFile(path);
|
|
165
|
-
return file ? contentToBytes(file.content) : void 0;
|
|
166
|
-
}
|
|
167
227
|
async #readJson(pathname) {
|
|
168
228
|
const file = await (await this.#client()).download(pathname).catch(() => null);
|
|
169
229
|
return file ? JSON.parse(await file.text()) : void 0;
|
|
@@ -173,4 +233,25 @@ function createVercelBlobWorkspaceStore(options, workspaceName) {
|
|
|
173
233
|
return new VercelBlobWorkspaceStore(options, workspaceName);
|
|
174
234
|
}
|
|
175
235
|
//#endregion
|
|
176
|
-
|
|
236
|
+
//#region src/hosted-vercel-blob.ts
|
|
237
|
+
function installHostedVercelBlobWorkspaceRuntime() {
|
|
238
|
+
const existingWorkspaceHostedStoreLoader = getWorkspaceHostedStoreLoader();
|
|
239
|
+
setWorkspaceHostedStoreLoader((storeOptions, workspaceName) => {
|
|
240
|
+
if (storeOptions.provider === "vercel-blob") return createVercelBlobWorkspaceStore(storeOptions, workspaceName);
|
|
241
|
+
if (existingWorkspaceHostedStoreLoader) return existingWorkspaceHostedStoreLoader(storeOptions, workspaceName);
|
|
242
|
+
throw workspaceError("[vitehub] Vercel Blob hosted workspace runtime cannot load unsupported hosted store.");
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
function configureHostedVercelBlobWorkspaceRuntime(options = {}) {
|
|
246
|
+
const root = resolve(process.cwd(), options.root || ".vitehub/workspaces");
|
|
247
|
+
const config = {
|
|
248
|
+
assets: options.assets,
|
|
249
|
+
root,
|
|
250
|
+
store: resolveVercelBlobWorkspaceStore(options.store, options.env)
|
|
251
|
+
};
|
|
252
|
+
installHostedVercelBlobWorkspaceRuntime();
|
|
253
|
+
setWorkspaceRuntimeConfig(config);
|
|
254
|
+
return config;
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
export { installHostedVercelBlobWorkspaceRuntime as n, configureHostedVercelBlobWorkspaceRuntime as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { v as ResolvedWorkspaceModuleOptions, w as VercelBlobWorkspaceStoreOptions } from "./types-60Yn149G.js";
|
|
2
|
+
|
|
3
|
+
//#region src/hosted-vercel-blob.d.ts
|
|
4
|
+
interface HostedVercelBlobWorkspaceRuntimeOptions {
|
|
5
|
+
assets?: boolean | string[];
|
|
6
|
+
env?: Record<string, string | undefined>;
|
|
7
|
+
root?: string;
|
|
8
|
+
store?: Partial<VercelBlobWorkspaceStoreOptions> & {
|
|
9
|
+
provider: "vercel-blob";
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
declare function installHostedVercelBlobWorkspaceRuntime(): void;
|
|
13
|
+
declare function configureHostedVercelBlobWorkspaceRuntime(options?: HostedVercelBlobWorkspaceRuntimeOptions): ResolvedWorkspaceModuleOptions;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { HostedVercelBlobWorkspaceRuntimeOptions, type VercelBlobWorkspaceStoreOptions, configureHostedVercelBlobWorkspaceRuntime, installHostedVercelBlobWorkspaceRuntime };
|
package/dist/hosted.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { o as GitHubWorkspaceStoreOptions, t as CloudflareArtifactsWorkspaceStoreOptions, v as ResolvedWorkspaceModuleOptions, w as VercelBlobWorkspaceStoreOptions } from "./types-60Yn149G.js";
|
|
2
|
+
|
|
3
|
+
//#region src/hosted.d.ts
|
|
4
|
+
type HostedWorkspaceRuntimeStoreOptions = Partial<CloudflareArtifactsWorkspaceStoreOptions> | (Partial<GitHubWorkspaceStoreOptions> & {
|
|
5
|
+
provider: "github";
|
|
6
|
+
}) | (Partial<VercelBlobWorkspaceStoreOptions> & {
|
|
7
|
+
provider: "vercel-blob";
|
|
8
|
+
});
|
|
9
|
+
interface HostedWorkspaceRuntimeOptions {
|
|
10
|
+
assets?: boolean | string[];
|
|
11
|
+
env?: Record<string, string | undefined>;
|
|
12
|
+
root?: string;
|
|
13
|
+
store?: HostedWorkspaceRuntimeStoreOptions;
|
|
14
|
+
}
|
|
15
|
+
declare function installHostedWorkspaceRuntime(): void;
|
|
16
|
+
declare function configureHostedWorkspaceRuntime(options?: HostedWorkspaceRuntimeOptions): ResolvedWorkspaceModuleOptions;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { type CloudflareArtifactsWorkspaceStoreOptions, type GitHubWorkspaceStoreOptions, HostedWorkspaceRuntimeOptions, HostedWorkspaceRuntimeStoreOptions, type VercelBlobWorkspaceStoreOptions, configureHostedWorkspaceRuntime, installHostedWorkspaceRuntime };
|
package/dist/hosted.js
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,34 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { $ as WorkspaceMaterializeSourcesProgressEvent, $t as WorkspaceSyncSnapshotOptions, A as WorkspaceCacheOptions, At as WorkspaceSourceRequestExecutionInput, B as WorkspaceFetchSourceRequestOptions, Bt as WorkspaceSourceSelection, C as SourceContextWorkspaceFiles, Ct as WorkspaceSourceDefinition, D as WorkspaceAssets, Dt as WorkspaceSourceMount, E as WorkspaceAssetPath, Et as WorkspaceSourceMaterializationStatus, F as WorkspaceDefinitionInput, Ft as WorkspaceSourceResolutionContextMap, G as WorkspaceHookContext, Gt as WorkspaceSourceSyncResult, H as WorkspaceFileSourceInput, Ht as WorkspaceSourceSyncCounts, I as WorkspaceDiff, It as WorkspaceSourceResolutionContextValueReader, J as WorkspaceInstructionBindingValue, Jt as WorkspaceStore, K as WorkspaceHooks, Kt as WorkspaceSourceSyncStatus, L as WorkspaceDiffEntry, Lt as WorkspaceSourceResolutionInvocation, M as WorkspaceContentStream, Mt as WorkspaceSourceRequestExecutor, N as WorkspaceCustomSourceInput, Nt as WorkspaceSourceRequestMethod, O as WorkspaceAssetsRegistry, Ot as WorkspaceSourceMountOptions, P as WorkspaceDefinition, Pt as WorkspaceSourceResolutionContext, Q as WorkspaceMaterializeSourcesOptions, Qt as WorkspaceSyncResultDetails, R as WorkspaceEntry, Rt as WorkspaceSourceResolutionResult, S as SourceContext, St as WorkspaceSourceBindingInput, T as Workspace, Tt as WorkspaceSourceItem, U as WorkspaceGitHubSourceInput, Ut as WorkspaceSourceSyncPathResult, V as WorkspaceFile, Vt as WorkspaceSourceSyncConfig, W as WorkspaceGlobSourceInput, Wt as WorkspaceSourceSyncPolicy, X as WorkspaceLoaderSource, Xt as WorkspaceStreamFile, Y as WorkspaceLoader, Yt as WorkspaceStoreOptions, Z as WorkspaceMaterializeMode, Zt as WorkspaceSyncOptions, _ as ReadFileResult, _t as WorkspaceSessionHostFileEntry, a as GitHubWorkspaceOption, an as WorkspaceWriteOperation, at as WorkspacePlugin, b as RmOptions, bt as WorkspaceSnapshot, c as ListOptions, cn as WriteFileOptions, ct as WorkspacePublisher, d as Logger, dt as WorkspaceScopeName, en as WorkspaceValidateMode, et as WorkspaceMaterializeSourcesResult, f as MaybePromise, ft as WorkspaceSearchHit, g as ReadFileOptions, gt as WorkspaceSessionHost, h as PublishContext, ht as WorkspaceSession, i as ExecResult, in as WorkspaceWriteMode, it as WorkspaceNameMap, j as WorkspaceContent, jt as WorkspaceSourceRequestExecutionResult, k as WorkspaceAutoCommitPlan, kt as WorkspaceSourceRequestDescriptor, l as LoaderContext, lt as WorkspaceRule, m as MkdirOptions, mt as WorkspaceSelectedScope, n as DiffOptions, nn as WorkspaceWriteHook, nt as WorkspaceModuleOptions, o as GitHubWorkspaceStoreOptions, on as WorkspaceWriteValidator, ot as WorkspacePrepareSessionProgressEvent, p as MemoryWorkspaceStoreOptions, pt as WorkspaceSearchQuery, q as WorkspaceInstructionBinding, qt as WorkspaceStat, r as ExecOptions, rn as WorkspaceWriteInput, rt as WorkspaceName, s as GlobOptions, sn as WorkspaceWriteValidatorResult, st as WorkspacePublishOptions, t as CloudflareArtifactsWorkspaceStoreOptions, tn as WorkspaceWriteErrorHook, tt as WorkspaceMcpResourcesSourceInput, u as LocalWorkspaceStoreOptions, ut as WorkspaceRules, v as ResolvedWorkspaceModuleOptions, vt as WorkspaceSessionHostFiles, w as VercelBlobWorkspaceStoreOptions, wt as WorkspaceSourceInput, x as SnapshotOptions, xt as WorkspaceSource, y as ResolvedWorkspaceRule, yt as WorkspaceSessionOptions, z as WorkspaceFetchSourceInput, zt as WorkspaceSourceResolver } from "./types-60Yn149G.js";
|
|
2
|
+
import { a as WorkspaceReadOperations, c as WorkspaceToolOptions, d as WorkspaceWriteToolMap, f as createWorkspaceTools, i as WorkspacePathResult, l as WorkspaceTools, n as ShellEnabled, o as WorkspaceShellResult, r as WorkspaceMoveResult, s as WorkspaceToolOperations, t as EnabledReadCapability, u as WorkspaceWriteOperations } from "./ai-nmHdzjCM.js";
|
|
3
|
+
import { a as WorkspaceFacadeToolOptions, c as WorkspaceWriteToolSet, d as WritableWorkspaceFacadeToolOptions, f as WritableWorkspaceFs, i as WorkspaceFacade, l as WorkspaceWriteTools, n as ReadonlyWorkspaceFs, o as WorkspaceReadToolSet, p as useWorkspace, r as UseWorkspaceOptions, s as WorkspaceReadTools, t as ReadonlyWorkspaceFacade, u as WritableWorkspaceFacade } from "./use-CUFSnFCS.js";
|
|
4
|
+
import { t as createWorkspace } from "./workspace-66SKyiec.js";
|
|
5
|
+
import { r as resolveRegisteredWorkspaceDefinition } from "./registry-BIQVCBWI.js";
|
|
6
|
+
import { ViteHubError } from "@vite-hub/runtime";
|
|
7
|
+
import { FileSourceOptions as FileSourceOptions$1, GitHubSourceOptions as GitHubSourceOptions$1, GlobSourceOptions as GlobSourceOptions$1, McpResourceContent, McpResourceDescriptor, McpResourcesClient, McpResourcesClientConfig, McpResourcesRequestOptions, McpResourcesServer, McpResourcesSourceOptions as McpResourcesSourceOptions$1 } from "@vite-hub/source";
|
|
5
8
|
|
|
6
9
|
//#region src/core/define.d.ts
|
|
7
10
|
declare function defineWorkspace(definition: WorkspaceDefinitionInput): WorkspaceDefinitionInput;
|
|
8
11
|
//#endregion
|
|
12
|
+
//#region src/sources/runtime-options.d.ts
|
|
13
|
+
type ExactOptions$1<TInput, TShape> = TInput & Record<Exclude<keyof TInput, keyof TShape>, never>;
|
|
14
|
+
type WorkspaceSourceRuntimeOptions = Pick<WorkspaceSource, "cache" | "materialize" | "mount" | "sync" | "validate">;
|
|
15
|
+
//#endregion
|
|
9
16
|
//#region src/sources/custom.d.ts
|
|
10
|
-
|
|
17
|
+
type CustomWorkspaceSourceFile = Omit<WorkspaceSourceItem, "content" | "contentStream" | "key" | "path"> & {
|
|
18
|
+
content: WorkspaceContent | ((context: SourceContext) => MaybePromise<WorkspaceContent>);
|
|
19
|
+
path: string;
|
|
20
|
+
};
|
|
21
|
+
type CustomWorkspaceSourceFiles = WorkspaceSourceRuntimeOptions & Pick<WorkspaceSource, "probeKeys"> & {
|
|
22
|
+
files: readonly CustomWorkspaceSourceFile[];
|
|
23
|
+
};
|
|
24
|
+
declare function custom<const TSource extends CustomWorkspaceSourceFiles>(source: ExactOptions$1<TSource, CustomWorkspaceSourceFiles>): WorkspaceSource;
|
|
25
|
+
declare function custom<const TSource extends WorkspaceSource>(source: ExactOptions$1<TSource, WorkspaceSource>): WorkspaceSource;
|
|
11
26
|
//#endregion
|
|
12
27
|
//#region src/sources/file.d.ts
|
|
13
|
-
type
|
|
14
|
-
type FileSourceOptions
|
|
15
|
-
|
|
16
|
-
declare function file
|
|
28
|
+
type FileWorkspaceSourceRuntimeOptions = WorkspaceSourceRuntimeOptions & Pick<WorkspaceSource, "probeKeys">;
|
|
29
|
+
type FileSourceOptions<TKey extends string = string> = FileSourceOptions$1<TKey> & FileWorkspaceSourceRuntimeOptions;
|
|
30
|
+
declare function file<const TKey extends string>(input: TKey): WorkspaceSource;
|
|
31
|
+
declare function file<const TKey extends string = string, const TOptions extends FileSourceOptions<TKey> = FileSourceOptions<TKey>>(input: ExactOptions$1<TOptions, FileSourceOptions<TKey>>): WorkspaceSource;
|
|
17
32
|
//#endregion
|
|
18
33
|
//#region src/sources/fetch.d.ts
|
|
19
34
|
type FetchSourceMethod = "GET" | "HEAD" | "POST";
|
|
@@ -30,121 +45,133 @@ interface FetchSourceStandardSchemaV1<T = unknown> {
|
|
|
30
45
|
validate: (input: unknown) => FetchSourceStandardSchemaResultSuccess<T> | FetchSourceStandardSchemaResultFailure | Promise<FetchSourceStandardSchemaResultSuccess<T> | FetchSourceStandardSchemaResultFailure>;
|
|
31
46
|
};
|
|
32
47
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
interface FetchSourceStandardJsonSchemaV1<T = unknown> extends FetchSourceStandardSchemaV1<T> {
|
|
49
|
+
"~standard": FetchSourceStandardSchemaV1<T>["~standard"] & {
|
|
50
|
+
jsonSchema: {
|
|
51
|
+
input: (options?: {
|
|
52
|
+
target?: string;
|
|
53
|
+
}) => Record<string, unknown>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
type SourceRuntimeOptions = Pick<WorkspaceSource, "cache" | "materialize" | "probeKeys" | "sync">;
|
|
58
|
+
type ExactOptions<TInput, TShape> = TInput & Record<Exclude<keyof TInput, keyof TShape>, never>;
|
|
59
|
+
interface FetchSourceCredentialOptions {
|
|
60
|
+
cookies?: Record<string, string>;
|
|
36
61
|
headers?: Record<string, string>;
|
|
37
|
-
method?: FetchSourceMethod;
|
|
38
|
-
query?: Record<string, unknown>;
|
|
39
62
|
timeout?: number;
|
|
40
63
|
}
|
|
41
|
-
type
|
|
42
|
-
interface
|
|
64
|
+
type FetchSourceRequestOptions = FetchSourceCredentialOptions;
|
|
65
|
+
interface FetchSourceRequestCallbackContext {
|
|
66
|
+
request: {
|
|
67
|
+
body?: unknown;
|
|
68
|
+
hasBody: boolean;
|
|
69
|
+
hasQuery: boolean;
|
|
70
|
+
method: FetchSourceMethod;
|
|
71
|
+
query?: Record<string, unknown>;
|
|
72
|
+
url: string;
|
|
73
|
+
};
|
|
74
|
+
selectedWorkspaceScope?: WorkspaceSelectedScope;
|
|
75
|
+
source: {
|
|
76
|
+
key?: string;
|
|
77
|
+
};
|
|
78
|
+
workspace: {
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
type FetchSourceRequest = FetchSourceCredentialOptions | ((context: FetchSourceRequestCallbackContext) => FetchSourceCredentialOptions | Promise<FetchSourceCredentialOptions>);
|
|
83
|
+
interface FetchSourceOptions<TResponse = unknown, TOutput = TResponse> extends SourceRuntimeOptions {
|
|
84
|
+
body?: unknown;
|
|
85
|
+
bodySchema?: FetchSourceStandardJsonSchemaV1;
|
|
86
|
+
cookies?: Record<string, string>;
|
|
87
|
+
headers?: Record<string, string>;
|
|
43
88
|
method?: FetchSourceMethod;
|
|
44
|
-
|
|
89
|
+
query?: Record<string, unknown>;
|
|
90
|
+
querySchema?: FetchSourceStandardJsonSchemaV1<Record<string, unknown>>;
|
|
45
91
|
request?: FetchSourceRequest;
|
|
46
92
|
responseType?: FetchSourceResponseType;
|
|
47
|
-
|
|
93
|
+
timeout?: number;
|
|
48
94
|
transform?: (data: TResponse) => TOutput | Promise<TOutput>;
|
|
49
95
|
url: string | URL;
|
|
96
|
+
workspacePath?: string;
|
|
50
97
|
}
|
|
51
|
-
|
|
98
|
+
type FetchSourceResolver<TResponse = unknown, TOutput = TResponse> = (context: WorkspaceSourceResolutionContext) => MaybePromise<FetchSourceOptions<TResponse, TOutput> | false | null | undefined>;
|
|
99
|
+
type FetchSourceInput<TResponse = unknown, TOutput = TResponse> = FetchSourceOptions<TResponse, TOutput> | FetchSourceResolver<TResponse, TOutput>;
|
|
100
|
+
declare function fetch<TResponse = unknown, TOutput = TResponse>(options: ExactOptions<FetchSourceOptions<TResponse, TOutput>, FetchSourceOptions<TResponse, TOutput>>): WorkspaceSource;
|
|
101
|
+
declare function fetch<const TOptions extends FetchSourceOptions<any, any>>(options: ExactOptions<TOptions, FetchSourceOptions<any, any>>): WorkspaceSource;
|
|
102
|
+
declare function fetch<TResponse = unknown, TOutput = TResponse>(resolve: FetchSourceResolver<TResponse, TOutput>): WorkspaceSource;
|
|
52
103
|
//#endregion
|
|
53
104
|
//#region src/sources/github.d.ts
|
|
54
|
-
type
|
|
55
|
-
type
|
|
56
|
-
interface GitHubSourceOptions
|
|
105
|
+
type GitHubAuth = NonNullable<GitHubSourceOptions$1["auth"]>;
|
|
106
|
+
type GitHubResolvedSourceOptions = Omit<GitHubSourceOptions, "repo"> & Partial<Pick<GitHubSourceOptions, "repo">>;
|
|
107
|
+
interface GitHubSourceOptions extends Omit<GitHubSourceOptions$1, "auth">, WorkspaceSourceRuntimeOptions {
|
|
57
108
|
auth?: GitHubAuth;
|
|
58
109
|
}
|
|
59
|
-
|
|
110
|
+
type GitHubSourceResolver = (context: WorkspaceSourceResolutionContext) => MaybePromise<GitHubResolvedSourceOptions | false | null | undefined>;
|
|
111
|
+
type GitHubSourceInput = GitHubSourceOptions | GitHubSourceResolver;
|
|
112
|
+
declare function github<const TOptions extends GitHubSourceOptions>(options: ExactOptions$1<TOptions, GitHubSourceOptions>): WorkspaceSource;
|
|
113
|
+
declare function github(resolve: GitHubSourceResolver): WorkspaceSource;
|
|
60
114
|
//#endregion
|
|
61
115
|
//#region src/sources/glob.d.ts
|
|
62
|
-
type
|
|
63
|
-
|
|
64
|
-
declare function glob$1(options: GlobSourceOptions$1): WorkspaceSource;
|
|
116
|
+
type GlobSourceOptions = GlobSourceOptions$1 & WorkspaceSourceRuntimeOptions;
|
|
117
|
+
declare function glob<const TOptions extends GlobSourceOptions>(options: ExactOptions$1<TOptions, GlobSourceOptions>): WorkspaceSource;
|
|
65
118
|
//#endregion
|
|
66
119
|
//#region src/sources/markdown.d.ts
|
|
67
|
-
declare function markdown
|
|
120
|
+
declare function markdown(options: FileSourceOptions): WorkspaceSource;
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region src/sources/mcp-resources.d.ts
|
|
123
|
+
interface McpResourcesSourceOptions<TKey extends string = string> extends Omit<McpResourcesSourceOptions$1<TKey>, "cache">, WorkspaceSourceRuntimeOptions {}
|
|
124
|
+
declare function mcpResources<const TKey extends string = string, const TOptions extends McpResourcesSourceOptions<TKey> = McpResourcesSourceOptions<TKey>>(options: ExactOptions$1<TOptions, McpResourcesSourceOptions<TKey>>): WorkspaceSource;
|
|
68
125
|
declare namespace index_d_exports {
|
|
69
|
-
export { FetchSourceOptions, FetchSourceRequest, FetchSourceRequestOptions,
|
|
126
|
+
export { FetchSourceInput, FetchSourceOptions, FetchSourceRequest, FetchSourceRequestOptions, FetchSourceResolver, FileSourceOptions, GitHubSourceInput, GitHubSourceOptions, GitHubSourceResolver, GlobSourceOptions, McpResourceContent, McpResourceDescriptor, McpResourcesClient, McpResourcesClientConfig, McpResourcesRequestOptions, McpResourcesServer, McpResourcesSourceOptions, custom, fetch, file, github, glob, markdown, mcpResources };
|
|
70
127
|
}
|
|
71
128
|
//#endregion
|
|
72
|
-
//#region src/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
interface WorkspaceFacadeToolOptions extends WorkspaceReadOperations {
|
|
81
|
-
broadSearchPaths?: string[];
|
|
82
|
-
cwd?: string;
|
|
83
|
-
maxShellCalls?: number;
|
|
84
|
-
maxOutputLength?: number;
|
|
85
|
-
timeout?: number;
|
|
86
|
-
}
|
|
87
|
-
interface WritableWorkspaceFacadeToolOptions extends WorkspaceFacadeToolOptions, WorkspaceWriteOperations {}
|
|
88
|
-
type EnabledWriteCapability<Options, Key extends keyof WorkspaceWriteOperations> = Options extends Record<Key, infer Value> ? Value extends false ? false : true : true;
|
|
89
|
-
type WorkspaceReadTools<Options = undefined> = ((ShellEnabled<Options> extends true ? {
|
|
90
|
-
shell: Tool<{
|
|
129
|
+
//#region src/session/harness.d.ts
|
|
130
|
+
interface HarnessSandboxSession {
|
|
131
|
+
readBinaryFile?(options: {
|
|
132
|
+
abortSignal?: AbortSignal;
|
|
133
|
+
path: string;
|
|
134
|
+
}): PromiseLike<Uint8Array | null>;
|
|
135
|
+
run(options: {
|
|
136
|
+
abortSignal?: AbortSignal;
|
|
91
137
|
command: string;
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
inspect: <Options extends WorkspaceFacadeToolOptions | undefined = undefined>(options?: Options) => WorkspaceReadTools<Options>;
|
|
104
|
-
none: () => ToolSet;
|
|
105
|
-
};
|
|
106
|
-
type WorkspaceWriteToolSet = WorkspaceWriteTools & {
|
|
107
|
-
inspect: <Options extends WorkspaceFacadeToolOptions | undefined = undefined>(options?: Options) => WorkspaceReadTools<Options>;
|
|
108
|
-
none: () => ToolSet;
|
|
109
|
-
write: <Options extends WritableWorkspaceFacadeToolOptions | undefined = undefined>(options?: Options) => WorkspaceWriteTools<Options>;
|
|
110
|
-
};
|
|
111
|
-
type ReadonlyWorkspaceFs<Name extends WorkspaceName = WorkspaceName> = WorkspaceAssets<WorkspaceAssetPath<Name>>;
|
|
112
|
-
interface WritableWorkspaceFs<Name extends WorkspaceName = WorkspaceName> {
|
|
113
|
-
readFile<TOptions extends ReadFileOptions | undefined = undefined>(path: WorkspaceWritablePath<Name>, options?: TOptions): Promise<ReadFileResult<TOptions>>;
|
|
114
|
-
writeFile(path: WorkspaceWritablePath<Name>, content: WorkspaceContent, options?: WriteFileOptions): Promise<void>;
|
|
115
|
-
appendFile(path: WorkspaceWritablePath<Name>, content: string): Promise<void>;
|
|
116
|
-
stat(path: WorkspaceWritablePath<Name>): Promise<WorkspaceStat>;
|
|
117
|
-
exists(path: WorkspaceWritablePath<Name>): Promise<boolean>;
|
|
118
|
-
list(path?: WorkspaceWritablePath<Name> | "", options?: ListOptions): Promise<WorkspaceEntry[]>;
|
|
119
|
-
glob(pattern: WorkspaceWritablePath<Name> | Array<WorkspaceWritablePath<Name>>, options?: GlobOptions): Promise<WorkspaceEntry[]>;
|
|
120
|
-
search(query: WorkspaceSearchQuery): Promise<WorkspaceSearchHit[]>;
|
|
121
|
-
mkdir(path: WorkspaceWritablePath<Name>, options?: MkdirOptions): Promise<void>;
|
|
122
|
-
rm(path: WorkspaceWritablePath<Name>, options?: RmOptions): Promise<void>;
|
|
123
|
-
movePath(from: WorkspaceWritablePath<Name>, to: WorkspaceWritablePath<Name>, options?: {
|
|
124
|
-
overwrite?: boolean;
|
|
125
|
-
}): Promise<void>;
|
|
126
|
-
copyPath(from: WorkspaceWritablePath<Name>, to: WorkspaceWritablePath<Name>, options?: {
|
|
127
|
-
overwrite?: boolean;
|
|
128
|
-
}): Promise<void>;
|
|
138
|
+
workingDirectory?: string;
|
|
139
|
+
}): PromiseLike<{
|
|
140
|
+
exitCode: number;
|
|
141
|
+
stderr: string;
|
|
142
|
+
stdout: string;
|
|
143
|
+
}>;
|
|
144
|
+
writeBinaryFile(options: {
|
|
145
|
+
abortSignal?: AbortSignal;
|
|
146
|
+
content: Uint8Array;
|
|
147
|
+
path: string;
|
|
148
|
+
}): PromiseLike<void>;
|
|
129
149
|
}
|
|
130
|
-
interface
|
|
131
|
-
|
|
132
|
-
|
|
150
|
+
interface HarnessWorkspaceSession {
|
|
151
|
+
close(error?: unknown): Promise<void>;
|
|
152
|
+
refreshGitBaseline(): Promise<void>;
|
|
133
153
|
}
|
|
134
|
-
interface
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
154
|
+
interface PrepareHarnessWorkspaceSessionOptions {
|
|
155
|
+
abortSignal?: AbortSignal;
|
|
156
|
+
commit?: (diff: WorkspaceDiff) => {
|
|
157
|
+
message?: string;
|
|
158
|
+
} | false | null | undefined;
|
|
159
|
+
definition?: WorkspaceDefinition;
|
|
160
|
+
ignoreWriteBackPaths?: readonly string[];
|
|
161
|
+
onMaterializeProgress?: WorkspaceMaterializeSourcesOptions["onProgress"];
|
|
162
|
+
onProgress?: (event: WorkspacePrepareSessionProgressEvent) => void | Promise<void>;
|
|
163
|
+
onWriteBack?: (diff: WorkspaceDiff) => void | Promise<void>;
|
|
164
|
+
paths?: readonly string[];
|
|
165
|
+
session: HarnessSandboxSession;
|
|
166
|
+
sessionWorkDir: string;
|
|
140
167
|
}
|
|
141
|
-
type WorkspaceFacade
|
|
142
|
-
declare function
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
168
|
+
type WorkspaceFacade$1 = ReadonlyWorkspaceFacade | WritableWorkspaceFacade;
|
|
169
|
+
declare function prepareHarnessWorkspaceSession(workspace: WorkspaceFacade$1, options: PrepareHarnessWorkspaceSessionOptions): Promise<HarnessWorkspaceSession>;
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/core/rules.d.ts
|
|
172
|
+
declare function resolveWorkspaceAutoCommit(definition: WorkspaceDefinition, diff: WorkspaceDiff): WorkspaceAutoCommitPlan | undefined;
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/core/errors.d.ts
|
|
175
|
+
type WorkspaceErrorCode = "WORKSPACE_COLLECTION_CURSOR_INVALID" | "WORKSPACE_FAILED" | "WORKSPACE_NOT_FOUND" | "WORKSPACE_PATH_INVALID";
|
|
149
176
|
//#endregion
|
|
150
|
-
export { CloudflareArtifactsWorkspaceStoreOptions, DiffOptions, EnabledReadCapability, ExecOptions, ExecResult, GlobOptions, ListOptions, LoaderContext, LocalWorkspaceStoreOptions, Logger, MemoryWorkspaceStoreOptions, MkdirOptions, PublishContext, ReadFileOptions, ReadFileResult, ReadonlyWorkspaceFacade, ReadonlyWorkspaceFs, ResolvedWorkspaceModuleOptions, ResolvedWorkspaceRule, RmOptions, ShellEnabled, SnapshotOptions, SourceContext, UseWorkspaceOptions, VercelBlobWorkspaceStoreOptions, Workspace, WorkspaceAssetPath, WorkspaceAssets, WorkspaceAssetsRegistry, WorkspaceAutoCommitPlan, WorkspaceCacheOptions, WorkspaceContent, WorkspaceDefinition, WorkspaceDefinitionInput, WorkspaceDiff, WorkspaceDiffEntry, WorkspaceEntry, WorkspaceFacade, WorkspaceFacadeToolOptions, WorkspaceFile, WorkspaceHookContext, WorkspaceHooks, WorkspaceLoader, WorkspaceLoaderSource, WorkspaceMaterializeMode, WorkspaceMaterializeSourcesOptions,
|
|
177
|
+
export { type CloudflareArtifactsWorkspaceStoreOptions, type DiffOptions, type EnabledReadCapability, type ExecOptions, type ExecResult, type FetchSourceInput, type FetchSourceOptions, type FetchSourceRequest, type FetchSourceRequestOptions, type FetchSourceResolver, type FileSourceOptions, type GitHubSourceInput, type GitHubSourceOptions, type GitHubSourceResolver, type GitHubWorkspaceOption, type GitHubWorkspaceStoreOptions, type GlobOptions, type GlobSourceOptions, type HarnessSandboxSession, type HarnessWorkspaceSession, type ListOptions, type LoaderContext, type LocalWorkspaceStoreOptions, type Logger, type MaybePromise, type McpResourceContent, type McpResourceDescriptor, type McpResourcesClient, type McpResourcesClientConfig, type McpResourcesRequestOptions, type McpResourcesServer, type McpResourcesSourceOptions, type MemoryWorkspaceStoreOptions, type MkdirOptions, type PrepareHarnessWorkspaceSessionOptions, type PublishContext, type ReadFileOptions, type ReadFileResult, type ReadonlyWorkspaceFacade, type ReadonlyWorkspaceFs, type ResolvedWorkspaceModuleOptions, type ResolvedWorkspaceRule, type RmOptions, type ShellEnabled, type SnapshotOptions, type SourceContext, type SourceContextWorkspaceFiles, type UseWorkspaceOptions, type VercelBlobWorkspaceStoreOptions, type Workspace, type WorkspaceAssetPath, type WorkspaceAssets, type WorkspaceAssetsRegistry, type WorkspaceAutoCommitPlan, type WorkspaceCacheOptions, type WorkspaceContent, type WorkspaceContentStream, type WorkspaceCustomSourceInput, type WorkspaceDefinition, type WorkspaceDefinitionInput, type WorkspaceDiff, type WorkspaceDiffEntry, type WorkspaceEntry, type WorkspaceErrorCode, type WorkspaceFacade, type WorkspaceFacadeToolOptions, type WorkspaceFetchSourceInput, type WorkspaceFetchSourceRequestOptions, type WorkspaceFile, type WorkspaceFileSourceInput, type WorkspaceGitHubSourceInput, type WorkspaceGlobSourceInput, type WorkspaceHookContext, type WorkspaceHooks, type WorkspaceInstructionBinding, type WorkspaceInstructionBindingValue, type WorkspaceLoader, type WorkspaceLoaderSource, type WorkspaceMaterializeMode, type WorkspaceMaterializeSourcesOptions, type WorkspaceMaterializeSourcesProgressEvent, type WorkspaceMaterializeSourcesResult, type WorkspaceMcpResourcesSourceInput, type WorkspaceModuleOptions, type WorkspaceMoveResult, type WorkspaceName, type WorkspaceNameMap, type WorkspacePathResult, type WorkspacePlugin, type WorkspacePrepareSessionProgressEvent, type WorkspacePublishOptions, type WorkspacePublisher, type WorkspaceReadOperations, type WorkspaceReadToolSet, type WorkspaceReadTools, type WorkspaceRule, type WorkspaceRules, type WorkspaceScopeName, type WorkspaceSearchHit, type WorkspaceSearchQuery, type WorkspaceSelectedScope, type WorkspaceSession, type WorkspaceSessionHost, type WorkspaceSessionHostFileEntry, type WorkspaceSessionHostFiles, type WorkspaceSessionOptions, type WorkspaceShellResult, type WorkspaceSnapshot, type WorkspaceSource, type WorkspaceSourceBindingInput, type WorkspaceSourceDefinition, type WorkspaceSourceInput, type WorkspaceSourceItem, type WorkspaceSourceMaterializationStatus, type WorkspaceSourceMount, type WorkspaceSourceMountOptions, type WorkspaceSourceRequestDescriptor, type WorkspaceSourceRequestExecutionInput, type WorkspaceSourceRequestExecutionResult, type WorkspaceSourceRequestExecutor, type WorkspaceSourceRequestMethod, type WorkspaceSourceResolutionContext, type WorkspaceSourceResolutionContextMap, type WorkspaceSourceResolutionContextValueReader, type WorkspaceSourceResolutionInvocation, type WorkspaceSourceResolutionResult, type WorkspaceSourceResolver, type WorkspaceSourceSelection, type WorkspaceSourceSyncConfig, type WorkspaceSourceSyncCounts, type WorkspaceSourceSyncPathResult, type WorkspaceSourceSyncPolicy, type WorkspaceSourceSyncResult, type WorkspaceSourceSyncStatus, type WorkspaceStat, type WorkspaceStore, type WorkspaceStoreOptions, type WorkspaceStreamFile, type WorkspaceSyncOptions, type WorkspaceSyncResultDetails, type WorkspaceSyncSnapshotOptions, type WorkspaceToolOperations, type WorkspaceToolOptions, type WorkspaceTools, type WorkspaceValidateMode, type WorkspaceWriteErrorHook, type WorkspaceWriteHook, type WorkspaceWriteInput, type WorkspaceWriteMode, type WorkspaceWriteOperation, type WorkspaceWriteOperations, type WorkspaceWriteToolMap, type WorkspaceWriteToolSet, type WorkspaceWriteTools, type WorkspaceWriteValidator, type WorkspaceWriteValidatorResult, type WritableWorkspaceFacade, type WritableWorkspaceFacadeToolOptions, type WritableWorkspaceFs, type WriteFileOptions, createWorkspace, createWorkspaceTools, custom, defineWorkspace, fetch, file, github, glob, markdown, mcpResources, prepareHarnessWorkspaceSession, resolveRegisteredWorkspaceDefinition, resolveWorkspaceAutoCommit, index_d_exports as source, useWorkspace };
|