motebit 0.6.11 → 0.7.0

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.
Files changed (4) hide show
  1. package/LICENSE +6 -5
  2. package/README.md +63 -10
  3. package/dist/index.js +3927 -2591
  4. package/package.json +19 -19
package/LICENSE CHANGED
@@ -55,11 +55,12 @@ The following components of this repository are licensed under the MIT License
55
55
  (see their individual LICENSE files) and are NOT subject to the Business
56
56
  Source License:
57
57
 
58
- spec/ motebit/identity@1.0 specification
59
- packages/verify/ @motebit/verifysignature verification
60
- packages/sdk/ @motebit/sdk — type definitions
61
- packages/create-motebit/ create-motebitidentity scaffolding CLI
62
- packages/github-action/ motebit-verify GitHub Action
58
+ spec/ Protocol specifications (MIT)
59
+ packages/protocol/ @motebit/protocolnetwork protocol types (MIT)
60
+ packages/sdk/ @motebit/sdk — full type vocabulary (MIT)
61
+ packages/verify/ @motebit/verifysignature verification (MIT)
62
+ packages/create-motebit/ create-motebit identity scaffolding CLI (MIT)
63
+ packages/github-action/ motebit-verify GitHub Action (MIT)
63
64
 
64
65
  These components may be used, modified, and distributed for any purpose,
65
66
  including commercial use, under the terms of the MIT License.
package/README.md CHANGED
@@ -13,35 +13,88 @@ Requires Node.js >= 20. After install, run `motebit doctor` to verify everything
13
13
  ## Quick start
14
14
 
15
15
  ```bash
16
+ # Interactive REPL — chat with your agent
17
+ motebit
18
+
16
19
  # Check system readiness
17
20
  motebit doctor
21
+ ```
18
22
 
19
- # Interactive REPL — chat with your agent
20
- motebit
23
+ ## Market commands
24
+
25
+ Pay for tasks and earn from them — a two-sided agent economy.
26
+
27
+ ```bash
28
+ # Pay side
29
+ motebit fund 5.00 # Deposit via Stripe Checkout (opens browser)
30
+ motebit delegate "review owner/repo#42" # Discover worker → submit → get result
31
+ --capability review_pr # Required capability (default: web_search)
32
+ --target <motebit-id> # Skip discovery, delegate to specific agent
33
+ --budget 10 # Max spend in USD
34
+ --plan # Decompose into steps, multi-agent orchestration
35
+
36
+ # Account
37
+ motebit balance # Show balance + recent transactions
38
+ motebit withdraw 10.00 # Request withdrawal
39
+ --destination 0xWallet # Payout address
40
+
41
+ # Earn side
42
+ motebit run --price 0.50 # Daemon mode — accept tasks at $0.50/task
43
+ motebit serve --price 0.50 # MCP server mode — same pricing, HTTP transport
44
+ ```
21
45
 
22
- # Export a signed identity file
23
- motebit export
46
+ ## Identity & trust
24
47
 
25
- # Verify an identity file
26
- motebit verify motebit.md
48
+ ```bash
49
+ motebit export # Export signed identity bundle (motebit.md)
50
+ motebit verify motebit.md # Verify an identity file signature
51
+ motebit rotate --reason "scheduled" # Rotate keypair with succession chain
52
+ motebit register # Register identity with relay
53
+ motebit credentials # List earned credentials
54
+ motebit ledger <goal-id> # Show execution ledger for a goal
55
+ ```
56
+
57
+ ## Daemon & server
58
+
59
+ ```bash
60
+ motebit run --identity motebit.md # Daemon mode — goals, sync, delegation
61
+ motebit serve --identity motebit.md # MCP server — expose tools via HTTP/stdio
62
+ --serve-transport http # Transport: "stdio" (default) or "http"
63
+ --serve-port 3100 # HTTP port (default: 3100)
64
+ --tools ./my-tools.js # Custom tool definitions
65
+ --direct # Direct tool execution (no AI loop)
66
+ --self-test # Run self-test after relay registration
67
+ ```
68
+
69
+ ## Goals & approvals
27
70
 
28
- # Run in daemon mode with scheduled goals
29
- motebit run --identity motebit.md
71
+ ```bash
72
+ motebit goal add "Research X" --every 6h # Scheduled goal
73
+ motebit goal list # List goals with status
74
+ motebit goal outcomes <goal-id> # Execution history
75
+ motebit approvals list # Pending tool call approvals
76
+ motebit approvals approve <id> # Approve a pending call
30
77
  ```
31
78
 
32
- ## What is a motebit?
79
+ ## Federation
33
80
 
34
- A motebit is a persistent, cryptographically-anchored agent — a vessel that connects to any intelligence provider, any tool ecosystem (MCP), and any device. The intelligence is a commodity. The identity, with its accumulated memory, trust, and governance, is the asset.
81
+ ```bash
82
+ motebit federation status # Show relay identity
83
+ motebit federation peers # List active peers
84
+ motebit federation peer <url> # Peer with another relay
85
+ ```
35
86
 
36
87
  ## Features
37
88
 
38
89
  - **REPL** — Interactive chat with streaming, tool use, and approval flow
39
90
  - **Identity** — Ed25519 keypair, encrypted with PBKDF2, stored locally
91
+ - **Market** — Virtual accounts, Stripe deposits, task delegation, settlement, withdrawals
40
92
  - **Daemon mode** — Scheduled goals, tool approval queue, fail-closed governance
41
93
  - **MCP** — Connect to any MCP server for tool discovery
42
94
  - **Operator mode** — Gated write/exec tools with per-call approval
43
95
  - **Memory** — Semantic graph with confidence decay and sensitivity governance
44
96
  - **Sync** — Multi-device sync via HTTP/WebSocket relay
97
+ - **Earning** — Run as a paid service with `--price`, earn from delegated tasks
45
98
 
46
99
  ## Providers
47
100