byterover-cli 3.5.0 → 3.6.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 (91) hide show
  1. package/.env.production +4 -6
  2. package/dist/agent/core/interfaces/i-cipher-agent.d.ts +1 -0
  3. package/dist/agent/infra/agent/cipher-agent.d.ts +1 -0
  4. package/dist/agent/infra/agent/cipher-agent.js +1 -0
  5. package/dist/oclif/commands/curate/view.js +5 -25
  6. package/dist/oclif/commands/dream.d.ts +18 -0
  7. package/dist/oclif/commands/dream.js +230 -0
  8. package/dist/oclif/commands/query-log/summary.d.ts +18 -0
  9. package/dist/oclif/commands/query-log/summary.js +75 -0
  10. package/dist/oclif/commands/query-log/view.d.ts +23 -0
  11. package/dist/oclif/commands/query-log/view.js +95 -0
  12. package/dist/oclif/lib/time-filter.d.ts +10 -0
  13. package/dist/oclif/lib/time-filter.js +21 -0
  14. package/dist/server/config/environment.d.ts +10 -3
  15. package/dist/server/config/environment.js +34 -15
  16. package/dist/server/constants.d.ts +5 -0
  17. package/dist/server/constants.js +7 -0
  18. package/dist/server/core/domain/entities/query-log-entry.d.ts +61 -0
  19. package/dist/server/core/domain/entities/query-log-entry.js +40 -0
  20. package/dist/server/core/domain/transport/schemas.d.ts +108 -7
  21. package/dist/server/core/domain/transport/schemas.js +34 -2
  22. package/dist/server/core/interfaces/executor/i-query-executor.d.ts +23 -2
  23. package/dist/server/core/interfaces/i-terminal.d.ts +3 -0
  24. package/dist/server/core/interfaces/i-terminal.js +1 -0
  25. package/dist/server/core/interfaces/storage/i-query-log-store.d.ts +23 -0
  26. package/dist/server/core/interfaces/storage/i-query-log-store.js +2 -0
  27. package/dist/server/core/interfaces/usecase/i-query-log-summary-use-case.d.ts +44 -0
  28. package/dist/server/core/interfaces/usecase/i-query-log-summary-use-case.js +1 -0
  29. package/dist/server/core/interfaces/usecase/i-query-log-use-case.d.ts +13 -0
  30. package/dist/server/core/interfaces/usecase/i-query-log-use-case.js +3 -0
  31. package/dist/server/infra/daemon/agent-process.js +79 -9
  32. package/dist/server/infra/daemon/brv-server.js +74 -5
  33. package/dist/server/infra/dream/dream-lock-service.d.ts +37 -0
  34. package/dist/server/infra/dream/dream-lock-service.js +88 -0
  35. package/dist/server/infra/dream/dream-log-schema.d.ts +966 -0
  36. package/dist/server/infra/dream/dream-log-schema.js +57 -0
  37. package/dist/server/infra/dream/dream-log-store.d.ts +55 -0
  38. package/dist/server/infra/dream/dream-log-store.js +141 -0
  39. package/dist/server/infra/dream/dream-response-schemas.d.ts +219 -0
  40. package/dist/server/infra/dream/dream-response-schemas.js +38 -0
  41. package/dist/server/infra/dream/dream-state-schema.d.ts +67 -0
  42. package/dist/server/infra/dream/dream-state-schema.js +23 -0
  43. package/dist/server/infra/dream/dream-state-service.d.ts +38 -0
  44. package/dist/server/infra/dream/dream-state-service.js +91 -0
  45. package/dist/server/infra/dream/dream-trigger.d.ts +46 -0
  46. package/dist/server/infra/dream/dream-trigger.js +65 -0
  47. package/dist/server/infra/dream/dream-undo.d.ts +38 -0
  48. package/dist/server/infra/dream/dream-undo.js +293 -0
  49. package/dist/server/infra/dream/operations/consolidate.d.ts +52 -0
  50. package/dist/server/infra/dream/operations/consolidate.js +514 -0
  51. package/dist/server/infra/dream/operations/prune.d.ts +45 -0
  52. package/dist/server/infra/dream/operations/prune.js +362 -0
  53. package/dist/server/infra/dream/operations/synthesize.d.ts +37 -0
  54. package/dist/server/infra/dream/operations/synthesize.js +278 -0
  55. package/dist/server/infra/dream/parse-dream-response.d.ts +11 -0
  56. package/dist/server/infra/dream/parse-dream-response.js +35 -0
  57. package/dist/server/infra/executor/curate-executor.js +10 -0
  58. package/dist/server/infra/executor/dream-executor.d.ts +97 -0
  59. package/dist/server/infra/executor/dream-executor.js +431 -0
  60. package/dist/server/infra/executor/query-executor.d.ts +2 -2
  61. package/dist/server/infra/executor/query-executor.js +92 -22
  62. package/dist/server/infra/mcp/mcp-server.js +3 -0
  63. package/dist/server/infra/mcp/tools/brv-curate-tool.js +3 -7
  64. package/dist/server/infra/mcp/tools/brv-query-tool.js +3 -7
  65. package/dist/server/infra/mcp/tools/index.d.ts +1 -0
  66. package/dist/server/infra/mcp/tools/index.js +1 -0
  67. package/dist/server/infra/mcp/tools/shared-schema.d.ts +3 -0
  68. package/dist/server/infra/mcp/tools/shared-schema.js +17 -0
  69. package/dist/server/infra/process/feature-handlers.js +10 -6
  70. package/dist/server/infra/process/query-log-handler.d.ts +42 -0
  71. package/dist/server/infra/process/query-log-handler.js +150 -0
  72. package/dist/server/infra/process/task-router.d.ts +40 -0
  73. package/dist/server/infra/process/task-router.js +67 -9
  74. package/dist/server/infra/process/transport-handlers.d.ts +4 -0
  75. package/dist/server/infra/process/transport-handlers.js +1 -0
  76. package/dist/server/infra/storage/file-curate-log-store.js +1 -1
  77. package/dist/server/infra/storage/file-query-log-store.d.ts +81 -0
  78. package/dist/server/infra/storage/file-query-log-store.js +249 -0
  79. package/dist/server/infra/transport/handlers/config-handler.js +1 -1
  80. package/dist/server/infra/usecase/curate-log-use-case.js +7 -3
  81. package/dist/server/infra/usecase/query-log-summary-narrative-formatter.d.ts +15 -0
  82. package/dist/server/infra/usecase/query-log-summary-narrative-formatter.js +79 -0
  83. package/dist/server/infra/usecase/query-log-summary-use-case.d.ts +13 -0
  84. package/dist/server/infra/usecase/query-log-summary-use-case.js +217 -0
  85. package/dist/server/infra/usecase/query-log-use-case.d.ts +31 -0
  86. package/dist/server/infra/usecase/query-log-use-case.js +128 -0
  87. package/dist/server/utils/log-format-utils.d.ts +5 -0
  88. package/dist/server/utils/log-format-utils.js +23 -0
  89. package/dist/shared/transport/events/config-events.d.ts +1 -1
  90. package/oclif.manifest.json +439 -184
  91. package/package.json +1 -1
