codeburn/app/package.json
iamtoruk d59802c1ec feat(app): ship the tray app with the Windows desktop builds
stage-menubar.mjs is stage-cli.mjs for the Tauri tray app: it copies rather than
downloads, taking the local `cargo tauri build` output by default and whatever
CI fetched with --from. The two routes need different things staged, so it has
two shapes. The NSIS build gets the .msi and its .sha256, computing the digest
when a local build has none, so the installer's verification means the same
thing there as it does for a release. The Store build gets the executable, since
a packaged app cannot run msiexec at all.

build/menubar rides into both packages as win.extraResources. Unlike the CLI it
carries no node_modules, so electron-builder's production-dependency filter has
nothing to strip and the afterPack hook is not needed.

installer.nsh removes the tray app on uninstall only when the marker credits
this app with installing it, which is what keeps a manual `codeburn menubar`
install alive through a desktop uninstall. PowerShell reads the marker and pulls
the product code out of the uninstall string, because NSIS has no JSON and the
alternative was hand-parsing one in a macro.

appx-extensions.xml declares the tray app's launch at login as the package's own
windows.startupTask, so it appears in Settings > Apps > Startup like anything
else the Store installed. No Run value is written on that route.
2026-09-02 04:48:03 -07:00

274 lines
10 KiB
JSON

