shinjuku-shielded 0.3.65 → 0.3.66

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/manifest.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "schema": "carbon-shielded-wallet/bundle-manifest/v1",
3
3
  "file": "shinjuku-wallet.mjs",
4
- "sha256": "f1563e53fc8d137fe44e6fb65d7247fa157b3066b7129b41ef9f99d2e3061ba7",
5
- "bytes": 12180292,
6
- "sourceCommit": "274f1d09a81983902118eeb923b5a4093acd757c",
4
+ "sha256": "402e7c3666bf4dfe147de8229872bdf611540526a15d5fdb690392c81b878b9d",
5
+ "bytes": 12181283,
6
+ "sourceCommit": "07b54a455cdbafc18b7f79b107b0cf9e5e722be9",
7
7
  "sourceDirty": false,
8
8
  "installRecordMatchesLockfile": true,
9
9
  "releaseRule": "valid only when two fresh npm ci --ignore-scripts builds on different OSes give the same sha256; installRecordMatchesLockfile true means every entry npm installed equals its package-lock.json entry and every entry not marked optional, devOptional included, is installed: an optional entry (a package for another platform) may be absent",
@@ -1282,5 +1282,5 @@
1282
1282
  "version": "1.8.0"
1283
1283
  }
1284
1284
  ],
1285
- "publishedAt": "2026-10-22T10:20:32.328Z"
1285
+ "publishedAt": "2026-10-22T11:29:33.345Z"
1286
1286
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "shinjuku-shielded",
3
- "version": "0.3.65",
3
+ "version": "0.3.66",
4
4
  "mcpName": "io.github.ShinjukuStaition/shinjuku-mcp",
5
5
  "description": "Shinjuku Shielded, the private x402 facilitator on Solana: the self-custody wallet CLI and its MCP server. Shield, pay, and unshield USDC from any MCP agent, under caps you set.",
6
- "shinjukuRelease": "f1563e53",
7
- "shinjukuSha256": "f1563e53fc8d137fe44e6fb65d7247fa157b3066b7129b41ef9f99d2e3061ba7",
6
+ "shinjukuRelease": "402e7c36",
7
+ "shinjukuSha256": "402e7c3666bf4dfe147de8229872bdf611540526a15d5fdb690392c81b878b9d",
8
8
  "license": "SEE LICENSE IN LICENSE.txt",
9
9
  "author": "Shinjuku Shielded",
10
10
  "homepage": "https://github.com/ShinjukuStaition/shinjuku-mcp#readme",
@@ -57277,6 +57277,26 @@ function validateRecord(raw, ordinal, { programId, pool: pool2, poolDomain, snap
57277
57277
  });
57278
57278
  }
57279
57279
  function requestPage(history, pool2, from) {
57280
+ return from === 0 ? requestPageZero(history, pool2) : requestPageNow(history, pool2, from);
57281
+ }
57282
+ function requestPageZero(history, pool2) {
57283
+ const source = typeof history?.rpcEndpoint === "string" ? history.rpcEndpoint : history;
57284
+ let byPool = pageZeroInFlight.get(source);
57285
+ const joined = byPool?.get(pool2);
57286
+ if (joined !== void 0) {
57287
+ markPhase("compact-page0-joined");
57288
+ return joined.then((answer) => answer.error === void 0 ? answer : requestPageNow(history, pool2, 0));
57289
+ }
57290
+ const pending = requestPageNow(history, pool2, 0);
57291
+ if (byPool === void 0) pageZeroInFlight.set(source, byPool = /* @__PURE__ */ new Map());
57292
+ byPool.set(pool2, pending);
57293
+ pending.then(() => {
57294
+ if (byPool.get(pool2) === pending) byPool.delete(pool2);
57295
+ if (byPool.size === 0 && pageZeroInFlight.get(source) === byPool) pageZeroInFlight.delete(source);
57296
+ });
57297
+ return pending;
57298
+ }
57299
+ function requestPageNow(history, pool2, from) {
57280
57300
  const attempt = async (index) => {
57281
57301
  try {
57282
57302
  return { response: await history._rpcRequest("getP03Transitions", [pool2, {
@@ -58094,7 +58114,7 @@ async function tryCompactP03HistoryReport(options) {
58094
58114
  return { ok: false, reason, ...detail ? { detail } : {}, error };
58095
58115
  }
58096
58116
  }
58097
- var import_web397, P03_COMPACT_HISTORY_SOURCE_MODEL, P03_COMPACT_PAGE, P03_COMPACT_SPOT_CHECKS, FIELD_MODULUS5, SUBTREE_LEAVES3, LOCAL_DEPTH2, OUTER_DEPTH2, PRIMARY_PROOF_BYTES2, FIELD_BYTES3, ED25519_SPKI_PREFIX2, VERSION_1_PREFIX2, HEX64, BASE58, REPLAY_STORE_INDEXED2, PROFILES2, MOVE_HEAD_BYTES2, MOVE_INSERTED_VALUES2, refuse3, hash4, bitAt, zeroRootsMemo, lastFolds, PRE_FOLD_SLICE_MS, preFolds, hex64, droppedPools, verifyQuietMs, VERIFY_SLICE_MS, VERIFY_POLL_MS, verifying, unrefTurn, isSignature, isIndex, IMPORT_KEYS, IMPORT_MAX_VALUES, LIST_ATTEMPTS, OWN_READ_TIMEOUT_MS, BOUNDED_OWN_METHODS, compactReportsRunning, compactHistoryReadsRunning;
58117
+ var import_web397, P03_COMPACT_HISTORY_SOURCE_MODEL, P03_COMPACT_PAGE, P03_COMPACT_SPOT_CHECKS, FIELD_MODULUS5, SUBTREE_LEAVES3, LOCAL_DEPTH2, OUTER_DEPTH2, PRIMARY_PROOF_BYTES2, FIELD_BYTES3, ED25519_SPKI_PREFIX2, VERSION_1_PREFIX2, HEX64, BASE58, REPLAY_STORE_INDEXED2, PROFILES2, MOVE_HEAD_BYTES2, MOVE_INSERTED_VALUES2, refuse3, hash4, bitAt, zeroRootsMemo, lastFolds, PRE_FOLD_SLICE_MS, preFolds, hex64, droppedPools, verifyQuietMs, VERIFY_SLICE_MS, VERIFY_POLL_MS, verifying, unrefTurn, isSignature, isIndex, IMPORT_KEYS, IMPORT_MAX_VALUES, LIST_ATTEMPTS, pageZeroInFlight, OWN_READ_TIMEOUT_MS, BOUNDED_OWN_METHODS, compactReportsRunning, compactHistoryReadsRunning;
58098
58118
  var init_compact = __esm({
58099
58119
  "wallet/src/history/compact.mjs"() {
58100
58120
  "use strict";
@@ -58224,6 +58244,7 @@ var init_compact = __esm({
58224
58244
  IMPORT_KEYS = ["afterOrdinal", "instructionIndex", "record", "signature", "slot", "transactionIndex", "values"];
58225
58245
  IMPORT_MAX_VALUES = 3;
58226
58246
  LIST_ATTEMPTS = 6;
58247
+ pageZeroInFlight = /* @__PURE__ */ new Map();
58227
58248
  OWN_READ_TIMEOUT_MS = HISTORY_RPC_REQUEST_TIMEOUT_MS;
58228
58249
  BOUNDED_OWN_METHODS = /* @__PURE__ */ new Set(["getAccountInfo", "getAccountInfoAndContext", "getMultipleAccountsInfo", "getMultipleAccountsInfoAndContext"]);
58229
58250
  compactReportsRunning = 0;