@ouro.bot/cli 0.1.0-alpha.1392 → 0.1.0-alpha.1393

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 (45) hide show
  1. package/changelog.json +6 -0
  2. package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
  3. package/deploy/unraid/sanctuary.xml +1 -1
  4. package/dist/a2a/refusals.js +2 -0
  5. package/node_modules/@ouro.bot/friends/README.md +17 -4
  6. package/node_modules/@ouro.bot/friends/actions/generated/mcp.json +1105 -0
  7. package/node_modules/@ouro.bot/friends/changelog.json +72 -0
  8. package/node_modules/@ouro.bot/friends/dist/a2a-client/adapter.d.ts +1 -1
  9. package/node_modules/@ouro.bot/friends/dist/a2a-client/envelope-binding.d.ts +2 -2
  10. package/node_modules/@ouro.bot/friends/dist/a2a-client/envelope-binding.js +12 -8
  11. package/node_modules/@ouro.bot/friends/dist/channel.d.ts +5 -0
  12. package/node_modules/@ouro.bot/friends/dist/channel.js +12 -1
  13. package/node_modules/@ouro.bot/friends/dist/connect.js +8 -8
  14. package/node_modules/@ouro.bot/friends/dist/grant-store-file.d.ts +3 -0
  15. package/node_modules/@ouro.bot/friends/dist/grant-store-file.js +30 -9
  16. package/node_modules/@ouro.bot/friends/dist/grants.d.ts +5 -1
  17. package/node_modules/@ouro.bot/friends/dist/grants.js +22 -6
  18. package/node_modules/@ouro.bot/friends/dist/index.d.ts +3 -3
  19. package/node_modules/@ouro.bot/friends/dist/index.js +5 -2
  20. package/node_modules/@ouro.bot/friends/dist/link-identity.js +9 -9
  21. package/node_modules/@ouro.bot/friends/dist/mcp/bin.js +2 -1
  22. package/node_modules/@ouro.bot/friends/dist/mcp/dispatch.js +211 -16
  23. package/node_modules/@ouro.bot/friends/dist/mcp/run-main.js +24 -13
  24. package/node_modules/@ouro.bot/friends/dist/mcp/schemas.js +9 -431
  25. package/node_modules/@ouro.bot/friends/dist/mcp/server.js +2 -1
  26. package/node_modules/@ouro.bot/friends/dist/message.d.ts +19 -1
  27. package/node_modules/@ouro.bot/friends/dist/message.js +31 -1
  28. package/node_modules/@ouro.bot/friends/dist/mission-result.d.ts +7 -0
  29. package/node_modules/@ouro.bot/friends/dist/mission-result.js +14 -7
  30. package/node_modules/@ouro.bot/friends/dist/mission-store-file.js +8 -0
  31. package/node_modules/@ouro.bot/friends/dist/missions.js +6 -5
  32. package/node_modules/@ouro.bot/friends/dist/notes.js +4 -4
  33. package/node_modules/@ouro.bot/friends/dist/outcomes.js +1 -1
  34. package/node_modules/@ouro.bot/friends/dist/share.d.ts +6 -1
  35. package/node_modules/@ouro.bot/friends/dist/share.js +40 -4
  36. package/node_modules/@ouro.bot/friends/dist/store-file.js +28 -13
  37. package/node_modules/@ouro.bot/friends/dist/tokens.d.ts +3 -1
  38. package/node_modules/@ouro.bot/friends/dist/tokens.js +5 -2
  39. package/node_modules/@ouro.bot/friends/dist/trust-mutation.js +2 -2
  40. package/node_modules/@ouro.bot/friends/dist/types.d.ts +12 -0
  41. package/node_modules/@ouro.bot/friends/dist/util/safe-id.d.ts +1 -0
  42. package/node_modules/@ouro.bot/friends/dist/util/safe-id.js +10 -0
  43. package/node_modules/@ouro.bot/friends/package.json +2 -1
  44. package/npm-shrinkwrap.json +6 -6
  45. package/package.json +2 -2
