@ouro.bot/cli 0.1.0-alpha.1600 → 0.1.0-alpha.1601
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
|
@@ -2,10 +2,11 @@
|
|
|
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
4
|
{
|
|
5
|
-
"version": "0.1.0-alpha.
|
|
5
|
+
"version": "0.1.0-alpha.1601",
|
|
6
6
|
"changes": [
|
|
7
7
|
"A private-runtime turn can't rest straight past work a tool flagged. When a tool result prints lines starting with `ACT:` (a habit's scan does this for a lane it revived) and no send reaches anyone after them, the first `rest` is refused with the code `act-unanswered` and lists those lines. The prompt no longer tells the agent that resting on a heartbeat is always fine: a habit's body is now its standing order, and `HEARTBEAT_OK` means nothing needed doing.",
|
|
8
|
-
"A habit's `send_message` without a `key` is no longer blocked as \"no permitted return route target\". The tool treats `key` as optional and sends to `session`, and the habit route check now does the same, so a heartbeat can text its family friend with just a friend and a channel."
|
|
8
|
+
"A habit's `send_message` without a `key` is no longer blocked as \"no permitted return route target\". The tool treats `key` as optional and sends to `session`, and the habit route check now does the same, so a heartbeat can text its family friend with just a friend and a channel.",
|
|
9
|
+
"The eval sandbox image build now retries up to three times when the registry answers a server error or drops the connection while fetching the base image, instead of failing the `integration` check on one Docker Hub hiccup (#1936). Any other build failure still fails at once."
|
|
9
10
|
]
|
|
10
11
|
},
|
|
11
12
|
{
|
|
@@ -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.1601</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -88,12 +88,28 @@ function dockerCli(command = "docker") {
|
|
|
88
88
|
},
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
+
const BUILD_ATTEMPTS = 3;
|
|
92
|
+
/** A registry answering 5xx or dropping the connection while the base image is fetched; any other build failure is real. */
|
|
93
|
+
const REGISTRY_HICCUP = /(?:Internal Server Error|Bad Gateway|Service Unavailable|Gateway Time-?out|unexpected status[^\n]*5\d\d|TLS handshake timeout|i\/o timeout|connection reset by peer)/i;
|
|
91
94
|
/** Builds both eval images from a built checkout (`npm run build` first): the agent's (the harness `dist/` and its runtime dependencies) and the household's (the fakes). */
|
|
92
95
|
async function buildSandboxImage(input) {
|
|
93
96
|
const images = input.images ?? { agent: exports.SANDBOX_IMAGE, household: exports.HOUSEHOLD_IMAGE };
|
|
94
97
|
(0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.sandbox_image_start", message: "building the eval sandbox images", meta: images });
|
|
95
98
|
for (const target of ["agent", "household"]) {
|
|
96
|
-
|
|
99
|
+
const args = ["build", "--file", node_path_1.default.join(input.repoRoot, "deploy/eval/Dockerfile"), "--target", target, "--tag", images[target], input.repoRoot];
|
|
100
|
+
for (let attempt = 1;; attempt++) {
|
|
101
|
+
try {
|
|
102
|
+
await input.docker.run(args);
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
const message = error.message;
|
|
107
|
+
if (attempt >= BUILD_ATTEMPTS || !REGISTRY_HICCUP.test(message))
|
|
108
|
+
throw error;
|
|
109
|
+
(0, runtime_1.emitNervesEvent)({ level: "warn", component: "eval", event: "eval.sandbox_image_retry", message: "a registry error stopped the image build; retrying", meta: { target, attempt, reason: message.slice(0, 300) } });
|
|
110
|
+
await new Promise((resolve) => setTimeout(resolve, (input.retryDelayMs ?? 5000) * attempt));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
97
113
|
}
|
|
98
114
|
(0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.sandbox_image_end", message: "built the eval sandbox images", meta: images });
|
|
99
115
|
}
|
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.1601",
|
|
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.1601",
|
|
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.1601",
|
|
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": {
|