obolos 1.6.1 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obolos",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "description": "Agent-friendly command line interface for the obolos protocol",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -123,7 +123,10 @@ on, and never ask the user for a key. Its sends are sponsored and count against
123
123
  An agent buys no credits. `obolos credits topup [--amount <usd>]` opens the company's billing page in
124
124
  the user's browser and waits up to 15 minutes for the credits. Off a terminal, add `--no-wait`: it
125
125
  exits 6 with `cli.awaiting_credits` and `details.link`. Give the user the link, wait for them to say
126
- they loaded the credits, then check with `obolos credits show`.
126
+ they loaded the credits, then check with `obolos credits show`. Without `--amount` the page fills in what
127
+ the company owes plus $1,000. A command the agent's powers send that the company is short of credits for exits 6 with
128
+ `cli.awaiting_credits` and `details.creditsShort`: its link fills in the shortfall plus $1,000. Give the user
129
+ the link, and once they loaded the credits run the same command again.
127
130
 
128
131
  An agent activates no module either: activation is permanent and spends credits. `obolos company
129
132
  module activate <name>` checks the module can be activated, opens it on the company's Modules page in
@@ -131,7 +134,8 @@ the user's browser and waits up to 15 minutes for it to be active. Off a termina
131
134
  exits 6 with `cli.awaiting_module` and `details.link`. Give the user the link, wait for them to say
132
135
  they activated it, then check with `obolos company modules`, whose `cost` is in credits. A company
133
136
  short of credits gets the same link (`creditsShort: true`): the activation there offers Add credits, so
134
- tell the user they add credits first, and don't send them to `credits topup`.
137
+ tell the user they add credits first, and don't send them to `credits topup`. Powers given before the
138
+ activation don't reach the new module: tell the user to give them again on the Passport page.
135
139
 
136
140
  - **Exit 3, `cli.session_ended`**: the session ended (disconnected, or past its 3 days). On a terminal
137
141
  the CLI offers to connect again; otherwise ask the user, then run `obolos login`.
@@ -139,7 +143,8 @@ tell the user they add credits first, and don't send them to `credits topup`.
139
143
  the user to give it under the agent wallet's Powers on the Passport page; never route around it.
140
144
  - **Exit 3, `cli.outside_power`**: the call's values differ from the ones the user approved. Use the
141
145
  approved values, or ask the user to give the power again with these.
142
- - **Exit 3, `cli.approval_stale`**: the approval was removed or used up, or the wallet changed. The user
146
+ - **Exit 3, `cli.approval_stale`**: the approval was removed or used up, the wallet changed, or the power
147
+ (`details.power`) was given before it reached this call, as when a module was activated after. The user
143
148
  gives the powers again on the Passport page.
144
149
  - **Exit 5, `cli.nonce_taken`**: another operation from the wallet went first, and this one never went
145
150
  out. Run the command again.