opencode-codegraph 0.1.21 → 0.1.22
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/util.ts +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.22 - 2026-03-20
|
|
4
|
+
|
|
5
|
+
- add DuckDB maintenance guidance and `/maintain-db` workflow command for local database compaction
|
|
6
|
+
|
|
3
7
|
## 0.1.21 - 2026-03-20
|
|
4
8
|
|
|
5
9
|
- append workflow guidance to the `codegraph_review` custom tool so tool results stay aligned with current dogfooding state
|
package/package.json
CHANGED
package/src/util.ts
CHANGED
|
@@ -33,6 +33,12 @@ export type DogfoodStatusSnapshot = {
|
|
|
33
33
|
unstaged_changes?: boolean
|
|
34
34
|
untracked_files?: boolean
|
|
35
35
|
}
|
|
36
|
+
db_maintenance?: {
|
|
37
|
+
due?: boolean
|
|
38
|
+
reason?: string
|
|
39
|
+
db_size_mb?: number
|
|
40
|
+
recommended_action?: string
|
|
41
|
+
}
|
|
36
42
|
review_trace?: ReviewTraceSnapshot | null
|
|
37
43
|
workflow_state?: string
|
|
38
44
|
recommended_next_action?: string
|
|
@@ -386,6 +392,7 @@ export function formatDogfoodStatusSummary(snapshot: DogfoodStatusSnapshot): str
|
|
|
386
392
|
const branch = git.branch
|
|
387
393
|
const worktreeClean = git.worktree_clean
|
|
388
394
|
const reviewTrace = snapshot.review_trace || null
|
|
395
|
+
const maintenance = snapshot.db_maintenance || null
|
|
389
396
|
const traceStatus = reviewTrace?.status || "missing"
|
|
390
397
|
const workflowState = snapshot.workflow_state
|
|
391
398
|
const nextAction = snapshot.recommended_next_action
|
|
@@ -410,6 +417,11 @@ export function formatDogfoodStatusSummary(snapshot: DogfoodStatusSnapshot): str
|
|
|
410
417
|
if (typeof worktreeClean === "boolean") {
|
|
411
418
|
lines.push(`- Worktree clean: ${worktreeClean}`)
|
|
412
419
|
}
|
|
420
|
+
if (maintenance) {
|
|
421
|
+
lines.push(
|
|
422
|
+
`- DB maintenance: ${maintenance.due ? "due" : "ok"} (${maintenance.reason || "unknown"}${typeof maintenance.db_size_mb === "number" ? `, ${maintenance.db_size_mb} MB` : ""})`,
|
|
423
|
+
)
|
|
424
|
+
}
|
|
413
425
|
lines.push(`- Review trace: ${traceStatus}`)
|
|
414
426
|
if (workflowState) {
|
|
415
427
|
lines.push(`- Workflow state: ${workflowState}`)
|