byterover-cli 3.3.0 → 3.4.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 (95) 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/swarm/curate.d.ts +13 -0
  73. package/dist/oclif/commands/swarm/curate.js +81 -0
  74. package/dist/oclif/commands/swarm/onboard.d.ts +6 -0
  75. package/dist/oclif/commands/swarm/onboard.js +233 -0
  76. package/dist/oclif/commands/swarm/query.d.ts +14 -0
  77. package/dist/oclif/commands/swarm/query.js +84 -0
  78. package/dist/oclif/commands/swarm/status.d.ts +41 -0
  79. package/dist/oclif/commands/swarm/status.js +278 -0
  80. package/dist/server/constants.d.ts +3 -2
  81. package/dist/server/constants.js +10 -9
  82. package/dist/server/core/domain/source/source-schema.d.ts +6 -6
  83. package/dist/server/core/domain/transport/schemas.d.ts +4 -4
  84. package/dist/server/infra/http/provider-model-fetchers.js +1 -0
  85. package/dist/server/infra/process/feature-handlers.js +13 -0
  86. package/dist/server/infra/project/project-registry.js +13 -1
  87. package/dist/server/infra/transport/handlers/locations-handler.d.ts +2 -0
  88. package/dist/server/infra/transport/handlers/locations-handler.js +16 -1
  89. package/dist/server/infra/transport/handlers/vc-handler.d.ts +0 -4
  90. package/dist/server/infra/transport/handlers/vc-handler.js +5 -16
  91. package/dist/server/templates/skill/SKILL.md +163 -0
  92. package/dist/server/utils/gitignore.d.ts +1 -0
  93. package/dist/server/utils/gitignore.js +36 -4
  94. package/oclif.manifest.json +259 -79
  95. package/package.json +2 -2
@@ -1421,84 +1421,6 @@
1421
1421
  "reject.js"
1422
1422
  ]
1423
1423
  },
1424
- "space:list": {
1425
- "aliases": [],
1426
- "args": {},
1427
- "description": "List all teams and spaces (deprecated)",
1428
- "examples": [
1429
- "<%= config.bin %> space list"
1430
- ],
1431
- "flags": {
1432
- "format": {
1433
- "char": "f",
1434
- "description": "Output format",
1435
- "name": "format",
1436
- "default": "text",
1437
- "hasDynamicHelp": false,
1438
- "multiple": false,
1439
- "options": [
1440
- "text",
1441
- "json"
1442
- ],
1443
- "type": "option"
1444
- }
1445
- },
1446
- "hasDynamicHelp": false,
1447
- "hiddenAliases": [],
1448
- "id": "space:list",
1449
- "pluginAlias": "byterover-cli",
1450
- "pluginName": "byterover-cli",
1451
- "pluginType": "core",
1452
- "strict": true,
1453
- "enableJsonFlag": false,
1454
- "isESM": true,
1455
- "relativePath": [
1456
- "dist",
1457
- "oclif",
1458
- "commands",
1459
- "space",
1460
- "list.js"
1461
- ]
1462
- },
1463
- "space:switch": {
1464
- "aliases": [],
1465
- "args": {},
1466
- "description": "Switch to a different space (deprecated)",
1467
- "examples": [
1468
- "<%= config.bin %> space switch"
1469
- ],
1470
- "flags": {
1471
- "format": {
1472
- "char": "f",
1473
- "description": "Output format",
1474
- "name": "format",
1475
- "default": "text",
1476
- "hasDynamicHelp": false,
1477
- "multiple": false,
1478
- "options": [
1479
- "text",
1480
- "json"
1481
- ],
1482
- "type": "option"
1483
- }
1484
- },
1485
- "hasDynamicHelp": false,
1486
- "hiddenAliases": [],
1487
- "id": "space:switch",
1488
- "pluginAlias": "byterover-cli",
1489
- "pluginName": "byterover-cli",
1490
- "pluginType": "core",
1491
- "strict": true,
1492
- "enableJsonFlag": false,
1493
- "isESM": true,
1494
- "relativePath": [
1495
- "dist",
1496
- "oclif",
1497
- "commands",
1498
- "space",
1499
- "switch.js"
1500
- ]
1501
- },
1502
1424
  "providers:connect": {
1503
1425
  "aliases": [],
1504
1426
  "args": {
@@ -1754,6 +1676,84 @@
1754
1676
  "switch.js"
1755
1677
  ]
1756
1678
  },
