@su-record/vibe 2.16.4 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +8 -8
- package/README.en.md +46 -29
- package/README.md +41 -24
- package/agents/acceptance-tester.md +56 -0
- package/agents/architect.md +25 -67
- package/agents/build-error-resolver.md +28 -97
- package/agents/code-reviewer.md +89 -0
- package/agents/diagrammer.md +34 -169
- package/agents/documenter.md +43 -0
- package/agents/e2e-tester.md +46 -281
- package/agents/event/event-ops.md +54 -77
- package/agents/event/event-planner.md +63 -0
- package/agents/figma/figma-engineer.md +76 -0
- package/agents/implementer.md +26 -41
- package/agents/security-reviewer.md +56 -0
- package/agents/tester.md +37 -33
- package/agents/ui/design-reviewer.md +62 -0
- package/agents/ui/design-system-gen.md +63 -0
- package/dist/cli/commands/remove.d.ts.map +1 -1
- package/dist/cli/commands/remove.js +8 -10
- package/dist/cli/commands/remove.js.map +1 -1
- package/dist/cli/index.d.ts +0 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +0 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/llm/model-refresh.js +1 -1
- package/dist/cli/llm/model-refresh.js.map +1 -1
- package/dist/cli/postinstall/claude-agents.d.ts.map +1 -1
- package/dist/cli/postinstall/claude-agents.js +16 -77
- package/dist/cli/postinstall/claude-agents.js.map +1 -1
- package/dist/cli/postinstall/constants.d.ts.map +1 -1
- package/dist/cli/postinstall/constants.js +80 -296
- package/dist/cli/postinstall/constants.js.map +1 -1
- package/dist/cli/postinstall/cursor-agents.d.ts +5 -0
- package/dist/cli/postinstall/cursor-agents.d.ts.map +1 -1
- package/dist/cli/postinstall/cursor-agents.js +26 -68
- package/dist/cli/postinstall/cursor-agents.js.map +1 -1
- package/dist/cli/postinstall/cursor-skills.d.ts.map +1 -1
- package/dist/cli/postinstall/cursor-skills.js +26 -30
- package/dist/cli/postinstall/cursor-skills.js.map +1 -1
- package/dist/cli/postinstall/main.d.ts.map +1 -1
- package/dist/cli/postinstall/main.js +0 -2
- package/dist/cli/postinstall/main.js.map +1 -1
- package/dist/cli/setup/Provisioner.d.ts.map +1 -1
- package/dist/cli/setup/Provisioner.js +19 -21
- package/dist/cli/setup/Provisioner.js.map +1 -1
- package/dist/cli/utils.d.ts +4 -1
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js +4 -1
- package/dist/cli/utils.js.map +1 -1
- package/dist/infra/lib/FrameworkDetector.js +4 -4
- package/dist/infra/lib/FrameworkDetector.js.map +1 -1
- package/dist/infra/lib/OrchestrateWorkflow.js +2 -2
- package/dist/infra/lib/OrchestrateWorkflow.js.map +1 -1
- package/dist/infra/lib/browser/launch.js +1 -1
- package/dist/infra/lib/browser/launch.js.map +1 -1
- package/dist/infra/lib/browser/types.d.ts +1 -1
- package/dist/infra/lib/browser/types.js +1 -1
- package/dist/infra/lib/constants.d.ts +1 -1
- package/dist/infra/lib/constants.d.ts.map +1 -1
- package/dist/infra/lib/constants.js +4 -5
- package/dist/infra/lib/constants.js.map +1 -1
- package/dist/infra/lib/evolution/__tests__/integration.test.js +7 -7
- package/dist/infra/lib/evolution/__tests__/integration.test.js.map +1 -1
- package/dist/infra/lib/memory/index.d.ts +0 -2
- package/dist/infra/lib/memory/index.d.ts.map +1 -1
- package/dist/infra/lib/memory/index.js +0 -2
- package/dist/infra/lib/memory/index.js.map +1 -1
- package/dist/infra/lib/telemetry/SkillTelemetry.test.js +1 -1
- package/dist/infra/lib/telemetry/SkillTelemetry.test.js.map +1 -1
- package/dist/tools/index.d.ts +0 -4
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +0 -4
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/memory/autoSaveContext.d.ts +0 -1
- package/dist/tools/memory/autoSaveContext.d.ts.map +1 -1
- package/dist/tools/memory/autoSaveContext.js +13 -27
- package/dist/tools/memory/autoSaveContext.js.map +1 -1
- package/hooks/scripts/__tests__/.vibe/command-log.txt +3 -78
- package/hooks/scripts/__tests__/.vibe/memories/memories.db +0 -0
- package/hooks/scripts/__tests__/.vibe/memories/memories.db-shm +0 -0
- package/hooks/scripts/__tests__/.vibe/memories/memories.db-wal +0 -0
- package/hooks/scripts/__tests__/clone-behaviors.test.js +64 -0
- package/hooks/scripts/__tests__/clone-merge-responsive.test.js +106 -0
- package/hooks/scripts/__tests__/code-check-detectors.test.js +2 -2
- package/hooks/scripts/__tests__/run-ledger.test.js +1 -1
- package/hooks/scripts/__tests__/scope-from-spec.test.js +12 -12
- package/hooks/scripts/__tests__/step-counter.test.js +1 -1
- package/hooks/scripts/clone-extract.js +242 -28
- package/hooks/scripts/clone-merge-responsive.js +184 -0
- package/hooks/scripts/clone-spec.js +33 -8
- package/hooks/scripts/clone-validate.js +15 -9
- package/hooks/scripts/code-check.js +16 -203
- package/hooks/scripts/context-save.js +0 -11
- package/hooks/scripts/lib/scope-from-spec.js +9 -6
- package/hooks/scripts/post-edit-dispatcher.js +1 -1
- package/hooks/scripts/prompt-dispatcher.js +7 -18
- package/hooks/scripts/session-start.js +25 -35
- package/package.json +6 -5
- package/skills/agents-md/SKILL.md +62 -15
- package/skills/arch-guard/SKILL.md +1 -1
- package/skills/brand-assets/SKILL.md +2 -2
- package/skills/capability-loop/SKILL.md +1 -1
- package/skills/chub-usage/SKILL.md +1 -1
- package/skills/clone/SKILL.md +132 -55
- package/skills/commerce-patterns/SKILL.md +2 -2
- package/skills/commit-push-pr/SKILL.md +0 -1
- package/skills/context7-usage/SKILL.md +1 -1
- package/skills/design-refine/SKILL.md +140 -0
- package/skills/{design-polish → design-refine}/templates/polish-report.md +1 -1
- package/skills/{design-normalize → design-refine}/templates/token-audit.md +3 -3
- package/skills/design-review/SKILL.md +143 -0
- package/skills/{design-audit → design-review}/agents/a11y-auditor.md +1 -1
- package/skills/{design-audit → design-review}/agents/performance-auditor.md +1 -1
- package/skills/{design-audit → design-review}/agents/responsive-auditor.md +1 -1
- package/skills/{design-audit → design-review}/agents/slop-detector.md +1 -1
- package/skills/{design-audit → design-review}/frameworks/core-web-vitals.md +1 -1
- package/skills/{design-audit → design-review}/frameworks/wcag-checklist.md +1 -1
- package/skills/{design-audit → design-review}/orchestrator.md +3 -3
- package/skills/{design-critique → design-review}/templates/critique-report.md +3 -3
- package/skills/{design-audit → design-review}/templates/report.md +3 -3
- package/skills/design-teach/SKILL.md +11 -11
- package/skills/docs/SKILL.md +14 -16
- package/skills/e2e-commerce/SKILL.md +1 -1
- package/skills/event-comms/SKILL.md +1 -1
- package/skills/event-ops/SKILL.md +2 -2
- package/skills/event-planning/SKILL.md +1 -1
- package/skills/exec-plan/SKILL.md +2 -2
- package/skills/figma/SKILL.md +240 -148
- package/skills/figma/rubrics/css-mapping.md +125 -0
- package/skills/git-worktree/SKILL.md +1 -1
- package/skills/handoff/SKILL.md +1 -1
- package/skills/parallel-research/SKILL.md +14 -28
- package/skills/priority-todos/SKILL.md +1 -1
- package/skills/regress/SKILL.md +11 -0
- package/skills/restraint/SKILL.md +72 -0
- package/skills/seo-checklist/SKILL.md +2 -2
- package/skills/spec/SKILL.md +65 -836
- package/skills/test/SKILL.md +3 -3
- package/skills/tool-fallback/SKILL.md +2 -2
- package/skills/vercel-react-best-practices/SKILL.md +1 -1
- package/skills/vibe/SKILL.md +20 -35
- package/skills/vibe.analyze/SKILL.md +7 -9
- package/skills/vibe.clone/SKILL.md +39 -19
- package/skills/vibe.docs/SKILL.md +1 -1
- package/skills/vibe.event/SKILL.md +27 -27
- package/skills/vibe.figma/SKILL.md +14 -18
- package/skills/vibe.harness/SKILL.md +5 -5
- package/skills/vibe.reason/SKILL.md +0 -2
- package/skills/vibe.review/SKILL.md +45 -49
- package/skills/vibe.run/SKILL.md +2 -5
- package/skills/vibe.run/references/parallel-agents.md +33 -98
- package/skills/vibe.spec/SKILL.md +38 -535
- package/skills/vibe.utils/SKILL.md +3 -3
- package/skills/vibe.verify/SKILL.md +70 -542
- package/skills/video-production/SKILL.md +1 -1
- package/vibe/rules/orchestrator-contract.md +5 -4
- package/vibe/rules/quality/performance.md +1 -1
- package/vibe/templates/claudemd-template.md +1 -1
- package/vibe/templates/spec-template.md +35 -185
- package/agents/architect-low.md +0 -41
- package/agents/architect-medium.md +0 -59
- package/agents/compounder.md +0 -265
- package/agents/docs/api-documenter.md +0 -99
- package/agents/docs/changelog-writer.md +0 -93
- package/agents/event/event-comms.md +0 -78
- package/agents/event/event-content.md +0 -68
- package/agents/event/event-image.md +0 -95
- package/agents/event/event-scheduler.md +0 -69
- package/agents/event/event-speaker.md +0 -86
- package/agents/explorer-low.md +0 -42
- package/agents/explorer-medium.md +0 -59
- package/agents/explorer.md +0 -48
- package/agents/figma/figma-analyst.md +0 -56
- package/agents/figma/figma-architect.md +0 -116
- package/agents/figma/figma-auditor.md +0 -86
- package/agents/figma/figma-builder.md +0 -104
- package/agents/implementer-low.md +0 -43
- package/agents/implementer-medium.md +0 -52
- package/agents/junior-mentor.md +0 -141
- package/agents/planning/requirements-analyst.md +0 -84
- package/agents/planning/ux-advisor.md +0 -83
- package/agents/qa/acceptance-tester.md +0 -86
- package/agents/qa/edge-case-finder.md +0 -93
- package/agents/qa/qa-coordinator.md +0 -131
- package/agents/refactor-cleaner.md +0 -143
- package/agents/research/best-practices.md +0 -199
- package/agents/research/codebase-patterns.md +0 -157
- package/agents/research/framework-docs.md +0 -188
- package/agents/research/security-advisory.md +0 -213
- package/agents/review/architecture-reviewer.md +0 -107
- package/agents/review/complexity-reviewer.md +0 -116
- package/agents/review/data-integrity-reviewer.md +0 -88
- package/agents/review/git-history-reviewer.md +0 -103
- package/agents/review/performance-reviewer.md +0 -86
- package/agents/review/python-reviewer.md +0 -150
- package/agents/review/rails-reviewer.md +0 -139
- package/agents/review/react-reviewer.md +0 -144
- package/agents/review/security-reviewer.md +0 -80
- package/agents/review/simplicity-reviewer.md +0 -140
- package/agents/review/test-coverage-reviewer.md +0 -116
- package/agents/review/typescript-reviewer.md +0 -127
- package/agents/searcher.md +0 -54
- package/agents/simplifier.md +0 -124
- package/agents/teams/debug-team.md +0 -74
- package/agents/teams/dev-team.md +0 -92
- package/agents/teams/docs-team.md +0 -84
- package/agents/teams/figma-team.md +0 -89
- package/agents/teams/fullstack-team.md +0 -87
- package/agents/teams/lite-team.md +0 -73
- package/agents/teams/migration-team.md +0 -82
- package/agents/teams/refactor-team.md +0 -98
- package/agents/teams/research-team.md +0 -90
- package/agents/teams/review-debate-team.md +0 -129
- package/agents/teams/security-team.md +0 -85
- package/agents/ui/ui-a11y-auditor.md +0 -93
- package/agents/ui/ui-antipattern-detector.md +0 -102
- package/agents/ui/ui-dataviz-advisor.md +0 -69
- package/agents/ui/ui-design-system-gen.md +0 -57
- package/agents/ui/ui-industry-analyzer.md +0 -49
- package/agents/ui/ui-layout-architect.md +0 -65
- package/agents/ui/ui-stack-implementer.md +0 -68
- package/agents/ui/ux-compliance-reviewer.md +0 -81
- package/agents/ui-previewer.md +0 -262
- package/dist/cli/llm/gemini-commands.d.ts +0 -25
- package/dist/cli/llm/gemini-commands.d.ts.map +0 -1
- package/dist/cli/llm/gemini-commands.js +0 -143
- package/dist/cli/llm/gemini-commands.js.map +0 -1
- package/dist/cli/postinstall/codex-agents.d.ts +0 -24
- package/dist/cli/postinstall/codex-agents.d.ts.map +0 -1
- package/dist/cli/postinstall/codex-agents.js +0 -114
- package/dist/cli/postinstall/codex-agents.js.map +0 -1
- package/dist/cli/postinstall/codex-instruction.d.ts +0 -10
- package/dist/cli/postinstall/codex-instruction.d.ts.map +0 -1
- package/dist/cli/postinstall/codex-instruction.js +0 -56
- package/dist/cli/postinstall/codex-instruction.js.map +0 -1
- package/dist/cli/postinstall/gemini-agents.d.ts +0 -12
- package/dist/cli/postinstall/gemini-agents.d.ts.map +0 -1
- package/dist/cli/postinstall/gemini-agents.js +0 -80
- package/dist/cli/postinstall/gemini-agents.js.map +0 -1
- package/dist/cli/postinstall/gemini-instruction.d.ts +0 -10
- package/dist/cli/postinstall/gemini-instruction.d.ts.map +0 -1
- package/dist/cli/postinstall/gemini-instruction.js +0 -59
- package/dist/cli/postinstall/gemini-instruction.js.map +0 -1
- package/dist/infra/lib/ContextCompressor.d.ts +0 -104
- package/dist/infra/lib/ContextCompressor.d.ts.map +0 -1
- package/dist/infra/lib/ContextCompressor.js +0 -297
- package/dist/infra/lib/ContextCompressor.js.map +0 -1
- package/dist/infra/lib/ContextCompressor.test.d.ts +0 -2
- package/dist/infra/lib/ContextCompressor.test.d.ts.map +0 -1
- package/dist/infra/lib/ContextCompressor.test.js +0 -25
- package/dist/infra/lib/ContextCompressor.test.js.map +0 -1
- package/dist/infra/lib/ProgressTracker.d.ts +0 -73
- package/dist/infra/lib/ProgressTracker.d.ts.map +0 -1
- package/dist/infra/lib/ProgressTracker.js +0 -267
- package/dist/infra/lib/ProgressTracker.js.map +0 -1
- package/dist/infra/lib/TokenBudgetTracker.d.ts +0 -68
- package/dist/infra/lib/TokenBudgetTracker.d.ts.map +0 -1
- package/dist/infra/lib/TokenBudgetTracker.js +0 -191
- package/dist/infra/lib/TokenBudgetTracker.js.map +0 -1
- package/dist/infra/lib/autonomy/AuditStore.d.ts +0 -63
- package/dist/infra/lib/autonomy/AuditStore.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/AuditStore.js +0 -185
- package/dist/infra/lib/autonomy/AuditStore.js.map +0 -1
- package/dist/infra/lib/autonomy/AutonomyConfig.d.ts +0 -84
- package/dist/infra/lib/autonomy/AutonomyConfig.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/AutonomyConfig.js +0 -49
- package/dist/infra/lib/autonomy/AutonomyConfig.js.map +0 -1
- package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts +0 -78
- package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/AutonomyOrchestrator.js +0 -246
- package/dist/infra/lib/autonomy/AutonomyOrchestrator.js.map +0 -1
- package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts +0 -36
- package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/BackgroundMonitor.js +0 -138
- package/dist/infra/lib/autonomy/BackgroundMonitor.js.map +0 -1
- package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts +0 -56
- package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/CollaborationProtocol.js +0 -122
- package/dist/infra/lib/autonomy/CollaborationProtocol.js.map +0 -1
- package/dist/infra/lib/autonomy/ConfirmationManager.d.ts +0 -42
- package/dist/infra/lib/autonomy/ConfirmationManager.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/ConfirmationManager.js +0 -200
- package/dist/infra/lib/autonomy/ConfirmationManager.js.map +0 -1
- package/dist/infra/lib/autonomy/ConfirmationStore.d.ts +0 -55
- package/dist/infra/lib/autonomy/ConfirmationStore.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/ConfirmationStore.js +0 -130
- package/dist/infra/lib/autonomy/ConfirmationStore.js.map +0 -1
- package/dist/infra/lib/autonomy/EventBus.d.ts +0 -20
- package/dist/infra/lib/autonomy/EventBus.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/EventBus.js +0 -119
- package/dist/infra/lib/autonomy/EventBus.js.map +0 -1
- package/dist/infra/lib/autonomy/EventOutbox.d.ts +0 -32
- package/dist/infra/lib/autonomy/EventOutbox.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/EventOutbox.js +0 -152
- package/dist/infra/lib/autonomy/EventOutbox.js.map +0 -1
- package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts +0 -24
- package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/NotificationDispatcher.js +0 -112
- package/dist/infra/lib/autonomy/NotificationDispatcher.js.map +0 -1
- package/dist/infra/lib/autonomy/PolicyEngine.d.ts +0 -76
- package/dist/infra/lib/autonomy/PolicyEngine.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/PolicyEngine.js +0 -208
- package/dist/infra/lib/autonomy/PolicyEngine.js.map +0 -1
- package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts +0 -61
- package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/ProactiveAnalyzer.js +0 -236
- package/dist/infra/lib/autonomy/ProactiveAnalyzer.js.map +0 -1
- package/dist/infra/lib/autonomy/RiskClassifier.d.ts +0 -35
- package/dist/infra/lib/autonomy/RiskClassifier.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/RiskClassifier.js +0 -147
- package/dist/infra/lib/autonomy/RiskClassifier.js.map +0 -1
- package/dist/infra/lib/autonomy/SecuritySentinel.d.ts +0 -51
- package/dist/infra/lib/autonomy/SecuritySentinel.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/SecuritySentinel.js +0 -162
- package/dist/infra/lib/autonomy/SecuritySentinel.js.map +0 -1
- package/dist/infra/lib/autonomy/SuggestionStore.d.ts +0 -54
- package/dist/infra/lib/autonomy/SuggestionStore.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/SuggestionStore.js +0 -144
- package/dist/infra/lib/autonomy/SuggestionStore.js.map +0 -1
- package/dist/infra/lib/autonomy/TaskDecomposer.d.ts +0 -38
- package/dist/infra/lib/autonomy/TaskDecomposer.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/TaskDecomposer.js +0 -175
- package/dist/infra/lib/autonomy/TaskDecomposer.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/audit-store.test.js +0 -198
- package/dist/infra/lib/autonomy/__tests__/audit-store.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/event-bus.test.js +0 -225
- package/dist/infra/lib/autonomy/__tests__/event-bus.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/event-core.test.js +0 -194
- package/dist/infra/lib/autonomy/__tests__/event-core.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/governance.test.js +0 -540
- package/dist/infra/lib/autonomy/__tests__/governance.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/integration.test.js +0 -480
- package/dist/infra/lib/autonomy/__tests__/integration.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/proactive.test.js +0 -410
- package/dist/infra/lib/autonomy/__tests__/proactive.test.js.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts +0 -2
- package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/__tests__/sentinel.test.js +0 -486
- package/dist/infra/lib/autonomy/__tests__/sentinel.test.js.map +0 -1
- package/dist/infra/lib/autonomy/index.d.ts +0 -18
- package/dist/infra/lib/autonomy/index.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/index.js +0 -22
- package/dist/infra/lib/autonomy/index.js.map +0 -1
- package/dist/infra/lib/autonomy/schemas.d.ts +0 -317
- package/dist/infra/lib/autonomy/schemas.d.ts.map +0 -1
- package/dist/infra/lib/autonomy/schemas.js +0 -90
- package/dist/infra/lib/autonomy/schemas.js.map +0 -1
- package/dist/infra/lib/claude/index.d.ts +0 -5
- package/dist/infra/lib/claude/index.d.ts.map +0 -1
- package/dist/infra/lib/claude/index.js +0 -5
- package/dist/infra/lib/claude/index.js.map +0 -1
- package/dist/infra/lib/claude/storage.d.ts +0 -12
- package/dist/infra/lib/claude/storage.d.ts.map +0 -1
- package/dist/infra/lib/claude/storage.js +0 -54
- package/dist/infra/lib/claude/storage.js.map +0 -1
- package/dist/infra/lib/gemini/auth.d.ts +0 -18
- package/dist/infra/lib/gemini/auth.d.ts.map +0 -1
- package/dist/infra/lib/gemini/auth.js +0 -32
- package/dist/infra/lib/gemini/auth.js.map +0 -1
- package/dist/infra/lib/gemini/capabilities.d.ts +0 -28
- package/dist/infra/lib/gemini/capabilities.d.ts.map +0 -1
- package/dist/infra/lib/gemini/capabilities.js +0 -178
- package/dist/infra/lib/gemini/capabilities.js.map +0 -1
- package/dist/infra/lib/gemini/chat.d.ts +0 -35
- package/dist/infra/lib/gemini/chat.d.ts.map +0 -1
- package/dist/infra/lib/gemini/chat.js +0 -161
- package/dist/infra/lib/gemini/chat.js.map +0 -1
- package/dist/infra/lib/gemini/completion.d.ts +0 -12
- package/dist/infra/lib/gemini/completion.d.ts.map +0 -1
- package/dist/infra/lib/gemini/completion.js +0 -13
- package/dist/infra/lib/gemini/completion.js.map +0 -1
- package/dist/infra/lib/gemini/constants.d.ts +0 -8
- package/dist/infra/lib/gemini/constants.d.ts.map +0 -1
- package/dist/infra/lib/gemini/constants.js +0 -11
- package/dist/infra/lib/gemini/constants.js.map +0 -1
- package/dist/infra/lib/gemini/index.d.ts +0 -13
- package/dist/infra/lib/gemini/index.d.ts.map +0 -1
- package/dist/infra/lib/gemini/index.js +0 -12
- package/dist/infra/lib/gemini/index.js.map +0 -1
- package/dist/infra/lib/gemini/models.d.ts +0 -11
- package/dist/infra/lib/gemini/models.d.ts.map +0 -1
- package/dist/infra/lib/gemini/models.js +0 -38
- package/dist/infra/lib/gemini/models.js.map +0 -1
- package/dist/infra/lib/gemini/orchestration.d.ts +0 -33
- package/dist/infra/lib/gemini/orchestration.d.ts.map +0 -1
- package/dist/infra/lib/gemini/orchestration.js +0 -62
- package/dist/infra/lib/gemini/orchestration.js.map +0 -1
- package/dist/infra/lib/gemini/types.d.ts +0 -115
- package/dist/infra/lib/gemini/types.d.ts.map +0 -1
- package/dist/infra/lib/gemini/types.js +0 -5
- package/dist/infra/lib/gemini/types.js.map +0 -1
- package/dist/infra/orchestrator/AgentAnnouncer.d.ts +0 -64
- package/dist/infra/orchestrator/AgentAnnouncer.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentAnnouncer.js +0 -127
- package/dist/infra/orchestrator/AgentAnnouncer.js.map +0 -1
- package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts +0 -5
- package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentAnnouncer.test.js +0 -119
- package/dist/infra/orchestrator/AgentAnnouncer.test.js.map +0 -1
- package/dist/infra/orchestrator/AgentExecutor.d.ts +0 -22
- package/dist/infra/orchestrator/AgentExecutor.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentExecutor.js +0 -272
- package/dist/infra/orchestrator/AgentExecutor.js.map +0 -1
- package/dist/infra/orchestrator/AgentManager.d.ts +0 -72
- package/dist/infra/orchestrator/AgentManager.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentManager.js +0 -183
- package/dist/infra/orchestrator/AgentManager.js.map +0 -1
- package/dist/infra/orchestrator/AgentManifestCache.d.ts +0 -54
- package/dist/infra/orchestrator/AgentManifestCache.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentManifestCache.js +0 -191
- package/dist/infra/orchestrator/AgentManifestCache.js.map +0 -1
- package/dist/infra/orchestrator/AgentRegistry.d.ts +0 -76
- package/dist/infra/orchestrator/AgentRegistry.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentRegistry.js +0 -217
- package/dist/infra/orchestrator/AgentRegistry.js.map +0 -1
- package/dist/infra/orchestrator/AgentRegistry.test.d.ts +0 -5
- package/dist/infra/orchestrator/AgentRegistry.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/AgentRegistry.test.js +0 -122
- package/dist/infra/orchestrator/AgentRegistry.test.js.map +0 -1
- package/dist/infra/orchestrator/BackgroundManager.d.ts +0 -128
- package/dist/infra/orchestrator/BackgroundManager.d.ts.map +0 -1
- package/dist/infra/orchestrator/BackgroundManager.js +0 -620
- package/dist/infra/orchestrator/BackgroundManager.js.map +0 -1
- package/dist/infra/orchestrator/BackgroundManager.test.d.ts +0 -6
- package/dist/infra/orchestrator/BackgroundManager.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/BackgroundManager.test.js +0 -162
- package/dist/infra/orchestrator/BackgroundManager.test.js.map +0 -1
- package/dist/infra/orchestrator/CheckpointManager.d.ts +0 -54
- package/dist/infra/orchestrator/CheckpointManager.d.ts.map +0 -1
- package/dist/infra/orchestrator/CheckpointManager.js +0 -121
- package/dist/infra/orchestrator/CheckpointManager.js.map +0 -1
- package/dist/infra/orchestrator/CodexAgentRuntime.d.ts +0 -12
- package/dist/infra/orchestrator/CodexAgentRuntime.d.ts.map +0 -1
- package/dist/infra/orchestrator/CodexAgentRuntime.js +0 -94
- package/dist/infra/orchestrator/CodexAgentRuntime.js.map +0 -1
- package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts +0 -2
- package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/CodexAgentRuntime.test.js +0 -37
- package/dist/infra/orchestrator/CodexAgentRuntime.test.js.map +0 -1
- package/dist/infra/orchestrator/LLMCluster.d.ts +0 -82
- package/dist/infra/orchestrator/LLMCluster.d.ts.map +0 -1
- package/dist/infra/orchestrator/LLMCluster.js +0 -146
- package/dist/infra/orchestrator/LLMCluster.js.map +0 -1
- package/dist/infra/orchestrator/MultiLlmResearch.d.ts +0 -31
- package/dist/infra/orchestrator/MultiLlmResearch.d.ts.map +0 -1
- package/dist/infra/orchestrator/MultiLlmResearch.js +0 -160
- package/dist/infra/orchestrator/MultiLlmResearch.js.map +0 -1
- package/dist/infra/orchestrator/PhasePipeline.d.ts +0 -122
- package/dist/infra/orchestrator/PhasePipeline.d.ts.map +0 -1
- package/dist/infra/orchestrator/PhasePipeline.js +0 -385
- package/dist/infra/orchestrator/PhasePipeline.js.map +0 -1
- package/dist/infra/orchestrator/PhaseResultStore.d.ts +0 -39
- package/dist/infra/orchestrator/PhaseResultStore.d.ts.map +0 -1
- package/dist/infra/orchestrator/PhaseResultStore.js +0 -151
- package/dist/infra/orchestrator/PhaseResultStore.js.map +0 -1
- package/dist/infra/orchestrator/SessionStore.d.ts +0 -40
- package/dist/infra/orchestrator/SessionStore.d.ts.map +0 -1
- package/dist/infra/orchestrator/SessionStore.js +0 -116
- package/dist/infra/orchestrator/SessionStore.js.map +0 -1
- package/dist/infra/orchestrator/SmartRouter.d.ts +0 -90
- package/dist/infra/orchestrator/SmartRouter.d.ts.map +0 -1
- package/dist/infra/orchestrator/SmartRouter.js +0 -277
- package/dist/infra/orchestrator/SmartRouter.js.map +0 -1
- package/dist/infra/orchestrator/SmartRouter.test.d.ts +0 -5
- package/dist/infra/orchestrator/SmartRouter.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/SmartRouter.test.js +0 -484
- package/dist/infra/orchestrator/SmartRouter.test.js.map +0 -1
- package/dist/infra/orchestrator/SwarmOrchestrator.d.ts +0 -143
- package/dist/infra/orchestrator/SwarmOrchestrator.d.ts.map +0 -1
- package/dist/infra/orchestrator/SwarmOrchestrator.js +0 -378
- package/dist/infra/orchestrator/SwarmOrchestrator.js.map +0 -1
- package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts +0 -5
- package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/SwarmOrchestrator.test.js +0 -95
- package/dist/infra/orchestrator/SwarmOrchestrator.test.js.map +0 -1
- package/dist/infra/orchestrator/agentDiscovery.d.ts +0 -26
- package/dist/infra/orchestrator/agentDiscovery.d.ts.map +0 -1
- package/dist/infra/orchestrator/agentDiscovery.js +0 -175
- package/dist/infra/orchestrator/agentDiscovery.js.map +0 -1
- package/dist/infra/orchestrator/backgroundAgent.d.ts +0 -9
- package/dist/infra/orchestrator/backgroundAgent.d.ts.map +0 -1
- package/dist/infra/orchestrator/backgroundAgent.js +0 -10
- package/dist/infra/orchestrator/backgroundAgent.js.map +0 -1
- package/dist/infra/orchestrator/index.d.ts +0 -207
- package/dist/infra/orchestrator/index.d.ts.map +0 -1
- package/dist/infra/orchestrator/index.js +0 -362
- package/dist/infra/orchestrator/index.js.map +0 -1
- package/dist/infra/orchestrator/orchestrator.d.ts +0 -60
- package/dist/infra/orchestrator/orchestrator.d.ts.map +0 -1
- package/dist/infra/orchestrator/orchestrator.js +0 -214
- package/dist/infra/orchestrator/orchestrator.js.map +0 -1
- package/dist/infra/orchestrator/parallelResearch.d.ts +0 -27
- package/dist/infra/orchestrator/parallelResearch.d.ts.map +0 -1
- package/dist/infra/orchestrator/parallelResearch.js +0 -285
- package/dist/infra/orchestrator/parallelResearch.js.map +0 -1
- package/dist/infra/orchestrator/types.d.ts +0 -205
- package/dist/infra/orchestrator/types.d.ts.map +0 -1
- package/dist/infra/orchestrator/types.js +0 -87
- package/dist/infra/orchestrator/types.js.map +0 -1
- package/dist/infra/orchestrator/types.test.d.ts +0 -2
- package/dist/infra/orchestrator/types.test.d.ts.map +0 -1
- package/dist/infra/orchestrator/types.test.js +0 -57
- package/dist/infra/orchestrator/types.test.js.map +0 -1
- package/dist/tools/semantic/analyzeDependencyGraph.d.ts +0 -12
- package/dist/tools/semantic/analyzeDependencyGraph.d.ts.map +0 -1
- package/dist/tools/semantic/analyzeDependencyGraph.js +0 -359
- package/dist/tools/semantic/analyzeDependencyGraph.js.map +0 -1
- package/dist/tools/semantic/astGrep.d.ts +0 -25
- package/dist/tools/semantic/astGrep.d.ts.map +0 -1
- package/dist/tools/semantic/astGrep.js +0 -324
- package/dist/tools/semantic/astGrep.js.map +0 -1
- package/dist/tools/semantic/astGrep.test.d.ts +0 -2
- package/dist/tools/semantic/astGrep.test.d.ts.map +0 -1
- package/dist/tools/semantic/astGrep.test.js +0 -74
- package/dist/tools/semantic/astGrep.test.js.map +0 -1
- package/dist/tools/semantic/findReferences.d.ts +0 -9
- package/dist/tools/semantic/findReferences.d.ts.map +0 -1
- package/dist/tools/semantic/findReferences.js +0 -200
- package/dist/tools/semantic/findReferences.js.map +0 -1
- package/dist/tools/semantic/findSymbol.d.ts +0 -8
- package/dist/tools/semantic/findSymbol.d.ts.map +0 -1
- package/dist/tools/semantic/findSymbol.js +0 -204
- package/dist/tools/semantic/findSymbol.js.map +0 -1
- package/dist/tools/semantic/index.d.ts +0 -9
- package/dist/tools/semantic/index.d.ts.map +0 -1
- package/dist/tools/semantic/index.js +0 -11
- package/dist/tools/semantic/index.js.map +0 -1
- package/dist/tools/semantic/lsp.d.ts +0 -68
- package/dist/tools/semantic/lsp.d.ts.map +0 -1
- package/dist/tools/semantic/lsp.js +0 -561
- package/dist/tools/semantic/lsp.js.map +0 -1
- package/dist/tools/spec/e2eTestGenerator.d.ts +0 -61
- package/dist/tools/spec/e2eTestGenerator.d.ts.map +0 -1
- package/dist/tools/spec/e2eTestGenerator.js +0 -255
- package/dist/tools/spec/e2eTestGenerator.js.map +0 -1
- package/dist/tools/spec/specVersioning.d.ts +0 -76
- package/dist/tools/spec/specVersioning.d.ts.map +0 -1
- package/dist/tools/spec/specVersioning.js +0 -236
- package/dist/tools/spec/specVersioning.js.map +0 -1
- package/hooks/scripts/__tests__/keyword-detector.test.js +0 -242
- package/hooks/scripts/keyword-detector.js +0 -226
- package/skills/characterization-test/SKILL.md +0 -209
- package/skills/characterization-test/agents/behavior-capturer.md +0 -50
- package/skills/characterization-test/agents/coverage-checker.md +0 -54
- package/skills/characterization-test/agents/reporter.md +0 -50
- package/skills/characterization-test/agents/test-writer.md +0 -49
- package/skills/characterization-test/rubrics/coverage-criteria.md +0 -53
- package/skills/characterization-test/templates/test-template.ts +0 -101
- package/skills/claude-md-guide/SKILL.md +0 -353
- package/skills/claude-md-guide/rubrics/anti-patterns.md +0 -88
- package/skills/design-audit/SKILL.md +0 -154
- package/skills/design-critique/SKILL.md +0 -140
- package/skills/design-distill/SKILL.md +0 -131
- package/skills/design-normalize/SKILL.md +0 -135
- package/skills/design-polish/SKILL.md +0 -132
- package/skills/figma-convert/SKILL.md +0 -236
- package/skills/figma-extract/SKILL.md +0 -242
- package/skills/interview/SKILL.md +0 -358
- package/skills/interview/checklists/api.md +0 -101
- package/skills/interview/checklists/feature.md +0 -88
- package/skills/interview/checklists/library.md +0 -95
- package/skills/interview/checklists/mobile.md +0 -89
- package/skills/interview/checklists/webapp.md +0 -97
- package/skills/interview/checklists/website.md +0 -99
- package/skills/plan/SKILL.md +0 -254
- package/skills/rob-pike/SKILL.md +0 -66
- package/skills/spec/references/askuser-examples.md +0 -57
- package/skills/spec/references/example-session.md +0 -87
- package/skills/spec/references/templates.md +0 -194
- package/skills/spec-review/SKILL.md +0 -725
- package/skills/systematic-debugging/SKILL.md +0 -142
- package/skills/techdebt/SKILL.md +0 -126
- package/skills/techdebt/agents/analyzer.md +0 -50
- package/skills/techdebt/agents/fixer.md +0 -41
- package/skills/techdebt/agents/reviewer.md +0 -47
- package/skills/techdebt/agents/scanner.md +0 -44
- package/skills/techdebt/orchestrator.md +0 -72
- package/skills/techdebt/rubrics/severity.md +0 -51
- package/skills/techdebt/scripts/scan.js +0 -90
- package/skills/techdebt/templates/report.md +0 -86
- package/skills/typescript-advanced-types/SKILL.md +0 -68
- package/skills/typescript-advanced-types/rubrics/type-patterns.md +0 -109
- package/skills/yagni-ladder/SKILL.md +0 -90
- /package/skills/{claude-md-guide → agents-md}/templates/claude-md.md +0 -0
- /package/skills/{design-polish → design-refine}/rubrics/polish-checklist.md +0 -0
- /package/skills/{design-normalize → design-refine}/rubrics/token-naming.md +0 -0
- /package/skills/{design-distill → design-refine}/templates/design-system.md +0 -0
- /package/skills/{design-audit → design-review}/agents/scorer.md +0 -0
- /package/skills/{design-audit → design-review}/rubrics/ai-slop-patterns.md +0 -0
- /package/skills/{design-audit → design-review}/rubrics/scoring.md +0 -0
- /package/skills/{design-critique → design-review}/rubrics/ux-heuristics.md +0 -0
- /package/skills/{figma-convert → figma}/rubrics/conversion-rules.md +0 -0
- /package/skills/{figma-extract → figma}/rubrics/image-rules.md +0 -0
- /package/skills/{figma-convert → figma}/templates/component.md +0 -0
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const RiskLevel: z.ZodEnum<{
|
|
3
|
-
MEDIUM: "MEDIUM";
|
|
4
|
-
HIGH: "HIGH";
|
|
5
|
-
LOW: "LOW";
|
|
6
|
-
}>;
|
|
7
|
-
export type RiskLevel = z.infer<typeof RiskLevel>;
|
|
8
|
-
export declare const ActionType: z.ZodEnum<{
|
|
9
|
-
file_write: "file_write";
|
|
10
|
-
file_delete: "file_delete";
|
|
11
|
-
bash_exec: "bash_exec";
|
|
12
|
-
git_push: "git_push";
|
|
13
|
-
skill_generate: "skill_generate";
|
|
14
|
-
config_modify: "config_modify";
|
|
15
|
-
dependency_install: "dependency_install";
|
|
16
|
-
external_api_call: "external_api_call";
|
|
17
|
-
}>;
|
|
18
|
-
export type ActionType = z.infer<typeof ActionType>;
|
|
19
|
-
export declare const OutcomeType: z.ZodEnum<{
|
|
20
|
-
blocked: "blocked";
|
|
21
|
-
pending: "pending";
|
|
22
|
-
allowed: "allowed";
|
|
23
|
-
expired: "expired";
|
|
24
|
-
}>;
|
|
25
|
-
export type OutcomeType = z.infer<typeof OutcomeType>;
|
|
26
|
-
export declare const ConfirmationStatus: z.ZodEnum<{
|
|
27
|
-
PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
28
|
-
APPROVED: "APPROVED";
|
|
29
|
-
REJECTED: "REJECTED";
|
|
30
|
-
EXPIRED: "EXPIRED";
|
|
31
|
-
}>;
|
|
32
|
-
export type ConfirmationStatus = z.infer<typeof ConfirmationStatus>;
|
|
33
|
-
export declare const AgentActionEventSchema: z.ZodObject<{
|
|
34
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
35
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
36
|
-
agentId: z.ZodString;
|
|
37
|
-
actionType: z.ZodEnum<{
|
|
38
|
-
file_write: "file_write";
|
|
39
|
-
file_delete: "file_delete";
|
|
40
|
-
bash_exec: "bash_exec";
|
|
41
|
-
git_push: "git_push";
|
|
42
|
-
skill_generate: "skill_generate";
|
|
43
|
-
config_modify: "config_modify";
|
|
44
|
-
dependency_install: "dependency_install";
|
|
45
|
-
external_api_call: "external_api_call";
|
|
46
|
-
}>;
|
|
47
|
-
target: z.ZodString;
|
|
48
|
-
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
49
|
-
riskLevel: z.ZodOptional<z.ZodEnum<{
|
|
50
|
-
MEDIUM: "MEDIUM";
|
|
51
|
-
HIGH: "HIGH";
|
|
52
|
-
LOW: "LOW";
|
|
53
|
-
}>>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
export type AgentActionEvent = z.infer<typeof AgentActionEventSchema>;
|
|
56
|
-
export declare const PolicyCheckEventSchema: z.ZodObject<{
|
|
57
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
58
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
59
|
-
actionEvent: z.ZodObject<{
|
|
60
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
61
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
62
|
-
agentId: z.ZodString;
|
|
63
|
-
actionType: z.ZodEnum<{
|
|
64
|
-
file_write: "file_write";
|
|
65
|
-
file_delete: "file_delete";
|
|
66
|
-
bash_exec: "bash_exec";
|
|
67
|
-
git_push: "git_push";
|
|
68
|
-
skill_generate: "skill_generate";
|
|
69
|
-
config_modify: "config_modify";
|
|
70
|
-
dependency_install: "dependency_install";
|
|
71
|
-
external_api_call: "external_api_call";
|
|
72
|
-
}>;
|
|
73
|
-
target: z.ZodString;
|
|
74
|
-
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
75
|
-
riskLevel: z.ZodOptional<z.ZodEnum<{
|
|
76
|
-
MEDIUM: "MEDIUM";
|
|
77
|
-
HIGH: "HIGH";
|
|
78
|
-
LOW: "LOW";
|
|
79
|
-
}>>;
|
|
80
|
-
}, z.core.$strip>;
|
|
81
|
-
policies: z.ZodArray<z.ZodString>;
|
|
82
|
-
result: z.ZodEnum<{
|
|
83
|
-
blocked: "blocked";
|
|
84
|
-
allowed: "allowed";
|
|
85
|
-
needs_confirmation: "needs_confirmation";
|
|
86
|
-
}>;
|
|
87
|
-
duration: z.ZodNumber;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
export type PolicyCheckEvent = z.infer<typeof PolicyCheckEventSchema>;
|
|
90
|
-
export declare const RiskAssessedEventSchema: z.ZodObject<{
|
|
91
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
92
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
93
|
-
actionEvent: z.ZodObject<{
|
|
94
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
95
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
96
|
-
agentId: z.ZodString;
|
|
97
|
-
actionType: z.ZodEnum<{
|
|
98
|
-
file_write: "file_write";
|
|
99
|
-
file_delete: "file_delete";
|
|
100
|
-
bash_exec: "bash_exec";
|
|
101
|
-
git_push: "git_push";
|
|
102
|
-
skill_generate: "skill_generate";
|
|
103
|
-
config_modify: "config_modify";
|
|
104
|
-
dependency_install: "dependency_install";
|
|
105
|
-
external_api_call: "external_api_call";
|
|
106
|
-
}>;
|
|
107
|
-
target: z.ZodString;
|
|
108
|
-
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
109
|
-
riskLevel: z.ZodOptional<z.ZodEnum<{
|
|
110
|
-
MEDIUM: "MEDIUM";
|
|
111
|
-
HIGH: "HIGH";
|
|
112
|
-
LOW: "LOW";
|
|
113
|
-
}>>;
|
|
114
|
-
}, z.core.$strip>;
|
|
115
|
-
riskLevel: z.ZodEnum<{
|
|
116
|
-
MEDIUM: "MEDIUM";
|
|
117
|
-
HIGH: "HIGH";
|
|
118
|
-
LOW: "LOW";
|
|
119
|
-
}>;
|
|
120
|
-
factors: z.ZodArray<z.ZodString>;
|
|
121
|
-
score: z.ZodNumber;
|
|
122
|
-
}, z.core.$strip>;
|
|
123
|
-
export type RiskAssessedEvent = z.infer<typeof RiskAssessedEventSchema>;
|
|
124
|
-
export declare const ConfirmationEventSchema: z.ZodObject<{
|
|
125
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
126
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
127
|
-
actionId: z.ZodString;
|
|
128
|
-
channel: z.ZodString;
|
|
129
|
-
status: z.ZodEnum<{
|
|
130
|
-
PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
131
|
-
APPROVED: "APPROVED";
|
|
132
|
-
REJECTED: "REJECTED";
|
|
133
|
-
EXPIRED: "EXPIRED";
|
|
134
|
-
}>;
|
|
135
|
-
ownerResponse: z.ZodOptional<z.ZodString>;
|
|
136
|
-
expiresAt: z.ZodString;
|
|
137
|
-
}, z.core.$strip>;
|
|
138
|
-
export type ConfirmationEvent = z.infer<typeof ConfirmationEventSchema>;
|
|
139
|
-
export declare const AuditLogEventSchema: z.ZodObject<{
|
|
140
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
141
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
142
|
-
eventType: z.ZodString;
|
|
143
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
144
|
-
sourceAgentId: z.ZodString;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
export type AuditLogEvent = z.infer<typeof AuditLogEventSchema>;
|
|
147
|
-
export declare const ErrorEventSchema: z.ZodObject<{
|
|
148
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
149
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
150
|
-
originalEventType: z.ZodString;
|
|
151
|
-
listenerIndex: z.ZodNumber;
|
|
152
|
-
error: z.ZodString;
|
|
153
|
-
stack: z.ZodOptional<z.ZodString>;
|
|
154
|
-
}, z.core.$strip>;
|
|
155
|
-
export type ErrorEvent = z.infer<typeof ErrorEventSchema>;
|
|
156
|
-
export declare const EventSchemaMap: {
|
|
157
|
-
readonly agent_action: z.ZodObject<{
|
|
158
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
159
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
160
|
-
agentId: z.ZodString;
|
|
161
|
-
actionType: z.ZodEnum<{
|
|
162
|
-
file_write: "file_write";
|
|
163
|
-
file_delete: "file_delete";
|
|
164
|
-
bash_exec: "bash_exec";
|
|
165
|
-
git_push: "git_push";
|
|
166
|
-
skill_generate: "skill_generate";
|
|
167
|
-
config_modify: "config_modify";
|
|
168
|
-
dependency_install: "dependency_install";
|
|
169
|
-
external_api_call: "external_api_call";
|
|
170
|
-
}>;
|
|
171
|
-
target: z.ZodString;
|
|
172
|
-
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
173
|
-
riskLevel: z.ZodOptional<z.ZodEnum<{
|
|
174
|
-
MEDIUM: "MEDIUM";
|
|
175
|
-
HIGH: "HIGH";
|
|
176
|
-
LOW: "LOW";
|
|
177
|
-
}>>;
|
|
178
|
-
}, z.core.$strip>;
|
|
179
|
-
readonly policy_check: z.ZodObject<{
|
|
180
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
181
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
182
|
-
actionEvent: z.ZodObject<{
|
|
183
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
184
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
185
|
-
agentId: z.ZodString;
|
|
186
|
-
actionType: z.ZodEnum<{
|
|
187
|
-
file_write: "file_write";
|
|
188
|
-
file_delete: "file_delete";
|
|
189
|
-
bash_exec: "bash_exec";
|
|
190
|
-
git_push: "git_push";
|
|
191
|
-
skill_generate: "skill_generate";
|
|
192
|
-
config_modify: "config_modify";
|
|
193
|
-
dependency_install: "dependency_install";
|
|
194
|
-
external_api_call: "external_api_call";
|
|
195
|
-
}>;
|
|
196
|
-
target: z.ZodString;
|
|
197
|
-
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
198
|
-
riskLevel: z.ZodOptional<z.ZodEnum<{
|
|
199
|
-
MEDIUM: "MEDIUM";
|
|
200
|
-
HIGH: "HIGH";
|
|
201
|
-
LOW: "LOW";
|
|
202
|
-
}>>;
|
|
203
|
-
}, z.core.$strip>;
|
|
204
|
-
policies: z.ZodArray<z.ZodString>;
|
|
205
|
-
result: z.ZodEnum<{
|
|
206
|
-
blocked: "blocked";
|
|
207
|
-
allowed: "allowed";
|
|
208
|
-
needs_confirmation: "needs_confirmation";
|
|
209
|
-
}>;
|
|
210
|
-
duration: z.ZodNumber;
|
|
211
|
-
}, z.core.$strip>;
|
|
212
|
-
readonly risk_assessed: z.ZodObject<{
|
|
213
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
214
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
215
|
-
actionEvent: z.ZodObject<{
|
|
216
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
217
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
218
|
-
agentId: z.ZodString;
|
|
219
|
-
actionType: z.ZodEnum<{
|
|
220
|
-
file_write: "file_write";
|
|
221
|
-
file_delete: "file_delete";
|
|
222
|
-
bash_exec: "bash_exec";
|
|
223
|
-
git_push: "git_push";
|
|
224
|
-
skill_generate: "skill_generate";
|
|
225
|
-
config_modify: "config_modify";
|
|
226
|
-
dependency_install: "dependency_install";
|
|
227
|
-
external_api_call: "external_api_call";
|
|
228
|
-
}>;
|
|
229
|
-
target: z.ZodString;
|
|
230
|
-
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
231
|
-
riskLevel: z.ZodOptional<z.ZodEnum<{
|
|
232
|
-
MEDIUM: "MEDIUM";
|
|
233
|
-
HIGH: "HIGH";
|
|
234
|
-
LOW: "LOW";
|
|
235
|
-
}>>;
|
|
236
|
-
}, z.core.$strip>;
|
|
237
|
-
riskLevel: z.ZodEnum<{
|
|
238
|
-
MEDIUM: "MEDIUM";
|
|
239
|
-
HIGH: "HIGH";
|
|
240
|
-
LOW: "LOW";
|
|
241
|
-
}>;
|
|
242
|
-
factors: z.ZodArray<z.ZodString>;
|
|
243
|
-
score: z.ZodNumber;
|
|
244
|
-
}, z.core.$strip>;
|
|
245
|
-
readonly confirmation_requested: z.ZodObject<{
|
|
246
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
247
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
248
|
-
actionId: z.ZodString;
|
|
249
|
-
channel: z.ZodString;
|
|
250
|
-
status: z.ZodEnum<{
|
|
251
|
-
PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
252
|
-
APPROVED: "APPROVED";
|
|
253
|
-
REJECTED: "REJECTED";
|
|
254
|
-
EXPIRED: "EXPIRED";
|
|
255
|
-
}>;
|
|
256
|
-
ownerResponse: z.ZodOptional<z.ZodString>;
|
|
257
|
-
expiresAt: z.ZodString;
|
|
258
|
-
}, z.core.$strip>;
|
|
259
|
-
readonly confirmation_resolved: z.ZodObject<{
|
|
260
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
261
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
262
|
-
actionId: z.ZodString;
|
|
263
|
-
channel: z.ZodString;
|
|
264
|
-
status: z.ZodEnum<{
|
|
265
|
-
PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
266
|
-
APPROVED: "APPROVED";
|
|
267
|
-
REJECTED: "REJECTED";
|
|
268
|
-
EXPIRED: "EXPIRED";
|
|
269
|
-
}>;
|
|
270
|
-
ownerResponse: z.ZodOptional<z.ZodString>;
|
|
271
|
-
expiresAt: z.ZodString;
|
|
272
|
-
}, z.core.$strip>;
|
|
273
|
-
readonly action_executed: z.ZodObject<{
|
|
274
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
275
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
276
|
-
eventType: z.ZodString;
|
|
277
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
278
|
-
sourceAgentId: z.ZodString;
|
|
279
|
-
}, z.core.$strip>;
|
|
280
|
-
readonly action_blocked: z.ZodObject<{
|
|
281
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
282
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
283
|
-
eventType: z.ZodString;
|
|
284
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
285
|
-
sourceAgentId: z.ZodString;
|
|
286
|
-
}, z.core.$strip>;
|
|
287
|
-
readonly suggestion_created: z.ZodObject<{
|
|
288
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
289
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
290
|
-
eventType: z.ZodString;
|
|
291
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
292
|
-
sourceAgentId: z.ZodString;
|
|
293
|
-
}, z.core.$strip>;
|
|
294
|
-
readonly audit_logged: z.ZodObject<{
|
|
295
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
296
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
297
|
-
eventType: z.ZodString;
|
|
298
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
299
|
-
sourceAgentId: z.ZodString;
|
|
300
|
-
}, z.core.$strip>;
|
|
301
|
-
readonly error: z.ZodObject<{
|
|
302
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
303
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
304
|
-
originalEventType: z.ZodString;
|
|
305
|
-
listenerIndex: z.ZodNumber;
|
|
306
|
-
error: z.ZodString;
|
|
307
|
-
stack: z.ZodOptional<z.ZodString>;
|
|
308
|
-
}, z.core.$strip>;
|
|
309
|
-
};
|
|
310
|
-
export type AutonomyEventType = keyof typeof EventSchemaMap;
|
|
311
|
-
export type EventPayload<T extends AutonomyEventType> = z.infer<(typeof EventSchemaMap)[T]>;
|
|
312
|
-
export type EventInput<T extends AutonomyEventType> = z.input<(typeof EventSchemaMap)[T]>;
|
|
313
|
-
export type EnrichedEvent<T> = T & {
|
|
314
|
-
correlationId: string;
|
|
315
|
-
timestamp: string;
|
|
316
|
-
};
|
|
317
|
-
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/infra/lib/autonomy/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,SAAS;;;;EAAoC,CAAC;AAC3D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,eAAO,MAAM,UAAU;;;;;;;;;EASrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,WAAW;;;;;EAAuD,CAAC;AAChF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,kBAAkB;;;;;EAK7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAMpE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;i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MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,iBAAiB,IAAI,CAAC,CAAC,KAAK,CAC3D,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAC3B,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
3
|
-
// Enums
|
|
4
|
-
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
5
|
-
export const RiskLevel = z.enum(['LOW', 'MEDIUM', 'HIGH']);
|
|
6
|
-
export const ActionType = z.enum([
|
|
7
|
-
'file_write',
|
|
8
|
-
'file_delete',
|
|
9
|
-
'bash_exec',
|
|
10
|
-
'git_push',
|
|
11
|
-
'skill_generate',
|
|
12
|
-
'config_modify',
|
|
13
|
-
'dependency_install',
|
|
14
|
-
'external_api_call',
|
|
15
|
-
]);
|
|
16
|
-
export const OutcomeType = z.enum(['allowed', 'blocked', 'pending', 'expired']);
|
|
17
|
-
export const ConfirmationStatus = z.enum([
|
|
18
|
-
'PENDING_APPROVAL',
|
|
19
|
-
'APPROVED',
|
|
20
|
-
'REJECTED',
|
|
21
|
-
'EXPIRED',
|
|
22
|
-
]);
|
|
23
|
-
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
24
|
-
// Event Schemas (correlationId/timestamp: optional in input, injected by EventBus)
|
|
25
|
-
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
26
|
-
export const AgentActionEventSchema = z.object({
|
|
27
|
-
correlationId: z.string().optional(),
|
|
28
|
-
timestamp: z.string().optional(),
|
|
29
|
-
agentId: z.string().min(1),
|
|
30
|
-
actionType: ActionType,
|
|
31
|
-
target: z.string().min(1),
|
|
32
|
-
params: z.record(z.string(), z.unknown()).default({}),
|
|
33
|
-
riskLevel: RiskLevel.optional(),
|
|
34
|
-
});
|
|
35
|
-
export const PolicyCheckEventSchema = z.object({
|
|
36
|
-
correlationId: z.string().optional(),
|
|
37
|
-
timestamp: z.string().optional(),
|
|
38
|
-
actionEvent: AgentActionEventSchema,
|
|
39
|
-
policies: z.array(z.string()),
|
|
40
|
-
result: z.enum(['allowed', 'blocked', 'needs_confirmation']),
|
|
41
|
-
duration: z.number().nonnegative(),
|
|
42
|
-
});
|
|
43
|
-
export const RiskAssessedEventSchema = z.object({
|
|
44
|
-
correlationId: z.string().optional(),
|
|
45
|
-
timestamp: z.string().optional(),
|
|
46
|
-
actionEvent: AgentActionEventSchema,
|
|
47
|
-
riskLevel: RiskLevel,
|
|
48
|
-
factors: z.array(z.string()),
|
|
49
|
-
score: z.number().min(0).max(100),
|
|
50
|
-
});
|
|
51
|
-
export const ConfirmationEventSchema = z.object({
|
|
52
|
-
correlationId: z.string().optional(),
|
|
53
|
-
timestamp: z.string().optional(),
|
|
54
|
-
actionId: z.string().min(1),
|
|
55
|
-
channel: z.string().min(1),
|
|
56
|
-
status: ConfirmationStatus,
|
|
57
|
-
ownerResponse: z.string().optional(),
|
|
58
|
-
expiresAt: z.string().min(1),
|
|
59
|
-
});
|
|
60
|
-
export const AuditLogEventSchema = z.object({
|
|
61
|
-
correlationId: z.string().optional(),
|
|
62
|
-
timestamp: z.string().optional(),
|
|
63
|
-
eventType: z.string().min(1),
|
|
64
|
-
payload: z.record(z.string(), z.unknown()),
|
|
65
|
-
sourceAgentId: z.string().min(1),
|
|
66
|
-
});
|
|
67
|
-
export const ErrorEventSchema = z.object({
|
|
68
|
-
correlationId: z.string().optional(),
|
|
69
|
-
timestamp: z.string().optional(),
|
|
70
|
-
originalEventType: z.string(),
|
|
71
|
-
listenerIndex: z.number(),
|
|
72
|
-
error: z.string(),
|
|
73
|
-
stack: z.string().optional(),
|
|
74
|
-
});
|
|
75
|
-
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
76
|
-
// Event Type Map
|
|
77
|
-
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
78
|
-
export const EventSchemaMap = {
|
|
79
|
-
agent_action: AgentActionEventSchema,
|
|
80
|
-
policy_check: PolicyCheckEventSchema,
|
|
81
|
-
risk_assessed: RiskAssessedEventSchema,
|
|
82
|
-
confirmation_requested: ConfirmationEventSchema,
|
|
83
|
-
confirmation_resolved: ConfirmationEventSchema,
|
|
84
|
-
action_executed: AuditLogEventSchema,
|
|
85
|
-
action_blocked: AuditLogEventSchema,
|
|
86
|
-
suggestion_created: AuditLogEventSchema,
|
|
87
|
-
audit_logged: AuditLogEventSchema,
|
|
88
|
-
error: ErrorEventSchema,
|
|
89
|
-
};
|
|
90
|
-
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/infra/lib/autonomy/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yDAAyD;AACzD,QAAQ;AACR,yDAAyD;AAEzD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;AAG3D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/B,YAAY;IACZ,aAAa;IACb,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,eAAe;IACf,oBAAoB;IACpB,mBAAmB;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,WAAW,GA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"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/infra/lib/claude/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,UAAU,EACV,UAAU,EACV,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,cAAc,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Claude API Key 저장/로드
|
|
3
|
-
*/
|
|
4
|
-
export declare function loadApiKey(): string | null;
|
|
5
|
-
export declare function saveApiKey(apiKey: string): void;
|
|
6
|
-
export declare function removeApiKey(): boolean;
|
|
7
|
-
export declare function hasApiKey(): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* API Key 마스킹 (key***last4)
|
|
10
|
-
*/
|
|
11
|
-
export declare function maskApiKey(key: string): string;
|
|
12
|
-
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../src/infra/lib/claude/storage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH,wBAAgB,UAAU,IAAI,MAAM,GAAG,IAAI,CAU1C;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAW/C;AAED,wBAAgB,YAAY,IAAI,OAAO,CAOtC;AAED,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG9C"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Claude API Key 저장/로드
|
|
3
|
-
*/
|
|
4
|
-
import fs from 'fs';
|
|
5
|
-
import path from 'path';
|
|
6
|
-
import { getGlobalConfigDir } from '../llm/auth/ConfigManager.js';
|
|
7
|
-
function getStoragePath() {
|
|
8
|
-
return path.join(getGlobalConfigDir(), 'claude-apikey.json');
|
|
9
|
-
}
|
|
10
|
-
export function loadApiKey() {
|
|
11
|
-
try {
|
|
12
|
-
const storagePath = getStoragePath();
|
|
13
|
-
if (!fs.existsSync(storagePath))
|
|
14
|
-
return null;
|
|
15
|
-
const content = fs.readFileSync(storagePath, 'utf-8');
|
|
16
|
-
const config = JSON.parse(content);
|
|
17
|
-
return config.apiKey || null;
|
|
18
|
-
}
|
|
19
|
-
catch {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export function saveApiKey(apiKey) {
|
|
24
|
-
const configDir = getGlobalConfigDir();
|
|
25
|
-
if (!fs.existsSync(configDir)) {
|
|
26
|
-
fs.mkdirSync(configDir, { recursive: true });
|
|
27
|
-
}
|
|
28
|
-
const config = {
|
|
29
|
-
apiKey,
|
|
30
|
-
createdAt: new Date().toISOString(),
|
|
31
|
-
};
|
|
32
|
-
const storagePath = getStoragePath();
|
|
33
|
-
fs.writeFileSync(storagePath, JSON.stringify(config, null, 2), { mode: 0o600 });
|
|
34
|
-
}
|
|
35
|
-
export function removeApiKey() {
|
|
36
|
-
const storagePath = getStoragePath();
|
|
37
|
-
if (fs.existsSync(storagePath)) {
|
|
38
|
-
fs.unlinkSync(storagePath);
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
export function hasApiKey() {
|
|
44
|
-
return loadApiKey() !== null;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* API Key 마스킹 (key***last4)
|
|
48
|
-
*/
|
|
49
|
-
export function maskApiKey(key) {
|
|
50
|
-
if (key.length <= 7)
|
|
51
|
-
return '***';
|
|
52
|
-
return `${key.slice(0, 3)}***${key.slice(-4)}`;
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=storage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../src/infra/lib/claude/storage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACp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E,CAAC;IACrC,IAAI,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAC/B,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,UAAU,EAAE,KAAK,IAAI,CAAC;AAC/B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IAClC,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACjD,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Antigravity/Gemini API 인증 관리
|
|
3
|
-
*
|
|
4
|
-
* Auth: API Key 전용 (Antigravity CLI / Codex CLI 는 hooks에서 직접 호출)
|
|
5
|
-
*
|
|
6
|
-
* 환경변수:
|
|
7
|
-
* - ANTIGRAVITY_API_KEY → API Key
|
|
8
|
-
*/
|
|
9
|
-
import type { AuthInfo } from './types.js';
|
|
10
|
-
/**
|
|
11
|
-
* API Key 가져오기 (config.json 우선 → 환경변수 fallback)
|
|
12
|
-
*/
|
|
13
|
-
export declare function getApiKeyFromConfig(): string | null;
|
|
14
|
-
/**
|
|
15
|
-
* 인증 정보 반환 (API Key 전용)
|
|
16
|
-
*/
|
|
17
|
-
export declare function getAuthInfo(): Promise<AuthInfo>;
|
|
18
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/infra/lib/gemini/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAKnD;AAED;;GAEG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,QAAQ,CAAC,CAUrD"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Antigravity/Gemini API 인증 관리
|
|
3
|
-
*
|
|
4
|
-
* Auth: API Key 전용 (Antigravity CLI / Codex CLI 는 hooks에서 직접 호출)
|
|
5
|
-
*
|
|
6
|
-
* 환경변수:
|
|
7
|
-
* - ANTIGRAVITY_API_KEY → API Key
|
|
8
|
-
*/
|
|
9
|
-
import { getAntigravityApiKey, } from '../config/GlobalConfigManager.js';
|
|
10
|
-
/**
|
|
11
|
-
* API Key 가져오기 (config.json 우선 → 환경변수 fallback)
|
|
12
|
-
*/
|
|
13
|
-
export function getApiKeyFromConfig() {
|
|
14
|
-
const configKey = getAntigravityApiKey();
|
|
15
|
-
if (configKey)
|
|
16
|
-
return configKey;
|
|
17
|
-
if (process.env.ANTIGRAVITY_API_KEY)
|
|
18
|
-
return process.env.ANTIGRAVITY_API_KEY;
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* 인증 정보 반환 (API Key 전용)
|
|
23
|
-
*/
|
|
24
|
-
export async function getAuthInfo() {
|
|
25
|
-
const apiKey = getApiKeyFromConfig();
|
|
26
|
-
if (apiKey) {
|
|
27
|
-
return { type: 'apikey', apiKey };
|
|
28
|
-
}
|
|
29
|
-
throw new Error('Antigravity API key not found. ' +
|
|
30
|
-
'Run: vibe antigravity key <key> or set ANTIGRAVITY_API_KEY env var.');
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../src/infra/lib/gemini/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,oBAAoB,GACrB,MAAM,kCAAkC,CAAC;AAG1C;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,MAAM,SAAS,GAAG,oBAAoB,EAAE,CAAC;IACzC,IAAI,SAAS;QAAE,OAAO,SAAS,CAAC;IAChC,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB;QAAE,OAAO,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;IAC5E,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,MAAM,MAAM,GAAG,mBAAmB,EAAE,CAAC;IACrC,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACpC,CAAC;IAED,MAAM,IAAI,KAAK,CACb,iCAAiC;QACjC,qEAAqE,CACtE,CAAC;AACJ,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gemini 확장 기능
|
|
3
|
-
*
|
|
4
|
-
* - 웹 검색, UI 분석, 이미지 생성, 이미지 분석
|
|
5
|
-
* - API Key → Google AI Studio
|
|
6
|
-
*/
|
|
7
|
-
import type { ImageGenerationOptions, ImageGenerationResult, ImageAnalysisOptions } from './types.js';
|
|
8
|
-
/**
|
|
9
|
-
* 웹서치로 최신 정보 검색 (Gemini Pro + Google Search)
|
|
10
|
-
*/
|
|
11
|
-
export declare function webSearch(prompt: string): Promise<string>;
|
|
12
|
-
/**
|
|
13
|
-
* 빠른 웹서치 (Gemini Flash + Google Search)
|
|
14
|
-
*/
|
|
15
|
-
export declare function quickWebSearch(prompt: string): Promise<string>;
|
|
16
|
-
/**
|
|
17
|
-
* UI/UX 분석용 (Gemini Pro)
|
|
18
|
-
*/
|
|
19
|
-
export declare function analyzeUI(prompt: string): Promise<string>;
|
|
20
|
-
/**
|
|
21
|
-
* Gemini Image Generation (API Key only)
|
|
22
|
-
*/
|
|
23
|
-
export declare function generateImage(prompt: string, options?: ImageGenerationOptions): Promise<ImageGenerationResult>;
|
|
24
|
-
/**
|
|
25
|
-
* Gemini 이미지 분석 (Multimodal)
|
|
26
|
-
*/
|
|
27
|
-
export declare function analyzeImage(imagePath: string, prompt: string, options?: ImageAnalysisOptions): Promise<string>;
|
|
28
|
-
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/infra/lib/gemini/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EAGrB,MAAM,YAAY,CAAC;AAMpB;;GAEG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAQ/D;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAOpE;AAMD;;GAEG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAO/D;AAWD;;GAEG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,qBAAqB,CAAC,CA8DhC;AAyDD;;GAEG;AACH,wBAAsB,YAAY,CAChC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,MAAM,CAAC,CA+BjB"}
|