@animaapp/cli 0.8.0 → 0.9.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 +39 -6
- package/dist/index.js +317 -142
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -187,8 +187,10 @@ options; `--json` makes any of them agent-readable.
|
|
|
187
187
|
| | [`auth`](#auth--inspect-or-manage-credentials) | Inspect credentials, store a Figma token |
|
|
188
188
|
| | [`skill`](#skill--install-the-agentgrid-guide-for-your-agent) | Install the AgentGrid guide as a SKILL.md your agent can read |
|
|
189
189
|
| | [`mcp-config`](#mcp-config--print-your-mcp-server-config) | Print an MCP server config for your MCP client |
|
|
190
|
-
| **Find** | [`
|
|
190
|
+
| **Find** | [`workspaces`](#workspaces--where-you-can-work) | The workspaces you can reach, and what you may do in each |
|
|
191
|
+
| | [`list`](#list--the-artifacts-you-can-read) | The artifacts you can read, most-recently-updated first |
|
|
191
192
|
| **Make** | [`create`](#create--an-artifact-for-your-code-or-ai-generated) | Import your code, an empty repo, or AI generation |
|
|
193
|
+
| | [`create-knowledge`](#create--an-artifact-for-your-code-or-ai-generated) | Create a knowledge artifact |
|
|
192
194
|
| | [`status`](#status--did-generation-finish) | Did generation finish? `--wait` blocks until it has |
|
|
193
195
|
| | [`duplicate`](#duplicate--copy-an-existing-artifact) | Copy an artifact into a new, independent one |
|
|
194
196
|
| **Change** | [`explore`](#explore--read-an-artifacts-files-no-git) | Read files: list, search, read, history |
|
|
@@ -257,25 +259,46 @@ authorize when it prompts. No CLI in the loop after that. Your client needs to
|
|
|
257
259
|
support OAuth for remote MCP servers (`.well-known` discovery); if it cannot,
|
|
258
260
|
use the CLI commands instead.
|
|
259
261
|
|
|
260
|
-
### `
|
|
262
|
+
### `workspaces` — where you can work
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
npx @animaapp/cli@latest workspaces
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Artifacts live in workspaces. You may have access to one or more of them, and
|
|
269
|
+
what you may do can differ between them: each row shows the capabilities you
|
|
270
|
+
hold there, and creating or changing an artifact needs `write`.
|
|
271
|
+
|
|
272
|
+
Workspace ids are opaque: get one here (each `list` row carries its own) for `--workspace`.
|
|
273
|
+
An empty list means your access reaches none of this team's workspaces — not
|
|
274
|
+
that the team has none.
|
|
275
|
+
|
|
276
|
+
### `list` — the artifacts you can read
|
|
261
277
|
|
|
262
278
|
```bash
|
|
263
279
|
npx @animaapp/cli@latest list
|
|
280
|
+
npx @animaapp/cli@latest list --workspace <id> # just one workspace
|
|
264
281
|
```
|
|
265
282
|
|
|
266
283
|
Most-recently-updated first, so you can resume existing work instead of
|
|
267
|
-
creating a second artifact for the same job.
|
|
268
|
-
|
|
284
|
+
creating a second artifact for the same job. It spans every workspace you can
|
|
285
|
+
read unless `--workspace` names one, and each row says which workspace it is
|
|
286
|
+
in. Each row carries its session id and `artifactUrl`; `--json` adds them to
|
|
287
|
+
every row.
|
|
269
288
|
|
|
270
289
|
### `create` — an artifact for your code, or AI-generated
|
|
271
290
|
|
|
272
291
|
```bash
|
|
273
292
|
npx @animaapp/cli@latest create -t import --from ./my-project # import YOUR code (instant)
|
|
274
293
|
npx @animaapp/cli@latest create -t import --from ./notes --artifact-type markdown # a readable document
|
|
294
|
+
npx @animaapp/cli@latest create-knowledge --name "Team knowledge" # server-provided template
|
|
295
|
+
npx @animaapp/cli@latest create-knowledge --name "Team knowledge" --workspace <id> # ...in a specific workspace
|
|
275
296
|
npx @animaapp/cli@latest create -t empty --framework react --name "My project" # empty repo you push to (instant)
|
|
297
|
+
npx @animaapp/cli@latest create -t import --from ./my-project --workspace <id> # in a specific workspace
|
|
276
298
|
npx @animaapp/cli@latest create -t p2c -p "Analytics dashboard with a sidebar"
|
|
277
299
|
npx @animaapp/cli@latest create -t l2c -u https://stripe.com
|
|
278
300
|
npx @animaapp/cli@latest create -t f2c --file-key <key> --nodes 42:15
|
|
301
|
+
npx @animaapp/cli@latest create -t p2c -p "Pricing page" --workspace <id> # any type takes --workspace
|
|
279
302
|
npx @animaapp/cli@latest create -t import --from ./my-project --anonymous # no account — hand off later
|
|
280
303
|
```
|
|
281
304
|
|
|
@@ -303,6 +326,14 @@ readable document and needs `.md` files. Omit it and the server infers one:
|
|
|
303
326
|
markdown when your files are `.md`/`.mdx` with no HTML, otherwise app. Getting it wrong is the common mistake — `.md` files
|
|
304
327
|
uploaded as an app produce an artifact with nothing to render.
|
|
305
328
|
|
|
329
|
+
Knowledge artifacts use the dedicated `create-knowledge` command instead of
|
|
330
|
+
generic `create`. It accepts an optional `--name` (maximum 120 characters) and
|
|
331
|
+
an optional `--workspace <id>`; the server-provided knowledge template supplies
|
|
332
|
+
the initial files and framework.
|
|
333
|
+
This command requires deployment of the server contract containing merged
|
|
334
|
+
AnimaApp/anima-design-to-code PR 5114. There is no compatibility fallback to
|
|
335
|
+
generic creation on older servers.
|
|
336
|
+
|
|
306
337
|
| Option | Values | Default |
|
|
307
338
|
|--------|--------|---------|
|
|
308
339
|
| `-t, --type` | `import` (your code, with `--from`), `empty` (repo to push to), `p2c` (prompt), `l2c` (URL), `f2c` (Figma) | _required_ |
|
|
@@ -454,9 +485,11 @@ a commit cannot carry (a question answered, a change you decided against), and
|
|
|
454
485
|
```bash
|
|
455
486
|
npx @animaapp/cli@latest duplicate <artifactUrl-or-sessionId>
|
|
456
487
|
npx @animaapp/cli@latest duplicate <artifactUrl-or-sessionId> --name "My copy"
|
|
488
|
+
npx @animaapp/cli@latest duplicate <artifactUrl-or-sessionId> --workspace <id>
|
|
457
489
|
```
|
|
458
490
|
|
|
459
|
-
Creates a new, independent artifact in the
|
|
491
|
+
Creates a new, independent artifact in the workspace `--workspace` names, which
|
|
492
|
+
is optional when you can create in only one.
|
|
460
493
|
It copies code, assets, and supported database content, but does **not** copy
|
|
461
494
|
chat or custom domains. The source must be readable and the destination
|
|
462
495
|
workspace must be writable. Without `--name`, the API names it
|
|
@@ -617,7 +650,7 @@ is `awaiting_claim` or `expired`, alongside the `artifactUrl` to re-send.
|
|
|
617
650
|
| `--json` | Emit a single JSON object to stdout (for agents) | every command |
|
|
618
651
|
| `--api-url <url>` | API base URL — point at local or staging³ | every command except `config` |
|
|
619
652
|
| `--log-file <path>` | Append a JSON debug log of each step to a file | every command that reaches the network |
|
|
620
|
-
| `--verbose` | Stream progress to stderr in JSON mode¹ | `create`, `status`, `duplicate`, `upload-asset`, `publish`, `unpublish`, `update`, `delete`, `codegen`, `get-git-token` |
|
|
653
|
+
| `--verbose` | Stream progress to stderr in JSON mode¹ | `create`, `create-knowledge`, `status`, `duplicate`, `upload-asset`, `publish`, `unpublish`, `update`, `delete`, `codegen`, `get-git-token` |
|
|
621
654
|
| `--timeout <ms>` | How long to wait² | `create`, `status`, `codegen` |
|
|
622
655
|
|
|
623
656
|
¹ Only the commands that do slow work carry a spinner, so `--verbose` is on
|