@automagik/genie 4.260414.2 → 4.260414.4

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.
Files changed (625) hide show
  1. package/dist/highlights-eq9cgrbb.scm +604 -0
  2. package/dist/highlights-ghv9g403.scm +205 -0
  3. package/dist/highlights-hk7bwhj4.scm +284 -0
  4. package/dist/highlights-r812a2qc.scm +150 -0
  5. package/dist/highlights-x6tmsnaa.scm +115 -0
  6. package/dist/injections-73j83es3.scm +27 -0
  7. package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
  8. package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
  9. package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
  10. package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
  11. package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
  12. package/package.json +12 -1
  13. package/plugins/genie/.claude-plugin/plugin.json +1 -1
  14. package/plugins/genie/package.json +1 -1
  15. package/.claude/commands/level-up.md +0 -1275
  16. package/.claude/hooks/git-safety.sh +0 -58
  17. package/.claude/settings.json +0 -60
  18. package/.claude-plugin/marketplace.json +0 -18
  19. package/.coderabbit.yaml +0 -29
  20. package/.genie/agents/metrics-updater/AGENT.md +0 -145
  21. package/.genie/agents/metrics-updater/author-aliases.json +0 -9
  22. package/.genie/agents/metrics-updater/daily-stats.jsonl +0 -33
  23. package/.genie/agents/metrics-updater/runs.jsonl +0 -30
  24. package/.genie/agents/metrics-updater/state.json +0 -14
  25. package/.genie/agents/metrics-updater/tools/backfill.sh +0 -54
  26. package/.genie/agents/metrics-updater/tools/collect-stats.sh +0 -132
  27. package/.genie/agents/metrics-updater/tools/generate-charts.py +0 -224
  28. package/.genie/agents/metrics-updater/tools/generate-readme-hero.py +0 -137
  29. package/.genie/agents/metrics-updater/tools/generate-velocity.py +0 -378
  30. package/.genie/agents/metrics-updater/tools/run-metrics.sh +0 -244
  31. package/.genie/assets/commits-30d.svg +0 -43
  32. package/.genie/assets/loc-30d.svg +0 -75
  33. package/.genie/assets/releases-30d.svg +0 -43
  34. package/.genie/brainstorm.md +0 -62
  35. package/.genie/brainstorms/README.md +0 -1
  36. package/.genie/brainstorms/brainstorm-links-convention/DESIGN.md +0 -69
  37. package/.genie/brainstorms/velocity-dashboard/DESIGN.md +0 -160
  38. package/.genie/brainstorms/velocity-dashboard/DRAFT.md +0 -28
  39. package/.genie/brainstorms/workflow-engine-runtime/DESIGN.md +0 -66
  40. package/.genie/qa/framework/cross-repo-specs.md +0 -12
  41. package/.genie/qa/framework/domain-discovery.md +0 -14
  42. package/.genie/qa/framework/results-isolation.md +0 -13
  43. package/.genie/qa/lifecycle/agent-lifecycle.md +0 -13
  44. package/.genie/qa/lifecycle/idle-detection.md +0 -13
  45. package/.genie/qa/messaging/mailbox-delivery.md +0 -12
  46. package/.genie/qa/messaging/multi-agent-comm.md +0 -14
  47. package/.genie/qa/messaging/round-trip-response.md +0 -13
  48. package/.genie/qa/messaging/send-full-id.md +0 -12
  49. package/.genie/qa/observability/log-filter-type.md +0 -14
  50. package/.genie/qa/observability/log-follow-events.md +0 -13
  51. package/.genie/qa/observability/log-static.md +0 -13
  52. package/.genie/qa/observability/nats-streaming.md +0 -13
  53. package/.genie/wishes/_archive/agent-stability-hardening/WISH.md +0 -346
  54. package/.genie/wishes/_archive/brain-embeddings/WISH.md +0 -72
  55. package/.genie/wishes/_archive/brain-foundation/WISH.md +0 -228
  56. package/.genie/wishes/_archive/brain-help-passthrough/WISH.md +0 -159
  57. package/.genie/wishes/_archive/brain-identity-impl/WISH.md +0 -72
  58. package/.genie/wishes/_archive/brain-init-skill/WISH.md +0 -57
  59. package/.genie/wishes/_archive/brain-intelligence/WISH.md +0 -83
  60. package/.genie/wishes/_archive/brain-observability/WISH.md +0 -70
  61. package/.genie/wishes/_archive/brain-obsidian/WISH.md +0 -1930
  62. package/.genie/wishes/_archive/env-defaults-local-mode/WISH.md +0 -148
  63. package/.genie/wishes/_archive/fix-ghost-approval-p0/REPRO.md +0 -123
  64. package/.genie/wishes/_archive/fix-ghost-approval-p0/WISH.md +0 -215
  65. package/.genie/wishes/_archive/genie-app/WISH.md +0 -590
  66. package/.genie/wishes/_archive/genie-layout-migration/WISH.md +0 -292
  67. package/.genie/wishes/_archive/genie-model-resolution/WISH.md +0 -477
  68. package/.genie/wishes/_archive/genie-onboarding-flow/WISH.md +0 -453
  69. package/.genie/wishes/_archive/omni-lifecycle-hardening/WISH.md +0 -401
  70. package/.genie/wishes/_archive/omni-skill-upgrade/WISH.md +0 -309
  71. package/.genie/wishes/_archive/omni-version-unify/WISH.md +0 -257
  72. package/.genie/wishes/_archive/os-services-orphan-leak/WISH.md +0 -143
  73. package/.genie/wishes/_archive/perfect-spawn-hierarchy/WISH.md +0 -433
  74. package/.genie/wishes/_archive/pgserve-daemon-ownership/WISH.md +0 -140
  75. package/.genie/wishes/_archive/remove-openclaw/WISH.md +0 -178
  76. package/.genie/wishes/_archive/rlmx-v02/WISH.md +0 -478
  77. package/.genie/wishes/_archive/rlmx-v03-cag/WISH.md +0 -455
  78. package/.genie/wishes/_archive/rlmx-v04-gemini3/WISH.md +0 -533
  79. package/.genie/wishes/_archive/scaffold-auto-memory/WISH.md +0 -168
  80. package/.genie/wishes/_archive/session-capture-v2/WISH.md +0 -452
  81. package/.genie/wishes/_archive/session-ingester-perf/WISH.md +0 -148
  82. package/.genie/wishes/_archive/unify-bridge-revamp-skills/WISH.md +0 -315
  83. package/.genie/wishes/_archive/v4-database-layer/WISH.md +0 -116
  84. package/.genie/wishes/_archive/v4-hook-cli-safety/WISH.md +0 -89
  85. package/.genie/wishes/_archive/v4-message-routing/WISH.md +0 -131
  86. package/.genie/wishes/_archive/v4-session-executor/WISH.md +0 -141
  87. package/.genie/wishes/_archive/v4-spawn-resilience/WISH.md +0 -176
  88. package/.genie/wishes/_archive/v4-team-lifecycle/WISH.md +0 -137
  89. package/.genie/wishes/_archive/velocity-dashboard/WISH.md +0 -272
  90. package/.genie/wishes/brain-benchmark-loop/WISH.md +0 -130
  91. package/.genie/wishes/brain-cag/WISH.md +0 -37
  92. package/.genie/wishes/brain-cag-v2-polish/WISH.md +0 -177
  93. package/.genie/wishes/brain-optimizer/WISH.md +0 -59
  94. package/.genie/wishes/brainstorm-links-convention/WISH.md +0 -375
  95. package/.genie/wishes/crew-simplification/WISH.md +0 -178
  96. package/.genie/wishes/genie-app-v1/WISH.md +0 -1098
  97. package/.genie/wishes/genie-simulations/WISH.md +0 -488
  98. package/.genie/wishes/genie-skill-graph/WISH.md +0 -354
  99. package/.genie/wishes/omni-turn-based-dx/SESSION-LEARNINGS.md +0 -53
  100. package/.genie/wishes/omni-turn-based-dx/WISH.md +0 -382
  101. package/.genie/wishes/rlmx-dogfood/WISH.md +0 -595
  102. package/.genie/wishes/rlmx-integration/WISH.md +0 -262
  103. package/.genie/wishes/rlmx-readme/WISH.md +0 -243
  104. package/.genie/wishes/sac-agent/WISH.md +0 -595
  105. package/.genie/wishes/sdk-executor-full/WISH.md +0 -697
  106. package/.genie/wishes/security-key-leak-remediation/WISH.md +0 -198
  107. package/.genie/wishes/unified-executor-layer/WISH.md +0 -732
  108. package/.genie/wishes/workflow-action-engine/WISH.md +0 -380
  109. package/.genie/wishes/x-tool/WISH.md +0 -254
  110. package/.gitattributes +0 -3
  111. package/.github/assets/genie-header.png +0 -0
  112. package/.github/workflows/ci.yml +0 -121
  113. package/.github/workflows/commitlint.yml +0 -25
  114. package/.github/workflows/release.yml +0 -127
  115. package/.github/workflows/rolling-pr.yml +0 -55
  116. package/.github/workflows/version.yml +0 -118
  117. package/.husky/commit-msg +0 -1
  118. package/.husky/pre-commit +0 -15
  119. package/.husky/pre-push +0 -12
  120. package/.rlmx/CRITERIA.md +0 -15
  121. package/.rlmx/SYSTEM.md +0 -89
  122. package/.rlmx/TOOLS.md +0 -27
  123. package/.rlmx/rlmx.yaml +0 -99
  124. package/CHANGELOG.md +0 -12
  125. package/CLAUDE.md +0 -186
  126. package/Makefile +0 -50
  127. package/VELOCITY.md +0 -44
  128. package/assets/avatars/genie-v1-shadow.png +0 -0
  129. package/assets/avatars/genie-v2-banana.png +0 -0
  130. package/biome.json +0 -148
  131. package/cliff.toml +0 -75
  132. package/commitlint.config.ts +0 -21
  133. package/docs/AGENT-FRONTMATTER.md +0 -174
  134. package/docs/ARCHITECTURE.md +0 -337
  135. package/docs/CLI-REFERENCE.md +0 -1570
  136. package/docs/CO-ORCHESTRATION-GUIDE.md +0 -301
  137. package/docs/RETENTION.md +0 -51
  138. package/docs/SPAWN-AUTO-RESUME.md +0 -129
  139. package/docs/agent-profiles.md +0 -110
  140. package/docs/sdk-executor-guide.md +0 -843
  141. package/install.sh +0 -1174
  142. package/knip.json +0 -46
  143. package/packages/genie-app/bun.lock +0 -260
  144. package/packages/genie-app/components.ts +0 -24
  145. package/packages/genie-app/index.html +0 -28
  146. package/packages/genie-app/khal-app.json +0 -144
  147. package/packages/genie-app/lib/StatusBar.tsx +0 -141
  148. package/packages/genie-app/lib/ipc.ts +0 -44
  149. package/packages/genie-app/lib/keyboard.ts +0 -91
  150. package/packages/genie-app/lib/subjects.ts +0 -131
  151. package/packages/genie-app/lib/theme.ts +0 -70
  152. package/packages/genie-app/lib/types.ts +0 -186
  153. package/packages/genie-app/lib/useKeyboardNav.ts +0 -57
  154. package/packages/genie-app/manifest.ts +0 -211
  155. package/packages/genie-app/package.json +0 -40
  156. package/packages/genie-app/src/App.tsx +0 -304
  157. package/packages/genie-app/src/main.tsx +0 -11
  158. package/packages/genie-app/src-backend/index.ts +0 -866
  159. package/packages/genie-app/src-backend/ipc.ts +0 -169
  160. package/packages/genie-app/src-backend/pg-bridge.ts +0 -451
  161. package/packages/genie-app/src-backend/pty.ts +0 -339
  162. package/packages/genie-app/src-backend/workspace.ts +0 -124
  163. package/packages/genie-app/src-tauri/Cargo.lock +0 -5111
  164. package/packages/genie-app/src-tauri/Cargo.toml +0 -20
  165. package/packages/genie-app/src-tauri/build.rs +0 -3
  166. package/packages/genie-app/src-tauri/capabilities/default.json +0 -6
  167. package/packages/genie-app/src-tauri/icons/128x128.png +0 -0
  168. package/packages/genie-app/src-tauri/icons/128x128@2x.png +0 -0
  169. package/packages/genie-app/src-tauri/icons/32x32.png +0 -0
  170. package/packages/genie-app/src-tauri/icons/64x64.png +0 -0
  171. package/packages/genie-app/src-tauri/icons/Square107x107Logo.png +0 -0
  172. package/packages/genie-app/src-tauri/icons/Square142x142Logo.png +0 -0
  173. package/packages/genie-app/src-tauri/icons/Square150x150Logo.png +0 -0
  174. package/packages/genie-app/src-tauri/icons/Square284x284Logo.png +0 -0
  175. package/packages/genie-app/src-tauri/icons/Square30x30Logo.png +0 -0
  176. package/packages/genie-app/src-tauri/icons/Square310x310Logo.png +0 -0
  177. package/packages/genie-app/src-tauri/icons/Square44x44Logo.png +0 -0
  178. package/packages/genie-app/src-tauri/icons/Square71x71Logo.png +0 -0
  179. package/packages/genie-app/src-tauri/icons/Square89x89Logo.png +0 -0
  180. package/packages/genie-app/src-tauri/icons/StoreLogo.png +0 -0
  181. package/packages/genie-app/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml +0 -5
  182. package/packages/genie-app/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png +0 -0
  183. package/packages/genie-app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png +0 -0
  184. package/packages/genie-app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png +0 -0
  185. package/packages/genie-app/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png +0 -0
  186. package/packages/genie-app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png +0 -0
  187. package/packages/genie-app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png +0 -0
  188. package/packages/genie-app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png +0 -0
  189. package/packages/genie-app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
  190. package/packages/genie-app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png +0 -0
  191. package/packages/genie-app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png +0 -0
  192. package/packages/genie-app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
  193. package/packages/genie-app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  194. package/packages/genie-app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png +0 -0
  195. package/packages/genie-app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
  196. package/packages/genie-app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  197. package/packages/genie-app/src-tauri/icons/android/values/ic_launcher_background.xml +0 -4
  198. package/packages/genie-app/src-tauri/icons/icon.icns +0 -0
  199. package/packages/genie-app/src-tauri/icons/icon.ico +0 -0
  200. package/packages/genie-app/src-tauri/icons/icon.png +0 -0
  201. package/packages/genie-app/src-tauri/icons/ios/AppIcon-20x20@1x.png +0 -0
  202. package/packages/genie-app/src-tauri/icons/ios/AppIcon-20x20@2x-1.png +0 -0
  203. package/packages/genie-app/src-tauri/icons/ios/AppIcon-20x20@2x.png +0 -0
  204. package/packages/genie-app/src-tauri/icons/ios/AppIcon-20x20@3x.png +0 -0
  205. package/packages/genie-app/src-tauri/icons/ios/AppIcon-29x29@1x.png +0 -0
  206. package/packages/genie-app/src-tauri/icons/ios/AppIcon-29x29@2x-1.png +0 -0
  207. package/packages/genie-app/src-tauri/icons/ios/AppIcon-29x29@2x.png +0 -0
  208. package/packages/genie-app/src-tauri/icons/ios/AppIcon-29x29@3x.png +0 -0
  209. package/packages/genie-app/src-tauri/icons/ios/AppIcon-40x40@1x.png +0 -0
  210. package/packages/genie-app/src-tauri/icons/ios/AppIcon-40x40@2x-1.png +0 -0
  211. package/packages/genie-app/src-tauri/icons/ios/AppIcon-40x40@2x.png +0 -0
  212. package/packages/genie-app/src-tauri/icons/ios/AppIcon-40x40@3x.png +0 -0
  213. package/packages/genie-app/src-tauri/icons/ios/AppIcon-512@2x.png +0 -0
  214. package/packages/genie-app/src-tauri/icons/ios/AppIcon-60x60@2x.png +0 -0
  215. package/packages/genie-app/src-tauri/icons/ios/AppIcon-60x60@3x.png +0 -0
  216. package/packages/genie-app/src-tauri/icons/ios/AppIcon-76x76@1x.png +0 -0
  217. package/packages/genie-app/src-tauri/icons/ios/AppIcon-76x76@2x.png +0 -0
  218. package/packages/genie-app/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png +0 -0
  219. package/packages/genie-app/src-tauri/src/main.rs +0 -165
  220. package/packages/genie-app/src-tauri/tauri.conf.json +0 -37
  221. package/packages/genie-app/tsconfig.json +0 -20
  222. package/packages/genie-app/types/khal-os.d.ts +0 -101
  223. package/packages/genie-app/types/xterm.d.ts +0 -59
  224. package/packages/genie-app/views/activity/ui/ActivityView.tsx +0 -429
  225. package/packages/genie-app/views/agents/ui/AgentDetail.tsx +0 -402
  226. package/packages/genie-app/views/agents/ui/AgentsView.tsx +0 -764
  227. package/packages/genie-app/views/costs/ui/CostIntelligence.tsx +0 -730
  228. package/packages/genie-app/views/dashboard/ui/DashboardView.tsx +0 -671
  229. package/packages/genie-app/views/files/ui/FilesView.tsx +0 -3
  230. package/packages/genie-app/views/genie/ui/Files.tsx +0 -740
  231. package/packages/genie-app/views/genie/ui/Settings.tsx +0 -479
  232. package/packages/genie-app/views/genie/ui/components/AgentSelector.tsx +0 -141
  233. package/packages/genie-app/views/genie/ui/components/FileDialogs.tsx +0 -204
  234. package/packages/genie-app/views/genie/ui/components/FileListView.tsx +0 -442
  235. package/packages/genie-app/views/genie/ui/components/FileTree.tsx +0 -356
  236. package/packages/genie-app/views/genie/ui/tabs/AgentsTab.tsx +0 -427
  237. package/packages/genie-app/views/genie/ui/tabs/CouncilPresetsTab.tsx +0 -278
  238. package/packages/genie-app/views/genie/ui/tabs/GeneralTab.tsx +0 -482
  239. package/packages/genie-app/views/genie/ui/tabs/OmniTab.tsx +0 -228
  240. package/packages/genie-app/views/genie/ui/tabs/RulesTab.tsx +0 -186
  241. package/packages/genie-app/views/genie/ui/tabs/SkillsTab.tsx +0 -119
  242. package/packages/genie-app/views/genie/ui/tabs/WorkerProfilesTab.tsx +0 -279
  243. package/packages/genie-app/views/genie/ui/tabs/WorkspaceTab.tsx +0 -319
  244. package/packages/genie-app/views/scheduler/ui/SchedulerView.tsx +0 -551
  245. package/packages/genie-app/views/sessions/ui/SessionsView.tsx +0 -1055
  246. package/packages/genie-app/views/settings/ui/SettingsView.tsx +0 -5
  247. package/packages/genie-app/views/shared/ApprovalMessage.tsx +0 -273
  248. package/packages/genie-app/views/shared/ApprovalToast.tsx +0 -182
  249. package/packages/genie-app/views/shared/ChatBubble.tsx +0 -158
  250. package/packages/genie-app/views/shared/EmptyState.tsx +0 -61
  251. package/packages/genie-app/views/shared/ErrorBoundary.tsx +0 -76
  252. package/packages/genie-app/views/shared/ErrorState.tsx +0 -102
  253. package/packages/genie-app/views/shared/KpiCard.tsx +0 -156
  254. package/packages/genie-app/views/shared/LiveFeed.tsx +0 -181
  255. package/packages/genie-app/views/shared/LoadingState.tsx +0 -23
  256. package/packages/genie-app/views/shared/SearchBar.tsx +0 -194
  257. package/packages/genie-app/views/shared/StatusBar.tsx +0 -94
  258. package/packages/genie-app/views/shared/TimelineDensity.tsx +0 -128
  259. package/packages/genie-app/views/shared/ToolCallCard.tsx +0 -190
  260. package/packages/genie-app/views/system/ui/SystemView.tsx +0 -769
  261. package/packages/genie-app/views/tasks/ui/TaskDetail.tsx +0 -664
  262. package/packages/genie-app/views/tasks/ui/TasksView.tsx +0 -955
  263. package/packages/genie-app/views/terminal/ui/TerminalPane.tsx +0 -243
  264. package/packages/genie-app/views/terminal/ui/TerminalView.tsx +0 -285
  265. package/packages/genie-app/views/wizard/ui/WizardView.tsx +0 -269
  266. package/packages/genie-app/vite.config.ts +0 -17
  267. package/report.md +0 -171
  268. package/scripts/build-app.ts +0 -50
  269. package/scripts/build.js +0 -134
  270. package/scripts/skills-audit.ts +0 -116
  271. package/scripts/skills-lint.ts +0 -140
  272. package/scripts/smart-install.js +0 -435
  273. package/scripts/sync.js +0 -144
  274. package/scripts/uninstall.js +0 -144
  275. package/scripts/version.ts +0 -114
  276. package/scripts/wishes-lint.ts +0 -116
  277. package/src/__tests__/_shared-sdk-query-mock.ts +0 -58
  278. package/src/__tests__/defaults.test.ts +0 -249
  279. package/src/__tests__/dir-ls.test.ts +0 -150
  280. package/src/__tests__/discovery.test.ts +0 -175
  281. package/src/__tests__/events.test.ts +0 -57
  282. package/src/__tests__/heal.test.ts +0 -131
  283. package/src/__tests__/interactivity.test.ts +0 -349
  284. package/src/__tests__/migrate.test.ts +0 -498
  285. package/src/__tests__/mini-wizard.test.ts +0 -99
  286. package/src/__tests__/pending-agents.test.ts +0 -212
  287. package/src/__tests__/resolve-agent-cwd.test.ts +0 -113
  288. package/src/__tests__/resume.test.ts +0 -301
  289. package/src/__tests__/scaffold.test.ts +0 -98
  290. package/src/__tests__/sdk-integration.test.ts +0 -877
  291. package/src/__tests__/tmux-config.test.ts +0 -122
  292. package/src/__tests__/tree-scanner.test.ts +0 -256
  293. package/src/__tests__/workspace-migration.test.ts +0 -79
  294. package/src/genie-commands/__tests__/session.test.ts +0 -269
  295. package/src/genie-commands/__tests__/update.test.ts +0 -49
  296. package/src/genie-commands/doctor.ts +0 -544
  297. package/src/genie-commands/session.ts +0 -573
  298. package/src/genie-commands/setup.ts +0 -467
  299. package/src/genie-commands/shortcuts.ts +0 -62
  300. package/src/genie-commands/uninstall.ts +0 -153
  301. package/src/genie-commands/update.ts +0 -684
  302. package/src/genie.ts +0 -715
  303. package/src/hooks/__tests__/branch-guard.test.ts +0 -170
  304. package/src/hooks/__tests__/dispatch.test.ts +0 -227
  305. package/src/hooks/__tests__/inject.test.ts +0 -109
  306. package/src/hooks/dispatch-command.ts +0 -39
  307. package/src/hooks/handlers/__tests__/audit-context.test.ts +0 -114
  308. package/src/hooks/handlers/__tests__/auto-spawn.test.ts +0 -73
  309. package/src/hooks/handlers/__tests__/brain-inject.test.ts +0 -81
  310. package/src/hooks/handlers/__tests__/freshness.test.ts +0 -191
  311. package/src/hooks/handlers/audit-context.ts +0 -54
  312. package/src/hooks/handlers/auto-spawn.ts +0 -133
  313. package/src/hooks/handlers/brain-inject.ts +0 -93
  314. package/src/hooks/handlers/branch-guard.ts +0 -67
  315. package/src/hooks/handlers/freshness.ts +0 -121
  316. package/src/hooks/handlers/identity-inject.ts +0 -39
  317. package/src/hooks/handlers/orchestration-guard.ts +0 -64
  318. package/src/hooks/handlers/runtime-emit.ts +0 -140
  319. package/src/hooks/index.ts +0 -294
  320. package/src/hooks/inject.ts +0 -168
  321. package/src/hooks/resolve-agent-name.ts +0 -51
  322. package/src/hooks/types.ts +0 -94
  323. package/src/lib/__tests__/edge-cases-stability.test.ts +0 -530
  324. package/src/lib/__tests__/executor-config.test.ts +0 -67
  325. package/src/lib/__tests__/mailbox.test.ts +0 -263
  326. package/src/lib/__tests__/zombie-spawns.test.ts +0 -177
  327. package/src/lib/agent-directory.test.ts +0 -430
  328. package/src/lib/agent-directory.ts +0 -475
  329. package/src/lib/agent-identity-sync.test.ts +0 -288
  330. package/src/lib/agent-registry.test.ts +0 -681
  331. package/src/lib/agent-registry.ts +0 -646
  332. package/src/lib/agent-sync.ts +0 -540
  333. package/src/lib/assignment-registry.test.ts +0 -363
  334. package/src/lib/assignment-registry.ts +0 -86
  335. package/src/lib/audit-events.ts +0 -64
  336. package/src/lib/audit.test.ts +0 -233
  337. package/src/lib/audit.ts +0 -392
  338. package/src/lib/auto-approve-engine.test.ts +0 -730
  339. package/src/lib/auto-approve-engine.ts +0 -236
  340. package/src/lib/auto-approve.test.ts +0 -1057
  341. package/src/lib/auto-approve.ts +0 -575
  342. package/src/lib/board-service.test.ts +0 -336
  343. package/src/lib/board-service.ts +0 -540
  344. package/src/lib/bridge-status.test.ts +0 -114
  345. package/src/lib/bridge-status.ts +0 -162
  346. package/src/lib/brief.test.ts +0 -154
  347. package/src/lib/brief.ts +0 -305
  348. package/src/lib/builtin-agents.test.ts +0 -147
  349. package/src/lib/builtin-agents.ts +0 -151
  350. package/src/lib/claude-logs.test.ts +0 -363
  351. package/src/lib/claude-logs.ts +0 -510
  352. package/src/lib/claude-native-teams.test.ts +0 -556
  353. package/src/lib/claude-native-teams.ts +0 -925
  354. package/src/lib/claude-settings.ts +0 -103
  355. package/src/lib/claude-transcript.test.ts +0 -114
  356. package/src/lib/codex-config.ts +0 -114
  357. package/src/lib/codex-logs.test.ts +0 -210
  358. package/src/lib/codex-logs.ts +0 -308
  359. package/src/lib/context-enrichment.test.ts +0 -21
  360. package/src/lib/context-enrichment.ts +0 -120
  361. package/src/lib/cron.test.ts +0 -113
  362. package/src/lib/cron.ts +0 -207
  363. package/src/lib/db-backup.test.ts +0 -119
  364. package/src/lib/db-backup.ts +0 -183
  365. package/src/lib/db-migrations.ts +0 -168
  366. package/src/lib/db.test.ts +0 -415
  367. package/src/lib/db.ts +0 -596
  368. package/src/lib/defaults.ts +0 -171
  369. package/src/lib/discovery.ts +0 -145
  370. package/src/lib/ensure-tmux.ts +0 -179
  371. package/src/lib/event-listener.test.ts +0 -598
  372. package/src/lib/event-listener.ts +0 -254
  373. package/src/lib/event-renderer.ts +0 -329
  374. package/src/lib/event-router.test.ts +0 -44
  375. package/src/lib/event-router.ts +0 -319
  376. package/src/lib/executor-config.ts +0 -40
  377. package/src/lib/executor-registry.test.ts +0 -1002
  378. package/src/lib/executor-registry.ts +0 -255
  379. package/src/lib/executor-types.ts +0 -314
  380. package/src/lib/export-format.ts +0 -85
  381. package/src/lib/frontmatter-writer.test.ts +0 -247
  382. package/src/lib/frontmatter-writer.ts +0 -128
  383. package/src/lib/frontmatter.test.ts +0 -524
  384. package/src/lib/frontmatter.ts +0 -122
  385. package/src/lib/genie-config.ts +0 -171
  386. package/src/lib/idle-timeout.test.ts +0 -248
  387. package/src/lib/idle-timeout.ts +0 -128
  388. package/src/lib/import-order.ts +0 -81
  389. package/src/lib/inbox-watcher.test.ts +0 -254
  390. package/src/lib/inbox-watcher.ts +0 -159
  391. package/src/lib/interactivity.ts +0 -127
  392. package/src/lib/log-reader.ts +0 -200
  393. package/src/lib/mailbox.ts +0 -311
  394. package/src/lib/migrate.ts +0 -488
  395. package/src/lib/mini-wizard.ts +0 -228
  396. package/src/lib/mosaic-layout.ts +0 -41
  397. package/src/lib/omni-approval-handler.ts +0 -256
  398. package/src/lib/omni-registration.ts +0 -188
  399. package/src/lib/orchestrator/index.ts +0 -10
  400. package/src/lib/orchestrator/patterns.ts +0 -253
  401. package/src/lib/orchestrator/state-detector.ts +0 -169
  402. package/src/lib/otel-receiver.test.ts +0 -151
  403. package/src/lib/otel-receiver.ts +0 -386
  404. package/src/lib/pending-agents.ts +0 -141
  405. package/src/lib/pg-seed.test.ts +0 -459
  406. package/src/lib/pg-seed.ts +0 -468
  407. package/src/lib/protocol-router-spawn.test.ts +0 -137
  408. package/src/lib/protocol-router-spawn.ts +0 -440
  409. package/src/lib/protocol-router.test.ts +0 -668
  410. package/src/lib/protocol-router.ts +0 -519
  411. package/src/lib/provider-adapters.test.ts +0 -480
  412. package/src/lib/provider-adapters.ts +0 -481
  413. package/src/lib/providers/__tests__/claude-sdk-events.test.ts +0 -519
  414. package/src/lib/providers/__tests__/claude-sdk-permissions.test.ts +0 -367
  415. package/src/lib/providers/__tests__/claude-sdk-stream.test.ts +0 -256
  416. package/src/lib/providers/__tests__/claude-sdk.test.ts +0 -352
  417. package/src/lib/providers/app-pty.ts +0 -227
  418. package/src/lib/providers/claude-code.test.ts +0 -311
  419. package/src/lib/providers/claude-code.ts +0 -302
  420. package/src/lib/providers/claude-sdk-events.ts +0 -301
  421. package/src/lib/providers/claude-sdk-permissions.ts +0 -217
  422. package/src/lib/providers/claude-sdk-remote-approval.ts +0 -316
  423. package/src/lib/providers/claude-sdk-stream.ts +0 -113
  424. package/src/lib/providers/claude-sdk.ts +0 -303
  425. package/src/lib/providers/codex.test.ts +0 -219
  426. package/src/lib/providers/codex.ts +0 -109
  427. package/src/lib/providers/registry.test.ts +0 -73
  428. package/src/lib/providers/registry.ts +0 -52
  429. package/src/lib/qa-parser.ts +0 -249
  430. package/src/lib/qa-runner.test.ts +0 -240
  431. package/src/lib/qa-runner.ts +0 -721
  432. package/src/lib/qa-state.test.ts +0 -319
  433. package/src/lib/qa-state.ts +0 -165
  434. package/src/lib/resolve-agent-cwd.ts +0 -77
  435. package/src/lib/routing-header.test.ts +0 -204
  436. package/src/lib/routing-header.ts +0 -133
  437. package/src/lib/run-spec.test.ts +0 -177
  438. package/src/lib/run-spec.ts +0 -178
  439. package/src/lib/runtime-events-thread.test.ts +0 -96
  440. package/src/lib/runtime-events.test.ts +0 -224
  441. package/src/lib/runtime-events.ts +0 -397
  442. package/src/lib/safe-pg-call.ts +0 -23
  443. package/src/lib/scheduler-daemon.test.ts +0 -1580
  444. package/src/lib/scheduler-daemon.ts +0 -1601
  445. package/src/lib/sdk-directory-types.ts +0 -334
  446. package/src/lib/service-registry.test.ts +0 -89
  447. package/src/lib/service-registry.ts +0 -107
  448. package/src/lib/session-backfill.ts +0 -235
  449. package/src/lib/session-capture.ts +0 -714
  450. package/src/lib/session-filewatch.ts +0 -155
  451. package/src/lib/spawn-command.test.ts +0 -431
  452. package/src/lib/spawn-command.ts +0 -267
  453. package/src/lib/system-detect.ts +0 -44
  454. package/src/lib/table-detect.ts +0 -46
  455. package/src/lib/target-resolver.test.ts +0 -1726
  456. package/src/lib/target-resolver.ts +0 -584
  457. package/src/lib/task-checkout-deps.test.ts +0 -92
  458. package/src/lib/task-close-merged.test.ts +0 -233
  459. package/src/lib/task-close-merged.ts +0 -231
  460. package/src/lib/task-service.test.ts +0 -1203
  461. package/src/lib/task-service.ts +0 -1865
  462. package/src/lib/team-auto-spawn.test.ts +0 -109
  463. package/src/lib/team-auto-spawn.ts +0 -190
  464. package/src/lib/team-chat.test.ts +0 -154
  465. package/src/lib/team-chat.ts +0 -95
  466. package/src/lib/team-lead-command.test.ts +0 -164
  467. package/src/lib/team-lead-command.ts +0 -144
  468. package/src/lib/team-manager.test.ts +0 -416
  469. package/src/lib/team-manager.ts +0 -708
  470. package/src/lib/template-service.test.ts +0 -245
  471. package/src/lib/template-service.ts +0 -227
  472. package/src/lib/term-format.ts +0 -106
  473. package/src/lib/test-db.ts +0 -191
  474. package/src/lib/test-setup.test.ts +0 -45
  475. package/src/lib/test-setup.ts +0 -389
  476. package/src/lib/tmux-alive.test.ts +0 -117
  477. package/src/lib/tmux-resolve.test.ts +0 -144
  478. package/src/lib/tmux-wrapper.ts +0 -112
  479. package/src/lib/tmux.test.ts +0 -135
  480. package/src/lib/tmux.ts +0 -621
  481. package/src/lib/transcript-normalizer.test.ts +0 -659
  482. package/src/lib/transcript-normalizer.ts +0 -548
  483. package/src/lib/transcript-types.ts +0 -146
  484. package/src/lib/transcript.test.ts +0 -98
  485. package/src/lib/transcript.ts +0 -128
  486. package/src/lib/tree-scanner.ts +0 -215
  487. package/src/lib/unified-log.test.ts +0 -819
  488. package/src/lib/unified-log.ts +0 -532
  489. package/src/lib/version.ts +0 -40
  490. package/src/lib/wish-resolve.test.ts +0 -108
  491. package/src/lib/wish-resolve.ts +0 -124
  492. package/src/lib/wish-state.test.ts +0 -747
  493. package/src/lib/wish-state.ts +0 -625
  494. package/src/lib/wish-sync.test.ts +0 -141
  495. package/src/lib/wish-sync.ts +0 -182
  496. package/src/lib/workspace.test.ts +0 -196
  497. package/src/lib/workspace.ts +0 -313
  498. package/src/services/__tests__/omni-bridge-pidfile.test.ts +0 -136
  499. package/src/services/__tests__/omni-bridge.test.ts +0 -1044
  500. package/src/services/__tests__/omni-queue.test.ts +0 -277
  501. package/src/services/__tests__/omni-turn.test.ts +0 -105
  502. package/src/services/bridge-session-store.ts +0 -180
  503. package/src/services/executor.ts +0 -60
  504. package/src/services/executors/__tests__/_sdk-mocks.ts +0 -142
  505. package/src/services/executors/__tests__/claude-sdk-resume.test.ts +0 -392
  506. package/src/services/executors/__tests__/claude-sdk.test.ts +0 -746
  507. package/src/services/executors/__tests__/sdk-session-capture.test.ts +0 -313
  508. package/src/services/executors/claude-code.test.ts +0 -160
  509. package/src/services/executors/claude-code.ts +0 -347
  510. package/src/services/executors/claude-sdk.ts +0 -635
  511. package/src/services/executors/sdk-session-capture.ts +0 -116
  512. package/src/services/executors/turn-based-prompt.ts +0 -28
  513. package/src/services/omni-bridge.ts +0 -1283
  514. package/src/services/omni-queue.ts +0 -296
  515. package/src/services/omni-turn.ts +0 -52
  516. package/src/templates/AGENTS.md +0 -27
  517. package/src/templates/HEARTBEAT.md +0 -17
  518. package/src/templates/SOUL.md +0 -5
  519. package/src/templates/genie-agents.md +0 -42
  520. package/src/templates/genie-heartbeat.md +0 -37
  521. package/src/templates/genie-soul.md +0 -122
  522. package/src/templates/index.ts +0 -324
  523. package/src/term-commands/__tests__/dispatch-slug.test.ts +0 -86
  524. package/src/term-commands/agent/answer.ts +0 -22
  525. package/src/term-commands/agent/brief.ts +0 -50
  526. package/src/term-commands/agent/directory.ts +0 -162
  527. package/src/term-commands/agent/inbox.ts +0 -127
  528. package/src/term-commands/agent/index.ts +0 -46
  529. package/src/term-commands/agent/kill.ts +0 -22
  530. package/src/term-commands/agent/list.ts +0 -25
  531. package/src/term-commands/agent/log.ts +0 -155
  532. package/src/term-commands/agent/register.ts +0 -125
  533. package/src/term-commands/agent/resume.ts +0 -23
  534. package/src/term-commands/agent/send.ts +0 -233
  535. package/src/term-commands/agent/show.ts +0 -81
  536. package/src/term-commands/agent/spawn.ts +0 -53
  537. package/src/term-commands/agent/stop.ts +0 -22
  538. package/src/term-commands/agents.test.ts +0 -183
  539. package/src/term-commands/agents.ts +0 -2243
  540. package/src/term-commands/app.ts +0 -81
  541. package/src/term-commands/approval.ts +0 -152
  542. package/src/term-commands/approve.test.ts +0 -159
  543. package/src/term-commands/approve.ts +0 -222
  544. package/src/term-commands/audit-events.ts +0 -637
  545. package/src/term-commands/board.ts +0 -843
  546. package/src/term-commands/brain.test.ts +0 -120
  547. package/src/term-commands/brain.ts +0 -587
  548. package/src/term-commands/brief.ts +0 -64
  549. package/src/term-commands/daemon.test.ts +0 -112
  550. package/src/term-commands/daemon.ts +0 -528
  551. package/src/term-commands/db-prune.test.ts +0 -122
  552. package/src/term-commands/db.ts +0 -324
  553. package/src/term-commands/dir.test.ts +0 -208
  554. package/src/term-commands/dir.ts +0 -848
  555. package/src/term-commands/dispatch.test.ts +0 -768
  556. package/src/term-commands/dispatch.ts +0 -745
  557. package/src/term-commands/events.test.ts +0 -250
  558. package/src/term-commands/events.ts +0 -118
  559. package/src/term-commands/exec/index.ts +0 -166
  560. package/src/term-commands/export.ts +0 -399
  561. package/src/term-commands/history.test.ts +0 -92
  562. package/src/term-commands/history.ts +0 -519
  563. package/src/term-commands/import.test.ts +0 -91
  564. package/src/term-commands/import.ts +0 -348
  565. package/src/term-commands/init-bootstrap.test.ts +0 -102
  566. package/src/term-commands/init-flow.test.ts +0 -81
  567. package/src/term-commands/init.test.ts +0 -65
  568. package/src/term-commands/init.ts +0 -311
  569. package/src/term-commands/log.test.ts +0 -323
  570. package/src/term-commands/log.ts +0 -400
  571. package/src/term-commands/metrics.ts +0 -229
  572. package/src/term-commands/msg.test.ts +0 -340
  573. package/src/term-commands/msg.ts +0 -737
  574. package/src/term-commands/notify.ts +0 -129
  575. package/src/term-commands/orchestrate.ts +0 -114
  576. package/src/term-commands/project.ts +0 -208
  577. package/src/term-commands/qa.test.ts +0 -59
  578. package/src/term-commands/qa.ts +0 -502
  579. package/src/term-commands/read.ts +0 -96
  580. package/src/term-commands/release.ts +0 -71
  581. package/src/term-commands/schedule.test.ts +0 -93
  582. package/src/term-commands/schedule.ts +0 -533
  583. package/src/term-commands/serve.test.ts +0 -35
  584. package/src/term-commands/serve.ts +0 -969
  585. package/src/term-commands/sessions.ts +0 -337
  586. package/src/term-commands/ship.test.ts +0 -383
  587. package/src/term-commands/shortcuts.ts +0 -329
  588. package/src/term-commands/state.test.ts +0 -355
  589. package/src/term-commands/state.ts +0 -483
  590. package/src/term-commands/tag.ts +0 -74
  591. package/src/term-commands/task/board.ts +0 -13
  592. package/src/term-commands/task/index.ts +0 -40
  593. package/src/term-commands/task/project.ts +0 -13
  594. package/src/term-commands/task/release-mgmt.ts +0 -69
  595. package/src/term-commands/task/reset.ts +0 -28
  596. package/src/term-commands/task/status.ts +0 -127
  597. package/src/term-commands/task/type.ts +0 -13
  598. package/src/term-commands/task.ts +0 -921
  599. package/src/term-commands/team/index.ts +0 -9
  600. package/src/term-commands/team.test.ts +0 -257
  601. package/src/term-commands/team.ts +0 -564
  602. package/src/term-commands/template.ts +0 -84
  603. package/src/term-commands/type.ts +0 -178
  604. package/src/tui/app.tsx +0 -70
  605. package/src/tui/components/ContextMenu.tsx +0 -133
  606. package/src/tui/components/Nav.tsx +0 -796
  607. package/src/tui/components/QuitDialog.tsx +0 -56
  608. package/src/tui/components/SystemStats.tsx +0 -166
  609. package/src/tui/components/TreeNode.tsx +0 -177
  610. package/src/tui/context-menu-items.ts +0 -65
  611. package/src/tui/db.ts +0 -76
  612. package/src/tui/diagnostics.ts +0 -255
  613. package/src/tui/index.ts +0 -20
  614. package/src/tui/initial-agent.test.ts +0 -76
  615. package/src/tui/initial-agent.ts +0 -22
  616. package/src/tui/render.tsx +0 -26
  617. package/src/tui/session-tree.test.ts +0 -603
  618. package/src/tui/session-tree.ts +0 -366
  619. package/src/tui/theme.ts +0 -50
  620. package/src/tui/tmux.ts +0 -147
  621. package/src/tui/tree.ts +0 -33
  622. package/src/tui/tsconfig.json +0 -9
  623. package/src/tui/types.ts +0 -71
  624. package/src/types/genie-config.ts +0 -127
  625. package/tsconfig.json +0 -19