@@ -53,6 +53,86 @@
53
53
  "debug.js"
54
54
  ]
55
55
  },
56
+ "dream": {
57
+ "aliases": [],
58
+ "args": {},
59
+ "description": "Run background memory consolidation on the context tree",
60
+ "examples": [
61
+ "# Run dream (checks time, activity, and queue gates)",
62
+ "<%= config.bin %> <%= command.id %>",
63
+ "",
64
+ "# Force dream (skip time/activity/queue gates, lock still checked)",
65
+ "<%= config.bin %> <%= command.id %> --force",
66
+ "",
67
+ "# Revert the last dream",
68
+ "<%= config.bin %> <%= command.id %> --undo",
69
+ "",
70
+ "# Queue dream and exit immediately",
71
+ "<%= config.bin %> <%= command.id %> --detach",
72
+ "",
73
+ "# Force dream and exit immediately",
74
+ "<%= config.bin %> <%= command.id %> --force --detach",
75
+ "",
76
+ "# JSON output",
77
+ "<%= config.bin %> <%= command.id %> --format json"
78
+ ],
79
+ "flags": {
80
+ "detach": {
81
+ "description": "Queue task and exit without waiting for completion",
82
+ "name": "detach",
83
+ "allowNo": false,
84
+ "type": "boolean"
85
+ },
86
+ "force": {
87
+ "char": "f",
88
+ "description": "Skip time and activity gates (lock still checked)",
89
+ "name": "force",
90
+ "allowNo": false,
91
+ "type": "boolean"
92
+ },
93
+ "format": {
94
+ "description": "Output format (text or json)",
95
+ "name": "format",
96
+ "default": "text",
97
+ "hasDynamicHelp": false,
98
+ "multiple": false,
99
+ "options": [
100
+ "text",
101
+ "json"
102
+ ],
103
+ "type": "option"
104
+ },
105
+ "timeout": {
106
+ "description": "Maximum seconds to wait for task completion",
107
+ "name": "timeout",
108
+ "default": 300,
109
+ "hasDynamicHelp": false,
110
+ "multiple": false,
111
+ "type": "option"
112
+ },
113
+ "undo": {
114
+ "description": "Revert the last dream",
115
+ "name": "undo",
116
+ "allowNo": false,
117
+ "type": "boolean"
118
+ }
119
+ },
120
+ "hasDynamicHelp": false,
121
+ "hiddenAliases": [],
122
+ "id": "dream",
123
+ "pluginAlias": "byterover-cli",
124
+ "pluginName": "byterover-cli",
125
+ "pluginType": "core",
126
+ "strict": true,
127
+ "enableJsonFlag": false,
128
+ "isESM": true,
129
+ "relativePath": [
130
+ "dist",
131
+ "oclif",
132
+ "commands",
133
+ "dream.js"
134
+ ]
135
+ },
56
136
  "hook-prompt-submit": {
57
137
  "aliases": [],
58
138
  "args": {},
@@ -848,7 +928,7 @@
848
928
  ],
