@haven_ai/connect 0.1.0-alpha
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 +23 -0
- package/dist/cli.cjs +884 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +878 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +883 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +193 -0
- package/dist/index.d.ts +193 -0
- package/dist/index.js +863 -0
- package/dist/index.js.map +1 -0
- package/package.json +51 -0
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @haven_ai/connect
|
|
2
|
+
|
|
3
|
+
Connect Agent 2 local connector.
|
|
4
|
+
|
|
5
|
+
This command runs in the user's agent environment. It generates the agent
|
|
6
|
+
signing key and API key locally, stores them locally, and sends Haven only the
|
|
7
|
+
public signing address, proof signature, and API-key hash. Haven never receives
|
|
8
|
+
the private key or plaintext API key.
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npx -y @haven_ai/connect --setup hv_setup_... --api https://api.haven.example --runtime claude-code
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The connector writes owner-only credential files outside the project by default:
|
|
15
|
+
|
|
16
|
+
- `~/.haven/agents/<agent-id>/identity.json` contains the Haven API key.
|
|
17
|
+
- `~/.haven/agents/<agent-id>/signer.json` contains the local signer key.
|
|
18
|
+
|
|
19
|
+
The API key identifies the agent. It cannot spend by itself. Payments still need
|
|
20
|
+
the locally held signer key and the user-approved on-chain Haven wallet rules.
|
|
21
|
+
|
|
22
|
+
Use `--credentials-dir <path>` to choose a different local credential directory.
|
|
23
|
+
Do not point it at a project repository, shared folder, or cloud-synced folder.
|