byterover-cli 2.5.0 → 2.5.2
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
|
@@ -1083,104 +1083,6 @@
|
|
|
1083
1083
|
"switch.js"
|
|
1084
1084
|
]
|
|
1085
1085
|
},
|
|
1086
|
-
"space:list": {
|
|
1087
|
-
"aliases": [],
|
|
1088
|
-
"args": {},
|
|
1089
|
-
"description": "List all teams and spaces",
|
|
1090
|
-
"examples": [
|
|
1091
|
-
"<%= config.bin %> space list",
|
|
1092
|
-
"<%= config.bin %> space list --format json"
|
|
1093
|
-
],
|
|
1094
|
-
"flags": {
|
|
1095
|
-
"format": {
|
|
1096
|
-
"char": "f",
|
|
1097
|
-
"description": "Output format",
|
|
1098
|
-
"name": "format",
|
|
1099
|
-
"default": "text",
|
|
1100
|
-
"hasDynamicHelp": false,
|
|
1101
|
-
"multiple": false,
|
|
1102
|
-
"options": [
|
|
1103
|
-
"text",
|
|
1104
|
-
"json"
|
|
1105
|
-
],
|
|
1106
|
-
"type": "option"
|
|
1107
|
-
}
|
|
1108
|
-
},
|
|
1109
|
-
"hasDynamicHelp": false,
|
|
1110
|
-
"hiddenAliases": [],
|
|
1111
|
-
"id": "space:list",
|
|
1112
|
-
"pluginAlias": "byterover-cli",
|
|
1113
|
-
"pluginName": "byterover-cli",
|
|
1114
|
-
"pluginType": "core",
|
|
1115
|
-
"strict": true,
|
|
1116
|
-
"enableJsonFlag": false,
|
|
1117
|
-
"isESM": true,
|
|
1118
|
-
"relativePath": [
|
|
1119
|
-
"dist",
|
|
1120
|
-
"oclif",
|
|
1121
|
-
"commands",
|
|
1122
|
-
"space",
|
|
1123
|
-
"list.js"
|
|
1124
|
-
]
|
|
1125
|
-
},
|
|
1126
|
-
"space:switch": {
|
|
1127
|
-
"aliases": [],
|
|
1128
|
-
"args": {},
|
|
1129
|
-
"description": "Switch to a different space",
|
|
1130
|
-
"examples": [
|
|
1131
|
-
"<%= config.bin %> space switch --team acme --name my-space",
|
|
1132
|
-
"<%= config.bin %> space switch --team acme --name my-space --format json"
|
|
1133
|
-
],
|
|
1134
|
-
"flags": {
|
|
1135
|
-
"format": {
|
|
1136
|
-
"char": "f",
|
|
1137
|
-
"description": "Output format",
|
|
1138
|
-
"name": "format",
|
|
1139
|
-
"default": "text",
|
|
1140
|
-
"hasDynamicHelp": false,
|
|
1141
|
-
"multiple": false,
|
|
1142
|
-
"options": [
|
|
1143
|
-
"text",
|
|
1144
|
-
"json"
|
|
1145
|
-
],
|
|
1146
|
-
"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
|
-
}
|
|
1166
|
-
},
|
|
1167
|
-
"hasDynamicHelp": false,
|
|
1168
|
-
"hiddenAliases": [],
|
|
1169
|
-
"id": "space:switch",
|
|
1170
|
-
"pluginAlias": "byterover-cli",
|
|
1171
|
-
"pluginName": "byterover-cli",
|
|
1172
|
-
"pluginType": "core",
|
|
1173
|
-
"strict": true,
|
|
1174
|
-
"enableJsonFlag": false,
|
|
1175
|
-
"isESM": true,
|
|
1176
|
-
"relativePath": [
|
|
1177
|
-
"dist",
|
|
1178
|
-
"oclif",
|
|
1179
|
-
"commands",
|
|
1180
|
-
"space",
|
|
1181
|
-
"switch.js"
|
|
1182
|
-
]
|
|
1183
|
-
},
|
|
1184
1086
|
"providers:connect": {
|
|
1185
1087
|
"aliases": [],
|
|
1186
1088
|
"args": {
|
|
@@ -1437,6 +1339,104 @@
|
|
|
1437
1339
|
"switch.js"
|
|
1438
1340
|
]
|
|
1439
1341
|
},
|
|
1342
|
+
"space:list": {
|
|
1343
|
+
"aliases": [],
|
|
1344
|
+
"args": {},
|
|
1345
|
+
"description": "List all teams and spaces",
|
|
1346
|
+
"examples": [
|
|
1347
|
+
"<%= config.bin %> space list",
|
|
1348
|
+
"<%= config.bin %> space list --format json"
|
|
1349
|
+
],
|
|
1350
|
+
"flags": {
|
|
1351
|
+
"format": {
|
|
1352
|
+
"char": "f",
|
|
1353
|
+
"description": "Output format",
|
|
1354
|
+
"name": "format",
|
|
1355
|
+
"default": "text",
|
|
1356
|
+
"hasDynamicHelp": false,
|
|
1357
|
+
"multiple": false,
|
|
1358
|
+
"options": [
|
|
1359
|
+
"text",
|
|
1360
|
+
"json"
|
|
1361
|
+
],
|
|
1362
|
+
"type": "option"
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
"hasDynamicHelp": false,
|
|
1366
|
+
"hiddenAliases": [],
|
|
1367
|
+
"id": "space:list",
|
|
1368
|
+
"pluginAlias": "byterover-cli",
|
|
1369
|
+
"pluginName": "byterover-cli",
|
|
1370
|
+
"pluginType": "core",
|
|
1371
|
+
"strict": true,
|
|
1372
|
+
"enableJsonFlag": false,
|
|
1373
|
+
"isESM": true,
|
|
1374
|
+
"relativePath": [
|
|
1375
|
+
"dist",
|
|
1376
|
+
"oclif",
|
|
1377
|
+
"commands",
|
|
1378
|
+
"space",
|
|
1379
|
+
"list.js"
|
|
1380
|
+
]
|
|
1381
|
+
},
|
|
1382
|
+
"space:switch": {
|
|
1383
|
+
"aliases": [],
|
|
1384
|
+
"args": {},
|
|
1385
|
+
"description": "Switch to a different space",
|
|
1386
|
+
"examples": [
|
|
1387
|
+
"<%= config.bin %> space switch --team acme --name my-space",
|
|
1388
|
+
"<%= config.bin %> space switch --team acme --name my-space --format json"
|
|
1389
|
+
],
|
|
1390
|
+
"flags": {
|
|
1391
|
+
"format": {
|
|
1392
|
+
"char": "f",
|
|
1393
|
+
"description": "Output format",
|
|
1394
|
+
"name": "format",
|
|
1395
|
+
"default": "text",
|
|
1396
|
+
"hasDynamicHelp": false,
|
|
1397
|
+
"multiple": false,
|
|
1398
|
+
"options": [
|
|
1399
|
+
"text",
|
|
1400
|
+
"json"
|
|
1401
|
+
],
|
|
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
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
"hasDynamicHelp": false,
|
|
1424
|
+
"hiddenAliases": [],
|
|
1425
|
+
"id": "space:switch",
|
|
1426
|
+
"pluginAlias": "byterover-cli",
|
|
1427
|
+
"pluginName": "byterover-cli",
|
|
1428
|
+
"pluginType": "core",
|
|
1429
|
+
"strict": true,
|
|
1430
|
+
"enableJsonFlag": false,
|
|
1431
|
+
"isESM": true,
|
|
1432
|
+
"relativePath": [
|
|
1433
|
+
"dist",
|
|
1434
|
+
"oclif",
|
|
1435
|
+
"commands",
|
|
1436
|
+
"space",
|
|
1437
|
+
"switch.js"
|
|
1438
|
+
]
|
|
1439
|
+
},
|
|
1440
1440
|
"hub:registry:add": {
|
|
1441
1441
|
"aliases": [],
|
|
1442
1442
|
"args": {
|
|
@@ -1636,5 +1636,5 @@
|
|
|
1636
1636
|
]
|
|
1637
1637
|
}
|
|
1638
1638
|
},
|
|
1639
|
-
"version": "2.5.
|
|
1639
|
+
"version": "2.5.2"
|
|
1640
1640
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "byterover-cli",
|
|
3
3
|
"description": "ByteRover's CLI",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.2",
|
|
5
5
|
"author": "ByteRover",
|
|
6
6
|
"bin": {
|
|
7
7
|
"brv": "./bin/run.js"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@socket.io/admin-ui": "^0.5.1",
|
|
35
35
|
"@tanstack/react-query": "^5.90.20",
|
|
36
36
|
"ai": "^5.0.129",
|
|
37
|
-
"axios": "
|
|
37
|
+
"axios": "1.14.0",
|
|
38
38
|
"chalk": "^5.6.2",
|
|
39
39
|
"esbuild": "^0.27.2",
|
|
40
40
|
"express": "^5.1.0",
|