@ouro.bot/cli 0.1.0-alpha.1389 → 0.1.0-alpha.1390

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 CHANGED
@@ -1,10 +1,17 @@
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.1390",
6
+ "changes": [
7
+ "Approval prompts show a tool's declared confirm question, and a declined call answers with the stable code approval-denied (#1699)."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1389",
6
12
  "changes": [
7
- "An approval-gated tool, including a bundle's declared consequential MCP tool, no longer runs on a voice call or through ouro mcp call, where no one can be asked: it answers that it needs approval and nothing runs."
13
+ "An approval-gated tool, including a bundle's declared consequential MCP tool, no longer runs on a voice call or through ouro mcp call, where no one can be asked: it answers that it needs approval and nothing runs.",
14
+ "Update the Ouro UI files to Ouro UI v1.3.459."
8
15
  ]
9
16
  },
10
17
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1389",
2
+ "runtimeVersion": "0.1.0-alpha.1390",
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.1389</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1390</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -85,7 +85,7 @@ function isSessionEventOutbound(value) {
85
85
  && typeof record.deliveryId === "string" && record.deliveryId.length > 0;
86
86
  }
87
87
  const APPROVAL_TERMINAL_TEXT = {
88
- denied: "approval denied by requester; the protected action was not executed",
88
+ denied: "approval-denied: approval denied by requester; the protected action was not executed",
89
89
  expired: "approval expired before execution; the protected action was not executed",
90
90
  drifted: "approval became invalid before execution; the protected action was not executed",
91
91
  abandoned_before_attempt: "approval was abandoned before execution; the protected action was not executed; request a fresh approval",
@@ -126,7 +126,9 @@ function materializeApprovalTerminal(input) {
126
126
  if (!content)
127
127
  throw new Error(`approval state ${input.record.state} cannot be materialized`);
128
128
  const resumeProvider = input.record.state === "succeeded" || input.record.state === "failed" || input.record.state === "denied";
129
- const exactPair = hasExactMaterializedApprovalPair(messages, input.checkpoint, input.record.toolCallId, content);
129
+ // A denial materialized before the stable code was added still counts as materialized.
130
+ const exactPair = hasExactMaterializedApprovalPair(messages, input.checkpoint, input.record.toolCallId, content)
131
+ || (input.record.state === "denied" && hasExactMaterializedApprovalPair(messages, input.checkpoint, input.record.toolCallId, content.replace(/^approval-denied: /, "")));
130
132
  if (exactPair) {
131
133
  return {
132
134
  messages,
@@ -75,12 +75,15 @@ function telegramApprovalDecisionBarrierHooks(effectBarrier) {
75
75
  function approvalContinuationRunAgentOptions(toolContext, approvalCoordinator) {
76
76
  return { toolContext: toolContext, approvalCoordinator };
77
77
  }
78
- function formatTelegramApprovalPrompt(toolName, args) {
78
+ /** The question the person is asked: the tool's declared `confirm` when its card has one, else a generic one with the exact arguments. */
79
+ function formatTelegramApprovalPrompt(toolName, args, declaredConfirm) {
79
80
  if (toolName === "sanctuary_resume_download_queue")
80
81
  return "Resume household downloads? This can spend prepaid download credit. I’ll verify the queue actually resumed.";
81
82
  const container = args.container;
82
83
  if (toolName === "unraid_restart_container" && typeof container === "string" && container.length > 0 && container.length <= 128 && !container.includes("\n"))
83
84
  return `Restart ${container}?`;
85
+ if (declaredConfirm)
86
+ return declaredConfirm;
84
87
  return `Approve ${toolName} with exact arguments ${JSON.stringify(args)}?`;
85
88
  }
86
89
  async function executeApprovedTelegramTool(name, args, execute, scenarioHandleDigest, approvalId, effectBarrier = () => undefined) {
@@ -365,7 +368,7 @@ function createTelegramApprovalRuntime(options) {
365
368
  preCallMessages: request.preCallMessages,
366
369
  hooks: telegramApprovalCommitBarrierHooks(effectBarrier),
367
370
  });
368
- const prompt = formatTelegramApprovalPrompt(request.toolCall.function.name, request.arguments);
371
+ const prompt = formatTelegramApprovalPrompt(request.toolCall.function.name, request.arguments, resolveTool(request.toolCall.function.name, request.liveToolContext?.toolSelection)?.ax?.confirm);
369
372
  effectBarrier();
370
373
  const actionDigest = (0, node_crypto_1.createHash)("sha256").update(JSON.stringify({ toolName: committed.record.toolName, argumentDigest: committed.record.argumentDigest })).digest("hex");
371
374
  const targetDigest = (0, node_crypto_1.createHash)("sha256").update(JSON.stringify({ container: committed.record.arguments.container })).digest("hex");
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1389",
3
+ "version": "0.1.0-alpha.1390",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@ouro.bot/cli",
9
- "version": "0.1.0-alpha.1389",
9
+ "version": "0.1.0-alpha.1390",
10
10
  "bundleDependencies": [
11
11
  "@ouro.bot/friends"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1389",
3
+ "version": "0.1.0-alpha.1390",
4
4
  "description": "Ouroboros, the agent harness: agents with durable memory that live where you talk (terminal, Teams, iMessage, mail, voice) and use real tools. Start with npx ouro.bot@latest.",
5
5
  "homepage": "https://ouroboros.bot/",
6
6
  "engines": {