@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.
- package/dist/highlights-eq9cgrbb.scm +604 -0
- package/dist/highlights-ghv9g403.scm +205 -0
- package/dist/highlights-hk7bwhj4.scm +284 -0
- package/dist/highlights-r812a2qc.scm +150 -0
- package/dist/highlights-x6tmsnaa.scm +115 -0
- package/dist/injections-73j83es3.scm +27 -0
- package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
- package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
- package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
- package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
- package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
- package/package.json +12 -1
- package/plugins/genie/.claude-plugin/plugin.json +1 -1
- package/plugins/genie/package.json +1 -1
- package/.claude/commands/level-up.md +0 -1275
- package/.claude/hooks/git-safety.sh +0 -58
- package/.claude/settings.json +0 -60
- package/.claude-plugin/marketplace.json +0 -18
- package/.coderabbit.yaml +0 -29
- package/.genie/agents/metrics-updater/AGENT.md +0 -145
- package/.genie/agents/metrics-updater/author-aliases.json +0 -9
- package/.genie/agents/metrics-updater/daily-stats.jsonl +0 -33
- package/.genie/agents/metrics-updater/runs.jsonl +0 -30
- package/.genie/agents/metrics-updater/state.json +0 -14
- package/.genie/agents/metrics-updater/tools/backfill.sh +0 -54
- package/.genie/agents/metrics-updater/tools/collect-stats.sh +0 -132
- package/.genie/agents/metrics-updater/tools/generate-charts.py +0 -224
- package/.genie/agents/metrics-updater/tools/generate-readme-hero.py +0 -137
- package/.genie/agents/metrics-updater/tools/generate-velocity.py +0 -378
- package/.genie/agents/metrics-updater/tools/run-metrics.sh +0 -244
- package/.genie/assets/commits-30d.svg +0 -43
- package/.genie/assets/loc-30d.svg +0 -75
- package/.genie/assets/releases-30d.svg +0 -43
- package/.genie/brainstorm.md +0 -62
- package/.genie/brainstorms/README.md +0 -1
- package/.genie/brainstorms/brainstorm-links-convention/DESIGN.md +0 -69
- package/.genie/brainstorms/velocity-dashboard/DESIGN.md +0 -160
- package/.genie/brainstorms/velocity-dashboard/DRAFT.md +0 -28
- package/.genie/brainstorms/workflow-engine-runtime/DESIGN.md +0 -66
- package/.genie/qa/framework/cross-repo-specs.md +0 -12
- package/.genie/qa/framework/domain-discovery.md +0 -14
- package/.genie/qa/framework/results-isolation.md +0 -13
- package/.genie/qa/lifecycle/agent-lifecycle.md +0 -13
- package/.genie/qa/lifecycle/idle-detection.md +0 -13
- package/.genie/qa/messaging/mailbox-delivery.md +0 -12
- package/.genie/qa/messaging/multi-agent-comm.md +0 -14
- package/.genie/qa/messaging/round-trip-response.md +0 -13
- package/.genie/qa/messaging/send-full-id.md +0 -12
- package/.genie/qa/observability/log-filter-type.md +0 -14
- package/.genie/qa/observability/log-follow-events.md +0 -13
- package/.genie/qa/observability/log-static.md +0 -13
- package/.genie/qa/observability/nats-streaming.md +0 -13
- package/.genie/wishes/_archive/agent-stability-hardening/WISH.md +0 -346
- package/.genie/wishes/_archive/brain-embeddings/WISH.md +0 -72
- package/.genie/wishes/_archive/brain-foundation/WISH.md +0 -228
- package/.genie/wishes/_archive/brain-help-passthrough/WISH.md +0 -159
- package/.genie/wishes/_archive/brain-identity-impl/WISH.md +0 -72
- package/.genie/wishes/_archive/brain-init-skill/WISH.md +0 -57
- package/.genie/wishes/_archive/brain-intelligence/WISH.md +0 -83
- package/.genie/wishes/_archive/brain-observability/WISH.md +0 -70
- package/.genie/wishes/_archive/brain-obsidian/WISH.md +0 -1930
- package/.genie/wishes/_archive/env-defaults-local-mode/WISH.md +0 -148
- package/.genie/wishes/_archive/fix-ghost-approval-p0/REPRO.md +0 -123
- package/.genie/wishes/_archive/fix-ghost-approval-p0/WISH.md +0 -215
- package/.genie/wishes/_archive/genie-app/WISH.md +0 -590
- package/.genie/wishes/_archive/genie-layout-migration/WISH.md +0 -292
- package/.genie/wishes/_archive/genie-model-resolution/WISH.md +0 -477
- package/.genie/wishes/_archive/genie-onboarding-flow/WISH.md +0 -453
- package/.genie/wishes/_archive/omni-lifecycle-hardening/WISH.md +0 -401
- package/.genie/wishes/_archive/omni-skill-upgrade/WISH.md +0 -309
- package/.genie/wishes/_archive/omni-version-unify/WISH.md +0 -257
- package/.genie/wishes/_archive/os-services-orphan-leak/WISH.md +0 -143
- package/.genie/wishes/_archive/perfect-spawn-hierarchy/WISH.md +0 -433
- package/.genie/wishes/_archive/pgserve-daemon-ownership/WISH.md +0 -140
- package/.genie/wishes/_archive/remove-openclaw/WISH.md +0 -178
- package/.genie/wishes/_archive/rlmx-v02/WISH.md +0 -478
- package/.genie/wishes/_archive/rlmx-v03-cag/WISH.md +0 -455
- package/.genie/wishes/_archive/rlmx-v04-gemini3/WISH.md +0 -533
- package/.genie/wishes/_archive/scaffold-auto-memory/WISH.md +0 -168
- package/.genie/wishes/_archive/session-capture-v2/WISH.md +0 -452
- package/.genie/wishes/_archive/session-ingester-perf/WISH.md +0 -148
- package/.genie/wishes/_archive/unify-bridge-revamp-skills/WISH.md +0 -315
- package/.genie/wishes/_archive/v4-database-layer/WISH.md +0 -116
- package/.genie/wishes/_archive/v4-hook-cli-safety/WISH.md +0 -89
- package/.genie/wishes/_archive/v4-message-routing/WISH.md +0 -131
- package/.genie/wishes/_archive/v4-session-executor/WISH.md +0 -141
- package/.genie/wishes/_archive/v4-spawn-resilience/WISH.md +0 -176
- package/.genie/wishes/_archive/v4-team-lifecycle/WISH.md +0 -137
- package/.genie/wishes/_archive/velocity-dashboard/WISH.md +0 -272
- package/.genie/wishes/brain-benchmark-loop/WISH.md +0 -130
- package/.genie/wishes/brain-cag/WISH.md +0 -37
- package/.genie/wishes/brain-cag-v2-polish/WISH.md +0 -177
- package/.genie/wishes/brain-optimizer/WISH.md +0 -59
- package/.genie/wishes/brainstorm-links-convention/WISH.md +0 -375
- package/.genie/wishes/crew-simplification/WISH.md +0 -178
- package/.genie/wishes/genie-app-v1/WISH.md +0 -1098
- package/.genie/wishes/genie-simulations/WISH.md +0 -488
- package/.genie/wishes/genie-skill-graph/WISH.md +0 -354
- package/.genie/wishes/omni-turn-based-dx/SESSION-LEARNINGS.md +0 -53
- package/.genie/wishes/omni-turn-based-dx/WISH.md +0 -382
- package/.genie/wishes/rlmx-dogfood/WISH.md +0 -595
- package/.genie/wishes/rlmx-integration/WISH.md +0 -262
- package/.genie/wishes/rlmx-readme/WISH.md +0 -243
- package/.genie/wishes/sac-agent/WISH.md +0 -595
- package/.genie/wishes/sdk-executor-full/WISH.md +0 -697
- package/.genie/wishes/security-key-leak-remediation/WISH.md +0 -198
- package/.genie/wishes/unified-executor-layer/WISH.md +0 -732
- package/.genie/wishes/workflow-action-engine/WISH.md +0 -380
- package/.genie/wishes/x-tool/WISH.md +0 -254
- package/.gitattributes +0 -3
- package/.github/assets/genie-header.png +0 -0
- package/.github/workflows/ci.yml +0 -121
- package/.github/workflows/commitlint.yml +0 -25
- package/.github/workflows/release.yml +0 -127
- package/.github/workflows/rolling-pr.yml +0 -55
- package/.github/workflows/version.yml +0 -118
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -15
- package/.husky/pre-push +0 -12
- package/.rlmx/CRITERIA.md +0 -15
- package/.rlmx/SYSTEM.md +0 -89
- package/.rlmx/TOOLS.md +0 -27
- package/.rlmx/rlmx.yaml +0 -99
- package/CHANGELOG.md +0 -12
- package/CLAUDE.md +0 -186
- package/Makefile +0 -50
- package/VELOCITY.md +0 -44
- package/assets/avatars/genie-v1-shadow.png +0 -0
- package/assets/avatars/genie-v2-banana.png +0 -0
- package/biome.json +0 -148
- package/cliff.toml +0 -75
- package/commitlint.config.ts +0 -21
- package/docs/AGENT-FRONTMATTER.md +0 -174
- package/docs/ARCHITECTURE.md +0 -337
- package/docs/CLI-REFERENCE.md +0 -1570
- package/docs/CO-ORCHESTRATION-GUIDE.md +0 -301
- package/docs/RETENTION.md +0 -51
- package/docs/SPAWN-AUTO-RESUME.md +0 -129
- package/docs/agent-profiles.md +0 -110
- package/docs/sdk-executor-guide.md +0 -843
- package/install.sh +0 -1174
- package/knip.json +0 -46
- package/packages/genie-app/bun.lock +0 -260
- package/packages/genie-app/components.ts +0 -24
- package/packages/genie-app/index.html +0 -28
- package/packages/genie-app/khal-app.json +0 -144
- package/packages/genie-app/lib/StatusBar.tsx +0 -141
- package/packages/genie-app/lib/ipc.ts +0 -44
- package/packages/genie-app/lib/keyboard.ts +0 -91
- package/packages/genie-app/lib/subjects.ts +0 -131
- package/packages/genie-app/lib/theme.ts +0 -70
- package/packages/genie-app/lib/types.ts +0 -186
- package/packages/genie-app/lib/useKeyboardNav.ts +0 -57
- package/packages/genie-app/manifest.ts +0 -211
- package/packages/genie-app/package.json +0 -40
- package/packages/genie-app/src/App.tsx +0 -304
- package/packages/genie-app/src/main.tsx +0 -11
- package/packages/genie-app/src-backend/index.ts +0 -866
- package/packages/genie-app/src-backend/ipc.ts +0 -169
- package/packages/genie-app/src-backend/pg-bridge.ts +0 -451
- package/packages/genie-app/src-backend/pty.ts +0 -339
- package/packages/genie-app/src-backend/workspace.ts +0 -124
- package/packages/genie-app/src-tauri/Cargo.lock +0 -5111
- package/packages/genie-app/src-tauri/Cargo.toml +0 -20
- package/packages/genie-app/src-tauri/build.rs +0 -3
- package/packages/genie-app/src-tauri/capabilities/default.json +0 -6
- package/packages/genie-app/src-tauri/icons/128x128.png +0 -0
- package/packages/genie-app/src-tauri/icons/128x128@2x.png +0 -0
- package/packages/genie-app/src-tauri/icons/32x32.png +0 -0
- package/packages/genie-app/src-tauri/icons/64x64.png +0 -0
- package/packages/genie-app/src-tauri/icons/Square107x107Logo.png +0 -0
- package/packages/genie-app/src-tauri/icons/Square142x142Logo.png +0 -0
- package/packages/genie-app/src-tauri/icons/Square150x150Logo.png +0 -0
- package/packages/genie-app/src-tauri/icons/Square284x284Logo.png +0 -0
- package/packages/genie-app/src-tauri/icons/Square30x30Logo.png +0 -0
- package/packages/genie-app/src-tauri/icons/Square310x310Logo.png +0 -0
- package/packages/genie-app/src-tauri/icons/Square44x44Logo.png +0 -0
- package/packages/genie-app/src-tauri/icons/Square71x71Logo.png +0 -0
- package/packages/genie-app/src-tauri/icons/Square89x89Logo.png +0 -0
- package/packages/genie-app/src-tauri/icons/StoreLogo.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml +0 -5
- package/packages/genie-app/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/packages/genie-app/src-tauri/icons/android/values/ic_launcher_background.xml +0 -4
- package/packages/genie-app/src-tauri/icons/icon.icns +0 -0
- package/packages/genie-app/src-tauri/icons/icon.ico +0 -0
- package/packages/genie-app/src-tauri/icons/icon.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-20x20@1x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-20x20@2x-1.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-20x20@2x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-20x20@3x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-29x29@1x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-29x29@2x-1.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-29x29@2x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-29x29@3x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-40x40@1x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-40x40@2x-1.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-40x40@2x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-40x40@3x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-512@2x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-60x60@2x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-60x60@3x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-76x76@1x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-76x76@2x.png +0 -0
- package/packages/genie-app/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png +0 -0
- package/packages/genie-app/src-tauri/src/main.rs +0 -165
- package/packages/genie-app/src-tauri/tauri.conf.json +0 -37
- package/packages/genie-app/tsconfig.json +0 -20
- package/packages/genie-app/types/khal-os.d.ts +0 -101
- package/packages/genie-app/types/xterm.d.ts +0 -59
- package/packages/genie-app/views/activity/ui/ActivityView.tsx +0 -429
- package/packages/genie-app/views/agents/ui/AgentDetail.tsx +0 -402
- package/packages/genie-app/views/agents/ui/AgentsView.tsx +0 -764
- package/packages/genie-app/views/costs/ui/CostIntelligence.tsx +0 -730
- package/packages/genie-app/views/dashboard/ui/DashboardView.tsx +0 -671
- package/packages/genie-app/views/files/ui/FilesView.tsx +0 -3
- package/packages/genie-app/views/genie/ui/Files.tsx +0 -740
- package/packages/genie-app/views/genie/ui/Settings.tsx +0 -479
- package/packages/genie-app/views/genie/ui/components/AgentSelector.tsx +0 -141
- package/packages/genie-app/views/genie/ui/components/FileDialogs.tsx +0 -204
- package/packages/genie-app/views/genie/ui/components/FileListView.tsx +0 -442
- package/packages/genie-app/views/genie/ui/components/FileTree.tsx +0 -356
- package/packages/genie-app/views/genie/ui/tabs/AgentsTab.tsx +0 -427
- package/packages/genie-app/views/genie/ui/tabs/CouncilPresetsTab.tsx +0 -278
- package/packages/genie-app/views/genie/ui/tabs/GeneralTab.tsx +0 -482
- package/packages/genie-app/views/genie/ui/tabs/OmniTab.tsx +0 -228
- package/packages/genie-app/views/genie/ui/tabs/RulesTab.tsx +0 -186
- package/packages/genie-app/views/genie/ui/tabs/SkillsTab.tsx +0 -119
- package/packages/genie-app/views/genie/ui/tabs/WorkerProfilesTab.tsx +0 -279
- package/packages/genie-app/views/genie/ui/tabs/WorkspaceTab.tsx +0 -319
- package/packages/genie-app/views/scheduler/ui/SchedulerView.tsx +0 -551
- package/packages/genie-app/views/sessions/ui/SessionsView.tsx +0 -1055
- package/packages/genie-app/views/settings/ui/SettingsView.tsx +0 -5
- package/packages/genie-app/views/shared/ApprovalMessage.tsx +0 -273
- package/packages/genie-app/views/shared/ApprovalToast.tsx +0 -182
- package/packages/genie-app/views/shared/ChatBubble.tsx +0 -158
- package/packages/genie-app/views/shared/EmptyState.tsx +0 -61
- package/packages/genie-app/views/shared/ErrorBoundary.tsx +0 -76
- package/packages/genie-app/views/shared/ErrorState.tsx +0 -102
- package/packages/genie-app/views/shared/KpiCard.tsx +0 -156
- package/packages/genie-app/views/shared/LiveFeed.tsx +0 -181
- package/packages/genie-app/views/shared/LoadingState.tsx +0 -23
- package/packages/genie-app/views/shared/SearchBar.tsx +0 -194
- package/packages/genie-app/views/shared/StatusBar.tsx +0 -94
- package/packages/genie-app/views/shared/TimelineDensity.tsx +0 -128
- package/packages/genie-app/views/shared/ToolCallCard.tsx +0 -190
- package/packages/genie-app/views/system/ui/SystemView.tsx +0 -769
- package/packages/genie-app/views/tasks/ui/TaskDetail.tsx +0 -664
- package/packages/genie-app/views/tasks/ui/TasksView.tsx +0 -955
- package/packages/genie-app/views/terminal/ui/TerminalPane.tsx +0 -243
- package/packages/genie-app/views/terminal/ui/TerminalView.tsx +0 -285
- package/packages/genie-app/views/wizard/ui/WizardView.tsx +0 -269
- package/packages/genie-app/vite.config.ts +0 -17
- package/report.md +0 -171
- package/scripts/build-app.ts +0 -50
- package/scripts/build.js +0 -134
- package/scripts/skills-audit.ts +0 -116
- package/scripts/skills-lint.ts +0 -140
- package/scripts/smart-install.js +0 -435
- package/scripts/sync.js +0 -144
- package/scripts/uninstall.js +0 -144
- package/scripts/version.ts +0 -114
- package/scripts/wishes-lint.ts +0 -116
- package/src/__tests__/_shared-sdk-query-mock.ts +0 -58
- package/src/__tests__/defaults.test.ts +0 -249
- package/src/__tests__/dir-ls.test.ts +0 -150
- package/src/__tests__/discovery.test.ts +0 -175
- package/src/__tests__/events.test.ts +0 -57
- package/src/__tests__/heal.test.ts +0 -131
- package/src/__tests__/interactivity.test.ts +0 -349
- package/src/__tests__/migrate.test.ts +0 -498
- package/src/__tests__/mini-wizard.test.ts +0 -99
- package/src/__tests__/pending-agents.test.ts +0 -212
- package/src/__tests__/resolve-agent-cwd.test.ts +0 -113
- package/src/__tests__/resume.test.ts +0 -301
- package/src/__tests__/scaffold.test.ts +0 -98
- package/src/__tests__/sdk-integration.test.ts +0 -877
- package/src/__tests__/tmux-config.test.ts +0 -122
- package/src/__tests__/tree-scanner.test.ts +0 -256
- package/src/__tests__/workspace-migration.test.ts +0 -79
- package/src/genie-commands/__tests__/session.test.ts +0 -269
- package/src/genie-commands/__tests__/update.test.ts +0 -49
- package/src/genie-commands/doctor.ts +0 -544
- package/src/genie-commands/session.ts +0 -573
- package/src/genie-commands/setup.ts +0 -467
- package/src/genie-commands/shortcuts.ts +0 -62
- package/src/genie-commands/uninstall.ts +0 -153
- package/src/genie-commands/update.ts +0 -684
- package/src/genie.ts +0 -715
- package/src/hooks/__tests__/branch-guard.test.ts +0 -170
- package/src/hooks/__tests__/dispatch.test.ts +0 -227
- package/src/hooks/__tests__/inject.test.ts +0 -109
- package/src/hooks/dispatch-command.ts +0 -39
- package/src/hooks/handlers/__tests__/audit-context.test.ts +0 -114
- package/src/hooks/handlers/__tests__/auto-spawn.test.ts +0 -73
- package/src/hooks/handlers/__tests__/brain-inject.test.ts +0 -81
- package/src/hooks/handlers/__tests__/freshness.test.ts +0 -191
- package/src/hooks/handlers/audit-context.ts +0 -54
- package/src/hooks/handlers/auto-spawn.ts +0 -133
- package/src/hooks/handlers/brain-inject.ts +0 -93
- package/src/hooks/handlers/branch-guard.ts +0 -67
- package/src/hooks/handlers/freshness.ts +0 -121
- package/src/hooks/handlers/identity-inject.ts +0 -39
- package/src/hooks/handlers/orchestration-guard.ts +0 -64
- package/src/hooks/handlers/runtime-emit.ts +0 -140
- package/src/hooks/index.ts +0 -294
- package/src/hooks/inject.ts +0 -168
- package/src/hooks/resolve-agent-name.ts +0 -51
- package/src/hooks/types.ts +0 -94
- package/src/lib/__tests__/edge-cases-stability.test.ts +0 -530
- package/src/lib/__tests__/executor-config.test.ts +0 -67
- package/src/lib/__tests__/mailbox.test.ts +0 -263
- package/src/lib/__tests__/zombie-spawns.test.ts +0 -177
- package/src/lib/agent-directory.test.ts +0 -430
- package/src/lib/agent-directory.ts +0 -475
- package/src/lib/agent-identity-sync.test.ts +0 -288
- package/src/lib/agent-registry.test.ts +0 -681
- package/src/lib/agent-registry.ts +0 -646
- package/src/lib/agent-sync.ts +0 -540
- package/src/lib/assignment-registry.test.ts +0 -363
- package/src/lib/assignment-registry.ts +0 -86
- package/src/lib/audit-events.ts +0 -64
- package/src/lib/audit.test.ts +0 -233
- package/src/lib/audit.ts +0 -392
- package/src/lib/auto-approve-engine.test.ts +0 -730
- package/src/lib/auto-approve-engine.ts +0 -236
- package/src/lib/auto-approve.test.ts +0 -1057
- package/src/lib/auto-approve.ts +0 -575
- package/src/lib/board-service.test.ts +0 -336
- package/src/lib/board-service.ts +0 -540
- package/src/lib/bridge-status.test.ts +0 -114
- package/src/lib/bridge-status.ts +0 -162
- package/src/lib/brief.test.ts +0 -154
- package/src/lib/brief.ts +0 -305
- package/src/lib/builtin-agents.test.ts +0 -147
- package/src/lib/builtin-agents.ts +0 -151
- package/src/lib/claude-logs.test.ts +0 -363
- package/src/lib/claude-logs.ts +0 -510
- package/src/lib/claude-native-teams.test.ts +0 -556
- package/src/lib/claude-native-teams.ts +0 -925
- package/src/lib/claude-settings.ts +0 -103
- package/src/lib/claude-transcript.test.ts +0 -114
- package/src/lib/codex-config.ts +0 -114
- package/src/lib/codex-logs.test.ts +0 -210
- package/src/lib/codex-logs.ts +0 -308
- package/src/lib/context-enrichment.test.ts +0 -21
- package/src/lib/context-enrichment.ts +0 -120
- package/src/lib/cron.test.ts +0 -113
- package/src/lib/cron.ts +0 -207
- package/src/lib/db-backup.test.ts +0 -119
- package/src/lib/db-backup.ts +0 -183
- package/src/lib/db-migrations.ts +0 -168
- package/src/lib/db.test.ts +0 -415
- package/src/lib/db.ts +0 -596
- package/src/lib/defaults.ts +0 -171
- package/src/lib/discovery.ts +0 -145
- package/src/lib/ensure-tmux.ts +0 -179
- package/src/lib/event-listener.test.ts +0 -598
- package/src/lib/event-listener.ts +0 -254
- package/src/lib/event-renderer.ts +0 -329
- package/src/lib/event-router.test.ts +0 -44
- package/src/lib/event-router.ts +0 -319
- package/src/lib/executor-config.ts +0 -40
- package/src/lib/executor-registry.test.ts +0 -1002
- package/src/lib/executor-registry.ts +0 -255
- package/src/lib/executor-types.ts +0 -314
- package/src/lib/export-format.ts +0 -85
- package/src/lib/frontmatter-writer.test.ts +0 -247
- package/src/lib/frontmatter-writer.ts +0 -128
- package/src/lib/frontmatter.test.ts +0 -524
- package/src/lib/frontmatter.ts +0 -122
- package/src/lib/genie-config.ts +0 -171
- package/src/lib/idle-timeout.test.ts +0 -248
- package/src/lib/idle-timeout.ts +0 -128
- package/src/lib/import-order.ts +0 -81
- package/src/lib/inbox-watcher.test.ts +0 -254
- package/src/lib/inbox-watcher.ts +0 -159
- package/src/lib/interactivity.ts +0 -127
- package/src/lib/log-reader.ts +0 -200
- package/src/lib/mailbox.ts +0 -311
- package/src/lib/migrate.ts +0 -488
- package/src/lib/mini-wizard.ts +0 -228
- package/src/lib/mosaic-layout.ts +0 -41
- package/src/lib/omni-approval-handler.ts +0 -256
- package/src/lib/omni-registration.ts +0 -188
- package/src/lib/orchestrator/index.ts +0 -10
- package/src/lib/orchestrator/patterns.ts +0 -253
- package/src/lib/orchestrator/state-detector.ts +0 -169
- package/src/lib/otel-receiver.test.ts +0 -151
- package/src/lib/otel-receiver.ts +0 -386
- package/src/lib/pending-agents.ts +0 -141
- package/src/lib/pg-seed.test.ts +0 -459
- package/src/lib/pg-seed.ts +0 -468
- package/src/lib/protocol-router-spawn.test.ts +0 -137
- package/src/lib/protocol-router-spawn.ts +0 -440
- package/src/lib/protocol-router.test.ts +0 -668
- package/src/lib/protocol-router.ts +0 -519
- package/src/lib/provider-adapters.test.ts +0 -480
- package/src/lib/provider-adapters.ts +0 -481
- package/src/lib/providers/__tests__/claude-sdk-events.test.ts +0 -519
- package/src/lib/providers/__tests__/claude-sdk-permissions.test.ts +0 -367
- package/src/lib/providers/__tests__/claude-sdk-stream.test.ts +0 -256
- package/src/lib/providers/__tests__/claude-sdk.test.ts +0 -352
- package/src/lib/providers/app-pty.ts +0 -227
- package/src/lib/providers/claude-code.test.ts +0 -311
- package/src/lib/providers/claude-code.ts +0 -302
- package/src/lib/providers/claude-sdk-events.ts +0 -301
- package/src/lib/providers/claude-sdk-permissions.ts +0 -217
- package/src/lib/providers/claude-sdk-remote-approval.ts +0 -316
- package/src/lib/providers/claude-sdk-stream.ts +0 -113
- package/src/lib/providers/claude-sdk.ts +0 -303
- package/src/lib/providers/codex.test.ts +0 -219
- package/src/lib/providers/codex.ts +0 -109
- package/src/lib/providers/registry.test.ts +0 -73
- package/src/lib/providers/registry.ts +0 -52
- package/src/lib/qa-parser.ts +0 -249
- package/src/lib/qa-runner.test.ts +0 -240
- package/src/lib/qa-runner.ts +0 -721
- package/src/lib/qa-state.test.ts +0 -319
- package/src/lib/qa-state.ts +0 -165
- package/src/lib/resolve-agent-cwd.ts +0 -77
- package/src/lib/routing-header.test.ts +0 -204
- package/src/lib/routing-header.ts +0 -133
- package/src/lib/run-spec.test.ts +0 -177
- package/src/lib/run-spec.ts +0 -178
- package/src/lib/runtime-events-thread.test.ts +0 -96
- package/src/lib/runtime-events.test.ts +0 -224
- package/src/lib/runtime-events.ts +0 -397
- package/src/lib/safe-pg-call.ts +0 -23
- package/src/lib/scheduler-daemon.test.ts +0 -1580
- package/src/lib/scheduler-daemon.ts +0 -1601
- package/src/lib/sdk-directory-types.ts +0 -334
- package/src/lib/service-registry.test.ts +0 -89
- package/src/lib/service-registry.ts +0 -107
- package/src/lib/session-backfill.ts +0 -235
- package/src/lib/session-capture.ts +0 -714
- package/src/lib/session-filewatch.ts +0 -155
- package/src/lib/spawn-command.test.ts +0 -431
- package/src/lib/spawn-command.ts +0 -267
- package/src/lib/system-detect.ts +0 -44
- package/src/lib/table-detect.ts +0 -46
- package/src/lib/target-resolver.test.ts +0 -1726
- package/src/lib/target-resolver.ts +0 -584
- package/src/lib/task-checkout-deps.test.ts +0 -92
- package/src/lib/task-close-merged.test.ts +0 -233
- package/src/lib/task-close-merged.ts +0 -231
- package/src/lib/task-service.test.ts +0 -1203
- package/src/lib/task-service.ts +0 -1865
- package/src/lib/team-auto-spawn.test.ts +0 -109
- package/src/lib/team-auto-spawn.ts +0 -190
- package/src/lib/team-chat.test.ts +0 -154
- package/src/lib/team-chat.ts +0 -95
- package/src/lib/team-lead-command.test.ts +0 -164
- package/src/lib/team-lead-command.ts +0 -144
- package/src/lib/team-manager.test.ts +0 -416
- package/src/lib/team-manager.ts +0 -708
- package/src/lib/template-service.test.ts +0 -245
- package/src/lib/template-service.ts +0 -227
- package/src/lib/term-format.ts +0 -106
- package/src/lib/test-db.ts +0 -191
- package/src/lib/test-setup.test.ts +0 -45
- package/src/lib/test-setup.ts +0 -389
- package/src/lib/tmux-alive.test.ts +0 -117
- package/src/lib/tmux-resolve.test.ts +0 -144
- package/src/lib/tmux-wrapper.ts +0 -112
- package/src/lib/tmux.test.ts +0 -135
- package/src/lib/tmux.ts +0 -621
- package/src/lib/transcript-normalizer.test.ts +0 -659
- package/src/lib/transcript-normalizer.ts +0 -548
- package/src/lib/transcript-types.ts +0 -146
- package/src/lib/transcript.test.ts +0 -98
- package/src/lib/transcript.ts +0 -128
- package/src/lib/tree-scanner.ts +0 -215
- package/src/lib/unified-log.test.ts +0 -819
- package/src/lib/unified-log.ts +0 -532
- package/src/lib/version.ts +0 -40
- package/src/lib/wish-resolve.test.ts +0 -108
- package/src/lib/wish-resolve.ts +0 -124
- package/src/lib/wish-state.test.ts +0 -747
- package/src/lib/wish-state.ts +0 -625
- package/src/lib/wish-sync.test.ts +0 -141
- package/src/lib/wish-sync.ts +0 -182
- package/src/lib/workspace.test.ts +0 -196
- package/src/lib/workspace.ts +0 -313
- package/src/services/__tests__/omni-bridge-pidfile.test.ts +0 -136
- package/src/services/__tests__/omni-bridge.test.ts +0 -1044
- package/src/services/__tests__/omni-queue.test.ts +0 -277
- package/src/services/__tests__/omni-turn.test.ts +0 -105
- package/src/services/bridge-session-store.ts +0 -180
- package/src/services/executor.ts +0 -60
- package/src/services/executors/__tests__/_sdk-mocks.ts +0 -142
- package/src/services/executors/__tests__/claude-sdk-resume.test.ts +0 -392
- package/src/services/executors/__tests__/claude-sdk.test.ts +0 -746
- package/src/services/executors/__tests__/sdk-session-capture.test.ts +0 -313
- package/src/services/executors/claude-code.test.ts +0 -160
- package/src/services/executors/claude-code.ts +0 -347
- package/src/services/executors/claude-sdk.ts +0 -635
- package/src/services/executors/sdk-session-capture.ts +0 -116
- package/src/services/executors/turn-based-prompt.ts +0 -28
- package/src/services/omni-bridge.ts +0 -1283
- package/src/services/omni-queue.ts +0 -296
- package/src/services/omni-turn.ts +0 -52
- package/src/templates/AGENTS.md +0 -27
- package/src/templates/HEARTBEAT.md +0 -17
- package/src/templates/SOUL.md +0 -5
- package/src/templates/genie-agents.md +0 -42
- package/src/templates/genie-heartbeat.md +0 -37
- package/src/templates/genie-soul.md +0 -122
- package/src/templates/index.ts +0 -324
- package/src/term-commands/__tests__/dispatch-slug.test.ts +0 -86
- package/src/term-commands/agent/answer.ts +0 -22
- package/src/term-commands/agent/brief.ts +0 -50
- package/src/term-commands/agent/directory.ts +0 -162
- package/src/term-commands/agent/inbox.ts +0 -127
- package/src/term-commands/agent/index.ts +0 -46
- package/src/term-commands/agent/kill.ts +0 -22
- package/src/term-commands/agent/list.ts +0 -25
- package/src/term-commands/agent/log.ts +0 -155
- package/src/term-commands/agent/register.ts +0 -125
- package/src/term-commands/agent/resume.ts +0 -23
- package/src/term-commands/agent/send.ts +0 -233
- package/src/term-commands/agent/show.ts +0 -81
- package/src/term-commands/agent/spawn.ts +0 -53
- package/src/term-commands/agent/stop.ts +0 -22
- package/src/term-commands/agents.test.ts +0 -183
- package/src/term-commands/agents.ts +0 -2243
- package/src/term-commands/app.ts +0 -81
- package/src/term-commands/approval.ts +0 -152
- package/src/term-commands/approve.test.ts +0 -159
- package/src/term-commands/approve.ts +0 -222
- package/src/term-commands/audit-events.ts +0 -637
- package/src/term-commands/board.ts +0 -843
- package/src/term-commands/brain.test.ts +0 -120
- package/src/term-commands/brain.ts +0 -587
- package/src/term-commands/brief.ts +0 -64
- package/src/term-commands/daemon.test.ts +0 -112
- package/src/term-commands/daemon.ts +0 -528
- package/src/term-commands/db-prune.test.ts +0 -122
- package/src/term-commands/db.ts +0 -324
- package/src/term-commands/dir.test.ts +0 -208
- package/src/term-commands/dir.ts +0 -848
- package/src/term-commands/dispatch.test.ts +0 -768
- package/src/term-commands/dispatch.ts +0 -745
- package/src/term-commands/events.test.ts +0 -250
- package/src/term-commands/events.ts +0 -118
- package/src/term-commands/exec/index.ts +0 -166
- package/src/term-commands/export.ts +0 -399
- package/src/term-commands/history.test.ts +0 -92
- package/src/term-commands/history.ts +0 -519
- package/src/term-commands/import.test.ts +0 -91
- package/src/term-commands/import.ts +0 -348
- package/src/term-commands/init-bootstrap.test.ts +0 -102
- package/src/term-commands/init-flow.test.ts +0 -81
- package/src/term-commands/init.test.ts +0 -65
- package/src/term-commands/init.ts +0 -311
- package/src/term-commands/log.test.ts +0 -323
- package/src/term-commands/log.ts +0 -400
- package/src/term-commands/metrics.ts +0 -229
- package/src/term-commands/msg.test.ts +0 -340
- package/src/term-commands/msg.ts +0 -737
- package/src/term-commands/notify.ts +0 -129
- package/src/term-commands/orchestrate.ts +0 -114
- package/src/term-commands/project.ts +0 -208
- package/src/term-commands/qa.test.ts +0 -59
- package/src/term-commands/qa.ts +0 -502
- package/src/term-commands/read.ts +0 -96
- package/src/term-commands/release.ts +0 -71
- package/src/term-commands/schedule.test.ts +0 -93
- package/src/term-commands/schedule.ts +0 -533
- package/src/term-commands/serve.test.ts +0 -35
- package/src/term-commands/serve.ts +0 -969
- package/src/term-commands/sessions.ts +0 -337
- package/src/term-commands/ship.test.ts +0 -383
- package/src/term-commands/shortcuts.ts +0 -329
- package/src/term-commands/state.test.ts +0 -355
- package/src/term-commands/state.ts +0 -483
- package/src/term-commands/tag.ts +0 -74
- package/src/term-commands/task/board.ts +0 -13
- package/src/term-commands/task/index.ts +0 -40
- package/src/term-commands/task/project.ts +0 -13
- package/src/term-commands/task/release-mgmt.ts +0 -69
- package/src/term-commands/task/reset.ts +0 -28
- package/src/term-commands/task/status.ts +0 -127
- package/src/term-commands/task/type.ts +0 -13
- package/src/term-commands/task.ts +0 -921
- package/src/term-commands/team/index.ts +0 -9
- package/src/term-commands/team.test.ts +0 -257
- package/src/term-commands/team.ts +0 -564
- package/src/term-commands/template.ts +0 -84
- package/src/term-commands/type.ts +0 -178
- package/src/tui/app.tsx +0 -70
- package/src/tui/components/ContextMenu.tsx +0 -133
- package/src/tui/components/Nav.tsx +0 -796
- package/src/tui/components/QuitDialog.tsx +0 -56
- package/src/tui/components/SystemStats.tsx +0 -166
- package/src/tui/components/TreeNode.tsx +0 -177
- package/src/tui/context-menu-items.ts +0 -65
- package/src/tui/db.ts +0 -76
- package/src/tui/diagnostics.ts +0 -255
- package/src/tui/index.ts +0 -20
- package/src/tui/initial-agent.test.ts +0 -76
- package/src/tui/initial-agent.ts +0 -22
- package/src/tui/render.tsx +0 -26
- package/src/tui/session-tree.test.ts +0 -603
- package/src/tui/session-tree.ts +0 -366
- package/src/tui/theme.ts +0 -50
- package/src/tui/tmux.ts +0 -147
- package/src/tui/tree.ts +0 -33
- package/src/tui/tsconfig.json +0 -9
- package/src/tui/types.ts +0 -71
- package/src/types/genie-config.ts +0 -127
- 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
|
+
]))
|