@ouro.bot/cli 0.1.0-alpha.723 → 0.1.0-alpha.725
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 +295 -275
- package/dist/heart/active-work.js +10 -3
- package/dist/heart/core.js +343 -77
- package/dist/heart/daemon/cli-exec.js +132 -15
- package/dist/heart/daemon/cli-help.js +13 -2
- package/dist/heart/daemon/cli-parse.js +82 -1
- package/dist/heart/daemon/daemon.js +286 -33
- package/dist/heart/daemon/doctor.js +82 -6
- package/dist/heart/daemon/habit-private-wake.js +6 -1
- package/dist/heart/habits/habit-cancel.js +810 -0
- package/dist/heart/habits/habit-lifecycle.js +1327 -0
- package/dist/heart/habits/habit-migration.js +28 -23
- package/dist/heart/habits/habit-parser.js +72 -8
- package/dist/heart/habits/habit-runtime-state.js +3 -24
- package/dist/heart/habits/habit-scheduler.js +268 -50
- package/dist/heart/habits/habit-session.js +16 -0
- package/dist/heart/hatch/hatch-flow.js +6 -4
- package/dist/heart/mailbox/readers/runtime-readers.js +26 -27
- package/dist/heart/orientation-frame.js +58 -1
- package/dist/heart/provider-attempt.js +4 -1
- package/dist/heart/providers/anthropic.js +23 -2
- package/dist/heart/start-of-turn-packet.js +14 -11
- package/dist/heart/streaming.js +565 -185
- package/dist/mind/obligation-steering.js +15 -9
- package/dist/mind/prompt.js +58 -26
- package/dist/nerves/coverage/run-artifacts.js +55 -35
- package/dist/nerves/review/cli.js +2 -2
- package/dist/nerves/review/core.js +14 -7
- package/dist/repertoire/tools-base.js +2 -0
- package/dist/repertoire/tools-habits.js +103 -0
- package/dist/repertoire/tools.js +18 -3
- package/dist/rsvp/cli.js +126 -20
- package/dist/rsvp/diagnostics.js +12 -2
- package/dist/rsvp/habit-policy.js +7 -0
- package/dist/rsvp/habit-stage.js +19 -4
- package/dist/rsvp/native-habit-runner.js +151 -11
- package/dist/rsvp/outbound-state.js +360 -0
- package/dist/senses/bluebubbles/client.js +90 -17
- package/dist/senses/bluebubbles/inbound-log.js +1 -0
- package/dist/senses/bluebubbles/index.js +662 -425
- package/dist/senses/bluebubbles/model.js +57 -13
- package/dist/senses/bluebubbles/mutation-log.js +21 -10
- package/dist/senses/bluebubbles/reaction-policy.js +55 -0
- package/dist/senses/bluebubbles/semantic-receipts.js +1818 -0
- package/dist/senses/cli/tui-store.js +1 -0
- package/dist/senses/cli.js +1 -0
- package/dist/senses/habit-lifecycle-guard.js +24 -0
- package/dist/senses/ingress-evidence.js +2 -0
- package/dist/senses/mail.js +129 -0
- package/dist/senses/pipeline.js +90 -24
- package/dist/senses/private-runtime-worker.js +21 -20
- package/dist/senses/private-runtime.js +79 -29
- package/dist/senses/shared-turn.js +1 -0
- package/dist/senses/teams.js +1 -0
- package/package.json +6 -1
|
@@ -14,6 +14,7 @@ const obligations_1 = require("../arc/obligations");
|
|
|
14
14
|
const session_activity_1 = require("./session-activity");
|
|
15
15
|
const target_resolution_1 = require("./target-resolution");
|
|
16
16
|
const config_1 = require("./config");
|
|
17
|
+
const orientation_frame_1 = require("./orientation-frame");
|
|
17
18
|
const RECENT_ACTIVE_OBLIGATION_WINDOW_MS = 60 * 60 * 1000;
|
|
18
19
|
function activityPriority(source) {
|
|
19
20
|
return source === "friend-facing" ? 0 : 1;
|
|
@@ -872,9 +873,12 @@ function formatActiveWorkFrame(frame, options) {
|
|
|
872
873
|
lines.push(`this work relates to bridge ${frame.bridgeSuggestion.bridgeId} -- i should connect ${formatSessionLabel(frame.bridgeSuggestion.targetSession)} to it.`);
|
|
873
874
|
}
|
|
874
875
|
}
|
|
875
|
-
|
|
876
|
+
const rendered = lines.join("\n");
|
|
877
|
+
return typeof options?.resumePriorWork === "boolean"
|
|
878
|
+
? (0, orientation_frame_1.labelPriorWorkSurface)(rendered, options.resumePriorWork)
|
|
879
|
+
: rendered;
|
|
876
880
|
}
|
|
877
|
-
function formatLiveWorldStateCheckpoint(frame) {
|
|
881
|
+
function formatLiveWorldStateCheckpoint(frame, options) {
|
|
878
882
|
const primaryObligation = findPrimaryOpenObligation(frame);
|
|
879
883
|
const activeLane = formatActiveLane(frame, primaryObligation) ?? "no explicit live lane";
|
|
880
884
|
const currentArtifact = formatCurrentArtifact(frame, primaryObligation) ?? "no artifact yet";
|
|
@@ -899,7 +903,10 @@ function formatLiveWorldStateCheckpoint(frame) {
|
|
|
899
903
|
lines.push("other active sessions:");
|
|
900
904
|
lines.push(...otherActiveSessions);
|
|
901
905
|
}
|
|
902
|
-
|
|
906
|
+
const rendered = lines.join("\n");
|
|
907
|
+
return typeof options?.resumePriorWork === "boolean"
|
|
908
|
+
? (0, orientation_frame_1.labelPriorWorkSurface)(rendered, options.resumePriorWork)
|
|
909
|
+
: rendered;
|
|
903
910
|
}
|
|
904
911
|
function snapshotActiveWork(frame) {
|
|
905
912
|
return {
|