xevol 0.14.0 → 0.15.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 +78 -3
  2. package/dist/index.js +324 -284
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Terminal client for Xevol content execution.
4
4
 
5
- Use it to operate Xevol Work Offers, Leads, Contacts, Companies, Deals, Activities, tasks, and search; ingest content; run analysis; manage prompts; inspect usage; and work across Workspaces.
5
+ Use it to manage Xevol Work Ads; operate Offers, Leads, Contacts, Companies, Deals, Activities, tasks, and search; ingest content; run analysis; manage prompts; inspect usage; and work across Workspaces.
6
6
 
7
7
  ## Install
8
8
 
@@ -52,7 +52,10 @@ xevol workspace switch <workspace-id>
52
52
  - `xevol logout` — revoke token + clear local config
53
53
  - `xevol whoami` — current authenticated account
54
54
 
55
- ### Xevol Work CRM
55
+ ### Xevol Work
56
+ - `xevol ads ...` — manage Ads projects, collections, creatives, formats, copy, links, status, archives, and history
57
+ - `xevol brands ...` — Brands: list, get, create, update, sourced facts, pinned files (logo, font, picture, product), Knowledge links, motion kits and managers
58
+ - `xevol files put <file> <path>` — upload a local file to a Workspace Files path (up to 20 MiB), e.g. a product photo to pin on a Brand
56
59
  - `xevol companies ...` — all Companies reads and commands: list, get, options, create, update, remove, enrich, research, and primary Contact
57
60
  - `xevol contacts ...` — all Contacts reads and commands: list, get, create, update, and proposed-fact decisions
58
61
  - `xevol offers ...` — every Offers procedure used by Xevol Work Web, including profiles, status, snapshots, audiences, angles, artifacts, revisions, and reviewed generation
@@ -61,6 +64,11 @@ xevol workspace switch <workspace-id>
61
64
  - `xevol career ...` — read-only source job browsing and detail, separate from personal Matches and Pursuits
62
65
  - `xevol deals ...` — list, get, create, update, and stage management
63
66
  - `xevol activities ...` — record timelines, counts, personal tasks, activity creation, and task completion
67
+ - `xevol sites ...` — local-business sites: make one from a Google listing, draft, keep or discard, preview links, publish, domains, the client's approval, paid-until, word edits and the weekly report
68
+ - `xevol motion ...` — a Brand's videos, pictures and voice-overs: plan, render, contact sheets, video sets (paid work uses the Workspace's credits)
69
+ - `xevol social ...` — connected social accounts and publications: draft, edit, list, cancel, retry. Approving a post and connecting an account happen in Xevol's browser app
70
+ - `xevol newsletter ...` — lists, subscribers, drip sequences, campaigns, reports and sending domains. Adding subscribers, test sends, activating sequences and approving campaigns happen in Xevol's browser app
71
+ - `xevol workflows ...` — draft, check and start workflows; runs, tasks, ready-made jobs; complete an external task. Activating, pausing and cancelling happen in Xevol
64
72
  - `xevol search [query]` — search Companies, Contacts, and Deals across the selected Workspace
65
73
 
66
74
  Every grouped procedure is a first-class kebab-case subcommand; Search is a direct command. Use `xevol <group> --help` for the complete list. Common creation has direct flags:
