@overaihq/cli 0.9.1 → 0.11.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.
- package/README.md +37 -1
- package/dist/index.js +887 -484
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ overai workspace list # find a workspace id
|
|
|
20
20
|
overai workspace show <id> # read its name and overview
|
|
21
21
|
overai workspace users <id> # list users and direct/inherited roles
|
|
22
22
|
overai create agent --workspace <id> --name "Support agent"
|
|
23
|
-
overai clone <workspaceId> #
|
|
23
|
+
overai clone <workspaceId> # clone the workspace and its descendants
|
|
24
24
|
# ...edit files...
|
|
25
25
|
overai status # local edits + remote drift
|
|
26
26
|
overai diff # what changed
|
|
@@ -36,6 +36,17 @@ Run `overai help` for the full command list, including function invocation,
|
|
|
36
36
|
automation runs and per-node state, tablespace SQL (a psql-style REPL), and
|
|
37
37
|
`overai dev` for live-previewing a web page from local files.
|
|
38
38
|
|
|
39
|
+
Clone includes accessible, non-archived descendants in nested
|
|
40
|
+
`workspaces/<slug>.<workspaceId>/` folders. Each workspace has its own
|
|
41
|
+
`.overai/manifest.json`, resource files, and `WORKSPACE.md`. Existing resource
|
|
42
|
+
filenames and the top-level clone directory stay unchanged.
|
|
43
|
+
|
|
44
|
+
Commands use the nearest workspace folder: `cd` into a child to edit or sync it.
|
|
45
|
+
`status`, `pull`, `push`, `deploy`, and `restore` still affect only that workspace,
|
|
46
|
+
not its descendants. Pull does not discover new child workspaces. Clone those
|
|
47
|
+
separately, or clone the parent into a fresh directory. Local file moves never
|
|
48
|
+
move resources between workspaces in OverAI.
|
|
49
|
+
|
|
39
50
|
Inside a clone, `workspace show` and `workspace users` infer the workspace id.
|
|
40
51
|
`WORKSPACE.md` is the overview captured when the clone is created; use
|
|
41
52
|
`workspace show` when you need the current server value.
|
|
@@ -48,6 +59,31 @@ clone/push/deploy. Runtime commands include `agent generate`, `data-stream
|
|
|
48
59
|
append|query`, `data-file upload|download|head`, `integration configure|config`,
|
|
49
60
|
and `printable-page render`; `overai help` shows their arguments.
|
|
50
61
|
|
|
62
|
+
## Working across organizations
|
|
63
|
+
|
|
64
|
+
Each backend and organization has an independent saved CLI session. Work in
|
|
65
|
+
separate workspace folders: commands automatically use the clone’s organization.
|
|
66
|
+
For commands outside a clone, use `OVERAI_ORG_ID=<orgId> overai <command>` or set
|
|
67
|
+
the shell variable. `org switch <orgId>` changes the machine-global default for
|
|
68
|
+
unscoped commands; it leaves other org sessions intact.
|
|
69
|
+
|
|
70
|
+
Missing org sessions are established from an eligible saved CLI login. SSO requires
|
|
71
|
+
browser authorization: run `OVERAI_ORG_ID=<orgId> overai signin`. Ordinary commands
|
|
72
|
+
never launch a browser. `whoami` shows the backend, org, identity, and selection
|
|
73
|
+
source; `org list` also indicates which orgs have saved sessions.
|
|
74
|
+
|
|
75
|
+
`signout` revokes the effective org’s CLI session. `signout --all` revokes all sessions
|
|
76
|
+
saved by this installation, across backends, without signing out browsers or other
|
|
77
|
+
machines. Failed revocations retain credentials for retry. Clone sync commands reject
|
|
78
|
+
an `OVERAI_ORG_ID` that disagrees with the clone.
|
|
79
|
+
|
|
80
|
+
Existing credentials migrate automatically. Credentials for different backends are
|
|
81
|
+
never exchanged between them; custom deployments remember `OVERAI_APP_URL` at signin.
|
|
82
|
+
One identity per backend is supported. An older CLI login whose legacy org switch
|
|
83
|
+
removed its CLI session tag needs browser sign-in before it can establish sibling
|
|
84
|
+
sessions. The new CLI requires a backend supporting `establishCliOrgSession` for
|
|
85
|
+
automatic org entry and never falls back to a destructive switch.
|
|
86
|
+
|
|
51
87
|
## Passing queries, JSON, and scripts
|
|
52
88
|
|
|
53
89
|
Arguments that carry a whole document rather than a scalar also accept `@<file>`
|