@ouro.bot/cli 0.1.0-alpha.787 → 0.1.0-alpha.789

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.789",
6
+ "changes": [
7
+ "Warm private-runtime machine credentials before accepting buffered work, so Sanctuary turns can use machine-scoped tools immediately after startup."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.788",
12
+ "changes": [
13
+ "Allow verified operator CLI and daemon await private wakes by default, including queued await-expiry alerts."
14
+ ]
15
+ },
4
16
  {
5
17
  "version": "0.1.0-alpha.787",
6
18
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.787",
2
+ "runtimeVersion": "0.1.0-alpha.789",
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>Mendelow Cloud Butler</Name>
4
- <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.787</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.789</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -179,9 +179,8 @@ Promise.resolve().then(() => __importStar(require("./runtime-credentials"))).the
179
179
  if (providerTargets.length > 0 && providerPoolMissingTargets(providerPool, providerTargets)) {
180
180
  await refreshProviderCredentialPool(agentName, { preserveCachedOnFailure: true, providers: providerTargets }).catch(() => undefined);
181
181
  }
182
- /* v8 ignore next 7 -- process-start best-effort machine credential refresh runs in a child entrypoint and is covered operationally by daemon startup tests @preserve */
183
182
  if (!readMachineRuntimeCredentialConfig(agentName).ok) {
184
- void Promise.resolve().then(() => __importStar(require("./machine-identity"))).then(({ loadOrCreateMachineIdentity }) => {
183
+ await Promise.resolve().then(() => __importStar(require("./machine-identity"))).then(({ loadOrCreateMachineIdentity }) => {
185
184
  const machine = loadOrCreateMachineIdentity();
186
185
  return refreshMachineRuntimeCredentialConfig(agentName, machine.machineId, { preserveCachedOnFailure: true });
187
186
  })
@@ -111,6 +111,12 @@ function emitPolicyEvaluated(deps, input) {
111
111
  meta: payload.meta,
112
112
  });
113
113
  }
114
+ function hasOriginRef(refs, kind, id) {
115
+ return refs.some((ref) => ref.kind === kind && ref.id === id);
116
+ }
117
+ function hasNonEmptyOriginRef(refs, kind) {
118
+ return refs.some((ref) => ref.kind === kind && typeof ref.id === "string" && ref.id.trim().length > 0);
119
+ }
114
120
  async function defaultResolveProviderLane(agent, lane, deps) {
115
121
  const bundlesRoot = deps.bundlesRoot ?? (0, identity_1.getAgentBundlesRoot)();
116
122
  const { config } = (0, auth_flow_1.readAgentConfigForAgent)(agent, bundlesRoot);
@@ -137,13 +143,31 @@ async function evaluatePolicy(request, context, deps) {
137
143
  return deps.evaluatePolicy(request, context);
138
144
  const originRefs = request.originRefs ?? [];
139
145
  if (request.triggerSource === "external-event"
140
- && originRefs.some((ref) => ref.kind === "external-event" && typeof ref.id === "string" && ref.id.length > 0)
141
- && originRefs.some((ref) => ref.kind === "daemon-command" && ref.id === "external.event.submit")) {
146
+ && hasNonEmptyOriginRef(originRefs, "external-event")
147
+ && hasOriginRef(originRefs, "daemon-command", "external.event.submit")) {
142
148
  return {
143
149
  result: "allow",
144
150
  reason: "verified daemon external event",
145
151
  };
146
152
  }
153
+ if (request.triggerSource === "operator-cli"
154
+ && hasOriginRef(originRefs, "cli-command", "ouro msg")
155
+ && hasNonEmptyOriginRef(originRefs, "daemon-receipt")) {
156
+ return {
157
+ result: "allow",
158
+ reason: "verified operator CLI message",
159
+ };
160
+ }
161
+ if ((request.triggerSource === "await-poke" || request.triggerSource === "await-scheduler" || request.triggerSource === "await-expiry")
162
+ && hasNonEmptyOriginRef(originRefs, "await")
163
+ && (hasOriginRef(originRefs, "daemon-command", "await.poke")
164
+ || hasOriginRef(originRefs, "scheduler", "await-scheduler")
165
+ || hasOriginRef(originRefs, "await-alert", "expired"))) {
166
+ return {
167
+ result: "allow",
168
+ reason: "verified daemon await check",
169
+ };
170
+ }
147
171
  return {
148
172
  result: "deny",
149
173
  reason: "private runtime policy denies by default",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.787",
3
+ "version": "0.1.0-alpha.789",
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.787",
9
+ "version": "0.1.0-alpha.789",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.78.0",
12
12
  "@azure/identity": "^4.13.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.787",
3
+ "version": "0.1.0-alpha.789",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },