@jeffober/thatch 0.1.29 → 0.1.30
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/bin/release +21 -0
- package/bin/thatch +7 -0
- package/package.json +1 -1
package/bin/release
CHANGED
|
@@ -43,6 +43,27 @@ if git rev-parse -q --verify "refs/tags/v$curr" >/dev/null 2>&1; then
|
|
|
43
43
|
fi
|
|
44
44
|
fi
|
|
45
45
|
|
|
46
|
+
branch=$(git rev-parse --abbrev-ref HEAD)
|
|
47
|
+
ci_json=$(gh run list --branch "$branch" --workflow ci.yml --limit 1 --json status,conclusion 2>/dev/null || echo "[]")
|
|
48
|
+
ci_status=$(echo "$ci_json" | jq -r '.[0].status // "unknown"')
|
|
49
|
+
ci_conclusion=$(echo "$ci_json" | jq -r '.[0].conclusion // "unknown"')
|
|
50
|
+
|
|
51
|
+
if [[ "$ci_status" != "completed" ]]; then
|
|
52
|
+
echo "ERROR: CI is still running on '$branch' (status: $ci_status)."
|
|
53
|
+
echo " Wait for it to finish before releasing."
|
|
54
|
+
exit 1
|
|
55
|
+
fi
|
|
56
|
+
|
|
57
|
+
if [[ "$ci_conclusion" != "success" ]]; then
|
|
58
|
+
echo "ERROR: CI is red on '$branch' (conclusion: $ci_conclusion)."
|
|
59
|
+
echo " Fix the failures before releasing."
|
|
60
|
+
echo " View: gh run list --branch $branch --workflow ci.yml"
|
|
61
|
+
exit 1
|
|
62
|
+
fi
|
|
63
|
+
|
|
64
|
+
echo " ✓ CI green on '$branch'"
|
|
65
|
+
echo
|
|
66
|
+
|
|
46
67
|
echo "▸ running checks (typecheck + tests + markdown lint)..."
|
|
47
68
|
mise run check
|
|
48
69
|
echo " ✓ checks passed"
|
package/bin/thatch
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { join, resolve } from "node:path";
|
|
5
|
+
import pkg from "../package.json" with { type: "json" };
|
|
5
6
|
import { ThatchDB } from "../src/db";
|
|
6
7
|
import { detectRepo } from "../src/git";
|
|
7
8
|
import { BgeEmbeddingModel } from "../src/embeddings";
|
|
@@ -17,6 +18,7 @@ const [command, ...args] = process.argv.slice(2);
|
|
|
17
18
|
|
|
18
19
|
function usage(): never {
|
|
19
20
|
console.error(`USAGE
|
|
21
|
+
thatch --version, -v Print version and exit
|
|
20
22
|
thatch stores List all stores
|
|
21
23
|
thatch list [store] List memory labels in a store
|
|
22
24
|
thatch show <label> [store] Display a memory by label
|
|
@@ -52,6 +54,11 @@ function projectDir(): string {
|
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
switch (command) {
|
|
57
|
+
case "--version":
|
|
58
|
+
case "-v":
|
|
59
|
+
console.log(pkg.version);
|
|
60
|
+
process.exit(0);
|
|
61
|
+
|
|
55
62
|
case "stores":
|
|
56
63
|
console.log(db.listStores().join("\n"));
|
|
57
64
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeffober/thatch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "Persistent memory for AI coding agents — local embeddings, SQLite stores, zero config. Works with OpenCode (as a plugin), Claude Code (as an MCP server), and Cursor (as an MCP server).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|