shinjuku-shield 0.3.146 → 0.3.147

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
@@ -6,19 +6,19 @@ answers privately, in a terminal chat or for your agent app. Its `mcp`
6
6
  command runs a local MCP server (stdio) for your agent. Your keys never
7
7
  leave your machine.
8
8
 
9
- This is version 0.3.146. The npm packages `shinjuku-shield` and
9
+ This is version 0.3.147. The npm packages `shinjuku-shield` and
10
10
  `shinjuku-shielded` hold the same files. The command is `shinjuku`.
11
11
 
12
12
  ## Set up
13
13
 
14
14
  ```sh
15
- npm install -g shinjuku@0.3.146
15
+ npm install -g shinjuku@0.3.147
16
16
  shinjuku setup
17
17
  ```
18
18
 
19
19
  Type the two lines as they are. `npx install shinjuku` does not work: npx
20
20
  reads `install` as the name of another npm package. To set up without
21
- installing, type `npx shinjuku@0.3.146 setup`.
21
+ installing, type `npx shinjuku@0.3.147 setup`.
22
22
 
23
23
  Setup makes the wallet on this machine, a private passphrase file, and the
24
24
  checked proof tools (about 191 MB), and writes `config.json`. It also writes
@@ -36,13 +36,13 @@ Every wallet command works after `shinjuku`, for example `shinjuku balance`,
36
36
  Claude Code:
37
37
 
38
38
  ```sh
39
- claude mcp add --scope user shinjuku -- npx -y --no-audit --no-fund shinjuku-shield@0.3.146 mcp
39
+ claude mcp add --scope user shinjuku -- npx -y --no-audit --no-fund shinjuku-shield@0.3.147 mcp
40
40
  ```
41
41
 
42
42
  Claude Desktop (`claude_desktop_config.json`) or Cursor (`~/.cursor/mcp.json`):
43
43
 
44
44
  ```json
45
- { "mcpServers": { "shinjuku": { "command": "npx", "args": ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.146", "mcp"] } } }
45
+ { "mcpServers": { "shinjuku": { "command": "npx", "args": ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.147", "mcp"] } } }
46
46
  ```
47
47
 
48
48
  On native Windows, if the host cannot find `npx`, use `"command": "cmd"` and
@@ -55,7 +55,7 @@ Codex (the Codex app and Codex CLI read the same file, `~/.codex/config.toml`):
55
55
  ```toml
56
56
  [mcp_servers.shinjuku]
57
57
  command = "npx"
58
- args = ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.146", "mcp"]
58
+ args = ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.147", "mcp"]
59
59
  startup_timeout_sec = 120
60
60
  tool_timeout_sec = 300
61
61
  ```
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": "1911a3de9cfa2a0a75d42a1772b0e49bac0dfa9c89e02624253e9c3866931ea0",
5
- "bytes": 8984781,
6
- "sourceCommit": "8478091ce2a9dc67a8aa5542f341885f42dba3bb",
4
+ "sha256": "a23e64e5d0a5f23235ec503e1b2cfe15d01aad2b58a478ef71f53e6b5bb51e5b",
5
+ "bytes": 8986283,
6
+ "sourceCommit": "e3083687b3241578c9542abd3c37a48910d4a145",
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",
@@ -1038,5 +1038,5 @@
1038
1038
  "version": "1.8.0"
1039
1039
  }
1040
1040
  ],
1041
- "publishedAt": "2026-11-01T13:00:07.305Z"
1041
+ "publishedAt": "2026-11-01T14:22:31.001Z"
1042
1042
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "shinjuku-shield",
3
- "version": "0.3.146",
3
+ "version": "0.3.147",
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": "1911a3de",
7
- "shinjukuSha256": "1911a3de9cfa2a0a75d42a1772b0e49bac0dfa9c89e02624253e9c3866931ea0",
6
+ "shinjukuRelease": "a23e64e5",
7
+ "shinjukuSha256": "a23e64e5d0a5f23235ec503e1b2cfe15d01aad2b58a478ef71f53e6b5bb51e5b",
8
8
  "license": "SEE LICENSE IN LICENSE.txt",
