byterover-cli 1.2.0 → 1.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 +87 -9
- package/dist/constants.d.ts +0 -5
- package/dist/constants.js +0 -5
- package/dist/core/domain/cipher/agent/agent-info.d.ts +17 -17
- package/dist/core/domain/cipher/llm/schemas.d.ts +14 -14
- package/dist/core/domain/cipher/session/session-metadata.d.ts +2 -2
- package/dist/core/domain/entities/agent.js +6 -6
- package/dist/core/domain/entities/connector-type.d.ts +2 -1
- package/dist/core/domain/entities/connector-type.js +2 -1
- package/dist/core/domain/transport/schemas.d.ts +66 -66
- package/dist/core/interfaces/cipher/i-chat-session.d.ts +3 -1
- package/dist/core/interfaces/connectors/i-connector.d.ts +2 -2
- package/dist/core/interfaces/i-file-service.d.ts +7 -0
- package/dist/infra/auth/oauth-service.d.ts +15 -0
- package/dist/infra/auth/oauth-service.js +38 -2
- package/dist/infra/cipher/agent/agent-schemas.d.ts +42 -42
- package/dist/infra/cipher/llm/context/context-manager.js +7 -9
- package/dist/infra/cipher/llm/internal-llm-service.d.ts +5 -1
- package/dist/infra/cipher/llm/internal-llm-service.js +57 -46
- package/dist/infra/cipher/session/chat-session.d.ts +3 -1
- package/dist/infra/cipher/session/chat-session.js +5 -3
- package/dist/infra/cipher/system-prompt/contributor-schemas.d.ts +8 -8
- package/dist/infra/cipher/system-prompt/schemas.d.ts +5 -5
- package/dist/infra/cipher/tools/implementations/task-tool.js +3 -3
- package/dist/infra/connectors/connector-manager.js +2 -0
- package/dist/infra/connectors/hook/hook-connector.d.ts +1 -1
- package/dist/infra/connectors/hook/hook-connector.js +3 -3
- package/dist/infra/connectors/mcp/mcp-connector.d.ts +1 -1
- package/dist/infra/connectors/mcp/mcp-connector.js +4 -4
- package/dist/infra/connectors/rules/rules-connector.d.ts +1 -1
- package/dist/infra/connectors/rules/rules-connector.js +4 -4
- package/dist/infra/connectors/shared/template-service.js +4 -0
- package/dist/infra/connectors/skill/index.d.ts +1 -0
- package/dist/infra/connectors/skill/index.js +1 -0
- package/dist/infra/connectors/skill/skill-connector-config.d.ts +45 -0
- package/dist/infra/connectors/skill/skill-connector-config.js +26 -0
- package/dist/infra/connectors/skill/skill-connector.d.ts +39 -0
- package/dist/infra/connectors/skill/skill-connector.js +160 -0
- package/dist/infra/connectors/skill/skill-content-loader.d.ts +18 -0
- package/dist/infra/connectors/skill/skill-content-loader.js +33 -0
- package/dist/infra/file/fs-file-service.d.ts +7 -0
- package/dist/infra/file/fs-file-service.js +15 -1
- package/dist/infra/mcp/tools/task-result-waiter.js +8 -0
- package/dist/infra/process/agent-worker.js +30 -14
- package/dist/infra/process/task-queue-manager.d.ts +23 -34
- package/dist/infra/process/task-queue-manager.js +57 -118
- package/dist/infra/process/transport-handlers.js +1 -7
- package/dist/infra/repl/commands/connectors-command.js +1 -1
- package/dist/infra/transport/socket-io-transport-client.d.ts +9 -0
- package/dist/infra/transport/socket-io-transport-client.js +21 -2
- package/dist/infra/usecase/connectors-use-case.js +8 -2
- package/dist/infra/usecase/init-use-case.js +1 -1
- package/dist/infra/usecase/reset-use-case.d.ts +1 -0
- package/dist/infra/usecase/reset-use-case.js +4 -1
- package/dist/{commands → oclif/commands}/curate.d.ts +1 -1
- package/dist/{commands → oclif/commands}/curate.js +6 -6
- package/dist/{commands → oclif/commands}/hook-prompt-submit.d.ts +1 -1
- package/dist/{commands → oclif/commands}/hook-prompt-submit.js +3 -3
- package/dist/{commands → oclif/commands}/main.js +10 -10
- package/dist/{commands → oclif/commands}/mcp.js +2 -2
- package/dist/{commands → oclif/commands}/query.d.ts +1 -1
- package/dist/{commands → oclif/commands}/query.js +6 -6
- package/dist/{commands → oclif/commands}/status.d.ts +1 -1
- package/dist/{commands → oclif/commands}/status.js +8 -8
- package/dist/{commands → oclif/commands}/watch.d.ts +3 -3
- package/dist/{commands → oclif/commands}/watch.js +6 -6
- package/dist/oclif/constants.d.ts +11 -0
- package/dist/oclif/constants.js +11 -0
- package/dist/{hooks → oclif/hooks}/prerun/validate-brv-config-version.d.ts +1 -1
- package/dist/{hooks → oclif/hooks}/prerun/validate-brv-config-version.js +2 -2
- package/dist/templates/sections/command-reference.md +5 -96
- package/dist/templates/sections/workflow.md +21 -16
- package/dist/templates/skill/SKILL.md +91 -0
- package/dist/templates/skill/TROUBLESHOOTING.md +50 -0
- package/dist/templates/skill/WORKFLOWS.md +229 -0
- package/dist/utils/type-guards.d.ts +11 -0
- package/dist/utils/type-guards.js +13 -0
- package/oclif.manifest.json +8 -1
- package/package.json +9 -9
- package/dist/infra/process/constants.d.ts +0 -1
- package/dist/infra/process/constants.js +0 -1
- /package/dist/{commands → oclif/commands}/main.d.ts +0 -0
- /package/dist/{commands → oclif/commands}/mcp.d.ts +0 -0
- /package/dist/{hooks → oclif/hooks}/command_not_found/handle-invalid-commands.d.ts +0 -0
- /package/dist/{hooks → oclif/hooks}/command_not_found/handle-invalid-commands.js +0 -0
- /package/dist/{hooks → oclif/hooks}/error/clean-errors.d.ts +0 -0
- /package/dist/{hooks → oclif/hooks}/error/clean-errors.js +0 -0
- /package/dist/{hooks → oclif/hooks}/init/update-notifier.d.ts +0 -0
- /package/dist/{hooks → oclif/hooks}/init/update-notifier.js +0 -0
- /package/dist/{hooks → oclif/hooks}/init/welcome.d.ts +0 -0
- /package/dist/{hooks → oclif/hooks}/init/welcome.js +0 -0
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import type { TaskType } from '../core/domain/transport/schemas.js';
|
|
1
2
|
/**
|
|
2
3
|
* Type guard to check if value is a non-null object (Record).
|
|
3
4
|
* Useful for safely narrowing unknown values before accessing properties.
|
|
4
5
|
*/
|
|
5
6
|
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Type guard for valid task types.
|
|
9
|
+
* Uses TaskTypeSchema as the single source of truth.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* if (isValidTaskType(data.type)) {
|
|
13
|
+
* // data.type is narrowed to TaskType
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export declare function isValidTaskType(value: string): value is TaskType;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TaskTypeSchema } from '../core/domain/transport/schemas.js';
|
|
1
2
|
/**
|
|
2
3
|
* Type guard to check if value is a non-null object (Record).
|
|
3
4
|
* Useful for safely narrowing unknown values before accessing properties.
|
|
@@ -5,3 +6,15 @@
|
|
|
5
6
|
export function isRecord(value) {
|
|
6
7
|
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
7
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Type guard for valid task types.
|
|
11
|
+
* Uses TaskTypeSchema as the single source of truth.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* if (isValidTaskType(data.type)) {
|
|
15
|
+
* // data.type is narrowed to TaskType
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export function isValidTaskType(value) {
|
|
19
|
+
return TaskTypeSchema.safeParse(value).success;
|
|
20
|
+
}
|
package/oclif.manifest.json
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"isESM": true,
|
|
42
42
|
"relativePath": [
|
|
43
43
|
"dist",
|
|
44
|
+
"oclif",
|
|
44
45
|
"commands",
|
|
45
46
|
"curate.js"
|
|
46
47
|
]
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
"isESM": true,
|
|
63
64
|
"relativePath": [
|
|
64
65
|
"dist",
|
|
66
|
+
"oclif",
|
|
65
67
|
"commands",
|
|
66
68
|
"hook-prompt-submit.js"
|
|
67
69
|
]
|
|
@@ -83,6 +85,7 @@
|
|
|
83
85
|
"isESM": true,
|
|
84
86
|
"relativePath": [
|
|
85
87
|
"dist",
|
|
88
|
+
"oclif",
|
|
86
89
|
"commands",
|
|
87
90
|
"main.js"
|
|
88
91
|
]
|
|
@@ -108,6 +111,7 @@
|
|
|
108
111
|
"isESM": true,
|
|
109
112
|
"relativePath": [
|
|
110
113
|
"dist",
|
|
114
|
+
"oclif",
|
|
111
115
|
"commands",
|
|
112
116
|
"mcp.js"
|
|
113
117
|
]
|
|
@@ -139,6 +143,7 @@
|
|
|
139
143
|
"isESM": true,
|
|
140
144
|
"relativePath": [
|
|
141
145
|
"dist",
|
|
146
|
+
"oclif",
|
|
142
147
|
"commands",
|
|
143
148
|
"query.js"
|
|
144
149
|
]
|
|
@@ -192,6 +197,7 @@
|
|
|
192
197
|
"isESM": true,
|
|
193
198
|
"relativePath": [
|
|
194
199
|
"dist",
|
|
200
|
+
"oclif",
|
|
195
201
|
"commands",
|
|
196
202
|
"status.js"
|
|
197
203
|
]
|
|
@@ -244,10 +250,11 @@
|
|
|
244
250
|
"isESM": true,
|
|
245
251
|
"relativePath": [
|
|
246
252
|
"dist",
|
|
253
|
+
"oclif",
|
|
247
254
|
"commands",
|
|
248
255
|
"watch.js"
|
|
249
256
|
]
|
|
250
257
|
}
|
|
251
258
|
},
|
|
252
|
-
"version": "1.
|
|
259
|
+
"version": "1.3.0"
|
|
253
260
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "byterover-cli",
|
|
3
3
|
"description": "ByteRover's CLI",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"author": "ByteRover",
|
|
6
6
|
"bin": {
|
|
7
7
|
"brv": "./bin/run.js"
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
"@oclif/core": "^4",
|
|
18
18
|
"@oclif/plugin-help": "^6",
|
|
19
19
|
"@socket.io/admin-ui": "^0.5.1",
|
|
20
|
-
"@types/mdast": "^4.0.4",
|
|
21
|
-
"@types/update-notifier": "^6.0.8",
|
|
22
20
|
"axios": "^1.12.2",
|
|
23
21
|
"better-sqlite3": "^11.5.0",
|
|
24
22
|
"chalk": "^5.6.2",
|
|
@@ -61,11 +59,13 @@
|
|
|
61
59
|
"@types/express": "^5.0.3",
|
|
62
60
|
"@types/js-yaml": "^4.0.9",
|
|
63
61
|
"@types/lodash-es": "^4.17.12",
|
|
62
|
+
"@types/mdast": "^4.0.4",
|
|
64
63
|
"@types/mocha": "^10",
|
|
65
64
|
"@types/node": "^20",
|
|
66
65
|
"@types/react": "^19.2.7",
|
|
67
66
|
"@types/sinon": "^17.0.4",
|
|
68
67
|
"@types/stopword": "^2.0.3",
|
|
68
|
+
"@types/update-notifier": "^6.0.8",
|
|
69
69
|
"chai": "^4",
|
|
70
70
|
"eslint": "^9",
|
|
71
71
|
"eslint-config-oclif": "^6",
|
|
@@ -97,15 +97,15 @@
|
|
|
97
97
|
"oclif": {
|
|
98
98
|
"bin": "brv",
|
|
99
99
|
"dirname": "brv",
|
|
100
|
-
"commands": "./dist/commands",
|
|
100
|
+
"commands": "./dist/oclif/commands",
|
|
101
101
|
"hooks": {
|
|
102
102
|
"init": [
|
|
103
|
-
"./dist/hooks/init/welcome",
|
|
104
|
-
"./dist/hooks/init/update-notifier"
|
|
103
|
+
"./dist/oclif/hooks/init/welcome",
|
|
104
|
+
"./dist/oclif/hooks/init/update-notifier"
|
|
105
105
|
],
|
|
106
|
-
"command_not_found": "./dist/hooks/command_not_found/handle-invalid-commands",
|
|
107
|
-
"error": "./dist/hooks/error/clean-errors",
|
|
108
|
-
"prerun": "./dist/hooks/prerun/validate-brv-config-version"
|
|
106
|
+
"command_not_found": "./dist/oclif/hooks/command_not_found/handle-invalid-commands",
|
|
107
|
+
"error": "./dist/oclif/hooks/error/clean-errors",
|
|
108
|
+
"prerun": "./dist/oclif/hooks/prerun/validate-brv-config-version"
|
|
109
109
|
},
|
|
110
110
|
"plugins": [
|
|
111
111
|
"@oclif/plugin-help"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CURATE_MAX_CONCURRENT = 3;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const CURATE_MAX_CONCURRENT = 3;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|