akm-cli 0.9.0-rc.6 → 0.9.0-rc.7
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.
|
@@ -582,13 +582,14 @@ function sampleLockDirectory(directory) {
|
|
|
582
582
|
const entry = handle.readSync();
|
|
583
583
|
if (!entry)
|
|
584
584
|
break;
|
|
585
|
+
if (!entry.isFile() || !entry.name.endsWith(".lock"))
|
|
586
|
+
continue;
|
|
585
587
|
inspected += 1;
|
|
586
588
|
if (inspected > MAX_BLOCKER_DIRECTORY_SAMPLES) {
|
|
587
589
|
overflow = true;
|
|
588
590
|
break;
|
|
589
591
|
}
|
|
590
|
-
|
|
591
|
-
paths.push(path.join(directory, entry.name));
|
|
592
|
+
paths.push(path.join(directory, entry.name));
|
|
592
593
|
}
|
|
593
594
|
}
|
|
594
595
|
catch (error) {
|
|
@@ -86,7 +86,8 @@ export function buildCutoverRefMap(opts) {
|
|
|
86
86
|
if (fs.existsSync(opts.oldIndexDbPath)) {
|
|
87
87
|
const db = openDatabaseFinalizing(opts.oldIndexDbPath, { readonly: true });
|
|
88
88
|
try {
|
|
89
|
-
|
|
89
|
+
const entryColumns = tableExists(db, "main", "entries") ? new Set(columnNames(db, "main", "entries")) : undefined;
|
|
90
|
+
if (["entry_key", "item_ref", "entry_type", "stash_dir"].every((column) => entryColumns?.has(column))) {
|
|
90
91
|
const rows = db
|
|
91
92
|
.prepare("SELECT entry_key AS entryKey, item_ref AS itemRef, entry_type AS entryType, stash_dir AS stashDir " +
|
|
92
93
|
"FROM entries WHERE item_ref IS NOT NULL AND item_ref <> ''")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "akm-cli",
|
|
3
|
-
"version": "0.9.0-rc.
|
|
3
|
+
"version": "0.9.0-rc.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "akm (Agent Knowledge Management) — A package manager for AI agent skills, commands, tools, and knowledge. Works with Claude Code, OpenCode, Cursor, and any AI coding assistant.",
|
|
6
6
|
"keywords": [
|