849
929
  "flags": {
850
930
  "before": {
851
- "description": "Show entries started before this time (ISO date or relative: 1h, 24h, 7d, 2w)",
931
+ "description": "Show entries started before this time (ISO date or relative: 30m, 1h, 24h, 7d, 2w)",
852
932
  "name": "before",
853
933
  "hasDynamicHelp": false,
854
934
  "multiple": false,
@@ -881,7 +961,7 @@
881
961
  "type": "option"
882
962
  },
883
963
  "since": {
884
- "description": "Show entries started after this time (ISO date or relative: 1h, 24h, 7d, 2w)",
964
+ "description": "Show entries started after this time (ISO date or relative: 30m, 1h, 24h, 7d, 2w)",
885
965
  "name": "since",
886
966
  "hasDynamicHelp": false,
887
967
  "multiple": false,
@@ -1216,6 +1296,181 @@
1216
1296
  "switch.js"
1217
1297
  ]
1218
1298
  },
1299
+ "query-log:summary": {
1300
+ "aliases": [],
1301
+ "args": {},
1302
+ "description": "View aggregated query recall metrics (coverage, cache hit rate, top topics)",
1303
+ "examples": [
1304
+ "<%= config.bin %> <%= command.id %>",
1305
+ "<%= config.bin %> <%= command.id %> --last 24h",
1306
+ "<%= config.bin %> <%= command.id %> --last 7d",
1307
+ "<%= config.bin %> <%= command.id %> --last 30d",
1308
+ "<%= config.bin %> <%= command.id %> --format json",
1309
+ "<%= config.bin %> <%= command.id %> --format narrative",
1310
+ "<%= config.bin %> <%= command.id %> --since 2026-04-01 --before 2026-04-03"
1311
+ ],
1312
+ "flags": {
1313
+ "before": {
1314
+ "description": "Entries before (ISO date or relative: 1h, 24h, 7d, 2w)",
1315
+ "name": "before",
1316
+ "hasDynamicHelp": false,
1317
+ "multiple": false,
1318
+ "type": "option"
1319
+ },
1320
+ "format": {
1321
+ "description": "Output format",
1322
+ "name": "format",
1323
+ "default": "text",
1324
+ "hasDynamicHelp": false,
1325
+ "multiple": false,
1326
+ "options": [
1327
+ "text",
1328
+ "json",
1329
+ "narrative"
1330
+ ],
1331
+ "type": "option"
1332
+ },
1333
+ "last": {
1334
+ "description": "Relative time window (e.g., 1h, 24h, 7d, 30d). Default: 24h. Takes precedence over --since.",
1335
+ "name": "last",
1336
+ "hasDynamicHelp": false,
1337
+ "multiple": false,
1338
+ "type": "option"
1339
+ },
1340
+ "since": {
1341
+ "description": "Entries after (ISO date or relative: 1h, 24h, 7d, 2w)",
1342
+ "name": "since",
1343
+ "hasDynamicHelp": false,
1344
+ "multiple": false,
1345
+ "type": "option"
1346
+ }
1347
+ },
1348
+ "hasDynamicHelp": false,
1349
+ "hiddenAliases": [],
1350
+ "id": "query-log:summary",
1351
+ "pluginAlias": "byterover-cli",
1352
+ "pluginName": "byterover-cli",
1353
+ "pluginType": "core",
1354
+ "strict": true,
1355
+ "enableJsonFlag": false,
1356
+ "isESM": true,
1357
+ "relativePath": [
1358
+ "dist",
1359
+ "oclif",
1360
+ "commands",
1361
+ "query-log",
1362
+ "summary.js"
1363
+ ]
1364
+ },
1365
+ "query-log:view": {
1366
+ "aliases": [],
1367
+ "args": {
1368
+ "id": {
1369
+ "description": "Query log entry ID to view in detail",
1370
+ "name": "id",
1371
+ "required": false
1372
+ }
1373
+ },
1374
+ "description": "View query log history",
1375
+ "examples": [
1376
+ "<%= config.bin %> <%= command.id %>",
1377
+ "<%= config.bin %> <%= command.id %> qry-1712345678901",
1378
+ "<%= config.bin %> <%= command.id %> --limit 20",
1379
+ "<%= config.bin %> <%= command.id %> --status completed",
1380
+ "<%= config.bin %> <%= command.id %> --status completed --status error",
1381
+ "<%= config.bin %> <%= command.id %> --tier 0 --tier 1",
1382
+ "<%= config.bin %> <%= command.id %> --since 1h",
1383
+ "<%= config.bin %> <%= command.id %> --since 2024-01-15",
1384
+ "<%= config.bin %> <%= command.id %> --before 2024-02-01",
1385
+ "<%= config.bin %> <%= command.id %> --detail",
1386
+ "<%= config.bin %> <%= command.id %> --format json"
1387
+ ],
1388
+ "flags": {
1389
+ "before": {
1390
+ "description": "Show entries started before this time (ISO date or relative: 30m, 1h, 24h, 7d, 2w)",
1391
+ "name": "before",
1392
+ "hasDynamicHelp": false,
1393
+ "multiple": false,
1394
+ "type": "option"
1395
+ },
1396
+ "detail": {
1397
+ "description": "Show matched docs for each entry",
1398
+ "name": "detail",
1399
+ "allowNo": false,
1400
+ "type": "boolean"
1401
+ },
1402
+ "format": {
1403
+ "description": "Output format",
1404
+ "name": "format",
1405
+ "default": "text",
1406
+ "hasDynamicHelp": false,
1407
+ "multiple": false,
1408
+ "options": [
1409
+ "text",
1410
+ "json"
1411
+ ],
1412
+ "type": "option"
1413
+ },
1414
+ "limit": {
1415
+ "description": "Maximum number of log entries to display",
1416
+ "name": "limit",
1417
+ "default": 10,
1418
+ "hasDynamicHelp": false,
1419
+ "multiple": false,
1420
+ "type": "option"
1421
+ },
1422
+ "since": {
1423
+ "description": "Show entries started after this time (ISO date or relative: 30m, 1h, 24h, 7d, 2w)",
1424
+ "name": "since",
1425
+ "hasDynamicHelp": false,
1426
+ "multiple": false,
1427
+ "type": "option"
1428
+ },
1429
+ "status": {
1430
+ "description": "Filter by status (can be repeated). Options: cancelled, completed, error, processing",
1431
+ "name": "status",
1432
+ "hasDynamicHelp": false,
1433
+ "multiple": true,
1434
+ "options": [
1435
+ "cancelled",
1436
+ "completed",
1437
+ "error",
1438
+ "processing"
1439
+ ],
1440
+ "type": "option"
1441
+ },
1442
+ "tier": {
1443
+ "description": "Filter by resolution tier (can be repeated). Options: 0, 1, 2, 3, 4",
1444
+ "name": "tier",
1445
+ "hasDynamicHelp": false,
1446
+ "multiple": true,
1447
+ "options": [
1448
+ "0",
1449
+ "1",
1450
+ "2",
1451
+ "3",
1452
+ "4"
1453
+ ],
1454
+ "type": "option"
1455
+ }
1456
+ },
1457
+ "hasDynamicHelp": false,
1458
+ "hiddenAliases": [],
1459
+ "id": "query-log:view",
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
+ "query-log",
1471
+ "view.js"
1472
+ ]
1473
+ },
1219
1474
  "providers:connect": {
1220
1475
  "aliases": [],
1221
1476
  "args": {
@@ -1676,31 +1931,33 @@
1676
1931
  "reject.js"
1677
1932
  ]
1678
1933
  },
