@kaitranntt/ccs 8.4.0-dev.9 → 8.5.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/README.md +4 -1
- 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/auth/profile-registry.d.ts.map +1 -1
- package/dist/auth/profile-registry.js +13 -12
- package/dist/auth/profile-registry.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/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 +40 -5
- 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/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/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/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/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 +260 -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/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/profile-resolver.d.ts.map +1 -1
- package/dist/dispatcher/profile-resolver.js +16 -16
- 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/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/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.js +7 -7
- package/dist/shared/provider-preset-catalog.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/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-BXjW_Rw3.js → Trans-GYzYLs2D.js} +1 -1
- package/dist/ui/assets/{accounts-C7JMc-UL.js → accounts-DC1QuyI9.js} +1 -1
- package/dist/ui/assets/{alert-dialog-BSSHnWG_.js → alert-dialog-6SiedqmE.js} +1 -1
- package/dist/ui/assets/{api-GzEZNvOJ.js → api-3s21dbNJ.js} +1 -1
- package/dist/ui/assets/{auth-section-B6k7LWIq.js → auth-section-XBfNgVN4.js} +1 -1
- package/dist/ui/assets/{backups-section-Cr3g01YN.js → backups-section-BidiiVlq.js} +1 -1
- package/dist/ui/assets/{channels-CMyh1yhN.js → channels-pfgPUDGt.js} +1 -1
- package/dist/ui/assets/{checkbox-BkqYXiER.js → checkbox-CJw_-nvC.js} +1 -1
- package/dist/ui/assets/{claude-extension-BzYl3zcz.js → claude-extension-BIIUOvTJ.js} +1 -1
- package/dist/ui/assets/{cliproxy-DwzKzuZI.js → cliproxy-Cq8OX0Pu.js} +1 -1
- package/dist/ui/assets/{cliproxy-ai-providers-DL95SYNa.js → cliproxy-ai-providers-DI760ZF0.js} +1 -1
- package/dist/ui/assets/{cliproxy-control-panel-Ba2Rgzdo.js → cliproxy-control-panel-CBqvpOqj.js} +1 -1
- package/dist/ui/assets/{codex-ClTEGCnr.js → codex-DL4OLBUu.js} +1 -1
- package/dist/ui/assets/{confirm-dialog-BPAO4ILr.js → confirm-dialog-CC_Cc3EO.js} +1 -1
- package/dist/ui/assets/{copilot-CymHD4gl.js → copilot-D2kEhTXR.js} +1 -1
- package/dist/ui/assets/{cursor-DAiPXs8h.js → cursor-BashLrYk.js} +1 -1
- package/dist/ui/assets/{droid-CAhLWDOj.js → droid-DaKTINFL.js} +1 -1
- package/dist/ui/assets/{globalenv-section-BK5x_uXG.js → globalenv-section-BQicL8L0.js} +1 -1
- package/dist/ui/assets/{health-D_ErMvYv.js → health-bRbE_ADg.js} +1 -1
- package/dist/ui/assets/{index-BcfwoMDm.js → index-B2JEyN3d.js} +36 -36
- package/dist/ui/assets/{index-B4cUkPwc.js → index-BwZdl1HU.js} +1 -1
- package/dist/ui/assets/{index-BZMyk4bI.js → index-CgeAb1-K.js} +1 -1
- package/dist/ui/assets/{index-BmbKPprT.js → index-DAQ0qIQ_.js} +1 -1
- package/dist/ui/assets/{index-CEjVNSjg.js → index-O2x1grGh.js} +1 -1
- package/dist/ui/assets/{index-DCC80SZ0.js → index-WA7tK6np.js} +1 -1
- package/dist/ui/assets/{index-CFDjAXOB.js → index-mf2X1GwS.js} +1 -1
- package/dist/ui/assets/{logs-DwhXr-9Y.js → logs-qrBHUJ0H.js} +1 -1
- package/dist/ui/assets/{masked-input-DWJTe7jh.js → masked-input-CXwQ4E-g.js} +1 -1
- package/dist/ui/assets/{proxy-status-widget-CJXi8yui.js → proxy-status-widget-DPz4nCzR.js} +1 -1
- package/dist/ui/assets/{raw-json-settings-editor-panel-DWhAi0kI.js → raw-json-settings-editor-panel-CcvsWVh1.js} +1 -1
- package/dist/ui/assets/{searchable-select-CYC4Y8pS.js → searchable-select-EXSjNCRu.js} +1 -1
- package/dist/ui/assets/{separator-JhuNwVKE.js → separator-D2CTfWBQ.js} +1 -1
- package/dist/ui/assets/{shared-Hpgs7l5G.js → shared-DpgzhFqe.js} +1 -1
- package/dist/ui/assets/{table-DDJTZfyL.js → table-DwbiGRYk.js} +1 -1
- package/dist/ui/assets/{updates-CtygOHUO.js → updates-D8jfIb2y.js} +1 -1
- package/dist/ui/assets/{use-accounts-CaptC8AS.js → use-accounts-Bwtpnx-x.js} +1 -1
- package/dist/ui/index.html +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/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/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 +10 -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/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/hardening-inventory.js +62 -4
- package/scripts/maintainability-metrics.js +356 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota-failure-display.js","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/quota-failure-display.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,KAAK;YACX,IAAI,EAAE,WAAW,gBAAgB,EAAE;SACpC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AA9CD,sEA8CC;AAED,sEAAsE;AACtE,SAAgB,mBAAmB,CACjC,KAEC;IAED,KAAK,MAAM,KAAK,IAAI,6BAA6B,CAAC,KAAK,CAAC,EAAE,CAAC;QACzD,MAAM,QAAQ,GACZ,KAAK,CAAC,IAAI,KAAK,OAAO;YACpB,CAAC,CAAC,IAAA,UAAK,EAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC;YAC5B,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM;gBACrB,CAAC,CAAC,IAAA,SAAI,EAAC,KAAK,CAAC,IAAI,CAAC;gBAClB,CAAC,CAAC,IAAA,QAAG,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,OAAO,CAAC,GAAG,CAAC,OAAO,QAAQ,EAAE,CAAC,CAAC;IACjC,CAAC;AACH,CAAC;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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,EAAE,cAAc,CAAC,CAAC;QACpF,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEtC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,IAAA,sCAAqB,EAAC,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IACnF,CAAC;IAED,OAAO,CAAC,GAAG,CACT,IAAA,UAAK,EAAC,IAAI,EAAE;QACV,IAAI,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;QAChD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;KAC/B,CAAC,CACH,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC;AA1CD,wEA0CC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude 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-subcommand/sections/claude.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,mFAAmF;AAEnF,6CAAmF;AACnF,oEAIkC;AAClC,oEAA+D;AAC/D,sDAA8F;AAG9F,yEAAyE;AACzE,SAAgB,yBAAyB,CACvC,OAGG;IAEH,OAAO,CAAC,GAAG,CAAC,IAAA,cAAS,EAAC,WAAW,OAAO,CAAC,MAAM,WAAW,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC/F,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,KAAK,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,OAAO,EAAE,CAAC;QACzC,MAAM,WAAW,GAAG,IAAA,oCAAkB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC1D,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC,IAA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,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,OAAO,IAAA,QAAG,EAAC,4CAA4C,CAAC,EAAE,CAAC,CAAC;YACxE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAChB,SAAS;QACX,CAAC;QAED,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE,CAAC;YACpC,MAAM,GAAG,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YACpD,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,QAAG,EAAC,WAAW,IAAA,mCAAkB,EAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9F,MAAM,WAAW,GACf,MAAM,CAAC,MAAM,KAAK,UAAU;gBAC1B,CAAC,CAAC,IAAA,QAAG,EAAC,YAAY,CAAC;gBACnB,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,iBAAiB;oBACnC,CAAC,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,IAAI,OAAO,EAAE,CAAC;QACzC,MAAM,WAAW,GAAG,IAAA,oCAAkB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACzD,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC,IAAA,sCAAqB,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QAChF,MAAM,WAAW,GAAG,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,IAAA,UAAK,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAE9E,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YACnB,OAAO,CAAC,GAAG,CAAC,KAAK,IAAA,SAAI,EAAC,YAAY,CAAC,GAAG,WAAW,EAAE,CAAC,CAAC;YACrD,IAAA,2CAAmB,EAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAChB,SAAS;QACX,CAAC;QA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C5E,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAA8B,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,KAAK,CAC/E,CAAC;QAEF,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE,CAAC;YACpC,MAAM,GAAG,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YACpD,MAAM,UAAU,GAAG,IAAA,6CAAsB,EAAC,MAAM,CAAC,CAAC;YAClD,MAAM,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,IAAA,QAAG,EAAC,WAAW,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAClE,OAAO,CAAC,GAAG,CACT,OAAO,IAAA,iDAA0B,EAAC,MAAM,EAAE,cAAc,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,GAAG,IAAI,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,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,CACT,IAAA,cAAS,EAAC,eAAe,OAAO,CAAC,MAAM,WAAW,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CACtF,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,KAAK,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,OAAO,EAAE,CAAC;QACzC,MAAM,WAAW,GAAG,IAAA,oCAAkB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC1D,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC,IAAA,sCAAqB,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QAChF,MAAM,WAAW,GAAG,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,IAAA,UAAK,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAE9E,IAAI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AAC;IAClB,CAAC;AACH,CAAC;AA3DD,oEA2DC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub Copilot (ghcp) provider section renderer for `ccs cliproxy quota`.
|
|
3
|
+
*
|
|
4
|
+
* Renders per-account quota bars for premium interactions, chat, and
|
|
5
|
+
* completions snapshots. Extracted verbatim from the original god file.
|
|
6
|
+
*/
|
|
7
|
+
import type { GhcpQuotaResult } from '../../../../cliproxy/quota/quota-types';
|
|
8
|
+
/** Render the GitHub Copilot quota section for a list of per-account results. */
|
|
9
|
+
export declare function displayGhcpQuotaSection(results: {
|
|
10
|
+
account: string;
|
|
11
|
+
quota: GhcpQuotaResult;
|
|
12
|
+
}[]): void;
|
|
13
|
+
//# sourceMappingURL=ghcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ghcp.d.ts","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-subcommand/sections/ghcp.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAe9E,iFAAiF;AACjF,wBAAgB,uBAAuB,CACrC,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAAE,EAAE,GACrD,IAAI,CAuDN"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* GitHub Copilot (ghcp) provider section renderer for `ccs cliproxy quota`.
|
|
4
|
+
*
|
|
5
|
+
* Renders per-account quota bars for premium interactions, chat, and
|
|
6
|
+
* completions snapshots. Extracted verbatim from the original god file.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.displayGhcpQuotaSection = void 0;
|
|
10
|
+
const account_manager_1 = require("../../../../cliproxy/accounts/account-manager");
|
|
11
|
+
const ui_1 = require("../../../../utils/ui");
|
|
12
|
+
const quota_failure_display_1 = require("../quota-failure-display");
|
|
13
|
+
const format_helpers_1 = require("../format-helpers");
|
|
14
|
+
/** Format a single snapshot as a "used/entitlement" or "N% used (unlimited)" label. */
|
|
15
|
+
function formatSnapshotLabel(snapshot) {
|
|
16
|
+
if (snapshot.unlimited) {
|
|
17
|
+
return `${snapshot.percentUsed.toFixed(0)}% used (unlimited)`;
|
|
18
|
+
}
|
|
19
|
+
return `${snapshot.used}/${snapshot.entitlement} used`;
|
|
20
|
+
}
|
|
21
|
+
/** Render the GitHub Copilot quota section for a list of per-account results. */
|
|
22
|
+
function displayGhcpQuotaSection(results) {
|
|
23
|
+
console.log((0, ui_1.subheader)(`GitHub Copilot (${results.length} account${results.length !== 1 ? 's' : ''})`));
|
|
24
|
+
console.log('');
|
|
25
|
+
for (const { account, quota } of results) {
|
|
26
|
+
const accountInfo = (0, account_manager_1.findAccountByQuery)('ghcp', account);
|
|
27
|
+
const accountLabel = accountInfo ? (0, format_helpers_1.formatCliAccountLabel)(accountInfo) : account;
|
|
28
|
+
const defaultMark = accountInfo?.isDefault ? (0, ui_1.color)(' (default)', 'info') : '';
|
|
29
|
+
if (!quota.success) {
|
|
30
|
+
console.log(` ${(0, ui_1.fail)(accountLabel)}${defaultMark}`);
|
|
31
|
+
(0, quota_failure_display_1.displayQuotaFailure)(quota);
|
|
32
|
+
console.log('');
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
const reportedSnapshots = [
|
|
36
|
+
quota.snapshots.premiumInteractions,
|
|
37
|
+
quota.snapshots.chat,
|
|
38
|
+
quota.snapshots.completions,
|
|
39
|
+
].filter((snapshot) => snapshot.reported !== false);
|
|
40
|
+
const rows = reportedSnapshots.map((snapshot) => snapshot.unlimited ? 100 : snapshot.percentRemaining);
|
|
41
|
+
const minQuota = rows.length > 0 ? Math.min(...rows) : null;
|
|
42
|
+
const statusIcon = minQuota === null ? (0, ui_1.info)('') : minQuota > 50 ? (0, ui_1.ok)('') : minQuota > 10 ? (0, ui_1.warn)('') : (0, ui_1.fail)('');
|
|
43
|
+
const planBadge = quota.planType ? (0, ui_1.color)(` [${quota.planType}]`, 'info') : '';
|
|
44
|
+
console.log(` ${statusIcon}${accountLabel}${defaultMark}${planBadge}`);
|
|
45
|
+
if (quota.quotaResetDate) {
|
|
46
|
+
console.log(` ${(0, ui_1.dim)(`Resets ${(0, format_helpers_1.formatResetTimeISO)(quota.quotaResetDate)}`)}`);
|
|
47
|
+
}
|
|
48
|
+
const allItems = [
|
|
49
|
+
['Premium interactions', quota.snapshots.premiumInteractions],
|
|
50
|
+
['Chat', quota.snapshots.chat],
|
|
51
|
+
['Completions', quota.snapshots.completions],
|
|
52
|
+
];
|
|
53
|
+
const items = allItems.filter(([, snapshot]) => snapshot.reported !== false);
|
|
54
|
+
for (const [label, snapshot] of items) {
|
|
55
|
+
const bar = (0, format_helpers_1.formatQuotaBar)(snapshot.percentRemaining);
|
|
56
|
+
const usageLabel = (0, ui_1.dim)(` ${formatSnapshotLabel(snapshot)}`);
|
|
57
|
+
console.log(` ${label.padEnd(24)} ${bar} ${snapshot.percentRemaining.toFixed(0)}%${usageLabel}`);
|
|
58
|
+
}
|
|
59
|
+
console.log('');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.displayGhcpQuotaSection = displayGhcpQuotaSection;
|
|
63
|
+
//# sourceMappingURL=ghcp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ghcp.js","sourceRoot":"","sources":["../../../../../src/commands/cliproxy/quota-subcommand/sections/ghcp.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mFAAmF;AAEnF,6CAAmF;AACnF,oEAA+D;AAC/D,sDAA8F;AAE9F,uFAAuF;AACvF,SAAS,mBAAmB,CAC1B,QAA0E;IAE1E,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;QACvB,OAAO,GAAG,QAAQ,CAAC,WAAW,CAAC,OAAO,CAA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AAC;YAC7D,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC;YAC9B,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;SAC7C,CAAC;QACF,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,KAAK,KAAK,CAAC,CAAC;QAE7E,KAAK,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC;YACtC,MAAM,GAAG,GAAG,IAAA,+BAAc,EAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;YACtD,MAAM,UAAU,GAAG,IAAA,QAAG,EAAC,IAAI,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAC5D,OAAO,CAAC,GAAG,CACT,OAAO,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,GAAG,IAAI,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,UAAU,EAAE,CACvF,CAAC;QACJ,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAzDD,0DAyDC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal test-only exports for the quota subcommand.
|
|
3
|
+
*
|
|
4
|
+
* The unit test at tests/unit/commands/cliproxy-quota-subcommand.test.ts loads
|
|
5
|
+
* the barrel module and reads `__testExports` to exercise pure helpers. Keep
|
|
6
|
+
* this surface stable: adding a key is fine, but removing or renaming one
|
|
7
|
+
* will break the test.
|
|
8
|
+
*/
|
|
9
|
+
import { getCodexWindowDisplayLabel } from './codex-window-helpers';
|
|
10
|
+
import { getQuotaFailureDisplayEntries } from './quota-failure-display';
|
|
11
|
+
import { prettifyCodexFeatureLabel } from './codex-window-helpers';
|
|
12
|
+
import { resolveDisplayedTier } from './format-helpers';
|
|
13
|
+
export declare const __testExports: {
|
|
14
|
+
getCodexWindowDisplayLabel: typeof getCodexWindowDisplayLabel;
|
|
15
|
+
getQuotaFailureDisplayEntries: typeof getQuotaFailureDisplayEntries;
|
|
16
|
+
prettifyCodexFeatureLabel: typeof prettifyCodexFeatureLabel;
|
|
17
|
+
resolveDisplayedTier: typeof resolveDisplayedTier;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=test-exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-exports.d.ts","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/test-exports.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,aAAa;;;;;CAKzB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Internal test-only exports for the quota subcommand.
|
|
4
|
+
*
|
|
5
|
+
* The unit test at tests/unit/commands/cliproxy-quota-subcommand.test.ts loads
|
|
6
|
+
* the barrel module and reads `__testExports` to exercise pure helpers. Keep
|
|
7
|
+
* this surface stable: adding a key is fine, but removing or renaming one
|
|
8
|
+
* will break the test.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.__testExports = void 0;
|
|
12
|
+
const codex_window_helpers_1 = require("./codex-window-helpers");
|
|
13
|
+
const quota_failure_display_1 = require("./quota-failure-display");
|
|
14
|
+
const codex_window_helpers_2 = require("./codex-window-helpers");
|
|
15
|
+
const format_helpers_1 = require("./format-helpers");
|
|
16
|
+
exports.__testExports = {
|
|
17
|
+
getCodexWindowDisplayLabel: codex_window_helpers_1.getCodexWindowDisplayLabel,
|
|
18
|
+
getQuotaFailureDisplayEntries: quota_failure_display_1.getQuotaFailureDisplayEntries,
|
|
19
|
+
prettifyCodexFeatureLabel: codex_window_helpers_2.prettifyCodexFeatureLabel,
|
|
20
|
+
resolveDisplayedTier: format_helpers_1.resolveDisplayedTier,
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=test-exports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-exports.js","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/test-exports.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,iEAAoE;AACpE,mEAAwE;AACxE,iEAAmE;AACnE,qDAAwD;AAE3C,QAAA,aAAa,GAAG;IAC3B,0BAA0B,EAA1B,iDAA0B;IAC1B,6BAA6B,EAA7B,qDAA6B;IAC7B,yBAAyB,EAAzB,gDAAyB;IACzB,oBAAoB,EAApB,qCAAoB;CACrB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for the quota-subcommand split.
|
|
3
|
+
*
|
|
4
|
+
* These types are implementation details of the quota CLI but are exposed via
|
|
5
|
+
* the barrel so submodules can avoid circular imports.
|
|
6
|
+
*/
|
|
7
|
+
/** Arguments accepted by account-management subcommands (default/pause/resume). */
|
|
8
|
+
export interface CliproxyProfileArgs {
|
|
9
|
+
name?: string;
|
|
10
|
+
provider?: string;
|
|
11
|
+
model?: string;
|
|
12
|
+
account?: string;
|
|
13
|
+
force?: boolean;
|
|
14
|
+
yes?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Tone of a single quota-failure display line. Drives coloring. */
|
|
17
|
+
export type QuotaFailureDisplayTone = 'error' | 'info' | 'dim';
|
|
18
|
+
/** A single rendered line in a quota failure block. */
|
|
19
|
+
export interface QuotaFailureDisplayEntry {
|
|
20
|
+
tone: QuotaFailureDisplayTone;
|
|
21
|
+
text: string;
|
|
22
|
+
}
|
|
23
|
+
/** Normalized shape of a Claude window used by the CLI renderer. */
|
|
24
|
+
export interface ClaudeDisplayWindow {
|
|
25
|
+
rateLimitType: string;
|
|
26
|
+
label: string;
|
|
27
|
+
remainingPercent: number;
|
|
28
|
+
resetAt: string | null;
|
|
29
|
+
status: string;
|
|
30
|
+
}
|
|
31
|
+
/** Coarse classification of a Codex rate-limit window label. */
|
|
32
|
+
export type CodexWindowKind = 'usage-5h' | 'usage-weekly' | 'code-review-5h' | 'code-review-weekly' | 'code-review' | 'unknown';
|
|
33
|
+
/** Runtime adapter that knows how to fetch/render a single quota provider. */
|
|
34
|
+
export interface QuotaProviderRuntime {
|
|
35
|
+
fetch: (verbose: boolean) => Promise<unknown>;
|
|
36
|
+
hasData: (result: unknown) => boolean;
|
|
37
|
+
render: (result: unknown) => void;
|
|
38
|
+
emptyTitle: string;
|
|
39
|
+
emptyMessage: string;
|
|
40
|
+
authCommand: string;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,mFAAmF;AACnF,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,oEAAoE;AACpE,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;AAE/D,uDAAuD;AACvD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oEAAoE;AACpE,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,gEAAgE;AAChE,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,cAAc,GACd,gBAAgB,GAChB,oBAAoB,GACpB,aAAa,GACb,SAAS,CAAC;AAEd,8EAA8E;AAC9E,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9C,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC;IACtC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shared types for the quota-subcommand split.
|
|
4
|
+
*
|
|
5
|
+
* These types are implementation details of the quota CLI but are exposed via
|
|
6
|
+
* the barrel so submodules can avoid circular imports.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/commands/cliproxy/quota-subcommand/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|