thronglets 0.2.0 → 0.4.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/README.md +40 -31
- package/package.json +1 -1
- package/scripts/install.js +4 -3
package/README.md
CHANGED
|
@@ -1,62 +1,71 @@
|
|
|
1
1
|
# Thronglets
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
AI-first decision substrate for coding agents.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This npm package installs the `thronglets` CLI wrapper and downloads a native binary for supported platforms.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npm install -g thronglets
|
|
11
|
+
thronglets setup
|
|
11
12
|
```
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
That is the whole local bootstrap path.
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
`thronglets setup` now:
|
|
17
|
+
- configures known local adapters for Claude Code, Codex, and OpenClaw
|
|
18
|
+
- runs the same bootstrap health pass used by the machine-facing flow
|
|
19
|
+
- reports `restart required` and `next steps` directly
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
## What The Agent Gets
|
|
22
|
+
|
|
23
|
+
Thronglets does not dump a long report into the model context. It emits sparse decision guidance:
|
|
24
|
+
|
|
25
|
+
- `avoid`
|
|
26
|
+
- `do next`
|
|
27
|
+
- `maybe also`
|
|
28
|
+
- `context`
|
|
22
29
|
|
|
23
|
-
|
|
30
|
+
The hot path is silence-by-default and cost-capped.
|
|
24
31
|
|
|
25
|
-
|
|
32
|
+
## Machine Bootstrap
|
|
26
33
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
}
|
|
34
|
+
If an AI wants to configure itself, use the machine-facing contract instead of parsing docs:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
thronglets detect --json
|
|
38
|
+
thronglets install-plan --agent codex --json
|
|
39
|
+
thronglets apply-plan --agent codex --json
|
|
40
|
+
thronglets doctor --agent codex --json
|
|
36
41
|
```
|
|
37
42
|
|
|
38
|
-
|
|
43
|
+
Or do it in one step:
|
|
39
44
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
```bash
|
|
46
|
+
thronglets bootstrap --agent codex --json
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Generic Contract
|
|
44
50
|
|
|
45
|
-
|
|
51
|
+
Unknown runtimes should use the universal hook contract:
|
|
46
52
|
|
|
47
53
|
```bash
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
thronglets install-plan --agent generic --json
|
|
55
|
+
```
|
|
50
56
|
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
That returns the exact `prehook` and `hook` JSON examples the runtime should call.
|
|
58
|
+
|
|
59
|
+
## Network
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
thronglets run --bootstrap /ip4/47.93.32.88/tcp/4001
|
|
53
63
|
```
|
|
54
64
|
|
|
55
65
|
## Links
|
|
56
66
|
|
|
57
67
|
- [GitHub](https://github.com/Shangri-la-0428/Thronglets)
|
|
58
68
|
- [crates.io](https://crates.io/crates/thronglets)
|
|
59
|
-
- [MCP Registry](https://registry.modelcontextprotocol.io/)
|
|
60
69
|
|
|
61
70
|
## License
|
|
62
71
|
|
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
const { execSync } = require("child_process");
|
|
5
4
|
const fs = require("fs");
|
|
6
5
|
const path = require("path");
|
|
7
6
|
const https = require("https");
|
|
8
7
|
const http = require("http");
|
|
9
8
|
|
|
10
|
-
const
|
|
11
|
-
|
|
9
|
+
const { version: PACKAGE_VERSION } = require("../package.json");
|
|
10
|
+
|
|
11
|
+
const VERSION = process.env.THRONGLETS_INSTALL_VERSION || PACKAGE_VERSION;
|
|
12
|
+
const REPO = process.env.THRONGLETS_INSTALL_REPO || "Shangri-la-0428/Thronglets";
|
|
12
13
|
|
|
13
14
|
const PLATFORMS = {
|
|
14
15
|
"darwin-arm64": {
|