kenso 0.1.208 → 0.1.209

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/docs/README.md CHANGED
@@ -100,6 +100,7 @@ Every page is in the package and prints offline with `kenso docs <topic>`.
100
100
  | [Batch runs](batch.md) | `batch` | Dry run and apply, run folders, results files, resume, rate limits, `--each` |
101
101
  | [Output and errors](output-and-errors.md) | `output-and-errors` | The output contract, error JSON, error codes, exit codes, live streams |
102
102
  | [CRM (beta)](crm.md) | `crm` | Accounts, people, opportunities and CRM sync |
103
+ | [Images (beta)](images.md) | `images` | Upload one image per lead into an image variable, from a folder or a CSV |
103
104
  | [Studio (beta)](studio.md) | `studio` | Pull, push, validate, preview and fill templates |
104
105
  | [Workflows (beta)](workflows.md) | `workflows` | Keep a workflow as a file: `kenso.json`, init, pull, check, push, test, publish, and run it on ids or a CSV with a credit cap |
105
106
  | [Agent work (beta)](work.md) | `work` | My agent: your own coding agent writes Kenso's AI work with `kenso work run`, or pull and submit |
package/docs/batch.md CHANGED
@@ -7,6 +7,7 @@ The batch commands:
7
7
  - `contacts import`, `update`, `remove`, `restore`, `pause`, `resume`, `tag`, `untag` ([Leads](leads.md))
8
8
  - `people import` and `accounts import` ([CRM](crm.md), beta)
9
9
  - `studio fill` ([Studio](studio.md), beta)
10
+ - `images upload` ([Images](images.md), beta)
10
11
  - any generated command run with `--each <file>`, once per row (see below)
11
12
 
12
13
  ## Plan, then apply
package/docs/images.md ADDED
@@ -0,0 +1,49 @@
1
+ # Images (beta)
2
+
3
+ An image variable is a `{{key}}` token a campaign's steps render as an image. A `per_prospect` variable has one image per lead. Kenso can generate those images, or you and your coding agent can make them your own way (an image tool, code, or SVG) and upload them. An upload costs no credits, and the generation job never replaces an uploaded image, also after a prompt change. Another upload, a regenerate or a workflow step that saves into the variable does.
4
+
5
+ Images are in beta. A workspace with image variables turned off gets `404`.
6
+
7
+ ## Upload a folder of images
8
+
9
+ Name each file after its lead: the contact id (`21.png`) or the lead's email in the campaign (`ada@acme.io.svg`). Then plan and apply. Both first check that the campaign has the variable and that it is `per_prospect`, so a wrong key sends nothing:
10
+
11
+ ```bash
12
+ kenso images upload --campaign 812 --variable hero_image ./images --dry-run
13
+ kenso images upload --campaign 812 --variable hero_image ./images --yes
14
+ ```
15
+
16
+ PNG, JPEG, WebP, GIF and SVG files upload, each at most 10 MB (an SVG at most 512 KB). Kenso converts an SVG to PNG, strips the image's metadata and scales it to at most 1200 px wide. Give an SVG a background: a transparent PNG can read badly in dark mode. A variable whose format is `gif` takes an animated GIF.
17
+
18
+ ## Upload from a CSV
19
+
20
+ A CSV names the lead in a `contact_id` or `email` column and the image in a `file` column. A file path is relative to the CSV:
21
+
22
+ ```csv
23
+ contact_id,file
24
+ 21,images/ada.png
25
+ 22,images/bo.svg
26
+ ```
27
+
28
+ ```bash
29
+ kenso images upload --campaign 812 --variable hero_image images.csv --yes
30
+ ```
31
+
32
+ ## What stays local
33
+
34
+ The plan keeps these rows out of the upload and lists them in `invalid.csv`:
35
+
36
+ - a file that is not PNG, JPEG, WebP, GIF or SVG, an empty file, or one over 10 MB (`invalid`)
37
+ - a name that is neither a contact id nor an email (`invalid`)
38
+ - an email no lead of the campaign has (`not_found`)
39
+ - a second file for a lead that already has one in the input (`invalid`)
40
+
41
+ Each other row is one request. A row ends `ok` (the image is ready), `not_found` (the lead is not in the campaign) or `failed` with the API's reason, such as `image_in_use` (the lead already has a sent or queued step with its image), `blocked`, or `superseded` (another image of the lead was saved at the same moment: run it again). When Kenso cannot convert an SVG just now (the converter is down or busy), the API answers `503 svg_conversion_unavailable`: the CLI retries the row up to 3 times, and a row that still fails ends `failed` with that reason, so run the command again later. A `validation_failed` row that says the SVG could not be converted means the converter refused the SVG itself: fix the SVG or send a PNG. Results, resume and rate limits work as for every batch command: [Batch runs](batch.md).
42
+
43
+ ## One image
44
+
45
+ Upload one lead's image with the generated command, from a file, a URL or SVG text:
46
+
47
+ ```bash
48
+ kenso image-variables set-contact-image --campaign-id 812 --variable-key hero_image --contact-id 21 --file ada.png
49
+ ```
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.208 (API contracts 67703c598544) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.209 (API contracts b66c4e864c9c) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 2081 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
5
+ 2084 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
6
6
 
