@celsian/vura-cli 0.2.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/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @celsian/vura-cli
2
+
3
+ CLI for Vura — develop and build Vura applications.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @celsian/vura-cli
9
+ ```
10
+
11
+ Or use via npx:
12
+
13
+ ```bash
14
+ npx vura --help
15
+ ```
16
+
17
+ ## Commands
18
+
19
+ - `vura dev` — Start development server with hot reload
20
+ - `vura build` — Build for production
21
+
22
+ ## Quick Start
23
+
24
+ ```bash
25
+ npx create-vura my-app
26
+ cd my-app
27
+ npm install
28
+ npx vura dev
29
+ ```
30
+
31
+ ## License
32
+
33
+ MIT
package/bin.js ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { existsSync } from 'node:fs';
4
+ import { dirname, join } from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
6
+
7
+ const here = dirname(fileURLToPath(import.meta.url));
8
+ const builtEntry = join(here, 'dist', 'bin.js');
9
+
10
+ if (!existsSync(builtEntry)) {
11
+ console.error('\n ✘ Vura CLI has not been built yet. Run `pnpm build` from the repository root, then retry.\n');
12
+ process.exit(1);
13
+ }
14
+
15
+ await import(`file://${builtEntry}`);
package/dist/bin.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Vura CLI Entry Point
4
+ *
5
+ * Usage:
6
+ * vura build — Scan routes, generate manifests, bundle for deployment
7
+ * vura deploy — Explain managed deployment availability (not in OSS CLI yet)
8
+ * vura dev — Start local dev server with HMR
9
+ * vura manifest — Print the route manifest (debug)
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=bin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAEA;;;;;;;;GAQG"}
package/dist/bin.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Vura CLI Entry Point
4
+ *
5
+ * Usage:
6
+ * vura build — Scan routes, generate manifests, bundle for deployment
7
+ * vura deploy — Explain managed deployment availability (not in OSS CLI yet)
8
+ * vura dev — Start local dev server with HMR
9
+ * vura manifest — Print the route manifest (debug)
10
+ */
11
+ import { run } from './index.js';
12
+ run(process.argv.slice(2)).catch((err) => {
13
+ console.error(`\n ✘ ${err.message}\n`);
14
+ process.exit(1);
15
+ });
16
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAU,EAAE,EAAE;IAC9C,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * `vura admin` — Launch the Vura admin dashboard.
3
+ *
4
+ * A local web UI for managing deployments, routes, environment
5
+ * variables, and domain configuration. Inspired by Vercel's dashboard.
6
+ *
7
+ * Usage:
8
+ * vura admin — Start on 127.0.0.1:4000
9
+ * vura admin --port 9000 — Start on 127.0.0.1:9000
10
+ * vura admin --host 127.0.0.1 — Bind explicitly to loopback
11
+ */
12
+ export declare const ADMIN_ENV_MAX_BODY_BYTES: number;
13
+ interface AdminOptions {
14
+ port: number;
15
+ host: string;
16
+ projectRoot: string;
17
+ }
18
+ export declare function parseAdminOptions(args: string[], projectRoot?: string): AdminOptions;
19
+ export declare function isLocalAdminHost(host: string): boolean;
20
+ export declare function assertSafeAdminBindHost(host: string): void;
21
+ export declare function adminApiHeaders(contentType?: string): Record<string, string>;
22
+ export declare function isAllowedAdminRequest(headers: {
23
+ host?: string | string[];
24
+ origin?: string | string[];
25
+ }, bindHost: string, port: number): boolean;
26
+ export declare function adminCommand(args: string[]): Promise<void>;
27
+ export declare function renderDashboardHtml(adminToken: string): string;
28
+ export {};
29
+ //# sourceMappingURL=admin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/commands/admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,eAAO,MAAM,wBAAwB,QAAa,CAAC;AAEnD,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,WAAW,SAAgB,GAAG,YAAY,CAS3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAM1D;AAED,wBAAgB,eAAe,CAAC,WAAW,SAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAKxF;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,EACjE,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACX,OAAO,CAoBT;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAkShE;AAID,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAwhC9D"}