claude-db 0.5.0 → 0.5.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/CHANGELOG.md +12 -0
- package/dist/capture/progress.js +1 -1
- package/dist/capture/turn-extractor.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **A turn that touched no files stayed open forever.** Work closes when every
|
|
8
|
+
file it touched has been committed, but a turn that only ran commands has no
|
|
9
|
+
files to land, so it could never close and sat in `status` and in the
|
|
10
|
+
SessionStart injection permanently. Those turns are now recorded as already
|
|
11
|
+
done, and a row with no outstanding files closes rather than being skipped.
|
|
12
|
+
Found by reading the list on a clean tree: four entries, none of them real
|
|
13
|
+
work
|
|
14
|
+
|
|
3
15
|
## 0.5.0
|
|
4
16
|
|
|
5
17
|
`find_usages` could only ever answer "where does this string appear". It could
|
package/dist/capture/progress.js
CHANGED
|
@@ -23,7 +23,7 @@ export async function closeLandedWork(store, project) {
|
|
|
23
23
|
return 0;
|
|
24
24
|
const open = await store.list({ project, status: 'open', limit: OPEN_LIMIT });
|
|
25
25
|
const landed = open
|
|
26
|
-
.filter((obs) => obs.files.
|
|
26
|
+
.filter((obs) => obs.files.every((file) => !dirty.has(file)))
|
|
27
27
|
.map((obs) => obs.id);
|
|
28
28
|
return store.closeObservations(landed);
|
|
29
29
|
}
|
|
@@ -30,7 +30,7 @@ function buildObservation(turn, sessionId, project, config) {
|
|
|
30
30
|
sessionId,
|
|
31
31
|
project,
|
|
32
32
|
...(author ? { author } : {}),
|
|
33
|
-
status: 'open',
|
|
33
|
+
status: files.length > 0 ? 'open' : 'done',
|
|
34
34
|
kind: classifyTurn(turn),
|
|
35
35
|
title: redact(buildTitle(turn, files)),
|
|
36
36
|
body,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-db",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Persistent memory for Claude Code. Captures why decisions were made, not just which files changed. Bring your own database: SQLite, MongoDB or Postgres. No cloud, no subscription.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|