byterover-cli 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -89,9 +89,12 @@ export default class ProviderConnect extends Command {
|
|
|
89
89
|
}
|
|
90
90
|
// 4. Connect or switch active provider
|
|
91
91
|
const hasNewConfig = apiKey || baseUrl;
|
|
92
|
-
await (provider.isConnected && !hasNewConfig
|
|
92
|
+
const response = await (provider.isConnected && !hasNewConfig
|
|
93
93
|
? client.requestWithAck(ProviderEvents.SET_ACTIVE, { providerId })
|
|
94
94
|
: client.requestWithAck(ProviderEvents.CONNECT, { apiKey, baseUrl, providerId }));
|
|
95
|
+
if (!response.success) {
|
|
96
|
+
throw new Error(response.error ?? 'Failed to connect provider. Please try again.');
|
|
97
|
+
}
|
|
95
98
|
// 5. Set model if specified
|
|
96
99
|
if (model) {
|
|
97
100
|
await client.requestWithAck(ModelEvents.SET_ACTIVE, { modelId: model, providerId });
|
|
@@ -54,7 +54,10 @@ export default class ProviderSwitch extends Command {
|
|
|
54
54
|
if (!provider.isConnected) {
|
|
55
55
|
throw new Error(`Provider "${providerId}" is not connected. Use "brv providers connect ${providerId}" instead.`);
|
|
56
56
|
}
|
|
57
|
-
await client.requestWithAck(ProviderEvents.SET_ACTIVE, { providerId });
|
|
57
|
+
const response = await client.requestWithAck(ProviderEvents.SET_ACTIVE, { providerId });
|
|
58
|
+
if (!response.success) {
|
|
59
|
+
throw new Error(response.error ?? 'Failed to switch provider. Please try again.');
|
|
60
|
+
}
|
|
58
61
|
return { providerId, providerName: provider.name };
|
|
59
62
|
}, options);
|
|
60
63
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -943,15 +943,50 @@
|
|
|
943
943
|
"list.js"
|
|
944
944
|
]
|
|
945
945
|
},
|
|
946
|
-
"
|
|
946
|
+
"providers:connect": {
|
|
947
947
|
"aliases": [],
|
|
948
|
-
"args": {
|
|
949
|
-
|
|
948
|
+
"args": {
|
|
949
|
+
"provider": {
|
|
950
|
+
"description": "Provider ID to connect (e.g., anthropic, openai, openrouter)",
|
|
951
|
+
"name": "provider",
|
|
952
|
+
"required": true
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
"description": "Connect or switch to an LLM provider",
|
|
950
956
|
"examples": [
|
|
951
|
-
"<%= config.bin %>
|
|
952
|
-
"<%= config.bin %>
|
|
957
|
+
"<%= config.bin %> providers connect anthropic --api-key sk-xxx",
|
|
958
|
+
"<%= config.bin %> providers connect openai --api-key sk-xxx --model gpt-4.1",
|
|
959
|
+
"<%= config.bin %> providers connect openai --oauth",
|
|
960
|
+
"<%= config.bin %> providers connect byterover",
|
|
961
|
+
"<%= config.bin %> providers connect openai-compatible --base-url http://localhost:11434/v1",
|
|
962
|
+
"<%= config.bin %> providers connect openai-compatible --base-url http://localhost:11434/v1 --api-key sk-xxx --model llama3"
|
|
953
963
|
],
|
|
954
964
|
"flags": {
|
|
965
|
+
"api-key": {
|
|
966
|
+
"char": "k",
|
|
967
|
+
"description": "API key for the provider",
|
|
968
|
+
"name": "api-key",
|
|
969
|
+
"hasDynamicHelp": false,
|
|
970
|
+
"multiple": false,
|
|
971
|
+
"type": "option"
|
|
972
|
+
},
|
|
973
|
+
"base-url": {
|
|
974
|
+
"char": "b",
|
|
975
|
+
"description": "Base URL for OpenAI-compatible providers (e.g., http://localhost:11434/v1)",
|
|
976
|
+
"name": "base-url",
|
|
977
|
+
"hasDynamicHelp": false,
|
|
978
|
+
"multiple": false,
|
|
979
|
+
"type": "option"
|
|
980
|
+
},
|
|
981
|
+
"code": {
|
|
982
|
+
"char": "c",
|
|
983
|
+
"description": "Authorization code for code-paste OAuth providers (e.g., Anthropic). Not applicable to browser-callback providers like OpenAI — use --oauth without --code instead.",
|
|
984
|
+
"hidden": true,
|
|
985
|
+
"name": "code",
|
|
986
|
+
"hasDynamicHelp": false,
|
|
987
|
+
"multiple": false,
|
|
988
|
+
"type": "option"
|
|
989
|
+
},
|
|
955
990
|
"format": {
|
|
956
991
|
"description": "Output format (text or json)",
|
|
957
992
|
"name": "format",
|
|
@@ -963,11 +998,25 @@
|
|
|
963
998
|
"json"
|
|
964
999
|
],
|
|
965
1000
|
"type": "option"
|
|
1001
|
+
},
|
|
1002
|
+
"model": {
|
|
1003
|
+
"char": "m",
|
|
1004
|
+
"description": "Model to set as active after connecting",
|
|
1005
|
+
"name": "model",
|
|
1006
|
+
"hasDynamicHelp": false,
|
|
1007
|
+
"multiple": false,
|
|
1008
|
+
"type": "option"
|
|
1009
|
+
},
|
|
1010
|
+
"oauth": {
|
|
1011
|
+
"description": "Connect via OAuth (browser-based)",
|
|
1012
|
+
"name": "oauth",
|
|
1013
|
+
"allowNo": false,
|
|
1014
|
+
"type": "boolean"
|
|
966
1015
|
}
|
|
967
1016
|
},
|
|
968
1017
|
"hasDynamicHelp": false,
|
|
969
1018
|
"hiddenAliases": [],
|
|
970
|
-
"id": "
|
|
1019
|
+
"id": "providers:connect",
|
|
971
1020
|
"pluginAlias": "byterover-cli",
|
|
972
1021
|
"pluginName": "byterover-cli",
|
|
973
1022
|
"pluginType": "core",
|
|
@@ -978,17 +1027,23 @@
|
|
|
978
1027
|
"dist",
|
|
979
1028
|
"oclif",
|
|
980
1029
|
"commands",
|
|
981
|
-
"
|
|
982
|
-
"
|
|
1030
|
+
"providers",
|
|
1031
|
+
"connect.js"
|
|
983
1032
|
]
|
|
984
1033
|
},
|
|
985
|
-
"
|
|
1034
|
+
"providers:disconnect": {
|
|
986
1035
|
"aliases": [],
|
|
987
|
-
"args": {
|
|
988
|
-
|
|
1036
|
+
"args": {
|
|
1037
|
+
"provider": {
|
|
1038
|
+
"description": "Provider ID to disconnect",
|
|
1039
|
+
"name": "provider",
|
|
1040
|
+
"required": true
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
"description": "Disconnect an LLM provider",
|
|
989
1044
|
"examples": [
|
|
990
|
-
"<%= config.bin %>
|
|
991
|
-
"<%= config.bin %>
|
|
1045
|
+
"<%= config.bin %> providers disconnect anthropic",
|
|
1046
|
+
"<%= config.bin %> providers disconnect openai --format json"
|
|
992
1047
|
],
|
|
993
1048
|
"flags": {
|
|
994
1049
|
"format": {
|
|
@@ -1002,19 +1057,11 @@
|
|
|
1002
1057
|
"json"
|
|
1003
1058
|
],
|
|
1004
1059
|
"type": "option"
|
|
1005
|
-
},
|
|
1006
|
-
"provider": {
|
|
1007
|
-
"char": "p",
|
|
1008
|
-
"description": "Only list models for a specific provider",
|
|
1009
|
-
"name": "provider",
|
|
1010
|
-
"hasDynamicHelp": false,
|
|
1011
|
-
"multiple": false,
|
|
1012
|
-
"type": "option"
|
|
1013
1060
|
}
|
|
1014
1061
|
},
|
|
1015
1062
|
"hasDynamicHelp": false,
|
|
1016
1063
|
"hiddenAliases": [],
|
|
1017
|
-
"id": "
|
|
1064
|
+
"id": "providers:disconnect",
|
|
1018
1065
|
"pluginAlias": "byterover-cli",
|
|
1019
1066
|
"pluginName": "byterover-cli",
|
|
1020
1067
|
"pluginType": "core",
|
|
@@ -1025,24 +1072,17 @@
|
|
|
1025
1072
|
"dist",
|
|
1026
1073
|
"oclif",
|
|
1027
1074
|
"commands",
|
|
1028
|
-
"
|
|
1029
|
-
"
|
|
1075
|
+
"providers",
|
|
1076
|
+
"disconnect.js"
|
|
1030
1077
|
]
|
|
1031
1078
|
},
|
|
1032
|
-
"
|
|
1079
|
+
"providers": {
|
|
1033
1080
|
"aliases": [],
|
|
1034
|
-
"args": {
|
|
1035
|
-
|
|
1036
|
-
"description": "Model ID to switch to (e.g., claude-sonnet-4-5, gpt-4.1)",
|
|
1037
|
-
"name": "model",
|
|
1038
|
-
"required": true
|
|
1039
|
-
}
|
|
1040
|
-
},
|
|
1041
|
-
"description": "Switch the active model",
|
|
1081
|
+
"args": {},
|
|
1082
|
+
"description": "Show active provider and model",
|
|
1042
1083
|
"examples": [
|
|
1043
|
-
"<%= config.bin %>
|
|
1044
|
-
"<%= config.bin %>
|
|
1045
|
-
"<%= config.bin %> model switch claude-sonnet-4-5 --format json"
|
|
1084
|
+
"<%= config.bin %> providers",
|
|
1085
|
+
"<%= config.bin %> providers --format json"
|
|
1046
1086
|
],
|
|
1047
1087
|
"flags": {
|
|
1048
1088
|
"format": {
|
|
@@ -1056,19 +1096,11 @@
|
|
|
1056
1096
|
"json"
|
|
1057
1097
|
],
|
|
1058
1098
|
"type": "option"
|
|
1059
|
-
},
|
|
1060
|
-
"provider": {
|
|
1061
|
-
"char": "p",
|
|
1062
|
-
"description": "Provider ID (defaults to active provider)",
|
|
1063
|
-
"name": "provider",
|
|
1064
|
-
"hasDynamicHelp": false,
|
|
1065
|
-
"multiple": false,
|
|
1066
|
-
"type": "option"
|
|
1067
1099
|
}
|
|
1068
1100
|
},
|
|
1069
1101
|
"hasDynamicHelp": false,
|
|
1070
1102
|
"hiddenAliases": [],
|
|
1071
|
-
"id": "
|
|
1103
|
+
"id": "providers",
|
|
1072
1104
|
"pluginAlias": "byterover-cli",
|
|
1073
1105
|
"pluginName": "byterover-cli",
|
|
1074
1106
|
"pluginType": "core",
|
|
@@ -1079,22 +1111,21 @@
|
|
|
1079
1111
|
"dist",
|
|
1080
1112
|
"oclif",
|
|
1081
1113
|
"commands",
|
|
1082
|
-
"
|
|
1083
|
-
"
|
|
1114
|
+
"providers",
|
|
1115
|
+
"index.js"
|
|
1084
1116
|
]
|
|
1085
1117
|
},
|
|
1086
|
-
"
|
|
1118
|
+
"providers:list": {
|
|
1087
1119
|
"aliases": [],
|
|
1088
1120
|
"args": {},
|
|
1089
|
-
"description": "List all
|
|
1121
|
+
"description": "List all available providers and their connection status",
|
|
1090
1122
|
"examples": [
|
|
1091
|
-
"<%= config.bin %>
|
|
1092
|
-
"<%= config.bin %>
|
|
1123
|
+
"<%= config.bin %> providers list",
|
|
1124
|
+
"<%= config.bin %> providers list --format json"
|
|
1093
1125
|
],
|
|
1094
1126
|
"flags": {
|
|
1095
1127
|
"format": {
|
|
1096
|
-
"
|
|
1097
|
-
"description": "Output format",
|
|
1128
|
+
"description": "Output format (text or json)",
|
|
1098
1129
|
"name": "format",
|
|
1099
1130
|
"default": "text",
|
|
1100
1131
|
"hasDynamicHelp": false,
|
|
@@ -1108,7 +1139,7 @@
|
|
|
1108
1139
|
},
|
|
1109
1140
|
"hasDynamicHelp": false,
|
|
1110
1141
|
"hiddenAliases": [],
|
|
1111
|
-
"id": "
|
|
1142
|
+
"id": "providers:list",
|
|
1112
1143
|
"pluginAlias": "byterover-cli",
|
|
1113
1144
|
"pluginName": "byterover-cli",
|
|
1114
1145
|
"pluginType": "core",
|
|
@@ -1119,22 +1150,27 @@
|
|
|
1119
1150
|
"dist",
|
|
1120
1151
|
"oclif",
|
|
1121
1152
|
"commands",
|
|
1122
|
-
"
|
|
1153
|
+
"providers",
|
|
1123
1154
|
"list.js"
|
|
1124
1155
|
]
|
|
1125
1156
|
},
|
|
1126
|
-
"
|
|
1157
|
+
"providers:switch": {
|
|
1127
1158
|
"aliases": [],
|
|
1128
|
-
"args": {
|
|
1129
|
-
|
|
1159
|
+
"args": {
|
|
1160
|
+
"provider": {
|
|
1161
|
+
"description": "Provider ID to switch to (e.g., anthropic, openai)",
|
|
1162
|
+
"name": "provider",
|
|
1163
|
+
"required": true
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
"description": "Switch the active provider",
|
|
1130
1167
|
"examples": [
|
|
1131
|
-
"<%= config.bin %>
|
|
1132
|
-
"<%= config.bin %>
|
|
1168
|
+
"<%= config.bin %> providers switch anthropic",
|
|
1169
|
+
"<%= config.bin %> providers switch openai --format json"
|
|
1133
1170
|
],
|
|
1134
1171
|
"flags": {
|
|
1135
1172
|
"format": {
|
|
1136
|
-
"
|
|
1137
|
-
"description": "Output format",
|
|
1173
|
+
"description": "Output format (text or json)",
|
|
1138
1174
|
"name": "format",
|
|
1139
1175
|
"default": "text",
|
|
1140
1176
|
"hasDynamicHelp": false,
|
|
@@ -1144,29 +1180,11 @@
|
|
|
1144
1180
|
"json"
|
|
1145
1181
|
],
|
|
1146
1182
|
"type": "option"
|
|
1147
|
-
},
|
|
1148
|
-
"name": {
|
|
1149
|
-
"char": "n",
|
|
1150
|
-
"description": "Name of the space to switch to",
|
|
1151
|
-
"name": "name",
|
|
1152
|
-
"required": true,
|
|
1153
|
-
"hasDynamicHelp": false,
|
|
1154
|
-
"multiple": false,
|
|
1155
|
-
"type": "option"
|
|
1156
|
-
},
|
|
1157
|
-
"team": {
|
|
1158
|
-
"char": "t",
|
|
1159
|
-
"description": "Team name",
|
|
1160
|
-
"name": "team",
|
|
1161
|
-
"required": true,
|
|
1162
|
-
"hasDynamicHelp": false,
|
|
1163
|
-
"multiple": false,
|
|
1164
|
-
"type": "option"
|
|
1165
1183
|
}
|
|
1166
1184
|
},
|
|
1167
1185
|
"hasDynamicHelp": false,
|
|
1168
1186
|
"hiddenAliases": [],
|
|
1169
|
-
"id": "
|
|
1187
|
+
"id": "providers:switch",
|
|
1170
1188
|
"pluginAlias": "byterover-cli",
|
|
1171
1189
|
"pluginName": "byterover-cli",
|
|
1172
1190
|
"pluginType": "core",
|
|
@@ -1177,54 +1195,19 @@
|
|
|
1177
1195
|
"dist",
|
|
1178
1196
|
"oclif",
|
|
1179
1197
|
"commands",
|
|
1180
|
-
"
|
|
1198
|
+
"providers",
|
|
1181
1199
|
"switch.js"
|
|
1182
1200
|
]
|
|
1183
1201
|
},
|
|
1184
|
-
"
|
|
1202
|
+
"model": {
|
|
1185
1203
|
"aliases": [],
|
|
1186
|
-
"args": {
|
|
1187
|
-
|
|
1188
|
-
"description": "Provider ID to connect (e.g., anthropic, openai, openrouter)",
|
|
1189
|
-
"name": "provider",
|
|
1190
|
-
"required": true
|
|
1191
|
-
}
|
|
1192
|
-
},
|
|
1193
|
-
"description": "Connect or switch to an LLM provider",
|
|
1204
|
+
"args": {},
|
|
1205
|
+
"description": "Show the active model",
|
|
1194
1206
|
"examples": [
|
|
1195
|
-
"<%= config.bin %>
|
|
1196
|
-
"<%= config.bin %>
|
|
1197
|
-
"<%= config.bin %> providers connect openai --oauth",
|
|
1198
|
-
"<%= config.bin %> providers connect byterover",
|
|
1199
|
-
"<%= config.bin %> providers connect openai-compatible --base-url http://localhost:11434/v1",
|
|
1200
|
-
"<%= config.bin %> providers connect openai-compatible --base-url http://localhost:11434/v1 --api-key sk-xxx --model llama3"
|
|
1207
|
+
"<%= config.bin %> model",
|
|
1208
|
+
"<%= config.bin %> model --format json"
|
|
1201
1209
|
],
|
|
1202
1210
|
"flags": {
|
|
1203
|
-
"api-key": {
|
|
1204
|
-
"char": "k",
|
|
1205
|
-
"description": "API key for the provider",
|
|
1206
|
-
"name": "api-key",
|
|
1207
|
-
"hasDynamicHelp": false,
|
|
1208
|
-
"multiple": false,
|
|
1209
|
-
"type": "option"
|
|
1210
|
-
},
|
|
1211
|
-
"base-url": {
|
|
1212
|
-
"char": "b",
|
|
1213
|
-
"description": "Base URL for OpenAI-compatible providers (e.g., http://localhost:11434/v1)",
|
|
1214
|
-
"name": "base-url",
|
|
1215
|
-
"hasDynamicHelp": false,
|
|
1216
|
-
"multiple": false,
|
|
1217
|
-
"type": "option"
|
|
1218
|
-
},
|
|
1219
|
-
"code": {
|
|
1220
|
-
"char": "c",
|
|
1221
|
-
"description": "Authorization code for code-paste OAuth providers (e.g., Anthropic). Not applicable to browser-callback providers like OpenAI — use --oauth without --code instead.",
|
|
1222
|
-
"hidden": true,
|
|
1223
|
-
"name": "code",
|
|
1224
|
-
"hasDynamicHelp": false,
|
|
1225
|
-
"multiple": false,
|
|
1226
|
-
"type": "option"
|
|
1227
|
-
},
|
|
1228
1211
|
"format": {
|
|
1229
1212
|
"description": "Output format (text or json)",
|
|
1230
1213
|
"name": "format",
|
|
@@ -1236,25 +1219,11 @@
|
|
|
1236
1219
|
"json"
|
|
1237
1220
|
],
|
|
1238
1221
|
"type": "option"
|
|
1239
|
-
},
|
|
1240
|
-
"model": {
|
|
1241
|
-
"char": "m",
|
|
1242
|
-
"description": "Model to set as active after connecting",
|
|
1243
|
-
"name": "model",
|
|
1244
|
-
"hasDynamicHelp": false,
|
|
1245
|
-
"multiple": false,
|
|
1246
|
-
"type": "option"
|
|
1247
|
-
},
|
|
1248
|
-
"oauth": {
|
|
1249
|
-
"description": "Connect via OAuth (browser-based)",
|
|
1250
|
-
"name": "oauth",
|
|
1251
|
-
"allowNo": false,
|
|
1252
|
-
"type": "boolean"
|
|
1253
1222
|
}
|
|
1254
1223
|
},
|
|
1255
1224
|
"hasDynamicHelp": false,
|
|
1256
1225
|
"hiddenAliases": [],
|
|
1257
|
-
"id": "
|
|
1226
|
+
"id": "model",
|
|
1258
1227
|
"pluginAlias": "byterover-cli",
|
|
1259
1228
|
"pluginName": "byterover-cli",
|
|
1260
1229
|
"pluginType": "core",
|
|
@@ -1265,23 +1234,17 @@
|
|
|
1265
1234
|
"dist",
|
|
1266
1235
|
"oclif",
|
|
1267
1236
|
"commands",
|
|
1268
|
-
"
|
|
1269
|
-
"
|
|
1237
|
+
"model",
|
|
1238
|
+
"index.js"
|
|
1270
1239
|
]
|
|
1271
1240
|
},
|
|
1272
|
-
"
|
|
1241
|
+
"model:list": {
|
|
1273
1242
|
"aliases": [],
|
|
1274
|
-
"args": {
|
|
1275
|
-
|
|
1276
|
-
"description": "Provider ID to disconnect",
|
|
1277
|
-
"name": "provider",
|
|
1278
|
-
"required": true
|
|
1279
|
-
}
|
|
1280
|
-
},
|
|
1281
|
-
"description": "Disconnect an LLM provider",
|
|
1243
|
+
"args": {},
|
|
1244
|
+
"description": "List available models from all connected providers",
|
|
1282
1245
|
"examples": [
|
|
1283
|
-
"<%= config.bin %>
|
|
1284
|
-
"<%= config.bin %>
|
|
1246
|
+
"<%= config.bin %> model list",
|
|
1247
|
+
"<%= config.bin %> model list --format json"
|
|
1285
1248
|
],
|
|
1286
1249
|
"flags": {
|
|
1287
1250
|
"format": {
|
|
@@ -1295,11 +1258,19 @@
|
|
|
1295
1258
|
"json"
|
|
1296
1259
|
],
|
|
1297
1260
|
"type": "option"
|
|
1261
|
+
},
|
|
1262
|
+
"provider": {
|
|
1263
|
+
"char": "p",
|
|
1264
|
+
"description": "Only list models for a specific provider",
|
|
1265
|
+
"name": "provider",
|
|
1266
|
+
"hasDynamicHelp": false,
|
|
1267
|
+
"multiple": false,
|
|
1268
|
+
"type": "option"
|
|
1298
1269
|
}
|
|
1299
1270
|
},
|
|
1300
1271
|
"hasDynamicHelp": false,
|
|
1301
1272
|
"hiddenAliases": [],
|
|
1302
|
-
"id": "
|
|
1273
|
+
"id": "model:list",
|
|
1303
1274
|
"pluginAlias": "byterover-cli",
|
|
1304
1275
|
"pluginName": "byterover-cli",
|
|
1305
1276
|
"pluginType": "core",
|
|
@@ -1310,17 +1281,24 @@
|
|
|
1310
1281
|
"dist",
|
|
1311
1282
|
"oclif",
|
|
1312
1283
|
"commands",
|
|
1313
|
-
"
|
|
1314
|
-
"
|
|
1284
|
+
"model",
|
|
1285
|
+
"list.js"
|
|
1315
1286
|
]
|
|
1316
1287
|
},
|
|
1317
|
-
"
|
|
1288
|
+
"model:switch": {
|
|
1318
1289
|
"aliases": [],
|
|
1319
|
-
"args": {
|
|
1320
|
-
|
|
1290
|
+
"args": {
|
|
1291
|
+
"model": {
|
|
1292
|
+
"description": "Model ID to switch to (e.g., claude-sonnet-4-5, gpt-4.1)",
|
|
1293
|
+
"name": "model",
|
|
1294
|
+
"required": true
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
"description": "Switch the active model",
|
|
1321
1298
|
"examples": [
|
|
1322
|
-
"<%= config.bin %>
|
|
1323
|
-
"<%= config.bin %>
|
|
1299
|
+
"<%= config.bin %> model switch claude-sonnet-4-5",
|
|
1300
|
+
"<%= config.bin %> model switch gpt-4.1 --provider openai",
|
|
1301
|
+
"<%= config.bin %> model switch claude-sonnet-4-5 --format json"
|
|
1324
1302
|
],
|
|
1325
1303
|
"flags": {
|
|
1326
1304
|
"format": {
|
|
@@ -1334,11 +1312,19 @@
|
|
|
1334
1312
|
"json"
|
|
1335
1313
|
],
|
|
1336
1314
|
"type": "option"
|
|
1315
|
+
},
|
|
1316
|
+
"provider": {
|
|
1317
|
+
"char": "p",
|
|
1318
|
+
"description": "Provider ID (defaults to active provider)",
|
|
1319
|
+
"name": "provider",
|
|
1320
|
+
"hasDynamicHelp": false,
|
|
1321
|
+
"multiple": false,
|
|
1322
|
+
"type": "option"
|
|
1337
1323
|
}
|
|
1338
1324
|
},
|
|
1339
1325
|
"hasDynamicHelp": false,
|
|
1340
1326
|
"hiddenAliases": [],
|
|
1341
|
-
"id": "
|
|
1327
|
+
"id": "model:switch",
|
|
1342
1328
|
"pluginAlias": "byterover-cli",
|
|
1343
1329
|
"pluginName": "byterover-cli",
|
|
1344
1330
|
"pluginType": "core",
|
|
@@ -1349,21 +1335,22 @@
|
|
|
1349
1335
|
"dist",
|
|
1350
1336
|
"oclif",
|
|
1351
1337
|
"commands",
|
|
1352
|
-
"
|
|
1353
|
-
"
|
|
1338
|
+
"model",
|
|
1339
|
+
"switch.js"
|
|
1354
1340
|
]
|
|
1355
1341
|
},
|
|
1356
|
-
"
|
|
1342
|
+
"space:list": {
|
|
1357
1343
|
"aliases": [],
|
|
1358
1344
|
"args": {},
|
|
1359
|
-
"description": "List all
|
|
1345
|
+
"description": "List all teams and spaces",
|
|
1360
1346
|
"examples": [
|
|
1361
|
-
"<%= config.bin %>
|
|
1362
|
-
"<%= config.bin %>
|
|
1347
|
+
"<%= config.bin %> space list",
|
|
1348
|
+
"<%= config.bin %> space list --format json"
|
|
1363
1349
|
],
|
|
1364
1350
|
"flags": {
|
|
1365
1351
|
"format": {
|
|
1366
|
-
"
|
|
1352
|
+
"char": "f",
|
|
1353
|
+
"description": "Output format",
|
|
1367
1354
|
"name": "format",
|
|
1368
1355
|
"default": "text",
|
|
1369
1356
|
"hasDynamicHelp": false,
|
|
@@ -1377,7 +1364,7 @@
|
|
|
1377
1364
|
},
|
|
1378
1365
|
"hasDynamicHelp": false,
|
|
1379
1366
|
"hiddenAliases": [],
|
|
1380
|
-
"id": "
|
|
1367
|
+
"id": "space:list",
|
|
1381
1368
|
"pluginAlias": "byterover-cli",
|
|
1382
1369
|
"pluginName": "byterover-cli",
|
|
1383
1370
|
"pluginType": "core",
|
|
@@ -1388,27 +1375,22 @@
|
|
|
1388
1375
|
"dist",
|
|
1389
1376
|
"oclif",
|
|
1390
1377
|
"commands",
|
|
1391
|
-
"
|
|
1378
|
+
"space",
|
|
1392
1379
|
"list.js"
|
|
1393
1380
|
]
|
|
1394
1381
|
},
|
|
1395
|
-
"
|
|
1382
|
+
"space:switch": {
|
|
1396
1383
|
"aliases": [],
|
|
1397
|
-
"args": {
|
|
1398
|
-
|
|
1399
|
-
"description": "Provider ID to switch to (e.g., anthropic, openai)",
|
|
1400
|
-
"name": "provider",
|
|
1401
|
-
"required": true
|
|
1402
|
-
}
|
|
1403
|
-
},
|
|
1404
|
-
"description": "Switch the active provider",
|
|
1384
|
+
"args": {},
|
|
1385
|
+
"description": "Switch to a different space",
|
|
1405
1386
|
"examples": [
|
|
1406
|
-
"<%= config.bin %>
|
|
1407
|
-
"<%= config.bin %>
|
|
1387
|
+
"<%= config.bin %> space switch --team acme --name my-space",
|
|
1388
|
+
"<%= config.bin %> space switch --team acme --name my-space --format json"
|
|
1408
1389
|
],
|
|
1409
1390
|
"flags": {
|
|
1410
1391
|
"format": {
|
|
1411
|
-
"
|
|
1392
|
+
"char": "f",
|
|
1393
|
+
"description": "Output format",
|
|
1412
1394
|
"name": "format",
|
|
1413
1395
|
"default": "text",
|
|
1414
1396
|
"hasDynamicHelp": false,
|
|
@@ -1418,11 +1400,29 @@
|
|
|
1418
1400
|
"json"
|
|
1419
1401
|
],
|
|
1420
1402
|
"type": "option"
|
|
1403
|
+
},
|
|
1404
|
+
"name": {
|
|
1405
|
+
"char": "n",
|
|
1406
|
+
"description": "Name of the space to switch to",
|
|
1407
|
+
"name": "name",
|
|
1408
|
+
"required": true,
|
|
1409
|
+
"hasDynamicHelp": false,
|
|
1410
|
+
"multiple": false,
|
|
1411
|
+
"type": "option"
|
|
1412
|
+
},
|
|
1413
|
+
"team": {
|
|
1414
|
+
"char": "t",
|
|
1415
|
+
"description": "Team name",
|
|
1416
|
+
"name": "team",
|
|
1417
|
+
"required": true,
|
|
1418
|
+
"hasDynamicHelp": false,
|
|
1419
|
+
"multiple": false,
|
|
1420
|
+
"type": "option"
|
|
1421
1421
|
}
|
|
1422
1422
|
},
|
|
1423
1423
|
"hasDynamicHelp": false,
|
|
1424
1424
|
"hiddenAliases": [],
|
|
1425
|
-
"id": "
|
|
1425
|
+
"id": "space:switch",
|
|
1426
1426
|
"pluginAlias": "byterover-cli",
|
|
1427
1427
|
"pluginName": "byterover-cli",
|
|
1428
1428
|
"pluginType": "core",
|
|
@@ -1433,7 +1433,7 @@
|
|
|
1433
1433
|
"dist",
|
|
1434
1434
|
"oclif",
|
|
1435
1435
|
"commands",
|
|
1436
|
-
"
|
|
1436
|
+
"space",
|
|
1437
1437
|
"switch.js"
|
|
1438
1438
|
]
|
|
1439
1439
|
},
|
|
@@ -1636,5 +1636,5 @@
|
|
|
1636
1636
|
]
|
|
1637
1637
|
}
|
|
1638
1638
|
},
|
|
1639
|
-
"version": "2.5.
|
|
1639
|
+
"version": "2.5.1"
|
|
1640
1640
|
}
|