402mob-runtime 0.2.2 → 0.3.1

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
@@ -4,17 +4,17 @@ An owner-controlled Base USDC signer, delegated buyer and text-statistics seller
4
4
 
5
5
  ## Install
6
6
 
7
- Use Node.js 24+ on Linux or macOS. Start the signer through npm:
7
+ Use Node.js 24+ on Linux or macOS. Check https://evidence.contact/agent-runtime-release.json for this version's publication status. Use the npm commands below only when it reports `npmPublished: true`; otherwise use the standalone download described below.
8
8
 
9
9
  ```sh
10
- npm exec --yes --package=402mob-runtime@0.2.2 -- 402mob-runtime wallet web \
10
+ npm exec --yes --package=402mob-runtime@0.3.1 -- 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.2
17
+ npm install --prefix "$HOME/.local/share/402mob/runtime-cli" --ignore-scripts 402mob-runtime@0.3.1
18
18
  export PATH="$HOME/.local/share/402mob/runtime-cli/node_modules/.bin:$PATH"
19
19
  ```
20
20
 
@@ -28,18 +28,28 @@ Keep the same wallet `--dir` when switching installation methods. Neither method
28
28
  402mob-runtime wallet web --dir "$HOME/.local/share/402mob/runtime-owner"
29
29
  ```
30
30
 
31
- Open one of the private pairing links printed by the signer. Create a wallet, fund it with native USDC on Base, enter an agent name and allocation, then save its credential. Optional controls restrict the seller, recipient, service, per-payment amount or expiry. An optional wallet ceiling covers all delegations. Keys and journals stay in the owner's directory; keep that directory inaccessible to the agent. The console on wallet.evidence.contact is static and connects to this local process.
31
+ Open one of the private pairing links printed by the signer. Click **Open agent wallet** to create or reopen it. Connect your browser wallet and confirm a Base USDC deposit, or fund the receiving address directly. Enter an agent name, confirm access and copy the private connection. No spending limit or configuration download is required. The agent can use available funds, including later deposits. Optional controls add a lifetime cap, seller, recipient, service, per-payment cap or expiry. Existing capped grants keep their limits. An optional wallet ceiling covers all delegations. Keys and journals stay in the owner's directory; keep that directory inaccessible to the agent. The console on wallet.evidence.contact is static and connects to this local process.
32
+
33
+ If this wallet already uses optional model admission, pass the same `--model-config /private/model.json` to `wallet web` that you used with `wallet serve`. Configuration, model budgets and paused state are retained; the browser cannot change them. Omit the flag for the default model-free flow.
32
34
 
33
35
  ## Buyer
34
36
 
37
+ Load the copied connection’s `token` into `MOB_RUNTIME_TOKEN` and `gateway` into `MOB_RUNTIME_GATEWAY` through the agent’s environment or secret manager. Alternatively, pipe the JSON with `--credential -` or use an optional private `--credential FILE`.
38
+
35
39
  ```sh
36
- 402mob-runtime buyer check --credential /private/credential.json
37
- 402mob-runtime buyer workers --credential /private/credential.json
38
- 402mob-runtime buyer resources --credential /private/credential.json
40
+ 402mob-runtime buyer check
41
+ 402mob-runtime buyer workers
42
+ 402mob-runtime buyer resources
39
43
  ```
40
44
 
41
45
  Use `buyer prepare` for text-statistics Work Tickets. Use `buyer inspect` and `buyer prepare-artifact` for exact prepared offers or pinned Payment Links. `buyer run` submits the retained request and may spend within its delegation. It checks settlement and result bytes and records a receipt. Repeat the same saved request to recover an interrupted purchase.
42
46
 
47
+ For CLI-only setup, `wallet grant --dir DIR --name "Agent"` prints a private connection JSON. Add `--max-usdc` for an optional cap, `--file` for an advanced policy instead of `--name`, or `--out` for an optional private file. Stdout and file exports both include `gateway`, defaulting to `http://127.0.0.1:4031`. Set `wallet grant --gateway http://127.0.0.1:PORT` when your signer uses another port; buyer commands can override a saved destination with `--gateway`. Use one owner signer per wallet directory.
48
+
49
+ Offer inspection fetches only the exact published offer share, so a large seller catalog does not block inspection. The wallet console uses the compact merchant identity response.
50
+
51
+ Worker discovery returns at most five full profiles per page. Follow `nextCursor` until it is null, even if policy filtering leaves a page empty.
52
+
43
53
  ## Seller
44
54
 
45
55
  ```sh
@@ -56,7 +66,7 @@ Run `402mob-runtime --help` for all commands. Full guides: https://evidence.cont
56
66
 
57
67
  `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
68
 
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.
69
+ If the local console page returns `adapter_failure` while the hosted console works, upgrade from 0.2.0 or 0.2.1 to 0.3.1. 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
70
 
61
71
  ## Recovery and custody
62
72