byterover-cli 3.3.0 → 3.5.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.
Files changed (106) hide show
  1. package/dist/agent/core/domain/swarm/types.d.ts +132 -0
  2. package/dist/agent/core/domain/swarm/types.js +128 -0
  3. package/dist/agent/core/domain/tools/constants.d.ts +2 -0
  4. package/dist/agent/core/domain/tools/constants.js +2 -0
  5. package/dist/agent/core/interfaces/i-memory-provider.d.ts +45 -0
  6. package/dist/agent/core/interfaces/i-memory-provider.js +1 -0
  7. package/dist/agent/core/interfaces/i-sandbox-service.d.ts +8 -0
  8. package/dist/agent/core/interfaces/i-swarm-coordinator.d.ts +127 -0
  9. package/dist/agent/core/interfaces/i-swarm-coordinator.js +1 -0
  10. package/dist/agent/infra/agent/service-initializer.js +48 -0
  11. package/dist/agent/infra/map/map-shared.d.ts +2 -2
  12. package/dist/agent/infra/sandbox/sandbox-service.d.ts +10 -0
  13. package/dist/agent/infra/sandbox/sandbox-service.js +13 -0
  14. package/dist/agent/infra/sandbox/tools-sdk.d.ts +25 -0
  15. package/dist/agent/infra/sandbox/tools-sdk.js +24 -1
  16. package/dist/agent/infra/swarm/adapters/byterover-adapter.d.ts +39 -0
  17. package/dist/agent/infra/swarm/adapters/byterover-adapter.js +62 -0
  18. package/dist/agent/infra/swarm/adapters/gbrain-adapter.d.ts +63 -0
  19. package/dist/agent/infra/swarm/adapters/gbrain-adapter.js +209 -0
  20. package/dist/agent/infra/swarm/adapters/local-markdown-adapter.d.ts +41 -0
  21. package/dist/agent/infra/swarm/adapters/local-markdown-adapter.js +256 -0
  22. package/dist/agent/infra/swarm/adapters/memory-wiki-adapter.d.ts +29 -0
  23. package/dist/agent/infra/swarm/adapters/memory-wiki-adapter.js +244 -0
  24. package/dist/agent/infra/swarm/adapters/obsidian-adapter.d.ts +37 -0
  25. package/dist/agent/infra/swarm/adapters/obsidian-adapter.js +201 -0
  26. package/dist/agent/infra/swarm/cli/query-renderer.d.ts +15 -0
  27. package/dist/agent/infra/swarm/cli/query-renderer.js +126 -0
  28. package/dist/agent/infra/swarm/config/swarm-config-loader.d.ts +14 -0
  29. package/dist/agent/infra/swarm/config/swarm-config-loader.js +82 -0
  30. package/dist/agent/infra/swarm/config/swarm-config-schema.d.ts +667 -0
  31. package/dist/agent/infra/swarm/config/swarm-config-schema.js +305 -0
  32. package/dist/agent/infra/swarm/provider-factory.d.ts +21 -0
  33. package/dist/agent/infra/swarm/provider-factory.js +67 -0
  34. package/dist/agent/infra/swarm/search-precision.d.ts +95 -0
  35. package/dist/agent/infra/swarm/search-precision.js +141 -0
  36. package/dist/agent/infra/swarm/swarm-coordinator.d.ts +59 -0
  37. package/dist/agent/infra/swarm/swarm-coordinator.js +436 -0
  38. package/dist/agent/infra/swarm/swarm-graph.d.ts +63 -0
  39. package/dist/agent/infra/swarm/swarm-graph.js +167 -0
  40. package/dist/agent/infra/swarm/swarm-merger.d.ts +29 -0
  41. package/dist/agent/infra/swarm/swarm-merger.js +66 -0
  42. package/dist/agent/infra/swarm/swarm-router.d.ts +12 -0
  43. package/dist/agent/infra/swarm/swarm-router.js +40 -0
  44. package/dist/agent/infra/swarm/swarm-write-router.d.ts +23 -0
  45. package/dist/agent/infra/swarm/swarm-write-router.js +45 -0
  46. package/dist/agent/infra/swarm/validation/config-validator.d.ts +16 -0
  47. package/dist/agent/infra/swarm/validation/config-validator.js +402 -0
  48. package/dist/agent/infra/swarm/validation/memory-swarm-validation-error.d.ts +33 -0
  49. package/dist/agent/infra/swarm/validation/memory-swarm-validation-error.js +27 -0
  50. package/dist/agent/infra/swarm/wizard/config-scaffolder.d.ts +36 -0
  51. package/dist/agent/infra/swarm/wizard/config-scaffolder.js +96 -0
  52. package/dist/agent/infra/swarm/wizard/provider-detector.d.ts +54 -0
  53. package/dist/agent/infra/swarm/wizard/provider-detector.js +153 -0
  54. package/dist/agent/infra/swarm/wizard/swarm-wizard.d.ts +61 -0
  55. package/dist/agent/infra/swarm/wizard/swarm-wizard.js +187 -0
  56. package/dist/agent/infra/system-prompt/contributors/index.d.ts +1 -0
  57. package/dist/agent/infra/system-prompt/contributors/index.js +1 -0
  58. package/dist/agent/infra/system-prompt/contributors/swarm-state-contributor.d.ts +15 -0
  59. package/dist/agent/infra/system-prompt/contributors/swarm-state-contributor.js +65 -0
  60. package/dist/agent/infra/tools/implementations/curate-tool.d.ts +14 -14
  61. package/dist/agent/infra/tools/implementations/curate-tool.js +2 -0
  62. package/dist/agent/infra/tools/implementations/swarm-query-tool.d.ts +9 -0
  63. package/dist/agent/infra/tools/implementations/swarm-query-tool.js +44 -0
  64. package/dist/agent/infra/tools/implementations/swarm-store-tool.d.ts +9 -0
  65. package/dist/agent/infra/tools/implementations/swarm-store-tool.js +43 -0
  66. package/dist/agent/infra/tools/tool-provider.js +1 -0
  67. package/dist/agent/infra/tools/tool-registry.d.ts +3 -0
  68. package/dist/agent/infra/tools/tool-registry.js +25 -1
  69. package/dist/agent/resources/tools/code_exec.txt +2 -0
  70. package/dist/agent/resources/tools/swarm_query.txt +38 -0
  71. package/dist/agent/resources/tools/swarm_store.txt +35 -0
  72. package/dist/oclif/commands/connectors/install.d.ts +2 -2
  73. package/dist/oclif/commands/connectors/install.js +15 -7
  74. package/dist/oclif/commands/swarm/curate.d.ts +13 -0
  75. package/dist/oclif/commands/swarm/curate.js +81 -0
  76. package/dist/oclif/commands/swarm/onboard.d.ts +6 -0
  77. package/dist/oclif/commands/swarm/onboard.js +233 -0
  78. package/dist/oclif/commands/swarm/query.d.ts +14 -0
  79. package/dist/oclif/commands/swarm/query.js +84 -0
  80. package/dist/oclif/commands/swarm/status.d.ts +41 -0
  81. package/dist/oclif/commands/swarm/status.js +278 -0
  82. package/dist/server/constants.d.ts +3 -2
  83. package/dist/server/constants.js +10 -9
  84. package/dist/server/core/domain/entities/agent.js +4 -0
  85. package/dist/server/core/domain/source/source-schema.d.ts +6 -6
  86. package/dist/server/core/domain/transport/schemas.d.ts +4 -4
  87. package/dist/server/infra/connectors/mcp/claude-desktop-config-path.d.ts +20 -0
  88. package/dist/server/infra/connectors/mcp/claude-desktop-config-path.js +47 -0
  89. package/dist/server/infra/connectors/mcp/mcp-connector-config.d.ts +19 -0
  90. package/dist/server/infra/connectors/mcp/mcp-connector-config.js +9 -0
  91. package/dist/server/infra/connectors/mcp/mcp-connector.js +12 -3
  92. package/dist/server/infra/http/provider-model-fetchers.js +1 -0
  93. package/dist/server/infra/process/feature-handlers.js +13 -0
  94. package/dist/server/infra/project/project-registry.js +13 -1
  95. package/dist/server/infra/transport/handlers/locations-handler.d.ts +2 -0
  96. package/dist/server/infra/transport/handlers/locations-handler.js +16 -1
  97. package/dist/server/infra/transport/handlers/vc-handler.d.ts +0 -4
  98. package/dist/server/infra/transport/handlers/vc-handler.js +5 -16
  99. package/dist/server/templates/skill/SKILL.md +163 -0
  100. package/dist/server/utils/gitignore.d.ts +1 -0
  101. package/dist/server/utils/gitignore.js +36 -4
  102. package/dist/shared/types/agent.d.ts +2 -1
  103. package/dist/shared/types/agent.js +2 -0
  104. package/dist/tui/features/connectors/components/connectors-flow.js +7 -2
  105. package/oclif.manifest.json +503 -323
  106. package/package.json +2 -2