1679
- "space:list": {
1934
+ "source:add": {
1680
1935
  "aliases": [],
1681
- "args": {},
1682
- "description": "List all teams and spaces (deprecated)",
1936
+ "args": {
1937
+ "path": {
1938
+ "description": "Path to the target project containing .brv/",
1939
+ "name": "path",
1940
+ "required": true
1941
+ }
1942
+ },
1943
+ "description": "Add a read-only knowledge source from another project's context tree",
1683
1944
  "examples": [
1684
- "<%= config.bin %> space list"
1945
+ "<%= config.bin %> <%= command.id %> /path/to/shared-lib",
1946
+ "<%= config.bin %> <%= command.id %> /path/to/shared-lib --alias shared"
1685
1947
  ],
1686
1948
  "flags": {
1687
- "format": {
1688
- "char": "f",
1689
- "description": "Output format",
1690
- "name": "format",
1691
- "default": "text",
1949
+ "alias": {
1950
+ "description": "Custom alias for the source (defaults to directory name)",
1951
+ "name": "alias",
1952
+ "required": false,
1692
1953
  "hasDynamicHelp": false,
1693
1954
  "multiple": false,
1694
- "options": [
1695
- "text",
1696
- "json"
1697
- ],
1698
1955
  "type": "option"
1699
1956
  }
1700
1957
  },
1701
1958
  "hasDynamicHelp": false,
1702
1959
  "hiddenAliases": [],
1703
- "id": "space:list",
1960
+ "id": "source:add",
1704
1961
  "pluginAlias": "byterover-cli",
1705
1962
  "pluginName": "byterover-cli",
1706
1963
  "pluginType": "core",
@@ -1711,96 +1968,16 @@
1711
1968
  "dist",
1712
1969
  "oclif",
1713
1970
  "commands",
1714
- "space",
1715
- "list.js"
1971
+ "source",
1972
+ "add.js"
1716
1973
  ]
1717
1974
  },
1718
- "space:switch": {
1975
+ "source": {
1719
1976
  "aliases": [],
1720
1977
  "args": {},
1721
- "description": "Switch to a different space (deprecated)",
1978
+ "description": "Manage knowledge sources (read-only references to other projects)",
1722
1979
  "examples": [
1723
- "<%= config.bin %> space switch"
1724
- ],
1725
- "flags": {
1726
- "format": {
1727
- "char": "f",
1728
- "description": "Output format",
1729
- "name": "format",
1730
- "default": "text",
1731
- "hasDynamicHelp": false,
1732
- "multiple": false,
1733
- "options": [
1734
- "text",
1735
- "json"
1736
- ],
1737
- "type": "option"
1738
- }
1739
- },
1740
- "hasDynamicHelp": false,
1741
- "hiddenAliases": [],
1742
- "id": "space: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
- "space",
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,
1776
- "hasDynamicHelp": false,
1777
- "multiple": false,
1778
- "type": "option"
1779
- }
1780
- },
1781
- "hasDynamicHelp": false,
1782
- "hiddenAliases": [],
1783
- "id": "source:add",
1784
- "pluginAlias": "byterover-cli",
1785
- "pluginName": "byterover-cli",
1786
- "pluginType": "core",
1787
- "strict": true,
1788
- "enableJsonFlag": false,
1789
- "isESM": true,
1790
- "relativePath": [
1791
- "dist",
1792
- "oclif",
1793
- "commands",
1794
- "source",
1795
- "add.js"
1796
- ]
1797
- },
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"
1980
+ "<%= config.bin %> <%= command.id %> --help"
1804
1981
  ],
