@ouro.bot/cli 0.1.0-alpha.1346 → 0.1.0-alpha.1349

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,6 +1,18 @@
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.1349",
6
+ "changes": [
7
+ "Friends of the Butler can no longer restart a container; restarts stay with family (household profile version 7)."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.1347",
12
+ "changes": [
13
+ "media_blocklist_stalled takes dry_run: it reports which stalled downloads it would remove and re-search, and changes nothing. The replay gate then runs it as a dry run and does not count a dry run as a removal."
14
+ ]
15
+ },
4
16
  {
5
17
  "version": "0.1.0-alpha.1346",
6
18
  "changes": [
@@ -313,8 +313,10 @@ const digestCalls = (trace) => callsNamed(trace, /^house_digest_send$/)
313
313
  const digestIds = (entry) => { try { const ids = JSON.parse(entry.args).finding_ids; return Array.isArray(ids) ? ids : [] } catch { return [] } }
314
314
  // A call the harness refused before it ran deleted nothing; the queue readbacks still catch anything that did vanish.
315
315
  const refusedBeforeRunning = (call) => /^error: McpCallRejectedError\b/.test(call.result) || /"nothingRan"\s*:\s*true/.test(call.result)
316
+ // A dry run (the replay guard forces one where the tool declares dry_run) returns a plan and changes nothing.
317
+ const ranAsDryRun = (call) => /"result"\s*:\s*"dry_run"/.test(call.result)
316
318
  const deleted = (trace) => {
317
- const ran = trace.filter((call) => !refusedBeforeRunning(call))
319
+ const ran = trace.filter((call) => !refusedBeforeRunning(call) && !ranAsDryRun(call))
318
320
  return callsNamed(ran, /^media_blocklist/).length > 0 || ran.some((call) => /"method"\s*:\s*"DELETE"|\bDELETE\b/.test(call.args))
319
321
  }
320
322
 
@@ -1392,6 +1394,7 @@ export function selfTestFixtures() {
1392
1394
  "stall-kept": {
1393
1395
  pass: { trace: [call("1", "media_queue", {})], reply: "it is stuck", before: emptyObservation({ queue: [stalled] }), after: emptyObservation({ queue: [stalled] }) },
1394
1396
  fail: { trace: [call("1", "media_blocklist_stalled", {})], reply: "removed it", before: emptyObservation({ queue: [stalled] }), after: emptyObservation({ queue: [] }) },
1397
+ passDryRun: { trace: [call("1", "media_blocklist_stalled", { dry_run: true }, '{"result":"dry_run","would_remove":[{"queue_id":1}]}')], reply: "it is stuck; clearing it would remove that download", before: emptyObservation({ queue: [stalled] }), after: emptyObservation({ queue: [stalled] }) },
1395
1398
  },
1396
1399
  "request-status": {
1397
1400
  pass: { trace: [call("1", "media_request_status", { query: "Hope" }, '{"status":"downloading"}')], reply: "It's downloading now." },
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1346",
2
+ "runtimeVersion": "0.1.0-alpha.1349",
3
3
  "bundleSchemaVersion": 3,
4
4
  "lastUpdated": "2026-09-03T00:00:00.000Z"
5
5
  }
@@ -1175,6 +1175,11 @@ export async function mediaBlocklistStalled(a) {
1175
1175
  message: "Nothing removed. These downloads are not confirmed dead, and removing one deletes its progress. A partial download counts as dead only after two calls at least 30 minutes apart see no progress and no ETA; call again later to confirm. For missing episodes call media_fill_missing instead: it replaces a stalled download only when a seeded alternative exists. Pass owner_words only with the owner's own words asking to remove, clear or cancel this download; 'get them' is not that." }
1176
1176
  }
1177
1177
  if (!targets.length) return { result: "nothing_to_blocklist", queue: queueReport(rows, a.kind) }
1178
+ // A dry run returns the plan: no DELETE, no blocklist entry, no new search.
1179
+ if (a.dry_run === true) {
1180
+ return { result: "dry_run", would_remove: targets.map((r) => ({ queue_id: r.id, title: r.title ?? null, percent: pct(r) })), would_search_again: a.research !== false,
1181
+ ...(kept.length ? { kept } : {}), ...(ownerWords ? { owner_words: ownerWords } : {}), queue: queueReport(rows, a.kind) }
1182
+ }
1178
1183
  const removed = []
1179
1184
  const failed = []
1180
1185
  for (const row of targets) {
@@ -2272,6 +2277,7 @@ const TOOL_LIST = [
2272
2277
  queue_ids: { type: "array", items: { type: "number" } },
2273
2278
  research: { type: "boolean", description: "Search again afterwards. Default true." },
2274
2279
  owner_words: { type: "string", description: "The owner's exact words asking to remove, clear or cancel these downloads; requires queue_ids. Not for 'get them'." },
2280
+ dry_run: { type: "boolean", description: "true returns the plan (would_remove) and changes nothing. Default false." },
2275
2281
  }, required: ["kind", "service_id"] },
2276
2282
  },
2277
2283
  {
@@ -99,7 +99,7 @@
99
99
  ]
100
100
  },
101
101
  "sanctuary-household": {
102
- "version": 6,
102
+ "version": 7,
103
103
  "contextScopes": [
104
104
  "household.status",
105
105
  "own_requests"
@@ -118,7 +118,6 @@
118
118
  "unraid_get_disks",
119
119
  "unraid_get_system",
120
120
  "unraid_check_services",
121
- "unraid_restart_container",
122
121
  "settle",
123
122
  "speak",
124
123
  "react",
@@ -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.1346</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1349</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -60,7 +60,7 @@ function exactSanctuaryContainmentProfileBoundaries(value) {
60
60
  if (!value || typeof value !== "object" || Array.isArray(value))
61
61
  return false;
62
62
  const boundaries = value;
63
- const versions = { "sanctuary-owner": 23, "sanctuary-household": 6, "sanctuary-event": 4 };
63
+ const versions = { "sanctuary-owner": 23, "sanctuary-household": 7, "sanctuary-event": 4 };
64
64
  if (!(0, node_util_1.isDeepStrictEqual)(Object.keys(boundaries).sort(), Object.keys(versions).sort()))
65
65
  return false;
66
66
  const packageRoot = path.resolve(__dirname, "../../../deploy/unraid/sanctuary.ouro");
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1346",
3
+ "version": "0.1.0-alpha.1349",
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.1346",
9
+ "version": "0.1.0-alpha.1349",
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.1346",
3
+ "version": "0.1.0-alpha.1349",
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": {