helloagents 1.1.0 → 2.2.8

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 (38) hide show
  1. package/LICENSE.md +51 -0
  2. package/README.md +444 -841
  3. package/bin/cli.mjs +106 -0
  4. package/package.json +23 -38
  5. package/Claude/Skills/CN/CLAUDE.md +0 -998
  6. package/Claude/Skills/CN/skills/helloagents/analyze/SKILL.md +0 -187
  7. package/Claude/Skills/CN/skills/helloagents/design/SKILL.md +0 -261
  8. package/Claude/Skills/CN/skills/helloagents/develop/SKILL.md +0 -352
  9. package/Claude/Skills/CN/skills/helloagents/kb/SKILL.md +0 -249
  10. package/Claude/Skills/CN/skills/helloagents/templates/SKILL.md +0 -451
  11. package/Claude/Skills/EN/CLAUDE.md +0 -998
  12. package/Claude/Skills/EN/skills/helloagents/analyze/SKILL.md +0 -187
  13. package/Claude/Skills/EN/skills/helloagents/design/SKILL.md +0 -261
  14. package/Claude/Skills/EN/skills/helloagents/develop/SKILL.md +0 -352
  15. package/Claude/Skills/EN/skills/helloagents/kb/SKILL.md +0 -249
  16. package/Claude/Skills/EN/skills/helloagents/templates/SKILL.md +0 -451
  17. package/Codex/Skills/CN/AGENTS.md +0 -998
  18. package/Codex/Skills/CN/skills/helloagents/analyze/SKILL.md +0 -187
  19. package/Codex/Skills/CN/skills/helloagents/design/SKILL.md +0 -261
  20. package/Codex/Skills/CN/skills/helloagents/develop/SKILL.md +0 -352
  21. package/Codex/Skills/CN/skills/helloagents/kb/SKILL.md +0 -249
  22. package/Codex/Skills/CN/skills/helloagents/templates/SKILL.md +0 -451
  23. package/Codex/Skills/EN/AGENTS.md +0 -998
  24. package/Codex/Skills/EN/skills/helloagents/analyze/SKILL.md +0 -187
  25. package/Codex/Skills/EN/skills/helloagents/design/SKILL.md +0 -261
  26. package/Codex/Skills/EN/skills/helloagents/develop/SKILL.md +0 -352
  27. package/Codex/Skills/EN/skills/helloagents/kb/SKILL.md +0 -249
  28. package/Codex/Skills/EN/skills/helloagents/templates/SKILL.md +0 -451
  29. package/bin/cli.js +0 -85
  30. package/lib/args.js +0 -106
  31. package/lib/backup.js +0 -81
  32. package/lib/conflict.js +0 -118
  33. package/lib/copy.js +0 -125
  34. package/lib/defaults.js +0 -47
  35. package/lib/index.js +0 -297
  36. package/lib/output.js +0 -220
  37. package/lib/prompts.js +0 -173
  38. 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": "1.1.0",
4
- "description": "CLI tool to configure HelloAGENTS for Claude Code and Codex",
5
- "bin": {
6
- "helloagents": "bin/cli.js"
7
- },
8
- "files": [
9
- "bin/",
10
- "lib/",
11
- "Claude/",
12
- "Codex/"
13
- ],
14
- "scripts": {
15
- "test": "node test/run.js"
16
- },
17
- "engines": {
18
- "node": ">=16.0.0"
19
- },
20
- "keywords": [
21
- "cli",
22
- "claude",
23
- "codex",
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.8",
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
+ }