@@ -0,0 +1,604 @@
1
+ ; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/ecma/highlights.scm
2
+ ; Types
3
+ ; Javascript
4
+ ; Variables
5
+ ;-----------
6
+ (identifier) @variable
7
+
8
+ ; Properties
9
+ ;-----------
10
+ (property_identifier) @variable.member
11
+
12
+ (shorthand_property_identifier) @variable.member
13
+
14
+ (private_property_identifier) @variable.member
15
+
16
+ (object_pattern
17
+ (shorthand_property_identifier_pattern) @variable)
18
+
19
+ (object_pattern
20
+ (object_assignment_pattern
21
+ (shorthand_property_identifier_pattern) @variable))
22
+
23
+ ; Special identifiers
24
+ ;--------------------
25
+ ((identifier) @type
26
+ (#lua-match? @type "^[A-Z]"))
27
+
28
+ ((identifier) @constant
29
+ (#lua-match? @constant "^_*[A-Z][A-Z%d_]*$"))
30
+
31
+ ((shorthand_property_identifier) @constant
32
+ (#lua-match? @constant "^_*[A-Z][A-Z%d_]*$"))
33
+
34
+ ((identifier) @variable.builtin
35
+ (#any-of? @variable.builtin "arguments" "module" "console" "window" "document"))
36
+
37
+ ((identifier) @type.builtin
38
+ (#any-of? @type.builtin
39
+ "Object" "Function" "Boolean" "Symbol" "Number" "Math" "Date" "String" "RegExp" "Map" "Set"
40
+ "WeakMap" "WeakSet" "Promise" "Array" "Int8Array" "Uint8Array" "Uint8ClampedArray" "Int16Array"
41
+ "Uint16Array" "Int32Array" "Uint32Array" "Float32Array" "Float64Array" "ArrayBuffer" "DataView"
42
+ "Error" "EvalError" "InternalError" "RangeError" "ReferenceError" "SyntaxError" "TypeError"
43
+ "URIError"))
44
+
45
+ (statement_identifier) @label
46
+
47
+ ; Function and method definitions
48
+ ;--------------------------------
49
+ (function_expression
50
+ name: (identifier) @function)
51
+
52
+ (function_declaration
53
+ name: (identifier) @function)
54
+
55
+ (generator_function
56
+ name: (identifier) @function)
57
+
58
+ (generator_function_declaration
59
+ name: (identifier) @function)
60
+
61
+ (method_definition
62
+ name: [
63
+ (property_identifier)
64
+ (private_property_identifier)
65
+ ] @function.method)
66
+
67
+ (method_definition
68
+ name: (property_identifier) @constructor
69
+ (#eq? @constructor "constructor"))
70
+
71
+ (pair
72
+ key: (property_identifier) @function.method
73
+ value: (function_expression))
74
+
75
+ (pair
76
+ key: (property_identifier) @function.method
77
+ value: (arrow_function))
78
+
79
+ (assignment_expression
80
+ left: (member_expression
81
+ property: (property_identifier) @function.method)
82
+ right: (arrow_function))
83
+
84
+ (assignment_expression
85
+ left: (member_expression
86
+ property: (property_identifier) @function.method)
87
+ right: (function_expression))
88
+
89
+ (variable_declarator
90
+ name: (identifier) @function
91
+ value: (arrow_function))
92
+
93
+ (variable_declarator
94
+ name: (identifier) @function
95
+ value: (function_expression))
96
+
97
+ (assignment_expression
98
+ left: (identifier) @function
99
+ right: (arrow_function))
100
+
101
+ (assignment_expression
102
+ left: (identifier) @function
103
+ right: (function_expression))
104
+
105
+ ; Function and method calls
106
+ ;--------------------------
107
+ (call_expression
108
+ function: (identifier) @function.call)
109
+
110
+ (call_expression
111
+ function: (member_expression
112
+ property: [
113
+ (property_identifier)
114
+ (private_property_identifier)
115
+ ] @function.method.call))
116
+
117
+ (call_expression
118
+ function: (await_expression
119
+ (identifier) @function.call))
120
+
121
+ (call_expression
122
+ function: (await_expression
123
+ (member_expression
124
+ property: [
125
+ (property_identifier)
126
+ (private_property_identifier)
127
+ ] @function.method.call)))
128
+
129
+ ; Builtins
130
+ ;---------
131
+ ((identifier) @module.builtin
132
+ (#eq? @module.builtin "Intl"))
133
+
134
+ ((identifier) @function.builtin
135
+ (#any-of? @function.builtin
136
+ "eval" "isFinite" "isNaN" "parseFloat" "parseInt" "decodeURI" "decodeURIComponent" "encodeURI"
137
+ "encodeURIComponent" "require"))
138
+
139
+ ; Constructor
140
+ ;------------
141
+ (new_expression
142
+ constructor: (identifier) @constructor)
143
+
144
+ ; Decorators
145
+ ;----------
146
+ (decorator
147
+ "@" @attribute
148
+ (identifier) @attribute)
149
+
150
+ (decorator
151
+ "@" @attribute
152
+ (call_expression
153
+ (identifier) @attribute))
154
+
155
+ (decorator
156
+ "@" @attribute
157
+ (member_expression
158
+ (property_identifier) @attribute))
159
+
160
+ (decorator
161
+ "@" @attribute
162
+ (call_expression
163
+ (member_expression
164
+ (property_identifier) @attribute)))
165
+
166
+ ; Literals
167
+ ;---------
168
+ [
169
+ (this)
170
+ (super)
171
+ ] @variable.builtin
172
+
173
+ ((identifier) @variable.builtin
174
+ (#eq? @variable.builtin "self"))
175
+
176
+ [
177
+ (true)
178
+ (false)
179
+ ] @boolean
180
+
181
+ [
182
+ (null)
183
+ (undefined)
184
+ ] @constant.builtin
185
+
186
+ [
187
+ (comment)
188
+ (html_comment)
189
+ ] @comment @spell
190
+
191
+ ((comment) @comment.documentation
192
+ (#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
193
+
194
+ (hash_bang_line) @keyword.directive
195
+
196
+ ((string_fragment) @keyword.directive
197
+ (#eq? @keyword.directive "use strict"))
198
+
199
+ (string) @string
200
+
201
+ (template_string) @string
202
+
203
+ (escape_sequence) @string.escape
204
+
205
+ (regex_pattern) @string.regexp
206
+
207
+ (regex_flags) @character.special
208
+
209
+ (regex
210
+ "/" @punctuation.bracket) ; Regex delimiters
211
+
212
+ (number) @number
213
+
214
+ ((identifier) @number
215
+ (#any-of? @number "NaN" "Infinity"))
216
+
217
+ ; Punctuation
218
+ ;------------
219
+ [
220
+ ";"
221
+ "."
222
+ ","
223
+ ":"
224
+ ] @punctuation.delimiter
225
+
226
+ [
227
+ "--"
228
+ "-"
229
+ "-="
230
+ "&&"
231
+ "+"
232
+ "++"
233
+ "+="
234
+ "&="
235
+ "/="
236
+ "**="
237
+ "<<="
238
+ "<"
239
+ "<="
240
+ "<<"
241
+ "="
242
+ "=="
243
+ "==="
244
+ "!="
245
+ "!=="
246
+ "=>"
247
+ ">"
248
+ ">="
249
+ ">>"
250
+ "||"
251
+ "%"
252
+ "%="
253
+ "*"
254
+ "**"
255
+ ">>>"
256
+ "&"
257
+ "|"
258
+ "^"
259
+ "??"
260
+ "*="
261
+ ">>="
262
+ ">>>="
263
+ "^="
264
+ "|="
265
+ "&&="
266
+ "||="
267
+ "??="
268
+ "..."
269
+ ] @operator
270
+
271
+ (binary_expression
272
+ "/" @operator)
273
+
274
+ (ternary_expression
275
+ [
276
+ "?"
277
+ ":"
278
+ ] @keyword.conditional.ternary)
279
+
280
+ (unary_expression
281
+ [
282
+ "!"
283
+ "~"
284
+ "-"
285
+ "+"
286
+ ] @operator)
287
+
288
+ (unary_expression
289
+ [
290
+ "delete"
291
+ "void"
292
+ ] @keyword.operator)
293
+
294
+ [
295
+ "("
296
+ ")"
297
+ "["
298
+ "]"
299
+ "{"
300
+ "}"
301
+ ] @punctuation.bracket
302
+
303
+ (template_substitution
304
+ [
305
+ "${"
306
+ "}"
307
+ ] @punctuation.special) @none
308
+
309
+ ; Imports
310
+ ;----------
311
+ (namespace_import
312
+ "*" @character.special
313
+ (identifier) @module)
314
+
315
+ (namespace_export
316
+ "*" @character.special
317
+ (identifier) @module)
318
+
319
+ (export_statement
320
+ "*" @character.special)
321
+
322
+ ; Keywords
323
+ ;----------
324
+ [
325
+ "if"
326
+ "else"
327
+ "switch"
328
+ "case"
329
+ ] @keyword.conditional
330
+
331
+ [
332
+ "import"
333
+ "from"
334
+ "as"
335
+ "export"
336
+ ] @keyword.import
337
+
338
+ [
339
+ "for"
340
+ "of"
341
+ "do"
342
+ "while"
343
+ "continue"
344
+ ] @keyword.repeat
345
+
346
+ [
347
+ "break"
348
+ "const"
349
+ "debugger"
350
+ "extends"
351
+ "get"
352
+ "let"
353
+ "set"
354
+ "static"
355
+ "target"
356
+ "var"
357
+ "with"
358
+ ] @keyword
359
+
360
+ "class" @keyword.type
361
+
362
+ [
363
+ "async"
364
+ "await"
365
+ ] @keyword.coroutine
366
+
367
+ [
368
+ "return"
369
+ "yield"
370
+ ] @keyword.return
371
+
372
+ "function" @keyword.function
373
+
374
+ [
375
+ "new"
376
+ "delete"
377
+ "in"
378
+ "instanceof"
379
+ "typeof"
380
+ ] @keyword.operator
381
+
382
+ [
383
+ "throw"
384
+ "try"
385
+ "catch"
386
+ "finally"
387
+ ] @keyword.exception
388
+
389
+ (export_statement
390
+ "default" @keyword)
391
+
392
+ (switch_default
393
+ "default" @keyword.conditional)
394
+
395
+
396
+ ; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/typescript/highlights.scm
397
+ ; inherits: ecma
398
+
399
+ "require" @keyword.import
400
+
401
+ (import_require_clause
402
+ source: (string) @string.special.url)
403
+
404
+ [
405
+ "declare"
406
+ "implements"
407
+ "type"
408
+ "override"
409
+ "module"
410
+ "asserts"
411
+ "infer"
412
+ "is"
413
+ "using"
414
+ ] @keyword
415
+
416
+ [
417
+ "namespace"
418
+ "interface"
419
+ "enum"
420
+ ] @keyword.type
421
+
422
+ [
423
+ "keyof"
424
+ "satisfies"
425
+ ] @keyword.operator
426
+
427
+ (as_expression
428
+ "as" @keyword.operator)
429
+
430
+ (mapped_type_clause
431
+ "as" @keyword.operator)
432
+
433
+ [
434
+ "abstract"
435
+ "private"
436
+ "protected"
437
+ "public"
438
+ "readonly"
439
+ ] @keyword.modifier
440
+
441
+ ; types
442
+ (type_identifier) @type
443
+
444
+ (predefined_type) @type.builtin
445
+
446
+ (import_statement
447
+ "type"
448
+ (import_clause
449
+ (named_imports
450
+ (import_specifier
451
+ name: (identifier) @type))))
452
+
453
+ (template_literal_type) @string
454
+
455
+ (non_null_expression
456
+ "!" @operator)
457
+
458
+ ; punctuation
459
+ (type_arguments
460
+ [
461
+ "<"
462
+ ">"
463
+ ] @punctuation.bracket)
464
+
465
+ (type_parameters
466
+ [
467
+ "<"
468
+ ">"
469
+ ] @punctuation.bracket)
470
+
471
+ (object_type
472
+ [
473
+ "{|"
474
+ "|}"
475
+ ] @punctuation.bracket)
476
+
477
+ (union_type
478
+ "|" @punctuation.delimiter)
479
+
480
+ (intersection_type
481
+ "&" @punctuation.delimiter)
482
+
483
+ (type_annotation
484
+ ":" @punctuation.delimiter)
485
+
486
+ (type_predicate_annotation
487
+ ":" @punctuation.delimiter)
488
+
489
+ (index_signature
490
+ ":" @punctuation.delimiter)
491
+
492
+ (omitting_type_annotation
493
+ "-?:" @punctuation.delimiter)
494
+
495
+ (adding_type_annotation
496
+ "+?:" @punctuation.delimiter)
497
+
498
+ (opting_type_annotation
499
+ "?:" @punctuation.delimiter)
500
+
501
+ "?." @punctuation.delimiter
502
+
503
+ (abstract_method_signature
504
+ "?" @punctuation.special)
505
+
506
+ (method_signature
507
+ "?" @punctuation.special)
508
+
509
+ (method_definition
510
+ "?" @punctuation.special)
511
+
512
+ (property_signature
513
+ "?" @punctuation.special)
514
+
515
+ (optional_parameter
516
+ "?" @punctuation.special)
517
+
518
+ (optional_type
519
+ "?" @punctuation.special)
520
+
521
+ (public_field_definition
522
+ [
523
+ "?"
524
+ "!"
525
+ ] @punctuation.special)
526
+
527
+ (flow_maybe_type
528
+ "?" @punctuation.special)
529
+
530
+ (template_type
531
+ [
532
+ "${"
533
+ "}"
534
+ ] @punctuation.special)
535
+
536
+ (conditional_type
537
+ [
538
+ "?"
539
+ ":"
540
+ ] @keyword.conditional.ternary)
541
+
542
+ ; Parameters
543
+ (required_parameter
544
+ pattern: (identifier) @variable.parameter)
545
+
546
+ (optional_parameter
547
+ pattern: (identifier) @variable.parameter)
548
+
549
+ (required_parameter
550
+ (rest_pattern
551
+ (identifier) @variable.parameter))
552
+
553
+ ; ({ a }) => null
554
+ (required_parameter
555
+ (object_pattern
556
+ (shorthand_property_identifier_pattern) @variable.parameter))
557
+
558
+ ; ({ a = b }) => null
559
+ (required_parameter
560
+ (object_pattern
561
+ (object_assignment_pattern
562
+ (shorthand_property_identifier_pattern) @variable.parameter)))
563
+
564
+ ; ({ a: b }) => null
565
+ (required_parameter
566
+ (object_pattern
567
+ (pair_pattern
568
+ value: (identifier) @variable.parameter)))
569
+
570
+ ; ([ a ]) => null
571
+ (required_parameter
572
+ (array_pattern
573
+ (identifier) @variable.parameter))
574
+
575
+ ; a => null
576
+ (arrow_function
577
+ parameter: (identifier) @variable.parameter)
578
+
579
+ ; global declaration
580
+ (ambient_declaration
581
+ "global" @module)
582
+
583
+ ; function signatures
584
+ (ambient_declaration
585
+ (function_signature
586
+ name: (identifier) @function))
587
+
588
+ ; method signatures
589
+ (method_signature
590
+ name: (_) @function.method)
591
+
592
+ (abstract_method_signature
593
+ name: (property_identifier) @function.method)
594
+
595
+ ; property signatures
596
+ (property_signature
597
+ name: (property_identifier) @function.method
598
+ type: (type_annotation
599
+ [
600
+ (union_type
601
+ (parenthesized_type
602
+ (function_type)))
603
+ (function_type)
604
+ ]))