7
7
  ## Global flags
8
8
 
@@ -200,7 +200,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
200
200
  - [data-retention](#data-retention) (2)
201
201
  - [deal-room-answers](#deal-room-answers) (9)
202
202
  - [deal-room-buyer-inputs](#deal-room-buyer-inputs) (10)
203
- - [deal-room-content](#deal-room-content) (22)
203
+ - [deal-room-content](#deal-room-content) (23)
204
204
  - [deal-rooms](#deal-rooms) (15)
205
205
  - [deal-watch](#deal-watch) (3)
206
206
  - [deal-watch-actions](#deal-watch-actions) (4)
@@ -248,7 +248,8 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
248
248
  - [google-sheets](#google-sheets) (2)
249
249
  - [granola-connection](#granola-connection) (3)
250
250
  - [hosting-hostname](#hosting-hostname) (4)
251
- - [image-variables](#image-variables) (9)
251
+ - [image-variables](#image-variables) (10)
252
+ - [images](#images) (1)
252
253
  - [imessage-lines](#imessage-lines) (7)
253
254
  - [imessage-media](#imessage-media) (2)
254
255
  - [import](#import) (1)
@@ -4690,6 +4691,12 @@ Confirm the signing details the buyer entered. `POST /v1/deal-rooms/{dealRoomId}
4690
4691
 
4691
4692
  Flags: `--deal-room-id` (required), `--set-at`, `--data`, `--each`, `--concurrency`.
4692
4693
 
4694
+ ### kenso deal-room-content copy-file-from-source
4695
+
4696
+ Copy a file from Google Drive or OneDrive into a deal room. `POST /v1/deal-rooms/{dealRoomId}/files/copy`. Beta: needs `deal_room`.
4697
+
4698
+ Flags: `--deal-room-id` (required), `--provider`, `--source-file-id`, `--source-drive-id`, `--target-kind`, `--target-key`, `--data`, `--each`, `--concurrency`.
4699
+
4693
4700
  ### kenso deal-room-content create-file-upload
4694
4701
 
4695
4702
  Add a file to a deal room: answers the file and a signed upload link. `POST /v1/deal-rooms/{dealRoomId}/files`. Beta: needs `deal_room`.
@@ -5960,6 +5967,12 @@ Regenerate a contact's image. `POST /v1/campaigns/{campaignId}/image-variables/{
5960
5967
 
5961
5968
  Flags: `--campaign-id` (required), `--variable-key` (required), `--contact-id` (required), `--each`, `--concurrency`.
5962
5969
 
5970
+ ### kenso image-variables set-contact-image
5971
+
5972
+ Set a contact's image. `POST /v1/campaigns/{campaignId}/image-variables/{variableKey}/contacts/{contactId}/image`. Beta: needs `campaign_images`.
5973
+
5974
+ Flags: `--campaign-id` (required), `--variable-key` (required), `--contact-id` (required), `--file`, `--url`, `--svg`, `--data`, `--each`, `--concurrency`.
5975
+
5963
5976
  ### kenso image-variables set-shared-image
5964
5977
 
5965
5978
  Set a shared image variable's image. `POST /v1/campaigns/{campaignId}/image-variables/{variableKey}/shared-image`. Beta: needs `campaign_images`.
@@ -5978,6 +5991,16 @@ Update an image variable. `PATCH /v1/campaigns/{campaignId}/image-variables/{var
5978
5991
 
5979
5992
  Flags: `--campaign-id` (required), `--variable-key` (required), `--key`, `--kind`, `--prompt`, `--model`, `--size`, `--quality`, `--format`, `--frame-count`, `--frame-duration-ms`, `--spelling-check`, `--required-for-sending`, `--enabled`, `--alt-text`, `--no-spelling-check`, `--no-required-for-sending`, `--no-enabled`, `--data`, `--each`, `--concurrency`.
5980
5993
 
5994
+ ## images
5995
+
5996
+ ### kenso images upload
5997
+
5998
+ Upload one image per lead into a per_prospect image variable, from a folder or a CSV. API operations: `image-variables.get`, `image-variables.set-contact-image`, `contacts.list`. Beta: needs `campaign_images`.
5999
+
6000
+ Arguments: `<source>`.
6001
+
6002
+ Flags: `--campaign`, `--concurrency`, `--out`, `--variable`.
6003
+
5981
6004
  ## imessage-lines
5982
6005
 
5983
6006
  ### kenso imessage-lines cancel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.208",
3
+ "version": "0.1.209",
4
4
  "description": "The Kenso CLI: bulk lead, CRM and Studio work for people and coding agents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,5 +49,5 @@
49
49
  "typescript-eslint": "8.71.1",
50
50
  "vitest": "5.0.3"
51
51
  },
52
- "gitHead": "53c5eb3ee779820f05833c619ee09ad51cc39711"
52
+ "gitHead": "b5a1204dbe619ab9611d1df04e9f15209a372617"
53
53
  }
@@ -20,6 +20,7 @@ kenso runs resume <runId> # an interrupted run; terminal lost: kenso runs list
20
20
  kenso accounts import --file accounts.csv --dry-run # companies; a file of people: kenso people import --file people.csv
21
21
  kenso studio push 12 --dir ./tpl # to preview local edits push first (draft; live needs --publish), then studio preview 12
22
22
  kenso studio fill 12 --accounts ids.txt --dry-run # or --campaign 10546 --contacts leads.csv
23
+ kenso images upload --campaign 812 --variable hero_image ./images --dry-run # one image per lead you made (files <contactId>.png or <email>.svg, or a CSV); not charged
23
24
  kenso opportunities update --each rows.csv --dry-run # any API command on a file of rows (CSV or JSONL; keys fill flags and body). One record: kenso campaigns update --campaign-id 812 --name Q4 --dry-run
24
25
  kenso mcp call list_skills # only to list Ken's skills
25
26
  kenso logs tail --status 4xx,5xx --since 10m # stream the workspace's failed API calls, one line each; Ctrl-C stops (exit 4 = not on for the workspace yet)
@@ -29,7 +29,8 @@
29
29
  "b34e186f56f36b509bffa0dea2ee78b09e91654b90a659d6665563df4fa88f76",
30
30
  "df7d86e0af12727cf15cf0620f26ef4fe9aac63f0180f3594e4d357cf14b40d2",
31
31
  "812bb97591cefa7eb23596105ce63dfd382c0bd4c68e8b5d179775e9b72e927a",
32
- "d1319079d2ec55423764e214c7ab833c076da223b0880081c190d9adc677b1d1"
32
+ "d1319079d2ec55423764e214c7ab833c076da223b0880081c190d9adc677b1d1",
33
+ "171117b04b4082d8fc1e4309397b42fa8753f1b7780eafc23f1c1498b46009ce"
33
34
  ],
34
35
  "kenso": [
35
36
  "6fb333a826726d51ba2ea3927745f843343490c8aa9098e5da682d24172323f7",