1679
+ "space:list": {
1680
+ "aliases": [],
1681
+ "args": {},
1682
+ "description": "List all teams and spaces (deprecated)",
1683
+ "examples": [
1684
+ "<%= config.bin %> space list"
1685
+ ],
1686
+ "flags": {
1687
+ "format": {
1688
+ "char": "f",
1689
+ "description": "Output format",
1690
+ "name": "format",
1691
+ "default": "text",
1692
+ "hasDynamicHelp": false,
1693
+ "multiple": false,
1694
+ "options": [
1695
+ "text",
1696
+ "json"
1697
+ ],
1698
+ "type": "option"
1699
+ }
1700
+ },
1701
+ "hasDynamicHelp": false,
1702
+ "hiddenAliases": [],
1703
+ "id": "space:list",
1704
+ "pluginAlias": "byterover-cli",
1705
+ "pluginName": "byterover-cli",
1706
+ "pluginType": "core",
1707
+ "strict": true,
1708
+ "enableJsonFlag": false,
1709
+ "isESM": true,
1710
+ "relativePath": [
1711
+ "dist",
1712
+ "oclif",
1713
+ "commands",
1714
+ "space",
1715
+ "list.js"
1716
+ ]
1717
+ },
1718
+ "space:switch": {
1719
+ "aliases": [],
1720
+ "args": {},
1721
+ "description": "Switch to a different space (deprecated)",
1722
+ "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
1757
  "source:add": {
1758
1758
  "aliases": [],
1759
1759
  "args": {
@@ -1877,6 +1877,186 @@
1877
1877
  "remove.js"
1878
1878
  ]
1879
1879
  },
1880
+ "swarm:curate": {
1881
+ "aliases": [],
1882
+ "args": {
1883
+ "content": {
1884
+ "description": "Knowledge content to store in a swarm provider",
1885
+ "name": "content",
1886
+ "required": true
1887
+ }
1888
+ },
1889
+ "description": "Store knowledge in a swarm provider (GBrain, local markdown)",
1890
+ "examples": [
1891
+ "<%= config.bin %> swarm curate \"Dario Amodei is CEO of Anthropic\"",
1892
+ "<%= config.bin %> swarm curate \"meeting notes: decided on JWT\" --provider local-markdown:notes",
1893
+ "<%= config.bin %> swarm curate \"Architecture uses event sourcing\" --provider gbrain"
1894
+ ],
1895
+ "flags": {
1896
+ "format": {
1897
+ "char": "f",
1898
+ "description": "Output format",
1899
+ "name": "format",
1900
+ "default": "text",
1901
+ "hasDynamicHelp": false,
1902
+ "multiple": false,
1903
+ "options": [
1904
+ "text",
1905
+ "json"
1906
+ ],
1907
+ "type": "option"
1908
+ },
1909
+ "provider": {
1910
+ "char": "p",
1911
+ "description": "Target provider ID (e.g., gbrain, local-markdown:notes)",
1912
+ "name": "provider",
1913
+ "hasDynamicHelp": false,
1914
+ "multiple": false,
1915
+ "type": "option"
1916
+ }
1917
+ },
1918
+ "hasDynamicHelp": false,
1919
+ "hiddenAliases": [],
1920
+ "id": "swarm:curate",
1921
+ "pluginAlias": "byterover-cli",
1922
+ "pluginName": "byterover-cli",
1923
+ "pluginType": "core",
1924
+ "strict": true,
1925
+ "enableJsonFlag": false,
1926
+ "isESM": true,
1927
+ "relativePath": [
1928
+ "dist",
1929
+ "oclif",
1930
+ "commands",
1931
+ "swarm",
1932
+ "curate.js"
1933
+ ]
1934
+ },
1935
+ "swarm:onboard": {
1936
+ "aliases": [],
1937
+ "args": {},
1938
+ "description": "Set up memory swarm with interactive onboarding wizard",
1939
+ "examples": [
1940
+ "<%= config.bin %> swarm onboard"
1941
+ ],
1942
+ "flags": {},
1943
+ "hasDynamicHelp": false,
1944
+ "hiddenAliases": [],
1945
+ "id": "swarm:onboard",
1946
+ "pluginAlias": "byterover-cli",
1947
+ "pluginName": "byterover-cli",
1948
+ "pluginType": "core",
1949
+ "strict": true,
1950
+ "enableJsonFlag": false,
1951
+ "isESM": true,
1952
+ "relativePath": [
1953
+ "dist",
1954
+ "oclif",
1955
+ "commands",
1956
+ "swarm",
1957
+ "onboard.js"
1958
+ ]
1959
+ },
1960
+ "swarm:query": {
1961
+ "aliases": [],
1962
+ "args": {
1963
+ "query": {
1964
+ "description": "Natural language query to search across memory providers",
1965
+ "name": "query",
1966
+ "required": true
1967
+ }
1968
+ },
1969
+ "description": "Query the memory swarm across all active providers",
1970
+ "examples": [
1971
+ "<%= config.bin %> swarm query \"auth tokens\"",
1972
+ "<%= config.bin %> swarm query \"what changed yesterday\" --format json"
1973
+ ],
1974
+ "flags": {
1975
+ "explain": {
1976
+ "description": "Show classification, routing, and enrichment details (ignored with --format json, which always includes all metadata)",
1977
+ "name": "explain",
1978
+ "allowNo": false,
1979
+ "type": "boolean"
1980
+ },
1981
+ "format": {
1982
+ "char": "f",
1983
+ "description": "Output format",
1984
+ "name": "format",
1985
+ "default": "text",
1986
+ "hasDynamicHelp": false,
1987
+ "multiple": false,
1988
+ "options": [
1989
+ "text",
1990
+ "json"
1991
+ ],
1992
+ "type": "option"
1993
+ },
1994
+ "max-results": {
1995
+ "char": "n",
1996
+ "description": "Maximum number of results",
1997
+ "name": "max-results",
1998
+ "hasDynamicHelp": false,
1999
+ "multiple": false,
2000
+ "type": "option"
2001
+ }
2002
+ },
2003
+ "hasDynamicHelp": false,
2004
+ "hiddenAliases": [],
2005
+ "id": "swarm:query",
2006
+ "pluginAlias": "byterover-cli",
2007
+ "pluginName": "byterover-cli",
2008
+ "pluginType": "core",
2009
+ "strict": true,
2010
+ "enableJsonFlag": false,
2011
+ "isESM": true,
2012
+ "relativePath": [
2013
+ "dist",
2014
+ "oclif",
2015
+ "commands",
2016
+ "swarm",
2017
+ "query.js"
2018
+ ]
2019
+ },
2020
+ "swarm:status": {
2021
+ "aliases": [],
2022
+ "args": {},
2023
+ "description": "Show memory swarm provider health and connection status",
2024
+ "examples": [
2025
+ "<%= config.bin %> swarm status",
2026
+ "<%= config.bin %> swarm status --format json"
2027
+ ],
2028
+ "flags": {
2029
+ "format": {
2030
+ "char": "f",
2031
+ "description": "Output format",
2032
+ "name": "format",
2033
+ "default": "text",
2034
+ "hasDynamicHelp": false,
2035
+ "multiple": false,
2036
+ "options": [
2037
+ "text",
2038
+ "json"
2039
+ ],
2040
+ "type": "option"
2041
+ }
2042
+ },
2043
+ "hasDynamicHelp": false,
2044
+ "hiddenAliases": [],
2045
+ "id": "swarm:status",
2046
+ "pluginAlias": "byterover-cli",
2047
+ "pluginName": "byterover-cli",
2048
+ "pluginType": "core",
2049
+ "strict": true,
2050
+ "enableJsonFlag": false,
2051
+ "isESM": true,
2052
+ "relativePath": [
2053
+ "dist",
2054
+ "oclif",
2055
+ "commands",
2056
+ "swarm",
2057
+ "status.js"
2058
+ ]
2059
+ },
1880
2060
  "vc:add": {
1881
2061
  "aliases": [],
1882
2062
  "args": {},
@@ -2900,5 +3080,5 @@
2900
3080
  ]
2901
3081
  }
2902
3082
  },
2903
- "version": "3.3.0"
3083
+ "version": "3.4.0"
2904
3084
  }
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "coding-assistant",
13
13
  "knowledge-management"
14
14
  ],
15
- "version": "3.3.0",
15
+ "version": "3.4.0",
16
16
  "author": "ByteRover",
17
17
  "bin": {
18
18
  "brv": "./bin/run.js"
@@ -45,7 +45,7 @@
45
45
  "@socket.io/admin-ui": "^0.5.1",
46
46
  "@tanstack/react-query": "^5.90.20",
47
47
  "ai": "^5.0.129",
48
- "axios": "1.14.0",
48
+ "axios": "1.15.0",
49
49
  "chalk": "^5.6.2",
50
50
  "dotenv": "^17.3.1",
51
51
  "esbuild": "^0.27.2",