@ouro.bot/cli 0.1.0-alpha.711 → 0.1.0-alpha.713

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,19 @@
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.713",
6
+ "changes": [
7
+ "Prefer native RSVP outbound baselines over stale legacy import baselines when computing habit deltas."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.712",
12
+ "changes": [
13
+ "Render native RSVP habit updates without script-era first-check/disclaimer copy.",
14
+ "Use the native outbound RSVP baseline as the diff baseline when legacy baseline state is absent."
15
+ ]
16
+ },
4
17
  {
5
18
  "version": "0.1.0-alpha.711",
6
19
  "changes": [
package/dist/rsvp/cli.js CHANGED
@@ -167,13 +167,14 @@ function parseSnapshotFromFile(filePath) {
167
167
  return result.snapshot;
168
168
  }
169
169
  function readBaselineSnapshot(agentRoot) {
170
- const baselinePath = path.join(rsvpStateRoot(agentRoot), "baseline.json");
171
- if (!fs.existsSync(baselinePath))
172
- return null;
173
- const baseline = readJsonFile(baselinePath);
174
- const snapshotId = baseline && typeof baseline === "object" && !Array.isArray(baseline)
175
- ? baseline.nativeSnapshotId
170
+ const rsvpRoot = rsvpStateRoot(agentRoot);
171
+ const baselinePath = path.join(rsvpRoot, "baseline.json");
172
+ const legacyBaseline = fs.existsSync(baselinePath) ? readJsonFile(baselinePath) : null;
173
+ const legacySnapshotId = legacyBaseline && typeof legacyBaseline === "object" && !Array.isArray(legacyBaseline)
174
+ ? legacyBaseline.nativeSnapshotId
176
175
  : null;
176
+ const outboundSnapshotId = (0, outbound_state_1.readRsvpOutboundState)(agentRoot).baseline?.snapshotId;
177
+ const snapshotId = outboundSnapshotId ?? (typeof legacySnapshotId === "string" ? legacySnapshotId : undefined);
177
178
  return typeof snapshotId === "string" && fs.existsSync(snapshotFilePath(agentRoot, snapshotId))
178
179
  ? parseSnapshotFromFile(snapshotFilePath(agentRoot, snapshotId))
179
180
  : null;
@@ -4,7 +4,6 @@ exports.guestDisplayName = guestDisplayName;
4
4
  exports.computeRsvpDelta = computeRsvpDelta;
5
5
  exports.renderRsvpReport = renderRsvpReport;
6
6
  const runtime_1 = require("../nerves/runtime");
7
- const RSVP_REPORT_FOOTER = "🤖 Beep boop! I'm a script, not Slugger — no need to reply here!";
8
7
  function byId(left, right) {
9
8
  return left.id.localeCompare(right.id);
10
9
  }
@@ -109,7 +108,7 @@ function hasChanges(delta) {
109
108
  function renderRsvpReport(delta) {
110
109
  const lines = ["RSVP Update — Ari & Rachel", ""];
111
110
  if (delta.isFirstRun) {
112
- lines.push("First check — here's the current summary:", "");
111
+ lines.push("Current RSVP summary:", "");
113
112
  }
114
113
  else if (!hasChanges(delta)) {
115
114
  lines.push("No changes since last check.", "");
@@ -145,7 +144,6 @@ function renderRsvpReport(delta) {
145
144
  }
146
145
  }
147
146
  lines.push(summaryLine(delta.summary));
148
- lines.push("", RSVP_REPORT_FOOTER);
149
147
  const report = lines.join("\n");
150
148
  (0, runtime_1.emitNervesEvent)({
151
149
  component: "rsvp",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.711",
3
+ "version": "0.1.0-alpha.713",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",