@ouro.bot/cli 0.1.0-alpha.1663 → 0.1.0-alpha.1664

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,13 +1,24 @@
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.1664",
6
+ "changes": [
7
+ "Internal only, with no change to how the Butler or the eval behaves: two more core harness files stop importing Butler code. The tool context keeps the Butler's root-host binding as an opaque value that only the Butler's root-host tool reads, and the eval's Telegram turn takes its fake house (agent, owner profile, answer checks and synthetic services) as an argument, with the synthetic Sanctuary supplying the default."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1663",
6
12
  "changes": [
7
- "Update the Ouro UI files to Ouro UI v1.3.599.",
8
13
  "A letter now counts as seen when the person writes to the agent in the same one-to-one iMessage chat after the letter arrived there, even if their read receipts are off. Before, a letter was marked seen only from a read receipt, so for someone who doesn't send read receipts it stayed unseen even after they had replied."
9
14
  ]
10
15
  },
16
+ {
17
+ "version": "0.1.0-alpha.1662",
18
+ "changes": [
19
+ "Update the Ouro UI files to Ouro UI v1.3.599."
20
+ ]
21
+ },
11
22
  {
12
23
  "version": "0.1.0-alpha.1661",
13
24
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1663",
2
+ "runtimeVersion": "0.1.0-alpha.1664",
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.1663</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1664</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createSyntheticSanctuary = createSyntheticSanctuary;
4
+ exports.syntheticSanctuaryHouse = syntheticSanctuaryHouse;
4
5
  const tools_unraid_1 = require("../../repertoire/tools-unraid");
5
6
  const sanctuary_container_policy_1 = require("../../repertoire/sanctuary-container-policy");
6
7
  const sanctuary_media_optimization_1 = require("../../senses/sanctuary-media-optimization");
8
+ const sanctuary_runtime_1 = require("../../senses/sanctuary-runtime");
7
9
  const runtime_1 = require("../../nerves/runtime");
8
10
  const OBSERVED_AT = "2026-01-15T12:00:00.000Z";
9
11
  const SERVER_ID = "eval:server";
@@ -109,3 +111,7 @@ function createSyntheticSanctuary() {
109
111
  restartContainer: async () => unavailable("The eval sandbox does not restart containers"),
110
112
  };
111
113
  }
114
+ /** The Butler's fake house for the eval Telegram turn: its bundle, its owner profile, its answer checks and the synthetic services. */
115
+ function syntheticSanctuaryHouse() {
116
+ return { agentName: "sanctuary", ownerProfileId: "sanctuary-owner", toolContext: { answerGates: sanctuary_runtime_1.SANCTUARY_ANSWER_GATES, sanctuary: createSyntheticSanctuary() } };
117
+ }
@@ -45,20 +45,18 @@ const friends_1 = require("@ouro.bot/friends");
45
45
  const identity_1 = require("../../heart/identity");
46
46
  const context_1 = require("../../mind/context");
47
47
  const runtime_1 = require("../../nerves/runtime");
48
- const sanctuary_runtime_1 = require("../../senses/sanctuary-runtime");
49
48
  const shared_turn_1 = require("../../senses/shared-turn");
50
49
  const telegram_1 = require("../../senses/telegram");
51
50
  const telegram_identity_key_1 = require("../../senses/telegram-identity-key");
52
51
  const synthetic_sanctuary_1 = require("./synthetic-sanctuary");
53
- const AGENT = "sanctuary";
54
52
  const BOT_ID = "7001";
55
53
  const OWNER_USER = "4242";
56
54
  const OWNER_FRIEND_ID = "eval-owner";