@@ -640,7 +640,7 @@
640
640
  "required": false
641
641
  }
642
642
  },
643
- "description": "Install or switch a connector for an agent\n\n Connector Types:\n Rules Agent reads instructions from rule file\n Hook Instructions injected on each prompt\n MCP Agent connects via MCP protocol\n Agent Skill Agent reads skill files from project directory\n\n Available agents Default Supported Types\n ──────────────────── ─────────────── ─────────────────────────\n Amp Agent Skill Rules, MCP, Agent Skill\n Antigravity Agent Skill Rules, MCP, Agent Skill\n Auggie CLI Agent Skill Rules, MCP, Agent Skill\n Augment Code MCP Rules, MCP\n Claude Code Agent Skill Rules, Hook, MCP, Agent Skill\n Cline MCP Rules, MCP\n Codex Agent Skill Rules, MCP, Agent Skill\n Cursor Agent Skill Rules, MCP, Agent Skill\n Gemini CLI Agent Skill Rules, MCP, Agent Skill\n Github Copilot Agent Skill Rules, MCP, Agent Skill\n Junie Agent Skill Rules, MCP, Agent Skill\n Kilo Code Agent Skill Rules, MCP, Agent Skill\n Kiro Agent Skill Rules, MCP, Agent Skill\n OpenClaw Agent Skill Agent Skill\n OpenCode Agent Skill Rules, MCP, Agent Skill\n Qoder Agent Skill Rules, MCP, Agent Skill\n Qwen Code MCP Rules, MCP\n Roo Code Agent Skill Rules, MCP, Agent Skill\n Trae.ai Agent Skill Rules, MCP, Agent Skill\n Warp Agent Skill Rules, MCP, Agent Skill\n Windsurf Agent Skill Rules, MCP, Agent Skill\n Zed MCP Rules, MCP",
643
+ "description": "Install or switch a connector for an agent\n\n Connector Types:\n Rules Agent reads instructions from rule file\n Hook Instructions injected on each prompt\n MCP Agent connects via MCP protocol\n Agent Skill Agent reads skill files from project directory\n\n Available agents Default Supported Types\n ──────────────────── ─────────────── ─────────────────────────\n Amp Agent Skill Rules, MCP, Agent Skill\n Antigravity Agent Skill Rules, MCP, Agent Skill\n Auggie CLI Agent Skill Rules, MCP, Agent Skill\n Augment Code MCP Rules, MCP\n Claude Code Agent Skill Rules, Hook, MCP, Agent Skill\n Claude Desktop MCP MCP\n Cline MCP Rules, MCP\n Codex Agent Skill Rules, MCP, Agent Skill\n Cursor Agent Skill Rules, MCP, Agent Skill\n Gemini CLI Agent Skill Rules, MCP, Agent Skill\n Github Copilot Agent Skill Rules, MCP, Agent Skill\n Junie Agent Skill Rules, MCP, Agent Skill\n Kilo Code Agent Skill Rules, MCP, Agent Skill\n Kiro Agent Skill Rules, MCP, Agent Skill\n OpenClaw Agent Skill Agent Skill\n OpenCode Agent Skill Rules, MCP, Agent Skill\n Qoder Agent Skill Rules, MCP, Agent Skill\n Qwen Code MCP Rules, MCP\n Roo Code Agent Skill Rules, MCP, Agent Skill\n Trae.ai Agent Skill Rules, MCP, Agent Skill\n Warp Agent Skill Rules, MCP, Agent Skill\n Windsurf Agent Skill Rules, MCP, Agent Skill\n Zed MCP Rules, MCP",
644
644
  "examples": [
645
645
  "<%= config.bin %> connectors install \"Claude Code\"",
646
646
  "<%= config.bin %> connectors install \"Claude Code\" --type mcp",
@@ -1216,6 +1216,261 @@
1216
1216
  "switch.js"
1217
1217
  ]
