@haven_ai/connect 0.1.21-alpha.0 → 0.1.23-alpha.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 CHANGED
@@ -25,3 +25,65 @@ Do not point it at a project repository, shared folder, or cloud-synced folder.
25
25
  Use `--ack-local-tools` with Haven-generated setup prompts. It prepares the
26
26
  local Haven tools acknowledgement during setup so Codex and Claude Code can load
27
27
  Haven after a normal restart.
28
+
29
+ ## Supported runtimes
30
+
31
+ The default setup writes the hosted Haven MCP (using the agent API key for
32
+ identity) plus a separate local signer. The API key identifies the agent; the
33
+ locally held signer key and the user's approved Haven wallet rules remain the
34
+ spending authority.
35
+
36
+ | Runtime | Configuration written by setup | Activate the new entry |
37
+ | --- | --- | --- |
38
+ | Claude Code | User MCP registry | Start a new Claude Code session. |
39
+ | Codex CLI | `~/.codex/config.toml` | Start a fresh session, for example `codex resume --last`. |
40
+ | Codex Desktop | `~/.codex/config.toml` | Quit and reopen the app. |
41
+ | Cursor | Cursor MCP configuration | Wait for hot reload; no app restart is required. |
42
+ | VS Code / VS Code Insiders | VS Code MCP configuration | Wait for hot reload; no app restart is required. |
43
+ | Claude Desktop | Claude Desktop MCP configuration | Quit and reopen the app. |
44
+ | Hermes Agent | `$HERMES_HOME/config.yaml` + `.env`, or `~/.hermes/config.yaml` + `.env` | Start a new session; gateway users run `/restart`. |
45
+
46
+ ## After setup
47
+
48
+ 1. Return to Haven and approve the agent rules. Approval — not restarting —
49
+ unlocks the Haven tools.
50
+ 2. Activate the runtime using the table above.
51
+ 3. In the activated runtime, run the read-only `haven_get_agent` and
52
+ `haven_get_allowances` tools to confirm the Haven wallet and live budget.
53
+ Do not sign, fund, or create a payment to verify setup.
54
+
55
+ ### Structured output for automation
56
+
57
+ Pass `--json` when a launcher needs a machine-readable completion record. Connect
58
+ writes progress and human recovery notes to stderr and exactly one JSON object
59
+ to stdout, with `schema_version: 1` and `outcome` set to `complete`,
60
+ `action_required`, or `failed`. The object includes runtime/topology status,
61
+ probe result, activation and next-action guidance, approval state/expiry (null
62
+ when the backend does not provide an approval expiry), and the two
63
+ read-only verification tools. It contains no API key, private key, credential
64
+ contents, full credential paths, or full delegate address. The same redacted
65
+ object is available to library callers as `runConnect(...).outcome`; the older
66
+ fields remain for additive compatibility.
67
+
68
+ For a recoverable install, configuration, probe, consent, or manual-runtime
69
+ condition, inspect `error.code` and `error.next_action`, then follow the safe
70
+ next action. A failed setup emits `outcome: "failed"` with a stable error code;
71
+ it never presents credential material as a recovery diagnostic.
72
+
73
+ If the setup challenge expires, return to Haven to start a fresh connection and
74
+ rerun Connect. If a runtime write, installation, or probe fails, follow the
75
+ structured `error.next_action` (or its human equivalent). The `other` runtime
76
+ is the manual exception: finish the secret-free file-reference setup it prints,
77
+ then start a fresh runtime session. Do not manually edit managed runtime
78
+ configuration or paste credentials into prompts, logs, or configuration files.
79
+
80
+ Connect abbreviates the public delegate address in normal output. Operators who
81
+ need its full public identifier can inspect the owner-only, non-secret
82
+ `agent.json` orientation file that Connect reports; do not inspect or share
83
+ `identity.json` or `signer.json` for diagnostics because they contain secrets.
84
+
85
+ For Hermes, Connect stores the hosted-MCP API key in the matching owner-only
86
+ `.env` file and keeps only `Bearer ${MCP_HAVEN_API_KEY}` in `config.yaml`.
87
+ Hermes requires its Python MCP SDK support to be installed. If Haven tools do
88
+ not appear after restart, run `pip install mcp` in the Hermes environment, then
89
+ restart Hermes and check `hermes mcp list`.