@ouro.bot/cli 0.1.0-alpha.1637 → 0.1.0-alpha.1638

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,15 +1,26 @@
1
1
  {
2
2
  "_note": "Each pull request writes its own change note under changes/; the release job on main gives each landed change its version and adds the notes here (scripts/release-version.cjs). On main this file stops at the last version set by hand; the published package has every release. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.1638",
6
+ "changes": [
7
+ "A call to `sanctuary_host_execute` with missing or malformed arguments is now refused with `invalid-arguments`, naming each field to fix, before the root host authority is asked. Before, the call was answered with a bare `root-host-denied`, so the agent couldn't tell its call was malformed. Authorization still runs before any other check and before anything runs, and well-formed calls take the same path as before."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1637",
6
12
  "changes": [
7
- "The Butler's host tools now read the Butler's name from the image they start (the name after `--package-managed-agent` in its entrypoint, else `sanctuary`). They use that name for every path inside the container: the bundle mount, the psyche mount, the trust mount `/etc/ouro/trust/<name>`, the vault and token containers, the bw profile, the replay gate, the sync cutover and the DockerMan template's bundle and trust Targets. The folders on the host never move: the bundle stays at `/mnt/user/appdata/ouro-butler/agent/sanctuary.ouro` and trust stays at `trust/sanctuary`. Resident mounts now use `--mount`, so a missing host folder stops the start instead of mounting an empty one. Preflight also refuses a leftover credential handoff that names another Butler, and a DockerMan template that can't be moved to the image's name. Every image still says `sanctuary`, so nothing changes until a release renames it.",
8
13
  "The Butler's media tools and its house rules no longer assume the bundle is mounted at `sanctuary.ouro`: the media server finds its credentials and state next to itself, and the instruction for house notes names `psyche/TACIT.md` in the bundle. Nothing changes for an install that is still called sanctuary.",
9
14
  "When the daemon runs the Butler under one name and finds its saved external events under the other name, it moves that folder over at start and treats those events as the running Butler's. If both folders exist it leaves both and logs a warning. A rollback moves them back the same way.",
10
15
  "The bundle migration takes `--butler-name <butler|sanctuary>`. When the bundle's own files (agent.json, the replay client's provision.json, recent attachments, skills and HOUSE.md) name the other Butler's container path, it points them at this one. The rollback record holds those files, so a rollback restores them exactly. Psyche, friends, sessions and logs are never touched."
11
16
  ]
12
17
  },
18
+ {
19
+ "version": "0.1.0-alpha.1636",
20
+ "changes": [
21
+ "The Butler's host tools now read the Butler's name from the image they start (the name after `--package-managed-agent` in its entrypoint, else `sanctuary`). They use that name for every path inside the container: the bundle mount, the psyche mount, the trust mount `/etc/ouro/trust/<name>`, the vault and token containers, the bw profile, the replay gate, the sync cutover and the DockerMan template's bundle and trust Targets. The folders on the host never move: the bundle stays at `/mnt/user/appdata/ouro-butler/agent/sanctuary.ouro` and trust stays at `trust/sanctuary`. Resident mounts now use `--mount`, so a missing host folder stops the start instead of mounting an empty one. Preflight also refuses a leftover credential handoff that names another Butler, and a DockerMan template that can't be moved to the image's name. Every image still says `sanctuary`, so nothing changes until a release renames it."
22
+ ]
23
+ },
13
24
  {
14
25
  "version": "0.1.0-alpha.1635",
15
26
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1637",
2
+ "runtimeVersion": "0.1.0-alpha.1638",
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.1637</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1638</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -468,13 +468,14 @@ async function preflightToolCall(name, args, ctx) {
468
468
  (0, runtime_1.emitNervesEvent)({ level: "error", event: "tool.error", component: "tools", message: "unknown or unselected tool requested", meta: { name } });
469
469
  return { kind: "rejected_before_handler", text: (0, tools_base_1.withCode)(unknownToolText(name, selection), "unknown-tool") };
470
470
  }
471
- if (name === tools_sanctuary_host_1.rootHostToolDefinition.tool.function.name)
472
- await (0, tools_sanctuary_host_1.authorizeRootHostToolInvocation)(ctx, def, args);
473
471
  if (selection || ctx?.relationshipAuthorization) {
474
472
  const validation = (0, tool_arguments_1.validateAdvertisedToolArguments)(JSON.stringify(args), schema.function.parameters ?? {});
475
473
  if (!validation.ok)
476
474
  return { kind: "rejected_before_handler", text: (0, tools_base_1.withCode)(`invalid tool arguments: ${validation.reason}`, "invalid-arguments") };
477
475
  }
476
+ // The schema is public, so a malformed call learns its fix before the root authority is asked.
477
+ if (name === tools_sanctuary_host_1.rootHostToolDefinition.tool.function.name)
478
+ await (0, tools_sanctuary_host_1.authorizeRootHostToolInvocation)(ctx, def, args);
478
479
  (0, tool_arguments_1.assertRelationshipToolOwner)(ctx);
479
480
  if (name === "unraid_restart_container" && ctx?.routineActionSelection?.kind === "denied") {
480
481
  return { kind: "rejected_before_handler", text: (0, tools_base_1.routineActionDenied)(ctx.routineActionSelection.reason) };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1637",
3
+ "version": "0.1.0-alpha.1638",
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.1637",
9
+ "version": "0.1.0-alpha.1638",
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.1637",
3
+ "version": "0.1.0-alpha.1638",
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": {