1218
1218
  },
1219
+ "providers:connect": {
1220
+ "aliases": [],
1221
+ "args": {
1222
+ "provider": {
1223
+ "description": "Provider ID to connect (e.g., anthropic, openai, openrouter). Omit for interactive selection.",
1224
+ "name": "provider",
1225
+ "required": false
1226
+ }
1227
+ },
1228
+ "description": "Connect or switch to an LLM provider",
1229
+ "examples": [
1230
+ "<%= config.bin %> providers connect",
1231
+ "<%= config.bin %> providers connect anthropic --api-key sk-xxx",
1232
+ "<%= config.bin %> providers connect openai --oauth",
1233
+ "<%= config.bin %> providers connect byterover",
1234
+ "<%= config.bin %> providers connect openai-compatible --base-url http://localhost:11434/v1 --api-key sk-xxx"
1235
+ ],
1236
+ "flags": {
1237
+ "api-key": {
1238
+ "char": "k",
1239
+ "description": "API key for the provider",
1240
+ "name": "api-key",
1241
+ "hasDynamicHelp": false,
1242
+ "multiple": false,
1243
+ "type": "option"
1244
+ },
1245
+ "base-url": {
1246
+ "char": "b",
1247
+ "description": "Base URL for OpenAI-compatible providers (e.g., http://localhost:11434/v1)",
1248
+ "name": "base-url",
1249
+ "hasDynamicHelp": false,
1250
+ "multiple": false,
1251
+ "type": "option"
1252
+ },
1253
+ "code": {
1254
+ "char": "c",
1255
+ "description": "Authorization code for code-paste OAuth providers (e.g., Anthropic). Not applicable to browser-callback providers like OpenAI — use --oauth without --code instead.",
1256
+ "hidden": true,
1257
+ "name": "code",
1258
+ "hasDynamicHelp": false,
1259
+ "multiple": false,
1260
+ "type": "option"
1261
+ },
1262
+ "format": {
1263
+ "description": "Output format (text or json)",
1264
+ "name": "format",
1265
+ "default": "text",
1266
+ "hasDynamicHelp": false,
1267
+ "multiple": false,
1268
+ "options": [
1269
+ "text",
1270
+ "json"
1271
+ ],
1272
+ "type": "option"
1273
+ },
1274
+ "model": {
1275
+ "char": "m",
1276
+ "description": "Model to set as active after connecting",
1277
+ "name": "model",
1278
+ "hasDynamicHelp": false,
1279
+ "multiple": false,
1280
+ "type": "option"
1281
+ },
1282
+ "oauth": {
1283
+ "description": "Connect via OAuth (browser-based)",
1284
+ "name": "oauth",
1285
+ "allowNo": false,
1286
+ "type": "boolean"
1287
+ }
1288
+ },
1289
+ "hasDynamicHelp": false,
1290
+ "hiddenAliases": [],
1291
+ "id": "providers:connect",
1292
+ "pluginAlias": "byterover-cli",
1293
+ "pluginName": "byterover-cli",
1294
+ "pluginType": "core",
1295
+ "strict": true,
1296
+ "enableJsonFlag": false,
1297
+ "isESM": true,
1298
+ "relativePath": [
1299
+ "dist",
1300
+ "oclif",
1301
+ "commands",
1302
+ "providers",
1303
+ "connect.js"
1304
+ ]
1305
+ },
1306
+ "providers:disconnect": {
1307
+ "aliases": [],
1308
+ "args": {
1309
+ "provider": {
1310
+ "description": "Provider ID to disconnect",
1311
+ "name": "provider",
1312
+ "required": true
1313
+ }
1314
+ },
1315
+ "description": "Disconnect an LLM provider",
1316
+ "examples": [
1317
+ "<%= config.bin %> providers disconnect anthropic",
1318
+ "<%= config.bin %> providers disconnect openai --format json"
1319
+ ],
1320
+ "flags": {
1321
+ "format": {
1322
+ "description": "Output format (text or json)",
1323
+ "name": "format",
1324
+ "default": "text",
1325
+ "hasDynamicHelp": false,
1326
+ "multiple": false,
1327
+ "options": [
1328
+ "text",
1329
+ "json"
1330
+ ],
1331
+ "type": "option"
1332
+ }
1333
+ },
1334
+ "hasDynamicHelp": false,
1335
+ "hiddenAliases": [],
1336
+ "id": "providers:disconnect",
1337
+ "pluginAlias": "byterover-cli",
1338
+ "pluginName": "byterover-cli",
1339
+ "pluginType": "core",
1340
+ "strict": true,
1341
+ "enableJsonFlag": false,
1342
+ "isESM": true,
1343
+ "relativePath": [
1344
+ "dist",
1345
+ "oclif",
1346
+ "commands",
1347
+ "providers",
1348
+ "disconnect.js"
1349
+ ]
1350
+ },
1351
+ "providers": {
1352
+ "aliases": [],
1353
+ "args": {},
1354
+ "description": "Show active provider and model",
1355
+ "examples": [
1356
+ "<%= config.bin %> providers",
1357
+ "<%= config.bin %> providers --format json"
1358
+ ],
1359
+ "flags": {
1360
+ "format": {
1361
+ "description": "Output format (text or json)",
1362
+ "name": "format",
1363
+ "default": "text",
1364
+ "hasDynamicHelp": false,
1365
+ "multiple": false,
1366
+ "options": [
1367
+ "text",
1368
+ "json"
1369
+ ],
1370
+ "type": "option"
1371
+ }
1372
+ },
1373
+ "hasDynamicHelp": false,
1374
+ "hiddenAliases": [],
1375
+ "id": "providers",
1376
+ "pluginAlias": "byterover-cli",
1377
+ "pluginName": "byterover-cli",
1378
+ "pluginType": "core",
1379
+ "strict": true,
1380
+ "enableJsonFlag": false,
1381
+ "isESM": true,
1382
+ "relativePath": [
1383
+ "dist",
1384
+ "oclif",
1385
+ "commands",
1386
+ "providers",
1387
+ "index.js"
1388
+ ]
1389
+ },
1390
+ "providers:list": {
1391
+ "aliases": [],
1392
+ "args": {},
1393
+ "description": "List all available providers and their connection status",
1394
+ "examples": [
1395
+ "<%= config.bin %> providers list",
1396
+ "<%= config.bin %> providers list --format json"
1397
+ ],
1398
+ "flags": {
1399
+ "format": {
1400
+ "description": "Output format (text or json)",
1401
+ "name": "format",
1402
+ "default": "text",
1403
+ "hasDynamicHelp": false,
1404
+ "multiple": false,
1405
+ "options": [
1406
+ "text",
1407
+ "json"
1408
+ ],
1409
+ "type": "option"
1410
+ }
1411
+ },
1412
+ "hasDynamicHelp": false,
1413
+ "hiddenAliases": [],
1414
+ "id": "providers:list",
1415
+ "pluginAlias": "byterover-cli",
1416
+ "pluginName": "byterover-cli",
1417
+ "pluginType": "core",
1418
+ "strict": true,
1419
+ "enableJsonFlag": false,
1420
+ "isESM": true,
1421
+ "relativePath": [
1422
+ "dist",
1423
+ "oclif",
1424
+ "commands",
1425
+ "providers",
1426
+ "list.js"
1427
+ ]
1428
+ },
1429
+ "providers:switch": {
1430
+ "aliases": [],
1431
+ "args": {
1432
+ "provider": {
1433
+ "description": "Provider ID to switch to (e.g., anthropic, openai)",
1434
+ "name": "provider",
1435
+ "required": true
1436
+ }
1437
+ },
1438
+ "description": "Switch the active provider",
1439
+ "examples": [
1440
+ "<%= config.bin %> providers switch anthropic",
1441
+ "<%= config.bin %> providers switch openai --format json"
1442
+ ],
1443
+ "flags": {
1444
+ "format": {
1445
+ "description": "Output format (text or json)",
1446
+ "name": "format",
1447
+ "default": "text",
1448
+ "hasDynamicHelp": false,
1449
+ "multiple": false,
1450
+ "options": [
1451
+ "text",
1452
+ "json"
1453
+ ],
1454
+ "type": "option"
1455
+ }
1456
+ },
1457
+ "hasDynamicHelp": false,
1458
+ "hiddenAliases": [],
1459
+ "id": "providers:switch",
1460
+ "pluginAlias": "byterover-cli",
1461
+ "pluginName": "byterover-cli",
1462
+ "pluginType": "core",
1463
+ "strict": true,
1464
+ "enableJsonFlag": false,
1465
+ "isESM": true,
1466
+ "relativePath": [
1467
+ "dist",
1468
+ "oclif",
1469
+ "commands",
1470
+ "providers",
1471
+ "switch.js"
1472
+ ]
1473
+ },
1219
1474
  "review:approve": {
1220
1475
  "aliases": [],
1221
1476
  "args": {
@@ -1499,79 +1754,33 @@
1499
1754
  "switch.js"
1500
1755
  ]
1501
1756
  },
