-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·131 lines (131 loc) · 5.06 KB
/
Copy pathpackage.json
File metadata and controls
executable file
·131 lines (131 loc) · 5.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "safehands-pharos",
"version": "2.8.0",
"description": "Open-source reusable Pharos Skill, the transaction firewall for AI agent finance on Pharos Pacific Mainnet: deterministic safety verdicts before any wallet signs. Read-only by default; write tools optional, gated, off by default.",
"type": "module",
"main": "dist/sdk.js",
"types": "dist/sdk.d.ts",
"exports": {
".": {
"types": "./dist/sdk.d.ts",
"import": "./dist/sdk.js"
}
},
"bin": {
"safehands-pharos": "dist/index.js",
"safehands": "dist/index.js"
},
"files": [
"dist",
"contracts",
"README.md",
"SECURITY.md",
".env.example",
"LICENSE",
"SKILL.md",
".agents/policies/default.json",
"docs/REVIEWER_QUICKSTART.md",
"docs/SAFEHANDS_REVIEWER_DEMO_SCRIPT.md"
],
"scripts": {
"build": "tsc",
"prepack": "npm run build",
"prepublishOnly": "npm run build && npm test",
"start": "node dist/api/server.js",
"start:api": "node dist/api/server.js",
"start:mcp": "node dist/index.js",
"dev": "tsx src/index.ts",
"x402-server": "node dist/x402Server.js",
"guardian-api": "tsx src/api/server.ts",
"agent:demo": "tsx examples/agent-arena/guardian-agent-demo.ts",
"agent:x402": "tsx examples/agent-arena/payment-agent-x402.ts",
"agent:defi": "tsx examples/agent-arena/defi-agent-approval.ts",
"agent:starter": "tsx examples/agent-starter/safe-agent.ts",
"demo": "tsx src/index.ts --demo",
"test": "tsx --test test/policy-suite.test.ts test/action-policy.test.ts test/calldata-decoder.test.ts test/risk-inclusion.test.ts test/risk-engine.test.ts test/http-ssrf.test.ts test/x402-gate.test.ts test/x402-daily-cap.test.ts test/write-auth.test.ts test/write-path-gates.test.ts test/write-tools-risk-gate.test.ts test/attestation-publisher.test.ts test/spv-verifier.test.ts test/agent-policy-guard.test.ts test/sdk-exports.test.ts test/wallet-crypto.test.ts test/execution-hardening.test.ts test/input-hardening.test.ts test/token-security-failclosed.test.ts test/token-registry-metadata.test.ts test/price-resolver.test.ts test/price-tools.test.ts test/ecosystem-registry.test.ts test/registry-defaults.test.ts test/truth-model.test.ts test/ecosystem-registry-schema.test.ts test/anvita-asset-sync.test.ts test/registry-failclosed.test.ts test/okx-dex-api.test.ts test/anvita-engine.test.mjs test/anvita-engine-calldata.test.mjs test/anvita-engine-composition.test.mjs test/anvita-engine-alias.test.mjs test/anvita-engine-keccak.test.mjs test/engine-differential.test.mjs test/engine-invariants.test.mjs test/engine-merkle-inclusion.test.mjs",
"test:live": "tsx --test test/live-smoke.test.ts",
"typecheck:test": "tsc -p tsconfig.test.json",
"lint": "eslint .",
"test:contracts": "node scripts/run-contract-tests.mjs",
"test:live-broadcast": "node scripts/live-broadcast-test.mjs",
"test:all": "npm run build && npm run typecheck:test && npm run lint && npm test && npm run demo && npm run test:contracts",
"package:anvita": "node scripts/package-anvita-safehands.mjs",
"sync:anvita": "tsx scripts/sync-anvita-assets.ts",
"sync:anvita:check": "tsx scripts/sync-anvita-assets.ts --check",
"test:contracts:hardhat": "npx hardhat test test/contracts/SafeHandsRegistry.ts test/contracts/SafeHandsAttestation.ts",
"x402-server:dev": "tsx src/x402Server.ts",
"start:x402": "node dist/x402Server.js",
"start:worker": "node dist/worker.js",
"worker": "tsx src/worker.ts",
"start:full-local": "node scripts/start-full-local.mjs",
"prepare": "npm run build"
},
"keywords": [
"pharos",
"mcp",
"mcp-skill",
"defi",
"risk-engine",
"ai-agent",
"faroswap",
"viem",
"pharos-pacific",
"mainnet",
"web3",
"pharos-skill-engine",
"guardrail",
"transaction-safety",
"transaction-firewall",
"x402",
"agent-safety",
"safehands",
"rwa",
"real-fi",
"realfi",
"real-world-assets",
"attestation"
],
"author": "SZtch",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/SZtch/safehands-pharos.git"
},
"homepage": "https://github.com/SZtch/safehands-pharos#readme",
"engines": {
"node": ">=20.0.0"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
"@x402/core": "^2.15.0",
"@x402/evm": "^2.15.0",
"@x402/express": "^2.15.0",
"@x402/fetch": "^2.15.0",
"express": "^5.2.1",
"merkletreejs": "^0.6.0",
"viem": "^2.31.3",
"zod": "^3.25.67"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@nomicfoundation/hardhat-toolbox": "^7.0.0",
"@nomicfoundation/hardhat-toolbox-viem": "^5.0.7",
"@openzeppelin/contracts": "^5.6.1",
"@types/chai": "^5.2.3",
"@types/express": "^5.0.6",
"@types/mocha": "^10.0.10",
"@types/node": "^22.15.0",
"chai": "^6.2.2",
"dotenv": "^17.4.2",
"eslint": "^10.7.0",
"hardhat": "^3.9.0",
"mocha": "^11.7.6",
"tsx": "^4.20.3",
"typescript": "^5.9.3",
"typescript-eslint": "^8.63.0"
},
"overrides": {
"ws": "^8.21.0",
"undici": "^6.24.0"
}
}