@su-record/vibe 3.0.0 β 3.2.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 +2 -2
- package/README.en.md +6 -4
- package/README.md +5 -3
- package/dist/__tests__/wiring-integrity.test.d.ts +2 -0
- package/dist/__tests__/wiring-integrity.test.d.ts.map +1 -0
- package/dist/__tests__/wiring-integrity.test.js +160 -0
- package/dist/__tests__/wiring-integrity.test.js.map +1 -0
- package/dist/cli/commands/info.d.ts.map +1 -1
- package/dist/cli/commands/info.js +2 -1
- package/dist/cli/commands/info.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +4 -2
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/index.js +102 -128
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/postinstall/claude-agents.d.ts.map +1 -1
- package/dist/cli/postinstall/claude-agents.js +0 -5
- package/dist/cli/postinstall/claude-agents.js.map +1 -1
- package/dist/cli/postinstall/constants.d.ts +6 -0
- package/dist/cli/postinstall/constants.d.ts.map +1 -1
- package/dist/cli/postinstall/constants.js +42 -60
- package/dist/cli/postinstall/constants.js.map +1 -1
- package/dist/cli/postinstall/inline-skills.js +2 -2
- package/dist/cli/postinstall/inline-skills.js.map +1 -1
- package/dist/cli/postinstall/main.d.ts.map +1 -1
- package/dist/cli/postinstall/main.js +2 -0
- package/dist/cli/postinstall/main.js.map +1 -1
- package/dist/cli/postinstall.d.ts +6 -1
- package/dist/cli/postinstall.d.ts.map +1 -1
- package/dist/cli/postinstall.js +6 -1
- package/dist/cli/postinstall.js.map +1 -1
- package/dist/cli/setup/GlobalInstaller.d.ts +1 -15
- package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
- package/dist/cli/setup/GlobalInstaller.js +16 -115
- package/dist/cli/setup/GlobalInstaller.js.map +1 -1
- package/dist/cli/setup/GlobalInstaller.test.d.ts +2 -0
- package/dist/cli/setup/GlobalInstaller.test.d.ts.map +1 -0
- package/dist/cli/setup/GlobalInstaller.test.js +16 -0
- package/dist/cli/setup/GlobalInstaller.test.js.map +1 -0
- package/dist/cli/setup/ProjectSetup.js +2 -2
- package/dist/cli/setup/ProjectSetup.js.map +1 -1
- package/dist/cli/setup.d.ts +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +1 -1
- package/dist/cli/setup.js.map +1 -1
- package/dist/infra/lib/SkillRepository.js +1 -1
- package/dist/infra/lib/evolution/__tests__/integration.test.js +0 -42
- package/dist/infra/lib/evolution/__tests__/integration.test.js.map +1 -1
- package/hooks/scripts/__tests__/.vibe/command-log.txt +3 -78
- package/hooks/scripts/__tests__/clone-behaviors.test.js +97 -1
- package/hooks/scripts/__tests__/clone-merge-responsive.test.js +106 -0
- package/hooks/scripts/__tests__/code-check-memory-write.test.js +81 -0
- package/hooks/scripts/__tests__/step-counter.test.js +21 -0
- package/hooks/scripts/auto-format.js +2 -11
- package/hooks/scripts/auto-test.js +2 -11
- package/hooks/scripts/clone-extract.js +388 -38
- 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 +27 -55
- package/hooks/scripts/lib/glob.js +32 -0
- package/hooks/scripts/lib/hook-context.js +19 -2
- package/hooks/scripts/post-edit.js +2 -3
- package/hooks/scripts/prompt-dispatcher.js +1 -1
- package/hooks/scripts/scope-guard.js +3 -42
- package/hooks/scripts/sentinel-guard.js +5 -20
- package/hooks/scripts/session-start.js +2 -2
- package/hooks/scripts/step-counter.js +35 -57
- package/package.json +6 -4
- package/skills/clone/SKILL.md +74 -203
- package/skills/clone/references/capture-rules.md +48 -0
- package/skills/clone/references/legal-and-error-recovery.md +40 -0
- package/skills/clone/references/refine-rules.md +61 -0
- package/skills/clone/references/scaffold-phases.md +59 -0
- package/skills/clone/references/setup-and-layout.md +30 -0
- package/skills/docs/SKILL.md +39 -4
- package/skills/docs/references/api-docs-changelog.md +34 -0
- package/skills/docs/references/codemaps-output.md +23 -0
- package/{agents/diagrammer.md β skills/docs/references/diagram-spec.md} +2 -15
- package/skills/exec-plan/SKILL.md +1 -1
- package/skills/exec-plan/templates/plan.md +1 -1
- package/skills/handoff/SKILL.md +3 -3
- package/skills/handoff/templates/handoff.md +1 -1
- package/skills/vibe/SKILL.md +3 -2
- package/skills/vibe.analyze/SKILL.md +12 -249
- package/skills/vibe.analyze/references/output-templates.md +188 -0
- package/skills/vibe.analyze/references/quality-gate.md +93 -0
- package/skills/vibe.clone/SKILL.md +52 -19
- package/skills/vibe.continue/SKILL.md +32 -0
- package/skills/vibe.design/SKILL.md +23 -1
- package/skills/vibe.design/references/ui-preview.md +20 -0
- package/skills/vibe.docs/SKILL.md +4 -2
- package/skills/vibe.figma/SKILL.md +33 -260
- package/skills/vibe.figma/references/branch-phases.md +113 -0
- package/skills/vibe.figma/references/state-schema.md +42 -0
- package/skills/vibe.figma/references/step-algorithms.md +204 -0
- package/skills/vibe.image/SKILL.md +62 -0
- package/skills/vibe.image/references/image-generation-examples.md +39 -0
- package/skills/vibe.reason/SKILL.md +3 -183
- package/skills/vibe.reason/references/output-format-template.md +57 -0
- package/skills/vibe.reason/references/quality-rubrics.md +94 -0
- package/skills/vibe.reason/references/worked-example.md +45 -0
- package/skills/vibe.review/SKILL.md +13 -348
- package/skills/vibe.review/references/boundary-check.md +25 -0
- package/skills/vibe.review/references/output-template.md +74 -0
- package/skills/vibe.review/references/quality-gate.md +84 -0
- package/skills/vibe.review/references/race-mode.md +117 -0
- package/skills/vibe.review/references/worked-examples.md +94 -0
- package/vibe/templates/claudemd-template.md +1 -1
- package/agents/acceptance-tester.md +0 -56
- package/agents/documenter.md +0 -43
- package/agents/figma/figma-engineer.md +0 -76
- 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/cli/postinstall/index.d.ts +0 -23
- package/dist/cli/postinstall/index.d.ts.map +0 -1
- package/dist/cli/postinstall/index.js +0 -23
- package/dist/cli/postinstall/index.js.map +0 -1
- package/dist/cli/setup/index.d.ts +0 -9
- package/dist/cli/setup/index.d.ts.map +0 -1
- package/dist/cli/setup/index.js +0 -12
- package/dist/cli/setup/index.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__/.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/evolution-engine.js +0 -91
- package/hooks/scripts/hud-status.js +0 -321
- package/hooks/scripts/skill-injector.js +0 -83
- package/skills/vibe.utils/SKILL.md +0 -415
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PostToolUse Hook - Evolution Engine
|
|
3
|
-
* Write/Edit μ΄λ²€νΈ ν μΈμ¬μ΄νΈ μΆμΆ λ° μλ μμ± νμ΄νλΌμΈ νΈλ¦¬κ±°
|
|
4
|
-
*/
|
|
5
|
-
import { getLibBaseUrl, PROJECT_DIR, projectVibePath } from './utils.js';
|
|
6
|
-
import fs from 'fs';
|
|
7
|
-
import path from 'path';
|
|
8
|
-
|
|
9
|
-
async function main() {
|
|
10
|
-
// Evolution νμ±ν μ¬λΆ νμΈ
|
|
11
|
-
const configPath = projectVibePath(PROJECT_DIR, 'config.json');
|
|
12
|
-
let config = { mode: 'suggest', enabled: false };
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
if (fs.existsSync(configPath)) {
|
|
16
|
-
const raw = JSON.parse(fs.readFileSync(configPath, 'utf8'));
|
|
17
|
-
config = {
|
|
18
|
-
mode: raw.evolution?.mode || 'suggest',
|
|
19
|
-
enabled: raw.evolution?.enabled === true,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
} catch { /* ignore */ }
|
|
23
|
-
|
|
24
|
-
if (!config.enabled) return;
|
|
25
|
-
|
|
26
|
-
// λΉλκΈ°λ‘ νμ΄νλΌμΈ μ€ν (λ©μΈ ν
νλ¦ μ°¨λ¨ μ ν¨)
|
|
27
|
-
setImmediate(async () => {
|
|
28
|
-
try {
|
|
29
|
-
const LIB_BASE = getLibBaseUrl();
|
|
30
|
-
const [memMod, extractorMod, orchestratorMod] = await Promise.all([
|
|
31
|
-
import(`${LIB_BASE}memory/MemoryStorage.js`),
|
|
32
|
-
import(`${LIB_BASE}evolution/InsightExtractor.js`),
|
|
33
|
-
import(`${LIB_BASE}evolution/EvolutionOrchestrator.js`),
|
|
34
|
-
]);
|
|
35
|
-
|
|
36
|
-
const storage = new memMod.MemoryStorage(PROJECT_DIR);
|
|
37
|
-
|
|
38
|
-
// Phase 2: μΈμ¬μ΄νΈ μΆμΆ
|
|
39
|
-
const extractor = new extractorMod.InsightExtractor(storage);
|
|
40
|
-
const extractResult = extractor.extractFromRecent(20);
|
|
41
|
-
|
|
42
|
-
// Phase 2b: Guard trace λΆμ (νλ€μ€ μκΈ° κ°μ )
|
|
43
|
-
let guardInsightCount = 0;
|
|
44
|
-
try {
|
|
45
|
-
const guardMod = await import(`${LIB_BASE}evolution/GuardAnalyzer.js`);
|
|
46
|
-
const insightMod = await import(`${LIB_BASE}evolution/InsightStore.js`);
|
|
47
|
-
const insightStore = new insightMod.InsightStore(storage);
|
|
48
|
-
const guardAnalyzer = new guardMod.GuardAnalyzer(insightStore);
|
|
49
|
-
const guardResult = guardAnalyzer.analyze(7);
|
|
50
|
-
guardInsightCount = guardResult.newInsights.length;
|
|
51
|
-
if (guardInsightCount > 0) {
|
|
52
|
-
process.stderr.write(
|
|
53
|
-
`[Evolution] Guard analysis: ${guardInsightCount} new insights from hook traces\n`
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
} catch (e) {
|
|
57
|
-
process.stderr.write(`[Evolution] Guard analysis skipped: ${e.message}\n`);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
if (
|
|
61
|
-
extractResult.newInsights.length === 0 &&
|
|
62
|
-
extractResult.mergedInsights.length === 0 &&
|
|
63
|
-
guardInsightCount === 0
|
|
64
|
-
) {
|
|
65
|
-
storage.close();
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Phase 3: config.modeμ λ°λΌ μμ±
|
|
70
|
-
if (config.mode === 'suggest' || config.mode === 'auto') {
|
|
71
|
-
const orchestrator = new orchestratorMod.EvolutionOrchestrator(storage, {
|
|
72
|
-
mode: config.mode,
|
|
73
|
-
});
|
|
74
|
-
const genResult = orchestrator.generate();
|
|
75
|
-
|
|
76
|
-
if (genResult.generated.length > 0) {
|
|
77
|
-
const label = config.mode === 'auto' ? 'auto-generated' : 'suggested';
|
|
78
|
-
process.stderr.write(
|
|
79
|
-
`[Evolution] ${genResult.generated.length} artifacts ${label}\n`
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
storage.close();
|
|
85
|
-
} catch (e) {
|
|
86
|
-
process.stderr.write(`[Evolution] Engine error: ${e.message}\n`);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
main();
|
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* HUD Status Manager
|
|
4
|
-
* μ€μκ° μν μκ°ν (Claude Code statusline μ°λ)
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import fs from 'fs';
|
|
8
|
-
import path from 'path';
|
|
9
|
-
import os from 'os';
|
|
10
|
-
|
|
11
|
-
// μν μ μ₯ κ²½λ‘
|
|
12
|
-
const STATE_DIR = path.join(os.homedir(), '.claude', '.vibe-hud');
|
|
13
|
-
const STATE_FILE = path.join(STATE_DIR, 'state.json');
|
|
14
|
-
|
|
15
|
-
// Write debounce configuration
|
|
16
|
-
const WRITE_DEBOUNCE_MS = 500;
|
|
17
|
-
let pendingState = null;
|
|
18
|
-
let writeTimer = null;
|
|
19
|
-
|
|
20
|
-
// κΈ°λ³Έ μν
|
|
21
|
-
const DEFAULT_STATE = {
|
|
22
|
-
mode: 'idle', // idle | ultrawork | spec | review
|
|
23
|
-
feature: null,
|
|
24
|
-
phase: { current: 0, total: 0, name: '' },
|
|
25
|
-
agents: [], // μ€ν μ€μΈ μμ΄μ νΈλ€
|
|
26
|
-
context: { used: 0, total: 200000 }, // 컨ν
μ€νΈ μ¬μ©λ
|
|
27
|
-
lastUpdate: null,
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
// μν μμ΄μ½
|
|
31
|
-
const MODE_ICONS = {
|
|
32
|
-
idle: 'π€',
|
|
33
|
-
ultrawork: 'π',
|
|
34
|
-
spec: 'π',
|
|
35
|
-
review: 'π',
|
|
36
|
-
implementing: 'π¨',
|
|
37
|
-
testing: 'π§ͺ',
|
|
38
|
-
error: 'β',
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
// κ±΄κ° μν μμ (ANSI)
|
|
42
|
-
const HEALTH_COLORS = {
|
|
43
|
-
good: '\x1b[32m', // λ
Ήμ
|
|
44
|
-
warning: '\x1b[33m', // λ
Έλμ
|
|
45
|
-
critical: '\x1b[31m', // λΉ¨κ°μ
|
|
46
|
-
reset: '\x1b[0m',
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* μν λλ ν 리 μ΄κΈ°ν
|
|
51
|
-
*/
|
|
52
|
-
function ensureStateDir() {
|
|
53
|
-
if (!fs.existsSync(STATE_DIR)) {
|
|
54
|
-
fs.mkdirSync(STATE_DIR, { recursive: true });
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* νμ¬ μν λ‘λ
|
|
60
|
-
*/
|
|
61
|
-
function loadState() {
|
|
62
|
-
try {
|
|
63
|
-
if (fs.existsSync(STATE_FILE)) {
|
|
64
|
-
return JSON.parse(fs.readFileSync(STATE_FILE, 'utf8'));
|
|
65
|
-
}
|
|
66
|
-
} catch {
|
|
67
|
-
// 무μ
|
|
68
|
-
}
|
|
69
|
-
return { ...DEFAULT_STATE };
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* μνλ₯Ό λμ€ν¬μ μ¦μ κΈ°λ‘
|
|
74
|
-
*/
|
|
75
|
-
function flushState(state) {
|
|
76
|
-
ensureStateDir();
|
|
77
|
-
state.lastUpdate = new Date().toISOString();
|
|
78
|
-
fs.writeFileSync(STATE_FILE, JSON.stringify(state, null, 2));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* μν μ μ₯ (debounced - λΉλ²ν νΈμΆμ λ³ν©)
|
|
83
|
-
* CLI μ’
λ£ μ pending writeκ° μμΌλ©΄ flush λ¨
|
|
84
|
-
*/
|
|
85
|
-
function saveState(state) {
|
|
86
|
-
state.lastUpdate = new Date().toISOString();
|
|
87
|
-
pendingState = state;
|
|
88
|
-
if (writeTimer) clearTimeout(writeTimer);
|
|
89
|
-
writeTimer = setTimeout(() => {
|
|
90
|
-
if (pendingState) {
|
|
91
|
-
flushState(pendingState);
|
|
92
|
-
pendingState = null;
|
|
93
|
-
writeTimer = null;
|
|
94
|
-
}
|
|
95
|
-
}, WRITE_DEBOUNCE_MS);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* μν μ
λ°μ΄νΈ
|
|
100
|
-
*/
|
|
101
|
-
function updateState(updates) {
|
|
102
|
-
const state = loadState();
|
|
103
|
-
Object.assign(state, updates);
|
|
104
|
-
saveState(state);
|
|
105
|
-
return state;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* 컨ν
μ€νΈ κ±΄κ° μν
|
|
110
|
-
*/
|
|
111
|
-
function getContextHealth(used, total) {
|
|
112
|
-
const percentage = (used / total) * 100;
|
|
113
|
-
if (percentage >= 90) return 'critical';
|
|
114
|
-
if (percentage >= 70) return 'warning';
|
|
115
|
-
return 'good';
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* μν λΌμΈ ν¬λ§· (minimal)
|
|
120
|
-
*/
|
|
121
|
-
function formatMinimal(state) {
|
|
122
|
-
const icon = MODE_ICONS[state.mode] || 'π€';
|
|
123
|
-
const phase = state.phase.total > 0
|
|
124
|
-
? `${state.phase.current}/${state.phase.total}`
|
|
125
|
-
: '';
|
|
126
|
-
return `${icon} ${state.mode}${phase ? ` [${phase}]` : ''}`;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* μν λΌμΈ ν¬λ§· (focused - default)
|
|
131
|
-
*/
|
|
132
|
-
function formatFocused(state) {
|
|
133
|
-
const icon = MODE_ICONS[state.mode] || 'π€';
|
|
134
|
-
const feature = state.feature ? `: ${state.feature}` : '';
|
|
135
|
-
const phase = state.phase.total > 0
|
|
136
|
-
? ` [Phase ${state.phase.current}/${state.phase.total}]`
|
|
137
|
-
: '';
|
|
138
|
-
|
|
139
|
-
const contextPct = Math.round((state.context.used / state.context.total) * 100);
|
|
140
|
-
const contextHealth = getContextHealth(state.context.used, state.context.total);
|
|
141
|
-
const contextColor = HEALTH_COLORS[contextHealth];
|
|
142
|
-
|
|
143
|
-
return `${icon} ${state.mode}${feature}${phase} | ${contextColor}CTX: ${contextPct}%${HEALTH_COLORS.reset}`;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* μν λΌμΈ ν¬λ§· (full)
|
|
148
|
-
*/
|
|
149
|
-
function formatFull(state) {
|
|
150
|
-
const lines = [];
|
|
151
|
-
const icon = MODE_ICONS[state.mode] || 'π€';
|
|
152
|
-
|
|
153
|
-
lines.push(`ββββββββββββββββββββββββββββββββββ`);
|
|
154
|
-
lines.push(`${icon} VIBE HUD`);
|
|
155
|
-
lines.push(`ββββββββββββββββββββββββββββββββββ`);
|
|
156
|
-
|
|
157
|
-
lines.push(`Mode: ${state.mode}`);
|
|
158
|
-
if (state.feature) {
|
|
159
|
-
lines.push(`Feature: ${state.feature}`);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
if (state.phase.total > 0) {
|
|
163
|
-
const progress = Math.round((state.phase.current / state.phase.total) * 100);
|
|
164
|
-
const bar = createProgressBar(progress);
|
|
165
|
-
lines.push(`Phase: ${state.phase.current}/${state.phase.total} ${state.phase.name}`);
|
|
166
|
-
lines.push(` ${bar} ${progress}%`);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
if (state.agents.length > 0) {
|
|
170
|
-
lines.push(`Agents: ${state.agents.map(a => `${a.name}(${a.model})`).join(', ')}`);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
const contextPct = Math.round((state.context.used / state.context.total) * 100);
|
|
174
|
-
const contextHealth = getContextHealth(state.context.used, state.context.total);
|
|
175
|
-
const contextColor = HEALTH_COLORS[contextHealth];
|
|
176
|
-
lines.push(`Context: ${contextColor}${contextPct}%${HEALTH_COLORS.reset} (${state.context.used}/${state.context.total})`);
|
|
177
|
-
|
|
178
|
-
lines.push(`ββββββββββββββββββββββββββββββββββ`);
|
|
179
|
-
|
|
180
|
-
return lines.join('\n');
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* νλ‘κ·Έλ μ€ λ° μμ±
|
|
185
|
-
*/
|
|
186
|
-
function createProgressBar(percentage, width = 20) {
|
|
187
|
-
const filled = Math.round((percentage / 100) * width);
|
|
188
|
-
const empty = width - filled;
|
|
189
|
-
return `[${'β'.repeat(filled)}${'β'.repeat(empty)}]`;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* CLI λͺ
λ Ή μ²λ¦¬
|
|
194
|
-
*/
|
|
195
|
-
function handleCommand(args) {
|
|
196
|
-
const command = args[0];
|
|
197
|
-
const params = args.slice(1);
|
|
198
|
-
|
|
199
|
-
switch (command) {
|
|
200
|
-
case 'show':
|
|
201
|
-
case 'status': {
|
|
202
|
-
const format = params[0] || 'focused';
|
|
203
|
-
const state = loadState();
|
|
204
|
-
if (format === 'minimal') console.log(formatMinimal(state));
|
|
205
|
-
else if (format === 'full') console.log(formatFull(state));
|
|
206
|
-
else console.log(formatFocused(state));
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
case 'set': {
|
|
211
|
-
const key = params[0];
|
|
212
|
-
const value = params[1];
|
|
213
|
-
if (key && value !== undefined) {
|
|
214
|
-
const updates = {};
|
|
215
|
-
// μ€μ²© ν€ μ²λ¦¬ (μ: phase.current)
|
|
216
|
-
if (key.includes('.')) {
|
|
217
|
-
const [parent, child] = key.split('.');
|
|
218
|
-
const state = loadState();
|
|
219
|
-
updates[parent] = { ...(state[parent] || {}), [child]: isNaN(value) ? value : Number(value) };
|
|
220
|
-
} else {
|
|
221
|
-
updates[key] = isNaN(value) ? value : Number(value);
|
|
222
|
-
}
|
|
223
|
-
updateState(updates);
|
|
224
|
-
console.log(`β Updated ${key}`);
|
|
225
|
-
}
|
|
226
|
-
break;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
case 'start': {
|
|
230
|
-
const mode = params[0] || 'ultrawork';
|
|
231
|
-
const feature = params[1] || null;
|
|
232
|
-
updateState({
|
|
233
|
-
mode,
|
|
234
|
-
feature,
|
|
235
|
-
phase: { current: 0, total: 0, name: '' },
|
|
236
|
-
agents: [],
|
|
237
|
-
});
|
|
238
|
-
console.log(`π Started ${mode}${feature ? `: ${feature}` : ''}`);
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
case 'phase': {
|
|
243
|
-
const current = parseInt(params[0], 10) || 1;
|
|
244
|
-
const total = parseInt(params[1], 10) || current;
|
|
245
|
-
const name = params.slice(2).join(' ') || '';
|
|
246
|
-
updateState({ phase: { current, total, name } });
|
|
247
|
-
console.log(`π Phase ${current}/${total}${name ? `: ${name}` : ''}`);
|
|
248
|
-
break;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
case 'agent': {
|
|
252
|
-
const action = params[0]; // add | remove | clear
|
|
253
|
-
const state = loadState();
|
|
254
|
-
if (action === 'add') {
|
|
255
|
-
const name = params[1];
|
|
256
|
-
const model = params[2] || 'sonnet';
|
|
257
|
-
state.agents.push({ name, model, startTime: Date.now() });
|
|
258
|
-
saveState(state);
|
|
259
|
-
console.log(`π€ Agent added: ${name} (${model})`);
|
|
260
|
-
} else if (action === 'remove') {
|
|
261
|
-
const name = params[1];
|
|
262
|
-
state.agents = state.agents.filter(a => a.name !== name);
|
|
263
|
-
saveState(state);
|
|
264
|
-
console.log(`π€ Agent removed: ${name}`);
|
|
265
|
-
} else if (action === 'clear') {
|
|
266
|
-
state.agents = [];
|
|
267
|
-
saveState(state);
|
|
268
|
-
console.log(`π€ All agents cleared`);
|
|
269
|
-
}
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
case 'context': {
|
|
274
|
-
const used = parseInt(params[0], 10) || 0;
|
|
275
|
-
const total = parseInt(params[1], 10) || 200000;
|
|
276
|
-
updateState({ context: { used, total } });
|
|
277
|
-
const pct = Math.round((used / total) * 100);
|
|
278
|
-
console.log(`π Context: ${pct}%`);
|
|
279
|
-
break;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
case 'done':
|
|
283
|
-
case 'reset': {
|
|
284
|
-
saveState({ ...DEFAULT_STATE });
|
|
285
|
-
console.log(`π€ HUD reset`);
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
default:
|
|
290
|
-
console.log(`
|
|
291
|
-
VIBE HUD - Real-time status visualization
|
|
292
|
-
|
|
293
|
-
Commands:
|
|
294
|
-
show [format] Show current status (minimal|focused|full)
|
|
295
|
-
start [mode] [feature] Start tracking (ultrawork|spec|review)
|
|
296
|
-
phase <current> <total> [name] Update phase progress
|
|
297
|
-
agent add|remove|clear [name] [model] Manage agents
|
|
298
|
-
context <used> [total] Update context usage
|
|
299
|
-
set <key> <value> Set arbitrary state value
|
|
300
|
-
done|reset Reset to idle state
|
|
301
|
-
|
|
302
|
-
Examples:
|
|
303
|
-
node hud-status.js show full
|
|
304
|
-
node hud-status.js start ultrawork "login-feature"
|
|
305
|
-
node hud-status.js phase 2 5 "Implementing core"
|
|
306
|
-
node hud-status.js agent add "explore-1" haiku
|
|
307
|
-
`);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// Flush pending state on process exit to avoid data loss
|
|
312
|
-
process.on('exit', () => {
|
|
313
|
-
if (pendingState) {
|
|
314
|
-
flushState(pendingState);
|
|
315
|
-
pendingState = null;
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
// λ©μΈ μ€ν
|
|
320
|
-
const args = process.argv.slice(2);
|
|
321
|
-
handleCommand(args);
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SessionStart Hook - Auto-generated skill/agent/rule μ£Όμ
|
|
3
|
-
* auto/ λλ ν 리λ₯Ό μ€μΊνμ¬ .disabledκ° μλ νμΌμ λ‘λνκ³ μ¬μ©λ μΆμ
|
|
4
|
-
*/
|
|
5
|
-
import fs from 'fs';
|
|
6
|
-
import path from 'path';
|
|
7
|
-
import os from 'os';
|
|
8
|
-
import { getLibBaseUrl, PROJECT_DIR } from './utils.js';
|
|
9
|
-
|
|
10
|
-
const HOME = os.homedir();
|
|
11
|
-
|
|
12
|
-
// auto/ λλ ν 리 κ²½λ‘
|
|
13
|
-
const AUTO_DIRS = {
|
|
14
|
-
'user-auto': {
|
|
15
|
-
skills: path.join(HOME, '.claude', 'vibe', 'skills', 'auto'),
|
|
16
|
-
agents: path.join(HOME, '.claude', 'agents', 'auto'),
|
|
17
|
-
rules: path.join(HOME, '.claude', 'vibe', 'rules', 'auto'),
|
|
18
|
-
},
|
|
19
|
-
'project-auto': {
|
|
20
|
-
skills: path.join(PROJECT_DIR, '.claude', 'vibe', 'skills', 'auto'),
|
|
21
|
-
agents: path.join(PROJECT_DIR, '.claude', 'agents', 'auto'),
|
|
22
|
-
rules: path.join(PROJECT_DIR, '.claude', 'vibe', 'rules', 'auto'),
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* λλ ν 리μμ .md νμΌ μ€μΊ (.disabled μ μΈ)
|
|
28
|
-
*/
|
|
29
|
-
function scanAutoDir(dirPath) {
|
|
30
|
-
if (!fs.existsSync(dirPath)) return [];
|
|
31
|
-
|
|
32
|
-
return fs.readdirSync(dirPath)
|
|
33
|
-
.filter(f => f.endsWith('.md') && !f.endsWith('.disabled'))
|
|
34
|
-
.map(f => ({
|
|
35
|
-
name: f.replace(/\.md$/, ''),
|
|
36
|
-
path: path.join(dirPath, f),
|
|
37
|
-
content: fs.readFileSync(path.join(dirPath, f), 'utf8'),
|
|
38
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
async function main() {
|
|
42
|
-
const allSkills = [];
|
|
43
|
-
|
|
44
|
-
for (const [source, dirs] of Object.entries(AUTO_DIRS)) {
|
|
45
|
-
for (const [type, dirPath] of Object.entries(dirs)) {
|
|
46
|
-
const files = scanAutoDir(dirPath);
|
|
47
|
-
for (const file of files) {
|
|
48
|
-
allSkills.push({ ...file, source, type, generated: true });
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (allSkills.length === 0) return;
|
|
54
|
-
|
|
55
|
-
// μ¬μ©λ μΆμ
|
|
56
|
-
try {
|
|
57
|
-
const LIB_BASE = getLibBaseUrl();
|
|
58
|
-
const [memMod, trackerMod] = await Promise.all([
|
|
59
|
-
import(`${LIB_BASE}memory/MemoryStorage.js`),
|
|
60
|
-
import(`${LIB_BASE}evolution/UsageTracker.js`),
|
|
61
|
-
]);
|
|
62
|
-
|
|
63
|
-
const storage = new memMod.MemoryStorage(PROJECT_DIR);
|
|
64
|
-
const tracker = new trackerMod.UsageTracker(storage);
|
|
65
|
-
|
|
66
|
-
for (const skill of allSkills) {
|
|
67
|
-
tracker.recordUsage({
|
|
68
|
-
generationId: skill.name,
|
|
69
|
-
event: 'injected',
|
|
70
|
-
metadata: { source: skill.source, type: skill.type, generated: skill.generated },
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
storage.close();
|
|
75
|
-
} catch {
|
|
76
|
-
// μΆμ μ€ν¨ν΄λ μ£Όμ
μ κ³μ
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
const summary = allSkills.map(s => `${s.source}/${s.type}/${s.name}`).join(', ');
|
|
80
|
-
process.stderr.write(`[Evolution] Injected ${allSkills.length} auto skills: ${summary}\n`);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
main();
|