1805
1982
  "flags": {},
1806
1983
  "hasDynamicHelp": false,
@@ -1877,57 +2054,31 @@
1877
2054
  "remove.js"
1878
2055
  ]
1879
2056
  },
1880
- "worktree:add": {
2057
+ "space:list": {
1881
2058
  "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",
2059
+ "args": {},
2060
+ "description": "List all teams and spaces (deprecated)",
1890
2061
  "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)"
2062
+ "<%= config.bin %> space list"
1894
2063
  ],
1895
2064
  "flags": {
1896
- "force": {
1897
- "description": "Replace existing .brv/ directory in target with a worktree pointer",
1898
- "name": "force",
1899
- "allowNo": false,
1900
- "type": "boolean"
2065
+ "format": {
2066
+ "char": "f",
2067
+ "description": "Output format",
2068
+ "name": "format",
2069
+ "default": "text",
2070
+ "hasDynamicHelp": false,
2071
+ "multiple": false,
2072
+ "options": [
2073
+ "text",
2074
+ "json"
2075
+ ],
2076
+ "type": "option"
1901
2077
  }
1902
2078
  },
1903
2079
  "hasDynamicHelp": false,
1904
2080
  "hiddenAliases": [],
1905
- "id": "worktree:add",
1906
- "pluginAlias": "byterover-cli",
1907
- "pluginName": "byterover-cli",
1908
- "pluginType": "core",
1909
- "strict": true,
1910
- "enableJsonFlag": false,
1911
- "isESM": true,
1912
- "relativePath": [
1913
- "dist",
1914
- "oclif",
1915
- "commands",
1916
- "worktree",
1917
- "add.js"
1918
- ]
1919
- },
1920
- "worktree": {
1921
- "aliases": [],
1922
- "args": {},
1923
- "description": "Manage worktree links for subdirectories and sibling checkouts",
1924
- "examples": [
1925
- "<%= config.bin %> <%= command.id %> --help"
1926
- ],
1927
- "flags": {},
1928
- "hasDynamicHelp": false,
1929
- "hiddenAliases": [],
1930
- "id": "worktree",
2081
+ "id": "space:list",
1931
2082
  "pluginAlias": "byterover-cli",
1932
2083
  "pluginName": "byterover-cli",
1933
2084
  "pluginType": "core",
@@ -1938,53 +2089,35 @@
1938
2089
  "dist",
1939
2090
  "oclif",
1940
2091
  "commands",
1941
- "worktree",
1942
- "index.js"
2092
+ "space",
2093
+ "list.js"
1943
2094
  ]
1944
2095
  },
