byterover-cli 3.1.0 → 3.2.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.
- package/.env.production +4 -0
- package/README.md +17 -0
- package/dist/agent/infra/agent/agent-schemas.d.ts +8 -0
- package/dist/agent/infra/agent/agent-schemas.js +1 -0
- package/dist/agent/infra/sandbox/curate-service.js +14 -0
- package/dist/agent/infra/sandbox/sandbox-service.js +1 -0
- package/dist/agent/infra/sandbox/tools-sdk.d.ts +10 -0
- package/dist/agent/infra/sandbox/tools-sdk.js +9 -1
- package/dist/agent/infra/tools/implementations/search-knowledge-service.js +214 -101
- package/dist/agent/infra/tools/implementations/write-file-tool.d.ts +2 -1
- package/dist/agent/infra/tools/implementations/write-file-tool.js +16 -2
- package/dist/agent/infra/tools/tool-registry.js +1 -1
- package/dist/agent/infra/tools/write-guard.d.ts +11 -0
- package/dist/agent/infra/tools/write-guard.js +48 -0
- package/dist/agent/resources/prompts/system-prompt.yml +9 -0
- package/dist/agent/resources/tools/expand_knowledge.txt +4 -0
- package/dist/agent/resources/tools/search_knowledge.txt +11 -1
- package/dist/oclif/commands/curate/index.js +4 -3
- package/dist/oclif/commands/curate/view.js +2 -2
- package/dist/oclif/commands/main.js +13 -0
- package/dist/oclif/commands/query.js +4 -3
- package/dist/oclif/commands/source/add.d.ts +12 -0
- package/dist/oclif/commands/source/add.js +42 -0
- package/dist/oclif/commands/source/index.d.ts +6 -0
- package/dist/oclif/commands/source/index.js +8 -0
- package/dist/oclif/commands/source/list.d.ts +6 -0
- package/dist/oclif/commands/source/list.js +32 -0
- package/dist/oclif/commands/source/remove.d.ts +9 -0
- package/dist/oclif/commands/source/remove.js +33 -0
- package/dist/oclif/commands/status.d.ts +5 -1
- package/dist/oclif/commands/status.js +41 -6
- package/dist/oclif/commands/worktree/add.d.ts +12 -0
- package/dist/oclif/commands/worktree/add.js +44 -0
- package/dist/oclif/commands/worktree/index.d.ts +6 -0
- package/dist/oclif/commands/worktree/index.js +8 -0
- package/dist/oclif/commands/worktree/list.d.ts +6 -0
- package/dist/oclif/commands/worktree/list.js +28 -0
- package/dist/oclif/commands/worktree/remove.d.ts +9 -0
- package/dist/oclif/commands/worktree/remove.js +35 -0
- package/dist/oclif/hooks/init/validate-brv-config.js +4 -0
- package/dist/oclif/lib/daemon-client.d.ts +4 -2
- package/dist/oclif/lib/daemon-client.js +19 -3
- package/dist/server/constants.d.ts +6 -0
- package/dist/server/constants.js +8 -0
- package/dist/server/core/domain/client/client-info.d.ts +7 -0
- package/dist/server/core/domain/client/client-info.js +11 -0
- package/dist/server/core/domain/project/worktrees-schema.d.ts +29 -0
- package/dist/server/core/domain/project/worktrees-schema.js +17 -0
- package/dist/server/core/domain/source/source-operations.d.ts +31 -0
- package/dist/server/core/domain/source/source-operations.js +201 -0
- package/dist/server/core/domain/source/source-schema.d.ts +94 -0
- package/dist/server/core/domain/source/source-schema.js +121 -0
- package/dist/server/core/domain/transport/schemas.d.ts +8 -0
- package/dist/server/core/domain/transport/schemas.js +4 -0
- package/dist/server/core/domain/transport/task-info.d.ts +2 -0
- package/dist/server/core/interfaces/client/i-client-manager.d.ts +13 -0
- package/dist/server/core/interfaces/executor/i-curate-executor.d.ts +4 -0
- package/dist/server/core/interfaces/executor/i-folder-pack-executor.d.ts +7 -3
- package/dist/server/core/interfaces/executor/i-query-executor.d.ts +2 -0
- package/dist/server/infra/client/client-manager.d.ts +1 -0
- package/dist/server/infra/client/client-manager.js +16 -0
- package/dist/server/infra/daemon/agent-process.js +15 -5
- package/dist/server/infra/executor/curate-executor.js +4 -2
- package/dist/server/infra/executor/direct-search-responder.js +5 -1
- package/dist/server/infra/executor/folder-pack-executor.js +23 -12
- package/dist/server/infra/executor/query-executor.d.ts +23 -0
- package/dist/server/infra/executor/query-executor.js +115 -21
- package/dist/server/infra/mcp/mcp-mode-detector.d.ts +7 -5
- package/dist/server/infra/mcp/mcp-mode-detector.js +11 -18
- package/dist/server/infra/mcp/mcp-server.d.ts +1 -0
- package/dist/server/infra/mcp/mcp-server.js +11 -6
- package/dist/server/infra/mcp/tools/brv-curate-tool.d.ts +2 -1
- package/dist/server/infra/mcp/tools/brv-curate-tool.js +9 -16
- package/dist/server/infra/mcp/tools/brv-query-tool.d.ts +2 -1
- package/dist/server/infra/mcp/tools/brv-query-tool.js +9 -16
- package/dist/server/infra/mcp/tools/mcp-project-context.d.ts +11 -0
- package/dist/server/infra/mcp/tools/mcp-project-context.js +54 -0
- package/dist/server/infra/process/connection-coordinator.js +11 -0
- package/dist/server/infra/process/feature-handlers.js +4 -1
- package/dist/server/infra/process/task-router.d.ts +1 -0
- package/dist/server/infra/process/task-router.js +60 -5
- package/dist/server/infra/project/resolve-project.d.ts +106 -0
- package/dist/server/infra/project/resolve-project.js +473 -0
- package/dist/server/infra/transport/handlers/index.d.ts +4 -0
- package/dist/server/infra/transport/handlers/index.js +2 -0
- package/dist/server/infra/transport/handlers/source-handler.d.ts +12 -0
- package/dist/server/infra/transport/handlers/source-handler.js +37 -0
- package/dist/server/infra/transport/handlers/status-handler.js +55 -13
- package/dist/server/infra/transport/handlers/worktree-handler.d.ts +12 -0
- package/dist/server/infra/transport/handlers/worktree-handler.js +67 -0
- package/dist/server/infra/transport/transport-connector.d.ts +10 -4
- package/dist/server/infra/transport/transport-connector.js +2 -2
- package/dist/server/utils/path-utils.d.ts +5 -0
- package/dist/server/utils/path-utils.js +11 -1
- package/dist/shared/transport/events/client-events.d.ts +3 -0
- package/dist/shared/transport/events/client-events.js +3 -0
- package/dist/shared/transport/events/index.d.ts +13 -0
- package/dist/shared/transport/events/index.js +9 -0
- package/dist/shared/transport/events/source-events.d.ts +30 -0
- package/dist/shared/transport/events/source-events.js +5 -0
- package/dist/shared/transport/events/status-events.d.ts +5 -0
- package/dist/shared/transport/events/task-events.d.ts +4 -1
- package/dist/shared/transport/events/worktree-events.d.ts +31 -0
- package/dist/shared/transport/events/worktree-events.js +5 -0
- package/dist/shared/transport/types/dto.d.ts +19 -0
- package/dist/tui/features/commands/definitions/index.js +6 -0
- package/dist/tui/features/commands/definitions/source-add.d.ts +2 -0
- package/dist/tui/features/commands/definitions/source-add.js +48 -0
- package/dist/tui/features/commands/definitions/source-list.d.ts +2 -0
- package/dist/tui/features/commands/definitions/source-list.js +47 -0
- package/dist/tui/features/commands/definitions/source-remove.d.ts +2 -0
- package/dist/tui/features/commands/definitions/source-remove.js +38 -0
- package/dist/tui/features/commands/definitions/source.d.ts +2 -0
- package/dist/tui/features/commands/definitions/source.js +8 -0
- package/dist/tui/features/commands/definitions/worktree-add.d.ts +2 -0
- package/dist/tui/features/commands/definitions/worktree-add.js +35 -0
- package/dist/tui/features/commands/definitions/worktree-list.d.ts +2 -0
- package/dist/tui/features/commands/definitions/worktree-list.js +36 -0
- package/dist/tui/features/commands/definitions/worktree-remove.d.ts +2 -0
- package/dist/tui/features/commands/definitions/worktree-remove.js +33 -0
- package/dist/tui/features/commands/definitions/worktree.d.ts +2 -0
- package/dist/tui/features/commands/definitions/worktree.js +8 -0
- package/dist/tui/features/curate/api/create-curate-task.js +3 -1
- package/dist/tui/features/query/api/create-query-task.js +3 -1
- package/dist/tui/features/source/api/source-api.d.ts +4 -0
- package/dist/tui/features/source/api/source-api.js +22 -0
- package/dist/tui/features/status/api/get-status.js +2 -1
- package/dist/tui/features/status/utils/format-status.js +23 -1
- package/dist/tui/features/transport/components/transport-initializer.js +36 -1
- package/dist/tui/features/worktree/api/worktree-api.d.ts +4 -0
- package/dist/tui/features/worktree/api/worktree-api.js +22 -0
- package/dist/tui/repl-startup.d.ts +2 -0
- package/dist/tui/repl-startup.js +5 -3
- package/dist/tui/stores/transport-store.d.ts +6 -0
- package/dist/tui/stores/transport-store.js +6 -0
- package/oclif.manifest.json +418 -158
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -486,6 +486,21 @@
|
|
|
486
486
|
"json"
|
|
487
487
|
],
|
|
488
488
|
"type": "option"
|
|
489
|
+
},
|
|
490
|
+
"project-root": {
|
|
491
|
+
"description": "Explicit project root path (overrides auto-detection)",
|
|
492
|
+
"name": "project-root",
|
|
493
|
+
"required": false,
|
|
494
|
+
"hasDynamicHelp": false,
|
|
495
|
+
"multiple": false,
|
|
496
|
+
"type": "option"
|
|
497
|
+
},
|
|
498
|
+
"verbose": {
|
|
499
|
+
"char": "v",
|
|
500
|
+
"description": "Show resolution source and diagnostic info",
|
|
501
|
+
"name": "verbose",
|
|
502
|
+
"allowNo": false,
|
|
503
|
+
"type": "boolean"
|
|
489
504
|
}
|
|
490
505
|
},
|
|
491
506
|
"hasDynamicHelp": false,
|
|
@@ -1117,33 +1132,47 @@
|
|
|
1117
1132
|
"switch.js"
|
|
1118
1133
|
]
|
|
1119
1134
|
},
|
|
1120
|
-
"
|
|
1135
|
+
"providers:connect": {
|
|
1121
1136
|
"aliases": [],
|
|
1122
1137
|
"args": {
|
|
1123
|
-
"
|
|
1124
|
-
"description": "
|
|
1125
|
-
"name": "
|
|
1126
|
-
"required":
|
|
1138
|
+
"provider": {
|
|
1139
|
+
"description": "Provider ID to connect (e.g., anthropic, openai, openrouter). Omit for interactive selection.",
|
|
1140
|
+
"name": "provider",
|
|
1141
|
+
"required": false
|
|
1127
1142
|
}
|
|
1128
1143
|
},
|
|
1129
|
-
"description": "
|
|
1144
|
+
"description": "Connect or switch to an LLM provider",
|
|
1130
1145
|
"examples": [
|
|
1131
|
-
"
|
|
1132
|
-
"<%= config.bin %>
|
|
1133
|
-
"",
|
|
1134
|
-
"
|
|
1135
|
-
"<%= config.bin %>
|
|
1136
|
-
"<%= config.bin %> review approve abc-123 --file auth/jwt.md --file auth/oauth.md",
|
|
1137
|
-
"",
|
|
1138
|
-
"# Approve and get structured output (useful for coding agents)",
|
|
1139
|
-
"<%= config.bin %> review approve abc-123 --format json"
|
|
1146
|
+
"<%= config.bin %> providers connect",
|
|
1147
|
+
"<%= config.bin %> providers connect anthropic --api-key sk-xxx",
|
|
1148
|
+
"<%= config.bin %> providers connect openai --oauth",
|
|
1149
|
+
"<%= config.bin %> providers connect byterover",
|
|
1150
|
+
"<%= config.bin %> providers connect openai-compatible --base-url http://localhost:11434/v1 --api-key sk-xxx"
|
|
1140
1151
|
],
|
|
1141
1152
|
"flags": {
|
|
1142
|
-
"
|
|
1143
|
-
"
|
|
1144
|
-
"
|
|
1153
|
+
"api-key": {
|
|
1154
|
+
"char": "k",
|
|
1155
|
+
"description": "API key for the provider",
|
|
1156
|
+
"name": "api-key",
|
|
1145
1157
|
"hasDynamicHelp": false,
|
|
1146
|
-
"multiple":
|
|
1158
|
+
"multiple": false,
|
|
1159
|
+
"type": "option"
|
|
1160
|
+
},
|
|
1161
|
+
"base-url": {
|
|
1162
|
+
"char": "b",
|
|
1163
|
+
"description": "Base URL for OpenAI-compatible providers (e.g., http://localhost:11434/v1)",
|
|
1164
|
+
"name": "base-url",
|
|
1165
|
+
"hasDynamicHelp": false,
|
|
1166
|
+
"multiple": false,
|
|
1167
|
+
"type": "option"
|
|
1168
|
+
},
|
|
1169
|
+
"code": {
|
|
1170
|
+
"char": "c",
|
|
1171
|
+
"description": "Authorization code for code-paste OAuth providers (e.g., Anthropic). Not applicable to browser-callback providers like OpenAI — use --oauth without --code instead.",
|
|
1172
|
+
"hidden": true,
|
|
1173
|
+
"name": "code",
|
|
1174
|
+
"hasDynamicHelp": false,
|
|
1175
|
+
"multiple": false,
|
|
1147
1176
|
"type": "option"
|
|
1148
1177
|
},
|
|
1149
1178
|
"format": {
|
|
@@ -1157,11 +1186,25 @@
|
|
|
1157
1186
|
"json"
|
|
1158
1187
|
],
|
|
1159
1188
|
"type": "option"
|
|
1189
|
+
},
|
|
1190
|
+
"model": {
|
|
1191
|
+
"char": "m",
|
|
1192
|
+
"description": "Model to set as active after connecting",
|
|
1193
|
+
"name": "model",
|
|
1194
|
+
"hasDynamicHelp": false,
|
|
1195
|
+
"multiple": false,
|
|
1196
|
+
"type": "option"
|
|
1197
|
+
},
|
|
1198
|
+
"oauth": {
|
|
1199
|
+
"description": "Connect via OAuth (browser-based)",
|
|
1200
|
+
"name": "oauth",
|
|
1201
|
+
"allowNo": false,
|
|
1202
|
+
"type": "boolean"
|
|
1160
1203
|
}
|
|
1161
1204
|
},
|
|
1162
1205
|
"hasDynamicHelp": false,
|
|
1163
1206
|
"hiddenAliases": [],
|
|
1164
|
-
"id": "
|
|
1207
|
+
"id": "providers:connect",
|
|
1165
1208
|
"pluginAlias": "byterover-cli",
|
|
1166
1209
|
"pluginName": "byterover-cli",
|
|
1167
1210
|
"pluginType": "core",
|
|
@@ -1172,25 +1215,25 @@
|
|
|
1172
1215
|
"dist",
|
|
1173
1216
|
"oclif",
|
|
1174
1217
|
"commands",
|
|
1175
|
-
"
|
|
1176
|
-
"
|
|
1218
|
+
"providers",
|
|
1219
|
+
"connect.js"
|
|
1177
1220
|
]
|
|
1178
1221
|
},
|
|
1179
|
-
"
|
|
1222
|
+
"providers:disconnect": {
|
|
1180
1223
|
"aliases": [],
|
|
1181
1224
|
"args": {
|
|
1182
|
-
"
|
|
1183
|
-
"
|
|
1225
|
+
"provider": {
|
|
1226
|
+
"description": "Provider ID to disconnect",
|
|
1227
|
+
"name": "provider",
|
|
1184
1228
|
"required": true
|
|
1185
1229
|
}
|
|
1186
1230
|
},
|
|
1231
|
+
"description": "Disconnect an LLM provider",
|
|
1232
|
+
"examples": [
|
|
1233
|
+
"<%= config.bin %> providers disconnect anthropic",
|
|
1234
|
+
"<%= config.bin %> providers disconnect openai --format json"
|
|
1235
|
+
],
|
|
1187
1236
|
"flags": {
|
|
1188
|
-
"file": {
|
|
1189
|
-
"name": "file",
|
|
1190
|
-
"hasDynamicHelp": false,
|
|
1191
|
-
"multiple": true,
|
|
1192
|
-
"type": "option"
|
|
1193
|
-
},
|
|
1194
1237
|
"format": {
|
|
1195
1238
|
"description": "Output format (text or json)",
|
|
1196
1239
|
"name": "format",
|
|
@@ -1206,7 +1249,7 @@
|
|
|
1206
1249
|
},
|
|
1207
1250
|
"hasDynamicHelp": false,
|
|
1208
1251
|
"hiddenAliases": [],
|
|
1209
|
-
"id": "
|
|
1252
|
+
"id": "providers:disconnect",
|
|
1210
1253
|
"pluginAlias": "byterover-cli",
|
|
1211
1254
|
"pluginName": "byterover-cli",
|
|
1212
1255
|
"pluginType": "core",
|
|
@@ -1217,20 +1260,17 @@
|
|
|
1217
1260
|
"dist",
|
|
1218
1261
|
"oclif",
|
|
1219
1262
|
"commands",
|
|
1220
|
-
"
|
|
1221
|
-
"
|
|
1263
|
+
"providers",
|
|
1264
|
+
"disconnect.js"
|
|
1222
1265
|
]
|
|
1223
1266
|
},
|
|
1224
|
-
"
|
|
1267
|
+
"providers": {
|
|
1225
1268
|
"aliases": [],
|
|
1226
1269
|
"args": {},
|
|
1227
|
-
"description": "
|
|
1270
|
+
"description": "Show active provider and model",
|
|
1228
1271
|
"examples": [
|
|
1229
|
-
"
|
|
1230
|
-
"<%= config.bin %>
|
|
1231
|
-
"",
|
|
1232
|
-
"# Get structured output for agent-driven workflows",
|
|
1233
|
-
"<%= config.bin %> review pending --format json"
|
|
1272
|
+
"<%= config.bin %> providers",
|
|
1273
|
+
"<%= config.bin %> providers --format json"
|
|
1234
1274
|
],
|
|
1235
1275
|
"flags": {
|
|
1236
1276
|
"format": {
|
|
@@ -1248,7 +1288,7 @@
|
|
|
1248
1288
|
},
|
|
1249
1289
|
"hasDynamicHelp": false,
|
|
1250
1290
|
"hiddenAliases": [],
|
|
1251
|
-
"id": "
|
|
1291
|
+
"id": "providers",
|
|
1252
1292
|
"pluginAlias": "byterover-cli",
|
|
1253
1293
|
"pluginName": "byterover-cli",
|
|
1254
1294
|
"pluginType": "core",
|
|
@@ -1259,39 +1299,19 @@
|
|
|
1259
1299
|
"dist",
|
|
1260
1300
|
"oclif",
|
|
1261
1301
|
"commands",
|
|
1262
|
-
"
|
|
1263
|
-
"
|
|
1302
|
+
"providers",
|
|
1303
|
+
"index.js"
|
|
1264
1304
|
]
|
|
1265
1305
|
},
|
|
1266
|
-
"
|
|
1306
|
+
"providers:list": {
|
|
1267
1307
|
"aliases": [],
|
|
1268
|
-
"args": {
|
|
1269
|
-
|
|
1270
|
-
"description": "Task ID shown in the curate output (e.g. \"brv review reject abc-123\")",
|
|
1271
|
-
"name": "taskId",
|
|
1272
|
-
"required": true
|
|
1273
|
-
}
|
|
1274
|
-
},
|
|
1275
|
-
"description": "Reject pending review operations for a curate task (restores files from backup)",
|
|
1308
|
+
"args": {},
|
|
1309
|
+
"description": "List all available providers and their connection status",
|
|
1276
1310
|
"examples": [
|
|
1277
|
-
"
|
|
1278
|
-
"<%= config.bin %>
|
|
1279
|
-
"",
|
|
1280
|
-
"# Reject specific files",
|
|
1281
|
-
"<%= config.bin %> review reject abc-123 --file architecture/security/audit.md",
|
|
1282
|
-
"<%= config.bin %> review reject abc-123 --file auth/jwt.md --file auth/oauth.md",
|
|
1283
|
-
"",
|
|
1284
|
-
"# Reject and get structured output (useful for coding agents)",
|
|
1285
|
-
"<%= config.bin %> review reject abc-123 --format json"
|
|
1311
|
+
"<%= config.bin %> providers list",
|
|
1312
|
+
"<%= config.bin %> providers list --format json"
|
|
1286
1313
|
],
|
|
1287
1314
|
"flags": {
|
|
1288
|
-
"file": {
|
|
1289
|
-
"description": "Reject only the specified file path(s) (relative to context tree)",
|
|
1290
|
-
"name": "file",
|
|
1291
|
-
"hasDynamicHelp": false,
|
|
1292
|
-
"multiple": true,
|
|
1293
|
-
"type": "option"
|
|
1294
|
-
},
|
|
1295
1315
|
"format": {
|
|
1296
1316
|
"description": "Output format (text or json)",
|
|
1297
1317
|
"name": "format",
|
|
@@ -1307,7 +1327,7 @@
|
|
|
1307
1327
|
},
|
|
1308
1328
|
"hasDynamicHelp": false,
|
|
1309
1329
|
"hiddenAliases": [],
|
|
1310
|
-
"id": "
|
|
1330
|
+
"id": "providers:list",
|
|
1311
1331
|
"pluginAlias": "byterover-cli",
|
|
1312
1332
|
"pluginName": "byterover-cli",
|
|
1313
1333
|
"pluginType": "core",
|
|
@@ -1318,53 +1338,25 @@
|
|
|
1318
1338
|
"dist",
|
|
1319
1339
|
"oclif",
|
|
1320
1340
|
"commands",
|
|
1321
|
-
"
|
|
1322
|
-
"
|
|
1341
|
+
"providers",
|
|
1342
|
+
"list.js"
|
|
1323
1343
|
]
|
|
1324
1344
|
},
|
|
1325
|
-
"providers:
|
|
1345
|
+
"providers:switch": {
|
|
1326
1346
|
"aliases": [],
|
|
1327
1347
|
"args": {
|
|
1328
1348
|
"provider": {
|
|
1329
|
-
"description": "Provider ID to
|
|
1349
|
+
"description": "Provider ID to switch to (e.g., anthropic, openai)",
|
|
1330
1350
|
"name": "provider",
|
|
1331
|
-
"required":
|
|
1351
|
+
"required": true
|
|
1332
1352
|
}
|
|
1333
1353
|
},
|
|
1334
|
-
"description": "
|
|
1354
|
+
"description": "Switch the active provider",
|
|
1335
1355
|
"examples": [
|
|
1336
|
-
"<%= config.bin %> providers
|
|
1337
|
-
"<%= config.bin %> providers
|
|
1338
|
-
"<%= config.bin %> providers connect openai --oauth",
|
|
1339
|
-
"<%= config.bin %> providers connect byterover",
|
|
1340
|
-
"<%= config.bin %> providers connect openai-compatible --base-url http://localhost:11434/v1 --api-key sk-xxx"
|
|
1356
|
+
"<%= config.bin %> providers switch anthropic",
|
|
1357
|
+
"<%= config.bin %> providers switch openai --format json"
|
|
1341
1358
|
],
|
|
1342
1359
|
"flags": {
|
|
1343
|
-
"api-key": {
|
|
1344
|
-
"char": "k",
|
|
1345
|
-
"description": "API key for the provider",
|
|
1346
|
-
"name": "api-key",
|
|
1347
|
-
"hasDynamicHelp": false,
|
|
1348
|
-
"multiple": false,
|
|
1349
|
-
"type": "option"
|
|
1350
|
-
},
|
|
1351
|
-
"base-url": {
|
|
1352
|
-
"char": "b",
|
|
1353
|
-
"description": "Base URL for OpenAI-compatible providers (e.g., http://localhost:11434/v1)",
|
|
1354
|
-
"name": "base-url",
|
|
1355
|
-
"hasDynamicHelp": false,
|
|
1356
|
-
"multiple": false,
|
|
1357
|
-
"type": "option"
|
|
1358
|
-
},
|
|
1359
|
-
"code": {
|
|
1360
|
-
"char": "c",
|
|
1361
|
-
"description": "Authorization code for code-paste OAuth providers (e.g., Anthropic). Not applicable to browser-callback providers like OpenAI — use --oauth without --code instead.",
|
|
1362
|
-
"hidden": true,
|
|
1363
|
-
"name": "code",
|
|
1364
|
-
"hasDynamicHelp": false,
|
|
1365
|
-
"multiple": false,
|
|
1366
|
-
"type": "option"
|
|
1367
|
-
},
|
|
1368
1360
|
"format": {
|
|
1369
1361
|
"description": "Output format (text or json)",
|
|
1370
1362
|
"name": "format",
|
|
@@ -1376,25 +1368,52 @@
|
|
|
1376
1368
|
"json"
|
|
1377
1369
|
],
|
|
1378
1370
|
"type": "option"
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
"hasDynamicHelp": false,
|
|
1374
|
+
"hiddenAliases": [],
|
|
1375
|
+
"id": "providers:switch",
|
|
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
|
+
"switch.js"
|
|
1388
|
+
]
|
|
1389
|
+
},
|
|
1390
|
+
"source:add": {
|
|
1391
|
+
"aliases": [],
|
|
1392
|
+
"args": {
|
|
1393
|
+
"path": {
|
|
1394
|
+
"description": "Path to the target project containing .brv/",
|
|
1395
|
+
"name": "path",
|
|
1396
|
+
"required": true
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"description": "Add a read-only knowledge source from another project's context tree",
|
|
1400
|
+
"examples": [
|
|
1401
|
+
"<%= config.bin %> <%= command.id %> /path/to/shared-lib",
|
|
1402
|
+
"<%= config.bin %> <%= command.id %> /path/to/shared-lib --alias shared"
|
|
1403
|
+
],
|
|
1404
|
+
"flags": {
|
|
1405
|
+
"alias": {
|
|
1406
|
+
"description": "Custom alias for the source (defaults to directory name)",
|
|
1407
|
+
"name": "alias",
|
|
1408
|
+
"required": false,
|
|
1384
1409
|
"hasDynamicHelp": false,
|
|
1385
1410
|
"multiple": false,
|
|
1386
1411
|
"type": "option"
|
|
1387
|
-
},
|
|
1388
|
-
"oauth": {
|
|
1389
|
-
"description": "Connect via OAuth (browser-based)",
|
|
1390
|
-
"name": "oauth",
|
|
1391
|
-
"allowNo": false,
|
|
1392
|
-
"type": "boolean"
|
|
1393
1412
|
}
|
|
1394
1413
|
},
|
|
1395
1414
|
"hasDynamicHelp": false,
|
|
1396
1415
|
"hiddenAliases": [],
|
|
1397
|
-
"id": "
|
|
1416
|
+
"id": "source:add",
|
|
1398
1417
|
"pluginAlias": "byterover-cli",
|
|
1399
1418
|
"pluginName": "byterover-cli",
|
|
1400
1419
|
"pluginType": "core",
|
|
@@ -1405,25 +1424,121 @@
|
|
|
1405
1424
|
"dist",
|
|
1406
1425
|
"oclif",
|
|
1407
1426
|
"commands",
|
|
1408
|
-
"
|
|
1409
|
-
"
|
|
1427
|
+
"source",
|
|
1428
|
+
"add.js"
|
|
1410
1429
|
]
|
|
1411
1430
|
},
|
|
1412
|
-
"
|
|
1431
|
+
"source": {
|
|
1432
|
+
"aliases": [],
|
|
1433
|
+
"args": {},
|
|
1434
|
+
"description": "Manage knowledge sources (read-only references to other projects)",
|
|
1435
|
+
"examples": [
|
|
1436
|
+
"<%= config.bin %> <%= command.id %> --help"
|
|
1437
|
+
],
|
|
1438
|
+
"flags": {},
|
|
1439
|
+
"hasDynamicHelp": false,
|
|
1440
|
+
"hiddenAliases": [],
|
|
1441
|
+
"id": "source",
|
|
1442
|
+
"pluginAlias": "byterover-cli",
|
|
1443
|
+
"pluginName": "byterover-cli",
|
|
1444
|
+
"pluginType": "core",
|
|
1445
|
+
"strict": true,
|
|
1446
|
+
"enableJsonFlag": false,
|
|
1447
|
+
"isESM": true,
|
|
1448
|
+
"relativePath": [
|
|
1449
|
+
"dist",
|
|
1450
|
+
"oclif",
|
|
1451
|
+
"commands",
|
|
1452
|
+
"source",
|
|
1453
|
+
"index.js"
|
|
1454
|
+
]
|
|
1455
|
+
},
|
|
1456
|
+
"source:list": {
|
|
1457
|
+
"aliases": [],
|
|
1458
|
+
"args": {},
|
|
1459
|
+
"description": "List all knowledge sources and their status",
|
|
1460
|
+
"examples": [
|
|
1461
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1462
|
+
],
|
|
1463
|
+
"flags": {},
|
|
1464
|
+
"hasDynamicHelp": false,
|
|
1465
|
+
"hiddenAliases": [],
|
|
1466
|
+
"id": "source:list",
|
|
1467
|
+
"pluginAlias": "byterover-cli",
|
|
1468
|
+
"pluginName": "byterover-cli",
|
|
1469
|
+
"pluginType": "core",
|
|
1470
|
+
"strict": true,
|
|
1471
|
+
"enableJsonFlag": false,
|
|
1472
|
+
"isESM": true,
|
|
1473
|
+
"relativePath": [
|
|
1474
|
+
"dist",
|
|
1475
|
+
"oclif",
|
|
1476
|
+
"commands",
|
|
1477
|
+
"source",
|
|
1478
|
+
"list.js"
|
|
1479
|
+
]
|
|
1480
|
+
},
|
|
1481
|
+
"source:remove": {
|
|
1413
1482
|
"aliases": [],
|
|
1414
1483
|
"args": {
|
|
1415
|
-
"
|
|
1416
|
-
"description": "
|
|
1417
|
-
"name": "
|
|
1484
|
+
"aliasOrPath": {
|
|
1485
|
+
"description": "Alias or path of the knowledge source to remove",
|
|
1486
|
+
"name": "aliasOrPath",
|
|
1418
1487
|
"required": true
|
|
1419
1488
|
}
|
|
1420
1489
|
},
|
|
1421
|
-
"description": "
|
|
1490
|
+
"description": "Remove a knowledge source",
|
|
1422
1491
|
"examples": [
|
|
1423
|
-
"<%= config.bin %>
|
|
1424
|
-
"<%= config.bin %>
|
|
1492
|
+
"<%= config.bin %> <%= command.id %> shared-lib",
|
|
1493
|
+
"<%= config.bin %> <%= command.id %> /path/to/shared-lib"
|
|
1494
|
+
],
|
|
1495
|
+
"flags": {},
|
|
1496
|
+
"hasDynamicHelp": false,
|
|
1497
|
+
"hiddenAliases": [],
|
|
1498
|
+
"id": "source:remove",
|
|
1499
|
+
"pluginAlias": "byterover-cli",
|
|
1500
|
+
"pluginName": "byterover-cli",
|
|
1501
|
+
"pluginType": "core",
|
|
1502
|
+
"strict": true,
|
|
1503
|
+
"enableJsonFlag": false,
|
|
1504
|
+
"isESM": true,
|
|
1505
|
+
"relativePath": [
|
|
1506
|
+
"dist",
|
|
1507
|
+
"oclif",
|
|
1508
|
+
"commands",
|
|
1509
|
+
"source",
|
|
1510
|
+
"remove.js"
|
|
1511
|
+
]
|
|
1512
|
+
},
|
|
1513
|
+
"review:approve": {
|
|
1514
|
+
"aliases": [],
|
|
1515
|
+
"args": {
|
|
1516
|
+
"taskId": {
|
|
1517
|
+
"description": "Task ID shown in the curate output (e.g. \"brv review approve abc-123\")",
|
|
1518
|
+
"name": "taskId",
|
|
1519
|
+
"required": true
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
"description": "Approve pending review operations for a curate task",
|
|
1523
|
+
"examples": [
|
|
1524
|
+
"# Approve all pending changes from a curate task",
|
|
1525
|
+
"<%= config.bin %> review approve abc-123",
|
|
1526
|
+
"",
|
|
1527
|
+
"# Approve specific files",
|
|
1528
|
+
"<%= config.bin %> review approve abc-123 --file architecture/security/audit.md",
|
|
1529
|
+
"<%= config.bin %> review approve abc-123 --file auth/jwt.md --file auth/oauth.md",
|
|
1530
|
+
"",
|
|
1531
|
+
"# Approve and get structured output (useful for coding agents)",
|
|
1532
|
+
"<%= config.bin %> review approve abc-123 --format json"
|
|
1425
1533
|
],
|
|
1426
1534
|
"flags": {
|
|
1535
|
+
"file": {
|
|
1536
|
+
"description": "Approve only the specified file path(s) (relative to context tree)",
|
|
1537
|
+
"name": "file",
|
|
1538
|
+
"hasDynamicHelp": false,
|
|
1539
|
+
"multiple": true,
|
|
1540
|
+
"type": "option"
|
|
1541
|
+
},
|
|
1427
1542
|
"format": {
|
|
1428
1543
|
"description": "Output format (text or json)",
|
|
1429
1544
|
"name": "format",
|
|
@@ -1439,7 +1554,7 @@
|
|
|
1439
1554
|
},
|
|
1440
1555
|
"hasDynamicHelp": false,
|
|
1441
1556
|
"hiddenAliases": [],
|
|
1442
|
-
"id": "
|
|
1557
|
+
"id": "review:approve",
|
|
1443
1558
|
"pluginAlias": "byterover-cli",
|
|
1444
1559
|
"pluginName": "byterover-cli",
|
|
1445
1560
|
"pluginType": "core",
|
|
@@ -1450,19 +1565,25 @@
|
|
|
1450
1565
|
"dist",
|
|
1451
1566
|
"oclif",
|
|
1452
1567
|
"commands",
|
|
1453
|
-
"
|
|
1454
|
-
"
|
|
1568
|
+
"review",
|
|
1569
|
+
"approve.js"
|
|
1455
1570
|
]
|
|
1456
1571
|
},
|
|
1457
|
-
"
|
|
1572
|
+
"review:base-review-decision": {
|
|
1458
1573
|
"aliases": [],
|
|
1459
|
-
"args": {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1574
|
+
"args": {
|
|
1575
|
+
"taskId": {
|
|
1576
|
+
"name": "taskId",
|
|
1577
|
+
"required": true
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1465
1580
|
"flags": {
|
|
1581
|
+
"file": {
|
|
1582
|
+
"name": "file",
|
|
1583
|
+
"hasDynamicHelp": false,
|
|
1584
|
+
"multiple": true,
|
|
1585
|
+
"type": "option"
|
|
1586
|
+
},
|
|
1466
1587
|
"format": {
|
|
1467
1588
|
"description": "Output format (text or json)",
|
|
1468
1589
|
"name": "format",
|
|
@@ -1478,7 +1599,7 @@
|
|
|
1478
1599
|
},
|
|
1479
1600
|
"hasDynamicHelp": false,
|
|
1480
1601
|
"hiddenAliases": [],
|
|
1481
|
-
"id": "
|
|
1602
|
+
"id": "review:base-review-decision",
|
|
1482
1603
|
"pluginAlias": "byterover-cli",
|
|
1483
1604
|
"pluginName": "byterover-cli",
|
|
1484
1605
|
"pluginType": "core",
|
|
@@ -1489,17 +1610,20 @@
|
|
|
1489
1610
|
"dist",
|
|
1490
1611
|
"oclif",
|
|
1491
1612
|
"commands",
|
|
1492
|
-
"
|
|
1493
|
-
"
|
|
1613
|
+
"review",
|
|
1614
|
+
"base-review-decision.js"
|
|
1494
1615
|
]
|
|
1495
1616
|
},
|
|
1496
|
-
"
|
|
1617
|
+
"review:pending": {
|
|
1497
1618
|
"aliases": [],
|
|
1498
1619
|
"args": {},
|
|
1499
|
-
"description": "List all
|
|
1620
|
+
"description": "List all pending review operations for the current project",
|
|
1500
1621
|
"examples": [
|
|
1501
|
-
"
|
|
1502
|
-
"<%= config.bin %>
|
|
1622
|
+
"# Show all pending reviews",
|
|
1623
|
+
"<%= config.bin %> review pending",
|
|
1624
|
+
"",
|
|
1625
|
+
"# Get structured output for agent-driven workflows",
|
|
1626
|
+
"<%= config.bin %> review pending --format json"
|
|
1503
1627
|
],
|
|
1504
1628
|
"flags": {
|
|
1505
1629
|
"format": {
|
|
@@ -1517,7 +1641,7 @@
|
|
|
1517
1641
|
},
|
|
1518
1642
|
"hasDynamicHelp": false,
|
|
1519
1643
|
"hiddenAliases": [],
|
|
1520
|
-
"id": "
|
|
1644
|
+
"id": "review:pending",
|
|
1521
1645
|
"pluginAlias": "byterover-cli",
|
|
1522
1646
|
"pluginName": "byterover-cli",
|
|
1523
1647
|
"pluginType": "core",
|
|
@@ -1528,25 +1652,39 @@
|
|
|
1528
1652
|
"dist",
|
|
1529
1653
|
"oclif",
|
|
1530
1654
|
"commands",
|
|
1531
|
-
"
|
|
1532
|
-
"
|
|
1655
|
+
"review",
|
|
1656
|
+
"pending.js"
|
|
1533
1657
|
]
|
|
1534
1658
|
},
|
|
1535
|
-
"
|
|
1659
|
+
"review:reject": {
|
|
1536
1660
|
"aliases": [],
|
|
1537
1661
|
"args": {
|
|
1538
|
-
"
|
|
1539
|
-
"description": "
|
|
1540
|
-
"name": "
|
|
1662
|
+
"taskId": {
|
|
1663
|
+
"description": "Task ID shown in the curate output (e.g. \"brv review reject abc-123\")",
|
|
1664
|
+
"name": "taskId",
|
|
1541
1665
|
"required": true
|
|
1542
1666
|
}
|
|
1543
1667
|
},
|
|
1544
|
-
"description": "
|
|
1668
|
+
"description": "Reject pending review operations for a curate task (restores files from backup)",
|
|
1545
1669
|
"examples": [
|
|
1546
|
-
"
|
|
1547
|
-
"<%= config.bin %>
|
|
1670
|
+
"# Reject all pending changes from a curate task",
|
|
1671
|
+
"<%= config.bin %> review reject abc-123",
|
|
1672
|
+
"",
|
|
1673
|
+
"# Reject specific files",
|
|
1674
|
+
"<%= config.bin %> review reject abc-123 --file architecture/security/audit.md",
|
|
1675
|
+
"<%= config.bin %> review reject abc-123 --file auth/jwt.md --file auth/oauth.md",
|
|
1676
|
+
"",
|
|
1677
|
+
"# Reject and get structured output (useful for coding agents)",
|
|
1678
|
+
"<%= config.bin %> review reject abc-123 --format json"
|
|
1548
1679
|
],
|
|
1549
1680
|
"flags": {
|
|
1681
|
+
"file": {
|
|
1682
|
+
"description": "Reject only the specified file path(s) (relative to context tree)",
|
|
1683
|
+
"name": "file",
|
|
1684
|
+
"hasDynamicHelp": false,
|
|
1685
|
+
"multiple": true,
|
|
1686
|
+
"type": "option"
|
|
1687
|
+
},
|
|
1550
1688
|
"format": {
|
|
1551
1689
|
"description": "Output format (text or json)",
|
|
1552
1690
|
"name": "format",
|
|
@@ -1562,7 +1700,7 @@
|
|
|
1562
1700
|
},
|
|
1563
1701
|
"hasDynamicHelp": false,
|
|
1564
1702
|
"hiddenAliases": [],
|
|
1565
|
-
"id": "
|
|
1703
|
+
"id": "review:reject",
|
|
1566
1704
|
"pluginAlias": "byterover-cli",
|
|
1567
1705
|
"pluginName": "byterover-cli",
|
|
1568
1706
|
"pluginType": "core",
|
|
@@ -1573,8 +1711,8 @@
|
|
|
1573
1711
|
"dist",
|
|
1574
1712
|
"oclif",
|
|
1575
1713
|
"commands",
|
|
1576
|
-
"
|
|
1577
|
-
"
|
|
1714
|
+
"review",
|
|
1715
|
+
"reject.js"
|
|
1578
1716
|
]
|
|
1579
1717
|
},
|
|
1580
1718
|
"space:list": {
|
|
@@ -1655,6 +1793,128 @@
|
|
|
1655
1793
|
"switch.js"
|
|
1656
1794
|
]
|
|
1657
1795
|
},
|
|
1796
|
+
"worktree:add": {
|
|
1797
|
+
"aliases": [],
|
|
1798
|
+
"args": {
|
|
1799
|
+
"path": {
|
|
1800
|
+
"description": "Path to the directory to register as a worktree (relative or absolute)",
|
|
1801
|
+
"name": "path",
|
|
1802
|
+
"required": false
|
|
1803
|
+
}
|
|
1804
|
+
},
|
|
1805
|
+
"description": "Register a directory as a worktree of this project",
|
|
1806
|
+
"examples": [
|
|
1807
|
+
"<%= config.bin %> <%= command.id %> packages/api",
|
|
1808
|
+
"<%= config.bin %> <%= command.id %> ../other-checkout",
|
|
1809
|
+
"<%= config.bin %> <%= command.id %> (auto-detect parent from subdirectory)"
|
|
1810
|
+
],
|
|
1811
|
+
"flags": {
|
|
1812
|
+
"force": {
|
|
1813
|
+
"description": "Replace existing .brv/ directory in target with a worktree pointer",
|
|
1814
|
+
"name": "force",
|
|
1815
|
+
"allowNo": false,
|
|
1816
|
+
"type": "boolean"
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
"hasDynamicHelp": false,
|
|
1820
|
+
"hiddenAliases": [],
|
|
1821
|
+
"id": "worktree:add",
|
|
1822
|
+
"pluginAlias": "byterover-cli",
|
|
1823
|
+
"pluginName": "byterover-cli",
|
|
1824
|
+
"pluginType": "core",
|
|
1825
|
+
"strict": true,
|
|
1826
|
+
"enableJsonFlag": false,
|
|
1827
|
+
"isESM": true,
|
|
1828
|
+
"relativePath": [
|
|
1829
|
+
"dist",
|
|
1830
|
+
"oclif",
|
|
1831
|
+
"commands",
|
|
1832
|
+
"worktree",
|
|
1833
|
+
"add.js"
|
|
1834
|
+
]
|
|
1835
|
+
},
|
|
1836
|
+
"worktree": {
|
|
1837
|
+
"aliases": [],
|
|
1838
|
+
"args": {},
|
|
1839
|
+
"description": "Manage worktree links for subdirectories and sibling checkouts",
|
|
1840
|
+
"examples": [
|
|
1841
|
+
"<%= config.bin %> <%= command.id %> --help"
|
|
1842
|
+
],
|
|
1843
|
+
"flags": {},
|
|
1844
|
+
"hasDynamicHelp": false,
|
|
1845
|
+
"hiddenAliases": [],
|
|
1846
|
+
"id": "worktree",
|
|
1847
|
+
"pluginAlias": "byterover-cli",
|
|
1848
|
+
"pluginName": "byterover-cli",
|
|
1849
|
+
"pluginType": "core",
|
|
1850
|
+
"strict": true,
|
|
1851
|
+
"enableJsonFlag": false,
|
|
1852
|
+
"isESM": true,
|
|
1853
|
+
"relativePath": [
|
|
1854
|
+
"dist",
|
|
1855
|
+
"oclif",
|
|
1856
|
+
"commands",
|
|
1857
|
+
"worktree",
|
|
1858
|
+
"index.js"
|
|
1859
|
+
]
|
|
1860
|
+
},
|
|
1861
|
+
"worktree:list": {
|
|
1862
|
+
"aliases": [],
|
|
1863
|
+
"args": {},
|
|
1864
|
+
"description": "Show the current worktree link and list all registered worktrees",
|
|
1865
|
+
"examples": [
|
|
1866
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1867
|
+
],
|
|
1868
|
+
"flags": {},
|
|
1869
|
+
"hasDynamicHelp": false,
|
|
1870
|
+
"hiddenAliases": [],
|
|
1871
|
+
"id": "worktree:list",
|
|
1872
|
+
"pluginAlias": "byterover-cli",
|
|
1873
|
+
"pluginName": "byterover-cli",
|
|
1874
|
+
"pluginType": "core",
|
|
1875
|
+
"strict": true,
|
|
1876
|
+
"enableJsonFlag": false,
|
|
1877
|
+
"isESM": true,
|
|
1878
|
+
"relativePath": [
|
|
1879
|
+
"dist",
|
|
1880
|
+
"oclif",
|
|
1881
|
+
"commands",
|
|
1882
|
+
"worktree",
|
|
1883
|
+
"list.js"
|
|
1884
|
+
]
|
|
1885
|
+
},
|
|
1886
|
+
"worktree:remove": {
|
|
1887
|
+
"aliases": [],
|
|
1888
|
+
"args": {
|
|
1889
|
+
"path": {
|
|
1890
|
+
"description": "Path to the worktree to remove (defaults to cwd)",
|
|
1891
|
+
"name": "path",
|
|
1892
|
+
"required": false
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
"description": "Remove a worktree registration and its .brv pointer",
|
|
1896
|
+
"examples": [
|
|
1897
|
+
"<%= config.bin %> <%= command.id %> (remove cwd as worktree)",
|
|
1898
|
+
"<%= config.bin %> <%= command.id %> packages/api (remove from parent)"
|
|
1899
|
+
],
|
|
1900
|
+
"flags": {},
|
|
1901
|
+
"hasDynamicHelp": false,
|
|
1902
|
+
"hiddenAliases": [],
|
|
1903
|
+
"id": "worktree:remove",
|
|
1904
|
+
"pluginAlias": "byterover-cli",
|
|
1905
|
+
"pluginName": "byterover-cli",
|
|
1906
|
+
"pluginType": "core",
|
|
1907
|
+
"strict": true,
|
|
1908
|
+
"enableJsonFlag": false,
|
|
1909
|
+
"isESM": true,
|
|
1910
|
+
"relativePath": [
|
|
1911
|
+
"dist",
|
|
1912
|
+
"oclif",
|
|
1913
|
+
"commands",
|
|
1914
|
+
"worktree",
|
|
1915
|
+
"remove.js"
|
|
1916
|
+
]
|
|
1917
|
+
},
|
|
1658
1918
|
"vc:add": {
|
|
1659
1919
|
"aliases": [],
|
|
1660
1920
|
"args": {},
|
|
@@ -2556,5 +2816,5 @@
|
|
|
2556
2816
|
]
|
|
2557
2817
|
}
|
|
2558
2818
|
},
|
|
2559
|
-
"version": "3.
|
|
2819
|
+
"version": "3.2.0"
|
|
2560
2820
|
}
|