Each of these catches already logged via an accessible `logger` or `log`. The migration wraps the thrown value through `classifyUnknownError(raw, fallback)` and emits the log line with the structured `[code]` prefix. Observable behaviour — return values, fail strings, DB writes — is unchanged; the only addition is a machine-readable `code` on every log line so future telemetry can bucket by category. Sites migrated (11 files, 20 catch sites): src/main/browser-action-service.ts (2) approval lookup, payload JSON src/main/ipc-credentials-handlers.ts (4) save, remove, test lookup, test resolve src/main/hire-hook.ts (3) getAgent, connector def, outer exception src/main/checkpoint-engine.ts (2) onTaskStarted, onDocumentDrafted src/main/document-lifecycle.ts (1) getRun while deriving taskId src/main/skills/runtime.ts (2) builtin statSync, builtin readdir src/main/worker/handlers/run-status-handler.ts (1) run not found during status src/main/worker/handlers/run-log-handler.ts (1) lease renewal lookup src/main/notification-service.ts (1) notification.close during destroy src/main/updater-service.ts (1) autoUpdater.checkForUpdates src/main/ipc-support.ts (2) ipc handler throw, emitEvent send Why only 20 tonight: 248 catches exist in src/main/. Rewriting them all in one commit is high-diff-risk (collides with Linus's in-flight database/backup/migration work on database/*, connector-definitions-*, message-* and scripts/*) and low-value (pure-library catches with no accessible logger produce dead `void classified` constructs). The taxonomy module is committed separately so the remaining 228 sites can land incrementally via the C6.2 proposal. All 11 files selected sit outside Linus's working set. Verified: - pnpm typecheck clean - pnpm test:unit 498 passed
91 lines
1.4 KiB
Plaintext
91 lines
1.4 KiB
Plaintext
# Dependencies
|
|
node_modules/
|
|
|
|
# Build outputs
|
|
out/
|
|
mac-arm64/
|
|
dist/
|
|
coverage/
|
|
*.tsbuildinfo
|
|
win-unpacked
|
|
.blockmap
|
|
.claude
|
|
/build
|
|
.omc
|
|
.omx
|
|
.planning/*
|
|
!.planning/**/
|
|
paperclip-reference
|
|
Reference
|
|
.pnpm-store
|
|
# Test artifacts
|
|
test-results/
|
|
playwright-report/
|
|
|
|
# Signing certificates (NEVER commit these)
|
|
*.p12
|
|
*.cer
|
|
*.pem
|
|
*.key
|
|
*.p8
|
|
*.csr
|
|
*.certSigningRequest
|
|
*.provisionprofile
|
|
*.mobileprovision
|
|
|
|
# Environment files
|
|
.env
|
|
.env.*
|
|
.env.local
|
|
.env.*.local
|
|
!.env.example
|
|
!.env.release.example
|
|
|
|
# Editor and OS files
|
|
.DS_Store
|
|
Thumbs.db
|
|
.idea/
|
|
.vscode/
|
|
|
|
# Local reference material
|
|
oldreference/
|
|
|
|
# Markdown docs
|
|
*.md
|
|
!/README.md
|
|
!/docs/*.md
|
|
!/docs/proposals/*.md
|
|
!/CLAUDE.md
|
|
!/AGENTS.md
|
|
!/.planning/**/*.md
|
|
!/src/main/prompt-builder/**/*.md
|
|
!/scripts/README.md
|
|
# Bundled Agent Skills ship their SKILL.md / README.md as source of truth.
|
|
# The Pi skills loader rejects entries whose frontmatter `name` diverges from
|
|
# the parent directory; losing SKILL.md to the blanket *.md ignore meant a
|
|
# fresh checkout silently dropped every skill from the catalogue.
|
|
!/builtin-skills/**/*.md
|
|
!/tests/eval/**/*.md
|
|
*.zip
|
|
*.blockmap
|
|
*.exe
|
|
|
|
# Local design scratch files
|
|
homepagedesign.html
|
|
|
|
# Landing page is part of the repo and should be versioned
|
|
|
|
# Boss edition build (contains credentials — never commit)
|
|
boss-build/
|
|
|
|
# Package manager logs
|
|
npm-debug.log*
|
|
pnpm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
local-release/
|
|
.omx/
|
|
|
|
# Runtime state (written by app at runtime)
|
|
state/
|