@chimerai/cli 0.2.75 → 0.2.77

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.
@@ -1 +1 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAWD;;;GAGG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA+BnE"}
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA4BH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAWD;;;GAGG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA+BnE"}
@@ -16,6 +16,22 @@ const fs_extra_1 = __importDefault(require("fs-extra"));
16
16
  const execa_1 = require("execa");
17
17
  const scanner_js_1 = require("../scanner.js");
18
18
  const utils_js_1 = require("../utils.js");
19
+ /**
20
+ * Resolves the correct Python executable: tries 'python', falls back to 'python3'.
21
+ * On Ubuntu/Debian, only 'python3' is available by default.
22
+ */
23
+ async function resolvePython() {
24
+ for (const candidate of ['python', 'python3']) {
25
+ try {
26
+ await (0, execa_1.execa)(candidate, ['--version']);
27
+ return candidate;
28
+ }
29
+ catch {
30
+ // not found, try next
31
+ }
32
+ }
33
+ throw new Error('Python not found. Please install Python 3 (https://python.org) and ensure it is in your PATH.');
34
+ }
19
35
  /**
20
36
  * Validate project structure
21
37
  * @param targetDir - Project root directory
@@ -126,7 +142,8 @@ async function startDevServer(targetDir, project, port) {
126
142
  // Create venv if not exists
127
143
  if (!(await fs_extra_1.default.pathExists(venvDir))) {
128
144
  spinner.text = 'Creating Python virtual environment...';
129
- await (0, execa_1.execa)('python', ['-m', 'venv', venvDir], { cwd: aiServiceDir });
145
+ const pythonBin = await resolvePython();
146
+ await (0, execa_1.execa)(pythonBin, ['-m', 'venv', venvDir], { cwd: aiServiceDir });
130
147
  // Install requirements
131
148
  spinner.text = 'Installing Python dependencies...';
132
149
  const pipPath = isWindows
@@ -97,14 +97,14 @@ const COMPONENT_REGISTRY = [
97
97
  {
98
98
  name: 'webhooks',
99
99
  description: 'Webhook dispatch with HMAC signing',
100
- category: 'Enterprise',
100
+ category: 'Compliance & Integrations',
101
101
  dependencies: [],
102
102
  files: ['lib/webhook-dispatcher.ts'],
103
103
  },
104
104
  {
105
105
  name: 'gdpr',
106
106
  description: 'GDPR compliance (export, deletion, consent)',
107
- category: 'Enterprise',
107
+ category: 'Compliance & Integrations',
108
108
  dependencies: ['auth'],
109
109
  files: ['lib/gdpr.ts'],
110
110
  },
@@ -118,7 +118,7 @@ const COMPONENT_REGISTRY = [
118
118
  {
119
119
  name: 'audit-log',
120
120
  description: 'Audit logging for compliance',
121
- category: 'Enterprise',
121
+ category: 'Compliance & Integrations',
122
122
  dependencies: [],
123
123
  files: ['lib/audit-log.ts'],
124
124
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chimerai/cli",
3
- "version": "0.2.75",
3
+ "version": "0.2.77",
4
4
  "description": "CLI wizard for ChimerAI starter kit — scaffold auth, RBAC, AI chat, billing and more into any Next.js project",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {