helloagents 1.1.0 → 2.2.7
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.md +51 -0
- package/README.md +440 -841
- package/bin/cli.mjs +106 -0
- package/package.json +23 -38
- package/Claude/Skills/CN/CLAUDE.md +0 -998
- package/Claude/Skills/CN/skills/helloagents/analyze/SKILL.md +0 -187
- package/Claude/Skills/CN/skills/helloagents/design/SKILL.md +0 -261
- package/Claude/Skills/CN/skills/helloagents/develop/SKILL.md +0 -352
- package/Claude/Skills/CN/skills/helloagents/kb/SKILL.md +0 -249
- package/Claude/Skills/CN/skills/helloagents/templates/SKILL.md +0 -451
- package/Claude/Skills/EN/CLAUDE.md +0 -998
- package/Claude/Skills/EN/skills/helloagents/analyze/SKILL.md +0 -187
- package/Claude/Skills/EN/skills/helloagents/design/SKILL.md +0 -261
- package/Claude/Skills/EN/skills/helloagents/develop/SKILL.md +0 -352
- package/Claude/Skills/EN/skills/helloagents/kb/SKILL.md +0 -249
- package/Claude/Skills/EN/skills/helloagents/templates/SKILL.md +0 -451
- package/Codex/Skills/CN/AGENTS.md +0 -998
- package/Codex/Skills/CN/skills/helloagents/analyze/SKILL.md +0 -187
- package/Codex/Skills/CN/skills/helloagents/design/SKILL.md +0 -261
- package/Codex/Skills/CN/skills/helloagents/develop/SKILL.md +0 -352
- package/Codex/Skills/CN/skills/helloagents/kb/SKILL.md +0 -249
- package/Codex/Skills/CN/skills/helloagents/templates/SKILL.md +0 -451
- package/Codex/Skills/EN/AGENTS.md +0 -998
- package/Codex/Skills/EN/skills/helloagents/analyze/SKILL.md +0 -187
- package/Codex/Skills/EN/skills/helloagents/design/SKILL.md +0 -261
- package/Codex/Skills/EN/skills/helloagents/develop/SKILL.md +0 -352
- package/Codex/Skills/EN/skills/helloagents/kb/SKILL.md +0 -249
- package/Codex/Skills/EN/skills/helloagents/templates/SKILL.md +0 -451
- package/bin/cli.js +0 -85
- package/lib/args.js +0 -106
- package/lib/backup.js +0 -81
- package/lib/conflict.js +0 -118
- package/lib/copy.js +0 -125
- package/lib/defaults.js +0 -47
- package/lib/index.js +0 -297
- package/lib/output.js +0 -220
- package/lib/prompts.js +0 -173
- package/lib/utils.js +0 -225
package/bin/cli.mjs
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* HelloAGENTS npm/npx bootstrap installer.
|
|
5
|
+
*
|
|
6
|
+
* This script is ONLY for first-time setup:
|
|
7
|
+
* npx helloagents # install + interactive menu
|
|
8
|
+
* npx helloagents install codex # install + specify target
|
|
9
|
+
*
|
|
10
|
+
* After installation, use the native `helloagents` command directly
|
|
11
|
+
* for all subsequent operations (update, uninstall, status, etc.).
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { execSync, spawnSync } from "node:child_process";
|
|
15
|
+
import { readFileSync } from "node:fs";
|
|
16
|
+
import { fileURLToPath } from "node:url";
|
|
17
|
+
import { dirname, join } from "node:path";
|
|
18
|
+
|
|
19
|
+
const REPO = "https://github.com/hellowind777/helloagents";
|
|
20
|
+
const MIN_PYTHON = [3, 10];
|
|
21
|
+
|
|
22
|
+
function findPython() {
|
|
23
|
+
for (const cmd of ["python3", "python"]) {
|
|
24
|
+
try {
|
|
25
|
+
const out = execSync(`${cmd} --version`, {
|
|
26
|
+
encoding: "utf-8",
|
|
27
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
28
|
+
}).trim();
|
|
29
|
+
const match = out.match(/Python (\d+)\.(\d+)/);
|
|
30
|
+
if (match) {
|
|
31
|
+
const major = parseInt(match[1], 10);
|
|
32
|
+
const minor = parseInt(match[2], 10);
|
|
33
|
+
if (major > MIN_PYTHON[0] || (major === MIN_PYTHON[0] && minor >= MIN_PYTHON[1])) {
|
|
34
|
+
return cmd;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
} catch {}
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function detectBranch() {
|
|
43
|
+
try {
|
|
44
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
45
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
|
|
46
|
+
if (pkg.version && /beta/i.test(pkg.version)) return "beta";
|
|
47
|
+
} catch {}
|
|
48
|
+
return "main";
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function pipInstall(python, branch) {
|
|
52
|
+
const suffix = branch && branch !== "main" ? `@${branch}` : "";
|
|
53
|
+
const url = `git+${REPO}.git${suffix}`;
|
|
54
|
+
console.log(`Installing helloagents Python package (${branch})...`);
|
|
55
|
+
const res = spawnSync(python, ["-m", "pip", "install", "--upgrade", url], {
|
|
56
|
+
stdio: "inherit",
|
|
57
|
+
});
|
|
58
|
+
if (res.status !== 0) {
|
|
59
|
+
console.error("Failed to install helloagents Python package.");
|
|
60
|
+
process.exit(1);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// --- Main ---
|
|
65
|
+
const python = findPython();
|
|
66
|
+
if (!python) {
|
|
67
|
+
console.error("Error: Python >= 3.10 not found.");
|
|
68
|
+
console.error("Please install Python first: https://www.python.org/downloads/");
|
|
69
|
+
process.exit(1);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const args = process.argv.slice(2);
|
|
73
|
+
|
|
74
|
+
// Supported: no args (interactive menu) or "install [target]"
|
|
75
|
+
if (args.length > 0 && args[0] !== "install") {
|
|
76
|
+
console.log("HelloAGENTS npx bootstrap installer");
|
|
77
|
+
console.log("");
|
|
78
|
+
console.log("Usage (first-time install only):");
|
|
79
|
+
console.log(" npx helloagents # interactive menu");
|
|
80
|
+
console.log(" npx helloagents install codex # specify target directly");
|
|
81
|
+
console.log(" npx helloagents install --all # install to all detected CLIs");
|
|
82
|
+
console.log("");
|
|
83
|
+
console.log("After installation, use the native command directly:");
|
|
84
|
+
console.log(" helloagents update");
|
|
85
|
+
console.log(" helloagents uninstall <target>");
|
|
86
|
+
console.log(" helloagents status");
|
|
87
|
+
console.log(" helloagents version");
|
|
88
|
+
process.exit(0);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Step 1: Install pip package
|
|
92
|
+
pipInstall(python, detectBranch());
|
|
93
|
+
|
|
94
|
+
// Step 2: Forward to native CLI (no args = interactive menu, install = direct install)
|
|
95
|
+
const fwdArgs = args.length > 0 ? args : [];
|
|
96
|
+
const res = spawnSync(python, ["-m", "helloagents", ...fwdArgs], { stdio: "inherit" });
|
|
97
|
+
|
|
98
|
+
if (res.status === 0) {
|
|
99
|
+
console.log("");
|
|
100
|
+
console.log("Done! From now on, use the native command directly:");
|
|
101
|
+
console.log(" helloagents update # update to latest version");
|
|
102
|
+
console.log(" helloagents uninstall codex # uninstall from a CLI");
|
|
103
|
+
console.log(" helloagents status # check installation status");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
process.exit(res.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,38 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "helloagents",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"ai",
|
|
25
|
-
"agents",
|
|
26
|
-
"helloagents"
|
|
27
|
-
],
|
|
28
|
-
"author": "",
|
|
29
|
-
"license": "Apache-2.0",
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/hellowind777/helloagents.git"
|
|
33
|
-
},
|
|
34
|
-
"homepage": "https://github.com/hellowind777/helloagents#readme",
|
|
35
|
-
"bugs": {
|
|
36
|
-
"url": "https://github.com/hellowind777/helloagents/issues"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "helloagents",
|
|
3
|
+
"version": "2.2.7",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "HelloAGENTS - AI-native sub-agent orchestration framework for multi-CLI environments",
|
|
6
|
+
"author": "HelloWind",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"homepage": "https://github.com/hellowind777/helloagents",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/hellowind777/helloagents.git"
|
|
12
|
+
},
|
|
13
|
+
"bin": {
|
|
14
|
+
"helloagents": "./bin/cli.mjs"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"bin/"
|
|
18
|
+
],
|
|
19
|
+
"keywords": ["ai", "agent", "claude", "codex", "gemini", "qwen", "grok", "opencode", "cli", "workflow"],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=16"
|
|
22
|
+
}
|
|
23
|
+
}
|