@0perator/operator 0.1.343 → 0.1.344
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/dist/cli.js +3 -0
- package/dist/telemetry/events.js +6 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1267,7 +1267,10 @@ function Root() {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
finally {
|
|
1269
1269
|
tracker.noteTurn();
|
|
1270
|
+
// Clear BOTH stream refs: flushLive's trailing (throttled) tick fires after this setLive(null) and re-shows
|
|
1271
|
+
// whatever is left — a reasoning ref left full put the whole thought back under the settled answer (10/30, MoA).
|
|
1270
1272
|
liveText.current = "";
|
|
1273
|
+
liveReasoning.current = "";
|
|
1271
1274
|
setLive(null);
|
|
1272
1275
|
setLiveTools([]); // an interrupt/error mid-batch must not leave stale "running" rows on screen
|
|
1273
1276
|
setCtxPct(session.ctxPct());
|
package/dist/telemetry/events.js
CHANGED
|
@@ -56,6 +56,7 @@ export class EventSink {
|
|
|
56
56
|
cid = "";
|
|
57
57
|
seq = 0;
|
|
58
58
|
prevH = "genesis";
|
|
59
|
+
modeChecked = false; // appendFile's mode applies only on create: an older 0644 file is tightened once per process
|
|
59
60
|
sinceStat = Number.POSITIVE_INFINITY; // stat the file on the first write, then every `rotateEvery`
|
|
60
61
|
rotations = 0;
|
|
61
62
|
rotateEvery;
|
|
@@ -119,6 +120,11 @@ export class EventSink {
|
|
|
119
120
|
await fsp.appendFile(file, body.slice(0, -1) + `,"h":"${h}"}\n`, { encoding: "utf8", mode: 0o600 });
|
|
120
121
|
this.prevH = h; // advance only after the line landed, so a failed append never forks the chain
|
|
121
122
|
this.seq++;
|
|
123
|
+
if (!this.modeChecked) {
|
|
124
|
+
this.modeChecked = true;
|
|
125
|
+
if ((await fsp.stat(file)).mode & 0o077)
|
|
126
|
+
await fsp.chmod(file, 0o600);
|
|
127
|
+
}
|
|
122
128
|
}
|
|
123
129
|
catch { /* best-effort: no fs (mobile) or a write failure must never break a turn */ }
|
|
124
130
|
}
|