@arbol-ai/cli 3.72.0 → 3.73.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 +16 -5
  2. package/dist/index.js +115 -574
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -65,8 +65,8 @@ and discovers how to sign in from it, as an MCP client does:
65
65
 
66
66
  Login then opens the system browser (Authorization Code with S256 PKCE and the loopback callback,
67
67
  `http://127.0.0.1:43817/callback`). When you belong to several organizations, the sign-in page asks
68
- which one after you sign in. `arbol auth switch` lists the organizations you belong to: one you used
69
- before switches at once, any other signs in again through single sign-on, which asks for no password.
68
+ which one after you sign in. `arbol auth switch` lists the organizations you belong to. It switches
69
+ at once when a saved session is still usable. For other sessions it signs in again through single sign-on.
70
70
  `arbol auth switch <name|org_…>` does the same without asking, for scripts. The session is for the
71
71
  organization the verified ID token names.
72
72
 
@@ -116,6 +116,17 @@ ARBOL_API_KEY="$(cat /secure/path/arbol-key)" arbol visoft connections list
116
116
  arbol sura appointments lookup --api-key-stdin < /secure/path/arbol-key
117
117
  ```
118
118
 
119
+ An Auth0 application configured for `client_credentials` and `client_secret_post` can also run
120
+ commands. Set `ARBOL_M2M_CLIENT_ID` and `ARBOL_M2M_CLIENT_SECRET` through your runtime's secret
121
+ store and specify `--organization` with the exact organization ID. The application's grant must
122
+ include that organization and the API scopes the operation requires. Each command requests a fresh
123
+ token for that organization and the selected API. `auth status` reports local configuration.
124
+
125
+ ```sh
126
+ arbol auth status --organization org_example --json
127
+ arbol account organization get --organization org_example
128
+ ```
129
+
119
130
  Commands are `arbol <service> <resource> <verb> [id]`, the operation's public name. A service is one
120
131
  word: its published id without hyphens, so `salud-total.affiliations.lookup` is
121
132
  `arbol saludtotal affiliations lookup` (and `policia-colombia` is `policiacolombia`). The published id
@@ -132,9 +143,9 @@ response's data is printed as JSON; a failure prints its code and the request id
132
143
  that got no answer, that its outcome is unknown, and exits nonzero. Nothing is retried, even after 401
133
144
  or 403; reconcile an uncertain write before repeating it.
134
145
 
135
- `ARBOL_API_URL` selects a trusted nonproduction deployment for new profiles and for an API key given
136
- to a command; it must be an HTTPS origin. Everything else about signing in is discovered from it, and a
137
- profile keeps the API it was created for.
146
+ `ARBOL_API_URL` selects a trusted HTTPS origin for new profiles and for machine credentials.
147
+ For a machine application, use a deployment whose advertised issuer is authorized to receive its
148
+ secret. A saved profile keeps the API it was created for.
138
149
 
139
150
  ## Your organization's own servers
140
151