@ouro.bot/cli 0.1.0-alpha.1679 → 0.1.0-alpha.1680
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/heart/daemon/cli-commands/entry-points.js +30 -0
- package/dist/heart/versioning/ouro-bot-wrapper.js +9 -1
- package/dist/nerves/coverage/file-completeness.js +2 -0
- package/dist/ouro-ax/ax-command.js +794 -0
- package/dist/ouro-ax/effects.js +51 -0
- package/dist/ouro-ax/exit-codes.js +51 -0
- package/dist/ouro-ax/help.js +181 -0
- package/dist/ouro-ax/outcome.js +221 -0
- package/dist/ouro-ax/precise-copy.js +200 -0
- package/dist/ouro-ax/problem.js +95 -0
- package/dist/ouro-ax/voice.js +83 -0
- package/dist/ouro-ax/wait.js +158 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -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.1680",
|
|
6
|
+
"changes": [
|
|
7
|
+
"The Ouro AX kit the harness vendors from Ouro UI now lives in `src/ouro-ax/` instead of `lib/ouro-ui/`, so the ouro CLI's own code can import it and compile it into the package. Ouro Current keeps updating it there each release. The kit's help module now builds into `dist/ouro-ax/`, and `ouro help --json` lists the kit's own programs (the X-ray, its flows runner and its surfaces checker) among the entry points, each with its card. Nothing else the CLI does changes yet."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1679",
|
|
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.1680</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,6 +12,9 @@ function missingAgent(path) {
|
|
|
12
12
|
const ROOT_LIFECYCLE = "node dist/heart/daemon/sanctuary-authority-root-lifecycle.js";
|
|
13
13
|
const REDACTION = "node dist/heart/session-redaction-repair-cli-main.js";
|
|
14
14
|
const PROBE = "node dist/senses/sanctuary-health-acceptance-probe-entry.js";
|
|
15
|
+
const AX_FLOWS = "node dist/ouro-ax/flows.js";
|
|
16
|
+
const AX_SURFACES = "node dist/ouro-ax/surfaces.js";
|
|
17
|
+
const AX_XRAY = "node dist/ouro-ax/xray.js";
|
|
15
18
|
/** A root lifecycle step run as someone other than root. */
|
|
16
19
|
function rootOnly(step) {
|
|
17
20
|
return {
|
|
@@ -67,6 +70,22 @@ function probeUsage(step) {
|
|
|
67
70
|
fix: `Pass the coordinates the acceptance runner recorded for this scenario to ${step}.`,
|
|
68
71
|
};
|
|
69
72
|
}
|
|
73
|
+
/** A vendored Ouro AX kit program given words or flags it doesn't take, or that couldn't do its job. */
|
|
74
|
+
function kitError(program) {
|
|
75
|
+
return {
|
|
76
|
+
code: "error",
|
|
77
|
+
means: `${program} stopped with exit 2 because it got a command, argument or flag it doesn't take, or with exit 1 because a check threw or, under --conformance, a must claim doesn't hold.`,
|
|
78
|
+
fix: "Read the one error line, which names the fix, or run it with --help for its usage.",
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/** The surfaces checker's one failure line, which carries no code of its own. */
|
|
82
|
+
function surfacesFailed(program) {
|
|
83
|
+
return {
|
|
84
|
+
code: "error",
|
|
85
|
+
means: `${program} stopped with exit 2 because it got a command or flag it doesn't take, or with exit 1 because a file it was given is missing, isn't valid JSON or isn't writable.`,
|
|
86
|
+
fix: "Read the surfaces: line on stderr, which names the fix, and rerun with what it asks for.",
|
|
87
|
+
};
|
|
88
|
+
}
|
|
70
89
|
exports.ENTRY_POINT_COMMANDS = [
|
|
71
90
|
{ name: "node dist/heart/agent-entry.js", effect: "private", summary: "Run one agent's worker process.", ax: { id: "cli:node dist/heart/agent-entry.js", group: "entry-points", effect: "write", when: "The daemon starts one per agent; run it by hand only to debug a worker crash with the daemon stopped.", errors: [missingAgent("dist/heart/agent-entry.js")] } },
|
|
72
91
|
{ name: "node dist/heart/daemon/container-healthcheck.js", effect: "private", readOnly: true, summary: "Check a Sanctuary container's health.", ax: { id: "cli:node dist/heart/daemon/container-healthcheck.js", group: "entry-points", effect: "read", when: "Docker runs it as the Sanctuary container's healthcheck; run it inside the container to see which readiness check fails.", errors: [
|
|
@@ -134,6 +153,17 @@ exports.ENTRY_POINT_COMMANDS = [
|
|
|
134
153
|
{ name: "node dist/nerves/review/cli-main.js", effect: "private", readOnly: true, summary: "Filter an agent's recent nerves events.", ax: { id: "cli:node dist/nerves/review/cli-main.js", group: "diagnostics", effect: "read", when: "Investigate what a running agent did lately: tail its nerves log, filtered by component, event, level or age.", errors: [
|
|
135
154
|
{ code: "bad-duration", means: "The nerves review's --since isn't a duration it reads.", fix: "Give --since as a number and unit, such as 5m, 2h or 1d." },
|
|
136
155
|
] } },
|
|
156
|
+
{ name: AX_FLOWS, effect: "private", summary: "Run Ouro AX agent flows against a mock.", ax: { id: `cli:${AX_FLOWS}`, group: "diagnostics", effect: "write", when: "Walk an agent through a suite's flows on a mock, as CI does for the harness, writing the findings and a report.", errors: [
|
|
157
|
+
{ code: "no-suite", means: "The flows run found no suite module at the path it was given (exit 2).", fix: "Name the suite module's path, such as flows/suite.ts." },
|
|
158
|
+
{ code: "bad-suite", means: "The suite module doesn't default-export defineSuite({ tool, flows, cli, start, guard }) (exit 2).", fix: "Make the module end with export default defineSuite({ tool, flows, cli, start, guard })." },
|
|
159
|
+
{ code: "bad-value", means: "A flows run flag got a value it doesn't take, such as --slack 0 or an --xray file that isn't an X-ray report (exit 2).", fix: "Use the value the error line names, such as --slack 2 or --xray report.json." },
|
|
160
|
+
{ code: "run-stopped", means: "The flows run threw before it finished, so no report was written (exit 1).", fix: "Read what it threw on the error line, fix that, and run it again." },
|
|
161
|
+
{ code: "checks-failed", means: "A flow failed in a way the suite's known list doesn't name, or a known defect now passes (exit 1).", fix: "Read the failure lines and the findings file; fix the door, or update the known list when a defect is fixed." },
|
|
162
|
+
] } },
|
|
163
|
+
{ name: AX_SURFACES, effect: "private", summary: "Check an interface's surfaces manifest.", ax: { id: `cli:${AX_SURFACES}`, group: "diagnostics", effect: "write", when: "Extract a manifest of an interface's surfaces from source, or check one against its baseline.", errors: [surfacesFailed(AX_SURFACES)] } },
|
|
164
|
+
{ name: `${AX_SURFACES} extract`, effect: "private", summary: "Write a surfaces manifest from source.", ax: { id: `cli:${AX_SURFACES} extract`, group: "diagnostics", effect: "write", when: "Read files or folders and write the surfaces they declare as a manifest, to --out or stdout.", errors: [surfacesFailed(`${AX_SURFACES} extract`)] } },
|
|
165
|
+
{ name: `${AX_SURFACES} check`, effect: "private", summary: "Check a surfaces manifest against its baseline.", ax: { id: `cli:${AX_SURFACES} check`, group: "diagnostics", effect: "write", when: "Check a manifest; it exits 3 on a finding its --baseline doesn't list. --init writes the first baseline and --update shrinks it.", errors: [surfacesFailed(`${AX_SURFACES} check`)] } },
|
|
166
|
+
{ name: AX_XRAY, effect: "private", summary: "Call an interface's agent doors as an agent would.", ax: { id: `cli:${AX_XRAY}`, group: "diagnostics", effect: "write", when: "Call an interface's CLI or MCP doors on a mock, as CI's AX X-ray does for ouro, and report which Ouro AX promises hold.", errors: [kitError(AX_XRAY)] } },
|
|
137
167
|
{ name: "node dist/senses/a2a-entry.js", effect: "private", summary: "Run an agent's A2A sense.", ax: { id: "cli:node dist/senses/a2a-entry.js", group: "entry-points", effect: "write", when: "The daemon starts it so other agents can reach this one over A2A; --port and --base-url set where it listens.", errors: [missingAgent("dist/senses/a2a-entry.js")] } },
|
|
138
168
|
{ name: "node dist/senses/app-sessions-entry.js", effect: "private", summary: "Run an agent's app-sessions sense.", ax: { id: "cli:node dist/senses/app-sessions-entry.js", group: "entry-points", effect: "write", when: "The daemon starts it to watch the coding app's sessions and send the owner a notice when one waits on a prompt.", errors: [missingAgent("dist/senses/app-sessions-entry.js")] } },
|
|
139
169
|
{ name: "node dist/senses/bluebubbles/entry.js", effect: "private", summary: "Run an agent's iMessage sense.", ax: { id: "cli:node dist/senses/bluebubbles/entry.js", group: "entry-points", effect: "write", when: "The daemon starts it on the iMessage host to carry messages between the BlueBubbles server and the agent.", errors: [missingAgent("dist/senses/bluebubbles/entry.js")] } },
|
|
@@ -32,6 +32,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
36
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
37
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
38
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return path;
|
|
42
|
+
};
|
|
35
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
44
|
exports.runOuroBotWrapper = runOuroBotWrapper;
|
|
37
45
|
const cli_arg_redaction_1 = require("../daemon/cli-arg-redaction");
|
|
@@ -41,7 +49,7 @@ async function defaultLoadCanonicalRunner() {
|
|
|
41
49
|
// Use the subpath export so we get the daemon-cli module directly,
|
|
42
50
|
// NOT the root entry point which has side-effects (immediately runs the CLI).
|
|
43
51
|
const specifier = "@ouro.bot/cli/runOuroCli";
|
|
44
|
-
const loaded = await Promise.resolve(`${specifier}`).then(s => __importStar(require(s)));
|
|
52
|
+
const loaded = await Promise.resolve(`${__rewriteRelativeImportExtension(specifier)}`).then(s => __importStar(require(s)));
|
|
45
53
|
const candidate = Object.prototype.hasOwnProperty.call(loaded, "runOuroCli")
|
|
46
54
|
? loaded["runOuroCli"]
|
|
47
55
|
: undefined;
|
|
@@ -174,6 +174,8 @@ const DISPATCH_EXEMPT_PATTERNS = [
|
|
|
174
174
|
// Ouro AX v1.3.445's ax files, vendored unchanged for the blind interviews' `ouro` X arm; the arm that loads them
|
|
175
175
|
// (eval/interviews/guest/arms.ts) emits its own events.
|
|
176
176
|
"eval/interviews/guest/ax/",
|
|
177
|
+
// The Ouro AX kit, vendored from Ouro UI through upstream-sources.lock.json; the CLI code that uses it emits the events.
|
|
178
|
+
"ouro-ax/",
|
|
177
179
|
];
|
|
178
180
|
function isDispatchExempt(filePath) {
|
|
179
181
|
return DISPATCH_EXEMPT_PATTERNS.some((pattern) => filePath.includes(pattern));
|