create-weavekit-app 0.1.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/LICENSE +21 -0
- package/README.md +19 -0
- package/dist/args.d.ts +14 -0
- package/dist/args.d.ts.map +1 -0
- package/dist/args.js +59 -0
- package/dist/args.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -0
- package/dist/index.js.map +1 -0
- package/package.json +55 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 WeaveKit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# create-weavekit-app
|
|
2
|
+
|
|
3
|
+
Scaffold a new WeaveKit project interactively.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm create weavekit-app my-app -- --type=agent
|
|
7
|
+
cd my-app
|
|
8
|
+
cp .env.example .env # set DATABASE_URL
|
|
9
|
+
weave migrate # schema.json → PostgreSQL tables
|
|
10
|
+
weave dev # http://localhost:3000
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`--type` selects the starting preset: `agent` (default), `governance`, `service`, or `business`. Use `--yes` for all defaults, `--no-git` to skip `git init`.
|
|
14
|
+
|
|
15
|
+
The generated project contains a `weavekit.config.ts`, `objects/leads/schema.json` example, a `main.ts` entry, and `.env.example`. All project operations go through the `weave` CLI (shipped by `@weave-kit/engine`).
|
|
16
|
+
|
|
17
|
+
## License
|
|
18
|
+
|
|
19
|
+
MIT
|
package/dist/args.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ProjectType } from '@weave-kit/engine';
|
|
2
|
+
/** parsed command-line options for the scaffolder */
|
|
3
|
+
export interface CliOptions {
|
|
4
|
+
name?: string;
|
|
5
|
+
type?: ProjectType;
|
|
6
|
+
git?: boolean;
|
|
7
|
+
force: boolean;
|
|
8
|
+
yes: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** parse argv (after the script) into options; throws on invalid input */
|
|
11
|
+
export declare function parseArgs(argv: string[]): CliOptions;
|
|
12
|
+
/** validate a project name against npm package-name rules; throws on invalid */
|
|
13
|
+
export declare function assertValidName(name: string): void;
|
|
14
|
+
//# sourceMappingURL=args.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEpE,qDAAqD;AACrD,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;CACd;AAED,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAyCpD;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAMlD"}
|
package/dist/args.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import validateProjectName from 'validate-npm-package-name';
|
|
2
|
+
import { PROJECT_TYPES } from '@weave-kit/engine';
|
|
3
|
+
/** parse argv (after the script) into options; throws on invalid input */
|
|
4
|
+
export function parseArgs(argv) {
|
|
5
|
+
const positional = [];
|
|
6
|
+
const options = { force: false, yes: false };
|
|
7
|
+
for (let i = 0; i < argv.length; i += 1) {
|
|
8
|
+
const arg = argv[i];
|
|
9
|
+
if (arg === '--yes' || arg === '-y') {
|
|
10
|
+
options.yes = true;
|
|
11
|
+
}
|
|
12
|
+
else if (arg === '--force' || arg === '-f') {
|
|
13
|
+
options.force = true;
|
|
14
|
+
}
|
|
15
|
+
else if (arg === '--git') {
|
|
16
|
+
options.git = true;
|
|
17
|
+
}
|
|
18
|
+
else if (arg === '--no-git') {
|
|
19
|
+
options.git = false;
|
|
20
|
+
}
|
|
21
|
+
else if (arg === '--type' || arg === '-t') {
|
|
22
|
+
const value = argv[i + 1];
|
|
23
|
+
if (value === undefined || value.startsWith('-')) {
|
|
24
|
+
throw new Error(`--type requires a value (${Object.values(PROJECT_TYPES).join('|')})`);
|
|
25
|
+
}
|
|
26
|
+
options.type = value;
|
|
27
|
+
i += 1;
|
|
28
|
+
}
|
|
29
|
+
else if (arg.startsWith('--type=')) {
|
|
30
|
+
options.type = arg.slice('--type='.length);
|
|
31
|
+
}
|
|
32
|
+
else if (arg.startsWith('-')) {
|
|
33
|
+
throw new Error(`unknown option: ${arg}`);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
positional.push(arg);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (positional.length > 1)
|
|
40
|
+
throw new Error(`unexpected extra arguments: ${positional.slice(1).join(' ')}`);
|
|
41
|
+
options.name = positional[0];
|
|
42
|
+
// --yes requires a name (create-next-app semantics: defaults need a target)
|
|
43
|
+
if (options.yes && options.name === undefined) {
|
|
44
|
+
throw new Error('usage: create-weavekit-app <project-name> [--yes] [--type=agent|governance|service|business] [--no-git]');
|
|
45
|
+
}
|
|
46
|
+
if (options.type !== undefined && !Object.values(PROJECT_TYPES).includes(options.type)) {
|
|
47
|
+
throw new Error(`unknown --type "${options.type}" (expected ${Object.values(PROJECT_TYPES).join('|')})`);
|
|
48
|
+
}
|
|
49
|
+
return options;
|
|
50
|
+
}
|
|
51
|
+
/** validate a project name against npm package-name rules; throws on invalid */
|
|
52
|
+
export function assertValidName(name) {
|
|
53
|
+
const result = validateProjectName(name);
|
|
54
|
+
if (!result.validForNewPackages) {
|
|
55
|
+
const why = [...(result.errors ?? []), ...(result.warnings ?? [])].join('; ');
|
|
56
|
+
throw new Error(`invalid project name "${name}" — ${why}`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=args.js.map
|
package/dist/args.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAoB,MAAM,mBAAmB,CAAC;AAWpE,0EAA0E;AAC1E,MAAM,UAAU,SAAS,CAAC,IAAc;IACtC,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,MAAM,OAAO,GAAe,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;IAEzD,KAAK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AC9E,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,OAAO,GAAG,EAAE,CAAC,CAAC;IAC7D,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { mkdir } from 'node:fs/promises';
|
|
3
|
+
import { resolve } from 'node:path';
|
|
4
|
+
import prompts from 'prompts';
|
|
5
|
+
import { PROJECT_TYPES, scaffoldProject } from '@weave-kit/engine';
|
|
6
|
+
import { assertValidName, parseArgs } from './args.js';
|
|
7
|
+
/**
|
|
8
|
+
* Interactive project scaffolder — `create-weavekit-app <name>` (create-next-app style).
|
|
9
|
+
*
|
|
10
|
+
* - `create-weavekit-app my-app --yes` — all defaults, one line, no prompts.
|
|
11
|
+
* - `create-weavekit-app my-app` — prompts for the type preset + git init.
|
|
12
|
+
* - `create-weavekit-app` — prompts for the project name too.
|
|
13
|
+
*
|
|
14
|
+
* Scaffolding itself is the engine's `scaffoldProject` (same code path as the
|
|
15
|
+
* removed `weave init`), so the generated project always includes the leads
|
|
16
|
+
* example object and a git repo when requested.
|
|
17
|
+
*/
|
|
18
|
+
const PRESET_CHOICES = Object.values(PROJECT_TYPES).map((value) => ({ title: value, value }));
|
|
19
|
+
async function promptName() {
|
|
20
|
+
const response = await prompts({
|
|
21
|
+
type: 'text',
|
|
22
|
+
name: 'name',
|
|
23
|
+
message: 'What is your project named?',
|
|
24
|
+
validate: (value) => {
|
|
25
|
+
assertValidName(value);
|
|
26
|
+
return true;
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
if (response.name === undefined)
|
|
30
|
+
process.exit(0); // cancelled (Ctrl+C)
|
|
31
|
+
return response.name;
|
|
32
|
+
}
|
|
33
|
+
async function promptType() {
|
|
34
|
+
const response = await prompts({
|
|
35
|
+
type: 'select',
|
|
36
|
+
name: 'type',
|
|
37
|
+
message: 'What project type?',
|
|
38
|
+
choices: PRESET_CHOICES,
|
|
39
|
+
initial: 0, // agent
|
|
40
|
+
});
|
|
41
|
+
if (response.type === undefined)
|
|
42
|
+
process.exit(0);
|
|
43
|
+
return response.type;
|
|
44
|
+
}
|
|
45
|
+
async function promptGit() {
|
|
46
|
+
const response = await prompts({
|
|
47
|
+
type: 'confirm',
|
|
48
|
+
name: 'git',
|
|
49
|
+
message: 'Initialize a git repository?',
|
|
50
|
+
initial: true,
|
|
51
|
+
});
|
|
52
|
+
if (response.git === undefined)
|
|
53
|
+
process.exit(0);
|
|
54
|
+
return response.git;
|
|
55
|
+
}
|
|
56
|
+
async function main() {
|
|
57
|
+
const options = parseArgs(process.argv.slice(2));
|
|
58
|
+
// resolve missing values interactively (unless --yes, which uses defaults)
|
|
59
|
+
const name = options.name ?? (options.yes ? undefined : await promptName());
|
|
60
|
+
const type = options.type ?? (options.yes ? PROJECT_TYPES.AGENT : await promptType());
|
|
61
|
+
const git = options.git ?? (options.yes ? true : await promptGit());
|
|
62
|
+
if (name === undefined)
|
|
63
|
+
throw new Error('project name is required');
|
|
64
|
+
assertValidName(name);
|
|
65
|
+
const dir = resolve(process.cwd(), name);
|
|
66
|
+
await mkdir(dir, { recursive: true });
|
|
67
|
+
const result = await scaffoldProject(dir, { type, force: options.force, git });
|
|
68
|
+
console.log(`\nCreated project "${name}" in ${dir}`);
|
|
69
|
+
console.log(` files: ${result.created.length}`);
|
|
70
|
+
if (result.skipped.length > 0) {
|
|
71
|
+
console.log(` skipped (use --force to overwrite): ${result.skipped.join(', ')}`);
|
|
72
|
+
}
|
|
73
|
+
if (result.gitInit)
|
|
74
|
+
console.log(' initialized git repository');
|
|
75
|
+
if (type === 'business') {
|
|
76
|
+
console.log('\n> Note: `business` is currently a headless backend preset (REST/MCP/RBAC/audit/script).\n' +
|
|
77
|
+
' No UI is scaffolded; *.client.js / pages layouts are experimental groundwork with no renderer yet.');
|
|
78
|
+
}
|
|
79
|
+
console.log('\nNext steps:');
|
|
80
|
+
console.log(` cd ${name}`);
|
|
81
|
+
console.log(' cp .env.example .env');
|
|
82
|
+
console.log(' weave migrate');
|
|
83
|
+
console.log(' weave dev');
|
|
84
|
+
}
|
|
85
|
+
main().catch((error) => {
|
|
86
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
87
|
+
process.exit(1);
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,eAAe,EAAoB,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEvD;;;;;;;;;;GAUG;AAEH,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AAE9F,KAAK,UAAU,UAAU;IACvB,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC;QAC7B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,6BAA6B;QACtC,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE;YAC1B,eAAe,CAAC,KAAK,CAAC,CAAC;YACvB,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC,CAAC;IACH,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,CAAC,IAAI,CAAC,CAAC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tC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC/B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC7B,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC9B,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-weavekit-app",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Scaffold a new WeaveKit project interactively — `create-weavekit-app <name>`",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"bin": {
|
|
8
|
+
"create-weavekit-app": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=24"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"weavekit",
|
|
24
|
+
"create",
|
|
25
|
+
"scaffold",
|
|
26
|
+
"cli",
|
|
27
|
+
"postgres"
|
|
28
|
+
],
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/weavekit/create-weavekit-app.git"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsc -p tsconfig.build.json",
|
|
35
|
+
"prepublishOnly": "npm run build",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"prelint": "node scripts/check-memory-sizes.mjs",
|
|
38
|
+
"lint": "eslint .",
|
|
39
|
+
"test": "node --import tsx --test \"tests/**/*.test.ts\""
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/node": "^22.0.0",
|
|
43
|
+
"@types/prompts": "^2.4.0",
|
|
44
|
+
"@types/validate-npm-package-name": "^4.0.2",
|
|
45
|
+
"eslint": "^9.0.0",
|
|
46
|
+
"tsx": "^4.20.0",
|
|
47
|
+
"typescript": "~5.9.0",
|
|
48
|
+
"typescript-eslint": "^8.0.0"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@weave-kit/engine": "^0.1.0",
|
|
52
|
+
"prompts": "^2.4.2",
|
|
53
|
+
"validate-npm-package-name": "^8.0.0"
|
|
54
|
+
}
|
|
55
|
+
}
|