1502
- "providers:connect": {
1757
+ "source:add": {
1503
1758
  "aliases": [],
1504
1759
  "args": {
1505
- "provider": {
1506
- "description": "Provider ID to connect (e.g., anthropic, openai, openrouter). Omit for interactive selection.",
1507
- "name": "provider",
1508
- "required": false
1760
+ "path": {
1761
+ "description": "Path to the target project containing .brv/",
1762
+ "name": "path",
1763
+ "required": true
1509
1764
  }
1510
1765
  },
1511
- "description": "Connect or switch to an LLM provider",
1766
+ "description": "Add a read-only knowledge source from another project's context tree",
1512
1767
  "examples": [
1513
- "<%= config.bin %> providers connect",
1514
- "<%= config.bin %> providers connect anthropic --api-key sk-xxx",
1515
- "<%= config.bin %> providers connect openai --oauth",
1516
- "<%= config.bin %> providers connect byterover",
1517
- "<%= config.bin %> providers connect openai-compatible --base-url http://localhost:11434/v1 --api-key sk-xxx"
1768
+ "<%= config.bin %> <%= command.id %> /path/to/shared-lib",
1769
+ "<%= config.bin %> <%= command.id %> /path/to/shared-lib --alias shared"
1518
1770
  ],
1519
1771
  "flags": {
1520
- "api-key": {
1521
- "char": "k",
1522
- "description": "API key for the provider",
1523
- "name": "api-key",
1524
- "hasDynamicHelp": false,
1525
- "multiple": false,
1526
- "type": "option"
1527
- },
1528
- "base-url": {
1529
- "char": "b",
1530
- "description": "Base URL for OpenAI-compatible providers (e.g., http://localhost:11434/v1)",
1531
- "name": "base-url",
1532
- "hasDynamicHelp": false,
1533
- "multiple": false,
1534
- "type": "option"
1535
- },
1536
- "code": {
1537
- "char": "c",
1538
- "description": "Authorization code for code-paste OAuth providers (e.g., Anthropic). Not applicable to browser-callback providers like OpenAI — use --oauth without --code instead.",
1539
- "hidden": true,
1540
- "name": "code",
1541
- "hasDynamicHelp": false,
1542
- "multiple": false,
1543
- "type": "option"
1544
- },
1545
- "format": {
1546
- "description": "Output format (text or json)",
1547
- "name": "format",
1548
- "default": "text",
1549
- "hasDynamicHelp": false,
1550
- "multiple": false,
1551
- "options": [
1552
- "text",
1553
- "json"
1554
- ],
1555
- "type": "option"
1556
- },
1557
- "model": {
1558
- "char": "m",
1559
- "description": "Model to set as active after connecting",
1560
- "name": "model",
1772
+ "alias": {
1773
+ "description": "Custom alias for the source (defaults to directory name)",
1774
+ "name": "alias",
1775
+ "required": false,
1561
1776
  "hasDynamicHelp": false,
1562
1777
  "multiple": false,
1563
1778
  "type": "option"
1564
- },
1565
- "oauth": {
1566
- "description": "Connect via OAuth (browser-based)",
1567
- "name": "oauth",
1568
- "allowNo": false,
1569
- "type": "boolean"
1570
1779
  }
1571
1780
  },
1572
1781
  "hasDynamicHelp": false,
1573
1782
  "hiddenAliases": [],
1574
- "id": "providers:connect",
1783
+ "id": "source:add",
1575
1784
  "pluginAlias": "byterover-cli",
1576
1785
  "pluginName": "byterover-cli",
1577
1786
  "pluginType": "core",
@@ -1582,41 +1791,118 @@
1582
1791
  "dist",
1583
1792
  "oclif",
1584
1793
  "commands",
1585
- "providers",
1586
- "connect.js"
1794
+ "source",
1795
+ "add.js"
1587
1796
  ]
1588
1797
  },
1589
- "providers:disconnect": {
1798
+ "source": {
1799
+ "aliases": [],
1800
+ "args": {},
1801
+ "description": "Manage knowledge sources (read-only references to other projects)",
1802
+ "examples": [
1803
+ "<%= config.bin %> <%= command.id %> --help"
1804
+ ],
1805
+ "flags": {},
1806
+ "hasDynamicHelp": false,
1807
+ "hiddenAliases": [],
1808
+ "id": "source",
1809
+ "pluginAlias": "byterover-cli",
1810
+ "pluginName": "byterover-cli",
1811
+ "pluginType": "core",
1812
+ "strict": true,
1813
+ "enableJsonFlag": false,
1814
+ "isESM": true,
1815
+ "relativePath": [
1816
+ "dist",
1817
+ "oclif",
1818
+ "commands",
1819
+ "source",
1820
+ "index.js"
1821
+ ]
1822
+ },
1823
+ "source:list": {
1824
+ "aliases": [],
1825
+ "args": {},
1826
+ "description": "List all knowledge sources and their status",
1827
+ "examples": [
1828
+ "<%= config.bin %> <%= command.id %>"
1829
+ ],
1830
+ "flags": {},
1831
+ "hasDynamicHelp": false,
1832
+ "hiddenAliases": [],
1833
+ "id": "source:list",
1834
+ "pluginAlias": "byterover-cli",
1835
+ "pluginName": "byterover-cli",
1836
+ "pluginType": "core",
1837
+ "strict": true,
1838
+ "enableJsonFlag": false,
1839
+ "isESM": true,
1840
+ "relativePath": [
1841
+ "dist",
1842
+ "oclif",
1843
+ "commands",
1844
+ "source",
1845
+ "list.js"
1846
+ ]
1847
+ },
1848
+ "source:remove": {
1590
1849
  "aliases": [],
1591
1850
  "args": {
1592
- "provider": {
1593
- "description": "Provider ID to disconnect",
1594
- "name": "provider",
1851
+ "aliasOrPath": {
1852
+ "description": "Alias or path of the knowledge source to remove",
1853
+ "name": "aliasOrPath",
1595
1854
  "required": true
1596
1855
  }
1597
1856
  },
1598
- "description": "Disconnect an LLM provider",
1857
+ "description": "Remove a knowledge source",
1599
1858
  "examples": [
1600
- "<%= config.bin %> providers disconnect anthropic",
1601
- "<%= config.bin %> providers disconnect openai --format json"
1859
+ "<%= config.bin %> <%= command.id %> shared-lib",
1860
+ "<%= config.bin %> <%= command.id %> /path/to/shared-lib"
1861
+ ],
1862
+ "flags": {},
1863
+ "hasDynamicHelp": false,
1864
+ "hiddenAliases": [],
1865
+ "id": "source:remove",
1866
+ "pluginAlias": "byterover-cli",
1867
+ "pluginName": "byterover-cli",
1868
+ "pluginType": "core",
1869
+ "strict": true,
1870
+ "enableJsonFlag": false,
1871
+ "isESM": true,
1872
+ "relativePath": [
1873
+ "dist",
1874
+ "oclif",
1875
+ "commands",
1876
+ "source",
1877
+ "remove.js"
1878
+ ]
1879
+ },
1880
+ "worktree:add": {
1881
+ "aliases": [],
1882
+ "args": {
1883
+ "path": {
1884
+ "description": "Path to the directory to register as a worktree (relative or absolute)",
1885
+ "name": "path",
1886
+ "required": false
1887
+ }
1888
+ },
1889
+ "description": "Register a directory as a worktree of this project",
1890
+ "examples": [
1891
+ "<%= config.bin %> <%= command.id %> packages/api",
1892
+ "<%= config.bin %> <%= command.id %> ../other-checkout",
1893
+ "<%= config.bin %> <%= command.id %> (auto-detect parent from subdirectory)"
1602
1894
  ],
1603
1895
  "flags": {
1604
- "format": {
1605
- "description": "Output format (text or json)",
1606
- "name": "format",
1607
- "default": "text",
1608
- "hasDynamicHelp": false,
1609
- "multiple": false,
1610
- "options": [
1611
- "text",
1612
- "json"
1613
- ],
1614
- "type": "option"
1896
+ "force": {
1897
+ "description": "Replace existing .brv/ directory in target with a worktree pointer",
1898
+ "name": "force",
1899
+ "allowNo": false,
1900
+ "type": "boolean"
1615
1901
  }
1616
1902
  },
1617
1903
  "hasDynamicHelp": false,
1618
1904
  "hiddenAliases": [],
1619
- "id": "providers:disconnect",
1905
+ "id": "worktree:add",
1620
1906
  "pluginAlias": "byterover-cli",
1621
1907
  "pluginName": "byterover-cli",
1622
1908
  "pluginType": "core",
@@ -1627,35 +1913,21 @@
1627
1913
  "dist",
1628
1914
  "oclif",
1629
1915
  "commands",
1630
- "providers",
1631
- "disconnect.js"
1916
+ "worktree",
1917
+ "add.js"
1632
1918
  ]
1633
1919
  },
1634
- "providers": {
1920
+ "worktree": {
1635
1921
  "aliases": [],
1636
1922
  "args": {},
1637
- "description": "Show active provider and model",
1923
+ "description": "Manage worktree links for subdirectories and sibling checkouts",
1638
1924
  "examples": [
1639
- "<%= config.bin %> providers",
1640
- "<%= config.bin %> providers --format json"
1925
+ "<%= config.bin %> <%= command.id %> --help"
1641
1926
  ],
1642
- "flags": {
1643
- "format": {
1644
- "description": "Output format (text or json)",
1645
- "name": "format",
1646
- "default": "text",
1647
- "hasDynamicHelp": false,
1648
- "multiple": false,
1649
- "options": [
1650
- "text",
1651
- "json"
1652
- ],
1653
- "type": "option"
1654
- }
1655
- },
1927
+ "flags": {},
1656
1928
  "hasDynamicHelp": false,
1657
1929
  "hiddenAliases": [],
1658
- "id": "providers",
1930
+ "id": "worktree",
1659
1931
  "pluginAlias": "byterover-cli",
1660
1932
  "pluginName": "byterover-cli",
1661
1933
  "pluginType": "core",
@@ -1666,35 +1938,53 @@
1666
1938
  "dist",
1667
1939
  "oclif",
1668
1940
  "commands",
1669
- "providers",
1941
+ "worktree",
1670
1942
  "index.js"
1671
1943
  ]
1672
1944
  },
1673
- "providers:list": {
1945
+ "worktree:list": {
1674
1946
  "aliases": [],
1675
1947
  "args": {},
1676
- "description": "List all available providers and their connection status",
1948
+ "description": "Show the current worktree link and list all registered worktrees",
1677
1949
  "examples": [
1678
- "<%= config.bin %> providers list",
1679
- "<%= config.bin %> providers list --format json"
1950
+ "<%= config.bin %> <%= command.id %>"
1680
1951
  ],
1681
- "flags": {
1682
- "format": {
1683
- "description": "Output format (text or json)",
1684
- "name": "format",
1685
- "default": "text",
1686
- "hasDynamicHelp": false,
1687
- "multiple": false,
1688
- "options": [
1689
- "text",
1690
- "json"
1691
- ],
1692
- "type": "option"
1952
+ "flags": {},
1953
+ "hasDynamicHelp": false,
1954
+ "hiddenAliases": [],
1955
+ "id": "worktree:list",
1956
+ "pluginAlias": "byterover-cli",
1957
+ "pluginName": "byterover-cli",
1958
+ "pluginType": "core",
1959
+ "strict": true,
1960
+ "enableJsonFlag": false,
1961
+ "isESM": true,
1962
+ "relativePath": [
1963
+ "dist",
1964
+ "oclif",
1965
+ "commands",
1966
+ "worktree",
1967
+ "list.js"
1968
+ ]
1969
+ },
1970
+ "worktree:remove": {
1971
+ "aliases": [],
1972
+ "args": {
1973
+ "path": {
1974
+ "description": "Path to the worktree to remove (defaults to cwd)",
1975
+ "name": "path",
1976
+ "required": false
1693
1977
  }
1694
1978
  },
1979
+ "description": "Remove a worktree registration and its .brv pointer",
1980
+ "examples": [
1981
+ "<%= config.bin %> <%= command.id %> (remove cwd as worktree)",
1982
+ "<%= config.bin %> <%= command.id %> packages/api (remove from parent)"
1983
+ ],
1984
+ "flags": {},
1695
1985
  "hasDynamicHelp": false,
1696
1986
  "hiddenAliases": [],
1697
- "id": "providers:list",
1987
+ "id": "worktree:remove",
1698
1988
  "pluginAlias": "byterover-cli",
1699
1989
  "pluginName": "byterover-cli",
1700
1990
  "pluginType": "core",
@@ -1705,27 +1995,29 @@
1705
1995
  "dist",
1706
1996
  "oclif",
1707
1997
  "commands",
1708
- "providers",
1709
- "list.js"
1998
+ "worktree",
1999
+ "remove.js"
1710
2000
  ]
1711
2001
  },
1712
- "providers:switch": {
2002
+ "swarm:curate": {
1713
2003
  "aliases": [],
1714
2004
  "args": {
1715
- "provider": {
1716
- "description": "Provider ID to switch to (e.g., anthropic, openai)",
1717
- "name": "provider",
2005
+ "content": {
2006
+ "description": "Knowledge content to store in a swarm provider",
2007
+ "name": "content",
1718
2008
  "required": true
1719
2009
  }
1720
2010
  },
1721
- "description": "Switch the active provider",
2011
+ "description": "Store knowledge in a swarm provider (GBrain, local markdown)",
1722
2012
  "examples": [
1723
- "<%= config.bin %> providers switch anthropic",
1724
- "<%= config.bin %> providers switch openai --format json"
2013
+ "<%= config.bin %> swarm curate \"Dario Amodei is CEO of Anthropic\"",
2014
+ "<%= config.bin %> swarm curate \"meeting notes: decided on JWT\" --provider local-markdown:notes",
2015
+ "<%= config.bin %> swarm curate \"Architecture uses event sourcing\" --provider gbrain"
1725
2016
  ],
1726
2017
  "flags": {
1727
2018
  "format": {
1728
- "description": "Output format (text or json)",
2019
+ "char": "f",
2020
+ "description": "Output format",
1729
2021
  "name": "format",
1730
2022
  "default": "text",
1731
2023
  "hasDynamicHelp": false,
@@ -1735,44 +2027,11 @@
1735
2027
  "json"
1736
2028
  ],
1737
2029
  "type": "option"
1738
- }
1739
- },
1740
- "hasDynamicHelp": false,
1741
- "hiddenAliases": [],
1742
- "id": "providers:switch",
1743
- "pluginAlias": "byterover-cli",
1744
- "pluginName": "byterover-cli",
1745
- "pluginType": "core",
1746
- "strict": true,
1747
- "enableJsonFlag": false,
1748
- "isESM": true,
1749
- "relativePath": [
1750
- "dist",
1751
- "oclif",
1752
- "commands",
1753
- "providers",
1754
- "switch.js"
1755
- ]
1756
- },
1757
- "source:add": {
1758
- "aliases": [],
1759
- "args": {
1760
- "path": {
1761
- "description": "Path to the target project containing .brv/",
1762
- "name": "path",
1763
- "required": true
1764
- }
1765
- },
1766
- "description": "Add a read-only knowledge source from another project's context tree",
1767
- "examples": [
1768
- "<%= config.bin %> <%= command.id %> /path/to/shared-lib",
1769
- "<%= config.bin %> <%= command.id %> /path/to/shared-lib --alias shared"
1770
- ],
1771
- "flags": {
1772
- "alias": {
1773
- "description": "Custom alias for the source (defaults to directory name)",
1774
- "name": "alias",
1775
- "required": false,
2030
+ },
2031
+ "provider": {
2032
+ "char": "p",
2033
+ "description": "Target provider ID (e.g., gbrain, local-markdown:notes)",
2034
+ "name": "provider",
1776
2035
  "hasDynamicHelp": false,
1777
2036
  "multiple": false,
1778
2037
  "type": "option"
@@ -1780,7 +2039,7 @@
1780
2039
  },
1781
2040
  "hasDynamicHelp": false,
1782
2041
  "hiddenAliases": [],
1783
- "id": "source:add",
2042
+ "id": "swarm:curate",
1784
2043
  "pluginAlias": "byterover-cli",
1785
2044
  "pluginName": "byterover-cli",
1786
2045
  "pluginType": "core",
@@ -1791,21 +2050,21 @@
1791
2050
  "dist",
1792
2051
  "oclif",
1793
2052
  "commands",
1794
- "source",
1795
- "add.js"
2053
+ "swarm",
2054
+ "curate.js"
1796
2055
  ]
1797
2056
  },
1798
- "source": {
2057
+ "swarm:onboard": {
1799
2058
  "aliases": [],
1800
2059
  "args": {},
1801
- "description": "Manage knowledge sources (read-only references to other projects)",
2060
+ "description": "Set up memory swarm with interactive onboarding wizard",
1802
2061
  "examples": [
1803
- "<%= config.bin %> <%= command.id %> --help"
2062
+ "<%= config.bin %> swarm onboard"
1804
2063
  ],
1805
2064
  "flags": {},
1806
2065
  "hasDynamicHelp": false,
1807
2066
  "hiddenAliases": [],
1808
- "id": "source",
2067
+ "id": "swarm:onboard",
1809
2068
  "pluginAlias": "byterover-cli",
1810
2069
  "pluginName": "byterover-cli",
1811
2070
  "pluginType": "core",
@@ -1816,21 +2075,56 @@
1816
2075
  "dist",
1817
2076
  "oclif",
1818
2077
  "commands",
1819
- "source",
1820
- "index.js"
2078
+ "swarm",
2079
+ "onboard.js"
1821
2080
  ]
1822
2081
  },
1823
- "source:list": {
2082
+ "swarm:query": {
1824
2083
  "aliases": [],
1825
- "args": {},
1826
- "description": "List all knowledge sources and their status",
2084
+ "args": {
2085
+ "query": {
2086
+ "description": "Natural language query to search across memory providers",
2087
+ "name": "query",
2088
+ "required": true
2089
+ }
2090
+ },
2091
+ "description": "Query the memory swarm across all active providers",
1827
2092
  "examples": [
1828
- "<%= config.bin %> <%= command.id %>"
2093
+ "<%= config.bin %> swarm query \"auth tokens\"",
2094
+ "<%= config.bin %> swarm query \"what changed yesterday\" --format json"
1829
2095
  ],
1830
- "flags": {},
2096
+ "flags": {
2097
+ "explain": {
2098
+ "description": "Show classification, routing, and enrichment details (ignored with --format json, which always includes all metadata)",
2099
+ "name": "explain",
2100
+ "allowNo": false,
2101
+ "type": "boolean"
2102
+ },
2103
+ "format": {
2104
+ "char": "f",
2105
+ "description": "Output format",
2106
+ "name": "format",
2107
+ "default": "text",
2108
+ "hasDynamicHelp": false,
2109
+ "multiple": false,
2110
+ "options": [
2111
+ "text",
2112
+ "json"
2113
+ ],
2114
+ "type": "option"
2115
+ },
2116
+ "max-results": {
2117
+ "char": "n",
2118
+ "description": "Maximum number of results",
2119
+ "name": "max-results",
2120
+ "hasDynamicHelp": false,
2121
+ "multiple": false,
2122
+ "type": "option"
2123
+ }
2124
+ },
1831
2125
  "hasDynamicHelp": false,
1832
2126
  "hiddenAliases": [],
1833
- "id": "source:list",
2127
+ "id": "swarm:query",
1834
2128
  "pluginAlias": "byterover-cli",
1835
2129
  "pluginName": "byterover-cli",
1836
2130
  "pluginType": "core",
@@ -1841,28 +2135,36 @@
1841
2135
  "dist",
1842
2136
  "oclif",
1843
2137
  "commands",
1844
- "source",
1845
- "list.js"
2138
+ "swarm",
2139
+ "query.js"
1846
2140
  ]
1847
2141
  },
1848
- "source:remove": {
2142
+ "swarm:status": {
1849
2143
  "aliases": [],
1850
- "args": {
1851
- "aliasOrPath": {
1852
- "description": "Alias or path of the knowledge source to remove",
1853
- "name": "aliasOrPath",
1854
- "required": true
1855
- }
1856
- },
1857
- "description": "Remove a knowledge source",
2144
+ "args": {},
2145
+ "description": "Show memory swarm provider health and connection status",
1858
2146
  "examples": [
1859
- "<%= config.bin %> <%= command.id %> shared-lib",
1860
- "<%= config.bin %> <%= command.id %> /path/to/shared-lib"
2147
+ "<%= config.bin %> swarm status",
2148
+ "<%= config.bin %> swarm status --format json"
1861
2149
  ],
1862
- "flags": {},
2150
+ "flags": {
2151
+ "format": {
2152
+ "char": "f",
2153
+ "description": "Output format",
2154
+ "name": "format",
2155
+ "default": "text",
2156
+ "hasDynamicHelp": false,
2157
+ "multiple": false,
2158
+ "options": [
2159
+ "text",
2160
+ "json"
2161
+ ],
2162
+ "type": "option"
2163
+ }
2164
+ },
1863
2165
  "hasDynamicHelp": false,
1864
2166
  "hiddenAliases": [],
1865
- "id": "source:remove",
2167
+ "id": "swarm:status",
1866
2168
  "pluginAlias": "byterover-cli",
1867
2169
  "pluginName": "byterover-cli",
1868
2170
  "pluginType": "core",
@@ -1873,8 +2175,8 @@
1873
2175
  "dist",
1874
2176
  "oclif",
1875
2177
  "commands",
1876
- "source",
1877
- "remove.js"
2178
+ "swarm",
2179
+ "status.js"
1878
2180
  ]
1879
2181
  },
1880
2182
  "vc:add": {
@@ -2479,128 +2781,6 @@
2479
2781
  "status.js"
2480
2782
  ]
2481
2783
  },
2482
- "worktree:add": {
2483
- "aliases": [],
2484
- "args": {
2485
- "path": {
2486
- "description": "Path to the directory to register as a worktree (relative or absolute)",
2487
- "name": "path",
2488
- "required": false
2489
- }
2490
- },
2491
- "description": "Register a directory as a worktree of this project",
2492
- "examples": [
2493
- "<%= config.bin %> <%= command.id %> packages/api",
2494
- "<%= config.bin %> <%= command.id %> ../other-checkout",
2495
- "<%= config.bin %> <%= command.id %> (auto-detect parent from subdirectory)"
2496
- ],
2497
- "flags": {
2498
- "force": {
2499
- "description": "Replace existing .brv/ directory in target with a worktree pointer",
2500
- "name": "force",
2501
- "allowNo": false,
2502
- "type": "boolean"
2503
- }
2504
- },
2505
- "hasDynamicHelp": false,
2506
- "hiddenAliases": [],
2507
- "id": "worktree:add",
2508
- "pluginAlias": "byterover-cli",
2509
- "pluginName": "byterover-cli",
2510
- "pluginType": "core",
2511
- "strict": true,
2512
- "enableJsonFlag": false,
2513
- "isESM": true,
2514
- "relativePath": [
2515
- "dist",
2516
- "oclif",
2517
- "commands",
2518
- "worktree",
2519
- "add.js"
2520
- ]
2521
- },
2522
- "worktree": {
2523
- "aliases": [],
2524
- "args": {},
2525
- "description": "Manage worktree links for subdirectories and sibling checkouts",
2526
- "examples": [
2527
- "<%= config.bin %> <%= command.id %> --help"
2528
- ],
2529
- "flags": {},
2530
- "hasDynamicHelp": false,
2531
- "hiddenAliases": [],
2532
- "id": "worktree",
2533
- "pluginAlias": "byterover-cli",
2534
- "pluginName": "byterover-cli",
2535
- "pluginType": "core",
2536
- "strict": true,
2537
- "enableJsonFlag": false,
2538
- "isESM": true,
2539
- "relativePath": [
2540
- "dist",
2541
- "oclif",
2542
- "commands",
2543
- "worktree",
2544
- "index.js"
2545
- ]
2546
- },
2547
- "worktree:list": {
2548
- "aliases": [],
2549
- "args": {},
2550
- "description": "Show the current worktree link and list all registered worktrees",
2551
- "examples": [
2552
- "<%= config.bin %> <%= command.id %>"
2553
- ],
2554
- "flags": {},
2555
- "hasDynamicHelp": false,
2556
- "hiddenAliases": [],
2557
- "id": "worktree:list",
2558
- "pluginAlias": "byterover-cli",
2559
- "pluginName": "byterover-cli",
2560
- "pluginType": "core",
2561
- "strict": true,
2562
- "enableJsonFlag": false,
2563
- "isESM": true,
2564
- "relativePath": [
2565
- "dist",
2566
- "oclif",
2567
- "commands",
2568
- "worktree",
2569
- "list.js"
2570
- ]
2571
- },
2572
- "worktree:remove": {
2573
- "aliases": [],
2574
- "args": {
2575
- "path": {
2576
- "description": "Path to the worktree to remove (defaults to cwd)",
2577
- "name": "path",
2578
- "required": false
2579
- }
2580
- },
2581
- "description": "Remove a worktree registration and its .brv pointer",
2582
- "examples": [
2583
- "<%= config.bin %> <%= command.id %> (remove cwd as worktree)",
2584
- "<%= config.bin %> <%= command.id %> packages/api (remove from parent)"
2585
- ],
2586
- "flags": {},
2587
- "hasDynamicHelp": false,
2588
- "hiddenAliases": [],
2589
- "id": "worktree:remove",
2590
- "pluginAlias": "byterover-cli",
2591
- "pluginName": "byterover-cli",
2592
- "pluginType": "core",
2593
- "strict": true,
2594
- "enableJsonFlag": false,
2595
- "isESM": true,
2596
- "relativePath": [
2597
- "dist",
2598
- "oclif",
2599
- "commands",
2600
- "worktree",
2601
- "remove.js"
2602
- ]
2603
- },
2604
2784
  "hub:registry:add": {
2605
2785
  "aliases": [],
2606
2786
  "args": {
@@ -2900,5 +3080,5 @@
2900
3080
  ]
2901
3081
  }
2902
3082
  },
2903
- "version": "3.3.0"
3083
+ "version": "3.5.0"
2904
3084
  }