@ouro.bot/cli 0.1.0-alpha.1400 → 0.1.0-alpha.1402
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 +36 -20
- package/deploy/unraid/README.txt +3 -3
- package/deploy/unraid/docker-man-template-transaction.mjs +9 -3
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +2 -2
- package/dist/heart/daemon/container-spec-auditor.js +6 -2
- package/dist/senses/telegram-owner-route.js +6 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_note": "
|
|
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.1402",
|
|
6
|
+
"changes": [
|
|
7
|
+
"The owner route no longer shows the peer an approval or admission id: dedupe keys carry a hash of it."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.1.0-alpha.1401",
|
|
12
|
+
"changes": [
|
|
13
|
+
"Pull requests no longer bump the version or edit changelog.json, so merging one no longer makes every other open pull request conflict. Each one adds a change note under changes/ instead, and the release job on main gives every landed change the next 0.1.0-alpha number, writes it into the package, the lockfiles, the wrapper and the Sanctuary deploy files, and adds the notes to the published changelog. A branch that still carries an old-style bump runs `npm run release:drop-bump`, then `git push --force-with-lease`: it moves the bump's changelog lines into a change note and rebuilds the branch as one commit on main.",
|
|
14
|
+
"A rebase merge of several commits now publishes one release with all of their notes, even when its last commit changes only docs or tests.",
|
|
15
|
+
"Releases publish to npm one at a time, in the order they landed, and a release that finds a later version already on npm's `latest` tag publishes on `alpha` instead of moving `latest` back.",
|
|
16
|
+
"The Unraid template's TemplateURL now points at the newest GitHub release's copy of the template, which carries the newest image's version.",
|
|
17
|
+
"Each release counts from npm's last release. Only a move to a new release line restarts the count, so a stale old-style bump that lands later is just another change and can't stop the releases after it. Every changelog entry since this change is rebuilt from the change notes on main on each release, so a release npm was slow to show, or one whose publish failed, never loses its notes, and the changelog never names a version npm doesn't have. Lockfile, SerpentGuide.ouro, RepairGuide.ouro and assets changes now publish too. The container image now waits for npm's release of the same commit and takes its version. A manual run of the container workflow now rebuilds only main's head, only when npm published main's version from that commit. `npm run butler:ship` finds a release's commit from npm, then from its release tag, since no commit subject names the version any more. A branch that changes the version in any commit, even one it later undoes, now fails the preflight."
|
|
18
|
+
]
|
|
19
|
+
},
|
|
4
20
|
{
|
|
5
21
|
"version": "0.1.0-alpha.1400",
|
|
6
22
|
"changes": [
|
|
@@ -2004,12 +2020,6 @@
|
|
|
2004
2020
|
"Renumber main above 1038: #1215 landed as 1033 after #1211's 1038, so installs would read main as older than it is"
|
|
2005
2021
|
]
|
|
2006
2022
|
},
|
|
2007
|
-
{
|
|
2008
|
-
"version": "0.1.0-alpha.1033",
|
|
2009
|
-
"changes": [
|
|
2010
|
-
"Keep one result per tool call on replay; a duplicate (placeholder plus real result) made every later turn 400"
|
|
2011
|
-
]
|
|
2012
|
-
},
|
|
2013
2023
|
{
|
|
2014
2024
|
"version": "0.1.0-alpha.1038",
|
|
2015
2025
|
"changes": [
|
|
@@ -2022,6 +2032,12 @@
|
|
|
2022
2032
|
"Account pool: the fleet burn file uses the machine name this Mac's quota balancer uses (for example laptop), before LocalHostName."
|
|
2023
2033
|
]
|
|
2024
2034
|
},
|
|
2035
|
+
{
|
|
2036
|
+
"version": "0.1.0-alpha.1033",
|
|
2037
|
+
"changes": [
|
|
2038
|
+
"Keep one result per tool call on replay; a duplicate (placeholder plus real result) made every later turn 400"
|
|
2039
|
+
]
|
|
2040
|
+
},
|
|
2025
2041
|
{
|
|
2026
2042
|
"version": "0.1.0-alpha.1031",
|
|
2027
2043
|
"changes": [
|
|
@@ -2060,16 +2076,15 @@
|
|
|
2060
2076
|
]
|
|
2061
2077
|
},
|
|
2062
2078
|
{
|
|
2063
|
-
"version": "0.1.0-alpha.
|
|
2079
|
+
"version": "0.1.0-alpha.1021",
|
|
2064
2080
|
"changes": [
|
|
2065
|
-
"
|
|
2081
|
+
"A small host's install (npm config set omit optional) is now about 46 MB and 43 packages instead of 221 MB and 426: the bundled Bitwarden CLI and the terminal chat UI (ink, react) are optional packages too. Vault reads and writes are native, so bw is only fetched when a vault needs it, and without the chat UI ouro chats line by line. shell-quote, which the shell guardrails load, is now declared instead of arriving through ink, and a test keeps every runtime import declared. Native vault reads no longer need the access token to name the user (only writes do), and the edge benchmark's fake vault issues a real JWT, so it reads natively again."
|
|
2066
2082
|
]
|
|
2067
2083
|
},
|
|
2068
2084
|
{
|
|
2069
|
-
"version": "0.1.0-alpha.
|
|
2085
|
+
"version": "0.1.0-alpha.1020",
|
|
2070
2086
|
"changes": [
|
|
2071
|
-
"
|
|
2072
|
-
"OURO_VAULT_UNLOCK_STORE (for example plaintext-file on a headless appliance without secret-tool) picks the local vault unlock store for every ouro command when no --store is given. Hatch (interactive and --answers) and ouro vault create/replace/recover check for a usable unlock store before creating the vault account, so a missing store no longer leaves an orphaned account behind."
|
|
2087
|
+
"Images that MCP tools return (for example a plugin's screenshot tool) now reach the model: vision models get them in a message right after the step's tool results, and other models get a note that images were left out. GitHub Copilot requests that carry images send the Copilot-Vision-Request header, and the Anthropic provider sends base64 images as image blocks."
|
|
2073
2088
|
]
|
|
2074
2089
|
},
|
|
2075
2090
|
{
|
|
@@ -2081,9 +2096,10 @@
|
|
|
2081
2096
|
]
|
|
2082
2097
|
},
|
|
2083
2098
|
{
|
|
2084
|
-
"version": "0.1.0-alpha.
|
|
2099
|
+
"version": "0.1.0-alpha.1018",
|
|
2085
2100
|
"changes": [
|
|
2086
|
-
"
|
|
2101
|
+
"Hatch and ouro vault create register vault accounts with Vaultwarden's current two-step flow (send-verification-email, then register/finish), falling back to the old /identity/accounts/register only on servers that lack it. When a server has signups closed, the error says to have its admin invite the agent's email.",
|
|
2102
|
+
"OURO_VAULT_UNLOCK_STORE (for example plaintext-file on a headless appliance without secret-tool) picks the local vault unlock store for every ouro command when no --store is given. Hatch (interactive and --answers) and ouro vault create/replace/recover check for a usable unlock store before creating the vault account, so a missing store no longer leaves an orphaned account behind."
|
|
2087
2103
|
]
|
|
2088
2104
|
},
|
|
2089
2105
|
{
|
|
@@ -7554,12 +7570,6 @@
|
|
|
7554
7570
|
"fix(daemon): per-agent Git Sync in `ouro status` — was always showing `disabled` regardless of any agent's `agent.json`, because the daemon process has no argv-derived agent identity so `getSyncConfig()` fell into its catch. Status payload now carries a per-agent `sync` array (one row per enabled bundle) rendered as its own section like Senses and Workers, instead of a single global field on the overview block."
|
|
7555
7571
|
]
|
|
7556
7572
|
},
|
|
7557
|
-
{
|
|
7558
|
-
"version": "0.1.0-alpha.241",
|
|
7559
|
-
"changes": [
|
|
7560
|
-
"feat: commerce bootstrap — bw CLI lazy-install, vault auto-config, resolver coverage"
|
|
7561
|
-
]
|
|
7562
|
-
},
|
|
7563
7573
|
{
|
|
7564
7574
|
"version": "0.1.0-alpha.242",
|
|
7565
7575
|
"changes": [
|
|
@@ -7570,6 +7580,12 @@
|
|
|
7570
7580
|
"refactor(heart/providers): consolidate duplicated isNetworkError + classifyXxxError scaffolding into a shared `error-classification.ts` module. Each provider now delegates via `classifyHttpError(err, overrides)` and only carries its own provider-specific quirks (Anthropic 529, Codex usage-limit message detection)."
|
|
7571
7581
|
]
|
|
7572
7582
|
},
|
|
7583
|
+
{
|
|
7584
|
+
"version": "0.1.0-alpha.241",
|
|
7585
|
+
"changes": [
|
|
7586
|
+
"feat: commerce bootstrap — bw CLI lazy-install, vault auto-config, resolver coverage"
|
|
7587
|
+
]
|
|
7588
|
+
},
|
|
7573
7589
|
{
|
|
7574
7590
|
"version": "0.1.0-alpha.238",
|
|
7575
7591
|
"changes": [
|
package/deploy/unraid/README.txt
CHANGED
|
@@ -870,7 +870,7 @@ Effective-spec audit helper:
|
|
|
870
870
|
timeout -s KILL 20 /usr/bin/php -r '
|
|
871
871
|
[$expectedImage, $outputPath] = array_slice($argv, 1);
|
|
872
872
|
$expectedPath = "/boot/config/plugins/dockerMan/templates-user/my-ouro-butler.xml";
|
|
873
|
-
$
|
|
873
|
+
$expectedUrls = ["https://github.com/ourostack/ouroboros/releases/latest/download/sanctuary.xml", "https://raw.githubusercontent.com/ourostack/ouroboros/main/deploy/unraid/sanctuary.xml"];
|
|
874
874
|
$expectedIcon = "https://raw.githubusercontent.com/ourostack/ouroboros/main/assets/ouroboros.png";
|
|
875
875
|
$communityAppsEntryPath = "/usr/local/emhttp/plugins/community.applications/include/exec.php";
|
|
876
876
|
$communityAppsHelperPath = "/usr/local/emhttp/plugins/community.applications/include/previous_apps_helpers.php";
|
|
@@ -906,7 +906,7 @@ Effective-spec audit helper:
|
|
|
906
906
|
$resolved = $templates->getUserTemplate("ouro-butler");
|
|
907
907
|
if ($resolved !== $expectedPath) exit(5);
|
|
908
908
|
$xml = @simplexml_load_file($resolved);
|
|
909
|
-
if (!$xml || (string)$xml->Name !== "ouro-butler" || (string)$xml->Repository !== $expectedImage || (string)$xml->TemplateURL
|
|
909
|
+
if (!$xml || (string)$xml->Name !== "ouro-butler" || (string)$xml->Repository !== $expectedImage || !in_array((string)$xml->TemplateURL, $expectedUrls, true) || (string)$xml->Icon !== $expectedIcon || trim((string)$xml->WebUI) !== "") exit(6);
|
|
910
910
|
$containers = $client->getDockerContainers();
|
|
911
911
|
$matches = array_values(array_filter($containers, fn($container) => $container["Name"] === "ouro-butler"));
|
|
912
912
|
if (count($matches) !== 1) exit(7);
|
|
@@ -923,7 +923,7 @@ Effective-spec audit helper:
|
|
|
923
923
|
$helperUpdateCount = 0;
|
|
924
924
|
$helperRows = PreviousAppsHelpers::collectDockerApplications(true, "true", "docker", $containers, $helperUpdateCount, [], [], [], []);
|
|
925
925
|
if (!is_array($helperRows)) exit(9);
|
|
926
|
-
$helperMatches = array_values(array_filter($helperRows, fn($row) => is_array($row) && ($row["InstallPath"] ?? null) === $expectedPath && ($row["Name"] ?? null) === "ouro-butler" && ($row["Repository"] ?? null) === $expectedImage && ($row["TemplateURL"] ?? null
|
|
926
|
+
$helperMatches = array_values(array_filter($helperRows, fn($row) => is_array($row) && ($row["InstallPath"] ?? null) === $expectedPath && ($row["Name"] ?? null) === "ouro-butler" && ($row["Repository"] ?? null) === $expectedImage && in_array($row["TemplateURL"] ?? null, $expectedUrls, true) && ($row["Icon"] ?? null) === $expectedIcon));
|
|
927
927
|
if (count($helperMatches) !== 1) exit(9);
|
|
928
928
|
$communityAppsStateModel = "previous-apps-helper-v1";
|
|
929
929
|
$communityAppsImplementationPath = $communityAppsHelperPath;
|
|
@@ -10,7 +10,13 @@ import xmlValidator from "./docker-man-template-xml.cjs"
|
|
|
10
10
|
|
|
11
11
|
const TARGET_PATH = "/boot/config/plugins/dockerMan/templates-user/my-ouro-butler.xml"
|
|
12
12
|
const JOURNAL_PATH = "/boot/config/custom/ouro-butler/docker-man-template-transaction.json"
|
|
13
|
-
|
|
13
|
+
// The release's own template (the GitHub release job attaches the one the release job wrote), then main's copy, which
|
|
14
|
+
// templates carried before releases moved off pull requests. An installed template, a rollback's prior bytes or an
|
|
15
|
+
// open journal may still carry main's.
|
|
16
|
+
const TEMPLATE_URLS = new Set([
|
|
17
|
+
"https://github.com/ourostack/ouroboros/releases/latest/download/sanctuary.xml",
|
|
18
|
+
"https://raw.githubusercontent.com/ourostack/ouroboros/main/deploy/unraid/sanctuary.xml",
|
|
19
|
+
])
|
|
14
20
|
const ICON = "https://raw.githubusercontent.com/ourostack/ouroboros/main/assets/ouroboros.png"
|
|
15
21
|
const COMMUNITY_APPS_ENTRY_PATH = "/usr/local/emhttp/plugins/community.applications/include/exec.php"
|
|
16
22
|
const COMMUNITY_APPS_HELPER_PATH = "/usr/local/emhttp/plugins/community.applications/include/previous_apps_helpers.php"
|
|
@@ -101,7 +107,7 @@ function templateIdentity(bytes, expectedRepository) {
|
|
|
101
107
|
}
|
|
102
108
|
if (identity.name !== "ouro-butler" || !/^[a-zA-Z0-9][a-zA-Z0-9_.-]+$/u.test(identity.name)) throw new Error("template technical name is invalid")
|
|
103
109
|
if (identity.repository !== expectedRepository || !VERSION_TAG.test(identity.repository)) throw new Error("template version reference is invalid")
|
|
104
|
-
if (identity.templateUrl
|
|
110
|
+
if (!TEMPLATE_URLS.has(identity.templateUrl) || identity.icon !== ICON) throw new Error("template identity is invalid")
|
|
105
111
|
const webUi = directChildren(document, "WebUI")
|
|
106
112
|
if (webUi.length !== 1 || webUi[0].form !== "empty" || Object.keys(webUi[0].attributes).length !== 0) throw new Error("template WebUI must be exactly empty")
|
|
107
113
|
return identity
|
|
@@ -218,7 +224,7 @@ function validateJournalRecord(raw, state) {
|
|
|
218
224
|
if (record.schemaVersion !== 1 || !["rollback", "committing"].includes(record.state)) throw new Error("template transaction journal state is invalid")
|
|
219
225
|
const target = object(record.target, "template transaction journal target")
|
|
220
226
|
exactKeys(target, ["path", "name", "templateUrl", "icon"], "template transaction journal target")
|
|
221
|
-
if (target.path !== state.targetPath || target.name !== "ouro-butler" || target.templateUrl
|
|
227
|
+
if (target.path !== state.targetPath || target.name !== "ouro-butler" || !TEMPLATE_URLS.has(target.templateUrl) || target.icon !== ICON) throw new Error("template transaction journal target is invalid")
|
|
222
228
|
const prior = object(record.priorTemplate, "template transaction journal prior template")
|
|
223
229
|
exactKeys(prior, ["present", "bytesBase64", "metadata"], "template transaction journal prior template")
|
|
224
230
|
if (typeof prior.present !== "boolean") throw new Error("template transaction journal prior presence is invalid")
|
|
@@ -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.
|
|
4
|
+
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1402</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<Category>Tools:Utilities</Category>
|
|
13
13
|
<Beta>true</Beta>
|
|
14
14
|
<WebUI/>
|
|
15
|
-
<TemplateURL>https://
|
|
15
|
+
<TemplateURL>https://github.com/ourostack/ouroboros/releases/latest/download/sanctuary.xml</TemplateURL>
|
|
16
16
|
<Icon>https://raw.githubusercontent.com/ourostack/ouroboros/main/assets/ouroboros.png</Icon>
|
|
17
17
|
<ExtraParams>--restart=unless-stopped --user=10001:10001</ExtraParams>
|
|
18
18
|
<PostArgs/>
|
|
@@ -50,7 +50,11 @@ const LEGACY_ALPHA742_IMAGE = "sha256:681449ad47a2621705cd339b481e6339236b31dc65
|
|
|
50
50
|
const LEGACY_ALPHA742_MOUNTS = EXPECTED_MOUNTS.slice(0, 2);
|
|
51
51
|
const EXPECTED_EXTRA_PARAMS = "--restart=unless-stopped --user=10001:10001";
|
|
52
52
|
const EXPECTED_NAME = "ouro-butler";
|
|
53
|
-
|
|
53
|
+
// The release's own template, then main's copy, which templates carried before releases moved off pull requests.
|
|
54
|
+
const EXPECTED_TEMPLATE_URLS = new Set([
|
|
55
|
+
"https://github.com/ourostack/ouroboros/releases/latest/download/sanctuary.xml",
|
|
56
|
+
"https://raw.githubusercontent.com/ourostack/ouroboros/main/deploy/unraid/sanctuary.xml",
|
|
57
|
+
]);
|
|
54
58
|
const EXPECTED_ICON = "https://raw.githubusercontent.com/ourostack/ouroboros/main/assets/ouroboros.png";
|
|
55
59
|
const EXACT_IMAGE = /^sha256:[a-f0-9]{64}$/u;
|
|
56
60
|
const VERSION_REFERENCE = /^ghcr\.io\/ourostack\/ouroboros-butler:[0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z.-]+)?$/u;
|
|
@@ -234,7 +238,7 @@ function auditTemplate(input, expectedRepository, repositoryIsValid, repositoryV
|
|
|
234
238
|
violations.push("template repository does not match the reviewed image identity");
|
|
235
239
|
if (singleTextChild(template, "Name") !== EXPECTED_NAME)
|
|
236
240
|
violations.push("template technical name must be exactly ouro-butler");
|
|
237
|
-
if (singleTextChild(template, "TemplateURL")
|
|
241
|
+
if (!EXPECTED_TEMPLATE_URLS.has(singleTextChild(template, "TemplateURL") ?? ""))
|
|
238
242
|
violations.push("template URL must equal the canonical release template");
|
|
239
243
|
if (singleTextChild(template, "Icon") !== EXPECTED_ICON)
|
|
240
244
|
violations.push("template icon must equal the canonical release icon");
|
|
@@ -45,6 +45,12 @@ function ownerRouteDedupeKey(key, text) {
|
|
|
45
45
|
// A proactive key is a fresh UUID each time, so the same words name the same condition.
|
|
46
46
|
condition = `proactive-${(0, node_crypto_1.createHash)("sha256").update(text).digest("hex").slice(0, 12)}`;
|
|
47
47
|
}
|
|
48
|
+
else if (kind === "approval" || kind === "owner-card") {
|
|
49
|
+
// The peer must never learn an approval or admission id (security review H2), so the id is hashed. The same id
|
|
50
|
+
// still gives the same key, so a re-fire updates the peer's item.
|
|
51
|
+
const [id = "", ...phase] = tail.split(":");
|
|
52
|
+
condition = [kind, (0, node_crypto_1.createHash)("sha256").update(id).digest("hex").slice(0, 16), ...phase].join("-");
|
|
53
|
+
}
|
|
48
54
|
else {
|
|
49
55
|
condition = kind === "owner-notice" ? tail : key;
|
|
50
56
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.1402",
|
|
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.
|
|
9
|
+
"version": "0.1.0-alpha.1402",
|
|
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.
|
|
3
|
+
"version": "0.1.0-alpha.1402",
|
|
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": {
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"prepack": "npm run build && npm run package:verify-assets",
|
|
54
54
|
"butler:ship": "node scripts/butler-ship.mjs",
|
|
55
55
|
"release:bump": "node scripts/release-bump.cjs",
|
|
56
|
+
"release:drop-bump": "node scripts/release-drop-bump.cjs",
|
|
56
57
|
"release:preflight": "node scripts/release-preflight.cjs",
|
|
57
58
|
"release:trust:check": "node scripts/npm-trusted-publishers.cjs check",
|
|
58
59
|
"release:trust:repair-plan": "node scripts/npm-trusted-publishers.cjs repair-plan",
|