@kaitranntt/ccs 7.65.3-dev.1 → 7.65.3-dev.10
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 +36 -3
- package/dist/auth/auth-commands.d.ts +1 -0
- package/dist/auth/auth-commands.d.ts.map +1 -1
- package/dist/auth/auth-commands.js +11 -0
- package/dist/auth/auth-commands.js.map +1 -1
- package/dist/auth/commands/backup-command.d.ts +3 -0
- package/dist/auth/commands/backup-command.d.ts.map +1 -0
- package/dist/auth/commands/backup-command.js +126 -0
- package/dist/auth/commands/backup-command.js.map +1 -0
- package/dist/auth/commands/index.d.ts +1 -0
- package/dist/auth/commands/index.d.ts.map +1 -1
- package/dist/auth/commands/index.js +3 -1
- package/dist/auth/commands/index.js.map +1 -1
- package/dist/auth/profile-continuity-inheritance.d.ts +1 -0
- package/dist/auth/profile-continuity-inheritance.d.ts.map +1 -1
- package/dist/auth/profile-continuity-inheritance.js +10 -6
- package/dist/auth/profile-continuity-inheritance.js.map +1 -1
- package/dist/auth/profile-detector.d.ts +9 -1
- package/dist/auth/profile-detector.d.ts.map +1 -1
- package/dist/auth/profile-detector.js +35 -0
- package/dist/auth/profile-detector.js.map +1 -1
- package/dist/auth/resume-lane-diagnostics.d.ts +21 -0
- package/dist/auth/resume-lane-diagnostics.d.ts.map +1 -0
- package/dist/auth/resume-lane-diagnostics.js +146 -0
- package/dist/auth/resume-lane-diagnostics.js.map +1 -0
- package/dist/auth/resume-lane-warning.d.ts +9 -0
- package/dist/auth/resume-lane-warning.d.ts.map +1 -0
- package/dist/auth/resume-lane-warning.js +60 -0
- package/dist/auth/resume-lane-warning.js.map +1 -0
- package/dist/ccs.js +47 -4
- package/dist/ccs.js.map +1 -1
- package/dist/cliproxy/gemini-cli-quota-normalizer.d.ts +10 -0
- package/dist/cliproxy/gemini-cli-quota-normalizer.d.ts.map +1 -0
- package/dist/cliproxy/gemini-cli-quota-normalizer.js +122 -0
- package/dist/cliproxy/gemini-cli-quota-normalizer.js.map +1 -0
- package/dist/cliproxy/quota-fetcher-gemini-cli.d.ts.map +1 -1
- package/dist/cliproxy/quota-fetcher-gemini-cli.js +133 -92
- package/dist/cliproxy/quota-fetcher-gemini-cli.js.map +1 -1
- package/dist/cliproxy/quota-types.d.ts +8 -0
- package/dist/cliproxy/quota-types.d.ts.map +1 -1
- package/dist/commands/cliproxy/quota-subcommand.d.ts.map +1 -1
- package/dist/commands/cliproxy/quota-subcommand.js +10 -1
- package/dist/commands/cliproxy/quota-subcommand.js.map +1 -1
- package/dist/commands/command-catalog.d.ts +39 -0
- package/dist/commands/command-catalog.d.ts.map +1 -0
- package/dist/commands/command-catalog.js +298 -0
- package/dist/commands/command-catalog.js.map +1 -0
- package/dist/commands/completion-backend.d.ts +14 -0
- package/dist/commands/completion-backend.d.ts.map +1 -0
- package/dist/commands/completion-backend.js +208 -0
- package/dist/commands/completion-backend.js.map +1 -0
- package/dist/commands/cursor-command-display.d.ts.map +1 -1
- package/dist/commands/cursor-command-display.js +25 -5
- package/dist/commands/cursor-command-display.js.map +1 -1
- package/dist/commands/cursor-command.d.ts +1 -3
- package/dist/commands/cursor-command.d.ts.map +1 -1
- package/dist/commands/cursor-command.js +3 -15
- package/dist/commands/cursor-command.js.map +1 -1
- package/dist/commands/help-command.d.ts +4 -3
- package/dist/commands/help-command.d.ts.map +1 -1
- package/dist/commands/help-command.js +155 -507
- package/dist/commands/help-command.js.map +1 -1
- package/dist/commands/root-command-router.d.ts +2 -0
- package/dist/commands/root-command-router.d.ts.map +1 -1
- package/dist/commands/root-command-router.js +13 -13
- package/dist/commands/root-command-router.js.map +1 -1
- package/dist/commands/shell-completion-command.d.ts +1 -0
- package/dist/commands/shell-completion-command.d.ts.map +1 -1
- package/dist/commands/shell-completion-command.js +27 -11
- package/dist/commands/shell-completion-command.js.map +1 -1
- package/dist/cursor/constants.d.ts +3 -0
- package/dist/cursor/constants.d.ts.map +1 -0
- package/dist/cursor/constants.js +20 -0
- package/dist/cursor/constants.js.map +1 -0
- package/dist/cursor/cursor-models.d.ts.map +1 -1
- package/dist/cursor/cursor-models.js +2 -0
- package/dist/cursor/cursor-models.js.map +1 -1
- package/dist/cursor/cursor-profile-executor.d.ts +10 -0
- package/dist/cursor/cursor-profile-executor.d.ts.map +1 -0
- package/dist/cursor/cursor-profile-executor.js +158 -0
- package/dist/cursor/cursor-profile-executor.js.map +1 -0
- package/dist/cursor/cursor-translator.d.ts +22 -11
- package/dist/cursor/cursor-translator.d.ts.map +1 -1
- package/dist/cursor/cursor-translator.js +254 -75
- package/dist/cursor/cursor-translator.js.map +1 -1
- package/dist/cursor/index.d.ts +1 -0
- package/dist/cursor/index.d.ts.map +1 -1
- package/dist/cursor/index.js +4 -1
- package/dist/cursor/index.js.map +1 -1
- package/dist/shared/claude-extension-setup.d.ts.map +1 -1
- package/dist/shared/claude-extension-setup.js +36 -16
- package/dist/shared/claude-extension-setup.js.map +1 -1
- package/dist/targets/target-runtime-compatibility.d.ts.map +1 -1
- package/dist/targets/target-runtime-compatibility.js +6 -0
- package/dist/targets/target-runtime-compatibility.js.map +1 -1
- package/dist/types/profile.d.ts +1 -1
- package/dist/types/profile.d.ts.map +1 -1
- package/dist/ui/assets/accounts-BjfPKR8m.js +1 -0
- package/dist/ui/assets/{alert-dialog-C5RdUHi9.js → alert-dialog-Dh2NUFdm.js} +1 -1
- package/dist/ui/assets/{api-C0ROFLme.js → api-C-3mQCFf.js} +1 -1
- package/dist/ui/assets/{auth-section-M2azTP3G.js → auth-section-Dp10_YyD.js} +1 -1
- package/dist/ui/assets/{backups-section-DIDUVa0t.js → backups-section-C0jF8MP1.js} +1 -1
- package/dist/ui/assets/{channels-D_5uerEp.js → channels-CkXuK5i7.js} +1 -1
- package/dist/ui/assets/{checkbox-CgMg7fDH.js → checkbox-tA5FH8Ol.js} +1 -1
- package/dist/ui/assets/{claude-extension-DA9wMzPz.js → claude-extension-Bg2ZkzMz.js} +1 -1
- package/dist/ui/assets/{cliproxy-4yUL1fQw.js → cliproxy-1qRVSbVC.js} +2 -2
- package/dist/ui/assets/{cliproxy-ai-providers-DedMcdcc.js → cliproxy-ai-providers-DBSXTTyw.js} +1 -1
- package/dist/ui/assets/cliproxy-control-panel-Da-sGGyI.js +1 -0
- package/dist/ui/assets/{codex-CAWw4ZNl.js → codex-ooWKOPa2.js} +1 -1
- package/dist/ui/assets/{confirm-dialog-Ds0PYz2R.js → confirm-dialog-CKjwhn9j.js} +1 -1
- package/dist/ui/assets/{copilot-m6i00mFy.js → copilot-GA7EPiK1.js} +1 -1
- package/dist/ui/assets/{cursor-COeD0Dgq.js → cursor-B6c8CyHG.js} +1 -1
- package/dist/ui/assets/{droid-CznUyiRx.js → droid-CPRHOIX2.js} +1 -1
- package/dist/ui/assets/{globalenv-section-FgK1eGWk.js → globalenv-section-Czgnw_GV.js} +1 -1
- package/dist/ui/assets/{health-Cpu6bD6K.js → health-CXLOMk8n.js} +1 -1
- package/dist/ui/assets/icons-B9oTjo-t.js +1 -0
- package/dist/ui/assets/index-BMHPMj0j.js +69 -0
- package/dist/ui/assets/{index-DgnxlKNk.js → index-BceMcbCR.js} +1 -1
- package/dist/ui/assets/{index-C7sG68Mi.js → index-Boa5e-GY.js} +1 -1
- package/dist/ui/assets/index-CknHGRYp.css +1 -0
- package/dist/ui/assets/{index-DampXntj.js → index-CvfzKRSH.js} +1 -1
- package/dist/ui/assets/{index-Bhz6T039.js → index-D2v_-6AW.js} +1 -1
- package/dist/ui/assets/{index-rTSyskt3.js → index-v-DY6Zby.js} +1 -1
- package/dist/ui/assets/{masked-input-B_l4FMkE.js → masked-input-B1_asiUI.js} +1 -1
- package/dist/ui/assets/{proxy-status-widget-C7wSbfPC.js → proxy-status-widget-Ci1JpStj.js} +1 -1
- package/dist/ui/assets/{radix-ui-C98W0NRG.js → radix-ui-Zb8sVEtn.js} +1 -1
- package/dist/ui/assets/{raw-json-settings-editor-panel-CViWFt6t.js → raw-json-settings-editor-panel-DMbTkxWw.js} +1 -1
- package/dist/ui/assets/{searchable-select-7-yJbbw2.js → searchable-select-HbP2PXl3.js} +1 -1
- package/dist/ui/assets/{separator-DApM4Wa5.js → separator-CdaalG0K.js} +1 -1
- package/dist/ui/assets/{shared-Blmm7sMd.js → shared-BiFB-et0.js} +1 -1
- package/dist/ui/assets/{table-BwM4zncv.js → table-BPwgFXLQ.js} +1 -1
- package/dist/ui/assets/{tanstack-CfKik0yL.js → tanstack-DWm6aJ-G.js} +1 -1
- package/dist/ui/assets/{updates-DJ0ofB67.js → updates-l8Co9uve.js} +1 -1
- package/dist/ui/index.html +5 -5
- package/dist/utils/config-manager.d.ts +5 -0
- package/dist/utils/config-manager.d.ts.map +1 -1
- package/dist/utils/config-manager.js +10 -1
- package/dist/utils/config-manager.js.map +1 -1
- package/dist/utils/hooks/image-analysis-backend-resolver.d.ts.map +1 -1
- package/dist/utils/hooks/image-analysis-backend-resolver.js +8 -0
- package/dist/utils/hooks/image-analysis-backend-resolver.js.map +1 -1
- package/dist/web-server/routes/account-routes.d.ts.map +1 -1
- package/dist/web-server/routes/account-routes.js +14 -2
- package/dist/web-server/routes/account-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 +80 -6
- package/dist/web-server/routes/cliproxy-auth-routes.js.map +1 -1
- package/lib/hooks/websearch-transformer.cjs +37 -2
- package/package.json +1 -1
- package/scripts/completion/README.md +55 -131
- package/scripts/completion/ccs.bash +22 -190
- package/scripts/completion/ccs.fish +19 -245
- package/scripts/completion/ccs.ps1 +37 -427
- package/scripts/completion/ccs.zsh +27 -305
- package/dist/ui/assets/accounts-Dh95PibK.js +0 -1
- package/dist/ui/assets/cliproxy-control-panel-B0kwxgNi.js +0 -1
- package/dist/ui/assets/icons-CeH5899d.js +0 -1
- package/dist/ui/assets/index-B6SrL1O-.css +0 -1
- package/dist/ui/assets/index-CcKb4PL_.js +0 -69
|
@@ -1,256 +1,30 @@
|
|
|
1
1
|
# Fish completion for CCS (Claude Code Switch)
|
|
2
|
-
# Compatible with fish 3.0+
|
|
3
|
-
#
|
|
4
|
-
# Features:
|
|
5
|
-
# - Categorized completions with [cmd], [proxy], [model], and [account] prefixes
|
|
6
|
-
# - Dynamic profile loading from config.json and profiles.json
|
|
7
|
-
# - Context-aware subcommand completion
|
|
8
|
-
#
|
|
9
|
-
# Installation:
|
|
10
|
-
# Copy to ~/.config/fish/completions/:
|
|
11
|
-
# mkdir -p ~/.config/fish/completions
|
|
12
|
-
# cp scripts/completion/ccs.fish ~/.config/fish/completions/
|
|
13
|
-
#
|
|
14
|
-
# Fish will automatically load completions from this directory.
|
|
15
|
-
# No need to source or reload - completions are loaded on demand.
|
|
16
2
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if test -f $config_path
|
|
22
|
-
jq -r '.profiles | keys[]' $config_path 2>/dev/null
|
|
3
|
+
function __fish_ccs_complete
|
|
4
|
+
set -l tokens_before_current (commandline -opc)
|
|
5
|
+
if test (count $tokens_before_current) -gt 0
|
|
6
|
+
set -e tokens_before_current[1]
|
|
23
7
|
end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# Helper function to get custom/unknown settings profiles
|
|
27
|
-
function __fish_ccs_get_custom_settings_profiles
|
|
28
|
-
set -l config_path ~/.ccs/config.json
|
|
29
|
-
set -l known_profiles default glm kimi
|
|
30
|
-
|
|
31
|
-
if test -f $config_path
|
|
32
|
-
set -l all_profiles (jq -r '.profiles | keys[]' $config_path 2>/dev/null)
|
|
33
8
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
end
|
|
38
|
-
end
|
|
9
|
+
set -l current (commandline -ct)
|
|
10
|
+
if test -n "$current"; and test (count $tokens_before_current) -gt 0; and test "$tokens_before_current[-1]" = "$current"
|
|
11
|
+
set -e tokens_before_current[-1]
|
|
39
12
|
end
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# Helper function to get cliproxy variants
|
|
43
|
-
function __fish_ccs_get_cliproxy_variants
|
|
44
|
-
set -l config_path ~/.ccs/config.json
|
|
45
13
|
|
|
46
|
-
|
|
47
|
-
|
|
14
|
+
set -l script_file (status filename)
|
|
15
|
+
set -l repo_root (realpath (dirname $script_file)/../.. 2>/dev/null)
|
|
16
|
+
set -l repo_cli "$repo_root/dist/ccs.js"
|
|
17
|
+
if not test -f "$repo_cli"
|
|
18
|
+
set repo_cli "$repo_root/bin/ccs.js"
|
|
48
19
|
end
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
function __fish_ccs_get_profiles
|
|
53
|
-
__fish_ccs_get_settings_profiles
|
|
54
|
-
__fish_ccs_get_account_profiles
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# Helper function to get account profiles only
|
|
58
|
-
function __fish_ccs_get_account_profiles
|
|
59
|
-
set -l profiles_path ~/.ccs/profiles.json
|
|
60
|
-
|
|
61
|
-
if test -f $profiles_path
|
|
62
|
-
jq -r '.profiles | keys[]' $profiles_path 2>/dev/null
|
|
20
|
+
if test -f "$repo_cli"
|
|
21
|
+
node "$repo_cli" __complete --shell fish --current "$current" -- $tokens_before_current 2>/dev/null
|
|
22
|
+
return
|
|
63
23
|
end
|
|
64
|
-
end
|
|
65
24
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
# Helper function to check specific auth subcommand
|
|
72
|
-
function __fish_ccs_using_auth_subcommand
|
|
73
|
-
set -l subcommand $argv[1]
|
|
74
|
-
__fish_ccs_using_auth; and __fish_seen_subcommand_from $subcommand
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
# Helper function to check if we're in api context
|
|
78
|
-
function __fish_ccs_using_api
|
|
79
|
-
__fish_seen_subcommand_from api
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
# Helper function to check specific api subcommand
|
|
83
|
-
function __fish_ccs_using_api_subcommand
|
|
84
|
-
set -l subcommand $argv[1]
|
|
85
|
-
__fish_ccs_using_api; and __fish_seen_subcommand_from $subcommand
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# Helper function to check if we're in cliproxy context
|
|
89
|
-
function __fish_ccs_using_cliproxy
|
|
90
|
-
__fish_seen_subcommand_from cliproxy
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# Helper function to check specific cliproxy subcommand
|
|
94
|
-
function __fish_ccs_using_cliproxy_subcommand
|
|
95
|
-
set -l subcommand $argv[1]
|
|
96
|
-
__fish_ccs_using_cliproxy; and __fish_seen_subcommand_from $subcommand
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
# Helper function to check if we're in profile context
|
|
100
|
-
function __fish_ccs_using_profile
|
|
101
|
-
__fish_seen_subcommand_from profile
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
# Helper function to check specific profile subcommand
|
|
105
|
-
function __fish_ccs_using_profile_subcommand
|
|
106
|
-
set -l subcommand $argv[1]
|
|
107
|
-
__fish_ccs_using_profile; and __fish_seen_subcommand_from $subcommand
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
# Helper function to check if we're using a CLIProxy provider
|
|
111
|
-
function __fish_ccs_using_provider
|
|
112
|
-
__fish_seen_subcommand_from gemini codex agy qwen
|
|
25
|
+
if command -sq ccs
|
|
26
|
+
ccs __complete --shell fish --current "$current" -- $tokens_before_current 2>/dev/null
|
|
27
|
+
end
|
|
113
28
|
end
|
|
114
29
|
|
|
115
|
-
|
|
116
|
-
complete -c ccs -f
|
|
117
|
-
|
|
118
|
-
# Top-level flags
|
|
119
|
-
complete -c ccs -s h -l help -d 'Show help message'
|
|
120
|
-
complete -c ccs -s v -l version -d 'Show version information'
|
|
121
|
-
complete -c ccs -s sc -l shell-completion -d 'Install shell completion'
|
|
122
|
-
|
|
123
|
-
# Commands - grouped with [cmd] prefix for visual distinction
|
|
124
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'auth' -d '[cmd] Manage multiple Claude accounts'
|
|
125
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'api' -d '[cmd] Manage API profiles (create/remove)'
|
|
126
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'cliproxy' -d '[cmd] Manage CLIProxy variants and binary'
|
|
127
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'doctor' -d '[cmd] Run health check and diagnostics'
|
|
128
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'env' -d '[cmd] Export env vars for third-party tools'
|
|
129
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'sync' -d '[cmd] Sync delegation commands and skills'
|
|
130
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'update' -d '[cmd] Update CCS to latest version'
|
|
131
|
-
|
|
132
|
-
# CLIProxy profiles - grouped with [proxy] prefix for OAuth providers
|
|
133
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'gemini' -d '[proxy] Google Gemini (OAuth)'
|
|
134
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'codex' -d '[proxy] OpenAI Codex (OAuth)'
|
|
135
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'agy' -d '[proxy] Antigravity (OAuth)'
|
|
136
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'qwen' -d '[proxy] Qwen Code (OAuth)'
|
|
137
|
-
|
|
138
|
-
# Model profiles - grouped with [model] prefix for visual distinction
|
|
139
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'default' -d '[model] Default Claude Sonnet 4.5'
|
|
140
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'glm' -d '[model] GLM-4.6 (cost-optimized)'
|
|
141
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a 'kimi' -d '[model] Kimi for Coding (long-context)'
|
|
142
|
-
|
|
143
|
-
# Custom model profiles - dynamic with [model] prefix
|
|
144
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a '(__fish_ccs_get_custom_settings_profiles)' -d '[model] Settings-based profile'
|
|
145
|
-
|
|
146
|
-
# CLIProxy variants - dynamic with [variant] prefix
|
|
147
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a '(__fish_ccs_get_cliproxy_variants)' -d '[variant] CLIProxy variant'
|
|
148
|
-
|
|
149
|
-
# Account profiles - dynamic with [account] prefix
|
|
150
|
-
complete -c ccs -n 'not __fish_seen_subcommand_from auth api cliproxy doctor env sync update gemini codex agy qwen' -a '(__fish_ccs_get_account_profiles)' -d '[account] Account-based profile'
|
|
151
|
-
|
|
152
|
-
# shell-completion subflags
|
|
153
|
-
complete -c ccs -n '__fish_seen_argument -l shell-completion; or __fish_seen_argument -s sc' -l bash -d 'Install for bash'
|
|
154
|
-
complete -c ccs -n '__fish_seen_argument -l shell-completion; or __fish_seen_argument -s sc' -l zsh -d 'Install for zsh'
|
|
155
|
-
complete -c ccs -n '__fish_seen_argument -l shell-completion; or __fish_seen_argument -s sc' -l fish -d 'Install for fish'
|
|
156
|
-
complete -c ccs -n '__fish_seen_argument -l shell-completion; or __fish_seen_argument -s sc' -l powershell -d 'Install for PowerShell'
|
|
157
|
-
|
|
158
|
-
# CLIProxy provider flags (gemini, codex, agy, qwen)
|
|
159
|
-
complete -c ccs -n '__fish_ccs_using_provider' -l auth -d 'Authenticate only'
|
|
160
|
-
complete -c ccs -n '__fish_ccs_using_provider' -l config -d 'Change model configuration'
|
|
161
|
-
complete -c ccs -n '__fish_ccs_using_provider' -l logout -d 'Clear authentication'
|
|
162
|
-
complete -c ccs -n '__fish_ccs_using_provider' -l headless -d 'Headless auth (for SSH)'
|
|
163
|
-
complete -c ccs -n '__fish_ccs_using_provider' -s h -l help -d 'Show help'
|
|
164
|
-
|
|
165
|
-
# update command flags
|
|
166
|
-
complete -c ccs -n '__fish_seen_subcommand_from update' -l force -d 'Force reinstall current version'
|
|
167
|
-
complete -c ccs -n '__fish_seen_subcommand_from update' -l beta -d 'Install from dev channel'
|
|
168
|
-
complete -c ccs -n '__fish_seen_subcommand_from update' -l dev -d 'Install from dev channel'
|
|
169
|
-
complete -c ccs -n '__fish_seen_subcommand_from update' -s h -l help -d 'Show help'
|
|
170
|
-
|
|
171
|
-
# doctor command flags
|
|
172
|
-
complete -c ccs -n '__fish_seen_subcommand_from doctor' -s h -l help -d 'Show help for doctor command'
|
|
173
|
-
|
|
174
|
-
# env command completions
|
|
175
|
-
complete -c ccs -n '__fish_seen_subcommand_from env; and not __fish_seen_argument -l format -l shell' -a 'gemini codex agy qwen iflow kiro ghcp claude' -d '[proxy] CLIProxy profile'
|
|
176
|
-
complete -c ccs -n '__fish_seen_subcommand_from env' -l format -d 'Output format'
|
|
177
|
-
complete -c ccs -n '__fish_seen_subcommand_from env; and __fish_seen_argument -l format' -a 'openai anthropic raw' -d 'Format'
|
|
178
|
-
complete -c ccs -n '__fish_seen_subcommand_from env' -l shell -d 'Shell syntax'
|
|
179
|
-
complete -c ccs -n '__fish_seen_subcommand_from env; and __fish_seen_argument -l shell' -a 'auto bash zsh fish powershell' -d 'Shell'
|
|
180
|
-
complete -c ccs -n '__fish_seen_subcommand_from env' -s h -l help -d 'Show help for env command'
|
|
181
|
-
|
|
182
|
-
# ============================================================================
|
|
183
|
-
# auth subcommands
|
|
184
|
-
# ============================================================================
|
|
185
|
-
complete -c ccs -n '__fish_ccs_using_auth; and not __fish_seen_subcommand_from create list show remove default' -a 'create' -d 'Create new profile and login'
|
|
186
|
-
complete -c ccs -n '__fish_ccs_using_auth; and not __fish_seen_subcommand_from create list show remove default' -a 'list' -d 'List all saved profiles'
|
|
187
|
-
complete -c ccs -n '__fish_ccs_using_auth; and not __fish_seen_subcommand_from create list show remove default' -a 'show' -d 'Show profile details'
|
|
188
|
-
complete -c ccs -n '__fish_ccs_using_auth; and not __fish_seen_subcommand_from create list show remove default' -a 'remove' -d 'Remove saved profile'
|
|
189
|
-
complete -c ccs -n '__fish_ccs_using_auth; and not __fish_seen_subcommand_from create list show remove default' -a 'default' -d 'Set default profile'
|
|
190
|
-
|
|
191
|
-
complete -c ccs -n '__fish_ccs_using_auth' -s h -l help -d 'Show help for auth commands'
|
|
192
|
-
complete -c ccs -n '__fish_ccs_using_auth_subcommand create' -l force -d 'Allow overwriting existing profile'
|
|
193
|
-
complete -c ccs -n '__fish_ccs_using_auth_subcommand list' -l verbose -d 'Show additional details'
|
|
194
|
-
complete -c ccs -n '__fish_ccs_using_auth_subcommand list' -l json -d 'Output in JSON format'
|
|
195
|
-
complete -c ccs -n '__fish_ccs_using_auth_subcommand show' -a '(__fish_ccs_get_account_profiles)' -d 'Account profile'
|
|
196
|
-
complete -c ccs -n '__fish_ccs_using_auth_subcommand show' -l json -d 'Output in JSON format'
|
|
197
|
-
complete -c ccs -n '__fish_ccs_using_auth_subcommand remove' -a '(__fish_ccs_get_account_profiles)' -d 'Account profile'
|
|
198
|
-
complete -c ccs -n '__fish_ccs_using_auth_subcommand remove' -l yes -d 'Skip confirmation prompts'
|
|
199
|
-
complete -c ccs -n '__fish_ccs_using_auth_subcommand remove' -s y -d 'Skip confirmation prompts'
|
|
200
|
-
complete -c ccs -n '__fish_ccs_using_auth_subcommand default' -a '(__fish_ccs_get_account_profiles)' -d 'Account profile'
|
|
201
|
-
|
|
202
|
-
# ============================================================================
|
|
203
|
-
# api subcommands
|
|
204
|
-
# ============================================================================
|
|
205
|
-
complete -c ccs -n '__fish_ccs_using_api; and not __fish_seen_subcommand_from create list remove' -a 'create' -d 'Create new API profile'
|
|
206
|
-
complete -c ccs -n '__fish_ccs_using_api; and not __fish_seen_subcommand_from create list remove' -a 'list' -d 'List all API profiles'
|
|
207
|
-
complete -c ccs -n '__fish_ccs_using_api; and not __fish_seen_subcommand_from create list remove' -a 'remove' -d 'Remove an API profile'
|
|
208
|
-
|
|
209
|
-
complete -c ccs -n '__fish_ccs_using_api' -s h -l help -d 'Show help for api commands'
|
|
210
|
-
complete -c ccs -n '__fish_ccs_using_api_subcommand create' -l base-url -d 'API base URL'
|
|
211
|
-
complete -c ccs -n '__fish_ccs_using_api_subcommand create' -l api-key -d 'API key'
|
|
212
|
-
complete -c ccs -n '__fish_ccs_using_api_subcommand create' -l model -d 'Default model'
|
|
213
|
-
complete -c ccs -n '__fish_ccs_using_api_subcommand create' -l force -d 'Overwrite existing profile'
|
|
214
|
-
complete -c ccs -n '__fish_ccs_using_api_subcommand create' -l yes -d 'Skip prompts'
|
|
215
|
-
complete -c ccs -n '__fish_ccs_using_api_subcommand create' -s y -d 'Skip prompts'
|
|
216
|
-
complete -c ccs -n '__fish_ccs_using_api_subcommand remove' -a '(__fish_ccs_get_settings_profiles)' -d 'Settings profile'
|
|
217
|
-
complete -c ccs -n '__fish_ccs_using_api_subcommand remove' -l yes -d 'Skip confirmation'
|
|
218
|
-
complete -c ccs -n '__fish_ccs_using_api_subcommand remove' -s y -d 'Skip confirmation'
|
|
219
|
-
|
|
220
|
-
# ============================================================================
|
|
221
|
-
# cliproxy subcommands
|
|
222
|
-
# ============================================================================
|
|
223
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy; and not __fish_seen_subcommand_from create list remove' -a 'create' -d 'Create new CLIProxy variant'
|
|
224
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy; and not __fish_seen_subcommand_from create list remove' -a 'list' -d 'List all CLIProxy variants'
|
|
225
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy; and not __fish_seen_subcommand_from create list remove' -a 'remove' -d 'Remove a CLIProxy variant'
|
|
226
|
-
|
|
227
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy' -s h -l help -d 'Show help for cliproxy commands'
|
|
228
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy' -l install -d 'Install specific version'
|
|
229
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy' -l latest -d 'Install latest version'
|
|
230
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy_subcommand create' -l provider -d 'Provider name'
|
|
231
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy_subcommand create; and __fish_seen_argument -l provider' -a 'gemini codex agy qwen' -d 'Provider'
|
|
232
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy_subcommand create' -l model -d 'Model name'
|
|
233
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy_subcommand create' -l force -d 'Overwrite existing variant'
|
|
234
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy_subcommand create' -l yes -d 'Skip prompts'
|
|
235
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy_subcommand create' -s y -d 'Skip prompts'
|
|
236
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy_subcommand remove' -a '(__fish_ccs_get_cliproxy_variants)' -d 'CLIProxy variant'
|
|
237
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy_subcommand remove' -l yes -d 'Skip confirmation'
|
|
238
|
-
complete -c ccs -n '__fish_ccs_using_cliproxy_subcommand remove' -s y -d 'Skip confirmation'
|
|
239
|
-
|
|
240
|
-
# ============================================================================
|
|
241
|
-
# profile subcommands (legacy - redirects to api)
|
|
242
|
-
# ============================================================================
|
|
243
|
-
complete -c ccs -n '__fish_ccs_using_profile; and not __fish_seen_subcommand_from create list remove' -a 'create' -d 'Create new API profile'
|
|
244
|
-
complete -c ccs -n '__fish_ccs_using_profile; and not __fish_seen_subcommand_from create list remove' -a 'list' -d 'List all profiles'
|
|
245
|
-
complete -c ccs -n '__fish_ccs_using_profile; and not __fish_seen_subcommand_from create list remove' -a 'remove' -d 'Remove a profile'
|
|
246
|
-
|
|
247
|
-
complete -c ccs -n '__fish_ccs_using_profile' -s h -l help -d 'Show help for profile commands'
|
|
248
|
-
complete -c ccs -n '__fish_ccs_using_profile_subcommand create' -l base-url -d 'API base URL'
|
|
249
|
-
complete -c ccs -n '__fish_ccs_using_profile_subcommand create' -l api-key -d 'API key'
|
|
250
|
-
complete -c ccs -n '__fish_ccs_using_profile_subcommand create' -l model -d 'Default model'
|
|
251
|
-
complete -c ccs -n '__fish_ccs_using_profile_subcommand create' -l force -d 'Overwrite existing profile'
|
|
252
|
-
complete -c ccs -n '__fish_ccs_using_profile_subcommand create' -l yes -d 'Skip prompts'
|
|
253
|
-
complete -c ccs -n '__fish_ccs_using_profile_subcommand create' -s y -d 'Skip prompts'
|
|
254
|
-
complete -c ccs -n '__fish_ccs_using_profile_subcommand remove' -a '(__fish_ccs_get_settings_profiles)' -d 'Settings profile'
|
|
255
|
-
complete -c ccs -n '__fish_ccs_using_profile_subcommand remove' -l yes -d 'Skip confirmation'
|
|
256
|
-
complete -c ccs -n '__fish_ccs_using_profile_subcommand remove' -s y -d 'Skip confirmation'
|
|
30
|
+
complete -c ccs -f -a "(__fish_ccs_complete)"
|