@jonnyhoo/ccs 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/ccs/continue.md +15 -0
- package/.claude/commands/ccs.md +17 -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 +383 -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 +11 -0
- package/config/base-kiro.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/index.d.ts +13 -0
- package/dist/api/services/index.d.ts.map +1 -0
- package/dist/api/services/index.js +39 -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 +130 -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-reader.d.ts +31 -0
- package/dist/api/services/profile-reader.d.ts.map +1 -0
- package/dist/api/services/profile-reader.js +153 -0
- package/dist/api/services/profile-reader.js.map +1 -0
- package/dist/api/services/profile-types.d.ts +42 -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 +6 -0
- package/dist/api/services/profile-writer.d.ts.map +1 -0
- package/dist/api/services/profile-writer.js +187 -0
- package/dist/api/services/profile-writer.js.map +1 -0
- package/dist/api/services/provider-presets.d.ts +38 -0
- package/dist/api/services/provider-presets.d.ts.map +1 -0
- package/dist/api/services/provider-presets.js +165 -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/auth-commands.d.ts +62 -0
- package/dist/auth/auth-commands.d.ts.map +1 -0
- package/dist/auth/auth-commands.js +191 -0
- package/dist/auth/auth-commands.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 +137 -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 +12 -0
- package/dist/auth/commands/index.d.ts.map +1 -0
- package/dist/auth/commands/index.js +25 -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 +124 -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 +103 -0
- package/dist/auth/commands/show-command.js.map +1 -0
- package/dist/auth/commands/types.d.ts +50 -0
- package/dist/auth/commands/types.d.ts.map +1 -0
- package/dist/auth/commands/types.js +26 -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-detector.d.ts +106 -0
- package/dist/auth/profile-detector.d.ts.map +1 -0
- package/dist/auth/profile-detector.js +431 -0
- package/dist/auth/profile-detector.js.map +1 -0
- package/dist/auth/profile-registry.d.ts +110 -0
- package/dist/auth/profile-registry.d.ts.map +1 -0
- package/dist/auth/profile-registry.js +318 -0
- package/dist/auth/profile-registry.js.map +1 -0
- package/dist/ccs.d.ts +2 -0
- package/dist/ccs.d.ts.map +1 -0
- package/dist/ccs.js +642 -0
- package/dist/ccs.js.map +1 -0
- package/dist/cliproxy/account-manager.d.ts +218 -0
- package/dist/cliproxy/account-manager.d.ts.map +1 -0
- package/dist/cliproxy/account-manager.js +808 -0
- package/dist/cliproxy/account-manager.js.map +1 -0
- package/dist/cliproxy/auth/auth-types.d.ts +106 -0
- package/dist/cliproxy/auth/auth-types.d.ts.map +1 -0
- package/dist/cliproxy/auth/auth-types.js +164 -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 +38 -0
- package/dist/cliproxy/auth/gemini-token-refresh.d.ts.map +1 -0
- package/dist/cliproxy/auth/gemini-token-refresh.js +327 -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 +31 -0
- package/dist/cliproxy/auth/oauth-handler.d.ts.map +1 -0
- package/dist/cliproxy/auth/oauth-handler.js +422 -0
- package/dist/cliproxy/auth/oauth-handler.js.map +1 -0
- package/dist/cliproxy/auth/oauth-process.d.ts +27 -0
- package/dist/cliproxy/auth/oauth-process.d.ts.map +1 -0
- package/dist/cliproxy/auth/oauth-process.js +386 -0
- package/dist/cliproxy/auth/oauth-process.js.map +1 -0
- package/dist/cliproxy/auth/provider-refreshers/index.d.ts +21 -0
- package/dist/cliproxy/auth/provider-refreshers/index.d.ts.map +1 -0
- package/dist/cliproxy/auth/provider-refreshers/index.js +57 -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 +115 -0
- package/dist/cliproxy/auth/token-expiry-checker.js.map +1 -0
- package/dist/cliproxy/auth/token-manager.d.ts +66 -0
- package/dist/cliproxy/auth/token-manager.d.ts.map +1 -0
- package/dist/cliproxy/auth/token-manager.js +309 -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 +214 -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 +187 -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 +42 -0
- package/dist/cliproxy/binary/downloader.d.ts.map +1 -0
- package/dist/cliproxy/binary/downloader.js +407 -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 +129 -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 +59 -0
- package/dist/cliproxy/binary-manager.d.ts.map +1 -0
- package/dist/cliproxy/binary-manager.js +211 -0
- package/dist/cliproxy/binary-manager.js.map +1 -0
- package/dist/cliproxy/cliproxy-executor.d.ts +33 -0
- package/dist/cliproxy/cliproxy-executor.d.ts.map +1 -0
- package/dist/cliproxy/cliproxy-executor.js +1025 -0
- package/dist/cliproxy/cliproxy-executor.js.map +1 -0
- package/dist/cliproxy/codex-reasoning-proxy.d.ts +49 -0
- package/dist/cliproxy/codex-reasoning-proxy.d.ts.map +1 -0
- package/dist/cliproxy/codex-reasoning-proxy.js +367 -0
- package/dist/cliproxy/codex-reasoning-proxy.js.map +1 -0
- package/dist/cliproxy/config-generator.d.ts +227 -0
- package/dist/cliproxy/config-generator.d.ts.map +1 -0
- package/dist/cliproxy/config-generator.js +876 -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/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 +41 -0
- package/dist/cliproxy/index.d.ts.map +1 -0
- package/dist/cliproxy/index.js +151 -0
- package/dist/cliproxy/index.js.map +1 -0
- package/dist/cliproxy/management-api-client.d.ts +67 -0
- package/dist/cliproxy/management-api-client.d.ts.map +1 -0
- package/dist/cliproxy/management-api-client.js +347 -0
- package/dist/cliproxy/management-api-client.js.map +1 -0
- package/dist/cliproxy/management-api-types.d.ts +107 -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 +108 -0
- package/dist/cliproxy/model-catalog.d.ts.map +1 -0
- package/dist/cliproxy/model-catalog.js +247 -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 +250 -0
- package/dist/cliproxy/model-config.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/proxy-config-resolver.d.ts +86 -0
- package/dist/cliproxy/proxy-config-resolver.d.ts.map +1 -0
- package/dist/cliproxy/proxy-config-resolver.js +253 -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 +50 -0
- package/dist/cliproxy/proxy-target-resolver.d.ts.map +1 -0
- package/dist/cliproxy/proxy-target-resolver.js +105 -0
- package/dist/cliproxy/proxy-target-resolver.js.map +1 -0
- package/dist/cliproxy/quota-fetcher-codex.d.ts +66 -0
- package/dist/cliproxy/quota-fetcher-codex.d.ts.map +1 -0
- package/dist/cliproxy/quota-fetcher-codex.js +315 -0
- package/dist/cliproxy/quota-fetcher-codex.js.map +1 -0
- package/dist/cliproxy/quota-fetcher-gemini-cli.d.ts +51 -0
- package/dist/cliproxy/quota-fetcher-gemini-cli.d.ts.map +1 -0
- package/dist/cliproxy/quota-fetcher-gemini-cli.js +492 -0
- package/dist/cliproxy/quota-fetcher-gemini-cli.js.map +1 -0
- package/dist/cliproxy/quota-fetcher.d.ts +95 -0
- package/dist/cliproxy/quota-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/quota-fetcher.js +589 -0
- package/dist/cliproxy/quota-fetcher.js.map +1 -0
- package/dist/cliproxy/quota-manager.d.ts +88 -0
- package/dist/cliproxy/quota-manager.d.ts.map +1 -0
- package/dist/cliproxy/quota-manager.js +278 -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 +84 -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 +28 -0
- package/dist/cliproxy/remote-auth-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/remote-auth-fetcher.js +117 -0
- package/dist/cliproxy/remote-auth-fetcher.js.map +1 -0
- package/dist/cliproxy/remote-proxy-client.d.ts +59 -0
- package/dist/cliproxy/remote-proxy-client.d.ts.map +1 -0
- package/dist/cliproxy/remote-proxy-client.js +278 -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/service-manager.d.ts +55 -0
- package/dist/cliproxy/service-manager.d.ts.map +1 -0
- package/dist/cliproxy/service-manager.js +327 -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 +31 -0
- package/dist/cliproxy/services/index.js.map +1 -0
- package/dist/cliproxy/services/proxy-lifecycle-service.d.ts +38 -0
- package/dist/cliproxy/services/proxy-lifecycle-service.d.ts.map +1 -0
- package/dist/cliproxy/services/proxy-lifecycle-service.js +41 -0
- package/dist/cliproxy/services/proxy-lifecycle-service.js.map +1 -0
- package/dist/cliproxy/services/variant-config-adapter.d.ts +48 -0
- package/dist/cliproxy/services/variant-config-adapter.d.ts.map +1 -0
- package/dist/cliproxy/services/variant-config-adapter.js +215 -0
- package/dist/cliproxy/services/variant-config-adapter.js.map +1 -0
- package/dist/cliproxy/services/variant-service.d.ts +52 -0
- package/dist/cliproxy/services/variant-service.d.ts.map +1 -0
- package/dist/cliproxy/services/variant-service.js +218 -0
- package/dist/cliproxy/services/variant-service.js.map +1 -0
- package/dist/cliproxy/services/variant-settings.d.ts +37 -0
- package/dist/cliproxy/services/variant-settings.d.ts.map +1 -0
- package/dist/cliproxy/services/variant-settings.js +168 -0
- package/dist/cliproxy/services/variant-settings.js.map +1 -0
- package/dist/cliproxy/session-tracker.d.ts +100 -0
- package/dist/cliproxy/session-tracker.d.ts.map +1 -0
- package/dist/cliproxy/session-tracker.js +420 -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 +106 -0
- package/dist/cliproxy/stats-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/stats-fetcher.js +267 -0
- package/dist/cliproxy/stats-fetcher.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 +173 -0
- package/dist/cliproxy/sync/profile-mapper.js.map +1 -0
- package/dist/cliproxy/thinking-validator.d.ts +67 -0
- package/dist/cliproxy/thinking-validator.d.ts.map +1 -0
- package/dist/cliproxy/thinking-validator.js +327 -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 +70 -0
- package/dist/cliproxy/tool-sanitization-proxy.d.ts.map +1 -0
- package/dist/cliproxy/tool-sanitization-proxy.js +453 -0
- package/dist/cliproxy/tool-sanitization-proxy.js.map +1 -0
- package/dist/cliproxy/types.d.ts +218 -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.d.ts +12 -0
- package/dist/commands/api-command.d.ts.map +1 -0
- package/dist/commands/api-command.js +423 -0
- package/dist/commands/api-command.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-command.d.ts +21 -0
- package/dist/commands/cliproxy-command.d.ts.map +1 -0
- package/dist/commands/cliproxy-command.js +1099 -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/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 +84 -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 +121 -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-command.d.ts +12 -0
- package/dist/commands/config-command.d.ts.map +1 -0
- package/dist/commands/config-command.js +184 -0
- package/dist/commands/config-command.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 +174 -0
- package/dist/commands/config-image-analysis-command.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 +228 -0
- package/dist/commands/copilot-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/help-command.d.ts +5 -0
- package/dist/commands/help-command.d.ts.map +1 -0
- package/dist/commands/help-command.js +346 -0
- package/dist/commands/help-command.js.map +1 -0
- package/dist/commands/index.d.ts +18 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +35 -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 +62 -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/persist-command.d.ts +12 -0
- package/dist/commands/persist-command.d.ts.map +1 -0
- package/dist/commands/persist-command.js +565 -0
- package/dist/commands/persist-command.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 +426 -0
- package/dist/commands/setup-command.js.map +1 -0
- package/dist/commands/shell-completion-command.d.ts +10 -0
- package/dist/commands/shell-completion-command.d.ts.map +1 -0
- package/dist/commands/shell-completion-command.js +90 -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 +67 -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 +100 -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 +75 -0
- package/dist/config/migration-manager.d.ts.map +1 -0
- package/dist/config/migration-manager.js +446 -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 +80 -0
- package/dist/config/reserved-names.js.map +1 -0
- package/dist/config/unified-config-loader.d.ts +117 -0
- package/dist/config/unified-config-loader.d.ts.map +1 -0
- package/dist/config/unified-config-loader.js +756 -0
- package/dist/config/unified-config-loader.js.map +1 -0
- package/dist/config/unified-config-types.d.ts +519 -0
- package/dist/config/unified-config-types.d.ts.map +1 -0
- package/dist/config/unified-config-types.js +211 -0
- package/dist/config/unified-config-types.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 +237 -0
- package/dist/copilot/copilot-daemon.js.map +1 -0
- package/dist/copilot/copilot-executor.d.ts +26 -0
- package/dist/copilot/copilot-executor.d.ts.map +1 -0
- package/dist/copilot/copilot-executor.js +150 -0
- package/dist/copilot/copilot-executor.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 +261 -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/index.d.ts +13 -0
- package/dist/copilot/index.d.ts.map +1 -0
- package/dist/copilot/index.js +63 -0
- package/dist/copilot/index.js.map +1 -0
- package/dist/copilot/types.d.ts +65 -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/delegation/delegation-handler.d.ts +66 -0
- package/dist/delegation/delegation-handler.d.ts.map +1 -0
- package/dist/delegation/delegation-handler.js +290 -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 +30 -0
- package/dist/delegation/executor/result-aggregator.d.ts.map +1 -0
- package/dist/delegation/executor/result-aggregator.js +66 -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 +129 -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 +42 -0
- package/dist/delegation/headless-executor.d.ts.map +1 -0
- package/dist/delegation/headless-executor.js +480 -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/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 +102 -0
- package/dist/errors/error-types.d.ts.map +1 -0
- package/dist/errors/error-types.js +158 -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 +107 -0
- package/dist/glmt/glmt-proxy.d.ts.map +1 -0
- package/dist/glmt/glmt-proxy.js +665 -0
- package/dist/glmt/glmt-proxy.js.map +1 -0
- package/dist/glmt/glmt-transformer.d.ts +46 -0
- package/dist/glmt/glmt-transformer.d.ts.map +1 -0
- package/dist/glmt/glmt-transformer.js +177 -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 +47 -0
- package/dist/glmt/sse-parser.d.ts.map +1 -0
- package/dist/glmt/sse-parser.js +93 -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 +71 -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 +140 -0
- package/dist/management/checks/image-analysis-check.js.map +1 -0
- package/dist/management/checks/index.d.ts +13 -0
- package/dist/management/checks/index.d.ts.map +1 -0
- package/dist/management/checks/index.js +52 -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 +135 -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 +57 -0
- package/dist/management/instance-manager.d.ts.map +1 -0
- package/dist/management/instance-manager.js +195 -0
- package/dist/management/instance-manager.js.map +1 -0
- package/dist/management/oauth-port-diagnostics.d.ts +115 -0
- package/dist/management/oauth-port-diagnostics.d.ts.map +1 -0
- package/dist/management/oauth-port-diagnostics.js +291 -0
- package/dist/management/oauth-port-diagnostics.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 +239 -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 +186 -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 +55 -0
- package/dist/management/shared-manager.d.ts.map +1 -0
- package/dist/management/shared-manager.js +424 -0
- package/dist/management/shared-manager.js.map +1 -0
- package/dist/types/cli.d.ts +50 -0
- package/dist/types/cli.d.ts.map +1 -0
- package/dist/types/cli.js +16 -0
- package/dist/types/cli.js.map +1 -0
- package/dist/types/config.d.ts +89 -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 +13 -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/utils.d.ts +107 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/dist/types/utils.js +22 -0
- package/dist/types/utils.js.map +1 -0
- package/dist/utils/api-key-validator.d.ts +14 -0
- package/dist/utils/api-key-validator.d.ts.map +1 -0
- package/dist/utils/api-key-validator.js +143 -0
- package/dist/utils/api-key-validator.js.map +1 -0
- package/dist/utils/claude-detector.d.ts +14 -0
- package/dist/utils/claude-detector.d.ts.map +1 -0
- package/dist/utils/claude-detector.js +152 -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 +118 -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 +59 -0
- package/dist/utils/config-manager.d.ts.map +1 -0
- package/dist/utils/config-manager.js +292 -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 +182 -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 +63 -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/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 +17 -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 +42 -0
- package/dist/utils/hooks/get-image-analysis-hook-env.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 +149 -0
- package/dist/utils/hooks/image-analyzer-hook-installer.js.map +1 -0
- package/dist/utils/hooks/image-analyzer-profile-hook-injector.d.ts +24 -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 +251 -0
- package/dist/utils/hooks/image-analyzer-profile-hook-injector.js.map +1 -0
- package/dist/utils/hooks/index.d.ts +11 -0
- package/dist/utils/hooks/index.d.ts.map +1 -0
- package/dist/utils/hooks/index.js +21 -0
- package/dist/utils/hooks/index.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 +7 -0
- package/dist/utils/image-analysis/index.d.ts.map +1 -0
- package/dist/utils/image-analysis/index.js +12 -0
- package/dist/utils/image-analysis/index.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/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/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/sensitive-keys.d.ts +35 -0
- package/dist/utils/sensitive-keys.d.ts.map +1 -0
- package/dist/utils/sensitive-keys.js +67 -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 +260 -0
- package/dist/utils/shell-completion.js.map +1 -0
- package/dist/utils/shell-executor.d.ts +16 -0
- package/dist/utils/shell-executor.d.ts.map +1 -0
- package/dist/utils/shell-executor.js +73 -0
- package/dist/utils/shell-executor.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 +102 -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/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 +280 -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 +62 -0
- package/dist/utils/websearch/hook-env.js.map +1 -0
- package/dist/utils/websearch/hook-installer.d.ts +30 -0
- package/dist/utils/websearch/hook-installer.d.ts.map +1 -0
- package/dist/utils/websearch/hook-installer.js +148 -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 +17 -0
- package/dist/utils/websearch/index.d.ts.map +1 -0
- package/dist/utils/websearch/index.js +51 -0
- package/dist/utils/websearch/index.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 +20 -0
- package/dist/utils/websearch/profile-hook-injector.d.ts.map +1 -0
- package/dist/utils/websearch/profile-hook-injector.js +250 -0
- package/dist/utils/websearch/profile-hook-injector.js.map +1 -0
- package/dist/utils/websearch/status.d.ts +36 -0
- package/dist/utils/websearch/status.d.ts.map +1 -0
- package/dist/utils/websearch/status.js +192 -0
- package/dist/utils/websearch/status.js.map +1 -0
- package/dist/utils/websearch/types.d.ts +85 -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 +31 -0
- package/dist/utils/websearch-manager.d.ts.map +1 -0
- package/dist/utils/websearch-manager.js +72 -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 +23 -0
- package/dist/web-server/health/cliproxy-checks.d.ts.map +1 -0
- package/dist/web-server/health/cliproxy-checks.js +171 -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 +212 -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 +53 -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 +162 -0
- package/dist/web-server/health-service.js.map +1 -0
- package/dist/web-server/index.d.ts +25 -0
- package/dist/web-server/index.d.ts.map +1 -0
- package/dist/web-server/index.js +118 -0
- package/dist/web-server/index.js.map +1 -0
- package/dist/web-server/jsonl-parser.d.ts +68 -0
- package/dist/web-server/jsonl-parser.d.ts.map +1 -0
- package/dist/web-server/jsonl-parser.js +214 -0
- package/dist/web-server/jsonl-parser.js.map +1 -0
- package/dist/web-server/middleware/auth-middleware.d.ts +27 -0
- package/dist/web-server/middleware/auth-middleware.d.ts.map +1 -0
- package/dist/web-server/middleware/auth-middleware.js +116 -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 +669 -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-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 +274 -0
- package/dist/web-server/routes/account-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 +108 -0
- package/dist/web-server/routes/auth-routes.js.map +1 -0
- package/dist/web-server/routes/cliproxy-auth-routes.d.ts +3 -0
- package/dist/web-server/routes/cliproxy-auth-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-auth-routes.js +610 -0
- package/dist/web-server/routes/cliproxy-auth-routes.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes.d.ts +6 -0
- package/dist/web-server/routes/cliproxy-stats-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes.js +681 -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 +157 -0
- package/dist/web-server/routes/cliproxy-sync-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 +130 -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 +195 -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 +122 -0
- package/dist/web-server/routes/copilot-settings-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/index.d.ts +8 -0
- package/dist/web-server/routes/index.d.ts.map +1 -0
- package/dist/web-server/routes/index.js +62 -0
- package/dist/web-server/routes/index.js.map +1 -0
- package/dist/web-server/routes/misc-routes.d.ts +6 -0
- package/dist/web-server/routes/misc-routes.d.ts.map +1 -0
- package/dist/web-server/routes/misc-routes.js +396 -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 +286 -0
- package/dist/web-server/routes/persist-routes.js.map +1 -0
- package/dist/web-server/routes/profile-routes.d.ts +9 -0
- package/dist/web-server/routes/profile-routes.d.ts.map +1 -0
- package/dist/web-server/routes/profile-routes.js +116 -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 +146 -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 +154 -0
- package/dist/web-server/routes/proxy-routes.js.map +1 -0
- package/dist/web-server/routes/route-helpers.d.ts +50 -0
- package/dist/web-server/routes/route-helpers.d.ts.map +1 -0
- package/dist/web-server/routes/route-helpers.js +179 -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 +413 -0
- package/dist/web-server/routes/settings-routes.js.map +1 -0
- package/dist/web-server/routes/variant-routes.d.ts +8 -0
- package/dist/web-server/routes/variant-routes.d.ts.map +1 -0
- package/dist/web-server/routes/variant-routes.js +119 -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 +130 -0
- package/dist/web-server/routes/websearch-routes.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 +168 -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 +54 -0
- package/dist/web-server/usage/aggregator.d.ts.map +1 -0
- package/dist/web-server/usage/aggregator.js +470 -0
- package/dist/web-server/usage/aggregator.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 +391 -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 +162 -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 +524 -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 +119 -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 +56 -0
- package/lib/error-codes.sh +63 -0
- package/lib/hooks/block-websearch.cjs +75 -0
- package/lib/hooks/image-analyzer-transformer.cjs +880 -0
- package/lib/hooks/websearch-transformer.cjs +632 -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 +133 -0
- package/scripts/add-shebang.js +39 -0
- package/scripts/bump-version.sh +153 -0
- package/scripts/check-executables.js +18 -0
- package/scripts/clean-dist.js +46 -0
- package/scripts/code-reviewer.ts +217 -0
- package/scripts/completion/README.md +308 -0
- package/scripts/completion/ccs.bash +176 -0
- package/scripts/completion/ccs.fish +248 -0
- package/scripts/completion/ccs.ps1 +394 -0
- package/scripts/completion/ccs.zsh +308 -0
- package/scripts/dev-install.sh +108 -0
- package/scripts/dev-release.sh +123 -0
- package/scripts/dev-symlink.sh +115 -0
- package/scripts/get-version.sh +16 -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,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Continue last CCS delegation session [AUTO ENHANCE]
|
|
3
|
+
argument-hint: [follow-up instruction]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Activate `ccs-delegation` skill. The skill contains all execution logic.
|
|
7
|
+
|
|
8
|
+
Task: Detect last-used profile from `~/.ccs/delegation-sessions.json`, parse `$ARGUMENTS`, enhance with previous context, execute continuation via CCS CLI.
|
|
9
|
+
|
|
10
|
+
**Examples:**
|
|
11
|
+
```
|
|
12
|
+
/ccs:continue "also update the examples section" # Use last profile
|
|
13
|
+
/ccs:continue --glm "add unit tests" # Switch profiles
|
|
14
|
+
/ccs:continue "/commit with message" # Nested slash command
|
|
15
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Delegate task with intelligent profile selection [AUTO ENHANCE]
|
|
3
|
+
argument-hint: [task description]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Activate `ccs-delegation` skill. The skill contains all execution logic.
|
|
7
|
+
|
|
8
|
+
Task: Parse `$ARGUMENTS`, select optimal profile from `~/.ccs/config.json`, enhance prompt, execute delegation via CCS CLI.
|
|
9
|
+
|
|
10
|
+
**Examples:**
|
|
11
|
+
```
|
|
12
|
+
/ccs "refactor auth.js to use async/await" # Simple task
|
|
13
|
+
/ccs "analyze entire architecture" # Long-context task
|
|
14
|
+
/ccs "think about caching strategy" # Reasoning task
|
|
15
|
+
/ccs --glm "add tests for UserService" # Force specific profile
|
|
16
|
+
/ccs "/cook create landing page" # Nested slash command
|
|
17
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# CCS Auto-Delegation
|
|
2
|
+
|
|
3
|
+
Activate `ccs-delegation` skill for automatic delegation of eligible tasks.
|
|
4
|
+
|
|
5
|
+
**Commands:**
|
|
6
|
+
- `/ccs "task"` - Auto-select best profile (glm/kimi/custom)
|
|
7
|
+
- `/ccs:continue "follow-up"` - Continue last session
|
|
8
|
+
- `/ccs --glm "task"` - Force specific profile
|
|
9
|
+
|
|
10
|
+
**Auto-delegates:** typo fixes, test additions, refactoring, JSDoc, docs updates
|
|
11
|
+
**Override:** Say "don't delegate" to bypass automation
|
|
12
|
+
|
|
13
|
+
**Examples:**
|
|
14
|
+
- "use ccs to fix typos in README" → Auto-selects glm
|
|
15
|
+
- "use ccs to analyze architecture" → Auto-selects kimi
|
|
16
|
+
- "use ccs --glm to add tests" → Forces glm
|
|
17
|
+
- "use ccs:continue to commit" → Continues last session
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccs-delegation
|
|
3
|
+
description: >-
|
|
4
|
+
Auto-activate CCS CLI delegation for deterministic tasks. Parses user input,
|
|
5
|
+
auto-selects optimal profile (glm/kimi/custom) from ~/.ccs/config.json,
|
|
6
|
+
enhances prompts with context, executes via `ccs {profile} -p "task"` or
|
|
7
|
+
`ccs {profile}:continue`, and reports results. Triggers on "use ccs [task]"
|
|
8
|
+
patterns, typo/test/refactor keywords. Excludes complex architecture,
|
|
9
|
+
security-critical code, performance optimization, breaking changes.
|
|
10
|
+
version: 3.0.0
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# CCS Delegation
|
|
14
|
+
|
|
15
|
+
Delegate deterministic tasks to cost-optimized models via CCS CLI.
|
|
16
|
+
|
|
17
|
+
## Core Concept
|
|
18
|
+
|
|
19
|
+
Execute tasks via alternative models using:
|
|
20
|
+
- **Initial delegation**: `ccs {profile} -p "task"`
|
|
21
|
+
- **Session continuation**: `ccs {profile}:continue -p "follow-up"`
|
|
22
|
+
|
|
23
|
+
**Profile Selection:**
|
|
24
|
+
- Auto-select from `~/.ccs/config.json` via task analysis
|
|
25
|
+
- Profiles: glm (cost-optimized), kimi (long-context/reasoning), custom profiles
|
|
26
|
+
- Override: `--{profile}` flag forces specific profile
|
|
27
|
+
|
|
28
|
+
## User Invocation Patterns
|
|
29
|
+
|
|
30
|
+
Users trigger delegation naturally:
|
|
31
|
+
- "use ccs [task]" - Auto-select best profile
|
|
32
|
+
- "use ccs --glm [task]" - Force GLM profile
|
|
33
|
+
- "use ccs --kimi [task]" - Force Kimi profile
|
|
34
|
+
- "use ccs:continue [task]" - Continue last session
|
|
35
|
+
|
|
36
|
+
**Examples:**
|
|
37
|
+
- "use ccs to fix typos in README.md"
|
|
38
|
+
- "use ccs to analyze the entire architecture"
|
|
39
|
+
- "use ccs --glm to add unit tests"
|
|
40
|
+
- "use ccs:continue to commit the changes"
|
|
41
|
+
|
|
42
|
+
## Agent Response Protocol
|
|
43
|
+
|
|
44
|
+
**For `/ccs [task]`:**
|
|
45
|
+
|
|
46
|
+
1. **Parse override flag**
|
|
47
|
+
- Scan task for pattern: `--(\w+)`
|
|
48
|
+
- If match: `profile = match[1]`, remove flag from task, skip to step 5
|
|
49
|
+
- If no match: continue to step 2
|
|
50
|
+
|
|
51
|
+
2. **Discover profiles**
|
|
52
|
+
- Read `~/.ccs/config.json` using Read tool
|
|
53
|
+
- Extract `Object.keys(config.profiles)` → `availableProfiles[]`
|
|
54
|
+
- If file missing → Error: "CCS not configured. Run: ccs doctor"
|
|
55
|
+
- If empty → Error: "No profiles in config.json"
|
|
56
|
+
|
|
57
|
+
3. **Analyze task requirements**
|
|
58
|
+
- Scan task for keywords:
|
|
59
|
+
- `/(think|analyze|reason|debug|investigate|evaluate)/i` → `needsReasoning = true`
|
|
60
|
+
- `/(architecture|entire|all files|codebase|analyze all)/i` → `needsLongContext = true`
|
|
61
|
+
- `/(typo|test|refactor|update|fix)/i` → `preferCostOptimized = true`
|
|
62
|
+
|
|
63
|
+
4. **Select profile**
|
|
64
|
+
- For each profile in `availableProfiles`: classify by name pattern (see Profile Characteristic Inference table)
|
|
65
|
+
- If `needsReasoning`: filter profiles where `reasoning=true` → prefer kimi
|
|
66
|
+
- Else if `needsLongContext`: filter profiles where `context=long` → prefer kimi
|
|
67
|
+
- Else: filter profiles where `cost=low` → prefer glm
|
|
68
|
+
- `selectedProfile = filteredProfiles[0]`
|
|
69
|
+
- If `filteredProfiles.length === 0`: fallback to `glm` if exists, else first available
|
|
70
|
+
- If no profiles: Error
|
|
71
|
+
|
|
72
|
+
5. **Enhance prompt**
|
|
73
|
+
- If task mentions files: gather context using Read tool
|
|
74
|
+
- Add: file paths, current implementation, expected behavior, success criteria
|
|
75
|
+
- Preserve slash commands at task start (e.g., `/cook`, `/commit`)
|
|
76
|
+
|
|
77
|
+
6. **Execute delegation**
|
|
78
|
+
- Run: `ccs {selectedProfile} -p "$enhancedPrompt"` via Bash tool
|
|
79
|
+
|
|
80
|
+
7. **Report results**
|
|
81
|
+
- Log: "Selected {profile} (reason: {reasoning/long-context/cost-optimized})"
|
|
82
|
+
- Report: Cost (USD), Duration (sec), Session ID, Exit code
|
|
83
|
+
|
|
84
|
+
**For `/ccs:continue [follow-up]`:**
|
|
85
|
+
|
|
86
|
+
1. **Detect profile**
|
|
87
|
+
- Read `~/.ccs/delegation-sessions.json` using Read tool
|
|
88
|
+
- Find most recent session (latest timestamp)
|
|
89
|
+
- Extract profile name from session data
|
|
90
|
+
- If no sessions → Error: "No previous delegation. Use /ccs first"
|
|
91
|
+
|
|
92
|
+
2. **Parse override flag**
|
|
93
|
+
- Scan follow-up for pattern: `--(\w+)`
|
|
94
|
+
- If match: `profile = match[1]`, remove flag from follow-up, log profile switch
|
|
95
|
+
- If no match: use detected profile from step 1
|
|
96
|
+
|
|
97
|
+
3. **Enhance prompt**
|
|
98
|
+
- Review previous work (check what was accomplished)
|
|
99
|
+
- Add: previous context, incomplete tasks, validation criteria
|
|
100
|
+
- Preserve slash commands at start
|
|
101
|
+
|
|
102
|
+
4. **Execute continuation**
|
|
103
|
+
- Run: `ccs {profile}:continue -p "$enhancedPrompt"` via Bash tool
|
|
104
|
+
|
|
105
|
+
5. **Report results**
|
|
106
|
+
- Report: Profile, Session #, Incremental cost, Total cost, Duration, Exit code
|
|
107
|
+
|
|
108
|
+
## Decision Framework
|
|
109
|
+
|
|
110
|
+
**Delegate when:**
|
|
111
|
+
- Simple refactoring, tests, typos, documentation
|
|
112
|
+
- Deterministic, well-defined scope
|
|
113
|
+
- No discussion/decisions needed
|
|
114
|
+
|
|
115
|
+
**Keep in main when:**
|
|
116
|
+
- Architecture/design decisions
|
|
117
|
+
- Security-critical code
|
|
118
|
+
- Complex debugging requiring investigation
|
|
119
|
+
- Performance optimization
|
|
120
|
+
- Breaking changes/migrations
|
|
121
|
+
|
|
122
|
+
## Profile Selection Logic
|
|
123
|
+
|
|
124
|
+
**Task Analysis Keywords** (scan task string with regex):
|
|
125
|
+
|
|
126
|
+
| Pattern | Variable | Example |
|
|
127
|
+
|---------|----------|---------|
|
|
128
|
+
| `/(think\|analyze\|reason\|debug\|investigate\|evaluate)/i` | `needsReasoning = true` | "think about caching" |
|
|
129
|
+
| `/(architecture\|entire\|all files\|codebase\|analyze all)/i` | `needsLongContext = true` | "analyze all files" |
|
|
130
|
+
| `/(typo\|test\|refactor\|update\|fix)/i` | `preferCostOptimized = true` | "fix typo in README" |
|
|
131
|
+
|
|
132
|
+
**Profile Characteristic Inference** (classify by name pattern):
|
|
133
|
+
|
|
134
|
+
| Profile Pattern | Cost | Context | Reasoning |
|
|
135
|
+
|----------------|------|---------|-----------|
|
|
136
|
+
| `/^glm/i` | low | standard | false |
|
|
137
|
+
| `/^kimi/i` | medium | long | true |
|
|
138
|
+
| `/^claude/i` | high | standard | false |
|
|
139
|
+
| others | low | standard | false |
|
|
140
|
+
|
|
141
|
+
**Selection Algorithm** (apply filters sequentially):
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
profiles = Object.keys(config.profiles)
|
|
145
|
+
classified = profiles.map(p => ({name: p, ...inferCharacteristics(p)}))
|
|
146
|
+
|
|
147
|
+
if (needsReasoning):
|
|
148
|
+
filtered = classified.filter(p => p.reasoning === true).sort(['kimi'])
|
|
149
|
+
else if (needsLongContext):
|
|
150
|
+
filtered = classified.filter(p => p.context === 'long').sort(['kimi'])
|
|
151
|
+
else:
|
|
152
|
+
filtered = classified.filter(p => p.cost === 'low').sort(['glm', ...])
|
|
153
|
+
|
|
154
|
+
selected = filtered[0] || profiles.find(p => p === 'glm') || profiles[0]
|
|
155
|
+
if (!selected): throw Error("No profiles configured")
|
|
156
|
+
|
|
157
|
+
log("Selected {selected} (reason: {reasoning|long-context|cost-optimized})")
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Override Logic**:
|
|
161
|
+
- Parse task for `/--(\w+)/`. If match: `profile = match[1]`, remove from task, skip selection
|
|
162
|
+
|
|
163
|
+
## Example Delegation Tasks
|
|
164
|
+
|
|
165
|
+
**Good candidates:**
|
|
166
|
+
- "/ccs add unit tests for UserService using Jest"
|
|
167
|
+
→ Auto-selects: glm (simple task)
|
|
168
|
+
- "/ccs analyze entire architecture in src/"
|
|
169
|
+
→ Auto-selects: kimi (long-context)
|
|
170
|
+
- "/ccs think about the best database schema design"
|
|
171
|
+
→ Auto-selects: kimi (reasoning)
|
|
172
|
+
- "/ccs --glm refactor parseConfig to use destructuring"
|
|
173
|
+
→ Forces: glm (override)
|
|
174
|
+
|
|
175
|
+
**Bad candidates (keep in main):**
|
|
176
|
+
- "implement OAuth" (too complex, needs design)
|
|
177
|
+
- "improve performance" (requires profiling)
|
|
178
|
+
- "fix the bug" (needs investigation)
|
|
179
|
+
|
|
180
|
+
## Execution
|
|
181
|
+
|
|
182
|
+
**Commands:**
|
|
183
|
+
- `/ccs "task"` - Intelligent delegation (auto-select profile)
|
|
184
|
+
- `/ccs --{profile} "task"` - Force specific profile
|
|
185
|
+
- `/ccs:continue "follow-up"` - Continue last session (auto-detect profile)
|
|
186
|
+
- `/ccs:continue --{profile} "follow-up"` - Continue with profile switch
|
|
187
|
+
|
|
188
|
+
**Agent via Bash:**
|
|
189
|
+
- Auto: `ccs {auto-selected} -p "task"`
|
|
190
|
+
- Continue: `ccs {detected}:continue -p "follow-up"`
|
|
191
|
+
|
|
192
|
+
## References
|
|
193
|
+
|
|
194
|
+
Template: `CLAUDE.md.template` - Copy to user's CLAUDE.md for auto-delegation config
|
|
195
|
+
Troubleshooting: `references/troubleshooting.md`
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# Troubleshooting
|
|
2
|
+
|
|
3
|
+
AI-oriented error resolution guide for CCS delegation issues.
|
|
4
|
+
|
|
5
|
+
**Structure**: Quick Reference → Error Catalog → Common Resolutions → Diagnostics → Recovery
|
|
6
|
+
|
|
7
|
+
**Cross-references**:
|
|
8
|
+
- Technical details: `headless-workflow.md`
|
|
9
|
+
- Decision framework: `delegation-guidelines.md`
|
|
10
|
+
|
|
11
|
+
## Quick Reference
|
|
12
|
+
|
|
13
|
+
**Profile/Config Issues:**
|
|
14
|
+
- E-001: "Profile 'X' not configured" → `ccs doctor`
|
|
15
|
+
- E-002: "Invalid API key" (401) → Check `~/.ccs/{profile}.settings.json`
|
|
16
|
+
- E-003: "Settings file not found" → `ccs doctor` to configure
|
|
17
|
+
- E-004: JSON parse error (settings) → Validate with `jq . ~/.ccs/{profile}.settings.json`
|
|
18
|
+
|
|
19
|
+
**Delegation Issues:**
|
|
20
|
+
- D-001: "No previous session" → Run `ccs {profile} -p "task"` first
|
|
21
|
+
- D-002: "Missing prompt" → Syntax: `ccs {profile} -p "prompt"`
|
|
22
|
+
- D-003: "No profile specified" → Syntax: `ccs <profile> -p "task"`
|
|
23
|
+
- D-005: File not found → Verify CWD (delegation runs in current directory)
|
|
24
|
+
|
|
25
|
+
**Session Issues:**
|
|
26
|
+
- S-001: Session corrupted → `rm ~/.ccs/delegation-sessions.json`
|
|
27
|
+
- S-002: Session expired → Start new: `ccs {profile} -p "task"`
|
|
28
|
+
|
|
29
|
+
**Network Issues:**
|
|
30
|
+
- N-001: Connection timeout → Check internet/endpoint → Retry
|
|
31
|
+
- N-002: Rate limit (429) → Wait 60s → Retry
|
|
32
|
+
|
|
33
|
+
**CLI Issues:**
|
|
34
|
+
- C-001: Claude CLI not found → Install from code.claude.com
|
|
35
|
+
- C-002: Outdated version → Update: `ccs sync` or `ccs update`
|
|
36
|
+
|
|
37
|
+
**See Error Catalog below for detailed troubleshooting.**
|
|
38
|
+
|
|
39
|
+
## Error Catalog
|
|
40
|
+
|
|
41
|
+
### Environment/Config Errors
|
|
42
|
+
|
|
43
|
+
| Code | Pattern | Root Cause | Resolution |
|
|
44
|
+
|------|---------|------------|------------|
|
|
45
|
+
| E-001 | Profile 'X' not configured | Missing settings file | `ccs doctor` → configure manually |
|
|
46
|
+
| E-002 | Invalid API key (401) | Token expired/invalid | Verify token in settings.json → regenerate if needed |
|
|
47
|
+
| E-003 | Settings file not found | File doesn't exist | `ccs doctor` → shows missing profiles |
|
|
48
|
+
| E-004 | JSON parse error (settings) | Malformed JSON | Validate: `jq . ~/.ccs/{profile}.settings.json` |
|
|
49
|
+
|
|
50
|
+
**Examples:**
|
|
51
|
+
```bash
|
|
52
|
+
[X] ccs glm -p "task" # E-001: Profile not configured
|
|
53
|
+
[OK] ccs doctor # Shows: glm.settings.json missing
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Delegation Execution Errors
|
|
57
|
+
|
|
58
|
+
| Code | Pattern | Root Cause | Resolution |
|
|
59
|
+
|------|---------|------------|------------|
|
|
60
|
+
| D-001 | No previous session | Using :continue without init | Run `ccs {profile} -p "init"` first |
|
|
61
|
+
| D-002 | Missing prompt after -p | No argument provided | Quote prompt: `ccs {profile} -p "text"` |
|
|
62
|
+
| D-003 | No profile specified | Missing profile name | Syntax: `ccs <profile> -p "task"` |
|
|
63
|
+
| D-004 | Invalid profile name | Profile doesn't exist | Check: `ccs doctor` for available profiles |
|
|
64
|
+
| D-005 | File not found | CWD mismatch | Verify: delegation runs in current directory |
|
|
65
|
+
|
|
66
|
+
**Examples:**
|
|
67
|
+
```bash
|
|
68
|
+
[X] ccs glm:continue -p "task" # D-001: No session
|
|
69
|
+
[OK] ccs glm -p "task" # Creates session
|
|
70
|
+
[OK] ccs glm:continue -p "more" # Uses session
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Session Management Errors
|
|
74
|
+
|
|
75
|
+
| Code | Pattern | Root Cause | Resolution |
|
|
76
|
+
|------|---------|------------|------------|
|
|
77
|
+
| S-001 | Session file corrupted | Malformed JSON | `rm ~/.ccs/delegation-sessions.json` → fresh start |
|
|
78
|
+
| S-002 | Session expired | >30 days old | Start new: `ccs {profile} -p "task"` |
|
|
79
|
+
| S-003 | Session ID mismatch | ID not found | Check: `jq '.{profile}' ~/.ccs/delegation-sessions.json` |
|
|
80
|
+
| S-004 | Cost aggregation error | Calculation failure | Reset session or ignore (doesn't affect execution) |
|
|
81
|
+
|
|
82
|
+
### Network/API Errors
|
|
83
|
+
|
|
84
|
+
| Code | Pattern | Root Cause | Resolution |
|
|
85
|
+
|------|---------|------------|------------|
|
|
86
|
+
| N-001 | Connection timeout | Network/API unreachable | Check: internet, endpoint, firewall → Retry |
|
|
87
|
+
| N-002 | Rate limiting (429) | Too many requests | Wait 60s → Retry |
|
|
88
|
+
| N-003 | API endpoint unreachable | Wrong URL in settings | Verify ANTHROPIC_BASE_URL in settings.json |
|
|
89
|
+
| N-004 | SSL/TLS error | Certificate issue | Check system certs, firewall SSL inspection |
|
|
90
|
+
|
|
91
|
+
### File Operation Errors
|
|
92
|
+
|
|
93
|
+
| Code | Pattern | Root Cause | Resolution |
|
|
94
|
+
|------|---------|------------|------------|
|
|
95
|
+
| F-001 | File not found during delegation | Path doesn't exist in CWD | Verify: `ls <file>` from current directory |
|
|
96
|
+
| F-002 | Permission denied (write) | Insufficient permissions | Check: `ls -la` directory permissions |
|
|
97
|
+
| F-003 | Relative path failure | Path resolution issue | Use absolute paths in prompts if needed |
|
|
98
|
+
| F-004 | Workspace confusion (monorepo) | Wrong package targeted | Specify workspace: "in packages/{name}, {task}" |
|
|
99
|
+
|
|
100
|
+
**Example:**
|
|
101
|
+
```bash
|
|
102
|
+
# Delegation runs in CWD where command executed
|
|
103
|
+
ccs glm -p "refactor src/auth.js"
|
|
104
|
+
# Verify: ls src/auth.js # Must exist in current directory
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Claude CLI Compatibility Errors
|
|
108
|
+
|
|
109
|
+
| Code | Pattern | Root Cause | Resolution |
|
|
110
|
+
|------|---------|------------|------------|
|
|
111
|
+
| C-001 | Claude CLI not found | Not installed | Install from code.claude.com |
|
|
112
|
+
| C-002 | Outdated CLI version | Old version | Update: `ccs sync` or `ccs update` |
|
|
113
|
+
| C-003 | stream-json not supported | Version < required | Upgrade CLI: check `claude --version` |
|
|
114
|
+
| C-004 | Permission mode unsupported | Old CLI version | Upgrade to support --permission-mode |
|
|
115
|
+
|
|
116
|
+
**Check version:**
|
|
117
|
+
```bash
|
|
118
|
+
claude --version # Need recent version with --output-format stream-json
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Timeout/Resource Errors
|
|
122
|
+
|
|
123
|
+
| Code | Pattern | Root Cause | Resolution |
|
|
124
|
+
|------|---------|------------|------------|
|
|
125
|
+
| T-001 | Execution timeout (10 min) | Task too complex/slow | Simplify task or split into smaller tasks |
|
|
126
|
+
| T-002 | Memory limit exceeded | Large file processing | Reduce scope, process in batches |
|
|
127
|
+
| T-003 | Process killed (SIGTERM) | External termination | Check system resources, retry |
|
|
128
|
+
|
|
129
|
+
### Output Format Errors
|
|
130
|
+
|
|
131
|
+
| Code | Pattern | Root Cause | Resolution |
|
|
132
|
+
|------|---------|------------|------------|
|
|
133
|
+
| O-001 | JSON parse error (exit 1) | Non-stream-JSON output | Verify: `claude -p "test" --output-format stream-json` |
|
|
134
|
+
| O-002 | Malformed JSONL | Corrupted stream | Enable debug: `export CCS_DEBUG=1` → check logs |
|
|
135
|
+
| O-003 | Missing session_id | Incomplete response | Check CLI version, retry delegation |
|
|
136
|
+
| O-004 | Type mismatch in response | Unexpected data type | Enable debug mode, report issue |
|
|
137
|
+
|
|
138
|
+
## Common Resolution Patterns
|
|
139
|
+
|
|
140
|
+
**Profile Validation:**
|
|
141
|
+
```bash
|
|
142
|
+
ccs doctor # Check all profiles
|
|
143
|
+
cat ~/.ccs/{profile}.settings.json # Verify settings
|
|
144
|
+
ccs {profile} "test" 2>&1 # Test execution
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Session Management:**
|
|
148
|
+
```bash
|
|
149
|
+
jq . ~/.ccs/delegation-sessions.json # View all sessions
|
|
150
|
+
jq '.{profile}' ~/.ccs/delegation-sessions.json # Check specific profile
|
|
151
|
+
rm ~/.ccs/delegation-sessions.json # Reset (loses all sessions)
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Debug Mode:**
|
|
155
|
+
```bash
|
|
156
|
+
export CCS_DEBUG=1
|
|
157
|
+
ccs {profile} -p "task" 2>&1 | tee debug.log # Capture full output
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Diagnostic Toolkit
|
|
161
|
+
|
|
162
|
+
**Profile diagnostics:**
|
|
163
|
+
````bash
|
|
164
|
+
ccs doctor # All profiles status
|
|
165
|
+
ccs --version # CCS version + delegation status
|
|
166
|
+
claude --version # CLI version (check stream-json support)
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Session inspection:**
|
|
170
|
+
```bash
|
|
171
|
+
jq . ~/.ccs/delegation-sessions.json # All sessions
|
|
172
|
+
jq '.glm.sessionId' ~/.ccs/delegation-sessions.json # GLM session ID
|
|
173
|
+
jq '.glm.totalCost' ~/.ccs/delegation-sessions.json # Total cost
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Test delegation flow:**
|
|
177
|
+
```bash
|
|
178
|
+
# 1. Simple task
|
|
179
|
+
ccs glm -p "create test.txt with 'hello'"
|
|
180
|
+
|
|
181
|
+
# 2. Verify session
|
|
182
|
+
jq '.glm.sessionId' ~/.ccs/delegation-sessions.json
|
|
183
|
+
|
|
184
|
+
# 3. Continue
|
|
185
|
+
ccs glm:continue -p "append 'world' to test.txt"
|
|
186
|
+
|
|
187
|
+
# 4. Check aggregation
|
|
188
|
+
jq '.glm.turns' ~/.ccs/delegation-sessions.json
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Emergency Recovery
|
|
192
|
+
|
|
193
|
+
**Reset session state:**
|
|
194
|
+
```bash
|
|
195
|
+
rm ~/.ccs/delegation-sessions.json # Fresh start (loses all sessions)
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**Interactive mode (no -p flag):**
|
|
199
|
+
```bash
|
|
200
|
+
ccs {profile} # Opens interactive session
|
|
201
|
+
```
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 CCS Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|