1945
- "worktree:list": {
2096
+ "space:switch": {
1946
2097
  "aliases": [],
1947
2098
  "args": {},
1948
- "description": "Show the current worktree link and list all registered worktrees",
2099
+ "description": "Switch to a different space (deprecated)",
1949
2100
  "examples": [
1950
- "<%= config.bin %> <%= command.id %>"
2101
+ "<%= config.bin %> space switch"
1951
2102
  ],
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
2103
+ "flags": {
2104
+ "format": {
2105
+ "char": "f",
2106
+ "description": "Output format",
2107
+ "name": "format",
2108
+ "default": "text",
2109
+ "hasDynamicHelp": false,
2110
+ "multiple": false,
2111
+ "options": [
2112
+ "text",
2113
+ "json"
2114
+ ],
2115
+ "type": "option"
1977
2116
  }
1978
2117
  },
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": {},
1985
2118
  "hasDynamicHelp": false,
1986
2119
  "hiddenAliases": [],
1987
- "id": "worktree:remove",
2120
+ "id": "space:switch",
1988
2121
  "pluginAlias": "byterover-cli",
1989
2122
  "pluginName": "byterover-cli",
1990
2123
  "pluginType": "core",
@@ -1995,8 +2128,8 @@
1995
2128
  "dist",
1996
2129
  "oclif",
1997
2130
  "commands",
1998
- "worktree",
1999
- "remove.js"
2131
+ "space",
2132
+ "switch.js"
2000
2133
  ]
2001
2134
  },
2002
2135
  "swarm:curate": {
@@ -2179,6 +2312,128 @@
2179
2312
  "status.js"
2180
2313
  ]
2181
2314
  },
