@0perator/operator 0.1.46 → 0.1.47

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 CHANGED
@@ -4,6 +4,18 @@ 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.47 — 2026-09-21
8
+ - Added: agent-cursor overlay tools curated into chauffeur's unprompted read set
9
+ (`set_agent_cursor_enabled`, `set_agent_cursor_theme`, `get_agent_cursor_state`) so the owner can SEE the
10
+ agent's mouse move on screen instead of driving blind.
11
+ - Added: `verify_state` (bounded read-only post-condition check) curated as a read, so the model can confirm
12
+ an action landed instead of guessing from the next screenshot.
13
+ - Strengthened: EMBODIMENT_GUIDE now has a firm directive — for ANY on-screen/click/read/drive request the
14
+ model MUST call the chauffeur tools (first call: `list_windows`), never answer from memory or claim it
15
+ can't see the screen. It also now enables the agent cursor at the start of any on-screen task.
16
+ - Tests: +3 chauffeur curated-set tests (cursor tools land as unprompted reads, no duplicates and set stays
17
+ focused at 26 tools, no destructive/session-ending/recording/update tool sneaks in). Suite 280/280.
18
+
7
19
  ## 0.1.46 — 2026-09-21
8
20
  - Added: `scratchpad` tool — a private per-session notes file OUTSIDE the workspace (read with no args;
9
21
  append, or mode:"overwrite"), so the model can think/track progress without cluttering the repo.
package/dist/cli.js CHANGED
@@ -21,7 +21,7 @@ import { homedir, hostname } from "node:os";
21
21
  import { createHash } from "node:crypto";
22
22
  // RELEASE CHECKLIST (every bump): update this + package.json "version", ADD A CHANGELOG.md ENTRY
23
23
  // (improvements / fixes / tests), run the suite, then publish to npm + push both remotes.
24
- const VERSION = "0.1.46";
24
+ const VERSION = "0.1.47";
25
25
  // operator/settings.json (override path via KODE_TSI_SETTINGS), env vars still win — see config/settings.ts.
26
26
  const settings = loadSettings();
27
27
  // Propagate the resolved sandbox mode to the tool layer (registry reads KODE_SANDBOX at exec time).
@@ -167,10 +167,14 @@ const EMBODIMENT_GUIDE = settings.computer.enabled
167
167
  `computer_app_open / computer_app_activate, computer_type, computer_key, computer_click, computer_screenshot.` +
168
168
  (chauffeurReady
169
169
  ? ` To SEE the screen use the chauffeur tools — NEVER shell_exec/osascript/System Events to read or drive ` +
170
- `a GUI (AppleScript cannot read Electron apps like Slack/VS Code/Discord and just errors). Correct usage, ` +
171
- `follow it exactly:\n` +
170
+ `a GUI (AppleScript cannot read Electron apps like Slack/VS Code/Discord and just errors). For ANY ` +
171
+ `request about what is on screen, or to click/read/drive an app, you MUST call the chauffeur tools — ` +
172
+ `never answer from memory and never say you cannot see the screen. First call: chauffeur:list_windows. ` +
173
+ `Correct usage, follow it exactly:\n` +
172
174
  `- Do NOT pass a "session" argument to any chauffeur tool. Omit it — the implicit session is used ` +
173
175
  `automatically. (Inventing a session label causes "session has ended" errors.)\n` +
176
+ `- At the START of any on-screen task, call chauffeur:set_agent_cursor_enabled {enabled: true} so the ` +
177
+ `owner can watch the agent's cursor move — do this before the first click/type/drag.\n` +
174
178
  `- To read a window: call chauffeur:list_windows, take a window_id + pid FROM THAT RESULT, then ` +
175
179
  `immediately chauffeur:get_window_state {pid, window_id} → a TEXT accessibility tree (roles, labels, ` +
176
180
  `values, clickable elements + coordinates). window_ids go stale, so always list_windows again right ` +
@@ -16,6 +16,12 @@ export const CHAUFFEUR_READ_TOOLS = [
16
16
  // Session lifecycle (control, non-mutating → unprompted). Chauffeur is session-based: without these the
17
17
  // model can't recover from a "session has ended" error and every stateful read fails in a loop.
18
18
  "start_session", "get_session", "list_sessions",
19
+ // Agent-cursor overlay (control, non-mutating → unprompted). Lets the owner SEE the agent's mouse move
20
+ // on screen instead of driving blind; toggling/theming/reading the overlay changes nothing it acts on.
21
+ "set_agent_cursor_enabled", "set_agent_cursor_theme", "get_agent_cursor_state",
22
+ // Bounded post-condition check (read-only verification, not an input event) — lets the model confirm an
23
+ // action landed instead of guessing from the next screenshot.
24
+ "verify_state",
19
25
  ];
20
26
  export const CHAUFFEUR_ACTION_TOOLS = [
21
27
  "launch_app", "bring_to_front", // window/app management
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0perator/operator",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
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": {