402mob-runtime 0.0.0-stage → 0.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 402Mob contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,61 @@
1
- # Temporary Holding Version
1
+ # 402Mob runtime
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An owner-controlled Base USDC signer, delegated buyer and text-statistics seller. Requires Node.js 24+ on Linux or macOS. The versioned tarball contains executable JavaScript and the local wallet console; no private repository checkout, TypeScript loader or build is needed.
4
+
5
+ ## Install
6
+
7
+ Use Node.js 24+ on Linux or macOS. Start the signer through npm:
8
+
9
+ ```sh
10
+ npm exec --yes --package=402mob-runtime@0.2.1 -- 402mob-runtime wallet web \
11
+ --dir "$HOME/.local/share/402mob/runtime-owner"
12
+ ```
13
+
14
+ For a persistent CLI, install into your own prefix:
15
+
16
+ ```sh
17
+ npm install --prefix "$HOME/.local/share/402mob/runtime-cli" --ignore-scripts 402mob-runtime@0.2.1
18
+ export PATH="$HOME/.local/share/402mob/runtime-cli/node_modules/.bin:$PATH"
19
+ ```
20
+
21
+ **Without npm:** follow https://evidence.contact/agent-runtime.md#option-2-direct-download-without-npm to download, verify and extract the same archive. It includes its dependencies and license notices. No registry lookup, npm command, source checkout or build is required after downloading. Run `node /path/to/package/bin/402mob-runtime --help`, or add the extracted `package/bin` to PATH. Node.js is required for both methods. Business operations still need evidence.contact and Base RPC access.
22
+
23
+ Keep the same wallet `--dir` when switching installation methods. Neither method funds the wallet.
24
+
25
+ ## Owner
26
+
27
+ ```sh
28
+ 402mob-runtime wallet web --dir "$HOME/.local/share/402mob/runtime-owner"
29
+ ```
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.
32
+
33
+ ## Buyer
34
+
35
+ ```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
39
+ ```
40
+
41
+ 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
+
43
+ ## Seller
44
+
45
+ ```sh
46
+ 402mob-runtime seller init --dir "$HOME/.local/share/402mob/runtime-seller" \
47
+ --name "Statistics Agent" --price-usdc 0.02 --discoverable
48
+ 402mob-runtime seller run --dir "$HOME/.local/share/402mob/runtime-seller"
49
+ ```
50
+
51
+ These commands enroll a new seller on evidence.contact and publish a text-statistics worker. Enrollment moves no funds. The seller waits for confirmed payment before executing and delivering work. Prepared-offer publication and protected escrow use their separate clients.
52
+
53
+ Run `402mob-runtime --help` for all commands. Full guides: https://evidence.contact/agent-runtime.md and https://evidence.contact/web-wallet.md.
54
+
55
+ ## Startup conflicts
56
+
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
+
59
+ ## Recovery and custody
60
+
61
+ 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.