many-ai-cli 0.0.1 → 0.3.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/README.md +41 -2
- package/bin/many-ai-cli.mjs +92 -0
- package/package.json +40 -7
package/README.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# many-ai-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Web dashboard to manage approvals and progress across multiple AI coding CLIs
|
|
4
|
+
(Claude Code / Codex) running in parallel — a single local Hub + browser UI.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
pnpm add -g many-ai-cli
|
|
10
|
+
# or: bun install -g many-ai-cli
|
|
11
|
+
# or: npm install -g many-ai-cli
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
This package ships the native Go binary for your platform as an optional
|
|
15
|
+
dependency, so nothing is downloaded in a browser and there is no Windows
|
|
16
|
+
SmartScreen "Mark of the Web" prompt. It is **not** a substitute for code
|
|
17
|
+
signing — Smart App Control / WDAC / AppLocker / EDR policies are separate.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
many-ai-cli serve # start the Hub (binds 127.0.0.1, opens the browser UI)
|
|
23
|
+
many-ai-cli claude # run Claude Code wrapped by the Hub
|
|
24
|
+
many-ai-cli codex # run Codex wrapped by the Hub
|
|
25
|
+
many-ai-cli --version
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The Hub binds to `127.0.0.1` only and is never exposed externally.
|
|
29
|
+
|
|
30
|
+
## Supported platforms
|
|
31
|
+
|
|
32
|
+
| OS | Arch | Package |
|
|
33
|
+
|----|------|---------|
|
|
34
|
+
| Windows | x64 | `many-ai-cli-win32-x64` |
|
|
35
|
+
| Linux | x64 | `many-ai-cli-linux-x64` |
|
|
36
|
+
| macOS | Intel (x64) | `many-ai-cli-darwin-x64` |
|
|
37
|
+
| macOS | Apple Silicon (arm64) | `many-ai-cli-darwin-arm64` |
|
|
38
|
+
|
|
39
|
+
Other platforms: download from
|
|
40
|
+
[GitHub Releases](https://github.com/ishizakahiroshi/many-ai-cli/releases).
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT © Hiroshi Ishizaka (ishizakahiroshi)
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Thin launcher for the `many-ai-cli` npm package.
|
|
3
|
+
//
|
|
4
|
+
// The real program is a native Go binary shipped in a platform-specific
|
|
5
|
+
// optional dependency (e.g. `many-ai-cli-win32-x64`). This shim resolves the
|
|
6
|
+
// matching package for the current OS/arch and execs its bundled binary,
|
|
7
|
+
// forwarding argv, stdio, and the exit code / terminating signal.
|
|
8
|
+
//
|
|
9
|
+
// Distributing the binary through npm (rather than a browser-downloaded exe)
|
|
10
|
+
// means the launcher is materialized locally at install time, so it carries no
|
|
11
|
+
// Mark-of-the-Web and does not trigger the Windows SmartScreen prompt.
|
|
12
|
+
|
|
13
|
+
import { spawnSync } from 'node:child_process';
|
|
14
|
+
import { chmodSync } from 'node:fs';
|
|
15
|
+
import { createRequire } from 'node:module';
|
|
16
|
+
|
|
17
|
+
const require = createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// process.platform/arch -> optional dependency package name.
|
|
20
|
+
// Package names mirror the GitHub release archive suffixes
|
|
21
|
+
// (windows-x64 / linux-x64 / macos-intel / macos-apple-silicon) rather than
|
|
22
|
+
// Node's win32/darwin tokens, so the npm and GitHub artifact naming line up.
|
|
23
|
+
// The packages' own os/cpu fields still use Node conventions (win32/darwin/...).
|
|
24
|
+
const PKG_BY_TARGET = {
|
|
25
|
+
'win32 x64': 'many-ai-cli-windows-x64',
|
|
26
|
+
'linux x64': 'many-ai-cli-linux-x64',
|
|
27
|
+
'darwin x64': 'many-ai-cli-macos-intel',
|
|
28
|
+
'darwin arm64': 'many-ai-cli-macos-apple-silicon',
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function resolveBinary() {
|
|
32
|
+
const target = `${process.platform} ${process.arch}`;
|
|
33
|
+
const pkg = PKG_BY_TARGET[target];
|
|
34
|
+
if (!pkg) {
|
|
35
|
+
const supported = Object.keys(PKG_BY_TARGET).join(', ');
|
|
36
|
+
throw new Error(
|
|
37
|
+
`many-ai-cli does not ship a prebuilt binary for ${target}.\n` +
|
|
38
|
+
`Supported targets: ${supported}.\n` +
|
|
39
|
+
`Install from GitHub Releases instead: https://github.com/ishizakahiroshi/many-ai-cli/releases`
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
const subpath = `${pkg}/bin/many-ai-cli${process.platform === 'win32' ? '.exe' : ''}`;
|
|
43
|
+
try {
|
|
44
|
+
return require.resolve(subpath);
|
|
45
|
+
} catch {
|
|
46
|
+
throw new Error(
|
|
47
|
+
`The platform package "${pkg}" is not installed.\n` +
|
|
48
|
+
`It is an optionalDependency of many-ai-cli and should be installed automatically.\n` +
|
|
49
|
+
`Reinstall with optional dependencies enabled, e.g. "pnpm add -g many-ai-cli" ` +
|
|
50
|
+
`(avoid --no-optional / --ignore-optional).`
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function main() {
|
|
56
|
+
let binary;
|
|
57
|
+
try {
|
|
58
|
+
binary = resolveBinary();
|
|
59
|
+
} catch (err) {
|
|
60
|
+
process.stderr.write(`${err.message}\n`);
|
|
61
|
+
process.exit(1);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// The platform binary must carry the unix exec bit on Linux/macOS. npm
|
|
65
|
+
// preserves the file mode from the published tarball, but a tarball packed on
|
|
66
|
+
// Windows (which has no exec bit) arrives as 0644 and spawnSync would fail
|
|
67
|
+
// with EACCES. Restore it defensively so the package works regardless of where
|
|
68
|
+
// it was packed — this removes the need to pack on WSL/Linux just for the bit.
|
|
69
|
+
// Best-effort: a root-owned global install run as a non-root user may reject
|
|
70
|
+
// chmod, in which case the binary was already 0755 from a posix pack anyway.
|
|
71
|
+
if (process.platform !== 'win32') {
|
|
72
|
+
try {
|
|
73
|
+
chmodSync(binary, 0o755);
|
|
74
|
+
} catch {
|
|
75
|
+
// ignore — fall through to spawn, which works if the mode is already ok.
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit' });
|
|
80
|
+
|
|
81
|
+
if (result.error) {
|
|
82
|
+
process.stderr.write(`many-ai-cli: failed to launch binary: ${result.error.message}\n`);
|
|
83
|
+
process.exit(1);
|
|
84
|
+
}
|
|
85
|
+
// Propagate a terminating signal as the conventional 128+signal exit code.
|
|
86
|
+
if (result.signal) {
|
|
87
|
+
process.exit(1);
|
|
88
|
+
}
|
|
89
|
+
process.exit(result.status ?? 0);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
main();
|
package/package.json
CHANGED
|
@@ -1,11 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "many-ai-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.3",
|
|
4
|
+
"description": "Web dashboard to manage approvals and progress across multiple AI coding CLIs (Claude Code / Codex). Bundles a native Go binary per platform — no standalone exe download, no Mark-of-the-Web SmartScreen prompt.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"claude-code",
|
|
8
|
+
"codex",
|
|
9
|
+
"ai",
|
|
10
|
+
"dashboard",
|
|
11
|
+
"approvals",
|
|
12
|
+
"terminal"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/ishizakahiroshi/many-ai-cli",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/ishizakahiroshi/many-ai-cli/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/ishizakahiroshi/many-ai-cli.git"
|
|
21
|
+
},
|
|
5
22
|
"license": "MIT",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "Hiroshi Ishizaka",
|
|
25
|
+
"url": "https://github.com/ishizakahiroshi"
|
|
26
|
+
},
|
|
27
|
+
"type": "module",
|
|
28
|
+
"bin": {
|
|
29
|
+
"many-ai-cli": "./bin/many-ai-cli.mjs"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"bin/many-ai-cli.mjs",
|
|
33
|
+
"README.md"
|
|
34
|
+
],
|
|
35
|
+
"optionalDependencies": {
|
|
36
|
+
"many-ai-cli-windows-x64": "0.3.3",
|
|
37
|
+
"many-ai-cli-linux-x64": "0.3.3",
|
|
38
|
+
"many-ai-cli-macos-intel": "0.3.3",
|
|
39
|
+
"many-ai-cli-macos-apple-silicon": "0.3.3"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=18"
|
|
43
|
+
}
|
|
11
44
|
}
|