shinjuku-shield 0.3.147 → 0.3.148

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.147. The npm packages `shinjuku-shield` and
9
+ This is version 0.3.148. 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.147
15
+ npm install -g shinjuku@0.3.148
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.147 setup`.
21
+ installing, type `npx shinjuku@0.3.148 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.147 mcp
39
+ claude mcp add --scope user shinjuku -- npx -y --no-audit --no-fund shinjuku-shield@0.3.148 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.147", "mcp"] } } }
45
+ { "mcpServers": { "shinjuku": { "command": "npx", "args": ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.148", "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.147", "mcp"]
58
+ args = ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.148", "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": "a23e64e5d0a5f23235ec503e1b2cfe15d01aad2b58a478ef71f53e6b5bb51e5b",
5
- "bytes": 8986283,
6
- "sourceCommit": "e3083687b3241578c9542abd3c37a48910d4a145",
4
+ "sha256": "c6990ffc94f21e46128aa3386b0ca78934100ab75aea6687ed1ea7d01386c689",
5
+ "bytes": 8986535,
6
+ "sourceCommit": "4885d6bbb6136da01ebb3aa9ed57e471abea6294",
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-01T14:22:31.001Z"
1041
+ "publishedAt": "2026-11-01T14:33:44.965Z"
1042
1042
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "shinjuku-shield",
3
- "version": "0.3.147",
3
+ "version": "0.3.148",
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": "a23e64e5",
7
- "shinjukuSha256": "a23e64e5d0a5f23235ec503e1b2cfe15d01aad2b58a478ef71f53e6b5bb51e5b",
6
+ "shinjukuRelease": "c6990ffc",
7
+ "shinjukuSha256": "c6990ffc94f21e46128aa3386b0ca78934100ab75aea6687ed1ea7d01386c689",
8
8
  "license": "SEE LICENSE IN LICENSE.txt",
9
9
  "author": "Shinjuku Shielded",
10
10
  "homepage": "https://github.com/ShinjukuStaition/shinjuku-shield#readme",
@@ -111812,7 +111812,8 @@ async function installProofTools({
111812
111812
  for (const entry of entries) {
111813
111813
  try {
111814
111814
  const old = localPath(partial, entry.path);
111815
- if (!lstatSync(old).isFile()) continue;
111815
+ const info = lstatSync(old);
111816
+ if (!info.isFile() || info.size > LIMITS.file) continue;
111816
111817
  const bytes2 = readFileSync(old);
111817
111818
  if (sha2569(bytes2) === entry.sha256) kept2.push({ entry, bytes: bytes2 });
111818
111819
  } catch {
@@ -111891,6 +111892,9 @@ async function installProofTools({
111891
111892
  }
111892
111893
  };
111893
111894
  for (const { entry, bytes: bytes2 } of kept2) {
111895
+ if (bytes2.length > budget.left) {
111896
+ throw fail27("setup_download_too_large", `the setup files are larger than ${LIMITS.total} bytes (the most setup accepts), so they were not kept`);
111897
+ }
111894
111898
  write(entry, bytes2);
111895
111899
  budget.left -= bytes2.length;
111896
111900
  }