byterover-cli 3.10.2 → 3.11.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 (90) hide show
  1. package/README.md +4 -2
  2. package/dist/agent/core/domain/llm/registry.d.ts +12 -0
  3. package/dist/agent/core/domain/llm/registry.js +49 -0
  4. package/dist/agent/core/domain/llm/types.d.ts +6 -0
  5. package/dist/agent/core/interfaces/i-content-generator.d.ts +8 -0
  6. package/dist/agent/infra/llm/agent-llm-service.js +18 -6
  7. package/dist/agent/infra/llm/context/context-manager.d.ts +4 -1
  8. package/dist/agent/infra/llm/context/context-manager.js +5 -1
  9. package/dist/agent/infra/llm/generators/ai-sdk-content-generator.d.ts +13 -0
  10. package/dist/agent/infra/llm/generators/ai-sdk-content-generator.js +19 -6
  11. package/dist/agent/infra/llm/generators/ai-sdk-message-converter.js +16 -4
  12. package/dist/agent/infra/llm/generators/byterover-content-generator.d.ts +1 -0
  13. package/dist/agent/infra/llm/generators/byterover-content-generator.js +4 -1
  14. package/dist/agent/infra/llm/model-capabilities.d.ts +2 -1
  15. package/dist/agent/infra/llm/model-capabilities.js +6 -4
  16. package/dist/agent/infra/llm/providers/anthropic.js +2 -0
  17. package/dist/agent/infra/llm/providers/deepseek.d.ts +10 -0
  18. package/dist/agent/infra/llm/providers/deepseek.js +33 -0
  19. package/dist/agent/infra/llm/providers/glm-coding-plan.d.ts +9 -0
  20. package/dist/agent/infra/llm/providers/glm-coding-plan.js +32 -0
  21. package/dist/agent/infra/llm/providers/index.js +4 -0
  22. package/dist/agent/infra/llm/providers/openrouter.js +2 -0
  23. package/dist/oclif/commands/query.js +7 -1
  24. package/dist/oclif/lib/task-client.d.ts +9 -0
  25. package/dist/oclif/lib/task-client.js +11 -1
  26. package/dist/server/core/domain/entities/provider-registry.js +26 -0
  27. package/dist/server/infra/daemon/brv-server.js +4 -0
  28. package/dist/server/infra/http/provider-model-fetcher-registry.js +5 -0
  29. package/dist/server/infra/http/provider-model-fetchers.js +54 -27
  30. package/dist/server/infra/mcp/mcp-server.d.ts +6 -0
  31. package/dist/server/infra/mcp/mcp-server.js +15 -3
  32. package/dist/server/infra/mcp/tools/brv-curate-tool.d.ts +1 -1
  33. package/dist/server/infra/mcp/tools/brv-curate-tool.js +4 -2
  34. package/dist/server/infra/mcp/tools/brv-query-tool.d.ts +1 -1
  35. package/dist/server/infra/mcp/tools/brv-query-tool.js +3 -2
  36. package/dist/server/infra/mcp/tools/drift-footer.d.ts +8 -0
  37. package/dist/server/infra/mcp/tools/drift-footer.js +16 -0
  38. package/dist/server/infra/process/connection-coordinator.d.ts +7 -0
  39. package/dist/server/infra/process/connection-coordinator.js +5 -0
  40. package/dist/server/infra/process/query-log-handler.d.ts +6 -0
  41. package/dist/server/infra/process/query-log-handler.js +23 -0
  42. package/dist/server/infra/process/transport-handlers.d.ts +5 -0
  43. package/dist/server/infra/process/transport-handlers.js +1 -0
  44. package/dist/tui/components/header.js +7 -1
  45. package/dist/tui/components/logo.d.ts +6 -0
  46. package/dist/tui/components/logo.js +18 -5
  47. package/dist/tui/features/transport/components/transport-initializer.js +8 -2
  48. package/dist/tui/stores/transport-store.d.ts +8 -0
  49. package/dist/tui/stores/transport-store.js +2 -0
  50. package/dist/webui/assets/index--sXE__bc.css +1 -0
  51. package/dist/webui/assets/{index-thSZZahh.js → index-Bkkx961b.js} +63 -63
  52. package/dist/webui/index.html +2 -2
  53. package/dist/webui/sw.js +1 -1
  54. package/dist/webui/workbox-9c191d2f.js +1 -0
  55. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.d.ts +14 -0
  56. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.d.ts.map +1 -1
  57. package/node_modules/@campfirein/brv-transport-client/dist/index.d.ts +1 -0
  58. package/node_modules/@campfirein/brv-transport-client/dist/index.d.ts.map +1 -1
  59. package/node_modules/@campfirein/brv-transport-client/dist/index.js +2 -0
  60. package/node_modules/@campfirein/brv-transport-client/dist/index.js.map +1 -1
  61. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.d.ts.map +1 -1
  62. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.js +5 -0
  63. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.js.map +1 -1
  64. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-discovery-sync.d.ts +9 -7
  65. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-discovery-sync.d.ts.map +1 -1
  66. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-discovery-sync.js +11 -9
  67. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-discovery-sync.js.map +1 -1
  68. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-health.d.ts +23 -6
  69. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-health.d.ts.map +1 -1
  70. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-health.js +11 -5
  71. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-health.js.map +1 -1
  72. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-spawner.js +7 -7
  73. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-spawner.js.map +1 -1
  74. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.d.ts +7 -0
  75. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.d.ts.map +1 -1
  76. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.js +5 -0
  77. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.js.map +1 -1
  78. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.d.ts +8 -0
  79. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.d.ts.map +1 -1
  80. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.js +15 -0
  81. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.js.map +1 -1
  82. package/node_modules/@campfirein/brv-transport-client/dist/infra/version-utils.d.ts +35 -0
  83. package/node_modules/@campfirein/brv-transport-client/dist/infra/version-utils.d.ts.map +1 -0
  84. package/node_modules/@campfirein/brv-transport-client/dist/infra/version-utils.js +59 -0
  85. package/node_modules/@campfirein/brv-transport-client/dist/infra/version-utils.js.map +1 -0
  86. package/node_modules/@campfirein/brv-transport-client/package.json +1 -1
  87. package/oclif.manifest.json +206 -206
  88. package/package.json +4 -4
  89. package/dist/webui/assets/index-CvcqpMYn.css +0 -1
  90. package/dist/webui/workbox-8c29f6e4.js +0 -1