@@ -87,6 +95,62 @@ List commands also accept `--query`, `--page`, `--page-size`, `--sort`, and `--d
87
95
 
88
96
  Campaign execution commands keep the Work API's reviewed-policy and acknowledgement requirements. In particular, `campaign-execution-activate` can start sending and requires both `expectedEnrollmentCount` and `"acknowledgeSend": true`; the CLI supplies no bypass and the API rechecks current Workspace authority.
89
97
 
98
+ ### Ads manager
99
+
100
+ Ads commands mirror the `ads.*` Work manager. They create and edit native records, upload
101
+ formats, change status, archive and restore, and expose append-only change history. They
102
+ also start paid generated batches (template or photo ads), follow them, keep or reject the
103
+ results and save the zip. They do not run the operator importer, publish, or manage
104
+ ad-platform campaigns, targeting, budgets, spend, or attribution.
105
+
106
+ ```bash
107
+ xevol ads projects --json
108
+ xevol ads compare <left-creative-id> --right-id <right-creative-id> --json
109
+ xevol ads project-create --name OwnScreen --json
110
+ xevol ads create --project-id <project-id> --title "Shop-window film" --kind motion --language en --json
111
+ xevol ads update <creative-id> --destination https://example.test --json
112
+ xevol ads upload <creative-id> film.mp4 --name "4:5 film" --width 1080 --height 1350 --duration 15 --json
113
+ xevol ads copy-add <creative-id> --content "Turn any TV into a sign" --json
114
+ xevol ads status <creative-id> --status Live --note "AU+NZ" --json
115
+ xevol ads archive <creative-id> --entity creative --json
116
+ xevol ads restore <creative-id> --entity creative --json
117
+ xevol ads history <creative-id> --json
118
+ ```
119
+
120
+ Generated batches, end to end (a person's token; an agent may submit and read, while
121
+ `batch-review`, `batch-export`, `brands pin` and the use class stay with a person):
122
+
123
+ ```bash
124
+ xevol brands create --file brand.json --json
125
+ xevol brands add-fact <brand-id> --input '{"kind":"PRODUCT","text":"...","sourceUrl":"https://..."}' --json
126
+ xevol files put app.png /Brands/anglokit/app.png --json
127
+ xevol brands pin <brand-id> --input '{"role":"PRODUCT","path":"/Brands/anglokit/app.png","rightsAttested":true,"product":{"name":"Anglokit","kind":"SCREEN","text":"..."}}' --json
128
+ xevol ads batch-submit --file batch.json --json # "photo":{"productAssetId":"<asset-id>"} for photo ads
129
+ xevol ads batch-watch <set-id>
130
+ xevol ads batch <set-id> --json # concepts, candidates, check verdicts and reasons
131
+ xevol ads batch-review --input '{"setId":"<set-id>","creativeIds":["<id>"],"status":"Selected"}' --json
132
+ xevol ads batch-export <set-id> --json # makes missing formats (the photo 9:16 is paid once)
133
+ xevol ads batch-download <set-id> anglokit.zip
134
+ ```
135
+
136
+ `ads update` and `ads status` fetch the creative's current `updatedAt` when
137
+ `--updated-at` is omitted. Other edits require the `updatedAt` read from the API, passed
138
+ through `--updated-at` or JSON, so concurrent changes return `CONFLICT` instead of being
139
+ overwritten. `ads upload` accepts PNG, JPEG, WebP, GIF and MP4 files up to 64 MiB; it
140
+ handles the grant, byte upload, and direct-upload finalization as one command.
141
+
142
+ Read commands remain available: `projects`, `list`, `get`, `documents`, `compare`, and
143
+ `history`. `ads list` supports `--category`, `--kind image|motion|mixed`, `--label`,
144
+ `--language`, `--creative-type`, `--medium`, and common paging/search flags. Its sort
145
+ fields are `title`, `category`, `label`, `language`, and `creativeType`. The project
146
+ filter uses the stable `sourceId` returned by `ads projects`; `ads documents` uses that
147
+ project's record `id`.
148
+
149
+ Editorial status and archive presence do not prove publication, performance, platform
150
+ approval, or reuse rights. The selected Workspace and Ads module gate still apply.
151
+ Workspace-bound agent access may create, edit, link and upload. It cannot run `status`,
152
+ `archive`, or `restore`; those decisions require a full OWNER or MEMBER session.
153
+
90
154
  ### Imported source data
91
155
 
92
156
  Directory and Career source commands use the same Work API token, selected Workspace,
@@ -169,22 +233,33 @@ Work and system commands return `xevol.cli/v1` envelopes in `--json` mode and ke
169
233
  - `xevol add --file source.pdf --lang en` — upload PDF, UTF-8 text, audio, or video
170
234
  - `xevol retry <id> --regenerate --lang en` — regenerate saved content on the same transcription
171
235
 
172
- Add, upload, status, and retry use the selected Work Workspace's Creator gateway. Retained authority still routes to Creator; exclusive Native authority uses canonical Work ingestion. Use `--operation-id <id>` on a single add/upload/retry to repeat an uncertain response without starting another import. Audio/video requires the Agent's optional ASR configuration.
236
+ Add, upload, status, and retry use the selected Work Workspace's Creator gateway. Retained authority still routes to Creator; exclusive Native authority uses canonical Work ingestion. Use `--operation-id <id>` on a single add/upload/retry to repeat an uncertain response without starting another import. Audio/video is hashed locally and uploaded straight to the Cloudflare transcription gateway; Work only receives its name, size and SHA-256.
173
237
  - `xevol create [text]` — create from text/file/url/stdin/editor
174
238
  - `xevol list` — list transcriptions
175
239
  - `xevol view <id>` — view summary/content
176
240
  - `xevol delete <id>` — delete transcription
177
241
  - `xevol open <id>` — open item in browser
178
242
 
243
+ ### Direct transcription (Cloudflare gateway)
244
+ - `xevol transcribe <file>` — transcribe a local audio/video file; the bytes go straight to the Cloudflare gateway, never through Work
245
+ - `xevol transcribe <file> --no-wait --json` — submit and print the stable job id
246
+ - `xevol transcribe --job <id> --stream --json` — resume events over SSE as NDJSON (`--after <cursor>` replays from a cursor)
247
+ - `xevol transcribe --job <id> --format json|txt|srt|vtt --output <path>` — export with SHA-256 verification
248
+ - `xevol transcribe --job <id> --cancel` — request cancellation (Ctrl-C only closes the stream)
249
+
179
250
  ### Analysis & prompts
180
251
  - `xevol analyze <id> --prompt <promptId>` — create/read spike output
181
252
  - `xevol stream <spikeId>` — SSE stream spike content
182
253
  - `xevol resume <transcriptionId>` — resume interrupted stream session
183
254
  - `xevol prompts ...` — prompt CRUD/list/get
184
255
 
256
+ Every Work command runs with your rights in the Workspace you pick: FORBIDDEN when you lack the role (Brand manager, Workspace owner), PRECONDITION_FAILED when the Workspace's plan does not include the module, PAYMENT_REQUIRED when credits, the monthly cap or the subscription stop paid work. Commands marked "people only" are refused for agent tokens. Approving posts and campaigns, connecting accounts, adding subscribers and cancelling workflow runs need Xevol's browser app.
257
+
185
258
  ### Usage, billing, exports, locations
186
259
  - `xevol usage` — plan + usage snapshot
187
260
  - `xevol billing [--workspace-id <id>] [--json]` — read the Workspace credit balance, monthly use, enforcement policy, and waiting-work count
261
+ - `xevol saved list|process|to-knowledge|copy-to|remove` — read and use what you saved
262
+ - `xevol saved import <export-folder> [--apply] [--workspace-id <id>] [--json]` — bring a Telegram Desktop Saved Messages export (JSON, with media) into Saved. Without `--apply` it only reports counts, file sizes, what is left out and the credits needed; with it, one message at a time, skipping anything already imported, so the same command resumes. One credit per stored file; nothing is processed
188
263
  - `xevol export <id> --format json|markdown|text` — export content locally
189
264
  - `xevol coordinates current` — latest Xevol Coordinates context, with coordinates hidden unless `--exact`
190
265
  - `xevol coordinates current --json` — stable machine-readable current context for scripts/agents