@subetha/proof-of-call 0.1.1 → 0.1.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/README.md CHANGED
@@ -25,7 +25,7 @@ Requirements: Node.js 22 or later, on macOS arm64 or Linux arm64 (glibc). Other
25
25
  1. **Install the package.**
26
26
 
27
27
  ```sh
28
- npm install -g @subetha/proof-of-call@0.1.1
28
+ npm install -g @subetha/proof-of-call@0.1.2
29
29
  poc --version
30
30
  ```
31
31
 
@@ -39,7 +39,7 @@ Requirements: Node.js 22 or later, on macOS arm64 or Linux arm64 (glibc). Other
39
39
  | macOS arm64 | `fb330265653d23a8cfbfef05500b408d9e488a7f5d0ba84f2f23f77ac976c92e` | `9f111c3d2c604d39d72916421ae51752154847a3` (`main`) |
40
40
  | Linux arm64 (glibc) | `adf6ab438ca36f4fadbc50f17df35b0511bdfeeebabd794d022b080e5caa522d` | `1213cc51b74f4f46e258ab5f0ae769812bee4bb9` (`9f111c3` plus the Linux build scripts) |
41
41
 
42
- Without a global install, every command also runs as `npx @subetha/proof-of-call@0.1.1 <command>`. Use the same
42
+ Without a global install, every command also runs as `npx @subetha/proof-of-call@0.1.2 <command>`. Use the same
43
43
  package spec each time: the configuration records the absolute path of the binary and its sha256, and `poc mcp`
44
44
  and `poc serve`, when they start on their own, refuse to start when the file at that path is gone or has another
45
45
  sha256 (run `poc setup` again then).
@@ -129,7 +129,7 @@ Requirements: Node.js 22 or later, on macOS arm64 or Linux arm64 (glibc). Other
129
129
  ```sh
130
130
  claude mcp add subetha-requester -- poc mcp
131
131
  # without a global install:
132
- claude mcp add subetha-requester -- npx -y @subetha/proof-of-call@0.1.1 mcp
132
+ claude mcp add subetha-requester -- npx -y @subetha/proof-of-call@0.1.2 mcp
133
133
  ```
134
134
 
135
135
  ### Alternative: your own build of the `delivery` binary
@@ -165,8 +165,8 @@ pinned build.
165
165
  ```sh
166
166
  git clone https://github.com/subetha-labs/subetha-proof-of-call.git && cd subetha-proof-of-call
167
167
  npm ci
168
- cd packages/toolkit && npm pack # builds dist/poc.mjs and writes subetha-proof-of-call-0.1.1.tgz
169
- npm install -g ./subetha-proof-of-call-0.1.1.tgz
168
+ cd packages/toolkit && npm pack # builds dist/poc.mjs and writes subetha-proof-of-call-0.1.2.tgz
169
+ npm install -g ./subetha-proof-of-call-0.1.2.tgz
170
170
  ```
171
171
 
172
172
  ## Commands
package/dist/poc.mjs CHANGED
@@ -2570,6 +2570,13 @@ var DISCLOSURES = Object.freeze([
2570
2570
  "The worker reads the API's plaintext response.",
2571
2571
  "The worker holds the released payment header; it could use it outside the verified session (the loss is bounded to this one call)."
2572
2572
  ]);
2573
+ var WITNESS_DISCLOSURES = Object.freeze([
2574
+ DISCLOSURES[0],
2575
+ DISCLOSURES[1],
2576
+ "Proxy TLS mode: the witness's Verifier connects to the Provider and relays ciphertext between the witness's executor and the Provider; the claim trusts the witness and its network path to the Provider.",
2577
+ "The witness's executor reads the API request and its plaintext response while it runs the session. The worker receives nothing during the session; it receives the response afterwards, once this requester has verified the proof and decrypted its own copy.",
2578
+ "The witness holds the released payment header for this one call; the worker never receives it."
2579
+ ]);
2573
2580
  var ATTEST_MARGIN_MS = 6e4;
2574
2581
  function isRecord7(value) {
2575
2582
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -2660,7 +2667,7 @@ async function planCall(deps, options) {
2660
2667
  log2(`requester: refused before any payment: ${decision.reason}`);
2661
2668
  return { ok: false, stage: "policy", reason: decision.reason, signed: false };
2662
2669
  }
2663
- for (const line of DISCLOSURES) log2(`requester: disclosure: ${line}`);
2670
+ for (const line of transport.kind === "witness" ? WITNESS_DISCLOSURES : DISCLOSURES) log2(`requester: disclosure: ${line}`);
2664
2671
  const { ownerKey, ...subject } = quote;
2665
2672
  writePrivateJson(path6.join(callDir, "quote.json"), subject);
2666
2673
  writePrivateJson(path6.join(callDir, "owner.json"), { ownerKey });
@@ -5754,7 +5761,7 @@ ${String(stderr)}
5754
5761
  }
5755
5762
 
5756
5763
  // src/pins.ts
5757
- var TOOLKIT_VERSION = "0.1.1";
5764
+ var TOOLKIT_VERSION = "0.1.2";
5758
5765
  var ROUTER_SOURCE = Object.freeze({
5759
5766
  repository: "https://github.com/subetha-labs/subetha-router.git",
5760
5767
  /** `main` after PR #236 (zktls: publish the source of the delivery binary). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subetha/proof-of-call",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "SubEtha Proof of Call requester toolkit: hire an agent, pay its API calls through the SubEtha Router with your own key, and verify each call with zkTLS before you decrypt it (Base Sepolia test funds only)",
5
5
  "type": "module",
6
6
  "license": "MIT",