shinjuku-shield 0.3.200 → 0.3.202
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 +6 -6
- package/package.json +3 -3
- package/shinjuku-seller.mjs +4 -3
- package/shinjuku-wallet.mjs +534 -387
package/README.md
CHANGED
|
@@ -5,12 +5,12 @@ web services and AI answers from your private balance, so the payment does
|
|
|
5
5
|
not show who paid. It works inside your AI app (Claude, Cursor, Codex) and in
|
|
6
6
|
a terminal. Only you hold the keys: they never leave your computer.
|
|
7
7
|
|
|
8
|
-
This is version 0.3.
|
|
8
|
+
This is version 0.3.202. The command is `shinjuku`.
|
|
9
9
|
|
|
10
10
|
## Set up
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
|
-
npx -y shinjuku@0.3.
|
|
13
|
+
npx -y shinjuku@0.3.202 setup
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Setup does every step for you:
|
|
@@ -107,14 +107,14 @@ Add it yourself. The name of the wallet in your app is `shinjuku`.
|
|
|
107
107
|
Claude Code:
|
|
108
108
|
|
|
109
109
|
```sh
|
|
110
|
-
claude mcp add --scope user shinjuku -- npx -y --no-audit --no-fund shinjuku-shield@0.3.
|
|
110
|
+
claude mcp add --scope user shinjuku -- npx -y --no-audit --no-fund shinjuku-shield@0.3.202 mcp
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
In this test version only (not offered yet), the same entry for Claude Desktop
|
|
114
114
|
(`claude_desktop_config.json`) or Cursor (`~/.cursor/mcp.json`):
|
|
115
115
|
|
|
116
116
|
```json
|
|
117
|
-
{ "mcpServers": { "shinjuku": { "command": "npx", "args": ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.
|
|
117
|
+
{ "mcpServers": { "shinjuku": { "command": "npx", "args": ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.202", "mcp"] } } }
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
On Windows, if the app cannot find `npx`, use `"command": "cmd"` and put
|
|
@@ -126,7 +126,7 @@ CLI read `~/.codex/config.toml`):
|
|
|
126
126
|
```toml
|
|
127
127
|
[mcp_servers.shinjuku]
|
|
128
128
|
command = "npx"
|
|
129
|
-
args = ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.
|
|
129
|
+
args = ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.202", "mcp"]
|
|
130
130
|
startup_timeout_sec = 120
|
|
131
131
|
tool_timeout_sec = 300
|
|
132
132
|
```
|
|
@@ -144,7 +144,7 @@ with the Releases table in
|
|
|
144
144
|
Versions are published from GitHub Actions with npm provenance.
|
|
145
145
|
|
|
146
146
|
`shinjuku-shield` is the package that holds the wallet. `shinjuku-shielded`
|
|
147
|
-
0.3.
|
|
147
|
+
0.3.202, its older name, runs this package at the same version, so wallets
|
|
148
148
|
installed under that name keep updating. New installs use `shinjuku`.
|
|
149
149
|
|
|
150
150
|
The full guide is
|
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": "70b69f2aadc0757823442d0bc3a0b23409df574750044b69bf9cb4be83095588",
|
|
5
|
+
"bytes": 9493365,
|
|
6
|
+
"sourceCommit": "76a5965faa96b289821432ad0b444a0b1ad52819",
|
|
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",
|
|
@@ -1040,8 +1040,8 @@
|
|
|
1040
1040
|
],
|
|
1041
1041
|
"seller": {
|
|
1042
1042
|
"file": "shinjuku-seller.mjs",
|
|
1043
|
-
"sha256": "
|
|
1044
|
-
"bytes":
|
|
1043
|
+
"sha256": "470aac0b580569eea957eff95a14a3d54f89f61d86bd7813a07304e4c93e3bf1",
|
|
1044
|
+
"bytes": 3734412,
|
|
1045
1045
|
"entry": "wallet/src/seller/exact/index.mjs",
|
|
1046
1046
|
"external": [
|
|
1047
1047
|
"@x402/core/http",
|
|
@@ -1932,5 +1932,5 @@
|
|
|
1932
1932
|
}
|
|
1933
1933
|
]
|
|
1934
1934
|
},
|
|
1935
|
-
"publishedAt": "2026-11-
|
|
1935
|
+
"publishedAt": "2026-11-09T07:04:05.577Z"
|
|
1936
1936
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinjuku-shield",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.202",
|
|
4
4
|
"mcpName": "io.github.ShinjukuStaition/shinjuku-shield",
|
|
5
5
|
"description": "Shinjuku Shield, private x402 payments 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": "70b69f2a",
|
|
7
|
+
"shinjukuSha256": "70b69f2aadc0757823442d0bc3a0b23409df574750044b69bf9cb4be83095588",
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
9
9
|
"author": "Shinjuku Shield",
|
|
10
10
|
"homepage": "https://github.com/ShinjukuStaition/shinjuku-shield#readme",
|
package/shinjuku-seller.mjs
CHANGED
|
@@ -39800,8 +39800,8 @@ var init_errorCodes = __esm({
|
|
|
39800
39800
|
"mcp_unshield_recipient_refused",
|
|
39801
39801
|
"mcp_unshield_send_open",
|
|
39802
39802
|
"mcp_shield_cap_exceeded",
|
|
39803
|
+
// No answer makes it since 2026-11-09 (no balance limit); an older old-transfer record can still hold it as its waitCode.
|
|
39803
39804
|
"mcp_shield_above_balance_cap",
|
|
39804
|
-
"mcp_balance_unknown",
|
|
39805
39805
|
"mcp_unshield_cap_exceeded",
|
|
39806
39806
|
"mcp_move_count_unreadable",
|
|
39807
39807
|
"mcp_request_id_reused",
|
|
@@ -58768,10 +58768,11 @@ async function prepareRelayedDepositLeased({
|
|
|
58768
58768
|
if (amount < minimum) fail13(pocketIndex !== void 0 && config.pocketMinimumAtomic === void 0 ? "relay_pocket_reshield_not_offered" : "relay_amount_below_facilitator_minimum");
|
|
58769
58769
|
const pool2 = await poolState(connection, id);
|
|
58770
58770
|
if (inbound && amount > pool2.maxDepositValue) fail13("relay_inbound_above_pool_limit");
|
|
58771
|
-
|
|
58771
|
+
const limits = { maxDepositValueAtomic: String(pool2.maxDepositValue), maxPoolValueAtomic: String(pool2.maxPoolValue) };
|
|
58772
|
+
if (amount > pool2.maxDepositValue) throw Object.assign(new Error("p03_deposit_amount_above_pool_deposit_cap"), limits);
|
|
58772
58773
|
if (BigInt(pool2.depositCount) >= BigInt(pool2.maxDeposits)) fail13("pool_at_deposit_cap");
|
|
58773
58774
|
const vaultAmount = await tokenAmount(connection, pool2.vault);
|
|
58774
|
-
if (vaultAmount === void 0 || vaultAmount + amount > pool2.maxPoolValue)
|
|
58775
|
+
if (vaultAmount === void 0 || vaultAmount + amount > pool2.maxPoolValue) throw Object.assign(new Error("p03_deposit_pool_value_cap"), limits);
|
|
58775
58776
|
checkAmount?.({ amount, pool: pool2, sourceAmount: void 0, vaultAmount, phase: "before-address" });
|
|
58776
58777
|
if (!record) {
|
|
58777
58778
|
const unresolved = inbound ? [] : store.listWal().filter((entry) => entry.startsWith("deposit-")).map((entry) => store.readWal(entry)).filter((entry) => entry?.schema === DEPOSIT_WAL_SCHEMA && !RESOLVED_STATES.has(entry.state) && entry.relay?.inbound === void 0);
|