artshelf 0.4.0 → 0.4.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 +8 -0
- package/dist/src/cli.js +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
- Tightened the portable agent skill description so the completion-gate trigger
|
|
53
53
|
is visible before final responses, status updates, handoffs, and done reports.
|
|
54
54
|
|
|
55
|
+
## [0.4.1](https://github.com/calvinnwq/artshelf/compare/artshelf-v0.4.0...artshelf-v0.4.1) (2026-06-05)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* read CLI version from package metadata ([dafffe9](https://github.com/calvinnwq/artshelf/commit/dafffe9c6d1f1d4aba0062ae64b15f8a919b5b62))
|
|
61
|
+
* read CLI version from package metadata ([72dcc9d](https://github.com/calvinnwq/artshelf/commit/72dcc9d03d34f3c688a05a1d767931d82587d88a))
|
|
62
|
+
|
|
55
63
|
## [0.4.0](https://github.com/calvinnwq/artshelf/compare/artshelf-v0.3.0...artshelf-v0.4.0) (2026-06-05)
|
|
56
64
|
|
|
57
65
|
|
package/dist/src/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { existsSync } from "node:fs";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { appendPreparedRecord, createCleanupPlan, createTrashPurgePlan, dueEntries, executeCleanupPlan, executeTrashPurgePlan, filterRecordsByStatus, findRecords, getRecord, listTrashedRecords, normalizeLedgerPath, prepareRecord, previewCleanupPlan, readLedger, resolveRecord, validateLedger } from "./ledger.js";
|
|
4
4
|
import { listRegisteredLedgers, normalizeRegistryPath, registerLedger } from "./registry.js";
|
|
5
|
-
const VERSION =
|
|
5
|
+
const VERSION = readPackageVersion();
|
|
6
6
|
const BOOLEAN_FLAGS = new Set(["all", "json", "manual-review", "dry-run", "execute", "help", "version", "plain"]);
|
|
7
7
|
const VALUE_FLAGS = new Set([
|
|
8
8
|
"cleanup",
|
|
@@ -21,6 +21,14 @@ const VALUE_FLAGS = new Set([
|
|
|
21
21
|
"status",
|
|
22
22
|
"ttl"
|
|
23
23
|
]);
|
|
24
|
+
function readPackageVersion() {
|
|
25
|
+
const packageJsonPath = decodeURIComponent(new URL("../../package.json", import.meta.url).pathname);
|
|
26
|
+
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));
|
|
27
|
+
if (typeof packageJson.version !== "string") {
|
|
28
|
+
throw new Error("package.json version must be a string");
|
|
29
|
+
}
|
|
30
|
+
return packageJson.version;
|
|
31
|
+
}
|
|
24
32
|
function main(argv) {
|
|
25
33
|
try {
|
|
26
34
|
const parsed = parseArgs(argv);
|