thachvd-kit 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/bin/cli.js +31 -1
  2. package/package.json +7 -8
package/bin/cli.js CHANGED
@@ -90,6 +90,22 @@ const PACKAGE_MANAGER_CHOICES = ['npm', 'pnpm', 'yarn', 'bun', 'pip', 'uv', 'go
90
90
  const TEST_FRAMEWORK_CHOICES = ['jest', 'vitest', 'pytest', 'go test', 'phpunit', 'pest', 'rspec', 'junit', 'auto-detect'];
91
91
  const CLOUD_CHOICES = ['aws', 'gcp', 'azure', 'vercel', 'fly', 'railway', 'none'];
92
92
 
93
+ function printHelp() {
94
+ console.log(`
95
+ ${pc.bold('Usage:')}
96
+ thachvd-kit init [--scan] [--yes]
97
+ thachvd-kit --help
98
+
99
+ ${pc.bold('Commands:')}
100
+ init Run the project init wizard
101
+
102
+ ${pc.bold('Options:')}
103
+ --scan Scan the current project to prefill PROJECT_CONTEXT.md
104
+ --yes Use detected/default values without prompting
105
+ --help Show this help message
106
+ `);
107
+ }
108
+
93
109
  function fileExists(...parts) {
94
110
  return fs.existsSync(path.join(targetDir, ...parts));
95
111
  }
@@ -403,7 +419,21 @@ See PROJECT_CONTEXT.md for full agent routing table.
403
419
  // --- Main CLI ---
404
420
 
405
421
  async function main() {
406
- const args = process.argv.slice(2);
422
+ const rawArgs = process.argv.slice(2);
423
+ const command = rawArgs[0] && !rawArgs[0].startsWith('-') ? rawArgs[0] : 'init';
424
+ const args = command === 'init' ? rawArgs.slice(rawArgs[0] === 'init' ? 1 : 0) : rawArgs.slice(1);
425
+
426
+ if (rawArgs.includes('--help') || rawArgs.includes('-h')) {
427
+ printHelp();
428
+ return;
429
+ }
430
+
431
+ if (command !== 'init') {
432
+ console.error(pc.red(`Unknown command: ${command}`));
433
+ printHelp();
434
+ process.exit(1);
435
+ }
436
+
407
437
  let useScan = args.includes('--scan');
408
438
  const assumeYes = args.includes('--yes') || args.includes('-y');
409
439
 
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "thachvd-kit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Universal Agent Kit for Antigravity, Claude Code, and OpenCode",
5
- "main": "index.js",
6
5
  "bin": {
7
6
  "thachvd-kit": "./bin/cli.js"
8
7
  },
@@ -25,12 +24,12 @@
25
24
  "scripts": {
26
25
  "test": "echo \"Error: no test specified\" && exit 1"
27
26
  },
28
- "keywords": [
29
- "ai",
30
- "agent",
31
- "claude",
32
- "antigravity",
33
- "codex"
27
+ "keywords": [
28
+ "ai",
29
+ "agent",
30
+ "claude",
31
+ "antigravity",
32
+ "codex"
34
33
  ],
35
34
  "author": "thachvd",
36
35
  "license": "MIT",