@kaitranntt/ccs 8.4.0 → 8.5.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/config/base-claude.settings.json +1 -1
- package/config/base-glm.settings.json +4 -4
- package/config/base-glmt.settings.json +4 -4
- package/config/base-km.settings.json +4 -4
- package/config/base-mm.settings.json +4 -4
- package/dist/api/services/cliproxy-profile-bridge.d.ts.map +1 -1
- package/dist/api/services/cliproxy-profile-bridge.js +20 -9
- package/dist/api/services/cliproxy-profile-bridge.js.map +1 -1
- package/dist/api/services/profile-lifecycle-validation.d.ts.map +1 -1
- package/dist/api/services/profile-lifecycle-validation.js +2 -0
- package/dist/api/services/profile-lifecycle-validation.js.map +1 -1
- package/dist/auth/commands/backup-command.d.ts.map +1 -1
- package/dist/auth/commands/backup-command.js +0 -1
- package/dist/auth/commands/backup-command.js.map +1 -1
- package/dist/auth/commands/create-command.d.ts.map +1 -1
- package/dist/auth/commands/create-command.js +4 -14
- package/dist/auth/commands/create-command.js.map +1 -1
- package/dist/auth/commands/default-command.d.ts.map +1 -1
- package/dist/auth/commands/default-command.js +0 -1
- package/dist/auth/commands/default-command.js.map +1 -1
- package/dist/auth/commands/index.d.ts +2 -1
- package/dist/auth/commands/index.d.ts.map +1 -1
- package/dist/auth/commands/index.js +0 -1
- package/dist/auth/commands/index.js.map +1 -1
- package/dist/auth/commands/remove-command.d.ts.map +1 -1
- package/dist/auth/commands/remove-command.js +0 -2
- package/dist/auth/commands/remove-command.js.map +1 -1
- package/dist/auth/commands/resources-command.d.ts.map +1 -1
- package/dist/auth/commands/resources-command.js +0 -1
- package/dist/auth/commands/resources-command.js.map +1 -1
- package/dist/auth/commands/show-command.d.ts.map +1 -1
- package/dist/auth/commands/show-command.js +0 -1
- package/dist/auth/commands/show-command.js.map +1 -1
- package/dist/auth/commands/types.d.ts.map +1 -1
- package/dist/auth/commands/types.js +0 -1
- package/dist/auth/commands/types.js.map +1 -1
- package/dist/auth/profile-registry.d.ts +3 -1
- package/dist/auth/profile-registry.d.ts.map +1 -1
- package/dist/auth/profile-registry.js +21 -15
- package/dist/auth/profile-registry.js.map +1 -1
- package/dist/ccs.js +27 -21
- package/dist/ccs.js.map +1 -1
- package/dist/cliproxy/accounts/account-safety.d.ts.map +1 -1
- package/dist/cliproxy/accounts/account-safety.js +56 -56
- package/dist/cliproxy/accounts/account-safety.js.map +1 -1
- package/dist/cliproxy/auth/antigravity-responsibility.d.ts.map +1 -1
- package/dist/cliproxy/auth/antigravity-responsibility.js +15 -15
- package/dist/cliproxy/auth/antigravity-responsibility.js.map +1 -1
- package/dist/cliproxy/auth/auth-token-manager.d.ts.map +1 -1
- package/dist/cliproxy/auth/auth-token-manager.js +2 -1
- package/dist/cliproxy/auth/auth-token-manager.js.map +1 -1
- package/dist/cliproxy/auth/auth-types.d.ts.map +1 -1
- package/dist/cliproxy/auth/auth-types.js +3 -2
- package/dist/cliproxy/auth/auth-types.js.map +1 -1
- package/dist/cliproxy/auth/oauth-handler.d.ts.map +1 -1
- package/dist/cliproxy/auth/oauth-handler.js +16 -5
- package/dist/cliproxy/auth/oauth-handler.js.map +1 -1
- package/dist/cliproxy/auth/provider-refreshers/index.d.ts +2 -1
- package/dist/cliproxy/auth/provider-refreshers/index.d.ts.map +1 -1
- package/dist/cliproxy/auth/provider-refreshers/index.js +4 -2
- package/dist/cliproxy/auth/provider-refreshers/index.js.map +1 -1
- package/dist/cliproxy/auth/token-manager.d.ts +2 -1
- package/dist/cliproxy/auth/token-manager.d.ts.map +1 -1
- package/dist/cliproxy/auth/token-manager.js +2 -1
- package/dist/cliproxy/auth/token-manager.js.map +1 -1
- package/dist/cliproxy/binary/lifecycle.d.ts.map +1 -1
- package/dist/cliproxy/binary/lifecycle.js +3 -2
- package/dist/cliproxy/binary/lifecycle.js.map +1 -1
- package/dist/cliproxy/config/env-builder.d.ts +19 -2
- package/dist/cliproxy/config/env-builder.d.ts.map +1 -1
- package/dist/cliproxy/config/env-builder.js +58 -9
- package/dist/cliproxy/config/env-builder.js.map +1 -1
- package/dist/cliproxy/config/model-config.d.ts.map +1 -1
- package/dist/cliproxy/config/model-config.js +32 -32
- package/dist/cliproxy/config/model-config.js.map +1 -1
- package/dist/cliproxy/executor/arg-parser.d.ts.map +1 -1
- package/dist/cliproxy/executor/arg-parser.js +26 -26
- package/dist/cliproxy/executor/arg-parser.js.map +1 -1
- package/dist/cliproxy/executor/auth-coordinator.d.ts.map +1 -1
- package/dist/cliproxy/executor/auth-coordinator.js +15 -14
- package/dist/cliproxy/executor/auth-coordinator.js.map +1 -1
- package/dist/cliproxy/executor/browser-launch-setup.d.ts.map +1 -1
- package/dist/cliproxy/executor/browser-launch-setup.js +6 -2
- package/dist/cliproxy/executor/browser-launch-setup.js.map +1 -1
- package/dist/cliproxy/executor/index.d.ts.map +1 -1
- package/dist/cliproxy/executor/index.js +27 -17
- package/dist/cliproxy/executor/index.js.map +1 -1
- package/dist/cliproxy/executor/lifecycle-manager.d.ts.map +1 -1
- package/dist/cliproxy/executor/lifecycle-manager.js +18 -16
- package/dist/cliproxy/executor/lifecycle-manager.js.map +1 -1
- package/dist/cliproxy/executor/model-warnings.d.ts.map +1 -1
- package/dist/cliproxy/executor/model-warnings.js +24 -13
- package/dist/cliproxy/executor/model-warnings.js.map +1 -1
- package/dist/cliproxy/executor/retry-handler.d.ts.map +1 -1
- package/dist/cliproxy/executor/retry-handler.js +13 -11
- package/dist/cliproxy/executor/retry-handler.js.map +1 -1
- package/dist/cliproxy/executor/session-bridge.d.ts.map +1 -1
- package/dist/cliproxy/executor/session-bridge.js +18 -10
- package/dist/cliproxy/executor/session-bridge.js.map +1 -1
- package/dist/cliproxy/management/remote-token-uploader.d.ts.map +1 -1
- package/dist/cliproxy/management/remote-token-uploader.js +11 -11
- package/dist/cliproxy/management/remote-token-uploader.js.map +1 -1
- package/dist/cliproxy/provider-capabilities.d.ts +6 -0
- package/dist/cliproxy/provider-capabilities.d.ts.map +1 -1
- package/dist/cliproxy/provider-capabilities.js +28 -3
- package/dist/cliproxy/provider-capabilities.js.map +1 -1
- package/dist/cliproxy/proxy/https-tunnel-proxy.d.ts +5 -1
- package/dist/cliproxy/proxy/https-tunnel-proxy.d.ts.map +1 -1
- package/dist/cliproxy/proxy/https-tunnel-proxy.js +22 -10
- package/dist/cliproxy/proxy/https-tunnel-proxy.js.map +1 -1
- package/dist/cliproxy/proxy/tool-sanitization-proxy.d.ts +0 -12
- package/dist/cliproxy/proxy/tool-sanitization-proxy.d.ts.map +1 -1
- package/dist/cliproxy/proxy/tool-sanitization-proxy.js +42 -72
- package/dist/cliproxy/proxy/tool-sanitization-proxy.js.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher/account-quota-fetcher.d.ts +21 -0
- package/dist/cliproxy/quota/quota-fetcher/account-quota-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/account-quota-fetcher.js +154 -0
- package/dist/cliproxy/quota/quota-fetcher/account-quota-fetcher.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/all-accounts-fetcher.d.ts +35 -0
- package/dist/cliproxy/quota/quota-fetcher/all-accounts-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/all-accounts-fetcher.js +98 -0
- package/dist/cliproxy/quota/quota-fetcher/all-accounts-fetcher.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/auth-file-reader.d.ts +22 -0
- package/dist/cliproxy/quota/quota-fetcher/auth-file-reader.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/auth-file-reader.js +111 -0
- package/dist/cliproxy/quota/quota-fetcher/auth-file-reader.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/available-models-fetcher.d.ts +17 -0
- package/dist/cliproxy/quota/quota-fetcher/available-models-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/available-models-fetcher.js +85 -0
- package/dist/cliproxy/quota/quota-fetcher/available-models-fetcher.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/constants.d.ts +25 -0
- package/dist/cliproxy/quota/quota-fetcher/constants.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/constants.js +31 -0
- package/dist/cliproxy/quota/quota-fetcher/constants.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/http-client.d.ts +29 -0
- package/dist/cliproxy/quota/quota-fetcher/http-client.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/http-client.js +199 -0
- package/dist/cliproxy/quota/quota-fetcher/http-client.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/project-lookup.d.ts +16 -0
- package/dist/cliproxy/quota/quota-fetcher/project-lookup.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/project-lookup.js +89 -0
- package/dist/cliproxy/quota/quota-fetcher/project-lookup.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/status-classifier.d.ts +29 -0
- package/dist/cliproxy/quota/quota-fetcher/status-classifier.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/status-classifier.js +168 -0
- package/dist/cliproxy/quota/quota-fetcher/status-classifier.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/types.d.ts +165 -0
- package/dist/cliproxy/quota/quota-fetcher/types.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher/types.js +9 -0
- package/dist/cliproxy/quota/quota-fetcher/types.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-claude.d.ts.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher-claude.js +14 -3
- package/dist/cliproxy/quota/quota-fetcher-claude.js.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher-codex.d.ts.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher-codex.js +36 -9
- package/dist/cliproxy/quota/quota-fetcher-codex.js.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/auth-file-discovery.d.ts +26 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/auth-file-discovery.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/auth-file-discovery.js +132 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/auth-file-discovery.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/bucket-building.d.ts +23 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/bucket-building.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/bucket-building.js +54 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/bucket-building.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/constants.d.ts +26 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/constants.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/constants.js +29 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/constants.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/error-parsing.d.ts +61 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/error-parsing.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/error-parsing.js +259 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/error-parsing.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/index.d.ts +20 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/index.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/index.js +38 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/index.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/managed-request.d.ts +82 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/managed-request.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/managed-request.js +263 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/managed-request.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/quota-fetcher.d.ts +46 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/quota-fetcher.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/quota-fetcher.js +188 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/quota-fetcher.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/shared-utils.d.ts +35 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/shared-utils.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/shared-utils.js +65 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/shared-utils.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/supplementary-metadata.d.ts +37 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/supplementary-metadata.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/supplementary-metadata.js +117 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/supplementary-metadata.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/token-parsing.d.ts +31 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/token-parsing.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/token-parsing.js +77 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/token-parsing.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/types.d.ts +114 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/types.d.ts.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/types.js +10 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli/types.js.map +1 -0
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli.d.ts +13 -58
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli.d.ts.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli.js +20 -819
- package/dist/cliproxy/quota/quota-fetcher-gemini-cli.js.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher-ghcp.d.ts.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher-ghcp.js +19 -4
- package/dist/cliproxy/quota/quota-fetcher-ghcp.js.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher.d.ts +12 -108
- package/dist/cliproxy/quota/quota-fetcher.d.ts.map +1 -1
- package/dist/cliproxy/quota/quota-fetcher.js +23 -766
- package/dist/cliproxy/quota/quota-fetcher.js.map +1 -1
- package/dist/cliproxy/quota/quota-manager.d.ts.map +1 -1
- package/dist/cliproxy/quota/quota-manager.js +7 -3
- package/dist/cliproxy/quota/quota-manager.js.map +1 -1
- package/dist/cliproxy/routing/routing-strategy.d.ts.map +1 -1
- package/dist/cliproxy/routing/routing-strategy.js +11 -3
- package/dist/cliproxy/routing/routing-strategy.js.map +1 -1
- package/dist/commands/api-command/create-command.d.ts.map +1 -1
- package/dist/commands/api-command/create-command.js +17 -8
- package/dist/commands/api-command/create-command.js.map +1 -1
- package/dist/commands/bar/bar-server-probe.d.ts +16 -3
- package/dist/commands/bar/bar-server-probe.d.ts.map +1 -1
- package/dist/commands/bar/bar-server-probe.js +83 -18
- package/dist/commands/bar/bar-server-probe.js.map +1 -1
- package/dist/commands/bar/help-subcommand.d.ts.map +1 -1
- package/dist/commands/bar/help-subcommand.js +3 -2
- package/dist/commands/bar/help-subcommand.js.map +1 -1
- package/dist/commands/bar/index.d.ts.map +1 -1
- package/dist/commands/bar/index.js +1 -0
- package/dist/commands/bar/index.js.map +1 -1
- package/dist/commands/bar/install-subcommand.d.ts +4 -10
- package/dist/commands/bar/install-subcommand.d.ts.map +1 -1
- package/dist/commands/bar/install-subcommand.js +44 -53
- package/dist/commands/bar/install-subcommand.js.map +1 -1
- package/dist/commands/bar/launch-subcommand.d.ts +11 -1
- package/dist/commands/bar/launch-subcommand.d.ts.map +1 -1
- package/dist/commands/bar/launch-subcommand.js +82 -15
- package/dist/commands/bar/launch-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/help-subcommand.js +5 -5
- package/dist/commands/cliproxy/help-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/index.d.ts.map +1 -1
- package/dist/commands/cliproxy/index.js +7 -2
- package/dist/commands/cliproxy/index.js.map +1 -1
- package/dist/commands/cliproxy/pool-subcommand.d.ts.map +1 -1
- package/dist/commands/cliproxy/pool-subcommand.js +4 -2
- package/dist/commands/cliproxy/pool-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.d.ts +1 -1
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.d.ts.map +1 -1
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js +13 -1
- package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js.map +1 -1
- package/dist/commands/cliproxy/quota-subcommand/claude-window-helpers.d.ts +26 -0
- package/dist/commands/cliproxy/quota-subcommand/claude-window-helpers.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/claude-window-helpers.js +82 -0
- package/dist/commands/cliproxy/quota-subcommand/claude-window-helpers.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/codex-window-helpers.d.ts +41 -0
- package/dist/commands/cliproxy/quota-subcommand/codex-window-helpers.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/codex-window-helpers.js +202 -0
- package/dist/commands/cliproxy/quota-subcommand/codex-window-helpers.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/format-helpers.d.ts +32 -0
- package/dist/commands/cliproxy/quota-subcommand/format-helpers.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/format-helpers.js +90 -0
- package/dist/commands/cliproxy/quota-subcommand/format-helpers.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/handlers.d.ts +25 -0
- package/dist/commands/cliproxy/quota-subcommand/handlers.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/handlers.js +245 -0
- package/dist/commands/cliproxy/quota-subcommand/handlers.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/profile-args.d.ts +10 -0
- package/dist/commands/cliproxy/quota-subcommand/profile-args.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/profile-args.js +37 -0
- package/dist/commands/cliproxy/quota-subcommand/profile-args.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/provider-runtime.d.ts +12 -0
- package/dist/commands/cliproxy/quota-subcommand/provider-runtime.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/provider-runtime.js +64 -0
- package/dist/commands/cliproxy/quota-subcommand/provider-runtime.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/quota-failure-display.d.ts +27 -0
- package/dist/commands/cliproxy/quota-subcommand/quota-failure-display.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/quota-failure-display.js +74 -0
- package/dist/commands/cliproxy/quota-subcommand/quota-failure-display.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/antigravity.d.ts +10 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/antigravity.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/antigravity.js +46 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/antigravity.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/claude.d.ts +14 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/claude.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/claude.js +68 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/claude.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/codex.d.ts +14 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/codex.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/codex.js +82 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/codex.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/gemini-cli.d.ts +14 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/gemini-cli.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/gemini-cli.js +61 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/gemini-cli.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/ghcp.d.ts +13 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/ghcp.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/ghcp.js +63 -0
- package/dist/commands/cliproxy/quota-subcommand/sections/ghcp.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/test-exports.d.ts +19 -0
- package/dist/commands/cliproxy/quota-subcommand/test-exports.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/test-exports.js +22 -0
- package/dist/commands/cliproxy/quota-subcommand/test-exports.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/types.d.ts +42 -0
- package/dist/commands/cliproxy/quota-subcommand/types.d.ts.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand/types.js +9 -0
- package/dist/commands/cliproxy/quota-subcommand/types.js.map +1 -0
- package/dist/commands/cliproxy/quota-subcommand.d.ts +14 -36
- package/dist/commands/cliproxy/quota-subcommand.d.ts.map +1 -1
- package/dist/commands/cliproxy/quota-subcommand.js +21 -872
- package/dist/commands/cliproxy/quota-subcommand.js.map +1 -1
- package/dist/commands/command-catalog.js +1 -1
- package/dist/commands/command-catalog.js.map +1 -1
- package/dist/commands/config-channels-command.d.ts +1 -1
- package/dist/commands/config-channels-command.d.ts.map +1 -1
- package/dist/commands/config-channels-command.js +3 -3
- package/dist/commands/config-channels-command.js.map +1 -1
- package/dist/commands/config-command-options.d.ts.map +1 -1
- package/dist/commands/config-command-options.js +11 -2
- package/dist/commands/config-command-options.js.map +1 -1
- package/dist/commands/persist-command/arg-parsing.d.ts +14 -0
- package/dist/commands/persist-command/arg-parsing.d.ts.map +1 -0
- package/dist/commands/persist-command/arg-parsing.js +84 -0
- package/dist/commands/persist-command/arg-parsing.js.map +1 -0
- package/dist/commands/persist-command/backup-rotation.d.ts +23 -0
- package/dist/commands/persist-command/backup-rotation.d.ts.map +1 -0
- package/dist/commands/persist-command/backup-rotation.js +265 -0
- package/dist/commands/persist-command/backup-rotation.js.map +1 -0
- package/dist/commands/persist-command/handler.d.ts +10 -0
- package/dist/commands/persist-command/handler.d.ts.map +1 -0
- package/dist/commands/persist-command/handler.js +267 -0
- package/dist/commands/persist-command/handler.js.map +1 -0
- package/dist/commands/persist-command/help.d.ts +9 -0
- package/dist/commands/persist-command/help.d.ts.map +1 -0
- package/dist/commands/persist-command/help.js +86 -0
- package/dist/commands/persist-command/help.js.map +1 -0
- package/dist/commands/persist-command/receipt.d.ts +13 -0
- package/dist/commands/persist-command/receipt.d.ts.map +1 -0
- package/dist/commands/persist-command/receipt.js +102 -0
- package/dist/commands/persist-command/receipt.js.map +1 -0
- package/dist/commands/persist-command/secret-detection.d.ts +11 -0
- package/dist/commands/persist-command/secret-detection.d.ts.map +1 -0
- package/dist/commands/persist-command/secret-detection.js +54 -0
- package/dist/commands/persist-command/secret-detection.js.map +1 -0
- package/dist/commands/persist-command/secure-file.d.ts +21 -0
- package/dist/commands/persist-command/secure-file.d.ts.map +1 -0
- package/dist/commands/persist-command/secure-file.js +231 -0
- package/dist/commands/persist-command/secure-file.js.map +1 -0
- package/dist/commands/persist-command/types.d.ts +42 -0
- package/dist/commands/persist-command/types.d.ts.map +1 -0
- package/dist/commands/persist-command/types.js +34 -0
- package/dist/commands/persist-command/types.js.map +1 -0
- package/dist/commands/persist-command.d.ts +7 -2
- package/dist/commands/persist-command.d.ts.map +1 -1
- package/dist/commands/persist-command.js +17 -933
- package/dist/commands/persist-command.js.map +1 -1
- package/dist/commands/proxy-command.d.ts.map +1 -1
- package/dist/commands/proxy-command.js +7 -1
- package/dist/commands/proxy-command.js.map +1 -1
- package/dist/commands/setup-command.d.ts.map +1 -1
- package/dist/commands/setup-command.js +11 -1
- package/dist/commands/setup-command.js.map +1 -1
- package/dist/commands/tokens-command.d.ts.map +1 -1
- package/dist/commands/tokens-command.js +6 -0
- package/dist/commands/tokens-command.js.map +1 -1
- package/dist/config/config-loader-facade.d.ts +1 -1
- package/dist/config/config-loader-facade.d.ts.map +1 -1
- package/dist/config/config-loader-facade.js +3 -1
- package/dist/config/config-loader-facade.js.map +1 -1
- package/dist/config/loader/config-getters.d.ts +16 -0
- package/dist/config/loader/config-getters.d.ts.map +1 -1
- package/dist/config/loader/config-getters.js +33 -1
- package/dist/config/loader/config-getters.js.map +1 -1
- package/dist/config/loader/defaults-merger.d.ts.map +1 -1
- package/dist/config/loader/defaults-merger.js +4 -0
- package/dist/config/loader/defaults-merger.js.map +1 -1
- package/dist/config/loader/yaml-serializer.d.ts.map +1 -1
- package/dist/config/loader/yaml-serializer.js +13 -0
- package/dist/config/loader/yaml-serializer.js.map +1 -1
- package/dist/config/schemas/index.d.ts +2 -0
- package/dist/config/schemas/index.d.ts.map +1 -1
- package/dist/config/schemas/index.js +5 -1
- package/dist/config/schemas/index.js.map +1 -1
- package/dist/config/schemas/runtime.d.ts +57 -0
- package/dist/config/schemas/runtime.d.ts.map +1 -0
- package/dist/config/schemas/runtime.js +51 -0
- package/dist/config/schemas/runtime.js.map +1 -0
- package/dist/config/schemas/unified-config.d.ts +3 -0
- package/dist/config/schemas/unified-config.d.ts.map +1 -1
- package/dist/config/schemas/unified-config.js.map +1 -1
- package/dist/config/unified-config-loader.d.ts +1 -1
- package/dist/config/unified-config-loader.d.ts.map +1 -1
- package/dist/config/unified-config-loader.js +25 -13
- package/dist/config/unified-config-loader.js.map +1 -1
- package/dist/copilot/copilot-executor.js +25 -25
- package/dist/copilot/copilot-executor.js.map +1 -1
- package/dist/cursor/cursor-daemon-entry.d.ts.map +1 -1
- package/dist/cursor/cursor-daemon-entry.js +34 -9
- package/dist/cursor/cursor-daemon-entry.js.map +1 -1
- package/dist/cursor/cursor-daemon.d.ts.map +1 -1
- package/dist/cursor/cursor-daemon.js +1 -0
- package/dist/cursor/cursor-daemon.js.map +1 -1
- package/dist/cursor/cursor-profile-executor.d.ts.map +1 -1
- package/dist/cursor/cursor-profile-executor.js +18 -17
- package/dist/cursor/cursor-profile-executor.js.map +1 -1
- package/dist/delegation/delegation-handler.d.ts.map +1 -1
- package/dist/delegation/delegation-handler.js +29 -23
- package/dist/delegation/delegation-handler.js.map +1 -1
- package/dist/delegation/headless-executor.d.ts +1 -0
- package/dist/delegation/headless-executor.d.ts.map +1 -1
- package/dist/delegation/headless-executor.js +36 -15
- package/dist/delegation/headless-executor.js.map +1 -1
- package/dist/delegation/session-manager.d.ts.map +1 -1
- package/dist/delegation/session-manager.js +12 -4
- package/dist/delegation/session-manager.js.map +1 -1
- package/dist/dispatcher/cli-argument-parser.d.ts +1 -1
- package/dist/dispatcher/cli-argument-parser.d.ts.map +1 -1
- package/dist/dispatcher/cli-argument-parser.js +24 -23
- package/dist/dispatcher/cli-argument-parser.js.map +1 -1
- package/dist/dispatcher/flows/cliproxy-flow.d.ts.map +1 -1
- package/dist/dispatcher/flows/cliproxy-flow.js +12 -15
- package/dist/dispatcher/flows/cliproxy-flow.js.map +1 -1
- package/dist/dispatcher/flows/copilot-flow.js +1 -1
- package/dist/dispatcher/flows/copilot-flow.js.map +1 -1
- package/dist/dispatcher/flows/cursor-flow.js +1 -1
- package/dist/dispatcher/flows/cursor-flow.js.map +1 -1
- package/dist/dispatcher/flows/settings-flow.d.ts.map +1 -1
- package/dist/dispatcher/flows/settings-flow.js +32 -29
- package/dist/dispatcher/flows/settings-flow.js.map +1 -1
- package/dist/dispatcher/pre-dispatch.d.ts.map +1 -1
- package/dist/dispatcher/pre-dispatch.js +26 -10
- package/dist/dispatcher/pre-dispatch.js.map +1 -1
- package/dist/dispatcher/profile-resolver.d.ts +1 -1
- package/dist/dispatcher/profile-resolver.d.ts.map +1 -1
- package/dist/dispatcher/profile-resolver.js +36 -23
- package/dist/dispatcher/profile-resolver.js.map +1 -1
- package/dist/docker/supervisord-lifecycle.d.ts.map +1 -1
- package/dist/docker/supervisord-lifecycle.js +5 -1
- package/dist/docker/supervisord-lifecycle.js.map +1 -1
- package/dist/errors/error-types.d.ts +26 -22
- package/dist/errors/error-types.d.ts.map +1 -1
- package/dist/errors/error-types.js +15 -12
- package/dist/errors/error-types.js.map +1 -1
- package/dist/errors/exit-codes.d.ts +20 -13
- package/dist/errors/exit-codes.d.ts.map +1 -1
- package/dist/errors/exit-codes.js +32 -28
- package/dist/errors/exit-codes.js.map +1 -1
- package/dist/glmt/delta-accumulator.d.ts +1 -0
- package/dist/glmt/delta-accumulator.d.ts.map +1 -1
- package/dist/glmt/delta-accumulator.js +12 -4
- package/dist/glmt/delta-accumulator.js.map +1 -1
- package/dist/glmt/glmt-proxy.d.ts.map +1 -1
- package/dist/glmt/glmt-proxy.js +39 -10
- package/dist/glmt/glmt-proxy.js.map +1 -1
- package/dist/glmt/glmt-transformer.d.ts.map +1 -1
- package/dist/glmt/glmt-transformer.js +1 -4
- package/dist/glmt/glmt-transformer.js.map +1 -1
- package/dist/glmt/pipeline/request-transformer.d.ts.map +1 -1
- package/dist/glmt/pipeline/request-transformer.js +5 -1
- package/dist/glmt/pipeline/request-transformer.js.map +1 -1
- package/dist/glmt/pipeline/response-builder.d.ts.map +1 -1
- package/dist/glmt/pipeline/response-builder.js +7 -3
- package/dist/glmt/pipeline/response-builder.js.map +1 -1
- package/dist/glmt/pipeline/stream-parser.d.ts.map +1 -1
- package/dist/glmt/pipeline/stream-parser.js +11 -5
- package/dist/glmt/pipeline/stream-parser.js.map +1 -1
- package/dist/glmt/pipeline/tool-call-handler.d.ts.map +1 -1
- package/dist/glmt/pipeline/tool-call-handler.js +7 -1
- package/dist/glmt/pipeline/tool-call-handler.js.map +1 -1
- package/dist/glmt/sse-parser.d.ts +1 -0
- package/dist/glmt/sse-parser.d.ts.map +1 -1
- package/dist/glmt/sse-parser.js +7 -3
- package/dist/glmt/sse-parser.js.map +1 -1
- package/dist/management/checks/cliproxy-check.d.ts.map +1 -1
- package/dist/management/checks/cliproxy-check.js +15 -1
- package/dist/management/checks/cliproxy-check.js.map +1 -1
- package/dist/management/checks/config-check.d.ts.map +1 -1
- package/dist/management/checks/config-check.js +4 -1
- package/dist/management/checks/config-check.js.map +1 -1
- package/dist/management/checks/profile-check.d.ts.map +1 -1
- package/dist/management/checks/profile-check.js +10 -6
- package/dist/management/checks/profile-check.js.map +1 -1
- package/dist/management/doctor.d.ts +7 -0
- package/dist/management/doctor.d.ts.map +1 -1
- package/dist/management/doctor.js +31 -9
- package/dist/management/doctor.js.map +1 -1
- package/dist/management/shared-manager/fs-helpers.d.ts +69 -0
- package/dist/management/shared-manager/fs-helpers.d.ts.map +1 -0
- package/dist/management/shared-manager/fs-helpers.js +241 -0
- package/dist/management/shared-manager/fs-helpers.js.map +1 -0
- package/dist/management/shared-manager/migrations.d.ts +21 -0
- package/dist/management/shared-manager/migrations.d.ts.map +1 -0
- package/dist/management/shared-manager/migrations.js +187 -0
- package/dist/management/shared-manager/migrations.js.map +1 -0
- package/dist/management/shared-manager/orchestrator.d.ts +87 -0
- package/dist/management/shared-manager/orchestrator.d.ts.map +1 -0
- package/dist/management/shared-manager/orchestrator.js +161 -0
- package/dist/management/shared-manager/orchestrator.js.map +1 -0
- package/dist/management/shared-manager/plugin-layout-internals.d.ts +42 -0
- package/dist/management/shared-manager/plugin-layout-internals.d.ts.map +1 -0
- package/dist/management/shared-manager/plugin-layout-internals.js +192 -0
- package/dist/management/shared-manager/plugin-layout-internals.js.map +1 -0
- package/dist/management/shared-manager/plugin-metadata-normalizer.d.ts +53 -0
- package/dist/management/shared-manager/plugin-metadata-normalizer.d.ts.map +1 -0
- package/dist/management/shared-manager/plugin-metadata-normalizer.js +253 -0
- package/dist/management/shared-manager/plugin-metadata-normalizer.js.map +1 -0
- package/dist/management/shared-manager/project-context-sync.d.ts +36 -0
- package/dist/management/shared-manager/project-context-sync.d.ts.map +1 -0
- package/dist/management/shared-manager/project-context-sync.js +204 -0
- package/dist/management/shared-manager/project-context-sync.js.map +1 -0
- package/dist/management/shared-manager/project-memory-sync.d.ts +21 -0
- package/dist/management/shared-manager/project-memory-sync.d.ts.map +1 -0
- package/dist/management/shared-manager/project-memory-sync.js +113 -0
- package/dist/management/shared-manager/project-memory-sync.js.map +1 -0
- package/dist/management/shared-manager/shared-dir-linker.d.ts +41 -0
- package/dist/management/shared-manager/shared-dir-linker.d.ts.map +1 -0
- package/dist/management/shared-manager/shared-dir-linker.js +227 -0
- package/dist/management/shared-manager/shared-dir-linker.js.map +1 -0
- package/dist/management/shared-manager/symlink-helpers.d.ts +61 -0
- package/dist/management/shared-manager/symlink-helpers.d.ts.map +1 -0
- package/dist/management/shared-manager/symlink-helpers.js +243 -0
- package/dist/management/shared-manager/symlink-helpers.js.map +1 -0
- package/dist/management/shared-manager/types.d.ts +45 -0
- package/dist/management/shared-manager/types.d.ts.map +1 -0
- package/dist/management/shared-manager/types.js +57 -0
- package/dist/management/shared-manager/types.js.map +1 -0
- package/dist/management/shared-manager.d.ts +13 -160
- package/dist/management/shared-manager.d.ts.map +1 -1
- package/dist/management/shared-manager.js +18 -1294
- package/dist/management/shared-manager.js.map +1 -1
- package/dist/proxy/proxy-daemon-entry.js +1 -1
- package/dist/proxy/proxy-daemon-entry.js.map +1 -1
- package/dist/proxy/server/messages-route.d.ts +10 -0
- package/dist/proxy/server/messages-route.d.ts.map +1 -1
- package/dist/proxy/server/messages-route.js +34 -7
- package/dist/proxy/server/messages-route.js.map +1 -1
- package/dist/proxy/server/proxy-server.d.ts.map +1 -1
- package/dist/proxy/server/proxy-server.js +1 -1
- package/dist/proxy/server/proxy-server.js.map +1 -1
- package/dist/proxy/transformers/sse-stream-transformer.d.ts.map +1 -1
- package/dist/proxy/transformers/sse-stream-transformer.js +12 -17
- package/dist/proxy/transformers/sse-stream-transformer.js.map +1 -1
- package/dist/services/logging/index.d.ts +1 -1
- package/dist/services/logging/index.d.ts.map +1 -1
- package/dist/services/logging/index.js +6 -1
- package/dist/services/logging/index.js.map +1 -1
- package/dist/services/logging/log-context.d.ts +27 -2
- package/dist/services/logging/log-context.d.ts.map +1 -1
- package/dist/services/logging/log-context.js +43 -4
- package/dist/services/logging/log-context.js.map +1 -1
- package/dist/services/logging/log-redaction.d.ts +9 -0
- package/dist/services/logging/log-redaction.d.ts.map +1 -1
- package/dist/services/logging/log-redaction.js +31 -3
- package/dist/services/logging/log-redaction.js.map +1 -1
- package/dist/services/logging/logger.js +2 -2
- package/dist/services/logging/logger.js.map +1 -1
- package/dist/shared/provider-preset-catalog.d.ts +1 -1
- package/dist/shared/provider-preset-catalog.d.ts.map +1 -1
- package/dist/shared/provider-preset-catalog.js +21 -7
- package/dist/shared/provider-preset-catalog.js.map +1 -1
- package/dist/targets/claude-adapter.d.ts.map +1 -1
- package/dist/targets/claude-adapter.js +5 -0
- package/dist/targets/claude-adapter.js.map +1 -1
- package/dist/targets/codex-adapter.d.ts.map +1 -1
- package/dist/targets/codex-adapter.js +11 -10
- package/dist/targets/codex-adapter.js.map +1 -1
- package/dist/targets/codex-detector.d.ts.map +1 -1
- package/dist/targets/codex-detector.js +14 -0
- package/dist/targets/codex-detector.js.map +1 -1
- package/dist/targets/droid-adapter.d.ts.map +1 -1
- package/dist/targets/droid-adapter.js +12 -12
- package/dist/targets/droid-adapter.js.map +1 -1
- package/dist/ui/assets/{Trans-RG_sMDEu.js → Trans-GYzYLs2D.js} +1 -1
- package/dist/ui/assets/{accounts-yTXURc-q.js → accounts-DC1QuyI9.js} +1 -1
- package/dist/ui/assets/{alert-dialog-DjvPgzFs.js → alert-dialog-6SiedqmE.js} +1 -1
- package/dist/ui/assets/{api-Ck1dtNEM.js → api-3s21dbNJ.js} +1 -1
- package/dist/ui/assets/{auth-section-DBnY_LPz.js → auth-section-XBfNgVN4.js} +1 -1
- package/dist/ui/assets/{backups-section-Ci-uL4Of.js → backups-section-BidiiVlq.js} +1 -1
- package/dist/ui/assets/{channels-BeS9O5q0.js → channels-pfgPUDGt.js} +1 -1
- package/dist/ui/assets/{checkbox-DFeFDZBp.js → checkbox-CJw_-nvC.js} +1 -1
- package/dist/ui/assets/{claude-extension-DS5qN19Z.js → claude-extension-BIIUOvTJ.js} +1 -1
- package/dist/ui/assets/{cliproxy-D7HJH4mZ.js → cliproxy-Cq8OX0Pu.js} +1 -1
- package/dist/ui/assets/{cliproxy-ai-providers-oJQZXrtc.js → cliproxy-ai-providers-DI760ZF0.js} +1 -1
- package/dist/ui/assets/{cliproxy-control-panel-2mRPEcRj.js → cliproxy-control-panel-CBqvpOqj.js} +1 -1
- package/dist/ui/assets/{codex-D0AUQ6jA.js → codex-DL4OLBUu.js} +1 -1
- package/dist/ui/assets/{confirm-dialog-B37-CVuq.js → confirm-dialog-CC_Cc3EO.js} +1 -1
- package/dist/ui/assets/{copilot-KaaW-mko.js → copilot-D2kEhTXR.js} +1 -1
- package/dist/ui/assets/{cursor-BKiTgYi5.js → cursor-BashLrYk.js} +1 -1
- package/dist/ui/assets/{droid-DHdqGnFw.js → droid-DaKTINFL.js} +1 -1
- package/dist/ui/assets/{globalenv-section-SfZO97nU.js → globalenv-section-BQicL8L0.js} +1 -1
- package/dist/ui/assets/{health-CSRS9O0D.js → health-bRbE_ADg.js} +1 -1
- package/dist/ui/assets/{index-CGgavq2X.js → index-B2JEyN3d.js} +36 -36
- package/dist/ui/assets/{index-Cu_F55_O.js → index-BwZdl1HU.js} +1 -1
- package/dist/ui/assets/{index-DWUuSBUe.js → index-CgeAb1-K.js} +1 -1
- package/dist/ui/assets/{index-iQuEEGbH.js → index-DAQ0qIQ_.js} +1 -1
- package/dist/ui/assets/{index-ChTYEBCZ.js → index-O2x1grGh.js} +1 -1
- package/dist/ui/assets/{index-DycwEe96.js → index-WA7tK6np.js} +1 -1
- package/dist/ui/assets/{index-DJ66NrBH.js → index-mf2X1GwS.js} +1 -1
- package/dist/ui/assets/{logs-tiZ_51mo.js → logs-qrBHUJ0H.js} +1 -1
- package/dist/ui/assets/{masked-input-D9FVoeMA.js → masked-input-CXwQ4E-g.js} +1 -1
- package/dist/ui/assets/{proxy-status-widget-2k26d8pS.js → proxy-status-widget-DPz4nCzR.js} +1 -1
- package/dist/ui/assets/{raw-json-settings-editor-panel-CguBh93H.js → raw-json-settings-editor-panel-CcvsWVh1.js} +1 -1
- package/dist/ui/assets/{searchable-select-C4wShshD.js → searchable-select-EXSjNCRu.js} +1 -1
- package/dist/ui/assets/{separator-mvGlDdEW.js → separator-D2CTfWBQ.js} +1 -1
- package/dist/ui/assets/{shared-Ck0yAwbs.js → shared-DpgzhFqe.js} +1 -1
- package/dist/ui/assets/{table-DrUJOxKL.js → table-DwbiGRYk.js} +1 -1
- package/dist/ui/assets/{updates-BVHBFcq8.js → updates-D8jfIb2y.js} +1 -1
- package/dist/ui/assets/{use-accounts-DLtuaniS.js → use-accounts-Bwtpnx-x.js} +1 -1
- package/dist/ui/index.html +1 -1
- package/dist/utils/bar-auth-token.d.ts +4 -0
- package/dist/utils/bar-auth-token.d.ts.map +1 -0
- package/dist/utils/bar-auth-token.js +60 -0
- package/dist/utils/bar-auth-token.js.map +1 -0
- package/dist/utils/browser/browser-settings.d.ts +3 -1
- package/dist/utils/browser/browser-settings.d.ts.map +1 -1
- package/dist/utils/browser/browser-settings.js +2 -2
- package/dist/utils/browser/browser-settings.js.map +1 -1
- package/dist/utils/browser/browser-setup.d.ts.map +1 -1
- package/dist/utils/browser/browser-setup.js +3 -1
- package/dist/utils/browser/browser-setup.js.map +1 -1
- package/dist/utils/browser/browser-status.d.ts.map +1 -1
- package/dist/utils/browser/browser-status.js +4 -2
- package/dist/utils/browser/browser-status.js.map +1 -1
- package/dist/utils/fetch-proxy-setup.d.ts +3 -2
- package/dist/utils/fetch-proxy-setup.d.ts.map +1 -1
- package/dist/utils/fetch-proxy-setup.js +10 -6
- package/dist/utils/fetch-proxy-setup.js.map +1 -1
- package/dist/utils/image-analysis/mcp-installer.d.ts.map +1 -1
- package/dist/utils/image-analysis/mcp-installer.js +16 -13
- package/dist/utils/image-analysis/mcp-installer.js.map +1 -1
- package/dist/utils/websearch/index.d.ts +1 -1
- package/dist/utils/websearch/index.d.ts.map +1 -1
- package/dist/utils/websearch/index.js +2 -1
- package/dist/utils/websearch/index.js.map +1 -1
- package/dist/utils/websearch/mcp-installer.d.ts +8 -0
- package/dist/utils/websearch/mcp-installer.d.ts.map +1 -1
- package/dist/utils/websearch/mcp-installer.js +34 -13
- package/dist/utils/websearch/mcp-installer.js.map +1 -1
- package/dist/utils/websearch-manager.d.ts +1 -1
- package/dist/utils/websearch-manager.d.ts.map +1 -1
- package/dist/utils/websearch-manager.js +2 -1
- package/dist/utils/websearch-manager.js.map +1 -1
- package/dist/web-server/middleware/request-logging-middleware.d.ts.map +1 -1
- package/dist/web-server/middleware/request-logging-middleware.js +14 -9
- package/dist/web-server/middleware/request-logging-middleware.js.map +1 -1
- package/dist/web-server/model-pricing.d.ts.map +1 -1
- package/dist/web-server/model-pricing.js +22 -2
- package/dist/web-server/model-pricing.js.map +1 -1
- package/dist/web-server/routes/bar-routes.d.ts +12 -1
- package/dist/web-server/routes/bar-routes.d.ts.map +1 -1
- package/dist/web-server/routes/bar-routes.js +22 -6
- package/dist/web-server/routes/bar-routes.js.map +1 -1
- package/dist/web-server/routes/claude-extension-routes.d.ts.map +1 -1
- package/dist/web-server/routes/claude-extension-routes.js +3 -2
- package/dist/web-server/routes/claude-extension-routes.js.map +1 -1
- package/dist/web-server/routes/cliproxy-auth-routes.d.ts +1 -0
- package/dist/web-server/routes/cliproxy-auth-routes.d.ts.map +1 -1
- package/dist/web-server/routes/cliproxy-auth-routes.js +20 -5
- package/dist/web-server/routes/cliproxy-auth-routes.js.map +1 -1
- package/dist/web-server/routes/cliproxy-stats-routes/config-routes.d.ts +16 -0
- package/dist/web-server/routes/cliproxy-stats-routes/config-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/config-routes.js +219 -0
- package/dist/web-server/routes/cliproxy-stats-routes/config-routes.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/error-log-routes.d.ts +12 -0
- package/dist/web-server/routes/cliproxy-stats-routes/error-log-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/error-log-routes.js +153 -0
- package/dist/web-server/routes/cliproxy-stats-routes/error-log-routes.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/quota-helpers.d.ts +19 -0
- package/dist/web-server/routes/cliproxy-stats-routes/quota-helpers.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/quota-helpers.js +38 -0
- package/dist/web-server/routes/cliproxy-stats-routes/quota-helpers.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/quota-routes.d.ts +13 -0
- package/dist/web-server/routes/cliproxy-stats-routes/quota-routes.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/quota-routes.js +195 -0
- package/dist/web-server/routes/cliproxy-stats-routes/quota-routes.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/restart-route.d.ts +17 -0
- package/dist/web-server/routes/cliproxy-stats-routes/restart-route.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/restart-route.js +34 -0
- package/dist/web-server/routes/cliproxy-stats-routes/restart-route.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/router.d.ts +10 -0
- package/dist/web-server/routes/cliproxy-stats-routes/router.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/router.js +245 -0
- package/dist/web-server/routes/cliproxy-stats-routes/router.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/shared.d.ts +35 -0
- package/dist/web-server/routes/cliproxy-stats-routes/shared.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/shared.js +59 -0
- package/dist/web-server/routes/cliproxy-stats-routes/shared.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/version-helpers.d.ts +44 -0
- package/dist/web-server/routes/cliproxy-stats-routes/version-helpers.d.ts.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes/version-helpers.js +66 -0
- package/dist/web-server/routes/cliproxy-stats-routes/version-helpers.js.map +1 -0
- package/dist/web-server/routes/cliproxy-stats-routes.d.ts +16 -57
- package/dist/web-server/routes/cliproxy-stats-routes.d.ts.map +1 -1
- package/dist/web-server/routes/cliproxy-stats-routes.js +25 -926
- package/dist/web-server/routes/cliproxy-stats-routes.js.map +1 -1
- package/dist/web-server/routes/cliproxy-sync-routes.d.ts.map +1 -1
- package/dist/web-server/routes/cliproxy-sync-routes.js +9 -2
- package/dist/web-server/routes/cliproxy-sync-routes.js.map +1 -1
- package/dist/web-server/routes/copilot-settings-routes.d.ts.map +1 -1
- package/dist/web-server/routes/copilot-settings-routes.js +2 -1
- package/dist/web-server/routes/copilot-settings-routes.js.map +1 -1
- package/dist/web-server/routes/cursor-routes.d.ts.map +1 -1
- package/dist/web-server/routes/cursor-routes.js +3 -1
- package/dist/web-server/routes/cursor-routes.js.map +1 -1
- package/dist/web-server/routes/image-analysis-routes.d.ts.map +1 -1
- package/dist/web-server/routes/image-analysis-routes.js +2 -1
- package/dist/web-server/routes/image-analysis-routes.js.map +1 -1
- package/dist/web-server/routes/index.d.ts.map +1 -1
- package/dist/web-server/routes/index.js +6 -0
- package/dist/web-server/routes/index.js.map +1 -1
- package/dist/web-server/routes/persist-routes.d.ts.map +1 -1
- package/dist/web-server/routes/persist-routes.js +8 -1
- package/dist/web-server/routes/persist-routes.js.map +1 -1
- package/dist/web-server/routes/proxy-routes.d.ts.map +1 -1
- package/dist/web-server/routes/proxy-routes.js +33 -5
- package/dist/web-server/routes/proxy-routes.js.map +1 -1
- package/dist/web-server/routes/route-helpers.d.ts.map +1 -1
- package/dist/web-server/routes/route-helpers.js +18 -6
- package/dist/web-server/routes/route-helpers.js.map +1 -1
- package/dist/web-server/routes/settings-routes.d.ts.map +1 -1
- package/dist/web-server/routes/settings-routes.js +7 -6
- package/dist/web-server/routes/settings-routes.js.map +1 -1
- package/dist/web-server/usage/aggregator.d.ts.map +1 -1
- package/dist/web-server/usage/aggregator.js +8 -8
- package/dist/web-server/usage/aggregator.js.map +1 -1
- package/dist/web-server/usage/bar-analytics.d.ts +21 -0
- package/dist/web-server/usage/bar-analytics.d.ts.map +1 -1
- package/dist/web-server/usage/bar-analytics.js +78 -9
- package/dist/web-server/usage/bar-analytics.js.map +1 -1
- package/dist/web-server/usage/cliproxy-usage-transformer.d.ts.map +1 -1
- package/dist/web-server/usage/cliproxy-usage-transformer.js +9 -4
- package/dist/web-server/usage/cliproxy-usage-transformer.js.map +1 -1
- package/dist/web-server/usage/codex-local-quota-collector.d.ts +2 -2
- package/dist/web-server/usage/codex-local-quota-collector.d.ts.map +1 -1
- package/dist/web-server/usage/codex-local-quota-collector.js +39 -11
- package/dist/web-server/usage/codex-local-quota-collector.js.map +1 -1
- package/dist/web-server/usage/handlers.d.ts.map +1 -1
- package/dist/web-server/usage/handlers.js +1 -1
- package/dist/web-server/usage/handlers.js.map +1 -1
- package/dist/web-server/usage/native-quota-collector.d.ts +37 -9
- package/dist/web-server/usage/native-quota-collector.d.ts.map +1 -1
- package/dist/web-server/usage/native-quota-collector.js +226 -23
- package/dist/web-server/usage/native-quota-collector.js.map +1 -1
- package/package.json +1 -1
- package/scripts/ci-parity-gate.sh +31 -0
- package/scripts/generate-throw-error-baseline.js +103 -0
- package/scripts/github/stable-release-issue-cleanup-lib.mjs +51 -11
- package/scripts/hardening-inventory.js +62 -4
- package/scripts/maintainability-metrics.js +356 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Argument parsing for account-management subcommands (default/pause/resume).
|
|
3
|
+
*
|
|
4
|
+
* Extracted verbatim from the original god file. Only the parsing logic lives
|
|
5
|
+
* here; the subcommand handlers themselves are in handlers.ts.
|
|
6
|
+
*/
|
|
7
|
+
import type { CliproxyProfileArgs } from './types';
|
|
8
|
+
/** Parse the raw CLI args for a `ccs cliproxy default|pause|resume` invocation. */
|
|
9
|
+
export declare function parseProfileArgs(args: string[]): CliproxyProfileArgs;
|
|
10
|
+
//# sourceMappingURL=profile-args.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-args.d.ts","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/profile-args.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,mBAAmB,CAmBpE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Argument parsing for account-management subcommands (default/pause/resume).
|
|
4
|
+
*
|
|
5
|
+
* Extracted verbatim from the original god file. Only the parsing logic lives
|
|
6
|
+
* here; the subcommand handlers themselves are in handlers.ts.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.parseProfileArgs = void 0;
|
|
10
|
+
/** Parse the raw CLI args for a `ccs cliproxy default|pause|resume` invocation. */
|
|
11
|
+
function parseProfileArgs(args) {
|
|
12
|
+
const result = {};
|
|
13
|
+
for (let i = 0; i < args.length; i++) {
|
|
14
|
+
const arg = args[i];
|
|
15
|
+
if (arg === '--provider' && args[i + 1]) {
|
|
16
|
+
result.provider = args[++i];
|
|
17
|
+
}
|
|
18
|
+
else if (arg === '--model' && args[i + 1]) {
|
|
19
|
+
result.model = args[++i];
|
|
20
|
+
}
|
|
21
|
+
else if (arg === '--account' && args[i + 1]) {
|
|
22
|
+
result.account = args[++i];
|
|
23
|
+
}
|
|
24
|
+
else if (arg === '--force') {
|
|
25
|
+
result.force = true;
|
|
26
|
+
}
|
|
27
|
+
else if (arg === '--yes' || arg === '-y') {
|
|
28
|
+
result.yes = true;
|
|
29
|
+
}
|
|
30
|
+
else if (!arg.startsWith('-') && !result.name) {
|
|
31
|
+
result.name = arg;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
exports.parseProfileArgs = parseProfileArgs;
|
|
37
|
+
//# sourceMappingURL=profile-args.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-args.js","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/profile-args.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH,mFAAmF;AACnF,SAAgB,gBAAgB,CAAC,IAAc;IAC7C,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,GAAG,KAAK,YAAY,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACxC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QAC9B,CAAC;aAAM,IAAI,GAAG,KAAK,SAAS,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5C,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QAC3B,CAAC;aAAM,IAAI,GAAG,KAAK,WAAW,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YAC9C,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,CAAC;aAAM,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YAC7B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;QACtB,CAAC;aAAM,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YAC3C,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC;QACpB,CAAC;aAAM,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YAChD,MAAM,CAAC,IAAI,GAAG,GAAG,CAAC;QACpB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAnBD,4CAmBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-provider runtime adapters for the quota command.
|
|
3
|
+
*
|
|
4
|
+
* Each entry wires a fetcher (from cliproxy/quota/*) to its section renderer
|
|
5
|
+
* and provides the empty-state strings shown when no accounts are configured.
|
|
6
|
+
* The runtime map is consumed by handleQuotaStatus in handlers.ts.
|
|
7
|
+
*/
|
|
8
|
+
import type { QuotaSupportedProvider } from '../../../cliproxy/provider-capabilities';
|
|
9
|
+
import type { QuotaProviderRuntime } from './types';
|
|
10
|
+
/** Runtime adapter for each quota-supported provider. */
|
|
11
|
+
export declare const QUOTA_PROVIDER_RUNTIME: Record<QuotaSupportedProvider, QuotaProviderRuntime>;
|
|
12
|
+
//# sourceMappingURL=provider-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-runtime.d.ts","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/provider-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAOpD,yDAAyD;AACzD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,sBAAsB,EAAE,oBAAoB,CA+CvF,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Per-provider runtime adapters for the quota command.
|
|
4
|
+
*
|
|
5
|
+
* Each entry wires a fetcher (from cliproxy/quota/*) to its section renderer
|
|
6
|
+
* and provides the empty-state strings shown when no accounts are configured.
|
|
7
|
+
* The runtime map is consumed by handleQuotaStatus in handlers.ts.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.QUOTA_PROVIDER_RUNTIME = void 0;
|
|
11
|
+
const quota_fetcher_claude_1 = require("../../../cliproxy/quota/quota-fetcher-claude");
|
|
12
|
+
const quota_fetcher_codex_1 = require("../../../cliproxy/quota/quota-fetcher-codex");
|
|
13
|
+
const quota_fetcher_gemini_cli_1 = require("../../../cliproxy/quota/quota-fetcher-gemini-cli");
|
|
14
|
+
const quota_fetcher_ghcp_1 = require("../../../cliproxy/quota/quota-fetcher-ghcp");
|
|
15
|
+
const quota_fetcher_1 = require("../../../cliproxy/quota/quota-fetcher");
|
|
16
|
+
const antigravity_1 = require("./sections/antigravity");
|
|
17
|
+
const claude_1 = require("./sections/claude");
|
|
18
|
+
const codex_1 = require("./sections/codex");
|
|
19
|
+
const ghcp_1 = require("./sections/ghcp");
|
|
20
|
+
const gemini_cli_1 = require("./sections/gemini-cli");
|
|
21
|
+
/** Runtime adapter for each quota-supported provider. */
|
|
22
|
+
exports.QUOTA_PROVIDER_RUNTIME = {
|
|
23
|
+
agy: {
|
|
24
|
+
fetch: (verbose) => (0, quota_fetcher_1.fetchAllProviderQuotas)('agy', verbose),
|
|
25
|
+
hasData: (result) => result.accounts.length > 0,
|
|
26
|
+
render: (result) => (0, antigravity_1.displayAntigravityQuotaSection)(result),
|
|
27
|
+
emptyTitle: 'Antigravity (0 accounts)',
|
|
28
|
+
emptyMessage: 'No Antigravity accounts configured',
|
|
29
|
+
authCommand: 'ccs agy --auth',
|
|
30
|
+
},
|
|
31
|
+
codex: {
|
|
32
|
+
fetch: (verbose) => (0, quota_fetcher_codex_1.fetchAllCodexQuotas)(verbose),
|
|
33
|
+
hasData: (result) => result.length > 0,
|
|
34
|
+
render: (result) => (0, codex_1.displayCodexQuotaSection)(result),
|
|
35
|
+
emptyTitle: 'Codex (0 accounts)',
|
|
36
|
+
emptyMessage: 'No Codex accounts configured',
|
|
37
|
+
authCommand: 'ccs codex --auth',
|
|
38
|
+
},
|
|
39
|
+
claude: {
|
|
40
|
+
fetch: (verbose) => (0, quota_fetcher_claude_1.fetchAllClaudeQuotas)(verbose),
|
|
41
|
+
hasData: (result) => result.length > 0,
|
|
42
|
+
render: (result) => (0, claude_1.displayClaudeQuotaSection)(result),
|
|
43
|
+
emptyTitle: 'Claude (0 accounts)',
|
|
44
|
+
emptyMessage: 'No Claude accounts configured',
|
|
45
|
+
authCommand: 'ccs claude --auth',
|
|
46
|
+
},
|
|
47
|
+
gemini: {
|
|
48
|
+
fetch: (verbose) => (0, quota_fetcher_gemini_cli_1.fetchAllGeminiCliQuotas)(verbose),
|
|
49
|
+
hasData: (result) => result.length > 0,
|
|
50
|
+
render: (result) => (0, gemini_cli_1.displayGeminiCliQuotaSection)(result),
|
|
51
|
+
emptyTitle: 'Gemini CLI (0 accounts)',
|
|
52
|
+
emptyMessage: 'No Gemini CLI accounts configured',
|
|
53
|
+
authCommand: 'ccs gemini --auth',
|
|
54
|
+
},
|
|
55
|
+
ghcp: {
|
|
56
|
+
fetch: (verbose) => (0, quota_fetcher_ghcp_1.fetchAllGhcpQuotas)(verbose),
|
|
57
|
+
hasData: (result) => result.length > 0,
|
|
58
|
+
render: (result) => (0, ghcp_1.displayGhcpQuotaSection)(result),
|
|
59
|
+
emptyTitle: 'GitHub Copilot (0 accounts)',
|
|
60
|
+
emptyMessage: 'No GitHub Copilot accounts configured',
|
|
61
|
+
authCommand: 'ccs ghcp --auth',
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=provider-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-runtime.js","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/provider-runtime.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAQH,uFAAo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mBAAmB;KACjC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,kDAAuB,EAAC,OAAO,CAAC;QACpD,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAE,MAA6D,CAAC,MAAM,GAAG,CAAC;QAC9F,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CACjB,IAAA,yCAA4B,EAAC,MAA4D,CAAC;QAC5F,UAAU,EAAE,yBAAyB;QACrC,YAAY,EAAE,mCAAmC;QACjD,WAAW,EAAE,mBAAmB;KACjC;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,uCAAkB,EAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAE,MAAwD,CAAC,MAAM,GAAG,CAAC;QACzF,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CACjB,IAAA,8BAAuB,EAAC,MAAuD,CAAC;QAClF,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,uCAAuC;QACrD,WAAW,EAAE,iBAAiB;KAC/B;CACF,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quota failure display helpers.
|
|
3
|
+
*
|
|
4
|
+
* Builds the multi-line failure block shown beneath a failed account row.
|
|
5
|
+
* Extracted from the original god file verbatim so the CLI output and the
|
|
6
|
+
* unit tests in tests/unit/commands/cliproxy-quota-subcommand.test.ts keep
|
|
7
|
+
* their exact behavior.
|
|
8
|
+
*/
|
|
9
|
+
import type { QuotaErrorMetadata } from '../../../cliproxy/quota/quota-types';
|
|
10
|
+
import type { QuotaFailureDisplayEntry } from './types';
|
|
11
|
+
/**
|
|
12
|
+
* Build the ordered list of failure display entries for a quota error.
|
|
13
|
+
*
|
|
14
|
+
* Order is:
|
|
15
|
+
* 1. error message (always)
|
|
16
|
+
* 2. action hint (if present)
|
|
17
|
+
* 3. diagnostics line: HTTP status | error code | retryable flag (if any)
|
|
18
|
+
* 4. detail line (only if it differs from the error message)
|
|
19
|
+
*/
|
|
20
|
+
export declare function getQuotaFailureDisplayEntries(quota: QuotaErrorMetadata & {
|
|
21
|
+
error?: string;
|
|
22
|
+
}): QuotaFailureDisplayEntry[];
|
|
23
|
+
/** Render the failure block for a single failed account to stdout. */
|
|
24
|
+
export declare function displayQuotaFailure(quota: QuotaErrorMetadata & {
|
|
25
|
+
error?: string;
|
|
26
|
+
}): void;
|
|
27
|
+
//# sourceMappingURL=quota-failure-display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota-failure-display.d.ts","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/quota-failure-display.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,kBAAkB,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACA,wBAAwB,EAAE,CA0C5B;AAED,sEAAsE;AACtE,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,kBAAkB,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACA,IAAI,CAUN"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Quota failure display helpers.
|
|
4
|
+
*
|
|
5
|
+
* Builds the multi-line failure block shown beneath a failed account row.
|
|
6
|
+
* Extracted from the original god file verbatim so the CLI output and the
|
|
7
|
+
* unit tests in tests/unit/commands/cliproxy-quota-subcommand.test.ts keep
|
|
8
|
+
* their exact behavior.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.displayQuotaFailure = exports.getQuotaFailureDisplayEntries = void 0;
|
|
12
|
+
const ui_1 = require("../../../utils/ui");
|
|
13
|
+
/**
|
|
14
|
+
* Build the ordered list of failure display entries for a quota error.
|
|
15
|
+
*
|
|
16
|
+
* Order is:
|
|
17
|
+
* 1. error message (always)
|
|
18
|
+
* 2. action hint (if present)
|
|
19
|
+
* 3. diagnostics line: HTTP status | error code | retryable flag (if any)
|
|
20
|
+
* 4. detail line (only if it differs from the error message)
|
|
21
|
+
*/
|
|
22
|
+
function getQuotaFailureDisplayEntries(quota) {
|
|
23
|
+
const entries = [
|
|
24
|
+
{
|
|
25
|
+
tone: 'error',
|
|
26
|
+
text: quota.error || 'Failed to fetch quota',
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
if (quota.actionHint) {
|
|
30
|
+
entries.push({
|
|
31
|
+
tone: 'info',
|
|
32
|
+
text: quota.actionHint,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
const diagnostics = [];
|
|
36
|
+
if (typeof quota.httpStatus === 'number') {
|
|
37
|
+
diagnostics.push(`HTTP ${quota.httpStatus}`);
|
|
38
|
+
}
|
|
39
|
+
if (quota.errorCode) {
|
|
40
|
+
diagnostics.push(`Code: ${quota.errorCode}`);
|
|
41
|
+
}
|
|
42
|
+
if (quota.retryable) {
|
|
43
|
+
diagnostics.push('Retryable');
|
|
44
|
+
}
|
|
45
|
+
if (diagnostics.length > 0) {
|
|
46
|
+
entries.push({
|
|
47
|
+
tone: 'dim',
|
|
48
|
+
text: diagnostics.join(' | '),
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
const normalizedError = quota.error?.trim();
|
|
52
|
+
const normalizedDetail = quota.errorDetail?.trim();
|
|
53
|
+
if (normalizedDetail && normalizedDetail !== normalizedError) {
|
|
54
|
+
entries.push({
|
|
55
|
+
tone: 'dim',
|
|
56
|
+
text: `Detail: ${normalizedDetail}`,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return entries;
|
|
60
|
+
}
|
|
61
|
+
exports.getQuotaFailureDisplayEntries = getQuotaFailureDisplayEntries;
|
|
62
|
+
/** Render the failure block for a single failed account to stdout. */
|
|
63
|
+
function displayQuotaFailure(quota) {
|
|
64
|
+
for (const entry of getQuotaFailureDisplayEntries(quota)) {
|
|
65
|
+
const rendered = entry.tone === 'error'
|
|
66
|
+
? (0, ui_1.color)(entry.text, 'error')
|
|
67
|
+
: entry.tone === 'info'
|
|
68
|
+
? (0, ui_1.info)(entry.text)
|
|
69
|
+
: (0, ui_1.dim)(entry.text);
|
|
70
|
+
console.log(` ${rendered}`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.displayQuotaFailure = displayQuotaFailure;
|
|
74
|
+
//# sourceMappingURL=quota-failure-display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota-failure-display.js","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/quota-failure-display.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAGH,0CAAqD;AAGrD;;;;;;;;GAQG;AACH,SAAgB,6BAA6B,CAC3C,KAEC;IAED,MAAM,OAAO,GAA+B;QAC1C;YACE,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,KAAK,CAAC,KAAK,IAAI,uBAAuB;SAC7C;KACF,CAAC;IAEF,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,KAAK,CAAC,UAAU;SACvB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,IAAI,OAAO,KAAK,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;QACzC,WAAW,CAAC,IAAI,CAAC,QAAQ,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;QACpB,WAAW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C;AAdD,kDAcC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Antigravity (agy) provider section renderer for `ccs cliproxy quota`.
|
|
3
|
+
*
|
|
4
|
+
* Renders the account table with per-account average quota, tier, and status
|
|
5
|
+
* (paused / cooldown). Extracted verbatim from the original god file.
|
|
6
|
+
*/
|
|
7
|
+
import { fetchAllProviderQuotas } from '../../../../cliproxy/quota/quota-fetcher';
|
|
8
|
+
/** Render the Antigravity quota section for a fetched quota result. */
|
|
9
|
+
export declare function displayAntigravityQuotaSection(quotaResult: Awaited<ReturnType<typeof fetchAllProviderQuotas>>): void;
|
|
10
|
+
//# sourceMappingURL=antigravity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"antigravity.d.ts","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-subcommand/sections/antigravity.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAKlF,uEAAuE;AACvE,wBAAgB,8BAA8B,CAC5C,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,GAC9D,IAAI,CAwCN"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Antigravity (agy) provider section renderer for `ccs cliproxy quota`.
|
|
4
|
+
*
|
|
5
|
+
* Renders the account table with per-account average quota, tier, and status
|
|
6
|
+
* (paused / cooldown). Extracted verbatim from the original god file.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.displayAntigravityQuotaSection = void 0;
|
|
10
|
+
const account_manager_1 = require("../../../../cliproxy/accounts/account-manager");
|
|
11
|
+
const quota_manager_1 = require("../../../../cliproxy/quota/quota-manager");
|
|
12
|
+
const ui_1 = require("../../../../utils/ui");
|
|
13
|
+
const format_helpers_1 = require("../format-helpers");
|
|
14
|
+
/** Render the Antigravity quota section for a fetched quota result. */
|
|
15
|
+
function displayAntigravityQuotaSection(quotaResult) {
|
|
16
|
+
const provider = 'agy';
|
|
17
|
+
const accounts = (0, account_manager_1.getProviderAccounts)(provider);
|
|
18
|
+
console.log((0, ui_1.subheader)(`Antigravity (${accounts.length} account${accounts.length !== 1 ? 's' : ''})`));
|
|
19
|
+
console.log('');
|
|
20
|
+
const rows = [];
|
|
21
|
+
for (const account of accounts) {
|
|
22
|
+
const quotaData = quotaResult.accounts.find((q) => q.account.id === account.id);
|
|
23
|
+
const quota = quotaData?.quota;
|
|
24
|
+
let avgQuota = 'N/A';
|
|
25
|
+
if (quota?.success && quota.models.length > 0) {
|
|
26
|
+
const avg = Math.round(quota.models.reduce((sum, m) => sum + m.percentage, 0) / quota.models.length);
|
|
27
|
+
avgQuota = `${avg}%`;
|
|
28
|
+
}
|
|
29
|
+
const statusParts = [];
|
|
30
|
+
if (account.paused)
|
|
31
|
+
statusParts.push((0, ui_1.color)('PAUSED', 'warning'));
|
|
32
|
+
if ((0, quota_manager_1.isOnCooldown)(provider, account.id))
|
|
33
|
+
statusParts.push((0, ui_1.color)('COOLDOWN', 'warning'));
|
|
34
|
+
const defaultMark = account.isDefault ? (0, ui_1.color)('*', 'success') : ' ';
|
|
35
|
+
const tier = (0, format_helpers_1.resolveDisplayedTier)(account.tier, quota?.entitlement?.normalizedTier);
|
|
36
|
+
const status = statusParts.join(', ');
|
|
37
|
+
rows.push([defaultMark, (0, format_helpers_1.formatCliAccountLabel)(account), tier, avgQuota, status]);
|
|
38
|
+
}
|
|
39
|
+
console.log((0, ui_1.table)(rows, {
|
|
40
|
+
head: ['', 'Account', 'Tier', 'Quota', 'Status'],
|
|
41
|
+
colWidths: [3, 30, 10, 10, 20],
|
|
42
|
+
}));
|
|
43
|
+
console.log('');
|
|
44
|
+
}
|
|
45
|
+
exports.displayAntigravityQuotaSection = displayAntigravityQuotaSection;
|
|
46
|
+
//# sourceMappingURL=antigravity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"antigravity.js","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-subcommand/sections/antigravity.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mFAAoF;AAEpF,4EAAwE;AACxE,6CAA+D;AAC/D,sDAAgF;AAEhF,uEAAuE;AACvE,SAAgB,8BAA8B,CAC5C,WAA+D;IAE/D,MAAM,QAAQ,GAAG,KAAK,CAAC;IACvB,MAAM,QAAQ,GAAG,IAAA,qCAAmB,EAAC,QAAQ,CAAC,CAAC;IAE/C,OAAO,CAAC,GAAG,CACT,IAAA,cAAS,EAAC,gBAAgB,QAAQ,CAAC,MAAM,WAAW,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CACzF,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,MAAM,IAAI,GAAe,EAAE,CAAC;IAC5B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,SAAS,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,CAAC,CAAC;QAChF,MAAM,KAAK,GAAG,SAAS,EAAE,KAAK,CAAC;QAE/B,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,KAAK,EAAE,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CACpB,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,M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ude provider section renderer for `ccs cliproxy quota`.
|
|
3
|
+
*
|
|
4
|
+
* Renders per-account quota bars for the 5h + weekly core usage windows plus
|
|
5
|
+
* any per-model or overage windows. Extracted verbatim from the original
|
|
6
|
+
* god file.
|
|
7
|
+
*/
|
|
8
|
+
import type { ClaudeQuotaResult } from '../../../../cliproxy/quota/quota-types';
|
|
9
|
+
/** Render the Claude quota section for a list of per-account results. */
|
|
10
|
+
export declare function displayClaudeQuotaSection(results: {
|
|
11
|
+
account: string;
|
|
12
|
+
quota: ClaudeQuotaResult;
|
|
13
|
+
}[]): void;
|
|
14
|
+
//# sourceMappingURL=claude.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-subcommand/sections/claude.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAWhF,yEAAyE;AACzE,wBAAgB,yBAAyB,CACvC,OAAO,EAAE;IACP,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,iBAAiB,CAAC;CAC1B,EAAE,GACF,IAAI,CAwEN"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Claude provider section renderer for `ccs cliproxy quota`.
|
|
4
|
+
*
|
|
5
|
+
* Renders per-account quota bars for the 5h + weekly core usage windows plus
|
|
6
|
+
* any per-model or overage windows. Extracted verbatim from the original
|
|
7
|
+
* god file.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.displayClaudeQuotaSection = void 0;
|
|
11
|
+
const account_manager_1 = require("../../../../cliproxy/accounts/account-manager");
|
|
12
|
+
const ui_1 = require("../../../../utils/ui");
|
|
13
|
+
const claude_window_helpers_1 = require("../claude-window-helpers");
|
|
14
|
+
const quota_failure_display_1 = require("../quota-failure-display");
|
|
15
|
+
const format_helpers_1 = require("../format-helpers");
|
|
16
|
+
/** Render the Claude quota section for a list of per-account results. */
|
|
17
|
+
function displayClaudeQuotaSection(results) {
|
|
18
|
+
console.log((0, ui_1.subheader)(`Claude (${results.length} account${results.length !== 1 ? 's' : ''})`));
|
|
19
|
+
console.log('');
|
|
20
|
+
for (const { account, quota } of results) {
|
|
21
|
+
const accountInfo = (0, account_manager_1.findAccountByQuery)('claude', account);
|
|
22
|
+
const accountLabel = accountInfo ? (0, format_helpers_1.formatCliAccountLabel)(accountInfo) : account;
|
|
23
|
+
const defaultMark = accountInfo?.isDefault ? (0, ui_1.color)(' (default)', 'info') : '';
|
|
24
|
+
if (!quota.success) {
|
|
25
|
+
console.log(` ${(0, ui_1.fail)(accountLabel)}${defaultMark}`);
|
|
26
|
+
(0, quota_failure_display_1.displayQuotaFailure)(quota);
|
|
27
|
+
console.log('');
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
const { fiveHourWindow, weeklyWindow } = (0, claude_window_helpers_1.getClaudeCoreUsageWindows)(quota);
|
|
31
|
+
const coreWindows = [fiveHourWindow, weeklyWindow].filter((window, index, arr) => !!window && arr.indexOf(window) === index);
|
|
32
|
+
const statusWindows = coreWindows.length > 0 ? coreWindows : quota.windows.map(claude_window_helpers_1.toClaudeDisplayWindow);
|
|
33
|
+
const minQuota = statusWindows.length > 0
|
|
34
|
+
? Math.min(...statusWindows.map((window) => window.remainingPercent))
|
|
35
|
+
: null;
|
|
36
|
+
const statusIcon = minQuota === null ? (0, ui_1.info)('') : minQuota > 50 ? (0, ui_1.ok)('') : minQuota > 10 ? (0, ui_1.warn)('') : (0, ui_1.fail)('');
|
|
37
|
+
console.log(` ${statusIcon}${accountLabel}${defaultMark}`);
|
|
38
|
+
const resetParts = [];
|
|
39
|
+
if (fiveHourWindow?.resetAt)
|
|
40
|
+
resetParts.push(`5h ${(0, format_helpers_1.formatResetTimeISO)(fiveHourWindow.resetAt)}`);
|
|
41
|
+
if (weeklyWindow?.resetAt)
|
|
42
|
+
resetParts.push(`weekly ${(0, format_helpers_1.formatResetTimeISO)(weeklyWindow.resetAt)}`);
|
|
43
|
+
if (resetParts.length > 0) {
|
|
44
|
+
console.log(` ${(0, ui_1.dim)(`Reset schedule: ${resetParts.join(' | ')}`)}`);
|
|
45
|
+
}
|
|
46
|
+
const orderedWindows = [...coreWindows, ...quota.windows.map(claude_window_helpers_1.toClaudeDisplayWindow)].filter((window, index, arr) => arr.findIndex((candidate) => candidate.rateLimitType === window.rateLimitType &&
|
|
47
|
+
candidate.resetAt === window.resetAt &&
|
|
48
|
+
candidate.status === window.status) === index);
|
|
49
|
+
if (orderedWindows.length === 0) {
|
|
50
|
+
console.log(` ${(0, ui_1.dim)('Policy limits unavailable for this account')}`);
|
|
51
|
+
console.log('');
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
for (const window of orderedWindows) {
|
|
55
|
+
const bar = (0, format_helpers_1.formatQuotaBar)(window.remainingPercent);
|
|
56
|
+
const resetLabel = window.resetAt ? (0, ui_1.dim)(` Resets ${(0, format_helpers_1.formatResetTimeISO)(window.resetAt)}`) : '';
|
|
57
|
+
const statusLabel = window.status === 'rejected'
|
|
58
|
+
? (0, ui_1.dim)(' [blocked]')
|
|
59
|
+
: window.status === 'allowed_warning'
|
|
60
|
+
? (0, ui_1.dim)(' [warning]')
|
|
61
|
+
: '';
|
|
62
|
+
console.log(` ${(0, claude_window_helpers_1.getClaudeWindowDisplayLabel)(window).padEnd(24)} ${bar} ${window.remainingPercent.toFixed(0)}%${statusLabel}${resetLabel}`);
|
|
63
|
+
}
|
|
64
|
+
console.log('');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.displayClaudeQuotaSection = displayClaudeQuotaSection;
|
|
68
|
+
//# sourceMappingURL=claude.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-sub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C,CAAC,IAAA,QAAG,EAAC,YAAY,CAAC;oBACnB,CAAC,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,GAAG,CACT,OAAO,IAAA,mDAA2B,EAAC,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,GAAG,IAAI,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,WAAW,GAAG,UAAU,EAAE,CACjI,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AA7ED,8DA6EC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codex provider section renderer for `ccs cliproxy quota`.
|
|
3
|
+
*
|
|
4
|
+
* Renders per-account quota bars for the 5h + weekly core usage windows plus
|
|
5
|
+
* any additional feature windows (e.g. Codex Spark). Extracted verbatim from
|
|
6
|
+
* the original god file.
|
|
7
|
+
*/
|
|
8
|
+
import type { CodexQuotaResult } from '../../../../cliproxy/quota/quota-types';
|
|
9
|
+
/** Render the Codex quota section for a list of per-account results. */
|
|
10
|
+
export declare function displayCodexQuotaSection(results: {
|
|
11
|
+
account: string;
|
|
12
|
+
quota: CodexQuotaResult;
|
|
13
|
+
}[]): void;
|
|
14
|
+
//# sourceMappingURL=codex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-subcommand/sections/codex.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAU/E,wEAAwE;AACxE,wBAAgB,wBAAwB,CACtC,OAAO,EAAE;IACP,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,gBAAgB,CAAC;CACzB,EAAE,GACF,IAAI,CA4EN"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Codex provider section renderer for `ccs cliproxy quota`.
|
|
4
|
+
*
|
|
5
|
+
* Renders per-account quota bars for the 5h + weekly core usage windows plus
|
|
6
|
+
* any additional feature windows (e.g. Codex Spark). Extracted verbatim from
|
|
7
|
+
* the original god file.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.displayCodexQuotaSection = void 0;
|
|
11
|
+
const account_manager_1 = require("../../../../cliproxy/accounts/account-manager");
|
|
12
|
+
const ui_1 = require("../../../../utils/ui");
|
|
13
|
+
const codex_window_helpers_1 = require("../codex-window-helpers");
|
|
14
|
+
const quota_failure_display_1 = require("../quota-failure-display");
|
|
15
|
+
const format_helpers_1 = require("../format-helpers");
|
|
16
|
+
/** Render the Codex quota section for a list of per-account results. */
|
|
17
|
+
function displayCodexQuotaSection(results) {
|
|
18
|
+
console.log((0, ui_1.subheader)(`Codex (${results.length} account${results.length !== 1 ? 's' : ''})`));
|
|
19
|
+
console.log('');
|
|
20
|
+
for (const { account, quota } of results) {
|
|
21
|
+
const accountInfo = (0, account_manager_1.findAccountByQuery)('codex', account);
|
|
22
|
+
const accountLabel = accountInfo ? (0, format_helpers_1.formatCliAccountLabel)(accountInfo) : account;
|
|
23
|
+
const defaultMark = accountInfo?.isDefault ? (0, ui_1.color)(' (default)', 'info') : '';
|
|
24
|
+
if (!quota.success) {
|
|
25
|
+
console.log(` ${(0, ui_1.fail)(accountLabel)}${defaultMark}`);
|
|
26
|
+
(0, quota_failure_display_1.displayQuotaFailure)(quota);
|
|
27
|
+
console.log('');
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
const { fiveHourWindow, weeklyWindow } = (0, codex_window_helpers_1.getCodexCoreUsageWindows)(quota.windows);
|
|
31
|
+
const coreUsageWindows = [fiveHourWindow, weeklyWindow].filter((w, index, arr) => !!w && arr.indexOf(w) === index);
|
|
32
|
+
const statusWindows = coreUsageWindows.length > 0 ? coreUsageWindows : quota.windows;
|
|
33
|
+
const avgQuota = statusWindows.length > 0
|
|
34
|
+
? statusWindows.reduce((sum, w) => sum + w.remainingPercent, 0) / statusWindows.length
|
|
35
|
+
: 0;
|
|
36
|
+
const statusIcon = avgQuota > 50 ? (0, ui_1.ok)('') : avgQuota > 10 ? (0, ui_1.warn)('') : (0, ui_1.fail)('');
|
|
37
|
+
const planBadge = quota.planType ? (0, ui_1.color)(` [${quota.planType}]`, 'info') : '';
|
|
38
|
+
console.log(` ${statusIcon}${accountLabel}${defaultMark}${planBadge}`);
|
|
39
|
+
const coreUsageSummary = quota.coreUsage ?? {
|
|
40
|
+
fiveHour: fiveHourWindow
|
|
41
|
+
? {
|
|
42
|
+
label: fiveHourWindow.label,
|
|
43
|
+
remainingPercent: fiveHourWindow.remainingPercent,
|
|
44
|
+
resetAfterSeconds: fiveHourWindow.resetAfterSeconds,
|
|
45
|
+
resetAt: fiveHourWindow.resetAt,
|
|
46
|
+
}
|
|
47
|
+
: null,
|
|
48
|
+
weekly: weeklyWindow
|
|
49
|
+
? {
|
|
50
|
+
label: weeklyWindow.label,
|
|
51
|
+
remainingPercent: weeklyWindow.remainingPercent,
|
|
52
|
+
resetAfterSeconds: weeklyWindow.resetAfterSeconds,
|
|
53
|
+
resetAt: weeklyWindow.resetAt,
|
|
54
|
+
}
|
|
55
|
+
: null,
|
|
56
|
+
};
|
|
57
|
+
const resetParts = [];
|
|
58
|
+
const fiveHourReset = coreUsageSummary.fiveHour
|
|
59
|
+
? (0, codex_window_helpers_1.formatCodexWindowReset)(coreUsageSummary.fiveHour)
|
|
60
|
+
: null;
|
|
61
|
+
const weeklyReset = coreUsageSummary.weekly
|
|
62
|
+
? (0, codex_window_helpers_1.formatCodexWindowReset)(coreUsageSummary.weekly)
|
|
63
|
+
: null;
|
|
64
|
+
if (fiveHourReset)
|
|
65
|
+
resetParts.push(`5h ${fiveHourReset}`);
|
|
66
|
+
if (weeklyReset)
|
|
67
|
+
resetParts.push(`weekly ${weeklyReset}`);
|
|
68
|
+
if (resetParts.length > 0) {
|
|
69
|
+
console.log(` ${(0, ui_1.dim)(`Reset schedule: ${resetParts.join(' | ')}`)}`);
|
|
70
|
+
}
|
|
71
|
+
const orderedWindows = [fiveHourWindow, weeklyWindow, ...quota.windows].filter((w, index, arr) => !!w && arr.indexOf(w) === index);
|
|
72
|
+
for (const window of orderedWindows) {
|
|
73
|
+
const bar = (0, format_helpers_1.formatQuotaBar)(window.remainingPercent);
|
|
74
|
+
const resetValue = (0, codex_window_helpers_1.formatCodexWindowReset)(window);
|
|
75
|
+
const resetLabel = resetValue ? (0, ui_1.dim)(` Resets ${resetValue}`) : '';
|
|
76
|
+
console.log(` ${(0, codex_window_helpers_1.getCodexWindowDisplayLabel)(window, orderedWindows).padEnd(24)} ${bar} ${window.remainingPercent.toFixed(0)}%${resetLabel}`);
|
|
77
|
+
}
|
|
78
|
+
console.log('');
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.displayCodexQuotaSection = displayCodexQuotaSection;
|
|
82
|
+
//# sourceMappingURL=codex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-subcommand/sections/codex.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,mFAAmF;AAEnF,6CAA6E;AAC7E,kEAIiC;AACjC,oEAA+D;AAC/D,sDAA0E;AAE1E,wEAAwE;AACxE,SAAgB,wBAAwB,CACtC,OAGG;IAEH,OAAO,CAAC,GAAG,CAAC,IAAA,cAAS,EAAC,UAAU,OAAO,CAAC,MAAM,WAAW,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC9F,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,KAAK,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,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AAC,IAAI,UAAU,EAAE,CAClI,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAjFD,4DAiFC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gemini CLI provider section renderer for `ccs cliproxy quota`.
|
|
3
|
+
*
|
|
4
|
+
* Renders per-account quota bars for each bucket (requests, tokens, etc.)
|
|
5
|
+
* plus project, tier, and credit balance metadata. Extracted verbatim from
|
|
6
|
+
* the original god file.
|
|
7
|
+
*/
|
|
8
|
+
import type { GeminiCliQuotaResult } from '../../../../cliproxy/quota/quota-types';
|
|
9
|
+
/** Render the Gemini CLI quota section for a list of per-account results. */
|
|
10
|
+
export declare function displayGeminiCliQuotaSection(results: {
|
|
11
|
+
account: string;
|
|
12
|
+
quota: GeminiCliQuotaResult;
|
|
13
|
+
}[]): void;
|
|
14
|
+
//# sourceMappingURL=gemini-cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemini-cli.d.ts","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-subcommand/sections/gemini-cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAKnF,6EAA6E;AAC7E,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE;IACP,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,oBAAoB,CAAC;CAC7B,EAAE,GACF,IAAI,CAsDN"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Gemini CLI provider section renderer for `ccs cliproxy quota`.
|
|
4
|
+
*
|
|
5
|
+
* Renders per-account quota bars for each bucket (requests, tokens, etc.)
|
|
6
|
+
* plus project, tier, and credit balance metadata. Extracted verbatim from
|
|
7
|
+
* the original god file.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.displayGeminiCliQuotaSection = void 0;
|
|
11
|
+
const account_manager_1 = require("../../../../cliproxy/accounts/account-manager");
|
|
12
|
+
const ui_1 = require("../../../../utils/ui");
|
|
13
|
+
const quota_failure_display_1 = require("../quota-failure-display");
|
|
14
|
+
const format_helpers_1 = require("../format-helpers");
|
|
15
|
+
/** Render the Gemini CLI quota section for a list of per-account results. */
|
|
16
|
+
function displayGeminiCliQuotaSection(results) {
|
|
17
|
+
console.log((0, ui_1.subheader)(`Gemini CLI (${results.length} account${results.length !== 1 ? 's' : ''})`));
|
|
18
|
+
console.log('');
|
|
19
|
+
for (const { account, quota } of results) {
|
|
20
|
+
const accountInfo = (0, account_manager_1.findAccountByQuery)('gemini', account);
|
|
21
|
+
const accountLabel = accountInfo ? (0, format_helpers_1.formatCliAccountLabel)(accountInfo) : account;
|
|
22
|
+
const defaultMark = accountInfo?.isDefault ? (0, ui_1.color)(' (default)', 'info') : '';
|
|
23
|
+
if (!quota.success) {
|
|
24
|
+
console.log(` ${(0, ui_1.fail)(accountLabel)}${defaultMark}`);
|
|
25
|
+
(0, quota_failure_display_1.displayQuotaFailure)(quota);
|
|
26
|
+
console.log('');
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
const avgQuota = quota.buckets.length > 0
|
|
30
|
+
? quota.buckets.reduce((sum, b) => sum + b.remainingPercent, 0) / quota.buckets.length
|
|
31
|
+
: 0;
|
|
32
|
+
const statusIcon = avgQuota > 50 ? (0, ui_1.ok)('') : avgQuota > 10 ? (0, ui_1.warn)('') : (0, ui_1.fail)('');
|
|
33
|
+
console.log(` ${statusIcon}${accountLabel}${defaultMark}`);
|
|
34
|
+
if (quota.projectId) {
|
|
35
|
+
console.log(` Project: ${(0, ui_1.dim)(quota.projectId)}`);
|
|
36
|
+
}
|
|
37
|
+
if (quota.tierLabel) {
|
|
38
|
+
console.log(` Tier: ${(0, ui_1.dim)(quota.tierLabel)}`);
|
|
39
|
+
}
|
|
40
|
+
if (quota.entitlement?.rawTierId) {
|
|
41
|
+
console.log(` Tier ID: ${(0, ui_1.dim)(quota.entitlement.rawTierId)}`);
|
|
42
|
+
}
|
|
43
|
+
if (quota.creditBalance !== null && quota.creditBalance !== undefined) {
|
|
44
|
+
console.log(` Credits: ${(0, ui_1.dim)(quota.creditBalance.toLocaleString())}`);
|
|
45
|
+
}
|
|
46
|
+
for (const bucket of quota.buckets) {
|
|
47
|
+
const bar = (0, format_helpers_1.formatQuotaBar)(bucket.remainingPercent);
|
|
48
|
+
const tokenLabel = bucket.tokenType ? (0, ui_1.dim)(` (${bucket.tokenType})`) : '';
|
|
49
|
+
const amountLabel = bucket.remainingAmount !== null && bucket.remainingAmount !== undefined
|
|
50
|
+
? (0, ui_1.dim)(` ${bucket.remainingAmount.toLocaleString()} left`)
|
|
51
|
+
: '';
|
|
52
|
+
const resetLabel = bucket.resetTime
|
|
53
|
+
? (0, ui_1.dim)(` Resets ${(0, format_helpers_1.formatResetTimeISO)(bucket.resetTime)}`)
|
|
54
|
+
: '';
|
|
55
|
+
console.log(` ${bucket.label.padEnd(24)} ${bar} ${bucket.remainingPercent.toFixed(0)}%${tokenLabel}${amountLabel}${resetLabel}`);
|
|
56
|
+
}
|
|
57
|
+
console.log('');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.displayGeminiCliQuotaSection = displayGeminiCliQuotaSection;
|
|
61
|
+
//# sourceMappingURL=gemini-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemini-cli.js","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-subcommand/sections/gemini-cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,mFAAmF;AAEnF,6CAA6E;AAC7E,oEAA+D;AAC/D,sDAA8F;AAE9F,6EAA6E;AAC7E,SAAgB,4BAA4B,CAC1C,OAGG;IAEH,OAAO,CAAC,GAAG,C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