@ouro.bot/cli 0.1.0-alpha.1204 → 0.1.0-alpha.1206
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
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
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.1206",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Block spontaneous surface digests that have no ready, done or gate item."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.1.0-alpha.1205",
|
|
12
|
+
"changes": [
|
|
13
|
+
"Pass --why when reading a session's automation through Shepherd, so Shepherd can go strict on --why."
|
|
14
|
+
]
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "0.1.0-alpha.1204",
|
|
6
18
|
"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.1206</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -158,9 +158,9 @@ exports.saveSessionAutomationTool = define("save_session_automation", "Create or
|
|
|
158
158
|
clear: { type: "boolean", description: "Remove the session's automation instead." },
|
|
159
159
|
}, ["session_id"], write("schedules wake-ups for an agent session in the owner's Copilot app"), args => {
|
|
160
160
|
const body = bodyOf(args, "session_id");
|
|
161
|
-
return (0, shepherd_cli_1.shepherd)(["automation", sessionId(args)], body, body ?
|
|
161
|
+
return (0, shepherd_cli_1.shepherd)(["automation", sessionId(args)], body, because(body ? (args.clear === true ? `Ouroboros clears the wake-ups of session ${short(args.session_id)}` : `Ouroboros schedules a wake-up for session ${short(args.session_id)}`) : `Ouroboros reads the wake-ups of session ${short(args.session_id)}`, args.prompt));
|
|
162
162
|
}, ["session_id"]);
|
|
163
|
-
exports.getSessionAutomationTool = define("get_session_automation", "The automation attached to a session. Read-only.", { session_id: session }, ["session_id"], READ, args => (0, shepherd_cli_1.shepherd)(["automation", sessionId(args)]), ["session_id"]);
|
|
163
|
+
exports.getSessionAutomationTool = define("get_session_automation", "The automation attached to a session. Read-only.", { session_id: session }, ["session_id"], READ, args => (0, shepherd_cli_1.shepherd)(["automation", sessionId(args)], undefined, because(`Ouroboros reads the wake-ups of session ${short(args.session_id)}`)), ["session_id"]);
|
|
164
164
|
exports.listWorkflowsTool = define("list_workflows", "The app's automations (workflows), with their ids and schedules. Read-only.", {}, [], READ, () => (0, shepherd_cli_1.shepherd)(["workflows"]));
|
|
165
165
|
exports.runWorkflowTool = define("run_workflow", "Run one of the app's automations now, in a new session.", { id: { type: "string", description: "From list_workflows." } }, ["id"], write("starts a session in the owner's Copilot app"), args => (0, shepherd_cli_1.shepherd)(["run-workflow", String(args.id)], undefined, because(`Ouroboros runs workflow ${String(args.id)}`)), ["id"]);
|
|
166
166
|
exports.appSessionsTailTool = define("app_sessions_tail", "A session's last visible prompts and replies, oldest first, with its current name and state and how much of the local log was read. Re-read before reporting current progress: older messages are not live status. Read-only.", { session_id: session, count: { type: "number", description: "How many messages, 1-50. Default 6." } }, ["session_id"], READ, async (args, agentRoot) => {
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isSignalessDigest = isSignalessDigest;
|
|
3
4
|
exports.handleSurface = handleSurface;
|
|
4
5
|
const attention_queue_1 = require("./attention-queue");
|
|
5
6
|
const runtime_1 = require("../nerves/runtime");
|
|
7
|
+
// ── Digest guard ─────────────────────────────────────────────────
|
|
8
|
+
const DIGEST_OPENING = /^\W*(?:good\s+)?(?:morning|overnight|daily|weekly|evening)?\W*(?:summary|digest|roundup|round-up|recap|catch-?up|status update)\b|^\W*(?:morning|good morning)\b[^\n]{0,40}\b(?:summary|digest|recap)\b/iu;
|
|
9
|
+
const SIGNAL_MARKER = /\b(ready|is out|are out|is live|released|shipped|merged and live|landed|needs you|needs your|your call|your decision|blocked on you|waiting on you)\b|\bis in[.:]/iu;
|
|
10
|
+
/** A digest or summary opener with no ready, done or gate item carries nothing Ari needs. */
|
|
11
|
+
function isSignalessDigest(content) {
|
|
12
|
+
const head = content.slice(0, 240);
|
|
13
|
+
return DIGEST_OPENING.test(head.trimStart()) && !SIGNAL_MARKER.test(content);
|
|
14
|
+
}
|
|
6
15
|
async function handleSurface(input) {
|
|
7
16
|
const { content, delegationId, friendId, deliveryHint, queue, routeToFriend, advanceObligation, completePonderPacket, fulfillHeartObligation, onRouteResult, } = input;
|
|
8
17
|
// Resolve target friend
|
|
@@ -53,6 +62,9 @@ async function handleSurface(input) {
|
|
|
53
62
|
if (queueItem?.packetId && !delegationId) {
|
|
54
63
|
return `held private return ${queueItem.id} is waiting — call surface with delegationId="${queueItem.id}" so the return is tied to the correct packet`;
|
|
55
64
|
}
|
|
65
|
+
if (!queueItem && isSignalessDigest(content)) {
|
|
66
|
+
return "not sent — a digest or summary goes out only when it carries a ready, done or gate item; say nothing otherwise";
|
|
67
|
+
}
|
|
56
68
|
// Route to target
|
|
57
69
|
const result = deliveryHint
|
|
58
70
|
? await routeToFriend(targetFriendId, content, queueItem, deliveryHint)
|
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.1206",
|
|
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.1206",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"@ouro.bot/friends"
|
|
12
12
|
],
|