@0perator/operator 0.1.342 → 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/README.md +1 -1
- package/dist/cli.js +4 -1
- package/dist/telemetry/events.js +6 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ src/
|
|
|
68
68
|
|
|
69
69
|
```
|
|
70
70
|
npm install -g @0perator/operator # every box runs the release; `operator update` later
|
|
71
|
-
operator # interactive session
|
|
71
|
+
operator # interactive session (`0p` is the short name)
|
|
72
72
|
operator --resume # reload the last conversation in this directory
|
|
73
73
|
```
|
|
74
74
|
Dev: `npm install && npm run dev`, or `scripts/operator-dev.sh` installed as `operator-dev` for unreleased `main`.
|
package/dist/cli.js
CHANGED
|
@@ -112,7 +112,7 @@ if (process.argv.includes("--version") || process.argv.includes("-V")) {
|
|
|
112
112
|
}
|
|
113
113
|
if (process.argv.includes("--help")) {
|
|
114
114
|
process.stdout.write(mastheadLines(`v${VERSION}`).join("\n") +
|
|
115
|
-
"\n\nUsage:\n operator start the interactive session\n operator --resume resume the last session in this directory\n operator update update to the latest release\n operator --fullscreen fullscreen layout: composer pinned to the bottom (or settings.ui.fullscreen)\n operator auth sign in / manage your AXE account\n operator gateway the local model runtime: start | stop | status | health | logs\n operator run <task>|- run one task headless (--model, --permissions, --output json, --cwd)\n operator --version print the version\n");
|
|
115
|
+
"\n\nUsage:\n operator start the interactive session\n 0p short for operator (every subcommand works)\n operator --resume resume the last session in this directory\n operator update update to the latest release\n operator --fullscreen fullscreen layout: composer pinned to the bottom (or settings.ui.fullscreen)\n operator auth sign in / manage your AXE account\n operator gateway the local model runtime: start | stop | status | health | logs\n operator run <task>|- run one task headless (--model, --permissions, --output json, --cwd)\n operator --version print the version\n");
|
|
116
116
|
process.exit(0);
|
|
117
117
|
}
|
|
118
118
|
// operator/settings.json (override path via KODE_TSI_SETTINGS), env vars still win — see config/settings.ts.
|
|
@@ -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
|
}
|