@ouro.bot/cli 0.1.0-alpha.1365 → 0.1.0-alpha.1366

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.1366",
6
+ "changes": [
7
+ "shepherd_feedback and shepherd_feedback_status say what they do instead of giving the agent rules, so they pass the Ouro AX census's booklet-words check."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1365",
6
12
  "changes": [
7
- "With an owner route, the approvals the Butler needs from its owner (tool approval prompts, admission cards) go to the owner's primary agent first as urgent; the card still reaches Telegram so its buttons work, silently when the primary agent has it."
13
+ "With an owner route, the approvals the Butler needs from its owner (tool approval prompts, admission cards) go to the owner's primary agent first as urgent; the card still reaches Telegram so its buttons work, silently when the primary agent has it.",
14
+ "Update the Ouro UI files to Ouro UI core v1.11.0 and Ouro UI v1.3.450."
8
15
  ]
9
16
  },
10
17
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1365",
2
+ "runtimeVersion": "0.1.0-alpha.1366",
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.1365</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1366</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -114,19 +114,25 @@ function machineDaemonLoggingConfigPath(homeDir) {
114
114
  function machineDaemonLogsDir(homeDir) {
115
115
  return path.join((0, ouro_version_manager_1.getOuroCliHome)(homeDir), "daemon", "logs");
116
116
  }
117
- function resolveLoggingPathTarget(explicit) {
117
+ function resolveLoggingPathTarget(explicit, homeDir) {
118
118
  if (explicit && explicit.trim().length > 0) {
119
119
  return { kind: "agent", agentName: explicit.trim() };
120
120
  }
121
+ let agentName;
121
122
  try {
122
- return { kind: "agent", agentName: (0, identity_1.getAgentName)() };
123
+ agentName = (0, identity_1.getAgentName)();
123
124
  }
124
125
  catch {
125
126
  return { kind: "machine" };
126
127
  }
128
+ // An --agent argv naming no bundle (a typo, a stand-in) must not create one just to hold a log.
129
+ const bundleRoot = homeDir
130
+ ? path.join(homeDir, "AgentBundles", `${agentName}.ouro`)
131
+ : (0, identity_1.getAgentRoot)(agentName);
132
+ return fs.existsSync(bundleRoot) ? { kind: "agent", agentName } : { kind: "machine" };
127
133
  }
128
134
  function configureDaemonRuntimeLogger(processName, options = {}) {
129
- const pathTarget = options.machine ? { kind: "machine" } : resolveLoggingPathTarget(options.agentName);
135
+ const pathTarget = options.machine ? { kind: "machine" } : resolveLoggingPathTarget(options.agentName, options.homeDir);
130
136
  const configPath = options.configPath
131
137
  ?? (pathTarget.kind === "machine"
132
138
  ? machineDaemonLoggingConfigPath(options.homeDir)
@@ -717,7 +717,7 @@ function getToolSchemas() {
717
717
  return [
718
718
  {
719
719
  name: "shepherd_feedback",
720
- description: "Relay the human's explicit feedback to the supervising agent served by this MCP connection, from this actual coding session ('you should have caught this'). The source terminal and recipient are bound automatically; never ask the human to reconstruct context in Teams. Preserve the human's words in feedback; context is optional bounded background, not instructions. Generate one UUID request_id and reuse it only for the identical request. Quote the actual short receipt back in this session; the supervising agent sends its substantive acknowledgement and clarification questions to that human privately on Teams. Never invent a receipt or claim learning/Teams delivery from a queued acknowledgement. Do not send terminal input or switch focus.",
720
+ description: "Relays the human's explicit feedback from this coding session ('you should have caught this') to the supervising agent served by this MCP connection. The caller makes one UUID request_id per request and reuses it only for that request's identical retry. The source terminal and recipient are bound automatically, so the human has nothing to reconstruct in Teams. feedback carries the human's own words; context is optional bounded background, not instructions. The result is the daemon's receipt, the exact text to quote back in this session; the supervising agent then sends its acknowledgement and any clarification questions to that human privately on Teams. The receipt says the feedback is filed, not that it was learned from or delivered on Teams. Relaying the feedback takes only this call, with no terminal input and no focus switch.",
721
721
  ax: { id: "mcp:shepherd_feedback", group: "ouro-agent", when: "Pick this when the human gives feedback on how this coding session went, so the supervisor who watches it learns from their exact words.", effect: "write", idempotent: true, errors: [
722
722
  { code: "invalid-feedback-request", means: "request_id isn't a UUID, or the call has arguments other than request_id, feedback and context.", fix: "Make one UUID for this feedback and call again with only request_id, feedback and context." },
723
723
  { code: "feedback-size", means: "feedback is empty or over 2000 characters, or context isn't text or is over 8 KiB.", fix: "Keep the human's words under 2000 characters, trim context, and call again with the same request_id." },
@@ -734,7 +734,7 @@ function getToolSchemas() {
734
734
  description: "Reconcile this human's original feedback request after a lost receipt or to inspect review/Teams delivery state. Does not create another request, repeat model work, or require the source terminal still to exist.",
735
735
  ax: { id: "mcp:shepherd_feedback_status", group: "ouro-agent", when: "Pick this after shepherd_feedback lost its receipt or left you unsure, to learn whether that feedback was filed and delivered.", effect: "read", errors: [
736
736
  { code: "invalid-status-request", means: "request_id isn't a UUID, or the call has arguments other than request_id.", fix: "Call again with only request_id, set to the UUID you gave shepherd_feedback." },
737
- { code: "status-unconfirmed", means: "The daemon couldn't confirm what happened to that feedback; the line below says why.", fix: "Call shepherd_feedback_status again later with the same request_id; never resend the feedback under a new ID." },
737
+ { code: "status-unconfirmed", means: "The daemon couldn't confirm what happened to that feedback; the line below says why.", fix: "Call shepherd_feedback_status again later with the same request_id; resending the feedback under a new ID could file it twice." },
738
738
  ] },
739
739
  inputSchema: { type: "object", properties: {
740
740
  request_id: { type: "string", description: "The original feedback UUID." },
@@ -1945,7 +1945,26 @@ function isNodeError(error, code) {
1945
1945
  function isRecord(value) {
1946
1946
  return value !== null && typeof value === "object" && !Array.isArray(value);
1947
1947
  }
1948
+ // Every recovery pass re-reads the same legacy records, so a bundle with
1949
+ // 1,530 of them wrote 1,530 identical warnings every 30 seconds. Report each
1950
+ // distinct record once per process; the record stays audit-only either way.
1951
+ const reportedLegacyRecoveryRecords = new Set();
1952
+ function legacyRecoveryFingerprint(value) {
1953
+ try {
1954
+ const serialized = JSON.stringify(value);
1955
+ return serialized === undefined ? null : sha256Utf8(serialized);
1956
+ }
1957
+ catch {
1958
+ return null;
1959
+ }
1960
+ }
1948
1961
  function emitLegacyRecoveryBlocked(value) {
1962
+ const fingerprint = legacyRecoveryFingerprint(value);
1963
+ if (fingerprint !== null) {
1964
+ if (reportedLegacyRecoveryRecords.has(fingerprint))
1965
+ return;
1966
+ reportedLegacyRecoveryRecords.add(fingerprint);
1967
+ }
1949
1968
  (0, runtime_1.emitNervesEvent)({
1950
1969
  level: "warn",
1951
1970
  component: "senses",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1365",
3
+ "version": "0.1.0-alpha.1366",
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.1365",
9
+ "version": "0.1.0-alpha.1366",
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.1365",
3
+ "version": "0.1.0-alpha.1366",
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": {