57
- async function writeOwner(agentRoot) {
55
+ async function writeOwner(agentRoot, capabilityProfileId) {
58
56
  const now = new Date().toISOString();
59
57
  await new friends_1.FileFriendStore(node_path_1.default.join(agentRoot, "friends")).put(OWNER_FRIEND_ID, {
60
58
  id: OWNER_FRIEND_ID, name: "Ari", trustLevel: "family", admissionState: "active", initiativePolicy: "proactive",
61
- capabilityProfileId: "sanctuary-owner",
59
+ capabilityProfileId,
62
60
  externalIds: [{ provider: "telegram-user", externalId: OWNER_USER, tenantId: BOT_ID, linkedAt: now }],
63
61
  tenantMemberships: [], toolPreferences: {}, notes: {}, totalTokens: 0, createdAt: now, updatedAt: now, schemaVersion: 1,
64
62
  });
@@ -138,14 +136,16 @@ function visibleText(html) {
138
136
  async function runTelegramTurn(input) {
139
137
  (0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.telegram_turn_start", message: "running one eval Telegram turn", meta: { steps: input.prefix.length } });
140
138
  try {
139
+ const house = input.house ?? (0, synthetic_sanctuary_1.syntheticSanctuaryHouse)();
140
+ const agent = house.agentName;
141
141
  const agentRoot = node_path_1.default.resolve(input.agentRoot);
142
- if (agentRoot !== (0, identity_1.getAgentRoot)(AGENT))
143
- throw new Error(`agentRoot must be the sanctuary bundle at ${(0, identity_1.getAgentRoot)(AGENT)}, where the turn reads it`);
144
- (0, identity_1.setAgentName)(AGENT);
145
- await writeOwner(agentRoot);
142
+ if (agentRoot !== (0, identity_1.getAgentRoot)(agent))
143
+ throw new Error(`agentRoot must be the ${agent} bundle at ${(0, identity_1.getAgentRoot)(agent)}, where the turn reads it`);
144
+ (0, identity_1.setAgentName)(agent);
145
+ await writeOwner(agentRoot, house.ownerProfileId);
146
146
  const identityKey = (0, telegram_identity_key_1.readOrCreateTelegramIdentityKey)(agentRoot);
147
147
  const sessionKey = `telegram:${(0, telegram_1.opaqueTelegramSubject)(identityKey, BOT_ID, OWNER_USER, OWNER_USER)}`;
148
- const sessionPath = (0, shared_turn_1.getSenseSessionPath)(AGENT, OWNER_FRIEND_ID, "telegram", sessionKey, agentRoot);
148
+ const sessionPath = (0, shared_turn_1.getSenseSessionPath)(agent, OWNER_FRIEND_ID, "telegram", sessionKey, agentRoot);
149
149
  node_fs_1.default.mkdirSync(node_path_1.default.dirname(sessionPath), { recursive: true });
150
150
  (0, context_1.saveSession)(sessionPath, [{ role: "system", content: "" }, ...input.prefix]);
151
151
  const timeline = [];
@@ -169,11 +169,11 @@ async function runTelegramTurn(input) {
169
169
  let turnError;
170
170
  let onMessage;
171
171
  const app = (0, telegram_1.createTelegramSenseApp)({
172
- agentName: AGENT,
172
+ agentName: agent,
173
173
  credentials,
174
174
  identityKey,
175
175
  _agentRoot: agentRoot,
176
- _toolContext: { agentRoot, answerGates: sanctuary_runtime_1.SANCTUARY_ANSWER_GATES, sanctuary: (0, synthetic_sanctuary_1.createSyntheticSanctuary)() },
176
+ _toolContext: { agentRoot, ...house.toolContext },
177
177
  api,
178
178
  createLongPoll: (options) => {
179
179
  onMessage = options.onMessage;
@@ -181,7 +181,7 @@ async function runTelegramTurn(input) {
181
181
  },
182
182
  _createInteractiveControl: (() => ({ socketPath: "unused", start: idle, stop: idle })),
183
183
  migrateIdentity: idle,
184
- ...(await (0, telegram_1.createProductionTelegramRelationshipComposition)(AGENT, credentials, agentRoot)),
184
+ ...(await (0, telegram_1.createProductionTelegramRelationshipComposition)(agent, credentials, agentRoot)),
185
185
  _runTurn: async (options) => {
186
186
  try {
187
187
  turn = await (0, shared_turn_1.runSenseTurn)({
@@ -54,6 +54,10 @@ const selections = new WeakMap();
54
54
  class RootHostAuthorizationError extends Error {
55
55
  }
56
56
  exports.RootHostAuthorizationError = RootHostAuthorizationError;
57
+ /** Core keeps `rootHost.binding` opaque; only this file sets it, always to a RootHostBinding, so reading it back is exact. */
58
+ function boundBinding(ctx) {
59
+ return ctx?.rootHost?.binding;
60
+ }
57
61
  function requireOwner(condition) {
58
62
  if (!condition)
59
63
  throw new RootHostAuthorizationError((0, tools_base_1.withCode)("Sanctuary root host authorization denied", "root-host-denied"));
@@ -99,7 +103,7 @@ function observationAccepted(ctx) {
99
103
  && root.observation.targetHost === root.port.pins.expectedTargetHost;
100
104
  }
101
105
  async function authorizeRootHostContext(ctx, expected) {
102
- const previous = ctx.rootHost?.binding;
106
+ const previous = boundBinding(ctx);
103
107
  const provenance = previous && bindings.get(previous);
104
108
  if (previous)
105
109
  bindings.delete(previous);
@@ -187,7 +191,7 @@ function validateRootHostToolArguments(args, targetHost) {
187
191
  }
188
192
  function selectRootHostTool(ctx, capabilities) {
189
193
  try {
190
- const binding = ctx?.rootHost?.binding;
194
+ const binding = boundBinding(ctx);
191
195
  const provenance = binding && bindings.get(binding);
192
196
  if (!ctx || !binding || !provenance || provenance.port !== ctx.rootHost.port || !capabilities?.has("approval-continuation")
193
197
  || !(0, node_util_1.isDeepStrictEqual)(binding, currentCoordinates(ctx)) || (!provenance.recovery && !observationAccepted(ctx)))
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1663",
3
+ "version": "0.1.0-alpha.1664",
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.1663",
9
+ "version": "0.1.0-alpha.1664",
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.1663",
3
+ "version": "0.1.0-alpha.1664",
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": {