@vite-hub/workspace 0.3.1 → 0.4.1
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 +17 -13
- package/dist/blob-database.d.ts +1 -1
- package/dist/blob-database.js +6 -6
- package/dist/checkout.js +1 -1
- package/dist/cloudflare.d.ts +1 -1
- package/dist/cloudflare.js +1 -1
- package/dist/{config-BQKcPawI.d.ts → config-CDeGd0RB.d.ts} +1 -1
- package/dist/{config-BAgL2dtB.js → config-D1QENneP.js} +21 -21
- package/dist/durability.d.ts +1 -1
- package/dist/durability.js +2 -2
- package/dist/{error-diagnostics-CtKjGtGb.js → error-diagnostics-B5s9kNEA.js} +10 -6
- package/dist/{error-diagnostics-DSkCJC_L.js → error-diagnostics-CQ4BUqRe.js} +5 -1
- package/dist/{file-2pFYNtsU.js → file-CqG9zqiF.js} +1 -1
- package/dist/{files-BOo4SbwE.js → files-B6wpAhEx.js} +1 -1
- package/dist/files.d.ts +5 -5
- package/dist/files.js +4 -4
- package/dist/{github-CrYp4v8k.js → github-DKAlO0Vh.js} +3 -3
- package/dist/{glob-B8YGvTrZ.js → glob-BOqSKzSg.js} +1 -1
- package/dist/{host-BFBpXn0N.js → host-Bf1a2uo_.js} +4 -4
- package/dist/{hosted-vercel-blob-B3-wRdUm.js → hosted-vercel-blob-AbXG8fvR.js} +3 -3
- package/dist/hosted-vercel-blob.d.ts +1 -1
- package/dist/hosted-vercel-blob.js +1 -1
- package/dist/{hosted-KcUR_jPv.js → hosted-zG7HJaE4.js} +6 -6
- package/dist/hosted.d.ts +1 -1
- package/dist/hosted.js +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +15 -15
- package/dist/{lifecycle-B-enk_4A.js → lifecycle-D8FdpBod.js} +4 -4
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +1 -1
- package/dist/{mcp-resources-DF0F5rcL.js → mcp-resources-DntxtmDU.js} +1 -1
- package/dist/{memory-BOexthyW.js → memory-D5jq9HZW.js} +1 -1
- package/dist/{metadata-target-CWz6KHKq.js → metadata-target-DDoOQNp1.js} +3 -3
- package/dist/{operation-definition-8gOe-ubD.d.ts → operation-definition-nmRu_O3V.d.ts} +5 -0
- package/dist/{operations-C6FpR8Rr.js → operations-D8uCpzhM.js} +4 -4
- package/dist/{operations-CE2drFih.js → operations-DsY2MQnG.js} +207 -141
- package/dist/operations.d.ts +2 -2
- package/dist/operations.js +1 -1
- package/dist/{path-AxMho1wo.d.ts → path-uxLkzrZm.d.ts} +1 -1
- package/dist/{plugins-C8C0auoW.d.ts → plugins-CsrXCA1Q.d.ts} +1 -1
- package/dist/{provider-9s4Ufkm5.js → provider-sm9uzkLg.js} +7 -6
- package/dist/providers/github/store.d.ts +1 -1
- package/dist/providers/github/store.js +1 -1
- package/dist/{registry-B3BBm4Ts.d.ts → registry-CFl1Htyc.d.ts} +1 -1
- package/dist/{registry-CYNN623b.d.ts → registry-CwryP59t.d.ts} +2 -2
- package/dist/{registry-CNphafBx.js → registry-DmVfUe4K.js} +2 -2
- package/dist/runtime/assets.d.ts +1 -1
- package/dist/runtime/empty-assets-registry.d.ts +1 -1
- package/dist/runtime/empty-registry.d.ts +2 -2
- package/dist/runtime/registry.d.ts +1 -1
- package/dist/runtime/state.d.ts +4 -4
- package/dist/runtime/state.js +6 -6
- package/dist/runtime/workspace.d.ts +1 -1
- package/dist/runtime/workspace.js +1 -1
- package/dist/runtime.d.ts +7 -7
- package/dist/runtime.js +13 -13
- package/dist/{server-8tGltlGz.js → server-Cd4-iCh5.js} +4 -4
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1 -1
- package/dist/{shared-B3_EUk89.js → shared-ovXVSV3-.js} +9 -5
- package/dist/source-metadata.d.ts +2 -2
- package/dist/source-metadata.js +3 -3
- package/dist/{state-BISnUf1s.d.ts → state-C-YtsaiJ.d.ts} +4 -4
- package/dist/{state-DbrW-njQ.js → state-Cb_hIyAw.js} +4 -4
- package/dist/{store-ybhyD38Z.js → store-NZoRto-Y.js} +107 -7
- package/dist/{sync-CCD_VYC8.js → sync-CrT8zjwc.js} +3 -3
- package/dist/{target-jWhTdIuF.js → target-Dm9dHAVJ.js} +1 -1
- package/dist/test.d.ts +1 -1
- package/dist/test.js +1 -1
- package/dist/{types-BbtwmBZ5.d.ts → types-1Z-tKK3g.d.ts} +17 -2
- package/dist/{use-CSpT5W87.js → use-B0o5HoBl.js} +8 -8
- package/dist/{use-C6lV3-wC.d.ts → use-CjbF8EO9.d.ts} +1 -1
- package/dist/{utils-CgMZCHsX.js → utils-Dw-WULEZ.js} +10 -4
- package/dist/vite.d.ts +4 -2
- package/dist/vite.js +559 -354
- package/dist/{workspace-CYB2xZ1T.d.ts → workspace-CIXgHeyX.d.ts} +1 -1
- package/dist/{workspace-sPWn2Jxj.js → workspace-DvKu5PRa.js} +12 -12
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# @vite-hub/workspace
|
|
2
2
|
|
|
3
3
|
<p>
|
|
4
|
-
<a href="https://vitehub.dev"><img alt="ViteHub" src="https://
|
|
5
|
-
<img alt="TypeScript" src="https://
|
|
6
|
-
<img alt="Vite" src="https://
|
|
4
|
+
<a href="https://vitehub.dev"><img alt="ViteHub" src="https://img.shields.io/static/v1?label=ViteHub&message=vitehub.dev&color=blue"></a>
|
|
5
|
+
<img alt="TypeScript" src="https://img.shields.io/static/v1?label=TypeScript&message=ready&color=blue">
|
|
6
|
+
<img alt="Vite" src="https://img.shields.io/static/v1?label=Vite&message=discovery&color=blue">
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
`@vite-hub/workspace` gives agents and server code a file-system context they can read, diff, and, when opened in write mode, update.
|
|
@@ -162,7 +162,7 @@ import { workspaceHistorySchema } from "@vite-hub/workspace/blob-database"
|
|
|
162
162
|
export default defineDatabase({ name: "history", schema: workspaceHistorySchema })
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
```ts [server/workspaces/
|
|
165
|
+
```ts [server/workspaces/notes.ts]
|
|
166
166
|
import { blob } from "@vite-hub/blob"
|
|
167
167
|
import { useDatabase } from "@vite-hub/database"
|
|
168
168
|
import { defineWorkspace } from "@vite-hub/workspace"
|
|
@@ -172,7 +172,7 @@ export default defineWorkspace({
|
|
|
172
172
|
store: createBlobDatabaseWorkspaceStore({
|
|
173
173
|
blob: blob.store("workspace-history"),
|
|
174
174
|
database: () => useDatabase("history").db,
|
|
175
|
-
workspace: "
|
|
175
|
+
workspace: "notes-123",
|
|
176
176
|
}),
|
|
177
177
|
})
|
|
178
178
|
```
|
|
@@ -180,12 +180,12 @@ export default defineWorkspace({
|
|
|
180
180
|
```ts
|
|
181
181
|
import { useWorkspace } from "@vite-hub/workspace"
|
|
182
182
|
|
|
183
|
-
const workspace = useWorkspace("
|
|
183
|
+
const workspace = useWorkspace("notes", { mode: "write" })
|
|
184
184
|
const revision = await workspace.history.commit({
|
|
185
185
|
ifHead: (await workspace.history.head())?.id ?? null,
|
|
186
186
|
files: { "index.html": "<h1>Hello</h1>" },
|
|
187
187
|
message: "Publish",
|
|
188
|
-
metadata: { author: "
|
|
188
|
+
metadata: { author: "ada" },
|
|
189
189
|
})
|
|
190
190
|
const version = await workspace.history.open(revision.id)
|
|
191
191
|
await version.readFile("index.html")
|
|
@@ -326,11 +326,11 @@ Bind a standalone Source definition when direct reads, Content, and Workspace
|
|
|
326
326
|
need the same origin:
|
|
327
327
|
|
|
328
328
|
```ts
|
|
329
|
-
import {
|
|
329
|
+
import { glob, useSource } from "@vite-hub/source"
|
|
330
330
|
import { defineWorkspace } from "@vite-hub/workspace"
|
|
331
331
|
|
|
332
332
|
const docs = glob({ cwd: "docs", include: "**/*.md" })
|
|
333
|
-
const reader =
|
|
333
|
+
const reader = useSource(docs)
|
|
334
334
|
await reader.read("intro.md")
|
|
335
335
|
|
|
336
336
|
export default defineWorkspace({
|
|
@@ -346,7 +346,7 @@ placement, materialization, sync, and access rules. Source owns retrieval.
|
|
|
346
346
|
Without a `mount` path, the Source kind picks the mount, not the import. A file
|
|
347
347
|
Source (`file()` or `markdown()` from either package, or the `"README.md"` and
|
|
348
348
|
`{ path }` shorthands) puts its one file at its own key, so
|
|
349
|
-
`readme: file("README.md")` appears at `README.md`. `
|
|
349
|
+
`readme: file("README.md")` appears at `README.md`. `url()` also puts its one
|
|
350
350
|
file at its own path. Every other Source mounts under its binding key. Set `mount` to move a file:
|
|
351
351
|
`readme: { source: file("README.md"), mount: "docs" }` appears at
|
|
352
352
|
`docs/README.md`.
|
|
@@ -420,7 +420,7 @@ export default defineNuxtConfig({
|
|
|
420
420
|
workspace: {
|
|
421
421
|
store: {
|
|
422
422
|
driver: "github",
|
|
423
|
-
|
|
423
|
+
repo: "owner/repo",
|
|
424
424
|
branch: "main",
|
|
425
425
|
root: ".vitehub/workspaces/docs",
|
|
426
426
|
},
|
|
@@ -484,14 +484,14 @@ import { defineWorkspace } from "@vite-hub/workspace"
|
|
|
484
484
|
export default defineWorkspace({
|
|
485
485
|
store: {
|
|
486
486
|
driver: "github",
|
|
487
|
-
|
|
487
|
+
repo: "owner/repo",
|
|
488
488
|
branch: "main",
|
|
489
489
|
root: ".vitehub/workspaces/<workspace>",
|
|
490
490
|
},
|
|
491
491
|
})
|
|
492
492
|
```
|
|
493
493
|
|
|
494
|
-
The GitHub Store talks to GitHub through `@vite-hub/forge`, an optional peer. Install it with `pnpm add @vite-hub/forge`. Without it, the first request fails with `INTERNAL_FORGE_NOT_INSTALLED`. Set `VITEHUB_GITHUB_TOKEN` or `FORGES_GITHUB_TOKEN` in the process environment or as a runtime binding with permission to read and write the repository contents. Set `VITEHUB_WORKSPACE_GITHUB_REPOSITORY`, `VITEHUB_WORKSPACE_GITHUB_BRANCH`, and `VITEHUB_WORKSPACE_GITHUB_ROOT` to configure the Store location when you omit those options. Reads and snapshots call the GitHub API, so this Store trades provider independence for GitHub API latency and rate limits. Branch heads are revalidated with their ETag, answers for a commit sha stay in memory, and with `registerWorkspaceKV()` (Content calls it with ViteHub KV) they also go to KV for 7 days. `history.list()` reads one request per page,
|
|
494
|
+
The GitHub Store talks to GitHub through `@vite-hub/forge`, an optional peer. Install it with `pnpm add @vite-hub/forge`. Without it, the first request fails with `INTERNAL_FORGE_NOT_INSTALLED`. Set `VITEHUB_GITHUB_TOKEN` or `FORGES_GITHUB_TOKEN` in the process environment or as a runtime binding with permission to read and write the repository contents. Set `VITEHUB_WORKSPACE_GITHUB_REPOSITORY`, `VITEHUB_WORKSPACE_GITHUB_BRANCH`, and `VITEHUB_WORKSPACE_GITHUB_ROOT` to configure the Store location when you omit those options. Reads and snapshots call the GitHub API, so this Store trades provider independence for GitHub API latency and rate limits. Branch heads are revalidated with their ETag, answers for a commit sha stay in memory, and with `registerWorkspaceKV()` (Content calls it with ViteHub KV) they also go to KV for 7 days. `history.list()` reads one request per page, `history.open(id).preload(paths)` reads many files from one archive, and `history.open(id).lastChanged(paths)` finds the last commit of 100 paths per request. `workspace.snapshot()` writes changed Workspace Store files as one GitHub commit. If the target branch moves after the Workspace Store loaded local changes, including during the final branch update, snapshot moves the changes onto the new head and commits once more. A path that changed on both sides, or a second move, fails with `WORKSPACE_CONFLICT`; `details.paths` names the paths. A Store without staged writes reads the branch head again when it loaded it more than 5 seconds ago, so one cached Store serves many requests without `resetWorkspaceStoreCache()`. The Cloudflare Artifacts Store does the same. Writes stay staged until `snapshot()`. When a request, a Schedule run, or a Queue job throws, a Store that holds only its staged writes drops them and loads the branch again on its next call, so a later snapshot cannot commit them. This holds for every writer of the Store, Source materialization included, and for Workspaces that live longer than one request. Requests that overlap in one instance share one Store, so their staged writes stay until one of them snapshots.
|
|
495
495
|
|
|
496
496
|
GitHub file reads share a blob cache across Store instances and history views in one isolate. Immutable blob shas identify the bytes, including across repositories. Concurrent reads of the same blob share one request when the repository and credentials match, and failed reads can be retried. A failed request does not affect readers using another repository or token. The cache retains up to 32 MiB of bytes, evicts the oldest entries first, and skips blobs larger than 4 MiB. A cold isolate or an evicted blob still needs a GitHub request.
|
|
497
497
|
|
|
@@ -503,6 +503,10 @@ that commit. The `vitehub workspace history`, `refs`, and `show` CLI commands
|
|
|
503
503
|
inspect this data; the Console Workspace/files view does not yet provide a history
|
|
504
504
|
navigator.
|
|
505
505
|
|
|
506
|
+
`lastChanged(paths)` returns only changes it can confirm on the first-parent history,
|
|
507
|
+
including deletions. A `null` value means no change. A missing key means the Store
|
|
508
|
+
could not confirm an answer.
|
|
509
|
+
|
|
506
510
|
The GitHub Store also writes history. `history.commit()` creates one commit, checks `ifHead` and
|
|
507
511
|
`ifHeads` against the branch heads, and starts a missing branch from the `refs.published` branch when it is set, else from the default branch. `startFrom` names the revision a missing ref starts from. Options:
|
|
508
512
|
`root: ""` is the repository root. `refs: { published?: string, draft?: string }` names the branches
|
package/dist/blob-database.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cn as WorkspaceStoreHistory, Sn as WorkspaceStore } from "./types-1Z-tKK3g.js";
|
|
2
2
|
import { BlobStorage } from "@vite-hub/blob";
|
|
3
3
|
import { RuntimeDrizzleDatabase } from "@vite-hub/database";
|
|
4
4
|
//#region src/storage/blob-database.d.ts
|
package/dist/blob-database.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as forkMemoryWorkspaceStore, r as vitehubOwnedPrefix, t as createMemoryWorkspaceStore } from "./memory-
|
|
1
|
+
import { n as forkMemoryWorkspaceStore, r as vitehubOwnedPrefix, t as createMemoryWorkspaceStore } from "./memory-D5jq9HZW.js";
|
|
2
2
|
import { s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-DrSIenjj.js";
|
|
3
|
-
import { o as copyJsonFileMetadata, r as workspaceStoreTarget, s as copyJsonWorkspaceMetadata } from "./target-
|
|
3
|
+
import { o as copyJsonFileMetadata, r as workspaceStoreTarget, s as copyJsonWorkspaceMetadata } from "./target-Dm9dHAVJ.js";
|
|
4
4
|
import { a as isExcludedWorkspacePath, f as sha256, i as decodeFile, o as isWorkspaceBytes, r as contentToBytes } from "./path--wrT_Azm.js";
|
|
5
|
-
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-
|
|
6
|
-
import { d as normalizeHistoryRef, l as historyConflict,
|
|
5
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B5s9kNEA.js";
|
|
6
|
+
import { d as normalizeHistoryRef, f as rejectHistoryHead, l as historyConflict, m as validateHistoryMessage, n as createSnapshotFromEntries, r as diffSnapshots, u as normalizeHistoryPath } from "./utils-Dw-WULEZ.js";
|
|
7
7
|
import { and, desc, eq, inArray, isNotNull, lt, sql } from "drizzle-orm";
|
|
8
8
|
import { ViteHubError } from "@vite-hub/runtime";
|
|
9
9
|
import { index, integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
@@ -306,7 +306,7 @@ var ContentAddressedWorkspaceStore = class {
|
|
|
306
306
|
const workspace = await this.#key();
|
|
307
307
|
await this.#assertActive();
|
|
308
308
|
const current = await this.#ref(workspace, ref);
|
|
309
|
-
if ((current?.head ?? null) !== options.ifHead)
|
|
309
|
+
if ((current?.head ?? null) !== options.ifHead) rejectHistoryHead(options, this.#conflict(ref, options.ifHead, current?.head ?? null));
|
|
310
310
|
const entries = Object.create(null);
|
|
311
311
|
const removed = /* @__PURE__ */ new Set();
|
|
312
312
|
if (options.changes && current?.head) Object.assign(entries, (await this.#revision(current.head)).entries);
|
|
@@ -416,7 +416,7 @@ var ContentAddressedWorkspaceStore = class {
|
|
|
416
416
|
const actual = (await this.#ref(workspace, name))?.head ?? null;
|
|
417
417
|
if (actual !== expected) throw this.#conflict(name, expected, actual);
|
|
418
418
|
}
|
|
419
|
-
|
|
419
|
+
rejectHistoryHead(options, this.#conflict(ref, options.ifHead, (await this.#ref(workspace, ref))?.head ?? null));
|
|
420
420
|
}
|
|
421
421
|
return publicRevision({
|
|
422
422
|
...row,
|
package/dist/checkout.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-
|
|
1
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B5s9kNEA.js";
|
|
2
2
|
import { staleDerivedFiles } from "./lineage.js";
|
|
3
3
|
import { t as workspaceCommitRequestBytes } from "./results-DgkZUmTL.js";
|
|
4
4
|
import { isRuntimeDiagnostic } from "@vite-hub/runtime";
|
package/dist/cloudflare.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as GitHubWorkspaceStoreOptions, t as CloudflareArtifactsWorkspaceStoreOptions, v as ResolvedWorkspaceModuleOptions
|
|
1
|
+
import { Sn as WorkspaceStore, s as GitHubWorkspaceStoreOptions, t as CloudflareArtifactsWorkspaceStoreOptions, v as ResolvedWorkspaceModuleOptions } from "./types-1Z-tKK3g.js";
|
|
2
2
|
import { configureHostedWorkspaceRuntime } from "./hosted.js";
|
|
3
3
|
//#region src/providers/cloudflare/artifacts-store.d.ts
|
|
4
4
|
export declare function createCloudflareArtifactsWorkspaceStore(options: CloudflareArtifactsWorkspaceStoreOptions, workspaceName: string): WorkspaceStore;
|
package/dist/cloudflare.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createCloudflareArtifactsWorkspaceStore, t as configureHostedWorkspaceRuntime } from "./hosted-
|
|
1
|
+
import { a as createCloudflareArtifactsWorkspaceStore, t as configureHostedWorkspaceRuntime } from "./hosted-zG7HJaE4.js";
|
|
2
2
|
export { configureHostedWorkspaceRuntime as configureCloudflareWorkspaceRuntime, createCloudflareArtifactsWorkspaceStore };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { An as WorkspaceValidateMode, I as WorkspaceDefinition, Xt as WorkspaceSourceInput, j as WorkspaceCacheOptions, pt as WorkspaceMaterializeMode, qt as WorkspaceSource, rn as WorkspaceSourceRequestDescriptor, vn as WorkspaceSourceSyncPolicy } from "./types-1Z-tKK3g.js";
|
|
2
2
|
//#region src/sources/request-metadata.d.ts
|
|
3
3
|
declare function getWorkspaceSourceRequestDescriptor(source: WorkspaceSource): WorkspaceSourceRequestDescriptor | undefined;
|
|
4
4
|
declare function isWorkspaceSourceRequestOnly(source: WorkspaceSource): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-DrSIenjj.js";
|
|
2
2
|
import { i as decodeFile, o as isWorkspaceBytes } from "./path--wrT_Azm.js";
|
|
3
|
-
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-
|
|
3
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B5s9kNEA.js";
|
|
4
4
|
import { t as isRecord } from "./object-Da1zyPCR.js";
|
|
5
|
-
import { t as internalErrorDiagnostics } from "./error-diagnostics-
|
|
5
|
+
import { t as internalErrorDiagnostics } from "./error-diagnostics-CQ4BUqRe.js";
|
|
6
6
|
import { t as abortable } from "./abort-BCwpdrN0.js";
|
|
7
7
|
import { posix } from "node:path";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
@@ -334,7 +334,7 @@ function workspaceSourceRequestDescriptorPath(sourceKey) {
|
|
|
334
334
|
}
|
|
335
335
|
//#endregion
|
|
336
336
|
//#region src/sources/fetch.ts
|
|
337
|
-
function
|
|
337
|
+
function url(input) {
|
|
338
338
|
if (typeof input === "function") return resolvableFetchSource(input);
|
|
339
339
|
return createFetchSource(input);
|
|
340
340
|
}
|
|
@@ -371,7 +371,7 @@ function createFetchSource(options) {
|
|
|
371
371
|
return [key];
|
|
372
372
|
},
|
|
373
373
|
async getItem(sourcePath, ctx) {
|
|
374
|
-
if (!workspacePath) throw workspaceErrorDiagnostics.WORKSPACE_R0046({ message: "[vitehub] Request-only
|
|
374
|
+
if (!workspacePath) throw workspaceErrorDiagnostics.WORKSPACE_R0046({ message: "[vitehub] Request-only url() Source does not expose a default Source-Backed Path." });
|
|
375
375
|
if (sourcePath !== key) throw workspaceErrorDiagnostics.WORKSPACE_R0047({ message: `[vitehub] Fetch source item does not exist: ${sourcePath}.` });
|
|
376
376
|
const result = await executeHttpRequest({
|
|
377
377
|
...await defaultFetchSourceRequest(options, method, ctx, void 0, callbackReceiver),
|
|
@@ -447,7 +447,7 @@ function resolvableFetchSource(resolve) {
|
|
|
447
447
|
return [];
|
|
448
448
|
},
|
|
449
449
|
async getItem(key) {
|
|
450
|
-
throw workspaceErrorDiagnostics.WORKSPACE_R0048({ message: `[vitehub]
|
|
450
|
+
throw workspaceErrorDiagnostics.WORKSPACE_R0048({ message: `[vitehub] url() resolver did not resolve before reading ${JSON.stringify(key)}.` });
|
|
451
451
|
},
|
|
452
452
|
async getItems() {
|
|
453
453
|
return [];
|
|
@@ -459,14 +459,14 @@ function resolvableFetchSource(resolve) {
|
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
461
|
function normalizePublicResponseType(responseType) {
|
|
462
|
-
if (responseType !== "json" && responseType !== "text") throw workspaceErrorDiagnostics.WORKSPACE_R0049({ message: `[vitehub]
|
|
462
|
+
if (responseType !== "json" && responseType !== "text") throw workspaceErrorDiagnostics.WORKSPACE_R0049({ message: `[vitehub] url() responseType "${responseType}" is not supported in v1. Use json or text.` });
|
|
463
463
|
return responseType;
|
|
464
464
|
}
|
|
465
465
|
function normalizeMethod(method) {
|
|
466
466
|
const normalized = method === void 0 ? "GET" : typeof method === "string" ? method.toUpperCase() : "";
|
|
467
467
|
if (normalized !== "GET" && normalized !== "HEAD" && normalized !== "POST") {
|
|
468
468
|
const label = typeof method === "string" ? method : typeof method;
|
|
469
|
-
throw workspaceErrorDiagnostics.WORKSPACE_R0050({ message: `[vitehub]
|
|
469
|
+
throw workspaceErrorDiagnostics.WORKSPACE_R0050({ message: `[vitehub] url() method "${label}" is not supported in v1. Use GET, HEAD, or POST.` });
|
|
470
470
|
}
|
|
471
471
|
return normalized;
|
|
472
472
|
}
|
|
@@ -474,9 +474,9 @@ function normalizeFetchWorkspacePath(options) {
|
|
|
474
474
|
return options.workspacePath ? normalizeSafeWorkspacePath(options.workspacePath, { allowEmpty: false }) : void 0;
|
|
475
475
|
}
|
|
476
476
|
function assertRequestShape(options, method) {
|
|
477
|
-
if ((options.query !== void 0 || urlHasQuery(options.url)) && options.querySchema !== void 0) throw workspaceErrorDiagnostics.WORKSPACE_R0051({ message: "[vitehub]
|
|
478
|
-
if (options.body !== void 0 && options.bodySchema !== void 0) throw workspaceErrorDiagnostics.WORKSPACE_R0052({ message: "[vitehub]
|
|
479
|
-
if ((method === "GET" || method === "HEAD") && (options.body !== void 0 || options.bodySchema !== void 0)) throw workspaceErrorDiagnostics.WORKSPACE_R0053({ message: `[vitehub]
|
|
477
|
+
if ((options.query !== void 0 || urlHasQuery(options.url)) && options.querySchema !== void 0) throw workspaceErrorDiagnostics.WORKSPACE_R0051({ message: "[vitehub] url() accepts either query or querySchema, not both." });
|
|
478
|
+
if (options.body !== void 0 && options.bodySchema !== void 0) throw workspaceErrorDiagnostics.WORKSPACE_R0052({ message: "[vitehub] url() accepts either body or bodySchema, not both." });
|
|
479
|
+
if ((method === "GET" || method === "HEAD") && (options.body !== void 0 || options.bodySchema !== void 0)) throw workspaceErrorDiagnostics.WORKSPACE_R0053({ message: `[vitehub] url() ${method} requests cannot declare body or bodySchema.` });
|
|
480
480
|
}
|
|
481
481
|
function urlHasQuery(url) {
|
|
482
482
|
const parsed = url instanceof URL ? url : new URL(url);
|
|
@@ -521,7 +521,7 @@ function descriptorCredentials(options) {
|
|
|
521
521
|
}
|
|
522
522
|
function schemaProjection(schema, option) {
|
|
523
523
|
const project = schema["~standard"].jsonSchema?.input;
|
|
524
|
-
if (typeof project !== "function") throw workspaceErrorDiagnostics.WORKSPACE_R0054({ message: `[vitehub]
|
|
524
|
+
if (typeof project !== "function") throw workspaceErrorDiagnostics.WORKSPACE_R0054({ message: `[vitehub] url() ${option} must expose a Standard JSON Schema-compatible input projection.` });
|
|
525
525
|
return project({ target: "draft-2020-12" });
|
|
526
526
|
}
|
|
527
527
|
function concreteQueryFromOptions(options) {
|
|
@@ -532,8 +532,8 @@ function concreteQueryFromOptions(options) {
|
|
|
532
532
|
} : void 0;
|
|
533
533
|
}
|
|
534
534
|
async function defaultFetchSourceRequest(options, method, ctx, overrides = {}, callbackReceiver = options) {
|
|
535
|
-
const defaultQuery = overrides.query !== void 0 ? void 0 : options.query !== void 0 || concreteQueryFromOptions(options) ? concreteQueryFromOptions(options) : options.querySchema ? await parseStandardSchema(options.querySchema, {}, "
|
|
536
|
-
const defaultBody = overrides.body !== void 0 ? void 0 : options.body !== void 0 ? options.body : options.bodySchema ? await parseStandardSchema(options.bodySchema, {}, "
|
|
535
|
+
const defaultQuery = overrides.query !== void 0 ? void 0 : options.query !== void 0 || concreteQueryFromOptions(options) ? concreteQueryFromOptions(options) : options.querySchema ? await parseStandardSchema(options.querySchema, {}, "url() query default") : void 0;
|
|
536
|
+
const defaultBody = overrides.body !== void 0 ? void 0 : options.body !== void 0 ? options.body : options.bodySchema ? await parseStandardSchema(options.bodySchema, {}, "url() body default") : void 0;
|
|
537
537
|
const query = overrides.query ?? defaultQuery;
|
|
538
538
|
const body = typeof overrides.body === "undefined" ? defaultBody : overrides.body;
|
|
539
539
|
const context = sourceRequestContext(options, method, {
|
|
@@ -874,10 +874,10 @@ function ambiguousSourceConfiguration(families) {
|
|
|
874
874
|
return workspaceErrorDiagnostics.WORKSPACE_C0005({ message: `[vitehub] Workspace source configuration is ambiguous. Matched ${families.join(", ")}. A Source helper call, for example github(...) or custom(...), makes the source kind explicit.` });
|
|
875
875
|
}
|
|
876
876
|
function createInferredFetchSource(input) {
|
|
877
|
-
if (!isRecord(input)) return
|
|
877
|
+
if (!isRecord(input)) return url(input);
|
|
878
878
|
const record = input;
|
|
879
879
|
const workspacePath = typeof record.workspacePath === "string" ? record.workspacePath : inferFetchWorkspacePath(record);
|
|
880
|
-
return
|
|
880
|
+
return url({
|
|
881
881
|
...input,
|
|
882
882
|
workspacePath
|
|
883
883
|
});
|
|
@@ -956,10 +956,10 @@ function inferredSourceFingerprintOptions(family, input) {
|
|
|
956
956
|
async function loadInferredWorkspaceSource(family, input) {
|
|
957
957
|
if (family === "fetch" && isRecord(input)) return createInferredFetchSource(input);
|
|
958
958
|
if (family === "fetch") return createInferredFetchSource(input);
|
|
959
|
-
if (family === "file") return (await import("./file-
|
|
960
|
-
if (family === "github") return (await import("./github-
|
|
961
|
-
if (family === "glob") return (await import("./glob-
|
|
962
|
-
return (await import("./mcp-resources-
|
|
959
|
+
if (family === "file") return (await import("./file-CqG9zqiF.js").then((n) => n.n)).file(input);
|
|
960
|
+
if (family === "github") return (await import("./github-DKAlO0Vh.js").then((n) => n.n)).github(input);
|
|
961
|
+
if (family === "glob") return (await import("./glob-BOqSKzSg.js").then((n) => n.n)).glob(input);
|
|
962
|
+
return (await import("./mcp-resources-DntxtmDU.js").then((n) => n.n)).mcpResources(input);
|
|
963
963
|
}
|
|
964
964
|
function inferredSourceDefaults(family, input) {
|
|
965
965
|
if (!isRecord(input)) return family === "file" ? { key: inferredFileSourceKey(input) } : {};
|
|
@@ -1012,7 +1012,7 @@ function inferFetchWorkspacePath(input) {
|
|
|
1012
1012
|
const explicitPath = typeof input.path === "string" ? input.path : void 0;
|
|
1013
1013
|
if (explicitPath) return normalizeSafeWorkspacePath(explicitPath, { allowEmpty: false });
|
|
1014
1014
|
const url = input.url instanceof URL ? input.url : new URL(String(input.url));
|
|
1015
|
-
if (url.search) throw workspaceErrorDiagnostics.WORKSPACE_C0007({ message: "[vitehub]
|
|
1015
|
+
if (url.search) throw workspaceErrorDiagnostics.WORKSPACE_C0007({ message: "[vitehub] url() requires an explicit path when the URL includes query parameters." });
|
|
1016
1016
|
let path = normalizeSafeWorkspacePath(decodeURI(url.pathname).replace(/^\/+/, ""), { allowEmpty: false });
|
|
1017
1017
|
if (!basename$1(path).includes(".")) path = `${path}.${responseType === "json" ? "json" : "txt"}`;
|
|
1018
1018
|
return path;
|
|
@@ -1073,4 +1073,4 @@ function hasOwn(input, key) {
|
|
|
1073
1073
|
return Object.prototype.hasOwnProperty.call(input, key);
|
|
1074
1074
|
}
|
|
1075
1075
|
//#endregion
|
|
1076
|
-
export { isWorkspaceSourceRequestOnly as _, normalizeWorkspaceSources as a, markLiveWorkspaceSource as b, sourceMountIntersectsPath as c, withWorkspaceRuntimeOptions as d, prepareWorkspaceSource as f, getWorkspaceSourceRequestExecutor as g, getWorkspaceSourceRequestDescriptor as h, normalizeWorkspaceSourceMetadata as i, workspaceSourceGrantPaths as l,
|
|
1076
|
+
export { isWorkspaceSourceRequestOnly as _, normalizeWorkspaceSources as a, markLiveWorkspaceSource as b, sourceMountIntersectsPath as c, withWorkspaceRuntimeOptions as d, prepareWorkspaceSource as f, getWorkspaceSourceRequestExecutor as g, getWorkspaceSourceRequestDescriptor as h, normalizeWorkspaceSourceMetadata as i, workspaceSourceGrantPaths as l, url as m, createSourceContext as n, normalizeWorkspaceSourcesMetadata as o, resolveGitHubIgnore as p, normalizeWorkspaceSource as r, sourceMountContainsPath as s, copyWorkspaceSourceMetadata as t, ownSourceOption as u, workspaceSourceRequestDescriptorPath as v, requestJsonEqual as y };
|
package/dist/durability.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as WorkspaceDefinitionInput, v as ResolvedWorkspaceModuleOptions } from "./types-
|
|
1
|
+
import { L as WorkspaceDefinitionInput, v as ResolvedWorkspaceModuleOptions } from "./types-1Z-tKK3g.js";
|
|
2
2
|
import { Durability, DurabilityContext } from "@vite-hub/runtime/durability";
|
|
3
3
|
//#region src/durability.d.ts
|
|
4
4
|
/** What the build passes to `workspaceDurability()`. */
|
package/dist/durability.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as resolveWorkspaceDefinitionStore, n as isWorkspaceStore } from "./provider-
|
|
2
|
-
import { s as workspaceRegistryLoadError, t as normalizeWorkspaceDefinition } from "./registry-
|
|
1
|
+
import { c as resolveWorkspaceDefinitionStore, n as isWorkspaceStore } from "./provider-sm9uzkLg.js";
|
|
2
|
+
import { s as workspaceRegistryLoadError, t as normalizeWorkspaceDefinition } from "./registry-DmVfUe4K.js";
|
|
3
3
|
//#region src/durability.ts
|
|
4
4
|
const sharedDrivers = {
|
|
5
5
|
"cloudflare": "Cloudflare Artifacts.",
|
|
@@ -92,6 +92,10 @@ const workspaceErrorDiagnostics = /*#__PURE__*/ defineDiagnostics({
|
|
|
92
92
|
why: ({ provider }) => `The Workspace \`store\` sets \`provider: ${provider}\`. ViteHub renamed this key to \`driver\`, and it does not read \`provider\`, so the Store would not be the one you chose.`,
|
|
93
93
|
fix: ({ driver }) => `Set \`store: { driver: ${driver} }\`, or run \`npx @vite-hub/codemods driver-key\` to rename it in every config file.`
|
|
94
94
|
},
|
|
95
|
+
WORKSPACE_RENAMED_STORE_REPOSITORY_KEY: {
|
|
96
|
+
why: () => "The GitHub Workspace `store` sets `repository`. ViteHub renamed this key to `repo`, and it does not read `repository`, so the Store would use `VITEHUB_WORKSPACE_GITHUB_REPOSITORY` or no repository.",
|
|
97
|
+
fix: () => "Rename `repository` to `repo` in `store: { driver: \"github\" }`, or run `vitehub migrate` to rename it in every file."
|
|
98
|
+
},
|
|
95
99
|
WORKSPACE_UNKNOWN_STORE_DRIVER: {
|
|
96
100
|
why: ({ driver, renamed }) => renamed ? `The Workspace \`store.driver\` is ${driver}. ViteHub renamed this driver to "${renamed}", and it does not read ${driver}.` : `The Workspace \`store.driver\` ${driver} is not a Workspace Store driver.`,
|
|
97
101
|
fix: ({ renamed }) => renamed ? `Set \`store: { driver: "${renamed}" }\`, or run \`npx @vite-hub/codemods driver-key\` to rename it in every config file.` : "Set `store.driver` to \"local\", \"memory\", \"github\", \"cloudflare\", or \"vercel\", or pass a Store object."
|
|
@@ -107,7 +111,7 @@ const workspaceErrorDiagnostics = /*#__PURE__*/ defineDiagnostics({
|
|
|
107
111
|
WORKSPACE_R0069: withFix("Use a Store with retained history: `createBlobDatabaseWorkspaceStore()` or the `github` Store. Open the Workspace with a scope that grants the complete Workspace, not selected paths."),
|
|
108
112
|
WORKSPACE_R0070: withFix("Pass a `limit` from 1 to 100, and pass a `cursor` only with the `ref` of the `history.list()` call that returned it."),
|
|
109
113
|
WORKSPACE_R0071: withFix("Use a ref name with up to 128 letters, numbers, `_`, and `-`, joined by single `.` or `/`, for example `draft` or `team/review`. In a GitHub Store with `refs`, use `published` or `draft`, not the branch name."),
|
|
110
|
-
WORKSPACE_R0072: withFix("Set the `
|
|
114
|
+
WORKSPACE_R0072: withFix("Set the `repo` option of the GitHub Store or `VITEHUB_WORKSPACE_GITHUB_REPOSITORY`, for example `owner/repo`. Set the `token` option or `VITEHUB_GITHUB_TOKEN`."),
|
|
111
115
|
WORKSPACE_R0073: withFix("Make the commit message or metadata shorter, as the message says. Remove each `Vitehub-Metadata:` line from the message, and pass the values in the `metadata` option."),
|
|
112
116
|
WORKSPACE_R0001: withFix("Pass the path of a file or folder in the Workspace, for example `docs/guide.md`. The Workspace root itself cannot be written, moved, or deleted."),
|
|
113
117
|
WORKSPACE_R0002: withFix("Enable at least one operation in `createWorkspaceTools(workspace, { operations })`, for example `{ operations: { read: true } }`."),
|
|
@@ -135,7 +139,7 @@ const workspaceErrorDiagnostics = /*#__PURE__*/ defineDiagnostics({
|
|
|
135
139
|
WORKSPACE_R0022: withFix("Pass the Workspace name as a non-empty string, for example `registerWorkspace(\"docs\", definition)` or `registerWorkspacePlugin(\"docs\", plugin)`."),
|
|
136
140
|
WORKSPACE_R0023: withFix("Set `maxBytes` to a number of bytes or to a string such as `\"512kb\"` or `\"10mb\"`."),
|
|
137
141
|
WORKSPACE_R0024: withFix("Give each Workspace plugin a non-empty string `id`, for example `{ id: \"my-plugin\", rules }`."),
|
|
138
|
-
WORKSPACE_R0025: withFix("Declare the target as a `
|
|
142
|
+
WORKSPACE_R0025: withFix("Declare the target as a `url()` Source in the Workspace Definition, and make the Source visible in the Workspace scope."),
|
|
139
143
|
WORKSPACE_R0026: withFix("Use a Store that supports rebase: `github` or `cloudflare`. Or do not call `rebase()` on this Workspace."),
|
|
140
144
|
WORKSPACE_R0027: withFix("Set another `binding` in the Workspace `store` options, or set `namespace` to the namespace that Wrangler config already has for that binding."),
|
|
141
145
|
WORKSPACE_R0028: withFix("The client closed the Workspace Dev connection before the command finished. Run the command again and keep the connection open."),
|
|
@@ -155,11 +159,11 @@ const workspaceErrorDiagnostics = /*#__PURE__*/ defineDiagnostics({
|
|
|
155
159
|
WORKSPACE_R0045: withFix("Set `executionAuthority` on the Workspace Session host. Use `unknownExecutionAuthority` from `@vite-hub/runtime` when the host cannot describe it."),
|
|
156
160
|
WORKSPACE_C0003: withFix("Rename the Source key to one file name without `/` and without a `.json` ending, for example `issues`. ViteHub keeps the request descriptor at `.vitehub/sources/<key>.json`."),
|
|
157
161
|
WORKSPACE_C0004: withFix("Set `mount` on the Source to a folder, for example `mount: \"docs\"`, or set `probeKeys`. A Workspace Scope grant needs paths, and a Source at the root has none."),
|
|
158
|
-
WORKSPACE_C0005: withFix("Use a Source helper so that the Source kind is explicit, for example `github({ repo: \"owner/name\" })`, `
|
|
162
|
+
WORKSPACE_C0005: withFix("Use a Source helper so that the Source kind is explicit, for example `github({ repo: \"owner/name\" })`, `url({ url, workspacePath: \"issues.json\" })`, or `file({ path: \"README.md\" })`. A `{ source: { ... } }` wrapper does not help, because ViteHub reads the options in it the same way."),
|
|
159
163
|
WORKSPACE_C0006: withFix("Pass `path` or `workspacePath` to `file()`, for example `file({ path: \"README.md\" })`."),
|
|
160
|
-
WORKSPACE_C0007: withFix("When the URL has a query, set `path` on the Source config, for example `{ url, path: \"issues.json\" }`. Or use the `
|
|
161
|
-
WORKSPACE_R0046: withFix("Set `workspacePath` on the `
|
|
162
|
-
WORKSPACE_R0047: withFix("Read the `
|
|
164
|
+
WORKSPACE_C0007: withFix("When the URL has a query, set `path` on the Source config, for example `{ url, path: \"issues.json\" }`. Or use the `url()` helper with `workspacePath: \"issues.json\"`."),
|
|
165
|
+
WORKSPACE_R0046: withFix("Set `workspacePath` on the `url()` Source to read the response as a file. A request-only Source answers only `curl` Source requests."),
|
|
166
|
+
WORKSPACE_R0047: withFix("Read the `url()` Source at its `workspacePath`. The Source has no other file."),
|
|
163
167
|
WORKSPACE_R0048: withFix("Read this Source in an Agent Invocation. The Agent runs the resolver with the Invocation context before it reads the Source. Outside an Invocation, the Source has no files."),
|
|
164
168
|
WORKSPACE_R0049: withFix("Set `responseType` to `\"json\"` or `\"text\"`."),
|
|
165
169
|
WORKSPACE_R0050: withFix("Set `method` to `\"GET\"`, `\"HEAD\"`, or `\"POST\"`."),
|
|
@@ -170,7 +170,7 @@ const internalErrorDiagnostics = /*#__PURE__*/ defineDiagnostics({
|
|
|
170
170
|
},
|
|
171
171
|
INTERNAL_R0004: {
|
|
172
172
|
...dynamicError,
|
|
173
|
-
fix: "Set a larger `maxResponseBytes` on the HTTP request, such as the `
|
|
173
|
+
fix: "Set a larger `maxResponseBytes` on the HTTP request, such as the `url()` Source options, or ask the server for a smaller response."
|
|
174
174
|
},
|
|
175
175
|
INTERNAL_R0005: {
|
|
176
176
|
...dynamicError,
|
|
@@ -216,6 +216,10 @@ const internalErrorDiagnostics = /*#__PURE__*/ defineDiagnostics({
|
|
|
216
216
|
why: ({ variable }) => `[vitehub] ${variable} must be the 43-character private key that \`vitehub secret console-key\` prints, and its name 1 to 64 of A-Z, 0-9, and _.`,
|
|
217
217
|
fix: "Set the variable that the message names to the private key that `vitehub secret console-key` prints, and name it `VITEHUB_CONSOLE_PRIVATE_KEY_<NAME>` with A-Z, 0-9, and _ in `<NAME>`."
|
|
218
218
|
},
|
|
219
|
+
INTERNAL_DEV_SERVER_NOT_FOUND: {
|
|
220
|
+
why: ({ command }) => `[vitehub] No dev server of this project is running, and --url is not set, so \`vitehub ${command}\` has no app to call.`,
|
|
221
|
+
fix: "Start the dev server of this project, such as with `pnpm dev`, or pass --url with the app URL, such as --url http://localhost:3000."
|
|
222
|
+
},
|
|
219
223
|
INTERNAL_FORGE_NOT_INSTALLED: {
|
|
220
224
|
why: ({ feature }) => `${feature} needs @vite-hub/forge, and the app did not install it.`,
|
|
221
225
|
fix: "Install Forge in your app with `pnpm add @vite-hub/forge`, then build again."
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-rQ84J-ij.js";
|
|
2
|
-
import { d as withWorkspaceRuntimeOptions, u as ownSourceOption } from "./config-
|
|
2
|
+
import { d as withWorkspaceRuntimeOptions, u as ownSourceOption } from "./config-D1QENneP.js";
|
|
3
3
|
import { file } from "@vite-hub/source";
|
|
4
4
|
//#region src/sources/file.ts
|
|
5
5
|
var file_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as normalizeWorkspacePath, o as isWorkspaceBytes, s as matchesAny } from "./path--wrT_Azm.js";
|
|
2
|
-
import { f as prepareWorkspaceSource, n as createSourceContext } from "./config-
|
|
2
|
+
import { f as prepareWorkspaceSource, n as createSourceContext } from "./config-D1QENneP.js";
|
|
3
3
|
//#region src/loaders/files.ts
|
|
4
4
|
function shouldLoad(path, options) {
|
|
5
5
|
if (options.include && !matchesAny(path, options.include)) return false;
|
package/dist/files.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as WorkspaceHistoryFileInput, $t as
|
|
2
|
-
import { C as resolveWorkspaceStoreTarget, S as WorkspaceStoreTarget, _ as WritableWorkspaceFiles, a as ReadonlyWorkspaceFiles, o as ReadonlyWorkspaceFs, s as UseWorkspaceOptions, u as WorkspaceHistory, v as WritableWorkspaceFs, x as useWorkspaceFiles } from "./use-
|
|
3
|
-
import { n as isWorkspaceConflict } from "./path-
|
|
1
|
+
import { $ as WorkspaceHistoryFileInput, $t as WorkspaceSourceMaterializationPathResult, A as WorkspaceAutoCommitPlan, An as WorkspaceValidateMode, At as WorkspaceRebaseOptions, B as WorkspaceEntry, Bt as WorkspaceSession, C as SourceContextWorkspaceFiles, Cn as WorkspaceStoreHistory, Ct as WorkspaceName, D as WorkspaceAssets, Dn as WorkspaceSyncOptions, Dt as WorkspacePlugin, E as WorkspaceAssetPath, En as WorkspaceStreamFile, Et as WorkspaceOptions, F as WorkspaceCustomSourceInput, Fn as WorkspaceWriteMode, Ft as WorkspaceRules, G as WorkspaceGitHubSourceInput, Gt as WorkspaceSessionWriteFileOptions, H as WorkspaceFetchSourceRequestOptions, Ht as WorkspaceSessionHostFileEntry, I as WorkspaceDefinition, In as WorkspaceWriteOperation, It as WorkspaceScopeName, J as WorkspaceHistoryChangesCommitOptions, Jt as WorkspaceSourceBindingInput, K as WorkspaceGlobSourceInput, Kt as WorkspaceSnapshot, L as WorkspaceDefinitionInput, Ln as WorkspaceWriteValidator, Lt as WorkspaceSearchHit, M as WorkspaceCapabilities, Mn as WorkspaceWriteErrorHook, Mt as WorkspaceRevision, N as WorkspaceContent, Nn as WorkspaceWriteHook, Nt as WorkspaceRevisionView, O as WorkspaceAssetsRegistry, On as WorkspaceSyncResultDetails, Ot as WorkspacePrepareSessionProgressEvent, P as WorkspaceContentStream, Pn as WorkspaceWriteInput, Pt as WorkspaceRule, Q as WorkspaceHistoryFile, Qt as WorkspaceSourceMaterializationCounts, R as WorkspaceDiff, Rn as WorkspaceWriteValidatorResult, Rt as WorkspaceSearchQuery, S as SourceContext, Sn as WorkspaceStore, St as WorkspaceMergeResolution, T as Workspace, Tn as WorkspaceStoreOptions, Tt as WorkspaceOpenPullRequestOptions, U as WorkspaceFile, Ut as WorkspaceSessionHostFiles, V as WorkspaceFetchSourceInput, Vt as WorkspaceSessionHost, W as WorkspaceFileSourceInput, Wt as WorkspaceSessionOptions, X as WorkspaceHistoryCommitOptions, Xt as WorkspaceSourceInput, Y as WorkspaceHistoryCommitBase, Yt as WorkspaceSourceDefinition, Z as WorkspaceHistoryExtensions, Zt as WorkspaceSourceItem, _ as ReadFileResult, _n as WorkspaceSourceSyncPathResult, _t as WorkspaceMcpResourcesSourceInput, a as GitHubWorkspaceOption, an as WorkspaceSourceRequestExecutionResult, at as WorkspaceHistoryRefOptions, b as RmOptions, bn as WorkspaceSourceSyncStatus, bt as WorkspaceMergeConflictContext, c as GlobOptions, cn as WorkspaceSourceResolutionContext, ct as WorkspaceInstructionBinding, d as LocalWorkspaceStoreOptions, dn as WorkspaceSourceResolutionInvocation, dt as WorkspaceLoader, en as WorkspaceSourceMaterializationStatus, et as WorkspaceHistoryFilesCommitOptions, f as Logger, fn as WorkspaceSourceResolutionResult, ft as WorkspaceLoaderSource, g as ReadFileOptions, gn as WorkspaceSourceSyncCounts, gt as WorkspaceMaterializeSourcesResult, h as MkdirOptions, hn as WorkspaceSourceSyncConfig, ht as WorkspaceMaterializeSourcesProgressEvent, i as ExecResult, in as WorkspaceSourceRequestExecutionInput, it as WorkspaceHistoryRef, j as WorkspaceCacheOptions, jn as WorkspaceWriteCommit, jt as WorkspaceRetainedHistory, k as WorkspaceAuthor, kn as WorkspaceSyncSnapshotOptions, kt as WorkspacePullRequest, l as ListOptions, ln as WorkspaceSourceResolutionContextMap, lt as WorkspaceInstructionBindingValue, m as MemoryWorkspaceStoreOptions, mn as WorkspaceSourceSelection, mt as WorkspaceMaterializeSourcesOptions, n as DiffOptions, nn as WorkspaceSourceMountOptions, nt as WorkspaceHistoryListResult, o as GitHubWorkspaceRefs, on as WorkspaceSourceRequestExecutor, ot as WorkspaceHookContext, p as MaybePromise, pn as WorkspaceSourceResolver, pt as WorkspaceMaterializeMode, q as WorkspaceHistoryChanges, qt as WorkspaceSource, r as ExecOptions, rn as WorkspaceSourceRequestDescriptor, rt as WorkspaceHistoryReader, s as GitHubWorkspaceStoreOptions, sn as WorkspaceSourceRequestMethod, st as WorkspaceHooks, t as CloudflareArtifactsWorkspaceStoreOptions, tn as WorkspaceSourceMount, tt as WorkspaceHistoryListOptions, u as LoaderContext, un as WorkspaceSourceResolutionContextValueReader, ut as WorkspaceLastChange, v as ResolvedWorkspaceModuleOptions, vn as WorkspaceSourceSyncPolicy, vt as WorkspaceMergeCommit, w as VercelBlobWorkspaceStoreOptions, wn as WorkspaceStoreHistoryCommitOptions, wt as WorkspaceNameMap, x as SnapshotOptions, xn as WorkspaceStat, xt as WorkspaceMergeOptions, y as ResolvedWorkspaceRule, yn as WorkspaceSourceSyncResult, yt as WorkspaceMergeConflict, z as WorkspaceDiffEntry, zn as WriteFileOptions, zt as WorkspaceSelectedScope } from "./types-1Z-tKK3g.js";
|
|
2
|
+
import { C as resolveWorkspaceStoreTarget, S as WorkspaceStoreTarget, _ as WritableWorkspaceFiles, a as ReadonlyWorkspaceFiles, o as ReadonlyWorkspaceFs, s as UseWorkspaceOptions, u as WorkspaceHistory, v as WritableWorkspaceFs, x as useWorkspaceFiles } from "./use-CjbF8EO9.js";
|
|
3
|
+
import { n as isWorkspaceConflict } from "./path-uxLkzrZm.js";
|
|
4
4
|
import { n as normalizeSafeWorkspacePath } from "./path-zHxQUbqa.js";
|
|
5
|
-
import { t as registerWorkspacePlugin } from "./plugins-
|
|
5
|
+
import { t as registerWorkspacePlugin } from "./plugins-CsrXCA1Q.js";
|
|
6
6
|
//#region src/providers/github/cache.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* The GitHub answers that the GitHub Store keeps. An answer for a URL that names a commit or tree sha never
|
|
@@ -35,4 +35,4 @@ export declare function registerWorkspaceKV(store: WorkspaceKV | undefined): voi
|
|
|
35
35
|
/** The reads of the GitHub Store in this server instance, for tests and inspection. */
|
|
36
36
|
export declare function readGitHubReadStats(): GitHubReadStats;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { type CloudflareArtifactsWorkspaceStoreOptions, type DiffOptions, type ExecOptions, type ExecResult, type GitHubReadStats, type GitHubWorkspaceOption, type GitHubWorkspaceRefs, type GitHubWorkspaceStoreOptions, type GlobOptions, type ListOptions, type LoaderContext, type LocalWorkspaceStoreOptions, type Logger, type MaybePromise, type MemoryWorkspaceStoreOptions, type MkdirOptions, type ReadFileOptions, type ReadFileResult, type ReadonlyWorkspaceFiles, type ReadonlyWorkspaceFs, type ResolvedWorkspaceModuleOptions, type ResolvedWorkspaceRule, type RmOptions, type SnapshotOptions, type SourceContext, type SourceContextWorkspaceFiles, type UseWorkspaceOptions, 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 WorkspaceFetchSourceInput, type WorkspaceFetchSourceRequestOptions, type WorkspaceFile, type WorkspaceFileSourceInput, type WorkspaceGitHubSourceInput, type WorkspaceGlobSourceInput, type WorkspaceHistory, type WorkspaceHistoryChanges, type WorkspaceHistoryChangesCommitOptions, type WorkspaceHistoryCommitBase, type WorkspaceHistoryCommitOptions, 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 WorkspaceKV, type WorkspaceLoader, type WorkspaceLoaderSource, type WorkspaceMaterializeMode, type WorkspaceMaterializeSourcesOptions, type WorkspaceMaterializeSourcesProgressEvent, type WorkspaceMaterializeSourcesResult, type WorkspaceMcpResourcesSourceInput, type WorkspaceMergeCommit, type WorkspaceMergeConflict, type WorkspaceMergeConflictContext, type WorkspaceMergeOptions, type WorkspaceMergeResolution, type WorkspaceName, type WorkspaceNameMap, type WorkspaceOpenPullRequestOptions, type WorkspaceOptions, type WorkspacePlugin, type WorkspacePrepareSessionProgressEvent, type WorkspacePullRequest, 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 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 WorkspaceStoreTarget, type WorkspaceStreamFile, type WorkspaceSyncOptions, type WorkspaceSyncResultDetails, type WorkspaceSyncSnapshotOptions, type WorkspaceValidateMode, type WorkspaceWriteCommit, type WorkspaceWriteErrorHook, type WorkspaceWriteHook, type WorkspaceWriteInput, type WorkspaceWriteMode, type WorkspaceWriteOperation, type WorkspaceWriteValidator, type WorkspaceWriteValidatorResult, type WritableWorkspaceFiles, type WritableWorkspaceFs, type WriteFileOptions, isWorkspaceConflict, normalizeSafeWorkspacePath, registerWorkspacePlugin, resolveWorkspaceStoreTarget, useWorkspaceFiles };
|
|
38
|
+
export { type CloudflareArtifactsWorkspaceStoreOptions, type DiffOptions, type ExecOptions, type ExecResult, type GitHubReadStats, type GitHubWorkspaceOption, type GitHubWorkspaceRefs, type GitHubWorkspaceStoreOptions, type GlobOptions, type ListOptions, type LoaderContext, type LocalWorkspaceStoreOptions, type Logger, type MaybePromise, type MemoryWorkspaceStoreOptions, type MkdirOptions, type ReadFileOptions, type ReadFileResult, type ReadonlyWorkspaceFiles, type ReadonlyWorkspaceFs, type ResolvedWorkspaceModuleOptions, type ResolvedWorkspaceRule, type RmOptions, type SnapshotOptions, type SourceContext, type SourceContextWorkspaceFiles, type UseWorkspaceOptions, 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 WorkspaceFetchSourceInput, type WorkspaceFetchSourceRequestOptions, type WorkspaceFile, type WorkspaceFileSourceInput, type WorkspaceGitHubSourceInput, type WorkspaceGlobSourceInput, type WorkspaceHistory, type WorkspaceHistoryChanges, type WorkspaceHistoryChangesCommitOptions, type WorkspaceHistoryCommitBase, type WorkspaceHistoryCommitOptions, 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 WorkspaceKV, type WorkspaceLastChange, type WorkspaceLoader, type WorkspaceLoaderSource, type WorkspaceMaterializeMode, type WorkspaceMaterializeSourcesOptions, type WorkspaceMaterializeSourcesProgressEvent, type WorkspaceMaterializeSourcesResult, type WorkspaceMcpResourcesSourceInput, type WorkspaceMergeCommit, type WorkspaceMergeConflict, type WorkspaceMergeConflictContext, type WorkspaceMergeOptions, type WorkspaceMergeResolution, type WorkspaceName, type WorkspaceNameMap, type WorkspaceOpenPullRequestOptions, type WorkspaceOptions, type WorkspacePlugin, type WorkspacePrepareSessionProgressEvent, type WorkspacePullRequest, 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 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 WorkspaceStoreTarget, type WorkspaceStreamFile, type WorkspaceSyncOptions, type WorkspaceSyncResultDetails, type WorkspaceSyncSnapshotOptions, type WorkspaceValidateMode, type WorkspaceWriteCommit, type WorkspaceWriteErrorHook, type WorkspaceWriteHook, type WorkspaceWriteInput, type WorkspaceWriteMode, type WorkspaceWriteOperation, type WorkspaceWriteValidator, type WorkspaceWriteValidatorResult, type WritableWorkspaceFiles, type WritableWorkspaceFs, type WriteFileOptions, isWorkspaceConflict, normalizeSafeWorkspacePath, registerWorkspacePlugin, resolveWorkspaceStoreTarget, useWorkspaceFiles };
|
package/dist/files.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as isWorkspaceConflict, t as normalizeSafeWorkspacePath } from "./path-DrSIenjj.js";
|
|
2
|
-
import { n as resolveWorkspaceStoreTarget } from "./target-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as useWorkspaceFiles } from "./use-
|
|
2
|
+
import { n as resolveWorkspaceStoreTarget } from "./target-Dm9dHAVJ.js";
|
|
3
|
+
import { _ as registerWorkspacePlugin } from "./utils-Dw-WULEZ.js";
|
|
4
|
+
import { E as registerWorkspaceKV, w as readGitHubReadStats } from "./shared-ovXVSV3-.js";
|
|
5
|
+
import { r as useWorkspaceFiles } from "./use-B0o5HoBl.js";
|
|
6
6
|
export { isWorkspaceConflict, normalizeSafeWorkspacePath, readGitHubReadStats, registerWorkspaceKV, registerWorkspacePlugin, resolveWorkspaceStoreTarget, useWorkspaceFiles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-rQ84J-ij.js";
|
|
2
2
|
import { s as matchesAny } from "./path--wrT_Azm.js";
|
|
3
|
-
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-
|
|
4
|
-
import {
|
|
5
|
-
import { d as withWorkspaceRuntimeOptions, f as prepareWorkspaceSource, p as resolveGitHubIgnore } from "./config-
|
|
3
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B5s9kNEA.js";
|
|
4
|
+
import { M as readForgeEnv, h as readGitHubEnvToken, j as forgeEnv } from "./shared-ovXVSV3-.js";
|
|
5
|
+
import { d as withWorkspaceRuntimeOptions, f as prepareWorkspaceSource, p as resolveGitHubIgnore } from "./config-D1QENneP.js";
|
|
6
6
|
import { github } from "@vite-hub/source";
|
|
7
7
|
//#region src/env.ts
|
|
8
8
|
let viteLoadEnv;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-rQ84J-ij.js";
|
|
2
|
-
import { d as withWorkspaceRuntimeOptions, u as ownSourceOption } from "./config-
|
|
2
|
+
import { d as withWorkspaceRuntimeOptions, u as ownSourceOption } from "./config-D1QENneP.js";
|
|
3
3
|
import { glob } from "@vite-hub/source";
|
|
4
4
|
//#region src/sources/glob.ts
|
|
5
5
|
var glob_exports = /* @__PURE__ */ __exportAll({ glob: () => glob$1 });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-rQ84J-ij.js";
|
|
2
2
|
import { a as workspaceConflict, s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-DrSIenjj.js";
|
|
3
3
|
import { a as isExcludedWorkspacePath, f as sha256, i as decodeFile, l as normalizeWorkspacePath, r as contentToBytes } from "./path--wrT_Azm.js";
|
|
4
|
-
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-
|
|
5
|
-
import { n as createSnapshotFromEntries, r as diffSnapshots } from "./utils-
|
|
6
|
-
import { r as resolveWorkspaceRevisionMaterializer } from "./store-
|
|
7
|
-
import { C as isMissingWorkspacePathError, S as filterSessionEntries, b as assertPathInSessionScope, w as scopedSearchQuery, x as filterSessionDiff, y as assertDiffInsideSessionPaths } from "./workspace-
|
|
4
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B5s9kNEA.js";
|
|
5
|
+
import { n as createSnapshotFromEntries, r as diffSnapshots } from "./utils-Dw-WULEZ.js";
|
|
6
|
+
import { r as resolveWorkspaceRevisionMaterializer } from "./store-NZoRto-Y.js";
|
|
7
|
+
import { C as isMissingWorkspacePathError, S as filterSessionEntries, b as assertPathInSessionScope, w as scopedSearchQuery, x as filterSessionDiff, y as assertDiffInsideSessionPaths } from "./workspace-DvKu5PRa.js";
|
|
8
8
|
import { normalizeExecutionAuthority } from "@vite-hub/runtime";
|
|
9
9
|
import { posix } from "node:path";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as workspaceConflict, s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-DrSIenjj.js";
|
|
2
2
|
import { a as isExcludedWorkspacePath, c as normalizeSafeWorkspacePattern, f as sha256, l as normalizeWorkspacePath, r as contentToBytes } from "./path--wrT_Azm.js";
|
|
3
|
-
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-
|
|
4
|
-
import { r as diffSnapshots, t as createCurrentSnapshotFromStore } from "./utils-
|
|
3
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B5s9kNEA.js";
|
|
4
|
+
import { r as diffSnapshots, t as createCurrentSnapshotFromStore } from "./utils-Dw-WULEZ.js";
|
|
5
5
|
import { t as createWorkspaceGlobMatcher } from "./glob-Cjxms1t7.js";
|
|
6
6
|
import { t as isRecord } from "./object-Da1zyPCR.js";
|
|
7
|
-
import { d as setWorkspaceHostedStoreLoader, l as ownedBlobPrefix, o as resolveRuntimeVercelBlobWorkspaceStore, s as resolveVercelBlobWorkspaceStore, u as getWorkspaceHostedStoreLoader } from "./provider-
|
|
7
|
+
import { d as setWorkspaceHostedStoreLoader, l as ownedBlobPrefix, o as resolveRuntimeVercelBlobWorkspaceStore, s as resolveVercelBlobWorkspaceStore, u as getWorkspaceHostedStoreLoader } from "./provider-sm9uzkLg.js";
|
|
8
8
|
import { n as setWorkspaceRuntimeConfig } from "./config-B-863EgC.js";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
//#region src/providers/vercel/blob-store.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as ResolvedWorkspaceModuleOptions, w as VercelBlobWorkspaceStoreOptions } from "./types-
|
|
1
|
+
import { v as ResolvedWorkspaceModuleOptions, w as VercelBlobWorkspaceStoreOptions } from "./types-1Z-tKK3g.js";
|
|
2
2
|
//#region src/hosted-vercel-blob.d.ts
|
|
3
3
|
export interface HostedVercelBlobWorkspaceRuntimeOptions {
|
|
4
4
|
assets?: boolean | string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as installHostedVercelBlobWorkspaceRuntime, t as configureHostedVercelBlobWorkspaceRuntime } from "./hosted-vercel-blob-
|
|
1
|
+
import { n as installHostedVercelBlobWorkspaceRuntime, t as configureHostedVercelBlobWorkspaceRuntime } from "./hosted-vercel-blob-AbXG8fvR.js";
|
|
2
2
|
export { configureHostedVercelBlobWorkspaceRuntime, installHostedVercelBlobWorkspaceRuntime };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as workspaceConflict, n as assertWorkspaceDigest, s as workspaceError, t as normalizeSafeWorkspacePath } from "./path-DrSIenjj.js";
|
|
2
|
-
import { o as copyJsonFileMetadata } from "./target-
|
|
2
|
+
import { o as copyJsonFileMetadata } from "./target-Dm9dHAVJ.js";
|
|
3
3
|
import { a as isExcludedWorkspacePath, c as normalizeSafeWorkspacePattern, f as sha256, l as normalizeWorkspacePath, r as contentToBytes } from "./path--wrT_Azm.js";
|
|
4
|
-
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-
|
|
5
|
-
import { n as createSnapshotFromEntries, r as diffSnapshots } from "./utils-
|
|
4
|
+
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-B5s9kNEA.js";
|
|
5
|
+
import { n as createSnapshotFromEntries, r as diffSnapshots } from "./utils-Dw-WULEZ.js";
|
|
6
6
|
import { t as createWorkspaceGlobMatcher } from "./glob-Cjxms1t7.js";
|
|
7
7
|
import { t as isRecord } from "./object-Da1zyPCR.js";
|
|
8
|
-
import {
|
|
9
|
-
import { a as resolveGitHubWorkspaceStore, d as setWorkspaceHostedStoreLoader, i as resolveCloudflareArtifactsStore, u as getWorkspaceHostedStoreLoader } from "./provider-
|
|
8
|
+
import { k as getActiveCloudflareBinding } from "./shared-ovXVSV3-.js";
|
|
9
|
+
import { a as resolveGitHubWorkspaceStore, d as setWorkspaceHostedStoreLoader, i as resolveCloudflareArtifactsStore, u as getWorkspaceHostedStoreLoader } from "./provider-sm9uzkLg.js";
|
|
10
10
|
import { t as workspaceStoreDiscard } from "./discard-CNNtCozM.js";
|
|
11
|
-
import { t as createGitHubWorkspaceStore } from "./store-
|
|
11
|
+
import { t as createGitHubWorkspaceStore } from "./store-NZoRto-Y.js";
|
|
12
12
|
import { n as setWorkspaceRuntimeConfig } from "./config-B-863EgC.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";
|
package/dist/hosted.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as GitHubWorkspaceStoreOptions, t as CloudflareArtifactsWorkspaceStoreOptions, v as ResolvedWorkspaceModuleOptions, w as VercelBlobWorkspaceStoreOptions } from "./types-
|
|
1
|
+
import { s as GitHubWorkspaceStoreOptions, t as CloudflareArtifactsWorkspaceStoreOptions, v as ResolvedWorkspaceModuleOptions, w as VercelBlobWorkspaceStoreOptions } from "./types-1Z-tKK3g.js";
|
|
2
2
|
//#region src/hosted.d.ts
|
|
3
3
|
export type HostedWorkspaceRuntimeStoreOptions = Partial<CloudflareArtifactsWorkspaceStoreOptions> | (Partial<GitHubWorkspaceStoreOptions> & {
|
|
4
4
|
driver: "github";
|