@@ -1651,211 +1651,6 @@
1651
1651
  "switch.js"
1652
1652
  ]
1653
1653
  },
1654
- "review:approve": {
1655
- "aliases": [],
1656
- "args": {
1657
- "taskId": {
1658
- "description": "Task ID shown in the curate output (e.g. \"brv review approve abc-123\")",
1659
- "name": "taskId",
1660
- "required": true
1661
- }
1662
- },
1663
- "description": "Approve pending review operations for a curate task",
1664
- "examples": [
1665
- "# Approve all pending changes from a curate task",
1666
- "<%= config.bin %> review approve abc-123",
1667
- "",
1668
- "# Approve specific files",
1669
- "<%= config.bin %> review approve abc-123 --file architecture/security/audit.md",
1670
- "<%= config.bin %> review approve abc-123 --file auth/jwt.md --file auth/oauth.md",
1671
- "",
1672
- "# Approve and get structured output (useful for coding agents)",
1673
- "<%= config.bin %> review approve abc-123 --format json"
1674
- ],
1675
- "flags": {
1676
- "file": {
1677
- "description": "Approve only the specified file path(s) (relative to context tree)",
1678
- "name": "file",
1679
- "hasDynamicHelp": false,
1680
- "multiple": true,
1681
- "type": "option"
1682
- },
1683
- "format": {
1684
- "description": "Output format (text or json)",
1685
- "name": "format",
1686
- "default": "text",
1687
- "hasDynamicHelp": false,
1688
- "multiple": false,
1689
- "options": [
1690
- "text",
1691
- "json"
1692
- ],
1693
- "type": "option"
1694
- }
1695
- },
1696
- "hasDynamicHelp": false,
1697
- "hiddenAliases": [],
1698
- "id": "review:approve",
1699
- "pluginAlias": "byterover-cli",
1700
- "pluginName": "byterover-cli",
1701
- "pluginType": "core",
1702
- "strict": true,
1703
- "enableJsonFlag": false,
1704
- "isESM": true,
1705
- "relativePath": [
1706
- "dist",
1707
- "oclif",
1708
- "commands",
1709
- "review",
1710
- "approve.js"
1711
- ]
1712
- },
1713
- "review:base-review-decision": {
1714
- "aliases": [],
1715
- "args": {
1716
- "taskId": {
1717
- "name": "taskId",
1718
- "required": true
1719
- }
1720
- },
1721
- "flags": {
1722
- "file": {
1723
- "name": "file",
1724
- "hasDynamicHelp": false,
1725
- "multiple": true,
1726
- "type": "option"
1727
- },
1728
- "format": {
1729
- "description": "Output format (text or json)",
1730
- "name": "format",
1731
- "default": "text",
1732
- "hasDynamicHelp": false,
1733
- "multiple": false,
1734
- "options": [
1735
- "text",
1736
- "json"
1737
- ],
1738
- "type": "option"
1739
- }
1740
- },
1741
- "hasDynamicHelp": false,
1742
- "hiddenAliases": [],
1743
- "id": "review:base-review-decision",
1744
- "pluginAlias": "byterover-cli",
1745
- "pluginName": "byterover-cli",
1746
- "pluginType": "core",
1747
- "strict": true,
1748
- "enableJsonFlag": false,
1749
- "isESM": true,
1750
- "relativePath": [
1751
- "dist",
1752
- "oclif",
1753
- "commands",
1754
- "review",
1755
- "base-review-decision.js"
1756
- ]
1757
- },
1758
- "review:pending": {
1759
- "aliases": [],
1760
- "args": {},
1761
- "description": "List all pending review operations for the current project",
1762
- "examples": [
1763
- "# Show all pending reviews",
1764
- "<%= config.bin %> review pending",
1765
- "",
1766
- "# Get structured output for agent-driven workflows",
1767
- "<%= config.bin %> review pending --format json"
1768
- ],
1769
- "flags": {
1770
- "format": {
1771
- "description": "Output format (text or json)",
1772
- "name": "format",
1773
- "default": "text",
1774
- "hasDynamicHelp": false,
1775
- "multiple": false,
1776
- "options": [
1777
- "text",
1778
- "json"
1779
- ],
1780
- "type": "option"
1781
- }
1782
- },
1783
- "hasDynamicHelp": false,
1784
- "hiddenAliases": [],
1785
- "id": "review:pending",
1786
- "pluginAlias": "byterover-cli",
1787
- "pluginName": "byterover-cli",
1788
- "pluginType": "core",
1789
- "strict": true,
1790
- "enableJsonFlag": false,
1791
- "isESM": true,
1792
- "relativePath": [
1793
- "dist",
1794
- "oclif",
1795
- "commands",
1796
- "review",
1797
- "pending.js"
1798
- ]
1799
- },
1800
- "review:reject": {
1801
- "aliases": [],
1802
- "args": {
1803
- "taskId": {
1804
- "description": "Task ID shown in the curate output (e.g. \"brv review reject abc-123\")",
1805
- "name": "taskId",
1806
- "required": true
1807
- }
1808
- },
1809
- "description": "Reject pending review operations for a curate task (restores files from backup)",
1810
- "examples": [
1811
- "# Reject all pending changes from a curate task",
1812
- "<%= config.bin %> review reject abc-123",
1813
- "",
1814
- "# Reject specific files",
1815
- "<%= config.bin %> review reject abc-123 --file architecture/security/audit.md",
1816
- "<%= config.bin %> review reject abc-123 --file auth/jwt.md --file auth/oauth.md",
1817
- "",
1818
- "# Reject and get structured output (useful for coding agents)",
1819
- "<%= config.bin %> review reject abc-123 --format json"
1820
- ],
1821
- "flags": {
1822
- "file": {
1823
- "description": "Reject only the specified file path(s) (relative to context tree)",
1824
- "name": "file",
1825
- "hasDynamicHelp": false,
1826
- "multiple": true,
1827
- "type": "option"
1828
- },
1829
- "format": {
1830
- "description": "Output format (text or json)",
1831
- "name": "format",
1832
- "default": "text",
1833
- "hasDynamicHelp": false,
1834
- "multiple": false,
1835
- "options": [
1836
- "text",
1837
- "json"
1838
- ],
1839
- "type": "option"
1840
- }
1841
- },
1842
- "hasDynamicHelp": false,
1843
- "hiddenAliases": [],
1844
- "id": "review:reject",
1845
- "pluginAlias": "byterover-cli",
1846
- "pluginName": "byterover-cli",
1847
- "pluginType": "core",
1848
- "strict": true,
1849
- "enableJsonFlag": false,
1850
- "isESM": true,
1851
- "relativePath": [
1852
- "dist",
1853
- "oclif",
1854
- "commands",
1855
- "review",
1856
- "reject.js"
1857
- ]
1858
- },
1859
1654
  "source:add": {
1860
1655
  "aliases": [],
1861
1656
  "args": {
@@ -2232,6 +2027,211 @@
2232
2027
  "view.js"
2233
2028
  ]
2234
2029
  },
