@0perator/operator 0.1.56 → 0.1.57

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,14 @@ 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.57 — 2026-09-22
8
+ - **ReportLab PDF tools ship STANDARD.** report-mcp (build_pdf_report, build_pdf_from_markdown) is now
9
+ always injected — Operator can generate PDFs out of the box without opting into the full MCP fleet
10
+ (`settings.mcp`). New STANDARD_MCP_SERVERS list + loadStandardServers(); the standard hub merges with
11
+ the chauffeur embodiment hub when computer control is on. When the full fleet is enabled, report-mcp is
12
+ already in it, so no double-wire.
13
+ - Tests: 365/365.
14
+
7
15
  ## 0.1.56 — 2026-09-22
8
16
  - **Shift+Tab cycles the operating mode (Claude-Code parity).** AUTO (execute without asking) → MANUAL
9
17
  (approve mutating tools via the gated policy + approve bridge) → PLAN (read-only research + a proposed
package/dist/cli.js CHANGED
@@ -24,7 +24,7 @@ import { homedir, hostname } from "node:os";
24
24
  import { createHash } from "node:crypto";
25
25
  // RELEASE CHECKLIST (every bump): update this + package.json "version", ADD A CHANGELOG.md ENTRY
26
26
  // (improvements / fixes / tests), run the suite, then publish to npm + push both remotes.
27
- const VERSION = "0.1.56";
27
+ const VERSION = "0.1.57";
28
28
  // operator/settings.json (override path via KODE_TSI_SETTINGS), env vars still win — see config/settings.ts.
29
29
  const settings = loadSettings();
30
30
  // Propagate the resolved sandbox mode to the tool layer (registry reads KODE_SANDBOX at exec time).
@@ -72,29 +72,38 @@ catch { /* auth is optional — a local engine needs none */ }
72
72
  // mobile bundle never sees these tools.
73
73
  let computerAskRules = {};
74
74
  let computerDenyRules = {};
75
- let embodimentHub; // chauffeur, scoped to embodiment
75
+ let embodimentHub; // injected hub: STANDARD servers + chauffeur
76
+ let chauffeurServer; // set when embodiment is on & fleet off
76
77
  if (settings.computer.enabled) {
77
78
  const { COMPUTER_TOOLS, COMPUTER_TOOL_NAMES, setComputerEnabled } = await import("./tools/computer.js");
78
79
  const { registry } = await import("./tools/registry.js");
79
80
  setComputerEnabled(true);
80
81
  for (const t of COMPUTER_TOOLS)
81
82
  registry.set(t.name, t);
82
- // Embodiment also wires chauffeur (robust textual-AX computer use) when installed, as its OWN curated
83
- // hub — not the whole fleet MCP surface. It fills osascript's blind spot: reading a modern/Electron UI.
84
- // When the owner has opted into the full fleet (settings.mcp), chauffeur is already reachable there, so
85
- // we don't double-wire; otherwise we inject the scoped hub so embodiment alone is enough.
86
- const { buildChauffeurHub, CHAUFFEUR_ACTION_NAMES, CHAUFFEUR_TOOL_NAMES } = await import("./tools/chauffeur.js");
83
+ // Embodiment also wires chauffeur (robust textual-AX computer use) when installed. When the owner has
84
+ // opted into the full fleet (settings.mcp), chauffeur is already reachable there, so we don't double-wire;
85
+ // otherwise we collect its server config to join the standard injected hub below.
86
+ const { buildChauffeurServer, CHAUFFEUR_ACTION_NAMES, CHAUFFEUR_TOOL_NAMES } = await import("./tools/chauffeur.js");
87
87
  if (!settings.mcp)
88
- embodimentHub = (await buildChauffeurHub()) ?? undefined;
88
+ chauffeurServer = (await buildChauffeurServer()) ?? undefined;
89
89
  // Foreground: computer_* and chauffeur ACTIONS prompt ("ask"); chauffeur READS (list_windows,
90
90
  // get_window_state, …) are intentionally NOT gated, so the model reads the screen freely and completes
91
91
  // a task end-to-end without walking the owner through each step. Only real input/mutation asks.
92
- const askNames = [...COMPUTER_TOOL_NAMES, ...(embodimentHub ? CHAUFFEUR_ACTION_NAMES : [])];
92
+ const askNames = [...COMPUTER_TOOL_NAMES, ...(chauffeurServer ? CHAUFFEUR_ACTION_NAMES : [])];
93
93
  computerAskRules = Object.fromEntries(askNames.map((n) => [n, "ask"]));
94
94
  // Background sub-agents have no approver, so DENY every embodiment tool, reads included.
95
- const denyNames = [...COMPUTER_TOOL_NAMES, ...(embodimentHub ? CHAUFFEUR_TOOL_NAMES : [])];
95
+ const denyNames = [...COMPUTER_TOOL_NAMES, ...(chauffeurServer ? CHAUFFEUR_TOOL_NAMES : [])];
96
96
  computerDenyRules = Object.fromEntries(denyNames.map((n) => [n, "deny"]));
97
97
  }
98
+ // STANDARD MCP: report-mcp (PDF tools) ships with Operator — always injected, even without the full-fleet
99
+ // `mcp` setting, so a bare Operator can build PDFs out of the box. When the fleet IS on it's already in the
100
+ // config, so we only inject standalone when the fleet is off. Chauffeur (if collected) joins the same hub.
101
+ if (!settings.mcp) {
102
+ const { loadStandardServers, McpHub } = await import("./mcp/index.js");
103
+ const servers = [...(await loadStandardServers()), ...(chauffeurServer ? [chauffeurServer] : [])];
104
+ if (servers.length)
105
+ embodimentHub = new McpHub(servers);
106
+ }
98
107
  // Foreground policy = the owner's settings with computer tools forced to "ask". When computer control is
99
108
  // off, computerAskRules is empty, so this is behaviorally identical to settings.permissions (an empty
100
109
  // rules object keeps a "bypass" policy inert — zero overhead).
@@ -176,7 +185,7 @@ function loadHandoff() {
176
185
  // with chauffeur's textual accessibility tree instead of hand-rolling osascript — the exact loop that
177
186
  // failed on Slack (AppleScript can't read Electron UIs). chauffeur is reachable either via the scoped
178
187
  // embodiment hub or the full fleet MCP.
179
- const chauffeurReady = !!embodimentHub || settings.mcp;
188
+ const chauffeurReady = !!chauffeurServer || settings.mcp;
180
189
  const EMBODIMENT_GUIDE = settings.computer.enabled
181
190
  ? `\n## Controlling this computer\nComputer control is ON (every action asks the owner first). Drive apps with ` +
182
191
  `computer_app_open / computer_app_activate, computer_type, computer_key, computer_click, computer_screenshot.` +
package/dist/mcp/index.js CHANGED
@@ -3,6 +3,15 @@ import { McpHttpClient } from "./client.js";
3
3
  import { McpStdioClient } from "./stdio.js";
4
4
  import { capToolResult } from "../tools/executor.js";
5
5
  const SEP = ":"; // namespace separator: "compose:compose_list"
6
+ // MCP servers that ship STANDARD with Operator — always available, independent of the full-fleet `mcp`
7
+ // setting. report-mcp (ReportLab PDF generation) is core: a coding agent should be able to produce a
8
+ // PDF out of the box without the owner opting the entire fleet in. Extend this list as more become core.
9
+ export const STANDARD_MCP_SERVERS = ["report-mcp"];
10
+ /** The subset of the on-disk config that ships standard (report-mcp, …). Empty when none are configured. */
11
+ export async function loadStandardServers() {
12
+ const all = await loadMcpConfig();
13
+ return all.filter((s) => STANDARD_MCP_SERVERS.includes(s.name));
14
+ }
6
15
  /** Manages the fleet's MCP servers: lazy tool discovery, namespaced dispatch, health-gated. */
7
16
  export class McpHub {
8
17
  servers;
@@ -57,11 +57,11 @@ async function resolveBinary() {
57
57
  /** Build a chauffeur-only MCP hub (curated tools, `mcp --direct` so it self-contains without a daemon),
58
58
  * or null when chauffeur isn't installed. Injected into the foreground Session when computer control is
59
59
  * enabled, so embodiment gets the robust driver without turning on the whole fleet MCP surface. */
60
- export async function buildChauffeurHub() {
60
+ export async function buildChauffeurServer() {
61
61
  const command = await resolveBinary();
62
62
  if (!command)
63
63
  return null;
64
- const server = {
64
+ return {
65
65
  name: "chauffeur",
66
66
  transport: "stdio",
67
67
  command,
@@ -69,5 +69,8 @@ export async function buildChauffeurHub() {
69
69
  advertise: true,
70
70
  tools: [...CHAUFFEUR_TOOLS], // curated allowlist (the McpHub filters discovery to these)
71
71
  };
72
- return new McpHub([server]);
72
+ }
73
+ export async function buildChauffeurHub() {
74
+ const server = await buildChauffeurServer();
75
+ return server ? new McpHub([server]) : null;
73
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0perator/operator",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
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": {