shinjuku-shielded 0.3.21 → 0.3.22

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": "79f40d948e80ecdbe29b67d336b971ecc50c3f6b220349e0915ff7d8cae7178d",
5
- "bytes": 11130649,
6
- "sourceCommit": "cfeed80b47acc01080d5499b8bcc371155aadaaa",
4
+ "sha256": "00da3f6dfb766d83cd9f1fdb8c3a335c2de51a5dbab0d13b0e6ce3d50106cf02",
5
+ "bytes": 11131156,
6
+ "sourceCommit": "de187f4fedfed133b529b7763adc27c639613f2f",
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",
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "shinjuku-shielded",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
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": "79f40d94",
7
- "shinjukuSha256": "79f40d948e80ecdbe29b67d336b971ecc50c3f6b220349e0915ff7d8cae7178d",
6
+ "shinjukuRelease": "00da3f6d",
7
+ "shinjukuSha256": "00da3f6dfb766d83cd9f1fdb8c3a335c2de51a5dbab0d13b0e6ce3d50106cf02",
8
8
  "license": "SEE LICENSE IN LICENSE.txt",
9
9
  "author": "Shinjuku Shielded",
10
10
  "homepage": "https://github.com/ShinjukuStaition/shinjuku-mcp#readme",
@@ -118251,8 +118251,8 @@ function channelListsSet(body, { facilitator, pool, dir, sumsSha256 }) {
118251
118251
  // wallet/src/setup/proofTools.mjs
118252
118252
  var PINNED_PROOF_TOOLS = Object.freeze({
118253
118253
  [DEFAULT_FACILITATOR_ORIGIN]: Object.freeze({
118254
- dir: "5fa83692",
118255
- sumsSha256: "5fa8369234088b532977254d91109e7eced3aef0228b9ed55c7c8a02e0a9a908"
118254
+ dir: "78c71143",
118255
+ sumsSha256: "78c71143ecedf22096fdc1901eda5160e29c141f6961cce935b92e714ff85bd9"
118256
118256
  })
118257
118257
  });
118258
118258
  var UPDATE_NEXT = "update the wallet: npx -y shinjuku-shielded@latest setup";
@@ -122861,7 +122861,7 @@ function createSuccessionScheduler(options) {
122861
122861
  } = options;
122862
122862
  const now = options.now ?? Date.now;
122863
122863
  const randomInt9 = options.randomInt ?? cryptoRandomInt;
122864
- const valueOf = options.valueOf ?? ((store) => {
122864
+ const valueOf = (Object.hasOwn(options, "valueOf") ? options.valueOf : void 0) ?? ((store) => {
122865
122865
  try {
122866
122866
  return computeBalance({ store, snapshotRead: readBalanceSnapshot(store), source: "local" }).split?.shieldedAtomic ?? null;
122867
122867
  } catch {
@@ -122951,6 +122951,7 @@ function createSuccessionScheduler(options) {
122951
122951
  });
122952
122952
  }
122953
122953
  if (verified.record.importDone) job = schedule(store, job);
122954
+ else job = save2(store, job, {});
122954
122955
  return job;
122955
122956
  }
122956
122957
  const base = (entry, value, verified) => ({
@@ -123054,6 +123055,10 @@ function createSuccessionScheduler(options) {
123054
123055
  }
123055
123056
  switch (job.state) {
123056
123057
  case "linked-waiting-import": {
123058
+ try {
123059
+ if (hasWallet(job.to) && !readSuccessionJob(storeOf(job.to), entry.from)) job = save2(store, job, {});
123060
+ } catch {
123061
+ }
123057
123062
  if (now() - (recordCheckedAt.get(entry.from) ?? -Infinity) < SUCCESSION_TICK_MS - 1e3) return job;
123058
123063
  recordCheckedAt.set(entry.from, now());
123059
123064
  let verified;
@@ -126524,7 +126529,10 @@ function createWalletTools({
126524
126529
  await mover.refreshRelease();
126525
126530
  } catch {
126526
126531
  }
126527
- return json({ ok: true, ...mover.status(), ...extra });
126532
+ const moved2 = mover.status();
126533
+ const lead = switches.find((item) => item.state !== "done") ?? switches[0];
126534
+ if (moved2.state === "none" && lead) return json({ ok: true, ...moved2, state: lead.state, detail: lead.message, next: POOL_SWITCH_NEXT, ...extra });
126535
+ return json({ ok: true, ...moved2, ...extra });
126528
126536
  }
126529
126537
  };
126530
126538
  const discover = discoverTool(join26(dirname23(session.walletPath), "discover-cache"));