byterover-cli 3.6.1 → 3.7.1
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 +1 -1
- package/dist/agent/core/interfaces/cipher-services.d.ts +7 -0
- package/dist/agent/infra/agent/cipher-agent.js +4 -2
- package/dist/agent/infra/agent/service-initializer.js +28 -14
- package/dist/agent/infra/sandbox/curate-service.d.ts +4 -2
- package/dist/agent/infra/sandbox/curate-service.js +6 -4
- package/dist/agent/infra/tools/implementations/curate-tool.d.ts +4 -2
- package/dist/agent/infra/tools/implementations/curate-tool.js +169 -25
- package/dist/agent/infra/tools/implementations/expand-knowledge-tool.d.ts +2 -0
- package/dist/agent/infra/tools/implementations/expand-knowledge-tool.js +1 -1
- package/dist/agent/infra/tools/implementations/memory-symbol-tree.d.ts +0 -8
- package/dist/agent/infra/tools/implementations/memory-symbol-tree.js +3 -15
- package/dist/agent/infra/tools/implementations/search-knowledge-service.d.ts +49 -4
- package/dist/agent/infra/tools/implementations/search-knowledge-service.js +123 -53
- package/dist/agent/infra/tools/implementations/search-knowledge-tool.d.ts +2 -0
- package/dist/agent/infra/tools/tool-provider.js +1 -0
- package/dist/agent/infra/tools/tool-registry.d.ts +7 -0
- package/dist/agent/infra/tools/tool-registry.js +13 -6
- package/dist/oclif/commands/dream.d.ts +4 -0
- package/dist/oclif/commands/dream.js +31 -13
- package/dist/server/constants.d.ts +1 -1
- package/dist/server/constants.js +20 -1
- package/dist/server/core/domain/knowledge/markdown-writer.d.ts +12 -42
- package/dist/server/core/domain/knowledge/markdown-writer.js +55 -96
- package/dist/server/core/domain/knowledge/memory-scoring.d.ts +18 -37
- package/dist/server/core/domain/knowledge/memory-scoring.js +36 -85
- package/dist/server/core/domain/knowledge/runtime-signals-schema.d.ts +59 -0
- package/dist/server/core/domain/knowledge/runtime-signals-schema.js +46 -0
- package/dist/server/core/domain/knowledge/sidecar-logging.d.ts +14 -0
- package/dist/server/core/domain/knowledge/sidecar-logging.js +18 -0
- package/dist/server/core/interfaces/storage/i-runtime-signal-store.d.ts +111 -0
- package/dist/server/core/interfaces/storage/i-runtime-signal-store.js +38 -0
- package/dist/server/infra/context-tree/file-context-tree-archive-service.d.ts +16 -6
- package/dist/server/infra/context-tree/file-context-tree-archive-service.js +91 -32
- package/dist/server/infra/context-tree/file-context-tree-manifest-service.d.ts +14 -0
- package/dist/server/infra/context-tree/file-context-tree-manifest-service.js +20 -7
- package/dist/server/infra/context-tree/runtime-signal-store.d.ts +46 -0
- package/dist/server/infra/context-tree/runtime-signal-store.js +118 -0
- package/dist/server/infra/daemon/agent-process.js +25 -4
- package/dist/server/infra/dream/operations/consolidate.d.ts +17 -0
- package/dist/server/infra/dream/operations/consolidate.js +40 -19
- package/dist/server/infra/dream/operations/prune.d.ts +18 -0
- package/dist/server/infra/dream/operations/prune.js +31 -20
- package/dist/server/infra/dream/operations/synthesize.d.ts +13 -0
- package/dist/server/infra/dream/operations/synthesize.js +15 -3
- package/dist/server/infra/executor/dream-executor.d.ts +8 -0
- package/dist/server/infra/executor/dream-executor.js +3 -0
- package/dist/server/templates/skill/SKILL.md +79 -22
- package/oclif.manifest.json +429 -429
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import type { ICipherAgent } from '../../../agent/core/interfaces/i-cipher-agent.js';
|
|
18
18
|
import type { CurateLogEntry } from '../../core/domain/entities/curate-log-entry.js';
|
|
19
19
|
import type { CurateLogStatus } from '../../core/interfaces/storage/i-curate-log-store.js';
|
|
20
|
+
import type { IRuntimeSignalStore } from '../../core/interfaces/storage/i-runtime-signal-store.js';
|
|
20
21
|
import type { DreamLogEntry, DreamOperation } from '../dream/dream-log-schema.js';
|
|
21
22
|
import { type ConsolidateDeps } from '../dream/operations/consolidate.js';
|
|
22
23
|
export type DreamExecutorDeps = {
|
|
@@ -54,6 +55,13 @@ export type DreamExecutorDeps = {
|
|
|
54
55
|
reviewBackupStore?: {
|
|
55
56
|
save(relativePath: string, content: string): Promise<void>;
|
|
56
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* Optional. Passed through to consolidate's CROSS_REFERENCE review gate
|
|
60
|
+
* (reads `maturity` via `get`) and to prune's candidacy scan (reads
|
|
61
|
+
* `importance`/`maturity` via `list`). The full `IRuntimeSignalStore` is
|
|
62
|
+
* accepted so both code paths can consume what they need.
|
|
63
|
+
*/
|
|
64
|
+
runtimeSignalStore?: IRuntimeSignalStore;
|
|
57
65
|
searchService: ConsolidateDeps['searchService'];
|
|
58
66
|
};
|
|
59
67
|
type DreamExecuteOptions = {
|
|
@@ -200,6 +200,7 @@ export class DreamExecutor {
|
|
|
200
200
|
contextTreeDir,
|
|
201
201
|
dreamStateService: this.deps.dreamStateService,
|
|
202
202
|
reviewBackupStore: this.deps.reviewBackupStore,
|
|
203
|
+
runtimeSignalStore: this.deps.runtimeSignalStore,
|
|
203
204
|
searchService: this.deps.searchService,
|
|
204
205
|
signal,
|
|
205
206
|
taskId,
|
|
@@ -208,6 +209,7 @@ export class DreamExecutor {
|
|
|
208
209
|
out.push(...(await synthesize({
|
|
209
210
|
agent,
|
|
210
211
|
contextTreeDir,
|
|
212
|
+
runtimeSignalStore: this.deps.runtimeSignalStore,
|
|
211
213
|
searchService: this.deps.searchService,
|
|
212
214
|
signal,
|
|
213
215
|
taskId,
|
|
@@ -221,6 +223,7 @@ export class DreamExecutor {
|
|
|
221
223
|
dreamStateService: this.deps.dreamStateService,
|
|
222
224
|
projectRoot,
|
|
223
225
|
reviewBackupStore: this.deps.reviewBackupStore,
|
|
226
|
+
runtimeSignalStore: this.deps.runtimeSignalStore,
|
|
224
227
|
signal,
|
|
225
228
|
taskId,
|
|
226
229
|
})));
|
|
@@ -77,28 +77,6 @@ brv curate "Auth uses JWT with 24h expiry. Tokens stored in httpOnly cookies via
|
|
|
77
77
|
brv curate "Authentication middleware details" -f src/middleware/auth.ts
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
**View curate history:** to check past curations
|
|
81
|
-
- Show recent entries (last 10)
|
|
82
|
-
```bash
|
|
83
|
-
brv curate view
|
|
84
|
-
```
|
|
85
|
-
- Full detail for a specific entry: all files and operations performed (logId is printed by `brv curate` on completion, e.g. `cur-1739700001000`)
|
|
86
|
-
```bash
|
|
87
|
-
brv curate view cur-1739700001000
|
|
88
|
-
```
|
|
89
|
-
- List entries with file operations visible (no logId needed)
|
|
90
|
-
```bash
|
|
91
|
-
brv curate view detail
|
|
92
|
-
```
|
|
93
|
-
- Filter by time and status
|
|
94
|
-
```bash
|
|
95
|
-
brv curate view --since 1h --status completed
|
|
96
|
-
```
|
|
97
|
-
- For all filter options
|
|
98
|
-
```bash
|
|
99
|
-
brv curate view --help
|
|
100
|
-
```
|
|
101
|
-
|
|
102
80
|
### 4. Review Pending Changes
|
|
103
81
|
**Overview:** After a curate operation, some changes may require human review before being applied. Use `brv review` to list, approve, or reject pending operations.
|
|
104
82
|
|
|
@@ -473,6 +451,85 @@ Write Targets:
|
|
|
473
451
|
Swarm is operational (5/5 providers configured).
|
|
474
452
|
```
|
|
475
453
|
|
|
454
|
+
### 11. Query and Curate History
|
|
455
|
+
**Overview:** Inspect past query and curate operations. Use `brv query-log view` to review query history, `brv curate view` to review curate history, and `brv query-log summary` to see aggregated recall metrics. Supports filtering by time, status, tier, and detailed per-operation output.
|
|
456
|
+
|
|
457
|
+
**Use this skill when:**
|
|
458
|
+
- You want to review what was queried or curated previously
|
|
459
|
+
- You need to inspect a specific operation by logId
|
|
460
|
+
- You want to filter history by time window or completion status
|
|
461
|
+
- You want to collect data for analysis or debugging
|
|
462
|
+
- You want to know what knowledge was added, updated, or deleted over time
|
|
463
|
+
- You want aggregated metrics on query recall, cache hit rate, or knowledge gaps
|
|
464
|
+
|
|
465
|
+
**Do NOT use this skill when:**
|
|
466
|
+
- You want to run a new query — use `brv query` instead
|
|
467
|
+
- You want to curate new knowledge — use `brv curate` instead
|
|
468
|
+
|
|
469
|
+
**View curate history:** to check past curations
|
|
470
|
+
- Show recent entries (last 10)
|
|
471
|
+
```bash
|
|
472
|
+
brv curate view
|
|
473
|
+
```
|
|
474
|
+
- Full detail for a specific entry: all files and operations performed (logId is printed by `brv curate` on completion, e.g. `cur-1739700001000`)
|
|
475
|
+
```bash
|
|
476
|
+
brv curate view cur-1739700001000
|
|
477
|
+
```
|
|
478
|
+
- List entries with file operations visible (no logId needed)
|
|
479
|
+
```bash
|
|
480
|
+
brv curate view --detail
|
|
481
|
+
```
|
|
482
|
+
- Filter by time and status
|
|
483
|
+
```bash
|
|
484
|
+
brv curate view --since 1h --status completed --limit 1000
|
|
485
|
+
```
|
|
486
|
+
- For all filter options
|
|
487
|
+
```bash
|
|
488
|
+
brv curate view --help
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
**View query history:** to check past queries
|
|
492
|
+
- Show recent entries (last 10)
|
|
493
|
+
```bash
|
|
494
|
+
brv query-log view
|
|
495
|
+
```
|
|
496
|
+
- Full detail for a specific entry: matched docs and search metadata (logId is printed by `brv query` on completion, e.g. `qry-1739700001000`)
|
|
497
|
+
```bash
|
|
498
|
+
brv query-log view qry-1739700001000
|
|
499
|
+
```
|
|
500
|
+
- List entries with matched docs visible (no logId needed)
|
|
501
|
+
```bash
|
|
502
|
+
brv query-log view --detail
|
|
503
|
+
```
|
|
504
|
+
- Filter by time, status, or resolution tier (0=exact cache, 1=fuzzy cache, 2=direct search, 3=optimized LLM, 4=full agentic)
|
|
505
|
+
```bash
|
|
506
|
+
brv query-log view --since 1h --status completed --limit 1000
|
|
507
|
+
brv query-log view --tier 0 --tier 1
|
|
508
|
+
```
|
|
509
|
+
- For all filter options
|
|
510
|
+
```bash
|
|
511
|
+
brv query-log view --help
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
**View query recall metrics:** to see aggregated stats across recent queries
|
|
515
|
+
- Summary for the last 24 hours (default)
|
|
516
|
+
```bash
|
|
517
|
+
brv query-log summary
|
|
518
|
+
```
|
|
519
|
+
- Summary for a specific time window
|
|
520
|
+
```bash
|
|
521
|
+
brv query-log summary --last 7d
|
|
522
|
+
brv query-log summary --since 2026-04-01 --before 2026-04-03
|
|
523
|
+
```
|
|
524
|
+
- Narrative format (human-readable prose report)
|
|
525
|
+
```bash
|
|
526
|
+
brv query-log summary --format narrative
|
|
527
|
+
```
|
|
528
|
+
- For all options
|
|
529
|
+
```bash
|
|
530
|
+
brv query-log summary --help
|
|
531
|
+
```
|
|
532
|
+
|
|
476
533
|
## Data Handling
|
|
477
534
|
|
|
478
535
|
**Storage**: All knowledge is stored as Markdown files in `.brv/context-tree/` within the project directory. Files are human-readable and version-controllable.
|