@ouro.bot/cli 0.1.0-alpha.1435 → 0.1.0-alpha.1436
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 +6 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/eval/remote-entry.js +1 -1
- package/dist/eval/run-command.js +7 -1
- package/dist/eval/run-entry.js +7 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
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.1436",
|
|
6
|
+
"changes": [
|
|
7
|
+
"The eval command takes `--sandbox-images <agent image>,<household image>`, so a run on a shared Docker host, local or over `--sandbox-ssh`, uses its own image tags, and the books oracle runs in that household image too. Build the images under those tags first; a remote checkout must be synced from this version."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1435",
|
|
6
12
|
"changes": [
|
|
@@ -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.1436</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -21,7 +21,7 @@ void (0, remote_1.serveRemoteJob)({
|
|
|
21
21
|
...(job.workRoot ? { workRoot: job.workRoot } : {}),
|
|
22
22
|
...(job.guest ? { guest: job.guest } : {}),
|
|
23
23
|
...(job.images ? { images: job.images } : {}),
|
|
24
|
-
...(job.oracleBooks ? { oracle: (0, oracle_1.dockerOracle)({ docker, image: docker_1.HOUSEHOLD_IMAGE, booksLib: job.oracleBooks }) } : {}),
|
|
24
|
+
...(job.oracleBooks ? { oracle: (0, oracle_1.dockerOracle)({ docker, image: job.images?.household ?? docker_1.HOUSEHOLD_IMAGE, booksLib: job.oracleBooks }) } : {}),
|
|
25
25
|
});
|
|
26
26
|
},
|
|
27
27
|
}).then((outcome) => process.exit(outcome.ok ? 0 : 1)).catch((error) => {
|
package/dist/eval/run-command.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.CALLS_PER_RUN = core_1.MAX_PROVIDER_ITERATIONS_CEILING + 1;
|
|
|
28
28
|
const STRING_FLAGS = {
|
|
29
29
|
"--cases": "cases", "--bundle": "bundle", "--bundle-ref": "bundleRef", "--target": "target", "--credentials-agent": "credentialsAgent",
|
|
30
30
|
"--copilot-account": "copilotAccount", "--output": "output", "--harness-ref": "harnessRef", "--seed-bundle": "seedBundle",
|
|
31
|
-
"--oracle-books": "oracleBooks", "--sandbox-ssh": "sandboxSsh",
|
|
31
|
+
"--oracle-books": "oracleBooks", "--sandbox-ssh": "sandboxSsh", "--sandbox-images": "sandboxImages",
|
|
32
32
|
};
|
|
33
33
|
const NUMBER_FLAGS = {
|
|
34
34
|
"--runs": "runs", "--budget-premium": "budgetPremium", "--budget-credits": "budgetCredits", "--price-in": "priceIn", "--price-out": "priceOut",
|
|
@@ -60,6 +60,12 @@ function parseEvalArgs(argv) {
|
|
|
60
60
|
out[NUMBER_FLAGS[flag]] = number;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
+
if (typeof out.sandboxImages === "string") {
|
|
64
|
+
const [agent, household, ...rest] = out.sandboxImages.split(",").map((tag) => tag.trim());
|
|
65
|
+
if (!agent || !household || rest.length > 0 || agent === household)
|
|
66
|
+
throw new Error("--sandbox-images must be <agent image>,<household image>");
|
|
67
|
+
out.sandboxImages = { agent, household };
|
|
68
|
+
}
|
|
63
69
|
const missing = REQUIRED.find((flag) => !seen.has(flag));
|
|
64
70
|
if (missing)
|
|
65
71
|
throw new Error(`${missing} is required`);
|
package/dist/eval/run-entry.js
CHANGED
|
@@ -7,7 +7,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
* `npm run eval -- <flags>` (see `run-command.ts` for the flags and the refusals): runs eval cases on one model target
|
|
8
8
|
* and writes the private report. With `--sandbox-ssh <host>:<folder>` the sandbox runs on that Docker host, whose
|
|
9
9
|
* harness checkout is synced to `<folder>/harness`; `--bundle`, `--seed-bundle` and `--oracle-books` are then paths
|
|
10
|
-
* on that host.
|
|
10
|
+
* on that host. `--sandbox-images <agent>,<household>` names the image tags to run (on that host, when remote), built
|
|
11
|
+
* beforehand with `docker build --file deploy/eval/Dockerfile --target agent|household --tag <tag> .`; the remote
|
|
12
|
+
* checkout must be synced and built from this version for the books oracle to use them too. Model calls and
|
|
13
|
+
* credentials stay on this machine.
|
|
11
14
|
*/
|
|
12
15
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
16
|
const node_path_1 = __importDefault(require("node:path"));
|
|
@@ -31,14 +34,16 @@ function runCaseFor(args) {
|
|
|
31
34
|
paths: {
|
|
32
35
|
bundleDir: args.bundle, seedBundleDir: args.seedBundle ?? `${root}/harness/deploy/unraid/sanctuary.ouro`, workRoot: `${root}/work`,
|
|
33
36
|
...(args.oracleBooks ? { oracleBooks: args.oracleBooks } : {}),
|
|
37
|
+
...(args.sandboxImages ? { images: args.sandboxImages } : {}),
|
|
34
38
|
},
|
|
35
39
|
});
|
|
36
40
|
}
|
|
37
41
|
const docker = (0, docker_1.dockerCli)();
|
|
38
|
-
const oracle = args.oracleBooks ? (0, oracle_1.dockerOracle)({ docker, image: docker_1.HOUSEHOLD_IMAGE, booksLib: args.oracleBooks }) : undefined;
|
|
42
|
+
const oracle = args.oracleBooks ? (0, oracle_1.dockerOracle)({ docker, image: args.sandboxImages?.household ?? docker_1.HOUSEHOLD_IMAGE, booksLib: args.oracleBooks }) : undefined;
|
|
39
43
|
return ({ case: c, host, budget }) => (0, docker_1.runSandboxed)({
|
|
40
44
|
case: c, bundleDir: args.bundle, seedBundleDir: args.seedBundle ?? node_path_1.default.join(REPO, "deploy/unraid/sanctuary.ouro"), host, budget, docker,
|
|
41
45
|
...(oracle ? { oracle } : {}),
|
|
46
|
+
...(args.sandboxImages ? { images: args.sandboxImages } : {}),
|
|
42
47
|
});
|
|
43
48
|
}
|
|
44
49
|
async function main() {
|
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.1436",
|
|
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.1436",
|
|
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.1436",
|
|
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": {
|