@haven_ai/sdk 0.0.0-dev.202609061001.b63a9a7 → 0.0.0-dev.202609061037.7cf43bb
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/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +58 -1
- package/dist/index.d.ts +58 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4424,6 +4424,20 @@ Nothing here needs you to. Steps 1-3 are links: hand your user the full \`<host>
|
|
|
4424
4424
|
|
|
4425
4425
|
Next: [your agent hit a 402](/402.md) \xB7 [everything agent-readable](/llms.txt)
|
|
4426
4426
|
`;
|
|
4427
|
+
var AGENT_ONBOARDING_PROMPT = `I have a Haven account and I am signed in at {{HAVEN_ORIGIN}}. Please set up Haven so you can pay for things within a budget I approve.
|
|
4428
|
+
|
|
4429
|
+
Start by reading {{HAVEN_ORIGIN}}/for-agents.md \u2014 it is written for you and explains which steps are mine.
|
|
4430
|
+
|
|
4431
|
+
Then:
|
|
4432
|
+
|
|
4433
|
+
1. Run \`npx @haven_ai/cli login\`. It prints a link and a code and does not need my password \u2014 it must never ask for it. Give me the link straight away and wait for me to approve it in my browser.
|
|
4434
|
+
2. Once I have approved, run \`haven agents connect --name <a name you choose> --budget <amount> --token USDC --period <minutes>\` with the budget I tell you. If I have not given you one, ask me before running it. Add \`--run\` to complete the connection in the same step.
|
|
4435
|
+
3. ${AGENT_APPROVAL_RELAY_JSON_SENTENCE}
|
|
4436
|
+
4. Once I have approved the budget, verify with the \`haven_get_agent\` tool: \`ready\` means you can pay, \`needs_approval\` means my approval has not landed yet.
|
|
4437
|
+
|
|
4438
|
+
Two things only I can do: approving that budget with my passkey, and funding the account with USDC on Base \u2014 no ETH, Haven sponsors the gas. Tell me if either is missing rather than working around it.
|
|
4439
|
+
|
|
4440
|
+
${AGENT_SECRET_HYGIENE_SENTENCE}`;
|
|
4427
4441
|
|
|
4428
4442
|
// src/skill-content.ts
|
|
4429
4443
|
var HAVEN_SKILL_MD = `---
|
|
@@ -4795,6 +4809,7 @@ exports.AGENT_COMMAND_MODIFICATION_SENTENCE = AGENT_COMMAND_MODIFICATION_SENTENC
|
|
|
4795
4809
|
exports.AGENT_JSON_MODE_SENTENCE = AGENT_JSON_MODE_SENTENCE;
|
|
4796
4810
|
exports.AGENT_LOCAL_KEY_SENTENCE = AGENT_LOCAL_KEY_SENTENCE;
|
|
4797
4811
|
exports.AGENT_NETWORK_ACCESS_SENTENCE = AGENT_NETWORK_ACCESS_SENTENCE;
|
|
4812
|
+
exports.AGENT_ONBOARDING_PROMPT = AGENT_ONBOARDING_PROMPT;
|
|
4798
4813
|
exports.AGENT_PAYMENT_FAILURE_CODE_VALUES = AGENT_PAYMENT_FAILURE_CODE_VALUES;
|
|
4799
4814
|
exports.AGENT_PAYMENT_NEXT_ACTION_VALUES = AGENT_PAYMENT_NEXT_ACTION_VALUES;
|
|
4800
4815
|
exports.AGENT_PAYMENT_PHASE_VALUES = AGENT_PAYMENT_PHASE_VALUES;
|