codeburn/app/package.json
Resham Joshi ea78d36ccf
Some checks are pending
Tests / desktop (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
CI / semgrep (push) Waiting to run
Tests / test (24) (push) Waiting to run
Tests / test (26) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Windows menu bar and Capacity Dock as a Plugins card, plus desktop fixes (#1507)
* feat(windows): configure the menu bar and Capacity Dock as a Plugins card

Windows now configures its tray companion from a card on the Plugins page, the
same place macOS does, instead of two switches in the sidebar corner.

- WindowsCompanionCard mirrors the macOS MenuBarCard: Install/Reinstall,
  Update, Open (show the tray popover), Settings (opens the desktop Menu bar
  settings pane), Quit (stop without uninstalling), Uninstall, plus the
  Capacity Dock toggle, a Running dot, the version, and an info popup.
- MenubarCompanion.status() now reports installed/running/version/outdated/
  canInstall, and new discrete install/open/quit/uninstall actions back the
  card. uninstall only forgets the tray once the CLI removal succeeds, and a
  cancelled elevation prompt is treated as a no-op rather than a failure.
- isNewerVersion sorts a dev build below any release, so a staged release still
  lights Update and a dev build never does.
- codeburn menubar --uninstall reads the product code from the install marker
  or the uninstall registry and runs msiexec /x.
- Remove the bespoke sidebar CompanionSwitches and their dead CSS.
- A dev-only CODEBURN_MENUBAR_RESOURCES override lets the tray install run
  without packaging; the CLI still validates the staged path in full.

* feat(desktop): fold the Capacity Dock settings into the Menu bar pane

One tray rail entry instead of two: MenuBarPane and CapacityDockPane render
together in the Menu bar pane with a clear gap between the two cards, so the
card's Settings button opens both. Drops the now-unreachable 'dock' pane value.

* fix(desktop): stop the Spend cost-flow Sankey from re-rendering forever

The label-fit effect measured the already-truncated text, so a capped label
read as short, un-capped, overflowed the cap, and re-capped without end
(Maximum update depth exceeded). It now estimates each label from its full
name via data-name, and caps only tighten per layout, so the measure, cap and
remeasure cycle is guaranteed to settle instead of oscillating.

* feat(desktop): bundle Inter and JetBrains Mono for one UI on every OS

The app used each platform's system font (SF Pro on macOS, Segoe UI on
Windows), so the two looked different. Bundle Inter for text and JetBrains
Mono for figures and lead the --sans and --mono stacks with them, keeping the
per-locale CJK fallbacks, so Windows and macOS render the same faces.

* desktop: gate tray installed state on support; drop strings and channels the sidebar switches left behind
2026-09-19 18:43:27 -07:00

277 lines
10 KiB
JSON

{
"name": "codeburn-desktop",
"private": true,
"version": "0.9.24",
"description": "CodeBurn Desktop — 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:win:arm64": "npm run stage-cli && npm run stage-menubar && npm run build && cross-env ELECTRON_BUILDER_7Z_FILTER=BCJ electron-builder --win nsis --arm64",
"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": {
"@fontsource-variable/inter": "^5.3.0",
"@fontsource-variable/jetbrains-mono": "^5.3.0",
"@gsap/react": "^2.1.2",
"gsap": "^3.15.0",
"lz-string": "^1.5.0",
"react": "^19.3.0",
"react-dom": "^19.3.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.3",
"@testing-library/user-event": "^14.6.7",
"@types/node": "^26.5.1",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^4.7.0",
"@vitest/ui": "^3.2.7",
"concurrently": "^10.0.5",
"cross-env": "^10.1.0",
"electron": "^43.7.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.1.0"
},
"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.icns",
"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>"
}