tersign 0.4.9 → 0.4.11
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 -1
- package/dist/keystore.js +13 -0
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/server.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ npm i tersign
|
|
|
74
74
|
|---|---|
|
|
75
75
|
| Receipts | Seller-signed EIP-712 (x402 offer-receipt extension), keccak256 canonical digests |
|
|
76
76
|
| `withAssure()` | x402 fetch-handler adapter — a receipt per paid call |
|
|
77
|
-
| Compliance
|
|
77
|
+
| Compliance exports | EU Art-226b minimal tier · EN 16931 full tier · HK IRO s.51C retention |
|
|
78
78
|
| Action records | `ActionRecordV1` — GDPR-minimized; captures the content of an Art-50 disclosure so the disclosure itself is independently attested, not self-reported |
|
|
79
79
|
| Refunds | Chained to the original receipt via `refundOf` |
|
|
80
80
|
| Disputes v0 | Objective reason codes, evidence submission, adjudication |
|
package/dist/keystore.js
CHANGED
|
@@ -25,6 +25,19 @@ function readKeychain() {
|
|
|
25
25
|
function writeKeychain(key) {
|
|
26
26
|
if (process.platform !== 'darwin')
|
|
27
27
|
return false;
|
|
28
|
+
// Preflight, added 2026-08-30. `security add-generic-password` does not merely FAIL when no
|
|
29
|
+
// login keychain is reachable — it raises a MODAL macOS dialog ("A keychain cannot be found
|
|
30
|
+
// to store …"), which blocks a headless run and ambushes anyone whose first command is
|
|
31
|
+
// `npx tersign`. Seen for real while probing first-run behaviour with a sandboxed HOME; the
|
|
32
|
+
// same shape hits a Mac CI runner, an ssh session with a locked keychain, and any sandbox.
|
|
33
|
+
// `security default-keychain` answers the question silently, so ask it before writing and
|
|
34
|
+
// fall through to the 0600 keyfile when the answer is no.
|
|
35
|
+
try {
|
|
36
|
+
execFileSync('security', ['default-keychain'], { stdio: ['ignore', 'ignore', 'ignore'] });
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
28
41
|
try {
|
|
29
42
|
execFileSync('security', ['add-generic-password', '-s', KEYCHAIN_SERVICE, '-a', userInfo().username, '-w', key, '-U'], { stdio: ['ignore', 'ignore', 'ignore'] });
|
|
30
43
|
return true;
|
package/dist/mcp/server.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export declare function envDeps(env?: Record<string, string | undefined>): McpDe
|
|
|
8
8
|
* every client; mcp.test.ts pins it against package.json so a release bump can't drift it. */
|
|
9
9
|
export declare const MCP_SERVER_IDENTITY: {
|
|
10
10
|
readonly name: "tersign";
|
|
11
|
-
readonly version: "0.4.
|
|
11
|
+
readonly version: "0.4.11";
|
|
12
12
|
};
|
|
13
13
|
export declare function buildServer(deps: McpDeps): McpServer;
|
package/dist/mcp/server.js
CHANGED
|
@@ -49,7 +49,7 @@ function json(value) {
|
|
|
49
49
|
}
|
|
50
50
|
/** MUST match package.json name/version — the MCP handshake self-reports this identity to
|
|
51
51
|
* every client; mcp.test.ts pins it against package.json so a release bump can't drift it. */
|
|
52
|
-
export const MCP_SERVER_IDENTITY = { name: 'tersign', version: '0.4.
|
|
52
|
+
export const MCP_SERVER_IDENTITY = { name: 'tersign', version: '0.4.11' };
|
|
53
53
|
export function buildServer(deps) {
|
|
54
54
|
const server = new McpServer(MCP_SERVER_IDENTITY);
|
|
55
55
|
server.registerTool('issue_receipt', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tersign",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "Tersign \u2014 the evidence layer for the agent economy. Counter-signed receipts, agent action records, idempotency enforcement, refunds, disputes, and jury-ready evidence envelopes for x402/agent-commerce sellers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|