@monoclaw/machine 1.0.3 → 1.0.4
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 +5 -6
- package/bin/monoclaw.js +12 -1
- package/dist/cli.js +519 -385
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,14 +7,13 @@ shown under **Add a machine** in MonoClaw; it needs **Node.js 22 or newer** (`no
|
|
|
7
7
|
[nodejs.org](https://nodejs.org/en/download), `brew install node`, nvm, or `winget install OpenJS.NodeJS.LTS`).
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
|
|
11
|
-
monoclaw doctor
|
|
12
|
-
monoclaw enrol <token> --router https://command.monoclaw.ai --root ~/command
|
|
13
|
-
# then run it, one of:
|
|
14
|
-
monoclaw service install # in the background, at every login
|
|
15
|
-
monoclaw start # in this terminal
|
|
10
|
+
npx -y @monoclaw/machine@latest connect <token>
|
|
16
11
|
```
|
|
17
12
|
|
|
13
|
+
That one command installs the program for good, connects this computer with the one-time token, starts it in the
|
|
14
|
+
background and checks it (`--no-service` stops before starting it; then `monoclaw start` runs it in the terminal).
|
|
15
|
+
Sign in to Claude with `monoclaw claude auth login` if `monoclaw doctor` says you aren't. Guides: https://docs.monoclaw.ai
|
|
16
|
+
|
|
18
17
|
- `monoclaw status` — enrolment, exposed folders, provider readiness (is Claude Code installed and logged in?).
|
|
19
18
|
- `monoclaw doctor` — checks and repairs a fresh install: Node, the host's own copy of Claude Code (an optional 280 MB npm package that a dropped download can skip; `doctor` installs the exact version the SDK wants), Claude Code on the PATH and its login, roots, the service. Until the copy is repaired the host runs sessions with the `claude` on the PATH; `MONOCLAW_CLAUDE_PATH` names a specific executable.
|
|
20
19
|
- `monoclaw roots add|remove|list <path>` — folders agents may work in. Nothing outside them is browsable or openable, whatever the server asks.
|
package/bin/monoclaw.js
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
// The program needs Node.js 22 or newer; on anything older say so plainly instead of failing on syntax.
|
|
3
|
+
var major = Number(process.versions.node.split(".")[0]);
|
|
4
|
+
if (major < 22) {
|
|
5
|
+
console.error("MonoClaw needs Node.js 22 or newer. Install it, open a new terminal and run this again.");
|
|
6
|
+
console.error(" This is Node.js " + process.versions.node + ".");
|
|
7
|
+
if (process.platform === "darwin") console.error(" With Homebrew: brew install node Or the installer: https://nodejs.org/en/download");
|
|
8
|
+
else if (process.platform === "win32") console.error(" With winget: winget install OpenJS.NodeJS.LTS Or the installer: https://nodejs.org/en/download");
|
|
9
|
+
else console.error(" With nvm (no sudo): https://github.com/nvm-sh/nvm#installing-and-updating then: nvm install 22");
|
|
10
|
+
process.exit(1);
|
|
11
|
+
} else {
|
|
12
|
+
import("../dist/cli.js");
|
|
13
|
+
}
|