9
9
  "author": "Shinjuku Shielded",
10
10
  "homepage": "https://github.com/ShinjukuStaition/shinjuku-shield#readme",
@@ -111819,6 +111819,52 @@ async function installProofTools({
111819
111819
  }
111820
111820
  }
111821
111821
  }
111822
+ const keptAt = new Set(kept2.map(({ entry }) => entry.path));
111823
+ let rootReal;
111824
+ try {
111825
+ rootReal = realpathSync.native(toolsRoot);
111826
+ } catch {
111827
+ rootReal = void 0;
111828
+ }
111829
+ const plainPath = (sibling, path) => {
111830
+ let at = sibling;
111831
+ for (const part of path.split("/")) {
111832
+ at = join24(at, part);
111833
+ const info2 = lstatSync(at);
111834
+ if (info2.isSymbolicLink()) return void 0;
111835
+ }
111836
+ const info = lstatSync(at);
111837
+ if (!info.isFile() || info.size > LIMITS.file) return void 0;
111838
+ const real = realpathSync.native(at);
111839
+ return rootReal !== void 0 && real.toLowerCase().startsWith((rootReal + sep3).toLowerCase()) ? at : void 0;
111840
+ };
111841
+ let siblings = [];
111842
+ try {
111843
+ siblings = readdirSync(toolsRoot).filter((name) => DIR2.test(name) && name !== dir).map((name) => join24(toolsRoot, name)).filter((folderPath) => {
111844
+ try {
111845
+ return lstatSync(folderPath).isDirectory();
111846
+ } catch {
111847
+ return false;
111848
+ }
111849
+ });
111850
+ } catch {
111851
+ siblings = [];
111852
+ }
111853
+ for (const entry of entries) {
111854
+ if (keptAt.has(entry.path)) continue;
111855
+ for (const sibling of siblings) {
111856
+ try {
111857
+ const candidate = localPath(sibling, entry.path);
111858
+ if (!candidate.startsWith(sibling + sep3) || plainPath(sibling, entry.path) === void 0) continue;
111859
+ const bytes2 = readFileSync(candidate);
111860
+ if (sha2569(bytes2) !== entry.sha256) continue;
111861
+ kept2.push({ entry, bytes: bytes2 });
111862
+ keptAt.add(entry.path);
111863
+ break;
111864
+ } catch {
111865
+ }
111866
+ }
111867
+ }
111822
111868
  if (leftover) {
111823
111869
  if (leftover.isSymbolicLink()) unlinkSync(partial);
111824
111870
  else rmSync(partial, { recursive: true, force: true });
@@ -111867,7 +111913,7 @@ async function installProofTools({
111867
111913
  if (missing.length > 0) {
111868
111914
  say3(
111869
111915
  `${totalBytes === void 0 ? "" : `${megabytes(totalBytes)} MB in `}${entries.length} files`,
111870
- [kept2.length ? `${kept2.length} files, ${megabytes(keptBytes)} MB, already here from a stopped run` : void 0, torNote]
111916
+ [kept2.length ? `${kept2.length} files, ${megabytes(keptBytes)} MB, already on this computer` : void 0, torNote]
111871
111917
  );
111872
111918
  ticker = setInterval(() => {
111873
111919
  const done = keptBytes + arrived;
@@ -112021,8 +112067,8 @@ var init_proofTools = __esm({
112021
112067
  init_config();
112022
112068
  PINNED_PROOF_TOOLS = Object.freeze({
112023
112069
  [DEFAULT_FACILITATOR_ORIGIN]: Object.freeze({
112024
- dir: "a9af32df",
112025
- sumsSha256: "a9af32df6b7ff7e3243bd607b7ff582da5732fa422f28afd9b8bc3e9f0d6c741"
112070
+ dir: "29a6a9c7",
112071
+ sumsSha256: "29a6a9c77ae04a76abf29670f580759df450e7e393e803d7756f21beabbf4838"
112026
112072
  })
112027
112073
  });
112028
112074
  UPDATE_NEXT = `update the wallet: npx -y --no-audit --no-fund ${NPX_PACKAGE}@latest setup`;