2315
+ "worktree:add": {
2316
+ "aliases": [],
2317
+ "args": {
2318
+ "path": {
2319
+ "description": "Path to the directory to register as a worktree (relative or absolute)",
2320
+ "name": "path",
2321
+ "required": false
2322
+ }
2323
+ },
2324
+ "description": "Register a directory as a worktree of this project",
2325
+ "examples": [
2326
+ "<%= config.bin %> <%= command.id %> packages/api",
2327
+ "<%= config.bin %> <%= command.id %> ../other-checkout",
2328
+ "<%= config.bin %> <%= command.id %> (auto-detect parent from subdirectory)"
2329
+ ],
2330
+ "flags": {
2331
+ "force": {
2332
+ "description": "Replace existing .brv/ directory in target with a worktree pointer",
2333
+ "name": "force",
2334
+ "allowNo": false,
2335
+ "type": "boolean"
2336
+ }
2337
+ },
2338
+ "hasDynamicHelp": false,
2339
+ "hiddenAliases": [],
2340
+ "id": "worktree:add",
2341
+ "pluginAlias": "byterover-cli",
2342
+ "pluginName": "byterover-cli",
2343
+ "pluginType": "core",
2344
+ "strict": true,
2345
+ "enableJsonFlag": false,
2346
+ "isESM": true,
2347
+ "relativePath": [
2348
+ "dist",
2349
+ "oclif",
2350
+ "commands",
2351
+ "worktree",
2352
+ "add.js"
2353
+ ]
2354
+ },
2355
+ "worktree": {
2356
+ "aliases": [],
2357
+ "args": {},
2358
+ "description": "Manage worktree links for subdirectories and sibling checkouts",
2359
+ "examples": [
2360
+ "<%= config.bin %> <%= command.id %> --help"
2361
+ ],
2362
+ "flags": {},
2363
+ "hasDynamicHelp": false,
2364
+ "hiddenAliases": [],
2365
+ "id": "worktree",
2366
+ "pluginAlias": "byterover-cli",
2367
+ "pluginName": "byterover-cli",
2368
+ "pluginType": "core",
2369
+ "strict": true,
2370
+ "enableJsonFlag": false,
2371
+ "isESM": true,
2372
+ "relativePath": [
2373
+ "dist",
2374
+ "oclif",
2375
+ "commands",
2376
+ "worktree",
2377
+ "index.js"
2378
+ ]
2379
+ },
2380
+ "worktree:list": {
2381
+ "aliases": [],
2382
+ "args": {},
2383
+ "description": "Show the current worktree link and list all registered worktrees",
2384
+ "examples": [
2385
+ "<%= config.bin %> <%= command.id %>"
2386
+ ],
2387
+ "flags": {},
2388
+ "hasDynamicHelp": false,
2389
+ "hiddenAliases": [],
2390
+ "id": "worktree:list",
2391
+ "pluginAlias": "byterover-cli",
2392
+ "pluginName": "byterover-cli",
2393
+ "pluginType": "core",
2394
+ "strict": true,
2395
+ "enableJsonFlag": false,
2396
+ "isESM": true,
2397
+ "relativePath": [
2398
+ "dist",
2399
+ "oclif",
2400
+ "commands",
2401
+ "worktree",
2402
+ "list.js"
2403
+ ]
2404
+ },
2405
+ "worktree:remove": {
2406
+ "aliases": [],
2407
+ "args": {
2408
+ "path": {
2409
+ "description": "Path to the worktree to remove (defaults to cwd)",
2410
+ "name": "path",
2411
+ "required": false
2412
+ }
2413
+ },
2414
+ "description": "Remove a worktree registration and its .brv pointer",
2415
+ "examples": [
2416
+ "<%= config.bin %> <%= command.id %> (remove cwd as worktree)",
2417
+ "<%= config.bin %> <%= command.id %> packages/api (remove from parent)"
2418
+ ],
2419
+ "flags": {},
2420
+ "hasDynamicHelp": false,
2421
+ "hiddenAliases": [],
2422
+ "id": "worktree:remove",
2423
+ "pluginAlias": "byterover-cli",
2424
+ "pluginName": "byterover-cli",
2425
+ "pluginType": "core",
2426
+ "strict": true,
2427
+ "enableJsonFlag": false,
2428
+ "isESM": true,
2429
+ "relativePath": [
2430
+ "dist",
2431
+ "oclif",
2432
+ "commands",
2433
+ "worktree",
2434
+ "remove.js"
2435
+ ]
2436
+ },
2182
2437
  "vc:add": {
2183
2438
  "aliases": [],
2184
2439
  "args": {},
@@ -3080,5 +3335,5 @@
3080
3335
  ]
3081
3336
  }
3082
3337
  },
3083
- "version": "3.5.0"
3338
+ "version": "3.6.0"
3084
3339
  }