@cmetech/otto 1.2.5 → 1.2.6

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.
@@ -1 +1 @@
1
- 509dc2f42084b696
1
+ 4baa0132ee073a5c
@@ -44,17 +44,17 @@ export function registerScratchpadTool(pi, deps) {
44
44
  pi.registerTool({
45
45
  name: 'cw_scratchpad',
46
46
  label: 'Co-worker scratchpad',
47
- description: 'USE FOR: loading or analyzing files (CSV, Excel, JSON, Parquet), tabular data manipulation with polars or DuckDB, multi-step data exploration where state should persist across turns, or anything that calls otto.collectors. ' +
47
+ description: 'USE FOR: loading or analyzing files (CSV, JSON, Parquet), tabular data manipulation with polars or DuckDB, multi-step data exploration where state should persist across turns, or anything that calls otto.collectors. ' +
48
48
  'DO NOT USE FOR: simple arithmetic, lookups answerable from reasoning alone, pure prose, code review, or one-off calculations with no file or data source involved. ' +
49
49
  'IF the user explicitly names this tool ("use cw_scratchpad", "run this in the scratchpad", "exec a cell"), use it regardless of the rules above. ' +
50
50
  'IF UNSURE whether a request belongs here, ASK the user once: "Do you want me to run this in cw_scratchpad so you can inspect the cells via /sp view, or answer inline?" Wait for their reply before deciding. ' +
51
51
  'Runs TypeScript cells in a persistent JS kernel scoped to a named scratchpad. State persists across cells via globalThis.* and across Otto sessions via on-disk kernel.db + namespace.json. ' +
52
- 'Pre-bound libs in every cell: polars, DuckDB, ExcelJS, dateFns, lodash, zod, axios. otto.collectors.{list,open} enumerates and loads data sources. ' +
52
+ 'Pre-bound libs in every cell: polars, DuckDB, dateFns, lodash, zod, axios. otto.collectors.{list,open} enumerates and loads data sources. ' +
53
53
  'Actions: exec (run a TypeScript cell), view (return the last N cells). ' +
54
54
  'Distinct from the analyst extension\'s SQL-only `scratchpad` tool — this one runs arbitrary TypeScript.',
55
- promptSnippet: 'cw_scratchpad — run TypeScript cells in a persistent JS kernel. USE for files (CSV/Excel/JSON/Parquet), polars/DuckDB analysis, otto.collectors, or multi-step data work. NOT for arithmetic or pure prose. If unsure, ASK the user first.',
55
+ promptSnippet: 'cw_scratchpad — run TypeScript cells in a persistent JS kernel. USE for files (CSV/JSON/Parquet), polars/DuckDB analysis, otto.collectors, or multi-step data work. NOT for arithmetic or pure prose. If unsure, ASK the user first.',
56
56
  promptGuidelines: [
57
- 'Trigger criteria: the request involves loading a file (CSV/Excel/JSON/Parquet/etc.), querying tabular data via polars or DuckDB, calling otto.collectors, or building state that must survive across turns.',
57
+ 'Trigger criteria: the request involves loading a file (CSV/JSON/Parquet/etc.), querying tabular data via polars or DuckDB, calling otto.collectors, or building state that must survive across turns.',
58
58
  'Skip the tool for: trivial arithmetic, lookups you can answer from reasoning, prose generation, code review, and pure-explanation tasks.',
59
59
  'If the user names the tool explicitly (e.g. "use cw_scratchpad", "in the scratchpad", "exec a cell"), always honor that request and skip the unsure-prompt.',
60
60
  'IF UNSURE whether a request fits the trigger criteria, ask the user once before deciding: "Do you want me to run this in cw_scratchpad (you can inspect the cells via /sp view) or answer inline?" Wait for the user\'s reply before either calling the tool or answering inline.',
@@ -62,7 +62,7 @@ export function registerScratchpadTool(pi, deps) {
62
62
  'The cell body is wrapped in (async () => { ... })(). let/const/var are local to the cell. To persist, assign to globalThis.foo = ...',
63
63
  'For DuckDB tables that survive across Otto sessions, use `await otto.duckdb.connect()`. For ephemeral in-memory, use `DuckDB.DuckDBInstance.create(":memory:")`.',
64
64
  'For polars→DuckDB: prefer `otto.duckdb.registerDf(name, df)` over manual API discovery. If inference picks the wrong column type, pass `{ schema: { col: \'TYPE\' } }` as the third argument. Falls back to polars\' own SQL (`df.sql(...)`) for one-off aggregations.',
65
- 'Pre-bound libs available in every cell: polars, DuckDB, ExcelJS, dateFns, lodash, zod, axios. No imports needed.',
65
+ 'Pre-bound libs available in every cell: polars, DuckDB, dateFns, lodash, zod, axios. No imports needed.',
66
66
  'Use otto.collectors.list() to discover data sources and otto.collectors.open(uri) to load one.',
67
67
  'The `name` parameter defaults to the currently attached scratchpad. Omit it unless you want to operate on a different one (this does NOT switch the user attachment).',
68
68
  'A returned string that looks markdown-shaped will appear in the response as text/markdown automatically. Return a markdown table or heading to render it.',
@@ -9,12 +9,23 @@
9
9
  // runtime command surfaces a link when a requested version isn't bundled.
10
10
  export const RELEASE_NOTES_MANIFEST = {
11
11
  truncated: false,
12
- total: 14,
12
+ total: 15,
13
13
  oldestBundled: '1.0.0',
14
- newestBundled: '1.2.5',
14
+ newestBundled: '1.2.6',
15
15
  historyUrl: 'https://github.com/cmetech/otto-cli/blob/main/CHANGELOG.md',
16
16
  };
17
17
  export const RELEASE_NOTES = [
18
+ {
19
+ version: '1.2.6',
20
+ date: '2026-06-03',
21
+ headline: 'Second Windows-install hotfix on top of 1.2.5: better-sqlite3 native install no longer requires Visual Studio on Node 24, and the entire exceljs transitive-dep chain (glob@7 / inflight / rimraf@2 / fstream / lodash.isequal) is removed at the source by dropping the library itself.',
22
+ fixed: [
23
+ '**`better-sqlite3` install fails on Windows + Node 24** with `gyp ERR! find VS / Could not find any Visual Studio installation to use`. The pinned `^11.7.0` from 1.2.5 has no prebuilt binary for `NODE_MODULE_VERSION 137` (Node 24), so npm fell through to `node-gyp rebuild`, which requires a C++ toolchain. Bumped to `^12.10.0` in both root `dependencies` and `packages/coworker-memory/package.json`; v12.10.0 ships a `v137-win32-x64` prebuild that installs cleanly.',
24
+ ],
25
+ changed: [
26
+ '**`exceljs@4.4.0` dropped from the scratchpad data-lib bindings.** Upstream is dormant (last commit Jan 2024) and the package\'s transitive deps generate eight `npm warn deprecated` messages on every install — `glob@7.2.3` (CVE), `inflight@1.0.6` (memory leak), `rimraf@2.7.1`, `fstream@1.0.12`, `lodash.isequal@4.5.0`, plus old `uuid@8/9` chains. Removed from `package.json`, `packages/coworker-scratchpad/src/kernel-bindings.ts` import + spread, `kernel-entry.ts` binding-names list, and both test files; the LLM-facing tool description in `src/resources/extensions/coworker-scratchpad/scratchpad-tool.ts` no longer claims `ExcelJS` as a pre-bound lib. Cell code that depended on `new ExcelJS.Workbook()` now throws `ReferenceError`. xlsx-capability replacement (likely `xlsx-populate@1.21.0`) is tracked in `docs/superpowers/notes/2026-06-01-coworker-roadmap.md` § Out-of-scope.',
27
+ ],
28
+ },
18
29
  {
19
30
  version: '1.2.5',
20
31
  date: '2026-06-03',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmetech/otto",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Terminal-based developer chat assistant. Permanent hard fork of gsd-pi with LangFlow flow triggers, a flow builder, and optional gateway routing for compliance environments.",
5
5
  "keywords": [
6
6
  "ai",
@@ -156,13 +156,12 @@
156
156
  "ajv": "^8.17.1",
157
157
  "ajv-formats": "^3.0.1",
158
158
  "axios": "^1.16.1",
159
- "better-sqlite3": "^11.7.0",
159
+ "better-sqlite3": "^12.10.0",
160
160
  "chalk": "^5.6.2",
161
161
  "chokidar": "^5.0.0",
162
162
  "date-fns": "^4.4.0",
163
163
  "diff": "^8.0.2",
164
164
  "echarts": "^5.6.0",
165
- "exceljs": "^4.4.0",
166
165
  "extract-zip": "^2.0.1",
167
166
  "file-type": "^21.1.1",
168
167
  "glob": "^13.0.1",
@@ -197,11 +196,11 @@
197
196
  },
198
197
  "optionalDependencies": {
199
198
  "@anthropic-ai/claude-agent-sdk": "0.2.83",
200
- "@cmetech/otto-engine-darwin-arm64": "1.2.5",
201
- "@cmetech/otto-engine-darwin-x64": "1.2.5",
202
- "@cmetech/otto-engine-linux-arm64-gnu": "1.2.5",
203
- "@cmetech/otto-engine-linux-x64-gnu": "1.2.5",
204
- "@cmetech/otto-engine-win32-x64-msvc": "1.2.5",
199
+ "@cmetech/otto-engine-darwin-arm64": "1.2.6",
200
+ "@cmetech/otto-engine-darwin-x64": "1.2.6",
201
+ "@cmetech/otto-engine-linux-arm64-gnu": "1.2.6",
202
+ "@cmetech/otto-engine-linux-x64-gnu": "1.2.6",
203
+ "@cmetech/otto-engine-win32-x64-msvc": "1.2.6",
205
204
  "fsevents": "~2.3.3",
206
205
  "koffi": "^2.9.0"
207
206
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto-build/contracts",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Shared public contracts for OTTO workspace boundaries",
5
5
  "license": "MIT",
6
6
  "otto": {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@otto/coworker-utils": "*",
21
- "better-sqlite3": "^11.7.0",
21
+ "better-sqlite3": "^12.10.0",
22
22
  "uuid": "^11.0.0",
23
23
  "yaml": "^2.8.2"
24
24
  },
@@ -3,6 +3,11 @@ import { type AuditLog } from '@otto/coworker-utils';
3
3
  /**
4
4
  * The data libraries pre-bound into every scratchpad cell's vm sandbox.
5
5
  * DuckDB is bound as an in-memory-capable lib here; on-disk kernel.db wiring is 1d2.
6
+ *
7
+ * Note: ExcelJS was removed in 1.2.6 — its transitive deps (glob@7, inflight,
8
+ * rimraf@2, fstream, lodash.isequal) are deprecated with known vulnerabilities
9
+ * and exceljs is no longer maintained upstream. xlsx-populate is the candidate
10
+ * replacement; tracked in docs/superpowers/notes/2026-06-01-coworker-roadmap.md.
6
11
  */
7
12
  export declare function buildDataLibBindings(): Record<string, unknown>;
8
13
  /** SQL column type string passed straight into CREATE TABLE (e.g. VARCHAR, BIGINT). */
@@ -1,5 +1,4 @@
1
1
  import pl from 'nodejs-polars';
2
- import ExcelJS from 'exceljs';
3
2
  import lodash from 'lodash';
4
3
  import axios from 'axios';
5
4
  import { z } from 'zod';
@@ -9,12 +8,16 @@ import { SecretScanner } from '@otto/coworker-utils';
9
8
  /**
10
9
  * The data libraries pre-bound into every scratchpad cell's vm sandbox.
11
10
  * DuckDB is bound as an in-memory-capable lib here; on-disk kernel.db wiring is 1d2.
11
+ *
12
+ * Note: ExcelJS was removed in 1.2.6 — its transitive deps (glob@7, inflight,
13
+ * rimraf@2, fstream, lodash.isequal) are deprecated with known vulnerabilities
14
+ * and exceljs is no longer maintained upstream. xlsx-populate is the candidate
15
+ * replacement; tracked in docs/superpowers/notes/2026-06-01-coworker-roadmap.md.
12
16
  */
13
17
  export function buildDataLibBindings() {
14
18
  return {
15
19
  polars: pl,
16
20
  DuckDB,
17
- ExcelJS,
18
21
  dateFns,
19
22
  lodash,
20
23
  zod: z,
@@ -22,7 +22,6 @@ const KNOWN_BOUND_KEYS = new Set([
22
22
  'clearInterval',
23
23
  'polars',
24
24
  'DuckDB',
25
- 'ExcelJS',
26
25
  'dateFns',
27
26
  'lodash',
28
27
  'zod',
@@ -160,14 +160,13 @@ describe('data-lib bindings inside a live kernel', () => {
160
160
  await rm(ws, { recursive: true, force: true });
161
161
  });
162
162
 
163
- it('polars / lodash / zod / date-fns / exceljs / axios / DuckDB are bound', async () => {
163
+ it('polars / lodash / zod / date-fns / axios / DuckDB are bound', async () => {
164
164
  rt = new ChildProcessRuntime({ workspace: ws, inactivityTimeoutMs: 20_000, cellTimeoutMs: 20_000 });
165
165
  await rt.start();
166
166
  assert.equal((await rt.runCell('return polars.DataFrame({ a: [1, 2, 3] }).height;')).value, 3);
167
167
  assert.equal((await rt.runCell('return lodash.chunk([1, 2, 3, 4], 2).length;')).value, 2);
168
168
  assert.equal((await rt.runCell('return zod.string().parse("hi");')).value, 'hi');
169
169
  assert.equal((await rt.runCell('return dateFns.format(new Date(1970, 0, 1), "yyyy");')).value, '1970');
170
- assert.equal((await rt.runCell('const wb = new ExcelJS.Workbook(); wb.addWorksheet("s"); const buf = await wb.xlsx.writeBuffer(); return buf.byteLength > 0;')).value, true);
171
170
  assert.equal((await rt.runCell('return typeof axios.get;')).value, 'function');
172
171
  assert.equal((await rt.runCell('return typeof DuckDB.DuckDBInstance;')).value, 'function');
173
172
  });
@@ -9,9 +9,9 @@ import { buildDataLibBindings, redactForJournal } from './kernel-bindings.js';
9
9
  import { ChildProcessRuntime } from './child-process-runtime.js';
10
10
 
11
11
  describe('kernel-bindings', () => {
12
- it('exposes all seven pre-bound data libraries', () => {
12
+ it('exposes all six pre-bound data libraries', () => {
13
13
  const b = buildDataLibBindings();
14
- for (const key of ['polars', 'DuckDB', 'ExcelJS', 'dateFns', 'lodash', 'zod', 'axios']) {
14
+ for (const key of ['polars', 'DuckDB', 'dateFns', 'lodash', 'zod', 'axios']) {
15
15
  assert.ok(key in b, `missing binding: ${key}`);
16
16
  assert.notEqual(b[key], undefined, `binding is undefined: ${key}`);
17
17
  }
@@ -24,7 +24,6 @@ describe('kernel-bindings', () => {
24
24
  assert.equal(typeof b.dateFns.format, 'function');
25
25
  assert.equal(typeof b.lodash.chunk, 'function');
26
26
  assert.equal(typeof b.axios.get, 'function');
27
- assert.equal(typeof b.ExcelJS.Workbook, 'function');
28
27
  });
29
28
  });
30
29
 
@@ -1,5 +1,4 @@
1
1
  import pl from 'nodejs-polars';
2
- import ExcelJS from 'exceljs';
3
2
  import lodash from 'lodash';
4
3
  import axios from 'axios';
5
4
  import { z } from 'zod';
@@ -11,12 +10,16 @@ import { SecretScanner, type AuditLog, type AuditRecord } from '@otto/coworker-u
11
10
  /**
12
11
  * The data libraries pre-bound into every scratchpad cell's vm sandbox.
13
12
  * DuckDB is bound as an in-memory-capable lib here; on-disk kernel.db wiring is 1d2.
13
+ *
14
+ * Note: ExcelJS was removed in 1.2.6 — its transitive deps (glob@7, inflight,
15
+ * rimraf@2, fstream, lodash.isequal) are deprecated with known vulnerabilities
16
+ * and exceljs is no longer maintained upstream. xlsx-populate is the candidate
17
+ * replacement; tracked in docs/superpowers/notes/2026-06-01-coworker-roadmap.md.
14
18
  */
15
19
  export function buildDataLibBindings(): Record<string, unknown> {
16
20
  return {
17
21
  polars: pl,
18
22
  DuckDB,
19
- ExcelJS,
20
23
  dateFns,
21
24
  lodash,
22
25
  zod: z,
@@ -38,7 +38,6 @@ const KNOWN_BOUND_KEYS = new Set([
38
38
  'clearInterval',
39
39
  'polars',
40
40
  'DuckDB',
41
- 'ExcelJS',
42
41
  'dateFns',
43
42
  'lodash',
44
43
  'zod',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto-build/daemon",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "OTTO daemon — background process for project monitoring and Discord integration",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@anthropic-ai/sdk": "^0.52.0",
32
- "@otto-build/contracts": "^1.2.5",
33
- "@otto-build/rpc-client": "^1.2.5",
32
+ "@otto-build/contracts": "^1.2.6",
33
+ "@otto-build/rpc-client": "^1.2.6",
34
34
  "discord.js": "^14.25.1",
35
35
  "yaml": "^2.8.0",
36
36
  "zod": "^3.24.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto-build/mcp-server",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "MCP server exposing OTTO orchestration tools for compatible clients",
5
5
  "license": "MIT",
6
6
  "otto": {
@@ -34,8 +34,8 @@
34
34
  "test": "npm run build:test && node --test dist/mcp-server.test.js dist/remote-questions.test.js"
35
35
  },
36
36
  "dependencies": {
37
- "@otto-build/contracts": "^1.2.5",
38
- "@otto-build/rpc-client": "^1.2.5",
37
+ "@otto-build/contracts": "^1.2.6",
38
+ "@otto-build/rpc-client": "^1.2.6",
39
39
  "@modelcontextprotocol/sdk": "^1.27.1",
40
40
  "zod": "^4.0.0"
41
41
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto/native",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Native Rust bindings for OTTO — high-performance native modules via N-API",
5
5
  "type": "commonjs",
6
6
  "otto": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto/pi-agent-core",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "General-purpose agent core (vendored from pi-mono)",
5
5
  "type": "module",
6
6
  "otto": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto/pi-ai",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Unified LLM API (vendored from pi-mono)",
5
5
  "type": "module",
6
6
  "otto": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto/pi-coding-agent",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Coding agent CLI (vendored from pi-mono)",
5
5
  "type": "module",
6
6
  "otto": {
@@ -28,7 +28,7 @@
28
28
  "copy-assets": "node scripts/copy-assets.cjs"
29
29
  },
30
30
  "dependencies": {
31
- "@otto-build/contracts": "^1.2.5",
31
+ "@otto-build/contracts": "^1.2.6",
32
32
  "@mariozechner/jiti": "^2.6.2",
33
33
  "@silvia-odwyer/photon-node": "^0.3.4",
34
34
  "chalk": "^5.5.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto/pi-tui",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Terminal User Interface library (vendored from pi-mono)",
5
5
  "type": "module",
6
6
  "otto": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto-build/rpc-client",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Standalone RPC client SDK for OTTO — zero internal dependencies",
5
5
  "license": "MIT",
6
6
  "otto": {
@@ -34,7 +34,7 @@
34
34
  "test": "node --test dist/rpc-client.test.js"
35
35
  },
36
36
  "dependencies": {
37
- "@otto-build/contracts": "^1.2.5"
37
+ "@otto-build/contracts": "^1.2.6"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22.0.0"
package/pkg/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loop24/client",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "piConfig": {
5
5
  "_comment": "AUTO-SYNCED from root package.json by scripts/sync-piconfig.mjs (runs on prebuild). Do not edit this block directly — edit root package.json and re-run `npm run build` or `npm run sync-piconfig`.",
6
6
  "name": "otto",
@@ -90,18 +90,18 @@ export function registerScratchpadTool(pi: ExtensionAPI, deps: ScratchpadToolDep
90
90
  name: 'cw_scratchpad',
91
91
  label: 'Co-worker scratchpad',
92
92
  description:
93
- 'USE FOR: loading or analyzing files (CSV, Excel, JSON, Parquet), tabular data manipulation with polars or DuckDB, multi-step data exploration where state should persist across turns, or anything that calls otto.collectors. ' +
93
+ 'USE FOR: loading or analyzing files (CSV, JSON, Parquet), tabular data manipulation with polars or DuckDB, multi-step data exploration where state should persist across turns, or anything that calls otto.collectors. ' +
94
94
  'DO NOT USE FOR: simple arithmetic, lookups answerable from reasoning alone, pure prose, code review, or one-off calculations with no file or data source involved. ' +
95
95
  'IF the user explicitly names this tool ("use cw_scratchpad", "run this in the scratchpad", "exec a cell"), use it regardless of the rules above. ' +
96
96
  'IF UNSURE whether a request belongs here, ASK the user once: "Do you want me to run this in cw_scratchpad so you can inspect the cells via /sp view, or answer inline?" Wait for their reply before deciding. ' +
97
97
  'Runs TypeScript cells in a persistent JS kernel scoped to a named scratchpad. State persists across cells via globalThis.* and across Otto sessions via on-disk kernel.db + namespace.json. ' +
98
- 'Pre-bound libs in every cell: polars, DuckDB, ExcelJS, dateFns, lodash, zod, axios. otto.collectors.{list,open} enumerates and loads data sources. ' +
98
+ 'Pre-bound libs in every cell: polars, DuckDB, dateFns, lodash, zod, axios. otto.collectors.{list,open} enumerates and loads data sources. ' +
99
99
  'Actions: exec (run a TypeScript cell), view (return the last N cells). ' +
100
100
  'Distinct from the analyst extension\'s SQL-only `scratchpad` tool — this one runs arbitrary TypeScript.',
101
101
  promptSnippet:
102
- 'cw_scratchpad — run TypeScript cells in a persistent JS kernel. USE for files (CSV/Excel/JSON/Parquet), polars/DuckDB analysis, otto.collectors, or multi-step data work. NOT for arithmetic or pure prose. If unsure, ASK the user first.',
102
+ 'cw_scratchpad — run TypeScript cells in a persistent JS kernel. USE for files (CSV/JSON/Parquet), polars/DuckDB analysis, otto.collectors, or multi-step data work. NOT for arithmetic or pure prose. If unsure, ASK the user first.',
103
103
  promptGuidelines: [
104
- 'Trigger criteria: the request involves loading a file (CSV/Excel/JSON/Parquet/etc.), querying tabular data via polars or DuckDB, calling otto.collectors, or building state that must survive across turns.',
104
+ 'Trigger criteria: the request involves loading a file (CSV/JSON/Parquet/etc.), querying tabular data via polars or DuckDB, calling otto.collectors, or building state that must survive across turns.',
105
105
  'Skip the tool for: trivial arithmetic, lookups you can answer from reasoning, prose generation, code review, and pure-explanation tasks.',
106
106
  'If the user names the tool explicitly (e.g. "use cw_scratchpad", "in the scratchpad", "exec a cell"), always honor that request and skip the unsure-prompt.',
107
107
  'IF UNSURE whether a request fits the trigger criteria, ask the user once before deciding: "Do you want me to run this in cw_scratchpad (you can inspect the cells via /sp view) or answer inline?" Wait for the user\'s reply before either calling the tool or answering inline.',
@@ -109,7 +109,7 @@ export function registerScratchpadTool(pi: ExtensionAPI, deps: ScratchpadToolDep
109
109
  'The cell body is wrapped in (async () => { ... })(). let/const/var are local to the cell. To persist, assign to globalThis.foo = ...',
110
110
  'For DuckDB tables that survive across Otto sessions, use `await otto.duckdb.connect()`. For ephemeral in-memory, use `DuckDB.DuckDBInstance.create(":memory:")`.',
111
111
  'For polars→DuckDB: prefer `otto.duckdb.registerDf(name, df)` over manual API discovery. If inference picks the wrong column type, pass `{ schema: { col: \'TYPE\' } }` as the third argument. Falls back to polars\' own SQL (`df.sql(...)`) for one-off aggregations.',
112
- 'Pre-bound libs available in every cell: polars, DuckDB, ExcelJS, dateFns, lodash, zod, axios. No imports needed.',
112
+ 'Pre-bound libs available in every cell: polars, DuckDB, dateFns, lodash, zod, axios. No imports needed.',
113
113
  'Use otto.collectors.list() to discover data sources and otto.collectors.open(uri) to load one.',
114
114
  'The `name` parameter defaults to the currently attached scratchpad. Omit it unless you want to operate on a different one (this does NOT switch the user attachment).',
115
115
  'A returned string that looks markdown-shaped will appear in the response as text/markdown automatically. Return a markdown table or heading to render it.',
@@ -33,13 +33,24 @@ export interface ReleaseNotesManifest {
33
33
 
34
34
  export const RELEASE_NOTES_MANIFEST: ReleaseNotesManifest = {
35
35
  truncated: false,
36
- total: 14,
36
+ total: 15,
37
37
  oldestBundled: '1.0.0',
38
- newestBundled: '1.2.5',
38
+ newestBundled: '1.2.6',
39
39
  historyUrl: 'https://github.com/cmetech/otto-cli/blob/main/CHANGELOG.md',
40
40
  };
41
41
 
42
42
  export const RELEASE_NOTES: ReleaseNote[] = [
43
+ {
44
+ version: '1.2.6',
45
+ date: '2026-06-03',
46
+ headline: 'Second Windows-install hotfix on top of 1.2.5: better-sqlite3 native install no longer requires Visual Studio on Node 24, and the entire exceljs transitive-dep chain (glob@7 / inflight / rimraf@2 / fstream / lodash.isequal) is removed at the source by dropping the library itself.',
47
+ fixed: [
48
+ '**`better-sqlite3` install fails on Windows + Node 24** with `gyp ERR! find VS / Could not find any Visual Studio installation to use`. The pinned `^11.7.0` from 1.2.5 has no prebuilt binary for `NODE_MODULE_VERSION 137` (Node 24), so npm fell through to `node-gyp rebuild`, which requires a C++ toolchain. Bumped to `^12.10.0` in both root `dependencies` and `packages/coworker-memory/package.json`; v12.10.0 ships a `v137-win32-x64` prebuild that installs cleanly.',
49
+ ],
50
+ changed: [
51
+ '**`exceljs@4.4.0` dropped from the scratchpad data-lib bindings.** Upstream is dormant (last commit Jan 2024) and the package\'s transitive deps generate eight `npm warn deprecated` messages on every install — `glob@7.2.3` (CVE), `inflight@1.0.6` (memory leak), `rimraf@2.7.1`, `fstream@1.0.12`, `lodash.isequal@4.5.0`, plus old `uuid@8/9` chains. Removed from `package.json`, `packages/coworker-scratchpad/src/kernel-bindings.ts` import + spread, `kernel-entry.ts` binding-names list, and both test files; the LLM-facing tool description in `src/resources/extensions/coworker-scratchpad/scratchpad-tool.ts` no longer claims `ExcelJS` as a pre-bound lib. Cell code that depended on `new ExcelJS.Workbook()` now throws `ReferenceError`. xlsx-capability replacement (likely `xlsx-populate@1.21.0`) is tracked in `docs/superpowers/notes/2026-06-01-coworker-roadmap.md` § Out-of-scope.',
52
+ ],
53
+ },
43
54
  {
44
55
  version: '1.2.5',
45
56
  date: '2026-06-03',