@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.
- package/changelog.json +6 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/a2a/refusals.js +2 -0
- package/node_modules/@ouro.bot/friends/README.md +17 -4
- package/node_modules/@ouro.bot/friends/actions/generated/mcp.json +1105 -0
- package/node_modules/@ouro.bot/friends/changelog.json +72 -0
- package/node_modules/@ouro.bot/friends/dist/a2a-client/adapter.d.ts +1 -1
- package/node_modules/@ouro.bot/friends/dist/a2a-client/envelope-binding.d.ts +2 -2
- package/node_modules/@ouro.bot/friends/dist/a2a-client/envelope-binding.js +12 -8
- package/node_modules/@ouro.bot/friends/dist/channel.d.ts +5 -0
- package/node_modules/@ouro.bot/friends/dist/channel.js +12 -1
- package/node_modules/@ouro.bot/friends/dist/connect.js +8 -8
- package/node_modules/@ouro.bot/friends/dist/grant-store-file.d.ts +3 -0
- package/node_modules/@ouro.bot/friends/dist/grant-store-file.js +30 -9
- package/node_modules/@ouro.bot/friends/dist/grants.d.ts +5 -1
- package/node_modules/@ouro.bot/friends/dist/grants.js +22 -6
- package/node_modules/@ouro.bot/friends/dist/index.d.ts +3 -3
- package/node_modules/@ouro.bot/friends/dist/index.js +5 -2
- package/node_modules/@ouro.bot/friends/dist/link-identity.js +9 -9
- package/node_modules/@ouro.bot/friends/dist/mcp/bin.js +2 -1
- package/node_modules/@ouro.bot/friends/dist/mcp/dispatch.js +211 -16
- package/node_modules/@ouro.bot/friends/dist/mcp/run-main.js +24 -13
- package/node_modules/@ouro.bot/friends/dist/mcp/schemas.js +9 -431
- package/node_modules/@ouro.bot/friends/dist/mcp/server.js +2 -1
- package/node_modules/@ouro.bot/friends/dist/message.d.ts +19 -1
- package/node_modules/@ouro.bot/friends/dist/message.js +31 -1
- package/node_modules/@ouro.bot/friends/dist/mission-result.d.ts +7 -0
- package/node_modules/@ouro.bot/friends/dist/mission-result.js +14 -7
- package/node_modules/@ouro.bot/friends/dist/mission-store-file.js +8 -0
- package/node_modules/@ouro.bot/friends/dist/missions.js +6 -5
- package/node_modules/@ouro.bot/friends/dist/notes.js +4 -4
- package/node_modules/@ouro.bot/friends/dist/outcomes.js +1 -1
- package/node_modules/@ouro.bot/friends/dist/share.d.ts +6 -1
- package/node_modules/@ouro.bot/friends/dist/share.js +40 -4
- package/node_modules/@ouro.bot/friends/dist/store-file.js +28 -13
- package/node_modules/@ouro.bot/friends/dist/tokens.d.ts +3 -1
- package/node_modules/@ouro.bot/friends/dist/tokens.js +5 -2
- package/node_modules/@ouro.bot/friends/dist/trust-mutation.js +2 -2
- package/node_modules/@ouro.bot/friends/dist/types.d.ts +12 -0
- package/node_modules/@ouro.bot/friends/dist/util/safe-id.d.ts +1 -0
- package/node_modules/@ouro.bot/friends/dist/util/safe-id.js +10 -0
- package/node_modules/@ouro.bot/friends/package.json +2 -1
- package/npm-shrinkwrap.json +6 -6
- 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,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.
|
|
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>
|
package/dist/a2a/refusals.js
CHANGED
|
@@ -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`
|
|
128
|
-
10 minutes old (`stale_envelope` / `stale_delegation`
|
|
129
|
-
|
|
130
|
-
|
|
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
|