-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
66 lines (66 loc) · 2.32 KB
/
Copy pathpackage.json
File metadata and controls
66 lines (66 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"name": "backthread",
"version": "0.16.0",
"description": "Backthread keeps the thread on what your AI coding agent ships — it captures the why behind every change and turns it into a living 'How it works' view of your codebase you can actually query.",
"license": "MIT",
"author": "Backthread",
"homepage": "https://backthread.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/backthread/backthread.git",
"directory": "cli"
},
"bugs": "https://github.com/backthread/backthread/issues",
"keywords": [
"backthread",
"ai-coding-agent",
"claude-code",
"cursor",
"codex",
"codebase-context",
"code-comprehension",
"how-it-works",
"architecture",
"decision-log",
"ai",
"mcp",
"cli",
"developer-tools"
],
"type": "module",
"comment": "PUBLISHED BIN = the self-contained esbuild bundle (dist-bundle/backthread.js), NOT the tsc dist/. Reason: @backthread/redact ships SOURCE-ONLY (.ts), and Node refuses to strip types for files inside node_modules — so a registry install of the tsc dist/ would fail to load redact at runtime. The bundle inlines redact (and the MCP SDK), so the published CLI has ZERO runtime dependencies and `npx backthread` stays fast and robust. Dev/test resolve @backthread/redact via the workspace symlink (realpath escapes node_modules → stripping applies).",
"bin": {
"backthread": "./dist-bundle/backthread.js"
},
"files": [
"dist-bundle",
"commands",
"hooks",
".claude-plugin",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"bundle": "node esbuild.config.mjs",
"prepack": "npm run build && npm run bundle",
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
"start": "tsx src/bin/backthread.ts",
"smoke": "npm run bundle && node dist-bundle/backthread.js help > /dev/null",
"test": "node --import tsx --test --test-force-exit src/*.test.ts && npm run build && npm run smoke"
},
"engines": {
"node": ">=22.18"
},
"optionalDependencies": {
"@backthread/extractor": "^0.1.0"
},
"devDependencies": {
"@backthread/redact": "^0.1.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"@types/node": "^22.19.19",
"esbuild": "^0.28.0",
"tsx": "^4.22.3",
"typescript": "^5.6.2"
}
}