@ouro.bot/cli 0.1.0-alpha.711 → 0.1.0-alpha.712
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 +7 -0
- package/dist/rsvp/cli.js +9 -6
- package/dist/rsvp/diff-renderer.js +1 -3
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
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.712",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Render native RSVP habit updates without script-era first-check/disclaimer copy.",
|
|
8
|
+
"Use the native outbound RSVP baseline as the diff baseline when legacy baseline state is absent."
|
|
9
|
+
]
|
|
10
|
+
},
|
|
4
11
|
{
|
|
5
12
|
"version": "0.1.0-alpha.711",
|
|
6
13
|
"changes": [
|
package/dist/rsvp/cli.js
CHANGED
|
@@ -167,13 +167,16 @@ function parseSnapshotFromFile(filePath) {
|
|
|
167
167
|
return result.snapshot;
|
|
168
168
|
}
|
|
169
169
|
function readBaselineSnapshot(agentRoot) {
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
const
|
|
174
|
-
|
|
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 = typeof legacySnapshotId === "string"
|
|
178
|
+
? legacySnapshotId
|
|
179
|
+
: outboundSnapshotId;
|
|
177
180
|
return typeof snapshotId === "string" && fs.existsSync(snapshotFilePath(agentRoot, snapshotId))
|
|
178
181
|
? parseSnapshotFromFile(snapshotFilePath(agentRoot, snapshotId))
|
|
179
182
|
: 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("
|
|
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",
|