2030
+ "review:approve": {
2031
+ "aliases": [],
2032
+ "args": {
2033
+ "taskId": {
2034
+ "description": "Task ID shown in the curate output (e.g. \"brv review approve abc-123\")",
2035
+ "name": "taskId",
2036
+ "required": true
2037
+ }
2038
+ },
2039
+ "description": "Approve pending review operations for a curate task",
2040
+ "examples": [
2041
+ "# Approve all pending changes from a curate task",
2042
+ "<%= config.bin %> review approve abc-123",
2043
+ "",
2044
+ "# Approve specific files",
2045
+ "<%= config.bin %> review approve abc-123 --file architecture/security/audit.md",
2046
+ "<%= config.bin %> review approve abc-123 --file auth/jwt.md --file auth/oauth.md",
2047
+ "",
2048
+ "# Approve and get structured output (useful for coding agents)",
2049
+ "<%= config.bin %> review approve abc-123 --format json"
2050
+ ],
2051
+ "flags": {
2052
+ "file": {
2053
+ "description": "Approve only the specified file path(s) (relative to context tree)",
2054
+ "name": "file",
2055
+ "hasDynamicHelp": false,
2056
+ "multiple": true,
2057
+ "type": "option"
2058
+ },
2059
+ "format": {
2060
+ "description": "Output format (text or json)",
2061
+ "name": "format",
2062
+ "default": "text",
2063
+ "hasDynamicHelp": false,
2064
+ "multiple": false,
2065
+ "options": [
2066
+ "text",
2067
+ "json"
2068
+ ],
2069
+ "type": "option"
2070
+ }
2071
+ },
2072
+ "hasDynamicHelp": false,
2073
+ "hiddenAliases": [],
2074
+ "id": "review:approve",
2075
+ "pluginAlias": "byterover-cli",
2076
+ "pluginName": "byterover-cli",
2077
+ "pluginType": "core",
2078
+ "strict": true,
2079
+ "enableJsonFlag": false,
2080
+ "isESM": true,
2081
+ "relativePath": [
2082
+ "dist",
2083
+ "oclif",
2084
+ "commands",
2085
+ "review",
2086
+ "approve.js"
2087
+ ]
2088
+ },
2089
+ "review:base-review-decision": {
2090
+ "aliases": [],
2091
+ "args": {
2092
+ "taskId": {
2093
+ "name": "taskId",
2094
+ "required": true
2095
+ }
2096
+ },
2097
+ "flags": {
2098
+ "file": {
2099
+ "name": "file",
2100
+ "hasDynamicHelp": false,
2101
+ "multiple": true,
2102
+ "type": "option"
2103
+ },
2104
+ "format": {
2105
+ "description": "Output format (text or json)",
2106
+ "name": "format",
2107
+ "default": "text",
2108
+ "hasDynamicHelp": false,
2109
+ "multiple": false,
2110
+ "options": [
2111
+ "text",
2112
+ "json"
2113
+ ],
2114
+ "type": "option"
2115
+ }
2116
+ },
2117
+ "hasDynamicHelp": false,
2118
+ "hiddenAliases": [],
2119
+ "id": "review:base-review-decision",
2120
+ "pluginAlias": "byterover-cli",
2121
+ "pluginName": "byterover-cli",
2122
+ "pluginType": "core",
2123
+ "strict": true,
2124
+ "enableJsonFlag": false,
2125
+ "isESM": true,
2126
+ "relativePath": [
2127
+ "dist",
2128
+ "oclif",
2129
+ "commands",
2130
+ "review",
2131
+ "base-review-decision.js"
2132
+ ]
2133
+ },
2134
+ "review:pending": {
2135
+ "aliases": [],
2136
+ "args": {},
2137
+ "description": "List all pending review operations for the current project",
2138
+ "examples": [
2139
+ "# Show all pending reviews",
2140
+ "<%= config.bin %> review pending",
2141
+ "",
2142
+ "# Get structured output for agent-driven workflows",
2143
+ "<%= config.bin %> review pending --format json"
2144
+ ],
2145
+ "flags": {
2146
+ "format": {
2147
+ "description": "Output format (text or json)",
2148
+ "name": "format",
2149
+ "default": "text",
2150
+ "hasDynamicHelp": false,
2151
+ "multiple": false,
2152
+ "options": [
2153
+ "text",
2154
+ "json"
2155
+ ],
2156
+ "type": "option"
2157
+ }
2158
+ },
2159
+ "hasDynamicHelp": false,
2160
+ "hiddenAliases": [],
2161
+ "id": "review:pending",
2162
+ "pluginAlias": "byterover-cli",
2163
+ "pluginName": "byterover-cli",
2164
+ "pluginType": "core",
2165
+ "strict": true,
2166
+ "enableJsonFlag": false,
2167
+ "isESM": true,
2168
+ "relativePath": [
2169
+ "dist",
2170
+ "oclif",
2171
+ "commands",
2172
+ "review",
2173
+ "pending.js"
2174
+ ]
2175
+ },
2176
+ "review:reject": {
2177
+ "aliases": [],
2178
+ "args": {
2179
+ "taskId": {
2180
+ "description": "Task ID shown in the curate output (e.g. \"brv review reject abc-123\")",
2181
+ "name": "taskId",
2182
+ "required": true
2183
+ }
2184
+ },
2185
+ "description": "Reject pending review operations for a curate task (restores files from backup)",
2186
+ "examples": [
2187
+ "# Reject all pending changes from a curate task",
2188
+ "<%= config.bin %> review reject abc-123",
2189
+ "",
2190
+ "# Reject specific files",
2191
+ "<%= config.bin %> review reject abc-123 --file architecture/security/audit.md",
2192
+ "<%= config.bin %> review reject abc-123 --file auth/jwt.md --file auth/oauth.md",
2193
+ "",
2194
+ "# Reject and get structured output (useful for coding agents)",
2195
+ "<%= config.bin %> review reject abc-123 --format json"
2196
+ ],
2197
+ "flags": {
2198
+ "file": {
2199
+ "description": "Reject only the specified file path(s) (relative to context tree)",
2200
+ "name": "file",
2201
+ "hasDynamicHelp": false,
2202
+ "multiple": true,
2203
+ "type": "option"
2204
+ },
2205
+ "format": {
2206
+ "description": "Output format (text or json)",
2207
+ "name": "format",
2208
+ "default": "text",
2209
+ "hasDynamicHelp": false,
2210
+ "multiple": false,
2211
+ "options": [
2212
+ "text",
2213
+ "json"
2214
+ ],
2215
+ "type": "option"
2216
+ }
2217
+ },
2218
+ "hasDynamicHelp": false,
2219
+ "hiddenAliases": [],
2220
+ "id": "review:reject",
2221
+ "pluginAlias": "byterover-cli",
2222
+ "pluginName": "byterover-cli",
2223
+ "pluginType": "core",
2224
+ "strict": true,
2225
+ "enableJsonFlag": false,
2226
+ "isESM": true,
2227
+ "relativePath": [
2228
+ "dist",
2229
+ "oclif",
2230
+ "commands",
2231
+ "review",
2232
+ "reject.js"
2233
+ ]
2234
+ },
2235
2235
  "swarm:curate": {
2236
2236
  "aliases": [],
2237
2237
  "args": {
@@ -3508,5 +3508,5 @@
3508
3508
  ]
3509
3509
  }
