shinjuku-shield 0.3.146 → 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 +6 -6
- package/manifest.json +4 -4
- package/package.json +3 -3
- package/shinjuku-wallet.mjs +54 -4
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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": "
|
|
5
|
-
"bytes":
|
|
6
|
-
"sourceCommit": "
|
|
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-
|
|
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.
|
|
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": "
|
|
7
|
-
"shinjukuSha256": "
|
|
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",
|
package/shinjuku-wallet.mjs
CHANGED
|
@@ -111812,13 +111812,60 @@ async function installProofTools({
|
|
|
111812
111812
|
for (const entry of entries) {
|
|
111813
111813
|
try {
|
|
111814
111814
|
const old = localPath(partial, entry.path);
|
|
111815
|
-
|
|
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 {
|
|
111819
111820
|
}
|
|
111820
111821
|
}
|
|
111821
111822
|
}
|
|
111823
|
+
const keptAt = new Set(kept2.map(({ entry }) => entry.path));
|
|
111824
|
+
let rootReal;
|
|
111825
|
+
try {
|
|
111826
|
+
rootReal = realpathSync.native(toolsRoot);
|
|
111827
|
+
} catch {
|
|
111828
|
+
rootReal = void 0;
|
|
111829
|
+
}
|
|
111830
|
+
const plainPath = (sibling, path) => {
|
|
111831
|
+
let at = sibling;
|
|
111832
|
+
for (const part of path.split("/")) {
|
|
111833
|
+
at = join24(at, part);
|
|
111834
|
+
const info2 = lstatSync(at);
|
|
111835
|
+
if (info2.isSymbolicLink()) return void 0;
|
|
111836
|
+
}
|
|
111837
|
+
const info = lstatSync(at);
|
|
111838
|
+
if (!info.isFile() || info.size > LIMITS.file) return void 0;
|
|
111839
|
+
const real = realpathSync.native(at);
|
|
111840
|
+
return rootReal !== void 0 && real.toLowerCase().startsWith((rootReal + sep3).toLowerCase()) ? at : void 0;
|
|
111841
|
+
};
|
|
111842
|
+
let siblings = [];
|
|
111843
|
+
try {
|
|
111844
|
+
siblings = readdirSync(toolsRoot).filter((name) => DIR2.test(name) && name !== dir).map((name) => join24(toolsRoot, name)).filter((folderPath) => {
|
|
111845
|
+
try {
|
|
111846
|
+
return lstatSync(folderPath).isDirectory();
|
|
111847
|
+
} catch {
|
|
111848
|
+
return false;
|
|
111849
|
+
}
|
|
111850
|
+
});
|
|
111851
|
+
} catch {
|
|
111852
|
+
siblings = [];
|
|
111853
|
+
}
|
|
111854
|
+
for (const entry of entries) {
|
|
111855
|
+
if (keptAt.has(entry.path)) continue;
|
|
111856
|
+
for (const sibling of siblings) {
|
|
111857
|
+
try {
|
|
111858
|
+
const candidate = localPath(sibling, entry.path);
|
|
111859
|
+
if (!candidate.startsWith(sibling + sep3) || plainPath(sibling, entry.path) === void 0) continue;
|
|
111860
|
+
const bytes2 = readFileSync(candidate);
|
|
111861
|
+
if (sha2569(bytes2) !== entry.sha256) continue;
|
|
111862
|
+
kept2.push({ entry, bytes: bytes2 });
|
|
111863
|
+
keptAt.add(entry.path);
|
|
111864
|
+
break;
|
|
111865
|
+
} catch {
|
|
111866
|
+
}
|
|
111867
|
+
}
|
|
111868
|
+
}
|
|
111822
111869
|
if (leftover) {
|
|
111823
111870
|
if (leftover.isSymbolicLink()) unlinkSync(partial);
|
|
111824
111871
|
else rmSync(partial, { recursive: true, force: true });
|
|
@@ -111845,6 +111892,9 @@ async function installProofTools({
|
|
|
111845
111892
|
}
|
|
111846
111893
|
};
|
|
111847
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
|
+
}
|
|
111848
111898
|
write(entry, bytes2);
|
|
111849
111899
|
budget.left -= bytes2.length;
|
|
111850
111900
|
}
|
|
@@ -111867,7 +111917,7 @@ async function installProofTools({
|
|
|
111867
111917
|
if (missing.length > 0) {
|
|
111868
111918
|
say3(
|
|
111869
111919
|
`${totalBytes === void 0 ? "" : `${megabytes(totalBytes)} MB in `}${entries.length} files`,
|
|
111870
|
-
[kept2.length ? `${kept2.length} files, ${megabytes(keptBytes)} MB, already
|
|
111920
|
+
[kept2.length ? `${kept2.length} files, ${megabytes(keptBytes)} MB, already on this computer` : void 0, torNote]
|
|
111871
111921
|
);
|
|
111872
111922
|
ticker = setInterval(() => {
|
|
111873
111923
|
const done = keptBytes + arrived;
|
|
@@ -112021,8 +112071,8 @@ var init_proofTools = __esm({
|
|
|
112021
112071
|
init_config();
|
|
112022
112072
|
PINNED_PROOF_TOOLS = Object.freeze({
|
|
112023
112073
|
[DEFAULT_FACILITATOR_ORIGIN]: Object.freeze({
|
|
112024
|
-
dir: "
|
|
112025
|
-
sumsSha256: "
|
|
112074
|
+
dir: "29a6a9c7",
|
|
112075
|
+
sumsSha256: "29a6a9c77ae04a76abf29670f580759df450e7e393e803d7756f21beabbf4838"
|
|
112026
112076
|
})
|
|
112027
112077
|
});
|
|
112028
112078
|
UPDATE_NEXT = `update the wallet: npx -y --no-audit --no-fund ${NPX_PACKAGE}@latest setup`;
|