@ghostystudio/cli 0.17.0 → 0.19.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.
Files changed (3) hide show
  1. package/README.md +18 -6
  2. package/dist/index.js +7632 -59
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -18,13 +18,16 @@ ghosty usage # plan and usage this week
18
18
  ghosty agents ls
19
19
  ghosty agents create --name NAME [--engine E] [--model M] [--prompt TEXT | --prompt-file FILE] [--env K=V,…] [--workspace SLUG] [--channels teams=off]
20
20
  ghosty agents get <id> [--fields name,model,prompt] [--prompt-out FILE]
21
+ ghosty agents export <id> [--out DIR] # the agent as a YAML file (+ its skills with --out)
22
+ ghosty apply <file|dir> [--agent X] [--create] [--prune] [--dry-run] # make an agent match the file
21
23
  ghosty agents set <id> [--name] [--engine] [--model] [--prompt | --prompt-file FILE] [--env K=V,…] [--connect ID,…] [--disconnect ID,…] [--toolsets +crm]
22
24
  ghosty agents set <id> --prompt-base <base-id> --prompt-overlay overlay.json [--dry-run] # prompt = another agent's + edits, kept in sync
23
25
  ghosty agents share|unshare <id> <email> [--role editor|admin] # share without handing it over · agents shares <id> lists them
24
26
  ghosty agents rm <id> [--yes]
25
27
  ghosty agents restart <id>
26
28
  ghosty agents box <id> [--check PATH]… [--contains PATH=TEXT]… [--recycle] # is its machine on the new image?
27
- ghosty agents demo <id> [--slug NAME] [--on | --off] [--vence "YYYY-MM-DDTHH:MM"|no] [--turns N] [--per-ip N]
29
+ ghosty agents demo enable|disable <id>
30
+ ghosty agents demo <id> [--slug NAME] [--expires "YYYY-MM-DDTHH:MM"|no] [--turns N] [--per-ip N]
28
31
  [--welcome TEXT] [--starter TEXT] [--chips "a|b|c"] [--sponsor on|off] [--rotate] # public /p/ link, no account needed
29
32
  ghosty agents doctor <id> [--verbose] # exits 1 when it finds a problem
30
33
  ghosty agents docs ls|grant|revoke <id> [doc] [--write] [--no-deliver]
@@ -33,7 +36,7 @@ ghosty agents set <id> --voice elevenlabs:ID --voice-replies auto --auto-stage o
33
36
 
34
37
  ghosty files ls|get|put|rm <id> [path] [--file LOCAL] [--out LOCAL]
35
38
  ghosty skills ls|get|add|rm <id> [slug] [--file SKILL.md | --dir FOLDER] [--out DIR] # get without --out only lists
36
- ghosty skills on|off <id> <slug> # turn one of its skills (or one of Ghosty's) on or off
39
+ ghosty skills enable|disable <id> <slug> # turn one of its skills (or one of Ghosty's) on or off
37
40
  ghosty skills templates <id> # pdf-doc templates: its own and Ghosty's, and which folder wins
38
41
  ghosty dbs ls|tables|query|import|grant|revoke <id> [db] [--write] [--arg V]… [--external-write t1,t2] [--external-rows t:col+col] [--from easybits:ID --tables a,b --append --dry-run]
39
42
  ghosty turns ls <id> [--errors | --status running|done|stopped|error] [--since 1h] [--limit N]
@@ -43,11 +46,11 @@ ghosty channels whatsapp link|unlink <id> --integration ID --answer on|off [--
43
46
  ghosty channels whatsapp history <id> --integration ID [--days 7] [--dry-run] # its recent cards, messages and orders (no duplicates)
44
47
  ghosty channels wa import <id> --from-file F | --from-dir DIR --own-number yes|no [--dry-run] # personal WhatsApp session, no QR
45
48
  ghosty channels wa pair|status|pause <id> [--phone N]
46
- ghosty channels wa groups ls|set|create <id> [group] [--role equipo|cliente] [--on|--off] [--dry-run] # personal WhatsApp groups
49
+ ghosty channels wa groups ls|enable|disable|set|create <id> [group] [--role equipo|cliente] [--dry-run] # personal WhatsApp groups
47
50
  ghosty boards ls|create|assign|move-cards|rm <workspace|agent> … [--columns-from main] [--from A --to B --integration X --dry-run]
48
- ghosty board ls <id> [--q TEXT] [--limit 20] # recent cards on its sales board
49
- ghosty board show <id> <folio|phone|id> [--limit 20] # a card's thread, attachments and whether gs kept a copy
50
- ghosty board archive <id> --integration X | --column X | --before 30d [--dry-run]
51
+ ghosty cards ls <id> [--q TEXT] [--limit 20] # recent cards on its sales board
52
+ ghosty cards show <id> <folio|phone|id> [--limit 20] # a card's thread, attachments and whether gs kept a copy
53
+ ghosty cards archive <id> --integration X | --column X | --before 30d [--dry-run]
51
54
  ghosty mcp get|set <id> [--file servers.json]
52
55
 
53
56
  ghosty try <id> "message" [--session] [--reset]
@@ -87,6 +90,15 @@ Exit codes: `0` ok · `1` API error · `2` usage error · `3` not signed in.
87
90
  - `try --replay FILE --out DIR`: replays real conversations from your machine. The report is written after every step, survives Ghosty deploys (it honors `Retry-After`), and `--resume` continues a partial run.
88
91
  - `agents doctor` speaks English like the rest of the CLI; `channels whatsapp ls` returns a full URL.
89
92
 
93
+ ### Changes in 0.19.0
94
+
95
+ - **The agent as a file.** `ghosty agents export <agent> [--out DIR]` writes its whole setup as YAML (recipe-compatible, secrets as `${NAME}`; with `--out`, its own skills too). `ghosty apply <file|dir>` shows a plan (`+ ~ - !`), asks and applies; `--agent X` targets another agent, `--create` makes a new one, `--prune` also removes what the file no longer lists. The current version is saved before applying.
96
+
97
+ ### Changes in 0.18.0
98
+
99
+ - One naming rule (like `gh`): noun then verb; turning things on/off is `enable|disable`; `on|off` only as a flag value. `ghosty cards` (an agent's board cards; `board` still works), `skills enable|disable`, `agents demo enable|disable <agent>`, `channels wa groups enable|disable <agent> <group>`, `--expires` (was `--vence`). Old forms still work and print the new one.
100
+ - Help for `login`, `logout`, `whoami`, `docs`, `use` and `cards`.
101
+
90
102
  ### Changes in 0.17.0
91
103
 
92
104
  - Agents by **name** everywhere: `ghosty agents get pia-0`, `ghosty try "Ghosty Ventas" "hola"` (ids still work). Same-name agents: the one in the `ghosty use` workspace wins, otherwise the CLI lists their ids.