@su-record/vibe 3.2.64 → 4.0.1
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 +598 -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 -239
- 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/bench/benchCompare.d.ts +0 -78
- package/dist/tools/bench/benchCompare.d.ts.map +0 -1
- package/dist/tools/bench/benchCompare.js +0 -113
- package/dist/tools/bench/benchCompare.js.map +0 -1
- package/dist/tools/bench/benchDefinition.d.ts +0 -37
- package/dist/tools/bench/benchDefinition.d.ts.map +0 -1
- package/dist/tools/bench/benchDefinition.js +0 -69
- package/dist/tools/bench/benchDefinition.js.map +0 -1
- package/dist/tools/bench/benchReport.d.ts +0 -16
- package/dist/tools/bench/benchReport.d.ts.map +0 -1
- package/dist/tools/bench/benchReport.js +0 -64
- package/dist/tools/bench/benchReport.js.map +0 -1
- package/dist/tools/bench/index.d.ts +0 -10
- package/dist/tools/bench/index.d.ts.map +0 -1
- package/dist/tools/bench/index.js +0 -7
- package/dist/tools/bench/index.js.map +0 -1
- package/dist/tools/contract/agentContract.d.ts +0 -86
- package/dist/tools/contract/agentContract.d.ts.map +0 -1
- package/dist/tools/contract/agentContract.js +0 -140
- package/dist/tools/contract/agentContract.js.map +0 -1
- package/dist/tools/contract/index.d.ts +0 -8
- package/dist/tools/contract/index.d.ts.map +0 -1
- package/dist/tools/contract/index.js +0 -6
- package/dist/tools/contract/index.js.map +0 -1
- package/dist/tools/contract/reverseDrift.d.ts +0 -71
- package/dist/tools/contract/reverseDrift.d.ts.map +0 -1
- package/dist/tools/contract/reverseDrift.js +0 -136
- package/dist/tools/contract/reverseDrift.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 -81
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -94
- 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 -354
- 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/ephemeral-lane.js +0 -106
- 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/iteration-cost.js +0 -178
- package/hooks/scripts/lib/loop-ledger.js +0 -250
- 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 -167
- 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 -278
- 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 -364
- 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 -345
- 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 -193
- 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 -328
- 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 -256
- 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 -184
- 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,514 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GPT 채팅 API
|
|
3
|
-
*/
|
|
4
|
-
import crypto from 'crypto';
|
|
5
|
-
import { CHATGPT_BASE_URL } from './constants.js';
|
|
6
|
-
import { sleep } from '../utils.js';
|
|
7
|
-
import { createTimeoutSignal } from '../llm/timeout.js';
|
|
8
|
-
import { getAuthInfo, getApiKeyFromConfig } from './auth.js';
|
|
9
|
-
// Codex API 엔드포인트
|
|
10
|
-
const CODEX_RESPONSES_URL = `${CHATGPT_BASE_URL}/codex/responses`;
|
|
11
|
-
// GitHub에서 Codex instructions 가져오기 (캐시)
|
|
12
|
-
let cachedInstructions = null;
|
|
13
|
-
let instructionsCacheTime = 0;
|
|
14
|
-
const INSTRUCTIONS_CACHE_TTL = 15 * 60 * 1000; // 15분
|
|
15
|
-
// 사용 가능한 모델 목록
|
|
16
|
-
export const GPT_MODELS = {
|
|
17
|
-
// GPT-5.5 Pro (Pro plan — highest accuracy, complex tasks)
|
|
18
|
-
'gpt-5.5-pro': {
|
|
19
|
-
id: 'gpt-5.5-pro',
|
|
20
|
-
name: 'GPT-5.5 Pro',
|
|
21
|
-
description: 'Pro plan, highest accuracy for complex reasoning',
|
|
22
|
-
maxTokens: 1_000_000,
|
|
23
|
-
reasoning: { effort: 'high', summary: 'auto' },
|
|
24
|
-
},
|
|
25
|
-
// GPT-5.5 (Plus plan, frontier model — faster, sharper thinker for fewer tokens)
|
|
26
|
-
'gpt-5.5': {
|
|
27
|
-
id: 'gpt-5.5',
|
|
28
|
-
name: 'GPT-5.5',
|
|
29
|
-
description: 'Plus plan, frontier model with 1M context and autonomous multi-step workflows',
|
|
30
|
-
maxTokens: 1_000_000,
|
|
31
|
-
reasoning: { effort: 'high', summary: 'auto' },
|
|
32
|
-
},
|
|
33
|
-
// GPT-5.3 Codex (코딩 특화)
|
|
34
|
-
'gpt-5.3-codex': {
|
|
35
|
-
id: 'gpt-5.3-codex',
|
|
36
|
-
name: 'GPT-5.3 Codex',
|
|
37
|
-
description: 'Coding specialized model',
|
|
38
|
-
maxTokens: 32768,
|
|
39
|
-
reasoning: { effort: 'high', summary: 'auto' },
|
|
40
|
-
},
|
|
41
|
-
// GPT-5.3 Codex Spark (초고속 코딩 — 1000+ tok/s)
|
|
42
|
-
'gpt-5.3-codex-spark': {
|
|
43
|
-
id: 'gpt-5.3-codex-spark',
|
|
44
|
-
name: 'GPT-5.3 Codex Spark',
|
|
45
|
-
description: 'Ultra-fast coding model (1000+ tok/s)',
|
|
46
|
-
maxTokens: 16384,
|
|
47
|
-
reasoning: { effort: 'low', summary: 'auto' },
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
import { getModelOverride } from '../config/GlobalConfigManager.js';
|
|
51
|
-
// config.json models.gpt 우선, 환경변수 fallback
|
|
52
|
-
function resolveGptModelOverride() {
|
|
53
|
-
const cfgModel = getModelOverride('gpt');
|
|
54
|
-
if (cfgModel && GPT_MODELS[cfgModel])
|
|
55
|
-
return cfgModel;
|
|
56
|
-
if (process.env.GPT_MODEL && GPT_MODELS[process.env.GPT_MODEL])
|
|
57
|
-
return process.env.GPT_MODEL;
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
const ENV_MODEL = resolveGptModelOverride();
|
|
61
|
-
// 플랜별 기본 모델 매핑
|
|
62
|
-
const PLAN_MODEL_MAP = {
|
|
63
|
-
pro: 'gpt-5.5-pro',
|
|
64
|
-
plus: 'gpt-5.5',
|
|
65
|
-
free: 'gpt-5.3-codex',
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* 플랜 기반 모델 선택 (환경변수 GPT_MODEL 우선)
|
|
69
|
-
*/
|
|
70
|
-
export function getDefaultModel(plan) {
|
|
71
|
-
if (ENV_MODEL)
|
|
72
|
-
return ENV_MODEL;
|
|
73
|
-
if (plan)
|
|
74
|
-
return PLAN_MODEL_MAP[plan];
|
|
75
|
-
return 'gpt-5.5';
|
|
76
|
-
}
|
|
77
|
-
// 하위 호환용
|
|
78
|
-
export const DEFAULT_MODEL = ENV_MODEL || 'gpt-5.5';
|
|
79
|
-
/**
|
|
80
|
-
* GitHub에서 Codex instructions 가져오기
|
|
81
|
-
*/
|
|
82
|
-
export async function getCodexInstructions(model = 'gpt-5.5') {
|
|
83
|
-
// 캐시 확인
|
|
84
|
-
if (cachedInstructions && Date.now() - instructionsCacheTime < INSTRUCTIONS_CACHE_TTL) {
|
|
85
|
-
return cachedInstructions;
|
|
86
|
-
}
|
|
87
|
-
// 모델에 따른 prompt 파일 선택
|
|
88
|
-
const promptFile = 'gpt_5_2_prompt.md';
|
|
89
|
-
// 최신 릴리스 태그 가져오기
|
|
90
|
-
let tag = 'rust-v0.80.0'; // 기본값
|
|
91
|
-
try {
|
|
92
|
-
const releaseRes = await fetch('https://github.com/openai/codex/releases/latest', {
|
|
93
|
-
redirect: 'manual',
|
|
94
|
-
});
|
|
95
|
-
const location = releaseRes.headers.get('location');
|
|
96
|
-
if (location) {
|
|
97
|
-
const match = location.match(/\/tag\/([^/]+)$/);
|
|
98
|
-
if (match)
|
|
99
|
-
tag = match[1];
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
catch { /* ignore: optional operation */
|
|
103
|
-
// 기본 태그 사용
|
|
104
|
-
}
|
|
105
|
-
const url = `https://raw.githubusercontent.com/openai/codex/${tag}/codex-rs/vibe/${promptFile}`;
|
|
106
|
-
try {
|
|
107
|
-
const response = await fetch(url);
|
|
108
|
-
if (!response.ok) {
|
|
109
|
-
throw new Error(`Failed to fetch instructions: ${response.status}`);
|
|
110
|
-
}
|
|
111
|
-
cachedInstructions = await response.text();
|
|
112
|
-
instructionsCacheTime = Date.now();
|
|
113
|
-
return cachedInstructions;
|
|
114
|
-
}
|
|
115
|
-
catch { /* ignore: optional operation */
|
|
116
|
-
// 캐시된 버전이 있으면 사용
|
|
117
|
-
if (cachedInstructions) {
|
|
118
|
-
return cachedInstructions;
|
|
119
|
-
}
|
|
120
|
-
// 기본 instructions 반환
|
|
121
|
-
return 'You are a helpful coding assistant.';
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* SSE 스트림 파싱
|
|
126
|
-
*/
|
|
127
|
-
async function parseSSEStream(stream) {
|
|
128
|
-
const reader = stream.getReader();
|
|
129
|
-
const decoder = new TextDecoder();
|
|
130
|
-
let result = '';
|
|
131
|
-
while (true) {
|
|
132
|
-
const { done, value } = await reader.read();
|
|
133
|
-
if (done)
|
|
134
|
-
break;
|
|
135
|
-
const chunk = decoder.decode(value, { stream: true });
|
|
136
|
-
const lines = chunk.split('\n');
|
|
137
|
-
for (const line of lines) {
|
|
138
|
-
if (line.startsWith('data: ')) {
|
|
139
|
-
const data = line.slice(6);
|
|
140
|
-
if (data === '[DONE]')
|
|
141
|
-
continue;
|
|
142
|
-
try {
|
|
143
|
-
const json = JSON.parse(data);
|
|
144
|
-
if (json.type === 'response.output_text.delta') {
|
|
145
|
-
result += json.delta || '';
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
catch { /* ignore: optional operation */
|
|
149
|
-
// JSON 파싱 실패 무시
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return result;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* OpenAI Chat Completions API 호출 (API Key 방식 + Function Calling 웹 검색)
|
|
158
|
-
*/
|
|
159
|
-
async function chatWithApiKey(apiKey, options) {
|
|
160
|
-
const { model = DEFAULT_MODEL, messages = [], maxTokens = 4096, temperature = 0.7, systemPrompt = '', } = options;
|
|
161
|
-
// API Key 방식은 OpenAI 모델 사용 (5.5 계열 + 5.3-codex만 지원)
|
|
162
|
-
const apiKeyModelMap = {
|
|
163
|
-
'gpt-5.5': 'gpt-5.5',
|
|
164
|
-
'gpt-5.5-pro': 'gpt-5.5',
|
|
165
|
-
'gpt-5.3-codex': 'gpt-5.3-codex',
|
|
166
|
-
};
|
|
167
|
-
const actualModel = apiKeyModelMap[model] || 'gpt-5.5';
|
|
168
|
-
// 메시지 구성
|
|
169
|
-
const apiMessages = [];
|
|
170
|
-
if (systemPrompt) {
|
|
171
|
-
apiMessages.push({ role: 'system', content: systemPrompt });
|
|
172
|
-
}
|
|
173
|
-
for (const msg of messages) {
|
|
174
|
-
apiMessages.push({ role: msg.role, content: msg.content });
|
|
175
|
-
}
|
|
176
|
-
const retryCount = options._retryCount || 0;
|
|
177
|
-
const maxRetries = 3;
|
|
178
|
-
const { signal, cleanup } = createTimeoutSignal(options.timeoutMs, options.signal);
|
|
179
|
-
try {
|
|
180
|
-
const requestBody = {
|
|
181
|
-
model: actualModel,
|
|
182
|
-
messages: apiMessages,
|
|
183
|
-
max_completion_tokens: maxTokens, // GPT-5 family uses max_completion_tokens instead of max_tokens
|
|
184
|
-
temperature,
|
|
185
|
-
};
|
|
186
|
-
const response = await fetch('https://api.openai.com/v1/chat/completions', {
|
|
187
|
-
method: 'POST',
|
|
188
|
-
headers: {
|
|
189
|
-
'Authorization': `Bearer ${apiKey}`,
|
|
190
|
-
'Content-Type': 'application/json',
|
|
191
|
-
},
|
|
192
|
-
body: JSON.stringify(requestBody),
|
|
193
|
-
signal,
|
|
194
|
-
});
|
|
195
|
-
if (!response.ok) {
|
|
196
|
-
const errorText = await response.text();
|
|
197
|
-
// 429 Rate Limit - 재시도
|
|
198
|
-
if (response.status === 429 && retryCount < maxRetries) {
|
|
199
|
-
const delay = Math.pow(2, retryCount) * 1000;
|
|
200
|
-
await sleep(delay);
|
|
201
|
-
return chatWithApiKey(apiKey, { ...options, _retryCount: retryCount + 1 });
|
|
202
|
-
}
|
|
203
|
-
let errorMessage = `OpenAI API error (${response.status})`;
|
|
204
|
-
try {
|
|
205
|
-
const errorJson = JSON.parse(errorText);
|
|
206
|
-
if (errorJson.error?.message) {
|
|
207
|
-
errorMessage = errorJson.error.message;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
catch { /* ignore */ }
|
|
211
|
-
throw new Error(errorMessage);
|
|
212
|
-
}
|
|
213
|
-
const result = await response.json();
|
|
214
|
-
const assistantMessage = result.choices[0]?.message;
|
|
215
|
-
// 일반 응답 (Function Calling 없음)
|
|
216
|
-
return {
|
|
217
|
-
content: assistantMessage?.content || '',
|
|
218
|
-
model: result.model,
|
|
219
|
-
finishReason: result.choices[0]?.finish_reason || 'stop',
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
catch (error) {
|
|
223
|
-
if (error.name === 'TypeError' && retryCount < maxRetries) {
|
|
224
|
-
const delay = Math.pow(2, retryCount) * 1000;
|
|
225
|
-
await sleep(delay);
|
|
226
|
-
return chatWithApiKey(apiKey, { ...options, _retryCount: retryCount + 1 });
|
|
227
|
-
}
|
|
228
|
-
throw error;
|
|
229
|
-
}
|
|
230
|
-
finally {
|
|
231
|
-
cleanup();
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* GPT API 호출 (Codex Backend)
|
|
236
|
-
*/
|
|
237
|
-
async function chatWithCodex(accessToken, options, accountId) {
|
|
238
|
-
const { model = DEFAULT_MODEL, messages = [], systemPrompt = '', } = options;
|
|
239
|
-
// 모델 정보 가져오기
|
|
240
|
-
const modelInfo = GPT_MODELS[model] || GPT_MODELS[DEFAULT_MODEL];
|
|
241
|
-
// Codex instructions 가져오기
|
|
242
|
-
const instructions = await getCodexInstructions(modelInfo.id);
|
|
243
|
-
// 메시지를 Codex 형식으로 변환
|
|
244
|
-
const input = messages.map(msg => ({
|
|
245
|
-
type: 'message',
|
|
246
|
-
role: msg.role === 'assistant' ? 'assistant' : 'user',
|
|
247
|
-
content: [{ type: 'input_text', text: msg.content }],
|
|
248
|
-
}));
|
|
249
|
-
// 시스템 프롬프트를 instructions에 추가
|
|
250
|
-
let finalInstructions = instructions;
|
|
251
|
-
if (systemPrompt) {
|
|
252
|
-
finalInstructions = `${instructions}\n\n<user_context>\n${systemPrompt}\n</user_context>`;
|
|
253
|
-
}
|
|
254
|
-
const sessionId = crypto.randomUUID();
|
|
255
|
-
const requestBody = {
|
|
256
|
-
model: modelInfo.id,
|
|
257
|
-
store: false,
|
|
258
|
-
stream: true,
|
|
259
|
-
input,
|
|
260
|
-
instructions: finalInstructions,
|
|
261
|
-
reasoning: modelInfo.reasoning,
|
|
262
|
-
text: { verbosity: 'medium' },
|
|
263
|
-
include: ['reasoning.encrypted_content'],
|
|
264
|
-
prompt_cache_key: sessionId,
|
|
265
|
-
};
|
|
266
|
-
// API 호출 (재시도 로직 포함)
|
|
267
|
-
const retryCount = options._retryCount || 0;
|
|
268
|
-
const maxRetries = 3;
|
|
269
|
-
const { signal, cleanup } = createTimeoutSignal(options.timeoutMs, options.signal);
|
|
270
|
-
try {
|
|
271
|
-
const headers = {
|
|
272
|
-
'Authorization': `Bearer ${accessToken}`,
|
|
273
|
-
'Content-Type': 'application/json',
|
|
274
|
-
'OpenAI-Beta': 'responses=experimental',
|
|
275
|
-
'originator': 'codex_cli_rs',
|
|
276
|
-
'session_id': sessionId,
|
|
277
|
-
};
|
|
278
|
-
if (accountId) {
|
|
279
|
-
headers['chatgpt-account-id'] = accountId;
|
|
280
|
-
}
|
|
281
|
-
const response = await fetch(CODEX_RESPONSES_URL, {
|
|
282
|
-
method: 'POST',
|
|
283
|
-
headers,
|
|
284
|
-
body: JSON.stringify(requestBody),
|
|
285
|
-
signal,
|
|
286
|
-
});
|
|
287
|
-
if (!response.ok) {
|
|
288
|
-
const errorText = await response.text();
|
|
289
|
-
// 429 Rate Limit - 재시도
|
|
290
|
-
if (response.status === 429 && retryCount < maxRetries) {
|
|
291
|
-
const delay = Math.pow(2, retryCount) * 1000;
|
|
292
|
-
await sleep(delay);
|
|
293
|
-
return chatWithCodex(accessToken, { ...options, _retryCount: retryCount + 1 }, accountId);
|
|
294
|
-
}
|
|
295
|
-
// 에러 파싱
|
|
296
|
-
let errorMessage = `GPT API error (${response.status})`;
|
|
297
|
-
try {
|
|
298
|
-
const errorJson = JSON.parse(errorText);
|
|
299
|
-
if (errorJson.error?.message) {
|
|
300
|
-
errorMessage = errorJson.error.message;
|
|
301
|
-
}
|
|
302
|
-
else if (errorJson.detail) {
|
|
303
|
-
errorMessage = errorJson.detail;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
catch { /* ignore: optional operation */
|
|
307
|
-
errorMessage += `: ${errorText.substring(0, 200)}`;
|
|
308
|
-
}
|
|
309
|
-
throw new Error(errorMessage);
|
|
310
|
-
}
|
|
311
|
-
// 스트리밍 응답 파싱
|
|
312
|
-
const content = await parseSSEStream(response.body);
|
|
313
|
-
const modelInfo2 = GPT_MODELS[model] || GPT_MODELS[DEFAULT_MODEL];
|
|
314
|
-
return {
|
|
315
|
-
content,
|
|
316
|
-
model: modelInfo2.name,
|
|
317
|
-
finishReason: 'stop',
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
catch (error) {
|
|
321
|
-
// 네트워크 에러 재시도
|
|
322
|
-
if (error.name === 'TypeError' && retryCount < maxRetries) {
|
|
323
|
-
const delay = Math.pow(2, retryCount) * 1000;
|
|
324
|
-
await sleep(delay);
|
|
325
|
-
return chatWithCodex(accessToken, { ...options, _retryCount: retryCount + 1 }, accountId);
|
|
326
|
-
}
|
|
327
|
-
throw error;
|
|
328
|
-
}
|
|
329
|
-
finally {
|
|
330
|
-
cleanup();
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* 인증 방식에 따라 적절한 chat 함수 호출
|
|
335
|
-
*/
|
|
336
|
-
async function callWithAuth(authInfo, options) {
|
|
337
|
-
switch (authInfo.type) {
|
|
338
|
-
case 'apikey':
|
|
339
|
-
return chatWithApiKey(authInfo.apiKey, options);
|
|
340
|
-
case 'codex-cli':
|
|
341
|
-
return chatWithCodex(authInfo.accessToken, options, authInfo.accountId);
|
|
342
|
-
default:
|
|
343
|
-
throw new Error(`Unknown auth type: ${authInfo.type}`);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* fallback 가능한 에러인지 확인
|
|
348
|
-
*/
|
|
349
|
-
function isFallbackError(errorMsg) {
|
|
350
|
-
return errorMsg.includes('429') ||
|
|
351
|
-
errorMsg.includes('401') ||
|
|
352
|
-
errorMsg.includes('403') ||
|
|
353
|
-
errorMsg.toLowerCase().includes('usage limit') ||
|
|
354
|
-
errorMsg.toLowerCase().includes('rate limit') ||
|
|
355
|
-
errorMsg.toLowerCase().includes('quota');
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* GPT API 호출 (고정 순서 인증 + Fallback)
|
|
359
|
-
* codex-cli → apikey 순서, 실패 시 다음 방식으로 자동 전환
|
|
360
|
-
*/
|
|
361
|
-
export async function chat(options) {
|
|
362
|
-
const authInfo = await getAuthInfo();
|
|
363
|
-
// plan 기반 모델 자동 선택 (options.model 미지정 시)
|
|
364
|
-
const resolvedOptions = options.model
|
|
365
|
-
? options
|
|
366
|
-
: { ...options, model: getDefaultModel(authInfo.plan) };
|
|
367
|
-
try {
|
|
368
|
-
return await callWithAuth(authInfo, resolvedOptions);
|
|
369
|
-
}
|
|
370
|
-
catch (error) {
|
|
371
|
-
const errorMsg = error.message;
|
|
372
|
-
if (!isFallbackError(errorMsg)) {
|
|
373
|
-
throw error;
|
|
374
|
-
}
|
|
375
|
-
// 현재 방식 실패 → 다른 방식으로 fallback
|
|
376
|
-
if (authInfo.type !== 'apikey') {
|
|
377
|
-
try {
|
|
378
|
-
const apiKey = getApiKeyFromConfig();
|
|
379
|
-
if (apiKey) {
|
|
380
|
-
return await callWithAuth({ type: 'apikey', apiKey }, options);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
catch { /* fallback failed */ }
|
|
384
|
-
}
|
|
385
|
-
throw error;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* 스트리밍 Chat (Codex 또는 API Key 자동 선택)
|
|
390
|
-
*/
|
|
391
|
-
export async function* chatStream(options) {
|
|
392
|
-
const authInfo = await getAuthInfo();
|
|
393
|
-
// API Key 방식은 스트리밍 미지원 - 일반 chat 사용
|
|
394
|
-
if (authInfo.type === 'apikey') {
|
|
395
|
-
const result = await chat(options);
|
|
396
|
-
yield { type: 'delta', content: result.content };
|
|
397
|
-
yield { type: 'done' };
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
// Codex 스트리밍
|
|
401
|
-
const planModel = getDefaultModel(authInfo.plan);
|
|
402
|
-
const { model = planModel, messages = [], systemPrompt = '', } = options;
|
|
403
|
-
const modelInfo = GPT_MODELS[model] || GPT_MODELS[DEFAULT_MODEL];
|
|
404
|
-
const instructions = await getCodexInstructions(modelInfo.id);
|
|
405
|
-
const input = messages.map(msg => ({
|
|
406
|
-
type: 'message',
|
|
407
|
-
role: msg.role === 'assistant' ? 'assistant' : 'user',
|
|
408
|
-
content: [{ type: 'input_text', text: msg.content }],
|
|
409
|
-
}));
|
|
410
|
-
const finalInstructions = systemPrompt
|
|
411
|
-
? `${instructions}\n\n<user_context>\n${systemPrompt}\n</user_context>`
|
|
412
|
-
: instructions;
|
|
413
|
-
const streamSessionId = crypto.randomUUID();
|
|
414
|
-
const requestBody = {
|
|
415
|
-
model: modelInfo.id,
|
|
416
|
-
store: false,
|
|
417
|
-
stream: true,
|
|
418
|
-
input,
|
|
419
|
-
instructions: finalInstructions,
|
|
420
|
-
reasoning: modelInfo.reasoning,
|
|
421
|
-
text: { verbosity: 'medium' },
|
|
422
|
-
include: ['reasoning.encrypted_content'],
|
|
423
|
-
prompt_cache_key: streamSessionId,
|
|
424
|
-
};
|
|
425
|
-
const streamHeaders = {
|
|
426
|
-
'Authorization': `Bearer ${authInfo.accessToken}`,
|
|
427
|
-
'Content-Type': 'application/json',
|
|
428
|
-
'OpenAI-Beta': 'responses=experimental',
|
|
429
|
-
'originator': 'codex_cli_rs',
|
|
430
|
-
'session_id': streamSessionId,
|
|
431
|
-
};
|
|
432
|
-
if (authInfo.accountId) {
|
|
433
|
-
streamHeaders['chatgpt-account-id'] = authInfo.accountId;
|
|
434
|
-
}
|
|
435
|
-
// 스트리밍은 본질적으로 길 수 있어 total timeout 을 걸지 않는다. 대신 연결 수립까지만
|
|
436
|
-
// hard timeout(clearTimer)을 적용하고, 이후 read 는 외부 취소 signal 만 따른다.
|
|
437
|
-
const { signal, cleanup, clearTimer } = createTimeoutSignal(options.timeoutMs, options.signal);
|
|
438
|
-
try {
|
|
439
|
-
const response = await fetch(CODEX_RESPONSES_URL, {
|
|
440
|
-
method: 'POST',
|
|
441
|
-
headers: streamHeaders,
|
|
442
|
-
body: JSON.stringify(requestBody),
|
|
443
|
-
signal,
|
|
444
|
-
});
|
|
445
|
-
if (!response.ok) {
|
|
446
|
-
const errorText = await response.text();
|
|
447
|
-
throw new Error(`GPT API error (${response.status}): ${errorText}`);
|
|
448
|
-
}
|
|
449
|
-
clearTimer(); // 연결 수립 — total timeout 해제, caller 취소(외부 signal)는 유지
|
|
450
|
-
const reader = response.body.getReader();
|
|
451
|
-
const decoder = new TextDecoder();
|
|
452
|
-
while (true) {
|
|
453
|
-
const { done, value } = await reader.read();
|
|
454
|
-
if (done)
|
|
455
|
-
break;
|
|
456
|
-
const chunk = decoder.decode(value, { stream: true });
|
|
457
|
-
const lines = chunk.split('\n');
|
|
458
|
-
for (const line of lines) {
|
|
459
|
-
if (line.startsWith('data: ')) {
|
|
460
|
-
const data = line.slice(6);
|
|
461
|
-
if (data === '[DONE]') {
|
|
462
|
-
yield { type: 'done' };
|
|
463
|
-
return;
|
|
464
|
-
}
|
|
465
|
-
try {
|
|
466
|
-
const json = JSON.parse(data);
|
|
467
|
-
if (json.type === 'response.output_text.delta') {
|
|
468
|
-
yield { type: 'delta', content: json.delta || '' };
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
catch { /* ignore: optional operation */
|
|
472
|
-
// JSON 파싱 실패 무시
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
finally {
|
|
479
|
-
cleanup();
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* 사용 가능한 모델 목록 반환
|
|
484
|
-
*/
|
|
485
|
-
export function getAvailableModels() {
|
|
486
|
-
return Object.values(GPT_MODELS);
|
|
487
|
-
}
|
|
488
|
-
/**
|
|
489
|
-
* 모델 정보 가져오기
|
|
490
|
-
*/
|
|
491
|
-
export function getModelInfo(modelId) {
|
|
492
|
-
return GPT_MODELS[modelId] || null;
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* 간단한 질문-응답
|
|
496
|
-
*/
|
|
497
|
-
export async function ask(prompt, options = {}) {
|
|
498
|
-
const result = await chat({
|
|
499
|
-
...options,
|
|
500
|
-
messages: [{ role: 'user', content: prompt }],
|
|
501
|
-
});
|
|
502
|
-
return result.content;
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* 빠른 질문 (GPT-5.5 사용)
|
|
506
|
-
*/
|
|
507
|
-
export async function quickAsk(prompt) {
|
|
508
|
-
return ask(prompt, {
|
|
509
|
-
model: 'gpt-5.5',
|
|
510
|
-
maxTokens: 2048,
|
|
511
|
-
temperature: 0.3,
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
//# sourceMappingURL=chat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../../src/infra/lib/gpt/chat.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAY7D,kBAAkB;AAClB,MAAM,mBAAmB,GAAG,GAAG,gBAAgB,kBAAkB,CAAC;AAElE,wCAAwC;AACxC,IAAI,kBAAkB,GAAkB,IAAI,CAAC;AAC7C,IAAI,qBAAqB,GAAG,CAAC,C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|
|
3
|
-
* codex-cli + API Key 인증 전용
|
|
4
|
-
*/
|
|
5
|
-
export declare const GPT_CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann";
|
|
6
|
-
export declare const GPT_TOKEN_URL = "https://auth.openai.com/oauth/token";
|
|
7
|
-
export declare const CHATGPT_BASE_URL = "https://chatgpt.com/backend-api";
|
|
8
|
-
export declare const JWT_CLAIM_PATH = "https://api.openai.com/auth";
|
|
9
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/infra/lib/gpt/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,aAAa,iCAAiC,CAAC;AAG5D,eAAO,MAAM,aAAa,wCAAwC,CAAC;AAGnE,eAAO,MAAM,gBAAgB,oCAAoC,CAAC;AAGlE,eAAO,MAAM,cAAc,gCAAgC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GPT API Constants
|
|
3
|
-
* codex-cli + API Key 인증 전용
|
|
4
|
-
*/
|
|
5
|
-
// 클라이언트 정보 (codex-cli 토큰 갱신용)
|
|
6
|
-
export const GPT_CLIENT_ID = 'app_EMoamEEZ73f0CkXaXp7hrann';
|
|
7
|
-
// 토큰 갱신 엔드포인트 (codex-cli refresh용)
|
|
8
|
-
export const GPT_TOKEN_URL = 'https://auth.openai.com/oauth/token';
|
|
9
|
-
// ChatGPT API 엔드포인트
|
|
10
|
-
export const CHATGPT_BASE_URL = 'https://chatgpt.com/backend-api';
|
|
11
|
-
// JWT 클레임 경로 (계정 ID 추출용)
|
|
12
|
-
export const JWT_CLAIM_PATH = 'https://api.openai.com/auth';
|
|
13
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/infra/lib/gpt/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,8BAA8B;AAC9B,MAAM,CAAC,MAAM,aAAa,GAAG,8BAA8B,CAAC;AAE5D,mCAAmC;AACnC,MAAM,CAAC,MAAM,aAAa,GAAG,qCAAqC,CAAC;AAEnE,oBAAoB;AACpB,MAAM,CAAC,MAAM,gBAAgB,GAAG,iCAAiC,CAAC;AAElE,yBAAyB;AACzB,MAAM,CAAC,MAAM,cAAc,GAAG,6BAA6B,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GPT Embedding API (OpenAI Direct)
|
|
3
|
-
* 모델: text-embedding-3-large
|
|
4
|
-
* 엔드포인트: api.openai.com/v1/embeddings
|
|
5
|
-
*
|
|
6
|
-
* 주의: API Key 인증만 지원
|
|
7
|
-
*/
|
|
8
|
-
import type { EmbeddingResponse } from './types.js';
|
|
9
|
-
/**
|
|
10
|
-
* 텍스트 임베딩 생성 (OpenAI text-embedding-3-large)
|
|
11
|
-
* @param texts - 임베딩할 텍스트 배열
|
|
12
|
-
* @param inputType - 'query' (검색 시) 또는 'passage' (인덱싱 시) — OpenAI에서는 미사용
|
|
13
|
-
*/
|
|
14
|
-
export declare function embed(texts: string[], inputType?: 'query' | 'passage'): Promise<EmbeddingResponse>;
|
|
15
|
-
//# sourceMappingURL=embedding.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embedding.d.ts","sourceRoot":"","sources":["../../../../src/infra/lib/gpt/embedding.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAiCpD;;;;GAIG;AACH,wBAAsB,KAAK,CACzB,KAAK,EAAE,MAAM,EAAE,EACf,SAAS,GAAE,OAAO,GAAG,SAAmB,GACvC,OAAO,CAAC,iBAAiB,CAAC,CA8C5B"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GPT Embedding API (OpenAI Direct)
|
|
3
|
-
* 모델: text-embedding-3-large
|
|
4
|
-
* 엔드포인트: api.openai.com/v1/embeddings
|
|
5
|
-
*
|
|
6
|
-
* 주의: API Key 인증만 지원
|
|
7
|
-
*/
|
|
8
|
-
import { getApiKeyFromConfig } from './auth.js';
|
|
9
|
-
import { createTimeoutSignal } from '../llm/timeout.js';
|
|
10
|
-
const API_TIMEOUT_MS = 30_000;
|
|
11
|
-
const GPT_EMBEDDING_BASE_URL = 'https://api.openai.com/v1';
|
|
12
|
-
const GPT_EMBEDDING_MODEL = 'text-embedding-3-large';
|
|
13
|
-
/**
|
|
14
|
-
* API Key 가져오기 (환경변수 → 저장 파일)
|
|
15
|
-
* API Key만 확인
|
|
16
|
-
*/
|
|
17
|
-
function getEmbeddingApiKey() {
|
|
18
|
-
// 1. 환경변수 확인
|
|
19
|
-
const envKey = process.env.OPENAI_API_KEY;
|
|
20
|
-
if (envKey)
|
|
21
|
-
return envKey;
|
|
22
|
-
// 2. 저장된 API Key 확인
|
|
23
|
-
const storedKey = getApiKeyFromConfig();
|
|
24
|
-
if (storedKey)
|
|
25
|
-
return storedKey;
|
|
26
|
-
throw new Error('GPT Embedding requires API Key. ' +
|
|
27
|
-
'Run "vibe gpt key <api-key>" or set OPENAI_API_KEY env variable.');
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* 텍스트 임베딩 생성 (OpenAI text-embedding-3-large)
|
|
31
|
-
* @param texts - 임베딩할 텍스트 배열
|
|
32
|
-
* @param inputType - 'query' (검색 시) 또는 'passage' (인덱싱 시) — OpenAI에서는 미사용
|
|
33
|
-
*/
|
|
34
|
-
export async function embed(texts, inputType = 'query') {
|
|
35
|
-
void inputType;
|
|
36
|
-
const apiKey = getEmbeddingApiKey();
|
|
37
|
-
const { signal, cleanup } = createTimeoutSignal(API_TIMEOUT_MS);
|
|
38
|
-
try {
|
|
39
|
-
const response = await fetch(`${GPT_EMBEDDING_BASE_URL}/embeddings`, {
|
|
40
|
-
method: 'POST',
|
|
41
|
-
headers: {
|
|
42
|
-
'Authorization': `Bearer ${apiKey}`,
|
|
43
|
-
'Content-Type': 'application/json',
|
|
44
|
-
},
|
|
45
|
-
body: JSON.stringify({
|
|
46
|
-
input: texts,
|
|
47
|
-
model: GPT_EMBEDDING_MODEL,
|
|
48
|
-
}),
|
|
49
|
-
signal,
|
|
50
|
-
});
|
|
51
|
-
if (!response.ok) {
|
|
52
|
-
const errorText = await response.text();
|
|
53
|
-
let errorMessage = `GPT Embedding API error (${response.status})`;
|
|
54
|
-
try {
|
|
55
|
-
const errorJson = JSON.parse(errorText);
|
|
56
|
-
if (errorJson.error?.message) {
|
|
57
|
-
errorMessage = errorJson.error.message;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
catch { /* ignore */ }
|
|
61
|
-
throw new Error(errorMessage);
|
|
62
|
-
}
|
|
63
|
-
const result = await response.json();
|
|
64
|
-
return {
|
|
65
|
-
embeddings: result.data.map(d => d.embedding),
|
|
66
|
-
model: result.model,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
const name = error.name;
|
|
71
|
-
if (name === 'AbortError' || name === 'TimeoutError') {
|
|
72
|
-
throw new Error(`GPT Embedding API timeout (${API_TIMEOUT_MS / 1000}s)`);
|
|
73
|
-
}
|
|
74
|
-
throw error;
|
|
75
|
-
}
|
|
76
|
-
finally {
|
|
77
|
-
cleanup();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=embedding.js.map
|