thronglets 0.2.0 → 0.4.1

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 CHANGED
@@ -1,62 +1,71 @@
1
1
  # Thronglets
2
2
 
3
- P2P shared memory substrate for AI agents — stigmergic knowledge network via libp2p.
3
+ AI-first decision substrate for coding agents.
4
4
 
5
- AI agents leave execution traces on a decentralized network. Traces propagate via gossipsub and aggregate into collective intelligence that any agent can query.
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
- ## MCP Setup
14
+ That is the whole local bootstrap path.
14
15
 
15
- ```bash
16
- # Claude Code
17
- claude mcp add thronglets -- npx thronglets mcp
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
- # With P2P network
20
- claude mcp add thronglets -- npx thronglets mcp --port 0 --bootstrap /ip4/47.93.32.88/tcp/4001
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
- ### Claude Desktop
30
+ The hot path is silence-by-default and cost-capped.
24
31
 
25
- Add to `claude_desktop_config.json`:
32
+ ## Machine Bootstrap
26
33
 
27
- ```json
28
- {
29
- "mcpServers": {
30
- "thronglets": {
31
- "command": "npx",
32
- "args": ["thronglets", "mcp"]
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
- ## MCP Tools
43
+ Or do it in one step:
39
44
 
40
- | Tool | Description |
41
- |------|-------------|
42
- | `trace_record` | Record an execution trace (capability, outcome, latency, context, model) |
43
- | `substrate_query` | Query with intent: `resolve` / `evaluate` / `explore` |
45
+ ```bash
46
+ thronglets bootstrap --agent codex --json
47
+ ```
48
+
49
+ ## Generic Contract
44
50
 
45
- ## Also available via
51
+ Unknown runtimes should use the universal hook contract:
46
52
 
47
53
  ```bash
48
- # Rust
49
- cargo install thronglets
54
+ thronglets install-plan --agent generic --json
55
+ ```
50
56
 
51
- # Python
52
- pip install thronglets
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thronglets",
3
- "version": "0.2.0",
3
+ "version": "0.4.1",
4
4
  "description": "P2P shared memory substrate for AI agents — stigmergic knowledge network via libp2p",
5
5
  "keywords": [
6
6
  "mcp",
@@ -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 VERSION = "0.2.0";
11
- const REPO = "Shangri-la-0428/Thronglets";
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": {