@reclaimprotocol/agent 0.1.0-dev.1 → 0.1.0-dev.2
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reclaimprotocol/agent",
|
|
3
3
|
"title": "Reclaim Agent",
|
|
4
|
-
"version": "0.1.0-dev.
|
|
4
|
+
"version": "0.1.0-dev.2",
|
|
5
5
|
"description": "Reclaim Protocol agent — SDK, CLI, and MCP server in one package. SDK + CLI talk to the builder backend; MCP server adds Chrome CDP capture, provider synthesis, replay, and zkTLS proof.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./lib/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"websiteUrl": "https://docs.reclaimprotocol.org",
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "tsc && node scripts/prepend-shebang.
|
|
40
|
+
"build": "tsc && node scripts/prepend-shebang.js && chmod 755 lib/cli.js lib/mcp-bin.js",
|
|
41
41
|
"openapi:typegen": "node ../app/scripts/mcp-tools-gen.ts",
|
|
42
42
|
"prepublishOnly": "npm run build",
|
|
43
43
|
"dev": "tsc --watch",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"start:cli": "node lib/cli.js",
|
|
46
46
|
"start:mcp": "node lib/mcp-bin.js",
|
|
47
47
|
"inspect": "npx @modelcontextprotocol/inspector node lib/mcp-bin.js",
|
|
48
|
-
"download:zk-files": "node scripts/download-zk-files.
|
|
49
|
-
"postinstall": "node scripts/download-zk-files.
|
|
48
|
+
"download:zk-files": "node scripts/download-zk-files.js",
|
|
49
|
+
"postinstall": "node scripts/download-zk-files.js"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"mcp",
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
// @reclaimprotocol/attestor-core needs at proof time. Runs as the agent's
|
|
3
3
|
// `postinstall` and as `npm run download:zk-files`.
|
|
4
4
|
//
|
|
5
|
+
// This is plain JavaScript (not TypeScript) on purpose: it runs as a
|
|
6
|
+
// `postinstall`, where the file lives under the consumer's `node_modules`.
|
|
7
|
+
// Node refuses to type-strip `.ts` files in `node_modules`
|
|
8
|
+
// (ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING), so the install hook must be
|
|
9
|
+
// runnable without any transpilation.
|
|
10
|
+
//
|
|
5
11
|
// Resolves the package via Node's algorithm (`createRequire().resolve`)
|
|
6
12
|
// rather than a literal `node_modules/...` path: the package is commonly
|
|
7
13
|
// hoisted to the workspace root, where a literal relative path from
|
|
@@ -14,7 +20,7 @@ import { dirname, join } from 'node:path'
|
|
|
14
20
|
|
|
15
21
|
const require = createRequire(import.meta.url)
|
|
16
22
|
|
|
17
|
-
let mainPath
|
|
23
|
+
let mainPath
|
|
18
24
|
try {
|
|
19
25
|
mainPath = require.resolve('@reclaimprotocol/zk-symmetric-crypto')
|
|
20
26
|
} catch{
|
|
File without changes
|