@ouro.bot/cli 0.1.0-alpha.1435 → 0.1.0-alpha.1437
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 +7 -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/dist/repertoire/tools-notes.js +19 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
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.1437",
|
|
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
|
+
"When `load_skill` gets a name that isn't a skill, its error now lists the skills the agent can load and says to call it again with one of them. Before, it listed the folders it had checked, and its fix said to call `list_skills`, which the Sanctuary owner profile doesn't have; in the step 6 replay, MiniMax runs that asked for an unknown skill went to list those folders with the shell instead. If the skill exists but can't be read, or the skills can't be listed, the loader's own error is kept."
|
|
9
|
+
]
|
|
10
|
+
},
|
|
4
11
|
{
|
|
5
12
|
"version": "0.1.0-alpha.1435",
|
|
6
13
|
"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.1437</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() {
|
|
@@ -65,6 +65,22 @@ function isOwnPersonaNote(key, content) {
|
|
|
65
65
|
return PERSONA_KEY.test(key ?? "") || OWN_PERSONA_NOTE.test(`${key ?? ""} ${content ?? ""}`);
|
|
66
66
|
}
|
|
67
67
|
exports.OWN_PERSONA_NOTE_REFUSAL = "that note is about my own personality or voice, not about this person, so it belongs in my psyche, not in a friend note. what i learn about how the house works goes into psyche/TACIT.md, and the rest of my psyche changes when my owner asks me directly. a note about the person themselves (their facts, preferences, voice, a character in a game) saves normally.";
|
|
68
|
+
// An unknown name is answered with the names that do load, so the fix needs no other tool: a profile may hold load_skill
|
|
69
|
+
// without list_skills (the Sanctuary owner profile does), and the folder paths only invited the agent to go and look.
|
|
70
|
+
function skillNotFound(name, error) {
|
|
71
|
+
let names;
|
|
72
|
+
try {
|
|
73
|
+
names = (0, skills_1.listSkills)();
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
return `error: ${error}`;
|
|
77
|
+
}
|
|
78
|
+
if (names.includes(name))
|
|
79
|
+
return `error: ${error}`;
|
|
80
|
+
if (names.length === 0)
|
|
81
|
+
return `error: there is no skill called '${name}', and this agent has no skills installed. Work from the tools you have.`;
|
|
82
|
+
return `error: there is no skill called '${name}'. Skills you can load: ${names.join(", ")}. Call load_skill again with one of those names, spelled exactly.`;
|
|
83
|
+
}
|
|
68
84
|
exports.notesToolDefinitions = [
|
|
69
85
|
{
|
|
70
86
|
tool: {
|
|
@@ -99,13 +115,13 @@ exports.notesToolDefinitions = [
|
|
|
99
115
|
return (0, skills_1.loadSkill)(a.name);
|
|
100
116
|
}
|
|
101
117
|
catch (e) {
|
|
102
|
-
return (0, tool_error_code_1.withCode)(
|
|
118
|
+
return (0, tool_error_code_1.withCode)(skillNotFound(a.name, e), "skill-not-found");
|
|
103
119
|
}
|
|
104
120
|
},
|
|
105
121
|
summaryKeys: ["name"],
|
|
106
122
|
riskProfile: { mutates: "none", risk: "low" },
|
|
107
|
-
ax: { id: "tool:load_skill", eager: true, group: "turn-skills", when: "Pick this to read a skill's full steps once
|
|
108
|
-
{ code: "skill-not-found", means: "No skill with that name could be found or read; the message lists the
|
|
123
|
+
ax: { id: "tool:load_skill", eager: true, group: "turn-skills", when: "Pick this to read a skill's full steps once you know its exact name.", effect: "read", idempotent: true, errors: [
|
|
124
|
+
{ code: "skill-not-found", means: "No skill with that name could be found or read; the message lists the skills this agent can load, or says why a listed one could not be read.", fix: "Load one of the names the error lists, spelled exactly." },
|
|
109
125
|
] },
|
|
110
126
|
},
|
|
111
127
|
{
|
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.1437",
|
|
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.1437",
|
|
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.1437",
|
|
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": {
|