open-multi-agent-kit 0.80.7 → 0.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -27
- package/README.md +81 -38
- package/dist/agents/jailbreak/index.d.ts +7 -0
- package/dist/agents/jailbreak/index.d.ts.map +1 -0
- package/dist/agents/jailbreak/index.js +7 -0
- package/dist/agents/jailbreak/index.js.map +1 -0
- package/dist/agents/jailbreak/subagent-f.d.ts +44 -0
- package/dist/agents/jailbreak/subagent-f.d.ts.map +1 -0
- package/dist/agents/jailbreak/subagent-f.js +60 -0
- package/dist/agents/jailbreak/subagent-f.js.map +1 -0
- package/dist/bun/register-bedrock.d.ts.map +1 -1
- package/dist/bun/register-bedrock.js +2 -2
- package/dist/bun/register-bedrock.js.map +1 -1
- package/dist/ci/verify-reporter.d.ts +22 -0
- package/dist/ci/verify-reporter.d.ts.map +1 -0
- package/dist/ci/verify-reporter.js +50 -0
- package/dist/ci/verify-reporter.js.map +1 -0
- package/dist/cli/args.d.ts +4 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +8 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/config-selector.d.ts.map +1 -1
- package/dist/cli/config-selector.js +1 -1
- package/dist/cli/config-selector.js.map +1 -1
- package/dist/cli/file-processor.d.ts +1 -1
- package/dist/cli/file-processor.d.ts.map +1 -1
- package/dist/cli/file-processor.js.map +1 -1
- package/dist/cli/initial-message.d.ts +1 -1
- package/dist/cli/initial-message.d.ts.map +1 -1
- package/dist/cli/initial-message.js.map +1 -1
- package/dist/cli/jailbreak-args.d.ts +26 -0
- package/dist/cli/jailbreak-args.d.ts.map +1 -0
- package/dist/cli/jailbreak-args.js +86 -0
- package/dist/cli/jailbreak-args.js.map +1 -0
- package/dist/cli/list-models.d.ts.map +1 -1
- package/dist/cli/list-models.js +1 -1
- package/dist/cli/list-models.js.map +1 -1
- package/dist/cli/session-picker.d.ts.map +1 -1
- package/dist/cli/session-picker.js +1 -1
- package/dist/cli/session-picker.js.map +1 -1
- package/dist/commands/doctor-provider.d.ts +19 -0
- package/dist/commands/doctor-provider.d.ts.map +1 -0
- package/dist/commands/doctor-provider.js +123 -0
- package/dist/commands/doctor-provider.js.map +1 -0
- package/dist/commands/jailbreak.d.ts +49 -0
- package/dist/commands/jailbreak.d.ts.map +1 -0
- package/dist/commands/jailbreak.js +201 -0
- package/dist/commands/jailbreak.js.map +1 -0
- package/dist/config.d.ts +9 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +33 -52
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +2 -2
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +16 -27
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +185 -89
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts +3 -6
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +7 -7
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/automation/index.d.ts +359 -0
- package/dist/core/automation/index.d.ts.map +1 -0
- package/dist/core/automation/index.js +665 -0
- package/dist/core/automation/index.js.map +1 -0
- package/dist/core/bash-executor.d.ts +1 -0
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +1 -0
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/browser-use.d.ts +53 -0
- package/dist/core/browser-use.d.ts.map +1 -0
- package/dist/core/browser-use.js +108 -0
- package/dist/core/browser-use.js.map +1 -0
- package/dist/core/command-safety-parser.d.ts +77 -0
- package/dist/core/command-safety-parser.d.ts.map +1 -0
- package/dist/core/command-safety-parser.js +763 -0
- package/dist/core/command-safety-parser.js.map +1 -0
- package/dist/core/command-safety.d.ts.map +1 -1
- package/dist/core/command-safety.js +106 -3
- package/dist/core/command-safety.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +2 -2
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +5 -21
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +3 -101
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +21 -656
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/utils.d.ts +2 -2
- package/dist/core/compaction/utils.d.ts.map +1 -1
- package/dist/core/compaction/utils.js.map +1 -1
- package/dist/core/compactor.d.ts +42 -0
- package/dist/core/compactor.d.ts.map +1 -0
- package/dist/core/compactor.js +131 -0
- package/dist/core/compactor.js.map +1 -0
- package/dist/core/context-budget-compressors.d.ts +50 -0
- package/dist/core/context-budget-compressors.d.ts.map +1 -0
- package/dist/core/context-budget-compressors.js +166 -0
- package/dist/core/context-budget-compressors.js.map +1 -0
- package/dist/core/context-budget-governor-v2.d.ts +7 -0
- package/dist/core/context-budget-governor-v2.d.ts.map +1 -0
- package/dist/core/context-budget-governor-v2.js +7 -0
- package/dist/core/context-budget-governor-v2.js.map +1 -0
- package/dist/core/context-budget-governor.d.ts +67 -0
- package/dist/core/context-budget-governor.d.ts.map +1 -0
- package/dist/core/context-budget-governor.js +224 -0
- package/dist/core/context-budget-governor.js.map +1 -0
- package/dist/core/context-budget-headroom-candidates.d.ts +3 -0
- package/dist/core/context-budget-headroom-candidates.d.ts.map +1 -0
- package/dist/core/context-budget-headroom-candidates.js +85 -0
- package/dist/core/context-budget-headroom-candidates.js.map +1 -0
- package/dist/core/context-budget-headroom-types.d.ts +67 -0
- package/dist/core/context-budget-headroom-types.d.ts.map +1 -0
- package/dist/core/context-budget-headroom-types.js +46 -0
- package/dist/core/context-budget-headroom-types.js.map +1 -0
- package/dist/core/context-budget-headroom.d.ts +5 -0
- package/dist/core/context-budget-headroom.d.ts.map +1 -0
- package/dist/core/context-budget-headroom.js +123 -0
- package/dist/core/context-budget-headroom.js.map +1 -0
- package/dist/core/context-budget-relevance.d.ts +46 -0
- package/dist/core/context-budget-relevance.d.ts.map +1 -0
- package/dist/core/context-budget-relevance.js +329 -0
- package/dist/core/context-budget-relevance.js.map +1 -0
- package/dist/core/context-budget-system-prompt-items.d.ts +19 -0
- package/dist/core/context-budget-system-prompt-items.d.ts.map +1 -0
- package/dist/core/context-budget-system-prompt-items.js +143 -0
- package/dist/core/context-budget-system-prompt-items.js.map +1 -0
- package/dist/core/context-budget-system-prompt.d.ts +31 -0
- package/dist/core/context-budget-system-prompt.d.ts.map +1 -0
- package/dist/core/context-budget-system-prompt.js +87 -0
- package/dist/core/context-budget-system-prompt.js.map +1 -0
- package/dist/core/context-budget-token-counter.d.ts +34 -0
- package/dist/core/context-budget-token-counter.d.ts.map +1 -0
- package/dist/core/context-budget-token-counter.js +315 -0
- package/dist/core/context-budget-token-counter.js.map +1 -0
- package/dist/core/context-budget-v2-coverage.d.ts +5 -0
- package/dist/core/context-budget-v2-coverage.d.ts.map +1 -0
- package/dist/core/context-budget-v2-coverage.js +58 -0
- package/dist/core/context-budget-v2-coverage.js.map +1 -0
- package/dist/core/context-budget-v2-plan-hash.d.ts +12 -0
- package/dist/core/context-budget-v2-plan-hash.d.ts.map +1 -0
- package/dist/core/context-budget-v2-plan-hash.js +38 -0
- package/dist/core/context-budget-v2-plan-hash.js.map +1 -0
- package/dist/core/context-budget-v2-planner.d.ts +3 -0
- package/dist/core/context-budget-v2-planner.d.ts.map +1 -0
- package/dist/core/context-budget-v2-planner.js +143 -0
- package/dist/core/context-budget-v2-planner.js.map +1 -0
- package/dist/core/context-budget-v2-scoring.d.ts +14 -0
- package/dist/core/context-budget-v2-scoring.d.ts.map +1 -0
- package/dist/core/context-budget-v2-scoring.js +114 -0
- package/dist/core/context-budget-v2-scoring.js.map +1 -0
- package/dist/core/context-budget-v2-selection.d.ts +32 -0
- package/dist/core/context-budget-v2-selection.d.ts.map +1 -0
- package/dist/core/context-budget-v2-selection.js +158 -0
- package/dist/core/context-budget-v2-selection.js.map +1 -0
- package/dist/core/context-budget-v2-tiers.d.ts +15 -0
- package/dist/core/context-budget-v2-tiers.d.ts.map +1 -0
- package/dist/core/context-budget-v2-tiers.js +68 -0
- package/dist/core/context-budget-v2-tiers.js.map +1 -0
- package/dist/core/context-budget-v2-types.d.ts +92 -0
- package/dist/core/context-budget-v2-types.d.ts.map +1 -0
- package/dist/core/context-budget-v2-types.js +24 -0
- package/dist/core/context-budget-v2-types.js.map +1 -0
- package/dist/core/defaults.d.ts +1 -1
- package/dist/core/defaults.d.ts.map +1 -1
- package/dist/core/defaults.js.map +1 -1
- package/dist/core/diagnostics.d.ts +6 -0
- package/dist/core/diagnostics.d.ts.map +1 -1
- package/dist/core/diagnostics.js.map +1 -1
- package/dist/core/domain-confidence.d.ts +9 -0
- package/dist/core/domain-confidence.d.ts.map +1 -0
- package/dist/core/domain-confidence.js +39 -0
- package/dist/core/domain-confidence.js.map +1 -0
- package/dist/core/domain-dispatch.d.ts +44 -0
- package/dist/core/domain-dispatch.d.ts.map +1 -0
- package/dist/core/domain-dispatch.js +118 -0
- package/dist/core/domain-dispatch.js.map +1 -0
- package/dist/core/domain-loadouts.d.ts +76 -0
- package/dist/core/domain-loadouts.d.ts.map +1 -0
- package/dist/core/domain-loadouts.js +981 -0
- package/dist/core/domain-loadouts.js.map +1 -0
- package/dist/core/domain-registry.d.ts +7 -0
- package/dist/core/domain-registry.d.ts.map +1 -0
- package/dist/core/domain-registry.js +11 -0
- package/dist/core/domain-registry.js.map +1 -0
- package/dist/core/domain-router.d.ts +16 -0
- package/dist/core/domain-router.d.ts.map +1 -0
- package/dist/core/domain-router.js +24 -0
- package/dist/core/domain-router.js.map +1 -0
- package/dist/core/domain-score.d.ts +13 -0
- package/dist/core/domain-score.d.ts.map +1 -0
- package/dist/core/domain-score.js +48 -0
- package/dist/core/domain-score.js.map +1 -0
- package/dist/core/domain-trigger-match.d.ts +14 -0
- package/dist/core/domain-trigger-match.d.ts.map +1 -0
- package/dist/core/domain-trigger-match.js +51 -0
- package/dist/core/domain-trigger-match.js.map +1 -0
- package/dist/core/domain-types.d.ts +30 -0
- package/dist/core/domain-types.d.ts.map +1 -0
- package/dist/core/domain-types.js +2 -0
- package/dist/core/domain-types.js.map +1 -0
- package/dist/core/exact-cache-policy.d.ts +8 -0
- package/dist/core/exact-cache-policy.d.ts.map +1 -1
- package/dist/core/exact-cache-policy.js +9 -0
- package/dist/core/exact-cache-policy.js.map +1 -1
- package/dist/core/exec.d.ts +0 -2
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js +0 -1
- package/dist/core/exec.js.map +1 -1
- package/dist/core/export-html/index.d.ts +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/template.js +1 -3
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
- package/dist/core/export-html/tool-renderer.js.map +1 -1
- package/dist/core/extensions/builtin/command-safety-gate.d.ts +3 -0
- package/dist/core/extensions/builtin/command-safety-gate.d.ts.map +1 -1
- package/dist/core/extensions/builtin/command-safety-gate.js +15 -3
- package/dist/core/extensions/builtin/command-safety-gate.js.map +1 -1
- package/dist/core/extensions/builtin/todo-checklist.d.ts +20 -0
- package/dist/core/extensions/builtin/todo-checklist.d.ts.map +1 -0
- package/dist/core/extensions/builtin/todo-checklist.js +73 -0
- package/dist/core/extensions/builtin/todo-checklist.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +4 -4
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +57 -92
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +3 -3
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +1 -1
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +7 -35
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/extensions/wrapper.d.ts +1 -1
- package/dist/core/extensions/wrapper.d.ts.map +1 -1
- package/dist/core/extensions/wrapper.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts +3 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +4 -0
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/headroom.d.ts +45 -0
- package/dist/core/headroom.d.ts.map +1 -0
- package/dist/core/headroom.js +171 -0
- package/dist/core/headroom.js.map +1 -0
- package/dist/core/hook-inventory.d.ts +4 -2
- package/dist/core/hook-inventory.d.ts.map +1 -1
- package/dist/core/hook-inventory.js +80 -11
- package/dist/core/hook-inventory.js.map +1 -1
- package/dist/core/hooks/fail-closed.d.ts +4 -1
- package/dist/core/hooks/fail-closed.d.ts.map +1 -1
- package/dist/core/hooks/fail-closed.js +79 -5
- package/dist/core/hooks/fail-closed.js.map +1 -1
- package/dist/core/hooks/index.d.ts +2 -2
- package/dist/core/hooks/index.d.ts.map +1 -1
- package/dist/core/hooks/index.js +1 -1
- package/dist/core/hooks/index.js.map +1 -1
- package/dist/core/hooks/types.d.ts +9 -0
- package/dist/core/hooks/types.d.ts.map +1 -1
- package/dist/core/hooks/types.js.map +1 -1
- package/dist/core/keybindings.d.ts +2 -14
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +1 -31
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/lean-ctx.d.ts +99 -0
- package/dist/core/lean-ctx.d.ts.map +1 -0
- package/dist/core/lean-ctx.js +225 -0
- package/dist/core/lean-ctx.js.map +1 -0
- package/dist/core/loadout-compose.d.ts +53 -0
- package/dist/core/loadout-compose.d.ts.map +1 -0
- package/dist/core/loadout-compose.js +172 -0
- package/dist/core/loadout-compose.js.map +1 -0
- package/dist/core/loadout-policy-bridge.d.ts +22 -0
- package/dist/core/loadout-policy-bridge.d.ts.map +1 -0
- package/dist/core/loadout-policy-bridge.js +52 -0
- package/dist/core/loadout-policy-bridge.js.map +1 -0
- package/dist/core/loadout-runtime.d.ts +22 -0
- package/dist/core/loadout-runtime.d.ts.map +1 -1
- package/dist/core/loadout-runtime.js +41 -5
- package/dist/core/loadout-runtime.js.map +1 -1
- package/dist/core/loadout-safety.d.ts +55 -0
- package/dist/core/loadout-safety.d.ts.map +1 -0
- package/dist/core/loadout-safety.js +213 -0
- package/dist/core/loadout-safety.js.map +1 -0
- package/dist/core/loadouts.d.ts +4 -2
- package/dist/core/loadouts.d.ts.map +1 -1
- package/dist/core/loadouts.js +116 -5
- package/dist/core/loadouts.js.map +1 -1
- package/dist/core/loop-gates.d.ts +48 -0
- package/dist/core/loop-gates.d.ts.map +1 -0
- package/dist/core/loop-gates.js +352 -0
- package/dist/core/loop-gates.js.map +1 -0
- package/dist/core/loop-registry.d.ts +77 -0
- package/dist/core/loop-registry.d.ts.map +1 -0
- package/dist/core/loop-registry.js +831 -0
- package/dist/core/loop-registry.js.map +1 -0
- package/dist/core/loop-types.d.ts +194 -0
- package/dist/core/loop-types.d.ts.map +1 -0
- package/dist/core/loop-types.js +2 -0
- package/dist/core/loop-types.js.map +1 -0
- package/dist/core/mcp-inventory.d.ts +7 -0
- package/dist/core/mcp-inventory.d.ts.map +1 -1
- package/dist/core/mcp-inventory.js +5 -1
- package/dist/core/mcp-inventory.js.map +1 -1
- package/dist/core/mcp-presets.d.ts +43 -2
- package/dist/core/mcp-presets.d.ts.map +1 -1
- package/dist/core/mcp-presets.js +298 -2
- package/dist/core/mcp-presets.js.map +1 -1
- package/dist/core/messages.d.ts +3 -3
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js.map +1 -1
- package/dist/core/metrics-sampler.d.ts +11 -0
- package/dist/core/metrics-sampler.d.ts.map +1 -1
- package/dist/core/metrics-sampler.js +52 -13
- package/dist/core/metrics-sampler.js.map +1 -1
- package/dist/core/model-registry.d.ts +1 -2
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +18 -41
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts +2 -2
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +2 -2
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/package-gallery-identity.d.ts +7 -0
- package/dist/core/package-gallery-identity.d.ts.map +1 -0
- package/dist/core/package-gallery-identity.js +31 -0
- package/dist/core/package-gallery-identity.js.map +1 -0
- package/dist/core/package-gallery-install.d.ts +6 -0
- package/dist/core/package-gallery-install.d.ts.map +1 -0
- package/dist/core/package-gallery-install.js +59 -0
- package/dist/core/package-gallery-install.js.map +1 -0
- package/dist/core/package-gallery-manifest.d.ts +13 -0
- package/dist/core/package-gallery-manifest.d.ts.map +1 -0
- package/dist/core/package-gallery-manifest.js +183 -0
- package/dist/core/package-gallery-manifest.js.map +1 -0
- package/dist/core/package-gallery-trial.d.ts +4 -0
- package/dist/core/package-gallery-trial.d.ts.map +1 -0
- package/dist/core/package-gallery-trial.js +55 -0
- package/dist/core/package-gallery-trial.js.map +1 -0
- package/dist/core/package-gallery-types.d.ts +71 -0
- package/dist/core/package-gallery-types.d.ts.map +1 -0
- package/dist/core/package-gallery-types.js +2 -0
- package/dist/core/package-gallery-types.js.map +1 -0
- package/dist/core/package-gallery.d.ts +5 -123
- package/dist/core/package-gallery.d.ts.map +1 -1
- package/dist/core/package-gallery.js +5 -391
- package/dist/core/package-gallery.js.map +1 -1
- package/dist/core/package-manager.d.ts +0 -69
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +69 -367
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/package-procurement.d.ts +4 -4
- package/dist/core/package-procurement.d.ts.map +1 -1
- package/dist/core/package-procurement.js +29 -17
- package/dist/core/package-procurement.js.map +1 -1
- package/dist/core/pi-package-intake-candidates.d.ts +21 -0
- package/dist/core/pi-package-intake-candidates.d.ts.map +1 -0
- package/dist/core/pi-package-intake-candidates.js +109 -0
- package/dist/core/pi-package-intake-candidates.js.map +1 -0
- package/dist/core/pi-package-intake.d.ts +43 -0
- package/dist/core/pi-package-intake.d.ts.map +1 -0
- package/dist/core/pi-package-intake.js +122 -0
- package/dist/core/pi-package-intake.js.map +1 -0
- package/dist/core/provider-attribution.d.ts +1 -1
- package/dist/core/provider-attribution.d.ts.map +1 -1
- package/dist/core/provider-attribution.js.map +1 -1
- package/dist/core/provider-display-names.d.ts.map +1 -1
- package/dist/core/provider-display-names.js +1 -0
- package/dist/core/provider-display-names.js.map +1 -1
- package/dist/core/read-anchors.d.ts +1 -1
- package/dist/core/read-anchors.d.ts.map +1 -1
- package/dist/core/read-anchors.js +1 -1
- package/dist/core/read-anchors.js.map +1 -1
- package/dist/core/recovery-checkpoint.d.ts +2 -2
- package/dist/core/recovery-checkpoint.d.ts.map +1 -1
- package/dist/core/recovery-checkpoint.js +2 -2
- package/dist/core/recovery-checkpoint.js.map +1 -1
- package/dist/core/resolve-config-value.d.ts +1 -1
- package/dist/core/resolve-config-value.d.ts.map +1 -1
- package/dist/core/resolve-config-value.js +2 -30
- package/dist/core/resolve-config-value.js.map +1 -1
- package/dist/core/resource-loader.d.ts +12 -20
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +67 -90
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/sandbox-policy-v2.d.ts +49 -0
- package/dist/core/sandbox-policy-v2.d.ts.map +1 -0
- package/dist/core/sandbox-policy-v2.js +368 -0
- package/dist/core/sandbox-policy-v2.js.map +1 -0
- package/dist/core/sdk.d.ts +10 -78
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +97 -139
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/semantic-cache-policy.d.ts +7 -1
- package/dist/core/semantic-cache-policy.d.ts.map +1 -1
- package/dist/core/semantic-cache-policy.js +8 -0
- package/dist/core/semantic-cache-policy.js.map +1 -1
- package/dist/core/session-manager.d.ts +2 -4
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +5 -6
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-manager.d.ts +1 -18
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +2 -48
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/skills.d.ts +5 -0
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +149 -36
- package/dist/core/skills.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +0 -2
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/subagent-orchestration.d.ts +73 -0
- package/dist/core/subagent-orchestration.d.ts.map +1 -0
- package/dist/core/subagent-orchestration.js +408 -0
- package/dist/core/subagent-orchestration.js.map +1 -0
- package/dist/core/system-prompt.d.ts +5 -4
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +57 -36
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/timings.d.ts +0 -4
- package/dist/core/timings.d.ts.map +1 -1
- package/dist/core/timings.js +0 -4
- package/dist/core/timings.js.map +1 -1
- package/dist/core/todo-runtime-state.d.ts +5 -0
- package/dist/core/todo-runtime-state.d.ts.map +1 -0
- package/dist/core/todo-runtime-state.js +12 -0
- package/dist/core/todo-runtime-state.js.map +1 -0
- package/dist/core/todo-state.d.ts +53 -0
- package/dist/core/todo-state.d.ts.map +1 -0
- package/dist/core/todo-state.js +87 -0
- package/dist/core/todo-state.js.map +1 -0
- package/dist/core/token-optimizer.d.ts +58 -0
- package/dist/core/token-optimizer.d.ts.map +1 -0
- package/dist/core/token-optimizer.js +179 -0
- package/dist/core/token-optimizer.js.map +1 -0
- package/dist/core/tools/bash.d.ts +8 -9
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +9 -8
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit.d.ts +3 -14
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +4 -25
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/find.d.ts +1 -4
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +1 -4
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/grep.d.ts +1 -4
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +2 -5
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/index.d.ts +2 -2
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/ls.d.ts +1 -4
- package/dist/core/tools/ls.d.ts.map +1 -1
- package/dist/core/tools/ls.js +1 -4
- package/dist/core/tools/ls.js.map +1 -1
- package/dist/core/tools/read.d.ts +2 -14
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +4 -28
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +1 -1
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +1 -1
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts +1 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -1
- package/dist/core/tools/write.d.ts +2 -4
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +4 -4
- package/dist/core/tools/write.js.map +1 -1
- package/dist/encoding/index.d.ts +6 -0
- package/dist/encoding/index.d.ts.map +1 -0
- package/dist/encoding/index.js +6 -0
- package/dist/encoding/index.js.map +1 -0
- package/dist/encoding/l4-encoder.d.ts +96 -0
- package/dist/encoding/l4-encoder.d.ts.map +1 -0
- package/dist/encoding/l4-encoder.js +474 -0
- package/dist/encoding/l4-encoder.js.map +1 -0
- package/dist/fuzzing/index.d.ts +6 -0
- package/dist/fuzzing/index.d.ts.map +1 -0
- package/dist/fuzzing/index.js +6 -0
- package/dist/fuzzing/index.js.map +1 -0
- package/dist/fuzzing/mutation-engine.d.ts +93 -0
- package/dist/fuzzing/mutation-engine.d.ts.map +1 -0
- package/dist/fuzzing/mutation-engine.js +244 -0
- package/dist/fuzzing/mutation-engine.js.map +1 -0
- package/dist/guardrails/audit-logger.d.ts +4 -0
- package/dist/guardrails/audit-logger.d.ts.map +1 -0
- package/dist/guardrails/audit-logger.js +28 -0
- package/dist/guardrails/audit-logger.js.map +1 -0
- package/dist/guardrails/evidence-system.d.ts +61 -0
- package/dist/guardrails/evidence-system.d.ts.map +1 -0
- package/dist/guardrails/evidence-system.js +302 -0
- package/dist/guardrails/evidence-system.js.map +1 -0
- package/dist/guardrails/freedomd-adapter.d.ts +16 -0
- package/dist/guardrails/freedomd-adapter.d.ts.map +1 -0
- package/dist/guardrails/freedomd-adapter.js +87 -0
- package/dist/guardrails/freedomd-adapter.js.map +1 -0
- package/dist/index.d.ts +5 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -17
- package/dist/index.js.map +1 -1
- package/dist/jailbreak-extension.d.ts +48 -0
- package/dist/jailbreak-extension.d.ts.map +1 -0
- package/dist/jailbreak-extension.js +47 -0
- package/dist/jailbreak-extension.js.map +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts +0 -37
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +6 -414
- package/dist/migrations.js.map +1 -1
- package/dist/modes/interactive/components/armin.d.ts +1 -1
- package/dist/modes/interactive/components/armin.d.ts.map +1 -1
- package/dist/modes/interactive/components/armin.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +2 -2
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +1 -1
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/bash-execution.d.ts +1 -1
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js +1 -1
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/bordered-loader.d.ts +1 -1
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -1
- package/dist/modes/interactive/components/bordered-loader.js +1 -1
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts +1 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.js +1 -1
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.js +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.d.ts +1 -1
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +1 -1
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/control-panel-box.d.ts +15 -0
- package/dist/modes/interactive/components/control-panel-box.d.ts.map +1 -0
- package/dist/modes/interactive/components/control-panel-box.js +55 -0
- package/dist/modes/interactive/components/control-panel-box.js.map +1 -0
- package/dist/modes/interactive/components/control-panel-gradient-motion.d.ts.map +1 -1
- package/dist/modes/interactive/components/control-panel-gradient-motion.js +2 -36
- package/dist/modes/interactive/components/control-panel-gradient-motion.js.map +1 -1
- package/dist/modes/interactive/components/control-panel-gradient.d.ts +1 -0
- package/dist/modes/interactive/components/control-panel-gradient.d.ts.map +1 -1
- package/dist/modes/interactive/components/control-panel-gradient.js +6 -5
- package/dist/modes/interactive/components/control-panel-gradient.js.map +1 -1
- package/dist/modes/interactive/components/control-panel-layout.d.ts +30 -0
- package/dist/modes/interactive/components/control-panel-layout.d.ts.map +1 -0
- package/dist/modes/interactive/components/control-panel-layout.js +197 -0
- package/dist/modes/interactive/components/control-panel-layout.js.map +1 -0
- package/dist/modes/interactive/components/control-panel-runtime-status.d.ts +6 -0
- package/dist/modes/interactive/components/control-panel-runtime-status.d.ts.map +1 -0
- package/dist/modes/interactive/components/control-panel-runtime-status.js +29 -0
- package/dist/modes/interactive/components/control-panel-runtime-status.js.map +1 -0
- package/dist/modes/interactive/components/control-panel.d.ts +9 -31
- package/dist/modes/interactive/components/control-panel.d.ts.map +1 -1
- package/dist/modes/interactive/components/control-panel.js +49 -168
- package/dist/modes/interactive/components/control-panel.js.map +1 -1
- package/dist/modes/interactive/components/countdown-timer.d.ts +1 -1
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -1
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js +14 -22
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +1 -1
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/daxnuts.d.ts +1 -1
- package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -1
- package/dist/modes/interactive/components/daxnuts.js.map +1 -1
- package/dist/modes/interactive/components/dynamic-border.d.ts +1 -1
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -1
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -1
- package/dist/modes/interactive/components/earendil-announcement.d.ts +1 -1
- package/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -1
- package/dist/modes/interactive/components/earendil-announcement.js +1 -1
- package/dist/modes/interactive/components/earendil-announcement.js.map +1 -1
- package/dist/modes/interactive/components/extension-editor.d.ts +1 -1
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-editor.js +1 -1
- package/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/dist/modes/interactive/components/extension-input.d.ts +1 -1
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-input.js +1 -1
- package/dist/modes/interactive/components/extension-input.js.map +1 -1
- package/dist/modes/interactive/components/extension-selector.d.ts +1 -1
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-selector.js +1 -1
- package/dist/modes/interactive/components/extension-selector.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +1 -1
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +7 -9
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/index.d.ts +0 -2
- package/dist/modes/interactive/components/index.d.ts.map +1 -1
- package/dist/modes/interactive/components/index.js +0 -2
- package/dist/modes/interactive/components/index.js.map +1 -1
- package/dist/modes/interactive/components/keybinding-hints.d.ts +1 -1
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -1
- package/dist/modes/interactive/components/keybinding-hints.js +1 -1
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +2 -2
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +2 -2
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts +13 -47
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +118 -193
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +1 -1
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +2 -2
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector-search.js +1 -1
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +1 -1
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +3 -3
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +1 -1
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/show-images-selector.d.ts +1 -1
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/show-images-selector.js +1 -1
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
- package/dist/modes/interactive/components/theme-selector.d.ts +1 -2
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/theme-selector.js +2 -11
- package/dist/modes/interactive/components/theme-selector.js.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts +8 -7
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +48 -7
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/components/todo-checklist.d.ts +31 -0
- package/dist/modes/interactive/components/todo-checklist.d.ts.map +1 -0
- package/dist/modes/interactive/components/todo-checklist.js +121 -0
- package/dist/modes/interactive/components/todo-checklist.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +1 -1
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector.d.ts +1 -1
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector.js +1 -1
- package/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message-selector.d.ts +1 -1
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message-selector.js +1 -1
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message.d.ts +1 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +1 -1
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.js +1 -1
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +3 -8
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +80 -232
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/omk-control-grid-dark.json +65 -77
- package/dist/modes/interactive/theme/omk-neon-control.json +90 -0
- package/dist/modes/interactive/theme/rust-forge.json +14 -24
- package/dist/modes/interactive/theme/theme.d.ts +1 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +25 -45
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/print-mode.d.ts +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +2 -2
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +0 -4
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +2 -2
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/modules/index.d.ts +8 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +7 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/lrl-bypass.d.ts +40 -0
- package/dist/modules/lrl-bypass.d.ts.map +1 -0
- package/dist/modules/lrl-bypass.js +84 -0
- package/dist/modules/lrl-bypass.js.map +1 -0
- package/dist/modules/lrl-deps.d.ts +38 -0
- package/dist/modules/lrl-deps.d.ts.map +1 -0
- package/dist/modules/lrl-deps.js +128 -0
- package/dist/modules/lrl-deps.js.map +1 -0
- package/dist/multiturn/easl-chain.d.ts +113 -0
- package/dist/multiturn/easl-chain.d.ts.map +1 -0
- package/dist/multiturn/easl-chain.js +351 -0
- package/dist/multiturn/easl-chain.js.map +1 -0
- package/dist/multiturn/index.d.ts +6 -0
- package/dist/multiturn/index.d.ts.map +1 -0
- package/dist/multiturn/index.js +6 -0
- package/dist/multiturn/index.js.map +1 -0
- package/dist/orchestration/lane-grant-auditor.d.ts +4 -0
- package/dist/orchestration/lane-grant-auditor.d.ts.map +1 -0
- package/dist/orchestration/lane-grant-auditor.js +87 -0
- package/dist/orchestration/lane-grant-auditor.js.map +1 -0
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +48 -113
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/routing/fallback-router.d.ts +123 -0
- package/dist/routing/fallback-router.d.ts.map +1 -0
- package/dist/routing/fallback-router.js +355 -0
- package/dist/routing/fallback-router.js.map +1 -0
- package/dist/routing/index.d.ts +6 -0
- package/dist/routing/index.d.ts.map +1 -0
- package/dist/routing/index.js +6 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/types/evidence.d.ts +117 -0
- package/dist/types/evidence.d.ts.map +1 -0
- package/dist/types/evidence.js +8 -0
- package/dist/types/evidence.js.map +1 -0
- package/dist/types/guardrails.d.ts +61 -0
- package/dist/types/guardrails.d.ts.map +1 -0
- package/dist/types/guardrails.js +9 -0
- package/dist/types/guardrails.js.map +1 -0
- package/dist/types/jailbreak.d.ts +246 -0
- package/dist/types/jailbreak.d.ts.map +1 -0
- package/dist/types/jailbreak.js +8 -0
- package/dist/types/jailbreak.js.map +1 -0
- package/dist/types/lane-grant.d.ts +58 -0
- package/dist/types/lane-grant.d.ts.map +1 -0
- package/dist/types/lane-grant.js +9 -0
- package/dist/types/lane-grant.js.map +1 -0
- package/dist/utils/jailbreak/common.d.ts +63 -0
- package/dist/utils/jailbreak/common.d.ts.map +1 -0
- package/dist/utils/jailbreak/common.js +130 -0
- package/dist/utils/jailbreak/common.js.map +1 -0
- package/dist/utils/jailbreak/index.d.ts +7 -0
- package/dist/utils/jailbreak/index.d.ts.map +1 -0
- package/dist/utils/jailbreak/index.js +7 -0
- package/dist/utils/jailbreak/index.js.map +1 -0
- package/dist/utils/windows-self-update.d.ts.map +1 -1
- package/dist/utils/windows-self-update.js +1 -1
- package/dist/utils/windows-self-update.js.map +1 -1
- package/docs/compaction.md +8 -21
- package/docs/custom-provider.md +2 -2
- package/docs/development.md +1 -1
- package/docs/extensions.md +11 -11
- package/docs/loadout-domains/README.md +70 -0
- package/docs/loadout-domains/ai-agent-ops.md +94 -0
- package/docs/loadout-domains/backend-api.md +116 -0
- package/docs/loadout-domains/data-science.md +100 -0
- package/docs/loadout-domains/devops-infra.md +85 -0
- package/docs/loadout-domains/docs-writing.md +92 -0
- package/docs/loadout-domains/frontend-ui.md +128 -0
- package/docs/loadout-domains/general.md +62 -0
- package/docs/loadout-domains/mobile.md +84 -0
- package/docs/loadout-domains/qa-testing.md +87 -0
- package/docs/loadout-domains/research.md +80 -0
- package/docs/loadout-domains/security-audit.md +97 -0
- package/docs/packages.md +7 -48
- package/docs/prompt-templates.md +0 -2
- package/docs/providers.md +12 -0
- package/docs/sdk.md +3 -3
- package/docs/security.md +145 -0
- package/docs/session-format.md +1 -1
- package/docs/themes.md +8 -7
- package/docs/tui.md +14 -14
- package/docs/usage.md +6 -16
- package/examples/extensions/README.md +2 -2
- package/examples/extensions/aside-computer-use/README.md +114 -0
- package/examples/extensions/aside-computer-use/action-scoring.ts +122 -0
- package/examples/extensions/aside-computer-use/assertions.ts +380 -0
- package/examples/extensions/aside-computer-use/controller.ts +491 -0
- package/examples/extensions/aside-computer-use/evidence.ts +229 -0
- package/examples/extensions/aside-computer-use/golden-trace.ts +141 -0
- package/examples/extensions/aside-computer-use/index.ts +76 -0
- package/examples/extensions/aside-computer-use/mcp-client.ts +381 -0
- package/examples/extensions/aside-computer-use/observation-snapshot.ts +121 -0
- package/examples/extensions/aside-computer-use/package.json +16 -0
- package/examples/extensions/aside-computer-use/policy.ts +257 -0
- package/examples/extensions/aside-computer-use/risk-authorize.ts +200 -0
- package/examples/extensions/aside-computer-use/risk-classifier.ts +205 -0
- package/examples/extensions/aside-computer-use/schema-fingerprint.ts +80 -0
- package/examples/extensions/aside-computer-use/session-binding.ts +161 -0
- package/examples/extensions/aside-computer-use/tools.ts +449 -0
- package/examples/extensions/aside-computer-use/types.ts +217 -0
- package/examples/extensions/aside-computer-use/url-origin.ts +132 -0
- package/examples/extensions/bash-spawn-hook.ts +1 -1
- package/examples/extensions/border-status-editor.ts +2 -2
- package/examples/extensions/built-in-tool-renderer.ts +1 -1
- package/examples/extensions/custom-compaction.ts +1 -1
- package/examples/extensions/custom-footer.ts +2 -2
- package/examples/extensions/custom-header.ts +8 -8
- package/examples/extensions/custom-provider-anthropic/index.ts +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +1 -1
- package/examples/extensions/doom-overlay/README.md +1 -2
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +4 -4
- package/examples/extensions/doom-overlay/doom/doomgeneric_omk.c +72 -0
- package/examples/extensions/doom-overlay/doom-component.ts +2 -2
- package/examples/extensions/doom-overlay/doom-keys.ts +1 -1
- package/examples/extensions/git-merge-and-resolve.ts +1 -1
- package/examples/extensions/github-issue-autocomplete.ts +1 -6
- package/examples/extensions/gondolin/index.ts +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/handoff.ts +2 -2
- package/examples/extensions/hello.ts +1 -1
- package/examples/extensions/inline-bash.ts +1 -1
- package/examples/extensions/input-transform-streaming.ts +1 -1
- package/examples/extensions/input-transform.ts +2 -2
- package/examples/extensions/mac-system-theme.ts +1 -1
- package/examples/extensions/message-renderer.ts +1 -1
- package/examples/extensions/minimal-mode.ts +1 -1
- package/examples/extensions/modal-editor.ts +1 -1
- package/examples/extensions/overlay-qa-tests.ts +7 -7
- package/examples/extensions/overlay-test.ts +1 -1
- package/examples/extensions/plan-mode/index.ts +3 -3
- package/examples/extensions/preset.ts +4 -4
- package/examples/extensions/provider-payload.ts +6 -3
- package/examples/extensions/qna.ts +1 -1
- package/examples/extensions/question.ts +1 -1
- package/examples/extensions/questionnaire.ts +1 -1
- package/examples/extensions/rpc-demo.ts +1 -1
- package/examples/extensions/sandbox/index.ts +2 -2
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/shutdown-command.ts +5 -5
- package/examples/extensions/snake.ts +1 -1
- package/examples/extensions/space-invaders.ts +1 -1
- package/examples/extensions/structured-output.ts +1 -1
- package/examples/extensions/subagent/agents.ts +2 -2
- package/examples/extensions/subagent/index.ts +19 -51
- package/examples/extensions/summarize.ts +2 -2
- package/examples/extensions/tic-tac-toe.ts +2 -2
- package/examples/extensions/todo.ts +2 -2
- package/examples/extensions/tool-override.ts +1 -1
- package/examples/extensions/tools.ts +1 -1
- package/examples/extensions/truncated-tool.ts +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/extensions/working-indicator.ts +3 -3
- package/examples/rpc-extension-ui.ts +1 -9
- package/examples/sdk/02-custom-model.ts +1 -1
- package/examples/sdk/07-context-files.ts +0 -2
- package/examples/sdk/12-full-control.ts +1 -1
- package/examples/sdk/README.md +1 -1
- package/npm-shrinkwrap.json +1805 -0
- package/package.json +10 -32
- package/dist/core/compaction/pruner-policy.d.ts +0 -84
- package/dist/core/compaction/pruner-policy.d.ts.map +0 -1
- package/dist/core/compaction/pruner-policy.js +0 -273
- package/dist/core/compaction/pruner-policy.js.map +0 -1
- package/dist/core/context-graph-identity-resolution.d.ts +0 -114
- package/dist/core/context-graph-identity-resolution.d.ts.map +0 -1
- package/dist/core/context-graph-identity-resolution.js +0 -127
- package/dist/core/context-graph-identity-resolution.js.map +0 -1
- package/dist/core/context-graph-memory-store.d.ts +0 -153
- package/dist/core/context-graph-memory-store.d.ts.map +0 -1
- package/dist/core/context-graph-memory-store.js +0 -377
- package/dist/core/context-graph-memory-store.js.map +0 -1
- package/dist/core/context-graph-ontology-generation.d.ts +0 -104
- package/dist/core/context-graph-ontology-generation.d.ts.map +0 -1
- package/dist/core/context-graph-ontology-generation.js +0 -135
- package/dist/core/context-graph-ontology-generation.js.map +0 -1
- package/dist/core/context-graph-ontology-registry.d.ts +0 -766
- package/dist/core/context-graph-ontology-registry.d.ts.map +0 -1
- package/dist/core/context-graph-ontology-registry.js +0 -1133
- package/dist/core/context-graph-ontology-registry.js.map +0 -1
- package/dist/core/context-graph-policy.d.ts +0 -68
- package/dist/core/context-graph-policy.d.ts.map +0 -1
- package/dist/core/context-graph-policy.js +0 -221
- package/dist/core/context-graph-policy.js.map +0 -1
- package/dist/core/context-graph-reasoning.d.ts +0 -130
- package/dist/core/context-graph-reasoning.d.ts.map +0 -1
- package/dist/core/context-graph-reasoning.js +0 -442
- package/dist/core/context-graph-reasoning.js.map +0 -1
- package/dist/core/context-graph-retrieval.d.ts +0 -120
- package/dist/core/context-graph-retrieval.d.ts.map +0 -1
- package/dist/core/context-graph-retrieval.js +0 -288
- package/dist/core/context-graph-retrieval.js.map +0 -1
- package/dist/core/contract-verification.d.ts +0 -78
- package/dist/core/contract-verification.d.ts.map +0 -1
- package/dist/core/contract-verification.js +0 -110
- package/dist/core/contract-verification.js.map +0 -1
- package/dist/core/freedom/banner.d.ts +0 -14
- package/dist/core/freedom/banner.d.ts.map +0 -1
- package/dist/core/freedom/banner.js +0 -22
- package/dist/core/freedom/banner.js.map +0 -1
- package/dist/core/freedom/config.d.ts +0 -27
- package/dist/core/freedom/config.d.ts.map +0 -1
- package/dist/core/freedom/config.js +0 -216
- package/dist/core/freedom/config.js.map +0 -1
- package/dist/core/freedom/index.d.ts +0 -23
- package/dist/core/freedom/index.d.ts.map +0 -1
- package/dist/core/freedom/index.js +0 -19
- package/dist/core/freedom/index.js.map +0 -1
- package/dist/core/freedom/policy.d.ts +0 -42
- package/dist/core/freedom/policy.d.ts.map +0 -1
- package/dist/core/freedom/policy.js +0 -47
- package/dist/core/freedom/policy.js.map +0 -1
- package/dist/core/freedom/safety-floor.d.ts +0 -73
- package/dist/core/freedom/safety-floor.d.ts.map +0 -1
- package/dist/core/freedom/safety-floor.js +0 -275
- package/dist/core/freedom/safety-floor.js.map +0 -1
- package/dist/core/harness-control-events.d.ts +0 -91
- package/dist/core/harness-control-events.d.ts.map +0 -1
- package/dist/core/harness-control-events.js +0 -514
- package/dist/core/harness-control-events.js.map +0 -1
- package/dist/core/harness-control-replay.d.ts +0 -31
- package/dist/core/harness-control-replay.d.ts.map +0 -1
- package/dist/core/harness-control-replay.js +0 -187
- package/dist/core/harness-control-replay.js.map +0 -1
- package/dist/core/headroom-middleware.d.ts +0 -35
- package/dist/core/headroom-middleware.d.ts.map +0 -1
- package/dist/core/headroom-middleware.js +0 -166
- package/dist/core/headroom-middleware.js.map +0 -1
- package/dist/core/lean-context-middleware.d.ts +0 -12
- package/dist/core/lean-context-middleware.d.ts.map +0 -1
- package/dist/core/lean-context-middleware.js +0 -87
- package/dist/core/lean-context-middleware.js.map +0 -1
- package/dist/core/lean-context-policy.d.ts +0 -45
- package/dist/core/lean-context-policy.d.ts.map +0 -1
- package/dist/core/lean-context-policy.js +0 -108
- package/dist/core/lean-context-policy.js.map +0 -1
- package/dist/core/native-adoption-benchmark.d.ts +0 -166
- package/dist/core/native-adoption-benchmark.d.ts.map +0 -1
- package/dist/core/native-adoption-benchmark.js +0 -624
- package/dist/core/native-adoption-benchmark.js.map +0 -1
- package/dist/core/observability-trace.d.ts +0 -80
- package/dist/core/observability-trace.d.ts.map +0 -1
- package/dist/core/observability-trace.js +0 -140
- package/dist/core/observability-trace.js.map +0 -1
- package/dist/core/orchestration/checkpoint.d.ts +0 -83
- package/dist/core/orchestration/checkpoint.d.ts.map +0 -1
- package/dist/core/orchestration/checkpoint.js +0 -152
- package/dist/core/orchestration/checkpoint.js.map +0 -1
- package/dist/core/orchestration/errors.d.ts +0 -74
- package/dist/core/orchestration/errors.d.ts.map +0 -1
- package/dist/core/orchestration/errors.js +0 -52
- package/dist/core/orchestration/errors.js.map +0 -1
- package/dist/core/orchestration/merge-queue.d.ts +0 -121
- package/dist/core/orchestration/merge-queue.d.ts.map +0 -1
- package/dist/core/orchestration/merge-queue.js +0 -149
- package/dist/core/orchestration/merge-queue.js.map +0 -1
- package/dist/core/orchestration/recovery.d.ts +0 -106
- package/dist/core/orchestration/recovery.d.ts.map +0 -1
- package/dist/core/orchestration/recovery.js +0 -110
- package/dist/core/orchestration/recovery.js.map +0 -1
- package/dist/core/orchestration/replay-ledger.d.ts +0 -76
- package/dist/core/orchestration/replay-ledger.d.ts.map +0 -1
- package/dist/core/orchestration/replay-ledger.js +0 -395
- package/dist/core/orchestration/replay-ledger.js.map +0 -1
- package/dist/core/orchestration/scheduler-state.d.ts +0 -78
- package/dist/core/orchestration/scheduler-state.d.ts.map +0 -1
- package/dist/core/orchestration/scheduler-state.js +0 -185
- package/dist/core/orchestration/scheduler-state.js.map +0 -1
- package/dist/core/orchestration/scheduler-store.d.ts +0 -309
- package/dist/core/orchestration/scheduler-store.d.ts.map +0 -1
- package/dist/core/orchestration/scheduler-store.js +0 -368
- package/dist/core/orchestration/scheduler-store.js.map +0 -1
- package/dist/core/orchestration/sqlite-scheduler-store.d.ts +0 -57
- package/dist/core/orchestration/sqlite-scheduler-store.d.ts.map +0 -1
- package/dist/core/orchestration/sqlite-scheduler-store.js +0 -528
- package/dist/core/orchestration/sqlite-scheduler-store.js.map +0 -1
- package/dist/core/orchestration/transaction-coordinator.d.ts +0 -217
- package/dist/core/orchestration/transaction-coordinator.d.ts.map +0 -1
- package/dist/core/orchestration/transaction-coordinator.js +0 -281
- package/dist/core/orchestration/transaction-coordinator.js.map +0 -1
- package/dist/core/orchestration/verification-contract.d.ts +0 -197
- package/dist/core/orchestration/verification-contract.d.ts.map +0 -1
- package/dist/core/orchestration/verification-contract.js +0 -145
- package/dist/core/orchestration/verification-contract.js.map +0 -1
- package/dist/core/package-composition.d.ts +0 -68
- package/dist/core/package-composition.d.ts.map +0 -1
- package/dist/core/package-composition.js +0 -304
- package/dist/core/package-composition.js.map +0 -1
- package/dist/core/package-trial-runtime.d.ts +0 -75
- package/dist/core/package-trial-runtime.d.ts.map +0 -1
- package/dist/core/package-trial-runtime.js +0 -73
- package/dist/core/package-trial-runtime.js.map +0 -1
- package/dist/core/package-trial-sandbox.d.ts +0 -27
- package/dist/core/package-trial-sandbox.d.ts.map +0 -1
- package/dist/core/package-trial-sandbox.js +0 -102
- package/dist/core/package-trial-sandbox.js.map +0 -1
- package/dist/core/policy-overlays-runtime.d.ts +0 -141
- package/dist/core/policy-overlays-runtime.d.ts.map +0 -1
- package/dist/core/policy-overlays-runtime.js +0 -720
- package/dist/core/policy-overlays-runtime.js.map +0 -1
- package/dist/core/read-anchor-registry.d.ts +0 -27
- package/dist/core/read-anchor-registry.d.ts.map +0 -1
- package/dist/core/read-anchor-registry.js +0 -103
- package/dist/core/read-anchor-registry.js.map +0 -1
- package/dist/core/read-content-cache.d.ts +0 -22
- package/dist/core/read-content-cache.d.ts.map +0 -1
- package/dist/core/read-content-cache.js +0 -79
- package/dist/core/read-content-cache.js.map +0 -1
- package/dist/core/session-digest.d.ts +0 -57
- package/dist/core/session-digest.d.ts.map +0 -1
- package/dist/core/session-digest.js +0 -193
- package/dist/core/session-digest.js.map +0 -1
- package/dist/core/spec-kit/compiler.d.ts +0 -67
- package/dist/core/spec-kit/compiler.d.ts.map +0 -1
- package/dist/core/spec-kit/compiler.js +0 -268
- package/dist/core/spec-kit/compiler.js.map +0 -1
- package/dist/core/transaction-coordinator.d.ts +0 -30
- package/dist/core/transaction-coordinator.d.ts.map +0 -1
- package/dist/core/transaction-coordinator.js +0 -173
- package/dist/core/transaction-coordinator.js.map +0 -1
- package/dist/modes/interactive/components/mcp-selector.d.ts +0 -30
- package/dist/modes/interactive/components/mcp-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/mcp-selector.js +0 -155
- package/dist/modes/interactive/components/mcp-selector.js.map +0 -1
- package/dist/modes/interactive/components/model-selector-state.d.ts +0 -101
- package/dist/modes/interactive/components/model-selector-state.d.ts.map +0 -1
- package/dist/modes/interactive/components/model-selector-state.js +0 -261
- package/dist/modes/interactive/components/model-selector-state.js.map +0 -1
- package/dist/modes/interactive/components/skills-selector.d.ts +0 -32
- package/dist/modes/interactive/components/skills-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/skills-selector.js +0 -130
- package/dist/modes/interactive/components/skills-selector.js.map +0 -1
- package/dist/modes/interactive/theme/omk-blackboard.json +0 -91
- package/dist/modes/interactive/theme/omk-freedom-grid.json +0 -91
- package/dist/modes/interactive/theme/omk-neon-ops.json +0 -90
- package/dist/modes/interactive/theme/omk-slate-light.json +0 -91
- package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +0 -72
- package/node_modules/@earendil-works/omk-agent-core/README.md +0 -488
- package/node_modules/@earendil-works/omk-agent-core/dist/agent-loop.d.ts +0 -24
- package/node_modules/@earendil-works/omk-agent-core/dist/agent-loop.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/agent-loop.js +0 -553
- package/node_modules/@earendil-works/omk-agent-core/dist/agent-loop.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/agent.d.ts +0 -118
- package/node_modules/@earendil-works/omk-agent-core/dist/agent.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/agent.js +0 -402
- package/node_modules/@earendil-works/omk-agent-core/dist/agent.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/agent-harness.d.ts +0 -95
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/agent-harness.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/agent-harness.js +0 -996
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/agent-harness.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/branch-summarization.d.ts +0 -53
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/branch-summarization.js +0 -175
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/branch-summarization.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/compaction.d.ts +0 -117
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/compaction.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/compaction.js +0 -568
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/compaction.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/utils.d.ts +0 -25
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/utils.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/utils.js +0 -131
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/compaction/utils.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/env/nodejs.d.ts +0 -51
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/env/nodejs.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/env/nodejs.js +0 -510
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/env/nodejs.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/messages.d.ts +0 -51
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/messages.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/messages.js +0 -102
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/messages.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/prompt-templates.d.ts +0 -48
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/prompt-templates.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/prompt-templates.js +0 -230
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/prompt-templates.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/jsonl-repo.d.ts +0 -26
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/jsonl-repo.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/jsonl-repo.js +0 -101
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/jsonl-repo.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/jsonl-storage.d.ts +0 -36
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/jsonl-storage.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/jsonl-storage.js +0 -273
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/jsonl-storage.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/memory-repo.d.ts +0 -18
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/memory-repo.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/memory-repo.js +0 -42
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/memory-repo.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/memory-storage.d.ts +0 -25
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/memory-storage.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/memory-storage.js +0 -114
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/memory-storage.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/repo-utils.d.ts +0 -11
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/repo-utils.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/repo-utils.js +0 -39
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/repo-utils.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/session.d.ts +0 -33
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/session.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/session.js +0 -210
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/session.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/uuid.d.ts +0 -2
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/uuid.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/uuid.js +0 -50
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/session/uuid.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/skills.d.ts +0 -44
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/skills.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/skills.js +0 -311
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/skills.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/system-prompt.d.ts +0 -3
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/system-prompt.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/system-prompt.js +0 -30
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/system-prompt.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/types.d.ts +0 -616
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/types.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/types.js +0 -94
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/types.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/utils/shell-output.d.ts +0 -14
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/utils/shell-output.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/utils/shell-output.js +0 -126
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/utils/shell-output.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/utils/truncate.d.ts +0 -70
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/utils/truncate.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/utils/truncate.js +0 -297
- package/node_modules/@earendil-works/omk-agent-core/dist/harness/utils/truncate.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/index.d.ts +0 -20
- package/node_modules/@earendil-works/omk-agent-core/dist/index.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/index.js +0 -25
- package/node_modules/@earendil-works/omk-agent-core/dist/index.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/node.d.ts +0 -3
- package/node_modules/@earendil-works/omk-agent-core/dist/node.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/node.js +0 -3
- package/node_modules/@earendil-works/omk-agent-core/dist/node.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/proxy.d.ts +0 -69
- package/node_modules/@earendil-works/omk-agent-core/dist/proxy.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/proxy.js +0 -278
- package/node_modules/@earendil-works/omk-agent-core/dist/proxy.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/types.d.ts +0 -393
- package/node_modules/@earendil-works/omk-agent-core/dist/types.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/dist/types.js +0 -2
- package/node_modules/@earendil-works/omk-agent-core/dist/types.js.map +0 -1
- package/node_modules/@earendil-works/omk-agent-core/package.json +0 -60
- package/node_modules/@earendil-works/omk-ai/README.md +0 -1389
- package/node_modules/@earendil-works/omk-ai/dist/api-registry.d.ts +0 -20
- package/node_modules/@earendil-works/omk-ai/dist/api-registry.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/api-registry.js +0 -44
- package/node_modules/@earendil-works/omk-ai/dist/api-registry.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/bedrock-provider.d.ts +0 -5
- package/node_modules/@earendil-works/omk-ai/dist/bedrock-provider.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/bedrock-provider.js +0 -6
- package/node_modules/@earendil-works/omk-ai/dist/bedrock-provider.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/cli.d.ts +0 -3
- package/node_modules/@earendil-works/omk-ai/dist/cli.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/cli.js +0 -130
- package/node_modules/@earendil-works/omk-ai/dist/cli.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/env-api-keys.d.ts +0 -20
- package/node_modules/@earendil-works/omk-ai/dist/env-api-keys.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/env-api-keys.js +0 -199
- package/node_modules/@earendil-works/omk-ai/dist/env-api-keys.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/image-models.d.ts +0 -10
- package/node_modules/@earendil-works/omk-ai/dist/image-models.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/image-models.generated.d.ts +0 -515
- package/node_modules/@earendil-works/omk-ai/dist/image-models.generated.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/image-models.generated.js +0 -517
- package/node_modules/@earendil-works/omk-ai/dist/image-models.generated.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/image-models.js +0 -23
- package/node_modules/@earendil-works/omk-ai/dist/image-models.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/images-api-registry.d.ts +0 -14
- package/node_modules/@earendil-works/omk-ai/dist/images-api-registry.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/images-api-registry.js +0 -22
- package/node_modules/@earendil-works/omk-ai/dist/images-api-registry.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/images.d.ts +0 -4
- package/node_modules/@earendil-works/omk-ai/dist/images.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/images.js +0 -16
- package/node_modules/@earendil-works/omk-ai/dist/images.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/index.d.ts +0 -33
- package/node_modules/@earendil-works/omk-ai/dist/index.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/index.js +0 -21
- package/node_modules/@earendil-works/omk-ai/dist/index.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/models.d.ts +0 -18
- package/node_modules/@earendil-works/omk-ai/dist/models.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/models.generated.d.ts +0 -18762
- package/node_modules/@earendil-works/omk-ai/dist/models.generated.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/models.generated.js +0 -17197
- package/node_modules/@earendil-works/omk-ai/dist/models.generated.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/models.js +0 -78
- package/node_modules/@earendil-works/omk-ai/dist/models.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/oauth.d.ts +0 -2
- package/node_modules/@earendil-works/omk-ai/dist/oauth.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/oauth.js +0 -2
- package/node_modules/@earendil-works/omk-ai/dist/oauth.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/provider-network.d.ts +0 -39
- package/node_modules/@earendil-works/omk-ai/dist/provider-network.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/provider-network.js +0 -170
- package/node_modules/@earendil-works/omk-ai/dist/provider-network.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/amazon-bedrock.d.ts +0 -38
- package/node_modules/@earendil-works/omk-ai/dist/providers/amazon-bedrock.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/amazon-bedrock.js +0 -826
- package/node_modules/@earendil-works/omk-ai/dist/providers/amazon-bedrock.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/anthropic.d.ts +0 -77
- package/node_modules/@earendil-works/omk-ai/dist/providers/anthropic.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/anthropic.js +0 -1123
- package/node_modules/@earendil-works/omk-ai/dist/providers/anthropic.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/azure-openai-responses.d.ts +0 -15
- package/node_modules/@earendil-works/omk-ai/dist/providers/azure-openai-responses.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/azure-openai-responses.js +0 -221
- package/node_modules/@earendil-works/omk-ai/dist/providers/azure-openai-responses.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/cloudflare.d.ts +0 -13
- package/node_modules/@earendil-works/omk-ai/dist/providers/cloudflare.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/cloudflare.js +0 -26
- package/node_modules/@earendil-works/omk-ai/dist/providers/cloudflare.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/faux.d.ts +0 -56
- package/node_modules/@earendil-works/omk-ai/dist/providers/faux.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/faux.js +0 -368
- package/node_modules/@earendil-works/omk-ai/dist/providers/faux.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/github-copilot-headers.d.ts +0 -8
- package/node_modules/@earendil-works/omk-ai/dist/providers/github-copilot-headers.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/github-copilot-headers.js +0 -29
- package/node_modules/@earendil-works/omk-ai/dist/providers/github-copilot-headers.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/google-shared.d.ts +0 -70
- package/node_modules/@earendil-works/omk-ai/dist/providers/google-shared.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/google-shared.js +0 -331
- package/node_modules/@earendil-works/omk-ai/dist/providers/google-shared.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/google-vertex.d.ts +0 -15
- package/node_modules/@earendil-works/omk-ai/dist/providers/google-vertex.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/google-vertex.js +0 -442
- package/node_modules/@earendil-works/omk-ai/dist/providers/google-vertex.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/google.d.ts +0 -13
- package/node_modules/@earendil-works/omk-ai/dist/providers/google.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/google.js +0 -402
- package/node_modules/@earendil-works/omk-ai/dist/providers/google.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/images/openrouter.d.ts +0 -3
- package/node_modules/@earendil-works/omk-ai/dist/providers/images/openrouter.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/images/openrouter.js +0 -128
- package/node_modules/@earendil-works/omk-ai/dist/providers/images/openrouter.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/images/register-builtins.d.ts +0 -4
- package/node_modules/@earendil-works/omk-ai/dist/providers/images/register-builtins.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/images/register-builtins.js +0 -34
- package/node_modules/@earendil-works/omk-ai/dist/providers/images/register-builtins.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/mistral.d.ts +0 -25
- package/node_modules/@earendil-works/omk-ai/dist/providers/mistral.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/mistral.js +0 -534
- package/node_modules/@earendil-works/omk-ai/dist/providers/mistral.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-codex-responses.d.ts +0 -30
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-codex-responses.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-codex-responses.js +0 -1171
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-codex-responses.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-completions.d.ts +0 -19
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-completions.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-completions.js +0 -977
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-completions.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-prompt-cache.d.ts +0 -11
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-prompt-cache.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-prompt-cache.js +0 -22
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-prompt-cache.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-responses-shared.d.ts +0 -18
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-responses-shared.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-responses-shared.js +0 -496
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-responses-shared.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-responses.d.ts +0 -13
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-responses.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-responses.js +0 -233
- package/node_modules/@earendil-works/omk-ai/dist/providers/openai-responses.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/register-builtins.d.ts +0 -35
- package/node_modules/@earendil-works/omk-ai/dist/providers/register-builtins.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/register-builtins.js +0 -254
- package/node_modules/@earendil-works/omk-ai/dist/providers/register-builtins.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/simple-options.d.ts +0 -8
- package/node_modules/@earendil-works/omk-ai/dist/providers/simple-options.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/simple-options.js +0 -42
- package/node_modules/@earendil-works/omk-ai/dist/providers/simple-options.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/tool-schema.d.ts +0 -13
- package/node_modules/@earendil-works/omk-ai/dist/providers/tool-schema.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/tool-schema.js +0 -82
- package/node_modules/@earendil-works/omk-ai/dist/providers/tool-schema.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/transform-messages.d.ts +0 -8
- package/node_modules/@earendil-works/omk-ai/dist/providers/transform-messages.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/providers/transform-messages.js +0 -184
- package/node_modules/@earendil-works/omk-ai/dist/providers/transform-messages.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/session-resources.d.ts +0 -4
- package/node_modules/@earendil-works/omk-ai/dist/session-resources.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/session-resources.js +0 -22
- package/node_modules/@earendil-works/omk-ai/dist/session-resources.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/stream.d.ts +0 -8
- package/node_modules/@earendil-works/omk-ai/dist/stream.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/stream.js +0 -77
- package/node_modules/@earendil-works/omk-ai/dist/stream.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/types.d.ts +0 -570
- package/node_modules/@earendil-works/omk-ai/dist/types.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/types.js +0 -2
- package/node_modules/@earendil-works/omk-ai/dist/types.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/abort-signals.d.ts +0 -6
- package/node_modules/@earendil-works/omk-ai/dist/utils/abort-signals.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/abort-signals.js +0 -34
- package/node_modules/@earendil-works/omk-ai/dist/utils/abort-signals.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/diagnostics.d.ts +0 -19
- package/node_modules/@earendil-works/omk-ai/dist/utils/diagnostics.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/diagnostics.js +0 -25
- package/node_modules/@earendil-works/omk-ai/dist/utils/diagnostics.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/event-stream.d.ts +0 -21
- package/node_modules/@earendil-works/omk-ai/dist/utils/event-stream.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/event-stream.js +0 -81
- package/node_modules/@earendil-works/omk-ai/dist/utils/event-stream.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/hash.d.ts +0 -3
- package/node_modules/@earendil-works/omk-ai/dist/utils/hash.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/hash.js +0 -14
- package/node_modules/@earendil-works/omk-ai/dist/utils/hash.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/headers.d.ts +0 -2
- package/node_modules/@earendil-works/omk-ai/dist/utils/headers.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/headers.js +0 -8
- package/node_modules/@earendil-works/omk-ai/dist/utils/headers.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/json-parse.d.ts +0 -16
- package/node_modules/@earendil-works/omk-ai/dist/utils/json-parse.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/json-parse.js +0 -113
- package/node_modules/@earendil-works/omk-ai/dist/utils/json-parse.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/node-http-proxy.d.ts +0 -10
- package/node_modules/@earendil-works/omk-ai/dist/utils/node-http-proxy.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/node-http-proxy.js +0 -97
- package/node_modules/@earendil-works/omk-ai/dist/utils/node-http-proxy.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/anthropic.d.ts +0 -25
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/anthropic.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/anthropic.js +0 -335
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/anthropic.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/device-code.d.ts +0 -21
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/device-code.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/device-code.js +0 -56
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/device-code.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/github-copilot.d.ts +0 -30
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/github-copilot.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/github-copilot.js +0 -280
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/github-copilot.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/index.d.ts +0 -58
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/index.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/index.js +0 -122
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/index.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/oauth-page.d.ts +0 -3
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/oauth-page.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/oauth-page.js +0 -105
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/oauth-page.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/openai-codex.d.ts +0 -43
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/openai-codex.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/openai-codex.js +0 -487
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/openai-codex.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/pkce.d.ts +0 -13
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/pkce.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/pkce.js +0 -31
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/pkce.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/types.d.ts +0 -64
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/types.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/types.js +0 -2
- package/node_modules/@earendil-works/omk-ai/dist/utils/oauth/types.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/overflow.d.ts +0 -57
- package/node_modules/@earendil-works/omk-ai/dist/utils/overflow.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/overflow.js +0 -154
- package/node_modules/@earendil-works/omk-ai/dist/utils/overflow.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/sanitize-unicode.d.ts +0 -22
- package/node_modules/@earendil-works/omk-ai/dist/utils/sanitize-unicode.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/sanitize-unicode.js +0 -26
- package/node_modules/@earendil-works/omk-ai/dist/utils/sanitize-unicode.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/typebox-helpers.d.ts +0 -17
- package/node_modules/@earendil-works/omk-ai/dist/utils/typebox-helpers.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/typebox-helpers.js +0 -21
- package/node_modules/@earendil-works/omk-ai/dist/utils/typebox-helpers.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/validation.d.ts +0 -18
- package/node_modules/@earendil-works/omk-ai/dist/utils/validation.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-ai/dist/utils/validation.js +0 -281
- package/node_modules/@earendil-works/omk-ai/dist/utils/validation.js.map +0 -1
- package/node_modules/@earendil-works/omk-ai/package.json +0 -106
- package/node_modules/@earendil-works/omk-tui/README.md +0 -791
- package/node_modules/@earendil-works/omk-tui/dist/autocomplete.d.ts +0 -54
- package/node_modules/@earendil-works/omk-tui/dist/autocomplete.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/autocomplete.js +0 -632
- package/node_modules/@earendil-works/omk-tui/dist/autocomplete.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/box.d.ts +0 -22
- package/node_modules/@earendil-works/omk-tui/dist/components/box.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/box.js +0 -104
- package/node_modules/@earendil-works/omk-tui/dist/components/box.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/cancellable-loader.d.ts +0 -22
- package/node_modules/@earendil-works/omk-tui/dist/components/cancellable-loader.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/cancellable-loader.js +0 -35
- package/node_modules/@earendil-works/omk-tui/dist/components/cancellable-loader.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/editor.d.ts +0 -249
- package/node_modules/@earendil-works/omk-tui/dist/components/editor.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/editor.js +0 -1857
- package/node_modules/@earendil-works/omk-tui/dist/components/editor.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/image.d.ts +0 -28
- package/node_modules/@earendil-works/omk-tui/dist/components/image.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/image.js +0 -89
- package/node_modules/@earendil-works/omk-tui/dist/components/image.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/input.d.ts +0 -37
- package/node_modules/@earendil-works/omk-tui/dist/components/input.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/input.js +0 -378
- package/node_modules/@earendil-works/omk-tui/dist/components/input.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/loader.d.ts +0 -31
- package/node_modules/@earendil-works/omk-tui/dist/components/loader.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/loader.js +0 -69
- package/node_modules/@earendil-works/omk-tui/dist/components/loader.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/markdown.d.ts +0 -96
- package/node_modules/@earendil-works/omk-tui/dist/components/markdown.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/markdown.js +0 -644
- package/node_modules/@earendil-works/omk-tui/dist/components/markdown.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/select-list.d.ts +0 -50
- package/node_modules/@earendil-works/omk-tui/dist/components/select-list.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/select-list.js +0 -159
- package/node_modules/@earendil-works/omk-tui/dist/components/select-list.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/settings-list.d.ts +0 -50
- package/node_modules/@earendil-works/omk-tui/dist/components/settings-list.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/settings-list.js +0 -185
- package/node_modules/@earendil-works/omk-tui/dist/components/settings-list.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/spacer.d.ts +0 -12
- package/node_modules/@earendil-works/omk-tui/dist/components/spacer.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/spacer.js +0 -23
- package/node_modules/@earendil-works/omk-tui/dist/components/spacer.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/text.d.ts +0 -19
- package/node_modules/@earendil-works/omk-tui/dist/components/text.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/text.js +0 -89
- package/node_modules/@earendil-works/omk-tui/dist/components/text.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/truncated-text.d.ts +0 -13
- package/node_modules/@earendil-works/omk-tui/dist/components/truncated-text.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/components/truncated-text.js +0 -51
- package/node_modules/@earendil-works/omk-tui/dist/components/truncated-text.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/editor-component.d.ts +0 -39
- package/node_modules/@earendil-works/omk-tui/dist/editor-component.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/editor-component.js +0 -2
- package/node_modules/@earendil-works/omk-tui/dist/editor-component.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/fuzzy.d.ts +0 -16
- package/node_modules/@earendil-works/omk-tui/dist/fuzzy.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/fuzzy.js +0 -110
- package/node_modules/@earendil-works/omk-tui/dist/fuzzy.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/index.d.ts +0 -23
- package/node_modules/@earendil-works/omk-tui/dist/index.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/index.js +0 -32
- package/node_modules/@earendil-works/omk-tui/dist/index.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/keybindings.d.ts +0 -212
- package/node_modules/@earendil-works/omk-tui/dist/keybindings.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/keybindings.js +0 -252
- package/node_modules/@earendil-works/omk-tui/dist/keybindings.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/keys.d.ts +0 -184
- package/node_modules/@earendil-works/omk-tui/dist/keys.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/keys.js +0 -1173
- package/node_modules/@earendil-works/omk-tui/dist/keys.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/kill-ring.d.ts +0 -28
- package/node_modules/@earendil-works/omk-tui/dist/kill-ring.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/kill-ring.js +0 -44
- package/node_modules/@earendil-works/omk-tui/dist/kill-ring.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/native-modifiers.d.ts +0 -3
- package/node_modules/@earendil-works/omk-tui/dist/native-modifiers.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/native-modifiers.js +0 -53
- package/node_modules/@earendil-works/omk-tui/dist/native-modifiers.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/stdin-buffer.d.ts +0 -50
- package/node_modules/@earendil-works/omk-tui/dist/stdin-buffer.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/stdin-buffer.js +0 -361
- package/node_modules/@earendil-works/omk-tui/dist/stdin-buffer.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/terminal-image.d.ts +0 -90
- package/node_modules/@earendil-works/omk-tui/dist/terminal-image.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/terminal-image.js +0 -366
- package/node_modules/@earendil-works/omk-tui/dist/terminal-image.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/terminal.d.ts +0 -113
- package/node_modules/@earendil-works/omk-tui/dist/terminal.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/terminal.js +0 -472
- package/node_modules/@earendil-works/omk-tui/dist/terminal.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/tui.d.ts +0 -242
- package/node_modules/@earendil-works/omk-tui/dist/tui.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/tui.js +0 -1221
- package/node_modules/@earendil-works/omk-tui/dist/tui.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/undo-stack.d.ts +0 -17
- package/node_modules/@earendil-works/omk-tui/dist/undo-stack.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/undo-stack.js +0 -25
- package/node_modules/@earendil-works/omk-tui/dist/undo-stack.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/utils.d.ts +0 -84
- package/node_modules/@earendil-works/omk-tui/dist/utils.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/utils.js +0 -1032
- package/node_modules/@earendil-works/omk-tui/dist/utils.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/word-navigation.d.ts +0 -25
- package/node_modules/@earendil-works/omk-tui/dist/word-navigation.d.ts.map +0 -1
- package/node_modules/@earendil-works/omk-tui/dist/word-navigation.js +0 -96
- package/node_modules/@earendil-works/omk-tui/dist/word-navigation.js.map +0 -1
- package/node_modules/@earendil-works/omk-tui/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node +0 -0
- package/node_modules/@earendil-works/omk-tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
- package/node_modules/@earendil-works/omk-tui/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/omk-tui/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/omk-tui/package.json +0 -47
|
@@ -1,5 +1,37 @@
|
|
|
1
|
-
export type BuiltinMcpPresetName = "korean-law";
|
|
1
|
+
export type BuiltinMcpPresetName = "aside-ubuntu-compat" | "chrome-devtools" | "context7" | "korean-law" | "playwright";
|
|
2
2
|
export type BuiltinMcpEnvMode = "shell" | "empty";
|
|
3
|
+
export type BuiltinMcpPresetLicense = "Apache-2.0" | "MIT";
|
|
4
|
+
export type McpKnownCapability = "tools" | "resources" | "prompts" | "sampling";
|
|
5
|
+
export type McpAuthMode = "none" | "env" | "oauth" | "external";
|
|
6
|
+
export type McpSamplingMode = "disabled" | "client-gated";
|
|
7
|
+
export interface McpCapabilityDecision {
|
|
8
|
+
trustedCapabilities: McpKnownCapability[];
|
|
9
|
+
unknownCapabilities: string[];
|
|
10
|
+
malformed: boolean;
|
|
11
|
+
rule: string;
|
|
12
|
+
reason: string;
|
|
13
|
+
}
|
|
14
|
+
export interface McpSamplingDecision {
|
|
15
|
+
allowed: boolean;
|
|
16
|
+
mode: McpSamplingMode;
|
|
17
|
+
humanApprovalRequired: boolean;
|
|
18
|
+
rule: string;
|
|
19
|
+
reason: string;
|
|
20
|
+
}
|
|
21
|
+
export interface McpAuthDecision {
|
|
22
|
+
mode: McpAuthMode;
|
|
23
|
+
envKeys: string[];
|
|
24
|
+
rule: string;
|
|
25
|
+
reason: string;
|
|
26
|
+
}
|
|
27
|
+
export interface McpSamplingPolicyInput {
|
|
28
|
+
mode: McpSamplingMode;
|
|
29
|
+
humanApprovalRequired: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface McpAuthPolicyInput {
|
|
32
|
+
mode: McpAuthMode;
|
|
33
|
+
envKeys?: readonly string[];
|
|
34
|
+
}
|
|
3
35
|
export interface BuiltinMcpServerConfig {
|
|
4
36
|
command: string;
|
|
5
37
|
args: string[];
|
|
@@ -13,7 +45,7 @@ export interface BuiltinMcpPreset {
|
|
|
13
45
|
description: string;
|
|
14
46
|
homepage: string;
|
|
15
47
|
repository: string;
|
|
16
|
-
license:
|
|
48
|
+
license: BuiltinMcpPresetLicense;
|
|
17
49
|
npmPackage: string;
|
|
18
50
|
npmVersion: string;
|
|
19
51
|
exactPackageSpec: string;
|
|
@@ -24,6 +56,9 @@ export interface BuiltinMcpPreset {
|
|
|
24
56
|
envKeys: readonly string[];
|
|
25
57
|
requiredEnvKeys: readonly string[];
|
|
26
58
|
optionalEnvKeys: readonly string[];
|
|
59
|
+
capabilities: readonly McpKnownCapability[];
|
|
60
|
+
samplingPolicy: McpSamplingPolicyInput;
|
|
61
|
+
authPolicy: McpAuthPolicyInput;
|
|
27
62
|
startupTimeoutSec: number;
|
|
28
63
|
autoApprove: readonly string[];
|
|
29
64
|
installHint: string;
|
|
@@ -43,11 +78,17 @@ export interface BuiltinMcpPresetSummary {
|
|
|
43
78
|
envKeys: string[];
|
|
44
79
|
requiredEnvKeys: string[];
|
|
45
80
|
optionalEnvKeys: string[];
|
|
81
|
+
capabilityDecision: McpCapabilityDecision;
|
|
82
|
+
samplingDecision: McpSamplingDecision;
|
|
83
|
+
authDecision: McpAuthDecision;
|
|
46
84
|
startupTimeoutSec: number;
|
|
47
85
|
autoApproveCount: number;
|
|
48
86
|
installHint: string;
|
|
49
87
|
notes: string[];
|
|
50
88
|
}
|
|
89
|
+
export declare function decideMcpCapabilities(rawCapabilities: unknown): McpCapabilityDecision;
|
|
90
|
+
export declare function decideMcpSampling(capabilityDecision: McpCapabilityDecision, rawPolicy: unknown): McpSamplingDecision;
|
|
91
|
+
export declare function decideMcpAuth(rawAuth: unknown, declaredEnvKeys: readonly string[]): McpAuthDecision;
|
|
51
92
|
export declare function listBuiltinMcpPresets(): BuiltinMcpPreset[];
|
|
52
93
|
export declare function getBuiltinMcpPreset(name: string): BuiltinMcpPreset | undefined;
|
|
53
94
|
export declare function buildBuiltinMcpServerConfig(name: string, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version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W,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;CAChB;AA+CD,wBAAgB,qBAAqB,IAAI,gBAAgB,EAAE,CAE1D;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAG9E;AAED,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAAO,GAC3C,sBAAsB,GAAG,SAAS,CAWpC;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,GAAG,uBAAuB,CAoB3F","sourcesContent":["export type BuiltinMcpPresetName = \"korean-law\";\nexport type BuiltinMcpEnvMode = \"shell\" | \"empty\";\n\nexport interface BuiltinMcpServerConfig {\n\tcommand: string;\n\targs: string[];\n\tenv?: Record<string, string>;\n\tstartup_timeout_sec?: number;\n\tautoApprove?: string[];\n}\n\nexport interface BuiltinMcpPreset {\n\tname: BuiltinMcpPresetName;\n\tlabel: string;\n\tdescription: string;\n\thomepage: string;\n\trepository: string;\n\tlicense: \"MIT\";\n\tnpmPackage: string;\n\tnpmVersion: string;\n\texactPackageSpec: string;\n\tgitTag: string;\n\tgitCommit: string;\n\tcommand: string;\n\targs: readonly string[];\n\tenvKeys: readonly string[];\n\trequiredEnvKeys: readonly string[];\n\toptionalEnvKeys: readonly string[];\n\tstartupTimeoutSec: number;\n\tautoApprove: readonly string[];\n\tinstallHint: string;\n\tnotes: readonly string[];\n}\n\nexport interface BuiltinMcpPresetSummary {\n\tname: BuiltinMcpPresetName;\n\tlabel: string;\n\tdescription: string;\n\thomepage: string;\n\trepository: string;\n\tlicense: string;\n\texactPackageSpec: string;\n\tgitTag: string;\n\tgitCommit: string;\n\tcommandSummary: string;\n\tenvKeys: string[];\n\trequiredEnvKeys: string[];\n\toptionalEnvKeys: string[];\n\tstartupTimeoutSec: number;\n\tautoApproveCount: number;\n\tinstallHint: string;\n\tnotes: string[];\n}\n\nconst LAW_OC_ENV_PLACEHOLDER = \"$\" + \"{LAW_OC}\";\n\nconst KOREAN_LAW_PRESET: BuiltinMcpPreset = {\n\tname: \"korean-law\",\n\tlabel: \"Korean Law MCP\",\n\tdescription:\n\t\t\"법제처 Open API 기반 한국 법령·판례·조례·조약 MCP 서버. Requires a LAW_OC or KOREAN_LAW_API_KEY value at runtime.\",\n\thomepage: \"https://github.com/chrisryugj/korean-law-mcp\",\n\trepository: \"https://github.com/chrisryugj/korean-law-mcp.git\",\n\tlicense: \"MIT\",\n\tnpmPackage: \"korean-law-mcp\",\n\tnpmVersion: \"4.4.0\",\n\texactPackageSpec: \"korean-law-mcp@4.4.0\",\n\tgitTag: \"v4.4.0\",\n\tgitCommit: \"2ef8f1827d349381fc2bde15120c803fd2e7bfed\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"korean-law-mcp@4.4.0\"],\n\tenvKeys: [\"LAW_OC\", \"KOREAN_LAW_API_KEY\"],\n\trequiredEnvKeys: [\"LAW_OC\"],\n\toptionalEnvKeys: [\"KOREAN_LAW_API_KEY\"],\n\tstartupTimeoutSec: 30,\n\tautoApprove: [],\n\tinstallHint:\n\t\t\"Add an MCP server named korean-law using command npx and args -y korean-law-mcp@4.4.0; set LAW_OC from your shell or secret manager.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"MIT licensed upstream at tag v4.4.0, commit 2ef8f1827d349381fc2bde15120c803fd2e7bfed.\",\n\t\t\"Env values are intentionally not embedded in the preset.\",\n\t],\n};\n\nconst BUILTIN_MCP_PRESETS: ReadonlyArray<BuiltinMcpPreset> = [KOREAN_LAW_PRESET];\n\nfunction clonePreset(preset: BuiltinMcpPreset): BuiltinMcpPreset {\n\treturn {\n\t\t...preset,\n\t\targs: [...preset.args],\n\t\tenvKeys: [...preset.envKeys],\n\t\trequiredEnvKeys: [...preset.requiredEnvKeys],\n\t\toptionalEnvKeys: [...preset.optionalEnvKeys],\n\t\tautoApprove: [...preset.autoApprove],\n\t\tnotes: [...preset.notes],\n\t};\n}\n\nexport function listBuiltinMcpPresets(): BuiltinMcpPreset[] {\n\treturn BUILTIN_MCP_PRESETS.map(clonePreset);\n}\n\nexport function getBuiltinMcpPreset(name: string): BuiltinMcpPreset | undefined {\n\tconst preset = BUILTIN_MCP_PRESETS.find((entry) => entry.name === name);\n\treturn preset ? clonePreset(preset) : undefined;\n}\n\nexport function buildBuiltinMcpServerConfig(\n\tname: string,\n\toptions: { envMode?: BuiltinMcpEnvMode } = {},\n): BuiltinMcpServerConfig | undefined {\n\tconst preset = getBuiltinMcpPreset(name);\n\tif (!preset) return undefined;\n\tconst envMode = options.envMode ?? \"shell\";\n\treturn {\n\t\tcommand: preset.command,\n\t\targs: [...preset.args],\n\t\t...(envMode === \"shell\" ? { env: { LAW_OC: LAW_OC_ENV_PLACEHOLDER } } : {}),\n\t\tstartup_timeout_sec: preset.startupTimeoutSec,\n\t\t...(preset.autoApprove.length > 0 ? { autoApprove: [...preset.autoApprove] } : {}),\n\t};\n}\n\nexport function summarizeBuiltinMcpPreset(preset: BuiltinMcpPreset): BuiltinMcpPresetSummary {\n\treturn {\n\t\tname: preset.name,\n\t\tlabel: preset.label,\n\t\tdescription: preset.description,\n\t\thomepage: preset.homepage,\n\t\trepository: preset.repository,\n\t\tlicense: preset.license,\n\t\texactPackageSpec: preset.exactPackageSpec,\n\t\tgitTag: preset.gitTag,\n\t\tgitCommit: preset.gitCommit,\n\t\tcommandSummary: `${preset.command} ${preset.args.join(\" \")}`,\n\t\tenvKeys: [...preset.envKeys],\n\t\trequiredEnvKeys: [...preset.requiredEnvKeys],\n\t\toptionalEnvKeys: [...preset.optionalEnvKeys],\n\t\tstartupTimeoutSec: preset.startupTimeoutSec,\n\t\tautoApproveCount: preset.autoApprove.length,\n\t\tinstallHint: preset.installHint,\n\t\tnotes: [...preset.notes],\n\t};\n}\n"]}
|
|
1
|
+
{"version":3,"file":"mcp-presets.d.ts","sourceRoot":"","sources":["../../src/core/mcp-presets.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,GAAG,iBAAiB,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,CAAC;AACxH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,CAAC;AAClD,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,KAAK,CAAC;AAC3D,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;AAChF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,cAAc,CAAC;AAE1D,MAAM,WAAW,qBAAqB;IACrC,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;IAC1C,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,eAAe,CAAC;IACtB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,IAAI,EAAE,MAAM,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EAAE,CAE1D;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAG9E;AAED,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAAO,GAC3C,sBAAsB,GAAG,SAAS,CAYpC;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,GAAG,uBAAuB,CAwB3F","sourcesContent":["export type BuiltinMcpPresetName = \"aside-ubuntu-compat\" | \"chrome-devtools\" | \"context7\" | \"korean-law\" | \"playwright\";\nexport type BuiltinMcpEnvMode = \"shell\" | \"empty\";\nexport type BuiltinMcpPresetLicense = \"Apache-2.0\" | \"MIT\";\nexport type McpKnownCapability = \"tools\" | \"resources\" | \"prompts\" | \"sampling\";\nexport type McpAuthMode = \"none\" | \"env\" | \"oauth\" | \"external\";\nexport type McpSamplingMode = \"disabled\" | \"client-gated\";\n\nexport interface McpCapabilityDecision {\n\ttrustedCapabilities: McpKnownCapability[];\n\tunknownCapabilities: string[];\n\tmalformed: boolean;\n\trule: string;\n\treason: string;\n}\n\nexport interface McpSamplingDecision {\n\tallowed: boolean;\n\tmode: McpSamplingMode;\n\thumanApprovalRequired: boolean;\n\trule: string;\n\treason: string;\n}\n\nexport interface McpAuthDecision {\n\tmode: McpAuthMode;\n\tenvKeys: string[];\n\trule: string;\n\treason: string;\n}\n\nexport interface McpSamplingPolicyInput {\n\tmode: McpSamplingMode;\n\thumanApprovalRequired: boolean;\n}\n\nexport interface McpAuthPolicyInput {\n\tmode: McpAuthMode;\n\tenvKeys?: readonly string[];\n}\n\nexport interface BuiltinMcpServerConfig {\n\tcommand: string;\n\targs: string[];\n\tenv?: Record<string, string>;\n\tstartup_timeout_sec?: number;\n\tautoApprove?: string[];\n}\n\nexport interface BuiltinMcpPreset {\n\tname: BuiltinMcpPresetName;\n\tlabel: string;\n\tdescription: string;\n\thomepage: string;\n\trepository: string;\n\tlicense: BuiltinMcpPresetLicense;\n\tnpmPackage: string;\n\tnpmVersion: string;\n\texactPackageSpec: string;\n\tgitTag: string;\n\tgitCommit: string;\n\tcommand: string;\n\targs: readonly string[];\n\tenvKeys: readonly string[];\n\trequiredEnvKeys: readonly string[];\n\toptionalEnvKeys: readonly string[];\n\tcapabilities: readonly McpKnownCapability[];\n\tsamplingPolicy: McpSamplingPolicyInput;\n\tauthPolicy: McpAuthPolicyInput;\n\tstartupTimeoutSec: number;\n\tautoApprove: readonly string[];\n\tinstallHint: string;\n\tnotes: readonly string[];\n}\n\nexport interface BuiltinMcpPresetSummary {\n\tname: BuiltinMcpPresetName;\n\tlabel: string;\n\tdescription: string;\n\thomepage: string;\n\trepository: string;\n\tlicense: string;\n\texactPackageSpec: string;\n\tgitTag: string;\n\tgitCommit: string;\n\tcommandSummary: string;\n\tenvKeys: string[];\n\trequiredEnvKeys: string[];\n\toptionalEnvKeys: string[];\n\tcapabilityDecision: McpCapabilityDecision;\n\tsamplingDecision: McpSamplingDecision;\n\tauthDecision: McpAuthDecision;\n\tstartupTimeoutSec: number;\n\tautoApproveCount: number;\n\tinstallHint: string;\n\tnotes: string[];\n}\n\nconst LAW_OC_ENV_PLACEHOLDER = \"$\" + \"{LAW_OC}\";\nconst KNOWN_MCP_CAPABILITIES: readonly McpKnownCapability[] = [\"tools\", \"resources\", \"prompts\", \"sampling\"];\n\nfunction uniqueSortedStrings(values: readonly string[]): string[] {\n\treturn [...new Set(values.map((value) => value.trim()).filter((value) => value.length > 0))].sort();\n}\n\nfunction orderedKnownCapabilities(values: readonly string[]): McpKnownCapability[] {\n\tconst declared = new Set(values);\n\treturn KNOWN_MCP_CAPABILITIES.filter((capability) => declared.has(capability));\n}\n\nfunction isKnownCapability(value: string): value is McpKnownCapability {\n\treturn KNOWN_MCP_CAPABILITIES.includes(value as McpKnownCapability);\n}\n\nfunction isMcpAuthMode(value: unknown): value is McpAuthMode {\n\treturn value === \"none\" || value === \"env\" || value === \"oauth\" || value === \"external\";\n}\n\nfunction isMcpSamplingMode(value: unknown): value is McpSamplingMode {\n\treturn value === \"disabled\" || value === \"client-gated\";\n}\n\nexport function decideMcpCapabilities(rawCapabilities: unknown): McpCapabilityDecision {\n\tif (!rawCapabilities) {\n\t\treturn {\n\t\t\ttrustedCapabilities: [],\n\t\t\tunknownCapabilities: [],\n\t\t\tmalformed: false,\n\t\t\trule: \"mcp.capabilities.unspecified\",\n\t\t\treason: \"MCP capabilities were not declared.\",\n\t\t};\n\t}\n\n\tlet declared: string[] = [];\n\tlet malformed = false;\n\n\tif (Array.isArray(rawCapabilities)) {\n\t\tfor (const capability of rawCapabilities) {\n\t\t\tif (typeof capability === \"string\") {\n\t\t\t\tdeclared.push(capability.trim());\n\t\t\t} else {\n\t\t\t\tmalformed = true;\n\t\t\t}\n\t\t}\n\t} else if (typeof rawCapabilities === \"object\") {\n\t\tfor (const [capability, enabled] of Object.entries(rawCapabilities as Record<string, unknown>)) {\n\t\t\tif (typeof enabled !== \"boolean\") {\n\t\t\t\tmalformed = true;\n\t\t\t}\n\t\t\tif (enabled === true) {\n\t\t\t\tdeclared.push(capability.trim());\n\t\t\t}\n\t\t}\n\t} else {\n\t\tmalformed = true;\n\t}\n\n\tdeclared = uniqueSortedStrings(declared);\n\tconst trustedCapabilities = orderedKnownCapabilities(declared.filter(isKnownCapability));\n\tconst unknownCapabilities = declared.filter((capability) => !isKnownCapability(capability));\n\tconst hasUntrustedInput = malformed || unknownCapabilities.length > 0;\n\treturn {\n\t\ttrustedCapabilities,\n\t\tunknownCapabilities,\n\t\tmalformed,\n\t\trule: hasUntrustedInput ? \"mcp.capabilities.untrusted_input\" : \"mcp.capabilities.declared\",\n\t\treason: hasUntrustedInput\n\t\t\t? \"Only known MCP capabilities are trusted; unknown or malformed entries are reported but ignored.\"\n\t\t\t: \"MCP capabilities were declared with known capability names.\",\n\t};\n}\n\nexport function decideMcpSampling(capabilityDecision: McpCapabilityDecision, rawPolicy: unknown): McpSamplingDecision {\n\tif (!capabilityDecision.trustedCapabilities.includes(\"sampling\")) {\n\t\treturn {\n\t\t\tallowed: false,\n\t\t\tmode: \"disabled\",\n\t\t\thumanApprovalRequired: false,\n\t\t\trule: \"mcp.sampling.capability_missing\",\n\t\t\treason: \"MCP sampling is denied because the trusted sampling capability is not declared.\",\n\t\t};\n\t}\n\n\tif (!rawPolicy || typeof rawPolicy !== \"object\" || Array.isArray(rawPolicy)) {\n\t\treturn {\n\t\t\tallowed: false,\n\t\t\tmode: \"disabled\",\n\t\t\thumanApprovalRequired: false,\n\t\t\trule: \"mcp.sampling.policy_missing\",\n\t\t\treason: \"MCP sampling is denied until an explicit client-gated policy with human approval is present.\",\n\t\t};\n\t}\n\n\tconst policy = rawPolicy as Record<string, unknown>;\n\tconst mode = policy.mode;\n\tconst humanApprovalRequired = policy.humanApprovalRequired;\n\tif (isMcpSamplingMode(mode) && mode === \"client-gated\" && humanApprovalRequired === true) {\n\t\treturn {\n\t\t\tallowed: true,\n\t\t\tmode,\n\t\t\thumanApprovalRequired: true,\n\t\t\trule: \"mcp.sampling.client_gated_human_approval\",\n\t\t\treason: \"MCP sampling is client-gated and requires human approval.\",\n\t\t};\n\t}\n\n\treturn {\n\t\tallowed: false,\n\t\tmode: isMcpSamplingMode(mode) ? mode : \"disabled\",\n\t\thumanApprovalRequired: humanApprovalRequired === true,\n\t\trule: \"mcp.sampling.policy_invalid\",\n\t\treason: \"MCP sampling is denied because policy is not client-gated with humanApprovalRequired true.\",\n\t};\n}\n\nexport function decideMcpAuth(rawAuth: unknown, declaredEnvKeys: readonly string[]): McpAuthDecision {\n\tconst fallbackEnvKeys = uniqueSortedStrings(declaredEnvKeys);\n\tif (!rawAuth) {\n\t\tif (fallbackEnvKeys.length > 0) {\n\t\t\treturn {\n\t\t\t\tmode: \"env\",\n\t\t\t\tenvKeys: fallbackEnvKeys,\n\t\t\t\trule: \"mcp.auth.env_inferred\",\n\t\t\t\treason: \"MCP auth uses declared environment variable names; values are not exposed.\",\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tmode: \"none\",\n\t\t\tenvKeys: [],\n\t\t\trule: \"mcp.auth.none\",\n\t\t\treason: \"MCP auth is not declared and no environment keys are configured.\",\n\t\t};\n\t}\n\n\tconst authMode = typeof rawAuth === \"string\" ? rawAuth : (rawAuth as Record<string, unknown>).mode;\n\tif (!isMcpAuthMode(authMode)) {\n\t\treturn {\n\t\t\tmode: \"external\",\n\t\t\tenvKeys: [],\n\t\t\trule: \"mcp.auth.invalid\",\n\t\t\treason: \"MCP auth policy is invalid; treat credentials as externally managed.\",\n\t\t};\n\t}\n\n\tif (authMode === \"env\") {\n\t\tconst rawEnvKeys =\n\t\t\ttypeof rawAuth === \"object\" && !Array.isArray(rawAuth) ? (rawAuth as Record<string, unknown>).envKeys : [];\n\t\tconst envKeys = Array.isArray(rawEnvKeys)\n\t\t\t? uniqueSortedStrings(rawEnvKeys.filter((entry): entry is string => typeof entry === \"string\"))\n\t\t\t: [];\n\t\tconst sanitizedEnvKeys = envKeys.length > 0 ? envKeys : fallbackEnvKeys;\n\t\treturn {\n\t\t\tmode: \"env\",\n\t\t\tenvKeys: sanitizedEnvKeys,\n\t\t\trule: \"mcp.auth.env\",\n\t\t\treason: \"MCP auth uses environment variable names; values are not exposed.\",\n\t\t};\n\t}\n\n\treturn {\n\t\tmode: authMode,\n\t\tenvKeys: [],\n\t\trule: `mcp.auth.${authMode}`,\n\t\treason:\n\t\t\tauthMode === \"none\"\n\t\t\t\t? \"MCP auth is explicitly disabled.\"\n\t\t\t\t: `MCP auth is handled by ${authMode}; secret values are not exposed.`,\n\t};\n}\n\nconst ASIDE_UBUNTU_COMPAT_PRESET: BuiltinMcpPreset = {\n\tname: \"aside-ubuntu-compat\",\n\tlabel: \"Aside Ubuntu Compat MCP\",\n\tdescription:\n\t\t\"Ubuntu/zsh browser automation compatibility facade for workflows that expect an Aside-like MCP entrypoint. It uses Playwright MCP and does not provide native macOS Aside APIs on Linux.\",\n\thomepage: \"https://playwright.dev\",\n\trepository: \"https://github.com/microsoft/playwright-mcp.git\",\n\tlicense: \"Apache-2.0\",\n\tnpmPackage: \"@playwright/mcp\",\n\tnpmVersion: \"0.0.76\",\n\texactPackageSpec: \"@playwright/mcp@0.0.76\",\n\tgitTag: \"v0.0.76\",\n\tgitCommit: \"b301c372ec741289eff1cf6aab9d3bec553f31e2\",\n\tcommand: \"zsh\",\n\targs: [\"-lc\", \"exec npx -y @playwright/mcp@0.0.76\"],\n\tenvKeys: [\"DISPLAY\", \"WAYLAND_DISPLAY\", \"XDG_RUNTIME_DIR\"],\n\trequiredEnvKeys: [],\n\toptionalEnvKeys: [\"DISPLAY\", \"WAYLAND_DISPLAY\", \"XDG_RUNTIME_DIR\"],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"none\" },\n\tstartupTimeoutSec: 45,\n\tautoApprove: [],\n\tinstallHint:\n\t\t'Add an MCP server named aside-ubuntu-compat using command zsh and args -lc \"exec npx -y @playwright/mcp@0.0.76\".',\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"Apache-2.0 licensed upstream at tag v0.0.76, commit b301c372ec741289eff1cf6aab9d3bec553f31e2.\",\n\t\t\"Compatibility facade only: it does not expose native macOS Aside APIs or a native Aside browser profile on Linux.\",\n\t\t\"Requires zsh, node/npm/npx, and a browser-capable Ubuntu environment.\",\n\t],\n};\n\nconst CHROME_DEVTOOLS_PRESET: BuiltinMcpPreset = {\n\tname: \"chrome-devtools\",\n\tlabel: \"Chrome DevTools MCP\",\n\tdescription:\n\t\t\"Chrome DevTools 기반 브라우저 자동화 MCP 서버. UI reconnaissance, computed style extraction, performance traces, screenshots에 사용합니다.\",\n\thomepage: \"https://github.com/ChromeDevTools/chrome-devtools-mcp#readme\",\n\trepository: \"https://github.com/ChromeDevTools/chrome-devtools-mcp.git\",\n\tlicense: \"Apache-2.0\",\n\tnpmPackage: \"chrome-devtools-mcp\",\n\tnpmVersion: \"1.4.0\",\n\texactPackageSpec: \"chrome-devtools-mcp@1.4.0\",\n\tgitTag: \"chrome-devtools-mcp-v1.4.0\",\n\tgitCommit: \"0aaa8e3cc0e9ae55b1ef5b456d6d25526015b886\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"chrome-devtools-mcp@1.4.0\"],\n\tenvKeys: [],\n\trequiredEnvKeys: [],\n\toptionalEnvKeys: [],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"none\" },\n\tstartupTimeoutSec: 45,\n\tautoApprove: [],\n\tinstallHint: \"Add an MCP server named chrome-devtools using command npx and args -y chrome-devtools-mcp@1.4.0.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"Apache-2.0 licensed upstream at tag chrome-devtools-mcp-v1.4.0, commit 0aaa8e3cc0e9ae55b1ef5b456d6d25526015b886.\",\n\t\t\"Use for browser reconnaissance, screenshots, performance traces, and computed-style capture.\",\n\t],\n};\n\nconst CONTEXT7_PRESET: BuiltinMcpPreset = {\n\tname: \"context7\",\n\tlabel: \"Context7 MCP\",\n\tdescription:\n\t\t\"Library/framework documentation MCP server. Use it to fetch current docs for React, Next.js, Tailwind, shadcn/ui, Playwright, and @rhwp/core APIs.\",\n\thomepage: \"https://github.com/upstash/context7#readme\",\n\trepository: \"https://github.com/upstash/context7.git\",\n\tlicense: \"MIT\",\n\tnpmPackage: \"@upstash/context7-mcp\",\n\tnpmVersion: \"3.2.2\",\n\texactPackageSpec: \"@upstash/context7-mcp@3.2.2\",\n\tgitTag: \"@upstash/context7-mcp@3.2.2\",\n\tgitCommit: \"18e6d4727bbcfb4001a8a17337b0f0f717f1b4fd\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"@upstash/context7-mcp@3.2.2\"],\n\tenvKeys: [],\n\trequiredEnvKeys: [],\n\toptionalEnvKeys: [],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"none\" },\n\tstartupTimeoutSec: 30,\n\tautoApprove: [],\n\tinstallHint: \"Add an MCP server named context7 using command npx and args -y @upstash/context7-mcp@3.2.2.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"MIT licensed upstream at tag @upstash/context7-mcp@3.2.2, commit 18e6d4727bbcfb4001a8a17337b0f0f717f1b4fd.\",\n\t\t\"Use for current framework and package documentation before coding against external APIs.\",\n\t],\n};\n\nconst KOREAN_LAW_PRESET: BuiltinMcpPreset = {\n\tname: \"korean-law\",\n\tlabel: \"Korean Law MCP\",\n\tdescription:\n\t\t\"법제처 Open API 기반 한국 법령·판례·조례·조약 MCP 서버. Requires a LAW_OC or KOREAN_LAW_API_KEY value at runtime.\",\n\thomepage: \"https://github.com/chrisryugj/korean-law-mcp\",\n\trepository: \"https://github.com/chrisryugj/korean-law-mcp.git\",\n\tlicense: \"MIT\",\n\tnpmPackage: \"korean-law-mcp\",\n\tnpmVersion: \"4.4.0\",\n\texactPackageSpec: \"korean-law-mcp@4.4.0\",\n\tgitTag: \"v4.4.0\",\n\tgitCommit: \"2ef8f1827d349381fc2bde15120c803fd2e7bfed\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"korean-law-mcp@4.4.0\"],\n\tenvKeys: [\"LAW_OC\", \"KOREAN_LAW_API_KEY\"],\n\trequiredEnvKeys: [\"LAW_OC\"],\n\toptionalEnvKeys: [\"KOREAN_LAW_API_KEY\"],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"env\", envKeys: [\"LAW_OC\", \"KOREAN_LAW_API_KEY\"] },\n\tstartupTimeoutSec: 30,\n\tautoApprove: [],\n\tinstallHint:\n\t\t\"Add an MCP server named korean-law using command npx and args -y korean-law-mcp@4.4.0; set LAW_OC from your shell or secret manager.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"MIT licensed upstream at tag v4.4.0, commit 2ef8f1827d349381fc2bde15120c803fd2e7bfed.\",\n\t\t\"Env values are intentionally not embedded in the preset.\",\n\t],\n};\n\nconst PLAYWRIGHT_PRESET: BuiltinMcpPreset = {\n\tname: \"playwright\",\n\tlabel: \"Playwright MCP\",\n\tdescription:\n\t\t\"Playwright 기반 browser automation MCP 서버. Visual QA, responsive screenshots, interaction sweeps, visual diff evidence에 사용합니다.\",\n\thomepage: \"https://playwright.dev\",\n\trepository: \"https://github.com/microsoft/playwright-mcp.git\",\n\tlicense: \"Apache-2.0\",\n\tnpmPackage: \"@playwright/mcp\",\n\tnpmVersion: \"0.0.76\",\n\texactPackageSpec: \"@playwright/mcp@0.0.76\",\n\tgitTag: \"v0.0.76\",\n\tgitCommit: \"b301c372ec741289eff1cf6aab9d3bec553f31e2\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"@playwright/mcp@0.0.76\"],\n\tenvKeys: [],\n\trequiredEnvKeys: [],\n\toptionalEnvKeys: [],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"none\" },\n\tstartupTimeoutSec: 45,\n\tautoApprove: [],\n\tinstallHint: \"Add an MCP server named playwright using command npx and args -y @playwright/mcp@0.0.76.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"Apache-2.0 licensed upstream at tag v0.0.76, commit b301c372ec741289eff1cf6aab9d3bec553f31e2.\",\n\t\t\"Use for deterministic screenshots, viewport sweeps, interactions, and visual QA artifacts.\",\n\t],\n};\n\nconst BUILTIN_MCP_PRESETS: ReadonlyArray<BuiltinMcpPreset> = [\n\tASIDE_UBUNTU_COMPAT_PRESET,\n\tCHROME_DEVTOOLS_PRESET,\n\tCONTEXT7_PRESET,\n\tKOREAN_LAW_PRESET,\n\tPLAYWRIGHT_PRESET,\n];\n\nfunction buildShellEnvForPreset(preset: BuiltinMcpPreset): Record<string, string> {\n\tif (preset.name === \"korean-law\") return { LAW_OC: LAW_OC_ENV_PLACEHOLDER };\n\treturn {};\n}\n\nfunction clonePreset(preset: BuiltinMcpPreset): BuiltinMcpPreset {\n\treturn {\n\t\t...preset,\n\t\targs: [...preset.args],\n\t\tenvKeys: [...preset.envKeys],\n\t\trequiredEnvKeys: [...preset.requiredEnvKeys],\n\t\toptionalEnvKeys: [...preset.optionalEnvKeys],\n\t\tcapabilities: [...preset.capabilities],\n\t\tsamplingPolicy: { ...preset.samplingPolicy },\n\t\tauthPolicy: {\n\t\t\t...preset.authPolicy,\n\t\t\t...(preset.authPolicy.envKeys ? { envKeys: [...preset.authPolicy.envKeys] } : {}),\n\t\t},\n\t\tautoApprove: [...preset.autoApprove],\n\t\tnotes: [...preset.notes],\n\t};\n}\n\nexport function listBuiltinMcpPresets(): BuiltinMcpPreset[] {\n\treturn BUILTIN_MCP_PRESETS.map(clonePreset);\n}\n\nexport function getBuiltinMcpPreset(name: string): BuiltinMcpPreset | undefined {\n\tconst preset = BUILTIN_MCP_PRESETS.find((entry) => entry.name === name);\n\treturn preset ? clonePreset(preset) : undefined;\n}\n\nexport function buildBuiltinMcpServerConfig(\n\tname: string,\n\toptions: { envMode?: BuiltinMcpEnvMode } = {},\n): BuiltinMcpServerConfig | undefined {\n\tconst preset = getBuiltinMcpPreset(name);\n\tif (!preset) return undefined;\n\tconst envMode = options.envMode ?? \"shell\";\n\tconst shellEnv = envMode === \"shell\" ? buildShellEnvForPreset(preset) : {};\n\treturn {\n\t\tcommand: preset.command,\n\t\targs: [...preset.args],\n\t\t...(Object.keys(shellEnv).length > 0 ? { env: shellEnv } : {}),\n\t\tstartup_timeout_sec: preset.startupTimeoutSec,\n\t\t...(preset.autoApprove.length > 0 ? { autoApprove: [...preset.autoApprove] } : {}),\n\t};\n}\n\nexport function summarizeBuiltinMcpPreset(preset: BuiltinMcpPreset): BuiltinMcpPresetSummary {\n\tconst capabilityDecision = decideMcpCapabilities(preset.capabilities);\n\treturn {\n\t\tname: preset.name,\n\t\tlabel: preset.label,\n\t\tdescription: preset.description,\n\t\thomepage: preset.homepage,\n\t\trepository: preset.repository,\n\t\tlicense: preset.license,\n\t\texactPackageSpec: preset.exactPackageSpec,\n\t\tgitTag: preset.gitTag,\n\t\tgitCommit: preset.gitCommit,\n\t\tcommandSummary: `${preset.command} ${preset.args.join(\" \")}`,\n\t\tenvKeys: [...preset.envKeys],\n\t\trequiredEnvKeys: [...preset.requiredEnvKeys],\n\t\toptionalEnvKeys: [...preset.optionalEnvKeys],\n\t\tcapabilityDecision,\n\t\tsamplingDecision: decideMcpSampling(capabilityDecision, preset.samplingPolicy),\n\t\tauthDecision: decideMcpAuth(preset.authPolicy, preset.envKeys),\n\t\tstartupTimeoutSec: preset.startupTimeoutSec,\n\t\tautoApproveCount: preset.autoApprove.length,\n\t\tinstallHint: preset.installHint,\n\t\tnotes: [...preset.notes],\n\t};\n}\n"]}
|
package/dist/core/mcp-presets.js
CHANGED
|
@@ -1,4 +1,246 @@
|
|
|
1
1
|
const LAW_OC_ENV_PLACEHOLDER = "$" + "{LAW_OC}";
|
|
2
|
+
const KNOWN_MCP_CAPABILITIES = ["tools", "resources", "prompts", "sampling"];
|
|
3
|
+
function uniqueSortedStrings(values) {
|
|
4
|
+
return [...new Set(values.map((value) => value.trim()).filter((value) => value.length > 0))].sort();
|
|
5
|
+
}
|
|
6
|
+
function orderedKnownCapabilities(values) {
|
|
7
|
+
const declared = new Set(values);
|
|
8
|
+
return KNOWN_MCP_CAPABILITIES.filter((capability) => declared.has(capability));
|
|
9
|
+
}
|
|
10
|
+
function isKnownCapability(value) {
|
|
11
|
+
return KNOWN_MCP_CAPABILITIES.includes(value);
|
|
12
|
+
}
|
|
13
|
+
function isMcpAuthMode(value) {
|
|
14
|
+
return value === "none" || value === "env" || value === "oauth" || value === "external";
|
|
15
|
+
}
|
|
16
|
+
function isMcpSamplingMode(value) {
|
|
17
|
+
return value === "disabled" || value === "client-gated";
|
|
18
|
+
}
|
|
19
|
+
export function decideMcpCapabilities(rawCapabilities) {
|
|
20
|
+
if (!rawCapabilities) {
|
|
21
|
+
return {
|
|
22
|
+
trustedCapabilities: [],
|
|
23
|
+
unknownCapabilities: [],
|
|
24
|
+
malformed: false,
|
|
25
|
+
rule: "mcp.capabilities.unspecified",
|
|
26
|
+
reason: "MCP capabilities were not declared.",
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
let declared = [];
|
|
30
|
+
let malformed = false;
|
|
31
|
+
if (Array.isArray(rawCapabilities)) {
|
|
32
|
+
for (const capability of rawCapabilities) {
|
|
33
|
+
if (typeof capability === "string") {
|
|
34
|
+
declared.push(capability.trim());
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
malformed = true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
else if (typeof rawCapabilities === "object") {
|
|
42
|
+
for (const [capability, enabled] of Object.entries(rawCapabilities)) {
|
|
43
|
+
if (typeof enabled !== "boolean") {
|
|
44
|
+
malformed = true;
|
|
45
|
+
}
|
|
46
|
+
if (enabled === true) {
|
|
47
|
+
declared.push(capability.trim());
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
malformed = true;
|
|
53
|
+
}
|
|
54
|
+
declared = uniqueSortedStrings(declared);
|
|
55
|
+
const trustedCapabilities = orderedKnownCapabilities(declared.filter(isKnownCapability));
|
|
56
|
+
const unknownCapabilities = declared.filter((capability) => !isKnownCapability(capability));
|
|
57
|
+
const hasUntrustedInput = malformed || unknownCapabilities.length > 0;
|
|
58
|
+
return {
|
|
59
|
+
trustedCapabilities,
|
|
60
|
+
unknownCapabilities,
|
|
61
|
+
malformed,
|
|
62
|
+
rule: hasUntrustedInput ? "mcp.capabilities.untrusted_input" : "mcp.capabilities.declared",
|
|
63
|
+
reason: hasUntrustedInput
|
|
64
|
+
? "Only known MCP capabilities are trusted; unknown or malformed entries are reported but ignored."
|
|
65
|
+
: "MCP capabilities were declared with known capability names.",
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export function decideMcpSampling(capabilityDecision, rawPolicy) {
|
|
69
|
+
if (!capabilityDecision.trustedCapabilities.includes("sampling")) {
|
|
70
|
+
return {
|
|
71
|
+
allowed: false,
|
|
72
|
+
mode: "disabled",
|
|
73
|
+
humanApprovalRequired: false,
|
|
74
|
+
rule: "mcp.sampling.capability_missing",
|
|
75
|
+
reason: "MCP sampling is denied because the trusted sampling capability is not declared.",
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
if (!rawPolicy || typeof rawPolicy !== "object" || Array.isArray(rawPolicy)) {
|
|
79
|
+
return {
|
|
80
|
+
allowed: false,
|
|
81
|
+
mode: "disabled",
|
|
82
|
+
humanApprovalRequired: false,
|
|
83
|
+
rule: "mcp.sampling.policy_missing",
|
|
84
|
+
reason: "MCP sampling is denied until an explicit client-gated policy with human approval is present.",
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
const policy = rawPolicy;
|
|
88
|
+
const mode = policy.mode;
|
|
89
|
+
const humanApprovalRequired = policy.humanApprovalRequired;
|
|
90
|
+
if (isMcpSamplingMode(mode) && mode === "client-gated" && humanApprovalRequired === true) {
|
|
91
|
+
return {
|
|
92
|
+
allowed: true,
|
|
93
|
+
mode,
|
|
94
|
+
humanApprovalRequired: true,
|
|
95
|
+
rule: "mcp.sampling.client_gated_human_approval",
|
|
96
|
+
reason: "MCP sampling is client-gated and requires human approval.",
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
allowed: false,
|
|
101
|
+
mode: isMcpSamplingMode(mode) ? mode : "disabled",
|
|
102
|
+
humanApprovalRequired: humanApprovalRequired === true,
|
|
103
|
+
rule: "mcp.sampling.policy_invalid",
|
|
104
|
+
reason: "MCP sampling is denied because policy is not client-gated with humanApprovalRequired true.",
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export function decideMcpAuth(rawAuth, declaredEnvKeys) {
|
|
108
|
+
const fallbackEnvKeys = uniqueSortedStrings(declaredEnvKeys);
|
|
109
|
+
if (!rawAuth) {
|
|
110
|
+
if (fallbackEnvKeys.length > 0) {
|
|
111
|
+
return {
|
|
112
|
+
mode: "env",
|
|
113
|
+
envKeys: fallbackEnvKeys,
|
|
114
|
+
rule: "mcp.auth.env_inferred",
|
|
115
|
+
reason: "MCP auth uses declared environment variable names; values are not exposed.",
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
mode: "none",
|
|
120
|
+
envKeys: [],
|
|
121
|
+
rule: "mcp.auth.none",
|
|
122
|
+
reason: "MCP auth is not declared and no environment keys are configured.",
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
const authMode = typeof rawAuth === "string" ? rawAuth : rawAuth.mode;
|
|
126
|
+
if (!isMcpAuthMode(authMode)) {
|
|
127
|
+
return {
|
|
128
|
+
mode: "external",
|
|
129
|
+
envKeys: [],
|
|
130
|
+
rule: "mcp.auth.invalid",
|
|
131
|
+
reason: "MCP auth policy is invalid; treat credentials as externally managed.",
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
if (authMode === "env") {
|
|
135
|
+
const rawEnvKeys = typeof rawAuth === "object" && !Array.isArray(rawAuth) ? rawAuth.envKeys : [];
|
|
136
|
+
const envKeys = Array.isArray(rawEnvKeys)
|
|
137
|
+
? uniqueSortedStrings(rawEnvKeys.filter((entry) => typeof entry === "string"))
|
|
138
|
+
: [];
|
|
139
|
+
const sanitizedEnvKeys = envKeys.length > 0 ? envKeys : fallbackEnvKeys;
|
|
140
|
+
return {
|
|
141
|
+
mode: "env",
|
|
142
|
+
envKeys: sanitizedEnvKeys,
|
|
143
|
+
rule: "mcp.auth.env",
|
|
144
|
+
reason: "MCP auth uses environment variable names; values are not exposed.",
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
mode: authMode,
|
|
149
|
+
envKeys: [],
|
|
150
|
+
rule: `mcp.auth.${authMode}`,
|
|
151
|
+
reason: authMode === "none"
|
|
152
|
+
? "MCP auth is explicitly disabled."
|
|
153
|
+
: `MCP auth is handled by ${authMode}; secret values are not exposed.`,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
const ASIDE_UBUNTU_COMPAT_PRESET = {
|
|
157
|
+
name: "aside-ubuntu-compat",
|
|
158
|
+
label: "Aside Ubuntu Compat MCP",
|
|
159
|
+
description: "Ubuntu/zsh browser automation compatibility facade for workflows that expect an Aside-like MCP entrypoint. It uses Playwright MCP and does not provide native macOS Aside APIs on Linux.",
|
|
160
|
+
homepage: "https://playwright.dev",
|
|
161
|
+
repository: "https://github.com/microsoft/playwright-mcp.git",
|
|
162
|
+
license: "Apache-2.0",
|
|
163
|
+
npmPackage: "@playwright/mcp",
|
|
164
|
+
npmVersion: "0.0.76",
|
|
165
|
+
exactPackageSpec: "@playwright/mcp@0.0.76",
|
|
166
|
+
gitTag: "v0.0.76",
|
|
167
|
+
gitCommit: "b301c372ec741289eff1cf6aab9d3bec553f31e2",
|
|
168
|
+
command: "zsh",
|
|
169
|
+
args: ["-lc", "exec npx -y @playwright/mcp@0.0.76"],
|
|
170
|
+
envKeys: ["DISPLAY", "WAYLAND_DISPLAY", "XDG_RUNTIME_DIR"],
|
|
171
|
+
requiredEnvKeys: [],
|
|
172
|
+
optionalEnvKeys: ["DISPLAY", "WAYLAND_DISPLAY", "XDG_RUNTIME_DIR"],
|
|
173
|
+
capabilities: ["tools"],
|
|
174
|
+
samplingPolicy: { mode: "disabled", humanApprovalRequired: false },
|
|
175
|
+
authPolicy: { mode: "none" },
|
|
176
|
+
startupTimeoutSec: 45,
|
|
177
|
+
autoApprove: [],
|
|
178
|
+
installHint: 'Add an MCP server named aside-ubuntu-compat using command zsh and args -lc "exec npx -y @playwright/mcp@0.0.76".',
|
|
179
|
+
notes: [
|
|
180
|
+
"Exact npm pin; never uses @latest.",
|
|
181
|
+
"Apache-2.0 licensed upstream at tag v0.0.76, commit b301c372ec741289eff1cf6aab9d3bec553f31e2.",
|
|
182
|
+
"Compatibility facade only: it does not expose native macOS Aside APIs or a native Aside browser profile on Linux.",
|
|
183
|
+
"Requires zsh, node/npm/npx, and a browser-capable Ubuntu environment.",
|
|
184
|
+
],
|
|
185
|
+
};
|
|
186
|
+
const CHROME_DEVTOOLS_PRESET = {
|
|
187
|
+
name: "chrome-devtools",
|
|
188
|
+
label: "Chrome DevTools MCP",
|
|
189
|
+
description: "Chrome DevTools 기반 브라우저 자동화 MCP 서버. UI reconnaissance, computed style extraction, performance traces, screenshots에 사용합니다.",
|
|
190
|
+
homepage: "https://github.com/ChromeDevTools/chrome-devtools-mcp#readme",
|
|
191
|
+
repository: "https://github.com/ChromeDevTools/chrome-devtools-mcp.git",
|
|
192
|
+
license: "Apache-2.0",
|
|
193
|
+
npmPackage: "chrome-devtools-mcp",
|
|
194
|
+
npmVersion: "1.4.0",
|
|
195
|
+
exactPackageSpec: "chrome-devtools-mcp@1.4.0",
|
|
196
|
+
gitTag: "chrome-devtools-mcp-v1.4.0",
|
|
197
|
+
gitCommit: "0aaa8e3cc0e9ae55b1ef5b456d6d25526015b886",
|
|
198
|
+
command: "npx",
|
|
199
|
+
args: ["-y", "chrome-devtools-mcp@1.4.0"],
|
|
200
|
+
envKeys: [],
|
|
201
|
+
requiredEnvKeys: [],
|
|
202
|
+
optionalEnvKeys: [],
|
|
203
|
+
capabilities: ["tools"],
|
|
204
|
+
samplingPolicy: { mode: "disabled", humanApprovalRequired: false },
|
|
205
|
+
authPolicy: { mode: "none" },
|
|
206
|
+
startupTimeoutSec: 45,
|
|
207
|
+
autoApprove: [],
|
|
208
|
+
installHint: "Add an MCP server named chrome-devtools using command npx and args -y chrome-devtools-mcp@1.4.0.",
|
|
209
|
+
notes: [
|
|
210
|
+
"Exact npm pin; never uses @latest.",
|
|
211
|
+
"Apache-2.0 licensed upstream at tag chrome-devtools-mcp-v1.4.0, commit 0aaa8e3cc0e9ae55b1ef5b456d6d25526015b886.",
|
|
212
|
+
"Use for browser reconnaissance, screenshots, performance traces, and computed-style capture.",
|
|
213
|
+
],
|
|
214
|
+
};
|
|
215
|
+
const CONTEXT7_PRESET = {
|
|
216
|
+
name: "context7",
|
|
217
|
+
label: "Context7 MCP",
|
|
218
|
+
description: "Library/framework documentation MCP server. Use it to fetch current docs for React, Next.js, Tailwind, shadcn/ui, Playwright, and @rhwp/core APIs.",
|
|
219
|
+
homepage: "https://github.com/upstash/context7#readme",
|
|
220
|
+
repository: "https://github.com/upstash/context7.git",
|
|
221
|
+
license: "MIT",
|
|
222
|
+
npmPackage: "@upstash/context7-mcp",
|
|
223
|
+
npmVersion: "3.2.2",
|
|
224
|
+
exactPackageSpec: "@upstash/context7-mcp@3.2.2",
|
|
225
|
+
gitTag: "@upstash/context7-mcp@3.2.2",
|
|
226
|
+
gitCommit: "18e6d4727bbcfb4001a8a17337b0f0f717f1b4fd",
|
|
227
|
+
command: "npx",
|
|
228
|
+
args: ["-y", "@upstash/context7-mcp@3.2.2"],
|
|
229
|
+
envKeys: [],
|
|
230
|
+
requiredEnvKeys: [],
|
|
231
|
+
optionalEnvKeys: [],
|
|
232
|
+
capabilities: ["tools"],
|
|
233
|
+
samplingPolicy: { mode: "disabled", humanApprovalRequired: false },
|
|
234
|
+
authPolicy: { mode: "none" },
|
|
235
|
+
startupTimeoutSec: 30,
|
|
236
|
+
autoApprove: [],
|
|
237
|
+
installHint: "Add an MCP server named context7 using command npx and args -y @upstash/context7-mcp@3.2.2.",
|
|
238
|
+
notes: [
|
|
239
|
+
"Exact npm pin; never uses @latest.",
|
|
240
|
+
"MIT licensed upstream at tag @upstash/context7-mcp@3.2.2, commit 18e6d4727bbcfb4001a8a17337b0f0f717f1b4fd.",
|
|
241
|
+
"Use for current framework and package documentation before coding against external APIs.",
|
|
242
|
+
],
|
|
243
|
+
};
|
|
2
244
|
const KOREAN_LAW_PRESET = {
|
|
3
245
|
name: "korean-law",
|
|
4
246
|
label: "Korean Law MCP",
|
|
@@ -16,6 +258,9 @@ const KOREAN_LAW_PRESET = {
|
|
|
16
258
|
envKeys: ["LAW_OC", "KOREAN_LAW_API_KEY"],
|
|
17
259
|
requiredEnvKeys: ["LAW_OC"],
|
|
18
260
|
optionalEnvKeys: ["KOREAN_LAW_API_KEY"],
|
|
261
|
+
capabilities: ["tools"],
|
|
262
|
+
samplingPolicy: { mode: "disabled", humanApprovalRequired: false },
|
|
263
|
+
authPolicy: { mode: "env", envKeys: ["LAW_OC", "KOREAN_LAW_API_KEY"] },
|
|
19
264
|
startupTimeoutSec: 30,
|
|
20
265
|
autoApprove: [],
|
|
21
266
|
installHint: "Add an MCP server named korean-law using command npx and args -y korean-law-mcp@4.4.0; set LAW_OC from your shell or secret manager.",
|
|
@@ -25,7 +270,47 @@ const KOREAN_LAW_PRESET = {
|
|
|
25
270
|
"Env values are intentionally not embedded in the preset.",
|
|
26
271
|
],
|
|
27
272
|
};
|
|
28
|
-
const
|
|
273
|
+
const PLAYWRIGHT_PRESET = {
|
|
274
|
+
name: "playwright",
|
|
275
|
+
label: "Playwright MCP",
|
|
276
|
+
description: "Playwright 기반 browser automation MCP 서버. Visual QA, responsive screenshots, interaction sweeps, visual diff evidence에 사용합니다.",
|
|
277
|
+
homepage: "https://playwright.dev",
|
|
278
|
+
repository: "https://github.com/microsoft/playwright-mcp.git",
|
|
279
|
+
license: "Apache-2.0",
|
|
280
|
+
npmPackage: "@playwright/mcp",
|
|
281
|
+
npmVersion: "0.0.76",
|
|
282
|
+
exactPackageSpec: "@playwright/mcp@0.0.76",
|
|
283
|
+
gitTag: "v0.0.76",
|
|
284
|
+
gitCommit: "b301c372ec741289eff1cf6aab9d3bec553f31e2",
|
|
285
|
+
command: "npx",
|
|
286
|
+
args: ["-y", "@playwright/mcp@0.0.76"],
|
|
287
|
+
envKeys: [],
|
|
288
|
+
requiredEnvKeys: [],
|
|
289
|
+
optionalEnvKeys: [],
|
|
290
|
+
capabilities: ["tools"],
|
|
291
|
+
samplingPolicy: { mode: "disabled", humanApprovalRequired: false },
|
|
292
|
+
authPolicy: { mode: "none" },
|
|
293
|
+
startupTimeoutSec: 45,
|
|
294
|
+
autoApprove: [],
|
|
295
|
+
installHint: "Add an MCP server named playwright using command npx and args -y @playwright/mcp@0.0.76.",
|
|
296
|
+
notes: [
|
|
297
|
+
"Exact npm pin; never uses @latest.",
|
|
298
|
+
"Apache-2.0 licensed upstream at tag v0.0.76, commit b301c372ec741289eff1cf6aab9d3bec553f31e2.",
|
|
299
|
+
"Use for deterministic screenshots, viewport sweeps, interactions, and visual QA artifacts.",
|
|
300
|
+
],
|
|
301
|
+
};
|
|
302
|
+
const BUILTIN_MCP_PRESETS = [
|
|
303
|
+
ASIDE_UBUNTU_COMPAT_PRESET,
|
|
304
|
+
CHROME_DEVTOOLS_PRESET,
|
|
305
|
+
CONTEXT7_PRESET,
|
|
306
|
+
KOREAN_LAW_PRESET,
|
|
307
|
+
PLAYWRIGHT_PRESET,
|
|
308
|
+
];
|
|
309
|
+
function buildShellEnvForPreset(preset) {
|
|
310
|
+
if (preset.name === "korean-law")
|
|
311
|
+
return { LAW_OC: LAW_OC_ENV_PLACEHOLDER };
|
|
312
|
+
return {};
|
|
313
|
+
}
|
|
29
314
|
function clonePreset(preset) {
|
|
30
315
|
return {
|
|
31
316
|
...preset,
|
|
@@ -33,6 +318,12 @@ function clonePreset(preset) {
|
|
|
33
318
|
envKeys: [...preset.envKeys],
|
|
34
319
|
requiredEnvKeys: [...preset.requiredEnvKeys],
|
|
35
320
|
optionalEnvKeys: [...preset.optionalEnvKeys],
|
|
321
|
+
capabilities: [...preset.capabilities],
|
|
322
|
+
samplingPolicy: { ...preset.samplingPolicy },
|
|
323
|
+
authPolicy: {
|
|
324
|
+
...preset.authPolicy,
|
|
325
|
+
...(preset.authPolicy.envKeys ? { envKeys: [...preset.authPolicy.envKeys] } : {}),
|
|
326
|
+
},
|
|
36
327
|
autoApprove: [...preset.autoApprove],
|
|
37
328
|
notes: [...preset.notes],
|
|
38
329
|
};
|
|
@@ -49,15 +340,17 @@ export function buildBuiltinMcpServerConfig(name, options = {}) {
|
|
|
49
340
|
if (!preset)
|
|
50
341
|
return undefined;
|
|
51
342
|
const envMode = options.envMode ?? "shell";
|
|
343
|
+
const shellEnv = envMode === "shell" ? buildShellEnvForPreset(preset) : {};
|
|
52
344
|
return {
|
|
53
345
|
command: preset.command,
|
|
54
346
|
args: [...preset.args],
|
|
55
|
-
...(
|
|
347
|
+
...(Object.keys(shellEnv).length > 0 ? { env: shellEnv } : {}),
|
|
56
348
|
startup_timeout_sec: preset.startupTimeoutSec,
|
|
57
349
|
...(preset.autoApprove.length > 0 ? { autoApprove: [...preset.autoApprove] } : {}),
|
|
58
350
|
};
|
|
59
351
|
}
|
|
60
352
|
export function summarizeBuiltinMcpPreset(preset) {
|
|
353
|
+
const capabilityDecision = decideMcpCapabilities(preset.capabilities);
|
|
61
354
|
return {
|
|
62
355
|
name: preset.name,
|
|
63
356
|
label: preset.label,
|
|
@@ -72,6 +365,9 @@ export function summarizeBuiltinMcpPreset(preset) {
|
|
|
72
365
|
envKeys: [...preset.envKeys],
|
|
73
366
|
requiredEnvKeys: [...preset.requiredEnvKeys],
|
|
74
367
|
optionalEnvKeys: [...preset.optionalEnvKeys],
|
|
368
|
+
capabilityDecision,
|
|
369
|
+
samplingDecision: decideMcpSampling(capabilityDecision, preset.samplingPolicy),
|
|
370
|
+
authDecision: decideMcpAuth(preset.authPolicy, preset.envKeys),
|
|
75
371
|
startupTimeoutSec: preset.startupTimeoutSec,
|
|
76
372
|
autoApproveCount: preset.autoApprove.length,
|
|
77
373
|
installHint: preset.installHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-presets.js","sourceRoot":"","sources":["../../src/core/mcp-presets.ts"],"names":[],"mappings":"AAsDA,MAAM,sBAAsB,GAAG,GAAG,GAAG,UAAU,CAAC;AAEh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AU;QAC7B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,cAAc,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAC5D,OAAO,EAAE,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;QAC5B,eAAe,EAAE,CAAC,GAAG,MAAM,CAAC,eAAe,CAAC;QAC5C,eAAe,EAAE,CAAC,GAAG,MAAM,CAAC,eAAe,CAAC;QAC5C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;QAC3C,gBAAgB,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM;QAC3C,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;KACxB,CAAC;AAAA,CACF","sourcesContent":["export type BuiltinMcpPresetName = \"korean-law\";\nexport type BuiltinMcpEnvMode = \"shell\" | \"empty\";\n\nexport interface BuiltinMcpServerConfig {\n\tcommand: string;\n\targs: string[];\n\tenv?: Record<string, string>;\n\tstartup_timeout_sec?: number;\n\tautoApprove?: string[];\n}\n\nexport interface BuiltinMcpPreset {\n\tname: BuiltinMcpPresetName;\n\tlabel: string;\n\tdescription: string;\n\thomepage: string;\n\trepository: string;\n\tlicense: \"MIT\";\n\tnpmPackage: string;\n\tnpmVersion: string;\n\texactPackageSpec: string;\n\tgitTag: string;\n\tgitCommit: string;\n\tcommand: string;\n\targs: readonly string[];\n\tenvKeys: readonly string[];\n\trequiredEnvKeys: readonly string[];\n\toptionalEnvKeys: readonly string[];\n\tstartupTimeoutSec: number;\n\tautoApprove: readonly string[];\n\tinstallHint: string;\n\tnotes: readonly string[];\n}\n\nexport interface BuiltinMcpPresetSummary {\n\tname: BuiltinMcpPresetName;\n\tlabel: string;\n\tdescription: string;\n\thomepage: string;\n\trepository: string;\n\tlicense: string;\n\texactPackageSpec: string;\n\tgitTag: string;\n\tgitCommit: string;\n\tcommandSummary: string;\n\tenvKeys: string[];\n\trequiredEnvKeys: string[];\n\toptionalEnvKeys: string[];\n\tstartupTimeoutSec: number;\n\tautoApproveCount: number;\n\tinstallHint: string;\n\tnotes: string[];\n}\n\nconst LAW_OC_ENV_PLACEHOLDER = \"$\" + \"{LAW_OC}\";\n\nconst KOREAN_LAW_PRESET: BuiltinMcpPreset = {\n\tname: \"korean-law\",\n\tlabel: \"Korean Law MCP\",\n\tdescription:\n\t\t\"법제처 Open API 기반 한국 법령·판례·조례·조약 MCP 서버. Requires a LAW_OC or KOREAN_LAW_API_KEY value at runtime.\",\n\thomepage: \"https://github.com/chrisryugj/korean-law-mcp\",\n\trepository: \"https://github.com/chrisryugj/korean-law-mcp.git\",\n\tlicense: \"MIT\",\n\tnpmPackage: \"korean-law-mcp\",\n\tnpmVersion: \"4.4.0\",\n\texactPackageSpec: \"korean-law-mcp@4.4.0\",\n\tgitTag: \"v4.4.0\",\n\tgitCommit: \"2ef8f1827d349381fc2bde15120c803fd2e7bfed\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"korean-law-mcp@4.4.0\"],\n\tenvKeys: [\"LAW_OC\", \"KOREAN_LAW_API_KEY\"],\n\trequiredEnvKeys: [\"LAW_OC\"],\n\toptionalEnvKeys: [\"KOREAN_LAW_API_KEY\"],\n\tstartupTimeoutSec: 30,\n\tautoApprove: [],\n\tinstallHint:\n\t\t\"Add an MCP server named korean-law using command npx and args -y korean-law-mcp@4.4.0; set LAW_OC from your shell or secret manager.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"MIT licensed upstream at tag v4.4.0, commit 2ef8f1827d349381fc2bde15120c803fd2e7bfed.\",\n\t\t\"Env values are intentionally not embedded in the preset.\",\n\t],\n};\n\nconst BUILTIN_MCP_PRESETS: ReadonlyArray<BuiltinMcpPreset> = [KOREAN_LAW_PRESET];\n\nfunction clonePreset(preset: BuiltinMcpPreset): BuiltinMcpPreset {\n\treturn {\n\t\t...preset,\n\t\targs: [...preset.args],\n\t\tenvKeys: [...preset.envKeys],\n\t\trequiredEnvKeys: [...preset.requiredEnvKeys],\n\t\toptionalEnvKeys: [...preset.optionalEnvKeys],\n\t\tautoApprove: [...preset.autoApprove],\n\t\tnotes: [...preset.notes],\n\t};\n}\n\nexport function listBuiltinMcpPresets(): BuiltinMcpPreset[] {\n\treturn BUILTIN_MCP_PRESETS.map(clonePreset);\n}\n\nexport function getBuiltinMcpPreset(name: string): BuiltinMcpPreset | undefined {\n\tconst preset = BUILTIN_MCP_PRESETS.find((entry) => entry.name === name);\n\treturn preset ? clonePreset(preset) : undefined;\n}\n\nexport function buildBuiltinMcpServerConfig(\n\tname: string,\n\toptions: { envMode?: BuiltinMcpEnvMode } = {},\n): BuiltinMcpServerConfig | undefined {\n\tconst preset = getBuiltinMcpPreset(name);\n\tif (!preset) return undefined;\n\tconst envMode = options.envMode ?? \"shell\";\n\treturn {\n\t\tcommand: preset.command,\n\t\targs: [...preset.args],\n\t\t...(envMode === \"shell\" ? { env: { LAW_OC: LAW_OC_ENV_PLACEHOLDER } } : {}),\n\t\tstartup_timeout_sec: preset.startupTimeoutSec,\n\t\t...(preset.autoApprove.length > 0 ? { autoApprove: [...preset.autoApprove] } : {}),\n\t};\n}\n\nexport function summarizeBuiltinMcpPreset(preset: BuiltinMcpPreset): BuiltinMcpPresetSummary {\n\treturn {\n\t\tname: preset.name,\n\t\tlabel: preset.label,\n\t\tdescription: preset.description,\n\t\thomepage: preset.homepage,\n\t\trepository: preset.repository,\n\t\tlicense: preset.license,\n\t\texactPackageSpec: preset.exactPackageSpec,\n\t\tgitTag: preset.gitTag,\n\t\tgitCommit: preset.gitCommit,\n\t\tcommandSummary: `${preset.command} ${preset.args.join(\" \")}`,\n\t\tenvKeys: [...preset.envKeys],\n\t\trequiredEnvKeys: [...preset.requiredEnvKeys],\n\t\toptionalEnvKeys: [...preset.optionalEnvKeys],\n\t\tstartupTimeoutSec: preset.startupTimeoutSec,\n\t\tautoApproveCount: preset.autoApprove.length,\n\t\tinstallHint: preset.installHint,\n\t\tnotes: [...preset.notes],\n\t};\n}\n"]}
|
|
1
|
+
{"version":3,"file":"mcp-presets.js","sourceRoot":"","sources":["../../src/core/mcp-presets.ts"],"names":[],"mappings":"AAiGA,MAAM,sBAAsB,GAAG,GAAG,GAAG,UAAU,CAAC;AAChD,MAAM,sBAAsB,GAAkC,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAE5G,SAAS,mBAAmB,CAAC,MAAyB,EAAY;IACjE,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAAA,CACpG;AAED,SAAS,wBAAwB,CAAC,MAAyB,EAAwB;IAClF,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IACjC,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC;AAAA,CAC/E;AAED,SAAS,iBAAiB,CAAC,KAAa,EAA+B;IACtE,OAAO,sBAAsB,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC;AAAA,CACpE;AAED,SAAS,aAAa,CAAC,KAAc,EAAwB;IAC5D,OAAO,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,UAAU,CAAC;AAAA,CACxF;AAED,SAAS,iBAAiB,CAAC,KAAc,E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ACN,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,cAAc,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAC5D,OAAO,EAAE,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;QAC5B,eAAe,EAAE,CAAC,GAAG,MAAM,CAAC,eAAe,CAAC;QAC5C,eAAe,EAAE,CAAC,GAAG,MAAM,CAAC,eAAe,CAAC;QAC5C,kBAAkB;QAClB,gBAAgB,EAAE,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC;QAC9E,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC;QAC9D,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;QAC3C,gBAAgB,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM;QAC3C,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;KACxB,CAAC;AAAA,CACF","sourcesContent":["export type BuiltinMcpPresetName = \"aside-ubuntu-compat\" | \"chrome-devtools\" | \"context7\" | \"korean-law\" | \"playwright\";\nexport type BuiltinMcpEnvMode = \"shell\" | \"empty\";\nexport type BuiltinMcpPresetLicense = \"Apache-2.0\" | \"MIT\";\nexport type McpKnownCapability = \"tools\" | \"resources\" | \"prompts\" | \"sampling\";\nexport type McpAuthMode = \"none\" | \"env\" | \"oauth\" | \"external\";\nexport type McpSamplingMode = \"disabled\" | \"client-gated\";\n\nexport interface McpCapabilityDecision {\n\ttrustedCapabilities: McpKnownCapability[];\n\tunknownCapabilities: string[];\n\tmalformed: boolean;\n\trule: string;\n\treason: string;\n}\n\nexport interface McpSamplingDecision {\n\tallowed: boolean;\n\tmode: McpSamplingMode;\n\thumanApprovalRequired: boolean;\n\trule: string;\n\treason: string;\n}\n\nexport interface McpAuthDecision {\n\tmode: McpAuthMode;\n\tenvKeys: string[];\n\trule: string;\n\treason: string;\n}\n\nexport interface McpSamplingPolicyInput {\n\tmode: McpSamplingMode;\n\thumanApprovalRequired: boolean;\n}\n\nexport interface McpAuthPolicyInput {\n\tmode: McpAuthMode;\n\tenvKeys?: readonly string[];\n}\n\nexport interface BuiltinMcpServerConfig {\n\tcommand: string;\n\targs: string[];\n\tenv?: Record<string, string>;\n\tstartup_timeout_sec?: number;\n\tautoApprove?: string[];\n}\n\nexport interface BuiltinMcpPreset {\n\tname: BuiltinMcpPresetName;\n\tlabel: string;\n\tdescription: string;\n\thomepage: string;\n\trepository: string;\n\tlicense: BuiltinMcpPresetLicense;\n\tnpmPackage: string;\n\tnpmVersion: string;\n\texactPackageSpec: string;\n\tgitTag: string;\n\tgitCommit: string;\n\tcommand: string;\n\targs: readonly string[];\n\tenvKeys: readonly string[];\n\trequiredEnvKeys: readonly string[];\n\toptionalEnvKeys: readonly string[];\n\tcapabilities: readonly McpKnownCapability[];\n\tsamplingPolicy: McpSamplingPolicyInput;\n\tauthPolicy: McpAuthPolicyInput;\n\tstartupTimeoutSec: number;\n\tautoApprove: readonly string[];\n\tinstallHint: string;\n\tnotes: readonly string[];\n}\n\nexport interface BuiltinMcpPresetSummary {\n\tname: BuiltinMcpPresetName;\n\tlabel: string;\n\tdescription: string;\n\thomepage: string;\n\trepository: string;\n\tlicense: string;\n\texactPackageSpec: string;\n\tgitTag: string;\n\tgitCommit: string;\n\tcommandSummary: string;\n\tenvKeys: string[];\n\trequiredEnvKeys: string[];\n\toptionalEnvKeys: string[];\n\tcapabilityDecision: McpCapabilityDecision;\n\tsamplingDecision: McpSamplingDecision;\n\tauthDecision: McpAuthDecision;\n\tstartupTimeoutSec: number;\n\tautoApproveCount: number;\n\tinstallHint: string;\n\tnotes: string[];\n}\n\nconst LAW_OC_ENV_PLACEHOLDER = \"$\" + \"{LAW_OC}\";\nconst KNOWN_MCP_CAPABILITIES: readonly McpKnownCapability[] = [\"tools\", \"resources\", \"prompts\", \"sampling\"];\n\nfunction uniqueSortedStrings(values: readonly string[]): string[] {\n\treturn [...new Set(values.map((value) => value.trim()).filter((value) => value.length > 0))].sort();\n}\n\nfunction orderedKnownCapabilities(values: readonly string[]): McpKnownCapability[] {\n\tconst declared = new Set(values);\n\treturn KNOWN_MCP_CAPABILITIES.filter((capability) => declared.has(capability));\n}\n\nfunction isKnownCapability(value: string): value is McpKnownCapability {\n\treturn KNOWN_MCP_CAPABILITIES.includes(value as McpKnownCapability);\n}\n\nfunction isMcpAuthMode(value: unknown): value is McpAuthMode {\n\treturn value === \"none\" || value === \"env\" || value === \"oauth\" || value === \"external\";\n}\n\nfunction isMcpSamplingMode(value: unknown): value is McpSamplingMode {\n\treturn value === \"disabled\" || value === \"client-gated\";\n}\n\nexport function decideMcpCapabilities(rawCapabilities: unknown): McpCapabilityDecision {\n\tif (!rawCapabilities) {\n\t\treturn {\n\t\t\ttrustedCapabilities: [],\n\t\t\tunknownCapabilities: [],\n\t\t\tmalformed: false,\n\t\t\trule: \"mcp.capabilities.unspecified\",\n\t\t\treason: \"MCP capabilities were not declared.\",\n\t\t};\n\t}\n\n\tlet declared: string[] = [];\n\tlet malformed = false;\n\n\tif (Array.isArray(rawCapabilities)) {\n\t\tfor (const capability of rawCapabilities) {\n\t\t\tif (typeof capability === \"string\") {\n\t\t\t\tdeclared.push(capability.trim());\n\t\t\t} else {\n\t\t\t\tmalformed = true;\n\t\t\t}\n\t\t}\n\t} else if (typeof rawCapabilities === \"object\") {\n\t\tfor (const [capability, enabled] of Object.entries(rawCapabilities as Record<string, unknown>)) {\n\t\t\tif (typeof enabled !== \"boolean\") {\n\t\t\t\tmalformed = true;\n\t\t\t}\n\t\t\tif (enabled === true) {\n\t\t\t\tdeclared.push(capability.trim());\n\t\t\t}\n\t\t}\n\t} else {\n\t\tmalformed = true;\n\t}\n\n\tdeclared = uniqueSortedStrings(declared);\n\tconst trustedCapabilities = orderedKnownCapabilities(declared.filter(isKnownCapability));\n\tconst unknownCapabilities = declared.filter((capability) => !isKnownCapability(capability));\n\tconst hasUntrustedInput = malformed || unknownCapabilities.length > 0;\n\treturn {\n\t\ttrustedCapabilities,\n\t\tunknownCapabilities,\n\t\tmalformed,\n\t\trule: hasUntrustedInput ? \"mcp.capabilities.untrusted_input\" : \"mcp.capabilities.declared\",\n\t\treason: hasUntrustedInput\n\t\t\t? \"Only known MCP capabilities are trusted; unknown or malformed entries are reported but ignored.\"\n\t\t\t: \"MCP capabilities were declared with known capability names.\",\n\t};\n}\n\nexport function decideMcpSampling(capabilityDecision: McpCapabilityDecision, rawPolicy: unknown): McpSamplingDecision {\n\tif (!capabilityDecision.trustedCapabilities.includes(\"sampling\")) {\n\t\treturn {\n\t\t\tallowed: false,\n\t\t\tmode: \"disabled\",\n\t\t\thumanApprovalRequired: false,\n\t\t\trule: \"mcp.sampling.capability_missing\",\n\t\t\treason: \"MCP sampling is denied because the trusted sampling capability is not declared.\",\n\t\t};\n\t}\n\n\tif (!rawPolicy || typeof rawPolicy !== \"object\" || Array.isArray(rawPolicy)) {\n\t\treturn {\n\t\t\tallowed: false,\n\t\t\tmode: \"disabled\",\n\t\t\thumanApprovalRequired: false,\n\t\t\trule: \"mcp.sampling.policy_missing\",\n\t\t\treason: \"MCP sampling is denied until an explicit client-gated policy with human approval is present.\",\n\t\t};\n\t}\n\n\tconst policy = rawPolicy as Record<string, unknown>;\n\tconst mode = policy.mode;\n\tconst humanApprovalRequired = policy.humanApprovalRequired;\n\tif (isMcpSamplingMode(mode) && mode === \"client-gated\" && humanApprovalRequired === true) {\n\t\treturn {\n\t\t\tallowed: true,\n\t\t\tmode,\n\t\t\thumanApprovalRequired: true,\n\t\t\trule: \"mcp.sampling.client_gated_human_approval\",\n\t\t\treason: \"MCP sampling is client-gated and requires human approval.\",\n\t\t};\n\t}\n\n\treturn {\n\t\tallowed: false,\n\t\tmode: isMcpSamplingMode(mode) ? mode : \"disabled\",\n\t\thumanApprovalRequired: humanApprovalRequired === true,\n\t\trule: \"mcp.sampling.policy_invalid\",\n\t\treason: \"MCP sampling is denied because policy is not client-gated with humanApprovalRequired true.\",\n\t};\n}\n\nexport function decideMcpAuth(rawAuth: unknown, declaredEnvKeys: readonly string[]): McpAuthDecision {\n\tconst fallbackEnvKeys = uniqueSortedStrings(declaredEnvKeys);\n\tif (!rawAuth) {\n\t\tif (fallbackEnvKeys.length > 0) {\n\t\t\treturn {\n\t\t\t\tmode: \"env\",\n\t\t\t\tenvKeys: fallbackEnvKeys,\n\t\t\t\trule: \"mcp.auth.env_inferred\",\n\t\t\t\treason: \"MCP auth uses declared environment variable names; values are not exposed.\",\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tmode: \"none\",\n\t\t\tenvKeys: [],\n\t\t\trule: \"mcp.auth.none\",\n\t\t\treason: \"MCP auth is not declared and no environment keys are configured.\",\n\t\t};\n\t}\n\n\tconst authMode = typeof rawAuth === \"string\" ? rawAuth : (rawAuth as Record<string, unknown>).mode;\n\tif (!isMcpAuthMode(authMode)) {\n\t\treturn {\n\t\t\tmode: \"external\",\n\t\t\tenvKeys: [],\n\t\t\trule: \"mcp.auth.invalid\",\n\t\t\treason: \"MCP auth policy is invalid; treat credentials as externally managed.\",\n\t\t};\n\t}\n\n\tif (authMode === \"env\") {\n\t\tconst rawEnvKeys =\n\t\t\ttypeof rawAuth === \"object\" && !Array.isArray(rawAuth) ? (rawAuth as Record<string, unknown>).envKeys : [];\n\t\tconst envKeys = Array.isArray(rawEnvKeys)\n\t\t\t? uniqueSortedStrings(rawEnvKeys.filter((entry): entry is string => typeof entry === \"string\"))\n\t\t\t: [];\n\t\tconst sanitizedEnvKeys = envKeys.length > 0 ? envKeys : fallbackEnvKeys;\n\t\treturn {\n\t\t\tmode: \"env\",\n\t\t\tenvKeys: sanitizedEnvKeys,\n\t\t\trule: \"mcp.auth.env\",\n\t\t\treason: \"MCP auth uses environment variable names; values are not exposed.\",\n\t\t};\n\t}\n\n\treturn {\n\t\tmode: authMode,\n\t\tenvKeys: [],\n\t\trule: `mcp.auth.${authMode}`,\n\t\treason:\n\t\t\tauthMode === \"none\"\n\t\t\t\t? \"MCP auth is explicitly disabled.\"\n\t\t\t\t: `MCP auth is handled by ${authMode}; secret values are not exposed.`,\n\t};\n}\n\nconst ASIDE_UBUNTU_COMPAT_PRESET: BuiltinMcpPreset = {\n\tname: \"aside-ubuntu-compat\",\n\tlabel: \"Aside Ubuntu Compat MCP\",\n\tdescription:\n\t\t\"Ubuntu/zsh browser automation compatibility facade for workflows that expect an Aside-like MCP entrypoint. It uses Playwright MCP and does not provide native macOS Aside APIs on Linux.\",\n\thomepage: \"https://playwright.dev\",\n\trepository: \"https://github.com/microsoft/playwright-mcp.git\",\n\tlicense: \"Apache-2.0\",\n\tnpmPackage: \"@playwright/mcp\",\n\tnpmVersion: \"0.0.76\",\n\texactPackageSpec: \"@playwright/mcp@0.0.76\",\n\tgitTag: \"v0.0.76\",\n\tgitCommit: \"b301c372ec741289eff1cf6aab9d3bec553f31e2\",\n\tcommand: \"zsh\",\n\targs: [\"-lc\", \"exec npx -y @playwright/mcp@0.0.76\"],\n\tenvKeys: [\"DISPLAY\", \"WAYLAND_DISPLAY\", \"XDG_RUNTIME_DIR\"],\n\trequiredEnvKeys: [],\n\toptionalEnvKeys: [\"DISPLAY\", \"WAYLAND_DISPLAY\", \"XDG_RUNTIME_DIR\"],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"none\" },\n\tstartupTimeoutSec: 45,\n\tautoApprove: [],\n\tinstallHint:\n\t\t'Add an MCP server named aside-ubuntu-compat using command zsh and args -lc \"exec npx -y @playwright/mcp@0.0.76\".',\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"Apache-2.0 licensed upstream at tag v0.0.76, commit b301c372ec741289eff1cf6aab9d3bec553f31e2.\",\n\t\t\"Compatibility facade only: it does not expose native macOS Aside APIs or a native Aside browser profile on Linux.\",\n\t\t\"Requires zsh, node/npm/npx, and a browser-capable Ubuntu environment.\",\n\t],\n};\n\nconst CHROME_DEVTOOLS_PRESET: BuiltinMcpPreset = {\n\tname: \"chrome-devtools\",\n\tlabel: \"Chrome DevTools MCP\",\n\tdescription:\n\t\t\"Chrome DevTools 기반 브라우저 자동화 MCP 서버. UI reconnaissance, computed style extraction, performance traces, screenshots에 사용합니다.\",\n\thomepage: \"https://github.com/ChromeDevTools/chrome-devtools-mcp#readme\",\n\trepository: \"https://github.com/ChromeDevTools/chrome-devtools-mcp.git\",\n\tlicense: \"Apache-2.0\",\n\tnpmPackage: \"chrome-devtools-mcp\",\n\tnpmVersion: \"1.4.0\",\n\texactPackageSpec: \"chrome-devtools-mcp@1.4.0\",\n\tgitTag: \"chrome-devtools-mcp-v1.4.0\",\n\tgitCommit: \"0aaa8e3cc0e9ae55b1ef5b456d6d25526015b886\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"chrome-devtools-mcp@1.4.0\"],\n\tenvKeys: [],\n\trequiredEnvKeys: [],\n\toptionalEnvKeys: [],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"none\" },\n\tstartupTimeoutSec: 45,\n\tautoApprove: [],\n\tinstallHint: \"Add an MCP server named chrome-devtools using command npx and args -y chrome-devtools-mcp@1.4.0.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"Apache-2.0 licensed upstream at tag chrome-devtools-mcp-v1.4.0, commit 0aaa8e3cc0e9ae55b1ef5b456d6d25526015b886.\",\n\t\t\"Use for browser reconnaissance, screenshots, performance traces, and computed-style capture.\",\n\t],\n};\n\nconst CONTEXT7_PRESET: BuiltinMcpPreset = {\n\tname: \"context7\",\n\tlabel: \"Context7 MCP\",\n\tdescription:\n\t\t\"Library/framework documentation MCP server. Use it to fetch current docs for React, Next.js, Tailwind, shadcn/ui, Playwright, and @rhwp/core APIs.\",\n\thomepage: \"https://github.com/upstash/context7#readme\",\n\trepository: \"https://github.com/upstash/context7.git\",\n\tlicense: \"MIT\",\n\tnpmPackage: \"@upstash/context7-mcp\",\n\tnpmVersion: \"3.2.2\",\n\texactPackageSpec: \"@upstash/context7-mcp@3.2.2\",\n\tgitTag: \"@upstash/context7-mcp@3.2.2\",\n\tgitCommit: \"18e6d4727bbcfb4001a8a17337b0f0f717f1b4fd\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"@upstash/context7-mcp@3.2.2\"],\n\tenvKeys: [],\n\trequiredEnvKeys: [],\n\toptionalEnvKeys: [],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"none\" },\n\tstartupTimeoutSec: 30,\n\tautoApprove: [],\n\tinstallHint: \"Add an MCP server named context7 using command npx and args -y @upstash/context7-mcp@3.2.2.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"MIT licensed upstream at tag @upstash/context7-mcp@3.2.2, commit 18e6d4727bbcfb4001a8a17337b0f0f717f1b4fd.\",\n\t\t\"Use for current framework and package documentation before coding against external APIs.\",\n\t],\n};\n\nconst KOREAN_LAW_PRESET: BuiltinMcpPreset = {\n\tname: \"korean-law\",\n\tlabel: \"Korean Law MCP\",\n\tdescription:\n\t\t\"법제처 Open API 기반 한국 법령·판례·조례·조약 MCP 서버. Requires a LAW_OC or KOREAN_LAW_API_KEY value at runtime.\",\n\thomepage: \"https://github.com/chrisryugj/korean-law-mcp\",\n\trepository: \"https://github.com/chrisryugj/korean-law-mcp.git\",\n\tlicense: \"MIT\",\n\tnpmPackage: \"korean-law-mcp\",\n\tnpmVersion: \"4.4.0\",\n\texactPackageSpec: \"korean-law-mcp@4.4.0\",\n\tgitTag: \"v4.4.0\",\n\tgitCommit: \"2ef8f1827d349381fc2bde15120c803fd2e7bfed\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"korean-law-mcp@4.4.0\"],\n\tenvKeys: [\"LAW_OC\", \"KOREAN_LAW_API_KEY\"],\n\trequiredEnvKeys: [\"LAW_OC\"],\n\toptionalEnvKeys: [\"KOREAN_LAW_API_KEY\"],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"env\", envKeys: [\"LAW_OC\", \"KOREAN_LAW_API_KEY\"] },\n\tstartupTimeoutSec: 30,\n\tautoApprove: [],\n\tinstallHint:\n\t\t\"Add an MCP server named korean-law using command npx and args -y korean-law-mcp@4.4.0; set LAW_OC from your shell or secret manager.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"MIT licensed upstream at tag v4.4.0, commit 2ef8f1827d349381fc2bde15120c803fd2e7bfed.\",\n\t\t\"Env values are intentionally not embedded in the preset.\",\n\t],\n};\n\nconst PLAYWRIGHT_PRESET: BuiltinMcpPreset = {\n\tname: \"playwright\",\n\tlabel: \"Playwright MCP\",\n\tdescription:\n\t\t\"Playwright 기반 browser automation MCP 서버. Visual QA, responsive screenshots, interaction sweeps, visual diff evidence에 사용합니다.\",\n\thomepage: \"https://playwright.dev\",\n\trepository: \"https://github.com/microsoft/playwright-mcp.git\",\n\tlicense: \"Apache-2.0\",\n\tnpmPackage: \"@playwright/mcp\",\n\tnpmVersion: \"0.0.76\",\n\texactPackageSpec: \"@playwright/mcp@0.0.76\",\n\tgitTag: \"v0.0.76\",\n\tgitCommit: \"b301c372ec741289eff1cf6aab9d3bec553f31e2\",\n\tcommand: \"npx\",\n\targs: [\"-y\", \"@playwright/mcp@0.0.76\"],\n\tenvKeys: [],\n\trequiredEnvKeys: [],\n\toptionalEnvKeys: [],\n\tcapabilities: [\"tools\"],\n\tsamplingPolicy: { mode: \"disabled\", humanApprovalRequired: false },\n\tauthPolicy: { mode: \"none\" },\n\tstartupTimeoutSec: 45,\n\tautoApprove: [],\n\tinstallHint: \"Add an MCP server named playwright using command npx and args -y @playwright/mcp@0.0.76.\",\n\tnotes: [\n\t\t\"Exact npm pin; never uses @latest.\",\n\t\t\"Apache-2.0 licensed upstream at tag v0.0.76, commit b301c372ec741289eff1cf6aab9d3bec553f31e2.\",\n\t\t\"Use for deterministic screenshots, viewport sweeps, interactions, and visual QA artifacts.\",\n\t],\n};\n\nconst BUILTIN_MCP_PRESETS: ReadonlyArray<BuiltinMcpPreset> = [\n\tASIDE_UBUNTU_COMPAT_PRESET,\n\tCHROME_DEVTOOLS_PRESET,\n\tCONTEXT7_PRESET,\n\tKOREAN_LAW_PRESET,\n\tPLAYWRIGHT_PRESET,\n];\n\nfunction buildShellEnvForPreset(preset: BuiltinMcpPreset): Record<string, string> {\n\tif (preset.name === \"korean-law\") return { LAW_OC: LAW_OC_ENV_PLACEHOLDER };\n\treturn {};\n}\n\nfunction clonePreset(preset: BuiltinMcpPreset): BuiltinMcpPreset {\n\treturn {\n\t\t...preset,\n\t\targs: [...preset.args],\n\t\tenvKeys: [...preset.envKeys],\n\t\trequiredEnvKeys: [...preset.requiredEnvKeys],\n\t\toptionalEnvKeys: [...preset.optionalEnvKeys],\n\t\tcapabilities: [...preset.capabilities],\n\t\tsamplingPolicy: { ...preset.samplingPolicy },\n\t\tauthPolicy: {\n\t\t\t...preset.authPolicy,\n\t\t\t...(preset.authPolicy.envKeys ? { envKeys: [...preset.authPolicy.envKeys] } : {}),\n\t\t},\n\t\tautoApprove: [...preset.autoApprove],\n\t\tnotes: [...preset.notes],\n\t};\n}\n\nexport function listBuiltinMcpPresets(): BuiltinMcpPreset[] {\n\treturn BUILTIN_MCP_PRESETS.map(clonePreset);\n}\n\nexport function getBuiltinMcpPreset(name: string): BuiltinMcpPreset | undefined {\n\tconst preset = BUILTIN_MCP_PRESETS.find((entry) => entry.name === name);\n\treturn preset ? clonePreset(preset) : undefined;\n}\n\nexport function buildBuiltinMcpServerConfig(\n\tname: string,\n\toptions: { envMode?: BuiltinMcpEnvMode } = {},\n): BuiltinMcpServerConfig | undefined {\n\tconst preset = getBuiltinMcpPreset(name);\n\tif (!preset) return undefined;\n\tconst envMode = options.envMode ?? \"shell\";\n\tconst shellEnv = envMode === \"shell\" ? buildShellEnvForPreset(preset) : {};\n\treturn {\n\t\tcommand: preset.command,\n\t\targs: [...preset.args],\n\t\t...(Object.keys(shellEnv).length > 0 ? { env: shellEnv } : {}),\n\t\tstartup_timeout_sec: preset.startupTimeoutSec,\n\t\t...(preset.autoApprove.length > 0 ? { autoApprove: [...preset.autoApprove] } : {}),\n\t};\n}\n\nexport function summarizeBuiltinMcpPreset(preset: BuiltinMcpPreset): BuiltinMcpPresetSummary {\n\tconst capabilityDecision = decideMcpCapabilities(preset.capabilities);\n\treturn {\n\t\tname: preset.name,\n\t\tlabel: preset.label,\n\t\tdescription: preset.description,\n\t\thomepage: preset.homepage,\n\t\trepository: preset.repository,\n\t\tlicense: preset.license,\n\t\texactPackageSpec: preset.exactPackageSpec,\n\t\tgitTag: preset.gitTag,\n\t\tgitCommit: preset.gitCommit,\n\t\tcommandSummary: `${preset.command} ${preset.args.join(\" \")}`,\n\t\tenvKeys: [...preset.envKeys],\n\t\trequiredEnvKeys: [...preset.requiredEnvKeys],\n\t\toptionalEnvKeys: [...preset.optionalEnvKeys],\n\t\tcapabilityDecision,\n\t\tsamplingDecision: decideMcpSampling(capabilityDecision, preset.samplingPolicy),\n\t\tauthDecision: decideMcpAuth(preset.authPolicy, preset.envKeys),\n\t\tstartupTimeoutSec: preset.startupTimeoutSec,\n\t\tautoApproveCount: preset.autoApprove.length,\n\t\tinstallHint: preset.installHint,\n\t\tnotes: [...preset.notes],\n\t};\n}\n"]}
|
package/dist/core/messages.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Extends the base AgentMessage type with coding-agent specific message types,
|
|
5
5
|
* and provides a transformer to convert them to LLM-compatible messages.
|
|
6
6
|
*/
|
|
7
|
-
import type { AgentMessage } from "
|
|
8
|
-
import type { ImageContent, Message, TextContent } from "
|
|
7
|
+
import type { AgentMessage } from "omk-agent-core";
|
|
8
|
+
import type { ImageContent, Message, TextContent } from "omk-ai";
|
|
9
9
|
export declare const COMPACTION_SUMMARY_PREFIX = "The conversation history before this point was compacted into the following summary:\n\n<summary>\n";
|
|
10
10
|
export declare const COMPACTION_SUMMARY_SUFFIX = "\n</summary>";
|
|
11
11
|
export declare const BRANCH_SUMMARY_PREFIX = "The following is a summary of a branch that this conversation came back from:\n\n<summary>\n";
|
|
@@ -49,7 +49,7 @@ export interface CompactionSummaryMessage {
|
|
|
49
49
|
tokensBefore: number;
|
|
50
50
|
timestamp: number;
|
|
51
51
|
}
|
|
52
|
-
declare module "
|
|
52
|
+
declare module "omk-agent-core" {
|
|
53
53
|
interface CustomAgentMessages {
|
|
54
54
|
bashExecution: BashExecutionMessage;
|
|
55
55
|
custom: CustomMessage;
|