threadnote 0.3.0 → 0.3.1

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,13 +1,18 @@
1
1
  # Agent Instructions
2
2
 
3
- Threadnote installs this as user-level agent guidance for Codex and Claude.
3
+ Threadnote installs this as user-level agent guidance for Codex, Claude, and Cursor.
4
4
 
5
5
  ## Shared Context
6
6
 
7
7
  Use OpenViking through Threadnote as a shared local context and memory layer. Repo files remain authoritative: always
8
8
  follow the nearest `AGENTS.md`, `CLAUDE.md`, or other checked-in instruction file first.
9
9
 
10
- When OpenViking MCP tools are available, use them directly. If MCP is unavailable, use the `threadnote` CLI fallback.
10
+ When OpenViking MCP tools are available, use them directly. Prefer Threadnote-named MCP tools when present:
11
+ `recall_context`, `read_context`, `list_context`, and `remember_context`. Always pass JSON arguments to MCP tools, for
12
+ example `recall_context({"query":"current repo latest handoff"})`. Older Threadnote MCP adapters may expose
13
+ `search`, `read`, `list`, and `store` instead.
14
+
15
+ If MCP is unavailable, use the `threadnote` CLI fallback.
11
16
 
12
17
  ## Recall
13
18
 
@@ -166,6 +166,18 @@ threadnote mcp-install cursor --apply
166
166
  This updates the global `~/.cursor/mcp.json` file. Restart Cursor or open a fresh agent session after changing MCP
167
167
  config.
168
168
 
169
+ ## Cursor MCP Tool Says Query Is Missing
170
+
171
+ If Cursor shows an error like `expected string, received undefined` for Threadnote `search`, the MCP server started but
172
+ Cursor called the tool without JSON arguments. Prefer the Threadnote-named tool and pass a query explicitly:
173
+
174
+ ```json
175
+ {"query": "current repo latest handoff"}
176
+ ```
177
+
178
+ Current Threadnote adapters expose `recall_context` for this flow. Older adapters expose `search`; both require the same
179
+ `query` argument. Run `threadnote repair` after upgrading if Cursor still lists only stale tools.
180
+
169
181
  ## Uninstall Without Losing Memories
170
182
 
171
183
  Run:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "threadnote",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "commonjs",
5
5
  "main": "dist/threadnote.cjs",
6
6
  "description": "Shared local context and handoffs for development agents",
@@ -39,11 +39,17 @@
39
39
  "scripts/"
40
40
  ],
41
41
  "scripts": {
42
- "build": "npm run clean --silent && esbuild threadnote.ts --bundle --platform=node --format=cjs --target=node20 --outfile=dist/threadnote.cjs && esbuild mcp_server.ts --bundle --platform=node --format=cjs --target=node20 --outfile=dist/mcp_server.cjs",
42
+ "build": "npm run clean --silent && esbuild src/threadnote.ts --bundle --platform=node --format=cjs --target=node20 --outfile=dist/threadnote.cjs && esbuild src/mcp_server.ts --bundle --platform=node --format=cjs --target=node20 --outfile=dist/mcp_server.cjs",
43
43
  "clean": "rm -rf dist",
44
- "dev": "tsx threadnote.ts",
45
- "dev:mcp-server": "tsx mcp_server.ts",
44
+ "dev": "tsx src/threadnote.ts",
45
+ "dev:mcp-server": "tsx src/mcp_server.ts",
46
+ "lint": "eslint \"src/**/*.ts\"",
47
+ "lint:fix": "eslint \"src/**/*.ts\" --fix",
48
+ "prepare": "husky",
49
+ "precommit": "npm run lint && npm run prettier:check",
46
50
  "prepack": "npm run build",
51
+ "prettier:check": "prettier --check \"**/*.{ts,js,cjs,json,md,yaml,yml}\"",
52
+ "prettier:write": "prettier --write \"**/*.{ts,js,cjs,json,md,yaml,yml}\"",
47
53
  "threadnote": "npm run build --silent && node ./bin/threadnote.cjs",
48
54
  "doctor": "npm run build --silent && node ./bin/threadnote.cjs doctor",
49
55
  "mcp-server": "npm run build --silent && node ./bin/threadnote-mcp-server.cjs",
@@ -54,14 +60,20 @@
54
60
  "node": ">=20"
55
61
  },
56
62
  "devDependencies": {
63
+ "@eslint/js": "^10.0.1",
57
64
  "@modelcontextprotocol/sdk": "^1.29.0",
58
65
  "@types/js-yaml": "^4.0.9",
59
66
  "@types/node": "^25.6.0",
60
67
  "commander": "^14.0.3",
61
68
  "esbuild": "^0.27.7",
69
+ "eslint": "^10.3.0",
70
+ "globals": "^17.6.0",
71
+ "husky": "^9.1.7",
62
72
  "js-yaml": "^4.1.1",
73
+ "prettier": "^3.8.3",
63
74
  "tsx": "^4.21.0",
64
75
  "typescript": "^6.0.3",
76
+ "typescript-eslint": "^8.59.2",
65
77
  "zod": "^4.4.3"
66
78
  }
67
79
  }