@georgedong32/ccs 7.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/ccs/continue.md +15 -0
- package/.claude/commands/ccs.md +17 -0
- package/.claude/commands/speckit.analyze.md +184 -0
- package/.claude/commands/speckit.checklist.md +295 -0
- package/.claude/commands/speckit.clarify.md +181 -0
- package/.claude/commands/speckit.constitution.md +84 -0
- package/.claude/commands/speckit.implement.md +198 -0
- package/.claude/commands/speckit.plan.md +153 -0
- package/.claude/commands/speckit.specify.md +306 -0
- package/.claude/commands/speckit.tasks.md +200 -0
- package/.claude/commands/speckit.taskstoissues.md +30 -0
- package/.claude/settings.local.json +9 -0
- package/.claude/skills/ccs-delegation/CLAUDE.md.template +17 -0
- package/.claude/skills/ccs-delegation/SKILL.md +195 -0
- package/.claude/skills/ccs-delegation/references/troubleshooting.md +201 -0
- package/LICENSE +21 -0
- package/README.md +150 -0
- package/config/base-agy.settings.json +10 -0
- package/config/base-claude.settings.json +10 -0
- package/config/base-codex.settings.json +10 -0
- package/config/base-gemini.settings.json +10 -0
- package/config/base-ghcp.settings.json +10 -0
- package/config/base-glm.settings.json +10 -0
- package/config/base-glmt.settings.json +17 -0
- package/config/base-iflow.settings.json +10 -0
- package/config/base-kimi.settings.json +10 -0
- package/config/base-kiro.settings.json +10 -0
- package/config/base-km.settings.json +10 -0
- package/config/base-llamacpp.settings.json +10 -0
- package/config/base-mm.settings.json +10 -0
- package/config/base-ollama-cloud.settings.json +10 -0
- package/config/base-ollama.settings.json +10 -0
- package/config/base-qwen.settings.json +10 -0
- package/config/config.example.json +6 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +24 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/services/cliproxy-profile-bridge.d.ts +13 -0
- package/dist/api/services/cliproxy-profile-bridge.d.ts.map +1 -0
- package/dist/api/services/cliproxy-profile-bridge.js +147 -0
- package/dist/api/services/cliproxy-profile-bridge.js.map +1 -0
- package/dist/api/services/index.d.ts +17 -0
- package/dist/api/services/index.d.ts.map +1 -0
- package/dist/api/services/index.js +59 -0
- package/dist/api/services/index.js.map +1 -0
- package/dist/api/services/openrouter-catalog.d.ts +30 -0
- package/dist/api/services/openrouter-catalog.d.ts.map +1 -0
- package/dist/api/services/openrouter-catalog.js +134 -0
- package/dist/api/services/openrouter-catalog.js.map +1 -0
- package/dist/api/services/openrouter-picker.d.ts +15 -0
- package/dist/api/services/openrouter-picker.d.ts.map +1 -0
- package/dist/api/services/openrouter-picker.js +113 -0
- package/dist/api/services/openrouter-picker.js.map +1 -0
- package/dist/api/services/profile-lifecycle-service.d.ts +24 -0
- package/dist/api/services/profile-lifecycle-service.d.ts.map +1 -0
- package/dist/api/services/profile-lifecycle-service.js +383 -0
- package/dist/api/services/profile-lifecycle-service.js.map +1 -0
- package/dist/api/services/profile-lifecycle-validation.d.ts +11 -0
- package/dist/api/services/profile-lifecycle-validation.d.ts.map +1 -0
- package/dist/api/services/profile-lifecycle-validation.js +87 -0
- package/dist/api/services/profile-lifecycle-validation.js.map +1 -0
- package/dist/api/services/profile-reader.d.ts +31 -0
- package/dist/api/services/profile-reader.d.ts.map +1 -0
- package/dist/api/services/profile-reader.js +192 -0
- package/dist/api/services/profile-reader.js.map +1 -0
- package/dist/api/services/profile-types.d.ts +169 -0
- package/dist/api/services/profile-types.d.ts.map +1 -0
- package/dist/api/services/profile-types.js +8 -0
- package/dist/api/services/profile-types.js.map +1 -0
- package/dist/api/services/profile-writer.d.ts +18 -0
- package/dist/api/services/profile-writer.d.ts.map +1 -0
- package/dist/api/services/profile-writer.js +376 -0
- package/dist/api/services/profile-writer.js.map +1 -0
- package/dist/api/services/provider-presets.d.ts +24 -0
- package/dist/api/services/provider-presets.d.ts.map +1 -0
- package/dist/api/services/provider-presets.js +38 -0
- package/dist/api/services/provider-presets.js.map +1 -0
- package/dist/api/services/validation-service.d.ts +26 -0
- package/dist/api/services/validation-service.d.ts.map +1 -0
- package/dist/api/services/validation-service.js +80 -0
- package/dist/api/services/validation-service.js.map +1 -0
- package/dist/auth/account-context.d.ts +65 -0
- package/dist/auth/account-context.d.ts.map +1 -0
- package/dist/auth/account-context.js +158 -0
- package/dist/auth/account-context.js.map +1 -0
- package/dist/auth/auth-commands.d.ts +63 -0
- package/dist/auth/auth-commands.d.ts.map +1 -0
- package/dist/auth/auth-commands.js +224 -0
- package/dist/auth/auth-commands.js.map +1 -0
- package/dist/auth/commands/backup-command.d.ts +3 -0
- package/dist/auth/commands/backup-command.d.ts.map +1 -0
- package/dist/auth/commands/backup-command.js +126 -0
- package/dist/auth/commands/backup-command.js.map +1 -0
- package/dist/auth/commands/create-command-env.d.ts +3 -0
- package/dist/auth/commands/create-command-env.d.ts.map +1 -0
- package/dist/auth/commands/create-command-env.js +55 -0
- package/dist/auth/commands/create-command-env.js.map +1 -0
- package/dist/auth/commands/create-command.d.ts +11 -0
- package/dist/auth/commands/create-command.d.ts.map +1 -0
- package/dist/auth/commands/create-command.js +280 -0
- package/dist/auth/commands/create-command.js.map +1 -0
- package/dist/auth/commands/default-command.d.ts +15 -0
- package/dist/auth/commands/default-command.d.ts.map +1 -0
- package/dist/auth/commands/default-command.js +71 -0
- package/dist/auth/commands/default-command.js.map +1 -0
- package/dist/auth/commands/index.d.ts +13 -0
- package/dist/auth/commands/index.d.ts.map +1 -0
- package/dist/auth/commands/index.js +27 -0
- package/dist/auth/commands/index.js.map +1 -0
- package/dist/auth/commands/list-command.d.ts +11 -0
- package/dist/auth/commands/list-command.d.ts.map +1 -0
- package/dist/auth/commands/list-command.js +134 -0
- package/dist/auth/commands/list-command.js.map +1 -0
- package/dist/auth/commands/remove-command.d.ts +11 -0
- package/dist/auth/commands/remove-command.d.ts.map +1 -0
- package/dist/auth/commands/remove-command.js +102 -0
- package/dist/auth/commands/remove-command.js.map +1 -0
- package/dist/auth/commands/show-command.d.ts +11 -0
- package/dist/auth/commands/show-command.d.ts.map +1 -0
- package/dist/auth/commands/show-command.js +116 -0
- package/dist/auth/commands/show-command.js.map +1 -0
- package/dist/auth/commands/types.d.ts +59 -0
- package/dist/auth/commands/types.d.ts.map +1 -0
- package/dist/auth/commands/types.js +78 -0
- package/dist/auth/commands/types.js.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +16 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/profile-continuity-inheritance.d.ts +21 -0
- package/dist/auth/profile-continuity-inheritance.d.ts.map +1 -0
- package/dist/auth/profile-continuity-inheritance.js +143 -0
- package/dist/auth/profile-continuity-inheritance.js.map +1 -0
- package/dist/auth/profile-detector.d.ts +128 -0
- package/dist/auth/profile-detector.d.ts.map +1 -0
- package/dist/auth/profile-detector.js +520 -0
- package/dist/auth/profile-detector.js.map +1 -0
- package/dist/auth/profile-registry.d.ts +119 -0
- package/dist/auth/profile-registry.d.ts.map +1 -0
- package/dist/auth/profile-registry.js +398 -0
- package/dist/auth/profile-registry.js.map +1 -0
- package/dist/auth/resume-lane-diagnostics.d.ts +21 -0
- package/dist/auth/resume-lane-diagnostics.d.ts.map +1 -0
- package/dist/auth/resume-lane-diagnostics.js +146 -0
- package/dist/auth/resume-lane-diagnostics.js.map +1 -0
- package/dist/auth/resume-lane-warning.d.ts +9 -0
- package/dist/auth/resume-lane-warning.d.ts.map +1 -0
- package/dist/auth/resume-lane-warning.js +60 -0
- package/dist/auth/resume-lane-warning.js.map +1 -0
- package/dist/bin/ccsxp-runtime.d.ts +4 -0
- package/dist/bin/ccsxp-runtime.d.ts.map +1 -0
- package/dist/bin/ccsxp-runtime.js +20 -0
- package/dist/bin/ccsxp-runtime.js.map +1 -0
- package/dist/bin/codex-runtime.d.ts +1 -0
- package/dist/bin/codex-runtime.d.ts.map +1 -0
- package/dist/bin/codex-runtime.js +5 -0
- package/dist/bin/codex-runtime.js.map +1 -0
- package/dist/bin/droid-runtime.d.ts +1 -0
- package/dist/bin/droid-runtime.d.ts.map +1 -0
- package/dist/bin/droid-runtime.js +5 -0
- package/dist/bin/droid-runtime.js.map +1 -0
- package/dist/ccs.d.ts +2 -0
- package/dist/ccs.d.ts.map +1 -0
- package/dist/ccs.js +1133 -0
- package/dist/ccs.js.map +1 -0
- package/dist/channels/official-channels-runtime.d.ts +156 -0
- package/dist/channels/official-channels-runtime.d.ts.map +1 -0
- package/dist/channels/official-channels-runtime.js +658 -0
- package/dist/channels/official-channels-runtime.js.map +1 -0
- package/dist/channels/official-channels-store.d.ts +23 -0
- package/dist/channels/official-channels-store.d.ts.map +1 -0
- package/dist/channels/official-channels-store.js +274 -0
- package/dist/channels/official-channels-store.js.map +1 -0
- package/dist/cliproxy/account-manager.d.ts +16 -0
- package/dist/cliproxy/account-manager.d.ts.map +1 -0
- package/dist/cliproxy/account-manager.js +51 -0
- package/dist/cliproxy/account-manager.js.map +1 -0
- package/dist/cliproxy/account-safety.d.ts +92 -0
- package/dist/cliproxy/account-safety.d.ts.map +1 -0
- package/dist/cliproxy/account-safety.js +496 -0
- package/dist/cliproxy/account-safety.js.map +1 -0
- package/dist/cliproxy/account-stats-key.d.ts +2 -0
- package/dist/cliproxy/account-stats-key.d.ts.map +1 -0
- package/dist/cliproxy/account-stats-key.js +8 -0
- package/dist/cliproxy/account-stats-key.js.map +1 -0
- package/dist/cliproxy/accounts/bulk-ops.d.ts +22 -0
- package/dist/cliproxy/accounts/bulk-ops.d.ts.map +1 -0
- package/dist/cliproxy/accounts/bulk-ops.js +88 -0
- package/dist/cliproxy/accounts/bulk-ops.js.map +1 -0
- package/dist/cliproxy/accounts/email-account-identity.d.ts +12 -0
- package/dist/cliproxy/accounts/email-account-identity.d.ts.map +1 -0
- package/dist/cliproxy/accounts/email-account-identity.js +124 -0
- package/dist/cliproxy/accounts/email-account-identity.js.map +1 -0
- package/dist/cliproxy/accounts/index.d.ts +19 -0
- package/dist/cliproxy/accounts/index.d.ts.map +1 -0
- package/dist/cliproxy/accounts/index.js +57 -0
- package/dist/cliproxy/accounts/index.js.map +1 -0
- package/dist/cliproxy/accounts/query.d.ts +36 -0
- package/dist/cliproxy/accounts/query.d.ts.map +1 -0
- package/dist/cliproxy/accounts/query.js +99 -0
- package/dist/cliproxy/accounts/query.js.map +1 -0
- package/dist/cliproxy/accounts/registry.d.ts +80 -0
- package/dist/cliproxy/accounts/registry.d.ts.map +1 -0
- package/dist/cliproxy/accounts/registry.js +649 -0
- package/dist/cliproxy/accounts/registry.js.map +1 -0
- package/dist/cliproxy/accounts/token-file-ops.d.ts +93 -0
- package/dist/cliproxy/accounts/token-file-ops.d.ts.map +1 -0
- package/dist/cliproxy/accounts/token-file-ops.js +288 -0
- package/dist/cliproxy/accounts/token-file-ops.js.map +1 -0
- package/dist/cliproxy/accounts/types.d.ts +66 -0
- package/dist/cliproxy/accounts/types.d.ts.map +1 -0
- package/dist/cliproxy/accounts/types.js +12 -0
- package/dist/cliproxy/accounts/types.js.map +1 -0
- package/dist/cliproxy/ai-providers/config-store.d.ts +19 -0
- package/dist/cliproxy/ai-providers/config-store.d.ts.map +1 -0
- package/dist/cliproxy/ai-providers/config-store.js +150 -0
- package/dist/cliproxy/ai-providers/config-store.js.map +1 -0
- package/dist/cliproxy/ai-providers/config-yaml-sections.d.ts +2 -0
- package/dist/cliproxy/ai-providers/config-yaml-sections.d.ts.map +1 -0
- package/dist/cliproxy/ai-providers/config-yaml-sections.js +43 -0
- package/dist/cliproxy/ai-providers/config-yaml-sections.js.map +1 -0
- package/dist/cliproxy/ai-providers/index.d.ts +4 -0
- package/dist/cliproxy/ai-providers/index.d.ts.map +1 -0
- package/dist/cliproxy/ai-providers/index.js +12 -0
- package/dist/cliproxy/ai-providers/index.js.map +1 -0
- package/dist/cliproxy/ai-providers/service.d.ts +6 -0
- package/dist/cliproxy/ai-providers/service.d.ts.map +1 -0
- package/dist/cliproxy/ai-providers/service.js +220 -0
- package/dist/cliproxy/ai-providers/service.js.map +1 -0
- package/dist/cliproxy/ai-providers/types.d.ts +99 -0
- package/dist/cliproxy/ai-providers/types.d.ts.map +1 -0
- package/dist/cliproxy/ai-providers/types.js +53 -0
- package/dist/cliproxy/ai-providers/types.js.map +1 -0
- package/dist/cliproxy/antigravity-responsibility.d.ts +36 -0
- package/dist/cliproxy/antigravity-responsibility.d.ts.map +1 -0
- package/dist/cliproxy/antigravity-responsibility.js +171 -0
- package/dist/cliproxy/antigravity-responsibility.js.map +1 -0
- package/dist/cliproxy/auth/auth-types.d.ts +141 -0
- package/dist/cliproxy/auth/auth-types.d.ts.map +1 -0
- package/dist/cliproxy/auth/auth-types.js +217 -0
- package/dist/cliproxy/auth/auth-types.js.map +1 -0
- package/dist/cliproxy/auth/environment-detector.d.ts +30 -0
- package/dist/cliproxy/auth/environment-detector.d.ts.map +1 -0
- package/dist/cliproxy/auth/environment-detector.js +129 -0
- package/dist/cliproxy/auth/environment-detector.js.map +1 -0
- package/dist/cliproxy/auth/gemini-token-refresh.d.ts +40 -0
- package/dist/cliproxy/auth/gemini-token-refresh.d.ts.map +1 -0
- package/dist/cliproxy/auth/gemini-token-refresh.js +371 -0
- package/dist/cliproxy/auth/gemini-token-refresh.js.map +1 -0
- package/dist/cliproxy/auth/index.d.ts +11 -0
- package/dist/cliproxy/auth/index.d.ts.map +1 -0
- package/dist/cliproxy/auth/index.js +35 -0
- package/dist/cliproxy/auth/index.js.map +1 -0
- package/dist/cliproxy/auth/kiro-import.d.ts +23 -0
- package/dist/cliproxy/auth/kiro-import.d.ts.map +1 -0
- package/dist/cliproxy/auth/kiro-import.js +140 -0
- package/dist/cliproxy/auth/kiro-import.js.map +1 -0
- package/dist/cliproxy/auth/oauth-handler.d.ts +42 -0
- package/dist/cliproxy/auth/oauth-handler.d.ts.map +1 -0
- package/dist/cliproxy/auth/oauth-handler.js +543 -0
- package/dist/cliproxy/auth/oauth-handler.js.map +1 -0
- package/dist/cliproxy/auth/oauth-process.d.ts +29 -0
- package/dist/cliproxy/auth/oauth-process.d.ts.map +1 -0
- package/dist/cliproxy/auth/oauth-process.js +447 -0
- package/dist/cliproxy/auth/oauth-process.js.map +1 -0
- package/dist/cliproxy/auth/provider-refreshers/index.d.ts +32 -0
- package/dist/cliproxy/auth/provider-refreshers/index.d.ts.map +1 -0
- package/dist/cliproxy/auth/provider-refreshers/index.js +87 -0
- package/dist/cliproxy/auth/provider-refreshers/index.js.map +1 -0
- package/dist/cliproxy/auth/token-expiry-checker.d.ts +37 -0
- package/dist/cliproxy/auth/token-expiry-checker.d.ts.map +1 -0
- package/dist/cliproxy/auth/token-expiry-checker.js +124 -0
- package/dist/cliproxy/auth/token-expiry-checker.js.map +1 -0
- package/dist/cliproxy/auth/token-manager.d.ts +73 -0
- package/dist/cliproxy/auth/token-manager.d.ts.map +1 -0
- package/dist/cliproxy/auth/token-manager.js +381 -0
- package/dist/cliproxy/auth/token-manager.js.map +1 -0
- package/dist/cliproxy/auth/token-refresh-config.d.ts +13 -0
- package/dist/cliproxy/auth/token-refresh-config.d.ts.map +1 -0
- package/dist/cliproxy/auth/token-refresh-config.js +31 -0
- package/dist/cliproxy/auth/token-refresh-config.js.map +1 -0
- package/dist/cliproxy/auth/token-refresh-worker.d.ts +83 -0
- package/dist/cliproxy/auth/token-refresh-worker.d.ts.map +1 -0
- package/dist/cliproxy/auth/token-refresh-worker.js +215 -0
- package/dist/cliproxy/auth/token-refresh-worker.js.map +1 -0
- package/dist/cliproxy/auth-handler.d.ts +31 -0
- package/dist/cliproxy/auth-handler.d.ts.map +1 -0
- package/dist/cliproxy/auth-handler.js +60 -0
- package/dist/cliproxy/auth-handler.js.map +1 -0
- package/dist/cliproxy/auth-session-manager.d.ts +51 -0
- package/dist/cliproxy/auth-session-manager.d.ts.map +1 -0
- package/dist/cliproxy/auth-session-manager.js +134 -0
- package/dist/cliproxy/auth-session-manager.js.map +1 -0
- package/dist/cliproxy/auth-token-manager.d.ts +82 -0
- package/dist/cliproxy/auth-token-manager.d.ts.map +1 -0
- package/dist/cliproxy/auth-token-manager.js +184 -0
- package/dist/cliproxy/auth-token-manager.js.map +1 -0
- package/dist/cliproxy/auth-utils.d.ts +16 -0
- package/dist/cliproxy/auth-utils.d.ts.map +1 -0
- package/dist/cliproxy/auth-utils.js +33 -0
- package/dist/cliproxy/auth-utils.js.map +1 -0
- package/dist/cliproxy/base-config-loader.d.ts +42 -0
- package/dist/cliproxy/base-config-loader.d.ts.map +1 -0
- package/dist/cliproxy/base-config-loader.js +123 -0
- package/dist/cliproxy/base-config-loader.js.map +1 -0
- package/dist/cliproxy/binary/downloader.d.ts +69 -0
- package/dist/cliproxy/binary/downloader.d.ts.map +1 -0
- package/dist/cliproxy/binary/downloader.js +478 -0
- package/dist/cliproxy/binary/downloader.js.map +1 -0
- package/dist/cliproxy/binary/extractor.d.ts +12 -0
- package/dist/cliproxy/binary/extractor.d.ts.map +1 -0
- package/dist/cliproxy/binary/extractor.js +28 -0
- package/dist/cliproxy/binary/extractor.js.map +1 -0
- package/dist/cliproxy/binary/index.d.ts +13 -0
- package/dist/cliproxy/binary/index.d.ts.map +1 -0
- package/dist/cliproxy/binary/index.js +54 -0
- package/dist/cliproxy/binary/index.js.map +1 -0
- package/dist/cliproxy/binary/installer.d.ts +25 -0
- package/dist/cliproxy/binary/installer.d.ts.map +1 -0
- package/dist/cliproxy/binary/installer.js +154 -0
- package/dist/cliproxy/binary/installer.js.map +1 -0
- package/dist/cliproxy/binary/lifecycle.d.ts +11 -0
- package/dist/cliproxy/binary/lifecycle.d.ts.map +1 -0
- package/dist/cliproxy/binary/lifecycle.js +150 -0
- package/dist/cliproxy/binary/lifecycle.js.map +1 -0
- package/dist/cliproxy/binary/tar-extractor.d.ts +10 -0
- package/dist/cliproxy/binary/tar-extractor.d.ts.map +1 -0
- package/dist/cliproxy/binary/tar-extractor.js +118 -0
- package/dist/cliproxy/binary/tar-extractor.js.map +1 -0
- package/dist/cliproxy/binary/types.d.ts +49 -0
- package/dist/cliproxy/binary/types.d.ts.map +1 -0
- package/dist/cliproxy/binary/types.js +32 -0
- package/dist/cliproxy/binary/types.js.map +1 -0
- package/dist/cliproxy/binary/updater.d.ts +7 -0
- package/dist/cliproxy/binary/updater.d.ts.map +1 -0
- package/dist/cliproxy/binary/updater.js +18 -0
- package/dist/cliproxy/binary/updater.js.map +1 -0
- package/dist/cliproxy/binary/verifier.d.ts +18 -0
- package/dist/cliproxy/binary/verifier.d.ts.map +1 -0
- package/dist/cliproxy/binary/verifier.js +82 -0
- package/dist/cliproxy/binary/verifier.js.map +1 -0
- package/dist/cliproxy/binary/version-cache.d.ts +64 -0
- package/dist/cliproxy/binary/version-cache.d.ts.map +1 -0
- package/dist/cliproxy/binary/version-cache.js +239 -0
- package/dist/cliproxy/binary/version-cache.js.map +1 -0
- package/dist/cliproxy/binary/version-checker.d.ts +36 -0
- package/dist/cliproxy/binary/version-checker.d.ts.map +1 -0
- package/dist/cliproxy/binary/version-checker.js +135 -0
- package/dist/cliproxy/binary/version-checker.js.map +1 -0
- package/dist/cliproxy/binary/zip-extractor.d.ts +10 -0
- package/dist/cliproxy/binary/zip-extractor.d.ts.map +1 -0
- package/dist/cliproxy/binary/zip-extractor.js +110 -0
- package/dist/cliproxy/binary/zip-extractor.js.map +1 -0
- package/dist/cliproxy/binary-manager.d.ts +70 -0
- package/dist/cliproxy/binary-manager.d.ts.map +1 -0
- package/dist/cliproxy/binary-manager.js +216 -0
- package/dist/cliproxy/binary-manager.js.map +1 -0
- package/dist/cliproxy/catalog-cache.d.ts +39 -0
- package/dist/cliproxy/catalog-cache.d.ts.map +1 -0
- package/dist/cliproxy/catalog-cache.js +254 -0
- package/dist/cliproxy/catalog-cache.js.map +1 -0
- package/dist/cliproxy/cliproxy-executor.d.ts +16 -0
- package/dist/cliproxy/cliproxy-executor.d.ts.map +1 -0
- package/dist/cliproxy/cliproxy-executor.js +27 -0
- package/dist/cliproxy/cliproxy-executor.js.map +1 -0
- package/dist/cliproxy/codex-plan-compatibility.d.ts +39 -0
- package/dist/cliproxy/codex-plan-compatibility.d.ts.map +1 -0
- package/dist/cliproxy/codex-plan-compatibility.js +134 -0
- package/dist/cliproxy/codex-plan-compatibility.js.map +1 -0
- package/dist/cliproxy/codex-reasoning-proxy.d.ts +61 -0
- package/dist/cliproxy/codex-reasoning-proxy.d.ts.map +1 -0
- package/dist/cliproxy/codex-reasoning-proxy.js +495 -0
- package/dist/cliproxy/codex-reasoning-proxy.js.map +1 -0
- package/dist/cliproxy/composite-validator.d.ts +20 -0
- package/dist/cliproxy/composite-validator.d.ts.map +1 -0
- package/dist/cliproxy/composite-validator.js +94 -0
- package/dist/cliproxy/composite-validator.js.map +1 -0
- package/dist/cliproxy/config/env-builder.d.ts +84 -0
- package/dist/cliproxy/config/env-builder.d.ts.map +1 -0
- package/dist/cliproxy/config/env-builder.js +700 -0
- package/dist/cliproxy/config/env-builder.js.map +1 -0
- package/dist/cliproxy/config/extended-context-config.d.ts +32 -0
- package/dist/cliproxy/config/extended-context-config.d.ts.map +1 -0
- package/dist/cliproxy/config/extended-context-config.js +70 -0
- package/dist/cliproxy/config/extended-context-config.js.map +1 -0
- package/dist/cliproxy/config/generator.d.ts +74 -0
- package/dist/cliproxy/config/generator.d.ts.map +1 -0
- package/dist/cliproxy/config/generator.js +728 -0
- package/dist/cliproxy/config/generator.js.map +1 -0
- package/dist/cliproxy/config/index.d.ts +11 -0
- package/dist/cliproxy/config/index.d.ts.map +1 -0
- package/dist/cliproxy/config/index.js +27 -0
- package/dist/cliproxy/config/index.js.map +1 -0
- package/dist/cliproxy/config/path-resolver.d.ts +47 -0
- package/dist/cliproxy/config/path-resolver.d.ts.map +1 -0
- package/dist/cliproxy/config/path-resolver.js +104 -0
- package/dist/cliproxy/config/path-resolver.js.map +1 -0
- package/dist/cliproxy/config/port-manager.d.ts +33 -0
- package/dist/cliproxy/config/port-manager.d.ts.map +1 -0
- package/dist/cliproxy/config/port-manager.js +68 -0
- package/dist/cliproxy/config/port-manager.js.map +1 -0
- package/dist/cliproxy/config/thinking-config.d.ts +56 -0
- package/dist/cliproxy/config/thinking-config.d.ts.map +1 -0
- package/dist/cliproxy/config/thinking-config.js +263 -0
- package/dist/cliproxy/config/thinking-config.js.map +1 -0
- package/dist/cliproxy/config-generator.d.ts +15 -0
- package/dist/cliproxy/config-generator.d.ts.map +1 -0
- package/dist/cliproxy/config-generator.js +32 -0
- package/dist/cliproxy/config-generator.js.map +1 -0
- package/dist/cliproxy/device-code-handler.d.ts +28 -0
- package/dist/cliproxy/device-code-handler.d.ts.map +1 -0
- package/dist/cliproxy/device-code-handler.js +22 -0
- package/dist/cliproxy/device-code-handler.js.map +1 -0
- package/dist/cliproxy/executor/env-resolver.d.ts +95 -0
- package/dist/cliproxy/executor/env-resolver.d.ts.map +1 -0
- package/dist/cliproxy/executor/env-resolver.js +307 -0
- package/dist/cliproxy/executor/env-resolver.js.map +1 -0
- package/dist/cliproxy/executor/index.d.ts +24 -0
- package/dist/cliproxy/executor/index.d.ts.map +1 -0
- package/dist/cliproxy/executor/index.js +989 -0
- package/dist/cliproxy/executor/index.js.map +1 -0
- package/dist/cliproxy/executor/lifecycle-manager.d.ts +33 -0
- package/dist/cliproxy/executor/lifecycle-manager.d.ts.map +1 -0
- package/dist/cliproxy/executor/lifecycle-manager.js +161 -0
- package/dist/cliproxy/executor/lifecycle-manager.js.map +1 -0
- package/dist/cliproxy/executor/retry-handler.d.ts +38 -0
- package/dist/cliproxy/executor/retry-handler.d.ts.map +1 -0
- package/dist/cliproxy/executor/retry-handler.js +148 -0
- package/dist/cliproxy/executor/retry-handler.js.map +1 -0
- package/dist/cliproxy/executor/session-bridge.d.ts +30 -0
- package/dist/cliproxy/executor/session-bridge.d.ts.map +1 -0
- package/dist/cliproxy/executor/session-bridge.js +236 -0
- package/dist/cliproxy/executor/session-bridge.js.map +1 -0
- package/dist/cliproxy/executor/thinking-arg-parser.d.ts +27 -0
- package/dist/cliproxy/executor/thinking-arg-parser.d.ts.map +1 -0
- package/dist/cliproxy/executor/thinking-arg-parser.js +80 -0
- package/dist/cliproxy/executor/thinking-arg-parser.js.map +1 -0
- package/dist/cliproxy/executor/thinking-override-resolver.d.ts +28 -0
- package/dist/cliproxy/executor/thinking-override-resolver.d.ts.map +1 -0
- package/dist/cliproxy/executor/thinking-override-resolver.js +109 -0
- package/dist/cliproxy/executor/thinking-override-resolver.js.map +1 -0
- package/dist/cliproxy/gemini-cli-quota-normalizer.d.ts +10 -0
- package/dist/cliproxy/gemini-cli-quota-normalizer.d.ts.map +1 -0
- package/dist/cliproxy/gemini-cli-quota-normalizer.js +122 -0
- package/dist/cliproxy/gemini-cli-quota-normalizer.js.map +1 -0
- package/dist/cliproxy/https-tunnel-proxy.d.ts +44 -0
- package/dist/cliproxy/https-tunnel-proxy.d.ts.map +1 -0
- package/dist/cliproxy/https-tunnel-proxy.js +224 -0
- package/dist/cliproxy/https-tunnel-proxy.js.map +1 -0
- package/dist/cliproxy/index.d.ts +48 -0
- package/dist/cliproxy/index.d.ts.map +1 -0
- package/dist/cliproxy/index.js +183 -0
- package/dist/cliproxy/index.js.map +1 -0
- package/dist/cliproxy/management-api-client.d.ts +81 -0
- package/dist/cliproxy/management-api-client.d.ts.map +1 -0
- package/dist/cliproxy/management-api-client.js +381 -0
- package/dist/cliproxy/management-api-client.js.map +1 -0
- package/dist/cliproxy/management-api-types.d.ts +137 -0
- package/dist/cliproxy/management-api-types.d.ts.map +1 -0
- package/dist/cliproxy/management-api-types.js +9 -0
- package/dist/cliproxy/management-api-types.js.map +1 -0
- package/dist/cliproxy/model-catalog.d.ts +131 -0
- package/dist/cliproxy/model-catalog.d.ts.map +1 -0
- package/dist/cliproxy/model-catalog.js +484 -0
- package/dist/cliproxy/model-catalog.js.map +1 -0
- package/dist/cliproxy/model-config.d.ts +31 -0
- package/dist/cliproxy/model-config.d.ts.map +1 -0
- package/dist/cliproxy/model-config.js +271 -0
- package/dist/cliproxy/model-config.js.map +1 -0
- package/dist/cliproxy/model-id-normalizer.d.ts +105 -0
- package/dist/cliproxy/model-id-normalizer.d.ts.map +1 -0
- package/dist/cliproxy/model-id-normalizer.js +241 -0
- package/dist/cliproxy/model-id-normalizer.js.map +1 -0
- package/dist/cliproxy/openai-compat-manager.d.ts +46 -0
- package/dist/cliproxy/openai-compat-manager.d.ts.map +1 -0
- package/dist/cliproxy/openai-compat-manager.js +191 -0
- package/dist/cliproxy/openai-compat-manager.js.map +1 -0
- package/dist/cliproxy/platform-detector.d.ts +99 -0
- package/dist/cliproxy/platform-detector.d.ts.map +1 -0
- package/dist/cliproxy/platform-detector.js +174 -0
- package/dist/cliproxy/platform-detector.js.map +1 -0
- package/dist/cliproxy/project-selection-handler.d.ts +105 -0
- package/dist/cliproxy/project-selection-handler.d.ts.map +1 -0
- package/dist/cliproxy/project-selection-handler.js +167 -0
- package/dist/cliproxy/project-selection-handler.js.map +1 -0
- package/dist/cliproxy/provider-capabilities.d.ts +49 -0
- package/dist/cliproxy/provider-capabilities.d.ts.map +1 -0
- package/dist/cliproxy/provider-capabilities.js +226 -0
- package/dist/cliproxy/provider-capabilities.js.map +1 -0
- package/dist/cliproxy/proxy-config-resolver.d.ts +87 -0
- package/dist/cliproxy/proxy-config-resolver.d.ts.map +1 -0
- package/dist/cliproxy/proxy-config-resolver.js +254 -0
- package/dist/cliproxy/proxy-config-resolver.js.map +1 -0
- package/dist/cliproxy/proxy-detector.d.ts +72 -0
- package/dist/cliproxy/proxy-detector.d.ts.map +1 -0
- package/dist/cliproxy/proxy-detector.js +196 -0
- package/dist/cliproxy/proxy-detector.js.map +1 -0
- package/dist/cliproxy/proxy-target-resolver.d.ts +52 -0
- package/dist/cliproxy/proxy-target-resolver.d.ts.map +1 -0
- package/dist/cliproxy/proxy-target-resolver.js +108 -0
- package/dist/cliproxy/proxy-target-resolver.js.map +1 -0
- package/dist/cliproxy/quota-fetcher-claude-normalizer.d.ts +18 -0
- package/dist/cliproxy/quota-fetcher-claude-normalizer.d.ts.map +1 -0
- package/dist/cliproxy/quota-fetcher-claude-normalizer.js +291 -0
- package/dist/cliproxy/quota-fetcher-claude-normalizer.js.map +1 -0
- package/dist/cliproxy/quota-fetcher-claude.d.ts +21 -0
- package/dist/cliproxy/quota-fetcher-claude.d.ts.map +1 -0
- package/dist/cliproxy/quota-fetcher-claude.js +306 -0
- package/dist/cliproxy/quota-fetcher-claude.js.map +1 -0
- package/dist/cliproxy/quota-fetcher-codex.d.ts +69 -0
- package/dist/cliproxy/quota-fetcher-codex.d.ts.map +1 -0
- package/dist/cliproxy/quota-fetcher-codex.js +599 -0
- package/dist/cliproxy/quota-fetcher-codex.js.map +1 -0
- package/dist/cliproxy/quota-fetcher-gemini-cli.d.ts +66 -0
- package/dist/cliproxy/quota-fetcher-gemini-cli.d.ts.map +1 -0
- package/dist/cliproxy/quota-fetcher-gemini-cli.js +661 -0
- package/dist/cliproxy/quota-fetcher-gemini-cli.js.map +1 -0
- package/dist/cliproxy/quota-fetcher-ghcp.d.ts +38 -0
- package/dist/cliproxy/quota-fetcher-ghcp.d.ts.map +1 -0
- package/dist/cliproxy/quota-fetcher-ghcp.js +207 -0
- package/dist/cliproxy/quota-fetcher-ghcp.js.map +1 -0
- package/dist/cliproxy/quota-fetcher.d.ts +107 -0
- package/dist/cliproxy/quota-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/quota-fetcher.js +657 -0
- package/dist/cliproxy/quota-fetcher.js.map +1 -0
- package/dist/cliproxy/quota-manager.d.ts +105 -0
- package/dist/cliproxy/quota-manager.d.ts.map +1 -0
- package/dist/cliproxy/quota-manager.js +485 -0
- package/dist/cliproxy/quota-manager.js.map +1 -0
- package/dist/cliproxy/quota-response-cache.d.ts +46 -0
- package/dist/cliproxy/quota-response-cache.d.ts.map +1 -0
- package/dist/cliproxy/quota-response-cache.js +98 -0
- package/dist/cliproxy/quota-response-cache.js.map +1 -0
- package/dist/cliproxy/quota-types.d.ts +245 -0
- package/dist/cliproxy/quota-types.d.ts.map +1 -0
- package/dist/cliproxy/quota-types.js +9 -0
- package/dist/cliproxy/quota-types.js.map +1 -0
- package/dist/cliproxy/remote-auth-fetcher.d.ts +30 -0
- package/dist/cliproxy/remote-auth-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/remote-auth-fetcher.js +177 -0
- package/dist/cliproxy/remote-auth-fetcher.js.map +1 -0
- package/dist/cliproxy/remote-proxy-client.d.ts +52 -0
- package/dist/cliproxy/remote-proxy-client.d.ts.map +1 -0
- package/dist/cliproxy/remote-proxy-client.js +281 -0
- package/dist/cliproxy/remote-proxy-client.js.map +1 -0
- package/dist/cliproxy/remote-token-uploader.d.ts +28 -0
- package/dist/cliproxy/remote-token-uploader.d.ts.map +1 -0
- package/dist/cliproxy/remote-token-uploader.js +178 -0
- package/dist/cliproxy/remote-token-uploader.js.map +1 -0
- package/dist/cliproxy/schema-sanitizer.d.ts +48 -0
- package/dist/cliproxy/schema-sanitizer.d.ts.map +1 -0
- package/dist/cliproxy/schema-sanitizer.js +203 -0
- package/dist/cliproxy/schema-sanitizer.js.map +1 -0
- package/dist/cliproxy/service-manager.d.ts +55 -0
- package/dist/cliproxy/service-manager.d.ts.map +1 -0
- package/dist/cliproxy/service-manager.js +324 -0
- package/dist/cliproxy/service-manager.js.map +1 -0
- package/dist/cliproxy/services/binary-service.d.ts +67 -0
- package/dist/cliproxy/services/binary-service.d.ts.map +1 -0
- package/dist/cliproxy/services/binary-service.js +176 -0
- package/dist/cliproxy/services/binary-service.js.map +1 -0
- package/dist/cliproxy/services/index.d.ts +8 -0
- package/dist/cliproxy/services/index.d.ts.map +1 -0
- package/dist/cliproxy/services/index.js +34 -0
- package/dist/cliproxy/services/index.js.map +1 -0
- package/dist/cliproxy/services/proxy-lifecycle-service.d.ts +50 -0
- package/dist/cliproxy/services/proxy-lifecycle-service.d.ts.map +1 -0
- package/dist/cliproxy/services/proxy-lifecycle-service.js +50 -0
- package/dist/cliproxy/services/proxy-lifecycle-service.js.map +1 -0
- package/dist/cliproxy/services/variant-config-adapter.d.ts +32 -0
- package/dist/cliproxy/services/variant-config-adapter.d.ts.map +1 -0
- package/dist/cliproxy/services/variant-config-adapter.js +269 -0
- package/dist/cliproxy/services/variant-config-adapter.js.map +1 -0
- package/dist/cliproxy/services/variant-service.d.ts +82 -0
- package/dist/cliproxy/services/variant-service.d.ts.map +1 -0
- package/dist/cliproxy/services/variant-service.js +399 -0
- package/dist/cliproxy/services/variant-service.js.map +1 -0
- package/dist/cliproxy/services/variant-settings.d.ts +57 -0
- package/dist/cliproxy/services/variant-settings.d.ts.map +1 -0
- package/dist/cliproxy/services/variant-settings.js +367 -0
- package/dist/cliproxy/services/variant-settings.js.map +1 -0
- package/dist/cliproxy/session-tracker.d.ts +105 -0
- package/dist/cliproxy/session-tracker.d.ts.map +1 -0
- package/dist/cliproxy/session-tracker.js +481 -0
- package/dist/cliproxy/session-tracker.js.map +1 -0
- package/dist/cliproxy/startup-lock.d.ts +57 -0
- package/dist/cliproxy/startup-lock.d.ts.map +1 -0
- package/dist/cliproxy/startup-lock.js +216 -0
- package/dist/cliproxy/startup-lock.js.map +1 -0
- package/dist/cliproxy/stats-fetcher.d.ts +158 -0
- package/dist/cliproxy/stats-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/stats-fetcher.js +246 -0
- package/dist/cliproxy/stats-fetcher.js.map +1 -0
- package/dist/cliproxy/stats-transformer.d.ts +7 -0
- package/dist/cliproxy/stats-transformer.d.ts.map +1 -0
- package/dist/cliproxy/stats-transformer.js +152 -0
- package/dist/cliproxy/stats-transformer.js.map +1 -0
- package/dist/cliproxy/sync/auto-sync-watcher.d.ts +37 -0
- package/dist/cliproxy/sync/auto-sync-watcher.d.ts.map +1 -0
- package/dist/cliproxy/sync/auto-sync-watcher.js +211 -0
- package/dist/cliproxy/sync/auto-sync-watcher.js.map +1 -0
- package/dist/cliproxy/sync/index.d.ts +10 -0
- package/dist/cliproxy/sync/index.d.ts.map +1 -0
- package/dist/cliproxy/sync/index.js +27 -0
- package/dist/cliproxy/sync/index.js.map +1 -0
- package/dist/cliproxy/sync/local-config-sync.d.ts +28 -0
- package/dist/cliproxy/sync/local-config-sync.d.ts.map +1 -0
- package/dist/cliproxy/sync/local-config-sync.js +223 -0
- package/dist/cliproxy/sync/local-config-sync.js.map +1 -0
- package/dist/cliproxy/sync/profile-mapper.d.ts +55 -0
- package/dist/cliproxy/sync/profile-mapper.d.ts.map +1 -0
- package/dist/cliproxy/sync/profile-mapper.js +185 -0
- package/dist/cliproxy/sync/profile-mapper.js.map +1 -0
- package/dist/cliproxy/thinking-validator.d.ts +72 -0
- package/dist/cliproxy/thinking-validator.d.ts.map +1 -0
- package/dist/cliproxy/thinking-validator.js +359 -0
- package/dist/cliproxy/thinking-validator.js.map +1 -0
- package/dist/cliproxy/tool-name-mapper.d.ts +103 -0
- package/dist/cliproxy/tool-name-mapper.d.ts.map +1 -0
- package/dist/cliproxy/tool-name-mapper.js +149 -0
- package/dist/cliproxy/tool-name-mapper.js.map +1 -0
- package/dist/cliproxy/tool-name-sanitizer.d.ts +65 -0
- package/dist/cliproxy/tool-name-sanitizer.d.ts.map +1 -0
- package/dist/cliproxy/tool-name-sanitizer.js +118 -0
- package/dist/cliproxy/tool-name-sanitizer.js.map +1 -0
- package/dist/cliproxy/tool-sanitization-proxy.d.ts +77 -0
- package/dist/cliproxy/tool-sanitization-proxy.d.ts.map +1 -0
- package/dist/cliproxy/tool-sanitization-proxy.js +643 -0
- package/dist/cliproxy/tool-sanitization-proxy.js.map +1 -0
- package/dist/cliproxy/types.d.ts +258 -0
- package/dist/cliproxy/types.d.ts.map +1 -0
- package/dist/cliproxy/types.js +12 -0
- package/dist/cliproxy/types.js.map +1 -0
- package/dist/commands/api-command/copy-command.d.ts +2 -0
- package/dist/commands/api-command/copy-command.d.ts.map +1 -0
- package/dist/commands/api-command/copy-command.js +41 -0
- package/dist/commands/api-command/copy-command.js.map +1 -0
- package/dist/commands/api-command/create-command.d.ts +2 -0
- package/dist/commands/api-command/create-command.d.ts.map +1 -0
- package/dist/commands/api-command/create-command.js +391 -0
- package/dist/commands/api-command/create-command.js.map +1 -0
- package/dist/commands/api-command/discover-command.d.ts +2 -0
- package/dist/commands/api-command/discover-command.d.ts.map +1 -0
- package/dist/commands/api-command/discover-command.js +69 -0
- package/dist/commands/api-command/discover-command.js.map +1 -0
- package/dist/commands/api-command/export-command.d.ts +13 -0
- package/dist/commands/api-command/export-command.d.ts.map +1 -0
- package/dist/commands/api-command/export-command.js +81 -0
- package/dist/commands/api-command/export-command.js.map +1 -0
- package/dist/commands/api-command/handler.d.ts +21 -0
- package/dist/commands/api-command/handler.d.ts.map +1 -0
- package/dist/commands/api-command/handler.js +33 -0
- package/dist/commands/api-command/handler.js.map +1 -0
- package/dist/commands/api-command/help.d.ts +5 -0
- package/dist/commands/api-command/help.d.ts.map +1 -0
- package/dist/commands/api-command/help.js +115 -0
- package/dist/commands/api-command/help.js.map +1 -0
- package/dist/commands/api-command/import-command.d.ts +2 -0
- package/dist/commands/api-command/import-command.d.ts.map +1 -0
- package/dist/commands/api-command/import-command.js +111 -0
- package/dist/commands/api-command/import-command.js.map +1 -0
- package/dist/commands/api-command/index.d.ts +4 -0
- package/dist/commands/api-command/index.d.ts.map +1 -0
- package/dist/commands/api-command/index.js +32 -0
- package/dist/commands/api-command/index.js.map +1 -0
- package/dist/commands/api-command/list-command.d.ts +2 -0
- package/dist/commands/api-command/list-command.d.ts.map +1 -0
- package/dist/commands/api-command/list-command.js +53 -0
- package/dist/commands/api-command/list-command.js.map +1 -0
- package/dist/commands/api-command/remove-command.d.ts +2 -0
- package/dist/commands/api-command/remove-command.d.ts.map +1 -0
- package/dist/commands/api-command/remove-command.js +63 -0
- package/dist/commands/api-command/remove-command.js.map +1 -0
- package/dist/commands/api-command/shared.d.ts +42 -0
- package/dist/commands/api-command/shared.d.ts.map +1 -0
- package/dist/commands/api-command/shared.js +207 -0
- package/dist/commands/api-command/shared.js.map +1 -0
- package/dist/commands/arg-extractor.d.ts +44 -0
- package/dist/commands/arg-extractor.d.ts.map +1 -0
- package/dist/commands/arg-extractor.js +127 -0
- package/dist/commands/arg-extractor.js.map +1 -0
- package/dist/commands/cleanup-command.d.ts +12 -0
- package/dist/commands/cleanup-command.d.ts.map +1 -0
- package/dist/commands/cleanup-command.js +350 -0
- package/dist/commands/cleanup-command.js.map +1 -0
- package/dist/commands/cliproxy/auth-subcommand.d.ts +10 -0
- package/dist/commands/cliproxy/auth-subcommand.d.ts.map +1 -0
- package/dist/commands/cliproxy/auth-subcommand.js +59 -0
- package/dist/commands/cliproxy/auth-subcommand.js.map +1 -0
- package/dist/commands/cliproxy/catalog-subcommand.d.ts +7 -0
- package/dist/commands/cliproxy/catalog-subcommand.d.ts.map +1 -0
- package/dist/commands/cliproxy/catalog-subcommand.js +123 -0
- package/dist/commands/cliproxy/catalog-subcommand.js.map +1 -0
- package/dist/commands/cliproxy/help-subcommand.d.ts +8 -0
- package/dist/commands/cliproxy/help-subcommand.d.ts.map +1 -0
- package/dist/commands/cliproxy/help-subcommand.js +101 -0
- package/dist/commands/cliproxy/help-subcommand.js.map +1 -0
- package/dist/commands/cliproxy/index.d.ts +24 -0
- package/dist/commands/cliproxy/index.d.ts.map +1 -0
- package/dist/commands/cliproxy/index.js +171 -0
- package/dist/commands/cliproxy/index.js.map +1 -0
- package/dist/commands/cliproxy/install-subcommand.d.ts +14 -0
- package/dist/commands/cliproxy/install-subcommand.d.ts.map +1 -0
- package/dist/commands/cliproxy/install-subcommand.js +112 -0
- package/dist/commands/cliproxy/install-subcommand.js.map +1 -0
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.d.ts +14 -0
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.d.ts.map +1 -0
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js +130 -0
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand.d.ts +29 -0
- package/dist/commands/cliproxy/quota-subcommand.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand.js +799 -0
- package/dist/commands/cliproxy/quota-subcommand.js.map +1 -0
- package/dist/commands/cliproxy/resolve-lifecycle-port.d.ts +9 -0
- package/dist/commands/cliproxy/resolve-lifecycle-port.d.ts.map +1 -0
- package/dist/commands/cliproxy/resolve-lifecycle-port.js +14 -0
- package/dist/commands/cliproxy/resolve-lifecycle-port.js.map +1 -0
- package/dist/commands/cliproxy/variant-subcommand.d.ts +27 -0
- package/dist/commands/cliproxy/variant-subcommand.d.ts.map +1 -0
- package/dist/commands/cliproxy/variant-subcommand.js +740 -0
- package/dist/commands/cliproxy/variant-subcommand.js.map +1 -0
- package/dist/commands/cliproxy-command.d.ts +10 -0
- package/dist/commands/cliproxy-command.d.ts.map +1 -0
- package/dist/commands/cliproxy-command.js +14 -0
- package/dist/commands/cliproxy-command.js.map +1 -0
- package/dist/commands/cliproxy-sync-handler.d.ts +19 -0
- package/dist/commands/cliproxy-sync-handler.d.ts.map +1 -0
- package/dist/commands/cliproxy-sync-handler.js +99 -0
- package/dist/commands/cliproxy-sync-handler.js.map +1 -0
- package/dist/commands/command-catalog.d.ts +39 -0
- package/dist/commands/command-catalog.d.ts.map +1 -0
- package/dist/commands/command-catalog.js +298 -0
- package/dist/commands/command-catalog.js.map +1 -0
- package/dist/commands/command-execution-contract.d.ts +23 -0
- package/dist/commands/command-execution-contract.d.ts.map +1 -0
- package/dist/commands/command-execution-contract.js +21 -0
- package/dist/commands/command-execution-contract.js.map +1 -0
- package/dist/commands/completion-backend.d.ts +14 -0
- package/dist/commands/completion-backend.d.ts.map +1 -0
- package/dist/commands/completion-backend.js +208 -0
- package/dist/commands/completion-backend.js.map +1 -0
- package/dist/commands/config-auth/disable-command.d.ts +10 -0
- package/dist/commands/config-auth/disable-command.d.ts.map +1 -0
- package/dist/commands/config-auth/disable-command.js +64 -0
- package/dist/commands/config-auth/disable-command.js.map +1 -0
- package/dist/commands/config-auth/index.d.ts +14 -0
- package/dist/commands/config-auth/index.d.ts.map +1 -0
- package/dist/commands/config-auth/index.js +100 -0
- package/dist/commands/config-auth/index.js.map +1 -0
- package/dist/commands/config-auth/setup-command.d.ts +13 -0
- package/dist/commands/config-auth/setup-command.d.ts.map +1 -0
- package/dist/commands/config-auth/setup-command.js +119 -0
- package/dist/commands/config-auth/setup-command.js.map +1 -0
- package/dist/commands/config-auth/show-command.d.ts +10 -0
- package/dist/commands/config-auth/show-command.d.ts.map +1 -0
- package/dist/commands/config-auth/show-command.js +79 -0
- package/dist/commands/config-auth/show-command.js.map +1 -0
- package/dist/commands/config-auth/types.d.ts +25 -0
- package/dist/commands/config-auth/types.d.ts.map +1 -0
- package/dist/commands/config-auth/types.js +8 -0
- package/dist/commands/config-auth/types.js.map +1 -0
- package/dist/commands/config-channels-command.d.ts +24 -0
- package/dist/commands/config-channels-command.d.ts.map +1 -0
- package/dist/commands/config-channels-command.js +359 -0
- package/dist/commands/config-channels-command.js.map +1 -0
- package/dist/commands/config-command-options.d.ts +14 -0
- package/dist/commands/config-command-options.d.ts.map +1 -0
- package/dist/commands/config-command-options.js +123 -0
- package/dist/commands/config-command-options.js.map +1 -0
- package/dist/commands/config-command.d.ts +37 -0
- package/dist/commands/config-command.d.ts.map +1 -0
- package/dist/commands/config-command.js +218 -0
- package/dist/commands/config-command.js.map +1 -0
- package/dist/commands/config-dashboard-host.d.ts +17 -0
- package/dist/commands/config-dashboard-host.d.ts.map +1 -0
- package/dist/commands/config-dashboard-host.js +99 -0
- package/dist/commands/config-dashboard-host.js.map +1 -0
- package/dist/commands/config-image-analysis-command.d.ts +8 -0
- package/dist/commands/config-image-analysis-command.d.ts.map +1 -0
- package/dist/commands/config-image-analysis-command.js +270 -0
- package/dist/commands/config-image-analysis-command.js.map +1 -0
- package/dist/commands/config-thinking-command.d.ts +9 -0
- package/dist/commands/config-thinking-command.d.ts.map +1 -0
- package/dist/commands/config-thinking-command.js +237 -0
- package/dist/commands/config-thinking-command.js.map +1 -0
- package/dist/commands/config-thinking-parser.d.ts +37 -0
- package/dist/commands/config-thinking-parser.d.ts.map +1 -0
- package/dist/commands/config-thinking-parser.js +135 -0
- package/dist/commands/config-thinking-parser.js.map +1 -0
- package/dist/commands/copilot-command.d.ts +10 -0
- package/dist/commands/copilot-command.d.ts.map +1 -0
- package/dist/commands/copilot-command.js +334 -0
- package/dist/commands/copilot-command.js.map +1 -0
- package/dist/commands/cursor-command-display.d.ts +6 -0
- package/dist/commands/cursor-command-display.d.ts.map +1 -0
- package/dist/commands/cursor-command-display.js +120 -0
- package/dist/commands/cursor-command-display.js.map +1 -0
- package/dist/commands/cursor-command.d.ts +10 -0
- package/dist/commands/cursor-command.d.ts.map +1 -0
- package/dist/commands/cursor-command.js +210 -0
- package/dist/commands/cursor-command.js.map +1 -0
- package/dist/commands/docker/config-subcommand.d.ts +2 -0
- package/dist/commands/docker/config-subcommand.d.ts.map +1 -0
- package/dist/commands/docker/config-subcommand.js +53 -0
- package/dist/commands/docker/config-subcommand.js.map +1 -0
- package/dist/commands/docker/down-subcommand.d.ts +2 -0
- package/dist/commands/docker/down-subcommand.d.ts.map +1 -0
- package/dist/commands/docker/down-subcommand.js +37 -0
- package/dist/commands/docker/down-subcommand.js.map +1 -0
- package/dist/commands/docker/help-subcommand.d.ts +2 -0
- package/dist/commands/docker/help-subcommand.d.ts.map +1 -0
- package/dist/commands/docker/help-subcommand.js +65 -0
- package/dist/commands/docker/help-subcommand.js.map +1 -0
- package/dist/commands/docker/index.d.ts +2 -0
- package/dist/commands/docker/index.d.ts.map +1 -0
- package/dist/commands/docker/index.js +58 -0
- package/dist/commands/docker/index.js.map +1 -0
- package/dist/commands/docker/logs-subcommand.d.ts +2 -0
- package/dist/commands/docker/logs-subcommand.d.ts.map +1 -0
- package/dist/commands/docker/logs-subcommand.js +50 -0
- package/dist/commands/docker/logs-subcommand.js.map +1 -0
- package/dist/commands/docker/options.d.ts +23 -0
- package/dist/commands/docker/options.d.ts.map +1 -0
- package/dist/commands/docker/options.js +101 -0
- package/dist/commands/docker/options.js.map +1 -0
- package/dist/commands/docker/status-subcommand.d.ts +2 -0
- package/dist/commands/docker/status-subcommand.d.ts.map +1 -0
- package/dist/commands/docker/status-subcommand.js +54 -0
- package/dist/commands/docker/status-subcommand.js.map +1 -0
- package/dist/commands/docker/up-subcommand.d.ts +2 -0
- package/dist/commands/docker/up-subcommand.d.ts.map +1 -0
- package/dist/commands/docker/up-subcommand.js +45 -0
- package/dist/commands/docker/up-subcommand.js.map +1 -0
- package/dist/commands/docker/update-subcommand.d.ts +2 -0
- package/dist/commands/docker/update-subcommand.d.ts.map +1 -0
- package/dist/commands/docker/update-subcommand.js +37 -0
- package/dist/commands/docker/update-subcommand.js.map +1 -0
- package/dist/commands/docker-command.d.ts +2 -0
- package/dist/commands/docker-command.d.ts.map +1 -0
- package/dist/commands/docker-command.js +6 -0
- package/dist/commands/docker-command.js.map +1 -0
- package/dist/commands/doctor-command.d.ts +11 -0
- package/dist/commands/doctor-command.d.ts.map +1 -0
- package/dist/commands/doctor-command.js +92 -0
- package/dist/commands/doctor-command.js.map +1 -0
- package/dist/commands/env-command.d.ts +26 -0
- package/dist/commands/env-command.d.ts.map +1 -0
- package/dist/commands/env-command.js +228 -0
- package/dist/commands/env-command.js.map +1 -0
- package/dist/commands/help-command.d.ts +8 -0
- package/dist/commands/help-command.d.ts.map +1 -0
- package/dist/commands/help-command.js +199 -0
- package/dist/commands/help-command.js.map +1 -0
- package/dist/commands/index.d.ts +19 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +37 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/install-command.d.ts +14 -0
- package/dist/commands/install-command.d.ts.map +1 -0
- package/dist/commands/install-command.js +81 -0
- package/dist/commands/install-command.js.map +1 -0
- package/dist/commands/migrate-command.d.ts +17 -0
- package/dist/commands/migrate-command.d.ts.map +1 -0
- package/dist/commands/migrate-command.js +139 -0
- package/dist/commands/migrate-command.js.map +1 -0
- package/dist/commands/named-command-router.d.ts +17 -0
- package/dist/commands/named-command-router.d.ts.map +1 -0
- package/dist/commands/named-command-router.js +39 -0
- package/dist/commands/named-command-router.js.map +1 -0
- package/dist/commands/persist-command.d.ts +12 -0
- package/dist/commands/persist-command.d.ts.map +1 -0
- package/dist/commands/persist-command.js +874 -0
- package/dist/commands/persist-command.js.map +1 -0
- package/dist/commands/root-command-router.d.ts +4 -0
- package/dist/commands/root-command-router.d.ts.map +1 -0
- package/dist/commands/root-command-router.js +216 -0
- package/dist/commands/root-command-router.js.map +1 -0
- package/dist/commands/setup-command.d.ts +29 -0
- package/dist/commands/setup-command.d.ts.map +1 -0
- package/dist/commands/setup-command.js +428 -0
- package/dist/commands/setup-command.js.map +1 -0
- package/dist/commands/shell-completion-command.d.ts +31 -0
- package/dist/commands/shell-completion-command.d.ts.map +1 -0
- package/dist/commands/shell-completion-command.js +121 -0
- package/dist/commands/shell-completion-command.js.map +1 -0
- package/dist/commands/sync-command.d.ts +10 -0
- package/dist/commands/sync-command.d.ts.map +1 -0
- package/dist/commands/sync-command.js +92 -0
- package/dist/commands/sync-command.js.map +1 -0
- package/dist/commands/tokens-command.d.ts +19 -0
- package/dist/commands/tokens-command.d.ts.map +1 -0
- package/dist/commands/tokens-command.js +173 -0
- package/dist/commands/tokens-command.js.map +1 -0
- package/dist/commands/update-command.d.ts +19 -0
- package/dist/commands/update-command.d.ts.map +1 -0
- package/dist/commands/update-command.js +290 -0
- package/dist/commands/update-command.js.map +1 -0
- package/dist/commands/version-command.d.ts +10 -0
- package/dist/commands/version-command.d.ts.map +1 -0
- package/dist/commands/version-command.js +103 -0
- package/dist/commands/version-command.js.map +1 -0
- package/dist/config/feature-flags.d.ts +19 -0
- package/dist/config/feature-flags.d.ts.map +1 -0
- package/dist/config/feature-flags.js +31 -0
- package/dist/config/feature-flags.js.map +1 -0
- package/dist/config/index.d.ts +11 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +32 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/migration-manager.d.ts +76 -0
- package/dist/config/migration-manager.d.ts.map +1 -0
- package/dist/config/migration-manager.js +549 -0
- package/dist/config/migration-manager.js.map +1 -0
- package/dist/config/reserved-names.d.ts +31 -0
- package/dist/config/reserved-names.d.ts.map +1 -0
- package/dist/config/reserved-names.js +82 -0
- package/dist/config/reserved-names.js.map +1 -0
- package/dist/config/unified-config-loader.d.ts +163 -0
- package/dist/config/unified-config-loader.d.ts.map +1 -0
- package/dist/config/unified-config-loader.js +1093 -0
- package/dist/config/unified-config-loader.js.map +1 -0
- package/dist/config/unified-config-types.d.ts +733 -0
- package/dist/config/unified-config-types.d.ts.map +1 -0
- package/dist/config/unified-config-types.js +280 -0
- package/dist/config/unified-config-types.js.map +1 -0
- package/dist/copilot/constants.d.ts +11 -0
- package/dist/copilot/constants.d.ts.map +1 -0
- package/dist/copilot/constants.js +46 -0
- package/dist/copilot/constants.js.map +1 -0
- package/dist/copilot/copilot-auth.d.ts +52 -0
- package/dist/copilot/copilot-auth.d.ts.map +1 -0
- package/dist/copilot/copilot-auth.js +201 -0
- package/dist/copilot/copilot-auth.js.map +1 -0
- package/dist/copilot/copilot-daemon.d.ts +36 -0
- package/dist/copilot/copilot-daemon.d.ts.map +1 -0
- package/dist/copilot/copilot-daemon.js +355 -0
- package/dist/copilot/copilot-daemon.js.map +1 -0
- package/dist/copilot/copilot-executor.d.ts +41 -0
- package/dist/copilot/copilot-executor.d.ts.map +1 -0
- package/dist/copilot/copilot-executor.js +261 -0
- package/dist/copilot/copilot-executor.js.map +1 -0
- package/dist/copilot/copilot-model-normalizer.d.ts +30 -0
- package/dist/copilot/copilot-model-normalizer.d.ts.map +1 -0
- package/dist/copilot/copilot-model-normalizer.js +159 -0
- package/dist/copilot/copilot-model-normalizer.js.map +1 -0
- package/dist/copilot/copilot-models.d.ts +34 -0
- package/dist/copilot/copilot-models.d.ts.map +1 -0
- package/dist/copilot/copilot-models.js +294 -0
- package/dist/copilot/copilot-models.js.map +1 -0
- package/dist/copilot/copilot-package-manager.d.ts +93 -0
- package/dist/copilot/copilot-package-manager.d.ts.map +1 -0
- package/dist/copilot/copilot-package-manager.js +488 -0
- package/dist/copilot/copilot-package-manager.js.map +1 -0
- package/dist/copilot/copilot-usage.d.ts +16 -0
- package/dist/copilot/copilot-usage.d.ts.map +1 -0
- package/dist/copilot/copilot-usage.js +117 -0
- package/dist/copilot/copilot-usage.js.map +1 -0
- package/dist/copilot/index.d.ts +15 -0
- package/dist/copilot/index.d.ts.map +1 -0
- package/dist/copilot/index.js +76 -0
- package/dist/copilot/index.js.map +1 -0
- package/dist/copilot/types.d.ts +106 -0
- package/dist/copilot/types.d.ts.map +1 -0
- package/dist/copilot/types.js +8 -0
- package/dist/copilot/types.js.map +1 -0
- package/dist/cursor/constants.d.ts +3 -0
- package/dist/cursor/constants.d.ts.map +1 -0
- package/dist/cursor/constants.js +20 -0
- package/dist/cursor/constants.js.map +1 -0
- package/dist/cursor/cursor-anthropic-response.d.ts +6 -0
- package/dist/cursor/cursor-anthropic-response.d.ts.map +1 -0
- package/dist/cursor/cursor-anthropic-response.js +190 -0
- package/dist/cursor/cursor-anthropic-response.js.map +1 -0
- package/dist/cursor/cursor-anthropic-translator.d.ts +11 -0
- package/dist/cursor/cursor-anthropic-translator.d.ts.map +1 -0
- package/dist/cursor/cursor-anthropic-translator.js +167 -0
- package/dist/cursor/cursor-anthropic-translator.js.map +1 -0
- package/dist/cursor/cursor-anthropic-types.d.ts +46 -0
- package/dist/cursor/cursor-anthropic-types.d.ts.map +1 -0
- package/dist/cursor/cursor-anthropic-types.js +3 -0
- package/dist/cursor/cursor-anthropic-types.js.map +1 -0
- package/dist/cursor/cursor-auth.d.ts +58 -0
- package/dist/cursor/cursor-auth.d.ts.map +1 -0
- package/dist/cursor/cursor-auth.js +305 -0
- package/dist/cursor/cursor-auth.js.map +1 -0
- package/dist/cursor/cursor-client-policy.d.ts +16 -0
- package/dist/cursor/cursor-client-policy.d.ts.map +1 -0
- package/dist/cursor/cursor-client-policy.js +137 -0
- package/dist/cursor/cursor-client-policy.js.map +1 -0
- package/dist/cursor/cursor-daemon-entry.d.ts +14 -0
- package/dist/cursor/cursor-daemon-entry.d.ts.map +1 -0
- package/dist/cursor/cursor-daemon-entry.js +305 -0
- package/dist/cursor/cursor-daemon-entry.js.map +1 -0
- package/dist/cursor/cursor-daemon-pid.d.ts +4 -0
- package/dist/cursor/cursor-daemon-pid.d.ts.map +1 -0
- package/dist/cursor/cursor-daemon-pid.js +77 -0
- package/dist/cursor/cursor-daemon-pid.js.map +1 -0
- package/dist/cursor/cursor-daemon.d.ts +36 -0
- package/dist/cursor/cursor-daemon.d.ts.map +1 -0
- package/dist/cursor/cursor-daemon.js +315 -0
- package/dist/cursor/cursor-daemon.js.map +1 -0
- package/dist/cursor/cursor-default-models.d.ts +21 -0
- package/dist/cursor/cursor-default-models.d.ts.map +1 -0
- package/dist/cursor/cursor-default-models.js +173 -0
- package/dist/cursor/cursor-default-models.js.map +1 -0
- package/dist/cursor/cursor-executor.d.ts +79 -0
- package/dist/cursor/cursor-executor.d.ts.map +1 -0
- package/dist/cursor/cursor-executor.js +802 -0
- package/dist/cursor/cursor-executor.js.map +1 -0
- package/dist/cursor/cursor-models.d.ts +40 -0
- package/dist/cursor/cursor-models.d.ts.map +1 -0
- package/dist/cursor/cursor-models.js +313 -0
- package/dist/cursor/cursor-models.js.map +1 -0
- package/dist/cursor/cursor-profile-executor.d.ts +10 -0
- package/dist/cursor/cursor-profile-executor.d.ts.map +1 -0
- package/dist/cursor/cursor-profile-executor.js +158 -0
- package/dist/cursor/cursor-profile-executor.js.map +1 -0
- package/dist/cursor/cursor-protobuf-decoder.d.ts +52 -0
- package/dist/cursor/cursor-protobuf-decoder.d.ts.map +1 -0
- package/dist/cursor/cursor-protobuf-decoder.js +314 -0
- package/dist/cursor/cursor-protobuf-decoder.js.map +1 -0
- package/dist/cursor/cursor-protobuf-encoder.d.ts +54 -0
- package/dist/cursor/cursor-protobuf-encoder.d.ts.map +1 -0
- package/dist/cursor/cursor-protobuf-encoder.js +173 -0
- package/dist/cursor/cursor-protobuf-encoder.js.map +1 -0
- package/dist/cursor/cursor-protobuf-schema.d.ts +215 -0
- package/dist/cursor/cursor-protobuf-schema.d.ts.map +1 -0
- package/dist/cursor/cursor-protobuf-schema.js +120 -0
- package/dist/cursor/cursor-protobuf-schema.js.map +1 -0
- package/dist/cursor/cursor-protobuf.d.ts +21 -0
- package/dist/cursor/cursor-protobuf.d.ts.map +1 -0
- package/dist/cursor/cursor-protobuf.js +116 -0
- package/dist/cursor/cursor-protobuf.js.map +1 -0
- package/dist/cursor/cursor-stream-parser.d.ts +52 -0
- package/dist/cursor/cursor-stream-parser.d.ts.map +1 -0
- package/dist/cursor/cursor-stream-parser.js +142 -0
- package/dist/cursor/cursor-stream-parser.js.map +1 -0
- package/dist/cursor/cursor-translator.d.ts +50 -0
- package/dist/cursor/cursor-translator.d.ts.map +1 -0
- package/dist/cursor/cursor-translator.js +297 -0
- package/dist/cursor/cursor-translator.js.map +1 -0
- package/dist/cursor/daemon-process-ownership.d.ts +4 -0
- package/dist/cursor/daemon-process-ownership.d.ts.map +1 -0
- package/dist/cursor/daemon-process-ownership.js +112 -0
- package/dist/cursor/daemon-process-ownership.js.map +1 -0
- package/dist/cursor/index.d.ts +12 -0
- package/dist/cursor/index.d.ts.map +1 -0
- package/dist/cursor/index.js +61 -0
- package/dist/cursor/index.js.map +1 -0
- package/dist/cursor/types.d.ts +80 -0
- package/dist/cursor/types.d.ts.map +1 -0
- package/dist/cursor/types.js +8 -0
- package/dist/cursor/types.js.map +1 -0
- package/dist/delegation/delegation-handler.d.ts +65 -0
- package/dist/delegation/delegation-handler.d.ts.map +1 -0
- package/dist/delegation/delegation-handler.js +282 -0
- package/dist/delegation/delegation-handler.js.map +1 -0
- package/dist/delegation/executor/index.d.ts +7 -0
- package/dist/delegation/executor/index.d.ts.map +1 -0
- package/dist/delegation/executor/index.js +28 -0
- package/dist/delegation/executor/index.js.map +1 -0
- package/dist/delegation/executor/result-aggregator.d.ts +31 -0
- package/dist/delegation/executor/result-aggregator.d.ts.map +1 -0
- package/dist/delegation/executor/result-aggregator.js +86 -0
- package/dist/delegation/executor/result-aggregator.js.map +1 -0
- package/dist/delegation/executor/stream-parser.d.ts +28 -0
- package/dist/delegation/executor/stream-parser.d.ts.map +1 -0
- package/dist/delegation/executor/stream-parser.js +140 -0
- package/dist/delegation/executor/stream-parser.js.map +1 -0
- package/dist/delegation/executor/types.d.ts +131 -0
- package/dist/delegation/executor/types.d.ts.map +1 -0
- package/dist/delegation/executor/types.js +6 -0
- package/dist/delegation/executor/types.js.map +1 -0
- package/dist/delegation/headless-executor.d.ts +37 -0
- package/dist/delegation/headless-executor.d.ts.map +1 -0
- package/dist/delegation/headless-executor.js +539 -0
- package/dist/delegation/headless-executor.js.map +1 -0
- package/dist/delegation/index.d.ts +11 -0
- package/dist/delegation/index.d.ts.map +1 -0
- package/dist/delegation/index.js +33 -0
- package/dist/delegation/index.js.map +1 -0
- package/dist/delegation/result-formatter.d.ts +56 -0
- package/dist/delegation/result-formatter.d.ts.map +1 -0
- package/dist/delegation/result-formatter.js +341 -0
- package/dist/delegation/result-formatter.js.map +1 -0
- package/dist/delegation/session-manager.d.ts +58 -0
- package/dist/delegation/session-manager.d.ts.map +1 -0
- package/dist/delegation/session-manager.js +153 -0
- package/dist/delegation/session-manager.js.map +1 -0
- package/dist/delegation/settings-parser.d.ts +31 -0
- package/dist/delegation/settings-parser.d.ts.map +1 -0
- package/dist/delegation/settings-parser.js +107 -0
- package/dist/delegation/settings-parser.js.map +1 -0
- package/dist/docker/docker-assets.d.ts +25 -0
- package/dist/docker/docker-assets.d.ts.map +1 -0
- package/dist/docker/docker-assets.js +106 -0
- package/dist/docker/docker-assets.js.map +1 -0
- package/dist/docker/docker-bootstrap.d.ts +2 -0
- package/dist/docker/docker-bootstrap.d.ts.map +1 -0
- package/dist/docker/docker-bootstrap.js +69 -0
- package/dist/docker/docker-bootstrap.js.map +1 -0
- package/dist/docker/docker-executor.d.ts +42 -0
- package/dist/docker/docker-executor.d.ts.map +1 -0
- package/dist/docker/docker-executor.js +262 -0
- package/dist/docker/docker-executor.js.map +1 -0
- package/dist/docker/docker-types.d.ts +39 -0
- package/dist/docker/docker-types.d.ts.map +1 -0
- package/dist/docker/docker-types.js +3 -0
- package/dist/docker/docker-types.js.map +1 -0
- package/dist/docker/index.d.ts +4 -0
- package/dist/docker/index.d.ts.map +1 -0
- package/dist/docker/index.js +12 -0
- package/dist/docker/index.js.map +1 -0
- package/dist/errors/cleanup-registry.d.ts +64 -0
- package/dist/errors/cleanup-registry.d.ts.map +1 -0
- package/dist/errors/cleanup-registry.js +141 -0
- package/dist/errors/cleanup-registry.js.map +1 -0
- package/dist/errors/error-handler.d.ts +45 -0
- package/dist/errors/error-handler.d.ts.map +1 -0
- package/dist/errors/error-handler.js +150 -0
- package/dist/errors/error-handler.js.map +1 -0
- package/dist/errors/error-types.d.ts +110 -0
- package/dist/errors/error-types.d.ts.map +1 -0
- package/dist/errors/error-types.js +170 -0
- package/dist/errors/error-types.js.map +1 -0
- package/dist/errors/exit-codes.d.ts +49 -0
- package/dist/errors/exit-codes.d.ts.map +1 -0
- package/dist/errors/exit-codes.js +72 -0
- package/dist/errors/exit-codes.js.map +1 -0
- package/dist/errors/index.d.ts +29 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +62 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/glmt/delta-accumulator.d.ts +210 -0
- package/dist/glmt/delta-accumulator.d.ts.map +1 -0
- package/dist/glmt/delta-accumulator.js +351 -0
- package/dist/glmt/delta-accumulator.js.map +1 -0
- package/dist/glmt/glmt-proxy.d.ts +108 -0
- package/dist/glmt/glmt-proxy.d.ts.map +1 -0
- package/dist/glmt/glmt-proxy.js +666 -0
- package/dist/glmt/glmt-proxy.js.map +1 -0
- package/dist/glmt/glmt-transformer.d.ts +47 -0
- package/dist/glmt/glmt-transformer.d.ts.map +1 -0
- package/dist/glmt/glmt-transformer.js +197 -0
- package/dist/glmt/glmt-transformer.js.map +1 -0
- package/dist/glmt/index.d.ts +14 -0
- package/dist/glmt/index.d.ts.map +1 -0
- package/dist/glmt/index.js +41 -0
- package/dist/glmt/index.js.map +1 -0
- package/dist/glmt/locale-enforcer.d.ts +38 -0
- package/dist/glmt/locale-enforcer.d.ts.map +1 -0
- package/dist/glmt/locale-enforcer.js +69 -0
- package/dist/glmt/locale-enforcer.js.map +1 -0
- package/dist/glmt/pipeline/content-transformer.d.ts +39 -0
- package/dist/glmt/pipeline/content-transformer.d.ts.map +1 -0
- package/dist/glmt/pipeline/content-transformer.js +162 -0
- package/dist/glmt/pipeline/content-transformer.js.map +1 -0
- package/dist/glmt/pipeline/index.d.ts +12 -0
- package/dist/glmt/pipeline/index.d.ts.map +1 -0
- package/dist/glmt/pipeline/index.js +20 -0
- package/dist/glmt/pipeline/index.js.map +1 -0
- package/dist/glmt/pipeline/request-transformer.d.ts +31 -0
- package/dist/glmt/pipeline/request-transformer.d.ts.map +1 -0
- package/dist/glmt/pipeline/request-transformer.js +116 -0
- package/dist/glmt/pipeline/request-transformer.js.map +1 -0
- package/dist/glmt/pipeline/response-builder.d.ts +52 -0
- package/dist/glmt/pipeline/response-builder.d.ts.map +1 -0
- package/dist/glmt/pipeline/response-builder.js +205 -0
- package/dist/glmt/pipeline/response-builder.js.map +1 -0
- package/dist/glmt/pipeline/stream-parser.d.ts +59 -0
- package/dist/glmt/pipeline/stream-parser.d.ts.map +1 -0
- package/dist/glmt/pipeline/stream-parser.js +241 -0
- package/dist/glmt/pipeline/stream-parser.js.map +1 -0
- package/dist/glmt/pipeline/tool-call-handler.d.ts +22 -0
- package/dist/glmt/pipeline/tool-call-handler.d.ts.map +1 -0
- package/dist/glmt/pipeline/tool-call-handler.js +87 -0
- package/dist/glmt/pipeline/tool-call-handler.js.map +1 -0
- package/dist/glmt/pipeline/types.d.ts +159 -0
- package/dist/glmt/pipeline/types.d.ts.map +1 -0
- package/dist/glmt/pipeline/types.js +6 -0
- package/dist/glmt/pipeline/types.js.map +1 -0
- package/dist/glmt/reasoning-enforcer.d.ts +52 -0
- package/dist/glmt/reasoning-enforcer.d.ts.map +1 -0
- package/dist/glmt/reasoning-enforcer.js +151 -0
- package/dist/glmt/reasoning-enforcer.js.map +1 -0
- package/dist/glmt/sse-parser.d.ts +49 -0
- package/dist/glmt/sse-parser.d.ts.map +1 -0
- package/dist/glmt/sse-parser.js +97 -0
- package/dist/glmt/sse-parser.js.map +1 -0
- package/dist/management/checks/cliproxy-check.d.ts +37 -0
- package/dist/management/checks/cliproxy-check.d.ts.map +1 -0
- package/dist/management/checks/cliproxy-check.js +187 -0
- package/dist/management/checks/cliproxy-check.js.map +1 -0
- package/dist/management/checks/config-check.d.ts +38 -0
- package/dist/management/checks/config-check.d.ts.map +1 -0
- package/dist/management/checks/config-check.js +215 -0
- package/dist/management/checks/config-check.js.map +1 -0
- package/dist/management/checks/env-check.d.ts +17 -0
- package/dist/management/checks/env-check.d.ts.map +1 -0
- package/dist/management/checks/env-check.js +77 -0
- package/dist/management/checks/env-check.js.map +1 -0
- package/dist/management/checks/image-analysis-check.d.ts +16 -0
- package/dist/management/checks/image-analysis-check.d.ts.map +1 -0
- package/dist/management/checks/image-analysis-check.js +139 -0
- package/dist/management/checks/image-analysis-check.js.map +1 -0
- package/dist/management/checks/index.d.ts +14 -0
- package/dist/management/checks/index.d.ts.map +1 -0
- package/dist/management/checks/index.js +51 -0
- package/dist/management/checks/index.js.map +1 -0
- package/dist/management/checks/oauth-check.d.ts +16 -0
- package/dist/management/checks/oauth-check.d.ts.map +1 -0
- package/dist/management/checks/oauth-check.js +68 -0
- package/dist/management/checks/oauth-check.js.map +1 -0
- package/dist/management/checks/profile-check.d.ts +40 -0
- package/dist/management/checks/profile-check.d.ts.map +1 -0
- package/dist/management/checks/profile-check.js +190 -0
- package/dist/management/checks/profile-check.js.map +1 -0
- package/dist/management/checks/symlink-check.d.ts +30 -0
- package/dist/management/checks/symlink-check.d.ts.map +1 -0
- package/dist/management/checks/symlink-check.js +214 -0
- package/dist/management/checks/symlink-check.js.map +1 -0
- package/dist/management/checks/system-check.d.ts +25 -0
- package/dist/management/checks/system-check.d.ts.map +1 -0
- package/dist/management/checks/system-check.js +137 -0
- package/dist/management/checks/system-check.js.map +1 -0
- package/dist/management/checks/types.d.ts +64 -0
- package/dist/management/checks/types.d.ts.map +1 -0
- package/dist/management/checks/types.js +64 -0
- package/dist/management/checks/types.js.map +1 -0
- package/dist/management/doctor.d.ts +34 -0
- package/dist/management/doctor.d.ts.map +1 -0
- package/dist/management/doctor.js +154 -0
- package/dist/management/doctor.js.map +1 -0
- package/dist/management/environment-diagnostics.d.ts +69 -0
- package/dist/management/environment-diagnostics.d.ts.map +1 -0
- package/dist/management/environment-diagnostics.js +229 -0
- package/dist/management/environment-diagnostics.js.map +1 -0
- package/dist/management/index.d.ts +15 -0
- package/dist/management/index.d.ts.map +1 -0
- package/dist/management/index.js +56 -0
- package/dist/management/index.js.map +1 -0
- package/dist/management/instance-manager.d.ts +63 -0
- package/dist/management/instance-manager.d.ts.map +1 -0
- package/dist/management/instance-manager.js +249 -0
- package/dist/management/instance-manager.js.map +1 -0
- package/dist/management/oauth-port-diagnostics.d.ts +112 -0
- package/dist/management/oauth-port-diagnostics.d.ts.map +1 -0
- package/dist/management/oauth-port-diagnostics.js +280 -0
- package/dist/management/oauth-port-diagnostics.js.map +1 -0
- package/dist/management/profile-context-sync-lock.d.ts +17 -0
- package/dist/management/profile-context-sync-lock.d.ts.map +1 -0
- package/dist/management/profile-context-sync-lock.js +246 -0
- package/dist/management/profile-context-sync-lock.js.map +1 -0
- package/dist/management/recovery-manager.d.ts +56 -0
- package/dist/management/recovery-manager.d.ts.map +1 -0
- package/dist/management/recovery-manager.js +233 -0
- package/dist/management/recovery-manager.js.map +1 -0
- package/dist/management/repair/auto-repair.d.ts +13 -0
- package/dist/management/repair/auto-repair.d.ts.map +1 -0
- package/dist/management/repair/auto-repair.js +185 -0
- package/dist/management/repair/auto-repair.js.map +1 -0
- package/dist/management/repair/index.d.ts +5 -0
- package/dist/management/repair/index.d.ts.map +1 -0
- package/dist/management/repair/index.js +9 -0
- package/dist/management/repair/index.js.map +1 -0
- package/dist/management/shared-manager.d.ts +164 -0
- package/dist/management/shared-manager.d.ts.map +1 -0
- package/dist/management/shared-manager.js +1338 -0
- package/dist/management/shared-manager.js.map +1 -0
- package/dist/shared/claude-extension-hosts.d.ts +12 -0
- package/dist/shared/claude-extension-hosts.d.ts.map +1 -0
- package/dist/shared/claude-extension-hosts.js +33 -0
- package/dist/shared/claude-extension-hosts.js.map +1 -0
- package/dist/shared/claude-extension-setup.d.ts +30 -0
- package/dist/shared/claude-extension-setup.d.ts.map +1 -0
- package/dist/shared/claude-extension-setup.js +266 -0
- package/dist/shared/claude-extension-setup.js.map +1 -0
- package/dist/shared/compatible-cli-contracts.d.ts +196 -0
- package/dist/shared/compatible-cli-contracts.d.ts.map +1 -0
- package/dist/shared/compatible-cli-contracts.js +3 -0
- package/dist/shared/compatible-cli-contracts.js.map +1 -0
- package/dist/shared/extended-context-utils.d.ts +33 -0
- package/dist/shared/extended-context-utils.d.ts.map +1 -0
- package/dist/shared/extended-context-utils.js +90 -0
- package/dist/shared/extended-context-utils.js.map +1 -0
- package/dist/shared/gemini-minor-version-compatibility.d.ts +11 -0
- package/dist/shared/gemini-minor-version-compatibility.d.ts.map +1 -0
- package/dist/shared/gemini-minor-version-compatibility.js +14 -0
- package/dist/shared/gemini-minor-version-compatibility.js.map +1 -0
- package/dist/shared/provider-preset-catalog.d.ts +39 -0
- package/dist/shared/provider-preset-catalog.d.ts.map +1 -0
- package/dist/shared/provider-preset-catalog.js +283 -0
- package/dist/shared/provider-preset-catalog.js.map +1 -0
- package/dist/shared/toml-object.d.ts +7 -0
- package/dist/shared/toml-object.d.ts.map +1 -0
- package/dist/shared/toml-object.js +34 -0
- package/dist/shared/toml-object.js.map +1 -0
- package/dist/targets/claude-adapter.d.ts +29 -0
- package/dist/targets/claude-adapter.d.ts.map +1 -0
- package/dist/targets/claude-adapter.js +130 -0
- package/dist/targets/claude-adapter.js.map +1 -0
- package/dist/targets/codex-adapter.d.ts +21 -0
- package/dist/targets/codex-adapter.d.ts.map +1 -0
- package/dist/targets/codex-adapter.js +302 -0
- package/dist/targets/codex-adapter.js.map +1 -0
- package/dist/targets/codex-detector.d.ts +9 -0
- package/dist/targets/codex-detector.d.ts.map +1 -0
- package/dist/targets/codex-detector.js +176 -0
- package/dist/targets/codex-detector.js.map +1 -0
- package/dist/targets/droid-adapter.d.ts +32 -0
- package/dist/targets/droid-adapter.d.ts.map +1 -0
- package/dist/targets/droid-adapter.js +184 -0
- package/dist/targets/droid-adapter.js.map +1 -0
- package/dist/targets/droid-command-router.d.ts +26 -0
- package/dist/targets/droid-command-router.d.ts.map +1 -0
- package/dist/targets/droid-command-router.js +240 -0
- package/dist/targets/droid-command-router.js.map +1 -0
- package/dist/targets/droid-config-manager.d.ts +41 -0
- package/dist/targets/droid-config-manager.d.ts.map +1 -0
- package/dist/targets/droid-config-manager.js +515 -0
- package/dist/targets/droid-config-manager.js.map +1 -0
- package/dist/targets/droid-detector.d.ts +25 -0
- package/dist/targets/droid-detector.d.ts.map +1 -0
- package/dist/targets/droid-detector.js +140 -0
- package/dist/targets/droid-detector.js.map +1 -0
- package/dist/targets/droid-provider.d.ts +40 -0
- package/dist/targets/droid-provider.d.ts.map +1 -0
- package/dist/targets/droid-provider.js +140 -0
- package/dist/targets/droid-provider.js.map +1 -0
- package/dist/targets/droid-reasoning-runtime.d.ts +14 -0
- package/dist/targets/droid-reasoning-runtime.d.ts.map +1 -0
- package/dist/targets/droid-reasoning-runtime.js +42 -0
- package/dist/targets/droid-reasoning-runtime.js.map +1 -0
- package/dist/targets/index.d.ts +20 -0
- package/dist/targets/index.d.ts.map +1 -0
- package/dist/targets/index.js +50 -0
- package/dist/targets/index.js.map +1 -0
- package/dist/targets/target-adapter.d.ts +95 -0
- package/dist/targets/target-adapter.d.ts.map +1 -0
- package/dist/targets/target-adapter.js +9 -0
- package/dist/targets/target-adapter.js.map +1 -0
- package/dist/targets/target-metadata.d.ts +18 -0
- package/dist/targets/target-metadata.d.ts.map +1 -0
- package/dist/targets/target-metadata.js +76 -0
- package/dist/targets/target-metadata.js.map +1 -0
- package/dist/targets/target-registry.d.ts +30 -0
- package/dist/targets/target-registry.d.ts.map +1 -0
- package/dist/targets/target-registry.js +53 -0
- package/dist/targets/target-registry.js.map +1 -0
- package/dist/targets/target-resolver.d.ts +26 -0
- package/dist/targets/target-resolver.d.ts.map +1 -0
- package/dist/targets/target-resolver.js +188 -0
- package/dist/targets/target-resolver.js.map +1 -0
- package/dist/targets/target-runtime-compatibility.d.ts +17 -0
- package/dist/targets/target-runtime-compatibility.d.ts.map +1 -0
- package/dist/targets/target-runtime-compatibility.js +56 -0
- package/dist/targets/target-runtime-compatibility.js.map +1 -0
- package/dist/types/cli.d.ts +51 -0
- package/dist/types/cli.d.ts.map +1 -0
- package/dist/types/cli.js +15 -0
- package/dist/types/cli.js.map +1 -0
- package/dist/types/config.d.ts +110 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +26 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/delegation.d.ts +49 -0
- package/dist/types/delegation.d.ts.map +1 -0
- package/dist/types/delegation.js +6 -0
- package/dist/types/delegation.js.map +1 -0
- package/dist/types/glmt.d.ts +95 -0
- package/dist/types/glmt.d.ts.map +1 -0
- package/dist/types/glmt.js +7 -0
- package/dist/types/glmt.js.map +1 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +16 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/profile.d.ts +5 -0
- package/dist/types/profile.d.ts.map +1 -0
- package/dist/types/profile.js +3 -0
- package/dist/types/profile.js.map +1 -0
- package/dist/types/utils.d.ts +108 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/dist/types/utils.js +21 -0
- package/dist/types/utils.js.map +1 -0
- package/dist/ui/assets/accounts-BawY2EFo.js +1 -0
- package/dist/ui/assets/alert-dialog-DJToPlWr.js +1 -0
- package/dist/ui/assets/antigravity-responsibility-constants-Bvh4Ybz0.js +1 -0
- package/dist/ui/assets/api-B_Sk3MzB.js +4 -0
- package/dist/ui/assets/auth-section-DtP8Ixck.js +1 -0
- package/dist/ui/assets/backups-section-CxoodKPY.js +1 -0
- package/dist/ui/assets/channels-oUD972yw.js +1 -0
- package/dist/ui/assets/charts-BBPXh0Ar.js +64 -0
- package/dist/ui/assets/checkbox-DldvhZr2.js +1 -0
- package/dist/ui/assets/claude-extension-BQfPcmbe.js +1 -0
- package/dist/ui/assets/cliproxy-MCTZXq_x.js +3 -0
- package/dist/ui/assets/cliproxy-ai-providers-Bx4Gyza9.js +21 -0
- package/dist/ui/assets/cliproxy-control-panel-sPk6MWN7.js +1 -0
- package/dist/ui/assets/code-highlight-BRUf_pqB.js +3 -0
- package/dist/ui/assets/codex-C_o_GPqT.js +27 -0
- package/dist/ui/assets/confirm-dialog-BmHoUnZO.js +1 -0
- package/dist/ui/assets/copilot-BuAdQurr.js +3 -0
- package/dist/ui/assets/cursor-gnSaatOG.js +1 -0
- package/dist/ui/assets/default-ports-1QQSffYX.js +1 -0
- package/dist/ui/assets/droid-AFAxzlIY.js +2 -0
- package/dist/ui/assets/form-utils-Bcoyqxpq.js +20 -0
- package/dist/ui/assets/globalenv-section-DzKqUqtp.js +1 -0
- package/dist/ui/assets/health-DvVHEWDT.js +1 -0
- package/dist/ui/assets/icons-BfVvKgF4.js +1 -0
- package/dist/ui/assets/index-5tRlHaND.js +1 -0
- package/dist/ui/assets/index-C49jYnaE.js +69 -0
- package/dist/ui/assets/index-C5p5ceFZ.js +1 -0
- package/dist/ui/assets/index-Ck54nQUw.js +1 -0
- package/dist/ui/assets/index-CknHGRYp.css +1 -0
- package/dist/ui/assets/index-DO32ZV1u.js +1 -0
- package/dist/ui/assets/index-iMG7ay6w.js +1 -0
- package/dist/ui/assets/masked-input-BdgjVGKH.js +1 -0
- package/dist/ui/assets/notifications-B2HqRBj7.js +1 -0
- package/dist/ui/assets/providers/agy.png +0 -0
- package/dist/ui/assets/providers/alibabacloud-color.svg +1 -0
- package/dist/ui/assets/providers/claude.svg +1 -0
- package/dist/ui/assets/providers/codex-color.svg +24 -0
- package/dist/ui/assets/providers/copilot.svg +1 -0
- package/dist/ui/assets/providers/gemini-color.svg +1 -0
- package/dist/ui/assets/providers/iflow.png +0 -0
- package/dist/ui/assets/providers/kimi.svg +1 -0
- package/dist/ui/assets/providers/kiro.png +0 -0
- package/dist/ui/assets/providers/llama-cpp.svg +5 -0
- package/dist/ui/assets/providers/openai.svg +1 -0
- package/dist/ui/assets/providers/qwen-color.svg +1 -0
- package/dist/ui/assets/providers/vertex.svg +25 -0
- package/dist/ui/assets/proxy-status-widget-CYPtmhP7.js +1 -0
- package/dist/ui/assets/radix-ui-Zb8sVEtn.js +51 -0
- package/dist/ui/assets/raw-json-settings-editor-panel-BkZCtsKd.js +1 -0
- package/dist/ui/assets/react-vendor-CNOkPC89.js +3 -0
- package/dist/ui/assets/searchable-select-CbOXs3LO.js +1 -0
- package/dist/ui/assets/separator-CMvAvZb-.js +1 -0
- package/dist/ui/assets/shared-miNlaAR3.js +8 -0
- package/dist/ui/assets/sidebar/codex.svg +1 -0
- package/dist/ui/assets/sidebar/cursor.svg +1 -0
- package/dist/ui/assets/table-CAFxBhYo.js +1 -0
- package/dist/ui/assets/tanstack-DWm6aJ-G.js +4 -0
- package/dist/ui/assets/updates-BaQgmf4M.js +1 -0
- package/dist/ui/assets/utils-CzKF5WmX.js +1 -0
- package/dist/ui/favicon.ico +0 -0
- package/dist/ui/favicons/android-chrome-192x192.png +0 -0
- package/dist/ui/favicons/android-chrome-512x512.png +0 -0
- package/dist/ui/favicons/android-chrome-512x512.webp +0 -0
- package/dist/ui/favicons/apple-touch-icon.png +0 -0
- package/dist/ui/favicons/favicon-16x16.png +0 -0
- package/dist/ui/favicons/favicon-32x32.png +0 -0
- package/dist/ui/favicons/favicon.ico +0 -0
- package/dist/ui/icons/azure.svg +1 -0
- package/dist/ui/icons/deepseek.svg +1 -0
- package/dist/ui/icons/kimi.svg +1 -0
- package/dist/ui/icons/minimax.svg +1 -0
- package/dist/ui/icons/novita.svg +9 -0
- package/dist/ui/icons/ollama.svg +1 -0
- package/dist/ui/icons/openrouter.svg +1 -0
- package/dist/ui/icons/zai.svg +1 -0
- package/dist/ui/index.html +41 -0
- package/dist/ui/logo/ccs-logo-256.png +0 -0
- package/dist/ui/logo/ccs-logo-zoomed-web.png +0 -0
- package/dist/ui/logo/ccs-social-media.png +0 -0
- package/dist/ui/logo/ccs-social-media.webp +0 -0
- package/dist/ui/logos/claudekit-logo.png +0 -0
- package/dist/utils/api-key-validator.d.ts +16 -0
- package/dist/utils/api-key-validator.d.ts.map +1 -0
- package/dist/utils/api-key-validator.js +206 -0
- package/dist/utils/api-key-validator.js.map +1 -0
- package/dist/utils/claude-config-path.d.ts +19 -0
- package/dist/utils/claude-config-path.d.ts.map +1 -0
- package/dist/utils/claude-config-path.js +62 -0
- package/dist/utils/claude-config-path.js.map +1 -0
- package/dist/utils/claude-detector.d.ts +28 -0
- package/dist/utils/claude-detector.d.ts.map +1 -0
- package/dist/utils/claude-detector.js +251 -0
- package/dist/utils/claude-detector.js.map +1 -0
- package/dist/utils/claude-dir-installer.d.ts +46 -0
- package/dist/utils/claude-dir-installer.d.ts.map +1 -0
- package/dist/utils/claude-dir-installer.js +289 -0
- package/dist/utils/claude-dir-installer.js.map +1 -0
- package/dist/utils/claude-spawner.d.ts +54 -0
- package/dist/utils/claude-spawner.d.ts.map +1 -0
- package/dist/utils/claude-spawner.js +119 -0
- package/dist/utils/claude-spawner.js.map +1 -0
- package/dist/utils/claude-symlink-manager.d.ts +75 -0
- package/dist/utils/claude-symlink-manager.d.ts.map +1 -0
- package/dist/utils/claude-symlink-manager.js +393 -0
- package/dist/utils/claude-symlink-manager.js.map +1 -0
- package/dist/utils/config-manager.d.ts +87 -0
- package/dist/utils/config-manager.d.ts.map +1 -0
- package/dist/utils/config-manager.js +404 -0
- package/dist/utils/config-manager.js.map +1 -0
- package/dist/utils/delegation-validator.d.ts +44 -0
- package/dist/utils/delegation-validator.d.ts.map +1 -0
- package/dist/utils/delegation-validator.js +187 -0
- package/dist/utils/delegation-validator.js.map +1 -0
- package/dist/utils/error-codes.d.ts +36 -0
- package/dist/utils/error-codes.d.ts.map +1 -0
- package/dist/utils/error-codes.js +68 -0
- package/dist/utils/error-codes.js.map +1 -0
- package/dist/utils/error-manager.d.ts +59 -0
- package/dist/utils/error-manager.d.ts.map +1 -0
- package/dist/utils/error-manager.js +250 -0
- package/dist/utils/error-manager.js.map +1 -0
- package/dist/utils/fetch-proxy-setup.d.ts +13 -0
- package/dist/utils/fetch-proxy-setup.d.ts.map +1 -0
- package/dist/utils/fetch-proxy-setup.js +112 -0
- package/dist/utils/fetch-proxy-setup.js.map +1 -0
- package/dist/utils/glmt-deprecation.d.ts +11 -0
- package/dist/utils/glmt-deprecation.d.ts.map +1 -0
- package/dist/utils/glmt-deprecation.js +64 -0
- package/dist/utils/glmt-deprecation.js.map +1 -0
- package/dist/utils/helpers.d.ts +17 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/helpers.js +111 -0
- package/dist/utils/helpers.js.map +1 -0
- package/dist/utils/hooks/get-image-analysis-hook-env.d.ts +44 -0
- package/dist/utils/hooks/get-image-analysis-hook-env.d.ts.map +1 -0
- package/dist/utils/hooks/get-image-analysis-hook-env.js +129 -0
- package/dist/utils/hooks/get-image-analysis-hook-env.js.map +1 -0
- package/dist/utils/hooks/image-analysis-backend-resolver.d.ts +53 -0
- package/dist/utils/hooks/image-analysis-backend-resolver.d.ts.map +1 -0
- package/dist/utils/hooks/image-analysis-backend-resolver.js +384 -0
- package/dist/utils/hooks/image-analysis-backend-resolver.js.map +1 -0
- package/dist/utils/hooks/image-analysis-runtime-status.d.ts +19 -0
- package/dist/utils/hooks/image-analysis-runtime-status.d.ts.map +1 -0
- package/dist/utils/hooks/image-analysis-runtime-status.js +136 -0
- package/dist/utils/hooks/image-analysis-runtime-status.js.map +1 -0
- package/dist/utils/hooks/image-analyzer-hook-configuration.d.ts +17 -0
- package/dist/utils/hooks/image-analyzer-hook-configuration.d.ts.map +1 -0
- package/dist/utils/hooks/image-analyzer-hook-configuration.js +71 -0
- package/dist/utils/hooks/image-analyzer-hook-configuration.js.map +1 -0
- package/dist/utils/hooks/image-analyzer-hook-installer.d.ts +31 -0
- package/dist/utils/hooks/image-analyzer-hook-installer.d.ts.map +1 -0
- package/dist/utils/hooks/image-analyzer-hook-installer.js +182 -0
- package/dist/utils/hooks/image-analyzer-hook-installer.js.map +1 -0
- package/dist/utils/hooks/image-analyzer-profile-hook-injector.d.ts +25 -0
- package/dist/utils/hooks/image-analyzer-profile-hook-injector.d.ts.map +1 -0
- package/dist/utils/hooks/image-analyzer-profile-hook-injector.js +275 -0
- package/dist/utils/hooks/image-analyzer-profile-hook-injector.js.map +1 -0
- package/dist/utils/hooks/index.d.ts +14 -0
- package/dist/utils/hooks/index.d.ts.map +1 -0
- package/dist/utils/hooks/index.js +35 -0
- package/dist/utils/hooks/index.js.map +1 -0
- package/dist/utils/image-analysis/claude-tool-args.d.ts +6 -0
- package/dist/utils/image-analysis/claude-tool-args.d.ts.map +1 -0
- package/dist/utils/image-analysis/claude-tool-args.js +65 -0
- package/dist/utils/image-analysis/claude-tool-args.js.map +1 -0
- package/dist/utils/image-analysis/hook-installer.d.ts +19 -0
- package/dist/utils/image-analysis/hook-installer.d.ts.map +1 -0
- package/dist/utils/image-analysis/hook-installer.js +112 -0
- package/dist/utils/image-analysis/hook-installer.js.map +1 -0
- package/dist/utils/image-analysis/index.d.ts +11 -0
- package/dist/utils/image-analysis/index.d.ts.map +1 -0
- package/dist/utils/image-analysis/index.js +31 -0
- package/dist/utils/image-analysis/index.js.map +1 -0
- package/dist/utils/image-analysis/mcp-installer.d.ts +18 -0
- package/dist/utils/image-analysis/mcp-installer.d.ts.map +1 -0
- package/dist/utils/image-analysis/mcp-installer.js +447 -0
- package/dist/utils/image-analysis/mcp-installer.js.map +1 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +50 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/package-manager-detector.d.ts +11 -0
- package/dist/utils/package-manager-detector.d.ts.map +1 -0
- package/dist/utils/package-manager-detector.js +103 -0
- package/dist/utils/package-manager-detector.js.map +1 -0
- package/dist/utils/percentage.d.ts +5 -0
- package/dist/utils/percentage.d.ts.map +1 -0
- package/dist/utils/percentage.js +13 -0
- package/dist/utils/percentage.js.map +1 -0
- package/dist/utils/platform-commands.d.ts +53 -0
- package/dist/utils/platform-commands.d.ts.map +1 -0
- package/dist/utils/platform-commands.js +189 -0
- package/dist/utils/platform-commands.js.map +1 -0
- package/dist/utils/port-utils.d.ts +55 -0
- package/dist/utils/port-utils.d.ts.map +1 -0
- package/dist/utils/port-utils.js +217 -0
- package/dist/utils/port-utils.js.map +1 -0
- package/dist/utils/process-utils.d.ts +12 -0
- package/dist/utils/process-utils.d.ts.map +1 -0
- package/dist/utils/process-utils.js +23 -0
- package/dist/utils/process-utils.js.map +1 -0
- package/dist/utils/profile-compat.d.ts +22 -0
- package/dist/utils/profile-compat.d.ts.map +1 -0
- package/dist/utils/profile-compat.js +54 -0
- package/dist/utils/profile-compat.js.map +1 -0
- package/dist/utils/progress-indicator.d.ts +53 -0
- package/dist/utils/progress-indicator.d.ts.map +1 -0
- package/dist/utils/progress-indicator.js +104 -0
- package/dist/utils/progress-indicator.js.map +1 -0
- package/dist/utils/prompt.d.ts +55 -0
- package/dist/utils/prompt.d.ts.map +1 -0
- package/dist/utils/prompt.js +270 -0
- package/dist/utils/prompt.js.map +1 -0
- package/dist/utils/proxy-env.d.ts +15 -0
- package/dist/utils/proxy-env.d.ts.map +1 -0
- package/dist/utils/proxy-env.js +126 -0
- package/dist/utils/proxy-env.js.map +1 -0
- package/dist/utils/sensitive-keys.d.ts +35 -0
- package/dist/utils/sensitive-keys.d.ts.map +1 -0
- package/dist/utils/sensitive-keys.js +69 -0
- package/dist/utils/sensitive-keys.js.map +1 -0
- package/dist/utils/shell-completion.d.ts +54 -0
- package/dist/utils/shell-completion.d.ts.map +1 -0
- package/dist/utils/shell-completion.js +261 -0
- package/dist/utils/shell-completion.js.map +1 -0
- package/dist/utils/shell-executor.d.ts +44 -0
- package/dist/utils/shell-executor.d.ts.map +1 -0
- package/dist/utils/shell-executor.js +212 -0
- package/dist/utils/shell-executor.js.map +1 -0
- package/dist/utils/signal-forwarder.d.ts +23 -0
- package/dist/utils/signal-forwarder.d.ts.map +1 -0
- package/dist/utils/signal-forwarder.js +70 -0
- package/dist/utils/signal-forwarder.js.map +1 -0
- package/dist/utils/time.d.ts +10 -0
- package/dist/utils/time.d.ts.map +1 -0
- package/dist/utils/time.js +27 -0
- package/dist/utils/time.js.map +1 -0
- package/dist/utils/ui/boxes.d.ts +24 -0
- package/dist/utils/ui/boxes.d.ts.map +1 -0
- package/dist/utils/ui/boxes.js +108 -0
- package/dist/utils/ui/boxes.js.map +1 -0
- package/dist/utils/ui/colors.d.ts +25 -0
- package/dist/utils/ui/colors.d.ts.map +1 -0
- package/dist/utils/ui/colors.js +70 -0
- package/dist/utils/ui/colors.js.map +1 -0
- package/dist/utils/ui/index.d.ts +51 -0
- package/dist/utils/ui/index.d.ts.map +1 -0
- package/dist/utils/ui/index.js +96 -0
- package/dist/utils/ui/index.js.map +1 -0
- package/dist/utils/ui/indicators.d.ts +23 -0
- package/dist/utils/ui/indicators.d.ts.map +1 -0
- package/dist/utils/ui/indicators.js +39 -0
- package/dist/utils/ui/indicators.js.map +1 -0
- package/dist/utils/ui/init.d.ts +30 -0
- package/dist/utils/ui/init.d.ts.map +1 -0
- package/dist/utils/ui/init.js +91 -0
- package/dist/utils/ui/init.js.map +1 -0
- package/dist/utils/ui/spinner.d.ts +13 -0
- package/dist/utils/ui/spinner.d.ts.map +1 -0
- package/dist/utils/ui/spinner.js +89 -0
- package/dist/utils/ui/spinner.js.map +1 -0
- package/dist/utils/ui/tables.d.ts +12 -0
- package/dist/utils/ui/tables.d.ts.map +1 -0
- package/dist/utils/ui/tables.js +69 -0
- package/dist/utils/ui/tables.js.map +1 -0
- package/dist/utils/ui/tasks.d.ts +26 -0
- package/dist/utils/ui/tasks.d.ts.map +1 -0
- package/dist/utils/ui/tasks.js +102 -0
- package/dist/utils/ui/tasks.js.map +1 -0
- package/dist/utils/ui/text.d.ts +24 -0
- package/dist/utils/ui/text.d.ts.map +1 -0
- package/dist/utils/ui/text.js +60 -0
- package/dist/utils/ui/text.js.map +1 -0
- package/dist/utils/ui/types.d.ts +36 -0
- package/dist/utils/ui/types.d.ts.map +1 -0
- package/dist/utils/ui/types.js +33 -0
- package/dist/utils/ui/types.js.map +1 -0
- package/dist/utils/ui.d.ts +17 -0
- package/dist/utils/ui.d.ts.map +1 -0
- package/dist/utils/ui.js +57 -0
- package/dist/utils/ui.js.map +1 -0
- package/dist/utils/update-checker.d.ts +71 -0
- package/dist/utils/update-checker.d.ts.map +1 -0
- package/dist/utils/update-checker.js +377 -0
- package/dist/utils/update-checker.js.map +1 -0
- package/dist/utils/version.d.ts +8 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +51 -0
- package/dist/utils/version.js.map +1 -0
- package/dist/utils/websearch/claude-tool-args.d.ts +5 -0
- package/dist/utils/websearch/claude-tool-args.d.ts.map +1 -0
- package/dist/utils/websearch/claude-tool-args.js +125 -0
- package/dist/utils/websearch/claude-tool-args.js.map +1 -0
- package/dist/utils/websearch/gemini-cli.d.ts +36 -0
- package/dist/utils/websearch/gemini-cli.d.ts.map +1 -0
- package/dist/utils/websearch/gemini-cli.js +132 -0
- package/dist/utils/websearch/gemini-cli.js.map +1 -0
- package/dist/utils/websearch/grok-cli.d.ts +26 -0
- package/dist/utils/websearch/grok-cli.d.ts.map +1 -0
- package/dist/utils/websearch/grok-cli.js +81 -0
- package/dist/utils/websearch/grok-cli.js.map +1 -0
- package/dist/utils/websearch/hook-config.d.ts +27 -0
- package/dist/utils/websearch/hook-config.d.ts.map +1 -0
- package/dist/utils/websearch/hook-config.js +266 -0
- package/dist/utils/websearch/hook-config.js.map +1 -0
- package/dist/utils/websearch/hook-env.d.ts +16 -0
- package/dist/utils/websearch/hook-env.d.ts.map +1 -0
- package/dist/utils/websearch/hook-env.js +86 -0
- package/dist/utils/websearch/hook-env.js.map +1 -0
- package/dist/utils/websearch/hook-installer.d.ts +33 -0
- package/dist/utils/websearch/hook-installer.d.ts.map +1 -0
- package/dist/utils/websearch/hook-installer.js +211 -0
- package/dist/utils/websearch/hook-installer.js.map +1 -0
- package/dist/utils/websearch/hook-utils.d.ts +18 -0
- package/dist/utils/websearch/hook-utils.d.ts.map +1 -0
- package/dist/utils/websearch/hook-utils.js +59 -0
- package/dist/utils/websearch/hook-utils.js.map +1 -0
- package/dist/utils/websearch/index.d.ts +22 -0
- package/dist/utils/websearch/index.d.ts.map +1 -0
- package/dist/utils/websearch/index.js +76 -0
- package/dist/utils/websearch/index.js.map +1 -0
- package/dist/utils/websearch/mcp-installer.d.ts +14 -0
- package/dist/utils/websearch/mcp-installer.d.ts.map +1 -0
- package/dist/utils/websearch/mcp-installer.js +351 -0
- package/dist/utils/websearch/mcp-installer.js.map +1 -0
- package/dist/utils/websearch/opencode-cli.d.ts +26 -0
- package/dist/utils/websearch/opencode-cli.d.ts.map +1 -0
- package/dist/utils/websearch/opencode-cli.js +81 -0
- package/dist/utils/websearch/opencode-cli.js.map +1 -0
- package/dist/utils/websearch/profile-hook-injector.d.ts +19 -0
- package/dist/utils/websearch/profile-hook-injector.d.ts.map +1 -0
- package/dist/utils/websearch/profile-hook-injector.js +265 -0
- package/dist/utils/websearch/profile-hook-injector.js.map +1 -0
- package/dist/utils/websearch/provider-secrets.d.ts +18 -0
- package/dist/utils/websearch/provider-secrets.d.ts.map +1 -0
- package/dist/utils/websearch/provider-secrets.js +83 -0
- package/dist/utils/websearch/provider-secrets.js.map +1 -0
- package/dist/utils/websearch/status.d.ts +30 -0
- package/dist/utils/websearch/status.d.ts.map +1 -0
- package/dist/utils/websearch/status.js +305 -0
- package/dist/utils/websearch/status.js.map +1 -0
- package/dist/utils/websearch/trace.d.ts +23 -0
- package/dist/utils/websearch/trace.d.ts.map +1 -0
- package/dist/utils/websearch/trace.js +206 -0
- package/dist/utils/websearch/trace.js.map +1 -0
- package/dist/utils/websearch/types.d.ts +99 -0
- package/dist/utils/websearch/types.d.ts.map +1 -0
- package/dist/utils/websearch/types.js +10 -0
- package/dist/utils/websearch/types.js.map +1 -0
- package/dist/utils/websearch-manager.d.ts +32 -0
- package/dist/utils/websearch-manager.d.ts.map +1 -0
- package/dist/utils/websearch-manager.js +89 -0
- package/dist/utils/websearch-manager.js.map +1 -0
- package/dist/web-server/data-aggregator.d.ts +7 -0
- package/dist/web-server/data-aggregator.d.ts.map +1 -0
- package/dist/web-server/data-aggregator.js +23 -0
- package/dist/web-server/data-aggregator.js.map +1 -0
- package/dist/web-server/file-watcher.d.ts +15 -0
- package/dist/web-server/file-watcher.d.ts.map +1 -0
- package/dist/web-server/file-watcher.js +93 -0
- package/dist/web-server/file-watcher.js.map +1 -0
- package/dist/web-server/health/cliproxy-checks.d.ts +27 -0
- package/dist/web-server/health/cliproxy-checks.d.ts.map +1 -0
- package/dist/web-server/health/cliproxy-checks.js +186 -0
- package/dist/web-server/health/cliproxy-checks.js.map +1 -0
- package/dist/web-server/health/config-checks.d.ts +20 -0
- package/dist/web-server/health/config-checks.d.ts.map +1 -0
- package/dist/web-server/health/config-checks.js +209 -0
- package/dist/web-server/health/config-checks.js.map +1 -0
- package/dist/web-server/health/environment-checks.d.ts +11 -0
- package/dist/web-server/health/environment-checks.d.ts.map +1 -0
- package/dist/web-server/health/environment-checks.js +40 -0
- package/dist/web-server/health/environment-checks.js.map +1 -0
- package/dist/web-server/health/index.d.ts +13 -0
- package/dist/web-server/health/index.d.ts.map +1 -0
- package/dist/web-server/health/index.js +41 -0
- package/dist/web-server/health/index.js.map +1 -0
- package/dist/web-server/health/oauth-checks.d.ts +11 -0
- package/dist/web-server/health/oauth-checks.d.ts.map +1 -0
- package/dist/web-server/health/oauth-checks.js +34 -0
- package/dist/web-server/health/oauth-checks.js.map +1 -0
- package/dist/web-server/health/profile-checks.d.ts +20 -0
- package/dist/web-server/health/profile-checks.d.ts.map +1 -0
- package/dist/web-server/health/profile-checks.js +184 -0
- package/dist/web-server/health/profile-checks.js.map +1 -0
- package/dist/web-server/health/symlink-checks.d.ts +15 -0
- package/dist/web-server/health/symlink-checks.d.ts.map +1 -0
- package/dist/web-server/health/symlink-checks.js +173 -0
- package/dist/web-server/health/symlink-checks.js.map +1 -0
- package/dist/web-server/health/system-checks.d.ts +19 -0
- package/dist/web-server/health/system-checks.d.ts.map +1 -0
- package/dist/web-server/health/system-checks.js +127 -0
- package/dist/web-server/health/system-checks.js.map +1 -0
- package/dist/web-server/health/types.d.ts +34 -0
- package/dist/web-server/health/types.d.ts.map +1 -0
- package/dist/web-server/health/types.js +8 -0
- package/dist/web-server/health/types.js.map +1 -0
- package/dist/web-server/health/websearch-checks.d.ts +11 -0
- package/dist/web-server/health/websearch-checks.d.ts.map +1 -0
- package/dist/web-server/health/websearch-checks.js +51 -0
- package/dist/web-server/health/websearch-checks.js.map +1 -0
- package/dist/web-server/health-service.d.ts +20 -0
- package/dist/web-server/health-service.d.ts.map +1 -0
- package/dist/web-server/health-service.js +161 -0
- package/dist/web-server/health-service.js.map +1 -0
- package/dist/web-server/index.d.ts +26 -0
- package/dist/web-server/index.d.ts.map +1 -0
- package/dist/web-server/index.js +164 -0
- package/dist/web-server/index.js.map +1 -0
- package/dist/web-server/jsonl-parser.d.ts +65 -0
- package/dist/web-server/jsonl-parser.d.ts.map +1 -0
- package/dist/web-server/jsonl-parser.js +240 -0
- package/dist/web-server/jsonl-parser.js.map +1 -0
- package/dist/web-server/middleware/auth-middleware.d.ts +29 -0
- package/dist/web-server/middleware/auth-middleware.d.ts.map +1 -0
- package/dist/web-server/middleware/auth-middleware.js +140 -0
- package/dist/web-server/middleware/auth-middleware.js.map +1 -0
- package/dist/web-server/model-pricing.d.ts +42 -0
- package/dist/web-server/model-pricing.d.ts.map +1 -0
- package/dist/web-server/model-pricing.js +839 -0
- package/dist/web-server/model-pricing.js.map +1 -0
- package/dist/web-server/overview-routes.d.ts +7 -0
- package/dist/web-server/overview-routes.d.ts.map +1 -0
- package/dist/web-server/overview-routes.js +75 -0
- package/dist/web-server/overview-routes.js.map +1 -0
- package/dist/web-server/routes/account-route-helpers.d.ts +20 -0
- package/dist/web-server/routes/account-route-helpers.d.ts.map +1 -0
- package/dist/web-server/routes/account-route-helpers.js +34 -0
- package/dist/web-server/routes/account-route-helpers.js.map +1 -0
- package/dist/web-server/routes/account-routes.d.ts +9 -0
- package/dist/web-server/routes/account-routes.d.ts.map +1 -0
- package/dist/web-server/routes/account-routes.js +451 -0
- package/dist/web-server/routes/account-routes.js.map +1 -0
- package/dist/web-server/routes/ai-provider-routes.d.ts +3 -0
- package/dist/web-server/routes/ai-provider-routes.d.ts.map +1 -0
- package/dist/web-server/routes/ai-provider-routes.js +118 -0
- package/dist/web-server/routes/ai-provider-routes.js.map +1 -0
- package/dist/web-server/routes/auth-routes.d.ts +7 -0
- package/dist/web-server/routes/auth-routes.d.ts.map +1 -0
- package/dist/web-server/routes/auth-routes.js +113 -0
- package/dist/web-server/routes/auth-routes.js.map +1 -0
- package/dist/web-server/routes/catalog-routes.d.ts +3 -0
- package/dist/web-server/routes/catalog-routes.d.ts.map +1 -0
- package/dist/web-server/routes/catalog-routes.js +27 -0
- package/dist/web-server/routes/catalog-routes.js.map +1 -0
- package/dist/web-server/routes/channels-routes.d.ts +3 -0
- package/dist/web-server/routes/channels-routes.d.ts.map +1 -0
- package/dist/web-server/routes/channels-routes.js +164 -0
- package/dist/web-server/routes/channels-routes.js.map +1 -0
- package/dist/web-server/routes/claude-extension-routes.d.ts +3 -0
- package/dist/web-server/routes/claude-extension-routes.d.ts.map +1 -0
- package/dist/web-server/routes/claude-extension-routes.js +161 -0
- package/dist/web-server/routes/claude-extension-routes.js.map +1 -0
- package/dist/web-server/routes/cliproxy-auth-routes.d.ts +16 -0
- package/dist/web-server/routes/cliproxy-auth-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-auth-routes.js +962 -0
- package/dist/web-server/routes/cliproxy-auth-routes.js.map +1 -0
- package/dist/web-server/routes/cliproxy-local-proxy.d.ts +20 -0
- package/dist/web-server/routes/cliproxy-local-proxy.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-local-proxy.js +117 -0
- package/dist/web-server/routes/cliproxy-local-proxy.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes.d.ts +18 -0
- package/dist/web-server/routes/cliproxy-stats-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes.js +901 -0
- package/dist/web-server/routes/cliproxy-stats-routes.js.map +1 -0
- package/dist/web-server/routes/cliproxy-sync-routes.d.ts +6 -0
- package/dist/web-server/routes/cliproxy-sync-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-sync-routes.js +152 -0
- package/dist/web-server/routes/cliproxy-sync-routes.js.map +1 -0
- package/dist/web-server/routes/codex-routes.d.ts +3 -0
- package/dist/web-server/routes/codex-routes.d.ts.map +1 -0
- package/dist/web-server/routes/codex-routes.js +75 -0
- package/dist/web-server/routes/codex-routes.js.map +1 -0
- package/dist/web-server/routes/config-routes.d.ts +6 -0
- package/dist/web-server/routes/config-routes.d.ts.map +1 -0
- package/dist/web-server/routes/config-routes.js +611 -0
- package/dist/web-server/routes/config-routes.js.map +1 -0
- package/dist/web-server/routes/copilot-routes.d.ts +6 -0
- package/dist/web-server/routes/copilot-routes.d.ts.map +1 -0
- package/dist/web-server/routes/copilot-routes.js +345 -0
- package/dist/web-server/routes/copilot-routes.js.map +1 -0
- package/dist/web-server/routes/copilot-settings-routes.d.ts +6 -0
- package/dist/web-server/routes/copilot-settings-routes.d.ts.map +1 -0
- package/dist/web-server/routes/copilot-settings-routes.js +163 -0
- package/dist/web-server/routes/copilot-settings-routes.js.map +1 -0
- package/dist/web-server/routes/cursor-routes.d.ts +16 -0
- package/dist/web-server/routes/cursor-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cursor-routes.js +171 -0
- package/dist/web-server/routes/cursor-routes.js.map +1 -0
- package/dist/web-server/routes/cursor-settings-routes.d.ts +6 -0
- package/dist/web-server/routes/cursor-settings-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cursor-settings-routes.js +308 -0
- package/dist/web-server/routes/cursor-settings-routes.js.map +1 -0
- package/dist/web-server/routes/droid-routes.d.ts +3 -0
- package/dist/web-server/routes/droid-routes.d.ts.map +1 -0
- package/dist/web-server/routes/droid-routes.js +61 -0
- package/dist/web-server/routes/droid-routes.js.map +1 -0
- package/dist/web-server/routes/health-routes.d.ts +6 -0
- package/dist/web-server/routes/health-routes.d.ts.map +1 -0
- package/dist/web-server/routes/health-routes.js +40 -0
- package/dist/web-server/routes/health-routes.js.map +1 -0
- package/dist/web-server/routes/image-analysis-routes.d.ts +3 -0
- package/dist/web-server/routes/image-analysis-routes.d.ts.map +1 -0
- package/dist/web-server/routes/image-analysis-routes.js +387 -0
- package/dist/web-server/routes/image-analysis-routes.js.map +1 -0
- package/dist/web-server/routes/index.d.ts +8 -0
- package/dist/web-server/routes/index.d.ts.map +1 -0
- package/dist/web-server/routes/index.js +81 -0
- package/dist/web-server/routes/index.js.map +1 -0
- package/dist/web-server/routes/misc-routes.d.ts +8 -0
- package/dist/web-server/routes/misc-routes.d.ts.map +1 -0
- package/dist/web-server/routes/misc-routes.js +434 -0
- package/dist/web-server/routes/misc-routes.js.map +1 -0
- package/dist/web-server/routes/persist-routes.d.ts +6 -0
- package/dist/web-server/routes/persist-routes.d.ts.map +1 -0
- package/dist/web-server/routes/persist-routes.js +296 -0
- package/dist/web-server/routes/persist-routes.js.map +1 -0
- package/dist/web-server/routes/profile-routes.d.ts +10 -0
- package/dist/web-server/routes/profile-routes.d.ts.map +1 -0
- package/dist/web-server/routes/profile-routes.js +437 -0
- package/dist/web-server/routes/profile-routes.js.map +1 -0
- package/dist/web-server/routes/provider-routes.d.ts +6 -0
- package/dist/web-server/routes/provider-routes.d.ts.map +1 -0
- package/dist/web-server/routes/provider-routes.js +154 -0
- package/dist/web-server/routes/provider-routes.js.map +1 -0
- package/dist/web-server/routes/proxy-routes.d.ts +11 -0
- package/dist/web-server/routes/proxy-routes.d.ts.map +1 -0
- package/dist/web-server/routes/proxy-routes.js +163 -0
- package/dist/web-server/routes/proxy-routes.js.map +1 -0
- package/dist/web-server/routes/route-helpers.d.ts +62 -0
- package/dist/web-server/routes/route-helpers.d.ts.map +1 -0
- package/dist/web-server/routes/route-helpers.js +413 -0
- package/dist/web-server/routes/route-helpers.js.map +1 -0
- package/dist/web-server/routes/settings-routes.d.ts +6 -0
- package/dist/web-server/routes/settings-routes.d.ts.map +1 -0
- package/dist/web-server/routes/settings-routes.js +776 -0
- package/dist/web-server/routes/settings-routes.js.map +1 -0
- package/dist/web-server/routes/variant-routes.d.ts +9 -0
- package/dist/web-server/routes/variant-routes.d.ts.map +1 -0
- package/dist/web-server/routes/variant-routes.js +254 -0
- package/dist/web-server/routes/variant-routes.js.map +1 -0
- package/dist/web-server/routes/websearch-routes.d.ts +6 -0
- package/dist/web-server/routes/websearch-routes.d.ts.map +1 -0
- package/dist/web-server/routes/websearch-routes.js +177 -0
- package/dist/web-server/routes/websearch-routes.js.map +1 -0
- package/dist/web-server/services/claude-extension-binding-service.d.ts +30 -0
- package/dist/web-server/services/claude-extension-binding-service.d.ts.map +1 -0
- package/dist/web-server/services/claude-extension-binding-service.js +240 -0
- package/dist/web-server/services/claude-extension-binding-service.js.map +1 -0
- package/dist/web-server/services/claude-extension-settings-service.d.ts +23 -0
- package/dist/web-server/services/claude-extension-settings-service.d.ts.map +1 -0
- package/dist/web-server/services/claude-extension-settings-service.js +493 -0
- package/dist/web-server/services/claude-extension-settings-service.js.map +1 -0
- package/dist/web-server/services/cliproxy-dashboard-install-service.d.ts +21 -0
- package/dist/web-server/services/cliproxy-dashboard-install-service.d.ts.map +1 -0
- package/dist/web-server/services/cliproxy-dashboard-install-service.js +51 -0
- package/dist/web-server/services/cliproxy-dashboard-install-service.js.map +1 -0
- package/dist/web-server/services/codex-dashboard-service.d.ts +36 -0
- package/dist/web-server/services/codex-dashboard-service.d.ts.map +1 -0
- package/dist/web-server/services/codex-dashboard-service.js +740 -0
- package/dist/web-server/services/codex-dashboard-service.js.map +1 -0
- package/dist/web-server/services/compatible-cli-docs-registry.d.ts +23 -0
- package/dist/web-server/services/compatible-cli-docs-registry.d.ts.map +1 -0
- package/dist/web-server/services/compatible-cli-docs-registry.js +144 -0
- package/dist/web-server/services/compatible-cli-docs-registry.js.map +1 -0
- package/dist/web-server/services/compatible-cli-json-file-service.d.ts +41 -0
- package/dist/web-server/services/compatible-cli-json-file-service.d.ts.map +1 -0
- package/dist/web-server/services/compatible-cli-json-file-service.js +205 -0
- package/dist/web-server/services/compatible-cli-json-file-service.js.map +1 -0
- package/dist/web-server/services/compatible-cli-toml-file-service.d.ts +42 -0
- package/dist/web-server/services/compatible-cli-toml-file-service.d.ts.map +1 -0
- package/dist/web-server/services/compatible-cli-toml-file-service.js +271 -0
- package/dist/web-server/services/compatible-cli-toml-file-service.js.map +1 -0
- package/dist/web-server/services/compatible-cli-types.d.ts +63 -0
- package/dist/web-server/services/compatible-cli-types.d.ts.map +1 -0
- package/dist/web-server/services/compatible-cli-types.js +3 -0
- package/dist/web-server/services/compatible-cli-types.js.map +1 -0
- package/dist/web-server/services/droid-dashboard-service.d.ts +29 -0
- package/dist/web-server/services/droid-dashboard-service.d.ts.map +1 -0
- package/dist/web-server/services/droid-dashboard-service.js +238 -0
- package/dist/web-server/services/droid-dashboard-service.js.map +1 -0
- package/dist/web-server/services/index.d.ts +7 -0
- package/dist/web-server/services/index.d.ts.map +1 -0
- package/dist/web-server/services/index.js +21 -0
- package/dist/web-server/services/index.js.map +1 -0
- package/dist/web-server/services/usage-aggregator.d.ts +7 -0
- package/dist/web-server/services/usage-aggregator.d.ts.map +1 -0
- package/dist/web-server/services/usage-aggregator.js +23 -0
- package/dist/web-server/services/usage-aggregator.js.map +1 -0
- package/dist/web-server/shared-routes.d.ts +7 -0
- package/dist/web-server/shared-routes.d.ts.map +1 -0
- package/dist/web-server/shared-routes.js +547 -0
- package/dist/web-server/shared-routes.js.map +1 -0
- package/dist/web-server/shutdown.d.ts +14 -0
- package/dist/web-server/shutdown.d.ts.map +1 -0
- package/dist/web-server/shutdown.js +29 -0
- package/dist/web-server/shutdown.js.map +1 -0
- package/dist/web-server/usage/aggregator.d.ts +63 -0
- package/dist/web-server/usage/aggregator.d.ts.map +1 -0
- package/dist/web-server/usage/aggregator.js +537 -0
- package/dist/web-server/usage/aggregator.js.map +1 -0
- package/dist/web-server/usage/cliproxy-usage-syncer.d.ts +37 -0
- package/dist/web-server/usage/cliproxy-usage-syncer.d.ts.map +1 -0
- package/dist/web-server/usage/cliproxy-usage-syncer.js +158 -0
- package/dist/web-server/usage/cliproxy-usage-syncer.js.map +1 -0
- package/dist/web-server/usage/cliproxy-usage-transformer.d.ts +26 -0
- package/dist/web-server/usage/cliproxy-usage-transformer.d.ts.map +1 -0
- package/dist/web-server/usage/cliproxy-usage-transformer.js +141 -0
- package/dist/web-server/usage/cliproxy-usage-transformer.js.map +1 -0
- package/dist/web-server/usage/data-aggregator.d.ts +55 -0
- package/dist/web-server/usage/data-aggregator.d.ts.map +1 -0
- package/dist/web-server/usage/data-aggregator.js +397 -0
- package/dist/web-server/usage/data-aggregator.js.map +1 -0
- package/dist/web-server/usage/disk-cache.d.ts +46 -0
- package/dist/web-server/usage/disk-cache.d.ts.map +1 -0
- package/dist/web-server/usage/disk-cache.js +172 -0
- package/dist/web-server/usage/disk-cache.js.map +1 -0
- package/dist/web-server/usage/handlers.d.ts +50 -0
- package/dist/web-server/usage/handlers.d.ts.map +1 -0
- package/dist/web-server/usage/handlers.js +530 -0
- package/dist/web-server/usage/handlers.js.map +1 -0
- package/dist/web-server/usage/index.d.ts +12 -0
- package/dist/web-server/usage/index.d.ts.map +1 -0
- package/dist/web-server/usage/index.js +54 -0
- package/dist/web-server/usage/index.js.map +1 -0
- package/dist/web-server/usage/routes.d.ts +11 -0
- package/dist/web-server/usage/routes.d.ts.map +1 -0
- package/dist/web-server/usage/routes.js +37 -0
- package/dist/web-server/usage/routes.js.map +1 -0
- package/dist/web-server/usage/types.d.ts +121 -0
- package/dist/web-server/usage/types.d.ts.map +1 -0
- package/dist/web-server/usage/types.js +9 -0
- package/dist/web-server/usage/types.js.map +1 -0
- package/dist/web-server/usage-disk-cache.d.ts +7 -0
- package/dist/web-server/usage-disk-cache.d.ts.map +1 -0
- package/dist/web-server/usage-disk-cache.js +23 -0
- package/dist/web-server/usage-disk-cache.js.map +1 -0
- package/dist/web-server/usage-routes.d.ts +7 -0
- package/dist/web-server/usage-routes.d.ts.map +1 -0
- package/dist/web-server/usage-routes.js +14 -0
- package/dist/web-server/usage-routes.js.map +1 -0
- package/dist/web-server/usage-types.d.ts +7 -0
- package/dist/web-server/usage-types.d.ts.map +1 -0
- package/dist/web-server/usage-types.js +23 -0
- package/dist/web-server/usage-types.js.map +1 -0
- package/dist/web-server/websocket.d.ts +15 -0
- package/dist/web-server/websocket.d.ts.map +1 -0
- package/dist/web-server/websocket.js +162 -0
- package/dist/web-server/websocket.js.map +1 -0
- package/lib/ccs +32 -0
- package/lib/ccs.ps1 +39 -0
- package/lib/error-codes.ps1 +66 -0
- package/lib/error-codes.sh +67 -0
- package/lib/hooks/block-websearch.cjs +75 -0
- package/lib/hooks/image-analysis-runtime.cjs +469 -0
- package/lib/hooks/image-analyzer-transformer.cjs +527 -0
- package/lib/hooks/websearch-transformer.cjs +1283 -0
- package/lib/mcp/ccs-image-analysis-server.cjs +440 -0
- package/lib/mcp/ccs-websearch-server.cjs +339 -0
- package/lib/progress-indicator.ps1 +120 -0
- package/lib/progress-indicator.sh +117 -0
- package/lib/prompt.ps1 +109 -0
- package/lib/prompt.sh +99 -0
- package/lib/prompts/image-analysis-default.txt +12 -0
- package/lib/prompts/image-analysis-document.txt +13 -0
- package/lib/prompts/image-analysis-screenshot.txt +13 -0
- package/package.json +149 -0
- package/scripts/add-shebang.js +52 -0
- package/scripts/bump-version.sh +153 -0
- package/scripts/check-executables.js +18 -0
- package/scripts/ci-parity-gate.sh +51 -0
- package/scripts/clean-dist.js +46 -0
- package/scripts/code-reviewer.ts +217 -0
- package/scripts/completion/README.md +232 -0
- package/scripts/completion/ccs.bash +42 -0
- package/scripts/completion/ccs.fish +30 -0
- package/scripts/completion/ccs.ps1 +56 -0
- package/scripts/completion/ccs.zsh +41 -0
- package/scripts/dev-install.sh +108 -0
- package/scripts/dev-release.sh +175 -0
- package/scripts/dev-symlink.sh +115 -0
- package/scripts/get-version.sh +16 -0
- package/scripts/github/build-ai-review-packet.mjs +242 -0
- package/scripts/github/ccs-backlog-sync-lib.mjs +379 -0
- package/scripts/github/ccs-backlog-sync.mjs +6 -0
- package/scripts/github/normalize-ai-review-output.mjs +934 -0
- package/scripts/github/prepare-ai-review-scope.mjs +324 -0
- package/scripts/github/run-ai-review-direct.mjs +349 -0
- package/scripts/hardening-inventory.js +526 -0
- package/scripts/postinstall.js +358 -0
- package/scripts/postuninstall.js +48 -0
- package/scripts/pre-release.sh +39 -0
- package/scripts/preinstall.js +59 -0
- package/scripts/send-discord-release.cjs +249 -0
- package/scripts/verify-bundle.js +56 -0
- package/scripts/worker.js +26 -0
- package/scripts/wrangler.toml +15 -0
|
@@ -0,0 +1,1338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* SharedManager - Manages symlinked shared directories for CCS
|
|
4
|
+
* v3.2.0: Symlink-based architecture
|
|
5
|
+
*
|
|
6
|
+
* Purpose: Eliminates duplication by symlinking:
|
|
7
|
+
* ~/.claude/ ← ~/.ccs/shared/ ← instance/
|
|
8
|
+
*/
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
|
+
};
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.normalizePluginMetadataContent = exports.normalizePluginMetadataPathString = void 0;
|
|
37
|
+
const fs = __importStar(require("fs"));
|
|
38
|
+
const path = __importStar(require("path"));
|
|
39
|
+
const os = __importStar(require("os"));
|
|
40
|
+
const profile_context_sync_lock_1 = __importDefault(require("./profile-context-sync-lock"));
|
|
41
|
+
const ui_1 = require("../utils/ui");
|
|
42
|
+
const account_context_1 = require("../auth/account-context");
|
|
43
|
+
const config_manager_1 = require("../utils/config-manager");
|
|
44
|
+
const DEFAULT_INSTALLED_PLUGIN_REGISTRY = JSON.stringify({
|
|
45
|
+
version: 2,
|
|
46
|
+
plugins: {},
|
|
47
|
+
}, null, 2);
|
|
48
|
+
function getPluginPathModule(targetConfigDir, input) {
|
|
49
|
+
return targetConfigDir.includes('\\') || input.includes('\\') ? path.win32 : path.posix;
|
|
50
|
+
}
|
|
51
|
+
function normalizeTargetConfigDir(targetConfigDir, input) {
|
|
52
|
+
const pathModule = getPluginPathModule(targetConfigDir, input);
|
|
53
|
+
return pathModule.normalize(pathModule === path.win32
|
|
54
|
+
? targetConfigDir.replace(/\//g, '\\')
|
|
55
|
+
: targetConfigDir.replace(/\\/g, '/'));
|
|
56
|
+
}
|
|
57
|
+
function normalizePluginMetadataPathString(input, targetConfigDir = path.join(os.homedir(), '.claude')) {
|
|
58
|
+
const match = input.match(/^(.*?)([\\/])(?:\.claude|\.ccs\2shared|\.ccs\2instances\2[^\\/]+)\2plugins(?:(\2.*))?$/);
|
|
59
|
+
if (!match) {
|
|
60
|
+
return input;
|
|
61
|
+
}
|
|
62
|
+
const pathModule = getPluginPathModule(targetConfigDir, input);
|
|
63
|
+
const normalizedTargetConfigDir = normalizeTargetConfigDir(targetConfigDir, input);
|
|
64
|
+
const suffix = match[3] ?? '';
|
|
65
|
+
const suffixSegments = suffix.split(/[\\/]+/).filter(Boolean);
|
|
66
|
+
return pathModule.join(normalizedTargetConfigDir, 'plugins', ...suffixSegments);
|
|
67
|
+
}
|
|
68
|
+
exports.normalizePluginMetadataPathString = normalizePluginMetadataPathString;
|
|
69
|
+
function normalizePluginMetadataValue(value, targetConfigDir) {
|
|
70
|
+
if (typeof value === 'string') {
|
|
71
|
+
const normalized = normalizePluginMetadataPathString(value, targetConfigDir);
|
|
72
|
+
return { normalized, changed: normalized !== value };
|
|
73
|
+
}
|
|
74
|
+
if (Array.isArray(value)) {
|
|
75
|
+
let changed = false;
|
|
76
|
+
const normalized = value.map((item) => {
|
|
77
|
+
const result = normalizePluginMetadataValue(item, targetConfigDir);
|
|
78
|
+
changed = changed || result.changed;
|
|
79
|
+
return result.normalized;
|
|
80
|
+
});
|
|
81
|
+
return { normalized, changed };
|
|
82
|
+
}
|
|
83
|
+
if (value && typeof value === 'object') {
|
|
84
|
+
let changed = false;
|
|
85
|
+
const normalized = Object.fromEntries(Object.entries(value).map(([key, item]) => {
|
|
86
|
+
const result = normalizePluginMetadataValue(item, targetConfigDir);
|
|
87
|
+
changed = changed || result.changed;
|
|
88
|
+
return [key, result.normalized];
|
|
89
|
+
}));
|
|
90
|
+
return { normalized, changed };
|
|
91
|
+
}
|
|
92
|
+
return { normalized: value, changed: false };
|
|
93
|
+
}
|
|
94
|
+
function normalizePluginMetadataContent(original, targetConfigDir = path.join(os.homedir(), '.claude')) {
|
|
95
|
+
const parsed = JSON.parse(original);
|
|
96
|
+
const result = normalizePluginMetadataValue(parsed, targetConfigDir);
|
|
97
|
+
return result.changed ? JSON.stringify(result.normalized, null, 2) : original;
|
|
98
|
+
}
|
|
99
|
+
exports.normalizePluginMetadataContent = normalizePluginMetadataContent;
|
|
100
|
+
/**
|
|
101
|
+
* SharedManager Class
|
|
102
|
+
*/
|
|
103
|
+
class SharedManager {
|
|
104
|
+
constructor() {
|
|
105
|
+
this.sharedPluginEntries = [
|
|
106
|
+
{ name: 'cache', type: 'directory' },
|
|
107
|
+
{ name: 'marketplaces', type: 'directory' },
|
|
108
|
+
{ name: 'installed_plugins.json', type: 'file' },
|
|
109
|
+
];
|
|
110
|
+
this.instanceLocalPluginMetadataFiles = new Set(['known_marketplaces.json']);
|
|
111
|
+
this.advancedContinuityItems = [
|
|
112
|
+
'session-env',
|
|
113
|
+
'file-history',
|
|
114
|
+
'shell-snapshots',
|
|
115
|
+
'todos',
|
|
116
|
+
];
|
|
117
|
+
this.homeDir = os.homedir();
|
|
118
|
+
const ccsDir = (0, config_manager_1.getCcsDir)();
|
|
119
|
+
this.sharedDir = path.join(ccsDir, 'shared');
|
|
120
|
+
this.claudeDir = path.join(this.homeDir, '.claude');
|
|
121
|
+
this.instancesDir = path.join(ccsDir, 'instances');
|
|
122
|
+
this.pluginLayoutLock = new profile_context_sync_lock_1.default(this.instancesDir);
|
|
123
|
+
this.sharedItems = [
|
|
124
|
+
{ name: 'commands', type: 'directory' },
|
|
125
|
+
{ name: 'skills', type: 'directory' },
|
|
126
|
+
{ name: 'agents', type: 'directory' },
|
|
127
|
+
{ name: 'plugins', type: 'directory' },
|
|
128
|
+
{ name: 'settings.json', type: 'file' },
|
|
129
|
+
];
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Detect circular symlink before creation
|
|
133
|
+
*/
|
|
134
|
+
detectCircularSymlink(target) {
|
|
135
|
+
try {
|
|
136
|
+
const stats = fs.lstatSync(target);
|
|
137
|
+
if (!stats.isSymbolicLink()) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
// Resolve target's link
|
|
141
|
+
const targetLink = fs.readlinkSync(target);
|
|
142
|
+
const resolvedTarget = path.resolve(path.dirname(target), targetLink);
|
|
143
|
+
const sharedDirPath = path.resolve(this.sharedDir);
|
|
144
|
+
// A raw target path pointing back into ~/.ccs/shared is already unsafe.
|
|
145
|
+
// Re-pointing ~/.ccs/shared/* to ~/.claude/* would turn it into a real loop,
|
|
146
|
+
// even if the current ~/.ccs/shared entry ultimately resolves to an external path.
|
|
147
|
+
if (this.isPathWithinDirectory(resolvedTarget, sharedDirPath)) {
|
|
148
|
+
console.log((0, ui_1.warn)(`Circular symlink detected: ${target} → ${resolvedTarget}`));
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
// Only treat targets inside the managed shared root as circular.
|
|
152
|
+
// Existing shared symlinks may already resolve through ~/.claude/ to an
|
|
153
|
+
// external repo, which is a supported upgrade path rather than a loop.
|
|
154
|
+
const sharedDir = this.resolveCanonicalPath(sharedDirPath);
|
|
155
|
+
const canonicalResolvedTarget = this.resolveCanonicalPath(resolvedTarget);
|
|
156
|
+
if (this.isPathWithinDirectory(canonicalResolvedTarget, sharedDir)) {
|
|
157
|
+
console.log((0, ui_1.warn)(`Circular symlink detected: ${target} → ${resolvedTarget}`));
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
catch (err) {
|
|
162
|
+
if (err.code === 'ENOENT') {
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
throw err;
|
|
166
|
+
}
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Ensure shared directories exist as symlinks to ~/.claude/
|
|
171
|
+
* Creates ~/.claude/ structure if missing
|
|
172
|
+
*/
|
|
173
|
+
ensureSharedDirectories() {
|
|
174
|
+
// Create ~/.claude/ if missing
|
|
175
|
+
if (!this.getLstatSync(this.claudeDir)) {
|
|
176
|
+
console.log((0, ui_1.info)('Creating ~/.claude/ directory structure'));
|
|
177
|
+
fs.mkdirSync(this.claudeDir, { recursive: true, mode: 0o700 });
|
|
178
|
+
}
|
|
179
|
+
// Create shared directory
|
|
180
|
+
if (!this.getLstatSync(this.sharedDir)) {
|
|
181
|
+
fs.mkdirSync(this.sharedDir, { recursive: true, mode: 0o700 });
|
|
182
|
+
}
|
|
183
|
+
this.ensureSharedPluginLayoutDefaults();
|
|
184
|
+
// Create symlinks ~/.ccs/shared/* → ~/.claude/*
|
|
185
|
+
for (const item of this.sharedItems) {
|
|
186
|
+
const claudePath = path.join(this.claudeDir, item.name);
|
|
187
|
+
const sharedPath = path.join(this.sharedDir, item.name);
|
|
188
|
+
// Create in ~/.claude/ if missing
|
|
189
|
+
if (!this.getLstatSync(claudePath)) {
|
|
190
|
+
if (item.type === 'directory') {
|
|
191
|
+
fs.mkdirSync(claudePath, { recursive: true, mode: 0o700 });
|
|
192
|
+
}
|
|
193
|
+
else if (item.type === 'file') {
|
|
194
|
+
// Create empty settings.json if missing
|
|
195
|
+
fs.writeFileSync(claudePath, JSON.stringify({}, null, 2), 'utf8');
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// Check for circular symlink
|
|
199
|
+
if (this.detectCircularSymlink(claudePath)) {
|
|
200
|
+
console.log((0, ui_1.warn)(`Skipping ${item.name}: circular symlink detected`));
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
// If already a symlink pointing to correct target, skip
|
|
204
|
+
if (this.getLstatSync(sharedPath)) {
|
|
205
|
+
try {
|
|
206
|
+
const stats = fs.lstatSync(sharedPath);
|
|
207
|
+
if (stats.isSymbolicLink()) {
|
|
208
|
+
const currentTarget = fs.readlinkSync(sharedPath);
|
|
209
|
+
const resolvedTarget = path.resolve(path.dirname(sharedPath), currentTarget);
|
|
210
|
+
if (resolvedTarget === claudePath) {
|
|
211
|
+
continue; // Already correct
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
catch (_err) {
|
|
216
|
+
// Continue to recreate
|
|
217
|
+
}
|
|
218
|
+
// Remove existing file/directory/link
|
|
219
|
+
if (item.type === 'directory') {
|
|
220
|
+
fs.rmSync(sharedPath, { recursive: true, force: true });
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
fs.unlinkSync(sharedPath);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
// Create symlink
|
|
227
|
+
try {
|
|
228
|
+
const symlinkType = item.type === 'directory' ? 'dir' : 'file';
|
|
229
|
+
fs.symlinkSync(claudePath, sharedPath, symlinkType);
|
|
230
|
+
}
|
|
231
|
+
catch (_err) {
|
|
232
|
+
// Windows fallback: copy
|
|
233
|
+
if (process.platform === 'win32') {
|
|
234
|
+
if (item.type === 'directory') {
|
|
235
|
+
this.copyDirectoryFallback(claudePath, sharedPath);
|
|
236
|
+
}
|
|
237
|
+
else if (item.type === 'file') {
|
|
238
|
+
fs.copyFileSync(claudePath, sharedPath);
|
|
239
|
+
}
|
|
240
|
+
console.log((0, ui_1.warn)(`Symlink failed for ${item.name}, copied instead (enable Developer Mode)`));
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
throw _err;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Link shared directories to instance
|
|
250
|
+
*/
|
|
251
|
+
linkSharedDirectories(instancePath) {
|
|
252
|
+
this.ensureSharedDirectories();
|
|
253
|
+
for (const item of this.sharedItems) {
|
|
254
|
+
if (item.name === 'plugins') {
|
|
255
|
+
this.linkInstancePlugins(instancePath);
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
const linkPath = path.join(instancePath, item.name);
|
|
259
|
+
const targetPath = path.join(this.sharedDir, item.name);
|
|
260
|
+
this.removeExistingPath(linkPath, item.type);
|
|
261
|
+
// Create symlink
|
|
262
|
+
try {
|
|
263
|
+
const symlinkType = item.type === 'directory' ? 'dir' : 'file';
|
|
264
|
+
fs.symlinkSync(targetPath, linkPath, symlinkType);
|
|
265
|
+
}
|
|
266
|
+
catch (_err) {
|
|
267
|
+
// Windows fallback
|
|
268
|
+
if (process.platform === 'win32') {
|
|
269
|
+
if (item.type === 'directory') {
|
|
270
|
+
this.copyDirectoryFallback(targetPath, linkPath);
|
|
271
|
+
}
|
|
272
|
+
else if (item.type === 'file') {
|
|
273
|
+
fs.copyFileSync(targetPath, linkPath);
|
|
274
|
+
}
|
|
275
|
+
console.log((0, ui_1.warn)(`Symlink failed for ${item.name}, copied instead (enable Developer Mode)`));
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
throw _err;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
this.normalizeSharedPluginMetadataPaths(instancePath);
|
|
283
|
+
}
|
|
284
|
+
detachSharedDirectories(instancePath) {
|
|
285
|
+
this.ensureSharedDirectories();
|
|
286
|
+
for (const item of this.sharedItems) {
|
|
287
|
+
const managedPath = path.join(instancePath, item.name);
|
|
288
|
+
if (!fs.existsSync(managedPath)) {
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
if (item.name === 'plugins') {
|
|
292
|
+
this.detachManagedPluginLayout(instancePath);
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
const stats = fs.lstatSync(managedPath);
|
|
296
|
+
if (!stats.isSymbolicLink()) {
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
if (this.symlinkPointsTo(managedPath, path.join(this.sharedDir, item.name))) {
|
|
300
|
+
this.removeExistingPath(managedPath, item.type);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
ensureSharedPluginLayoutDefaults() {
|
|
305
|
+
const pluginsDir = path.join(this.claudeDir, 'plugins');
|
|
306
|
+
fs.mkdirSync(pluginsDir, { recursive: true, mode: 0o700 });
|
|
307
|
+
for (const entry of this.sharedPluginEntries) {
|
|
308
|
+
const entryPath = path.join(pluginsDir, entry.name);
|
|
309
|
+
if (fs.existsSync(entryPath)) {
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
if (entry.type === 'directory') {
|
|
313
|
+
fs.mkdirSync(entryPath, { recursive: true, mode: 0o700 });
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
fs.writeFileSync(entryPath, DEFAULT_INSTALLED_PLUGIN_REGISTRY, 'utf8');
|
|
317
|
+
}
|
|
318
|
+
const marketplaceRegistryPath = path.join(pluginsDir, 'known_marketplaces.json');
|
|
319
|
+
if (!fs.existsSync(marketplaceRegistryPath)) {
|
|
320
|
+
fs.writeFileSync(marketplaceRegistryPath, JSON.stringify({}, null, 2), 'utf8');
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
linkInstancePlugins(instancePath) {
|
|
324
|
+
const linkPath = path.join(instancePath, 'plugins');
|
|
325
|
+
const targetPath = path.join(this.sharedDir, 'plugins');
|
|
326
|
+
let linkStats = null;
|
|
327
|
+
try {
|
|
328
|
+
linkStats = fs.lstatSync(linkPath);
|
|
329
|
+
}
|
|
330
|
+
catch (err) {
|
|
331
|
+
if (err.code !== 'ENOENT') {
|
|
332
|
+
throw err;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
if (linkStats?.isSymbolicLink() || (linkStats && !linkStats.isDirectory())) {
|
|
336
|
+
this.removeExistingPath(linkPath, linkStats.isDirectory() ? 'directory' : 'file');
|
|
337
|
+
}
|
|
338
|
+
if (!linkStats || !linkStats.isDirectory()) {
|
|
339
|
+
fs.mkdirSync(linkPath, { recursive: true, mode: 0o700 });
|
|
340
|
+
}
|
|
341
|
+
for (const item of this.getSharedPluginLinkItems()) {
|
|
342
|
+
const targetEntryPath = path.join(targetPath, item.name);
|
|
343
|
+
const linkEntryPath = path.join(linkPath, item.name);
|
|
344
|
+
this.removeExistingPath(linkEntryPath, item.type);
|
|
345
|
+
try {
|
|
346
|
+
const symlinkType = item.type === 'directory' ? 'dir' : 'file';
|
|
347
|
+
fs.symlinkSync(targetEntryPath, linkEntryPath, symlinkType);
|
|
348
|
+
}
|
|
349
|
+
catch (_err) {
|
|
350
|
+
if (process.platform === 'win32') {
|
|
351
|
+
if (item.type === 'directory') {
|
|
352
|
+
this.copyDirectoryFallback(targetEntryPath, linkEntryPath);
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
fs.copyFileSync(targetEntryPath, linkEntryPath);
|
|
356
|
+
}
|
|
357
|
+
console.log((0, ui_1.warn)(`Symlink failed for plugins/${item.name}, copied instead (enable Developer Mode)`));
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
throw _err;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
getSharedPluginLinkItems() {
|
|
366
|
+
const sharedPluginsPath = path.join(this.sharedDir, 'plugins');
|
|
367
|
+
const items = new Map(this.sharedPluginEntries.map((entry) => [entry.name, { ...entry }]));
|
|
368
|
+
for (const entry of fs.readdirSync(sharedPluginsPath, { withFileTypes: true })) {
|
|
369
|
+
if (items.has(entry.name) || this.instanceLocalPluginMetadataFiles.has(entry.name)) {
|
|
370
|
+
continue;
|
|
371
|
+
}
|
|
372
|
+
const entryPath = path.join(sharedPluginsPath, entry.name);
|
|
373
|
+
const stats = fs.statSync(entryPath);
|
|
374
|
+
items.set(entry.name, {
|
|
375
|
+
name: entry.name,
|
|
376
|
+
type: stats.isDirectory() ? 'directory' : 'file',
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
return [...items.values()];
|
|
380
|
+
}
|
|
381
|
+
removeExistingPath(targetPath, typeHint) {
|
|
382
|
+
try {
|
|
383
|
+
const stats = fs.lstatSync(targetPath);
|
|
384
|
+
if (stats.isDirectory() && !stats.isSymbolicLink()) {
|
|
385
|
+
fs.rmSync(targetPath, { recursive: true, force: true });
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
if (stats.isSymbolicLink() || typeHint === 'file') {
|
|
389
|
+
fs.unlinkSync(targetPath);
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
fs.rmSync(targetPath, { recursive: true, force: true });
|
|
393
|
+
}
|
|
394
|
+
catch (err) {
|
|
395
|
+
if (err.code === 'ENOENT') {
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
if (typeHint === 'directory') {
|
|
399
|
+
fs.rmSync(targetPath, { recursive: true, force: true });
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
fs.rmSync(targetPath, { force: true });
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Sync project workspace context based on account policy.
|
|
408
|
+
*
|
|
409
|
+
* - isolated (default): each profile keeps its own ./projects directory.
|
|
410
|
+
* - shared: profile ./projects becomes symlink to shared context group root.
|
|
411
|
+
*/
|
|
412
|
+
async syncProjectContext(instancePath, policy) {
|
|
413
|
+
const projectsPath = path.join(instancePath, 'projects');
|
|
414
|
+
const instanceName = path.basename(instancePath);
|
|
415
|
+
const mode = policy.mode === 'shared' ? 'shared' : 'isolated';
|
|
416
|
+
if (mode === 'shared') {
|
|
417
|
+
const contextGroup = policy.group || account_context_1.DEFAULT_ACCOUNT_CONTEXT_GROUP;
|
|
418
|
+
const sharedProjectsPath = path.join(this.sharedDir, 'context-groups', contextGroup, 'projects');
|
|
419
|
+
await this.ensureDirectory(sharedProjectsPath);
|
|
420
|
+
await this.ensureDirectory(path.dirname(projectsPath));
|
|
421
|
+
const currentStats = await this.getLstat(projectsPath);
|
|
422
|
+
if (!currentStats) {
|
|
423
|
+
await this.linkDirectoryWithFallback(sharedProjectsPath, projectsPath);
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
if (currentStats.isSymbolicLink()) {
|
|
427
|
+
if (await this.isSymlinkTarget(projectsPath, sharedProjectsPath)) {
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
const currentTarget = await this.resolveSymlinkTargetPath(projectsPath);
|
|
431
|
+
if (currentTarget &&
|
|
432
|
+
path.resolve(currentTarget) !== path.resolve(sharedProjectsPath) &&
|
|
433
|
+
this.isSafeProjectsMergeSource(currentTarget, instanceName) &&
|
|
434
|
+
(await this.pathExists(currentTarget))) {
|
|
435
|
+
await this.mergeDirectoryWithConflictCopies(currentTarget, sharedProjectsPath, instanceName);
|
|
436
|
+
}
|
|
437
|
+
else if (currentTarget && !this.isSafeProjectsMergeSource(currentTarget, instanceName)) {
|
|
438
|
+
console.log((0, ui_1.warn)(`Skipping unsafe project merge source outside CCS roots: ${currentTarget}`));
|
|
439
|
+
}
|
|
440
|
+
await fs.promises.unlink(projectsPath);
|
|
441
|
+
await this.linkDirectoryWithFallback(sharedProjectsPath, projectsPath);
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
if (currentStats.isDirectory()) {
|
|
445
|
+
await this.detachLegacySharedMemoryLinks(projectsPath, instanceName);
|
|
446
|
+
await this.mergeDirectoryWithConflictCopies(projectsPath, sharedProjectsPath, instanceName);
|
|
447
|
+
await fs.promises.rm(projectsPath, { recursive: true, force: true });
|
|
448
|
+
await this.linkDirectoryWithFallback(sharedProjectsPath, projectsPath);
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
await fs.promises.rm(projectsPath, { force: true });
|
|
452
|
+
await this.linkDirectoryWithFallback(sharedProjectsPath, projectsPath);
|
|
453
|
+
return;
|
|
454
|
+
}
|
|
455
|
+
const currentStats = await this.getLstat(projectsPath);
|
|
456
|
+
if (!currentStats) {
|
|
457
|
+
await this.ensureDirectory(projectsPath);
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
if (currentStats.isDirectory()) {
|
|
461
|
+
await this.detachLegacySharedMemoryLinks(projectsPath, instanceName);
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
if (currentStats.isSymbolicLink()) {
|
|
465
|
+
const currentTarget = await this.resolveSymlinkTargetPath(projectsPath);
|
|
466
|
+
await fs.promises.unlink(projectsPath);
|
|
467
|
+
await this.ensureDirectory(projectsPath);
|
|
468
|
+
if (currentTarget &&
|
|
469
|
+
path.resolve(currentTarget) !== path.resolve(projectsPath) &&
|
|
470
|
+
this.isSafeProjectsMergeSource(currentTarget, instanceName) &&
|
|
471
|
+
(await this.pathExists(currentTarget))) {
|
|
472
|
+
await this.mergeDirectoryWithConflictCopies(currentTarget, projectsPath, instanceName);
|
|
473
|
+
}
|
|
474
|
+
else if (currentTarget && !this.isSafeProjectsMergeSource(currentTarget, instanceName)) {
|
|
475
|
+
console.log((0, ui_1.warn)(`Skipping unsafe project merge source outside CCS roots: ${currentTarget}`));
|
|
476
|
+
}
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
await fs.promises.rm(projectsPath, { force: true });
|
|
480
|
+
await this.ensureDirectory(projectsPath);
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Sync advanced continuity artifacts for shared deeper mode.
|
|
484
|
+
*
|
|
485
|
+
* - shared + deeper: artifacts are linked per context group.
|
|
486
|
+
* - shared + standard / isolated: artifacts stay local to instance.
|
|
487
|
+
*/
|
|
488
|
+
async syncAdvancedContinuityArtifacts(instancePath, policy) {
|
|
489
|
+
const instanceName = path.basename(instancePath);
|
|
490
|
+
const useSharedContinuity = policy.mode === 'shared' && policy.continuityMode === 'deeper';
|
|
491
|
+
const contextGroup = policy.group || account_context_1.DEFAULT_ACCOUNT_CONTEXT_GROUP;
|
|
492
|
+
for (const artifactName of this.advancedContinuityItems) {
|
|
493
|
+
const instanceArtifactPath = path.join(instancePath, artifactName);
|
|
494
|
+
if (useSharedContinuity) {
|
|
495
|
+
const sharedArtifactPath = path.join(this.sharedDir, 'context-groups', contextGroup, 'continuity', artifactName);
|
|
496
|
+
await this.ensureDirectory(sharedArtifactPath);
|
|
497
|
+
await this.ensureDirectory(path.dirname(instanceArtifactPath));
|
|
498
|
+
const currentStats = await this.getLstat(instanceArtifactPath);
|
|
499
|
+
if (!currentStats) {
|
|
500
|
+
await this.linkDirectoryWithFallback(sharedArtifactPath, instanceArtifactPath);
|
|
501
|
+
continue;
|
|
502
|
+
}
|
|
503
|
+
if (currentStats.isSymbolicLink()) {
|
|
504
|
+
if (await this.isSymlinkTarget(instanceArtifactPath, sharedArtifactPath)) {
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
const currentTarget = await this.resolveSymlinkTargetPath(instanceArtifactPath);
|
|
508
|
+
if (currentTarget &&
|
|
509
|
+
path.resolve(currentTarget) !== path.resolve(sharedArtifactPath) &&
|
|
510
|
+
this.isSafeContinuityMergeSource(currentTarget, instanceName, artifactName) &&
|
|
511
|
+
(await this.pathExists(currentTarget))) {
|
|
512
|
+
await this.mergeDirectoryWithConflictCopies(currentTarget, sharedArtifactPath, instanceName);
|
|
513
|
+
}
|
|
514
|
+
else if (currentTarget &&
|
|
515
|
+
!this.isSafeContinuityMergeSource(currentTarget, instanceName, artifactName)) {
|
|
516
|
+
console.log((0, ui_1.warn)(`Skipping unsafe ${artifactName} merge source outside CCS roots: ${currentTarget}`));
|
|
517
|
+
}
|
|
518
|
+
await fs.promises.unlink(instanceArtifactPath);
|
|
519
|
+
await this.linkDirectoryWithFallback(sharedArtifactPath, instanceArtifactPath);
|
|
520
|
+
continue;
|
|
521
|
+
}
|
|
522
|
+
if (currentStats.isDirectory()) {
|
|
523
|
+
await this.mergeDirectoryWithConflictCopies(instanceArtifactPath, sharedArtifactPath, instanceName);
|
|
524
|
+
await fs.promises.rm(instanceArtifactPath, { recursive: true, force: true });
|
|
525
|
+
await this.linkDirectoryWithFallback(sharedArtifactPath, instanceArtifactPath);
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
await fs.promises.rm(instanceArtifactPath, { force: true });
|
|
529
|
+
await this.linkDirectoryWithFallback(sharedArtifactPath, instanceArtifactPath);
|
|
530
|
+
continue;
|
|
531
|
+
}
|
|
532
|
+
const currentStats = await this.getLstat(instanceArtifactPath);
|
|
533
|
+
if (!currentStats) {
|
|
534
|
+
await this.ensureDirectory(instanceArtifactPath);
|
|
535
|
+
continue;
|
|
536
|
+
}
|
|
537
|
+
if (currentStats.isDirectory()) {
|
|
538
|
+
continue;
|
|
539
|
+
}
|
|
540
|
+
if (currentStats.isSymbolicLink()) {
|
|
541
|
+
const currentTarget = await this.resolveSymlinkTargetPath(instanceArtifactPath);
|
|
542
|
+
await fs.promises.unlink(instanceArtifactPath);
|
|
543
|
+
await this.ensureDirectory(instanceArtifactPath);
|
|
544
|
+
if (currentTarget &&
|
|
545
|
+
path.resolve(currentTarget) !== path.resolve(instanceArtifactPath) &&
|
|
546
|
+
this.isSafeContinuityMergeSource(currentTarget, instanceName, artifactName) &&
|
|
547
|
+
(await this.pathExists(currentTarget))) {
|
|
548
|
+
await this.mergeDirectoryWithConflictCopies(currentTarget, instanceArtifactPath, instanceName);
|
|
549
|
+
}
|
|
550
|
+
else if (currentTarget &&
|
|
551
|
+
!this.isSafeContinuityMergeSource(currentTarget, instanceName, artifactName)) {
|
|
552
|
+
console.log((0, ui_1.warn)(`Skipping unsafe ${artifactName} merge source outside CCS roots: ${currentTarget}`));
|
|
553
|
+
}
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
556
|
+
await fs.promises.rm(instanceArtifactPath, { force: true });
|
|
557
|
+
await this.ensureDirectory(instanceArtifactPath);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Ensure all project memory directories for an instance are shared.
|
|
562
|
+
*
|
|
563
|
+
* Source layout (isolated):
|
|
564
|
+
* ~/.ccs/instances/<profile>/projects/<project>/memory/
|
|
565
|
+
*
|
|
566
|
+
* Shared layout (canonical):
|
|
567
|
+
* ~/.ccs/shared/memory/<project>/
|
|
568
|
+
*/
|
|
569
|
+
async syncProjectMemories(instancePath) {
|
|
570
|
+
const projectsDir = path.join(instancePath, 'projects');
|
|
571
|
+
if (!(await this.pathExists(projectsDir))) {
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
await this.ensureDirectory(this.sharedDir);
|
|
575
|
+
const sharedMemoryRoot = path.join(this.sharedDir, 'memory');
|
|
576
|
+
await this.ensureDirectory(sharedMemoryRoot);
|
|
577
|
+
let projectEntries = [];
|
|
578
|
+
try {
|
|
579
|
+
projectEntries = await fs.promises.readdir(projectsDir, { withFileTypes: true });
|
|
580
|
+
}
|
|
581
|
+
catch (_err) {
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
const projects = projectEntries.filter((entry) => entry.isDirectory());
|
|
585
|
+
if (projects.length === 0) {
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
588
|
+
let migrated = 0;
|
|
589
|
+
let merged = 0;
|
|
590
|
+
let linked = 0;
|
|
591
|
+
const instanceName = path.basename(instancePath);
|
|
592
|
+
for (const project of projects) {
|
|
593
|
+
const projectDir = path.join(projectsDir, project.name);
|
|
594
|
+
const projectMemoryPath = path.join(projectDir, 'memory');
|
|
595
|
+
const sharedProjectMemoryPath = path.join(sharedMemoryRoot, project.name);
|
|
596
|
+
const projectMemoryStats = await this.getLstat(projectMemoryPath);
|
|
597
|
+
if (!projectMemoryStats) {
|
|
598
|
+
if (await this.ensureProjectMemoryLink(projectMemoryPath, sharedProjectMemoryPath)) {
|
|
599
|
+
linked++;
|
|
600
|
+
}
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
if (projectMemoryStats.isSymbolicLink()) {
|
|
604
|
+
if (await this.isSymlinkTarget(projectMemoryPath, sharedProjectMemoryPath)) {
|
|
605
|
+
continue;
|
|
606
|
+
}
|
|
607
|
+
await fs.promises.unlink(projectMemoryPath);
|
|
608
|
+
if (await this.ensureProjectMemoryLink(projectMemoryPath, sharedProjectMemoryPath)) {
|
|
609
|
+
linked++;
|
|
610
|
+
}
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
613
|
+
if (!projectMemoryStats.isDirectory()) {
|
|
614
|
+
continue;
|
|
615
|
+
}
|
|
616
|
+
if (!(await this.pathExists(sharedProjectMemoryPath))) {
|
|
617
|
+
await this.moveDirectory(projectMemoryPath, sharedProjectMemoryPath);
|
|
618
|
+
migrated++;
|
|
619
|
+
}
|
|
620
|
+
else {
|
|
621
|
+
merged += await this.mergeDirectoryWithConflictCopies(projectMemoryPath, sharedProjectMemoryPath, instanceName);
|
|
622
|
+
await fs.promises.rm(projectMemoryPath, { recursive: true, force: true });
|
|
623
|
+
}
|
|
624
|
+
if (await this.ensureProjectMemoryLink(projectMemoryPath, sharedProjectMemoryPath)) {
|
|
625
|
+
linked++;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
if (migrated > 0 || merged > 0 || linked > 0) {
|
|
629
|
+
console.log((0, ui_1.ok)(`Synced shared project memory: ${migrated} migrated, ${merged} merged conflict(s), ${linked} linked`));
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* Normalize plugin metadata and reconcile marketplace metadata for the active config dir.
|
|
634
|
+
*/
|
|
635
|
+
normalizeSharedPluginMetadataPaths(configDir) {
|
|
636
|
+
this.normalizePluginRegistryPaths(configDir);
|
|
637
|
+
this.normalizeMarketplaceRegistryPaths(configDir);
|
|
638
|
+
}
|
|
639
|
+
normalizeSharedPluginMetadataPathsLocked(configDir) {
|
|
640
|
+
this.pluginLayoutLock.withNamedLockSync('__plugin-layout__', () => {
|
|
641
|
+
this.normalizeSharedPluginMetadataPaths(configDir);
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Normalize plugin registry paths to use canonical ~/.claude/ paths
|
|
646
|
+
* instead of instance-specific ~/.ccs/instances/<name>/ paths.
|
|
647
|
+
*
|
|
648
|
+
* This ensures installed_plugins.json is consistent regardless of
|
|
649
|
+
* which CCS instance installed the plugin.
|
|
650
|
+
*/
|
|
651
|
+
normalizePluginRegistryPaths(configDir) {
|
|
652
|
+
this.normalizePluginMetadataFiles('installed_plugins.json', configDir, 'Normalized plugin registry paths', 'plugin registry');
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Reconcile marketplace registry content into the active config dir while
|
|
656
|
+
* keeping the global ~/.claude copy up to date for non-instance flows.
|
|
657
|
+
*/
|
|
658
|
+
normalizeMarketplaceRegistryPaths(configDir) {
|
|
659
|
+
const successMessage = 'Synchronized marketplace registry paths';
|
|
660
|
+
const warningLabel = 'marketplace registry';
|
|
661
|
+
try {
|
|
662
|
+
const sourcePaths = this.getMarketplaceRegistrySourcePaths(configDir);
|
|
663
|
+
this.writePluginMetadataFile(path.join(this.claudeDir, 'plugins', 'known_marketplaces.json'), this.buildMarketplaceRegistryContent(sourcePaths, this.claudeDir), successMessage);
|
|
664
|
+
if (configDir && path.resolve(configDir) !== path.resolve(this.claudeDir)) {
|
|
665
|
+
this.writePluginMetadataFile(path.join(configDir, 'plugins', 'known_marketplaces.json'), this.buildMarketplaceRegistryContent(sourcePaths, configDir), successMessage);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
catch (err) {
|
|
669
|
+
console.log((0, ui_1.warn)(`Could not synchronize ${warningLabel}: ${err.message}`));
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
normalizePluginMetadataFiles(fileName, configDir, successMessage, warningLabel) {
|
|
673
|
+
const seen = new Set();
|
|
674
|
+
for (const registryPath of this.getPluginMetadataFilePaths(fileName, configDir)) {
|
|
675
|
+
const dedupeKey = this.resolveCanonicalPath(registryPath);
|
|
676
|
+
if (seen.has(dedupeKey)) {
|
|
677
|
+
continue;
|
|
678
|
+
}
|
|
679
|
+
seen.add(dedupeKey);
|
|
680
|
+
this.normalizePluginMetadataFile(registryPath, successMessage, warningLabel);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
getPluginMetadataFilePaths(fileName, configDir) {
|
|
684
|
+
const pluginDirs = new Set([
|
|
685
|
+
path.join(this.claudeDir, 'plugins'),
|
|
686
|
+
path.join(this.sharedDir, 'plugins'),
|
|
687
|
+
]);
|
|
688
|
+
if (configDir && path.resolve(configDir) !== path.resolve(this.claudeDir)) {
|
|
689
|
+
pluginDirs.add(path.join(configDir, 'plugins'));
|
|
690
|
+
}
|
|
691
|
+
return [...pluginDirs].map((pluginDir) => path.join(pluginDir, fileName));
|
|
692
|
+
}
|
|
693
|
+
normalizePluginMetadataFile(registryPath, successMessage, warningLabel) {
|
|
694
|
+
if (!fs.existsSync(registryPath)) {
|
|
695
|
+
return;
|
|
696
|
+
}
|
|
697
|
+
try {
|
|
698
|
+
const original = fs.readFileSync(registryPath, 'utf8');
|
|
699
|
+
const normalized = normalizePluginMetadataContent(original);
|
|
700
|
+
if (normalized !== original) {
|
|
701
|
+
fs.writeFileSync(registryPath, normalized, 'utf8');
|
|
702
|
+
console.log((0, ui_1.ok)(successMessage));
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
catch (err) {
|
|
706
|
+
console.log((0, ui_1.warn)(`Could not normalize ${warningLabel}: ${err.message}`));
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
getMarketplaceRegistrySourcePaths(configDir) {
|
|
710
|
+
const sourcePaths = new Set([
|
|
711
|
+
path.join(this.claudeDir, 'plugins', 'known_marketplaces.json'),
|
|
712
|
+
]);
|
|
713
|
+
if (fs.existsSync(this.instancesDir)) {
|
|
714
|
+
for (const entry of fs.readdirSync(this.instancesDir, { withFileTypes: true })) {
|
|
715
|
+
if (!entry.isDirectory() || entry.name.startsWith('.')) {
|
|
716
|
+
continue;
|
|
717
|
+
}
|
|
718
|
+
sourcePaths.add(path.join(this.instancesDir, entry.name, 'plugins', 'known_marketplaces.json'));
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
if (configDir && path.resolve(configDir) !== path.resolve(this.claudeDir)) {
|
|
722
|
+
sourcePaths.add(path.join(configDir, 'plugins', 'known_marketplaces.json'));
|
|
723
|
+
}
|
|
724
|
+
return [...sourcePaths];
|
|
725
|
+
}
|
|
726
|
+
buildMarketplaceRegistryContent(sourcePaths, targetConfigDir) {
|
|
727
|
+
const merged = {};
|
|
728
|
+
for (const registryPath of sourcePaths) {
|
|
729
|
+
if (!fs.existsSync(registryPath)) {
|
|
730
|
+
continue;
|
|
731
|
+
}
|
|
732
|
+
try {
|
|
733
|
+
const parsed = JSON.parse(fs.readFileSync(registryPath, 'utf8'));
|
|
734
|
+
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
735
|
+
continue;
|
|
736
|
+
}
|
|
737
|
+
for (const [name, value] of Object.entries(parsed)) {
|
|
738
|
+
merged[name] = normalizePluginMetadataValue(value, targetConfigDir).normalized;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
catch (err) {
|
|
742
|
+
console.log((0, ui_1.warn)(`Skipping malformed marketplace registry ${registryPath}: ${err.message}`));
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
const discoveredEntries = this.discoverMarketplaceEntries(targetConfigDir);
|
|
746
|
+
for (const [name, value] of Object.entries(discoveredEntries)) {
|
|
747
|
+
const existing = merged[name];
|
|
748
|
+
if (existing && typeof existing === 'object' && !Array.isArray(existing)) {
|
|
749
|
+
merged[name] = {
|
|
750
|
+
...existing,
|
|
751
|
+
installLocation: value.installLocation,
|
|
752
|
+
};
|
|
753
|
+
continue;
|
|
754
|
+
}
|
|
755
|
+
merged[name] = value;
|
|
756
|
+
}
|
|
757
|
+
for (const name of Object.keys(merged)) {
|
|
758
|
+
if (!(name in discoveredEntries)) {
|
|
759
|
+
delete merged[name];
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return JSON.stringify(merged, null, 2);
|
|
763
|
+
}
|
|
764
|
+
discoverMarketplaceEntries(targetConfigDir) {
|
|
765
|
+
const marketplacesDir = path.join(targetConfigDir, 'plugins', 'marketplaces');
|
|
766
|
+
if (!fs.existsSync(marketplacesDir)) {
|
|
767
|
+
return {};
|
|
768
|
+
}
|
|
769
|
+
const discovered = {};
|
|
770
|
+
for (const entry of fs.readdirSync(marketplacesDir, { withFileTypes: true })) {
|
|
771
|
+
if (!entry.isDirectory()) {
|
|
772
|
+
continue;
|
|
773
|
+
}
|
|
774
|
+
discovered[entry.name] = {
|
|
775
|
+
installLocation: path.join(targetConfigDir, 'plugins', 'marketplaces', entry.name),
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
return discovered;
|
|
779
|
+
}
|
|
780
|
+
writePluginMetadataFile(registryPath, content, successMessage) {
|
|
781
|
+
fs.mkdirSync(path.dirname(registryPath), { recursive: true, mode: 0o700 });
|
|
782
|
+
const current = fs.existsSync(registryPath) ? fs.readFileSync(registryPath, 'utf8') : null;
|
|
783
|
+
if (current === content) {
|
|
784
|
+
return;
|
|
785
|
+
}
|
|
786
|
+
fs.writeFileSync(registryPath, content, 'utf8');
|
|
787
|
+
console.log((0, ui_1.ok)(successMessage));
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Migrate from v3.1.1 (copied data in ~/.ccs/shared/) to v3.2.0 (symlinks to ~/.claude/)
|
|
791
|
+
* Runs once on upgrade
|
|
792
|
+
*/
|
|
793
|
+
migrateFromV311() {
|
|
794
|
+
// Check if migration already done (shared dirs are symlinks)
|
|
795
|
+
const commandsPath = path.join(this.sharedDir, 'commands');
|
|
796
|
+
if (fs.existsSync(commandsPath)) {
|
|
797
|
+
try {
|
|
798
|
+
if (fs.lstatSync(commandsPath).isSymbolicLink()) {
|
|
799
|
+
return; // Already migrated
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
catch (_err) {
|
|
803
|
+
// Continue with migration
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
console.log((0, ui_1.info)('Migrating from v3.1.1 to v3.2.0...'));
|
|
807
|
+
// Ensure ~/.claude/ exists
|
|
808
|
+
if (!fs.existsSync(this.claudeDir)) {
|
|
809
|
+
fs.mkdirSync(this.claudeDir, { recursive: true, mode: 0o700 });
|
|
810
|
+
}
|
|
811
|
+
// Copy user modifications from ~/.ccs/shared/ to ~/.claude/
|
|
812
|
+
for (const item of this.sharedItems) {
|
|
813
|
+
const sharedPath = path.join(this.sharedDir, item.name);
|
|
814
|
+
const claudePath = path.join(this.claudeDir, item.name);
|
|
815
|
+
if (!fs.existsSync(sharedPath))
|
|
816
|
+
continue;
|
|
817
|
+
try {
|
|
818
|
+
const stats = fs.lstatSync(sharedPath);
|
|
819
|
+
// Handle directories
|
|
820
|
+
if (item.type === 'directory' && stats.isDirectory()) {
|
|
821
|
+
// Create claude dir if missing
|
|
822
|
+
if (!fs.existsSync(claudePath)) {
|
|
823
|
+
fs.mkdirSync(claudePath, { recursive: true, mode: 0o700 });
|
|
824
|
+
}
|
|
825
|
+
// Copy files from shared to claude (preserve user modifications)
|
|
826
|
+
const entries = fs.readdirSync(sharedPath, { withFileTypes: true });
|
|
827
|
+
let copied = 0;
|
|
828
|
+
for (const entry of entries) {
|
|
829
|
+
const src = path.join(sharedPath, entry.name);
|
|
830
|
+
const dest = path.join(claudePath, entry.name);
|
|
831
|
+
// Skip if already exists in claude
|
|
832
|
+
if (fs.existsSync(dest))
|
|
833
|
+
continue;
|
|
834
|
+
if (entry.isDirectory()) {
|
|
835
|
+
fs.cpSync(src, dest, { recursive: true });
|
|
836
|
+
}
|
|
837
|
+
else {
|
|
838
|
+
fs.copyFileSync(src, dest);
|
|
839
|
+
}
|
|
840
|
+
copied++;
|
|
841
|
+
}
|
|
842
|
+
if (copied > 0) {
|
|
843
|
+
console.log((0, ui_1.ok)(`Migrated ${copied} ${item.name} to ~/.claude/${item.name}`));
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
// Handle files (settings.json)
|
|
847
|
+
else if (item.type === 'file' && stats.isFile()) {
|
|
848
|
+
// Only copy if ~/.claude/ version doesn't exist
|
|
849
|
+
if (!fs.existsSync(claudePath)) {
|
|
850
|
+
fs.copyFileSync(sharedPath, claudePath);
|
|
851
|
+
console.log((0, ui_1.ok)(`Migrated ${item.name} to ~/.claude/${item.name}`));
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
catch (_err) {
|
|
856
|
+
console.log((0, ui_1.warn)(`Failed to migrate ${item.name}: ${_err.message}`));
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
// Now run ensureSharedDirectories to create symlinks
|
|
860
|
+
this.ensureSharedDirectories();
|
|
861
|
+
// Update all instances to use new symlinks
|
|
862
|
+
if (fs.existsSync(this.instancesDir)) {
|
|
863
|
+
try {
|
|
864
|
+
const instances = fs.readdirSync(this.instancesDir);
|
|
865
|
+
for (const instance of instances) {
|
|
866
|
+
const instancePath = path.join(this.instancesDir, instance);
|
|
867
|
+
try {
|
|
868
|
+
if (fs.statSync(instancePath).isDirectory()) {
|
|
869
|
+
this.linkSharedDirectories(instancePath);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
catch (_err) {
|
|
873
|
+
console.log((0, ui_1.warn)(`Failed to update instance ${instance}: ${_err.message}`));
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
catch (_err) {
|
|
878
|
+
// No instances to update
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
console.log((0, ui_1.ok)('Migration to v3.2.0 complete'));
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Migrate existing instances from isolated to shared settings.json (v4.4+)
|
|
885
|
+
* Runs once on upgrade
|
|
886
|
+
*/
|
|
887
|
+
migrateToSharedSettings() {
|
|
888
|
+
console.log((0, ui_1.info)('Migrating instances to shared settings.json...'));
|
|
889
|
+
// Ensure ~/.claude/settings.json exists (authoritative source)
|
|
890
|
+
const claudeSettings = path.join(this.claudeDir, 'settings.json');
|
|
891
|
+
if (!fs.existsSync(claudeSettings)) {
|
|
892
|
+
// Create empty settings if missing
|
|
893
|
+
fs.writeFileSync(claudeSettings, JSON.stringify({}, null, 2), 'utf8');
|
|
894
|
+
console.log((0, ui_1.info)('Created ~/.claude/settings.json'));
|
|
895
|
+
}
|
|
896
|
+
// Ensure shared settings.json symlink exists
|
|
897
|
+
this.ensureSharedDirectories();
|
|
898
|
+
// Migrate each instance
|
|
899
|
+
if (!fs.existsSync(this.instancesDir)) {
|
|
900
|
+
console.log((0, ui_1.info)('No instances to migrate'));
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
903
|
+
const instances = fs.readdirSync(this.instancesDir).filter((name) => {
|
|
904
|
+
const instancePath = path.join(this.instancesDir, name);
|
|
905
|
+
return fs.statSync(instancePath).isDirectory();
|
|
906
|
+
});
|
|
907
|
+
let migrated = 0;
|
|
908
|
+
let skipped = 0;
|
|
909
|
+
for (const instance of instances) {
|
|
910
|
+
const instancePath = path.join(this.instancesDir, instance);
|
|
911
|
+
const instanceSettings = path.join(instancePath, 'settings.json');
|
|
912
|
+
try {
|
|
913
|
+
// Check if already symlink
|
|
914
|
+
if (fs.existsSync(instanceSettings)) {
|
|
915
|
+
const stats = fs.lstatSync(instanceSettings);
|
|
916
|
+
if (stats.isSymbolicLink()) {
|
|
917
|
+
skipped++;
|
|
918
|
+
continue; // Already migrated
|
|
919
|
+
}
|
|
920
|
+
// Backup existing settings
|
|
921
|
+
const backup = instanceSettings + '.pre-shared-migration';
|
|
922
|
+
if (!fs.existsSync(backup)) {
|
|
923
|
+
fs.copyFileSync(instanceSettings, backup);
|
|
924
|
+
console.log((0, ui_1.info)(`Backed up ${instance}/settings.json`));
|
|
925
|
+
}
|
|
926
|
+
// Remove old settings.json
|
|
927
|
+
fs.unlinkSync(instanceSettings);
|
|
928
|
+
}
|
|
929
|
+
// Create symlink via SharedManager
|
|
930
|
+
const sharedSettings = path.join(this.sharedDir, 'settings.json');
|
|
931
|
+
try {
|
|
932
|
+
fs.symlinkSync(sharedSettings, instanceSettings, 'file');
|
|
933
|
+
migrated++;
|
|
934
|
+
}
|
|
935
|
+
catch (_err) {
|
|
936
|
+
// Windows fallback
|
|
937
|
+
if (process.platform === 'win32') {
|
|
938
|
+
fs.copyFileSync(sharedSettings, instanceSettings);
|
|
939
|
+
console.log((0, ui_1.warn)(`Symlink failed for ${instance}, copied instead`));
|
|
940
|
+
migrated++;
|
|
941
|
+
}
|
|
942
|
+
else {
|
|
943
|
+
throw _err;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
catch (_err) {
|
|
948
|
+
console.log((0, ui_1.warn)(`Failed to migrate ${instance}: ${_err.message}`));
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
console.log((0, ui_1.ok)(`Migrated ${migrated} instance(s), skipped ${skipped}`));
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Ensure memory path is linked to shared memory root.
|
|
955
|
+
* Returns true when a link/copy was created or updated.
|
|
956
|
+
*/
|
|
957
|
+
async ensureProjectMemoryLink(linkPath, targetPath) {
|
|
958
|
+
await this.ensureDirectory(targetPath);
|
|
959
|
+
const linkStats = await this.getLstat(linkPath);
|
|
960
|
+
if (linkStats) {
|
|
961
|
+
if (linkStats.isSymbolicLink() && (await this.isSymlinkTarget(linkPath, targetPath))) {
|
|
962
|
+
return false;
|
|
963
|
+
}
|
|
964
|
+
if (linkStats.isDirectory()) {
|
|
965
|
+
await fs.promises.rm(linkPath, { recursive: true, force: true });
|
|
966
|
+
}
|
|
967
|
+
else {
|
|
968
|
+
await fs.promises.unlink(linkPath);
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
const symlinkType = process.platform === 'win32' ? 'junction' : 'dir';
|
|
972
|
+
const linkTarget = process.platform === 'win32' ? path.resolve(targetPath) : targetPath;
|
|
973
|
+
try {
|
|
974
|
+
await fs.promises.symlink(linkTarget, linkPath, symlinkType);
|
|
975
|
+
return true;
|
|
976
|
+
}
|
|
977
|
+
catch (_err) {
|
|
978
|
+
if (process.platform === 'win32') {
|
|
979
|
+
this.copyDirectoryFallback(targetPath, linkPath);
|
|
980
|
+
console.log((0, ui_1.warn)(`Symlink failed for project memory, copied instead (enable Developer Mode)`));
|
|
981
|
+
return true;
|
|
982
|
+
}
|
|
983
|
+
throw _err;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Check whether symlink points to expected target.
|
|
988
|
+
*/
|
|
989
|
+
async isSymlinkTarget(linkPath, expectedTarget) {
|
|
990
|
+
try {
|
|
991
|
+
const stats = await fs.promises.lstat(linkPath);
|
|
992
|
+
if (!stats.isSymbolicLink()) {
|
|
993
|
+
return false;
|
|
994
|
+
}
|
|
995
|
+
const currentTarget = await fs.promises.readlink(linkPath);
|
|
996
|
+
const resolvedCurrentTarget = path.resolve(path.dirname(linkPath), currentTarget);
|
|
997
|
+
const resolvedExpectedTarget = path.resolve(expectedTarget);
|
|
998
|
+
return resolvedCurrentTarget === resolvedExpectedTarget;
|
|
999
|
+
}
|
|
1000
|
+
catch (_err) {
|
|
1001
|
+
return false;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* Resolve symlink target to absolute path.
|
|
1006
|
+
*/
|
|
1007
|
+
async resolveSymlinkTargetPath(linkPath) {
|
|
1008
|
+
try {
|
|
1009
|
+
const currentTarget = await fs.promises.readlink(linkPath);
|
|
1010
|
+
return path.resolve(path.dirname(linkPath), currentTarget);
|
|
1011
|
+
}
|
|
1012
|
+
catch (_err) {
|
|
1013
|
+
return null;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Guard project merge operations to known CCS-managed roots only.
|
|
1018
|
+
*/
|
|
1019
|
+
isSafeProjectsMergeSource(sourcePath, instanceName) {
|
|
1020
|
+
const resolvedSource = this.resolveCanonicalPath(sourcePath);
|
|
1021
|
+
const sharedContextRoot = this.resolveCanonicalPath(path.join(this.sharedDir, 'context-groups'));
|
|
1022
|
+
const instanceProjectsRoot = this.resolveCanonicalPath(path.join(this.instancesDir, instanceName, 'projects'));
|
|
1023
|
+
return (this.isPathWithinDirectory(resolvedSource, sharedContextRoot) ||
|
|
1024
|
+
this.isPathWithinDirectory(resolvedSource, instanceProjectsRoot));
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* Guard advanced continuity merge operations to known CCS-managed roots only.
|
|
1028
|
+
*/
|
|
1029
|
+
isSafeContinuityMergeSource(sourcePath, instanceName, artifactName) {
|
|
1030
|
+
const resolvedSource = this.resolveCanonicalPath(sourcePath);
|
|
1031
|
+
const sharedContextRoot = this.resolveCanonicalPath(path.join(this.sharedDir, 'context-groups'));
|
|
1032
|
+
const instanceArtifactRoot = this.resolveCanonicalPath(path.join(this.instancesDir, instanceName, artifactName));
|
|
1033
|
+
const normalizedSource = process.platform === 'win32' ? resolvedSource.toLowerCase() : resolvedSource;
|
|
1034
|
+
const continuitySegment = process.platform === 'win32'
|
|
1035
|
+
? `${path.sep}continuity${path.sep}`.toLowerCase()
|
|
1036
|
+
: `${path.sep}continuity${path.sep}`;
|
|
1037
|
+
const withinSharedContinuity = this.isPathWithinDirectory(resolvedSource, sharedContextRoot) &&
|
|
1038
|
+
normalizedSource.includes(continuitySegment);
|
|
1039
|
+
return (withinSharedContinuity || this.isPathWithinDirectory(resolvedSource, instanceArtifactRoot));
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Link directory with Windows fallback to recursive copy.
|
|
1043
|
+
*/
|
|
1044
|
+
async linkDirectoryWithFallback(targetPath, linkPath) {
|
|
1045
|
+
const symlinkType = process.platform === 'win32' ? 'junction' : 'dir';
|
|
1046
|
+
const linkTarget = process.platform === 'win32' ? path.resolve(targetPath) : targetPath;
|
|
1047
|
+
try {
|
|
1048
|
+
await fs.promises.symlink(linkTarget, linkPath, symlinkType);
|
|
1049
|
+
}
|
|
1050
|
+
catch (_err) {
|
|
1051
|
+
if (process.platform === 'win32') {
|
|
1052
|
+
this.copyDirectoryFallback(targetPath, linkPath);
|
|
1053
|
+
console.log((0, ui_1.warn)(`Symlink failed for context projects, copied instead (enable Developer Mode)`));
|
|
1054
|
+
return;
|
|
1055
|
+
}
|
|
1056
|
+
throw _err;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Migrate legacy per-project memory symlinks that point to ~/.ccs/shared/memory.
|
|
1061
|
+
* This preserves data while restoring true profile isolation.
|
|
1062
|
+
*/
|
|
1063
|
+
async detachLegacySharedMemoryLinks(projectsPath, instanceName) {
|
|
1064
|
+
const sharedMemoryRoot = this.resolveCanonicalPath(path.join(this.sharedDir, 'memory'));
|
|
1065
|
+
let projectEntries = [];
|
|
1066
|
+
try {
|
|
1067
|
+
projectEntries = await fs.promises.readdir(projectsPath, { withFileTypes: true });
|
|
1068
|
+
}
|
|
1069
|
+
catch (_err) {
|
|
1070
|
+
return;
|
|
1071
|
+
}
|
|
1072
|
+
for (const entry of projectEntries) {
|
|
1073
|
+
if (!entry.isDirectory()) {
|
|
1074
|
+
continue;
|
|
1075
|
+
}
|
|
1076
|
+
const projectPath = path.join(projectsPath, entry.name);
|
|
1077
|
+
const memoryPath = path.join(projectPath, 'memory');
|
|
1078
|
+
const memoryStats = await this.getLstat(memoryPath);
|
|
1079
|
+
if (!memoryStats?.isSymbolicLink()) {
|
|
1080
|
+
continue;
|
|
1081
|
+
}
|
|
1082
|
+
const memoryTarget = await this.resolveSymlinkTargetPath(memoryPath);
|
|
1083
|
+
if (!memoryTarget) {
|
|
1084
|
+
continue;
|
|
1085
|
+
}
|
|
1086
|
+
const canonicalMemoryTarget = this.resolveCanonicalPath(memoryTarget);
|
|
1087
|
+
if (!this.isPathWithinDirectory(canonicalMemoryTarget, sharedMemoryRoot)) {
|
|
1088
|
+
continue;
|
|
1089
|
+
}
|
|
1090
|
+
await fs.promises.unlink(memoryPath);
|
|
1091
|
+
await this.ensureDirectory(memoryPath);
|
|
1092
|
+
if (await this.pathExists(canonicalMemoryTarget)) {
|
|
1093
|
+
await this.mergeDirectoryWithConflictCopies(canonicalMemoryTarget, memoryPath, instanceName);
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Move directory, with cross-device fallback.
|
|
1099
|
+
*/
|
|
1100
|
+
async moveDirectory(src, dest) {
|
|
1101
|
+
try {
|
|
1102
|
+
await fs.promises.rename(src, dest);
|
|
1103
|
+
}
|
|
1104
|
+
catch (err) {
|
|
1105
|
+
const error = err;
|
|
1106
|
+
if (error.code !== 'EXDEV') {
|
|
1107
|
+
throw err;
|
|
1108
|
+
}
|
|
1109
|
+
await fs.promises.cp(src, dest, { recursive: true });
|
|
1110
|
+
await fs.promises.rm(src, { recursive: true, force: true });
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Merge source into target. On file conflicts, keep target and copy source
|
|
1115
|
+
* as "<name>.migrated-from-<instance>[-N]" to avoid data loss.
|
|
1116
|
+
*/
|
|
1117
|
+
async mergeDirectoryWithConflictCopies(sourceDir, targetDir, instanceName) {
|
|
1118
|
+
await this.ensureDirectory(targetDir);
|
|
1119
|
+
let conflicts = 0;
|
|
1120
|
+
const entries = await fs.promises.readdir(sourceDir, { withFileTypes: true });
|
|
1121
|
+
for (const entry of entries) {
|
|
1122
|
+
const sourcePath = path.join(sourceDir, entry.name);
|
|
1123
|
+
const targetPath = path.join(targetDir, entry.name);
|
|
1124
|
+
if (entry.isDirectory()) {
|
|
1125
|
+
conflicts += await this.mergeDirectoryWithConflictCopies(sourcePath, targetPath, instanceName);
|
|
1126
|
+
continue;
|
|
1127
|
+
}
|
|
1128
|
+
if (entry.isFile()) {
|
|
1129
|
+
if (!(await this.pathExists(targetPath))) {
|
|
1130
|
+
await fs.promises.copyFile(sourcePath, targetPath);
|
|
1131
|
+
continue;
|
|
1132
|
+
}
|
|
1133
|
+
if (await this.fileContentsEqual(sourcePath, targetPath)) {
|
|
1134
|
+
continue;
|
|
1135
|
+
}
|
|
1136
|
+
const conflictPath = await this.getConflictCopyPath(targetPath, instanceName);
|
|
1137
|
+
await fs.promises.copyFile(sourcePath, conflictPath);
|
|
1138
|
+
conflicts++;
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
return conflicts;
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Compare two files byte-for-byte.
|
|
1145
|
+
*/
|
|
1146
|
+
async fileContentsEqual(fileA, fileB) {
|
|
1147
|
+
try {
|
|
1148
|
+
const [statA, statB] = await Promise.all([fs.promises.stat(fileA), fs.promises.stat(fileB)]);
|
|
1149
|
+
if (statA.size !== statB.size) {
|
|
1150
|
+
return false;
|
|
1151
|
+
}
|
|
1152
|
+
const [contentA, contentB] = await Promise.all([
|
|
1153
|
+
fs.promises.readFile(fileA),
|
|
1154
|
+
fs.promises.readFile(fileB),
|
|
1155
|
+
]);
|
|
1156
|
+
return contentA.equals(contentB);
|
|
1157
|
+
}
|
|
1158
|
+
catch (_err) {
|
|
1159
|
+
return false;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Build a non-destructive conflict copy path.
|
|
1164
|
+
*/
|
|
1165
|
+
async getConflictCopyPath(existingTargetPath, instanceName) {
|
|
1166
|
+
const safeInstanceName = instanceName.replace(/[^a-zA-Z0-9_-]/g, '-').toLowerCase();
|
|
1167
|
+
const baseSuffix = `.migrated-from-${safeInstanceName}`;
|
|
1168
|
+
let candidate = `${existingTargetPath}${baseSuffix}`;
|
|
1169
|
+
let sequence = 1;
|
|
1170
|
+
while (await this.pathExists(candidate)) {
|
|
1171
|
+
candidate = `${existingTargetPath}${baseSuffix}-${sequence}`;
|
|
1172
|
+
sequence++;
|
|
1173
|
+
}
|
|
1174
|
+
return candidate;
|
|
1175
|
+
}
|
|
1176
|
+
symlinkPointsTo(linkPath, expectedTarget) {
|
|
1177
|
+
try {
|
|
1178
|
+
const currentTarget = fs.readlinkSync(linkPath);
|
|
1179
|
+
const resolvedCurrentTarget = path.resolve(path.dirname(linkPath), currentTarget);
|
|
1180
|
+
return (this.resolveCanonicalPath(resolvedCurrentTarget) ===
|
|
1181
|
+
this.resolveCanonicalPath(expectedTarget));
|
|
1182
|
+
}
|
|
1183
|
+
catch {
|
|
1184
|
+
return false;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
detachManagedPluginLayout(instancePath) {
|
|
1188
|
+
const pluginsPath = path.join(instancePath, 'plugins');
|
|
1189
|
+
if (!fs.existsSync(pluginsPath)) {
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1192
|
+
const stats = fs.lstatSync(pluginsPath);
|
|
1193
|
+
const sharedPluginsPath = path.join(this.sharedDir, 'plugins');
|
|
1194
|
+
if (stats.isSymbolicLink()) {
|
|
1195
|
+
if (this.symlinkPointsTo(pluginsPath, sharedPluginsPath)) {
|
|
1196
|
+
this.removeExistingPath(pluginsPath, 'directory');
|
|
1197
|
+
}
|
|
1198
|
+
return;
|
|
1199
|
+
}
|
|
1200
|
+
if (!stats.isDirectory()) {
|
|
1201
|
+
return;
|
|
1202
|
+
}
|
|
1203
|
+
let removedManagedEntries = false;
|
|
1204
|
+
for (const item of this.getSharedPluginLinkItems()) {
|
|
1205
|
+
const pluginEntryPath = path.join(pluginsPath, item.name);
|
|
1206
|
+
if (!fs.existsSync(pluginEntryPath)) {
|
|
1207
|
+
continue;
|
|
1208
|
+
}
|
|
1209
|
+
const entryStats = fs.lstatSync(pluginEntryPath);
|
|
1210
|
+
if (!entryStats.isSymbolicLink()) {
|
|
1211
|
+
continue;
|
|
1212
|
+
}
|
|
1213
|
+
if (this.symlinkPointsTo(pluginEntryPath, path.join(sharedPluginsPath, item.name))) {
|
|
1214
|
+
this.removeExistingPath(pluginEntryPath, item.type);
|
|
1215
|
+
removedManagedEntries = true;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
if (!removedManagedEntries) {
|
|
1219
|
+
return;
|
|
1220
|
+
}
|
|
1221
|
+
this.reconcileLocalMarketplaceRegistry(instancePath);
|
|
1222
|
+
if (fs.readdirSync(pluginsPath).length === 0) {
|
|
1223
|
+
fs.rmSync(pluginsPath, { recursive: true, force: true });
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
reconcileLocalMarketplaceRegistry(configDir) {
|
|
1227
|
+
const registryPath = path.join(configDir, 'plugins', 'known_marketplaces.json');
|
|
1228
|
+
if (!fs.existsSync(registryPath)) {
|
|
1229
|
+
return;
|
|
1230
|
+
}
|
|
1231
|
+
const discoveredEntries = this.discoverMarketplaceEntries(configDir);
|
|
1232
|
+
if (Object.keys(discoveredEntries).length === 0) {
|
|
1233
|
+
this.removeExistingPath(registryPath, 'file');
|
|
1234
|
+
return;
|
|
1235
|
+
}
|
|
1236
|
+
let parsed = {};
|
|
1237
|
+
try {
|
|
1238
|
+
const raw = JSON.parse(fs.readFileSync(registryPath, 'utf8'));
|
|
1239
|
+
if (raw && typeof raw === 'object' && !Array.isArray(raw)) {
|
|
1240
|
+
parsed = raw;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
catch {
|
|
1244
|
+
parsed = {};
|
|
1245
|
+
}
|
|
1246
|
+
const reconciled = Object.fromEntries(Object.entries(discoveredEntries).map(([name, value]) => {
|
|
1247
|
+
const existing = parsed[name];
|
|
1248
|
+
if (existing && typeof existing === 'object' && !Array.isArray(existing)) {
|
|
1249
|
+
return [
|
|
1250
|
+
name,
|
|
1251
|
+
{
|
|
1252
|
+
...normalizePluginMetadataValue(existing, configDir).normalized,
|
|
1253
|
+
installLocation: value.installLocation,
|
|
1254
|
+
},
|
|
1255
|
+
];
|
|
1256
|
+
}
|
|
1257
|
+
return [name, value];
|
|
1258
|
+
}));
|
|
1259
|
+
this.writePluginMetadataFile(registryPath, JSON.stringify(reconciled, null, 2), 'Synchronized marketplace registry paths');
|
|
1260
|
+
}
|
|
1261
|
+
resolveCanonicalPath(targetPath) {
|
|
1262
|
+
try {
|
|
1263
|
+
return fs.realpathSync.native(targetPath);
|
|
1264
|
+
}
|
|
1265
|
+
catch {
|
|
1266
|
+
return path.resolve(targetPath);
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
isPathWithinDirectory(candidatePath, rootPath) {
|
|
1270
|
+
const normalizeForCompare = (inputPath) => {
|
|
1271
|
+
const resolved = path.resolve(inputPath);
|
|
1272
|
+
return process.platform === 'win32' ? resolved.toLowerCase() : resolved;
|
|
1273
|
+
};
|
|
1274
|
+
const normalizedCandidate = normalizeForCompare(candidatePath);
|
|
1275
|
+
const normalizedRoot = normalizeForCompare(rootPath);
|
|
1276
|
+
const relative = path.relative(normalizedRoot, normalizedCandidate);
|
|
1277
|
+
return relative === '' || (!relative.startsWith('..') && !path.isAbsolute(relative));
|
|
1278
|
+
}
|
|
1279
|
+
async pathExists(targetPath) {
|
|
1280
|
+
try {
|
|
1281
|
+
await fs.promises.access(targetPath);
|
|
1282
|
+
return true;
|
|
1283
|
+
}
|
|
1284
|
+
catch (_err) {
|
|
1285
|
+
return false;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
async ensureDirectory(targetPath) {
|
|
1289
|
+
await fs.promises.mkdir(targetPath, { recursive: true, mode: 0o700 });
|
|
1290
|
+
}
|
|
1291
|
+
async getLstat(targetPath) {
|
|
1292
|
+
try {
|
|
1293
|
+
return await fs.promises.lstat(targetPath);
|
|
1294
|
+
}
|
|
1295
|
+
catch (err) {
|
|
1296
|
+
if (err.code === 'ENOENT') {
|
|
1297
|
+
return null;
|
|
1298
|
+
}
|
|
1299
|
+
throw err;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
getLstatSync(targetPath) {
|
|
1303
|
+
try {
|
|
1304
|
+
return fs.lstatSync(targetPath);
|
|
1305
|
+
}
|
|
1306
|
+
catch (err) {
|
|
1307
|
+
if (err.code === 'ENOENT') {
|
|
1308
|
+
return null;
|
|
1309
|
+
}
|
|
1310
|
+
throw err;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* Copy directory as fallback (Windows without Developer Mode)
|
|
1315
|
+
*/
|
|
1316
|
+
copyDirectoryFallback(src, dest) {
|
|
1317
|
+
if (!fs.existsSync(src)) {
|
|
1318
|
+
fs.mkdirSync(src, { recursive: true, mode: 0o700 });
|
|
1319
|
+
return;
|
|
1320
|
+
}
|
|
1321
|
+
if (!fs.existsSync(dest)) {
|
|
1322
|
+
fs.mkdirSync(dest, { recursive: true, mode: 0o700 });
|
|
1323
|
+
}
|
|
1324
|
+
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
1325
|
+
for (const entry of entries) {
|
|
1326
|
+
const srcPath = path.join(src, entry.name);
|
|
1327
|
+
const destPath = path.join(dest, entry.name);
|
|
1328
|
+
if (entry.isDirectory()) {
|
|
1329
|
+
this.copyDirectoryFallback(srcPath, destPath);
|
|
1330
|
+
}
|
|
1331
|
+
else {
|
|
1332
|
+
fs.copyFileSync(srcPath, destPath);
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
exports.default = SharedManager;
|
|
1338
|
+
//# sourceMappingURL=shared-manager.js.map
|