@oiioii/cli 0.1.8 → 0.1.11
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 +54 -2
- package/dist/cli.js +30 -30
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -15,7 +15,9 @@ human-readable output and a stable JSON envelope for AI agents and automation.
|
|
|
15
15
|
| `auth login` | Browser authorization for terminal/Codex/WorkBuddy/Kimi/Claude Code/DeepSeek, or explicit API Key persistence | Implemented |
|
|
16
16
|
| `auth status` | Check configured authentication without exposing the API Key | Implemented |
|
|
17
17
|
| `auth logout` | Remove locally persisted authentication without exposing the API Key | Implemented |
|
|
18
|
-
| `workspace create/set/current/rename` | Create, configure, inspect, and rename workspaces | Implemented |
|
|
18
|
+
| `workspace create/set/current/rename/open/delete` | Create, configure, inspect, and rename workspaces, including folder and subgroup placement | Implemented |
|
|
19
|
+
| `workspaces list` / `workspace list` | List visible workspaces with names, conversation counts, pagination, and search in production | Implemented |
|
|
20
|
+
| `workspace folder` / `workspace subgroup list` | Manage workspace folders and discover visible subgroup creation choices | Implemented |
|
|
19
21
|
| `workspace assets list/download` | List workspace assets and download ready resources | Implemented |
|
|
20
22
|
| `workspace canvas create` | Create ordered blank nodes, prompts, references, and groups without client-side layout | Implemented |
|
|
21
23
|
| `workspace canvas node update` | Update prompt, generation parameters, and references on an empty canvas node | Implemented |
|
|
@@ -135,7 +137,7 @@ The default backend URL and browser authorization page are embedded into the gen
|
|
|
135
137
|
|
|
136
138
|
| Build command | Environment | Embedded default backend | Authorization page |
|
|
137
139
|
|---|---|---|---|
|
|
138
|
-
| `npm run build:production` | production | `https://api.oiioii.ai` (optional `OIIOII_PRODUCTION_BASE_URL` override) | `https://oiioii.
|
|
140
|
+
| `npm run build:production` | production | `https://api.oiioii.ai` (optional `OIIOII_PRODUCTION_BASE_URL` override) | `https://oiioii.ai/auth/cli` |
|
|
139
141
|
| `npm run build:test` | test | `OIIOII_TEST_BASE_URL` from `.env` | Build-specific test authorization page |
|
|
140
142
|
| `npm run build:local` | local | `http://localhost:4000` | `http://localhost:3000/auth/cli` |
|
|
141
143
|
|
|
@@ -261,6 +263,56 @@ oiioii workspace set <workspace_id> --json
|
|
|
261
263
|
oiioii workspace current --json
|
|
262
264
|
```
|
|
263
265
|
|
|
266
|
+
Open a workspace in the browser, or retrieve its URL without opening a browser:
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
oiioii workspace open <workspace_id>
|
|
270
|
+
oiioii workspace open --no-browser --json
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
Workspace URLs use the authorization page's origin and `/space/<workspace_id>`:
|
|
274
|
+
`https://oiioii.ai/space/<workspace_id>` in production. Omit the ID to use the
|
|
275
|
+
active workspace. The browser uses its own login session; no API key is added to
|
|
276
|
+
the URL.
|
|
277
|
+
|
|
278
|
+
List workspaces or move one workspace to the recycle bin:
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
oiioii workspaces list --limit 20 --search "Project" --json
|
|
282
|
+
oiioii workspace list --cursor <next_cursor> --json
|
|
283
|
+
oiioii workspace delete <workspace_id> --json
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
Deletion uses the same lifecycle permission as the Web: the account owner or the
|
|
287
|
+
workspace subgroup leader. It is soft deletion, and retries preserve the original
|
|
288
|
+
trash timestamp. Omit the ID to delete the active workspace. These commands require
|
|
289
|
+
a backend with `GET /v1/workspaces` and `POST /v1/workspace/delete`; they do not
|
|
290
|
+
fall back to debug or the legacy text-list endpoint.
|
|
291
|
+
|
|
292
|
+
Folder and subgroup placement is optional. Omit `--subgroup` to use the account's default subgroup, or pass `--public` to request public placement; `--public` and `--subgroup` cannot be combined. Sub-accounts can create only in their permitted subgroup. Creation preserves the active workspace unless `--set-current` is supplied.
|
|
293
|
+
|
|
294
|
+
```bash
|
|
295
|
+
oiioii workspace subgroup list --json
|
|
296
|
+
oiioii workspace folder list --limit 20 --json
|
|
297
|
+
oiioii workspace folder create --name "Project folder" --subgroup <subgroup_id> --json
|
|
298
|
+
oiioii workspace create --name "New project" --folder <folder_id> --subgroup <subgroup_id> --json
|
|
299
|
+
oiioii workspace create --name "Public project" --public --json
|
|
300
|
+
oiioii workspace folder get <folder_id> --json
|
|
301
|
+
oiioii workspace folder workspaces <folder_id> --limit 20 --json
|
|
302
|
+
oiioii workspace folder move <folder_id> --workspace-id <workspace_id> --json
|
|
303
|
+
oiioii workspace folder remove --workspace-id <workspace_id> --json
|
|
304
|
+
oiioii workspace folder rename <folder_id> --name "Renamed folder" --json
|
|
305
|
+
oiioii workspace folder favorite <folder_id> --json
|
|
306
|
+
oiioii workspace folder unfavorite <folder_id> --json
|
|
307
|
+
oiioii workspace folder trash <folder_id> --json
|
|
308
|
+
oiioii workspace folder restore <folder_id> --json
|
|
309
|
+
oiioii workspace folder purge <folder_id> --json
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
Folder writes and library asset deletion use POST. Upgrade the backend to one that provides the POST folder update/placement/purge and library deletion routes before upgrading the CLI. The backend retains its legacy PATCH, PUT, and DELETE routes for older clients.
|
|
313
|
+
|
|
314
|
+
List responses include `has_more` and, when more rows exist, `next_cursor`. Pass that cursor using `--cursor` to fetch the next page. Trashing/restoring a folder applies to its contained projects; `purge` permanently deletes a trashed folder and its projects.
|
|
315
|
+
|
|
264
316
|
Rename the active workspace, or pass an explicit workspace ID:
|
|
265
317
|
|
|
266
318
|
```bash
|