@cortexmemory/cli 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,285 @@
1
+ # Cortex CLI completion script for Fish
2
+ # Auto-installed by @cortexmemory/cli
3
+
4
+ # Helper function to get deployments from config
5
+ function __cortex_deployments
6
+ set -l config "$HOME/.cortexrc"
7
+ if test -f "$config"
8
+ grep -o '"[^"]*"[[:space:]]*:[[:space:]]*{' "$config" 2>/dev/null | \
9
+ grep -v '"deployments"' | grep -v '"apps"' | \
10
+ sed 's/"//g' | sed 's/[[:space:]]*:[[:space:]]*{//'
11
+ end
12
+ end
13
+
14
+ # Helper function to get apps from config
15
+ function __cortex_apps
16
+ set -l config "$HOME/.cortexrc"
17
+ if test -f "$config"
18
+ grep -A1 '"apps"' "$config" 2>/dev/null | \
19
+ grep -o '"[^"]*"[[:space:]]*:[[:space:]]*{' | grep -v '"apps"' | \
20
+ sed 's/"//g' | sed 's/[[:space:]]*:[[:space:]]*{//'
21
+ end
22
+ end
23
+
24
+ # Config subcommands list (for exclusion checks)
25
+ set -l __cortex_config_subcmds show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset
26
+
27
+ # DB subcommands list
28
+ set -l __cortex_db_subcmds stats clear backup restore export
29
+
30
+ # Convex subcommands list
31
+ set -l __cortex_convex_subcmds status deploy dev logs dashboard update schema init env
32
+
33
+ # Users subcommands list
34
+ set -l __cortex_users_subcmds list get delete delete-many export stats update create exists
35
+
36
+ # Spaces subcommands list
37
+ set -l __cortex_spaces_subcmds list create get delete archive reactivate stats participants add-participant remove-participant update count search
38
+
39
+ # Conversations subcommands list
40
+ set -l __cortex_conversations_subcmds list get delete export count clear messages
41
+
42
+ # Memory subcommands list
43
+ set -l __cortex_memory_subcmds list search get delete clear export stats archive restore
44
+
45
+ # Facts subcommands list
46
+ set -l __cortex_facts_subcmds list search get delete export count clear
47
+
48
+ # Disable file completion by default
49
+ complete -c cortex -f
50
+
51
+ # Top-level commands
52
+ complete -c cortex -n '__fish_use_subcommand' -a start -d 'Start development services'
53
+ complete -c cortex -n '__fish_use_subcommand' -a stop -d 'Stop background services'
54
+ complete -c cortex -n '__fish_use_subcommand' -a deploy -d 'Deploy schema and functions to Convex'
55
+ complete -c cortex -n '__fish_use_subcommand' -a update -d 'Update SDK packages in projects'
56
+ complete -c cortex -n '__fish_use_subcommand' -a status -d 'Show Cortex setup status dashboard'
57
+ complete -c cortex -n '__fish_use_subcommand' -a config -d 'Manage CLI configuration'
58
+ complete -c cortex -n '__fish_use_subcommand' -a init -d 'Initialize a new Cortex Memory project'
59
+ complete -c cortex -n '__fish_use_subcommand' -a dev -d 'Start interactive development mode'
60
+ complete -c cortex -n '__fish_use_subcommand' -a use -d 'Set current deployment for all commands'
61
+ complete -c cortex -n '__fish_use_subcommand' -a db -d 'Database-wide operations'
62
+ complete -c cortex -n '__fish_use_subcommand' -a convex -d 'Manage Convex deployments'
63
+ complete -c cortex -n '__fish_use_subcommand' -a memory -d 'Manage memories (vector store)'
64
+ complete -c cortex -n '__fish_use_subcommand' -a users -d 'Manage user profiles and data'
65
+ complete -c cortex -n '__fish_use_subcommand' -a spaces -d 'Manage memory spaces'
66
+ complete -c cortex -n '__fish_use_subcommand' -a facts -d 'Manage extracted facts'
67
+ complete -c cortex -n '__fish_use_subcommand' -a conversations -d 'Manage conversations'
68
+ complete -c cortex -n '__fish_use_subcommand' -a completion -d 'Generate shell completion script'
69
+
70
+ # Global options
71
+ complete -c cortex -s d -l deployment -d 'Deployment name to use' -xa '(__cortex_deployments)'
72
+ complete -c cortex -l debug -d 'Enable debug output'
73
+ complete -c cortex -s V -l version -d 'Show version'
74
+ complete -c cortex -s h -l help -d 'Show help'
75
+
76
+ # config subcommands - only show when no config subcommand has been selected yet
77
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a show -d 'Show current configuration'
78
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a list -d 'List all deployments'
79
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a set -d 'Set a configuration value'
80
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a test -d 'Test connection'
81
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a set-path -d 'Set project path'
82
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a enable -d 'Enable deployment or app'
83
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a disable -d 'Disable deployment or app'
84
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a deployments -d 'List deployments'
85
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a add-deployment -d 'Add deployment'
86
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a remove-deployment -d 'Remove deployment'
87
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a set-key -d 'Set deploy key'
88
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a set-url -d 'Set deployment URL'
89
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a path -d 'Show config paths'
90
+ complete -c cortex -n '__fish_seen_subcommand_from config; and not __fish_seen_subcommand_from show list set test set-path enable disable deployments add-deployment remove-deployment set-key set-url path reset' -a reset -d 'Reset configuration'
91
+
92
+ # config subcommand options
93
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from show' -s f -l format -xa 'table json' -d 'Output format'
94
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from list' -s f -l format -xa 'table json' -d 'Output format'
95
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-path' -xa '(__cortex_deployments)' -d 'Deployment name'
96
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from enable' -xa '(__cortex_deployments) (__cortex_apps)' -d 'Name'
97
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from disable' -xa '(__cortex_deployments) (__cortex_apps)' -d 'Name'
98
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from add-deployment' -s u -l url -d 'Convex URL'
99
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from add-deployment' -s k -l key -d 'Deploy key'
100
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from add-deployment' -l default -d 'Set as default'
101
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from add-deployment' -l json-only -d 'Skip .env.local'
102
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from remove-deployment' -xa '(__cortex_deployments)' -d 'Deployment'
103
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from remove-deployment' -l json-only -d 'Skip .env.local'
104
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-key' -xa '(__cortex_deployments)' -d 'Deployment'
105
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-key' -l json-only -d 'Skip .env.local'
106
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-url' -xa '(__cortex_deployments)' -d 'Deployment'
107
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from set-url' -l json-only -d 'Skip .env.local'
108
+ complete -c cortex -n '__fish_seen_subcommand_from config; and __fish_seen_subcommand_from reset' -s y -l yes -d 'Skip confirmation'
109
+
110
+ # db subcommands - only show when no db subcommand has been selected yet
111
+ complete -c cortex -n '__fish_seen_subcommand_from db; and not __fish_seen_subcommand_from stats clear backup restore export' -a stats -d 'Show database statistics'
112
+ complete -c cortex -n '__fish_seen_subcommand_from db; and not __fish_seen_subcommand_from stats clear backup restore export' -a clear -d 'Clear entire database'
113
+ complete -c cortex -n '__fish_seen_subcommand_from db; and not __fish_seen_subcommand_from stats clear backup restore export' -a backup -d 'Backup database'
114
+ complete -c cortex -n '__fish_seen_subcommand_from db; and not __fish_seen_subcommand_from stats clear backup restore export' -a restore -d 'Restore database'
115
+ complete -c cortex -n '__fish_seen_subcommand_from db; and not __fish_seen_subcommand_from stats clear backup restore export' -a export -d 'Export all data'
116
+
117
+ # db subcommand options
118
+ complete -c cortex -n '__fish_seen_subcommand_from db; and __fish_seen_subcommand_from stats' -s f -l format -xa 'table json' -d 'Output format'
119
+ complete -c cortex -n '__fish_seen_subcommand_from db; and __fish_seen_subcommand_from clear' -s y -l yes -d 'Skip confirmation'
120
+ complete -c cortex -n '__fish_seen_subcommand_from db; and __fish_seen_subcommand_from clear' -l keep-users -d 'Keep user profiles'
121
+ complete -c cortex -n '__fish_seen_subcommand_from db; and __fish_seen_subcommand_from backup' -s o -l output -r -d 'Output file'
122
+ complete -c cortex -n '__fish_seen_subcommand_from db; and __fish_seen_subcommand_from restore' -s y -l yes -d 'Skip confirmation'
123
+ complete -c cortex -n '__fish_seen_subcommand_from db; and __fish_seen_subcommand_from export' -s o -l output -r -d 'Output file'
124
+
125
+ # convex subcommands - only show when no convex subcommand has been selected yet
126
+ complete -c cortex -n '__fish_seen_subcommand_from convex; and not __fish_seen_subcommand_from status deploy dev logs dashboard update schema init env' -a status -d 'Check deployment status'
127
+ complete -c cortex -n '__fish_seen_subcommand_from convex; and not __fish_seen_subcommand_from status deploy dev logs dashboard update schema init env' -a deploy -d 'Deploy schema and functions'
128
+ complete -c cortex -n '__fish_seen_subcommand_from convex; and not __fish_seen_subcommand_from status deploy dev logs dashboard update schema init env' -a dev -d 'Start development mode'
129
+ complete -c cortex -n '__fish_seen_subcommand_from convex; and not __fish_seen_subcommand_from status deploy dev logs dashboard update schema init env' -a logs -d 'View logs'
130
+ complete -c cortex -n '__fish_seen_subcommand_from convex; and not __fish_seen_subcommand_from status deploy dev logs dashboard update schema init env' -a dashboard -d 'Open dashboard'
131
+ complete -c cortex -n '__fish_seen_subcommand_from convex; and not __fish_seen_subcommand_from status deploy dev logs dashboard update schema init env' -a update -d 'Update packages'
132
+ complete -c cortex -n '__fish_seen_subcommand_from convex; and not __fish_seen_subcommand_from status deploy dev logs dashboard update schema init env' -a schema -d 'View schema'
133
+ complete -c cortex -n '__fish_seen_subcommand_from convex; and not __fish_seen_subcommand_from status deploy dev logs dashboard update schema init env' -a init -d 'Initialize Convex'
134
+ complete -c cortex -n '__fish_seen_subcommand_from convex; and not __fish_seen_subcommand_from status deploy dev logs dashboard update schema init env' -a env -d 'Manage env variables'
135
+
136
+ # users subcommands - only show when no users subcommand has been selected yet
137
+ complete -c cortex -n '__fish_seen_subcommand_from users; and not __fish_seen_subcommand_from list get delete delete-many export stats update create exists' -a list -d 'List all users'
138
+ complete -c cortex -n '__fish_seen_subcommand_from users; and not __fish_seen_subcommand_from list get delete delete-many export stats update create exists' -a get -d 'Get user details'
139
+ complete -c cortex -n '__fish_seen_subcommand_from users; and not __fish_seen_subcommand_from list get delete delete-many export stats update create exists' -a delete -d 'Delete user'
140
+ complete -c cortex -n '__fish_seen_subcommand_from users; and not __fish_seen_subcommand_from list get delete delete-many export stats update create exists' -a delete-many -d 'Delete multiple users'
141
+ complete -c cortex -n '__fish_seen_subcommand_from users; and not __fish_seen_subcommand_from list get delete delete-many export stats update create exists' -a export -d 'Export user data'
142
+ complete -c cortex -n '__fish_seen_subcommand_from users; and not __fish_seen_subcommand_from list get delete delete-many export stats update create exists' -a stats -d 'Show user statistics'
143
+ complete -c cortex -n '__fish_seen_subcommand_from users; and not __fish_seen_subcommand_from list get delete delete-many export stats update create exists' -a update -d 'Update user profile'
144
+ complete -c cortex -n '__fish_seen_subcommand_from users; and not __fish_seen_subcommand_from list get delete delete-many export stats update create exists' -a create -d 'Create user'
145
+ complete -c cortex -n '__fish_seen_subcommand_from users; and not __fish_seen_subcommand_from list get delete delete-many export stats update create exists' -a exists -d 'Check if user exists'
146
+
147
+ # users subcommand options
148
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from list' -s f -l format -xa 'table json' -d 'Output format'
149
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from list' -s l -l limit -d 'Limit results'
150
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Skip confirmation'
151
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from delete' -l gdpr -d 'GDPR cascade deletion'
152
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from delete-many' -s y -l yes -d 'Skip confirmation'
153
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from delete-many' -l gdpr -d 'GDPR cascade deletion'
154
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from export' -s o -l output -r -d 'Output file'
155
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from update' -l name -d 'User name'
156
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from update' -l email -d 'User email'
157
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from create' -l name -d 'User name'
158
+ complete -c cortex -n '__fish_seen_subcommand_from users; and __fish_seen_subcommand_from create' -l email -d 'User email'
159
+
160
+ # spaces subcommands - only show when no spaces subcommand has been selected yet
161
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a list -d 'List memory spaces'
162
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a create -d 'Create memory space'
163
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a get -d 'Get space details'
164
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a delete -d 'Delete space'
165
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a archive -d 'Archive space'
166
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a reactivate -d 'Reactivate space'
167
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a stats -d 'Get space statistics'
168
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a participants -d 'List participants'
169
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a add-participant -d 'Add participant'
170
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a remove-participant -d 'Remove participant'
171
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a update -d 'Update space'
172
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a count -d 'Count spaces'
173
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and not __fish_seen_subcommand_from list create get delete archive reactivate stats participants add-participant remove-participant update count search' -a search -d 'Search spaces'
174
+
175
+ # spaces subcommand options
176
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from list' -s f -l format -xa 'table json' -d 'Output format'
177
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from list' -s l -l limit -d 'Limit results'
178
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from list' -l status -xa 'active archived' -d 'Filter by status'
179
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from create' -l name -d 'Space name'
180
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from create' -l type -xa 'personal team project custom' -d 'Space type'
181
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Skip confirmation'
182
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from delete' -l cascade -d 'Delete all contents'
183
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from add-participant' -l user -d 'User ID'
184
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from remove-participant' -l user -d 'User ID'
185
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from update' -l name -d 'New name'
186
+ complete -c cortex -n '__fish_seen_subcommand_from spaces; and __fish_seen_subcommand_from update' -l status -xa 'active archived' -d 'New status'
187
+
188
+ # conversations subcommands - only show when no conversations subcommand has been selected yet
189
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and not __fish_seen_subcommand_from list get delete export count clear messages' -a list -d 'List conversations'
190
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and not __fish_seen_subcommand_from list get delete export count clear messages' -a get -d 'Get conversation details'
191
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and not __fish_seen_subcommand_from list get delete export count clear messages' -a delete -d 'Delete conversation'
192
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and not __fish_seen_subcommand_from list get delete export count clear messages' -a export -d 'Export conversation'
193
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and not __fish_seen_subcommand_from list get delete export count clear messages' -a count -d 'Count conversations'
194
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and not __fish_seen_subcommand_from list get delete export count clear messages' -a clear -d 'Clear conversations'
195
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and not __fish_seen_subcommand_from list get delete export count clear messages' -a messages -d 'List messages'
196
+
197
+ # conversations subcommand options
198
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and __fish_seen_subcommand_from list' -s f -l format -xa 'table json' -d 'Output format'
199
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and __fish_seen_subcommand_from list' -s l -l limit -d 'Limit results'
200
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and __fish_seen_subcommand_from list' -s s -l space -d 'Memory space'
201
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Skip confirmation'
202
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and __fish_seen_subcommand_from export' -s o -l output -r -d 'Output file'
203
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and __fish_seen_subcommand_from count' -s s -l space -d 'Memory space'
204
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and __fish_seen_subcommand_from clear' -s y -l yes -d 'Skip confirmation'
205
+ complete -c cortex -n '__fish_seen_subcommand_from conversations; and __fish_seen_subcommand_from clear' -s s -l space -d 'Memory space'
206
+
207
+ # memory subcommands - only show when no memory subcommand has been selected yet
208
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and not __fish_seen_subcommand_from list search get delete clear export stats archive restore' -a list -d 'List memories'
209
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and not __fish_seen_subcommand_from list search get delete clear export stats archive restore' -a search -d 'Search memories'
210
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and not __fish_seen_subcommand_from list search get delete clear export stats archive restore' -a get -d 'Get memory details'
211
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and not __fish_seen_subcommand_from list search get delete clear export stats archive restore' -a delete -d 'Delete memory'
212
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and not __fish_seen_subcommand_from list search get delete clear export stats archive restore' -a clear -d 'Clear memories'
213
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and not __fish_seen_subcommand_from list search get delete clear export stats archive restore' -a export -d 'Export memories'
214
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and not __fish_seen_subcommand_from list search get delete clear export stats archive restore' -a stats -d 'Show statistics'
215
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and not __fish_seen_subcommand_from list search get delete clear export stats archive restore' -a archive -d 'Archive memory'
216
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and not __fish_seen_subcommand_from list search get delete clear export stats archive restore' -a restore -d 'Restore memory'
217
+
218
+ # memory subcommand options
219
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from list' -s f -l format -xa 'table json' -d 'Output format'
220
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from list' -s s -l space -d 'Memory space'
221
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from list' -s l -l limit -d 'Limit results'
222
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from search' -s s -l space -d 'Memory space'
223
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from search' -s l -l limit -d 'Limit results'
224
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Skip confirmation'
225
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from clear' -s y -l yes -d 'Skip confirmation'
226
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from clear' -s s -l space -d 'Memory space'
227
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from export' -s s -l space -d 'Memory space'
228
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from export' -s o -l output -r -d 'Output file'
229
+ complete -c cortex -n '__fish_seen_subcommand_from memory; and __fish_seen_subcommand_from stats' -s s -l space -d 'Memory space'
230
+
231
+ # facts subcommands - only show when no facts subcommand has been selected yet
232
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and not __fish_seen_subcommand_from list search get delete export count clear' -a list -d 'List facts'
233
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and not __fish_seen_subcommand_from list search get delete export count clear' -a search -d 'Search facts'
234
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and not __fish_seen_subcommand_from list search get delete export count clear' -a get -d 'Get fact details'
235
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and not __fish_seen_subcommand_from list search get delete export count clear' -a delete -d 'Delete fact'
236
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and not __fish_seen_subcommand_from list search get delete export count clear' -a export -d 'Export facts'
237
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and not __fish_seen_subcommand_from list search get delete export count clear' -a count -d 'Count facts'
238
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and not __fish_seen_subcommand_from list search get delete export count clear' -a clear -d 'Clear facts'
239
+
240
+ # facts subcommand options
241
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from list' -s f -l format -xa 'table json' -d 'Output format'
242
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from list' -s s -l space -d 'Memory space'
243
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from list' -s l -l limit -d 'Limit results'
244
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from list' -s t -l type -xa 'preference identity knowledge relationship event observation custom' -d 'Fact type'
245
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from search' -s s -l space -d 'Memory space'
246
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Skip confirmation'
247
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from export' -s s -l space -d 'Memory space'
248
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from export' -s o -l output -r -d 'Output file'
249
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from count' -s s -l space -d 'Memory space'
250
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from clear' -s y -l yes -d 'Skip confirmation'
251
+ complete -c cortex -n '__fish_seen_subcommand_from facts; and __fish_seen_subcommand_from clear' -s s -l space -d 'Memory space'
252
+
253
+ # start command options
254
+ complete -c cortex -n '__fish_seen_subcommand_from start' -l deployments-only -d 'Only start deployments'
255
+ complete -c cortex -n '__fish_seen_subcommand_from start' -l apps-only -d 'Only start apps'
256
+
257
+ # stop command options
258
+ complete -c cortex -n '__fish_seen_subcommand_from stop' -l deployments-only -d 'Only stop deployments'
259
+ complete -c cortex -n '__fish_seen_subcommand_from stop' -l apps-only -d 'Only stop apps'
260
+
261
+ # deploy command options
262
+ complete -c cortex -n '__fish_seen_subcommand_from deploy' -s y -l yes -d 'Auto-accept prompts'
263
+
264
+ # update command options
265
+ complete -c cortex -n '__fish_seen_subcommand_from update' -l deployments-only -d 'Only update deployments'
266
+ complete -c cortex -n '__fish_seen_subcommand_from update' -l apps-only -d 'Only update apps'
267
+ complete -c cortex -n '__fish_seen_subcommand_from update' -l dev-path -r -d 'Path to local SDK'
268
+ complete -c cortex -n '__fish_seen_subcommand_from update' -l sync-template -d 'Sync template files'
269
+ complete -c cortex -n '__fish_seen_subcommand_from update' -s y -l yes -d 'Auto-accept updates'
270
+
271
+ # status command options
272
+ complete -c cortex -n '__fish_seen_subcommand_from status' -s f -l format -xa 'table json' -d 'Output format'
273
+
274
+ # init command options
275
+ complete -c cortex -n '__fish_seen_subcommand_from init' -s t -l template -xa 'basic vercel-ai-quickstart' -d 'Template type'
276
+ complete -c cortex -n '__fish_seen_subcommand_from init' -s n -l name -d 'Project name'
277
+ complete -c cortex -n '__fish_seen_subcommand_from init' -l skip-install -d 'Skip npm install'
278
+ complete -c cortex -n '__fish_seen_subcommand_from init' -s y -l yes -d 'Accept defaults'
279
+
280
+ # use command options
281
+ complete -c cortex -n '__fish_seen_subcommand_from use' -l clear -d 'Clear current deployment'
282
+ complete -c cortex -n '__fish_seen_subcommand_from use' -xa '(__cortex_deployments)' -d 'Deployment name'
283
+
284
+ # completion command options
285
+ complete -c cortex -n '__fish_seen_subcommand_from completion' -xa 'zsh bash fish' -d 'Shell type'