@ouro.bot/cli 0.1.0-alpha.1464 → 0.1.0-alpha.1465
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 +2 -2
- package/changelog.json +8 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/heart/daemon/cli-commands/mail.js +0 -1
- package/dist/heart/daemon/cli-exec.js +0 -33
- package/dist/heart/daemon/cli-help.js +0 -13
- package/dist/heart/daemon/cli-parse.js +0 -3
- package/dist/heart/daemon/cli-render.js +0 -7
- package/dist/heart/daemon/daemon-entry.js +1 -1
- package/dist/heart/daemon/daemon.js +0 -63
- package/dist/heart/{mailbox/mailbox-supervision.js → shepherd/supervision-read.js} +4 -4
- package/dist/nerves/coverage/file-completeness.js +0 -11
- package/dist/nerves/observation.js +2 -4
- package/dist/repertoire/tools-mail.js +2 -2
- package/dist/senses/cli/ouro-tui.js +2 -2
- package/dist/senses/shepherd/operations.js +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -4
- package/skills/sense-setup.md +1 -1
- package/dist/heart/mailbox/mailbox-http-hooks.js +0 -99
- package/dist/heart/mailbox/mailbox-http-response.js +0 -7
- package/dist/heart/mailbox/mailbox-http-routes.js +0 -406
- package/dist/heart/mailbox/mailbox-http-static.js +0 -103
- package/dist/heart/mailbox/mailbox-http-transport.js +0 -272
- package/dist/heart/mailbox/mailbox-http.js +0 -99
- package/dist/heart/mailbox/mailbox-read.js +0 -41
- package/dist/heart/mailbox/mailbox-types.js +0 -27
- package/dist/heart/mailbox/mailbox-view.js +0 -197
- package/dist/heart/mailbox/readers/agent-machine.js +0 -428
- package/dist/heart/mailbox/readers/continuity-readers.js +0 -329
- package/dist/heart/mailbox/readers/mail.js +0 -375
- package/dist/heart/mailbox/readers/runtime-readers.js +0 -823
- package/dist/heart/mailbox/readers/sessions.js +0 -231
- package/dist/heart/mailbox/readers/shared.js +0 -111
- package/dist/mailbox-ui/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/mailbox-ui/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/mailbox-ui/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/mailbox-ui/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/mailbox-ui/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/mailbox-ui/assets/index-BQYBPyiH.js +0 -5
- package/dist/mailbox-ui/assets/index-UZ85Lvxp.css +0 -1
- package/dist/mailbox-ui/assets/vendor-BfcLUM_P.js +0 -65
- package/dist/mailbox-ui/index.html +0 -18
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ The shared harness lives in `src/`:
|
|
|
67
67
|
- `src/arc/`
|
|
68
68
|
Durable continuity state — obligations, cares, episodes, intentions, presence, and attention types. The agent's sense of ongoing story.
|
|
69
69
|
- `src/heart/`
|
|
70
|
-
Core runtime, provider adapters, daemon, bootstrap, identity, and entrypoints. Organized into topic subdirectories: daemon/ (lifecycle),
|
|
70
|
+
Core runtime, provider adapters, daemon, bootstrap, identity, and entrypoints. Organized into topic subdirectories: daemon/ (lifecycle), habits/ (scheduling), hatch/ (agent creation), versioning/ (updates), auth/, mcp/, providers/, bridges/.
|
|
71
71
|
- `src/mind/`
|
|
72
72
|
Prompt assembly, session persistence, bundle manifest enforcement, phrases, formatting, Desk record diary, note search, embedding providers, record migration, obligation steering, and friend resolution.
|
|
73
73
|
- `src/repertoire/`
|
|
@@ -135,7 +135,7 @@ Task docs do not live in this repo anymore. Planning and doing docs live in the
|
|
|
135
135
|
- Human TTY commands share one CLI surface family: bare `ouro` opens the home deck, `ouro up` uses the boot checklist, `ouro connect`/`ouro auth verify`/`ouro repair` agree on provider and vault truth, and `ouro help`/`ouro whoami`/`ouro versions`/`ouro hatch` render through the same Ouro-branded wizard/guide language instead of raw transcript walls. Orientation commands such as root `ouro connect` may use shorter live probes, while startup and verification commands own durable readiness updates.
|
|
136
136
|
- Human-facing CLI commands that can wait on browser auth, vault IO, daemon startup, daemon restart, provider checks, or connector setup use a shared progress checklist. If a cursor may blink for more than a few seconds, the command should print or animate the current step instead of going quiet.
|
|
137
137
|
- CLI commands that mutate bundle config, such as vault setup or `ouro connect bluebubbles`, run bundle sync after the change when `sync.enabled` is true and report a compact `bundle sync:` line.
|
|
138
|
-
- Voice is transcript-first: voice sessions use the ordinary `state/sessions/<friend>/voice/<key>.json` session path and
|
|
138
|
+
- Voice is transcript-first: voice sessions use the ordinary `state/sessions/<friend>/voice/<key>.json` session path and are stored as text transcripts. `voice.openaiRealtimeVoice` is the current native Realtime phone voice, with `voice.openaiRealtimeVoiceStyle` and `voice.openaiRealtimeVoiceSpeed` shaping spoken identity/cadence from the first audible greeting; ElevenLabs remains legacy cascade compatibility unless it earns a distinct non-redundant role. ElevenLabs API credentials live in portable `runtime/config` at `integrations.elevenLabsApiKey` and `integrations.elevenLabsVoiceId`; Whisper.cpp CLI/model paths live in the machine runtime item at `voice.whisperCliPath` and `voice.whisperModelPath`. Phone calls, browser meetings, and local microphone capture are transports under the single `voice` sense, not separate senses; the Twilio phone transport can run the conservative Record -> Whisper.cpp -> stable voice session -> ElevenLabs path, native Realtime over Media Streams, or the preferred SIP path with `voice.twilioConversationEngine=openai-sip`. SIP routes live media to OpenAI while Ouro retains session, transcript, tool, routing, and call-control ownership. See [Voice Architecture](docs/voice-architecture.md) for the durable transport model.
|
|
139
139
|
- The daemon discovers bundles dynamically from `~/AgentBundles`.
|
|
140
140
|
- `ouro status` reports version, last-updated time, discovered agents, senses, and workers.
|
|
141
141
|
- `bundle-meta.json` tracks the runtime version that last touched a bundle.
|
package/changelog.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
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.1465",
|
|
6
|
+
"changes": [
|
|
7
|
+
"The old Ouro Mailbox page is gone: `ouro mailbox` and its `outlook` alias are no longer commands, the daemon no longer serves a page on port 6876, and `ouro status` no longer shows a Mailbox row. A fresh Mailbox will be built in its place. Data the old page left in agent bundles (`state/mailbox/` and its prefs files) is not read, moved or deleted.",
|
|
8
|
+
"`ouro shepherd status` still shows the same supervision view; its reader moved out of the old Mailbox code.",
|
|
9
|
+
"The mail setup guide and the agent's mail prompts now point at the mail tools for auditing mail instead of the old page."
|
|
10
|
+
]
|
|
11
|
+
},
|
|
4
12
|
{
|
|
5
13
|
"version": "0.1.0-alpha.1464",
|
|
6
14
|
"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.1465</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -6,7 +6,6 @@ exports.MAIL_COMMANDS = [
|
|
|
6
6
|
{ name: "mail backfill-indexes", effect: "private", summary: "Rebuild the mail indexes for an agent.", ax: { id: "cli:mail backfill-indexes", group: "mail", effect: "write", when: "When mail search misses messages the Mailroom holds: rebuilds its indexes, in the background unless --foreground.", errors: [(0, cards_1.usageError)("mail backfill-indexes", "takes only --agent, --foreground and --operation-id.", "Drop the other words; pass --foreground to wait for it to finish."), (0, cards_1.unknownFlag)("mail backfill-indexes")] } },
|
|
7
7
|
{ name: "mail sweep-orphans", effect: "private", summary: "Delete unreferenced encrypted raw mail (dry run unless --live).", ax: { id: "cli:mail sweep-orphans", group: "mail", effect: "consequential", destructive: true, confirm: "With --live it deletes stored raw mail that no index refers to; that mail can't be recovered.", when: "Free storage taken by raw mail nothing refers to; without --live it only lists what it would delete.", errors: [(0, cards_1.usageError)("mail sweep-orphans", "takes only --agent and --live.", "Run it without --live first, then add --live to delete what it listed."), (0, cards_1.unknownFlag)("mail sweep-orphans"), ...(0, cards_1.agentErrors)("mail sweep-orphans")] } },
|
|
8
8
|
{ name: "mail import-mbox", effect: "private", summary: "Import an MBOX export into the agent's mail.", ax: { id: "cli:mail import-mbox", group: "mail", effect: "write", when: "Bring a person's existing mail into the agent's Mailroom from an MBOX export, given by --file or found with --discover.", errors: [(0, cards_1.usageError)("mail import-mbox", "needs --file <path> or --discover.", "Pass --file with the MBOX export's path, or --discover to look in the usual download folders."), (0, cards_1.unknownFlag)("mail import-mbox"), ...(0, cards_1.agentErrors)("mail import-mbox")] } },
|
|
9
|
-
{ name: "mailbox", effect: "private", readOnly: true, summary: "Show the agent's mailbox.", ax: { id: "cli:mailbox", group: "mail", effect: "read", when: "Get the local web address where a person can read the agent's mail in a browser.", errors: [(0, cards_1.unknownFlag)("mailbox"), (0, cards_1.daemonDown)("mailbox")], aliases: ["outlook"] } },
|
|
10
9
|
{ name: "mail", effect: "private", readOnly: true, summary: "The commands for an agent's hosted mail.", ax: { id: "cli:mail", group: "mail", effect: "read", when: "Names the mail upkeep jobs: import-mbox brings in old mail, and the others repair indexes, cache and stray files.", errors: [(0, cards_1.needsSubcommand)("mail", "import-mbox, backfill-indexes, sync-cache, sweep-orphans"), (0, cards_1.unknownFlag)("mail")] } },
|
|
11
10
|
{ name: "mail sync-cache", effect: "private", summary: "Refresh the local mail search cache.", ax: { id: "cli:mail sync-cache", group: "mail", effect: "write", when: "When local mail search is stale or empty on this machine: pulls the hosted Mailroom's messages into the local cache.", errors: [(0, cards_1.usageError)("mail sync-cache", "takes only one --agent <name>.", "Pass --agent once with a name, or leave it out."), (0, cards_1.unknownFlag)("mail sync-cache"), ...(0, cards_1.agentErrors)("mail sync-cache")] } },
|
|
12
11
|
];
|
|
@@ -8007,39 +8007,6 @@ async function runOuroCli(args, deps = (0, cli_defaults_1.createDefaultOuroCliDe
|
|
|
8007
8007
|
deps.writeStdout(message);
|
|
8008
8008
|
return message;
|
|
8009
8009
|
}
|
|
8010
|
-
if (command.kind === "mailbox") {
|
|
8011
|
-
let status;
|
|
8012
|
-
try {
|
|
8013
|
-
status = await deps.sendCommand(deps.socketPath, { kind: "daemon.status" });
|
|
8014
|
-
/* v8 ignore start — error path: daemon not running */
|
|
8015
|
-
}
|
|
8016
|
-
catch {
|
|
8017
|
-
daemonDown(command.kind);
|
|
8018
|
-
}
|
|
8019
|
-
/* v8 ignore stop */
|
|
8020
|
-
const payload = (0, cli_render_1.parseStatusPayload)(status.data);
|
|
8021
|
-
/* v8 ignore start -- ?? branch: mailboxUrl always present in test fixtures */
|
|
8022
|
-
const mailboxUrl = payload?.overview.mailboxUrl ?? payload?.overview.outlookUrl ?? "unavailable";
|
|
8023
|
-
/* v8 ignore stop */
|
|
8024
|
-
if (!command.json) {
|
|
8025
|
-
deps.writeStdout(mailboxUrl);
|
|
8026
|
-
return mailboxUrl;
|
|
8027
|
-
}
|
|
8028
|
-
/* v8 ignore start — error path: mailbox URL not available */
|
|
8029
|
-
if (mailboxUrl === "unavailable") {
|
|
8030
|
-
deps.writeStdout(mailboxUrl);
|
|
8031
|
-
return mailboxUrl;
|
|
8032
|
-
}
|
|
8033
|
-
/* v8 ignore stop */
|
|
8034
|
-
/* v8 ignore start -- ?? branch: tests always inject fetchImpl */
|
|
8035
|
-
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
8036
|
-
/* v8 ignore stop */
|
|
8037
|
-
const response = await fetchImpl(`${mailboxUrl}/api/machine`);
|
|
8038
|
-
const data = await response.json();
|
|
8039
|
-
const text = JSON.stringify(data, null, 2);
|
|
8040
|
-
deps.writeStdout(text);
|
|
8041
|
-
return text;
|
|
8042
|
-
}
|
|
8043
8010
|
// ── hook: handle Claude Code lifecycle hooks ──
|
|
8044
8011
|
/* v8 ignore start -- hook handler: reads real stdin, sends to real daemon @preserve */
|
|
8045
8012
|
if (command.kind === "hook") {
|
|
@@ -113,19 +113,6 @@ exports.COMMAND_REGISTRY = {
|
|
|
113
113
|
usage: "ouro help [<command>] [--json]",
|
|
114
114
|
example: "ouro help --json",
|
|
115
115
|
},
|
|
116
|
-
mailbox: {
|
|
117
|
-
category: "Agents",
|
|
118
|
-
description: "Show the agent's current mailbox overview",
|
|
119
|
-
usage: "ouro mailbox [--json]",
|
|
120
|
-
example: "ouro mailbox --json",
|
|
121
|
-
},
|
|
122
|
-
outlook: {
|
|
123
|
-
category: "Agents",
|
|
124
|
-
description: "Deprecated alias for `ouro mailbox`",
|
|
125
|
-
usage: "ouro outlook [--json]",
|
|
126
|
-
example: "ouro outlook --json",
|
|
127
|
-
hidden: true,
|
|
128
|
-
},
|
|
129
116
|
move: {
|
|
130
117
|
category: "Agents",
|
|
131
118
|
description: "Make this machine the agent's home, the one machine that runs it. The move is recorded in the agent's synced bundle, and the old home stops running it.",
|
|
@@ -356,7 +356,6 @@ function usage() {
|
|
|
356
356
|
" ouro repair [--agent <name>]",
|
|
357
357
|
" ouro provider refresh [--agent <name>]",
|
|
358
358
|
" ouro provider check [--agent <name>] --lane outward|inner",
|
|
359
|
-
" ouro mailbox [--json]",
|
|
360
359
|
" ouro help [<command>] [--json]",
|
|
361
360
|
" ouro changelog [--from <version>]",
|
|
362
361
|
" ouro -v|--version",
|
|
@@ -3444,8 +3443,6 @@ function parseOuroCommand(args) {
|
|
|
3444
3443
|
return parseDnsCommand(args.slice(1));
|
|
3445
3444
|
if (head === "logs")
|
|
3446
3445
|
return parseLogsCommand(args.slice(1));
|
|
3447
|
-
if (head === "mailbox" || head === "outlook")
|
|
3448
|
-
return { kind: "mailbox", ...(args.includes("--json") ? { json: true } : {}) };
|
|
3449
3446
|
if (head === "hatch")
|
|
3450
3447
|
return parseHatchCommand(args.slice(1));
|
|
3451
3448
|
if (head === "auth")
|
|
@@ -149,10 +149,6 @@ function parseStatusPayload(data) {
|
|
|
149
149
|
daemon: stringField(overview.daemon) ?? "unknown",
|
|
150
150
|
health: stringField(overview.health) ?? "unknown",
|
|
151
151
|
socketPath: stringField(overview.socketPath) ?? "unknown",
|
|
152
|
-
mailboxUrl: stringField(overview.mailboxUrl)
|
|
153
|
-
?? stringField(overview.outlookUrl)
|
|
154
|
-
?? "unavailable",
|
|
155
|
-
outlookUrl: stringField(overview.outlookUrl) ?? undefined,
|
|
156
152
|
version: stringField(overview.version) ?? "unknown",
|
|
157
153
|
lastUpdated: stringField(overview.lastUpdated) ?? "unknown",
|
|
158
154
|
repoRoot: stringField(overview.repoRoot) ?? "unknown",
|
|
@@ -460,7 +456,6 @@ function formatDaemonStatusOutput(response, fallback) {
|
|
|
460
456
|
// ── Key-value overview ──
|
|
461
457
|
const kvLine = (label, value) => ` ${teal(label.padEnd(11))} ${value}`;
|
|
462
458
|
lines.push(kvLine("Socket", ov.socketPath));
|
|
463
|
-
lines.push(kvLine("Mailbox", ov.mailboxUrl));
|
|
464
459
|
lines.push(kvLine("Health", `${statusDot(ov.health)} ${ov.health}`));
|
|
465
460
|
lines.push(kvLine("Updated", ov.lastUpdated));
|
|
466
461
|
lines.push("");
|
|
@@ -634,8 +629,6 @@ function buildStoppedStatusPayload(socketPath, syncRows = [], agentRows = []) {
|
|
|
634
629
|
daemon: "stopped",
|
|
635
630
|
health: "warn",
|
|
636
631
|
socketPath,
|
|
637
|
-
mailboxUrl: "unavailable",
|
|
638
|
-
outlookUrl: "unavailable",
|
|
639
632
|
version: metadata.version,
|
|
640
633
|
lastUpdated: metadata.lastUpdated,
|
|
641
634
|
repoRoot: metadata.repoRoot,
|
|
@@ -597,7 +597,7 @@ function buildDaemonHealthState() {
|
|
|
597
597
|
};
|
|
598
598
|
});
|
|
599
599
|
// Preserved for backwards-compatible inspection: callers (status
|
|
600
|
-
// command,
|
|
600
|
+
// command, etc.) may still read this combined list
|
|
601
601
|
// for per-component reasons. The rollup status field above is what
|
|
602
602
|
// changed meaning — the array is still the union of bootstrap +
|
|
603
603
|
// agent-derived degradation entries.
|
|
@@ -66,10 +66,6 @@ const agent_service_1 = require("./agent-service");
|
|
|
66
66
|
const friends_1 = require("@ouro.bot/friends");
|
|
67
67
|
const mcp_manager_1 = require("../../repertoire/mcp-manager");
|
|
68
68
|
const mcp_tools_1 = require("../../repertoire/mcp-tools");
|
|
69
|
-
const mailbox_http_1 = require("../mailbox/mailbox-http");
|
|
70
|
-
const mailbox_types_1 = require("../mailbox/mailbox-types");
|
|
71
|
-
const mailbox_read_1 = require("../mailbox/mailbox-read");
|
|
72
|
-
const mailbox_view_1 = require("../mailbox/mailbox-view");
|
|
73
69
|
const provider_visibility_1 = require("../provider-visibility");
|
|
74
70
|
const provider_binding_resolver_1 = require("../provider-binding-resolver");
|
|
75
71
|
const private_runtime_1 = require("../private-runtime");
|
|
@@ -627,14 +623,12 @@ class OuroDaemon {
|
|
|
627
623
|
bundlesRoot;
|
|
628
624
|
mode;
|
|
629
625
|
server = null;
|
|
630
|
-
mailboxServer = null;
|
|
631
626
|
frontendSocketServer = null;
|
|
632
627
|
socketIdentity = null;
|
|
633
628
|
senseAutostartTimer = null;
|
|
634
629
|
externalEventReconcileTimer = null;
|
|
635
630
|
externalEventReconcileRunning = false;
|
|
636
631
|
constructedAtMs = Date.now();
|
|
637
|
-
mailboxServerFactory;
|
|
638
632
|
frontendSocketPath;
|
|
639
633
|
frontendSessionService;
|
|
640
634
|
frontendSocketServerFactory;
|
|
@@ -664,7 +658,6 @@ class OuroDaemon {
|
|
|
664
658
|
this.senseManager = options.senseManager ?? null;
|
|
665
659
|
this.bundlesRoot = options.bundlesRoot ?? (0, identity_1.getAgentBundlesRoot)();
|
|
666
660
|
this.mode = options.mode ?? "production";
|
|
667
|
-
this.mailboxServerFactory = options.mailboxServerFactory ?? this.createDefaultMailboxServer.bind(this);
|
|
668
661
|
this.frontendSocketPath = options.frontendSocketPath ?? (0, frontend_socket_1.frontendSocketPathForDaemon)(this.socketPath);
|
|
669
662
|
/* v8 ignore next -- path-only default adapter; frontend service tests inject and verify the same root contract @preserve */
|
|
670
663
|
const frontendAgentRoot = (agent) => path.join(this.bundlesRoot, `${agent}.ouro`);
|
|
@@ -696,40 +689,6 @@ class OuroDaemon {
|
|
|
696
689
|
await ensureSanctuarySourceRuntimeReady(agent, source);
|
|
697
690
|
});
|
|
698
691
|
}
|
|
699
|
-
/* v8 ignore start -- default mailbox server wiring: production-only path, tests inject mailboxServerFactory stub instead. startMailboxHttpServer itself has full coverage in mailbox-http.test.ts @preserve */
|
|
700
|
-
createDefaultMailboxServer() {
|
|
701
|
-
return (0, mailbox_http_1.startMailboxHttpServer)({
|
|
702
|
-
host: "127.0.0.1",
|
|
703
|
-
port: mailbox_types_1.MAILBOX_DEFAULT_PORT,
|
|
704
|
-
bundlesRoot: this.bundlesRoot,
|
|
705
|
-
readMachineState: () => (0, mailbox_read_1.readMailboxMachineState)({ bundlesRoot: this.bundlesRoot }),
|
|
706
|
-
readMachineView: ({ machine }) => {
|
|
707
|
-
const overview = this.buildStatusPayload().overview;
|
|
708
|
-
return (0, mailbox_view_1.buildMailboxMachineView)({
|
|
709
|
-
machine,
|
|
710
|
-
daemon: {
|
|
711
|
-
status: overview.daemon,
|
|
712
|
-
health: overview.health,
|
|
713
|
-
mode: overview.mode,
|
|
714
|
-
socketPath: overview.socketPath,
|
|
715
|
-
mailboxUrl: overview.mailboxUrl,
|
|
716
|
-
entryPath: overview.entryPath,
|
|
717
|
-
workerCount: overview.workerCount,
|
|
718
|
-
senseCount: overview.senseCount,
|
|
719
|
-
},
|
|
720
|
-
});
|
|
721
|
-
},
|
|
722
|
-
readAgentState: (agentName) => (0, mailbox_read_1.readMailboxAgentState)(agentName, { bundlesRoot: this.bundlesRoot }),
|
|
723
|
-
readAgentView: (agentName) => {
|
|
724
|
-
const agent = (0, mailbox_read_1.readMailboxAgentState)(agentName, { bundlesRoot: this.bundlesRoot });
|
|
725
|
-
return (0, mailbox_view_1.buildMailboxAgentView)({
|
|
726
|
-
agent,
|
|
727
|
-
viewer: { kind: "human" },
|
|
728
|
-
});
|
|
729
|
-
},
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
/* v8 ignore stop */
|
|
733
692
|
buildStatusPayload() {
|
|
734
693
|
const snapshots = this.processManager.listAgentSnapshots();
|
|
735
694
|
const workers = buildWorkerRows(snapshots);
|
|
@@ -744,14 +703,11 @@ class OuroDaemon {
|
|
|
744
703
|
agentRoot: path.join(this.bundlesRoot, `${agentName}.ouro`),
|
|
745
704
|
})));
|
|
746
705
|
const externalEvents = (0, router_1.listExternalEventStatus)(this.externalEventRoot ?? (0, router_1.getExternalEventRoot)());
|
|
747
|
-
const mailboxUrl = this.mailboxServer?.origin ?? "http://127.0.0.1:0";
|
|
748
706
|
return {
|
|
749
707
|
overview: {
|
|
750
708
|
daemon: "running",
|
|
751
709
|
health: overviewHealth(workers, senses, healthChecks),
|
|
752
710
|
socketPath: this.socketPath,
|
|
753
|
-
mailboxUrl,
|
|
754
|
-
outlookUrl: mailboxUrl,
|
|
755
711
|
...(0, runtime_metadata_1.getRuntimeMetadata)(),
|
|
756
712
|
workerCount: workers.length,
|
|
757
713
|
senseCount: senses.length,
|
|
@@ -904,21 +860,6 @@ class OuroDaemon {
|
|
|
904
860
|
await this.scheduler.reconcile?.();
|
|
905
861
|
await this.drainPendingBundleMessages();
|
|
906
862
|
await this.drainPendingSenseMessages();
|
|
907
|
-
// startInner is only reachable when this.server is null (guarded in
|
|
908
|
-
// start()), and stop() nulls out this.mailboxServer alongside this.server,
|
|
909
|
-
// so mailboxServer is guaranteed unset here — no need for a guard.
|
|
910
|
-
try {
|
|
911
|
-
this.mailboxServer = await this.mailboxServerFactory();
|
|
912
|
-
}
|
|
913
|
-
catch (error) {
|
|
914
|
-
(0, runtime_1.emitNervesEvent)({
|
|
915
|
-
level: "warn",
|
|
916
|
-
component: "daemon",
|
|
917
|
-
event: "daemon.mailbox_start_failed",
|
|
918
|
-
message: `Mailbox server failed to start: ${String(error)}`,
|
|
919
|
-
meta: { port: mailbox_types_1.MAILBOX_DEFAULT_PORT },
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
863
|
try {
|
|
923
864
|
this.frontendSocketServer = await this.frontendSocketServerFactory({
|
|
924
865
|
socketPath: this.frontendSocketPath,
|
|
@@ -1262,10 +1203,6 @@ class OuroDaemon {
|
|
|
1262
1203
|
this.server.close();
|
|
1263
1204
|
this.server = null;
|
|
1264
1205
|
}
|
|
1265
|
-
if (this.mailboxServer) {
|
|
1266
|
-
await this.mailboxServer.stop();
|
|
1267
|
-
this.mailboxServer = null;
|
|
1268
|
-
}
|
|
1269
1206
|
const socketPathExists = fs.existsSync(this.socketPath);
|
|
1270
1207
|
const currentSocketIdentity = socketPathExists ? readSocketIdentity(this.socketPath) : null;
|
|
1271
1208
|
if (sameSocketIdentity(this.socketIdentity, currentSocketIdentity)) {
|
|
@@ -33,11 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.readShepherdSupervision = readShepherdSupervision;
|
|
37
37
|
const fs = __importStar(require("node:fs"));
|
|
38
38
|
const path = __importStar(require("node:path"));
|
|
39
39
|
const runtime_1 = require("../../nerves/runtime");
|
|
40
|
-
const supervision_1 = require("
|
|
40
|
+
const supervision_1 = require("./supervision");
|
|
41
41
|
function owned(metadata) {
|
|
42
42
|
if (!process.getuid || metadata.uid !== process.getuid())
|
|
43
43
|
throw new Error("Observation requires current-user ownership");
|
|
@@ -77,7 +77,7 @@ function unavailable(agentName, nowMs, code) {
|
|
|
77
77
|
return view;
|
|
78
78
|
}
|
|
79
79
|
/** A bounded read-only replica, never an authority file or a live terminal access path. */
|
|
80
|
-
function
|
|
80
|
+
function readShepherdSupervision(agentName, options) {
|
|
81
81
|
const nowMs = options.nowMs ?? Date.now();
|
|
82
82
|
try {
|
|
83
83
|
let current = path.resolve(options.agentRoot);
|
|
@@ -125,7 +125,7 @@ function readMailboxSupervision(agentName, options) {
|
|
|
125
125
|
return (0, supervision_1.buildShepherdSupervisionView)(snapshot, nowMs);
|
|
126
126
|
}
|
|
127
127
|
catch {
|
|
128
|
-
// Do not echo untrusted file contents, paths or operating-system errors into
|
|
128
|
+
// Do not echo untrusted file contents, paths or operating-system errors into a status reply.
|
|
129
129
|
return unavailable(agentName, nowMs, "observation_invalid");
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -106,10 +106,6 @@ const DISPATCH_EXEMPT_PATTERNS = [
|
|
|
106
106
|
"heart/attachments/originals",
|
|
107
107
|
"heart/attachments/sources/index",
|
|
108
108
|
"heart/attachments/sources/cli-local-file",
|
|
109
|
-
// Browser-safe Mailbox contract helpers: shared types/formatting helpers
|
|
110
|
-
// consumed by server readers and the UI. Mailbox read/render modules own
|
|
111
|
-
// the observability for these projections.
|
|
112
|
-
"heart/mailbox/mailbox-types",
|
|
113
109
|
// Argv runner: no events of its own; the digest's sources report a run that failed, with its reason.
|
|
114
110
|
"senses/app-sessions/run-command",
|
|
115
111
|
// Waiting-prompt status reader: pure line rendering for `ouro status`. The notifier
|
|
@@ -130,13 +126,6 @@ const DISPATCH_EXEMPT_PATTERNS = [
|
|
|
130
126
|
// hashing. The caller (trips/store.ts) owns observability via
|
|
131
127
|
// trips.ledger_created and trips.evidence_attached.
|
|
132
128
|
"trips/core",
|
|
133
|
-
// Mailbox HTTP helper modules: route/static/transport/hook seams are
|
|
134
|
-
// dispatched by mailbox-http.ts, whose server lifecycle owns observability.
|
|
135
|
-
"heart/mailbox/mailbox-http-transport",
|
|
136
|
-
"heart/mailbox/mailbox-http-static",
|
|
137
|
-
"heart/mailbox/mailbox-http-hooks",
|
|
138
|
-
"heart/mailbox/mailbox-http-routes",
|
|
139
|
-
"heart/mailbox/mailbox-http-response",
|
|
140
129
|
// Session playback: read-only debugging CLI for sanitize-pipeline replay.
|
|
141
130
|
// No side effects on the runtime; output is human-readable diagnostics only.
|
|
142
131
|
"heart/session-playback-cli-main",
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
* Nerves observation layer — shared typed readers for runtime state.
|
|
4
4
|
*
|
|
5
5
|
* This module re-exports domain types that multiple consumers need
|
|
6
|
-
* (
|
|
7
|
-
*
|
|
8
|
-
* The Mailbox UI consumes these through the HTTP API, but the same
|
|
9
|
-
* observation functions back CLI commands and future native clients.
|
|
6
|
+
* (CLI, agent tools, native clients) so they don't maintain parallel type
|
|
7
|
+
* universes.
|
|
10
8
|
*/
|
|
11
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
10
|
/* v8 ignore start — module-level observability event */
|
|
@@ -420,12 +420,12 @@ async function renderEmptyMailResult(input) {
|
|
|
420
420
|
...(divergence ? [divergence] : []),
|
|
421
421
|
...sourceGrantStatus,
|
|
422
422
|
"interpretation: this is not evidence that the human's HEY inbox is empty; Agent Mail has not yet received or imported mail visible to this agent.",
|
|
423
|
-
`agent next move: guide setup from docs/agent-mail-setup.md. If HEY mail is needed, ensure the delegated hey alias exists, first try ouro mail import-mbox --agent ${input.agentId} --owner-email <human-email> --source hey --discover so Ouro can find a browser-downloaded export in .playwright-mcp or Downloads. Only ask the human for a file path if discovery cannot find a unique MBOX, then run ouro mail import-mbox --agent ${input.agentId} --owner-email <human-email> --source hey --file <mbox-path>. Verify with mail_recent
|
|
423
|
+
`agent next move: guide setup from docs/agent-mail-setup.md. If HEY mail is needed, ensure the delegated hey alias exists, first try ouro mail import-mbox --agent ${input.agentId} --owner-email <human-email> --source hey --discover so Ouro can find a browser-downloaded export in .playwright-mcp or Downloads. Only ask the human for a file path if discovery cannot find a unique MBOX, then run ouro mail import-mbox --agent ${input.agentId} --owner-email <human-email> --source hey --file <mbox-path>. Verify with mail_recent and mail_search.`,
|
|
424
424
|
"validation golden paths before claiming setup works:",
|
|
425
425
|
"1. HEY archive to work object: import the human-provided HEY MBOX and use delegated mail to update a real work object, such as travel plans.",
|
|
426
426
|
"2. Native mail and Screener: send and receive agent-native mail, confirm unknown senders enter Screener, get family authorization for allow/discard, verify sender policy, and confirm discarded mail is recoverable.",
|
|
427
427
|
"3. Cross-sense reaction: use a mail-derived update or decision to trigger another configured sense, such as texting the family member on iMessage when BlueBubbles is available.",
|
|
428
|
-
"4.
|
|
428
|
+
"4. Mail audit: review imported mail, native inbound, Screener decisions, outbound draft/send records, and mail access logs through the mail tools.",
|
|
429
429
|
"supporting diagnostics are separate evidence inside those paths, not additional paths; never answer a golden-path question with command names, tool names, or status checks.",
|
|
430
430
|
].join("\n");
|
|
431
431
|
}
|
|
@@ -11,7 +11,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
11
11
|
* Only the "live" area (current streaming + spinner + input) re-renders.
|
|
12
12
|
* This avoids the screen-clearing problem that broke the previous Ink attempt.
|
|
13
13
|
*
|
|
14
|
-
* Design language: ouroboros brand palette from ouroboros.bot
|
|
14
|
+
* Design language: ouroboros brand palette from ouroboros.bot.
|
|
15
15
|
* ZERO business logic here — pure rendering from CliStore state.
|
|
16
16
|
*/
|
|
17
17
|
const react_1 = require("react");
|
|
@@ -22,7 +22,7 @@ const kill_ring_1 = require("./kill-ring");
|
|
|
22
22
|
const input_keys_1 = require("./input-keys");
|
|
23
23
|
const image_ref_navigation_1 = require("./image-ref-navigation");
|
|
24
24
|
// ─── Ouroboros Brand Palette (ANSI RGB) ─────────────────────────────
|
|
25
|
-
// From
|
|
25
|
+
// From the ouroboros.bot brand palette
|
|
26
26
|
const OURO = {
|
|
27
27
|
scale: "#2f8f4e", // primary green
|
|
28
28
|
teal: "#4ec9b0", // tool/accent teal
|
|
@@ -37,7 +37,7 @@ exports.runShepherdOperation = runShepherdOperation;
|
|
|
37
37
|
const node_crypto_1 = require("node:crypto");
|
|
38
38
|
const path = __importStar(require("node:path"));
|
|
39
39
|
const mandates_1 = require("../../heart/shepherd/mandates");
|
|
40
|
-
const
|
|
40
|
+
const supervision_read_1 = require("../../heart/shepherd/supervision-read");
|
|
41
41
|
const supervision_1 = require("../../heart/shepherd/supervision");
|
|
42
42
|
const guidance_1 = require("./guidance");
|
|
43
43
|
const checkin_store_1 = require("./checkin-store");
|
|
@@ -57,7 +57,7 @@ async function runShepherdOperation(command, deps) {
|
|
|
57
57
|
return {
|
|
58
58
|
boundary: "same_uid_local_owner_administration_not_human_presence",
|
|
59
59
|
automation: { mode: "legacy_unqualified", mandatesEnforcedForAllTriggers: false, unattendedKeysPossible: false, warning: supervision_1.SHEPHERD_ALPHA_AUTOMATION_WARNING },
|
|
60
|
-
supervision: (0,
|
|
60
|
+
supervision: (0, supervision_read_1.readShepherdSupervision)(command.agent, { agentRoot: root }),
|
|
61
61
|
guidance: (0, guidance_1.readGuidance)(root), mandates: (0, mandates_1.readShepherdMandates)(root),
|
|
62
62
|
custody: (0, recovery_1.readCheckInSnapshot)(file, { limit: 50 }),
|
|
63
63
|
};
|
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.1465",
|
|
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.1465",
|
|
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.1465",
|
|
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": {
|
|
@@ -45,8 +45,6 @@
|
|
|
45
45
|
"test:e2e:self-update": "node scripts/self-update-package-e2e.cjs",
|
|
46
46
|
"test:e2e:ouro-bot-package": "node scripts/ouro-bot-package-e2e.cjs",
|
|
47
47
|
"test:e2e:real-smoke": "npm run build && node scripts/nightly-real-smoke.cjs",
|
|
48
|
-
"typecheck:mailbox-ui": "tsc --noEmit -p packages/mailbox-ui/tsconfig.json",
|
|
49
|
-
"test:mailbox-ui": "npm test --prefix packages/mailbox-ui",
|
|
50
48
|
"test:coverage:vitest": "vitest run --coverage",
|
|
51
49
|
"test:coverage": "node scripts/run-coverage-gate.cjs",
|
|
52
50
|
"build": "node scripts/build.cjs",
|
|
@@ -61,7 +59,7 @@
|
|
|
61
59
|
"release:trust:repair-plan": "node scripts/npm-trusted-publishers.cjs repair-plan",
|
|
62
60
|
"release:trust:repair": "node scripts/npm-trusted-publishers.cjs repair",
|
|
63
61
|
"release:smoke": "node scripts/release-smoke.cjs",
|
|
64
|
-
"audit:nerves": "npm run build
|
|
62
|
+
"audit:nerves": "npm run build && node dist/nerves/coverage/cli-main.js"
|
|
65
63
|
},
|
|
66
64
|
"bundleDependencies": [
|
|
67
65
|
"@ouro.bot/friends"
|
package/skills/sense-setup.md
CHANGED
|
@@ -41,7 +41,7 @@ mail validation answer shape: when a human asks for Agent Mail golden paths, ans
|
|
|
41
41
|
- golden path 1, HEY archive to work object: import the human-provided HEY MBOX and use delegated mail to update a real work object, such as travel plans.
|
|
42
42
|
- golden path 2, native mail and Screener: send and receive agent-native mail, confirm unknown senders enter Screener, get family authorization for allow/discard, verify sender policy, and confirm discarded mail is recoverable.
|
|
43
43
|
- golden path 3, cross-sense reaction: use a mail-derived update or decision to trigger another configured sense, such as texting the family member on iMessage when BlueBubbles is available.
|
|
44
|
-
- golden path 4,
|
|
44
|
+
- golden path 4, mail audit: review imported mail, native inbound, Screener decisions, outbound draft/send records, and mail access logs through the mail tools.
|
|
45
45
|
|
|
46
46
|
mail validation question discipline: if a human asks a hypothetical such as 'if mail tools return No visible mail yet, what should you infer and what golden paths should you validate?', answer that hypothetical first. Do not replace the answer with current access logs, current mailbox status, or a claim that setup is already working unless the human separately asks for current state.
|
|
47
47
|
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.isSafeMailboxAgentName = isSafeMailboxAgentName;
|
|
37
|
-
exports.createMailboxHttpReadHooks = createMailboxHttpReadHooks;
|
|
38
|
-
const path = __importStar(require("path"));
|
|
39
|
-
const mailbox_read_1 = require("./mailbox-read");
|
|
40
|
-
function isSafeMailboxAgentName(agentName) {
|
|
41
|
-
const trimmed = agentName.trim();
|
|
42
|
-
return trimmed === agentName
|
|
43
|
-
&& /^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(agentName)
|
|
44
|
-
&& agentName !== "."
|
|
45
|
-
&& agentName !== ".."
|
|
46
|
-
&& !agentName.includes("/")
|
|
47
|
-
&& !agentName.includes("\\");
|
|
48
|
-
}
|
|
49
|
-
function resolveAgentRoot(bundlesRoot, agentName) {
|
|
50
|
-
if (!isSafeMailboxAgentName(agentName)) {
|
|
51
|
-
throw new Error("mailbox API requires a safe agent name");
|
|
52
|
-
}
|
|
53
|
-
if (!bundlesRoot)
|
|
54
|
-
return path.join(`${agentName}.ouro`);
|
|
55
|
-
const root = path.resolve(bundlesRoot);
|
|
56
|
-
const agentRoot = path.resolve(root, `${agentName}.ouro`);
|
|
57
|
-
/* v8 ignore next -- defensive containment guard after strict safe bundle-name validation @preserve */
|
|
58
|
-
if (agentRoot !== root && !agentRoot.startsWith(`${root}${path.sep}`)) {
|
|
59
|
-
throw new Error("mailbox API agent root escaped bundles root");
|
|
60
|
-
}
|
|
61
|
-
return agentRoot;
|
|
62
|
-
}
|
|
63
|
-
function createMailboxHttpReadHooks(options) {
|
|
64
|
-
const bundlesRoot = options.bundlesRoot;
|
|
65
|
-
const readOptions = bundlesRoot ? { bundlesRoot } : undefined;
|
|
66
|
-
const agentRoot = (agentName) => resolveAgentRoot(bundlesRoot, agentName);
|
|
67
|
-
return {
|
|
68
|
-
agentRoot,
|
|
69
|
-
readAgentSupervision: options.readAgentSupervision ?? ((agentName) => (0, mailbox_read_1.readMailboxSupervision)(agentName, { agentRoot: agentRoot(agentName) })),
|
|
70
|
-
readAgentSessions: options.readAgentSessions ?? ((agentName) => (0, mailbox_read_1.readSessionInventory)(agentName, readOptions)),
|
|
71
|
-
readAgentTranscript: options.readAgentTranscript ?? ((agentName, friendId, channel, key) => (0, mailbox_read_1.readSessionTranscript)(agentName, friendId, channel, key, readOptions)),
|
|
72
|
-
readAgentCoding: options.readAgentCoding ?? ((agentName) => (0, mailbox_read_1.readCodingDeep)(agentRoot(agentName))),
|
|
73
|
-
readAgentAttention: options.readAgentAttention ?? ((agentName) => (0, mailbox_read_1.readAttentionView)(agentName, readOptions)),
|
|
74
|
-
readAgentBridges: options.readAgentBridges ?? ((agentName) => (0, mailbox_read_1.readBridgeInventory)(agentRoot(agentName))),
|
|
75
|
-
readAgentNotes: options.readAgentNotes ?? ((agentName) => (0, mailbox_read_1.readNotesView)(agentRoot(agentName))),
|
|
76
|
-
readAgentFriends: options.readAgentFriends ?? ((agentName) => (0, mailbox_read_1.readFriendView)(agentName, readOptions)),
|
|
77
|
-
readAgentContinuity: options.readAgentContinuity ?? ((agentName) => (0, mailbox_read_1.readMailboxContinuity)(agentRoot(agentName), agentName)),
|
|
78
|
-
readAgentOrientation: options.readAgentOrientation ?? ((agentName) => (0, mailbox_read_1.readOrientationView)(agentRoot(agentName), agentName)),
|
|
79
|
-
readAgentObligations: options.readAgentObligations ?? ((agentName) => (0, mailbox_read_1.readObligationDetailView)(agentRoot(agentName))),
|
|
80
|
-
readAgentChanges: options.readAgentChanges ?? ((agentName) => (0, mailbox_read_1.readChangesView)(agentRoot(agentName))),
|
|
81
|
-
readAgentSelfFix: options.readAgentSelfFix ?? ((agentName) => (0, mailbox_read_1.readSelfFixView)(agentRoot(agentName))),
|
|
82
|
-
readAgentContextLossGauntlet: options.readAgentContextLossGauntlet ?? ((agentName) => (0, mailbox_read_1.readContextLossGauntletView)(agentRoot(agentName), agentName)),
|
|
83
|
-
readAgentSentinel: options.readAgentSentinel ?? ((agentName) => (0, mailbox_read_1.readSentinelView)(agentRoot(agentName))),
|
|
84
|
-
readAgentNoteDecisions: options.readAgentNoteDecisions ?? ((agentName) => (0, mailbox_read_1.readNoteDecisionView)(agentRoot(agentName))),
|
|
85
|
-
readAgentHabits: options.readAgentHabits ?? ((agentName) => (0, mailbox_read_1.readHabitView)(agentRoot(agentName))),
|
|
86
|
-
readAgentHabitRuns: options.readAgentHabitRuns ?? ((agentName, habitOptions) => (0, mailbox_read_1.readHabitRunView)(agentRoot(agentName), habitOptions)),
|
|
87
|
-
readAgentHabitRun: options.readAgentHabitRun ?? ((agentName, runId) => (0, mailbox_read_1.readHabitRunReceiptView)(agentRoot(agentName), runId)),
|
|
88
|
-
readAgentHabitRunSummaries: options.readAgentHabitRunSummaries ?? ((agentName, habitOptions) => (0, mailbox_read_1.readHabitSessionSummaryListView)(agentRoot(agentName), habitOptions)),
|
|
89
|
-
readAgentHabitRunSummary: options.readAgentHabitRunSummary ?? ((agentName, selector) => (0, mailbox_read_1.readHabitSessionSummaryView)(agentRoot(agentName), selector)),
|
|
90
|
-
readAgentContextPackets: options.readAgentContextPackets ?? ((agentName, packetOptions) => (0, mailbox_read_1.readContextPacketListView)(agentRoot(agentName), packetOptions)),
|
|
91
|
-
readAgentContextPacket: options.readAgentContextPacket ?? ((agentName, packetId) => (0, mailbox_read_1.readContextPacketView)(agentRoot(agentName), packetId)),
|
|
92
|
-
readAgentMail: options.readAgentMail ?? ((agentName) => (0, mailbox_read_1.readMailView)(agentName)),
|
|
93
|
-
readAgentMailMessage: options.readAgentMailMessage ?? ((agentName, messageId) => (0, mailbox_read_1.readMailMessageView)(agentName, messageId)),
|
|
94
|
-
readDaemonHealth: options.readDaemonHealth ?? (() => (0, mailbox_read_1.readDaemonHealthDeep)(options.healthPath)),
|
|
95
|
-
readLogs: options.readLogs ?? (() => (0, mailbox_read_1.readLogView)(options.logPath ?? null)),
|
|
96
|
-
readDeskPrefs: (agentName) => (0, mailbox_read_1.readDeskPrefs)(agentRoot(agentName)),
|
|
97
|
-
readNeedsMe: (agentName) => (0, mailbox_read_1.readNeedsMeView)(agentName, readOptions),
|
|
98
|
-
};
|
|
99
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.writeJson = writeJson;
|
|
4
|
-
function writeJson(response, statusCode, payload) {
|
|
5
|
-
response.writeHead(statusCode, { "content-type": "application/json; charset=utf-8" });
|
|
6
|
-
response.end(`${JSON.stringify(payload, null, 2)}\n`);
|
|
7
|
-
}
|