@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.
Files changed (55) hide show
  1. package/changelog.json +295 -275
  2. package/dist/heart/active-work.js +10 -3
  3. package/dist/heart/core.js +343 -77
  4. package/dist/heart/daemon/cli-exec.js +132 -15
  5. package/dist/heart/daemon/cli-help.js +13 -2
  6. package/dist/heart/daemon/cli-parse.js +82 -1
  7. package/dist/heart/daemon/daemon.js +286 -33
  8. package/dist/heart/daemon/doctor.js +82 -6
  9. package/dist/heart/daemon/habit-private-wake.js +6 -1
  10. package/dist/heart/habits/habit-cancel.js +810 -0
  11. package/dist/heart/habits/habit-lifecycle.js +1327 -0
  12. package/dist/heart/habits/habit-migration.js +28 -23
  13. package/dist/heart/habits/habit-parser.js +72 -8
  14. package/dist/heart/habits/habit-runtime-state.js +3 -24
  15. package/dist/heart/habits/habit-scheduler.js +268 -50
  16. package/dist/heart/habits/habit-session.js +16 -0
  17. package/dist/heart/hatch/hatch-flow.js +6 -4
  18. package/dist/heart/mailbox/readers/runtime-readers.js +26 -27
  19. package/dist/heart/orientation-frame.js +58 -1
  20. package/dist/heart/provider-attempt.js +4 -1
  21. package/dist/heart/providers/anthropic.js +23 -2
  22. package/dist/heart/start-of-turn-packet.js +14 -11
  23. package/dist/heart/streaming.js +565 -185
  24. package/dist/mind/obligation-steering.js +15 -9
  25. package/dist/mind/prompt.js +58 -26
  26. package/dist/nerves/coverage/run-artifacts.js +55 -35
  27. package/dist/nerves/review/cli.js +2 -2
  28. package/dist/nerves/review/core.js +14 -7
  29. package/dist/repertoire/tools-base.js +2 -0
  30. package/dist/repertoire/tools-habits.js +103 -0
  31. package/dist/repertoire/tools.js +18 -3
  32. package/dist/rsvp/cli.js +126 -20
  33. package/dist/rsvp/diagnostics.js +12 -2
  34. package/dist/rsvp/habit-policy.js +7 -0
  35. package/dist/rsvp/habit-stage.js +19 -4
  36. package/dist/rsvp/native-habit-runner.js +151 -11
  37. package/dist/rsvp/outbound-state.js +360 -0
  38. package/dist/senses/bluebubbles/client.js +90 -17
  39. package/dist/senses/bluebubbles/inbound-log.js +1 -0
  40. package/dist/senses/bluebubbles/index.js +662 -425
  41. package/dist/senses/bluebubbles/model.js +57 -13
  42. package/dist/senses/bluebubbles/mutation-log.js +21 -10
  43. package/dist/senses/bluebubbles/reaction-policy.js +55 -0
  44. package/dist/senses/bluebubbles/semantic-receipts.js +1818 -0
  45. package/dist/senses/cli/tui-store.js +1 -0
  46. package/dist/senses/cli.js +1 -0
  47. package/dist/senses/habit-lifecycle-guard.js +24 -0
  48. package/dist/senses/ingress-evidence.js +2 -0
  49. package/dist/senses/mail.js +129 -0
  50. package/dist/senses/pipeline.js +90 -24
  51. package/dist/senses/private-runtime-worker.js +21 -20
  52. package/dist/senses/private-runtime.js +79 -29
  53. package/dist/senses/shared-turn.js +1 -0
  54. package/dist/senses/teams.js +1 -0
  55. 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
- return lines.join("\n");
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
- return lines.join("\n");
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 {