@overaihq/cli 0.13.7 → 0.14.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/README.md CHANGED
@@ -69,21 +69,48 @@ and `printable-page render`; `overai help` shows their arguments.
69
69
 
70
70
  ## Working across organizations
71
71
 
72
- Each backend and organization has an independent saved CLI session. Work in
73
- separate workspace folders: commands automatically use the clone’s organization.
74
- For commands outside a clone, use `OVERAI_ORG_ID=<orgId> overai <command>` or set
75
- the shell variable. `org switch <orgId>` changes the machine-global default for
76
- unscoped commands; it leaves other org sessions intact.
72
+ Each deployment and organization has an independent saved CLI session. Name an
73
+ organization with a **ref** — its id, a local alias, or `<remote>:<orgId>` —
74
+ wherever one is accepted:
75
+
76
+ ```sh
77
+ overai --org acme sql TBS123 "select 1" # one invocation, for scripts and agents
78
+ OVERAI_ORG_ID=acme overai status # one shell
79
+ overai org switch acme # the machine-global default
80
+ overai org alias acme fcps:org_abc # name an org locally, like a shell alias
81
+ ```
82
+
83
+ A named org selects its own deployment, so two agents can hold two organizations
84
+ at once without changing anything shared. Inside a clone, commands use its
85
+ organization automatically. Precedence is `--org`, then `OVERAI_ORG_ID`, then the
86
+ clone, then the saved default.
77
87
 
78
88
  Missing org sessions are established from an eligible saved CLI login. SSO requires
79
- browser authorization: run `OVERAI_ORG_ID=<orgId> overai signin`. Ordinary commands
80
- never launch a browser. `whoami` shows the backend, org, identity, and selection
81
- source; `org list` also indicates which orgs have saved sessions.
82
-
83
- `signout` revokes the effective org’s CLI session. `signout --all` revokes all sessions
84
- saved by this installation, across backends, without signing out browsers or other
85
- machines. Failed revocations retain credentials for retry. Clone sync commands reject
86
- an `OVERAI_ORG_ID` that disagrees with the clone.
89
+ browser authorization, and the prompt names the exact command to run. Ordinary
90
+ commands never launch a browser. `whoami` shows the remote, org, identity, session
91
+ expiry, and what selected them; `org list` covers every remote you're signed into.
92
+
93
+ `signout [<ref>]` revokes one organization's CLI session. `signout --all` revokes all
94
+ sessions saved by this installation, across remotes, without signing out browsers or
95
+ other machines. Failed revocations retain credentials for retry. Clone sync commands
96
+ reject an override that disagrees with the clone.
97
+
98
+ ## Remotes
99
+
100
+ A remote is a deployment. `prod` and `local` are built in — they need no
101
+ registration and cannot be removed or renamed. Register others by name:
102
+
103
+ ```sh
104
+ overai remote add acme https://api.acme.overai.com # --app <url> for a self-hosted webapp
105
+ overai signin acme # or: overai signin https://api.acme.overai.com
106
+ overai signin acme:org_abc # straight to one organization
107
+ overai remote list # what you can reach, and where you're signed in
108
+ overai remote remove acme # forget it and revoke its sessions
109
+ ```
110
+
111
+ Signing in to a URL registers it as a remote, naming it after its host. A clone
112
+ records the remote it came from, so a workspace folder keeps working against the
113
+ right deployment.
87
114
 
88
115
  Existing credentials migrate automatically. Credentials for different backends are
89
116
  never exchanged between them; custom deployments remember `OVERAI_APP_URL` at signin.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  external_exports
3
- } from "./chunk-XCJJTK3H.js";
3
+ } from "./chunk-PF6GZFT4.js";
4
4
 
5
5
  // ../common/src/types/value-type.ts
6
6
  var TypeEnum = /* @__PURE__ */ ((TypeEnum2) => {