@voltx/cli 0.1.0 → 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/dist/chunk-H2SJO7GX.mjs +102 -0
- package/dist/chunk-H4YMCUJC.mjs +99 -0
- package/dist/chunk-YID3JCVU.mjs +131 -0
- package/dist/cli.js +295 -6
- package/dist/cli.mjs +22 -6
- package/dist/create.js +38 -5
- package/dist/create.mjs +1 -1
- package/dist/index.js +38 -5
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__require,
|
|
3
|
+
printWelcomeBanner
|
|
4
|
+
} from "./chunk-RH5Q7I3S.mjs";
|
|
5
|
+
|
|
6
|
+
// src/create.ts
|
|
7
|
+
import * as fs from "fs";
|
|
8
|
+
import * as path from "path";
|
|
9
|
+
async function createProject(options) {
|
|
10
|
+
const { name, template = "blank" } = options;
|
|
11
|
+
const targetDir = path.resolve(process.cwd(), name);
|
|
12
|
+
if (fs.existsSync(targetDir)) {
|
|
13
|
+
console.error(`[voltx] Directory "${name}" already exists.`);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
17
|
+
const templateDeps = {
|
|
18
|
+
blank: { "@voltx/core": "^0.1.0" },
|
|
19
|
+
chatbot: {
|
|
20
|
+
"@voltx/core": "^0.1.0",
|
|
21
|
+
"@voltx/agents": "^0.1.0",
|
|
22
|
+
"@voltx/memory": "^0.1.0",
|
|
23
|
+
"@voltx/auth": "^0.1.0",
|
|
24
|
+
"@voltx/ui": "^0.1.0"
|
|
25
|
+
},
|
|
26
|
+
"rag-app": {
|
|
27
|
+
"@voltx/core": "^0.1.0",
|
|
28
|
+
"@voltx/rag": "^0.1.0",
|
|
29
|
+
"@voltx/db": "^0.1.0",
|
|
30
|
+
"@voltx/auth": "^0.1.0",
|
|
31
|
+
"@voltx/ui": "^0.1.0"
|
|
32
|
+
},
|
|
33
|
+
"agent-app": {
|
|
34
|
+
"@voltx/core": "^0.1.0",
|
|
35
|
+
"@voltx/agents": "^0.1.0",
|
|
36
|
+
"@voltx/memory": "^0.1.0",
|
|
37
|
+
"@voltx/rag": "^0.1.0",
|
|
38
|
+
"@voltx/db": "^0.1.0",
|
|
39
|
+
"@voltx/auth": "^0.1.0",
|
|
40
|
+
"@voltx/ui": "^0.1.0"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const packageJson = {
|
|
44
|
+
name,
|
|
45
|
+
version: "0.1.0",
|
|
46
|
+
private: true,
|
|
47
|
+
scripts: {
|
|
48
|
+
dev: "voltx dev",
|
|
49
|
+
build: "voltx build",
|
|
50
|
+
start: "voltx start"
|
|
51
|
+
},
|
|
52
|
+
dependencies: templateDeps[template] ?? templateDeps["blank"]
|
|
53
|
+
};
|
|
54
|
+
fs.writeFileSync(
|
|
55
|
+
path.join(targetDir, "package.json"),
|
|
56
|
+
JSON.stringify(packageJson, null, 2)
|
|
57
|
+
);
|
|
58
|
+
const configContent = `import { defineConfig } from "@voltx/core";
|
|
59
|
+
|
|
60
|
+
export default defineConfig({
|
|
61
|
+
name: "${name}",
|
|
62
|
+
port: 3000,
|
|
63
|
+
ai: {
|
|
64
|
+
provider: "openai",
|
|
65
|
+
model: "gpt-4o",
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
`;
|
|
69
|
+
fs.writeFileSync(path.join(targetDir, "voltx.config.ts"), configContent);
|
|
70
|
+
fs.mkdirSync(path.join(targetDir, "src", "routes"), { recursive: true });
|
|
71
|
+
fs.mkdirSync(path.join(targetDir, "src", "agents"), { recursive: true });
|
|
72
|
+
const indexContent = `import { createApp } from "@voltx/core";
|
|
73
|
+
import config from "../voltx.config";
|
|
74
|
+
|
|
75
|
+
const app = createApp(config);
|
|
76
|
+
app.start();
|
|
77
|
+
`;
|
|
78
|
+
fs.writeFileSync(path.join(targetDir, "src", "index.ts"), indexContent);
|
|
79
|
+
fs.writeFileSync(
|
|
80
|
+
path.join(targetDir, ".env.example"),
|
|
81
|
+
"OPENAI_API_KEY=your-key-here\nDATABASE_URL=\n"
|
|
82
|
+
);
|
|
83
|
+
printWelcomeBanner(name);
|
|
84
|
+
}
|
|
85
|
+
var isDirectRun = typeof __require !== "undefined" && __require.main === module && process.argv[1]?.includes("create");
|
|
86
|
+
if (isDirectRun) {
|
|
87
|
+
const projectName = process.argv[2];
|
|
88
|
+
if (!projectName) {
|
|
89
|
+
console.log("Usage: create-voltx-app <project-name> [--template chatbot]");
|
|
90
|
+
process.exit(1);
|
|
91
|
+
}
|
|
92
|
+
const templateFlag = process.argv.indexOf("--template");
|
|
93
|
+
const template = templateFlag !== -1 ? process.argv[templateFlag + 1] : "blank";
|
|
94
|
+
createProject({ name: projectName, template }).catch((err) => {
|
|
95
|
+
console.error("[voltx] Error:", err);
|
|
96
|
+
process.exit(1);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
createProject
|
|
102
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__require,
|
|
3
|
+
printWelcomeBanner
|
|
4
|
+
} from "./chunk-RH5Q7I3S.mjs";
|
|
5
|
+
|
|
6
|
+
// src/create.ts
|
|
7
|
+
import * as fs from "fs";
|
|
8
|
+
import * as path from "path";
|
|
9
|
+
async function createProject(options) {
|
|
10
|
+
const { name, template = "blank" } = options;
|
|
11
|
+
const targetDir = path.resolve(process.cwd(), name);
|
|
12
|
+
if (fs.existsSync(targetDir)) {
|
|
13
|
+
console.error(`[voltx] Directory "${name}" already exists.`);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
17
|
+
const templateDeps = {
|
|
18
|
+
blank: { "@voltx/core": "^0.1.0" },
|
|
19
|
+
chatbot: {
|
|
20
|
+
"@voltx/core": "^0.1.0",
|
|
21
|
+
"@voltx/agents": "^0.1.0",
|
|
22
|
+
"@voltx/memory": "^0.1.0",
|
|
23
|
+
"@voltx/ui": "^0.1.0"
|
|
24
|
+
},
|
|
25
|
+
"rag-app": {
|
|
26
|
+
"@voltx/core": "^0.1.0",
|
|
27
|
+
"@voltx/rag": "^0.1.0",
|
|
28
|
+
"@voltx/db": "^0.1.0",
|
|
29
|
+
"@voltx/ui": "^0.1.0"
|
|
30
|
+
},
|
|
31
|
+
"agent-app": {
|
|
32
|
+
"@voltx/core": "^0.1.0",
|
|
33
|
+
"@voltx/agents": "^0.1.0",
|
|
34
|
+
"@voltx/memory": "^0.1.0",
|
|
35
|
+
"@voltx/rag": "^0.1.0",
|
|
36
|
+
"@voltx/db": "^0.1.0",
|
|
37
|
+
"@voltx/ui": "^0.1.0"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const packageJson = {
|
|
41
|
+
name,
|
|
42
|
+
version: "0.1.0",
|
|
43
|
+
private: true,
|
|
44
|
+
scripts: {
|
|
45
|
+
dev: "voltx dev",
|
|
46
|
+
build: "voltx build",
|
|
47
|
+
start: "voltx start"
|
|
48
|
+
},
|
|
49
|
+
dependencies: templateDeps[template] ?? templateDeps["blank"]
|
|
50
|
+
};
|
|
51
|
+
fs.writeFileSync(
|
|
52
|
+
path.join(targetDir, "package.json"),
|
|
53
|
+
JSON.stringify(packageJson, null, 2)
|
|
54
|
+
);
|
|
55
|
+
const configContent = `import { defineConfig } from "@voltx/core";
|
|
56
|
+
|
|
57
|
+
export default defineConfig({
|
|
58
|
+
name: "${name}",
|
|
59
|
+
port: 3000,
|
|
60
|
+
ai: {
|
|
61
|
+
provider: "openai",
|
|
62
|
+
model: "gpt-4o",
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
`;
|
|
66
|
+
fs.writeFileSync(path.join(targetDir, "voltx.config.ts"), configContent);
|
|
67
|
+
fs.mkdirSync(path.join(targetDir, "src", "routes"), { recursive: true });
|
|
68
|
+
fs.mkdirSync(path.join(targetDir, "src", "agents"), { recursive: true });
|
|
69
|
+
const indexContent = `import { createApp } from "@voltx/core";
|
|
70
|
+
import config from "../voltx.config";
|
|
71
|
+
|
|
72
|
+
const app = createApp(config);
|
|
73
|
+
app.start();
|
|
74
|
+
`;
|
|
75
|
+
fs.writeFileSync(path.join(targetDir, "src", "index.ts"), indexContent);
|
|
76
|
+
fs.writeFileSync(
|
|
77
|
+
path.join(targetDir, ".env.example"),
|
|
78
|
+
"OPENAI_API_KEY=your-key-here\nDATABASE_URL=\n"
|
|
79
|
+
);
|
|
80
|
+
printWelcomeBanner(name);
|
|
81
|
+
}
|
|
82
|
+
var isDirectRun = typeof __require !== "undefined" && __require.main === module && process.argv[1]?.includes("create");
|
|
83
|
+
if (isDirectRun) {
|
|
84
|
+
const projectName = process.argv[2];
|
|
85
|
+
if (!projectName) {
|
|
86
|
+
console.log("Usage: create-voltx-app <project-name> [--template chatbot]");
|
|
87
|
+
process.exit(1);
|
|
88
|
+
}
|
|
89
|
+
const templateFlag = process.argv.indexOf("--template");
|
|
90
|
+
const template = templateFlag !== -1 ? process.argv[templateFlag + 1] : "blank";
|
|
91
|
+
createProject({ name: projectName, template }).catch((err) => {
|
|
92
|
+
console.error("[voltx] Error:", err);
|
|
93
|
+
process.exit(1);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
createProject
|
|
99
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__require,
|
|
3
|
+
printWelcomeBanner
|
|
4
|
+
} from "./chunk-RH5Q7I3S.mjs";
|
|
5
|
+
|
|
6
|
+
// src/create.ts
|
|
7
|
+
import * as fs from "fs";
|
|
8
|
+
import * as path from "path";
|
|
9
|
+
async function createProject(options) {
|
|
10
|
+
const { name, template = "blank" } = options;
|
|
11
|
+
const targetDir = path.resolve(process.cwd(), name);
|
|
12
|
+
if (fs.existsSync(targetDir)) {
|
|
13
|
+
console.error(`[voltx] Directory "${name}" already exists.`);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
17
|
+
const templateDeps = {
|
|
18
|
+
blank: { "@voltx/core": "^0.1.0" },
|
|
19
|
+
chatbot: {
|
|
20
|
+
"@voltx/core": "^0.1.0",
|
|
21
|
+
"@voltx/agents": "^0.1.0",
|
|
22
|
+
"@voltx/memory": "^0.1.0",
|
|
23
|
+
"@voltx/auth": "^0.1.0",
|
|
24
|
+
"@voltx/ui": "^0.1.0"
|
|
25
|
+
},
|
|
26
|
+
"rag-app": {
|
|
27
|
+
"@voltx/core": "^0.1.0",
|
|
28
|
+
"@voltx/rag": "^0.1.0",
|
|
29
|
+
"@voltx/db": "^0.1.0",
|
|
30
|
+
"@voltx/auth": "^0.1.0",
|
|
31
|
+
"@voltx/ui": "^0.1.0"
|
|
32
|
+
},
|
|
33
|
+
"agent-app": {
|
|
34
|
+
"@voltx/core": "^0.1.0",
|
|
35
|
+
"@voltx/agents": "^0.1.0",
|
|
36
|
+
"@voltx/memory": "^0.1.0",
|
|
37
|
+
"@voltx/rag": "^0.1.0",
|
|
38
|
+
"@voltx/db": "^0.1.0",
|
|
39
|
+
"@voltx/auth": "^0.1.0",
|
|
40
|
+
"@voltx/ui": "^0.1.0"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const packageJson = {
|
|
44
|
+
name,
|
|
45
|
+
version: "0.1.0",
|
|
46
|
+
private: true,
|
|
47
|
+
scripts: {
|
|
48
|
+
dev: "tsx src/index.ts",
|
|
49
|
+
build: "tsc",
|
|
50
|
+
start: "node dist/index.js"
|
|
51
|
+
},
|
|
52
|
+
dependencies: templateDeps[template] ?? templateDeps["blank"],
|
|
53
|
+
devDependencies: {
|
|
54
|
+
typescript: "^5.7.0",
|
|
55
|
+
tsx: "^4.21.0",
|
|
56
|
+
"@types/node": "^22.0.0"
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
fs.writeFileSync(
|
|
60
|
+
path.join(targetDir, "package.json"),
|
|
61
|
+
JSON.stringify(packageJson, null, 2)
|
|
62
|
+
);
|
|
63
|
+
const configContent = `import { defineConfig } from "@voltx/core";
|
|
64
|
+
|
|
65
|
+
export default defineConfig({
|
|
66
|
+
name: "${name}",
|
|
67
|
+
port: 3000,
|
|
68
|
+
ai: {
|
|
69
|
+
provider: "openai",
|
|
70
|
+
model: "gpt-4o",
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
`;
|
|
74
|
+
fs.writeFileSync(path.join(targetDir, "voltx.config.ts"), configContent);
|
|
75
|
+
fs.mkdirSync(path.join(targetDir, "src", "routes"), { recursive: true });
|
|
76
|
+
fs.mkdirSync(path.join(targetDir, "src", "agents"), { recursive: true });
|
|
77
|
+
const indexContent = `import { createApp } from "@voltx/core";
|
|
78
|
+
import config from "../voltx.config";
|
|
79
|
+
|
|
80
|
+
const app = createApp(config);
|
|
81
|
+
app.start();
|
|
82
|
+
`;
|
|
83
|
+
fs.writeFileSync(path.join(targetDir, "src", "index.ts"), indexContent);
|
|
84
|
+
fs.writeFileSync(
|
|
85
|
+
path.join(targetDir, ".env.example"),
|
|
86
|
+
"OPENAI_API_KEY=your-key-here\nDATABASE_URL=\n"
|
|
87
|
+
);
|
|
88
|
+
fs.writeFileSync(
|
|
89
|
+
path.join(targetDir, ".gitignore"),
|
|
90
|
+
"node_modules\ndist\n.env\n"
|
|
91
|
+
);
|
|
92
|
+
fs.writeFileSync(
|
|
93
|
+
path.join(targetDir, "tsconfig.json"),
|
|
94
|
+
JSON.stringify(
|
|
95
|
+
{
|
|
96
|
+
compilerOptions: {
|
|
97
|
+
target: "ES2022",
|
|
98
|
+
module: "ESNext",
|
|
99
|
+
moduleResolution: "bundler",
|
|
100
|
+
strict: true,
|
|
101
|
+
esModuleInterop: true,
|
|
102
|
+
skipLibCheck: true,
|
|
103
|
+
outDir: "dist",
|
|
104
|
+
rootDir: "src"
|
|
105
|
+
},
|
|
106
|
+
include: ["src"]
|
|
107
|
+
},
|
|
108
|
+
null,
|
|
109
|
+
2
|
|
110
|
+
)
|
|
111
|
+
);
|
|
112
|
+
printWelcomeBanner(name);
|
|
113
|
+
}
|
|
114
|
+
var isDirectRun = typeof __require !== "undefined" && __require.main === module && process.argv[1]?.includes("create");
|
|
115
|
+
if (isDirectRun) {
|
|
116
|
+
const projectName = process.argv[2];
|
|
117
|
+
if (!projectName) {
|
|
118
|
+
console.log("Usage: create-voltx-app <project-name> [--template chatbot]");
|
|
119
|
+
process.exit(1);
|
|
120
|
+
}
|
|
121
|
+
const templateFlag = process.argv.indexOf("--template");
|
|
122
|
+
const template = templateFlag !== -1 ? process.argv[templateFlag + 1] : "blank";
|
|
123
|
+
createProject({ name: projectName, template }).catch((err) => {
|
|
124
|
+
console.error("[voltx] Error:", err);
|
|
125
|
+
process.exit(1);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export {
|
|
130
|
+
createProject
|
|
131
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -1,11 +1,296 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __esm = (fn, res) => function __init() {
|
|
10
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
|
+
};
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all)
|
|
14
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
|
|
33
|
+
// src/welcome.ts
|
|
34
|
+
function rgb(r, g, b, text) {
|
|
35
|
+
return `${ESC}38;2;${r};${g};${b}m${text}${RESET}`;
|
|
36
|
+
}
|
|
37
|
+
function lerp(a, b, t) {
|
|
38
|
+
return Math.round(a + (b - a) * t);
|
|
39
|
+
}
|
|
40
|
+
function gradientLine(text, from, to) {
|
|
41
|
+
const len = text.length;
|
|
42
|
+
if (len === 0) return "";
|
|
43
|
+
return text.split("").map((char, i) => {
|
|
44
|
+
const t = len === 1 ? 0 : i / (len - 1);
|
|
45
|
+
const r = lerp(from.r, to.r, t);
|
|
46
|
+
const g = lerp(from.g, to.g, t);
|
|
47
|
+
const b = lerp(from.b, to.b, t);
|
|
48
|
+
return rgb(r, g, b, char);
|
|
49
|
+
}).join("");
|
|
50
|
+
}
|
|
51
|
+
function gradientBlock(lines, colors) {
|
|
52
|
+
return lines.map((line, i) => {
|
|
53
|
+
const t = lines.length === 1 ? 0 : i / (lines.length - 1);
|
|
54
|
+
const segIndex = t * (colors.length - 1);
|
|
55
|
+
const fromIdx = Math.floor(segIndex);
|
|
56
|
+
const toIdx = Math.min(fromIdx + 1, colors.length - 1);
|
|
57
|
+
const localT = segIndex - fromIdx;
|
|
58
|
+
const from = {
|
|
59
|
+
r: lerp(colors[fromIdx].r, colors[toIdx].r, localT),
|
|
60
|
+
g: lerp(colors[fromIdx].g, colors[toIdx].g, localT),
|
|
61
|
+
b: lerp(colors[fromIdx].b, colors[toIdx].b, localT)
|
|
62
|
+
};
|
|
63
|
+
const to = {
|
|
64
|
+
r: lerp(colors[Math.min(fromIdx + 1, colors.length - 1)].r, colors[Math.min(toIdx + 1, colors.length - 1)].r, localT),
|
|
65
|
+
g: lerp(colors[Math.min(fromIdx + 1, colors.length - 1)].g, colors[Math.min(toIdx + 1, colors.length - 1)].g, localT),
|
|
66
|
+
b: lerp(colors[Math.min(fromIdx + 1, colors.length - 1)].b, colors[Math.min(toIdx + 1, colors.length - 1)].b, localT)
|
|
67
|
+
};
|
|
68
|
+
return gradientLine(line, from, to);
|
|
69
|
+
}).join("\n");
|
|
70
|
+
}
|
|
71
|
+
function dimRule(width = 48) {
|
|
72
|
+
return ` ${rgb(60, 60, 80, "\u2500".repeat(width))}`;
|
|
73
|
+
}
|
|
74
|
+
function printWelcomeBanner(projectName) {
|
|
75
|
+
console.log("");
|
|
76
|
+
console.log(gradientBlock(VOLTX_BANNER, VOLTX_COLORS));
|
|
77
|
+
console.log("");
|
|
78
|
+
console.log(
|
|
79
|
+
` ${ITALIC}${rgb(180, 180, 220, "The AI-first full-stack framework")}${RESET}`
|
|
80
|
+
);
|
|
81
|
+
console.log("");
|
|
82
|
+
if (projectName) {
|
|
83
|
+
console.log(
|
|
84
|
+
` ${ITALIC}${rgb(120, 220, 180, `Thank you for choosing VoltX! \u26A1`)}${RESET}`
|
|
85
|
+
);
|
|
86
|
+
console.log(
|
|
87
|
+
` ${ITALIC}${rgb(160, 160, 200, `Your project "${projectName}" is ready to go.`)}${RESET}`
|
|
88
|
+
);
|
|
89
|
+
console.log("");
|
|
90
|
+
console.log(` ${rgb(100, 180, 255, "Next steps:")}`);
|
|
91
|
+
console.log(` ${rgb(200, 200, 220, ` cd ${projectName}`)}`);
|
|
92
|
+
console.log(` ${rgb(200, 200, 220, " pnpm install")}`);
|
|
93
|
+
console.log(` ${rgb(200, 200, 220, " pnpm dev")}`);
|
|
94
|
+
console.log("");
|
|
95
|
+
console.log(dimRule());
|
|
96
|
+
console.log("");
|
|
97
|
+
console.log(
|
|
98
|
+
` ${rgb(255, 200, 80, "\u2615")} ${ITALIC}${rgb(200, 180, 140, "Love VoltX? Support us and fuel the next update:")}${RESET}`
|
|
99
|
+
);
|
|
100
|
+
console.log(
|
|
101
|
+
` ${rgb(255, 180, 100, "https://buymeacoffee.com/promptlyai")}`
|
|
102
|
+
);
|
|
103
|
+
console.log("");
|
|
104
|
+
console.log(dimRule());
|
|
105
|
+
console.log("");
|
|
106
|
+
console.log(
|
|
107
|
+
` ${ITALIC}${rgb(140, 140, 170, "Docs: https://voltx.co.in \u2022 GitHub: github.com/codewithshail/voltx")}${RESET}`
|
|
108
|
+
);
|
|
109
|
+
console.log(
|
|
110
|
+
` ${ITALIC}${rgb(100, 100, 130, "Made with \u2665 by the Promptly AI Team")}${RESET}`
|
|
111
|
+
);
|
|
112
|
+
console.log("");
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
var ESC, RESET, ITALIC, VOLTX_BANNER, VOLTX_COLORS;
|
|
116
|
+
var init_welcome = __esm({
|
|
117
|
+
"src/welcome.ts"() {
|
|
118
|
+
"use strict";
|
|
119
|
+
ESC = "\x1B[";
|
|
120
|
+
RESET = `${ESC}0m`;
|
|
121
|
+
ITALIC = `${ESC}3m`;
|
|
122
|
+
VOLTX_BANNER = [
|
|
123
|
+
" \u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557",
|
|
124
|
+
" \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u255A\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255D\u255A\u2588\u2588\u2557\u2588\u2588\u2554\u255D",
|
|
125
|
+
" \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2554\u255D ",
|
|
126
|
+
" \u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2554\u2588\u2588\u2557 ",
|
|
127
|
+
" \u255A\u2588\u2588\u2588\u2588\u2554\u255D \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2554\u255D \u2588\u2588\u2557",
|
|
128
|
+
" \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D"
|
|
129
|
+
];
|
|
130
|
+
VOLTX_COLORS = [
|
|
131
|
+
{ r: 0, g: 180, b: 255 },
|
|
132
|
+
// electric blue
|
|
133
|
+
{ r: 120, g: 80, b: 255 },
|
|
134
|
+
// purple
|
|
135
|
+
{ r: 255, g: 50, b: 180 },
|
|
136
|
+
// hot pink
|
|
137
|
+
{ r: 255, g: 120, b: 50 }
|
|
138
|
+
// orange
|
|
139
|
+
];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
// src/create.ts
|
|
144
|
+
var create_exports = {};
|
|
145
|
+
__export(create_exports, {
|
|
146
|
+
createProject: () => createProject
|
|
147
|
+
});
|
|
148
|
+
async function createProject(options) {
|
|
149
|
+
const { name, template = "blank" } = options;
|
|
150
|
+
const targetDir = path.resolve(process.cwd(), name);
|
|
151
|
+
if (fs.existsSync(targetDir)) {
|
|
152
|
+
console.error(`[voltx] Directory "${name}" already exists.`);
|
|
153
|
+
process.exit(1);
|
|
154
|
+
}
|
|
155
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
156
|
+
const templateDeps = {
|
|
157
|
+
blank: { "@voltx/core": "^0.1.0" },
|
|
158
|
+
chatbot: {
|
|
159
|
+
"@voltx/core": "^0.1.0",
|
|
160
|
+
"@voltx/agents": "^0.1.0",
|
|
161
|
+
"@voltx/memory": "^0.1.0",
|
|
162
|
+
"@voltx/auth": "^0.1.0",
|
|
163
|
+
"@voltx/ui": "^0.1.0"
|
|
164
|
+
},
|
|
165
|
+
"rag-app": {
|
|
166
|
+
"@voltx/core": "^0.1.0",
|
|
167
|
+
"@voltx/rag": "^0.1.0",
|
|
168
|
+
"@voltx/db": "^0.1.0",
|
|
169
|
+
"@voltx/auth": "^0.1.0",
|
|
170
|
+
"@voltx/ui": "^0.1.0"
|
|
171
|
+
},
|
|
172
|
+
"agent-app": {
|
|
173
|
+
"@voltx/core": "^0.1.0",
|
|
174
|
+
"@voltx/agents": "^0.1.0",
|
|
175
|
+
"@voltx/memory": "^0.1.0",
|
|
176
|
+
"@voltx/rag": "^0.1.0",
|
|
177
|
+
"@voltx/db": "^0.1.0",
|
|
178
|
+
"@voltx/auth": "^0.1.0",
|
|
179
|
+
"@voltx/ui": "^0.1.0"
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
const packageJson = {
|
|
183
|
+
name,
|
|
184
|
+
version: "0.1.0",
|
|
185
|
+
private: true,
|
|
186
|
+
scripts: {
|
|
187
|
+
dev: "tsx src/index.ts",
|
|
188
|
+
build: "tsc",
|
|
189
|
+
start: "node dist/index.js"
|
|
190
|
+
},
|
|
191
|
+
dependencies: templateDeps[template] ?? templateDeps["blank"],
|
|
192
|
+
devDependencies: {
|
|
193
|
+
typescript: "^5.7.0",
|
|
194
|
+
tsx: "^4.21.0",
|
|
195
|
+
"@types/node": "^22.0.0"
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
fs.writeFileSync(
|
|
199
|
+
path.join(targetDir, "package.json"),
|
|
200
|
+
JSON.stringify(packageJson, null, 2)
|
|
201
|
+
);
|
|
202
|
+
const configContent = `import { defineConfig } from "@voltx/core";
|
|
203
|
+
|
|
204
|
+
export default defineConfig({
|
|
205
|
+
name: "${name}",
|
|
206
|
+
port: 3000,
|
|
207
|
+
ai: {
|
|
208
|
+
provider: "openai",
|
|
209
|
+
model: "gpt-4o",
|
|
210
|
+
},
|
|
211
|
+
});
|
|
212
|
+
`;
|
|
213
|
+
fs.writeFileSync(path.join(targetDir, "voltx.config.ts"), configContent);
|
|
214
|
+
fs.mkdirSync(path.join(targetDir, "src", "routes"), { recursive: true });
|
|
215
|
+
fs.mkdirSync(path.join(targetDir, "src", "agents"), { recursive: true });
|
|
216
|
+
const indexContent = `import { createApp } from "@voltx/core";
|
|
217
|
+
import config from "../voltx.config";
|
|
218
|
+
|
|
219
|
+
const app = createApp(config);
|
|
220
|
+
app.start();
|
|
221
|
+
`;
|
|
222
|
+
fs.writeFileSync(path.join(targetDir, "src", "index.ts"), indexContent);
|
|
223
|
+
fs.writeFileSync(
|
|
224
|
+
path.join(targetDir, ".env.example"),
|
|
225
|
+
"OPENAI_API_KEY=your-key-here\nDATABASE_URL=\n"
|
|
226
|
+
);
|
|
227
|
+
fs.writeFileSync(
|
|
228
|
+
path.join(targetDir, ".gitignore"),
|
|
229
|
+
"node_modules\ndist\n.env\n"
|
|
230
|
+
);
|
|
231
|
+
fs.writeFileSync(
|
|
232
|
+
path.join(targetDir, "tsconfig.json"),
|
|
233
|
+
JSON.stringify(
|
|
234
|
+
{
|
|
235
|
+
compilerOptions: {
|
|
236
|
+
target: "ES2022",
|
|
237
|
+
module: "ESNext",
|
|
238
|
+
moduleResolution: "bundler",
|
|
239
|
+
strict: true,
|
|
240
|
+
esModuleInterop: true,
|
|
241
|
+
skipLibCheck: true,
|
|
242
|
+
outDir: "dist",
|
|
243
|
+
rootDir: "src"
|
|
244
|
+
},
|
|
245
|
+
include: ["src"]
|
|
246
|
+
},
|
|
247
|
+
null,
|
|
248
|
+
2
|
|
249
|
+
)
|
|
250
|
+
);
|
|
251
|
+
printWelcomeBanner(name);
|
|
252
|
+
}
|
|
253
|
+
var fs, path, isDirectRun;
|
|
254
|
+
var init_create = __esm({
|
|
255
|
+
"src/create.ts"() {
|
|
256
|
+
"use strict";
|
|
257
|
+
fs = __toESM(require("fs"));
|
|
258
|
+
path = __toESM(require("path"));
|
|
259
|
+
init_welcome();
|
|
260
|
+
isDirectRun = typeof require !== "undefined" && require.main === module && process.argv[1]?.includes("create");
|
|
261
|
+
if (isDirectRun) {
|
|
262
|
+
const projectName = process.argv[2];
|
|
263
|
+
if (!projectName) {
|
|
264
|
+
console.log("Usage: create-voltx-app <project-name> [--template chatbot]");
|
|
265
|
+
process.exit(1);
|
|
266
|
+
}
|
|
267
|
+
const templateFlag = process.argv.indexOf("--template");
|
|
268
|
+
const template = templateFlag !== -1 ? process.argv[templateFlag + 1] : "blank";
|
|
269
|
+
createProject({ name: projectName, template }).catch((err) => {
|
|
270
|
+
console.error("[voltx] Error:", err);
|
|
271
|
+
process.exit(1);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
});
|
|
3
276
|
|
|
4
277
|
// src/cli.ts
|
|
5
278
|
var args = process.argv.slice(2);
|
|
6
279
|
var command = args[0];
|
|
7
280
|
async function main() {
|
|
8
281
|
switch (command) {
|
|
282
|
+
case "create": {
|
|
283
|
+
const projectName = args[1];
|
|
284
|
+
if (!projectName) {
|
|
285
|
+
console.error("[voltx] Usage: voltx create <project-name> [--template chatbot|rag-app|agent-app]");
|
|
286
|
+
process.exit(1);
|
|
287
|
+
}
|
|
288
|
+
const templateFlag = args.indexOf("--template");
|
|
289
|
+
const template = templateFlag !== -1 ? args[templateFlag + 1] : "blank";
|
|
290
|
+
const { createProject: createProject2 } = await Promise.resolve().then(() => (init_create(), create_exports));
|
|
291
|
+
await createProject2({ name: projectName, template });
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
9
294
|
case "dev": {
|
|
10
295
|
console.log("[voltx] Starting dev server...");
|
|
11
296
|
console.log("[voltx] Dev server not yet implemented \u2014 coming in Phase 2");
|
|
@@ -23,15 +308,19 @@ async function main() {
|
|
|
23
308
|
}
|
|
24
309
|
default: {
|
|
25
310
|
console.log(`
|
|
26
|
-
voltx \u2014 The AI-first full-stack framework
|
|
311
|
+
\u26A1 voltx \u2014 The AI-first full-stack framework
|
|
27
312
|
|
|
28
313
|
Usage:
|
|
29
|
-
voltx
|
|
30
|
-
voltx
|
|
31
|
-
voltx
|
|
314
|
+
voltx create <name> Create a new VoltX project
|
|
315
|
+
voltx dev Start the development server
|
|
316
|
+
voltx build Build for production
|
|
317
|
+
voltx start Start the production server
|
|
318
|
+
|
|
319
|
+
Options:
|
|
320
|
+
--template <type> Template: chatbot, rag-app, agent-app, blank (default)
|
|
32
321
|
|
|
33
|
-
|
|
34
|
-
create-
|
|
322
|
+
Example:
|
|
323
|
+
voltx create my-app --template chatbot
|
|
35
324
|
`);
|
|
36
325
|
}
|
|
37
326
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -5,6 +5,18 @@ var args = process.argv.slice(2);
|
|
|
5
5
|
var command = args[0];
|
|
6
6
|
async function main() {
|
|
7
7
|
switch (command) {
|
|
8
|
+
case "create": {
|
|
9
|
+
const projectName = args[1];
|
|
10
|
+
if (!projectName) {
|
|
11
|
+
console.error("[voltx] Usage: voltx create <project-name> [--template chatbot|rag-app|agent-app]");
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
const templateFlag = args.indexOf("--template");
|
|
15
|
+
const template = templateFlag !== -1 ? args[templateFlag + 1] : "blank";
|
|
16
|
+
const { createProject } = await import("./create.mjs");
|
|
17
|
+
await createProject({ name: projectName, template });
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
8
20
|
case "dev": {
|
|
9
21
|
console.log("[voltx] Starting dev server...");
|
|
10
22
|
console.log("[voltx] Dev server not yet implemented \u2014 coming in Phase 2");
|
|
@@ -22,15 +34,19 @@ async function main() {
|
|
|
22
34
|
}
|
|
23
35
|
default: {
|
|
24
36
|
console.log(`
|
|
25
|
-
voltx \u2014 The AI-first full-stack framework
|
|
37
|
+
\u26A1 voltx \u2014 The AI-first full-stack framework
|
|
26
38
|
|
|
27
39
|
Usage:
|
|
28
|
-
voltx
|
|
29
|
-
voltx
|
|
30
|
-
voltx
|
|
40
|
+
voltx create <name> Create a new VoltX project
|
|
41
|
+
voltx dev Start the development server
|
|
42
|
+
voltx build Build for production
|
|
43
|
+
voltx start Start the production server
|
|
44
|
+
|
|
45
|
+
Options:
|
|
46
|
+
--template <type> Template: chatbot, rag-app, agent-app, blank (default)
|
|
31
47
|
|
|
32
|
-
|
|
33
|
-
create-
|
|
48
|
+
Example:
|
|
49
|
+
voltx create my-app --template chatbot
|
|
34
50
|
`);
|
|
35
51
|
}
|
|
36
52
|
}
|
package/dist/create.js
CHANGED
|
@@ -156,12 +156,14 @@ async function createProject(options) {
|
|
|
156
156
|
"@voltx/core": "^0.1.0",
|
|
157
157
|
"@voltx/agents": "^0.1.0",
|
|
158
158
|
"@voltx/memory": "^0.1.0",
|
|
159
|
+
"@voltx/auth": "^0.1.0",
|
|
159
160
|
"@voltx/ui": "^0.1.0"
|
|
160
161
|
},
|
|
161
162
|
"rag-app": {
|
|
162
163
|
"@voltx/core": "^0.1.0",
|
|
163
164
|
"@voltx/rag": "^0.1.0",
|
|
164
165
|
"@voltx/db": "^0.1.0",
|
|
166
|
+
"@voltx/auth": "^0.1.0",
|
|
165
167
|
"@voltx/ui": "^0.1.0"
|
|
166
168
|
},
|
|
167
169
|
"agent-app": {
|
|
@@ -170,6 +172,7 @@ async function createProject(options) {
|
|
|
170
172
|
"@voltx/memory": "^0.1.0",
|
|
171
173
|
"@voltx/rag": "^0.1.0",
|
|
172
174
|
"@voltx/db": "^0.1.0",
|
|
175
|
+
"@voltx/auth": "^0.1.0",
|
|
173
176
|
"@voltx/ui": "^0.1.0"
|
|
174
177
|
}
|
|
175
178
|
};
|
|
@@ -178,11 +181,16 @@ async function createProject(options) {
|
|
|
178
181
|
version: "0.1.0",
|
|
179
182
|
private: true,
|
|
180
183
|
scripts: {
|
|
181
|
-
dev: "
|
|
182
|
-
build: "
|
|
183
|
-
start: "
|
|
184
|
+
dev: "tsx src/index.ts",
|
|
185
|
+
build: "tsc",
|
|
186
|
+
start: "node dist/index.js"
|
|
184
187
|
},
|
|
185
|
-
dependencies: templateDeps[template] ?? templateDeps["blank"]
|
|
188
|
+
dependencies: templateDeps[template] ?? templateDeps["blank"],
|
|
189
|
+
devDependencies: {
|
|
190
|
+
typescript: "^5.7.0",
|
|
191
|
+
tsx: "^4.21.0",
|
|
192
|
+
"@types/node": "^22.0.0"
|
|
193
|
+
}
|
|
186
194
|
};
|
|
187
195
|
fs.writeFileSync(
|
|
188
196
|
path.join(targetDir, "package.json"),
|
|
@@ -213,9 +221,34 @@ app.start();
|
|
|
213
221
|
path.join(targetDir, ".env.example"),
|
|
214
222
|
"OPENAI_API_KEY=your-key-here\nDATABASE_URL=\n"
|
|
215
223
|
);
|
|
224
|
+
fs.writeFileSync(
|
|
225
|
+
path.join(targetDir, ".gitignore"),
|
|
226
|
+
"node_modules\ndist\n.env\n"
|
|
227
|
+
);
|
|
228
|
+
fs.writeFileSync(
|
|
229
|
+
path.join(targetDir, "tsconfig.json"),
|
|
230
|
+
JSON.stringify(
|
|
231
|
+
{
|
|
232
|
+
compilerOptions: {
|
|
233
|
+
target: "ES2022",
|
|
234
|
+
module: "ESNext",
|
|
235
|
+
moduleResolution: "bundler",
|
|
236
|
+
strict: true,
|
|
237
|
+
esModuleInterop: true,
|
|
238
|
+
skipLibCheck: true,
|
|
239
|
+
outDir: "dist",
|
|
240
|
+
rootDir: "src"
|
|
241
|
+
},
|
|
242
|
+
include: ["src"]
|
|
243
|
+
},
|
|
244
|
+
null,
|
|
245
|
+
2
|
|
246
|
+
)
|
|
247
|
+
);
|
|
216
248
|
printWelcomeBanner(name);
|
|
217
249
|
}
|
|
218
|
-
|
|
250
|
+
var isDirectRun = typeof require !== "undefined" && require.main === module && process.argv[1]?.includes("create");
|
|
251
|
+
if (isDirectRun) {
|
|
219
252
|
const projectName = process.argv[2];
|
|
220
253
|
if (!projectName) {
|
|
221
254
|
console.log("Usage: create-voltx-app <project-name> [--template chatbot]");
|
package/dist/create.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -158,12 +158,14 @@ async function createProject(options) {
|
|
|
158
158
|
"@voltx/core": "^0.1.0",
|
|
159
159
|
"@voltx/agents": "^0.1.0",
|
|
160
160
|
"@voltx/memory": "^0.1.0",
|
|
161
|
+
"@voltx/auth": "^0.1.0",
|
|
161
162
|
"@voltx/ui": "^0.1.0"
|
|
162
163
|
},
|
|
163
164
|
"rag-app": {
|
|
164
165
|
"@voltx/core": "^0.1.0",
|
|
165
166
|
"@voltx/rag": "^0.1.0",
|
|
166
167
|
"@voltx/db": "^0.1.0",
|
|
168
|
+
"@voltx/auth": "^0.1.0",
|
|
167
169
|
"@voltx/ui": "^0.1.0"
|
|
168
170
|
},
|
|
169
171
|
"agent-app": {
|
|
@@ -172,6 +174,7 @@ async function createProject(options) {
|
|
|
172
174
|
"@voltx/memory": "^0.1.0",
|
|
173
175
|
"@voltx/rag": "^0.1.0",
|
|
174
176
|
"@voltx/db": "^0.1.0",
|
|
177
|
+
"@voltx/auth": "^0.1.0",
|
|
175
178
|
"@voltx/ui": "^0.1.0"
|
|
176
179
|
}
|
|
177
180
|
};
|
|
@@ -180,11 +183,16 @@ async function createProject(options) {
|
|
|
180
183
|
version: "0.1.0",
|
|
181
184
|
private: true,
|
|
182
185
|
scripts: {
|
|
183
|
-
dev: "
|
|
184
|
-
build: "
|
|
185
|
-
start: "
|
|
186
|
+
dev: "tsx src/index.ts",
|
|
187
|
+
build: "tsc",
|
|
188
|
+
start: "node dist/index.js"
|
|
186
189
|
},
|
|
187
|
-
dependencies: templateDeps[template] ?? templateDeps["blank"]
|
|
190
|
+
dependencies: templateDeps[template] ?? templateDeps["blank"],
|
|
191
|
+
devDependencies: {
|
|
192
|
+
typescript: "^5.7.0",
|
|
193
|
+
tsx: "^4.21.0",
|
|
194
|
+
"@types/node": "^22.0.0"
|
|
195
|
+
}
|
|
188
196
|
};
|
|
189
197
|
fs.writeFileSync(
|
|
190
198
|
path.join(targetDir, "package.json"),
|
|
@@ -215,9 +223,34 @@ app.start();
|
|
|
215
223
|
path.join(targetDir, ".env.example"),
|
|
216
224
|
"OPENAI_API_KEY=your-key-here\nDATABASE_URL=\n"
|
|
217
225
|
);
|
|
226
|
+
fs.writeFileSync(
|
|
227
|
+
path.join(targetDir, ".gitignore"),
|
|
228
|
+
"node_modules\ndist\n.env\n"
|
|
229
|
+
);
|
|
230
|
+
fs.writeFileSync(
|
|
231
|
+
path.join(targetDir, "tsconfig.json"),
|
|
232
|
+
JSON.stringify(
|
|
233
|
+
{
|
|
234
|
+
compilerOptions: {
|
|
235
|
+
target: "ES2022",
|
|
236
|
+
module: "ESNext",
|
|
237
|
+
moduleResolution: "bundler",
|
|
238
|
+
strict: true,
|
|
239
|
+
esModuleInterop: true,
|
|
240
|
+
skipLibCheck: true,
|
|
241
|
+
outDir: "dist",
|
|
242
|
+
rootDir: "src"
|
|
243
|
+
},
|
|
244
|
+
include: ["src"]
|
|
245
|
+
},
|
|
246
|
+
null,
|
|
247
|
+
2
|
|
248
|
+
)
|
|
249
|
+
);
|
|
218
250
|
printWelcomeBanner(name);
|
|
219
251
|
}
|
|
220
|
-
|
|
252
|
+
var isDirectRun = typeof require !== "undefined" && require.main === module && process.argv[1]?.includes("create");
|
|
253
|
+
if (isDirectRun) {
|
|
221
254
|
const projectName = process.argv[2];
|
|
222
255
|
if (!projectName) {
|
|
223
256
|
console.log("Usage: create-voltx-app <project-name> [--template chatbot]");
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltx/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "VoltX CLI — create-voltx-app scaffolding and dev server",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@voltx/core": "0.
|
|
20
|
+
"@voltx/core": "0.2.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"tsup": "^8.0.0",
|