{
"name": "codeburn-desktop",
"private": true,
"version": "0.9.23",
"description": "CodeBurn Desktop \u2014 Electron app fed by the codeburn CLI",
"main": "dist/electron/main.js",
"scripts": {
"build:electron": "tsc -p tsconfig.electron.json",
"build:renderer": "vite build",
"build": "npm run build:electron && npm run build:renderer",
"dev": "npm run build:electron && concurrently -k -n vite,electron -c cyan,magenta \"vite\" \"wait-on tcp:127.0.0.1:5173 && cross-env VITE_DEV_SERVER_URL=http://127.0.0.1:5173 electron .\"",
"test": "vitest run",
"typecheck": "tsc --noEmit -p tsconfig.json",
"stage-cli": "npm --prefix .. run build:cli && node scripts/stage-cli.mjs",
"stage-menubar": "node scripts/stage-menubar.mjs --target nsis",
"stage-menubar:store": "node scripts/stage-menubar.mjs --target appx",
"package": "npm run stage-cli && npm run build && electron-builder --mac",
"package:arm64": "npm run stage-cli && npm run build && electron-builder --mac --arm64",
"package:x64": "npm run stage-cli && npm run build && electron-builder --mac --x64",
"package:win": "npm run stage-cli && npm run stage-menubar && npm run build && electron-builder --win",
"package:store": "npm run stage-cli && npm run stage-menubar:store && npm run build && electron-builder --win appx --x64",
"package:linux": "npm run stage-cli && npm run build && electron-builder --linux",
"package:snap": "npm run stage-cli && npm run build && electron-builder --linux snap --x64"
},
"dependencies": {
"@gsap/react": "^2.1.2",
"gsap": "^3.15.0",
"lz-string": "^1.5.0",
"react": "^19.2.7",
"react-dom": "^19.2.7"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^26.1.1",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^4.7.0",
"@vitest/ui": "^3.2.7",
"concurrently": "^10.0.3",
"cross-env": "^10.1.0",
"electron": "^43.1.0",
"electron-builder": "^26.15.3",
"jsdom": "^29.1.1",
"typescript": "^7.0.2",
"vite": "^6.4.3",
"vitest": "^3.2.7",
"wait-on": "^9.0.10"
},
"build": {
"appId": "org.agentseal.codeburn-desktop",
"productName": "CodeBurn",
"directories": {
"output": "release"
},
"files": [
"dist/electron/**/*",
"dist/renderer/**/*",
"package.json"
],
"afterPack": "./scripts/after-pack.cjs",
"mac": {
"target": [
{
"target": "dmg",
"arch": [
"arm64",
"x64"
]
},
{
"target": "zip",
"arch": [
"arm64",
"x64"
]
}
],
"category": "public.app-category.developer-tools",
"icon": "build/icon.png",
"identity": "-",
"hardenedRuntime": false,
"gatekeeperAssess": false,
"extendInfo": {
"NSDocumentsFolderUsageDescription": "CodeBurn reads your local AI coding tool session logs (Claude Code, Codex, Cursor, and others) to calculate your token usage and cost. Your data never leaves your machine.",
"NSDesktopFolderUsageDescription": "CodeBurn reads your local AI coding tool session logs (Claude Code, Codex, Cursor, and others) to calculate your token usage and cost. Your data never leaves your machine.",
"NSDownloadsFolderUsageDescription": "CodeBurn reads your local AI coding tool session logs (Claude Code, Codex, Cursor, and others) to calculate your token usage and cost. Your data never leaves your machine."
}
},
"dmg": {},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"icon": "build/icon.png",
"extraResources": [
{
"from": "build/menubar",
"to": "menubar",
"filter": [
"**/*"
]
}
]
},
"nsis": {
"oneClick": false,
"perMachine": false,
"artifactName": "CodeBurn-Setup-${version}.${ext}",
"include": "build/installer.nsh"
},
"appx": {
"customExtensionsPath": "build/appx-extensions.xml",
"applicationId": "CodeBurn",
"identityName": "Codeburn.CodeBurn",
"publisher": "CN=3EFA3336-87E1-46F2-9DFA-2EB5A7693F89",
"publisherDisplayName": "Codeburn",
"displayName": "CodeBurn",
"artifactName": "CodeBurn-Store-${version}-${arch}.${ext}",
"backgroundColor": "#15100D",
"languages": [
"en-US"
],
"minVersion": "10.0.17763.0",
"maxVersionTested": "10.0.26100.0"
},
"linux": {
"target": [
{
"target": "AppImage",
"arch": [
"x64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
},
{
"target": "rpm",
"arch": [
"x64"
]
}
],
"category": "Development",
"icon": "build/icon.png",
"maintainer": "AgentSeal <hello@agentseal.org>",
"executableName": "codeburn"
},
"snap": {
"confinement": "strict",
"grade": "stable",
"summary": "See where your AI coding spend actually goes",
"artifactName": "codeburn_${version}_${arch}.${ext}",
"plugs": [
"desktop",
"desktop-legacy",
"home",
"x11",
"wayland",
"unity7",
"browser-support",
"network",
"gsettings",
"opengl",
{
"ai-agent-session-logs": {
"interface": "personal-files",
"read": [
"$HOME/.claude/projects",
"$HOME/.codex/sessions",
"$HOME/.codex/archived_sessions",
"$HOME/.cline/data/tasks",
"$HOME/.cline/data/sessions",
"$HOME/.codewhale/sessions",
"$HOME/.copilot/session-state",
"$HOME/.copilot/session-store.db",
"$HOME/.cursor/projects",
"$HOME/.cursor/ai-tracking/ai-code-tracking.db",
"$HOME/.deepseek/sessions",
"$HOME/.dsh/sessions",
"$HOME/.factory/sessions",
"$HOME/.gemini/tmp",
"$HOME/.gemini/antigravity/conversations",
"$HOME/.gemini/antigravity-cli/conversations",
"$HOME/.gemini/antigravity-cli/implicit",
"$HOME/.gemini/antigravity-ide/conversations",
"$HOME/.gemini/antigravity-ide/implicit",
"$HOME/.grok/sessions",
"$HOME/.hermes/profiles",
"$HOME/.hermes/state.db",
"$HOME/.kimi/sessions",
"$HOME/.kimi-code/sessions",
"$HOME/.kiro/sessions",
"$HOME/.lingtai",
"$HOME/.lingtai-tui",
"$HOME/.mux/sessions",
"$HOME/.mux/config.json",
"$HOME/.omp/agent/sessions",
"$HOME/.openclaude/projects",
"$HOME/.openclaw/agents",
"$HOME/.clawdbot/agents",
"$HOME/.moltbot/agents",
"$HOME/.moldbot/agents",
"$HOME/.pi/agent/sessions",
"$HOME/.qwen/projects",
"$HOME/.quickwork/profiles.json",
"$HOME/.quickwork/sessions",
"$HOME/.quickwork/metrics",
"$HOME/.vibe/logs/session",
"$HOME/.forge/.forge.db",
"$HOME/.zcode/cli/db/db.sqlite",
"$HOME/.config/Claude/local-agent-mode-sessions",
"$HOME/.config/Code/User/globalStorage/saoudrizwan.claude-dev/tasks",
"$HOME/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/tasks",
"$HOME/.config/Code/User/globalStorage/kilocode.kilo-code/tasks",
"$HOME/.config/Code/User/globalStorage/github.copilot-chat",
"$HOME/.config/Code/User/globalStorage/emptyWindowChatSessions",
"$HOME/.config/Code/User/workspaceStorage",
"$HOME/.config/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/tasks",
"$HOME/.config/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/tasks",
"$HOME/.config/Code - Insiders/User/globalStorage/kilocode.kilo-code/tasks",
"$HOME/.config/Code - Insiders/User/globalStorage/github.copilot-chat",
"$HOME/.config/Code - Insiders/User/globalStorage/emptyWindowChatSessions",
"$HOME/.config/Code - Insiders/User/workspaceStorage",
"$HOME/.config/VSCodium/User/globalStorage/saoudrizwan.claude-dev/tasks",
"$HOME/.config/VSCodium/User/globalStorage/rooveterinaryinc.roo-cline/tasks",
"$HOME/.config/VSCodium/User/globalStorage/kilocode.kilo-code/tasks",
"$HOME/.config/VSCodium/User/globalStorage/github.copilot-chat",
"$HOME/.config/VSCodium/User/globalStorage/emptyWindowChatSessions",
"$HOME/.config/VSCodium/User/workspaceStorage",
"$HOME/.config/Cursor/User/globalStorage/state.vscdb",
"$HOME/.config/Cursor/User/workspaceStorage",
"$HOME/.config/Kiro/User/globalStorage/kiro.kiroagent",
"$HOME/.config/Kiro/User/workspaceStorage",
"$HOME/.config/Open Design/runs",
"$HOME/.config/Open Design/data/runs",
"$HOME/.config/Open Design/namespaces",
"$HOME/.kiro-server/data/User/globalStorage/kiro.kiroagent",
"$HOME/.config/IBM Bob/User/globalStorage/ibm.bob-code",
"$HOME/.config/Bob-IDE/User/globalStorage/ibm.bob-code",
"$HOME/.config/manicode/projects",
"$HOME/.local/share/zed/threads",
"$HOME/.local/share/opencode",
"$HOME/.local/share/crush",
"$HOME/.local/share/goose/sessions",
"$HOME/.local/share/kilo",
"$HOME/.local/share/zerostack/sessions"
]
}
},
{
"claude-quota-credentials": {
"interface": "personal-files",
"read": [
"$HOME/.claude/.credentials.json"
]
}
}
]
}
},
"homepage": "https://github.com/getagentseal/codeburn",
"author": "AgentSeal <hello@agentseal.org>"
}