@hexabot-ai/cli 3.2.0-alpha.0 → 3.2.1-alpha.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/AGENTS.md +1 -1
- package/README.md +1 -1
- package/dist/core/prerequisites.js +2 -2
- package/package.json +2 -4
- package/src/core/prerequisites.ts +2 -2
package/AGENTS.md
CHANGED
|
@@ -6,7 +6,7 @@ This file is the authoritative cheat-sheet for the Hexabot CLI. It summarizes th
|
|
|
6
6
|
|
|
7
7
|
- **Entry point**: `src/index.ts` prints the banner (`printBanner()`) and calls `checkPrerequisites({ silent: true })` before instantiating the Commander program. That pre-flight verifies Node.js (see below) so user-facing commands can assume a supported runtime.
|
|
8
8
|
- **CLI factory**: `createCliProgram()` (`src/cli.ts`) builds the `Command` instance, configures name/description/version (`getCliVersion()`), and registers `check`, `create`, `config`, `dev`, `docker`, `env`, `start`, and `migrate` commands.
|
|
9
|
-
- **Prerequisite gate**: `checkPrerequisites()` / `checkNodeVersion()` / `checkDocker()` (`src/core/prerequisites.ts`) centralize system checks. The top-level bootstrap validates Node (>= 20.
|
|
9
|
+
- **Prerequisite gate**: `checkPrerequisites()` / `checkNodeVersion()` / `checkDocker()` (`src/core/prerequisites.ts`) centralize system checks. The top-level bootstrap validates Node (>= 20.19.0) while Docker checks are performed by commands that actually need Docker.
|
|
10
10
|
- **Project guard**: `assertHexabotProject()` / `isHexabotProject()` (`src/core/project.ts`) enforce that commands run inside a workspace whose `package.json` depends on `@hexabot-ai/api`. Docker-aware commands also call `ensureDockerFolder()` which ensures `<projectRoot>/docker/` exists before touching compose files.
|
|
11
11
|
- **Service parsing**: `parseServices()` (`src/utils/services.ts`) normalizes the shared `--services` flag to a de-duped string array so Docker helpers can safely compose per-service overlays.
|
|
12
12
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Not yet familiar with [Hexabot](https://hexabot.ai/)? It's a open-source chatbot
|
|
|
9
9
|
|
|
10
10
|
### Prerequisites
|
|
11
11
|
|
|
12
|
-
- Node.js >= 20.
|
|
12
|
+
- Node.js >= 20.19.0
|
|
13
13
|
- One package manager (`npm`, `pnpm`, `yarn`, or `bun`)
|
|
14
14
|
- Docker Desktop/Engine (only required when you pass `--docker` or use `hexabot docker ...`)
|
|
15
15
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { execSync } from 'child_process';
|
|
7
7
|
import chalk from 'chalk';
|
|
8
|
-
const REQUIRED_NODE_VERSION = '20.
|
|
8
|
+
const REQUIRED_NODE_VERSION = '20.19.0';
|
|
9
9
|
export const checkPrerequisites = (options = {}) => {
|
|
10
10
|
checkNodeVersion(options);
|
|
11
11
|
if (options.docker) {
|
|
@@ -28,7 +28,7 @@ export const checkNodeVersion = (options = {}) => {
|
|
|
28
28
|
return { ok: false, message };
|
|
29
29
|
}
|
|
30
30
|
catch (error) {
|
|
31
|
-
const message = "Node.js is not accessible or installed correctly. Install Node.js v20.
|
|
31
|
+
const message = "Node.js is not accessible or installed correctly. Install Node.js v20.19.0+ and ensure it's in your PATH.";
|
|
32
32
|
handleFailure(message, options, error);
|
|
33
33
|
return { ok: false, message, details: error.message };
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hexabot-ai/cli",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1-alpha.0",
|
|
4
4
|
"description": "Official Hexabot CLI for creating and managing AI chatbot/agent projects built with Hexabot.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"hexabot": "dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=20.
|
|
11
|
+
"node": ">=20.19.0"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"author": "Hexastack",
|
|
@@ -55,8 +55,6 @@
|
|
|
55
55
|
"start": "node dist/index.js",
|
|
56
56
|
"dev": "tsx watch src/index.ts",
|
|
57
57
|
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
|
|
58
|
-
"release:patch": "npm version patch && git push origin main --tags",
|
|
59
|
-
"release:minor": "npm version minor && git push origin main --tags",
|
|
60
58
|
"lint": "eslint \"src/**/*.ts\"",
|
|
61
59
|
"lint:fix": "eslint \"src/**/*.ts\" --fix"
|
|
62
60
|
}
|
|
@@ -8,7 +8,7 @@ import { execSync } from 'child_process';
|
|
|
8
8
|
|
|
9
9
|
import chalk from 'chalk';
|
|
10
10
|
|
|
11
|
-
const REQUIRED_NODE_VERSION = '20.
|
|
11
|
+
const REQUIRED_NODE_VERSION = '20.19.0';
|
|
12
12
|
|
|
13
13
|
export interface PrerequisiteOptions {
|
|
14
14
|
docker?: boolean;
|
|
@@ -51,7 +51,7 @@ export const checkNodeVersion = (
|
|
|
51
51
|
return { ok: false, message };
|
|
52
52
|
} catch (error) {
|
|
53
53
|
const message =
|
|
54
|
-
"Node.js is not accessible or installed correctly. Install Node.js v20.
|
|
54
|
+
"Node.js is not accessible or installed correctly. Install Node.js v20.19.0+ and ensure it's in your PATH.";
|
|
55
55
|
|
|
56
56
|
handleFailure(message, options, error);
|
|
57
57
|
|