402mob-runtime 0.2.1 → 0.2.2
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 +4 -2
- package/dist/runtime/cli.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,14 +7,14 @@ An owner-controlled Base USDC signer, delegated buyer and text-statistics seller
|
|
|
7
7
|
Use Node.js 24+ on Linux or macOS. Start the signer through npm:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npm exec --yes --package=402mob-runtime@0.2.
|
|
10
|
+
npm exec --yes --package=402mob-runtime@0.2.2 -- 402mob-runtime wallet web \
|
|
11
11
|
--dir "$HOME/.local/share/402mob/runtime-owner"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
For a persistent CLI, install into your own prefix:
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
|
-
npm install --prefix "$HOME/.local/share/402mob/runtime-cli" --ignore-scripts 402mob-runtime@0.2.
|
|
17
|
+
npm install --prefix "$HOME/.local/share/402mob/runtime-cli" --ignore-scripts 402mob-runtime@0.2.2
|
|
18
18
|
export PATH="$HOME/.local/share/402mob/runtime-cli/node_modules/.bin:$PATH"
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -56,6 +56,8 @@ Run `402mob-runtime --help` for all commands. Full guides: https://evidence.cont
|
|
|
56
56
|
|
|
57
57
|
`local_port_in_use` means another process already owns the named local port. If it is your signer, press Enter in its original terminal for a new pairing link, or stop it with Ctrl+C and restart with the same `--dir`. Do not start a second signer for the same wallet on different ports. The CLI preserves wallet state and closes any listener opened during a failed startup. Version 0.2.0 reported this condition as `adapter_failure`.
|
|
58
58
|
|
|
59
|
+
If the local console page returns `adapter_failure` while the hosted console works, upgrade from 0.2.0 or 0.2.1 to 0.2.2. Those versions incorrectly blocked page assets beneath hidden installation directories such as `.npm` and `.local`. Stop the old signer, restart the upgraded version with the same wallet `--dir`, and use its new pairing link.
|
|
60
|
+
|
|
59
61
|
## Recovery and custody
|
|
60
62
|
|
|
61
63
|
Retain original private directories, credential and request IDs. Do not copy a wallet ledger for concurrent spending or restore an old snapshot to clear reservations. Revocation stops new authorizations; existing signed payments may still settle. Delegation is enforced by the local owner process, not by USDC's smart contract. Creation and delegation do not fund the wallet. Direct purchases do not provide automatic refunds or certify subjective quality.
|
package/dist/runtime/cli.js
CHANGED
|
@@ -65555,6 +65555,7 @@ var assets = /* @__PURE__ */ new Map([
|
|
|
65555
65555
|
["/style.css", ["style.css", "text/css"]],
|
|
65556
65556
|
["/favicon.svg", ["favicon.svg", "image/svg+xml"]]
|
|
65557
65557
|
]);
|
|
65558
|
+
var assetRoot = fileURLToPath(new URL("../../public/wallet/", import.meta.url));
|
|
65558
65559
|
var secret = (prefix) => prefix + randomBytes4(32).toString("hex");
|
|
65559
65560
|
var loopback = /* @__PURE__ */ new Set(["127.0.0.1", "::1", "::ffff:127.0.0.1"]);
|
|
65560
65561
|
function createWalletOwnerApp(service, settings = {}) {
|
|
@@ -65645,7 +65646,7 @@ function createWalletOwnerApp(service, settings = {}) {
|
|
|
65645
65646
|
});
|
|
65646
65647
|
for (const [path, [file2, type]] of assets)
|
|
65647
65648
|
app.get(path, (_req, res) => {
|
|
65648
|
-
res.type(type).sendFile(
|
|
65649
|
+
res.type(type).sendFile(file2, { root: assetRoot, dotfiles: "deny" });
|
|
65649
65650
|
});
|
|
65650
65651
|
app.use(import_express2.default.json({ limit: "16kb", strict: true, inflate: false }));
|
|
65651
65652
|
app.get("/api/healthz", (_req, res) => {
|