@su-record/vibe 2.16.4 โ 3.1.0
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/CLAUDE.md +8 -8
- package/README.en.md +46 -29
- package/README.md +41 -24
- package/agents/acceptance-tester.md +56 -0
- package/agents/architect.md +25 -67
- package/agents/build-error-resolver.md +28 -97
- package/agents/code-reviewer.md +89 -0
- package/agents/diagrammer.md +34 -169
- package/agents/documenter.md +43 -0
- package/agents/e2e-tester.md +46 -281
- package/agents/event/event-ops.md +54 -77
- package/agents/event/event-planner.md +63 -0
- package/agents/figma/figma-engineer.md +76 -0
- package/agents/implementer.md +26 -41
- package/agents/security-reviewer.md +56 -0
- package/agents/tester.md +37 -33
- package/agents/ui/design-reviewer.md +62 -0
- package/agents/ui/design-system-gen.md +63 -0
- package/dist/cli/commands/remove.d.ts.map +1 -1
- package/dist/cli/commands/remove.js +8 -10
- package/dist/cli/commands/remove.js.map +1 -1
- package/dist/cli/index.d.ts +0 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +0 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/llm/model-refresh.js +1 -1
- package/dist/cli/llm/model-refresh.js.map +1 -1
- package/dist/cli/postinstall/claude-agents.d.ts.map +1 -1
- package/dist/cli/postinstall/claude-agents.js +16 -77
- package/dist/cli/postinstall/claude-agents.js.map +1 -1
- package/dist/cli/postinstall/constants.d.ts.map +1 -1
- package/dist/cli/postinstall/constants.js +80 -296
- package/dist/cli/postinstall/constants.js.map +1 -1
- package/dist/cli/postinstall/cursor-agents.d.ts +5 -0
- package/dist/cli/postinstall/cursor-agents.d.ts.map +1 -1
- package/dist/cli/postinstall/cursor-agents.js +26 -68
- package/dist/cli/postinstall/cursor-agents.js.map +1 -1
- package/dist/cli/postinstall/cursor-skills.d.ts.map +1 -1
- package/dist/cli/postinstall/cursor-skills.js +26 -30
- package/dist/cli/postinstall/cursor-skills.js.map +1 -1
- package/dist/cli/postinstall/main.d.ts.map +1 -1
- package/dist/cli/postinstall/main.js +0 -2
- package/dist/cli/postinstall/main.js.map +1 -1
- package/dist/cli/setup/Provisioner.d.ts.map +1 -1
- package/dist/cli/setup/Provisioner.js +19 -21
- package/dist/cli/setup/Provisioner.js.map +1 -1
- package/dist/cli/utils.d.ts +4 -1
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js +4 -1
- package/dist/cli/utils.js.map +1 -1
- package/dist/infra/lib/FrameworkDetector.js +4 -4
- package/dist/infra/lib/FrameworkDetector.js.map +1 -1
- package/dist/infra/lib/OrchestrateWorkflow.js +2 -2
- package/dist/infra/lib/OrchestrateWorkflow.js.map +1 -1
- package/dist/infra/lib/browser/launch.js +1 -1
- package/dist/infra/lib/browser/launch.js.map +1 -1
- package/dist/infra/lib/browser/types.d.ts +1 -1
- package/dist/infra/lib/browser/types.js +1 -1
- package/dist/infra/lib/constants.d.ts +1 -1
- package/dist/infra/lib/constants.d.ts.map +1 -1
- package/dist/infra/lib/constants.js +4 -5
- package/dist/infra/lib/constants.js.map +1 -1
- package/dist/infra/lib/evolution/__tests__/integration.test.js +7 -7
- package/dist/infra/lib/evolution/__tests__/integration.test.js.map +1 -1
- package/dist/infra/lib/memory/index.d.ts +0 -2
- package/dist/infra/lib/memory/index.d.ts.map +1 -1
- package/dist/infra/lib/memory/index.js +0 -2
- package/dist/infra/lib/memory/index.js.map +1 -1
- package/dist/infra/lib/telemetry/SkillTelemetry.test.js +1 -1
- package/dist/infra/lib/telemetry/SkillTelemetry.test.js.map +1 -1
- package/dist/tools/index.d.ts +0 -4
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +0 -4
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/memory/autoSaveContext.d.ts +0 -1
- package/dist/tools/memory/autoSaveContext.d.ts.map +1 -1
- package/dist/tools/memory/autoSaveContext.js +13 -27
- package/dist/tools/memory/autoSaveContext.js.map +1 -1
- package/hooks/scripts/__tests__/.vibe/command-log.txt +3 -78
- package/hooks/scripts/__tests__/.vibe/memories/memories.db +0 -0
- package/hooks/scripts/__tests__/.vibe/memories/memories.db-shm +0 -0
- package/hooks/scripts/__tests__/.vibe/memories/memories.db-wal +0 -0
- package/hooks/scripts/__tests__/clone-behaviors.test.js +64 -0
- package/hooks/scripts/__tests__/clone-merge-responsive.test.js +106 -0
- package/hooks/scripts/__tests__/code-check-detectors.test.js +2 -2
- package/hooks/scripts/__tests__/run-ledger.test.js +1 -1
- package/hooks/scripts/__tests__/scope-from-spec.test.js +12 -12
- package/hooks/scripts/__tests__/step-counter.test.js +1 -1
- package/hooks/scripts/clone-extract.js +242 -28
- package/hooks/scripts/clone-merge-responsive.js +184 -0
- package/hooks/scripts/clone-spec.js +33 -8
- package/hooks/scripts/clone-validate.js +15 -9
- package/hooks/scripts/code-check.js +16 -203
- package/hooks/scripts/context-save.js +0 -11
- package/hooks/scripts/lib/scope-from-spec.js +9 -6
- package/hooks/scripts/post-edit-dispatcher.js +1 -1
- package/hooks/scripts/prompt-dispatcher.js +7 -18
- package/hooks/scripts/session-start.js +25 -35
- package/package.json +6 -5
- package/skills/agents-md/SKILL.md +62 -15
- package/skills/arch-guard/SKILL.md +1 -1
- package/skills/brand-assets/SKILL.md +2 -2
- package/skills/capability-loop/SKILL.md +1 -1
- package/skills/chub-usage/SKILL.md +1 -1
- package/skills/clone/SKILL.md +132 -55
- package/skills/commerce-patterns/SKILL.md +2 -2
- package/skills/commit-push-pr/SKILL.md +0 -1
- package/skills/context7-usage/SKILL.md +1 -1
- package/skills/design-refine/SKILL.md +140 -0
- package/skills/{design-polish โ design-refine}/templates/polish-report.md +1 -1
- package/skills/{design-normalize โ design-refine}/templates/token-audit.md +3 -3
- package/skills/design-review/SKILL.md +143 -0
- package/skills/{design-audit โ design-review}/agents/a11y-auditor.md +1 -1
- package/skills/{design-audit โ design-review}/agents/performance-auditor.md +1 -1
- package/skills/{design-audit โ design-review}/agents/responsive-auditor.md +1 -1
- package/skills/{design-audit โ design-review}/agents/slop-detector.md +1 -1
- package/skills/{design-audit โ design-review}/frameworks/core-web-vitals.md +1 -1
- package/skills/{design-audit โ design-review}/frameworks/wcag-checklist.md +1 -1
- package/skills/{design-audit โ design-review}/orchestrator.md +3 -3
- package/skills/{design-critique โ design-review}/templates/critique-report.md +3 -3
- package/skills/{design-audit โ design-review}/templates/report.md +3 -3
- package/skills/design-teach/SKILL.md +11 -11
- package/skills/docs/SKILL.md +14 -16
- package/skills/e2e-commerce/SKILL.md +1 -1
- package/skills/event-comms/SKILL.md +1 -1
- package/skills/event-ops/SKILL.md +2 -2
- package/skills/event-planning/SKILL.md +1 -1
- package/skills/exec-plan/SKILL.md +2 -2
- package/skills/figma/SKILL.md +240 -148
- package/skills/figma/rubrics/css-mapping.md +125 -0
- package/skills/git-worktree/SKILL.md +1 -1
- package/skills/handoff/SKILL.md +1 -1
- package/skills/parallel-research/SKILL.md +14 -28
- package/skills/priority-todos/SKILL.md +1 -1
- package/skills/regress/SKILL.md +11 -0
- package/skills/restraint/SKILL.md +72 -0
- package/skills/seo-checklist/SKILL.md +2 -2
- package/skills/spec/SKILL.md +65 -836
- package/skills/test/SKILL.md +3 -3
- package/skills/tool-fallback/SKILL.md +2 -2
- package/skills/vercel-react-best-practices/SKILL.md +1 -1
- package/skills/vibe/SKILL.md +20 -35
- package/skills/vibe.analyze/SKILL.md +7 -9
- package/skills/vibe.clone/SKILL.md +39 -19
- package/skills/vibe.docs/SKILL.md +1 -1
- package/skills/vibe.event/SKILL.md +27 -27
- package/skills/vibe.figma/SKILL.md +14 -18
- package/skills/vibe.harness/SKILL.md +5 -5
- package/skills/vibe.reason/SKILL.md +0 -2
- package/skills/vibe.review/SKILL.md +45 -49
- package/skills/vibe.run/SKILL.md +2 -5
- package/skills/vibe.run/references/parallel-agents.md +33 -98
- package/skills/vibe.spec/SKILL.md +38 -535
- package/skills/vibe.utils/SKILL.md +3 -3
- package/skills/vibe.verify/SKILL.md +70 -542
- package/skills/video-production/SKILL.md +1 -1
- package/vibe/rules/orchestrator-contract.md +5 -4
- package/vibe/rules/quality/performance.md +1 -1
- package/vibe/templates/claudemd-template.md +1 -1
- package/vibe/templates/spec-template.md +35 -185
- package/agents/architect-low.md +0 -41
- package/agents/architect-medium.md +0 -59
- package/agents/compounder.md +0 -265
- package/agents/docs/api-documenter.md +0 -99
- package/agents/docs/changelog-writer.md +0 -93
- package/agents/event/event-comms.md +0 -78
- package/agents/event/event-content.md +0 -68
- package/agents/event/event-image.md +0 -95
- package/agents/event/event-scheduler.md +0 -69
- package/agents/event/event-speaker.md +0 -86
- package/agents/explorer-low.md +0 -42
- package/agents/explorer-medium.md +0 -59
- package/agents/explorer.md +0 -48
- package/agents/figma/figma-analyst.md +0 -56
- package/agents/figma/figma-architect.md +0 -116
- package/agents/figma/figma-auditor.md +0 -86
- package/agents/figma/figma-builder.md +0 -104
- package/agents/implementer-low.md +0 -43
- package/agents/implementer-medium.md +0 -52
- package/agents/junior-mentor.md +0 -141
- package/agents/planning/requirements-analyst.md +0 -84
- package/agents/planning/ux-advisor.md +0 -83
- package/agents/qa/acceptance-tester.md +0 -86
- package/agents/qa/edge-case-finder.md +0 -93
- package/agents/qa/qa-coordinator.md +0 -131
- package/agents/refactor-cleaner.md +0 -143
- package/agents/research/best-practices.md +0 -199
- package/agents/research/codebase-patterns.md +0 -157
- package/agents/research/framework-docs.md +0 -188
- package/agents/research/security-advisory.md +0 -213
- package/agents/review/architecture-reviewer.md +0 -107
- package/agents/review/complexity-reviewer.md +0 -116
- package/agents/review/data-integrity-reviewer.md +0 -88
- package/agents/review/git-history-reviewer.md +0 -103
- package/agents/review/performance-reviewer.md +0 -86
- package/agents/review/python-reviewer.md +0 -150
- package/agents/review/rails-reviewer.md +0 -139
- package/agents/review/react-reviewer.md +0 -144
- package/agents/review/security-reviewer.md +0 -80
- package/agents/review/simplicity-reviewer.md +0 -140
- package/agents/review/test-coverage-reviewer.md +0 -116
- package/agents/review/typescript-reviewer.md +0 -127
- package/agents/searcher.md +0 -54
- package/agents/simplifier.md +0 -124
- package/agents/teams/debug-team.md +0 -74
- package/agents/teams/dev-team.md +0 -92
- package/agents/teams/docs-team.md +0 -84
- package/agents/teams/figma-team.md +0 -89
- package/agents/teams/fullstack-team.md +0 -87
- package/agents/teams/lite-team.md +0 -73
- package/agents/teams/migration-team.md +0 -82
- package/agents/teams/refactor-team.md +0 -98
- package/agents/teams/research-team.md +0 -90
- package/agents/teams/review-debate-team.md +0 -129
- package/agents/teams/security-team.md +0 -85
- package/agents/ui/ui-a11y-auditor.md +0 -93
- package/agents/ui/ui-antipattern-detector.md +0 -102
- package/agents/ui/ui-dataviz-advisor.md +0 -69
- package/agents/ui/ui-design-system-gen.md +0 -57
- package/agents/ui/ui-industry-analyzer.md +0 -49
- package/agents/ui/ui-layout-architect.md +0 -65
- package/agents/ui/ui-stack-implementer.md +0 -68
- package/agents/ui/ux-compliance-reviewer.md +0 -81
- package/agents/ui-previewer.md +0 -262
- package/dist/cli/llm/gemini-commands.d.ts +0 -25
- package/dist/cli/llm/gemini-commands.d.ts.map +0 -1
- package/dist/cli/llm/gemini-commands.js +0 -143
- package/dist/cli/llm/gemini-commands.js.map +0 -1
- package/dist/cli/postinstall/codex-agents.d.ts +0 -24
- package/dist/cli/postinstall/codex-agents.d.ts.map +0 -1
- package/dist/cli/postinstall/codex-agents.js +0 -114
- package/dist/cli/postinstall/codex-agents.js.map +0 -1
- package/dist/cli/postinstall/codex-instruction.d.ts +0 -10
- package/dist/cli/postinstall/codex-instruction.d.ts.map +0 -1
- package/dist/cli/postinstall/codex-instruction.js +0 -56
- package/dist/cli/postinstall/codex-instruction.js.map +0 -1
- package/dist/cli/postinstall/gemini-agents.d.ts +0 -12
- package/dist/cli/postinstall/gemini-agents.d.ts.map +0 -1
- package/dist/cli/postinstall/gemini-agents.js +0 -80
- package/dist/cli/postinstall/gemini-agents.js.map +0 -1
- package/dist/cli/postinstall/gemini-instruction.d.ts +0 -10
- package/dist/cli/postinstall/gemini-instruction.d.ts.map +0 -1
- package/dist/cli/postinstall/gemini-instruction.js +0 -59
- package/dist/cli/postinstall/gemini-instruction.js.map +0 -1
- package/dist/infra/lib/ContextCompressor.d.ts +0 -104
- package/dist/infra/lib/ContextCompressor.d.ts.map +0 -1
- package/dist/infra/lib/ContextCompressor.js +0 -297
- package/dist/infra/lib/ContextCompressor.js.map +0 -1
- package/dist/infra/lib/ContextCompressor.test.d.ts +0 -2
- package/dist/infra/lib/ContextCompressor.test.d.ts.map +0 -1
- package/dist/infra/lib/ContextCompressor.test.js +0 -25
- package/dist/infra/lib/ContextCompressor.test.js.map +0 -1
- package/dist/infra/lib/ProgressTracker.d.ts +0 -73
- package/dist/infra/lib/ProgressTracker.d.ts.map +0 -1
- package/dist/infra/lib/ProgressTracker.js +0 -267
- package/dist/infra/lib/ProgressTracker.js.map +0 -1
- package/dist/infra/lib/TokenBudgetTracker.d.ts +0 -68
- package/dist/infra/lib/TokenBudgetTracker.d.ts.map +0 -1
- package/dist/infra/lib/TokenBudgetTracker.js +0 -191
- package/dist/infra/lib/TokenBudgetTracker.js.map +0 -1
- package/dist/infra/lib/autonomy/AuditStore.d.ts +0 -63
- package/dist/infra/lib/autonomy/AuditStore.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/AuditStore.js +0 -185
- package/dist/infra/lib/autonomy/AuditStore.js.map +0 -1
- package/dist/infra/lib/autonomy/AutonomyConfig.d.ts +0 -84
- package/dist/infra/lib/autonomy/AutonomyConfig.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/AutonomyConfig.js +0 -49
- package/dist/infra/lib/autonomy/AutonomyConfig.js.map +0 -1
- package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts +0 -78
- package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/AutonomyOrchestrator.js +0 -246
- package/dist/infra/lib/autonomy/AutonomyOrchestrator.js.map +0 -1
- package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts +0 -36
- package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/BackgroundMonitor.js +0 -138
- package/dist/infra/lib/autonomy/BackgroundMonitor.js.map +0 -1
- package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts +0 -56
- package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/CollaborationProtocol.js +0 -122
- package/dist/infra/lib/autonomy/CollaborationProtocol.js.map +0 -1
- package/dist/infra/lib/autonomy/ConfirmationManager.d.ts +0 -42
- package/dist/infra/lib/autonomy/ConfirmationManager.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/ConfirmationManager.js +0 -200
- package/dist/infra/lib/autonomy/ConfirmationManager.js.map +0 -1
- package/dist/infra/lib/autonomy/ConfirmationStore.d.ts +0 -55
- package/dist/infra/lib/autonomy/ConfirmationStore.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/ConfirmationStore.js +0 -130
- package/dist/infra/lib/autonomy/ConfirmationStore.js.map +0 -1
- package/dist/infra/lib/autonomy/EventBus.d.ts +0 -20
- package/dist/infra/lib/autonomy/EventBus.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/EventBus.js +0 -119
- package/dist/infra/lib/autonomy/EventBus.js.map +0 -1
- package/dist/infra/lib/autonomy/EventOutbox.d.ts +0 -32
- package/dist/infra/lib/autonomy/EventOutbox.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/EventOutbox.js +0 -152
- package/dist/infra/lib/autonomy/EventOutbox.js.map +0 -1
- package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts +0 -24
- package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/NotificationDispatcher.js +0 -112
- package/dist/infra/lib/autonomy/NotificationDispatcher.js.map +0 -1
- package/dist/infra/lib/autonomy/PolicyEngine.d.ts +0 -76
- package/dist/infra/lib/autonomy/PolicyEngine.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/PolicyEngine.js +0 -208
- package/dist/infra/lib/autonomy/PolicyEngine.js.map +0 -1
- package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts +0 -61
- package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/ProactiveAnalyzer.js +0 -236
- package/dist/infra/lib/autonomy/ProactiveAnalyzer.js.map +0 -1
- package/dist/infra/lib/autonomy/RiskClassifier.d.ts +0 -35
- package/dist/infra/lib/autonomy/RiskClassifier.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/RiskClassifier.js +0 -147
- package/dist/infra/lib/autonomy/RiskClassifier.js.map +0 -1
- package/dist/infra/lib/autonomy/SecuritySentinel.d.ts +0 -51
- package/dist/infra/lib/autonomy/SecuritySentinel.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/SecuritySentinel.js +0 -162
- package/dist/infra/lib/autonomy/SecuritySentinel.js.map +0 -1
- package/dist/infra/lib/autonomy/SuggestionStore.d.ts +0 -54
- package/dist/infra/lib/autonomy/SuggestionStore.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/SuggestionStore.js +0 -144
- package/dist/infra/lib/autonomy/SuggestionStore.js.map +0 -1
- package/dist/infra/lib/autonomy/TaskDecomposer.d.ts +0 -38
- package/dist/infra/lib/autonomy/TaskDecomposer.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/TaskDecomposer.js +0 -175
- package/dist/infra/lib/autonomy/TaskDecomposer.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/audit-store.test.js +0 -198
- package/dist/infra/lib/autonomy/__tests__/audit-store.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/event-bus.test.js +0 -225
- package/dist/infra/lib/autonomy/__tests__/event-bus.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/event-core.test.js +0 -194
- package/dist/infra/lib/autonomy/__tests__/event-core.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/governance.test.js +0 -540
- package/dist/infra/lib/autonomy/__tests__/governance.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/integration.test.js +0 -480
- package/dist/infra/lib/autonomy/__tests__/integration.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/proactive.test.js +0 -410
- package/dist/infra/lib/autonomy/__tests__/proactive.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/sentinel.test.js +0 -486
- package/dist/infra/lib/autonomy/__tests__/sentinel.test.js.map +0 -1
- package/dist/infra/lib/autonomy/index.d.ts +0 -18
- package/dist/infra/lib/autonomy/index.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/index.js +0 -22
- package/dist/infra/lib/autonomy/index.js.map +0 -1
- package/dist/infra/lib/autonomy/schemas.d.ts +0 -317
- package/dist/infra/lib/autonomy/schemas.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/schemas.js +0 -90
- package/dist/infra/lib/autonomy/schemas.js.map +0 -1
- package/dist/infra/lib/claude/index.d.ts +0 -5
- package/dist/infra/lib/claude/index.d.ts.map +0 -1
- package/dist/infra/lib/claude/index.js +0 -5
- package/dist/infra/lib/claude/index.js.map +0 -1
- package/dist/infra/lib/claude/storage.d.ts +0 -12
- package/dist/infra/lib/claude/storage.d.ts.map +0 -1
- package/dist/infra/lib/claude/storage.js +0 -54
- package/dist/infra/lib/claude/storage.js.map +0 -1
- package/dist/infra/lib/gemini/auth.d.ts +0 -18
- package/dist/infra/lib/gemini/auth.d.ts.map +0 -1
- package/dist/infra/lib/gemini/auth.js +0 -32
- package/dist/infra/lib/gemini/auth.js.map +0 -1
- package/dist/infra/lib/gemini/capabilities.d.ts +0 -28
- package/dist/infra/lib/gemini/capabilities.d.ts.map +0 -1
- package/dist/infra/lib/gemini/capabilities.js +0 -178
- package/dist/infra/lib/gemini/capabilities.js.map +0 -1
- package/dist/infra/lib/gemini/chat.d.ts +0 -35
- package/dist/infra/lib/gemini/chat.d.ts.map +0 -1
- package/dist/infra/lib/gemini/chat.js +0 -161
- package/dist/infra/lib/gemini/chat.js.map +0 -1
- package/dist/infra/lib/gemini/completion.d.ts +0 -12
- package/dist/infra/lib/gemini/completion.d.ts.map +0 -1
- package/dist/infra/lib/gemini/completion.js +0 -13
- package/dist/infra/lib/gemini/completion.js.map +0 -1
- package/dist/infra/lib/gemini/constants.d.ts +0 -8
- package/dist/infra/lib/gemini/constants.d.ts.map +0 -1
- package/dist/infra/lib/gemini/constants.js +0 -11
- package/dist/infra/lib/gemini/constants.js.map +0 -1
- package/dist/infra/lib/gemini/index.d.ts +0 -13
- package/dist/infra/lib/gemini/index.d.ts.map +0 -1
- package/dist/infra/lib/gemini/index.js +0 -12
- package/dist/infra/lib/gemini/index.js.map +0 -1
- package/dist/infra/lib/gemini/models.d.ts +0 -11
- package/dist/infra/lib/gemini/models.d.ts.map +0 -1
- package/dist/infra/lib/gemini/models.js +0 -38
- package/dist/infra/lib/gemini/models.js.map +0 -1
- package/dist/infra/lib/gemini/orchestration.d.ts +0 -33
- package/dist/infra/lib/gemini/orchestration.d.ts.map +0 -1
- package/dist/infra/lib/gemini/orchestration.js +0 -62
- package/dist/infra/lib/gemini/orchestration.js.map +0 -1
- package/dist/infra/lib/gemini/types.d.ts +0 -115
- package/dist/infra/lib/gemini/types.d.ts.map +0 -1
- package/dist/infra/lib/gemini/types.js +0 -5
- package/dist/infra/lib/gemini/types.js.map +0 -1
- package/dist/infra/orchestrator/AgentAnnouncer.d.ts +0 -64
- package/dist/infra/orchestrator/AgentAnnouncer.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentAnnouncer.js +0 -127
- package/dist/infra/orchestrator/AgentAnnouncer.js.map +0 -1
- package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts +0 -5
- package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentAnnouncer.test.js +0 -119
- package/dist/infra/orchestrator/AgentAnnouncer.test.js.map +0 -1
- package/dist/infra/orchestrator/AgentExecutor.d.ts +0 -22
- package/dist/infra/orchestrator/AgentExecutor.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentExecutor.js +0 -272
- package/dist/infra/orchestrator/AgentExecutor.js.map +0 -1
- package/dist/infra/orchestrator/AgentManager.d.ts +0 -72
- package/dist/infra/orchestrator/AgentManager.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentManager.js +0 -183
- package/dist/infra/orchestrator/AgentManager.js.map +0 -1
- package/dist/infra/orchestrator/AgentManifestCache.d.ts +0 -54
- package/dist/infra/orchestrator/AgentManifestCache.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentManifestCache.js +0 -191
- package/dist/infra/orchestrator/AgentManifestCache.js.map +0 -1
- package/dist/infra/orchestrator/AgentRegistry.d.ts +0 -76
- package/dist/infra/orchestrator/AgentRegistry.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentRegistry.js +0 -217
- package/dist/infra/orchestrator/AgentRegistry.js.map +0 -1
- package/dist/infra/orchestrator/AgentRegistry.test.d.ts +0 -5
- package/dist/infra/orchestrator/AgentRegistry.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentRegistry.test.js +0 -122
- package/dist/infra/orchestrator/AgentRegistry.test.js.map +0 -1
- package/dist/infra/orchestrator/BackgroundManager.d.ts +0 -128
- package/dist/infra/orchestrator/BackgroundManager.d.ts.map +0 -1
- package/dist/infra/orchestrator/BackgroundManager.js +0 -620
- package/dist/infra/orchestrator/BackgroundManager.js.map +0 -1
- package/dist/infra/orchestrator/BackgroundManager.test.d.ts +0 -6
- package/dist/infra/orchestrator/BackgroundManager.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/BackgroundManager.test.js +0 -162
- package/dist/infra/orchestrator/BackgroundManager.test.js.map +0 -1
- package/dist/infra/orchestrator/CheckpointManager.d.ts +0 -54
- package/dist/infra/orchestrator/CheckpointManager.d.ts.map +0 -1
- package/dist/infra/orchestrator/CheckpointManager.js +0 -121
- package/dist/infra/orchestrator/CheckpointManager.js.map +0 -1
- package/dist/infra/orchestrator/CodexAgentRuntime.d.ts +0 -12
- package/dist/infra/orchestrator/CodexAgentRuntime.d.ts.map +0 -1
- package/dist/infra/orchestrator/CodexAgentRuntime.js +0 -94
- package/dist/infra/orchestrator/CodexAgentRuntime.js.map +0 -1
- package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts +0 -2
- package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/CodexAgentRuntime.test.js +0 -37
- package/dist/infra/orchestrator/CodexAgentRuntime.test.js.map +0 -1
- package/dist/infra/orchestrator/LLMCluster.d.ts +0 -82
- package/dist/infra/orchestrator/LLMCluster.d.ts.map +0 -1
- package/dist/infra/orchestrator/LLMCluster.js +0 -146
- package/dist/infra/orchestrator/LLMCluster.js.map +0 -1
- package/dist/infra/orchestrator/MultiLlmResearch.d.ts +0 -31
- package/dist/infra/orchestrator/MultiLlmResearch.d.ts.map +0 -1
- package/dist/infra/orchestrator/MultiLlmResearch.js +0 -160
- package/dist/infra/orchestrator/MultiLlmResearch.js.map +0 -1
- package/dist/infra/orchestrator/PhasePipeline.d.ts +0 -122
- package/dist/infra/orchestrator/PhasePipeline.d.ts.map +0 -1
- package/dist/infra/orchestrator/PhasePipeline.js +0 -385
- package/dist/infra/orchestrator/PhasePipeline.js.map +0 -1
- package/dist/infra/orchestrator/PhaseResultStore.d.ts +0 -39
- package/dist/infra/orchestrator/PhaseResultStore.d.ts.map +0 -1
- package/dist/infra/orchestrator/PhaseResultStore.js +0 -151
- package/dist/infra/orchestrator/PhaseResultStore.js.map +0 -1
- package/dist/infra/orchestrator/SessionStore.d.ts +0 -40
- package/dist/infra/orchestrator/SessionStore.d.ts.map +0 -1
- package/dist/infra/orchestrator/SessionStore.js +0 -116
- package/dist/infra/orchestrator/SessionStore.js.map +0 -1
- package/dist/infra/orchestrator/SmartRouter.d.ts +0 -90
- package/dist/infra/orchestrator/SmartRouter.d.ts.map +0 -1
- package/dist/infra/orchestrator/SmartRouter.js +0 -277
- package/dist/infra/orchestrator/SmartRouter.js.map +0 -1
- package/dist/infra/orchestrator/SmartRouter.test.d.ts +0 -5
- package/dist/infra/orchestrator/SmartRouter.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/SmartRouter.test.js +0 -484
- package/dist/infra/orchestrator/SmartRouter.test.js.map +0 -1
- package/dist/infra/orchestrator/SwarmOrchestrator.d.ts +0 -143
- package/dist/infra/orchestrator/SwarmOrchestrator.d.ts.map +0 -1
- package/dist/infra/orchestrator/SwarmOrchestrator.js +0 -378
- package/dist/infra/orchestrator/SwarmOrchestrator.js.map +0 -1
- package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts +0 -5
- package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/SwarmOrchestrator.test.js +0 -95
- package/dist/infra/orchestrator/SwarmOrchestrator.test.js.map +0 -1
- package/dist/infra/orchestrator/agentDiscovery.d.ts +0 -26
- package/dist/infra/orchestrator/agentDiscovery.d.ts.map +0 -1
- package/dist/infra/orchestrator/agentDiscovery.js +0 -175
- package/dist/infra/orchestrator/agentDiscovery.js.map +0 -1
- package/dist/infra/orchestrator/backgroundAgent.d.ts +0 -9
- package/dist/infra/orchestrator/backgroundAgent.d.ts.map +0 -1
- package/dist/infra/orchestrator/backgroundAgent.js +0 -10
- package/dist/infra/orchestrator/backgroundAgent.js.map +0 -1
- package/dist/infra/orchestrator/index.d.ts +0 -207
- package/dist/infra/orchestrator/index.d.ts.map +0 -1
- package/dist/infra/orchestrator/index.js +0 -362
- package/dist/infra/orchestrator/index.js.map +0 -1
- package/dist/infra/orchestrator/orchestrator.d.ts +0 -60
- package/dist/infra/orchestrator/orchestrator.d.ts.map +0 -1
- package/dist/infra/orchestrator/orchestrator.js +0 -214
- package/dist/infra/orchestrator/orchestrator.js.map +0 -1
- package/dist/infra/orchestrator/parallelResearch.d.ts +0 -27
- package/dist/infra/orchestrator/parallelResearch.d.ts.map +0 -1
- package/dist/infra/orchestrator/parallelResearch.js +0 -285
- package/dist/infra/orchestrator/parallelResearch.js.map +0 -1
- package/dist/infra/orchestrator/types.d.ts +0 -205
- package/dist/infra/orchestrator/types.d.ts.map +0 -1
- package/dist/infra/orchestrator/types.js +0 -87
- package/dist/infra/orchestrator/types.js.map +0 -1
- package/dist/infra/orchestrator/types.test.d.ts +0 -2
- package/dist/infra/orchestrator/types.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/types.test.js +0 -57
- package/dist/infra/orchestrator/types.test.js.map +0 -1
- package/dist/tools/semantic/analyzeDependencyGraph.d.ts +0 -12
- package/dist/tools/semantic/analyzeDependencyGraph.d.ts.map +0 -1
- package/dist/tools/semantic/analyzeDependencyGraph.js +0 -359
- package/dist/tools/semantic/analyzeDependencyGraph.js.map +0 -1
- package/dist/tools/semantic/astGrep.d.ts +0 -25
- package/dist/tools/semantic/astGrep.d.ts.map +0 -1
- package/dist/tools/semantic/astGrep.js +0 -324
- package/dist/tools/semantic/astGrep.js.map +0 -1
- package/dist/tools/semantic/astGrep.test.d.ts +0 -2
- package/dist/tools/semantic/astGrep.test.d.ts.map +0 -1
- package/dist/tools/semantic/astGrep.test.js +0 -74
- package/dist/tools/semantic/astGrep.test.js.map +0 -1
- package/dist/tools/semantic/findReferences.d.ts +0 -9
- package/dist/tools/semantic/findReferences.d.ts.map +0 -1
- package/dist/tools/semantic/findReferences.js +0 -200
- package/dist/tools/semantic/findReferences.js.map +0 -1
- package/dist/tools/semantic/findSymbol.d.ts +0 -8
- package/dist/tools/semantic/findSymbol.d.ts.map +0 -1
- package/dist/tools/semantic/findSymbol.js +0 -204
- package/dist/tools/semantic/findSymbol.js.map +0 -1
- package/dist/tools/semantic/index.d.ts +0 -9
- package/dist/tools/semantic/index.d.ts.map +0 -1
- package/dist/tools/semantic/index.js +0 -11
- package/dist/tools/semantic/index.js.map +0 -1
- package/dist/tools/semantic/lsp.d.ts +0 -68
- package/dist/tools/semantic/lsp.d.ts.map +0 -1
- package/dist/tools/semantic/lsp.js +0 -561
- package/dist/tools/semantic/lsp.js.map +0 -1
- package/dist/tools/spec/e2eTestGenerator.d.ts +0 -61
- package/dist/tools/spec/e2eTestGenerator.d.ts.map +0 -1
- package/dist/tools/spec/e2eTestGenerator.js +0 -255
- package/dist/tools/spec/e2eTestGenerator.js.map +0 -1
- package/dist/tools/spec/specVersioning.d.ts +0 -76
- package/dist/tools/spec/specVersioning.d.ts.map +0 -1
- package/dist/tools/spec/specVersioning.js +0 -236
- package/dist/tools/spec/specVersioning.js.map +0 -1
- package/hooks/scripts/__tests__/keyword-detector.test.js +0 -242
- package/hooks/scripts/keyword-detector.js +0 -226
- package/skills/characterization-test/SKILL.md +0 -209
- package/skills/characterization-test/agents/behavior-capturer.md +0 -50
- package/skills/characterization-test/agents/coverage-checker.md +0 -54
- package/skills/characterization-test/agents/reporter.md +0 -50
- package/skills/characterization-test/agents/test-writer.md +0 -49
- package/skills/characterization-test/rubrics/coverage-criteria.md +0 -53
- package/skills/characterization-test/templates/test-template.ts +0 -101
- package/skills/claude-md-guide/SKILL.md +0 -353
- package/skills/claude-md-guide/rubrics/anti-patterns.md +0 -88
- package/skills/design-audit/SKILL.md +0 -154
- package/skills/design-critique/SKILL.md +0 -140
- package/skills/design-distill/SKILL.md +0 -131
- package/skills/design-normalize/SKILL.md +0 -135
- package/skills/design-polish/SKILL.md +0 -132
- package/skills/figma-convert/SKILL.md +0 -236
- package/skills/figma-extract/SKILL.md +0 -242
- package/skills/interview/SKILL.md +0 -358
- package/skills/interview/checklists/api.md +0 -101
- package/skills/interview/checklists/feature.md +0 -88
- package/skills/interview/checklists/library.md +0 -95
- package/skills/interview/checklists/mobile.md +0 -89
- package/skills/interview/checklists/webapp.md +0 -97
- package/skills/interview/checklists/website.md +0 -99
- package/skills/plan/SKILL.md +0 -254
- package/skills/rob-pike/SKILL.md +0 -66
- package/skills/spec/references/askuser-examples.md +0 -57
- package/skills/spec/references/example-session.md +0 -87
- package/skills/spec/references/templates.md +0 -194
- package/skills/spec-review/SKILL.md +0 -725
- package/skills/systematic-debugging/SKILL.md +0 -142
- package/skills/techdebt/SKILL.md +0 -126
- package/skills/techdebt/agents/analyzer.md +0 -50
- package/skills/techdebt/agents/fixer.md +0 -41
- package/skills/techdebt/agents/reviewer.md +0 -47
- package/skills/techdebt/agents/scanner.md +0 -44
- package/skills/techdebt/orchestrator.md +0 -72
- package/skills/techdebt/rubrics/severity.md +0 -51
- package/skills/techdebt/scripts/scan.js +0 -90
- package/skills/techdebt/templates/report.md +0 -86
- package/skills/typescript-advanced-types/SKILL.md +0 -68
- package/skills/typescript-advanced-types/rubrics/type-patterns.md +0 -109
- package/skills/yagni-ladder/SKILL.md +0 -90
- /package/skills/{claude-md-guide โ agents-md}/templates/claude-md.md +0 -0
- /package/skills/{design-polish โ design-refine}/rubrics/polish-checklist.md +0 -0
- /package/skills/{design-normalize โ design-refine}/rubrics/token-naming.md +0 -0
- /package/skills/{design-distill โ design-refine}/templates/design-system.md +0 -0
- /package/skills/{design-audit โ design-review}/agents/scorer.md +0 -0
- /package/skills/{design-audit โ design-review}/rubrics/ai-slop-patterns.md +0 -0
- /package/skills/{design-audit โ design-review}/rubrics/scoring.md +0 -0
- /package/skills/{design-critique โ design-review}/rubrics/ux-heuristics.md +0 -0
- /package/skills/{figma-convert โ figma}/rubrics/conversion-rules.md +0 -0
- /package/skills/{figma-extract โ figma}/rubrics/image-rules.md +0 -0
- /package/skills/{figma-convert โ figma}/templates/component.md +0 -0
|
@@ -1,561 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LSP Tools - Language Server Protocol ๊ธฐ๋ฐ ์ฝ๋ ์ธํ
๋ฆฌ์ ์ค
|
|
3
|
-
*
|
|
4
|
-
* ์ง์ ๊ธฐ๋ฅ:
|
|
5
|
-
* - lsp_hover: ํ์
์ ๋ณด
|
|
6
|
-
* - lsp_goto_definition: ์ ์๋ก ์ด๋
|
|
7
|
-
* - lsp_find_references: ์ฐธ์กฐ ์ฐพ๊ธฐ
|
|
8
|
-
* - lsp_document_symbols: ํ์ผ ์ฌ๋ณผ ๋ชฉ๋ก
|
|
9
|
-
* - lsp_workspace_symbols: ์ํฌ์คํ์ด์ค ์ฌ๋ณผ ๊ฒ์
|
|
10
|
-
* - lsp_diagnostics: ์๋ฌ/๊ฒฝ๊ณ
|
|
11
|
-
* - lsp_rename: ๋ฆฌ๋ค์ ํ๋ฆฌ๋ทฐ
|
|
12
|
-
* - lsp_code_actions: ๊ฐ๋ฅํ ๋ฆฌํฉํ ๋ง
|
|
13
|
-
*
|
|
14
|
-
* ํ์ฌ๋ ts-morph ๊ธฐ๋ฐ์ผ๋ก TypeScript/JavaScript ์ง์
|
|
15
|
-
*/
|
|
16
|
-
import * as path from 'path';
|
|
17
|
-
import * as fs from 'fs';
|
|
18
|
-
import { ProjectCache } from '../../infra/lib/ProjectCache.js';
|
|
19
|
-
async function loadTsMorph() {
|
|
20
|
-
return import('ts-morph');
|
|
21
|
-
}
|
|
22
|
-
// Tool Definitions
|
|
23
|
-
export const lspHoverDefinition = {
|
|
24
|
-
name: 'lsp_hover',
|
|
25
|
-
description: 'Get type information at a specific position in a file',
|
|
26
|
-
inputSchema: {
|
|
27
|
-
type: 'object',
|
|
28
|
-
properties: {
|
|
29
|
-
file: { type: 'string', description: 'File path' },
|
|
30
|
-
line: { type: 'number', description: 'Line number (1-based)' },
|
|
31
|
-
column: { type: 'number', description: 'Column number (1-based)' },
|
|
32
|
-
},
|
|
33
|
-
required: ['file', 'line', 'column']
|
|
34
|
-
},
|
|
35
|
-
annotations: { title: 'LSP Hover', audience: ['user', 'assistant'], readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
36
|
-
};
|
|
37
|
-
export const lspGotoDefinitionDefinition = {
|
|
38
|
-
name: 'lsp_goto_definition',
|
|
39
|
-
description: 'Find the definition location of a symbol',
|
|
40
|
-
inputSchema: {
|
|
41
|
-
type: 'object',
|
|
42
|
-
properties: {
|
|
43
|
-
file: { type: 'string', description: 'File path' },
|
|
44
|
-
line: { type: 'number', description: 'Line number (1-based)' },
|
|
45
|
-
column: { type: 'number', description: 'Column number (1-based)' },
|
|
46
|
-
},
|
|
47
|
-
required: ['file', 'line', 'column']
|
|
48
|
-
},
|
|
49
|
-
annotations: { title: 'LSP Goto Definition', audience: ['user', 'assistant'], readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
50
|
-
};
|
|
51
|
-
export const lspFindReferencesDefinition = {
|
|
52
|
-
name: 'lsp_find_references',
|
|
53
|
-
description: 'Find all references to a symbol',
|
|
54
|
-
inputSchema: {
|
|
55
|
-
type: 'object',
|
|
56
|
-
properties: {
|
|
57
|
-
file: { type: 'string', description: 'File path' },
|
|
58
|
-
line: { type: 'number', description: 'Line number (1-based)' },
|
|
59
|
-
column: { type: 'number', description: 'Column number (1-based)' },
|
|
60
|
-
includeDeclaration: { type: 'boolean', description: 'Include the declaration itself (default: true)' },
|
|
61
|
-
},
|
|
62
|
-
required: ['file', 'line', 'column']
|
|
63
|
-
},
|
|
64
|
-
annotations: { title: 'LSP Find References', audience: ['user', 'assistant'], readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
65
|
-
};
|
|
66
|
-
export const lspDocumentSymbolsDefinition = {
|
|
67
|
-
name: 'lsp_document_symbols',
|
|
68
|
-
description: 'Get all symbols in a document (file outline)',
|
|
69
|
-
inputSchema: {
|
|
70
|
-
type: 'object',
|
|
71
|
-
properties: {
|
|
72
|
-
file: { type: 'string', description: 'File path' },
|
|
73
|
-
},
|
|
74
|
-
required: ['file']
|
|
75
|
-
},
|
|
76
|
-
annotations: { title: 'LSP Document Symbols', audience: ['user', 'assistant'], readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
77
|
-
};
|
|
78
|
-
export const lspWorkspaceSymbolsDefinition = {
|
|
79
|
-
name: 'lsp_workspace_symbols',
|
|
80
|
-
description: 'Search for symbols across the workspace',
|
|
81
|
-
inputSchema: {
|
|
82
|
-
type: 'object',
|
|
83
|
-
properties: {
|
|
84
|
-
query: { type: 'string', description: 'Symbol name to search for' },
|
|
85
|
-
projectPath: { type: 'string', description: 'Project root path' },
|
|
86
|
-
maxResults: { type: 'number', description: 'Maximum results (default: 50)' },
|
|
87
|
-
},
|
|
88
|
-
required: ['query', 'projectPath']
|
|
89
|
-
},
|
|
90
|
-
annotations: { title: 'LSP Workspace Symbols', audience: ['user', 'assistant'], readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
91
|
-
};
|
|
92
|
-
export const lspDiagnosticsDefinition = {
|
|
93
|
-
name: 'lsp_diagnostics',
|
|
94
|
-
description: 'Get diagnostics (errors, warnings) for a file',
|
|
95
|
-
inputSchema: {
|
|
96
|
-
type: 'object',
|
|
97
|
-
properties: {
|
|
98
|
-
file: { type: 'string', description: 'File path' },
|
|
99
|
-
},
|
|
100
|
-
required: ['file']
|
|
101
|
-
},
|
|
102
|
-
annotations: { title: 'LSP Diagnostics', audience: ['user', 'assistant'], readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
103
|
-
};
|
|
104
|
-
export const lspDiagnosticsDirectoryDefinition = {
|
|
105
|
-
name: 'lsp_diagnostics_directory',
|
|
106
|
-
description: 'Get diagnostics for all files in a directory',
|
|
107
|
-
inputSchema: {
|
|
108
|
-
type: 'object',
|
|
109
|
-
properties: {
|
|
110
|
-
projectPath: { type: 'string', description: 'Project root path' },
|
|
111
|
-
includeWarnings: { type: 'boolean', description: 'Include warnings (default: true)' },
|
|
112
|
-
},
|
|
113
|
-
required: ['projectPath']
|
|
114
|
-
},
|
|
115
|
-
annotations: { title: 'LSP Directory Diagnostics', audience: ['user', 'assistant'], readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
116
|
-
};
|
|
117
|
-
export const lspRenameDefinition = {
|
|
118
|
-
name: 'lsp_rename',
|
|
119
|
-
description: 'Preview renaming a symbol across files',
|
|
120
|
-
inputSchema: {
|
|
121
|
-
type: 'object',
|
|
122
|
-
properties: {
|
|
123
|
-
file: { type: 'string', description: 'File path' },
|
|
124
|
-
line: { type: 'number', description: 'Line number (1-based)' },
|
|
125
|
-
column: { type: 'number', description: 'Column number (1-based)' },
|
|
126
|
-
newName: { type: 'string', description: 'New name for the symbol' },
|
|
127
|
-
},
|
|
128
|
-
required: ['file', 'line', 'column', 'newName']
|
|
129
|
-
},
|
|
130
|
-
annotations: { title: 'LSP Rename', audience: ['user', 'assistant'], readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false }
|
|
131
|
-
};
|
|
132
|
-
export const lspCodeActionsDefinition = {
|
|
133
|
-
name: 'lsp_code_actions',
|
|
134
|
-
description: 'Get available code actions (quick fixes, refactorings) at a position',
|
|
135
|
-
inputSchema: {
|
|
136
|
-
type: 'object',
|
|
137
|
-
properties: {
|
|
138
|
-
file: { type: 'string', description: 'File path' },
|
|
139
|
-
line: { type: 'number', description: 'Line number (1-based)' },
|
|
140
|
-
column: { type: 'number', description: 'Column number (1-based)' },
|
|
141
|
-
},
|
|
142
|
-
required: ['file', 'line', 'column']
|
|
143
|
-
},
|
|
144
|
-
annotations: { title: 'LSP Code Actions', audience: ['user', 'assistant'], readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
145
|
-
};
|
|
146
|
-
// Helper to get project path from file
|
|
147
|
-
function getProjectPath(filePath) {
|
|
148
|
-
let dir = path.dirname(filePath);
|
|
149
|
-
while (dir !== path.dirname(dir)) {
|
|
150
|
-
if (fs.existsSync(path.join(dir, 'tsconfig.json')) ||
|
|
151
|
-
fs.existsSync(path.join(dir, 'package.json'))) {
|
|
152
|
-
return dir;
|
|
153
|
-
}
|
|
154
|
-
dir = path.dirname(dir);
|
|
155
|
-
}
|
|
156
|
-
return path.dirname(filePath);
|
|
157
|
-
}
|
|
158
|
-
// Get node at position
|
|
159
|
-
function getNodeAtPosition(project, filePath, line, column) {
|
|
160
|
-
const sourceFile = project.getSourceFile(filePath);
|
|
161
|
-
if (!sourceFile)
|
|
162
|
-
return undefined;
|
|
163
|
-
const pos = sourceFile.compilerNode.getPositionOfLineAndCharacter(line - 1, column - 1);
|
|
164
|
-
return sourceFile.getDescendantAtPos(pos);
|
|
165
|
-
}
|
|
166
|
-
// Find identifier node for references/definitions
|
|
167
|
-
async function findIdentifierNode(node) {
|
|
168
|
-
const { Node } = await loadTsMorph();
|
|
169
|
-
if (Node.isIdentifier(node))
|
|
170
|
-
return node;
|
|
171
|
-
if (Node.isPropertyAccessExpression(node))
|
|
172
|
-
return node.getNameNode();
|
|
173
|
-
if (Node.isCallExpression(node)) {
|
|
174
|
-
const expr = node.getExpression();
|
|
175
|
-
if (Node.isPropertyAccessExpression(expr))
|
|
176
|
-
return expr.getNameNode();
|
|
177
|
-
if (Node.isIdentifier(expr))
|
|
178
|
-
return expr;
|
|
179
|
-
}
|
|
180
|
-
// Try to find nearest identifier
|
|
181
|
-
const parent = node.getParent();
|
|
182
|
-
if (parent && Node.isIdentifier(parent))
|
|
183
|
-
return parent;
|
|
184
|
-
return node;
|
|
185
|
-
}
|
|
186
|
-
// Implementations
|
|
187
|
-
export async function lspHover(args) {
|
|
188
|
-
const { file, line, column } = args;
|
|
189
|
-
try {
|
|
190
|
-
const projectPath = getProjectPath(file);
|
|
191
|
-
const project = await ProjectCache.getInstance().getOrCreate(projectPath);
|
|
192
|
-
const node = getNodeAtPosition(project, file, line, column);
|
|
193
|
-
if (!node) {
|
|
194
|
-
return { content: [{ type: 'text', text: 'No symbol found at position' }] };
|
|
195
|
-
}
|
|
196
|
-
const type = node.getType();
|
|
197
|
-
const typeText = type.getText(node);
|
|
198
|
-
const symbol = node.getSymbol();
|
|
199
|
-
const docs = symbol?.getJsDocTags().map(t => `@${t.getName()} ${t.getText().map(p => p.text).join('')}`).join('\n') || '';
|
|
200
|
-
return {
|
|
201
|
-
content: [{
|
|
202
|
-
type: 'text',
|
|
203
|
-
text: `**Type:** \`${typeText}\`\n\n${docs ? `**Documentation:**\n${docs}` : ''}`
|
|
204
|
-
}]
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
catch (error) {
|
|
208
|
-
return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` }] };
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
export async function lspGotoDefinition(args) {
|
|
212
|
-
const { file, line, column } = args;
|
|
213
|
-
try {
|
|
214
|
-
const projectPath = getProjectPath(file);
|
|
215
|
-
const project = await ProjectCache.getInstance().getOrCreate(projectPath);
|
|
216
|
-
const node = getNodeAtPosition(project, file, line, column);
|
|
217
|
-
if (!node) {
|
|
218
|
-
return { content: [{ type: 'text', text: 'No symbol found at position' }] };
|
|
219
|
-
}
|
|
220
|
-
const identNode = await findIdentifierNode(node);
|
|
221
|
-
if (!identNode) {
|
|
222
|
-
return { content: [{ type: 'text', text: 'No identifier found at position' }] };
|
|
223
|
-
}
|
|
224
|
-
// Use symbol to find definitions
|
|
225
|
-
const symbol = identNode.getSymbol();
|
|
226
|
-
if (!symbol) {
|
|
227
|
-
return { content: [{ type: 'text', text: 'No symbol found' }] };
|
|
228
|
-
}
|
|
229
|
-
const declarations = symbol.getDeclarations();
|
|
230
|
-
if (declarations.length === 0) {
|
|
231
|
-
return { content: [{ type: 'text', text: 'No definition found' }] };
|
|
232
|
-
}
|
|
233
|
-
const results = declarations.map(decl => {
|
|
234
|
-
const sf = decl.getSourceFile();
|
|
235
|
-
const start = decl.getStartLineNumber();
|
|
236
|
-
return `${sf.getFilePath()}:${start}`;
|
|
237
|
-
});
|
|
238
|
-
return {
|
|
239
|
-
content: [{
|
|
240
|
-
type: 'text',
|
|
241
|
-
text: `**Definitions:**\n${results.map(r => `- ${r}`).join('\n')}`
|
|
242
|
-
}]
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
catch (error) {
|
|
246
|
-
return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` }] };
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
export async function lspFindReferences(args) {
|
|
250
|
-
const { file, line, column, includeDeclaration = true } = args;
|
|
251
|
-
try {
|
|
252
|
-
const { Node } = await loadTsMorph();
|
|
253
|
-
const projectPath = getProjectPath(file);
|
|
254
|
-
const project = await ProjectCache.getInstance().getOrCreate(projectPath);
|
|
255
|
-
const node = getNodeAtPosition(project, file, line, column);
|
|
256
|
-
if (!node) {
|
|
257
|
-
return { content: [{ type: 'text', text: 'No symbol found at position' }] };
|
|
258
|
-
}
|
|
259
|
-
const identNode = await findIdentifierNode(node);
|
|
260
|
-
if (!identNode || !Node.isIdentifier(identNode)) {
|
|
261
|
-
return { content: [{ type: 'text', text: 'No identifier found at position' }] };
|
|
262
|
-
}
|
|
263
|
-
const referencedSymbols = identNode.findReferences();
|
|
264
|
-
const references = [];
|
|
265
|
-
for (const ref of referencedSymbols) {
|
|
266
|
-
const refEntries = ref.getReferences();
|
|
267
|
-
for (const r of refEntries) {
|
|
268
|
-
if (!includeDeclaration && r.isDefinition?.())
|
|
269
|
-
continue;
|
|
270
|
-
const sf = r.getSourceFile();
|
|
271
|
-
const start = r.getTextSpan().getStart();
|
|
272
|
-
const pos = sf.getLineAndColumnAtPos(start);
|
|
273
|
-
references.push(`${sf.getFilePath()}:${pos.line}:${pos.column}`);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
if (references.length === 0) {
|
|
277
|
-
return { content: [{ type: 'text', text: 'No references found' }] };
|
|
278
|
-
}
|
|
279
|
-
return {
|
|
280
|
-
content: [{
|
|
281
|
-
type: 'text',
|
|
282
|
-
text: `**Found ${references.length} references:**\n${references.slice(0, 50).map(r => `- ${r}`).join('\n')}${references.length > 50 ? `\n... and ${references.length - 50} more` : ''}`
|
|
283
|
-
}]
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
catch (error) {
|
|
287
|
-
return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` }] };
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
export async function lspDocumentSymbols(args) {
|
|
291
|
-
const { file } = args;
|
|
292
|
-
try {
|
|
293
|
-
const projectPath = getProjectPath(file);
|
|
294
|
-
const project = await ProjectCache.getInstance().getOrCreate(projectPath);
|
|
295
|
-
const sourceFile = project.getSourceFile(file);
|
|
296
|
-
if (!sourceFile) {
|
|
297
|
-
return { content: [{ type: 'text', text: 'File not found in project' }] };
|
|
298
|
-
}
|
|
299
|
-
const symbols = [];
|
|
300
|
-
// Classes
|
|
301
|
-
sourceFile.getClasses().forEach(c => {
|
|
302
|
-
symbols.push({ name: c.getName() || 'anonymous', kind: 'Class', line: c.getStartLineNumber() });
|
|
303
|
-
c.getMethods().forEach(m => symbols.push({ name: ` ${m.getName()}`, kind: 'Method', line: m.getStartLineNumber() }));
|
|
304
|
-
c.getProperties().forEach(p => symbols.push({ name: ` ${p.getName()}`, kind: 'Property', line: p.getStartLineNumber() }));
|
|
305
|
-
});
|
|
306
|
-
// Interfaces
|
|
307
|
-
sourceFile.getInterfaces().forEach(i => {
|
|
308
|
-
symbols.push({ name: i.getName(), kind: 'Interface', line: i.getStartLineNumber() });
|
|
309
|
-
});
|
|
310
|
-
// Functions
|
|
311
|
-
sourceFile.getFunctions().forEach(f => {
|
|
312
|
-
symbols.push({ name: f.getName() || 'anonymous', kind: 'Function', line: f.getStartLineNumber() });
|
|
313
|
-
});
|
|
314
|
-
// Type aliases
|
|
315
|
-
sourceFile.getTypeAliases().forEach(t => {
|
|
316
|
-
symbols.push({ name: t.getName(), kind: 'Type', line: t.getStartLineNumber() });
|
|
317
|
-
});
|
|
318
|
-
// Enums
|
|
319
|
-
sourceFile.getEnums().forEach(e => {
|
|
320
|
-
symbols.push({ name: e.getName(), kind: 'Enum', line: e.getStartLineNumber() });
|
|
321
|
-
});
|
|
322
|
-
// Variables
|
|
323
|
-
sourceFile.getVariableDeclarations().forEach(v => {
|
|
324
|
-
symbols.push({ name: v.getName(), kind: 'Variable', line: v.getStartLineNumber() });
|
|
325
|
-
});
|
|
326
|
-
return {
|
|
327
|
-
content: [{
|
|
328
|
-
type: 'text',
|
|
329
|
-
text: `**Document Symbols (${symbols.length}):**\n${symbols.map(s => `- ${s.name} (${s.kind}) :${s.line}`).join('\n')}`
|
|
330
|
-
}]
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
catch (error) {
|
|
334
|
-
return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` }] };
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
export async function lspWorkspaceSymbols(args) {
|
|
338
|
-
const { query, projectPath, maxResults = 50 } = args;
|
|
339
|
-
try {
|
|
340
|
-
const project = await ProjectCache.getInstance().getOrCreate(projectPath);
|
|
341
|
-
const symbols = [];
|
|
342
|
-
for (const sourceFile of project.getSourceFiles()) {
|
|
343
|
-
if (symbols.length >= maxResults)
|
|
344
|
-
break;
|
|
345
|
-
const filePath = sourceFile.getFilePath();
|
|
346
|
-
if (filePath.includes('node_modules'))
|
|
347
|
-
continue;
|
|
348
|
-
// Search in all symbol types
|
|
349
|
-
const searchIn = [
|
|
350
|
-
...sourceFile.getClasses().map(c => ({ node: c, kind: 'Class' })),
|
|
351
|
-
...sourceFile.getInterfaces().map(i => ({ node: i, kind: 'Interface' })),
|
|
352
|
-
...sourceFile.getFunctions().map(f => ({ node: f, kind: 'Function' })),
|
|
353
|
-
...sourceFile.getTypeAliases().map(t => ({ node: t, kind: 'Type' })),
|
|
354
|
-
...sourceFile.getEnums().map(e => ({ node: e, kind: 'Enum' })),
|
|
355
|
-
];
|
|
356
|
-
for (const { node, kind } of searchIn) {
|
|
357
|
-
const name = node.getName?.() || '';
|
|
358
|
-
if (name && name.toLowerCase().includes(query.toLowerCase())) {
|
|
359
|
-
symbols.push({
|
|
360
|
-
name,
|
|
361
|
-
kind,
|
|
362
|
-
file: filePath,
|
|
363
|
-
line: node.getStartLineNumber(),
|
|
364
|
-
});
|
|
365
|
-
if (symbols.length >= maxResults)
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
if (symbols.length === 0) {
|
|
371
|
-
return { content: [{ type: 'text', text: `No symbols found matching "${query}"` }] };
|
|
372
|
-
}
|
|
373
|
-
return {
|
|
374
|
-
content: [{
|
|
375
|
-
type: 'text',
|
|
376
|
-
text: `**Found ${symbols.length} symbols matching "${query}":**\n${symbols.map(s => `- ${s.name} (${s.kind}) - ${s.file}:${s.line}`).join('\n')}`
|
|
377
|
-
}]
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
catch (error) {
|
|
381
|
-
return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` }] };
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
export async function lspDiagnostics(args) {
|
|
385
|
-
const { file } = args;
|
|
386
|
-
try {
|
|
387
|
-
const { ts } = await loadTsMorph();
|
|
388
|
-
const projectPath = getProjectPath(file);
|
|
389
|
-
const project = await ProjectCache.getInstance().getOrCreate(projectPath);
|
|
390
|
-
const sourceFile = project.getSourceFile(file);
|
|
391
|
-
if (!sourceFile) {
|
|
392
|
-
return { content: [{ type: 'text', text: 'File not found in project' }] };
|
|
393
|
-
}
|
|
394
|
-
const diagnostics = sourceFile.getPreEmitDiagnostics();
|
|
395
|
-
if (diagnostics.length === 0) {
|
|
396
|
-
return { content: [{ type: 'text', text: 'โ No diagnostics (errors/warnings)' }] };
|
|
397
|
-
}
|
|
398
|
-
const formatted = diagnostics.map(d => {
|
|
399
|
-
const start = d.getStart();
|
|
400
|
-
const line = start ? sourceFile.getLineAndColumnAtPos(start).line : 0;
|
|
401
|
-
const severity = d.getCategory() === ts.DiagnosticCategory.Error ? 'โ Error' : 'โ ๏ธ Warning';
|
|
402
|
-
return `${severity} [line ${line}]: ${d.getMessageText()}`;
|
|
403
|
-
});
|
|
404
|
-
return {
|
|
405
|
-
content: [{
|
|
406
|
-
type: 'text',
|
|
407
|
-
text: `**Diagnostics (${diagnostics.length}):**\n${formatted.join('\n')}`
|
|
408
|
-
}]
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
catch (error) {
|
|
412
|
-
return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` }] };
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
export async function lspDiagnosticsDirectory(args) {
|
|
416
|
-
const { projectPath, includeWarnings = true } = args;
|
|
417
|
-
try {
|
|
418
|
-
const { ts } = await loadTsMorph();
|
|
419
|
-
const project = await ProjectCache.getInstance().getOrCreate(projectPath);
|
|
420
|
-
const allDiagnostics = [];
|
|
421
|
-
for (const sourceFile of project.getSourceFiles()) {
|
|
422
|
-
const filePath = sourceFile.getFilePath();
|
|
423
|
-
if (filePath.includes('node_modules'))
|
|
424
|
-
continue;
|
|
425
|
-
const diagnostics = sourceFile.getPreEmitDiagnostics();
|
|
426
|
-
for (const d of diagnostics) {
|
|
427
|
-
const isError = d.getCategory() === ts.DiagnosticCategory.Error;
|
|
428
|
-
if (!includeWarnings && !isError)
|
|
429
|
-
continue;
|
|
430
|
-
const start = d.getStart();
|
|
431
|
-
const line = start ? sourceFile.getLineAndColumnAtPos(start).line : 0;
|
|
432
|
-
allDiagnostics.push({
|
|
433
|
-
file: filePath,
|
|
434
|
-
line,
|
|
435
|
-
severity: isError ? 'โ' : 'โ ๏ธ',
|
|
436
|
-
message: String(d.getMessageText()),
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
if (allDiagnostics.length === 0) {
|
|
441
|
-
return { content: [{ type: 'text', text: 'โ No diagnostics in project' }] };
|
|
442
|
-
}
|
|
443
|
-
const errors = allDiagnostics.filter(d => d.severity === 'โ').length;
|
|
444
|
-
const warnings = allDiagnostics.length - errors;
|
|
445
|
-
return {
|
|
446
|
-
content: [{
|
|
447
|
-
type: 'text',
|
|
448
|
-
text: `**Project Diagnostics:** ${errors} errors, ${warnings} warnings\n\n${allDiagnostics.slice(0, 50).map(d => `${d.severity} ${d.file}:${d.line}\n ${d.message.substring(0, 100)}`).join('\n\n')}${allDiagnostics.length > 50 ? `\n\n... and ${allDiagnostics.length - 50} more` : ''}`
|
|
449
|
-
}]
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
catch (error) {
|
|
453
|
-
return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` }] };
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
export async function lspRename(args) {
|
|
457
|
-
const { file, line, column, newName } = args;
|
|
458
|
-
try {
|
|
459
|
-
const { Node } = await loadTsMorph();
|
|
460
|
-
const projectPath = getProjectPath(file);
|
|
461
|
-
const project = await ProjectCache.getInstance().getOrCreate(projectPath);
|
|
462
|
-
const node = getNodeAtPosition(project, file, line, column);
|
|
463
|
-
if (!node) {
|
|
464
|
-
return { content: [{ type: 'text', text: 'No symbol found at position' }] };
|
|
465
|
-
}
|
|
466
|
-
const identNode = await findIdentifierNode(node);
|
|
467
|
-
if (!identNode || !Node.isIdentifier(identNode)) {
|
|
468
|
-
return { content: [{ type: 'text', text: 'No identifier found at position' }] };
|
|
469
|
-
}
|
|
470
|
-
// Find all references that would be renamed
|
|
471
|
-
const referencedSymbols = identNode.findReferences();
|
|
472
|
-
const changes = [];
|
|
473
|
-
for (const ref of referencedSymbols) {
|
|
474
|
-
const refEntries = ref.getReferences();
|
|
475
|
-
for (const r of refEntries) {
|
|
476
|
-
const sf = r.getSourceFile();
|
|
477
|
-
const span = r.getTextSpan();
|
|
478
|
-
const start = span.getStart();
|
|
479
|
-
const pos = sf.getLineAndColumnAtPos(start);
|
|
480
|
-
const text = sf.getFullText().substring(start, start + span.getLength());
|
|
481
|
-
changes.push({
|
|
482
|
-
file: sf.getFilePath(),
|
|
483
|
-
line: pos.line,
|
|
484
|
-
oldText: text,
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
if (changes.length === 0) {
|
|
489
|
-
return { content: [{ type: 'text', text: 'No references found to rename' }] };
|
|
490
|
-
}
|
|
491
|
-
return {
|
|
492
|
-
content: [{
|
|
493
|
-
type: 'text',
|
|
494
|
-
text: `**Rename Preview:** ${changes.length} occurrences would be renamed to "${newName}"\n\n${changes.slice(0, 20).map(c => `- ${c.file}:${c.line} (${c.oldText})`).join('\n')}${changes.length > 20 ? `\n... and ${changes.length - 20} more` : ''}\n\nโ ๏ธ This is a preview. Use your editor's rename feature to apply.`
|
|
495
|
-
}]
|
|
496
|
-
};
|
|
497
|
-
}
|
|
498
|
-
catch (error) {
|
|
499
|
-
return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` }] };
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
export async function lspCodeActions(args) {
|
|
503
|
-
const { file, line, column } = args;
|
|
504
|
-
try {
|
|
505
|
-
const { Node } = await loadTsMorph();
|
|
506
|
-
const projectPath = getProjectPath(file);
|
|
507
|
-
const project = await ProjectCache.getInstance().getOrCreate(projectPath);
|
|
508
|
-
const sourceFile = project.getSourceFile(file);
|
|
509
|
-
if (!sourceFile) {
|
|
510
|
-
return { content: [{ type: 'text', text: 'File not found in project' }] };
|
|
511
|
-
}
|
|
512
|
-
// Get diagnostics at position for potential quick fixes
|
|
513
|
-
const pos = sourceFile.compilerNode.getPositionOfLineAndCharacter(line - 1, column - 1);
|
|
514
|
-
const diagnostics = sourceFile.getPreEmitDiagnostics().filter(d => {
|
|
515
|
-
const start = d.getStart() || 0;
|
|
516
|
-
const length = d.getLength() || 0;
|
|
517
|
-
return pos >= start && pos <= start + length;
|
|
518
|
-
});
|
|
519
|
-
const actions = [];
|
|
520
|
-
// Common code actions based on context
|
|
521
|
-
const node = sourceFile.getDescendantAtPos(pos);
|
|
522
|
-
if (node) {
|
|
523
|
-
// Extract function
|
|
524
|
-
if (Node.isBlock(node.getParent())) {
|
|
525
|
-
actions.push('Extract to function');
|
|
526
|
-
}
|
|
527
|
-
// Extract variable
|
|
528
|
-
if (Node.isExpression(node)) {
|
|
529
|
-
actions.push('Extract to variable');
|
|
530
|
-
}
|
|
531
|
-
// Add missing import
|
|
532
|
-
if (Node.isIdentifier(node)) {
|
|
533
|
-
const symbol = node.getSymbol();
|
|
534
|
-
if (!symbol) {
|
|
535
|
-
actions.push('Add missing import');
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
// Convert to arrow function
|
|
539
|
-
if (Node.isFunctionDeclaration(node) || Node.isFunctionExpression(node)) {
|
|
540
|
-
actions.push('Convert to arrow function');
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
// Add quick fixes for diagnostics
|
|
544
|
-
for (const d of diagnostics) {
|
|
545
|
-
actions.push(`Fix: ${String(d.getMessageText()).substring(0, 50)}`);
|
|
546
|
-
}
|
|
547
|
-
if (actions.length === 0) {
|
|
548
|
-
return { content: [{ type: 'text', text: 'No code actions available at this position' }] };
|
|
549
|
-
}
|
|
550
|
-
return {
|
|
551
|
-
content: [{
|
|
552
|
-
type: 'text',
|
|
553
|
-
text: `**Available Code Actions:**\n${actions.map(a => `- ${a}`).join('\n')}\n\n๐ก Use your editor to apply these actions.`
|
|
554
|
-
}]
|
|
555
|
-
};
|
|
556
|
-
}
|
|
557
|
-
catch (error) {
|
|
558
|
-
return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` }] };
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
//# sourceMappingURL=lsp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lsp.js","sourceRoot":"","sources":["../../../src/tools/semantic/lsp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,KAAK,UAAU,WAAW;IACxB,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC;AAC5B,CAAC;AAED,mBAAmB;AACnB,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,uDAAuD;IACpE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE;YAClD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uBAAuB,EAAE;YAC9D,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yBAAyB,EAAE;SACnE;QACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;KACrC;IACD,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;QAClC,KAAK,MAAM,CAAC,IAAI,WAAW,EAAE,CAAC;YAC5B,OAAO,CAAC,IAAI,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,4CAA4C,EAAE,CAAC,EAAE,CAAC;QAC7F,CAAC;QAED,OAAO;YACL,OAAO,EAAE,CAAC;oBACR,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,gCAAgC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,gDAAgD;iBAC5H,CAAC;SACH,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,EAAE,CAAC,EAAE,CAAC;IACrH,CAAC;AACH,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* E2E Test Generator - SPEC acceptance criteria + Feature scenarios โ Playwright test skeletons
|
|
3
|
-
*/
|
|
4
|
-
/** Phase๋ณ acceptance criteria */
|
|
5
|
-
export interface AcceptanceCriterion {
|
|
6
|
-
phase: string;
|
|
7
|
-
phaseName: string;
|
|
8
|
-
criteria: string[];
|
|
9
|
-
}
|
|
10
|
-
/** Gherkin ์๋๋ฆฌ์ค (Given/When/Then ํฌํจ) */
|
|
11
|
-
export interface GherkinScenario {
|
|
12
|
-
name: string;
|
|
13
|
-
phase: string;
|
|
14
|
-
given: string[];
|
|
15
|
-
when: string[];
|
|
16
|
-
then: string[];
|
|
17
|
-
and: string[];
|
|
18
|
-
verification?: string;
|
|
19
|
-
}
|
|
20
|
-
/** ์์ฑ๋ E2E ํ
์คํธ */
|
|
21
|
-
export interface GeneratedE2ETest {
|
|
22
|
-
fileName: string;
|
|
23
|
-
content: string;
|
|
24
|
-
scenarioCount: number;
|
|
25
|
-
phase: string;
|
|
26
|
-
}
|
|
27
|
-
/** E2E ์์ฑ๊ธฐ ์ต์
*/
|
|
28
|
-
export interface E2EGeneratorOptions {
|
|
29
|
-
specPath?: string;
|
|
30
|
-
featurePath?: string;
|
|
31
|
-
outputDir?: string;
|
|
32
|
-
projectPath?: string;
|
|
33
|
-
}
|
|
34
|
-
/** ์์ฑ ๊ฒฐ๊ณผ */
|
|
35
|
-
export interface E2EGenerationResult {
|
|
36
|
-
featureName: string;
|
|
37
|
-
tests: GeneratedE2ETest[];
|
|
38
|
-
totalScenarios: number;
|
|
39
|
-
outputDir: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* SPEC์ <acceptance> ๋ธ๋ก์์ Phase๋ณ criteria ์ถ์ถ
|
|
43
|
-
*/
|
|
44
|
-
export declare function parseAcceptanceCriteria(specContent: string): AcceptanceCriterion[];
|
|
45
|
-
/**
|
|
46
|
-
* Feature ํ์ผ์์ Gherkin ์๋๋ฆฌ์ค ์ถ์ถ (Given/When/Then ํฌํจ)
|
|
47
|
-
*/
|
|
48
|
-
export declare function parseGherkinScenarios(featureContent: string): GherkinScenario[];
|
|
49
|
-
/**
|
|
50
|
-
* Playwright test skeleton ์์ฑ
|
|
51
|
-
*/
|
|
52
|
-
export declare function generatePlaywrightSkeleton(criteria: AcceptanceCriterion[], scenarios: GherkinScenario[], featureName: string): GeneratedE2ETest[];
|
|
53
|
-
/**
|
|
54
|
-
* ๋ฉ์ธ ํจ์: SPEC + Feature โ E2E test skeletons
|
|
55
|
-
*/
|
|
56
|
-
export declare function generateE2ETests(featureName: string, options?: E2EGeneratorOptions): E2EGenerationResult;
|
|
57
|
-
/**
|
|
58
|
-
* ์์ฑ ๊ฒฐ๊ณผ ์์ฝ์ ํฌ๋งทํ
|
|
59
|
-
*/
|
|
60
|
-
export declare function formatGenerationSummary(result: E2EGenerationResult): string;
|
|
61
|
-
//# sourceMappingURL=e2eTestGenerator.d.ts.map
|