@axiomatic-labs/cli 1.0.2 → 1.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/lib/init.js +35 -2
- package/package.json +1 -1
package/lib/init.js
CHANGED
|
@@ -68,8 +68,41 @@ async function run() {
|
|
|
68
68
|
ui.success(`${hookCount} hooks installed`);
|
|
69
69
|
|
|
70
70
|
ui.done(`Axiomatic ${version} installed.`);
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
|
|
72
|
+
// Detect if this is an existing project or empty directory
|
|
73
|
+
const hasPackageJson = fs.existsSync(path.join(process.cwd(), 'package.json'));
|
|
74
|
+
const hasPyproject = fs.existsSync(path.join(process.cwd(), 'pyproject.toml'));
|
|
75
|
+
const hasGemfile = fs.existsSync(path.join(process.cwd(), 'Gemfile'));
|
|
76
|
+
const hasGoMod = fs.existsSync(path.join(process.cwd(), 'go.mod'));
|
|
77
|
+
const isExistingProject = hasPackageJson || hasPyproject || hasGemfile || hasGoMod;
|
|
78
|
+
|
|
79
|
+
console.log(` ${ui.BOLD}Getting started:${ui.RESET}`);
|
|
80
|
+
console.log('');
|
|
81
|
+
console.log(` 1. Run ${ui.CYAN}claude${ui.RESET} to start Claude Code`);
|
|
82
|
+
|
|
83
|
+
if (isExistingProject) {
|
|
84
|
+
console.log(` 2. Type ${ui.CYAN}setup${ui.RESET} to detect your stack and generate project-specific skills`);
|
|
85
|
+
console.log(` 3. Tell Claude what you want — it handles the rest`);
|
|
86
|
+
console.log('');
|
|
87
|
+
console.log(` ${ui.BOLD}Commands:${ui.RESET}`);
|
|
88
|
+
console.log(` ${ui.CYAN}setup${ui.RESET} ${ui.DIM}Detect stack, generate skills and agents for your project${ui.RESET}`);
|
|
89
|
+
console.log(` ${ui.CYAN}review${ui.RESET} ${ui.DIM}Review current changes for quality, security & accessibility${ui.RESET}`);
|
|
90
|
+
console.log('');
|
|
91
|
+
console.log(` ${ui.DIM}To build, just describe what you want:${ui.RESET}`);
|
|
92
|
+
console.log(` ${ui.DIM}"add a user authentication system"${ui.RESET}`);
|
|
93
|
+
console.log(` ${ui.DIM}"refactor the payment module"${ui.RESET}`);
|
|
94
|
+
} else {
|
|
95
|
+
console.log(` 2. Describe what you want to build:`);
|
|
96
|
+
console.log('');
|
|
97
|
+
console.log(` ${ui.DIM}"create a SaaS landing page"${ui.RESET}`);
|
|
98
|
+
console.log(` ${ui.DIM}"build a task management app with Next.js"${ui.RESET}`);
|
|
99
|
+
console.log('');
|
|
100
|
+
console.log(` ${ui.DIM}Axiomatic will scaffold your stack, generate project-specific${ui.RESET}`);
|
|
101
|
+
console.log(` ${ui.DIM}skills, plan the architecture, and build it — all automatically.${ui.RESET}`);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
console.log('');
|
|
105
|
+
console.log(` ${ui.DIM}Docs: https://axiomatic.dev${ui.RESET}`);
|
|
73
106
|
console.log('');
|
|
74
107
|
}
|
|
75
108
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiomatic-labs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "AI-powered development toolkit for Claude Code. Skills, agents, hooks, and quality gates that ship production apps — not prototypes.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"axiomatic": "./bin/cli.js"
|