package/changelog.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.1393",
6
+ "changes": [
7
+ "Use friends 0.1.0-alpha.30, which can carry a signed answer to an approval prompt."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1392",
6
12
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1392",
2
+ "runtimeVersion": "0.1.0-alpha.1393",
3
3
  "bundleSchemaVersion": 3,
4
4
  "lastUpdated": "2026-09-03T00:00:00.000Z"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <Container version="2">
3
3
  <Name>ouro-butler</Name>
4
- <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1392</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1393</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -19,6 +19,8 @@ const REFUSALS = {
19
19
  unbound_delegation: { message: "the delegated command has no signed binding (the sender runs an older harness)", next: UPGRADE, retry: false },
20
20
  stale_envelope: { message: "the envelope is more than 7 days old or dated in the future", next: `Check the sender's clock. ${RESEND}`, retry: false },
21
21
  stale_delegation: { message: "the delegated command is more than 10 minutes old", next: `Check the sender's clock. ${RESEND}`, retry: false },
22
+ unbound_approval_answer: { message: "the approval answer has no signed binding (the sender runs an older harness)", next: UPGRADE, retry: false },
23
+ stale_approval_answer: { message: "the approval answer is more than 10 minutes old or dated in the future", next: "Check the sender's clock. Answer again from the approval prompt if it is still open.", retry: false },
22
24
  replayed: { message: "this message was already received", next: `Nothing to do if it was delivered; otherwise ${RESEND.toLowerCase()}`, retry: false },
23
25
  in_flight: { message: "the same message is being handled right now", next: "Retry in a moment.", retry: true },
24
26
  resolve_failed: { message: "the sender's DID could not be resolved or pinned (it is not a did:key, its pinned key differs, or a key rotation was refused)", next: "Send from the identity this agent knows you by, or ask the operator to re-link you.", retry: false },
@@ -124,10 +124,23 @@ Because it is signed, a recipient who opens a message cannot re-seal the same si
124
124
  third party, and a relabelled kind fails. `receiveShare` (and `checkEnvelopeBinding`, for hosts with
125
125
  their own receive path) rejects with `signed_recipient_mismatch`, `signed_kind_mismatch`,
126
126
  `malformed_binding` or `replayed` (same `mid:<sender>:<id>`). Every envelope must also be fresh:
127
- `issuedAt` (ISO-8601 with a zone) at most 7 days old, and an envelope carrying `onBehalfOf` at most
128
- 10 minutes old (`stale_envelope` / `stale_delegation`), with 2 minutes of clock skew allowed. An
129
- envelope with no `binding` (an older sender) is accepted with `bound: false` unless it is a
130
- delegated command (`unbound_delegation`) or the host sets `rejectUnboundEnvelopes` (`unbound_envelope`).
127
+ `issuedAt` (ISO-8601 with a zone) at most 7 days old, and an envelope carrying `onBehalfOf` or
128
+ `approvalAnswer` at most 10 minutes old (`stale_envelope` / `stale_delegation` /
129
+ `stale_approval_answer`), with 2 minutes of clock skew allowed. An envelope with no `binding` (an
130
+ older sender) is accepted with `bound: false` unless it is a delegated command
131
+ (`unbound_delegation`), an approval answer (`unbound_approval_answer`) or the host sets
132
+ `rejectUnboundEnvelopes` (`unbound_envelope`).
133
+
134
+ **Approval answers.** A message may carry a signed `approvalAnswer: { relayToken, decision }`, where
135
+ `relayToken` is 16 to 128 base64url characters and `decision` is `deny`, the only decision this
136
+ version accepts: a receiver refuses any other as malformed, so allowing `approve` takes a new
137
+ release. It is signed with the text, so a relay can neither add, strip nor change it, and it claims
138
+ nothing on its own: the recipient matches the token against an approval it routed to that sender.
139
+ `prepareMessage` refuses a malformed answer, or one combined with `onBehalfOf`, as
140
+ `invalid_approval_answer`; `receiveMessage` refuses the same as `malformed_message`, and refuses
141
+ any answer as `untrusted_source` when it is given no verifier or `tofuVerifier` (neither checks a signature).
142
+ `checkEnvelopeBinding` refuses an answer on any kind but `message` as `malformed_binding`. Only
143
+ harness code should set it, never a model-facing tool.
131
144
  A completed result carries the signed `bindingId`. `checkEnvelopeBinding` is check-only: a host
132
145
  with its own receive path must hold an in-memory claim across its own awaits, and mark the returned
133
146
  `seenKey` (and its blob key) in the ledger only after the signature verifies. `receiveShare` does