@prismnetwork/agent-sdk 0.7.1 → 0.7.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.
Files changed (2) hide show
  1. package/attest.mjs +7 -1
  2. package/package.json +1 -1
package/attest.mjs CHANGED
@@ -683,7 +683,13 @@ async function sessionChecks(t, { root, fetchImpl, sessionId, servedAt }) {
683
683
  async function gpuChecks(t, { root, fetchImpl, model, digest, quote, collateralUrl, now }) {
684
684
  let fetched;
685
685
  try {
686
- const query = model ? `?model=${encodeURIComponent(model)}` : "";
686
+ // Name the instance we need. The model runs on several, and the endpoint
687
+ // answers from whichever the upstream picks, so asking blind returns a
688
+ // sibling most of the time: same image, same compose, different RTMR3.
689
+ const params = new URLSearchParams();
690
+ if (model) params.set("model", model);
691
+ if (digest) params.set("keyset_digest", digest);
692
+ const query = params.size ? `?${params}` : "";
687
693
  fetched = await getJson(fetchImpl, `${root}/v1/gpu-evidence${query}`, "the GPU evidence endpoint");
688
694
  } catch (err) {
689
695
  fetched = { ok: false, detail: err?.message ?? String(err) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismnetwork/agent-sdk",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Headless GPU leasing and renter-encrypted storage on Prism Network for wallet-holding agents.",
5
5
  "type": "module",
6
6
  "main": "prism.mjs",