@su-record/vibe 3.2.62 → 4.0.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/LICENSE +1 -1
- package/README.md +100 -288
- package/card.md +9 -0
- package/dist/cli.js +584 -0
- package/dist/cli.js.map +1 -0
- package/dist/core/check.js +245 -0
- package/dist/core/check.js.map +1 -0
- package/dist/core/checks/eval.js +66 -0
- package/dist/core/checks/eval.js.map +1 -0
- package/dist/core/checks/file.js +88 -0
- package/dist/core/checks/file.js.map +1 -0
- package/dist/core/checks/http.js +48 -0
- package/dist/core/checks/http.js.map +1 -0
- package/dist/core/checks/run.js +42 -0
- package/dist/core/checks/run.js.map +1 -0
- package/dist/core/client.js +35 -0
- package/dist/core/client.js.map +1 -0
- package/dist/core/config.js +30 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/errors.js +12 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/github.js +49 -0
- package/dist/core/github.js.map +1 -0
- package/dist/core/inbox.js +73 -0
- package/dist/core/inbox.js.map +1 -0
- package/dist/core/intent.js +91 -0
- package/dist/core/intent.js.map +1 -0
- package/dist/core/knowledge.js +22 -0
- package/dist/core/knowledge.js.map +1 -0
- package/dist/core/ledger.js +124 -0
- package/dist/core/ledger.js.map +1 -0
- package/dist/core/paths.js +29 -0
- package/dist/core/paths.js.map +1 -0
- package/dist/core/profile.js +88 -0
- package/dist/core/profile.js.map +1 -0
- package/dist/core/regress.js +66 -0
- package/dist/core/regress.js.map +1 -0
- package/dist/core/research.js +205 -0
- package/dist/core/research.js.map +1 -0
- package/dist/core/scenarios.js +193 -0
- package/dist/core/scenarios.js.map +1 -0
- package/dist/core/skills.js +276 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/state.js +70 -0
- package/dist/core/state.js.map +1 -0
- package/dist/core/store.js +59 -0
- package/dist/core/store.js.map +1 -0
- package/dist/core/table.js +106 -0
- package/dist/core/table.js.map +1 -0
- package/dist/core/tokens.js +67 -0
- package/dist/core/tokens.js.map +1 -0
- package/dist/core/tree.js +97 -0
- package/dist/core/tree.js.map +1 -0
- package/dist/core/view.js +67 -0
- package/dist/core/view.js.map +1 -0
- package/dist/install/plugin.js +145 -0
- package/dist/install/plugin.js.map +1 -0
- package/dist/install/project.js +213 -0
- package/dist/install/project.js.map +1 -0
- package/hooks/notify.js +92 -0
- package/package.json +27 -118
- package/skills/vibe/SKILL.md +20 -265
- package/skills/vibe.build/SKILL.md +35 -0
- package/skills/vibe.discover/SKILL.md +35 -0
- package/skills/vibe.handoff/SKILL.md +21 -6
- package/skills/vibe.prove/SKILL.md +19 -0
- package/skills/vibe.scope/SKILL.md +39 -0
- package/.claude-plugin/plugin.json +0 -22
- package/.codex-plugin/plugin.json +0 -34
- package/.env.example +0 -52
- package/CLAUDE.md +0 -216
- package/README.en.md +0 -347
- package/agents/architect.md +0 -38
- package/agents/build-error-resolver.md +0 -46
- package/agents/code-reviewer.md +0 -89
- package/agents/e2e-tester.md +0 -66
- package/agents/event/event-ops.md +0 -61
- package/agents/event/event-planner.md +0 -63
- package/agents/implementer.md +0 -39
- package/agents/security-reviewer.md +0 -56
- package/agents/tester.md +0 -53
- package/agents/ui/design-reviewer.md +0 -62
- package/agents/ui/design-system-gen.md +0 -63
- package/dist/cli/auth.d.ts +0 -30
- package/dist/cli/auth.d.ts.map +0 -1
- package/dist/cli/auth.js +0 -140
- package/dist/cli/auth.js.map +0 -1
- package/dist/cli/collaborator.d.ts +0 -12
- package/dist/cli/collaborator.d.ts.map +0 -1
- package/dist/cli/collaborator.js +0 -150
- package/dist/cli/collaborator.js.map +0 -1
- package/dist/cli/commands/codex-proxy.d.ts +0 -10
- package/dist/cli/commands/codex-proxy.d.ts.map +0 -1
- package/dist/cli/commands/codex-proxy.js +0 -272
- package/dist/cli/commands/codex-proxy.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -17
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -209
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/evolution.d.ts +0 -16
- package/dist/cli/commands/evolution.d.ts.map +0 -1
- package/dist/cli/commands/evolution.js +0 -211
- package/dist/cli/commands/evolution.js.map +0 -1
- package/dist/cli/commands/figma.d.ts +0 -29
- package/dist/cli/commands/figma.d.ts.map +0 -1
- package/dist/cli/commands/figma.js +0 -147
- package/dist/cli/commands/figma.js.map +0 -1
- package/dist/cli/commands/index.d.ts +0 -19
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/index.js +0 -19
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/info.d.ts +0 -72
- package/dist/cli/commands/info.d.ts.map +0 -1
- package/dist/cli/commands/info.js +0 -263
- package/dist/cli/commands/info.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -36
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -393
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/llm.d.ts +0 -11
- package/dist/cli/commands/llm.d.ts.map +0 -1
- package/dist/cli/commands/llm.js +0 -63
- package/dist/cli/commands/llm.js.map +0 -1
- package/dist/cli/commands/plugin.d.ts +0 -5
- package/dist/cli/commands/plugin.d.ts.map +0 -1
- package/dist/cli/commands/plugin.js +0 -223
- package/dist/cli/commands/plugin.js.map +0 -1
- package/dist/cli/commands/remove.d.ts +0 -8
- package/dist/cli/commands/remove.d.ts.map +0 -1
- package/dist/cli/commands/remove.js +0 -157
- package/dist/cli/commands/remove.js.map +0 -1
- package/dist/cli/commands/sentinel.d.ts +0 -22
- package/dist/cli/commands/sentinel.d.ts.map +0 -1
- package/dist/cli/commands/sentinel.js +0 -324
- package/dist/cli/commands/sentinel.js.map +0 -1
- package/dist/cli/commands/setup.d.ts +0 -9
- package/dist/cli/commands/setup.d.ts.map +0 -1
- package/dist/cli/commands/setup.js +0 -223
- package/dist/cli/commands/setup.js.map +0 -1
- package/dist/cli/commands/skills.d.ts +0 -13
- package/dist/cli/commands/skills.d.ts.map +0 -1
- package/dist/cli/commands/skills.js +0 -117
- package/dist/cli/commands/skills.js.map +0 -1
- package/dist/cli/commands/slack.d.ts +0 -11
- package/dist/cli/commands/slack.d.ts.map +0 -1
- package/dist/cli/commands/slack.js +0 -83
- package/dist/cli/commands/slack.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -13
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -281
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/telegram.d.ts +0 -13
- package/dist/cli/commands/telegram.d.ts.map +0 -1
- package/dist/cli/commands/telegram.js +0 -236
- package/dist/cli/commands/telegram.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -10
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -168
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli/commands/upgrade.d.ts +0 -96
- package/dist/cli/commands/upgrade.d.ts.map +0 -1
- package/dist/cli/commands/upgrade.js +0 -357
- package/dist/cli/commands/upgrade.js.map +0 -1
- package/dist/cli/design/design-md-parser.d.ts +0 -25
- package/dist/cli/design/design-md-parser.d.ts.map +0 -1
- package/dist/cli/design/design-md-parser.js +0 -86
- package/dist/cli/design/design-md-parser.js.map +0 -1
- package/dist/cli/detect/matcher.d.ts +0 -15
- package/dist/cli/detect/matcher.d.ts.map +0 -1
- package/dist/cli/detect/matcher.js +0 -278
- package/dist/cli/detect/matcher.js.map +0 -1
- package/dist/cli/detect/signatures.d.ts +0 -76
- package/dist/cli/detect/signatures.d.ts.map +0 -1
- package/dist/cli/detect/signatures.js +0 -175
- package/dist/cli/detect/signatures.js.map +0 -1
- package/dist/cli/detect/workspace.d.ts +0 -7
- package/dist/cli/detect/workspace.d.ts.map +0 -1
- package/dist/cli/detect/workspace.js +0 -112
- package/dist/cli/detect/workspace.js.map +0 -1
- package/dist/cli/detect.d.ts +0 -35
- package/dist/cli/detect.d.ts.map +0 -1
- package/dist/cli/detect.js +0 -213
- package/dist/cli/detect.js.map +0 -1
- package/dist/cli/generate-release-notes.d.ts +0 -3
- package/dist/cli/generate-release-notes.d.ts.map +0 -1
- package/dist/cli/generate-release-notes.js +0 -49
- package/dist/cli/generate-release-notes.js.map +0 -1
- package/dist/cli/index.d.ts +0 -30
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -475
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/llm/antigravity-commands.d.ts +0 -25
- package/dist/cli/llm/antigravity-commands.d.ts.map +0 -1
- package/dist/cli/llm/antigravity-commands.js +0 -142
- package/dist/cli/llm/antigravity-commands.js.map +0 -1
- package/dist/cli/llm/claude-commands.d.ts +0 -12
- package/dist/cli/llm/claude-commands.d.ts.map +0 -1
- package/dist/cli/llm/claude-commands.js +0 -75
- package/dist/cli/llm/claude-commands.js.map +0 -1
- package/dist/cli/llm/config.d.ts +0 -19
- package/dist/cli/llm/config.d.ts.map +0 -1
- package/dist/cli/llm/config.js +0 -137
- package/dist/cli/llm/config.js.map +0 -1
- package/dist/cli/llm/gpt-commands.d.ts +0 -17
- package/dist/cli/llm/gpt-commands.d.ts.map +0 -1
- package/dist/cli/llm/gpt-commands.js +0 -85
- package/dist/cli/llm/gpt-commands.js.map +0 -1
- package/dist/cli/llm/help.d.ts +0 -12
- package/dist/cli/llm/help.d.ts.map +0 -1
- package/dist/cli/llm/help.js +0 -37
- package/dist/cli/llm/help.js.map +0 -1
- package/dist/cli/llm/index.d.ts +0 -10
- package/dist/cli/llm/index.d.ts.map +0 -1
- package/dist/cli/llm/index.js +0 -10
- package/dist/cli/llm/index.js.map +0 -1
- package/dist/cli/llm/model-refresh.d.ts +0 -29
- package/dist/cli/llm/model-refresh.d.ts.map +0 -1
- package/dist/cli/llm/model-refresh.js +0 -139
- package/dist/cli/llm/model-refresh.js.map +0 -1
- package/dist/cli/llm/zai-commands.d.ts +0 -15
- package/dist/cli/llm/zai-commands.d.ts.map +0 -1
- package/dist/cli/llm/zai-commands.js +0 -64
- package/dist/cli/llm/zai-commands.js.map +0 -1
- package/dist/cli/llm.d.ts +0 -13
- package/dist/cli/llm.d.ts.map +0 -1
- package/dist/cli/llm.js +0 -13
- package/dist/cli/llm.js.map +0 -1
- package/dist/cli/postinstall/claude-agents.d.ts +0 -35
- package/dist/cli/postinstall/claude-agents.d.ts.map +0 -1
- package/dist/cli/postinstall/claude-agents.js +0 -177
- package/dist/cli/postinstall/claude-agents.js.map +0 -1
- package/dist/cli/postinstall/constants.d.ts +0 -134
- package/dist/cli/postinstall/constants.d.ts.map +0 -1
- package/dist/cli/postinstall/constants.js +0 -554
- package/dist/cli/postinstall/constants.js.map +0 -1
- package/dist/cli/postinstall/fs-utils.d.ts +0 -94
- package/dist/cli/postinstall/fs-utils.d.ts.map +0 -1
- package/dist/cli/postinstall/fs-utils.js +0 -376
- package/dist/cli/postinstall/fs-utils.js.map +0 -1
- package/dist/cli/postinstall/global-config.d.ts +0 -22
- package/dist/cli/postinstall/global-config.d.ts.map +0 -1
- package/dist/cli/postinstall/global-config.js +0 -165
- package/dist/cli/postinstall/global-config.js.map +0 -1
- package/dist/cli/postinstall/inline-skills.d.ts +0 -8
- package/dist/cli/postinstall/inline-skills.d.ts.map +0 -1
- package/dist/cli/postinstall/inline-skills.js +0 -158
- package/dist/cli/postinstall/inline-skills.js.map +0 -1
- package/dist/cli/postinstall/main.d.ts +0 -20
- package/dist/cli/postinstall/main.d.ts.map +0 -1
- package/dist/cli/postinstall/main.js +0 -250
- package/dist/cli/postinstall/main.js.map +0 -1
- package/dist/cli/postinstall.d.ts +0 -9
- package/dist/cli/postinstall.d.ts.map +0 -1
- package/dist/cli/postinstall.js +0 -11
- package/dist/cli/postinstall.js.map +0 -1
- package/dist/cli/prompt.d.ts +0 -28
- package/dist/cli/prompt.d.ts.map +0 -1
- package/dist/cli/prompt.js +0 -64
- package/dist/cli/prompt.js.map +0 -1
- package/dist/cli/setup/CodexHooks.d.ts +0 -39
- package/dist/cli/setup/CodexHooks.d.ts.map +0 -1
- package/dist/cli/setup/CodexHooks.js +0 -73
- package/dist/cli/setup/CodexHooks.js.map +0 -1
- package/dist/cli/setup/GlobalInstaller.d.ts +0 -10
- package/dist/cli/setup/GlobalInstaller.d.ts.map +0 -1
- package/dist/cli/setup/GlobalInstaller.js +0 -34
- package/dist/cli/setup/GlobalInstaller.js.map +0 -1
- package/dist/cli/setup/InstallHome.d.ts +0 -27
- package/dist/cli/setup/InstallHome.d.ts.map +0 -1
- package/dist/cli/setup/InstallHome.js +0 -105
- package/dist/cli/setup/InstallHome.js.map +0 -1
- package/dist/cli/setup/LanguageDetector.d.ts +0 -15
- package/dist/cli/setup/LanguageDetector.d.ts.map +0 -1
- package/dist/cli/setup/LanguageDetector.js +0 -48
- package/dist/cli/setup/LanguageDetector.js.map +0 -1
- package/dist/cli/setup/LegacyMigration.d.ts +0 -38
- package/dist/cli/setup/LegacyMigration.d.ts.map +0 -1
- package/dist/cli/setup/LegacyMigration.js +0 -301
- package/dist/cli/setup/LegacyMigration.js.map +0 -1
- package/dist/cli/setup/NativeDeps.d.ts +0 -29
- package/dist/cli/setup/NativeDeps.d.ts.map +0 -1
- package/dist/cli/setup/NativeDeps.js +0 -79
- package/dist/cli/setup/NativeDeps.js.map +0 -1
- package/dist/cli/setup/ProjectSetup.d.ts +0 -105
- package/dist/cli/setup/ProjectSetup.d.ts.map +0 -1
- package/dist/cli/setup/ProjectSetup.js +0 -694
- package/dist/cli/setup/ProjectSetup.js.map +0 -1
- package/dist/cli/setup/Provisioner.d.ts +0 -28
- package/dist/cli/setup/Provisioner.d.ts.map +0 -1
- package/dist/cli/setup/Provisioner.js +0 -215
- package/dist/cli/setup/Provisioner.js.map +0 -1
- package/dist/cli/setup.d.ts +0 -9
- package/dist/cli/setup.d.ts.map +0 -1
- package/dist/cli/setup.js +0 -12
- package/dist/cli/setup.js.map +0 -1
- package/dist/cli/types.d.ts +0 -195
- package/dist/cli/types.d.ts.map +0 -1
- package/dist/cli/types.js +0 -5
- package/dist/cli/types.js.map +0 -1
- package/dist/cli/utils/cli-detector.d.ts +0 -35
- package/dist/cli/utils/cli-detector.d.ts.map +0 -1
- package/dist/cli/utils/cli-detector.js +0 -99
- package/dist/cli/utils/cli-detector.js.map +0 -1
- package/dist/cli/utils.d.ts +0 -49
- package/dist/cli/utils.d.ts.map +0 -1
- package/dist/cli/utils.js +0 -137
- package/dist/cli/utils.js.map +0 -1
- package/dist/infra/lib/AutomationLevel.d.ts +0 -48
- package/dist/infra/lib/AutomationLevel.d.ts.map +0 -1
- package/dist/infra/lib/AutomationLevel.js +0 -157
- package/dist/infra/lib/AutomationLevel.js.map +0 -1
- package/dist/infra/lib/ComponentRegistry.d.ts +0 -35
- package/dist/infra/lib/ComponentRegistry.d.ts.map +0 -1
- package/dist/infra/lib/ComponentRegistry.js +0 -59
- package/dist/infra/lib/ComponentRegistry.js.map +0 -1
- package/dist/infra/lib/CostAccumulator.d.ts +0 -75
- package/dist/infra/lib/CostAccumulator.d.ts.map +0 -1
- package/dist/infra/lib/CostAccumulator.js +0 -189
- package/dist/infra/lib/CostAccumulator.js.map +0 -1
- package/dist/infra/lib/DecisionTracer.d.ts +0 -85
- package/dist/infra/lib/DecisionTracer.d.ts.map +0 -1
- package/dist/infra/lib/DecisionTracer.js +0 -139
- package/dist/infra/lib/DecisionTracer.js.map +0 -1
- package/dist/infra/lib/InteractiveCheckpoint.d.ts +0 -75
- package/dist/infra/lib/InteractiveCheckpoint.d.ts.map +0 -1
- package/dist/infra/lib/InteractiveCheckpoint.js +0 -179
- package/dist/infra/lib/InteractiveCheckpoint.js.map +0 -1
- package/dist/infra/lib/IterationTracker.d.ts +0 -125
- package/dist/infra/lib/IterationTracker.d.ts.map +0 -1
- package/dist/infra/lib/IterationTracker.js +0 -444
- package/dist/infra/lib/IterationTracker.js.map +0 -1
- package/dist/infra/lib/LoopBreaker.d.ts +0 -60
- package/dist/infra/lib/LoopBreaker.d.ts.map +0 -1
- package/dist/infra/lib/LoopBreaker.js +0 -113
- package/dist/infra/lib/LoopBreaker.js.map +0 -1
- package/dist/infra/lib/MemoryManager.d.ts +0 -96
- package/dist/infra/lib/MemoryManager.d.ts.map +0 -1
- package/dist/infra/lib/MemoryManager.js +0 -312
- package/dist/infra/lib/MemoryManager.js.map +0 -1
- package/dist/infra/lib/ProjectCache.d.ts +0 -28
- package/dist/infra/lib/ProjectCache.d.ts.map +0 -1
- package/dist/infra/lib/ProjectCache.js +0 -130
- package/dist/infra/lib/ProjectCache.js.map +0 -1
- package/dist/infra/lib/PythonParser.d.ts +0 -47
- package/dist/infra/lib/PythonParser.d.ts.map +0 -1
- package/dist/infra/lib/PythonParser.js +0 -268
- package/dist/infra/lib/PythonParser.js.map +0 -1
- package/dist/infra/lib/SkillFrontmatter.d.ts +0 -70
- package/dist/infra/lib/SkillFrontmatter.d.ts.map +0 -1
- package/dist/infra/lib/SkillFrontmatter.js +0 -240
- package/dist/infra/lib/SkillFrontmatter.js.map +0 -1
- package/dist/infra/lib/TaskContext.d.ts +0 -43
- package/dist/infra/lib/TaskContext.d.ts.map +0 -1
- package/dist/infra/lib/TaskContext.js +0 -84
- package/dist/infra/lib/TaskContext.js.map +0 -1
- package/dist/infra/lib/VerificationLoop.d.ts +0 -171
- package/dist/infra/lib/VerificationLoop.d.ts.map +0 -1
- package/dist/infra/lib/VerificationLoop.js +0 -308
- package/dist/infra/lib/VerificationLoop.js.map +0 -1
- package/dist/infra/lib/antigravity/auth.d.ts +0 -18
- package/dist/infra/lib/antigravity/auth.d.ts.map +0 -1
- package/dist/infra/lib/antigravity/auth.js +0 -32
- package/dist/infra/lib/antigravity/auth.js.map +0 -1
- package/dist/infra/lib/antigravity/capabilities.d.ts +0 -28
- package/dist/infra/lib/antigravity/capabilities.d.ts.map +0 -1
- package/dist/infra/lib/antigravity/capabilities.js +0 -178
- package/dist/infra/lib/antigravity/capabilities.js.map +0 -1
- package/dist/infra/lib/antigravity/chat.d.ts +0 -34
- package/dist/infra/lib/antigravity/chat.d.ts.map +0 -1
- package/dist/infra/lib/antigravity/chat.js +0 -166
- package/dist/infra/lib/antigravity/chat.js.map +0 -1
- package/dist/infra/lib/antigravity/completion.d.ts +0 -12
- package/dist/infra/lib/antigravity/completion.d.ts.map +0 -1
- package/dist/infra/lib/antigravity/completion.js +0 -13
- package/dist/infra/lib/antigravity/completion.js.map +0 -1
- package/dist/infra/lib/antigravity/constants.d.ts +0 -8
- package/dist/infra/lib/antigravity/constants.d.ts.map +0 -1
- package/dist/infra/lib/antigravity/constants.js +0 -11
- package/dist/infra/lib/antigravity/constants.js.map +0 -1
- package/dist/infra/lib/antigravity/index.d.ts +0 -13
- package/dist/infra/lib/antigravity/index.d.ts.map +0 -1
- package/dist/infra/lib/antigravity/index.js +0 -12
- package/dist/infra/lib/antigravity/index.js.map +0 -1
- package/dist/infra/lib/antigravity/models.d.ts +0 -11
- package/dist/infra/lib/antigravity/models.d.ts.map +0 -1
- package/dist/infra/lib/antigravity/models.js +0 -38
- package/dist/infra/lib/antigravity/models.js.map +0 -1
- package/dist/infra/lib/antigravity/orchestration.d.ts +0 -33
- package/dist/infra/lib/antigravity/orchestration.d.ts.map +0 -1
- package/dist/infra/lib/antigravity/orchestration.js +0 -74
- package/dist/infra/lib/antigravity/orchestration.js.map +0 -1
- package/dist/infra/lib/antigravity/types.d.ts +0 -123
- package/dist/infra/lib/antigravity/types.d.ts.map +0 -1
- package/dist/infra/lib/antigravity/types.js +0 -5
- package/dist/infra/lib/antigravity/types.js.map +0 -1
- package/dist/infra/lib/browser/capture.d.ts +0 -26
- package/dist/infra/lib/browser/capture.d.ts.map +0 -1
- package/dist/infra/lib/browser/capture.js +0 -115
- package/dist/infra/lib/browser/capture.js.map +0 -1
- package/dist/infra/lib/browser/compare.d.ts +0 -46
- package/dist/infra/lib/browser/compare.d.ts.map +0 -1
- package/dist/infra/lib/browser/compare.js +0 -188
- package/dist/infra/lib/browser/compare.js.map +0 -1
- package/dist/infra/lib/browser/index.d.ts +0 -6
- package/dist/infra/lib/browser/index.d.ts.map +0 -1
- package/dist/infra/lib/browser/index.js +0 -4
- package/dist/infra/lib/browser/index.js.map +0 -1
- package/dist/infra/lib/browser/launch.d.ts +0 -19
- package/dist/infra/lib/browser/launch.d.ts.map +0 -1
- package/dist/infra/lib/browser/launch.js +0 -58
- package/dist/infra/lib/browser/launch.js.map +0 -1
- package/dist/infra/lib/browser/types.d.ts +0 -103
- package/dist/infra/lib/browser/types.d.ts.map +0 -1
- package/dist/infra/lib/browser/types.js +0 -8
- package/dist/infra/lib/browser/types.js.map +0 -1
- package/dist/infra/lib/codex-proxy.d.ts +0 -150
- package/dist/infra/lib/codex-proxy.d.ts.map +0 -1
- package/dist/infra/lib/codex-proxy.js +0 -961
- package/dist/infra/lib/codex-proxy.js.map +0 -1
- package/dist/infra/lib/config/GlobalConfigManager.d.ts +0 -40
- package/dist/infra/lib/config/GlobalConfigManager.d.ts.map +0 -1
- package/dist/infra/lib/config/GlobalConfigManager.js +0 -396
- package/dist/infra/lib/config/GlobalConfigManager.js.map +0 -1
- package/dist/infra/lib/constants.d.ts +0 -81
- package/dist/infra/lib/constants.d.ts.map +0 -1
- package/dist/infra/lib/constants.js +0 -97
- package/dist/infra/lib/constants.js.map +0 -1
- package/dist/infra/lib/embedding/EmbeddingProvider.d.ts +0 -20
- package/dist/infra/lib/embedding/EmbeddingProvider.d.ts.map +0 -1
- package/dist/infra/lib/embedding/EmbeddingProvider.js +0 -83
- package/dist/infra/lib/embedding/EmbeddingProvider.js.map +0 -1
- package/dist/infra/lib/embedding/VectorStore.d.ts +0 -54
- package/dist/infra/lib/embedding/VectorStore.d.ts.map +0 -1
- package/dist/infra/lib/embedding/VectorStore.js +0 -139
- package/dist/infra/lib/embedding/VectorStore.js.map +0 -1
- package/dist/infra/lib/embedding/cosine.d.ts +0 -19
- package/dist/infra/lib/embedding/cosine.d.ts.map +0 -1
- package/dist/infra/lib/embedding/cosine.js +0 -40
- package/dist/infra/lib/embedding/cosine.js.map +0 -1
- package/dist/infra/lib/embedding/index.d.ts +0 -9
- package/dist/infra/lib/embedding/index.d.ts.map +0 -1
- package/dist/infra/lib/embedding/index.js +0 -8
- package/dist/infra/lib/embedding/index.js.map +0 -1
- package/dist/infra/lib/embedding/types.d.ts +0 -30
- package/dist/infra/lib/embedding/types.d.ts.map +0 -1
- package/dist/infra/lib/embedding/types.js +0 -12
- package/dist/infra/lib/embedding/types.js.map +0 -1
- package/dist/infra/lib/evolution/AgentAnalyzer.d.ts +0 -15
- package/dist/infra/lib/evolution/AgentAnalyzer.d.ts.map +0 -1
- package/dist/infra/lib/evolution/AgentAnalyzer.js +0 -84
- package/dist/infra/lib/evolution/AgentAnalyzer.js.map +0 -1
- package/dist/infra/lib/evolution/CircuitBreaker.d.ts +0 -31
- package/dist/infra/lib/evolution/CircuitBreaker.d.ts.map +0 -1
- package/dist/infra/lib/evolution/CircuitBreaker.js +0 -86
- package/dist/infra/lib/evolution/CircuitBreaker.js.map +0 -1
- package/dist/infra/lib/evolution/DeprecationDetector.d.ts +0 -68
- package/dist/infra/lib/evolution/DeprecationDetector.d.ts.map +0 -1
- package/dist/infra/lib/evolution/DeprecationDetector.js +0 -207
- package/dist/infra/lib/evolution/DeprecationDetector.js.map +0 -1
- package/dist/infra/lib/evolution/DescriptionOptimizer.d.ts +0 -124
- package/dist/infra/lib/evolution/DescriptionOptimizer.d.ts.map +0 -1
- package/dist/infra/lib/evolution/DescriptionOptimizer.js +0 -410
- package/dist/infra/lib/evolution/DescriptionOptimizer.js.map +0 -1
- package/dist/infra/lib/evolution/EvolutionOrchestrator.d.ts +0 -35
- package/dist/infra/lib/evolution/EvolutionOrchestrator.d.ts.map +0 -1
- package/dist/infra/lib/evolution/EvolutionOrchestrator.js +0 -212
- package/dist/infra/lib/evolution/EvolutionOrchestrator.js.map +0 -1
- package/dist/infra/lib/evolution/GenerationRegistry.d.ts +0 -53
- package/dist/infra/lib/evolution/GenerationRegistry.d.ts.map +0 -1
- package/dist/infra/lib/evolution/GenerationRegistry.js +0 -121
- package/dist/infra/lib/evolution/GenerationRegistry.js.map +0 -1
- package/dist/infra/lib/evolution/GuardAnalyzer.d.ts +0 -44
- package/dist/infra/lib/evolution/GuardAnalyzer.d.ts.map +0 -1
- package/dist/infra/lib/evolution/GuardAnalyzer.js +0 -116
- package/dist/infra/lib/evolution/GuardAnalyzer.js.map +0 -1
- package/dist/infra/lib/evolution/HookTraceReader.d.ts +0 -45
- package/dist/infra/lib/evolution/HookTraceReader.d.ts.map +0 -1
- package/dist/infra/lib/evolution/HookTraceReader.js +0 -108
- package/dist/infra/lib/evolution/HookTraceReader.js.map +0 -1
- package/dist/infra/lib/evolution/InsightExtractor.d.ts +0 -24
- package/dist/infra/lib/evolution/InsightExtractor.d.ts.map +0 -1
- package/dist/infra/lib/evolution/InsightExtractor.js +0 -131
- package/dist/infra/lib/evolution/InsightExtractor.js.map +0 -1
- package/dist/infra/lib/evolution/InsightStore.d.ts +0 -55
- package/dist/infra/lib/evolution/InsightStore.d.ts.map +0 -1
- package/dist/infra/lib/evolution/InsightStore.js +0 -219
- package/dist/infra/lib/evolution/InsightStore.js.map +0 -1
- package/dist/infra/lib/evolution/LifecycleManager.d.ts +0 -43
- package/dist/infra/lib/evolution/LifecycleManager.d.ts.map +0 -1
- package/dist/infra/lib/evolution/LifecycleManager.js +0 -134
- package/dist/infra/lib/evolution/LifecycleManager.js.map +0 -1
- package/dist/infra/lib/evolution/ParityTester.d.ts +0 -74
- package/dist/infra/lib/evolution/ParityTester.d.ts.map +0 -1
- package/dist/infra/lib/evolution/ParityTester.js +0 -238
- package/dist/infra/lib/evolution/ParityTester.js.map +0 -1
- package/dist/infra/lib/evolution/RollbackManager.d.ts +0 -26
- package/dist/infra/lib/evolution/RollbackManager.d.ts.map +0 -1
- package/dist/infra/lib/evolution/RollbackManager.js +0 -133
- package/dist/infra/lib/evolution/RollbackManager.js.map +0 -1
- package/dist/infra/lib/evolution/SkillBenchmark.d.ts +0 -81
- package/dist/infra/lib/evolution/SkillBenchmark.d.ts.map +0 -1
- package/dist/infra/lib/evolution/SkillBenchmark.js +0 -233
- package/dist/infra/lib/evolution/SkillBenchmark.js.map +0 -1
- package/dist/infra/lib/evolution/SkillClassifier.d.ts +0 -35
- package/dist/infra/lib/evolution/SkillClassifier.d.ts.map +0 -1
- package/dist/infra/lib/evolution/SkillClassifier.js +0 -167
- package/dist/infra/lib/evolution/SkillClassifier.js.map +0 -1
- package/dist/infra/lib/evolution/SkillEvalRunner.d.ts +0 -102
- package/dist/infra/lib/evolution/SkillEvalRunner.d.ts.map +0 -1
- package/dist/infra/lib/evolution/SkillEvalRunner.js +0 -256
- package/dist/infra/lib/evolution/SkillEvalRunner.js.map +0 -1
- package/dist/infra/lib/evolution/SkillGapDetector.d.ts +0 -22
- package/dist/infra/lib/evolution/SkillGapDetector.d.ts.map +0 -1
- package/dist/infra/lib/evolution/SkillGapDetector.js +0 -81
- package/dist/infra/lib/evolution/SkillGapDetector.js.map +0 -1
- package/dist/infra/lib/evolution/TriggerCollisionDetector.d.ts +0 -27
- package/dist/infra/lib/evolution/TriggerCollisionDetector.d.ts.map +0 -1
- package/dist/infra/lib/evolution/TriggerCollisionDetector.js +0 -100
- package/dist/infra/lib/evolution/TriggerCollisionDetector.js.map +0 -1
- package/dist/infra/lib/evolution/UsageTracker.d.ts +0 -53
- package/dist/infra/lib/evolution/UsageTracker.d.ts.map +0 -1
- package/dist/infra/lib/evolution/UsageTracker.js +0 -157
- package/dist/infra/lib/evolution/UsageTracker.js.map +0 -1
- package/dist/infra/lib/evolution/generators/AgentGenerator.d.ts +0 -14
- package/dist/infra/lib/evolution/generators/AgentGenerator.d.ts.map +0 -1
- package/dist/infra/lib/evolution/generators/AgentGenerator.js +0 -55
- package/dist/infra/lib/evolution/generators/AgentGenerator.js.map +0 -1
- package/dist/infra/lib/evolution/generators/RuleGenerator.d.ts +0 -13
- package/dist/infra/lib/evolution/generators/RuleGenerator.d.ts.map +0 -1
- package/dist/infra/lib/evolution/generators/RuleGenerator.js +0 -52
- package/dist/infra/lib/evolution/generators/RuleGenerator.js.map +0 -1
- package/dist/infra/lib/evolution/generators/SkillGenerator.d.ts +0 -15
- package/dist/infra/lib/evolution/generators/SkillGenerator.d.ts.map +0 -1
- package/dist/infra/lib/evolution/generators/SkillGenerator.js +0 -73
- package/dist/infra/lib/evolution/generators/SkillGenerator.js.map +0 -1
- package/dist/infra/lib/evolution/index.d.ts +0 -39
- package/dist/infra/lib/evolution/index.d.ts.map +0 -1
- package/dist/infra/lib/evolution/index.js +0 -32
- package/dist/infra/lib/evolution/index.js.map +0 -1
- package/dist/infra/lib/figma/api.d.ts +0 -9
- package/dist/infra/lib/figma/api.d.ts.map +0 -1
- package/dist/infra/lib/figma/api.js +0 -73
- package/dist/infra/lib/figma/api.js.map +0 -1
- package/dist/infra/lib/figma/audit.d.ts +0 -37
- package/dist/infra/lib/figma/audit.d.ts.map +0 -1
- package/dist/infra/lib/figma/audit.js +0 -128
- package/dist/infra/lib/figma/audit.js.map +0 -1
- package/dist/infra/lib/figma/extract.d.ts +0 -37
- package/dist/infra/lib/figma/extract.d.ts.map +0 -1
- package/dist/infra/lib/figma/extract.js +0 -414
- package/dist/infra/lib/figma/extract.js.map +0 -1
- package/dist/infra/lib/figma/index.d.ts +0 -6
- package/dist/infra/lib/figma/index.d.ts.map +0 -1
- package/dist/infra/lib/figma/index.js +0 -4
- package/dist/infra/lib/figma/index.js.map +0 -1
- package/dist/infra/lib/figma/types.d.ts +0 -182
- package/dist/infra/lib/figma/types.d.ts.map +0 -1
- package/dist/infra/lib/figma/types.js +0 -13
- package/dist/infra/lib/figma/types.js.map +0 -1
- package/dist/infra/lib/gpt/auth.d.ts +0 -31
- package/dist/infra/lib/gpt/auth.d.ts.map +0 -1
- package/dist/infra/lib/gpt/auth.js +0 -178
- package/dist/infra/lib/gpt/auth.js.map +0 -1
- package/dist/infra/lib/gpt/chat.d.ts +0 -40
- package/dist/infra/lib/gpt/chat.d.ts.map +0 -1
- package/dist/infra/lib/gpt/chat.js +0 -514
- package/dist/infra/lib/gpt/chat.js.map +0 -1
- package/dist/infra/lib/gpt/constants.d.ts +0 -9
- package/dist/infra/lib/gpt/constants.d.ts.map +0 -1
- package/dist/infra/lib/gpt/constants.js +0 -13
- package/dist/infra/lib/gpt/constants.js.map +0 -1
- package/dist/infra/lib/gpt/embedding.d.ts +0 -15
- package/dist/infra/lib/gpt/embedding.d.ts.map +0 -1
- package/dist/infra/lib/gpt/embedding.js +0 -80
- package/dist/infra/lib/gpt/embedding.js.map +0 -1
- package/dist/infra/lib/gpt/index.d.ts +0 -17
- package/dist/infra/lib/gpt/index.d.ts.map +0 -1
- package/dist/infra/lib/gpt/index.js +0 -17
- package/dist/infra/lib/gpt/index.js.map +0 -1
- package/dist/infra/lib/gpt/oauth.d.ts +0 -39
- package/dist/infra/lib/gpt/oauth.d.ts.map +0 -1
- package/dist/infra/lib/gpt/oauth.js +0 -103
- package/dist/infra/lib/gpt/oauth.js.map +0 -1
- package/dist/infra/lib/gpt/orchestration.d.ts +0 -28
- package/dist/infra/lib/gpt/orchestration.d.ts.map +0 -1
- package/dist/infra/lib/gpt/orchestration.js +0 -64
- package/dist/infra/lib/gpt/orchestration.js.map +0 -1
- package/dist/infra/lib/gpt/specializations.d.ts +0 -12
- package/dist/infra/lib/gpt/specializations.d.ts.map +0 -1
- package/dist/infra/lib/gpt/specializations.js +0 -32
- package/dist/infra/lib/gpt/specializations.js.map +0 -1
- package/dist/infra/lib/gpt/types.d.ts +0 -80
- package/dist/infra/lib/gpt/types.d.ts.map +0 -1
- package/dist/infra/lib/gpt/types.js +0 -5
- package/dist/infra/lib/gpt/types.js.map +0 -1
- package/dist/infra/lib/llm/auth/ApiKeyManager.d.ts +0 -21
- package/dist/infra/lib/llm/auth/ApiKeyManager.d.ts.map +0 -1
- package/dist/infra/lib/llm/auth/ApiKeyManager.js +0 -43
- package/dist/infra/lib/llm/auth/ApiKeyManager.js.map +0 -1
- package/dist/infra/lib/llm/auth/AuthProfileManager.d.ts +0 -59
- package/dist/infra/lib/llm/auth/AuthProfileManager.d.ts.map +0 -1
- package/dist/infra/lib/llm/auth/AuthProfileManager.js +0 -248
- package/dist/infra/lib/llm/auth/AuthProfileManager.js.map +0 -1
- package/dist/infra/lib/llm/auth/ConfigManager.d.ts +0 -32
- package/dist/infra/lib/llm/auth/ConfigManager.d.ts.map +0 -1
- package/dist/infra/lib/llm/auth/ConfigManager.js +0 -66
- package/dist/infra/lib/llm/auth/ConfigManager.js.map +0 -1
- package/dist/infra/lib/llm/auth/ProfileFileLock.d.ts +0 -16
- package/dist/infra/lib/llm/auth/ProfileFileLock.d.ts.map +0 -1
- package/dist/infra/lib/llm/auth/ProfileFileLock.js +0 -99
- package/dist/infra/lib/llm/auth/ProfileFileLock.js.map +0 -1
- package/dist/infra/lib/llm/auth/TokenRefresher.d.ts +0 -35
- package/dist/infra/lib/llm/auth/TokenRefresher.d.ts.map +0 -1
- package/dist/infra/lib/llm/auth/TokenRefresher.js +0 -217
- package/dist/infra/lib/llm/auth/TokenRefresher.js.map +0 -1
- package/dist/infra/lib/llm/auth/index.d.ts +0 -20
- package/dist/infra/lib/llm/auth/index.d.ts.map +0 -1
- package/dist/infra/lib/llm/auth/index.js +0 -28
- package/dist/infra/lib/llm/auth/index.js.map +0 -1
- package/dist/infra/lib/llm/index.d.ts +0 -10
- package/dist/infra/lib/llm/index.d.ts.map +0 -1
- package/dist/infra/lib/llm/index.js +0 -12
- package/dist/infra/lib/llm/index.js.map +0 -1
- package/dist/infra/lib/llm/timeout.d.ts +0 -34
- package/dist/infra/lib/llm/timeout.d.ts.map +0 -1
- package/dist/infra/lib/llm/timeout.js +0 -45
- package/dist/infra/lib/llm/timeout.js.map +0 -1
- package/dist/infra/lib/llm/types.d.ts +0 -96
- package/dist/infra/lib/llm/types.d.ts.map +0 -1
- package/dist/infra/lib/llm/types.js +0 -17
- package/dist/infra/lib/llm/types.js.map +0 -1
- package/dist/infra/lib/llm/utils/index.d.ts +0 -6
- package/dist/infra/lib/llm/utils/index.d.ts.map +0 -1
- package/dist/infra/lib/llm/utils/index.js +0 -6
- package/dist/infra/lib/llm/utils/index.js.map +0 -1
- package/dist/infra/lib/llm/utils/retry.d.ts +0 -25
- package/dist/infra/lib/llm/utils/retry.d.ts.map +0 -1
- package/dist/infra/lib/llm/utils/retry.js +0 -72
- package/dist/infra/lib/llm/utils/retry.js.map +0 -1
- package/dist/infra/lib/llm/utils/stream.d.ts +0 -13
- package/dist/infra/lib/llm/utils/stream.d.ts.map +0 -1
- package/dist/infra/lib/llm/utils/stream.js +0 -110
- package/dist/infra/lib/llm/utils/stream.js.map +0 -1
- package/dist/infra/lib/llm-availability.d.ts +0 -28
- package/dist/infra/lib/llm-availability.d.ts.map +0 -1
- package/dist/infra/lib/llm-availability.js +0 -69
- package/dist/infra/lib/llm-availability.js.map +0 -1
- package/dist/infra/lib/memory/IMemoryStorage.d.ts +0 -16
- package/dist/infra/lib/memory/IMemoryStorage.d.ts.map +0 -1
- package/dist/infra/lib/memory/IMemoryStorage.js +0 -7
- package/dist/infra/lib/memory/IMemoryStorage.js.map +0 -1
- package/dist/infra/lib/memory/InMemoryStorage.d.ts +0 -13
- package/dist/infra/lib/memory/InMemoryStorage.d.ts.map +0 -1
- package/dist/infra/lib/memory/InMemoryStorage.js +0 -44
- package/dist/infra/lib/memory/InMemoryStorage.js.map +0 -1
- package/dist/infra/lib/memory/KnowledgeGraph.d.ts +0 -34
- package/dist/infra/lib/memory/KnowledgeGraph.d.ts.map +0 -1
- package/dist/infra/lib/memory/KnowledgeGraph.js +0 -222
- package/dist/infra/lib/memory/KnowledgeGraph.js.map +0 -1
- package/dist/infra/lib/memory/MemorySearch.d.ts +0 -59
- package/dist/infra/lib/memory/MemorySearch.d.ts.map +0 -1
- package/dist/infra/lib/memory/MemorySearch.js +0 -330
- package/dist/infra/lib/memory/MemorySearch.js.map +0 -1
- package/dist/infra/lib/memory/MemoryStorage.d.ts +0 -133
- package/dist/infra/lib/memory/MemoryStorage.d.ts.map +0 -1
- package/dist/infra/lib/memory/MemoryStorage.js +0 -612
- package/dist/infra/lib/memory/MemoryStorage.js.map +0 -1
- package/dist/infra/lib/memory/ObservationStore.d.ts +0 -61
- package/dist/infra/lib/memory/ObservationStore.d.ts.map +0 -1
- package/dist/infra/lib/memory/ObservationStore.js +0 -119
- package/dist/infra/lib/memory/ObservationStore.js.map +0 -1
- package/dist/infra/lib/memory/ReflectionStore.d.ts +0 -60
- package/dist/infra/lib/memory/ReflectionStore.d.ts.map +0 -1
- package/dist/infra/lib/memory/ReflectionStore.js +0 -153
- package/dist/infra/lib/memory/ReflectionStore.js.map +0 -1
- package/dist/infra/lib/memory/SessionRAGRetriever.d.ts +0 -89
- package/dist/infra/lib/memory/SessionRAGRetriever.d.ts.map +0 -1
- package/dist/infra/lib/memory/SessionRAGRetriever.js +0 -348
- package/dist/infra/lib/memory/SessionRAGRetriever.js.map +0 -1
- package/dist/infra/lib/memory/SessionRAGStore.d.ts +0 -168
- package/dist/infra/lib/memory/SessionRAGStore.d.ts.map +0 -1
- package/dist/infra/lib/memory/SessionRAGStore.js +0 -763
- package/dist/infra/lib/memory/SessionRAGStore.js.map +0 -1
- package/dist/infra/lib/memory/SessionSummarizer.d.ts +0 -50
- package/dist/infra/lib/memory/SessionSummarizer.d.ts.map +0 -1
- package/dist/infra/lib/memory/SessionSummarizer.js +0 -157
- package/dist/infra/lib/memory/SessionSummarizer.js.map +0 -1
- package/dist/infra/lib/memory/index.d.ts +0 -15
- package/dist/infra/lib/memory/index.d.ts.map +0 -1
- package/dist/infra/lib/memory/index.js +0 -16
- package/dist/infra/lib/memory/index.js.map +0 -1
- package/dist/infra/lib/telemetry/SkillTelemetry.d.ts +0 -66
- package/dist/infra/lib/telemetry/SkillTelemetry.d.ts.map +0 -1
- package/dist/infra/lib/telemetry/SkillTelemetry.js +0 -168
- package/dist/infra/lib/telemetry/SkillTelemetry.js.map +0 -1
- package/dist/infra/lib/telemetry/VibeSpan.d.ts +0 -20
- package/dist/infra/lib/telemetry/VibeSpan.d.ts.map +0 -1
- package/dist/infra/lib/telemetry/VibeSpan.js +0 -26
- package/dist/infra/lib/telemetry/VibeSpan.js.map +0 -1
- package/dist/infra/lib/ui-ux/Bm25Engine.d.ts +0 -67
- package/dist/infra/lib/ui-ux/Bm25Engine.d.ts.map +0 -1
- package/dist/infra/lib/ui-ux/Bm25Engine.js +0 -153
- package/dist/infra/lib/ui-ux/Bm25Engine.js.map +0 -1
- package/dist/infra/lib/ui-ux/CsvDataLoader.d.ts +0 -57
- package/dist/infra/lib/ui-ux/CsvDataLoader.d.ts.map +0 -1
- package/dist/infra/lib/ui-ux/CsvDataLoader.js +0 -158
- package/dist/infra/lib/ui-ux/CsvDataLoader.js.map +0 -1
- package/dist/infra/lib/ui-ux/DesignSystemGenerator.d.ts +0 -119
- package/dist/infra/lib/ui-ux/DesignSystemGenerator.d.ts.map +0 -1
- package/dist/infra/lib/ui-ux/DesignSystemGenerator.js +0 -519
- package/dist/infra/lib/ui-ux/DesignSystemGenerator.js.map +0 -1
- package/dist/infra/lib/ui-ux/SearchService.d.ts +0 -64
- package/dist/infra/lib/ui-ux/SearchService.d.ts.map +0 -1
- package/dist/infra/lib/ui-ux/SearchService.js +0 -240
- package/dist/infra/lib/ui-ux/SearchService.js.map +0 -1
- package/dist/infra/lib/ui-ux/UiUxWorkflow.d.ts +0 -58
- package/dist/infra/lib/ui-ux/UiUxWorkflow.d.ts.map +0 -1
- package/dist/infra/lib/ui-ux/UiUxWorkflow.js +0 -181
- package/dist/infra/lib/ui-ux/UiUxWorkflow.js.map +0 -1
- package/dist/infra/lib/ui-ux/constants.d.ts +0 -39
- package/dist/infra/lib/ui-ux/constants.d.ts.map +0 -1
- package/dist/infra/lib/ui-ux/constants.js +0 -203
- package/dist/infra/lib/ui-ux/constants.js.map +0 -1
- package/dist/infra/lib/ui-ux/index.d.ts +0 -11
- package/dist/infra/lib/ui-ux/index.d.ts.map +0 -1
- package/dist/infra/lib/ui-ux/index.js +0 -11
- package/dist/infra/lib/ui-ux/index.js.map +0 -1
- package/dist/infra/lib/ui-ux/types.d.ts +0 -243
- package/dist/infra/lib/ui-ux/types.d.ts.map +0 -1
- package/dist/infra/lib/ui-ux/types.js +0 -7
- package/dist/infra/lib/ui-ux/types.js.map +0 -1
- package/dist/infra/lib/utils.d.ts +0 -66
- package/dist/infra/lib/utils.d.ts.map +0 -1
- package/dist/infra/lib/utils.js +0 -152
- package/dist/infra/lib/utils.js.map +0 -1
- package/dist/infra/lib/zai/client.d.ts +0 -30
- package/dist/infra/lib/zai/client.d.ts.map +0 -1
- package/dist/infra/lib/zai/client.js +0 -124
- package/dist/infra/lib/zai/client.js.map +0 -1
- package/dist/infra/lib/zai/index.d.ts +0 -11
- package/dist/infra/lib/zai/index.d.ts.map +0 -1
- package/dist/infra/lib/zai/index.js +0 -10
- package/dist/infra/lib/zai/index.js.map +0 -1
- package/dist/infra/lib/zai/orchestration.d.ts +0 -15
- package/dist/infra/lib/zai/orchestration.d.ts.map +0 -1
- package/dist/infra/lib/zai/orchestration.js +0 -54
- package/dist/infra/lib/zai/orchestration.js.map +0 -1
- package/dist/infra/lib/zai/types.d.ts +0 -40
- package/dist/infra/lib/zai/types.d.ts.map +0 -1
- package/dist/infra/lib/zai/types.js +0 -5
- package/dist/infra/lib/zai/types.js.map +0 -1
- package/dist/infra/types/tool.d.ts +0 -71
- package/dist/infra/types/tool.d.ts.map +0 -1
- package/dist/infra/types/tool.js +0 -3
- package/dist/infra/types/tool.js.map +0 -1
- package/dist/tools/convention/analyzeComplexity.d.ts +0 -9
- package/dist/tools/convention/analyzeComplexity.d.ts.map +0 -1
- package/dist/tools/convention/analyzeComplexity.js +0 -330
- package/dist/tools/convention/analyzeComplexity.js.map +0 -1
- package/dist/tools/convention/applyQualityRules.d.ts +0 -7
- package/dist/tools/convention/applyQualityRules.d.ts.map +0 -1
- package/dist/tools/convention/applyQualityRules.js +0 -107
- package/dist/tools/convention/applyQualityRules.js.map +0 -1
- package/dist/tools/convention/checkCouplingCohesion.d.ts +0 -8
- package/dist/tools/convention/checkCouplingCohesion.d.ts.map +0 -1
- package/dist/tools/convention/checkCouplingCohesion.js +0 -224
- package/dist/tools/convention/checkCouplingCohesion.js.map +0 -1
- package/dist/tools/convention/index.d.ts +0 -9
- package/dist/tools/convention/index.d.ts.map +0 -1
- package/dist/tools/convention/index.js +0 -9
- package/dist/tools/convention/index.js.map +0 -1
- package/dist/tools/convention/suggestImprovements.d.ts +0 -8
- package/dist/tools/convention/suggestImprovements.d.ts.map +0 -1
- package/dist/tools/convention/suggestImprovements.js +0 -262
- package/dist/tools/convention/suggestImprovements.js.map +0 -1
- package/dist/tools/convention/validateCodeQuality.d.ts +0 -41
- package/dist/tools/convention/validateCodeQuality.d.ts.map +0 -1
- package/dist/tools/convention/validateCodeQuality.js +0 -327
- package/dist/tools/convention/validateCodeQuality.js.map +0 -1
- package/dist/tools/dispatch/costGate.d.ts +0 -59
- package/dist/tools/dispatch/costGate.d.ts.map +0 -1
- package/dist/tools/dispatch/costGate.js +0 -85
- package/dist/tools/dispatch/costGate.js.map +0 -1
- package/dist/tools/dispatch/deterministicSignals.d.ts +0 -61
- package/dist/tools/dispatch/deterministicSignals.d.ts.map +0 -1
- package/dist/tools/dispatch/deterministicSignals.js +0 -136
- package/dist/tools/dispatch/deterministicSignals.js.map +0 -1
- package/dist/tools/dispatch/index.d.ts +0 -5
- package/dist/tools/dispatch/index.d.ts.map +0 -1
- package/dist/tools/dispatch/index.js +0 -3
- package/dist/tools/dispatch/index.js.map +0 -1
- package/dist/tools/dispatch/vibePaths.d.ts +0 -7
- package/dist/tools/dispatch/vibePaths.d.ts.map +0 -1
- package/dist/tools/dispatch/vibePaths.js +0 -35
- package/dist/tools/dispatch/vibePaths.js.map +0 -1
- package/dist/tools/docs/agentsMd.d.ts +0 -45
- package/dist/tools/docs/agentsMd.d.ts.map +0 -1
- package/dist/tools/docs/agentsMd.js +0 -51
- package/dist/tools/docs/agentsMd.js.map +0 -1
- package/dist/tools/docs/cacheSurface.d.ts +0 -37
- package/dist/tools/docs/cacheSurface.d.ts.map +0 -1
- package/dist/tools/docs/cacheSurface.js +0 -98
- package/dist/tools/docs/cacheSurface.js.map +0 -1
- package/dist/tools/evolution/dashboardTools.d.ts +0 -26
- package/dist/tools/evolution/dashboardTools.d.ts.map +0 -1
- package/dist/tools/evolution/dashboardTools.js +0 -216
- package/dist/tools/evolution/dashboardTools.js.map +0 -1
- package/dist/tools/evolution/index.d.ts +0 -3
- package/dist/tools/evolution/index.d.ts.map +0 -1
- package/dist/tools/evolution/index.js +0 -6
- package/dist/tools/evolution/index.js.map +0 -1
- package/dist/tools/evolution/insightTools.d.ts +0 -21
- package/dist/tools/evolution/insightTools.d.ts.map +0 -1
- package/dist/tools/evolution/insightTools.js +0 -184
- package/dist/tools/evolution/insightTools.js.map +0 -1
- package/dist/tools/index.d.ts +0 -75
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -88
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/interaction/askUser.d.ts +0 -113
- package/dist/tools/interaction/askUser.d.ts.map +0 -1
- package/dist/tools/interaction/askUser.js +0 -502
- package/dist/tools/interaction/askUser.js.map +0 -1
- package/dist/tools/interaction/index.d.ts +0 -6
- package/dist/tools/interaction/index.d.ts.map +0 -1
- package/dist/tools/interaction/index.js +0 -15
- package/dist/tools/interaction/index.js.map +0 -1
- package/dist/tools/loop/index.d.ts +0 -6
- package/dist/tools/loop/index.d.ts.map +0 -1
- package/dist/tools/loop/index.js +0 -5
- package/dist/tools/loop/index.js.map +0 -1
- package/dist/tools/loop/validateLoopDefinition.d.ts +0 -67
- package/dist/tools/loop/validateLoopDefinition.d.ts.map +0 -1
- package/dist/tools/loop/validateLoopDefinition.js +0 -281
- package/dist/tools/loop/validateLoopDefinition.js.map +0 -1
- package/dist/tools/memory/addObservation.d.ts +0 -16
- package/dist/tools/memory/addObservation.d.ts.map +0 -1
- package/dist/tools/memory/addObservation.js +0 -71
- package/dist/tools/memory/addObservation.js.map +0 -1
- package/dist/tools/memory/autoSaveContext.d.ts +0 -11
- package/dist/tools/memory/autoSaveContext.d.ts.map +0 -1
- package/dist/tools/memory/autoSaveContext.js +0 -71
- package/dist/tools/memory/autoSaveContext.js.map +0 -1
- package/dist/tools/memory/createMemoryTimeline.d.ts +0 -13
- package/dist/tools/memory/createMemoryTimeline.d.ts.map +0 -1
- package/dist/tools/memory/createMemoryTimeline.js +0 -193
- package/dist/tools/memory/createMemoryTimeline.js.map +0 -1
- package/dist/tools/memory/deleteMemory.d.ts +0 -7
- package/dist/tools/memory/deleteMemory.d.ts.map +0 -1
- package/dist/tools/memory/deleteMemory.js +0 -45
- package/dist/tools/memory/deleteMemory.js.map +0 -1
- package/dist/tools/memory/getMemoryGraph.d.ts +0 -12
- package/dist/tools/memory/getMemoryGraph.d.ts.map +0 -1
- package/dist/tools/memory/getMemoryGraph.js +0 -204
- package/dist/tools/memory/getMemoryGraph.js.map +0 -1
- package/dist/tools/memory/getSessionContext.d.ts +0 -14
- package/dist/tools/memory/getSessionContext.d.ts.map +0 -1
- package/dist/tools/memory/getSessionContext.js +0 -252
- package/dist/tools/memory/getSessionContext.js.map +0 -1
- package/dist/tools/memory/index.d.ts +0 -25
- package/dist/tools/memory/index.d.ts.map +0 -1
- package/dist/tools/memory/index.js +0 -27
- package/dist/tools/memory/index.js.map +0 -1
- package/dist/tools/memory/linkMemories.d.ts +0 -13
- package/dist/tools/memory/linkMemories.d.ts.map +0 -1
- package/dist/tools/memory/linkMemories.js +0 -116
- package/dist/tools/memory/linkMemories.js.map +0 -1
- package/dist/tools/memory/listMemories.d.ts +0 -8
- package/dist/tools/memory/listMemories.d.ts.map +0 -1
- package/dist/tools/memory/listMemories.js +0 -48
- package/dist/tools/memory/listMemories.js.map +0 -1
- package/dist/tools/memory/manageGoals.d.ts +0 -11
- package/dist/tools/memory/manageGoals.d.ts.map +0 -1
- package/dist/tools/memory/manageGoals.js +0 -152
- package/dist/tools/memory/manageGoals.js.map +0 -1
- package/dist/tools/memory/prioritizeMemory.d.ts +0 -11
- package/dist/tools/memory/prioritizeMemory.d.ts.map +0 -1
- package/dist/tools/memory/prioritizeMemory.js +0 -115
- package/dist/tools/memory/prioritizeMemory.js.map +0 -1
- package/dist/tools/memory/recallMemory.d.ts +0 -8
- package/dist/tools/memory/recallMemory.d.ts.map +0 -1
- package/dist/tools/memory/recallMemory.js +0 -50
- package/dist/tools/memory/recallMemory.js.map +0 -1
- package/dist/tools/memory/reflectionTools.d.ts +0 -27
- package/dist/tools/memory/reflectionTools.d.ts.map +0 -1
- package/dist/tools/memory/reflectionTools.js +0 -180
- package/dist/tools/memory/reflectionTools.js.map +0 -1
- package/dist/tools/memory/restoreSessionContext.d.ts +0 -9
- package/dist/tools/memory/restoreSessionContext.d.ts.map +0 -1
- package/dist/tools/memory/restoreSessionContext.js +0 -75
- package/dist/tools/memory/restoreSessionContext.js.map +0 -1
- package/dist/tools/memory/retrieveSessionContext.d.ts +0 -9
- package/dist/tools/memory/retrieveSessionContext.d.ts.map +0 -1
- package/dist/tools/memory/retrieveSessionContext.js +0 -140
- package/dist/tools/memory/retrieveSessionContext.js.map +0 -1
- package/dist/tools/memory/saveMemory.d.ts +0 -9
- package/dist/tools/memory/saveMemory.d.ts.map +0 -1
- package/dist/tools/memory/saveMemory.js +0 -45
- package/dist/tools/memory/saveMemory.js.map +0 -1
- package/dist/tools/memory/saveSessionItem.d.ts +0 -26
- package/dist/tools/memory/saveSessionItem.d.ts.map +0 -1
- package/dist/tools/memory/saveSessionItem.js +0 -218
- package/dist/tools/memory/saveSessionItem.js.map +0 -1
- package/dist/tools/memory/searchMemories.d.ts +0 -8
- package/dist/tools/memory/searchMemories.d.ts.map +0 -1
- package/dist/tools/memory/searchMemories.js +0 -43
- package/dist/tools/memory/searchMemories.js.map +0 -1
- package/dist/tools/memory/searchMemoriesAdvanced.d.ts +0 -15
- package/dist/tools/memory/searchMemoriesAdvanced.d.ts.map +0 -1
- package/dist/tools/memory/searchMemoriesAdvanced.js +0 -168
- package/dist/tools/memory/searchMemoriesAdvanced.js.map +0 -1
- package/dist/tools/memory/searchObservations.d.ts +0 -12
- package/dist/tools/memory/searchObservations.d.ts.map +0 -1
- package/dist/tools/memory/searchObservations.js +0 -67
- package/dist/tools/memory/searchObservations.js.map +0 -1
- package/dist/tools/memory/startSession.d.ts +0 -9
- package/dist/tools/memory/startSession.d.ts.map +0 -1
- package/dist/tools/memory/startSession.js +0 -238
- package/dist/tools/memory/startSession.js.map +0 -1
- package/dist/tools/memory/updateMemory.d.ts +0 -9
- package/dist/tools/memory/updateMemory.d.ts.map +0 -1
- package/dist/tools/memory/updateMemory.js +0 -52
- package/dist/tools/memory/updateMemory.js.map +0 -1
- package/dist/tools/release/releaseNotes.d.ts +0 -43
- package/dist/tools/release/releaseNotes.d.ts.map +0 -1
- package/dist/tools/release/releaseNotes.js +0 -151
- package/dist/tools/release/releaseNotes.js.map +0 -1
- package/dist/tools/spec/executionPacket.d.ts +0 -102
- package/dist/tools/spec/executionPacket.d.ts.map +0 -1
- package/dist/tools/spec/executionPacket.js +0 -396
- package/dist/tools/spec/executionPacket.js.map +0 -1
- package/dist/tools/spec/index.d.ts +0 -18
- package/dist/tools/spec/index.d.ts.map +0 -1
- package/dist/tools/spec/index.js +0 -19
- package/dist/tools/spec/index.js.map +0 -1
- package/dist/tools/spec/prdParser.d.ts +0 -42
- package/dist/tools/spec/prdParser.d.ts.map +0 -1
- package/dist/tools/spec/prdParser.js +0 -293
- package/dist/tools/spec/prdParser.js.map +0 -1
- package/dist/tools/spec/requirementId.d.ts +0 -64
- package/dist/tools/spec/requirementId.d.ts.map +0 -1
- package/dist/tools/spec/requirementId.js +0 -160
- package/dist/tools/spec/requirementId.js.map +0 -1
- package/dist/tools/spec/specGenerator.d.ts +0 -50
- package/dist/tools/spec/specGenerator.d.ts.map +0 -1
- package/dist/tools/spec/specGenerator.js +0 -505
- package/dist/tools/spec/specGenerator.js.map +0 -1
- package/dist/tools/spec/specLifecycle.d.ts +0 -40
- package/dist/tools/spec/specLifecycle.d.ts.map +0 -1
- package/dist/tools/spec/specLifecycle.js +0 -147
- package/dist/tools/spec/specLifecycle.js.map +0 -1
- package/dist/tools/spec/traceabilityMatrix.d.ts +0 -56
- package/dist/tools/spec/traceabilityMatrix.d.ts.map +0 -1
- package/dist/tools/spec/traceabilityMatrix.js +0 -479
- package/dist/tools/spec/traceabilityMatrix.js.map +0 -1
- package/dist/tools/spec/validateSpecDocument.d.ts +0 -30
- package/dist/tools/spec/validateSpecDocument.d.ts.map +0 -1
- package/dist/tools/spec/validateSpecDocument.js +0 -280
- package/dist/tools/spec/validateSpecDocument.js.map +0 -1
- package/dist/tools/time/getCurrentTime.d.ts +0 -7
- package/dist/tools/time/getCurrentTime.d.ts.map +0 -1
- package/dist/tools/time/getCurrentTime.js +0 -58
- package/dist/tools/time/getCurrentTime.js.map +0 -1
- package/dist/tools/time/index.d.ts +0 -5
- package/dist/tools/time/index.d.ts.map +0 -1
- package/dist/tools/time/index.js +0 -5
- package/dist/tools/time/index.js.map +0 -1
- package/dist/tools/ui/generateDesignSystem.d.ts +0 -7
- package/dist/tools/ui/generateDesignSystem.d.ts.map +0 -1
- package/dist/tools/ui/generateDesignSystem.js +0 -70
- package/dist/tools/ui/generateDesignSystem.js.map +0 -1
- package/dist/tools/ui/index.d.ts +0 -9
- package/dist/tools/ui/index.d.ts.map +0 -1
- package/dist/tools/ui/index.js +0 -9
- package/dist/tools/ui/index.js.map +0 -1
- package/dist/tools/ui/persistDesignSystem.d.ts +0 -8
- package/dist/tools/ui/persistDesignSystem.d.ts.map +0 -1
- package/dist/tools/ui/persistDesignSystem.js +0 -77
- package/dist/tools/ui/persistDesignSystem.js.map +0 -1
- package/dist/tools/ui/previewUiAscii.d.ts +0 -14
- package/dist/tools/ui/previewUiAscii.d.ts.map +0 -1
- package/dist/tools/ui/previewUiAscii.js +0 -237
- package/dist/tools/ui/previewUiAscii.js.map +0 -1
- package/dist/tools/ui/searchUiUx.d.ts +0 -8
- package/dist/tools/ui/searchUiUx.d.ts.map +0 -1
- package/dist/tools/ui/searchUiUx.js +0 -82
- package/dist/tools/ui/searchUiUx.js.map +0 -1
- package/dist/tools/ui/searchUiUxStack.d.ts +0 -8
- package/dist/tools/ui/searchUiUxStack.d.ts.map +0 -1
- package/dist/tools/ui/searchUiUxStack.js +0 -83
- package/dist/tools/ui/searchUiUxStack.js.map +0 -1
- package/hooks/antigravity-hooks.json +0 -73
- package/hooks/claude-plugin-hooks.json +0 -123
- package/hooks/hooks.json +0 -128
- package/hooks/plugin-hooks.json +0 -123
- package/hooks/scripts/auto-commit.js +0 -123
- package/hooks/scripts/auto-format.js +0 -125
- package/hooks/scripts/auto-test.js +0 -222
- package/hooks/scripts/clone-extract.js +0 -1306
- package/hooks/scripts/clone-merge-responsive.js +0 -184
- package/hooks/scripts/clone-refine.js +0 -642
- package/hooks/scripts/clone-spec.js +0 -262
- package/hooks/scripts/clone-to-scss.js +0 -275
- package/hooks/scripts/clone-validate.js +0 -286
- package/hooks/scripts/code-check.js +0 -347
- package/hooks/scripts/codex-detect.js +0 -46
- package/hooks/scripts/codex-hook-adapter.js +0 -183
- package/hooks/scripts/codex-notify.js +0 -49
- package/hooks/scripts/codex-review-gate.js +0 -84
- package/hooks/scripts/command-log.js +0 -42
- package/hooks/scripts/context-save.js +0 -342
- package/hooks/scripts/devlog-gen.js +0 -230
- package/hooks/scripts/figma-extract.js +0 -885
- package/hooks/scripts/figma-refine.js +0 -315
- package/hooks/scripts/figma-to-scss.js +0 -401
- package/hooks/scripts/figma-validate.js +0 -353
- package/hooks/scripts/hook-payload.js +0 -64
- package/hooks/scripts/lib/anchor.js +0 -99
- package/hooks/scripts/lib/console-allow.js +0 -66
- package/hooks/scripts/lib/curation-index.js +0 -101
- package/hooks/scripts/lib/dispatcher.js +0 -204
- package/hooks/scripts/lib/gates.js +0 -138
- package/hooks/scripts/lib/glob.js +0 -32
- package/hooks/scripts/lib/hook-context.js +0 -147
- package/hooks/scripts/lib/inbox.js +0 -68
- package/hooks/scripts/lib/loop-ledger.js +0 -217
- package/hooks/scripts/lib/pr-gate-runner.js +0 -62
- package/hooks/scripts/lib/run-ledger.js +0 -271
- package/hooks/scripts/lib/scope-from-spec.js +0 -340
- package/hooks/scripts/llm-orchestrate.js +0 -699
- package/hooks/scripts/loop-ledger.js +0 -159
- package/hooks/scripts/plugin-hook-entry.js +0 -57
- package/hooks/scripts/post-edit-dispatcher.js +0 -101
- package/hooks/scripts/post-edit.js +0 -55
- package/hooks/scripts/pr-test-gate.js +0 -23
- package/hooks/scripts/pre-tool-dispatcher.js +0 -46
- package/hooks/scripts/pre-tool-guard.js +0 -262
- package/hooks/scripts/prompt-dispatcher.js +0 -237
- package/hooks/scripts/recipe-extractor.js +0 -249
- package/hooks/scripts/scope-guard.js +0 -107
- package/hooks/scripts/sentinel-guard.js +0 -115
- package/hooks/scripts/session-start.js +0 -229
- package/hooks/scripts/step-counter.js +0 -335
- package/hooks/scripts/stop-dispatcher.js +0 -56
- package/hooks/scripts/stop-notify.js +0 -209
- package/hooks/scripts/utils.js +0 -410
- package/hooks/scripts/verify-ledger.js +0 -42
- package/languages/csharp-unity.md +0 -515
- package/languages/dart-flutter.md +0 -510
- package/languages/gdscript-godot.md +0 -470
- package/languages/go.md +0 -397
- package/languages/java-spring.md +0 -587
- package/languages/kotlin-android.md +0 -492
- package/languages/python-django.md +0 -372
- package/languages/python-fastapi.md +0 -387
- package/languages/ruby-rails.md +0 -489
- package/languages/rust.md +0 -426
- package/languages/swift-ios.md +0 -517
- package/languages/typescript-angular.md +0 -433
- package/languages/typescript-astro.md +0 -416
- package/languages/typescript-electron.md +0 -406
- package/languages/typescript-nestjs.md +0 -524
- package/languages/typescript-nextjs.md +0 -442
- package/languages/typescript-node.md +0 -376
- package/languages/typescript-nuxt.md +0 -522
- package/languages/typescript-react-native.md +0 -447
- package/languages/typescript-react.md +0 -526
- package/languages/typescript-svelte.md +0 -407
- package/languages/typescript-tauri.md +0 -365
- package/languages/typescript-vue.md +0 -354
- package/skills/vibe/references/routing-examples.md +0 -85
- package/skills/vibe.agents-md/SKILL.md +0 -172
- package/skills/vibe.agents-md/rubrics/what-to-keep.md +0 -49
- package/skills/vibe.agents-md/templates/agents-md.md +0 -36
- package/skills/vibe.agents-md/templates/claude-md.md +0 -54
- package/skills/vibe.analyze/SKILL.md +0 -105
- package/skills/vibe.analyze/references/mode1-feature.md +0 -81
- package/skills/vibe.analyze/references/mode2-document.md +0 -50
- package/skills/vibe.analyze/references/mode3-website.md +0 -47
- package/skills/vibe.analyze/references/mode4-quality.md +0 -35
- package/skills/vibe.analyze/references/output-templates.md +0 -188
- package/skills/vibe.analyze/references/quality-gate.md +0 -93
- package/skills/vibe.brand-assets/SKILL.md +0 -148
- package/skills/vibe.brand-assets/references/mobile-assets.md +0 -6
- package/skills/vibe.brand-assets/rubrics/asset-checklist.md +0 -98
- package/skills/vibe.brand-assets/templates/brand-guide.md +0 -161
- package/skills/vibe.capability-loop/SKILL.md +0 -208
- package/skills/vibe.capability-loop/agents/capability-designer.md +0 -61
- package/skills/vibe.capability-loop/agents/failure-analyst.md +0 -55
- package/skills/vibe.capability-loop/agents/implementer.md +0 -50
- package/skills/vibe.capability-loop/agents/tester.md +0 -53
- package/skills/vibe.capability-loop/references/escalate.md +0 -86
- package/skills/vibe.capability-loop/templates/capability-spec.md +0 -118
- package/skills/vibe.capability-loop/templates/failure-analysis.md +0 -118
- package/skills/vibe.chub-usage/SKILL.md +0 -11
- package/skills/vibe.clone/SKILL.md +0 -136
- package/skills/vibe.clone/references/capture-rules.md +0 -48
- package/skills/vibe.clone/references/legal-and-error-recovery.md +0 -40
- package/skills/vibe.clone/references/phase-commands.md +0 -118
- package/skills/vibe.clone/references/refine-rules.md +0 -61
- package/skills/vibe.clone/references/scaffold-phases.md +0 -59
- package/skills/vibe.clone/references/setup-and-layout.md +0 -64
- package/skills/vibe.clone/references/verification-loops.md +0 -67
- package/skills/vibe.commerce-patterns/SKILL.md +0 -65
- package/skills/vibe.commerce-patterns/rubrics/checkout-flow.md +0 -48
- package/skills/vibe.commerce-patterns/templates/product-schema.md +0 -85
- package/skills/vibe.commit-push-pr/SKILL.md +0 -83
- package/skills/vibe.commit-push-pr/agents/change-analyzer.md +0 -55
- package/skills/vibe.commit-push-pr/agents/message-writer.md +0 -50
- package/skills/vibe.commit-push-pr/agents/pr-writer.md +0 -58
- package/skills/vibe.commit-push-pr/agents/reviewer.md +0 -52
- package/skills/vibe.commit-push-pr/rubrics/commit-message.md +0 -73
- package/skills/vibe.commit-push-pr/templates/pr-body.md +0 -63
- package/skills/vibe.context7-usage/SKILL.md +0 -11
- package/skills/vibe.continue/SKILL.md +0 -42
- package/skills/vibe.continue/agents/context-summarizer.md +0 -51
- package/skills/vibe.continue/agents/document-writer.md +0 -63
- package/skills/vibe.continue/agents/state-collector.md +0 -53
- package/skills/vibe.continue/agents/verifier.md +0 -48
- package/skills/vibe.continue/references/handoff-completeness.md +0 -62
- package/skills/vibe.continue/references/handoff.md +0 -142
- package/skills/vibe.contract/SKILL.md +0 -232
- package/skills/vibe.create-prd/SKILL.md +0 -98
- package/skills/vibe.create-prd/agents/edge-case-finder.md +0 -48
- package/skills/vibe.create-prd/agents/prioritizer.md +0 -60
- package/skills/vibe.create-prd/agents/requirements-writer.md +0 -48
- package/skills/vibe.create-prd/agents/researcher.md +0 -55
- package/skills/vibe.create-prd/agents/reviewer.md +0 -54
- package/skills/vibe.create-prd/frameworks/jobs-to-be-done.md +0 -96
- package/skills/vibe.create-prd/frameworks/rice-scoring.md +0 -97
- package/skills/vibe.create-prd/orchestrator.md +0 -72
- package/skills/vibe.create-prd/rubrics/completeness.md +0 -58
- package/skills/vibe.create-prd/templates/prd.md +0 -139
- package/skills/vibe.design/SKILL.md +0 -236
- package/skills/vibe.design/heuristics/code-extract.md +0 -100
- package/skills/vibe.design/references/README.md +0 -39
- package/skills/vibe.design/references/brand-personality.md +0 -73
- package/skills/vibe.design/references/design-context.md +0 -184
- package/skills/vibe.design/references/ui-preview.md +0 -20
- package/skills/vibe.design/templates/DESIGN.md.template +0 -100
- package/skills/vibe.design/templates/design-context.json +0 -36
- package/skills/vibe.design-refine/SKILL.md +0 -147
- package/skills/vibe.design-refine/rubrics/polish-checklist.md +0 -68
- package/skills/vibe.design-refine/rubrics/token-naming.md +0 -117
- package/skills/vibe.design-refine/templates/design-system.md +0 -132
- package/skills/vibe.design-refine/templates/polish-report.md +0 -64
- package/skills/vibe.design-refine/templates/token-audit.md +0 -89
- package/skills/vibe.design-review/SKILL.md +0 -150
- package/skills/vibe.design-review/agents/a11y-auditor.md +0 -43
- package/skills/vibe.design-review/agents/performance-auditor.md +0 -46
- package/skills/vibe.design-review/agents/responsive-auditor.md +0 -46
- package/skills/vibe.design-review/agents/scorer.md +0 -47
- package/skills/vibe.design-review/agents/slop-detector.md +0 -47
- package/skills/vibe.design-review/frameworks/core-web-vitals.md +0 -107
- package/skills/vibe.design-review/frameworks/wcag-checklist.md +0 -64
- package/skills/vibe.design-review/orchestrator.md +0 -66
- package/skills/vibe.design-review/rubrics/ai-slop-patterns.md +0 -83
- package/skills/vibe.design-review/rubrics/scoring.md +0 -63
- package/skills/vibe.design-review/rubrics/ux-heuristics.md +0 -143
- package/skills/vibe.design-review/templates/critique-report.md +0 -86
- package/skills/vibe.design-review/templates/report.md +0 -88
- package/skills/vibe.design-teach/SKILL.md +0 -11
- package/skills/vibe.devlog/SKILL.md +0 -147
- package/skills/vibe.devlog/references/auto-push.md +0 -10
- package/skills/vibe.docs/SKILL.md +0 -121
- package/skills/vibe.docs/references/agent.md +0 -59
- package/skills/vibe.docs/references/api-docs-changelog.md +0 -34
- package/skills/vibe.docs/references/arch.md +0 -28
- package/skills/vibe.docs/references/codemaps-output.md +0 -23
- package/skills/vibe.docs/references/codemaps.md +0 -17
- package/skills/vibe.docs/references/diagram-spec.md +0 -34
- package/skills/vibe.docs/references/diagram.md +0 -24
- package/skills/vibe.docs/references/guide.md +0 -23
- package/skills/vibe.docs/references/readme.md +0 -45
- package/skills/vibe.docs/references/release.md +0 -31
- package/skills/vibe.docs/templates/architecture.md +0 -80
- package/skills/vibe.docs/templates/behavioral-principles.md +0 -47
- package/skills/vibe.docs/templates/readme.md +0 -84
- package/skills/vibe.docs/templates/release-notes.md +0 -74
- package/skills/vibe.documentation-provider/SKILL.md +0 -22
- package/skills/vibe.documentation-provider/references/chub.md +0 -141
- package/skills/vibe.documentation-provider/references/context7-when-to-use.md +0 -50
- package/skills/vibe.documentation-provider/references/context7.md +0 -107
- package/skills/vibe.e2e-commerce/SKILL.md +0 -63
- package/skills/vibe.e2e-commerce/templates/test-scenarios.md +0 -170
- package/skills/vibe.educational-content/SKILL.md +0 -164
- package/skills/vibe.educational-content/references/learning-design.md +0 -81
- package/skills/vibe.educational-content/references/output-patterns.md +0 -109
- package/skills/vibe.educational-content/references/source-method.md +0 -40
- package/skills/vibe.event/SKILL.md +0 -66
- package/skills/vibe.event/references/comms.md +0 -173
- package/skills/vibe.event/references/contingency.md +0 -85
- package/skills/vibe.event/references/d-day-checklist-template.md +0 -65
- package/skills/vibe.event/references/email-invite-template.md +0 -99
- package/skills/vibe.event/references/event-plan-template.md +0 -91
- package/skills/vibe.event/references/operations.md +0 -208
- package/skills/vibe.event/references/orchestration-legacy.md +0 -97
- package/skills/vibe.event/references/planning.md +0 -145
- package/skills/vibe.event/references/sns-post-template.md +0 -133
- package/skills/vibe.event/references/timeline.md +0 -70
- package/skills/vibe.event-comms/SKILL.md +0 -11
- package/skills/vibe.event-ops/SKILL.md +0 -11
- package/skills/vibe.event-planning/SKILL.md +0 -11
- package/skills/vibe.figma/SKILL.md +0 -173
- package/skills/vibe.figma/references/branch-phases.md +0 -113
- package/skills/vibe.figma/references/branch1-read-convention.md +0 -82
- package/skills/vibe.figma/references/branch2-read-standalone.md +0 -69
- package/skills/vibe.figma/references/branch3-write.md +0 -122
- package/skills/vibe.figma/references/core-implementation.md +0 -453
- package/skills/vibe.figma/references/state-schema.md +0 -42
- package/skills/vibe.figma/references/step-algorithms.md +0 -204
- package/skills/vibe.figma/rubrics/conversion-rules.md +0 -141
- package/skills/vibe.figma/rubrics/css-mapping.md +0 -125
- package/skills/vibe.figma/rubrics/extraction-checklist.md +0 -51
- package/skills/vibe.figma/rubrics/image-rules.md +0 -157
- package/skills/vibe.figma/templates/component-index.md +0 -126
- package/skills/vibe.figma/templates/component-spec.md +0 -168
- package/skills/vibe.figma/templates/component.md +0 -140
- package/skills/vibe.figma/templates/figma-handoff.md +0 -100
- package/skills/vibe.figma/templates/remapped-tree.md +0 -277
- package/skills/vibe.git-worktree/SKILL.md +0 -70
- package/skills/vibe.git-worktree/references/troubleshooting.md +0 -9
- package/skills/vibe.git-worktree/rubrics/when-to-use.md +0 -55
- package/skills/vibe.harness/SKILL.md +0 -144
- package/skills/vibe.harness/references/report-template.md +0 -46
- package/skills/vibe.image/SKILL.md +0 -77
- package/skills/vibe.image/references/image-generation-examples.md +0 -39
- package/skills/vibe.llm/SKILL.md +0 -57
- package/skills/vibe.loop/SKILL.md +0 -147
- package/skills/vibe.loop/references/install-adapters.md +0 -25
- package/skills/vibe.parallel-research/SKILL.md +0 -92
- package/skills/vibe.parallel-research/agents/best-practices.md +0 -43
- package/skills/vibe.parallel-research/agents/codebase-patterns.md +0 -46
- package/skills/vibe.parallel-research/agents/framework-docs.md +0 -45
- package/skills/vibe.parallel-research/agents/security-advisory.md +0 -46
- package/skills/vibe.parallel-research/agents/synthesizer.md +0 -57
- package/skills/vibe.parallel-research/experts/best-practices.md +0 -50
- package/skills/vibe.parallel-research/experts/codebase-patterns.md +0 -70
- package/skills/vibe.parallel-research/experts/framework-docs.md +0 -65
- package/skills/vibe.parallel-research/experts/security-advisory.md +0 -69
- package/skills/vibe.parallel-research/orchestrator.md +0 -81
- package/skills/vibe.parallel-research/templates/awesome-list.md +0 -32
- package/skills/vibe.parallel-research/templates/paper.md +0 -88
- package/skills/vibe.parallel-research/templates/synthesis.md +0 -101
- package/skills/vibe.presentation/SKILL.md +0 -90
- package/skills/vibe.presentation/references/style-presets.md +0 -25
- package/skills/vibe.prioritization/SKILL.md +0 -95
- package/skills/vibe.prioritization/rubrics/frameworks.md +0 -79
- package/skills/vibe.prioritization/templates/scoring-matrix.md +0 -69
- package/skills/vibe.priority-todos/SKILL.md +0 -11
- package/skills/vibe.react-best-practices/SKILL.md +0 -61
- package/skills/vibe.react-best-practices/rubrics/performance.md +0 -82
- package/skills/vibe.react-best-practices/rubrics/server-components.md +0 -86
- package/skills/vibe.reason/SKILL.md +0 -160
- package/skills/vibe.reason/references/output-format-template.md +0 -57
- package/skills/vibe.reason/references/quality-rubrics.md +0 -94
- package/skills/vibe.reason/references/worked-example.md +0 -45
- package/skills/vibe.regress/SKILL.md +0 -233
- package/skills/vibe.regress/templates/bug.md +0 -44
- package/skills/vibe.regress/templates/test-template.md +0 -30
- package/skills/vibe.review/SKILL.md +0 -321
- package/skills/vibe.review/references/boundary-check.md +0 -25
- package/skills/vibe.review/references/output-template.md +0 -74
- package/skills/vibe.review/references/priority-todos.md +0 -66
- package/skills/vibe.review/references/quality-gate.md +0 -84
- package/skills/vibe.review/references/race-mode.md +0 -117
- package/skills/vibe.review/references/todo-board-template.md +0 -59
- package/skills/vibe.review/references/todo-prioritization.md +0 -70
- package/skills/vibe.review/references/ui-ux-review.md +0 -39
- package/skills/vibe.review/references/worked-examples.md +0 -94
- package/skills/vibe.run/SKILL.md +0 -254
- package/skills/vibe.run/internal/arch-guard/agents/detector.md +0 -48
- package/skills/vibe.run/internal/arch-guard/agents/reporter.md +0 -48
- package/skills/vibe.run/internal/arch-guard/agents/rule-generator.md +0 -49
- package/skills/vibe.run/internal/arch-guard/agents/violation-checker.md +0 -51
- package/skills/vibe.run/internal/arch-guard/frameworks/clean-architecture.md +0 -108
- package/skills/vibe.run/internal/arch-guard/frameworks/solid.md +0 -102
- package/skills/vibe.run/internal/arch-guard/scripts/check-boundaries.js +0 -90
- package/skills/vibe.run/internal/arch-guard/templates/arch-rules.json +0 -47
- package/skills/vibe.run/internal/arch-guard/templates/violation-report.md +0 -53
- package/skills/vibe.run/internal/exec-plan/agents/decomposer.md +0 -47
- package/skills/vibe.run/internal/exec-plan/agents/dependency-mapper.md +0 -44
- package/skills/vibe.run/internal/exec-plan/agents/estimator.md +0 -43
- package/skills/vibe.run/internal/exec-plan/agents/validator.md +0 -55
- package/skills/vibe.run/internal/exec-plan/orchestrator.md +0 -72
- package/skills/vibe.run/internal/exec-plan/rubrics/complexity-scoring.md +0 -75
- package/skills/vibe.run/internal/exec-plan/templates/plan.md +0 -147
- package/skills/vibe.run/references/arch-guard.md +0 -178
- package/skills/vibe.run/references/automation-level.md +0 -51
- package/skills/vibe.run/references/brand-assets.md +0 -59
- package/skills/vibe.run/references/coverage-loop.md +0 -94
- package/skills/vibe.run/references/e2e-and-autofix.md +0 -43
- package/skills/vibe.run/references/exec-plan.md +0 -145
- package/skills/vibe.run/references/guidelines-and-tools.md +0 -84
- package/skills/vibe.run/references/parallel-agents.md +0 -253
- package/skills/vibe.run/references/process-steps.md +0 -179
- package/skills/vibe.run/references/race-review.md +0 -272
- package/skills/vibe.run/references/restraint.md +0 -66
- package/skills/vibe.scaffold/SKILL.md +0 -193
- package/skills/vibe.scaffold/references/clean-architecture.md +0 -17
- package/skills/vibe.seo-checklist/SKILL.md +0 -59
- package/skills/vibe.seo-checklist/frameworks/structured-data.md +0 -153
- package/skills/vibe.seo-checklist/rubrics/content-seo.md +0 -42
- package/skills/vibe.seo-checklist/rubrics/technical-seo.md +0 -48
- package/skills/vibe.spec/SKILL.md +0 -327
- package/skills/vibe.spec/references/legacy-artifacts.md +0 -6
- package/skills/vibe.test/SKILL.md +0 -209
- package/skills/vibe.test/references/report-template.md +0 -101
- package/skills/vibe.tool-fallback/SKILL.md +0 -83
- package/skills/vibe.tool-fallback/references/external-llm.md +0 -10
- package/skills/vibe.tool-fallback/references/file-lookup.md +0 -9
- package/skills/vibe.tool-fallback/references/web-search.md +0 -11
- package/skills/vibe.tool-fallback/rubrics/fallback-chain.md +0 -58
- package/skills/vibe.trace/SKILL.md +0 -8
- package/skills/vibe.ui-ux-pro-max/SKILL.md +0 -236
- package/skills/vibe.ui-ux-pro-max/reference/color-and-contrast.md +0 -517
- package/skills/vibe.ui-ux-pro-max/reference/interaction-design.md +0 -544
- package/skills/vibe.ui-ux-pro-max/reference/motion-design.md +0 -591
- package/skills/vibe.ui-ux-pro-max/reference/responsive-design.md +0 -463
- package/skills/vibe.ui-ux-pro-max/reference/spatial-design.md +0 -390
- package/skills/vibe.ui-ux-pro-max/reference/typography.md +0 -455
- package/skills/vibe.ui-ux-pro-max/reference/ux-writing.md +0 -469
- package/skills/vibe.ui-ux-pro-max/references/charts-and-data.md +0 -7
- package/skills/vibe.ui-ux-pro-max/rubrics/interaction-states.md +0 -83
- package/skills/vibe.ui-ux-pro-max/rubrics/responsive-breakpoints.md +0 -99
- package/skills/vibe.user-personas/SKILL.md +0 -83
- package/skills/vibe.user-personas/rubrics/research-methods.md +0 -56
- package/skills/vibe.user-personas/templates/persona.md +0 -89
- package/skills/vibe.verify/SKILL.md +0 -175
- package/skills/vibe.verify/references/trace-mode.md +0 -271
- package/skills/vibe.video-production/SKILL.md +0 -72
- package/skills/vibe.video-production/rubrics/quality-checklist.md +0 -58
- package/skills/vibe.video-production/templates/production-plan.md +0 -104
- package/vibe/config.json +0 -30
- package/vibe/constitution.md +0 -254
- package/vibe/rules/loop-contract.md +0 -236
- package/vibe/rules/orchestrator-contract.md +0 -57
- package/vibe/rules/prefix-cache-surface.md +0 -98
- package/vibe/rules/principles/communication-guide.md +0 -98
- package/vibe/rules/principles/development-philosophy.md +0 -52
- package/vibe/rules/principles/dual-harness-doctrine.md +0 -74
- package/vibe/rules/principles/quick-start.md +0 -102
- package/vibe/rules/quality/bdd-contract-testing.md +0 -393
- package/vibe/rules/quality/checklist.md +0 -276
- package/vibe/rules/quality/performance.md +0 -236
- package/vibe/rules/quality/testing-strategy.md +0 -440
- package/vibe/rules/standards/anti-patterns.md +0 -541
- package/vibe/rules/standards/code-structure.md +0 -291
- package/vibe/rules/standards/complexity-metrics.md +0 -313
- package/vibe/rules/standards/git-workflow.md +0 -237
- package/vibe/rules/standards/naming-conventions.md +0 -198
- package/vibe/rules/standards/security.md +0 -305
- package/vibe/rules/writing/document-style.md +0 -74
- package/vibe/setup.sh +0 -31
- package/vibe/templates/claudemd-template.md +0 -62
- package/vibe/templates/constitution-template.md +0 -267
- package/vibe/templates/contract-backend-template.md +0 -526
- package/vibe/templates/contract-frontend-template.md +0 -599
- package/vibe/templates/feature-template.md +0 -96
- package/vibe/templates/loop-template.md +0 -85
- package/vibe/templates/plan-template.md +0 -194
- package/vibe/templates/spec-template.md +0 -170
- package/vibe/ui-ux-data/charts.csv +0 -26
- package/vibe/ui-ux-data/colors.csv +0 -97
- package/vibe/ui-ux-data/icons.csv +0 -101
- package/vibe/ui-ux-data/landing.csv +0 -31
- package/vibe/ui-ux-data/products.csv +0 -97
- package/vibe/ui-ux-data/react-performance.csv +0 -45
- package/vibe/ui-ux-data/stacks/astro.csv +0 -54
- package/vibe/ui-ux-data/stacks/flutter.csv +0 -53
- package/vibe/ui-ux-data/stacks/html-tailwind.csv +0 -56
- package/vibe/ui-ux-data/stacks/jetpack-compose.csv +0 -53
- package/vibe/ui-ux-data/stacks/nextjs.csv +0 -53
- package/vibe/ui-ux-data/stacks/nuxt-ui.csv +0 -51
- package/vibe/ui-ux-data/stacks/nuxtjs.csv +0 -59
- package/vibe/ui-ux-data/stacks/react-native.csv +0 -52
- package/vibe/ui-ux-data/stacks/react.csv +0 -54
- package/vibe/ui-ux-data/stacks/shadcn.csv +0 -61
- package/vibe/ui-ux-data/stacks/svelte.csv +0 -54
- package/vibe/ui-ux-data/stacks/swiftui.csv +0 -51
- package/vibe/ui-ux-data/stacks/vue.csv +0 -50
- package/vibe/ui-ux-data/styles.csv +0 -68
- package/vibe/ui-ux-data/typography.csv +0 -58
- package/vibe/ui-ux-data/ui-reasoning.csv +0 -101
- package/vibe/ui-ux-data/ux-guidelines.csv +0 -100
- package/vibe/ui-ux-data/version.json +0 -31
- package/vibe/ui-ux-data/web-interface.csv +0 -31
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
// HookTraceReader — JSONL hook trace 파일 읽기 및 집계
|
|
2
|
-
// Guard hooks가 ~/.vibe/hook-traces.jsonl에 기록한 로그를 읽고 분석
|
|
3
|
-
import { readFileSync, existsSync } from 'fs';
|
|
4
|
-
import path from 'path';
|
|
5
|
-
import os from 'os';
|
|
6
|
-
const TRACE_FILENAME = 'hook-traces.jsonl';
|
|
7
|
-
const MIN_CLUSTER_SIZE = 3;
|
|
8
|
-
/**
|
|
9
|
-
* hook-traces.jsonl 파일 경로 반환
|
|
10
|
-
*/
|
|
11
|
-
function getTracePath() {
|
|
12
|
-
const home = os.homedir();
|
|
13
|
-
return path.join(home, '.vibe', TRACE_FILENAME);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* JSONL 파일에서 최근 N일간 trace 항목 읽기
|
|
17
|
-
*/
|
|
18
|
-
export function readTraces(daysBack = 7) {
|
|
19
|
-
const tracePath = getTracePath();
|
|
20
|
-
if (!existsSync(tracePath))
|
|
21
|
-
return [];
|
|
22
|
-
const cutoff = new Date();
|
|
23
|
-
cutoff.setDate(cutoff.getDate() - daysBack);
|
|
24
|
-
const cutoffIso = cutoff.toISOString();
|
|
25
|
-
const raw = readFileSync(tracePath, 'utf-8');
|
|
26
|
-
const traces = [];
|
|
27
|
-
for (const line of raw.split('\n')) {
|
|
28
|
-
if (!line.trim())
|
|
29
|
-
continue;
|
|
30
|
-
try {
|
|
31
|
-
const entry = JSON.parse(line);
|
|
32
|
-
if (entry.ts >= cutoffIso) {
|
|
33
|
-
traces.push(entry);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
catch {
|
|
37
|
-
// 깨진 줄 무시
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return traces;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* 사유 문자열을 정규화 (파일 경로, 명령어 세부 사항 제거)
|
|
44
|
-
*/
|
|
45
|
-
function normalizeReason(reason) {
|
|
46
|
-
return reason
|
|
47
|
-
.replace(/\/[\w/._-]+/g, '<path>')
|
|
48
|
-
.replace(/`[^`]+`/g, '<cmd>')
|
|
49
|
-
.replace(/:\s+.*$/, '')
|
|
50
|
-
.trim();
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Trace 목록을 패턴별로 클러스터링
|
|
54
|
-
*/
|
|
55
|
-
export function clusterTraces(traces) {
|
|
56
|
-
const actionable = traces.filter(t => t.decision !== 'allow');
|
|
57
|
-
const groups = new Map();
|
|
58
|
-
for (const trace of actionable) {
|
|
59
|
-
const key = `${trace.hook}:${normalizeReason(trace.reason)}`;
|
|
60
|
-
const group = groups.get(key) ?? [];
|
|
61
|
-
group.push(trace);
|
|
62
|
-
groups.set(key, group);
|
|
63
|
-
}
|
|
64
|
-
const clusters = [];
|
|
65
|
-
for (const [, group] of groups) {
|
|
66
|
-
if (group.length < MIN_CLUSTER_SIZE)
|
|
67
|
-
continue;
|
|
68
|
-
const sorted = group.sort((a, b) => a.ts.localeCompare(b.ts));
|
|
69
|
-
const tools = [...new Set(group.map(t => t.tool))];
|
|
70
|
-
clusters.push({
|
|
71
|
-
pattern: normalizeReason(group[0].reason),
|
|
72
|
-
hook: group[0].hook,
|
|
73
|
-
decision: group[0].decision,
|
|
74
|
-
count: group.length,
|
|
75
|
-
tools,
|
|
76
|
-
firstSeen: sorted[0].ts,
|
|
77
|
-
lastSeen: sorted[sorted.length - 1].ts,
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
return clusters.sort((a, b) => b.count - a.count);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* 전체 통계 + 클러스터 분석 수행
|
|
84
|
-
*/
|
|
85
|
-
export function analyzeTraces(daysBack = 7) {
|
|
86
|
-
const traces = readTraces(daysBack);
|
|
87
|
-
const byHook = {};
|
|
88
|
-
const byTool = {};
|
|
89
|
-
let blockCount = 0;
|
|
90
|
-
let warnCount = 0;
|
|
91
|
-
for (const t of traces) {
|
|
92
|
-
byHook[t.hook] = (byHook[t.hook] ?? 0) + 1;
|
|
93
|
-
byTool[t.tool] = (byTool[t.tool] ?? 0) + 1;
|
|
94
|
-
if (t.decision === 'block')
|
|
95
|
-
blockCount++;
|
|
96
|
-
if (t.decision === 'warn')
|
|
97
|
-
warnCount++;
|
|
98
|
-
}
|
|
99
|
-
return {
|
|
100
|
-
totalTraces: traces.length,
|
|
101
|
-
blockCount,
|
|
102
|
-
warnCount,
|
|
103
|
-
byHook,
|
|
104
|
-
byTool,
|
|
105
|
-
clusters: clusterTraces(traces),
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=HookTraceReader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HookTraceReader.js","sourceRoot":"","sources":["../../../../src/infra/lib/evolution/HookTraceReader.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,wDAAwD;AAExD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AAqCpB,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAC3C,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B;;GAEG;AACH,SAAS,YAAY;IACnB,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;IAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;AAClD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,WAAmB,CAAC;IAC7C,MAAM,SAAS,GAAG,YAAY,EAAE,C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,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;AACpD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,WAAmB,CAAC;IAChD,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;QACvB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,CAAC,QAAQ,KAAK,OAAO;YAAE,UAAU,EAAE,CAAC;QACzC,IAAI,CAAC,CAAC,QAAQ,KAAK,MAAM;YAAE,SAAS,EAAE,CAAC;IACzC,CAAC;IAED,OAAO;QACL,WAAW,EAAE,MAAM,CAAC,MAAM;QAC1B,UAAU;QACV,SAAS;QACT,MAAM;QACN,MAAM;QACN,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC;KAChC,CAAC;AACJ,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MemoryStorage } from '../memory/MemoryStorage.js';
|
|
2
|
-
interface ExtractionResult {
|
|
3
|
-
newInsights: string[];
|
|
4
|
-
mergedInsights: string[];
|
|
5
|
-
skippedCount: number;
|
|
6
|
-
errorCount: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class InsightExtractor {
|
|
9
|
-
private reflectionStore;
|
|
10
|
-
private observationStore;
|
|
11
|
-
private insightStore;
|
|
12
|
-
constructor(storage: MemoryStorage);
|
|
13
|
-
/**
|
|
14
|
-
* Extract insights from recent reflections and observations
|
|
15
|
-
* @param limit Max items to process (default 50)
|
|
16
|
-
*/
|
|
17
|
-
extractFromRecent(limit?: number): ExtractionResult;
|
|
18
|
-
private processReflectionTopics;
|
|
19
|
-
private processObservationTopics;
|
|
20
|
-
private classifyTopic;
|
|
21
|
-
private extractTags;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=InsightExtractor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InsightExtractor.d.ts","sourceRoot":"","sources":["../../../../src/infra/lib/evolution/InsightExtractor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAK3D,UAAU,gBAAgB;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAe;gBAEvB,OAAO,EAAE,aAAa;IAMlC;;;OAGG;IACI,iBAAiB,CAAC,KAAK,GAAE,MAAW,GAAG,gBAAgB;IA6D9D,OAAO,CAAC,uBAAuB;IAoB/B,OAAO,CAAC,wBAAwB;IAmBhC,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,WAAW;CAUpB"}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
// Insight Extraction Engine for self-evolution Phase 2
|
|
2
|
-
// Extracts actionable patterns from reflections and observations
|
|
3
|
-
import { ReflectionStore } from '../memory/ReflectionStore.js';
|
|
4
|
-
import { ObservationStore } from '../memory/ObservationStore.js';
|
|
5
|
-
import { InsightStore } from './InsightStore.js';
|
|
6
|
-
export class InsightExtractor {
|
|
7
|
-
reflectionStore;
|
|
8
|
-
observationStore;
|
|
9
|
-
insightStore;
|
|
10
|
-
constructor(storage) {
|
|
11
|
-
this.reflectionStore = new ReflectionStore(storage);
|
|
12
|
-
this.observationStore = new ObservationStore(storage);
|
|
13
|
-
this.insightStore = new InsightStore(storage);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Extract insights from recent reflections and observations
|
|
17
|
-
* @param limit Max items to process (default 50)
|
|
18
|
-
*/
|
|
19
|
-
extractFromRecent(limit = 50) {
|
|
20
|
-
const result = { newInsights: [], mergedInsights: [], skippedCount: 0, errorCount: 0 };
|
|
21
|
-
// Collect recent data
|
|
22
|
-
const reflections = this.reflectionStore.getRecent(limit);
|
|
23
|
-
const observations = this.observationStore.getRecent(limit);
|
|
24
|
-
// Build frequency map from reflections
|
|
25
|
-
const topicCounts = new Map();
|
|
26
|
-
for (const refl of reflections) {
|
|
27
|
-
try {
|
|
28
|
-
this.processReflectionTopics(refl, topicCounts);
|
|
29
|
-
}
|
|
30
|
-
catch {
|
|
31
|
-
result.errorCount++;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
for (const obs of observations) {
|
|
35
|
-
try {
|
|
36
|
-
this.processObservationTopics(obs, topicCounts);
|
|
37
|
-
}
|
|
38
|
-
catch {
|
|
39
|
-
result.errorCount++;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// Extract insights from topics with 3+ occurrences
|
|
43
|
-
for (const [topic, data] of topicCounts) {
|
|
44
|
-
if (data.count < 3) {
|
|
45
|
-
result.skippedCount++;
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
// Check for duplicate
|
|
49
|
-
const existingId = this.insightStore.findAndMergeDuplicate(topic, data.descriptions[0] || '');
|
|
50
|
-
if (existingId) {
|
|
51
|
-
result.mergedInsights.push(existingId);
|
|
52
|
-
continue;
|
|
53
|
-
}
|
|
54
|
-
// Determine insight type
|
|
55
|
-
const type = this.classifyTopic(topic, data.descriptions);
|
|
56
|
-
const confidence = Math.min(1.0, data.count * 0.2 + data.evidenceIds.length * 0.1);
|
|
57
|
-
const input = {
|
|
58
|
-
type,
|
|
59
|
-
title: topic,
|
|
60
|
-
description: data.descriptions.slice(0, 3).join('; '),
|
|
61
|
-
evidence: data.evidenceIds.slice(0, 10),
|
|
62
|
-
confidence,
|
|
63
|
-
tags: this.extractTags(topic, data.descriptions),
|
|
64
|
-
generatedFrom: 'reflection',
|
|
65
|
-
};
|
|
66
|
-
const id = this.insightStore.save(input);
|
|
67
|
-
result.newInsights.push(id);
|
|
68
|
-
}
|
|
69
|
-
return result;
|
|
70
|
-
}
|
|
71
|
-
processReflectionTopics(refl, topicCounts) {
|
|
72
|
-
const allTexts = [...refl.insights, ...refl.decisions, ...refl.patterns];
|
|
73
|
-
for (const text of allTexts) {
|
|
74
|
-
if (!text || typeof text !== 'string')
|
|
75
|
-
continue;
|
|
76
|
-
const normalized = text.toLowerCase().trim();
|
|
77
|
-
if (normalized.length < 5)
|
|
78
|
-
continue;
|
|
79
|
-
// Extract key topic (first 100 chars)
|
|
80
|
-
const topic = normalized.slice(0, 100);
|
|
81
|
-
const existing = topicCounts.get(topic) || { count: 0, evidenceIds: [], descriptions: [] };
|
|
82
|
-
existing.count++;
|
|
83
|
-
existing.evidenceIds.push(refl.id);
|
|
84
|
-
existing.descriptions.push(text);
|
|
85
|
-
topicCounts.set(topic, existing);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
processObservationTopics(obs, topicCounts) {
|
|
89
|
-
const texts = [obs.title, ...(obs.facts || []), ...(obs.concepts || [])];
|
|
90
|
-
for (const text of texts) {
|
|
91
|
-
if (!text || typeof text !== 'string')
|
|
92
|
-
continue;
|
|
93
|
-
const normalized = text.toLowerCase().trim();
|
|
94
|
-
if (normalized.length < 5)
|
|
95
|
-
continue;
|
|
96
|
-
const topic = normalized.slice(0, 100);
|
|
97
|
-
const existing = topicCounts.get(topic) || { count: 0, evidenceIds: [], descriptions: [] };
|
|
98
|
-
existing.count++;
|
|
99
|
-
existing.evidenceIds.push(String(obs.id));
|
|
100
|
-
existing.descriptions.push(text);
|
|
101
|
-
topicCounts.set(topic, existing);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
classifyTopic(topic, descriptions) {
|
|
105
|
-
const text = (topic + ' ' + descriptions.join(' ')).toLowerCase();
|
|
106
|
-
if (text.includes('anti') || text.includes('bad') || text.includes('avoid') || text.includes('wrong') || text.includes('bug')) {
|
|
107
|
-
return 'anti_pattern';
|
|
108
|
-
}
|
|
109
|
-
if (text.includes('gap') || text.includes('missing') || text.includes('need') || text.includes('lack')) {
|
|
110
|
-
return 'skill_gap';
|
|
111
|
-
}
|
|
112
|
-
if (text.includes('slow') || text.includes('performance') || text.includes('optimize') || text.includes('fast')) {
|
|
113
|
-
return 'optimization';
|
|
114
|
-
}
|
|
115
|
-
if (text.includes('prefer') || text.includes('always') || text.includes('like')) {
|
|
116
|
-
return 'preference';
|
|
117
|
-
}
|
|
118
|
-
return 'pattern';
|
|
119
|
-
}
|
|
120
|
-
extractTags(topic, descriptions) {
|
|
121
|
-
const tags = new Set();
|
|
122
|
-
const text = (topic + ' ' + descriptions.join(' ')).toLowerCase();
|
|
123
|
-
const keywords = ['typescript', 'react', 'node', 'sql', 'api', 'auth', 'test', 'security', 'performance', 'css', 'database'];
|
|
124
|
-
for (const kw of keywords) {
|
|
125
|
-
if (text.includes(kw))
|
|
126
|
-
tags.add(kw);
|
|
127
|
-
}
|
|
128
|
-
return [...tags].slice(0, 5);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
//# sourceMappingURL=InsightExtractor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InsightExtractor.js","sourceRoot":"","sources":["../../../../src/infra/lib/evolution/In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E,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { MemoryStorage } from '../memory/MemoryStorage.js';
|
|
2
|
-
export type InsightType = 'pattern' | 'anti_pattern' | 'preference' | 'skill_gap' | 'optimization';
|
|
3
|
-
export type InsightStatus = 'draft' | 'confirmed' | 'applied' | 'deprecated';
|
|
4
|
-
export type InsightSource = 'reflection' | 'observation' | 'agent_stats' | 'manual';
|
|
5
|
-
export interface Insight {
|
|
6
|
-
id: string;
|
|
7
|
-
type: InsightType;
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
evidence: string[];
|
|
11
|
-
confidence: number;
|
|
12
|
-
occurrences: number;
|
|
13
|
-
tags: string[];
|
|
14
|
-
status: InsightStatus;
|
|
15
|
-
generatedFrom: InsightSource;
|
|
16
|
-
appliedAs: string | null;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
}
|
|
20
|
-
export interface InsightInput {
|
|
21
|
-
type: InsightType;
|
|
22
|
-
title: string;
|
|
23
|
-
description: string;
|
|
24
|
-
evidence?: string[];
|
|
25
|
-
confidence?: number;
|
|
26
|
-
tags?: string[];
|
|
27
|
-
generatedFrom: InsightSource;
|
|
28
|
-
}
|
|
29
|
-
export declare class InsightStore {
|
|
30
|
-
private db;
|
|
31
|
-
private fts5Available;
|
|
32
|
-
constructor(storage: MemoryStorage);
|
|
33
|
-
private initializeTables;
|
|
34
|
-
save(input: InsightInput): string;
|
|
35
|
-
/**
|
|
36
|
-
* Check for duplicate and merge (increment occurrences) if found
|
|
37
|
-
* Returns existing ID if merged, null if no duplicate
|
|
38
|
-
*/
|
|
39
|
-
findAndMergeDuplicate(title: string, description: string): string | null;
|
|
40
|
-
search(query: string, limit?: number): Insight[];
|
|
41
|
-
getById(id: string): Insight | null;
|
|
42
|
-
getActionable(): Insight[];
|
|
43
|
-
getByStatus(status: InsightStatus, limit?: number): Insight[];
|
|
44
|
-
getByType(type: InsightType, limit?: number): Insight[];
|
|
45
|
-
updateStatus(id: string, status: InsightStatus): boolean;
|
|
46
|
-
setAppliedAs(id: string, generationId: string): boolean;
|
|
47
|
-
cleanupLowConfidence(maxAge?: number): number;
|
|
48
|
-
getStats(): {
|
|
49
|
-
total: number;
|
|
50
|
-
byType: Record<string, number>;
|
|
51
|
-
byStatus: Record<string, number>;
|
|
52
|
-
};
|
|
53
|
-
private rowToInsight;
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=InsightStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InsightStore.d.ts","sourceRoot":"","sources":["../../../../src/infra/lib/evolution/InsightStore.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,CAAC;AACnG,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,YAAY,CAAC;AAC7E,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,aAAa,GAAG,aAAa,GAAG,QAAQ,CAAC;AAEpF,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,E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M,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE;IActG,OAAO,CAAC,YAAY;CAiBrB"}
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
// Insight storage for self-evolution Phase 2
|
|
2
|
-
// Stores extracted patterns, anti-patterns, skill gaps, and optimizations
|
|
3
|
-
import { randomUUID } from 'crypto';
|
|
4
|
-
function generateId() {
|
|
5
|
-
const timestamp = Date.now().toString(36);
|
|
6
|
-
const uuid = randomUUID().replace(/-/g, '').slice(0, 12);
|
|
7
|
-
return `ins-${timestamp}-${uuid}`;
|
|
8
|
-
}
|
|
9
|
-
export class InsightStore {
|
|
10
|
-
db;
|
|
11
|
-
fts5Available;
|
|
12
|
-
constructor(storage) {
|
|
13
|
-
this.db = storage.getDatabase();
|
|
14
|
-
this.fts5Available = storage.isFTS5Available();
|
|
15
|
-
this.initializeTables();
|
|
16
|
-
}
|
|
17
|
-
initializeTables() {
|
|
18
|
-
this.db.exec(`
|
|
19
|
-
CREATE TABLE IF NOT EXISTS insights (
|
|
20
|
-
id TEXT PRIMARY KEY,
|
|
21
|
-
type TEXT NOT NULL CHECK(type IN ('pattern','anti_pattern','preference','skill_gap','optimization')),
|
|
22
|
-
title TEXT NOT NULL,
|
|
23
|
-
description TEXT NOT NULL,
|
|
24
|
-
evidence TEXT,
|
|
25
|
-
confidence REAL DEFAULT 0.5 CHECK(confidence >= 0 AND confidence <= 1),
|
|
26
|
-
occurrences INTEGER DEFAULT 1,
|
|
27
|
-
tags TEXT,
|
|
28
|
-
status TEXT NOT NULL DEFAULT 'draft' CHECK(status IN ('draft','confirmed','applied','deprecated')),
|
|
29
|
-
generatedFrom TEXT NOT NULL CHECK(generatedFrom IN ('reflection','observation','agent_stats','manual')),
|
|
30
|
-
appliedAs TEXT,
|
|
31
|
-
createdAt TEXT NOT NULL,
|
|
32
|
-
updatedAt TEXT NOT NULL
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
CREATE INDEX IF NOT EXISTS idx_ins_type ON insights(type);
|
|
36
|
-
CREATE INDEX IF NOT EXISTS idx_ins_status ON insights(status);
|
|
37
|
-
CREATE INDEX IF NOT EXISTS idx_ins_confidence ON insights(confidence);
|
|
38
|
-
CREATE INDEX IF NOT EXISTS idx_ins_created ON insights(createdAt);
|
|
39
|
-
CREATE INDEX IF NOT EXISTS idx_ins_source ON insights(generatedFrom);
|
|
40
|
-
`);
|
|
41
|
-
// Skill gaps table for prompt-dispatcher miss logging
|
|
42
|
-
this.db.exec(`
|
|
43
|
-
CREATE TABLE IF NOT EXISTS skill_gaps (
|
|
44
|
-
id TEXT PRIMARY KEY,
|
|
45
|
-
prompt TEXT NOT NULL,
|
|
46
|
-
normalizedPrompt TEXT,
|
|
47
|
-
sessionId TEXT,
|
|
48
|
-
createdAt TEXT NOT NULL
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
CREATE INDEX IF NOT EXISTS idx_sg_normalized ON skill_gaps(normalizedPrompt);
|
|
52
|
-
CREATE INDEX IF NOT EXISTS idx_sg_created ON skill_gaps(createdAt);
|
|
53
|
-
`);
|
|
54
|
-
if (this.fts5Available) {
|
|
55
|
-
try {
|
|
56
|
-
this.db.exec(`
|
|
57
|
-
CREATE VIRTUAL TABLE IF NOT EXISTS insights_fts
|
|
58
|
-
USING fts5(title, description, tags, content=insights, content_rowid=rowid);
|
|
59
|
-
|
|
60
|
-
CREATE TRIGGER IF NOT EXISTS insights_ai AFTER INSERT ON insights BEGIN
|
|
61
|
-
INSERT INTO insights_fts(rowid, title, description, tags)
|
|
62
|
-
VALUES (new.rowid, new.title, new.description, new.tags);
|
|
63
|
-
END;
|
|
64
|
-
CREATE TRIGGER IF NOT EXISTS insights_ad AFTER DELETE ON insights BEGIN
|
|
65
|
-
INSERT INTO insights_fts(insights_fts, rowid, title, description, tags)
|
|
66
|
-
VALUES('delete', old.rowid, old.title, old.description, old.tags);
|
|
67
|
-
END;
|
|
68
|
-
CREATE TRIGGER IF NOT EXISTS insights_au AFTER UPDATE ON insights BEGIN
|
|
69
|
-
INSERT INTO insights_fts(insights_fts, rowid, title, description, tags)
|
|
70
|
-
VALUES('delete', old.rowid, old.title, old.description, old.tags);
|
|
71
|
-
INSERT INTO insights_fts(rowid, title, description, tags)
|
|
72
|
-
VALUES (new.rowid, new.title, new.description, new.tags);
|
|
73
|
-
END;
|
|
74
|
-
`);
|
|
75
|
-
}
|
|
76
|
-
catch {
|
|
77
|
-
// FTS5 setup failed, continue without it
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
save(input) {
|
|
82
|
-
const id = generateId();
|
|
83
|
-
const now = new Date().toISOString();
|
|
84
|
-
const confidence = Math.max(0, Math.min(1, input.confidence ?? 0.5));
|
|
85
|
-
this.db.prepare(`
|
|
86
|
-
INSERT INTO insights (id, type, title, description, evidence, confidence, occurrences, tags, status, generatedFrom, createdAt, updatedAt)
|
|
87
|
-
VALUES (?, ?, ?, ?, ?, ?, 1, ?, 'draft', ?, ?, ?)
|
|
88
|
-
`).run(id, input.type, input.title, input.description, JSON.stringify(input.evidence ?? []), confidence, JSON.stringify(input.tags ?? []), input.generatedFrom, now, now);
|
|
89
|
-
return id;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Check for duplicate and merge (increment occurrences) if found
|
|
93
|
-
* Returns existing ID if merged, null if no duplicate
|
|
94
|
-
*/
|
|
95
|
-
findAndMergeDuplicate(title, description) {
|
|
96
|
-
if (this.fts5Available) {
|
|
97
|
-
try {
|
|
98
|
-
const row = this.db.prepare(`
|
|
99
|
-
SELECT i.id, i.occurrences, i.confidence
|
|
100
|
-
FROM insights_fts fts
|
|
101
|
-
JOIN insights i ON i.rowid = fts.rowid
|
|
102
|
-
WHERE insights_fts MATCH ?
|
|
103
|
-
ORDER BY bm25(insights_fts)
|
|
104
|
-
LIMIT 1
|
|
105
|
-
`).get(title);
|
|
106
|
-
if (row) {
|
|
107
|
-
const newOccurrences = row.occurrences + 1;
|
|
108
|
-
const newConfidence = Math.min(1.0, newOccurrences * 0.2 + 0.1);
|
|
109
|
-
this.db.prepare(`
|
|
110
|
-
UPDATE insights SET occurrences = ?, confidence = ?, updatedAt = ? WHERE id = ?
|
|
111
|
-
`).run(newOccurrences, newConfidence, new Date().toISOString(), row.id);
|
|
112
|
-
return row.id;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
catch {
|
|
116
|
-
// FTS5 failed, treat as no duplicate
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return null;
|
|
120
|
-
}
|
|
121
|
-
search(query, limit = 20) {
|
|
122
|
-
if (this.fts5Available) {
|
|
123
|
-
try {
|
|
124
|
-
const rows = this.db.prepare(`
|
|
125
|
-
SELECT i.*, bm25(insights_fts) as rank
|
|
126
|
-
FROM insights_fts fts
|
|
127
|
-
JOIN insights i ON i.rowid = fts.rowid
|
|
128
|
-
WHERE insights_fts MATCH ?
|
|
129
|
-
ORDER BY i.confidence DESC, rank
|
|
130
|
-
LIMIT ?
|
|
131
|
-
`).all(query, limit);
|
|
132
|
-
return rows.map(this.rowToInsight);
|
|
133
|
-
}
|
|
134
|
-
catch {
|
|
135
|
-
// Fallback to LIKE
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
const pattern = `%${query}%`;
|
|
139
|
-
const rows = this.db.prepare(`
|
|
140
|
-
SELECT * FROM insights
|
|
141
|
-
WHERE title LIKE ? OR description LIKE ? OR tags LIKE ?
|
|
142
|
-
ORDER BY confidence DESC, createdAt DESC
|
|
143
|
-
LIMIT ?
|
|
144
|
-
`).all(pattern, pattern, pattern, limit);
|
|
145
|
-
return rows.map(this.rowToInsight);
|
|
146
|
-
}
|
|
147
|
-
getById(id) {
|
|
148
|
-
const row = this.db.prepare(`SELECT * FROM insights WHERE id = ?`).get(id);
|
|
149
|
-
return row ? this.rowToInsight(row) : null;
|
|
150
|
-
}
|
|
151
|
-
getActionable() {
|
|
152
|
-
const rows = this.db.prepare(`
|
|
153
|
-
SELECT * FROM insights
|
|
154
|
-
WHERE status = 'confirmed' AND type IN ('skill_gap', 'pattern', 'anti_pattern')
|
|
155
|
-
ORDER BY confidence DESC, occurrences DESC
|
|
156
|
-
LIMIT 20
|
|
157
|
-
`).all();
|
|
158
|
-
return rows.map(this.rowToInsight);
|
|
159
|
-
}
|
|
160
|
-
getByStatus(status, limit = 50) {
|
|
161
|
-
const rows = this.db.prepare(`
|
|
162
|
-
SELECT * FROM insights WHERE status = ? ORDER BY updatedAt DESC LIMIT ?
|
|
163
|
-
`).all(status, limit);
|
|
164
|
-
return rows.map(this.rowToInsight);
|
|
165
|
-
}
|
|
166
|
-
getByType(type, limit = 50) {
|
|
167
|
-
const rows = this.db.prepare(`
|
|
168
|
-
SELECT * FROM insights WHERE type = ? ORDER BY confidence DESC LIMIT ?
|
|
169
|
-
`).all(type, limit);
|
|
170
|
-
return rows.map(this.rowToInsight);
|
|
171
|
-
}
|
|
172
|
-
updateStatus(id, status) {
|
|
173
|
-
const result = this.db.prepare(`
|
|
174
|
-
UPDATE insights SET status = ?, updatedAt = ? WHERE id = ?
|
|
175
|
-
`).run(status, new Date().toISOString(), id);
|
|
176
|
-
return result.changes > 0;
|
|
177
|
-
}
|
|
178
|
-
setAppliedAs(id, generationId) {
|
|
179
|
-
const result = this.db.prepare(`
|
|
180
|
-
UPDATE insights SET appliedAs = ?, status = 'applied', updatedAt = ? WHERE id = ?
|
|
181
|
-
`).run(generationId, new Date().toISOString(), id);
|
|
182
|
-
return result.changes > 0;
|
|
183
|
-
}
|
|
184
|
-
cleanupLowConfidence(maxAge = 7 * 24 * 60 * 60 * 1000) {
|
|
185
|
-
const cutoff = new Date(Date.now() - maxAge).toISOString();
|
|
186
|
-
const result = this.db.prepare(`
|
|
187
|
-
DELETE FROM insights WHERE confidence < 0.3 AND createdAt < ?
|
|
188
|
-
`).run(cutoff);
|
|
189
|
-
return result.changes;
|
|
190
|
-
}
|
|
191
|
-
getStats() {
|
|
192
|
-
const types = this.db.prepare(`SELECT type, COUNT(*) as count FROM insights GROUP BY type`).all();
|
|
193
|
-
const statuses = this.db.prepare(`SELECT status, COUNT(*) as count FROM insights GROUP BY status`).all();
|
|
194
|
-
const byType = {};
|
|
195
|
-
const byStatus = {};
|
|
196
|
-
let total = 0;
|
|
197
|
-
types.forEach(t => { byType[t.type] = t.count; total += t.count; });
|
|
198
|
-
statuses.forEach(s => { byStatus[s.status] = s.count; });
|
|
199
|
-
return { total, byType, byStatus };
|
|
200
|
-
}
|
|
201
|
-
rowToInsight(row) {
|
|
202
|
-
return {
|
|
203
|
-
id: row.id,
|
|
204
|
-
type: row.type,
|
|
205
|
-
title: row.title,
|
|
206
|
-
description: row.description,
|
|
207
|
-
evidence: row.evidence ? JSON.parse(row.evidence) : [],
|
|
208
|
-
confidence: row.confidence,
|
|
209
|
-
occurrences: row.occurrences,
|
|
210
|
-
tags: row.tags ? JSON.parse(row.tags) : [],
|
|
211
|
-
status: row.status,
|
|
212
|
-
generatedFrom: row.generatedFrom,
|
|
213
|
-
appliedAs: row.appliedAs,
|
|
214
|
-
createdAt: row.createdAt,
|
|
215
|
-
updatedAt: row.updatedAt,
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
//# sourceMappingURL=InsightStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InsightStore.js","sourceRoot":"","sources":["../../../../src/infra/lib/evolution/InsightStore.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,0EAA0E;AAG1E,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAiDpC,SAAS,UAAU;IACjB,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC1C,MAAM,IAAI,GAAG,UAAU,EAAE,CAAC,OAAO,CAAC,IAAI,E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|
|
1
|
-
import { MemoryStorage } from '../memory/MemoryStorage.js';
|
|
2
|
-
interface TransitionResult {
|
|
3
|
-
promoted: string[];
|
|
4
|
-
demoted: string[];
|
|
5
|
-
deleted: string[];
|
|
6
|
-
errors: string[];
|
|
7
|
-
}
|
|
8
|
-
export declare class LifecycleManager {
|
|
9
|
-
private registry;
|
|
10
|
-
private tracker;
|
|
11
|
-
private rollback;
|
|
12
|
-
constructor(storage: MemoryStorage);
|
|
13
|
-
/**
|
|
14
|
-
* Run full lifecycle check: promotions + demotions + TTL cleanup + deletion
|
|
15
|
-
*/
|
|
16
|
-
cleanup(): TransitionResult;
|
|
17
|
-
/**
|
|
18
|
-
* testing → active: 3+ usage + weighted negative ratio < 30%
|
|
19
|
-
*/
|
|
20
|
-
checkPromotions(): string[];
|
|
21
|
-
/**
|
|
22
|
-
* active → disabled: weighted negative ratio > 50%
|
|
23
|
-
*/
|
|
24
|
-
checkDemotions(): string[];
|
|
25
|
-
/**
|
|
26
|
-
* active → disabled: no usage for TTL_DAYS
|
|
27
|
-
*/
|
|
28
|
-
checkTTLExpiration(): string[];
|
|
29
|
-
/**
|
|
30
|
-
* disabled → deleted: disabled for additional TTL_DAYS with no recovery
|
|
31
|
-
*/
|
|
32
|
-
checkDeletions(): string[];
|
|
33
|
-
/**
|
|
34
|
-
* Approve a draft generation (draft → testing)
|
|
35
|
-
*/
|
|
36
|
-
approve(generationId: string): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Reject a draft generation (draft → deleted)
|
|
39
|
-
*/
|
|
40
|
-
reject(generationId: string): boolean;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=LifecycleManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LifecycleManager.d.ts","sourceRoot":"","sources":["../../../../src/infra/lib/evolution/LifecycleManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAK3D,UAAU,gBAAgB;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAOD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAqB;IACrC,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,QAAQ,CAAkB;gBAEtB,OAAO,EAAE,aAAa;IAMlC;;OAEG;IACI,OAAO,IAAI,gBAAgB;IAsBlC;;OAEG;IACI,eAAe,IAAI,MAAM,EAAE;IAkBlC;;OAEG;IACI,cAAc,IAAI,MAAM,EAAE;IAmBjC;;OAEG;IACI,kBAAkB,IAAI,MAAM,EAAE;IAqBrC;;OAEG;IACI,cAAc,IAAI,MAAM,EAAE;IAiBjC;;OAEG;IACI,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAM7C;;OAEG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;CAK7C"}
|