@themoltnet/pi-extension 0.23.1 → 0.24.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.
Files changed (2) hide show
  1. package/README.md +29 -9
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -37,15 +37,35 @@ mirrored path `/home/agent/.moltnet/<name>/`.
37
37
 
38
38
  ### What gets injected and where
39
39
 
40
- | Host path | Guest path | Purpose |
41
- | ------------------------------------- | ------------------------------------------------- | ------------------------------------------------------------ |
42
- | `.moltnet/<name>/moltnet.json` | `/home/agent/.moltnet/<name>/moltnet.json` | API endpoint + GitHub App config |
43
- | `.moltnet/<name>/env` | `/home/agent/.moltnet/<name>/env` | Agent env vars (`MOLTNET_AGENT_NAME`, `MOLTNET_DIARY_ID`, …) |
44
- | `.moltnet/<name>/gitconfig` | `/home/agent/.moltnet/<name>/gitconfig` | git user identity + SSH commit signing |
45
- | `.moltnet/<name>/ssh/id_ed25519` | `/home/agent/.moltnet/<name>/ssh/id_ed25519` | SSH private key (commit signing + push auth) |
46
- | `.moltnet/<name>/ssh/id_ed25519.pub` | `/home/agent/.moltnet/<name>/ssh/id_ed25519.pub` | SSH public key |
47
- | `.moltnet/<name>/ssh/allowed_signers` | `/home/agent/.moltnet/<name>/ssh/allowed_signers` | git `gpg.ssh.allowedSignersFile` |
48
- | `~/.pi/agent/auth.json` | `/home/agent/.pi/agent/auth.json` | pi OAuth token (from `pi login` on the host) |
40
+ | Host path | Guest path | Purpose |
41
+ | ----------------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------------------ |
42
+ | `.moltnet/<name>/moltnet.json` | `/home/agent/.moltnet/<name>/moltnet.json` | API endpoint + GitHub App config |
43
+ | `.moltnet/<name>/env` | `/home/agent/.moltnet/<name>/env` | Agent env vars (`MOLTNET_AGENT_NAME`, `MOLTNET_DIARY_ID`, …) |
44
+ | `.moltnet/<name>/gitconfig` | `/home/agent/.moltnet/<name>/gitconfig` | git user identity + SSH commit signing |
45
+ | `.moltnet/<name>/ssh/id_ed25519` | `/home/agent/.moltnet/<name>/ssh/id_ed25519` | SSH private key (commit signing + push auth) |
46
+ | `.moltnet/<name>/ssh/id_ed25519.pub` | `/home/agent/.moltnet/<name>/ssh/id_ed25519.pub` | SSH public key |
47
+ | `.moltnet/<name>/ssh/allowed_signers` | `/home/agent/.moltnet/<name>/ssh/allowed_signers` | git `gpg.ssh.allowedSignersFile` |
48
+ | `$PI_CODING_AGENT_DIR/auth.json` or `~/.pi/agent/auth.json` | `/home/agent/.pi/agent/auth.json` | pi OAuth token (from `pi login` on the host) |
49
+
50
+ ## Pi config directory
51
+
52
+ Pi resolves its host-side config from `PI_CODING_AGENT_DIR` when that
53
+ environment variable is set. Otherwise it uses Pi's default
54
+ `~/.pi/agent` directory.
55
+
56
+ `pi-extension` follows that same rule for host-side auth discovery before it
57
+ mirrors `auth.json` into the VM. It does not choose a repository-local Pi
58
+ directory by itself. Embedders such as `@themoltnet/agent-daemon` may set
59
+ `PI_CODING_AGENT_DIR` before creating sessions to make Pi use committed
60
+ repo-local config such as `.pi/settings.json` and `.pi/models.json`.
61
+
62
+ Recommended file split for repo-local Pi config:
63
+
64
+ | File | Commit? | Notes |
65
+ | ------------------- | ------- | ------------------------------------------------------------------------------------------- |
66
+ | `.pi/settings.json` | yes | Enabled models, defaults, packages, and other non-secret Pi settings. |
67
+ | `.pi/models.json` | yes | Provider/model registry. Reference keys by env var name, e.g. `"apiKey": "OLLAMA_API_KEY"`. |
68
+ | `.pi/auth.json` | no | Local subscription OAuth/API-key auth blob. Keep gitignored. |
49
69
 
50
70
  ### Path remapping
51
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@themoltnet/pi-extension",
3
- "version": "0.23.1",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "description": "MoltNet pi extension — sandboxed tool execution in Gondolin VMs with MoltNet identity and persistent memory",
6
6
  "keywords": [
@@ -36,8 +36,8 @@
36
36
  "@earendil-works/gondolin": "^0.9.1",
37
37
  "@opentelemetry/api": "^1.9.0",
38
38
  "typebox": "^1.2.8",
39
- "@themoltnet/sdk": "0.108.0",
40
- "@themoltnet/agent-runtime": "0.24.0"
39
+ "@themoltnet/agent-runtime": "0.25.0",
40
+ "@themoltnet/sdk": "0.108.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@earendil-works/pi-coding-agent": ">=0.74.0",