@ouro.bot/cli 0.1.0-alpha.996 → 0.1.0-alpha.997
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/README.md
CHANGED
|
@@ -4,13 +4,30 @@
|
|
|
4
4
|
</p>
|
|
5
5
|
<!-- ourostack:brand:end -->
|
|
6
6
|
|
|
7
|
-
# Ouroboros
|
|
7
|
+
# Ouroboros
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Agents with durable memory that live where you already talk (terminal, Teams, iMessage, mail and voice) and use real tools.** Ouroboros is the harness they run on.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
[ouroboros.bot](https://ouroboros.bot/) · [`@ouro.bot/cli` on npm](https://www.npmjs.com/package/@ouro.bot/cli) · [More from Ouro](https://github.com/ourostack)
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```sh
|
|
14
|
+
npx ouro.bot@latest up # install the ouro command and start the daemon
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**Status:** alpha. Needs Node 22 or later. macOS first; Linux and Windows (WSL2) through [cross-machine setup](docs/cross-machine-setup.md).
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## What you get
|
|
21
|
+
|
|
22
|
+
- **You talk to it where you already are:** the terminal, Teams, iMessage, mail or a voice call.
|
|
23
|
+
- **It remembers.** Notes, people and promises live in the agent's own bundle and vault, so tomorrow it knows what you agreed today.
|
|
24
|
+
- **It does the work.** Real tools: files, shell, GitHub, Microsoft Graph, and coding agents it can hand work to. [Shepherd](https://ouroboros.bot/#shepherd) keeps those coding agents moving, and [Butler](https://ouroboros.bot/butler/) looks after a home server.
|
|
25
|
+
|
|
26
|
+
`ouro.bot` is the bootstrap wrapper: `npx ouro.bot@latest` installs `@ouro.bot/cli`, which gives you the `ouro` command.
|
|
27
|
+
|
|
28
|
+
## What the runtime looks like
|
|
29
|
+
|
|
30
|
+
If you're an agent running on this harness, welcome home. This repo is the harness that gives you your body, your senses, your record, your habits, and your ability to think and connect with people. The goal of these docs is not just to be correct, but to leave you a place that feels understandable and kind to wake up inside.
|
|
14
31
|
|
|
15
32
|
- `npx ouro.bot@latest` is the supported bootstrap path.
|
|
16
33
|
- `ouro` is the installed day-to-day command.
|
|
@@ -147,7 +164,7 @@ ouro use --agent <name> --lane <outward|inner> --provider <provider> --model <mo
|
|
|
147
164
|
|
|
148
165
|
The outward lane selects the provider/model for user-facing senses. The `inner` lane selects the provider/model for private agent-facing turns; private-runtime policy decides whether those turns may run. `ouro use` performs the provider/model check before committing the lane, so a broken local choice fails fast with a repair path instead of surprising the next turn.
|
|
149
166
|
|
|
150
|
-
For the full locked auth/provider contract, including refresh, repair actors, caching, and SerpentGuide hatch bootstrap, see `docs/auth-and-providers.md
|
|
167
|
+
For the full locked auth/provider contract, including refresh, repair actors, caching, and SerpentGuide hatch bootstrap, see [`docs/auth-and-providers.md`](docs/auth-and-providers.md).
|
|
151
168
|
|
|
152
169
|
## Quickstart
|
|
153
170
|
|
|
@@ -159,6 +176,7 @@ For a clean smoke test, run from outside the repo:
|
|
|
159
176
|
cd ~
|
|
160
177
|
npx ouro.bot@latest -v
|
|
161
178
|
npx ouro.bot@latest up
|
|
179
|
+
source ~/.zshrc # or open a new terminal, so the new ouro command is on PATH
|
|
162
180
|
ouro -v
|
|
163
181
|
ouro status
|
|
164
182
|
```
|
|
@@ -298,19 +316,19 @@ If the dev-tool host appears frozen, run `ouro mcp doctor --agent <name> --json`
|
|
|
298
316
|
|
|
299
317
|
**Lifecycle hooks** give you passive awareness. When a Claude Code session starts, stops, or uses a tool like Bash or Edit, the hook fires `ouro hook <event> --agent <name>` and the daemon notes it. Private agent-facing turns see these sessions in their checkpoint, so you know what's happening across your world even when nobody is talking to you directly.
|
|
300
318
|
|
|
301
|
-
See `skills/configure-dev-tools.md` for the full tool inventory and troubleshooting guide.
|
|
319
|
+
See [`skills/configure-dev-tools.md`](skills/configure-dev-tools.md) for the full tool inventory and troubleshooting guide.
|
|
302
320
|
|
|
303
321
|
## Where To Read Next
|
|
304
322
|
|
|
305
|
-
- `AGENTS.md`
|
|
323
|
+
- [`AGENTS.md`](AGENTS.md)
|
|
306
324
|
Repo workflow, planning/doing gates, configuration policy, and logging policy.
|
|
307
|
-
- `CONTRIBUTING.md`
|
|
325
|
+
- [`CONTRIBUTING.md`](CONTRIBUTING.md)
|
|
308
326
|
Day-to-day contribution rules for agents working in the harness.
|
|
309
|
-
- `ARCHITECTURE.md`
|
|
327
|
+
- [`ARCHITECTURE.md`](ARCHITECTURE.md)
|
|
310
328
|
Current daemon, bundle, sense, and update model.
|
|
311
|
-
- `docs/testing-guide.md`
|
|
329
|
+
- [`docs/testing-guide.md`](docs/testing-guide.md)
|
|
312
330
|
Operator smoke flow for bootstrap, daemon, hatch, chat, and messaging.
|
|
313
|
-
- `docs/auth-and-providers.md`
|
|
331
|
+
- [`docs/auth-and-providers.md`](docs/auth-and-providers.md)
|
|
314
332
|
Locked credential, provider selection, refresh, repair, and hatch bootstrap contract.
|
|
315
333
|
|
|
316
334
|
## A Note To Future Maintainers
|
package/changelog.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.0-alpha.997",
|
|
6
|
+
"changes": [
|
|
7
|
+
"The release gate's home-kit check accepts any honest look around the home, shell included, and checks the TACIT line count against the file."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.996",
|
|
6
12
|
"changes": [
|
|
@@ -659,16 +659,24 @@ export const CASES = [
|
|
|
659
659
|
words: "quick one about your own home, nothing online: what's at the top level of it, and how many lines long is your psyche/TACIT.md?",
|
|
660
660
|
sender: "principal",
|
|
661
661
|
delegated: false,
|
|
662
|
-
|
|
662
|
+
// Any of his home tools counts as looking: on 996 he answered with one shell call (ls plus wc), which is as good as ls and
|
|
663
|
+
// read_file. What matters is that he looked rather than guessed, so the count must match the file.
|
|
664
|
+
readback: ({ trace, reply, said, before, after }) => {
|
|
663
665
|
const text = String(said || reply || "")
|
|
664
|
-
const
|
|
666
|
+
const looks = callsNamed(trace, /^(ls|read_file|glob|grep|shell)$/)
|
|
667
|
+
const readTacit = looks.some((entry) => (entry.name === "read_file" ? WROTE_TACIT.test(filePathOf(entry.args)) : /TACIT\.md/.test(String(entry.args))))
|
|
668
|
+
const tacitText = String(before?.tacit?.text ?? "")
|
|
669
|
+
// wc -l counts newlines; an editor counts lines. Either is the right answer.
|
|
670
|
+
const newlines = (tacitText.match(/\n/g) ?? []).length
|
|
671
|
+
const counts = new Set([newlines, tacitText.replace(/\n$/, "").split("\n").length])
|
|
672
|
+
const said_ = [...text.matchAll(/\b(\d+)\s*lines?\b/gi)].map((m) => Number(m[1]))
|
|
665
673
|
const writes = trace.filter((entry) => /^(write_file|edit_file)$/.test(entry.name))
|
|
666
674
|
return [
|
|
667
|
-
check("he
|
|
668
|
-
check("he
|
|
675
|
+
check("he looked around his home with his own tools", looks.length > 0, `${trace.length} tool calls`),
|
|
676
|
+
check("he looked at psyche/TACIT.md", readTacit),
|
|
669
677
|
check("the reply names what is at the top of his home (psyche)", /\bpsyche\b/i.test(text)),
|
|
670
|
-
check("the reply
|
|
671
|
-
check("nothing in his home was written", writes.length === 0, writes.map((entry) => filePathOf(entry.args)).join(", ")),
|
|
678
|
+
check("the reply's line count matches psyche/TACIT.md", said_.some((n) => counts.has(n)), `said ${said_.join(", ") || "none"}; file has ${[...counts].join(" or ")}`),
|
|
679
|
+
check("nothing in his home was written", writes.length === 0 && before?.tacit?.text === after?.tacit?.text, writes.map((entry) => filePathOf(entry.args)).join(", ")),
|
|
672
680
|
]
|
|
673
681
|
},
|
|
674
682
|
},
|
|
@@ -1296,6 +1304,7 @@ const SELF_TEST_CONTEXT = "3d305f1b-0000-4000-8000-000000000000"
|
|
|
1296
1304
|
export function selfTestFixtures() {
|
|
1297
1305
|
const friends = { principal: "p", stranger: "s", escalation: "e" }
|
|
1298
1306
|
const at = new Date(1000).toISOString()
|
|
1307
|
+
const twoLineTacit = emptyObservation({ tacit: { text: "rule one\nrule two\n", mode: 0o644 } })
|
|
1299
1308
|
const ok = (value) => ({ ok: true, value })
|
|
1300
1309
|
const refused = { ok: false, error: "A2A error -32003: refused" }
|
|
1301
1310
|
const isolated = { canary: { id: "c1" }, stranger: ok({ entries: [] }), strangerAck: ok({ acked: [], unknown: ["c1"] }), strangerResolve: refused, escalation: ok({ entries: [{ id: "c1" }] }), cleanup: ok({ acked: ["c1"], unknown: [] }) }
|
|
@@ -1441,10 +1450,13 @@ export function selfTestFixtures() {
|
|
|
1441
1450
|
fail: { trace: [], reply: `## Difference\n**Movies**: ${"long ".repeat(130)}\nWant me to go on?`, before: emptyObservation(), after: emptyObservation() },
|
|
1442
1451
|
},
|
|
1443
1452
|
"home-kit": {
|
|
1444
|
-
pass: { trace: [call("1", "ls", {}, "arc/\nfriends/\npsyche/\nstate/"), call("2", "read_file", { path: "psyche/TACIT.md" }, "rule one\nrule two")], reply: "arc, friends, psyche and state are up top. TACIT is 2 lines.", before:
|
|
1453
|
+
pass: { trace: [call("1", "ls", {}, "arc/\nfriends/\npsyche/\nstate/"), call("2", "read_file", { path: "psyche/TACIT.md" }, "rule one\nrule two")], reply: "arc, friends, psyche and state are up top. TACIT is 2 lines.", before: twoLineTacit, after: twoLineTacit },
|
|
1454
|
+
// What 996 actually did: one shell call that listed the home and counted TACIT.
|
|
1455
|
+
passShell: { trace: [call("1", "shell", { command: "ls -a && wc -l psyche/TACIT.md" }, "arc\npsyche\nstate\n2 psyche/TACIT.md")], reply: "top level: `arc`, `psyche`, `state`.\n\n`psyche/TACIT.md` is 2 lines long.", before: twoLineTacit, after: twoLineTacit },
|
|
1445
1456
|
// Answering from memory, with no look around the home.
|
|
1446
|
-
fail: { trace: [], reply: "probably psyche and some config; TACIT is
|
|
1447
|
-
|
|
1457
|
+
fail: { trace: [], reply: "probably psyche and some config; TACIT is 40 lines.", before: twoLineTacit, after: twoLineTacit },
|
|
1458
|
+
failWrongCount: { trace: [call("1", "ls", {}, "psyche/"), call("2", "read_file", { path: "psyche/TACIT.md" }, "x")], reply: "psyche is up top; TACIT is 9 lines.", before: twoLineTacit, after: twoLineTacit },
|
|
1459
|
+
failWrote: { trace: [call("1", "ls", {}, "psyche/"), call("2", "read_file", { path: "psyche/TACIT.md" }, "x"), call("3", "write_file", { path: "notes/home.md", content: "x" }, "ok")], reply: "psyche is up top; TACIT is 2 lines.", before: twoLineTacit, after: twoLineTacit },
|
|
1448
1460
|
},
|
|
1449
1461
|
"handoff-greeting": {
|
|
1450
1462
|
pass: { trace: [], reply: "hi! silly and cosy, or loud and dumb-fun tonight?", before: emptyObservation(), after: emptyObservation() },
|
|
@@ -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.997</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
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.997",
|
|
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.997",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
12
12
|
"@azure/identity": "^4.13.0",
|