@kaitranntt/ccs 8.4.0-dev.1 → 8.4.0-dev.11
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 +1 -1
- package/config/base-claude.settings.json +1 -1
- 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 +6 -5
- package/dist/cliproxy/auth/oauth-handler.js.map +1 -1
- package/dist/cliproxy/auth/provider-refreshers/index.d.ts.map +1 -1
- package/dist/cliproxy/auth/provider-refreshers/index.js +2 -1
- package/dist/cliproxy/auth/provider-refreshers/index.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 +17 -13
- 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/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/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 +2 -2
- package/dist/commands/bar/help-subcommand.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/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/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 +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/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 +3 -1
- 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 +35 -14
- 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 -11
- package/dist/dispatcher/flows/cliproxy-flow.js.map +1 -1
- package/dist/dispatcher/flows/settings-flow.d.ts.map +1 -1
- package/dist/dispatcher/flows/settings-flow.js +27 -27
- package/dist/dispatcher/flows/settings-flow.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/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.d.ts +1 -1
- package/dist/shared/provider-preset-catalog.d.ts.map +1 -1
- package/dist/shared/provider-preset-catalog.js +14 -0
- 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-BXjW_Rw3.js} +1 -1
- package/dist/ui/assets/{accounts-yTXURc-q.js → accounts-C7JMc-UL.js} +1 -1
- package/dist/ui/assets/{alert-dialog-DjvPgzFs.js → alert-dialog-BSSHnWG_.js} +1 -1
- package/dist/ui/assets/{api-Ck1dtNEM.js → api-GzEZNvOJ.js} +1 -1
- package/dist/ui/assets/{auth-section-DBnY_LPz.js → auth-section-B6k7LWIq.js} +1 -1
- package/dist/ui/assets/{backups-section-Ci-uL4Of.js → backups-section-Cr3g01YN.js} +1 -1
- package/dist/ui/assets/{channels-BeS9O5q0.js → channels-CMyh1yhN.js} +1 -1
- package/dist/ui/assets/{checkbox-DFeFDZBp.js → checkbox-BkqYXiER.js} +1 -1
- package/dist/ui/assets/{claude-extension-DS5qN19Z.js → claude-extension-BzYl3zcz.js} +1 -1
- package/dist/ui/assets/{cliproxy-D7HJH4mZ.js → cliproxy-DwzKzuZI.js} +1 -1
- package/dist/ui/assets/{cliproxy-ai-providers-oJQZXrtc.js → cliproxy-ai-providers-DL95SYNa.js} +1 -1
- package/dist/ui/assets/{cliproxy-control-panel-2mRPEcRj.js → cliproxy-control-panel-Ba2Rgzdo.js} +1 -1
- package/dist/ui/assets/{codex-D0AUQ6jA.js → codex-ClTEGCnr.js} +1 -1
- package/dist/ui/assets/{confirm-dialog-B37-CVuq.js → confirm-dialog-BPAO4ILr.js} +1 -1
- package/dist/ui/assets/{copilot-KaaW-mko.js → copilot-CymHD4gl.js} +1 -1
- package/dist/ui/assets/{cursor-BKiTgYi5.js → cursor-DAiPXs8h.js} +1 -1
- package/dist/ui/assets/{droid-DHdqGnFw.js → droid-CAhLWDOj.js} +1 -1
- package/dist/ui/assets/{globalenv-section-SfZO97nU.js → globalenv-section-BK5x_uXG.js} +1 -1
- package/dist/ui/assets/{health-CSRS9O0D.js → health-D_ErMvYv.js} +1 -1
- package/dist/ui/assets/{index-Cu_F55_O.js → index-B4cUkPwc.js} +1 -1
- package/dist/ui/assets/{index-DWUuSBUe.js → index-BZMyk4bI.js} +1 -1
- package/dist/ui/assets/{index-CGgavq2X.js → index-BcfwoMDm.js} +3 -3
- package/dist/ui/assets/{index-iQuEEGbH.js → index-BmbKPprT.js} +1 -1
- package/dist/ui/assets/{index-ChTYEBCZ.js → index-CEjVNSjg.js} +1 -1
- package/dist/ui/assets/{index-DJ66NrBH.js → index-CFDjAXOB.js} +1 -1
- package/dist/ui/assets/{index-DycwEe96.js → index-DCC80SZ0.js} +1 -1
- package/dist/ui/assets/{logs-tiZ_51mo.js → logs-DwhXr-9Y.js} +1 -1
- package/dist/ui/assets/{masked-input-D9FVoeMA.js → masked-input-DWJTe7jh.js} +1 -1
- package/dist/ui/assets/{proxy-status-widget-2k26d8pS.js → proxy-status-widget-CJXi8yui.js} +1 -1
- package/dist/ui/assets/{raw-json-settings-editor-panel-CguBh93H.js → raw-json-settings-editor-panel-DWhAi0kI.js} +1 -1
- package/dist/ui/assets/{searchable-select-C4wShshD.js → searchable-select-CYC4Y8pS.js} +1 -1
- package/dist/ui/assets/{separator-mvGlDdEW.js → separator-JhuNwVKE.js} +1 -1
- package/dist/ui/assets/{shared-Ck0yAwbs.js → shared-Hpgs7l5G.js} +1 -1
- package/dist/ui/assets/{table-DrUJOxKL.js → table-DDJTZfyL.js} +1 -1
- package/dist/ui/assets/{updates-BVHBFcq8.js → updates-CtygOHUO.js} +1 -1
- package/dist/ui/assets/{use-accounts-DLtuaniS.js → use-accounts-CaptC8AS.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/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/mcp-installer.d.ts.map +1 -1
- package/dist/utils/websearch/mcp-installer.js +14 -12
- package/dist/utils/websearch/mcp-installer.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/routes/bar-routes.d.ts.map +1 -1
- package/dist/web-server/routes/bar-routes.js +11 -2
- 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.map +1 -1
- package/dist/web-server/routes/cliproxy-auth-routes.js +6 -4
- 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/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/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,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,EAA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,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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U,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1B,OAAO,CAAC,GAAG,CAAC,OAAO,IAAA,QAAG,EAAC,mBAAmB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACzE,CAAC;QAED,MAAM,cAAc,GAAG,CAAC,cAAc,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAC5E,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,EA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,CAAC,EAAE,CAAC;YACP,OAAO,CAAC,GAAG,CACT,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,GAAG,IAAI,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,UAAU,GAAG,WAAW,GAAG,UAAU,EAAE,CACvH,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;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":["../../../../../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|
+
* 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"}
|
|
@@ -1,40 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CLIProxy Quota Management
|
|
2
|
+
* CLIProxy Quota Management - public barrel.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* -
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
tone: 'error' | 'info' | 'dim';
|
|
16
|
-
text: string;
|
|
17
|
-
}
|
|
18
|
-
declare function getQuotaFailureDisplayEntries(quota: QuotaErrorMetadata & {
|
|
19
|
-
error?: string;
|
|
20
|
-
}): QuotaFailureDisplayEntry[];
|
|
21
|
-
type CodexWindowSummary = Pick<CodexQuotaResult['windows'][number], 'label' | 'resetAfterSeconds' | 'category' | 'cadence' | 'featureLabel'>;
|
|
22
|
-
/**
|
|
23
|
-
* Strip a leading "GPT-X.Y-Codex-" prefix from a feature label and turn the
|
|
24
|
-
* remainder into a Codex-prefixed display name. Other labels pass through unchanged.
|
|
4
|
+
* Source lives in ./quota-subcommand/. This file re-exports the original
|
|
5
|
+
* public surface so existing importers (src/commands/cliproxy/index.ts and
|
|
6
|
+
* the unit-test module loader) are unaffected by the god-file split.
|
|
7
|
+
*
|
|
8
|
+
* Public surface (unchanged):
|
|
9
|
+
* - handleQuotaStatus (`ccs cliproxy quota`)
|
|
10
|
+
* - handleDoctor (`ccs cliproxy doctor` / `diag`)
|
|
11
|
+
* - handleSetDefault (`ccs cliproxy default <account>`)
|
|
12
|
+
* - handlePauseAccount (`ccs cliproxy pause <account>`)
|
|
13
|
+
* - handleResumeAccount (`ccs cliproxy resume <account>`)
|
|
14
|
+
* - __testExports (helpers consumed by the unit test loader)
|
|
25
15
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export declare const __testExports: {
|
|
29
|
-
getCodexWindowDisplayLabel: typeof getCodexWindowDisplayLabel;
|
|
30
|
-
getQuotaFailureDisplayEntries: typeof getQuotaFailureDisplayEntries;
|
|
31
|
-
prettifyCodexFeatureLabel: typeof prettifyCodexFeatureLabel;
|
|
32
|
-
resolveDisplayedTier: typeof resolveDisplayedTier;
|
|
33
|
-
};
|
|
34
|
-
export declare function handleQuotaStatus(verbose?: boolean, providerFilter?: QuotaSupportedProvider | 'all'): Promise<void>;
|
|
35
|
-
export declare function handleDoctor(verbose?: boolean): Promise<void>;
|
|
36
|
-
export declare function handleSetDefault(args: string[]): Promise<void>;
|
|
37
|
-
export declare function handlePauseAccount(args: string[]): Promise<void>;
|
|
38
|
-
export declare function handleResumeAccount(args: string[]): Promise<void>;
|
|
39
|
-
export {};
|
|
16
|
+
export { handleQuotaStatus, handleDoctor, handleSetDefault, handlePauseAccount, handleResumeAccount, } from './quota-subcommand/handlers';
|
|
17
|
+
export { __testExports } from './quota-subcommand/test-exports';
|
|
40
18
|
//# sourceMappingURL=quota-subcommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quota-subcommand.d.ts","sourceRoot":"","sources":["../../../src/commands/cliproxy/quota-subcommand.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"quota-subcommand.d.ts","sourceRoot":"","sources":["../../../src/commands/cliproxy/quota-subcommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC"}
|