byterover-cli 3.7.0 → 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.
Files changed (49) hide show
  1. package/dist/agent/core/interfaces/cipher-services.d.ts +7 -0
  2. package/dist/agent/infra/agent/cipher-agent.js +4 -2
  3. package/dist/agent/infra/agent/service-initializer.js +28 -14
  4. package/dist/agent/infra/sandbox/curate-service.d.ts +4 -2
  5. package/dist/agent/infra/sandbox/curate-service.js +6 -4
  6. package/dist/agent/infra/tools/implementations/curate-tool.d.ts +4 -2
  7. package/dist/agent/infra/tools/implementations/curate-tool.js +169 -25
  8. package/dist/agent/infra/tools/implementations/expand-knowledge-tool.d.ts +2 -0
  9. package/dist/agent/infra/tools/implementations/expand-knowledge-tool.js +1 -1
  10. package/dist/agent/infra/tools/implementations/memory-symbol-tree.d.ts +0 -8
  11. package/dist/agent/infra/tools/implementations/memory-symbol-tree.js +3 -15
  12. package/dist/agent/infra/tools/implementations/search-knowledge-service.d.ts +49 -4
  13. package/dist/agent/infra/tools/implementations/search-knowledge-service.js +123 -53
  14. package/dist/agent/infra/tools/implementations/search-knowledge-tool.d.ts +2 -0
  15. package/dist/agent/infra/tools/tool-provider.js +1 -0
  16. package/dist/agent/infra/tools/tool-registry.d.ts +7 -0
  17. package/dist/agent/infra/tools/tool-registry.js +13 -6
  18. package/dist/oclif/commands/dream.d.ts +4 -0
  19. package/dist/oclif/commands/dream.js +31 -13
  20. package/dist/server/constants.d.ts +1 -1
  21. package/dist/server/constants.js +20 -1
  22. package/dist/server/core/domain/knowledge/markdown-writer.d.ts +12 -42
  23. package/dist/server/core/domain/knowledge/markdown-writer.js +55 -96
  24. package/dist/server/core/domain/knowledge/memory-scoring.d.ts +18 -37
  25. package/dist/server/core/domain/knowledge/memory-scoring.js +36 -85
  26. package/dist/server/core/domain/knowledge/runtime-signals-schema.d.ts +59 -0
  27. package/dist/server/core/domain/knowledge/runtime-signals-schema.js +46 -0
  28. package/dist/server/core/domain/knowledge/sidecar-logging.d.ts +14 -0
  29. package/dist/server/core/domain/knowledge/sidecar-logging.js +18 -0
  30. package/dist/server/core/interfaces/storage/i-runtime-signal-store.d.ts +111 -0
  31. package/dist/server/core/interfaces/storage/i-runtime-signal-store.js +38 -0
  32. package/dist/server/infra/context-tree/file-context-tree-archive-service.d.ts +16 -6
  33. package/dist/server/infra/context-tree/file-context-tree-archive-service.js +91 -32
  34. package/dist/server/infra/context-tree/file-context-tree-manifest-service.d.ts +14 -0
  35. package/dist/server/infra/context-tree/file-context-tree-manifest-service.js +20 -7
  36. package/dist/server/infra/context-tree/runtime-signal-store.d.ts +46 -0
  37. package/dist/server/infra/context-tree/runtime-signal-store.js +118 -0
  38. package/dist/server/infra/daemon/agent-process.js +25 -4
  39. package/dist/server/infra/dream/operations/consolidate.d.ts +17 -0
  40. package/dist/server/infra/dream/operations/consolidate.js +40 -19
  41. package/dist/server/infra/dream/operations/prune.d.ts +18 -0
  42. package/dist/server/infra/dream/operations/prune.js +31 -20
  43. package/dist/server/infra/dream/operations/synthesize.d.ts +13 -0
  44. package/dist/server/infra/dream/operations/synthesize.js +15 -3
  45. package/dist/server/infra/executor/dream-executor.d.ts +8 -0
  46. package/dist/server/infra/executor/dream-executor.js +3 -0
  47. package/dist/server/templates/skill/SKILL.md +79 -22
  48. package/oclif.manifest.json +426 -426
  49. package/package.json +1 -1
@@ -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.