savepoint 1.2.0 → 1.2.3

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.
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawnSync } = require("node:child_process");
4
+ const path = require("node:path");
5
+
6
+ const platformMap = {
7
+ darwin: "darwin",
8
+ linux: "linux",
9
+ win32: "windows",
10
+ };
11
+
12
+ const archMap = {
13
+ arm64: "arm64",
14
+ x64: "amd64",
15
+ };
16
+
17
+ const goos = platformMap[process.platform];
18
+ const goarch = archMap[process.arch];
19
+
20
+ if (!goos || !goarch) {
21
+ console.error(`savepoint does not support ${process.platform}/${process.arch}`);
22
+ process.exit(1);
23
+ }
24
+
25
+ const executable = goos === "windows" ? "savepoint.exe" : "savepoint";
26
+ const binary = path.join(__dirname, "..", "dist", "npm", `${goos}-${goarch}`, executable);
27
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
28
+
29
+ if (result.error) {
30
+ console.error(result.error.message);
31
+ process.exit(1);
32
+ }
33
+
34
+ process.exit(result.status ?? 0);
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "savepoint",
3
- "version": "1.2.0",
3
+ "version": "1.2.3",
4
4
  "description": "It’s a simple, file-based state machine and cinematic Terminal UI (TUI) designed to force you—and your agent (Claude, Cursor, Aider, Gemini)—to slow down, write down what you're actually building, and check your work before moving on.",
5
5
  "keywords": [
6
6
  "board",
@@ -18,17 +18,18 @@
18
18
  "license": "MIT",
19
19
  "author": "anipatke",
20
20
  "bin": {
21
- "savepoint": "./savepoint.exe"
21
+ "savepoint": "./bin/savepoint.js"
22
22
  },
23
23
  "files": [
24
- "savepoint.exe",
24
+ "bin/savepoint.js",
25
+ "dist/npm",
25
26
  "README.md",
26
27
  "LICENSE"
27
28
  ],
28
29
  "scripts": {
29
- "build": "go build -o savepoint.exe .",
30
+ "build": "go run ./internal/buildtool build-npm",
30
31
  "test": "echo \"Run 'make test' for Go tests\"",
31
32
  "postinstall": "node -e \"console.log('Run \\\"savepoint upgrade-assets\\\" in each existing Savepoint project to refresh agent skills and templates.')\"",
32
33
  "prepublishOnly": "npm run build"
33
34
  }
34
- }
35
+ }