shinjuku 0.3.80 → 0.3.82
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 -5
- package/package.json +3 -3
- package/shinjuku.mjs +5 -3
package/README.md
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
# shinjuku
|
|
2
2
|
|
|
3
3
|
The `shinjuku` command of Shinjuku Shield: a self-custody wallet that pays
|
|
4
|
-
x402 URLs privately from a shielded USDC balance on Solana
|
|
5
|
-
the wallet package `shinjuku-
|
|
6
|
-
same version number as this package). Your
|
|
4
|
+
x402 URLs privately from a shielded USDC balance on Solana, and pays for AI
|
|
5
|
+
answers privately. This package runs the wallet package `shinjuku-shield` at
|
|
6
|
+
the exact version it names (the same version number as this package). Your
|
|
7
|
+
keys never leave your machine.
|
|
7
8
|
|
|
8
9
|
```sh
|
|
9
|
-
npm install -g shinjuku@0.3.
|
|
10
|
+
npm install -g shinjuku@0.3.82
|
|
10
11
|
shinjuku setup
|
|
11
12
|
```
|
|
12
13
|
|
|
13
14
|
Every wallet command works the same way after `shinjuku`, for example
|
|
14
|
-
`shinjuku balance` or `shinjuku help`.
|
|
15
|
+
`shinjuku balance`, `shinjuku chat` or `shinjuku help`.
|
|
15
16
|
|
|
16
17
|
Docs, host configs and the release table:
|
|
17
18
|
https://github.com/ShinjukuStaition/shinjuku-mcp
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinjuku",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "The shinjuku command: runs the Shinjuku Shield wallet (npm shinjuku-
|
|
3
|
+
"version": "0.3.82",
|
|
4
|
+
"description": "The shinjuku command: runs the Shinjuku Shield wallet (npm shinjuku-shield) at this exact version. Pay x402 URLs and AI answers privately from a shielded USDC balance on Solana.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Shinjuku Shield",
|
|
7
7
|
"homepage": "https://github.com/ShinjukuStaition/shinjuku-mcp#readme",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"LICENSE.txt"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"shinjuku-
|
|
33
|
+
"shinjuku-shield": "0.3.82"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": "^22.21.0 || >=24.0.0"
|
package/shinjuku.mjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// `shinjuku` runs the Shinjuku Shield wallet (
|
|
3
|
-
//
|
|
2
|
+
// `shinjuku` runs the Shinjuku Shield wallet (the one package in package.json dependencies: shinjuku-shield, or
|
|
3
|
+
// shinjuku-shielded before 0.3.81) at the exact version named there: the same commands, input, output and exit code as
|
|
4
|
+
// the wallet's own shinjuku-wallet command.
|
|
4
5
|
import { realpathSync } from "node:fs";
|
|
5
6
|
import { createRequire } from "node:module";
|
|
6
7
|
import { pathToFileURL } from "node:url";
|
|
7
8
|
|
|
8
9
|
const require = createRequire(import.meta.url);
|
|
9
|
-
const
|
|
10
|
+
const [walletPackage] = Object.keys(require("./package.json").dependencies);
|
|
11
|
+
const wallet = realpathSync(require.resolve(`${walletPackage}/shinjuku-wallet.mjs`));
|
|
10
12
|
// The wallet runs its command when it is the script node started (argv[1]), and its background steps start that same file.
|
|
11
13
|
process.argv[1] = wallet;
|
|
12
14
|
await import(pathToFileURL(wallet).href);
|