byterover-cli 3.1.0 → 3.3.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/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 +226 -103
- 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.d.ts +1 -0
- package/dist/oclif/commands/curate/index.js +19 -4
- package/dist/oclif/commands/curate/view.js +2 -2
- package/dist/oclif/commands/main.js +13 -0
- package/dist/oclif/commands/query.d.ts +1 -0
- package/dist/oclif/commands/query.js +19 -4
- package/dist/oclif/commands/search.d.ts +20 -0
- package/dist/oclif/commands/search.js +186 -0
- 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 +45 -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 -4
- package/dist/oclif/lib/search-format.d.ts +10 -0
- package/dist/oclif/lib/search-format.js +25 -0
- package/dist/oclif/lib/task-client.d.ts +6 -0
- package/dist/oclif/lib/task-client.js +10 -3
- package/dist/server/constants.d.ts +7 -1
- package/dist/server/constants.js +10 -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/errors/task-error.d.ts +2 -2
- package/dist/server/core/domain/errors/task-error.js +5 -4
- 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 +18 -10
- package/dist/server/core/domain/transport/schemas.js +7 -3
- 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/core/interfaces/executor/i-search-executor.d.ts +34 -0
- package/dist/server/core/interfaces/executor/i-search-executor.js +1 -0
- package/dist/server/core/interfaces/executor/index.d.ts +1 -0
- package/dist/server/core/interfaces/executor/index.js +1 -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 +35 -12
- 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/executor/search-executor.d.ts +17 -0
- package/dist/server/infra/executor/search-executor.js +30 -0
- 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/pull-handler.js +3 -3
- package/dist/server/infra/transport/handlers/push-handler.js +3 -3
- 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 +76 -27
- 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/templates/skill/SKILL.md +25 -5
- 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/search-content.d.ts +28 -0
- package/dist/shared/transport/search-content.js +38 -0
- package/dist/shared/transport/types/dto.d.ts +20 -1
- 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 +28 -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/dist/tui/utils/error-messages.js +2 -2
- package/oclif.manifest.json +380 -36
- package/package.json +1 -1
|
@@ -13,8 +13,10 @@ const initialState = {
|
|
|
13
13
|
connectionState: 'disconnected',
|
|
14
14
|
error: null,
|
|
15
15
|
isConnected: false,
|
|
16
|
+
projectPath: null,
|
|
16
17
|
reconnectCount: 0,
|
|
17
18
|
version: '',
|
|
19
|
+
worktreeRoot: null,
|
|
18
20
|
};
|
|
19
21
|
export const useTransportStore = create()((set) => ({
|
|
20
22
|
...initialState,
|
|
@@ -36,5 +38,9 @@ export const useTransportStore = create()((set) => ({
|
|
|
36
38
|
error,
|
|
37
39
|
isConnected: false,
|
|
38
40
|
}),
|
|
41
|
+
setProjectInfo: (projectPath, worktreeRoot) => set({
|
|
42
|
+
projectPath: projectPath ?? null,
|
|
43
|
+
worktreeRoot: worktreeRoot ?? null,
|
|
44
|
+
}),
|
|
39
45
|
setVersion: (version) => set({ version }),
|
|
40
46
|
}));
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
const USER_FRIENDLY_MESSAGES = {
|
|
10
10
|
ERR_AGENT_NOT_INITIALIZED: "Agent failed to initialize. Run 'brv restart' to force a clean restart.",
|
|
11
11
|
ERR_CONTEXT_TREE_NOT_INIT: 'Context tree not initialized.',
|
|
12
|
+
ERR_LEGACY_SYNC_UNAVAILABLE: 'Legacy cloud sync (push/pull) is not available for this project. Use /vc init to start using version control. Learn more: https://docs.byterover.dev/git-semantic/overview',
|
|
12
13
|
ERR_LOCAL_CHANGES_EXIST: 'You have local changes. Run /push to save your changes before pulling.',
|
|
13
14
|
ERR_NOT_AUTHENTICATED: 'Not authenticated. This is required for cloud sync. Run /login to connect your account.',
|
|
14
15
|
ERR_OAUTH_REFRESH_FAILED: 'OAuth token refresh failed. Run /providers to reconnect your provider.',
|
|
15
16
|
ERR_OAUTH_TOKEN_EXPIRED: 'OAuth token has expired. Run /providers to reconnect your provider.',
|
|
16
17
|
ERR_PROJECT_NOT_INIT: "Project not initialized. Run 'brv restart' to reinitialize.",
|
|
17
18
|
ERR_PROVIDER_NOT_CONFIGURED: 'No provider connected. Run /providers connect byterover to use the free built-in provider, or connect another provider.',
|
|
18
|
-
ERR_SPACE_NOT_CONFIGURED: 'No space configured. Run /space switch to select a space first.',
|
|
19
19
|
ERR_SPACE_NOT_FOUND: 'Space not found. Check your configuration.',
|
|
20
20
|
ERR_VC_AUTH_FAILED: 'Authentication failed. Run /login.',
|
|
21
21
|
ERR_VC_BRANCH_ALREADY_EXISTS: 'Branch already exists.',
|
|
22
22
|
ERR_VC_CANNOT_DELETE_CURRENT_BRANCH: 'Cannot delete the currently checked-out branch.',
|
|
23
23
|
ERR_VC_CONFIG_KEY_NOT_SET: 'Config key is not set.',
|
|
24
24
|
ERR_VC_CONFLICT_MARKERS_PRESENT: 'Conflict markers detected. Run /vc conflicts to view them. Resolve conflicts and run /vc add before pushing.',
|
|
25
|
-
ERR_VC_GIT_INITIALIZED: 'ByteRover version control is active. Use /vc commands instead of legacy sync commands.',
|
|
25
|
+
ERR_VC_GIT_INITIALIZED: 'ByteRover version control is active. Use /vc commands instead of legacy sync commands. Learn more: https://docs.byterover.dev/git-semantic/overview',
|
|
26
26
|
ERR_VC_GIT_NOT_INITIALIZED: 'ByteRover version control not initialized. Run /vc init first.',
|
|
27
27
|
ERR_VC_INVALID_ACTION: 'Invalid action.',
|
|
28
28
|
// ERR_VC_INVALID_BRANCH_NAME intentionally omitted: fall through to server's message with actual branch name
|
package/oclif.manifest.json
CHANGED
|
@@ -416,6 +416,14 @@
|
|
|
416
416
|
"json"
|
|
417
417
|
],
|
|
418
418
|
"type": "option"
|
|
419
|
+
},
|
|
420
|
+
"timeout": {
|
|
421
|
+
"description": "Maximum seconds to wait for task completion",
|
|
422
|
+
"name": "timeout",
|
|
423
|
+
"default": 300,
|
|
424
|
+
"hasDynamicHelp": false,
|
|
425
|
+
"multiple": false,
|
|
426
|
+
"type": "option"
|
|
419
427
|
}
|
|
420
428
|
},
|
|
421
429
|
"hasDynamicHelp": false,
|
|
@@ -465,6 +473,71 @@
|
|
|
465
473
|
"restart.js"
|
|
466
474
|
]
|
|
467
475
|
},
|
|
476
|
+
"search": {
|
|
477
|
+
"aliases": [],
|
|
478
|
+
"args": {
|
|
479
|
+
"query": {
|
|
480
|
+
"description": "Search query to find relevant knowledge in the context tree",
|
|
481
|
+
"name": "query",
|
|
482
|
+
"required": true
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"description": "Search the context tree for relevant knowledge\n\nReturns ranked results with paths, scores, and excerpts.\nPure BM25 retrieval — no LLM, no token cost.\n\nUse this for structured results with file paths.\nUse \"brv query\" when you need a synthesized answer.",
|
|
486
|
+
"examples": [
|
|
487
|
+
"# Search for knowledge about authentication",
|
|
488
|
+
"<%= config.bin %> <%= command.id %> \"authentication\"",
|
|
489
|
+
"",
|
|
490
|
+
"# Limit results and scope to a domain",
|
|
491
|
+
"<%= config.bin %> <%= command.id %> \"JWT tokens\" --limit 5 --scope auth/",
|
|
492
|
+
"",
|
|
493
|
+
"# JSON output (for automation)",
|
|
494
|
+
"<%= config.bin %> <%= command.id %> \"auth\" --format json"
|
|
495
|
+
],
|
|
496
|
+
"flags": {
|
|
497
|
+
"format": {
|
|
498
|
+
"description": "Output format (text or json)",
|
|
499
|
+
"name": "format",
|
|
500
|
+
"default": "text",
|
|
501
|
+
"hasDynamicHelp": false,
|
|
502
|
+
"multiple": false,
|
|
503
|
+
"options": [
|
|
504
|
+
"text",
|
|
505
|
+
"json"
|
|
506
|
+
],
|
|
507
|
+
"type": "option"
|
|
508
|
+
},
|
|
509
|
+
"limit": {
|
|
510
|
+
"description": "Maximum number of results (1-50)",
|
|
511
|
+
"name": "limit",
|
|
512
|
+
"default": 10,
|
|
513
|
+
"hasDynamicHelp": false,
|
|
514
|
+
"multiple": false,
|
|
515
|
+
"type": "option"
|
|
516
|
+
},
|
|
517
|
+
"scope": {
|
|
518
|
+
"description": "Path prefix to scope results (e.g. \"auth/\" for auth domain only)",
|
|
519
|
+
"name": "scope",
|
|
520
|
+
"hasDynamicHelp": false,
|
|
521
|
+
"multiple": false,
|
|
522
|
+
"type": "option"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"hasDynamicHelp": false,
|
|
526
|
+
"hiddenAliases": [],
|
|
527
|
+
"id": "search",
|
|
528
|
+
"pluginAlias": "byterover-cli",
|
|
529
|
+
"pluginName": "byterover-cli",
|
|
530
|
+
"pluginType": "core",
|
|
531
|
+
"strict": false,
|
|
532
|
+
"enableJsonFlag": false,
|
|
533
|
+
"isESM": true,
|
|
534
|
+
"relativePath": [
|
|
535
|
+
"dist",
|
|
536
|
+
"oclif",
|
|
537
|
+
"commands",
|
|
538
|
+
"search.js"
|
|
539
|
+
]
|
|
540
|
+
},
|
|
468
541
|
"status": {
|
|
469
542
|
"aliases": [],
|
|
470
543
|
"args": {},
|
|
@@ -486,6 +559,21 @@
|
|
|
486
559
|
"json"
|
|
487
560
|
],
|
|
488
561
|
"type": "option"
|
|
562
|
+
},
|
|
563
|
+
"project-root": {
|
|
564
|
+
"description": "Explicit project root path (overrides auto-detection)",
|
|
565
|
+
"name": "project-root",
|
|
566
|
+
"required": false,
|
|
567
|
+
"hasDynamicHelp": false,
|
|
568
|
+
"multiple": false,
|
|
569
|
+
"type": "option"
|
|
570
|
+
},
|
|
571
|
+
"verbose": {
|
|
572
|
+
"char": "v",
|
|
573
|
+
"description": "Show resolution source and diagnostic info",
|
|
574
|
+
"name": "verbose",
|
|
575
|
+
"allowNo": false,
|
|
576
|
+
"type": "boolean"
|
|
489
577
|
}
|
|
490
578
|
},
|
|
491
579
|
"hasDynamicHelp": false,
|
|
@@ -668,6 +756,9 @@
|
|
|
668
756
|
"# Folder pack with context",
|
|
669
757
|
"<%= config.bin %> <%= command.id %> \"Analyze authentication module\" -d src/auth/",
|
|
670
758
|
"",
|
|
759
|
+
"# Increase timeout for slow models (in seconds)",
|
|
760
|
+
"<%= config.bin %> <%= command.id %> \"context here\" --timeout 600",
|
|
761
|
+
"",
|
|
671
762
|
"# View curate history",
|
|
672
763
|
"<%= config.bin %> curate view",
|
|
673
764
|
"<%= config.bin %> curate view --status completed --since 1h"
|
|
@@ -706,6 +797,14 @@
|
|
|
706
797
|
"json"
|
|
707
798
|
],
|
|
708
799
|
"type": "option"
|
|
800
|
+
},
|
|
801
|
+
"timeout": {
|
|
802
|
+
"description": "Maximum seconds to wait for task completion",
|
|
803
|
+
"name": "timeout",
|
|
804
|
+
"default": 300,
|
|
805
|
+
"hasDynamicHelp": false,
|
|
806
|
+
"multiple": false,
|
|
807
|
+
"type": "option"
|
|
709
808
|
}
|
|
710
809
|
},
|
|
711
810
|
"hasDynamicHelp": false,
|
|
@@ -1322,6 +1421,84 @@
|
|
|
1322
1421
|
"reject.js"
|
|
1323
1422
|
]
|
|
1324
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
|
+
},
|
|
1325
1502
|
"providers:connect": {
|
|
1326
1503
|
"aliases": [],
|
|
1327
1504
|
"args": {
|
|
@@ -1577,31 +1754,33 @@
|
|
|
1577
1754
|
"switch.js"
|
|
1578
1755
|
]
|
|
1579
1756
|
},
|
|
1580
|
-
"
|
|
1757
|
+
"source:add": {
|
|
1581
1758
|
"aliases": [],
|
|
1582
|
-
"args": {
|
|
1583
|
-
|
|
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",
|
|
1584
1767
|
"examples": [
|
|
1585
|
-
"<%= config.bin %>
|
|
1768
|
+
"<%= config.bin %> <%= command.id %> /path/to/shared-lib",
|
|
1769
|
+
"<%= config.bin %> <%= command.id %> /path/to/shared-lib --alias shared"
|
|
1586
1770
|
],
|
|
1587
1771
|
"flags": {
|
|
1588
|
-
"
|
|
1589
|
-
"
|
|
1590
|
-
"
|
|
1591
|
-
"
|
|
1592
|
-
"default": "text",
|
|
1772
|
+
"alias": {
|
|
1773
|
+
"description": "Custom alias for the source (defaults to directory name)",
|
|
1774
|
+
"name": "alias",
|
|
1775
|
+
"required": false,
|
|
1593
1776
|
"hasDynamicHelp": false,
|
|
1594
1777
|
"multiple": false,
|
|
1595
|
-
"options": [
|
|
1596
|
-
"text",
|
|
1597
|
-
"json"
|
|
1598
|
-
],
|
|
1599
1778
|
"type": "option"
|
|
1600
1779
|
}
|
|
1601
1780
|
},
|
|
1602
1781
|
"hasDynamicHelp": false,
|
|
1603
1782
|
"hiddenAliases": [],
|
|
1604
|
-
"id": "
|
|
1783
|
+
"id": "source:add",
|
|
1605
1784
|
"pluginAlias": "byterover-cli",
|
|
1606
1785
|
"pluginName": "byterover-cli",
|
|
1607
1786
|
"pluginType": "core",
|
|
@@ -1612,35 +1791,78 @@
|
|
|
1612
1791
|
"dist",
|
|
1613
1792
|
"oclif",
|
|
1614
1793
|
"commands",
|
|
1615
|
-
"
|
|
1616
|
-
"
|
|
1794
|
+
"source",
|
|
1795
|
+
"add.js"
|
|
1617
1796
|
]
|
|
1618
1797
|
},
|
|
1619
|
-
"
|
|
1798
|
+
"source": {
|
|
1620
1799
|
"aliases": [],
|
|
1621
1800
|
"args": {},
|
|
1622
|
-
"description": "
|
|
1801
|
+
"description": "Manage knowledge sources (read-only references to other projects)",
|
|
1623
1802
|
"examples": [
|
|
1624
|
-
"<%= config.bin %>
|
|
1803
|
+
"<%= config.bin %> <%= command.id %> --help"
|
|
1625
1804
|
],
|
|
1626
|
-
"flags": {
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1805
|
+
"flags": {},
|
|
1806
|
+
"hasDynamicHelp": false,
|
|
1807
|
+
"hiddenAliases": [],
|
|
1808
|
+
"id": "source",
|
|
1809
|
+
"pluginAlias": "byterover-cli",
|
|
1810
|
+
"pluginName": "byterover-cli",
|
|
1811
|
+
"pluginType": "core",
|
|
1812
|
+
"strict": true,
|
|
1813
|
+
"enableJsonFlag": false,
|
|
1814
|
+
"isESM": true,
|
|
1815
|
+
"relativePath": [
|
|
1816
|
+
"dist",
|
|
1817
|
+
"oclif",
|
|
1818
|
+
"commands",
|
|
1819
|
+
"source",
|
|
1820
|
+
"index.js"
|
|
1821
|
+
]
|
|
1822
|
+
},
|
|
1823
|
+
"source:list": {
|
|
1824
|
+
"aliases": [],
|
|
1825
|
+
"args": {},
|
|
1826
|
+
"description": "List all knowledge sources and their status",
|
|
1827
|
+
"examples": [
|
|
1828
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1829
|
+
],
|
|
1830
|
+
"flags": {},
|
|
1831
|
+
"hasDynamicHelp": false,
|
|
1832
|
+
"hiddenAliases": [],
|
|
1833
|
+
"id": "source:list",
|
|
1834
|
+
"pluginAlias": "byterover-cli",
|
|
1835
|
+
"pluginName": "byterover-cli",
|
|
1836
|
+
"pluginType": "core",
|
|
1837
|
+
"strict": true,
|
|
1838
|
+
"enableJsonFlag": false,
|
|
1839
|
+
"isESM": true,
|
|
1840
|
+
"relativePath": [
|
|
1841
|
+
"dist",
|
|
1842
|
+
"oclif",
|
|
1843
|
+
"commands",
|
|
1844
|
+
"source",
|
|
1845
|
+
"list.js"
|
|
1846
|
+
]
|
|
1847
|
+
},
|
|
1848
|
+
"source:remove": {
|
|
1849
|
+
"aliases": [],
|
|
1850
|
+
"args": {
|
|
1851
|
+
"aliasOrPath": {
|
|
1852
|
+
"description": "Alias or path of the knowledge source to remove",
|
|
1853
|
+
"name": "aliasOrPath",
|
|
1854
|
+
"required": true
|
|
1639
1855
|
}
|
|
1640
1856
|
},
|
|
1857
|
+
"description": "Remove a knowledge source",
|
|
1858
|
+
"examples": [
|
|
1859
|
+
"<%= config.bin %> <%= command.id %> shared-lib",
|
|
1860
|
+
"<%= config.bin %> <%= command.id %> /path/to/shared-lib"
|
|
1861
|
+
],
|
|
1862
|
+
"flags": {},
|
|
1641
1863
|
"hasDynamicHelp": false,
|
|
1642
1864
|
"hiddenAliases": [],
|
|
1643
|
-
"id": "
|
|
1865
|
+
"id": "source:remove",
|
|
1644
1866
|
"pluginAlias": "byterover-cli",
|
|
1645
1867
|
"pluginName": "byterover-cli",
|
|
1646
1868
|
"pluginType": "core",
|
|
@@ -1651,8 +1873,8 @@
|
|
|
1651
1873
|
"dist",
|
|
1652
1874
|
"oclif",
|
|
1653
1875
|
"commands",
|
|
1654
|
-
"
|
|
1655
|
-
"
|
|
1876
|
+
"source",
|
|
1877
|
+
"remove.js"
|
|
1656
1878
|
]
|
|
1657
1879
|
},
|
|
1658
1880
|
"vc:add": {
|
|
@@ -2257,6 +2479,128 @@
|
|
|
2257
2479
|
"status.js"
|
|
2258
2480
|
]
|
|
2259
2481
|
},
|
|
2482
|
+
"worktree:add": {
|
|
2483
|
+
"aliases": [],
|
|
2484
|
+
"args": {
|
|
2485
|
+
"path": {
|
|
2486
|
+
"description": "Path to the directory to register as a worktree (relative or absolute)",
|
|
2487
|
+
"name": "path",
|
|
2488
|
+
"required": false
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
2491
|
+
"description": "Register a directory as a worktree of this project",
|
|
2492
|
+
"examples": [
|
|
2493
|
+
"<%= config.bin %> <%= command.id %> packages/api",
|
|
2494
|
+
"<%= config.bin %> <%= command.id %> ../other-checkout",
|
|
2495
|
+
"<%= config.bin %> <%= command.id %> (auto-detect parent from subdirectory)"
|
|
2496
|
+
],
|
|
2497
|
+
"flags": {
|
|
2498
|
+
"force": {
|
|
2499
|
+
"description": "Replace existing .brv/ directory in target with a worktree pointer",
|
|
2500
|
+
"name": "force",
|
|
2501
|
+
"allowNo": false,
|
|
2502
|
+
"type": "boolean"
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
"hasDynamicHelp": false,
|
|
2506
|
+
"hiddenAliases": [],
|
|
2507
|
+
"id": "worktree:add",
|
|
2508
|
+
"pluginAlias": "byterover-cli",
|
|
2509
|
+
"pluginName": "byterover-cli",
|
|
2510
|
+
"pluginType": "core",
|
|
2511
|
+
"strict": true,
|
|
2512
|
+
"enableJsonFlag": false,
|
|
2513
|
+
"isESM": true,
|
|
2514
|
+
"relativePath": [
|
|
2515
|
+
"dist",
|
|
2516
|
+
"oclif",
|
|
2517
|
+
"commands",
|
|
2518
|
+
"worktree",
|
|
2519
|
+
"add.js"
|
|
2520
|
+
]
|
|
2521
|
+
},
|
|
2522
|
+
"worktree": {
|
|
2523
|
+
"aliases": [],
|
|
2524
|
+
"args": {},
|
|
2525
|
+
"description": "Manage worktree links for subdirectories and sibling checkouts",
|
|
2526
|
+
"examples": [
|
|
2527
|
+
"<%= config.bin %> <%= command.id %> --help"
|
|
2528
|
+
],
|
|
2529
|
+
"flags": {},
|
|
2530
|
+
"hasDynamicHelp": false,
|
|
2531
|
+
"hiddenAliases": [],
|
|
2532
|
+
"id": "worktree",
|
|
2533
|
+
"pluginAlias": "byterover-cli",
|
|
2534
|
+
"pluginName": "byterover-cli",
|
|
2535
|
+
"pluginType": "core",
|
|
2536
|
+
"strict": true,
|
|
2537
|
+
"enableJsonFlag": false,
|
|
2538
|
+
"isESM": true,
|
|
2539
|
+
"relativePath": [
|
|
2540
|
+
"dist",
|
|
2541
|
+
"oclif",
|
|
2542
|
+
"commands",
|
|
2543
|
+
"worktree",
|
|
2544
|
+
"index.js"
|
|
2545
|
+
]
|
|
2546
|
+
},
|
|
2547
|
+
"worktree:list": {
|
|
2548
|
+
"aliases": [],
|
|
2549
|
+
"args": {},
|
|
2550
|
+
"description": "Show the current worktree link and list all registered worktrees",
|
|
2551
|
+
"examples": [
|
|
2552
|
+
"<%= config.bin %> <%= command.id %>"
|
|
2553
|
+
],
|
|
2554
|
+
"flags": {},
|
|
2555
|
+
"hasDynamicHelp": false,
|
|
2556
|
+
"hiddenAliases": [],
|
|
2557
|
+
"id": "worktree:list",
|
|
2558
|
+
"pluginAlias": "byterover-cli",
|
|
2559
|
+
"pluginName": "byterover-cli",
|
|
2560
|
+
"pluginType": "core",
|
|
2561
|
+
"strict": true,
|
|
2562
|
+
"enableJsonFlag": false,
|
|
2563
|
+
"isESM": true,
|
|
2564
|
+
"relativePath": [
|
|
2565
|
+
"dist",
|
|
2566
|
+
"oclif",
|
|
2567
|
+
"commands",
|
|
2568
|
+
"worktree",
|
|
2569
|
+
"list.js"
|
|
2570
|
+
]
|
|
2571
|
+
},
|
|
2572
|
+
"worktree:remove": {
|
|
2573
|
+
"aliases": [],
|
|
2574
|
+
"args": {
|
|
2575
|
+
"path": {
|
|
2576
|
+
"description": "Path to the worktree to remove (defaults to cwd)",
|
|
2577
|
+
"name": "path",
|
|
2578
|
+
"required": false
|
|
2579
|
+
}
|
|
2580
|
+
},
|
|
2581
|
+
"description": "Remove a worktree registration and its .brv pointer",
|
|
2582
|
+
"examples": [
|
|
2583
|
+
"<%= config.bin %> <%= command.id %> (remove cwd as worktree)",
|
|
2584
|
+
"<%= config.bin %> <%= command.id %> packages/api (remove from parent)"
|
|
2585
|
+
],
|
|
2586
|
+
"flags": {},
|
|
2587
|
+
"hasDynamicHelp": false,
|
|
2588
|
+
"hiddenAliases": [],
|
|
2589
|
+
"id": "worktree:remove",
|
|
2590
|
+
"pluginAlias": "byterover-cli",
|
|
2591
|
+
"pluginName": "byterover-cli",
|
|
2592
|
+
"pluginType": "core",
|
|
2593
|
+
"strict": true,
|
|
2594
|
+
"enableJsonFlag": false,
|
|
2595
|
+
"isESM": true,
|
|
2596
|
+
"relativePath": [
|
|
2597
|
+
"dist",
|
|
2598
|
+
"oclif",
|
|
2599
|
+
"commands",
|
|
2600
|
+
"worktree",
|
|
2601
|
+
"remove.js"
|
|
2602
|
+
]
|
|
2603
|
+
},
|
|
2260
2604
|
"hub:registry:add": {
|
|
2261
2605
|
"aliases": [],
|
|
2262
2606
|
"args": {
|
|
@@ -2556,5 +2900,5 @@
|
|
|
2556
2900
|
]
|
|
2557
2901
|
}
|
|
2558
2902
|
},
|
|
2559
|
-
"version": "3.
|
|
2903
|
+
"version": "3.3.0"
|
|
2560
2904
|
}
|