@vite-hub/workspace 0.5.0 → 0.6.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/{abort-BCwpdrN0.js → abort-CQGxJBqa.js} +1 -2
- package/dist/{asset-registry-DfBV5kmw.js → asset-registry-0CdRAjIV.js} +2 -3
- package/dist/blob-database/postgres.d.ts +2 -3
- package/dist/blob-database/postgres.js +1 -2
- package/dist/{blob-database-sources-DDZ1wV9w.js → blob-database-sources-CQPAyCz3.js} +1 -2
- package/dist/blob-database.d.ts +2 -8
- package/dist/blob-database.js +12 -15
- package/dist/checkout.d.ts +1 -2
- package/dist/checkout.js +3 -4
- package/dist/cloudflare.d.ts +1 -5
- package/dist/cloudflare.js +1 -2
- package/dist/{config-B-863EgC.js → config-CsgNNVAI.js} +1 -2
- package/dist/{config-hxABr_Gg.d.ts → config-DeA287c0.d.ts} +1 -5
- package/dist/{config-DiyPi3Ff.js → config-jo5QgE1w.js} +18 -27
- package/dist/{discard-CNNtCozM.js → discard-BkoLmmmN.js} +1 -2
- package/dist/durability.d.ts +2 -5
- package/dist/durability.js +4 -5
- package/dist/{error-diagnostics-Cth97txN.js → error-diagnostics-B4me-ouV.js} +1 -2
- package/dist/{error-diagnostics-C0KyI408.js → error-diagnostics-kKXseq8d.js} +5 -2
- package/dist/{errors-DXCZjdUU.d.ts → errors-CnFDXxeJ.d.ts} +0 -2
- package/dist/{file-C1DYoGz3.js → file-BrNAXQgY.js} +4 -8
- package/dist/{file-metadata-Dv2JZwal.js → file-metadata-Bpsvjw_X.js} +2 -3
- package/dist/{files-iHyik8jj.js → files--z2dLC5z.js} +3 -4
- package/dist/files.d.ts +6 -10
- package/dist/files.js +6 -6
- package/dist/{github-CFHl6RI0.js → github-k--_LCrX.js} +7 -9
- package/dist/{glob-BitxqDhb.js → glob-BEutagp1.js} +3 -4
- package/dist/{glob-Buxfvmyy.js → glob-BreFjNAV.js} +3 -4
- package/dist/{history-schema-BBWbpDk4.d.ts → history-schema-BR4UDPHL.d.ts} +0 -2
- package/dist/{history-schema-postgres-U_ueRvmO.js → history-schema-postgres-DZepCSBq.js} +0 -1
- package/dist/{host-Dmr2Ctem.js → host-C8yZizfk.js} +11 -14
- package/dist/{hosted-BktlvkF2.js → hosted-8BTKAtMX.js} +15 -18
- package/dist/{hosted-vercel-blob-D0IPAjb1.js → hosted-vercel-blob-B6kygYqn.js} +10 -12
- package/dist/hosted-vercel-blob.d.ts +1 -3
- package/dist/hosted-vercel-blob.js +1 -2
- package/dist/hosted.d.ts +1 -3
- package/dist/hosted.js +1 -2
- package/dist/index.d.ts +7 -25
- package/dist/index.js +18 -22
- package/dist/internal/path.d.ts +1 -1
- package/dist/internal/path.js +1 -2
- package/dist/internal/workspace.d.ts +1 -5
- package/dist/internal/workspace.js +2 -3
- package/dist/{lifecycle-D6WN2dd_.js → lifecycle-IReZfi0b.js} +9 -10
- package/dist/lineage.d.ts +1 -3
- package/dist/lineage.js +1 -2
- package/dist/loader.d.ts +1 -7
- package/dist/loader.js +4 -6
- package/dist/{mcp-resources-TtxLNSL6.js → mcp-resources-DeJnbOaw.js} +4 -5
- package/dist/{memory-DjzwSng2.js → memory-BlSRrBH1.js} +7 -9
- package/dist/{metadata-target-CR0aDtvS.js → metadata-target-CaGLY4ay.js} +15 -23
- package/dist/{object-Da1zyPCR.js → object-CAK6UYR5.js} +1 -2
- package/dist/{operation-definition-CI2PJGqu.d.ts → operation-definition-CqZkx1Rm.d.ts} +0 -4
- package/dist/{operations-Cib30_dt.js → operations-BIaK_uYG.js} +7 -8
- package/dist/{operations-dtcU5LkD.js → operations-DS1C4uXd.js} +22 -29
- package/dist/operations.d.ts +2 -6
- package/dist/operations.js +2 -2
- package/dist/{path-BlIBpI7U.js → path-Bb9OIc_F.js} +2 -3
- package/dist/{path-zHxQUbqa.d.ts → path-C0uZxDdW.d.ts} +0 -2
- package/dist/{path-DrSIenjj.js → path-CuYE8-X6.js} +2 -4
- package/dist/{plugins-DKCBrH31.d.ts → plugins-CLc32jvL.d.ts} +1 -3
- package/dist/{provider-Fc3M6bEx.js → provider-CN14ewvx.js} +15 -20
- package/dist/providers/github/store.d.ts +2 -4
- package/dist/providers/github/store.js +1 -2
- package/dist/{registry-DpB5PBA4.d.ts → registry-B0g19sdy.d.ts} +1 -5
- package/dist/{registry-CedQvQxW.js → registry-BbUg9vJB.js} +4 -5
- package/dist/{registry-CLL0TY0L.d.ts → registry-s2Ob9PeX.d.ts} +2 -4
- package/dist/{request-scope-Bcv2kD8h.js → request-scope-CXCI_wCb.js} +2 -3
- package/dist/{results-DgkZUmTL.js → results-z-HpV9EP.js} +1 -2
- package/dist/{rolldown-runtime-rQ84J-ij.js → rolldown-runtime-DnNXxpGL.js} +2 -3
- package/dist/{rule-keys-Bsz6jTTF.js → rule-keys-BLEbi1h5.js} +2 -3
- package/dist/{rules-OHaPFopX.js → rules-BPDXypZV.js} +6 -8
- package/dist/runtime/assets.d.ts +2 -3
- package/dist/runtime/assets.js +5 -6
- package/dist/runtime/empty-assets-registry.d.ts +1 -3
- package/dist/runtime/empty-assets-registry.js +1 -2
- package/dist/runtime/empty-registry.d.ts +2 -4
- package/dist/runtime/empty-registry.js +1 -2
- package/dist/runtime/registry.d.ts +1 -1
- package/dist/runtime/registry.js +2 -3
- package/dist/runtime/request.d.ts +1 -3
- package/dist/runtime/request.js +2 -3
- package/dist/runtime/state.d.ts +5 -5
- package/dist/runtime/state.js +9 -10
- package/dist/runtime/workspace.d.ts +1 -1
- package/dist/runtime/workspace.js +1 -2
- package/dist/runtime.d.ts +8 -24
- package/dist/runtime.js +21 -24
- package/dist/{search-BqNV9LnO.js → search-C_nVorq7.js} +3 -4
- package/dist/{server-CFtrOPk6.js → server-aa1a4rkV.js} +8 -10
- package/dist/server.d.ts +3 -4
- package/dist/server.js +1 -2
- package/dist/{shared-BgDjxY3J.js → shared-C20Wh1mp.js} +12 -19
- package/dist/source-metadata.d.ts +2 -6
- package/dist/source-metadata.js +4 -5
- package/dist/{state-DBV6VHS6.d.ts → state-BdDfBtOR.d.ts} +5 -15
- package/dist/{store-BRMdD8Ft.js → store-cx3OqNTi.js} +11 -14
- package/dist/{sync-BezGVzrW.js → sync-BBfR4g5y.js} +6 -7
- package/dist/test.d.ts +1 -1
- package/dist/test.js +1 -2
- package/dist/{types-9DMtFjaa.d.ts → types-Bel5IDmF.d.ts} +0 -2
- package/dist/{use-Dv973swc.d.ts → use-CpphIBof.d.ts} +1 -5
- package/dist/{use-Dm2tbI5F.js → use-D0DyTMxM.js} +12 -14
- package/dist/{use-tools-CMUthOdy.d.ts → use-tools-CAK10LTc.d.ts} +2 -4
- package/dist/{use-tools-C1qvhzme.js → use-tools-CHduR5k6.js} +7 -10
- package/dist/{utils-C0Au2R16.js → utils-DXP9xfXo.js} +7 -9
- package/dist/vite.d.ts +3 -21
- package/dist/vite.js +574 -409
- package/dist/{vitehub-grants-C8IAl5-M.js → vitehub-grants-Co713QTg.js} +2 -4
- package/dist/{workspace-Cw4ycIW-.d.ts → workspace-BOuxrZrP.d.ts} +1 -3
- package/dist/{workspace-CFrwWhEm.js → workspace-CLuPkyZR.js} +26 -35
- package/package.json +24 -24
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { d as withWorkspaceRuntimeOptions, u as ownSourceOption } from "./config-
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-DnNXxpGL.js";
|
|
2
|
+
import { d as withWorkspaceRuntimeOptions, u as ownSourceOption } from "./config-jo5QgE1w.js";
|
|
3
3
|
import * as source from "@vite-hub/source";
|
|
4
|
-
|
|
4
|
+
// src/sources/glob.ts
|
|
5
5
|
var glob_exports = /* @__PURE__ */ __exportAll({ glob: () => glob });
|
|
6
6
|
function glob(options) {
|
|
7
7
|
const fileSource = source.glob({
|
|
@@ -17,5 +17,4 @@ function isLazySource(options) {
|
|
|
17
17
|
const mountMaterialize = typeof mount === "object" ? ownSourceOption(mount, "materialize") : void 0;
|
|
18
18
|
return mountMaterialize === "lazy" || mountMaterialize === "startup";
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { glob_exports as n, glob as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as normalizeSafeWorkspacePath } from "./path-
|
|
2
|
-
import { l as normalizeWorkspacePath } from "./path-
|
|
1
|
+
import { t as normalizeSafeWorkspacePath } from "./path-CuYE8-X6.js";
|
|
2
|
+
import { l as normalizeWorkspacePath } from "./path-Bb9OIc_F.js";
|
|
3
3
|
import { Minimatch } from "minimatch";
|
|
4
|
-
|
|
4
|
+
// src/core/glob.ts
|
|
5
5
|
function createWorkspaceGlobMatcher(pattern, options = {}) {
|
|
6
6
|
const requestedCwd = options.cwd === "." ? "" : options.cwd;
|
|
7
7
|
let cwd;
|
|
@@ -26,5 +26,4 @@ function createWorkspaceGlobMatcher(pattern, options = {}) {
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
//#endregion
|
|
30
29
|
export { createWorkspaceGlobMatcher as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/storage/history-schema.d.ts
|
|
2
1
|
interface HistoryManifestFile {
|
|
3
2
|
digest: string;
|
|
4
3
|
size: number;
|
|
@@ -432,5 +431,4 @@ declare const workspaceHistorySchema: {
|
|
|
432
431
|
isAlias: false;
|
|
433
432
|
}>;
|
|
434
433
|
};
|
|
435
|
-
//#endregion
|
|
436
434
|
export { workspaceHistorySchema as n, HistoryManifestFile as t };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { a as workspaceConflict, s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-
|
|
3
|
-
import { a as isExcludedWorkspacePath, d as sha256, i as decodeFile, l as normalizeWorkspacePath, r as contentToBytes, s as matchesAny } from "./path-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { r as resolveWorkspaceRevisionMaterializer } from "./vitehub-grants-
|
|
7
|
-
import {
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-DnNXxpGL.js";
|
|
2
|
+
import { a as workspaceConflict, s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-CuYE8-X6.js";
|
|
3
|
+
import { a as isExcludedWorkspacePath, d as sha256, i as decodeFile, l as normalizeWorkspacePath, r as contentToBytes, s as matchesAny } from "./path-Bb9OIc_F.js";
|
|
4
|
+
import { n as createSnapshotFromEntries, r as diffSnapshots } from "./utils-DXP9xfXo.js";
|
|
5
|
+
import { C as isMissingWorkspacePathError, S as filterSessionEntries, b as assertPathInSessionScope, w as scopedSearchQuery, x as filterSessionDiff, y as assertDiffInsideSessionPaths } from "./workspace-CLuPkyZR.js";
|
|
6
|
+
import { r as resolveWorkspaceRevisionMaterializer } from "./vitehub-grants-Co713QTg.js";
|
|
7
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B4me-ouV.js";
|
|
8
8
|
import { normalizeExecutionAuthority } from "@vite-hub/runtime";
|
|
9
9
|
import { posix } from "node:path";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
|
-
|
|
11
|
+
// src/session/progress.ts
|
|
12
12
|
async function withWorkspaceProgress(onProgress, event, fn) {
|
|
13
13
|
const startedAt = Date.now();
|
|
14
14
|
await onProgress?.({
|
|
@@ -43,8 +43,7 @@ async function withWorkspaceProgress(onProgress, event, fn) {
|
|
|
43
43
|
throw error;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
//#region src/session/tar.ts
|
|
46
|
+
// src/session/tar.ts
|
|
48
47
|
const encoder = new TextEncoder();
|
|
49
48
|
function writeField(header, offset, length, value) {
|
|
50
49
|
header.set(encoder.encode(value).subarray(0, length), offset);
|
|
@@ -109,8 +108,7 @@ async function createTarGz(entries, maxBytes) {
|
|
|
109
108
|
const compressed = new Blob([tar]).stream().pipeThrough(new CompressionStream("gzip"));
|
|
110
109
|
return new Uint8Array(await new Response(compressed).arrayBuffer());
|
|
111
110
|
}
|
|
112
|
-
|
|
113
|
-
//#region src/session/host.ts
|
|
111
|
+
// src/session/host.ts
|
|
114
112
|
var host_exports = /* @__PURE__ */ __exportAll({ createHostedWorkspaceSession: () => createHostedWorkspaceSession });
|
|
115
113
|
const publicationQueues = /* @__PURE__ */ new WeakMap();
|
|
116
114
|
const defaultHostInspectionConcurrency = 16;
|
|
@@ -1051,7 +1049,7 @@ async function createHostedWorkspaceSession(workspace, options) {
|
|
|
1051
1049
|
},
|
|
1052
1050
|
async search(query) {
|
|
1053
1051
|
assertOpen();
|
|
1054
|
-
const { searchText } = await import("./search-
|
|
1052
|
+
const { searchText } = await import("./search-C_nVorq7.js").then((n) => n.n);
|
|
1055
1053
|
const scoped = scopedSearchQuery(query, sessionPaths, normalizeSearchRoot);
|
|
1056
1054
|
if (!scoped) return [];
|
|
1057
1055
|
const scopedSearchRoots = [...new Set((scoped.paths?.length ? scoped.paths : [scoped.cwd || ""]).map(normalizeSearchRoot))].filter(Boolean);
|
|
@@ -1227,5 +1225,4 @@ async function createHostedWorkspaceSession(workspace, options) {
|
|
|
1227
1225
|
}
|
|
1228
1226
|
};
|
|
1229
1227
|
}
|
|
1230
|
-
//#endregion
|
|
1231
1228
|
export { host_exports as n, withWorkspaceProgress as r, createHostedWorkspaceSession as t };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { t as createWorkspaceGlobMatcher } from "./glob-
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as createGitHubWorkspaceStore } from "./store-
|
|
12
|
-
import { n as setWorkspaceRuntimeConfig } from "./config-
|
|
1
|
+
import { a as resolveGitHubWorkspaceStore, d as setWorkspaceHostedStoreLoader, i as resolveCloudflareArtifactsStore, u as getWorkspaceHostedStoreLoader } from "./provider-CN14ewvx.js";
|
|
2
|
+
import { a as workspaceConflict, n as assertWorkspaceDigest, s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-CuYE8-X6.js";
|
|
3
|
+
import { k as getActiveCloudflareBinding } from "./shared-C20Wh1mp.js";
|
|
4
|
+
import { t as copyJsonFileMetadata } from "./file-metadata-Bpsvjw_X.js";
|
|
5
|
+
import { a as isExcludedWorkspacePath, c as normalizeSafeWorkspacePattern, d as sha256, l as normalizeWorkspacePath, r as contentToBytes } from "./path-Bb9OIc_F.js";
|
|
6
|
+
import { t as createWorkspaceGlobMatcher } from "./glob-BreFjNAV.js";
|
|
7
|
+
import { t as workspaceStoreDiscard } from "./discard-BkoLmmmN.js";
|
|
8
|
+
import { t as isRecord } from "./object-CAK6UYR5.js";
|
|
9
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B4me-ouV.js";
|
|
10
|
+
import { n as createSnapshotFromEntries, r as diffSnapshots } from "./utils-DXP9xfXo.js";
|
|
11
|
+
import { t as createGitHubWorkspaceStore } from "./store-cx3OqNTi.js";
|
|
12
|
+
import { n as setWorkspaceRuntimeConfig } from "./config-CsgNNVAI.js";
|
|
13
13
|
import { resolve } from "node:path";
|
|
14
14
|
import { boolean, check, object, optional, parse as parse$1, pipe, record, string, unknown } from "valibot";
|
|
15
|
-
|
|
15
|
+
// src/storage/memory-fs.ts
|
|
16
16
|
function copyBinaryData(data) {
|
|
17
17
|
if (ArrayBuffer.isView(data)) return Uint8Array.from(new Uint8Array(data.buffer, data.byteOffset, data.byteLength));
|
|
18
18
|
if (Object.prototype.toString.call(data) === "[object ArrayBuffer]") return Uint8Array.from(new Uint8Array(data));
|
|
@@ -182,8 +182,7 @@ var MemoryFS = class {
|
|
|
182
182
|
function memoryFsError(code, path) {
|
|
183
183
|
return Object.assign(workspaceErrorDiagnostics.WORKSPACE_R0065({ message: `${code}: ${path}` }), { code });
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
//#region src/providers/cloudflare/artifacts-store.ts
|
|
185
|
+
// src/providers/cloudflare/artifacts-store.ts
|
|
187
186
|
const dir = "/workspace";
|
|
188
187
|
const fileMetadataPath = ".vitehub/files.json";
|
|
189
188
|
const fileMetadataJournalPath = ".vitehub/files.pending.json";
|
|
@@ -848,8 +847,7 @@ var CloudflareArtifactsWorkspaceStore = class {
|
|
|
848
847
|
function createCloudflareArtifactsWorkspaceStore(options, workspaceName) {
|
|
849
848
|
return new CloudflareArtifactsWorkspaceStore(options, workspaceName);
|
|
850
849
|
}
|
|
851
|
-
|
|
852
|
-
//#region src/hosted.ts
|
|
850
|
+
// src/hosted.ts
|
|
853
851
|
function installHostedGitHubWorkspaceStore() {
|
|
854
852
|
const existingWorkspaceHostedStoreLoader = getWorkspaceHostedStoreLoader();
|
|
855
853
|
setWorkspaceHostedStoreLoader((storeOptions, workspaceName) => {
|
|
@@ -882,5 +880,4 @@ function configureHostedWorkspaceRuntime(options = {}) {
|
|
|
882
880
|
setWorkspaceRuntimeConfig(config);
|
|
883
881
|
return config;
|
|
884
882
|
}
|
|
885
|
-
//#endregion
|
|
886
883
|
export { createCloudflareArtifactsWorkspaceStore as a, installHostedWorkspaceRuntime as i, installHostedCloudflareArtifactsWorkspaceStore as n, installHostedGitHubWorkspaceStore as r, configureHostedWorkspaceRuntime as t };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { n as setWorkspaceRuntimeConfig } from "./config-
|
|
1
|
+
import { d as setWorkspaceHostedStoreLoader, l as ownedBlobPrefix, o as resolveRuntimeVercelBlobWorkspaceStore, s as resolveVercelBlobWorkspaceStore, u as getWorkspaceHostedStoreLoader } from "./provider-CN14ewvx.js";
|
|
2
|
+
import { a as workspaceConflict, s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-CuYE8-X6.js";
|
|
3
|
+
import { a as isExcludedWorkspacePath, c as normalizeSafeWorkspacePattern, d as sha256, l as normalizeWorkspacePath, r as contentToBytes } from "./path-Bb9OIc_F.js";
|
|
4
|
+
import { t as createWorkspaceGlobMatcher } from "./glob-BreFjNAV.js";
|
|
5
|
+
import { r as diffSnapshots, t as createCurrentSnapshotFromStore } from "./utils-DXP9xfXo.js";
|
|
6
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B4me-ouV.js";
|
|
7
|
+
import { t as isRecord } from "./object-CAK6UYR5.js";
|
|
8
|
+
import { n as setWorkspaceRuntimeConfig } from "./config-CsgNNVAI.js";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
|
-
|
|
10
|
+
// src/providers/vercel/blob-store.ts
|
|
11
11
|
const fileMutations = /* @__PURE__ */ new Map();
|
|
12
12
|
async function serializeFileMutation(key, mutate) {
|
|
13
13
|
const pending = (fileMutations.get(key) || Promise.resolve()).catch(() => {}).then(mutate);
|
|
@@ -386,8 +386,7 @@ var VercelBlobWorkspaceStore = class {
|
|
|
386
386
|
function createVercelBlobWorkspaceStore(options, workspaceName) {
|
|
387
387
|
return new VercelBlobWorkspaceStore(options, workspaceName);
|
|
388
388
|
}
|
|
389
|
-
|
|
390
|
-
//#region src/hosted-vercel-blob.ts
|
|
389
|
+
// src/hosted-vercel-blob.ts
|
|
391
390
|
function installHostedVercelBlobWorkspaceRuntime() {
|
|
392
391
|
const existingWorkspaceHostedStoreLoader = getWorkspaceHostedStoreLoader();
|
|
393
392
|
setWorkspaceHostedStoreLoader((storeOptions, workspaceName) => {
|
|
@@ -406,5 +405,4 @@ function configureHostedVercelBlobWorkspaceRuntime(options = {}) {
|
|
|
406
405
|
setWorkspaceRuntimeConfig(config);
|
|
407
406
|
return config;
|
|
408
407
|
}
|
|
409
|
-
//#endregion
|
|
410
408
|
export { installHostedVercelBlobWorkspaceRuntime as n, configureHostedVercelBlobWorkspaceRuntime as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { T as VercelBlobWorkspaceStoreOptions, v as ResolvedWorkspaceModuleOptions } from "./types-
|
|
2
|
-
//#region src/hosted-vercel-blob.d.ts
|
|
1
|
+
import { T as VercelBlobWorkspaceStoreOptions, v as ResolvedWorkspaceModuleOptions } from "./types-Bel5IDmF.js";
|
|
3
2
|
export interface HostedVercelBlobWorkspaceRuntimeOptions {
|
|
4
3
|
assets?: boolean | string[];
|
|
5
4
|
env?: Record<string, string | undefined>;
|
|
@@ -10,5 +9,4 @@ export interface HostedVercelBlobWorkspaceRuntimeOptions {
|
|
|
10
9
|
}
|
|
11
10
|
export declare function installHostedVercelBlobWorkspaceRuntime(): void;
|
|
12
11
|
export declare function configureHostedVercelBlobWorkspaceRuntime(options?: HostedVercelBlobWorkspaceRuntimeOptions): ResolvedWorkspaceModuleOptions;
|
|
13
|
-
//#endregion
|
|
14
12
|
export type { VercelBlobWorkspaceStoreOptions };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { configureHostedVercelBlobWorkspaceRuntime, installHostedVercelBlobWorkspaceRuntime };
|
|
1
|
+
export { t as configureHostedVercelBlobWorkspaceRuntime, n as installHostedVercelBlobWorkspaceRuntime } from "./hosted-vercel-blob-B6kygYqn.js";
|
package/dist/hosted.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { T as VercelBlobWorkspaceStoreOptions, s as GitHubWorkspaceStoreOptions, t as CloudflareArtifactsWorkspaceStoreOptions, v as ResolvedWorkspaceModuleOptions } from "./types-
|
|
2
|
-
//#region src/hosted.d.ts
|
|
1
|
+
import { T as VercelBlobWorkspaceStoreOptions, s as GitHubWorkspaceStoreOptions, t as CloudflareArtifactsWorkspaceStoreOptions, v as ResolvedWorkspaceModuleOptions } from "./types-Bel5IDmF.js";
|
|
3
2
|
export type HostedWorkspaceRuntimeStoreOptions = Partial<CloudflareArtifactsWorkspaceStoreOptions> | (Partial<GitHubWorkspaceStoreOptions> & {
|
|
4
3
|
driver: "github";
|
|
5
4
|
}) | (Partial<VercelBlobWorkspaceStoreOptions> & {
|
|
@@ -15,5 +14,4 @@ export declare function installHostedGitHubWorkspaceStore(): void;
|
|
|
15
14
|
export declare function installHostedCloudflareArtifactsWorkspaceStore(): void;
|
|
16
15
|
export declare function installHostedWorkspaceRuntime(): void;
|
|
17
16
|
export declare function configureHostedWorkspaceRuntime(options?: HostedWorkspaceRuntimeOptions): ResolvedWorkspaceModuleOptions;
|
|
18
|
-
//#endregion
|
|
19
17
|
export type { CloudflareArtifactsWorkspaceStoreOptions, GitHubWorkspaceStoreOptions, VercelBlobWorkspaceStoreOptions };
|
package/dist/hosted.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { configureHostedWorkspaceRuntime, installHostedCloudflareArtifactsWorkspaceStore, installHostedGitHubWorkspaceStore, installHostedWorkspaceRuntime };
|
|
1
|
+
export { t as configureHostedWorkspaceRuntime, n as installHostedCloudflareArtifactsWorkspaceStore, r as installHostedGitHubWorkspaceStore, i as installHostedWorkspaceRuntime } from "./hosted-8BTKAtMX.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { $ as WorkspaceHistoryDiffOptions, $t as WorkspaceSourceDefinition, A as WorkspaceAuthor, An as WorkspaceStreamFile, At as WorkspaceOptions, B as WorkspaceDiffEntry, Bn as WorkspaceWriteOperation, Bt as WorkspaceScopeName, C as SourceContextWorkspaceFiles, Cn as WorkspaceSourceSyncResult, Ct as WorkspaceMergeConflict, D as WorkspaceAssetPath, Dn as WorkspaceStoreHistory, Dt as WorkspaceName, E as Workspace, En as WorkspaceStore, Et as WorkspaceMergeResolution, F as WorkspaceContentStream, Fn as WorkspaceWriteCommit, Ft as WorkspaceRetainedHistory, G as WorkspaceFileSourceInput, Gt as WorkspaceSessionHost, H as WorkspaceFetchSourceInput, Hn as WorkspaceWriteValidatorResult, Ht as WorkspaceSearchQuery, I as WorkspaceCustomSourceInput, In as WorkspaceWriteErrorHook, It as WorkspaceRevision, J as WorkspaceHistoryChanges, Jt as WorkspaceSessionOptions, K as WorkspaceGitHubSourceInput, Kt as WorkspaceSessionHostFileEntry, L as WorkspaceDefinition, Ln as WorkspaceWriteHook, Lt as WorkspaceRevisionView, M as WorkspaceCacheOptions, Mn as WorkspaceSyncResultDetails, Mt as WorkspacePrepareSessionProgressEvent, N as WorkspaceCapabilities, Nn as WorkspaceSyncSnapshotOptions, Nt as WorkspacePullRequest, O as WorkspaceAssets, On as WorkspaceStoreHistoryCommitOptions, Ot as WorkspaceNameMap, P as WorkspaceContent, Pn as WorkspaceValidateMode, Pt as WorkspaceRebaseOptions, Q as WorkspaceHistoryDeleteRefOptions, Qt as WorkspaceSourceBindingInput, R as WorkspaceDefinitionInput, Rn as WorkspaceWriteInput, Rt as WorkspaceRule, S as SourceContext, Sn as WorkspaceSourceSyncPolicy, St as WorkspaceMergeCommit, T as VercelBlobWorkspaceStoreOptions, Tn as WorkspaceStat, Tt as WorkspaceMergeOptions, U as WorkspaceFetchSourceRequestOptions, Un as WriteFileOptions, Ut as WorkspaceSelectedScope, V as WorkspaceEntry, Vn as WorkspaceWriteValidator, Vt as WorkspaceSearchHit, W as WorkspaceFile, Wt as WorkspaceSession, X as WorkspaceHistoryCommitBase, Xt as WorkspaceSnapshot, Y as WorkspaceHistoryChangesCommitOptions, Yt as WorkspaceSessionWriteFileOptions, Z as WorkspaceHistoryCommitOptions, Zt as WorkspaceSource, _ as ReadFileResult, _n as WorkspaceSourceResolver, _t as WorkspaceMaterializeMode, a as GitHubWorkspaceOption, an as WorkspaceSourceMount, at as WorkspaceHistoryListResult, b as RmOptions, bn as WorkspaceSourceSyncCounts, bt as WorkspaceMaterializeSourcesResult, c as GlobOptions, cn as WorkspaceSourceRequestExecutionInput, ct as WorkspaceHistoryRefOptions, d as LocalWorkspaceStoreOptions, dn as WorkspaceSourceRequestMethod, dt as WorkspaceInstructionBinding, en as WorkspaceSourceInput, et as WorkspaceHistoryExtensions, f as Logger, fn as WorkspaceSourceResolutionContext, ft as WorkspaceInstructionBindingValue, g as ReadFileOptions, gn as WorkspaceSourceResolutionResult, gt as WorkspaceLookupName, h as MkdirOptions, hn as WorkspaceSourceResolutionInvocation, ht as WorkspaceLoaderSource, i as ExecResult, in as WorkspaceSourceMaterializationStatus, it as WorkspaceHistoryListOptions, j as WorkspaceAutoCommitPlan, jn as WorkspaceSyncOptions, jt as WorkspacePlugin, k as WorkspaceAssetsRegistry, kn as WorkspaceStoreOptions, kt as WorkspaceOpenPullRequestOptions, l as ListOptions, ln as WorkspaceSourceRequestExecutionResult, lt as WorkspaceHookContext, m as MemoryWorkspaceStoreOptions, mn as WorkspaceSourceResolutionContextValueReader, mt as WorkspaceLoader, n as DiffOptions, nn as WorkspaceSourceMaterializationCounts, nt as WorkspaceHistoryFileInput, o as GitHubWorkspaceRefs, on as WorkspaceSourceMountOptions, ot as WorkspaceHistoryReader, p as MaybePromise, pn as WorkspaceSourceResolutionContextMap, pt as WorkspaceLastChange, q as WorkspaceGlobSourceInput, qt as WorkspaceSessionHostFiles, r as ExecOptions, rn as WorkspaceSourceMaterializationPathResult, rt as WorkspaceHistoryFilesCommitOptions, s as GitHubWorkspaceStoreOptions, sn as WorkspaceSourceRequestDescriptor, st as WorkspaceHistoryRef, t as CloudflareArtifactsWorkspaceStoreOptions, tn as WorkspaceSourceItem, tt as WorkspaceHistoryFile, u as LoaderContext, un as WorkspaceSourceRequestExecutor, ut as WorkspaceHooks, v as ResolvedWorkspaceModuleOptions, vn as WorkspaceSourceSelection, vt as WorkspaceMaterializeSourcesOptions, w as ValidatedWorkspaceName, wn as WorkspaceSourceSyncStatus, wt as WorkspaceMergeConflictContext, x as SnapshotOptions, xn as WorkspaceSourceSyncPathResult, xt as WorkspaceMcpResourcesSourceInput, y as ResolvedWorkspaceRule, yn as WorkspaceSourceSyncConfig, yt as WorkspaceMaterializeSourcesProgressEvent, z as WorkspaceDiff, zn as WorkspaceWriteMode, zt as WorkspaceRules } from "./types-
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as useWorkspace } from "./use-tools-
|
|
1
|
+
import { $ as WorkspaceHistoryDiffOptions, $t as WorkspaceSourceDefinition, A as WorkspaceAuthor, An as WorkspaceStreamFile, At as WorkspaceOptions, B as WorkspaceDiffEntry, Bn as WorkspaceWriteOperation, Bt as WorkspaceScopeName, C as SourceContextWorkspaceFiles, Cn as WorkspaceSourceSyncResult, Ct as WorkspaceMergeConflict, D as WorkspaceAssetPath, Dn as WorkspaceStoreHistory, Dt as WorkspaceName, E as Workspace, En as WorkspaceStore, Et as WorkspaceMergeResolution, F as WorkspaceContentStream, Fn as WorkspaceWriteCommit, Ft as WorkspaceRetainedHistory, G as WorkspaceFileSourceInput, Gt as WorkspaceSessionHost, H as WorkspaceFetchSourceInput, Hn as WorkspaceWriteValidatorResult, Ht as WorkspaceSearchQuery, I as WorkspaceCustomSourceInput, In as WorkspaceWriteErrorHook, It as WorkspaceRevision, J as WorkspaceHistoryChanges, Jt as WorkspaceSessionOptions, K as WorkspaceGitHubSourceInput, Kt as WorkspaceSessionHostFileEntry, L as WorkspaceDefinition, Ln as WorkspaceWriteHook, Lt as WorkspaceRevisionView, M as WorkspaceCacheOptions, Mn as WorkspaceSyncResultDetails, Mt as WorkspacePrepareSessionProgressEvent, N as WorkspaceCapabilities, Nn as WorkspaceSyncSnapshotOptions, Nt as WorkspacePullRequest, O as WorkspaceAssets, On as WorkspaceStoreHistoryCommitOptions, Ot as WorkspaceNameMap, P as WorkspaceContent, Pn as WorkspaceValidateMode, Pt as WorkspaceRebaseOptions, Q as WorkspaceHistoryDeleteRefOptions, Qt as WorkspaceSourceBindingInput, R as WorkspaceDefinitionInput, Rn as WorkspaceWriteInput, Rt as WorkspaceRule, S as SourceContext, Sn as WorkspaceSourceSyncPolicy, St as WorkspaceMergeCommit, T as VercelBlobWorkspaceStoreOptions, Tn as WorkspaceStat, Tt as WorkspaceMergeOptions, U as WorkspaceFetchSourceRequestOptions, Un as WriteFileOptions, Ut as WorkspaceSelectedScope, V as WorkspaceEntry, Vn as WorkspaceWriteValidator, Vt as WorkspaceSearchHit, W as WorkspaceFile, Wt as WorkspaceSession, X as WorkspaceHistoryCommitBase, Xt as WorkspaceSnapshot, Y as WorkspaceHistoryChangesCommitOptions, Yt as WorkspaceSessionWriteFileOptions, Z as WorkspaceHistoryCommitOptions, Zt as WorkspaceSource, _ as ReadFileResult, _n as WorkspaceSourceResolver, _t as WorkspaceMaterializeMode, a as GitHubWorkspaceOption, an as WorkspaceSourceMount, at as WorkspaceHistoryListResult, b as RmOptions, bn as WorkspaceSourceSyncCounts, bt as WorkspaceMaterializeSourcesResult, c as GlobOptions, cn as WorkspaceSourceRequestExecutionInput, ct as WorkspaceHistoryRefOptions, d as LocalWorkspaceStoreOptions, dn as WorkspaceSourceRequestMethod, dt as WorkspaceInstructionBinding, en as WorkspaceSourceInput, et as WorkspaceHistoryExtensions, f as Logger, fn as WorkspaceSourceResolutionContext, ft as WorkspaceInstructionBindingValue, g as ReadFileOptions, gn as WorkspaceSourceResolutionResult, gt as WorkspaceLookupName, h as MkdirOptions, hn as WorkspaceSourceResolutionInvocation, ht as WorkspaceLoaderSource, i as ExecResult, in as WorkspaceSourceMaterializationStatus, it as WorkspaceHistoryListOptions, j as WorkspaceAutoCommitPlan, jn as WorkspaceSyncOptions, jt as WorkspacePlugin, k as WorkspaceAssetsRegistry, kn as WorkspaceStoreOptions, kt as WorkspaceOpenPullRequestOptions, l as ListOptions, ln as WorkspaceSourceRequestExecutionResult, lt as WorkspaceHookContext, m as MemoryWorkspaceStoreOptions, mn as WorkspaceSourceResolutionContextValueReader, mt as WorkspaceLoader, n as DiffOptions, nn as WorkspaceSourceMaterializationCounts, nt as WorkspaceHistoryFileInput, o as GitHubWorkspaceRefs, on as WorkspaceSourceMountOptions, ot as WorkspaceHistoryReader, p as MaybePromise, pn as WorkspaceSourceResolutionContextMap, pt as WorkspaceLastChange, q as WorkspaceGlobSourceInput, qt as WorkspaceSessionHostFiles, r as ExecOptions, rn as WorkspaceSourceMaterializationPathResult, rt as WorkspaceHistoryFilesCommitOptions, s as GitHubWorkspaceStoreOptions, sn as WorkspaceSourceRequestDescriptor, st as WorkspaceHistoryRef, t as CloudflareArtifactsWorkspaceStoreOptions, tn as WorkspaceSourceItem, tt as WorkspaceHistoryFile, u as LoaderContext, un as WorkspaceSourceRequestExecutor, ut as WorkspaceHooks, v as ResolvedWorkspaceModuleOptions, vn as WorkspaceSourceSelection, vt as WorkspaceMaterializeSourcesOptions, w as ValidatedWorkspaceName, wn as WorkspaceSourceSyncStatus, wt as WorkspaceMergeConflictContext, x as SnapshotOptions, xn as WorkspaceSourceSyncPathResult, xt as WorkspaceMcpResourcesSourceInput, y as ResolvedWorkspaceRule, yn as WorkspaceSourceSyncConfig, yt as WorkspaceMaterializeSourcesProgressEvent, z as WorkspaceDiff, zn as WorkspaceWriteMode, zt as WorkspaceRules } from "./types-Bel5IDmF.js";
|
|
2
|
+
import { t as createWorkspace } from "./workspace-BOuxrZrP.js";
|
|
3
|
+
import { A as WorkspaceTools, C as ShellEnabled, D as WorkspaceShellResult, E as WorkspaceReadOperations, M as WorkspaceWriteToolMap, N as createWorkspaceTools, O as WorkspaceToolOperations, S as EnabledReadCapability, T as WorkspacePathResult, _ as WritableWorkspaceFiles, a as ReadonlyWorkspaceFiles, b as createWorkspaceFileRuntime, c as WorkspaceFacade, d as WorkspaceReadToolSet, f as WorkspaceReadTools, g as WritableWorkspaceFacadeToolOptions, h as WritableWorkspaceFacade, i as ReadonlyWorkspaceFacade, j as WorkspaceWriteOperations, k as WorkspaceToolOptions, l as WorkspaceFacadeToolOptions, m as WorkspaceWriteTools, n as HistoryCheckpoint, o as ReadonlyWorkspaceFs, p as WorkspaceWriteToolSet, r as HistoryCheckpointOptions, s as UseWorkspaceOptions, t as History, u as WorkspaceHistory, v as WritableWorkspaceFs, w as WorkspaceMoveResult, x as useWorkspaceFiles, y as createReadonlyFs } from "./use-CpphIBof.js";
|
|
4
|
+
import { n as isWorkspaceConflict, t as WorkspaceErrorCode } from "./errors-CnFDXxeJ.js";
|
|
5
|
+
import { t as isWorkspaceName } from "./registry-s2Ob9PeX.js";
|
|
6
|
+
import { t as registerWorkspacePlugin } from "./plugins-CLc32jvL.js";
|
|
7
|
+
import { t as useWorkspace } from "./use-tools-CAK10LTc.js";
|
|
8
8
|
import * as source from "@vite-hub/source";
|
|
9
9
|
import { FileSourceOptions as FileSourceOptions$1, GitHubSourceOptions as GitHubSourceOptions$1, sourceIgnores } from "@vite-hub/source";
|
|
10
10
|
import { McpResourceContent, McpResourceDescriptor, McpResourcesClient, McpResourcesClientConfig, McpResourcesRequestOptions, McpResourcesServer, McpResourcesSourceOptions as McpResourcesSourceOptions$1 } from "@vite-hub/source/mcp";
|
|
11
|
-
//#region src/core/define.d.ts
|
|
12
11
|
export declare function defineWorkspace(definition: WorkspaceDefinitionInput): WorkspaceDefinitionInput;
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region src/sources/runtime-options.d.ts
|
|
15
12
|
type ExactOptions$1<TInput, TShape> = TInput & Record<Exclude<keyof TInput, keyof TShape>, never>;
|
|
16
13
|
type WorkspaceSourceRuntimeOptions = Pick<WorkspaceSource, "cache" | "materialize" | "mount" | "sync" | "validate">;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/sources/custom.d.ts
|
|
19
14
|
type CustomWorkspaceSourceFile = Omit<WorkspaceSourceItem, "content" | "contentStream" | "key" | "path"> & {
|
|
20
15
|
content: WorkspaceContent | ((context: SourceContext) => MaybePromise<WorkspaceContent>);
|
|
21
16
|
path: string;
|
|
@@ -25,14 +20,10 @@ type CustomWorkspaceSourceFiles = WorkspaceSourceRuntimeOptions & Pick<Workspace
|
|
|
25
20
|
};
|
|
26
21
|
export declare function custom<const TSource extends CustomWorkspaceSourceFiles>(source: ExactOptions$1<TSource, CustomWorkspaceSourceFiles>): WorkspaceSource;
|
|
27
22
|
export declare function custom<const TSource extends WorkspaceSource>(source: ExactOptions$1<TSource, WorkspaceSource>): WorkspaceSource;
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/sources/file.d.ts
|
|
30
23
|
type FileWorkspaceSourceRuntimeOptions = WorkspaceSourceRuntimeOptions & Pick<WorkspaceSource, "probeKeys">;
|
|
31
24
|
type FileSourceOptions<TKey extends string = string> = FileSourceOptions$1<TKey> & FileWorkspaceSourceRuntimeOptions;
|
|
32
25
|
export declare function file<const TKey extends string>(input: TKey): WorkspaceSource;
|
|
33
26
|
export declare function file<const TKey extends string = string, const TOptions extends FileSourceOptions<TKey> = FileSourceOptions<TKey>>(input: ExactOptions$1<TOptions, FileSourceOptions<TKey>>): WorkspaceSource;
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/sources/fetch.d.ts
|
|
36
27
|
type FetchSourceMethod = "GET" | "HEAD" | "POST";
|
|
37
28
|
type FetchSourceResponseType = "json" | "text";
|
|
38
29
|
interface FetchSourceStandardSchemaResultSuccess<T = unknown> {
|
|
@@ -104,8 +95,6 @@ type FetchSourceInput<TResponse = unknown, TOutput = TResponse> = FetchSourceOpt
|
|
|
104
95
|
export declare function url<TResponse = unknown, TOutput = TResponse>(options: ExactOptions<FetchSourceOptions<TResponse, TOutput>, FetchSourceOptions<TResponse, TOutput>>): WorkspaceSource;
|
|
105
96
|
export declare function url<const TOptions extends FetchSourceOptions<any, any>>(options: ExactOptions<TOptions, FetchSourceOptions<any, any>>): WorkspaceSource;
|
|
106
97
|
export declare function url<TResponse = unknown, TOutput = TResponse>(resolve: FetchSourceResolver<TResponse, TOutput>): WorkspaceSource;
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/sources/github.d.ts
|
|
109
98
|
type GitHubAuth = NonNullable<GitHubSourceOptions$1["auth"]>;
|
|
110
99
|
type GitHubResolvedSourceOptions = Omit<GitHubSourceOptions, "repo"> & Partial<Pick<GitHubSourceOptions, "repo">>;
|
|
111
100
|
interface GitHubSourceOptions extends Omit<GitHubSourceOptions$1, "auth" | "ignore">, WorkspaceSourceRuntimeOptions {
|
|
@@ -117,19 +106,12 @@ type GitHubSourceResolver = (context: WorkspaceSourceResolutionContext) => Maybe
|
|
|
117
106
|
type GitHubSourceInput = GitHubSourceOptions | GitHubSourceResolver;
|
|
118
107
|
export declare function github<const TOptions extends GitHubSourceOptions>(options: ExactOptions$1<TOptions, GitHubSourceOptions>): WorkspaceSource;
|
|
119
108
|
export declare function github(resolve: GitHubSourceResolver): WorkspaceSource;
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region src/sources/glob.d.ts
|
|
122
109
|
type GlobSourceOptions = source.GlobSourceOptions & WorkspaceSourceRuntimeOptions;
|
|
123
110
|
export declare function glob<const TOptions extends GlobSourceOptions>(options: ExactOptions$1<TOptions, GlobSourceOptions>): WorkspaceSource;
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/sources/markdown.d.ts
|
|
126
111
|
export declare function markdown(options: FileSourceOptions): WorkspaceSource;
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region src/sources/mcp-resources.d.ts
|
|
129
112
|
interface McpResourcesSourceOptions<TKey extends string = string> extends Omit<McpResourcesSourceOptions$1<TKey>, "cache">, WorkspaceSourceRuntimeOptions {}
|
|
130
113
|
export declare function mcpResources<const TKey extends string = string, const TOptions extends McpResourcesSourceOptions<TKey> = McpResourcesSourceOptions<TKey>>(options: ExactOptions$1<TOptions, McpResourcesSourceOptions<TKey>>): WorkspaceSource;
|
|
131
114
|
declare namespace index_d_exports {
|
|
132
115
|
export { FetchSourceInput, FetchSourceOptions, FetchSourceRequest, FetchSourceRequestOptions, FetchSourceResolver, FileSourceOptions, GitHubSourceInput, GitHubSourceOptions, GitHubSourceResolver, GlobSourceOptions, McpResourceContent, McpResourceDescriptor, McpResourcesClient, McpResourcesClientConfig, McpResourcesRequestOptions, McpResourcesServer, McpResourcesSourceOptions, custom, file, github, glob, markdown, mcpResources, url };
|
|
133
116
|
}
|
|
134
|
-
//#endregion
|
|
135
117
|
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 GitHubWorkspaceRefs, type GitHubWorkspaceStoreOptions, type GlobOptions, type GlobSourceOptions, type History, type HistoryCheckpoint, type HistoryCheckpointOptions, 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 ReadFileOptions, type ReadFileResult, type ReadonlyWorkspaceFacade, type ReadonlyWorkspaceFiles, type ReadonlyWorkspaceFs, type ResolvedWorkspaceModuleOptions, type ResolvedWorkspaceRule, type RmOptions, type ShellEnabled, type SnapshotOptions, type SourceContext, type SourceContextWorkspaceFiles, type UseWorkspaceOptions, type ValidatedWorkspaceName, type VercelBlobWorkspaceStoreOptions, type Workspace, type WorkspaceAssetPath, type WorkspaceAssets, type WorkspaceAssetsRegistry, type WorkspaceAuthor, type WorkspaceAutoCommitPlan, type WorkspaceCacheOptions, type WorkspaceCapabilities, 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 WorkspaceHistory, type WorkspaceHistoryChanges, type WorkspaceHistoryChangesCommitOptions, type WorkspaceHistoryCommitBase, type WorkspaceHistoryCommitOptions, type WorkspaceHistoryDeleteRefOptions, type WorkspaceHistoryDiffOptions, type WorkspaceHistoryExtensions, type WorkspaceHistoryFile, type WorkspaceHistoryFileInput, type WorkspaceHistoryFilesCommitOptions, type WorkspaceHistoryListOptions, type WorkspaceHistoryListResult, type WorkspaceHistoryReader, type WorkspaceHistoryRef, type WorkspaceHistoryRefOptions, type WorkspaceHookContext, type WorkspaceHooks, type WorkspaceInstructionBinding, type WorkspaceInstructionBindingValue, type WorkspaceLastChange, type WorkspaceLoader, type WorkspaceLoaderSource, type WorkspaceLookupName, type WorkspaceMaterializeMode, type WorkspaceMaterializeSourcesOptions, type WorkspaceMaterializeSourcesProgressEvent, type WorkspaceMaterializeSourcesResult, type WorkspaceMcpResourcesSourceInput, type WorkspaceMergeCommit, type WorkspaceMergeConflict, type WorkspaceMergeConflictContext, type WorkspaceMergeOptions, type WorkspaceMergeResolution, type WorkspaceMoveResult, type WorkspaceName, type WorkspaceNameMap, type WorkspaceOpenPullRequestOptions, type WorkspaceOptions, type WorkspacePathResult, type WorkspacePlugin, type WorkspacePrepareSessionProgressEvent, type WorkspacePullRequest, type WorkspaceReadOperations, type WorkspaceReadToolSet, type WorkspaceReadTools, type WorkspaceRebaseOptions, type WorkspaceRetainedHistory, type WorkspaceRevision, type WorkspaceRevisionView, type WorkspaceRule, type WorkspaceRules, type WorkspaceScopeName, type WorkspaceSearchHit, type WorkspaceSearchQuery, type WorkspaceSelectedScope, type WorkspaceSession, type WorkspaceSessionHost, type WorkspaceSessionHostFileEntry, type WorkspaceSessionHostFiles, type WorkspaceSessionOptions, type WorkspaceSessionWriteFileOptions, type WorkspaceShellResult, type WorkspaceSnapshot, type WorkspaceSource, type WorkspaceSourceBindingInput, type WorkspaceSourceDefinition, type WorkspaceSourceInput, type WorkspaceSourceItem, type WorkspaceSourceMaterializationCounts, type WorkspaceSourceMaterializationPathResult, 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 WorkspaceStoreHistory, type WorkspaceStoreHistoryCommitOptions, type WorkspaceStoreOptions, type WorkspaceStreamFile, type WorkspaceSyncOptions, type WorkspaceSyncResultDetails, type WorkspaceSyncSnapshotOptions, type WorkspaceToolOperations, type WorkspaceToolOptions, type WorkspaceTools, type WorkspaceValidateMode, type WorkspaceWriteCommit, 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 WritableWorkspaceFiles, type WritableWorkspaceFs, type WriteFileOptions, type createReadonlyFs, createWorkspace, type createWorkspaceFileRuntime, createWorkspaceTools, isWorkspaceConflict, isWorkspaceName, registerWorkspacePlugin, index_d_exports as source, sourceIgnores, useWorkspace, useWorkspaceFiles };
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { n as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-
|
|
4
|
-
import { t as
|
|
5
|
-
import { r as
|
|
6
|
-
import { t as
|
|
7
|
-
import { m as url } from "./config-
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-DnNXxpGL.js";
|
|
2
|
+
import { t as assertWorkspaceRules } from "./rule-keys-BLEbi1h5.js";
|
|
3
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B4me-ouV.js";
|
|
4
|
+
import { t as createWorkspace } from "./workspace-CLuPkyZR.js";
|
|
5
|
+
import { r as isWorkspaceConflict, s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-CuYE8-X6.js";
|
|
6
|
+
import { r as withFileSourceOptions, t as file } from "./file-BrNAXQgY.js";
|
|
7
|
+
import { m as url } from "./config-jo5QgE1w.js";
|
|
8
|
+
import { t as github } from "./github-k--_LCrX.js";
|
|
9
|
+
import { t as glob } from "./glob-BEutagp1.js";
|
|
10
|
+
import { t as mcpResources } from "./mcp-resources-DeJnbOaw.js";
|
|
11
|
+
import { n as createWorkspaceTools, t as useWorkspace } from "./use-tools-CHduR5k6.js";
|
|
12
|
+
import { t as isWorkspaceName } from "./registry-BbUg9vJB.js";
|
|
13
|
+
import { r as registerWorkspacePlugin } from "./rules-BPDXypZV.js";
|
|
14
|
+
import { r as useWorkspaceFiles } from "./use-D0DyTMxM.js";
|
|
15
15
|
import { lookup } from "mrmime";
|
|
16
16
|
import { markdown as markdown$1, sourceIgnores } from "@vite-hub/source";
|
|
17
|
-
|
|
17
|
+
// src/core/define.ts
|
|
18
18
|
const workspaceDefinitionKeys = /* @__PURE__ */ new Set([
|
|
19
19
|
"bindings",
|
|
20
20
|
"commit",
|
|
@@ -40,8 +40,7 @@ function defineWorkspace(definition) {
|
|
|
40
40
|
for (const plugin of definition.plugins ?? []) assertWorkspaceRules(plugin?.rules);
|
|
41
41
|
return definition;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
//#region src/sources/custom.ts
|
|
43
|
+
// src/sources/custom.ts
|
|
45
44
|
function custom(source) {
|
|
46
45
|
if (!Object.hasOwn(source, "files") || !Array.isArray(source.files)) return source;
|
|
47
46
|
const { files: inputFiles, ...options } = source;
|
|
@@ -71,13 +70,11 @@ function custom(source) {
|
|
|
71
70
|
} } : {}
|
|
72
71
|
};
|
|
73
72
|
}
|
|
74
|
-
|
|
75
|
-
//#region src/sources/markdown.ts
|
|
73
|
+
// src/sources/markdown.ts
|
|
76
74
|
function markdown(options) {
|
|
77
75
|
return withFileSourceOptions(markdown$1(options), options);
|
|
78
76
|
}
|
|
79
|
-
|
|
80
|
-
//#region src/sources/index.ts
|
|
77
|
+
// src/sources/index.ts
|
|
81
78
|
var sources_exports = /* @__PURE__ */ __exportAll({
|
|
82
79
|
custom: () => custom,
|
|
83
80
|
file: () => file,
|
|
@@ -87,5 +84,4 @@ var sources_exports = /* @__PURE__ */ __exportAll({
|
|
|
87
84
|
mcpResources: () => mcpResources,
|
|
88
85
|
url: () => url
|
|
89
86
|
});
|
|
90
|
-
//#endregion
|
|
91
87
|
export { createWorkspace, createWorkspaceTools, custom, defineWorkspace, file, github, glob, isWorkspaceConflict, isWorkspaceName, markdown, mcpResources, registerWorkspacePlugin, sources_exports as source, sourceIgnores, url, useWorkspace, useWorkspaceFiles };
|
package/dist/internal/path.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as normalizeSafeWorkspacePath, t as SafeWorkspacePathOptions } from "../path-
|
|
1
|
+
import { n as normalizeSafeWorkspacePath, t as SafeWorkspacePathOptions } from "../path-C0uZxDdW.js";
|
|
2
2
|
export { SafeWorkspacePathOptions, normalizeSafeWorkspacePath };
|
package/dist/internal/path.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { normalizeSafeWorkspacePath };
|
|
1
|
+
export { t as normalizeSafeWorkspacePath } from "../path-CuYE8-X6.js";
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { L as WorkspaceDefinition, j as WorkspaceAutoCommitPlan, z as WorkspaceDiff } from "../types-
|
|
2
|
-
//#region src/core/rules.d.ts
|
|
1
|
+
import { L as WorkspaceDefinition, j as WorkspaceAutoCommitPlan, z as WorkspaceDiff } from "../types-Bel5IDmF.js";
|
|
3
2
|
export declare function resolveWorkspaceAutoCommit(definition: WorkspaceDefinition, diff: WorkspaceDiff): WorkspaceAutoCommitPlan | undefined;
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region src/core/glob-pattern.d.ts
|
|
6
3
|
interface WorkspaceGlobPatternLimits {
|
|
7
4
|
maxBytes: number;
|
|
8
5
|
maxComplexity: number;
|
|
@@ -10,5 +7,4 @@ interface WorkspaceGlobPatternLimits {
|
|
|
10
7
|
}
|
|
11
8
|
export declare const modelWorkspaceGlobPatternLimits: Readonly<WorkspaceGlobPatternLimits>;
|
|
12
9
|
export declare function assertModelWorkspaceGlobPattern(pattern: string | readonly string[], limits?: Readonly<WorkspaceGlobPatternLimits>): void;
|
|
13
|
-
//#endregion
|
|
14
10
|
export type { WorkspaceGlobPatternLimits };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as resolveWorkspaceAutoCommit } from "../rules-BPDXypZV.js";
|
|
2
|
+
import { t as workspaceErrorDiagnostics } from "../error-diagnostics-B4me-ouV.js";
|
|
3
3
|
const modelWorkspaceGlobPatternLimits = Object.freeze({
|
|
4
4
|
maxBytes: 2048,
|
|
5
5
|
maxComplexity: 1024,
|
|
@@ -82,5 +82,4 @@ function assertModelWorkspaceGlobPattern(pattern, limits = modelWorkspaceGlobPat
|
|
|
82
82
|
if (complexity > limits.maxComplexity) throw workspaceErrorDiagnostics.WORKSPACE_R0020({ message: `[vitehub] Workspace glob pattern complexity exceeds the model-facing limit of ${limits.maxComplexity} expansions.` });
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
//#endregion
|
|
86
85
|
export { assertModelWorkspaceGlobPattern, modelWorkspaceGlobPatternLimits, resolveWorkspaceAutoCommit };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-DnNXxpGL.js";
|
|
2
|
+
import { n as useWorkspaceAssets } from "./asset-registry-0CdRAjIV.js";
|
|
3
|
+
import { t as files } from "./files--z2dLC5z.js";
|
|
4
|
+
import { d as sha256, l as normalizeWorkspacePath, t as contentStreamChunks } from "./path-Bb9OIc_F.js";
|
|
5
|
+
import { s as workspaceError } from "./path-CuYE8-X6.js";
|
|
6
|
+
import { a as normalizeWorkspaceSources, c as sourceMountIntersectsPath, f as prepareWorkspaceSource, n as createSourceContext } from "./config-jo5QgE1w.js";
|
|
7
|
+
import { A as removeWorkspaceOwnedFile, C as withWorkspaceStoreMutation, D as readWorkspaceFileOwner, M as registerWorkspaceStoreAlias, N as workspaceStoreIdentity, O as recordWorkspaceFileOwner, _ as reconcileRemovedStartupSources, d as invalidateSourceSnapshot, j as withWorkspaceFileCheckpoint, k as removeWorkspaceFileOwner, m as readCurrentSourceSnapshot, y as sourceSnapshotOwnsAnyPath } from "./metadata-target-CaGLY4ay.js";
|
|
8
|
+
import { s as invalidateWorkspaceSourceMaterialization } from "./workspace-CLuPkyZR.js";
|
|
9
9
|
import { getViteHubErrorShape } from "@vite-hub/runtime";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
|
-
|
|
11
|
+
// src/lifecycle.ts
|
|
12
12
|
var lifecycle_exports = /* @__PURE__ */ __exportAll({ syncWorkspaceDefinition: () => syncWorkspaceDefinition });
|
|
13
13
|
const buildSourcesMetaKey = (workspace) => `workspace:${encodeURIComponent(workspace)}:build-sources`;
|
|
14
14
|
const buildFilesMetaKey = (workspace) => `workspace:${encodeURIComponent(workspace)}:build-files`;
|
|
@@ -595,5 +595,4 @@ function createMountedBuildSource(source, workspace) {
|
|
|
595
595
|
}
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
|
-
//#endregion
|
|
599
598
|
export { syncWorkspaceDefinition as n, lifecycle_exports as t };
|
package/dist/lineage.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lineage.d.ts
|
|
2
1
|
/** Where a derived file, such as a translation, came from: a Workspace path and the SHA-256 of its bytes then. */
|
|
3
2
|
export interface WorkspaceDerivedFrom {
|
|
4
3
|
path: string;
|
|
@@ -22,5 +21,4 @@ export declare function lineageDigest(bytes: Uint8Array): string;
|
|
|
22
21
|
*/
|
|
23
22
|
export declare function readDerivedFrom(path: string, bytes: Uint8Array): WorkspaceDerivedFrom | undefined;
|
|
24
23
|
/** The derived files of a file set whose source changed or is gone, sorted by path. */
|
|
25
|
-
export declare function staleDerivedFiles(files: ReadonlyMap<string, Uint8Array>): WorkspaceStaleFile[];
|
|
26
|
-
//#endregion
|
|
24
|
+
export declare function staleDerivedFiles(files: ReadonlyMap<string, Uint8Array>): WorkspaceStaleFile[];
|
package/dist/lineage.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { parse } from "yaml";
|
|
3
|
-
|
|
3
|
+
// src/lineage.ts
|
|
4
4
|
/** The digest that `derivedFrom.digest` holds: `sha256-` and the hex SHA-256 of the file bytes. */
|
|
5
5
|
function lineageDigest(bytes) {
|
|
6
6
|
return `sha256-${createHash("sha256").update(bytes).digest("hex")}`;
|
|
@@ -72,5 +72,4 @@ function staleDerivedFiles(files) {
|
|
|
72
72
|
}
|
|
73
73
|
return stale.sort((left, right) => left.path < right.path ? -1 : 1);
|
|
74
74
|
}
|
|
75
|
-
//#endregion
|
|
76
75
|
export { lineageDigest, readDerivedFrom, staleDerivedFiles };
|
package/dist/loader.d.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { P as WorkspaceContent, mt as WorkspaceLoader, tn as WorkspaceSourceItem } from "./types-
|
|
2
|
-
//#region src/loaders/files.d.ts
|
|
1
|
+
import { P as WorkspaceContent, mt as WorkspaceLoader, tn as WorkspaceSourceItem } from "./types-Bel5IDmF.js";
|
|
3
2
|
interface FilesLoaderOptions {
|
|
4
3
|
include?: string | string[];
|
|
5
4
|
exclude?: string | string[];
|
|
6
5
|
transform?: (item: WorkspaceSourceItem) => WorkspaceContent | WorkspaceSourceItem | Promise<WorkspaceContent | WorkspaceSourceItem>;
|
|
7
6
|
}
|
|
8
7
|
export declare function files(options?: FilesLoaderOptions): WorkspaceLoader;
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/loaders/json.d.ts
|
|
11
8
|
export declare function json(options?: FilesLoaderOptions): WorkspaceLoader;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/loaders/text.d.ts
|
|
14
9
|
export declare function text(options?: FilesLoaderOptions): WorkspaceLoader;
|
|
15
|
-
//#endregion
|
|
16
10
|
export type { FilesLoaderOptions };
|
package/dist/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { t as files } from "./files--z2dLC5z.js";
|
|
2
|
+
import { o as isWorkspaceBytes } from "./path-Bb9OIc_F.js";
|
|
3
|
+
// src/loaders/json.ts
|
|
4
4
|
function json(options = {}) {
|
|
5
5
|
return files({
|
|
6
6
|
...options,
|
|
@@ -14,10 +14,8 @@ function json(options = {}) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
//#region src/loaders/text.ts
|
|
17
|
+
// src/loaders/text.ts
|
|
19
18
|
function text(options = {}) {
|
|
20
19
|
return files(options);
|
|
21
20
|
}
|
|
22
|
-
//#endregion
|
|
23
21
|
export { files, json, text };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { t as normalizeSafeWorkspacePath } from "./path-
|
|
3
|
-
import { b as markLiveWorkspaceSource, d as withWorkspaceRuntimeOptions, f as prepareWorkspaceSource, u as ownSourceOption } from "./config-
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-DnNXxpGL.js";
|
|
2
|
+
import { t as normalizeSafeWorkspacePath } from "./path-CuYE8-X6.js";
|
|
3
|
+
import { b as markLiveWorkspaceSource, d as withWorkspaceRuntimeOptions, f as prepareWorkspaceSource, u as ownSourceOption } from "./config-jo5QgE1w.js";
|
|
4
4
|
import { mcpResources } from "@vite-hub/source/mcp";
|
|
5
|
-
|
|
5
|
+
// src/sources/mcp-resources.ts
|
|
6
6
|
var mcp_resources_exports = /* @__PURE__ */ __exportAll({ mcpResources: () => mcpResources$1 });
|
|
7
7
|
function mcpResources$1(options) {
|
|
8
8
|
const livePaths = {};
|
|
@@ -35,5 +35,4 @@ function resetLivePaths(paths, mountPath, keys) {
|
|
|
35
35
|
paths[path] = key;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
//#endregion
|
|
39
38
|
export { mcp_resources_exports as n, mcpResources$1 as t };
|