vite-hub 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/dist/index.d.ts +9 -1
- package/dist/index.js +1 -1121
- package/dist/nuxt.d.ts +18 -0
- package/dist/nuxt.js +83 -0
- package/dist/src-o6zB-soj.js +1135 -0
- package/package.json +24 -28
- package/dist/agent/harness/claude-code.d.ts +0 -1
- package/dist/agent/harness/claude-code.js +0 -2
- package/dist/agent/harness/codex.d.ts +0 -1
- package/dist/agent/harness/codex.js +0 -2
- package/dist/box/cloudflare.d.ts +0 -1
- package/dist/box/cloudflare.js +0 -2
- package/dist/box/crabbox.d.ts +0 -1
- package/dist/box/crabbox.js +0 -2
- package/dist/box/vercel.d.ts +0 -1
- package/dist/box/vercel.js +0 -2
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ export default defineConfig({
|
|
|
24
24
|
|
|
25
25
|
The public presets are `cloudflare`, `netlify`, `vercel`, `deno`, and `node`. Each resolves once to a host, runtime, Nitro output, packaging policy, and service adapters; do not also set `nitro.preset`, `NITRO_PRESET`, `SERVER_PRESET`, or `VITEHUB_HOSTING`.
|
|
26
26
|
|
|
27
|
-
ViteHub derives one deployment identity from the nearest `package.json` name, falling back to the Vite root directory name. Set `name` to pin the identity explicitly. `VITEHUB_DEPLOYMENT_NAME` remains a compatibility input, and conflicts with an explicit `name` fail configuration. Cloudflare uses
|
|
27
|
+
ViteHub derives one deployment identity from the nearest `package.json` name, falling back to the Vite root directory name. Set `name` to pin the identity explicitly. `VITEHUB_DEPLOYMENT_NAME` remains a compatibility input, and conflicts with an explicit `name` fail configuration. Cloudflare Workers Builds supplies its connected Worker through `WRANGLER_CI_OVERRIDE_NAME`; the Cloudflare preset uses it after explicit ViteHub identity inputs and fails when those inputs resolve to another name because the connected Worker remains the deployment target. Cloudflare uses the resolved identity for the default Worker, Blob bucket, Queue prefix, Rate Limit namespace, Sandbox, and Container names. Explicit Wrangler Worker names remain authoritative outside Workers Builds, while explicit Blob bucket, driver, and store options still win. The Workers Builds fallback derives deterministic names but does not provision the corresponding R2 bucket or Queue.
|
|
28
28
|
|
|
29
29
|
Blob, Agent, Auth, Database, Email, KV, Queue, Rate Limit, Sandbox, Schedule, Workflow, and Workspace are opt-in:
|
|
30
30
|
|
|
@@ -88,7 +88,6 @@ Vite config resolution and builds also refresh the entry. Defining `files` in th
|
|
|
88
88
|
```ts
|
|
89
89
|
import { defineAgent } from "vite-hub/agent"
|
|
90
90
|
import { workspaceShell } from "vite-hub/agent/capabilities"
|
|
91
|
-
import { codexDriver } from "vite-hub/agent/harness/codex"
|
|
92
91
|
import { env } from "vite-hub/env"
|
|
93
92
|
import { renderMarkdownTemplate } from "vite-hub/markdown-template"
|
|
94
93
|
import { defineWorkspace } from "vite-hub/workspace"
|
|
@@ -97,6 +96,6 @@ import { defineWorkflow } from "vite-hub/workflow"
|
|
|
97
96
|
|
|
98
97
|
The root export intentionally contains only the framework configuration API. Feature code belongs on a feature subpath, which forwards to the package that owns it.
|
|
99
98
|
|
|
100
|
-
|
|
99
|
+
Built-in Agent Drivers and Box runtimes are selected by literal or tagged values, so they do not need provider-specific ViteHub imports. Install an optional external provider or SDK explicitly when its runtime requires one.
|
|
101
100
|
|
|
102
101
|
Install an `@vite-hub/*` owner package directly when building a custom composition, another framework integration, or package-level tooling.
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,14 @@ interface ViteHubOptions {
|
|
|
32
32
|
workspace?: boolean | WorkspaceModuleOptions;
|
|
33
33
|
}
|
|
34
34
|
type DeploymentPreset = "cloudflare" | "deno" | "netlify" | "node" | "vercel";
|
|
35
|
+
interface ViteHubConfig {
|
|
36
|
+
preset?: DeploymentPreset;
|
|
37
|
+
}
|
|
35
38
|
declare function vitehub(options: ViteHubOptions): PluginOption[];
|
|
39
|
+
declare module "vite" {
|
|
40
|
+
interface UserConfig {
|
|
41
|
+
vitehub?: ViteHubConfig;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
36
44
|
//#endregion
|
|
37
|
-
export { DeploymentPreset, ViteHubOptions, vitehub };
|
|
45
|
+
export { DeploymentPreset, ViteHubConfig, ViteHubOptions, vitehub };
|