@0perator/operator 0.1.51 → 0.1.52
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.md +10 -0
- package/dist/cli.js +1 -1
- package/dist/update.js +19 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ Operator is AXE's terminal coding agent (npm `@0perator/operator`), running on t
|
|
|
4
4
|
Newest first. Every release bumps `src/cli.tsx` VERSION + `package.json`, adds an entry here, and ships to
|
|
5
5
|
npm + both git remotes (memjar/kode, axetechnologies/kode). Test counts are the full suite at that release.
|
|
6
6
|
|
|
7
|
+
## 0.1.52 — 2026-09-21
|
|
8
|
+
- Fixed: `operator update` on a source checkout failed cryptically ("git pull failed") when the tree was
|
|
9
|
+
dirty — common on a shared dev tree an agent is building in. It now detects the dirty tree, names the
|
|
10
|
+
uncommitted files, and points at `npm install -g @0perator/operator@latest` to update the INSTALLED
|
|
11
|
+
Operator instead, rather than a confusing hard-fail. Never auto-stashes (would clobber in-flight work).
|
|
12
|
+
- SPEC: deduped remote-session.md — capabilities + command frames now live only in the canonical
|
|
13
|
+
§5/§5a/§6/§6a; documented the ask_user / ask_user_response frames (pre-existing gap); recorded the
|
|
14
|
+
follower command policy (all-except exit/quit/login/logout/remotecontrol/remote; bg/services/dashboard
|
|
15
|
+
intentionally exposed per owner sign-off) + the capabilities summarization. (Nova, spec-rich-head-dedupe.)
|
|
16
|
+
|
|
7
17
|
## 0.1.51 — 2026-09-21
|
|
8
18
|
- Landed: **remote-control "rich head"** host side (SPEC/remote-session.md §11, PROPOSED — not part of
|
|
9
19
|
the v1 FROZEN envelope) — `RemoteHost` gains `RemoteCapabilities` (commands/skills/mcpServers/models/
|
package/dist/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import { homedir, hostname } from "node:os";
|
|
|
22
22
|
import { createHash } from "node:crypto";
|
|
23
23
|
// RELEASE CHECKLIST (every bump): update this + package.json "version", ADD A CHANGELOG.md ENTRY
|
|
24
24
|
// (improvements / fixes / tests), run the suite, then publish to npm + push both remotes.
|
|
25
|
-
const VERSION = "0.1.
|
|
25
|
+
const VERSION = "0.1.52";
|
|
26
26
|
// operator/settings.json (override path via KODE_TSI_SETTINGS), env vars still win — see config/settings.ts.
|
|
27
27
|
const settings = loadSettings();
|
|
28
28
|
// Propagate the resolved sandbox mode to the tool layer (registry reads KODE_SANDBOX at exec time).
|
package/dist/update.js
CHANGED
|
@@ -34,9 +34,27 @@ export async function runUpdate() {
|
|
|
34
34
|
// kode-tsi lives in a subdir of the kode repo; build happens where package.json is.
|
|
35
35
|
const pkgDir = existsSync(join(repo, "kode-tsi", "package.json")) ? join(repo, "kode-tsi") : repo;
|
|
36
36
|
process.stderr.write(`operator update: source checkout at ${repo} — pulling + rebuilding\n`);
|
|
37
|
+
// A source checkout can be dirty — dev edits, or (common on a shared dev tree) an agent mid-build in
|
|
38
|
+
// it. `git pull --ff-only` would fail with a cryptic message; detect it first, name the files, and
|
|
39
|
+
// point at the npm path, instead of a confusing hard-fail. Never auto-stash: that could clobber an
|
|
40
|
+
// agent's in-flight work in the same tree.
|
|
41
|
+
let dirty = "";
|
|
42
|
+
try {
|
|
43
|
+
dirty = execSync(`git -C '${repo}' status --porcelain`, { encoding: "utf8" }).trim();
|
|
44
|
+
}
|
|
45
|
+
catch { /* treat as clean */ }
|
|
46
|
+
if (dirty) {
|
|
47
|
+
const files = dirty.split("\n").slice(0, 20).map((l) => " " + l).join("\n");
|
|
48
|
+
process.stderr.write(`operator update: this source checkout has uncommitted changes, so it can't fast-forward:\n${files}\n` +
|
|
49
|
+
(dirty.split("\n").length > 20 ? " …\n" : "") +
|
|
50
|
+
`Commit or stash them and re-run — or, if this tree is a shared dev build an agent is editing, ` +
|
|
51
|
+
`wait for that to finish. To update the INSTALLED Operator instead (leaving this dev tree alone), run:\n` +
|
|
52
|
+
` npm install -g ${PKG}@latest\n`);
|
|
53
|
+
return 1;
|
|
54
|
+
}
|
|
37
55
|
let code = run("git", ["-C", repo, "pull", "--ff-only"]);
|
|
38
56
|
if (code !== 0) {
|
|
39
|
-
process.stderr.write("operator update: `git pull` failed (
|
|
57
|
+
process.stderr.write("operator update: `git pull` failed (branch diverged from origin?) — check `git -C " + repo + " status`.\n");
|
|
40
58
|
return code;
|
|
41
59
|
}
|
|
42
60
|
code = run("npm", ["install", "--silent"], pkgDir);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0perator/operator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"description": "Operator (KODE) — TypeScript + Ink terminal coding agent. Full-frame render, single-engine core shared across CLI/web/mobile; runs against a local Aurora model.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|