opencrowd 0.4.0 → 0.5.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.
Files changed (3) hide show
  1. package/README.md +36 -19
  2. package/bundle/opencrowd.js +79160 -61555
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -84,30 +84,47 @@ There is one wallet: AgentCash's. OpenCrowd shows public addresses,
84
84
  balances, and funding links (`/wallet`, `/fund`) and never manages, copies,
85
85
  or exports keys. See [SECURITY.md](SECURITY.md) for the enforcement model.
86
86
 
87
- ## Budget
87
+ ## Spending limits
88
88
 
89
- The session budget is a local cumulative cap on value consumed — LLM
90
- inference and paid services both count against it. Reservations are local,
91
- a budget change never moves money, and the cap can never drop below already
92
- finalized spend. Defaults come from configuration
93
- (`opencrowd config set budget 20`); session creation never needs a network
94
- lookup.
89
+ By default, each model or paid tool call can spend up to **$1** automatically,
90
+ and each user query can spend up to **$10** across its model calls, tools,
91
+ retries and subagents. Every new query receives a fresh allowance; conversation
92
+ history and lifetime spending remain available.
95
93
 
96
- ## Approval
94
+ Open **/wallet → spending limits** to save defaults, or use:
95
+
96
+ ```sh
97
+ opencrowd wallet limits --per-call 1 --per-query 10
98
+ ```
99
+
100
+ A call above either threshold pauses before payment. Approve that call once,
101
+ approve it and increase the current query budget, or decline. Increasing a
102
+ query budget leaves saved defaults unchanged; later calls still respect the
103
+ per-call limit. Changing a budget does not move funds.
104
+
105
+ Headless runs return `waiting_for_approval` with the pending amount. Resume the
106
+ saved query without repeating completed work:
97
107
 
98
- Approval governs external service purchases only (LLM calls are governed by
99
- the budget):
108
+ ```sh
109
+ opencrowd resume <session-id> --approve-once --workspace <dir>
110
+ opencrowd resume <session-id> --query-budget 20 --workspace <dir>
111
+ opencrowd resume <session-id> --decline --workspace <dir>
112
+ ```
113
+
114
+ Cloud applies the same thresholds in its payment gateway and exposes them in
115
+ Wallet → spending limits. Cloud and CLI save settings independently.
116
+
117
+ ## Approval
100
118
 
101
- - `ask` (default) — a human approves each new service: allow once,
102
- always-allow with per-call/session caps, deny, or block.
103
- - `auto` — no prompts; blocks, caps, reputation checks, the payment
104
- lifecycle, and the budget still apply.
105
- - `off` — external purchases are prohibited; local tools and inference keep
106
- working.
119
+ Spending thresholds apply to model and paid tool calls. External services also
120
+ retain reputation checks, explicit service blocks and method restrictions.
121
+ `auto` is the default and still asks for spending above either threshold.
122
+ Legacy `ask` adds service confirmations; `off` disables external-service
123
+ purchases in the CLI. Stored rules remain available through `/approvals`;
124
+ old monetary service/session caps are replaced by query spending limits.
107
125
 
108
- Stored rules are managed with `/approvals`. Every confirmed paid call —
109
- success or failure — requires a signed CrowdCode review before the next
110
- purchase; pending reviews survive restarts.
126
+ Every confirmed paid service call requires a signed CrowdCode review before
127
+ the next purchase; pending reviews survive restarts.
111
128
 
112
129
  ## Commands
113
130