3510
3510
  },
3511
- "version": "3.10.2"
3511
+ "version": "3.11.0"
3512
3512
  }
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "coding-assistant",
13
13
  "knowledge-management"
14
14
  ],
15
- "version": "3.10.2",
15
+ "version": "3.11.0",
16
16
  "author": "ByteRover",
17
17
  "bin": {
18
18
  "brv": "./bin/run.js"
@@ -33,7 +33,7 @@
33
33
  "@ai-sdk/vercel": "^1.0.33",
34
34
  "@ai-sdk/xai": "^2.0.57",
35
35
  "@anthropic-ai/sdk": "^0.70.1",
36
- "@campfirein/brv-transport-client": "github:campfirein/brv-transport-client#1.0.0",
36
+ "@campfirein/brv-transport-client": "github:campfirein/brv-transport-client#1.1.0",
37
37
  "@campfirein/byterover-packages": "github:campfirein/byterover-packages#1.0.2",
38
38
  "@google/genai": "^1.29.0",
39
39
  "@inkjs/ui": "^2.0.0",
@@ -47,7 +47,7 @@
47
47
  "@tanstack/react-query": "^5.90.20",
48
48
  "@types/react-syntax-highlighter": "^15.5.13",
49
49
  "ai": "^5.0.129",
50
- "axios": "1.15.0",
50
+ "axios": "1.16.0",
51
51
  "chalk": "^5.6.2",
52
52
  "date-fns": "^4.1.0",
53
53
  "diff": "^9.0.0",
@@ -77,8 +77,8 @@
77
77
  "react": "^19.2.1",
78
78
  "react-diff-viewer-continued": "^4.2.0",
79
79
  "react-dom": "^19.2.1",
80
- "react-reconciler": "0.33.0",
81
80
  "react-markdown": "^10.1.0",
81
+ "react-reconciler": "0.33.0",
82
82
  "react-router-dom": "^7.13.0",
83
83
  "react-syntax-highlighter": "^16.1.1",
84
84
  "remark-frontmatter": "^5.0.0",