lemmafit 0.2.1 → 0.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.
- package/README.md +1 -0
- package/cli/check-claimcheck.js +23 -0
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -96,5 +96,6 @@ npm update lemmafit
|
|
|
96
96
|
|
|
97
97
|
- Node.js 18+
|
|
98
98
|
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI
|
|
99
|
+
- [claimcheck](https://github.com/metareflection/claimcheck) (`npm install -g claimcheck`) — needed for the `/guarantees` skill
|
|
99
100
|
|
|
100
101
|
Dafny and dafny2js are downloaded automatically during `npm install` to `~/.lemmafit/`.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { execSync } = require('child_process');
|
|
3
|
+
|
|
4
|
+
try {
|
|
5
|
+
execSync('claimcheck --version', { stdio: 'ignore' });
|
|
6
|
+
} catch {
|
|
7
|
+
if (process.env.npm_config_global === 'true') {
|
|
8
|
+
console.log('Installing claimcheck CLI...');
|
|
9
|
+
try {
|
|
10
|
+
execSync('npm install -g claimcheck', { stdio: 'inherit' });
|
|
11
|
+
} catch {
|
|
12
|
+
console.warn(
|
|
13
|
+
'\n⚠ Failed to install claimcheck. Install it manually:\n' +
|
|
14
|
+
' npm install -g claimcheck\n'
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
} else {
|
|
18
|
+
console.warn(
|
|
19
|
+
'\n⚠ lemmafit requires the claimcheck CLI, but it was not found on your PATH.\n' +
|
|
20
|
+
' Install it with: npm install -g claimcheck\n'
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"verified",
|
|
16
16
|
"proof"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.2.
|
|
18
|
+
"version": "0.2.3",
|
|
19
19
|
"type": "commonjs",
|
|
20
20
|
"files": [
|
|
21
21
|
"cli/",
|
|
@@ -36,13 +36,15 @@
|
|
|
36
36
|
"lemmafit-generate-guarantees": "cli/generate-guarantees-md.js"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
|
-
"postinstall": "node ./cli/sync.js && node ./cli/download-dafny2js.js && node ./lib/download-dafny.js"
|
|
39
|
+
"postinstall": "node ./cli/sync.js && node ./cli/download-dafny2js.js && node ./lib/download-dafny.js && node ./cli/check-claimcheck.js"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"claimcheck": "^0.2.0",
|
|
43
42
|
"js-yaml": "^4.1.1",
|
|
44
43
|
"ws": "^8.18.0"
|
|
45
44
|
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"claimcheck": "^0.2.0"
|
|
47
|
+
},
|
|
46
48
|
"engines": {
|
|
47
49
|
"node": ">=18.0.0"
|
|
48
50
|
},
|