@ouro.bot/cli 0.1.0-alpha.1655 → 0.1.0-alpha.1656

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,12 @@
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.1656",
6
+ "changes": [
7
+ "A Butler upgrade no longer stops when the installed DockerMan template has no operator trust Config. The live install's template has never had one: the root lifecycle adds the trust mount itself, naming it from the image. Such a template now has only its bundle Target moved to the image's Butler name, and moved back on a rollback. A template with no bundle Config, or with more than one trust Config, is still refused before anything changes."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1655",
6
12
  "changes": [
@@ -1385,8 +1385,10 @@ export function templateNeedsButlerName(text, name) {
1385
1385
 
1386
1386
  /**
1387
1387
  * The template with its bundle Config's Target and its trust Config's Target moved to this Butler name. Their Defaults and
1388
- * values, the host folders, stay. `{ problem }` when the parser cannot read it, it lacks exactly one bundle Config and one
1389
- * trust Config, a Target appears more than once in the text, or the result does not parse with exactly those two moved.
1388
+ * values, the host folders, stay. A template with no trust Config keeps none: the resident's trust mount comes from the root
1389
+ * lifecycle, which names it from the image, and the live install's template has never had one. `{ problem }` when the parser
1390
+ * cannot read it, it lacks exactly one bundle Config, it has more than one trust Config, a Target appears more than once in the
1391
+ * text, or the result does not parse with exactly those moved.
1390
1392
  */
1391
1393
  export function withButlerTargets(text, name, parse) {
1392
1394
  const configs = (document, targets) => document.children.filter((child) => child.name === "Config" && targets.includes(child.attributes.Target))
@@ -1394,17 +1396,18 @@ export function withButlerTargets(text, name, parse) {
1394
1396
  if (!before) return { problem: "the DockerMan template cannot be parsed" }
1395
1397
  const bundles = configs(before, BUTLER_NAMES.map(containerBundle))
1396
1398
  const trusts = configs(before, BUTLER_NAMES.map(trustTarget))
1397
- if (bundles.length !== 1 || trusts.length !== 1) return { problem: "the DockerMan template does not have exactly one bundle Config and one trust Config" }
1399
+ if (bundles.length !== 1 || trusts.length > 1) return { problem: "the DockerMan template does not have exactly one bundle Config and at most one trust Config" }
1398
1400
  let next = text
1399
- for (const [config, target] of [[bundles[0], containerBundle(name)], [trusts[0], trustTarget(name)]]) {
1401
+ const moves = [[bundles[0], containerBundle(name)], ...trusts.map((trust) => [trust, trustTarget(name)])]
1402
+ for (const [config, target] of moves) {
1400
1403
  const from = `Target="${config.attributes.Target}"`
1401
1404
  if (config.attributes.Target === target) continue
1402
1405
  if (next.split(from).length !== 2) return { problem: `the DockerMan template has ${from} more than once` }
1403
1406
  next = next.replace(from, `Target="${target}"`)
1404
1407
  }
1405
1408
  const after = parse(next)
1406
- if (!after || after.children.length !== before.children.length || configs(after, [containerBundle(name)]).length !== 1 || configs(after, [trustTarget(name)]).length !== 1) {
1407
- return { problem: "moving the DockerMan template's bundle and trust Targets did not leave exactly those two moved" }
1409
+ if (!after || after.children.length !== before.children.length || configs(after, [containerBundle(name)]).length !== 1 || configs(after, [trustTarget(name)]).length !== trusts.length) {
1410
+ return { problem: "moving the DockerMan template's bundle and trust Targets did not leave exactly those moved" }
1408
1411
  }
1409
1412
  return { text: next }
1410
1413
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1655",
2
+ "runtimeVersion": "0.1.0-alpha.1656",
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.1655</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1656</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,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1655",
3
+ "version": "0.1.0-alpha.1656",
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.1655",
9
+ "version": "0.1.0-alpha.1656",
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.1655",
3
+ "version": "0.1.0-alpha.1656",
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": {