kenso 0.1.208 → 0.1.210

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.210 (API contracts 5071bf2ad72f) 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
+ 2086 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) (25)
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)
@@ -3024,7 +3025,7 @@ Flags: `--campaign-id` (required), `--auto-launch-when-ready`, `--no-auto-launch
3024
3025
 
3025
3026
  Create a campaign. `POST /v1/campaigns`.
3026
3027
 
3027
- Flags: `--name`, `--contact-limit`, `--kind`, `--role-id`, `--source`, `--duplication-scope`, `--data`, `--each`, `--concurrency`.
3028
+ Flags: `--name`, `--contact-limit`, `--kind`, `--role-id`, `--source`, `--duplication-scope`, `--auto-schedule`, `--auto-schedule-window`, `--no-auto-schedule`, `--data`, `--each`, `--concurrency`.
3028
3029
 
3029
3030
  ### kenso campaigns create-enrichment-run
3030
3031
 
@@ -3234,7 +3235,7 @@ Flags: `--campaign-id` (required), `--each`, `--concurrency`.
3234
3235
 
3235
3236
  Update a campaign. `PATCH /v1/campaigns/{campaignId}`.
3236
3237
 
3237
- Flags: `--campaign-id` (required), `--name`, `--contact-limit`, `--sending-start-time`, `--sending-end-time`, `--sending-timezone`, `--max-emails-per-day`, `--owner-member-id`, `--stop-on-reply`, `--track-clicks`, `--track-opens`, `--unsubscribe-link`, `--send-as-plain-text`, `--protect-account-plays`, `--ramp-up-days`, `--stop-company-on-reply`, `--group-same-company-sends`, `--new-leads-first`, `--warm-start`, `--catch-all-lane-enabled`, `--booking-meeting-type-id`, `--reply-to`, `--role-id`, `--source-language`, `--language-mode`, `--language-fallback`, `--mode`, `--auto-launch-when-ready`, `--duplication-scope`, `--no-stop-on-reply`, `--no-track-clicks`, `--no-track-opens`, `--no-unsubscribe-link`, `--no-send-as-plain-text`, `--no-protect-account-plays`, `--no-stop-company-on-reply`, `--no-group-same-company-sends`, `--no-new-leads-first`, `--no-warm-start`, `--no-catch-all-lane-enabled`, `--no-auto-launch-when-ready`, `--data`, `--each`, `--concurrency`.
3238
+ Flags: `--campaign-id` (required), `--name`, `--contact-limit`, `--sending-start-time`, `--sending-end-time`, `--sending-timezone`, `--auto-schedule`, `--auto-schedule-window`, `--max-emails-per-day`, `--owner-member-id`, `--stop-on-reply`, `--track-clicks`, `--track-opens`, `--unsubscribe-link`, `--send-as-plain-text`, `--protect-account-plays`, `--ramp-up-days`, `--stop-company-on-reply`, `--group-same-company-sends`, `--new-leads-first`, `--warm-start`, `--catch-all-lane-enabled`, `--booking-meeting-type-id`, `--reply-to`, `--role-id`, `--source-language`, `--language-mode`, `--language-fallback`, `--mode`, `--auto-launch-when-ready`, `--duplication-scope`, `--no-auto-schedule`, `--no-stop-on-reply`, `--no-track-clicks`, `--no-track-opens`, `--no-unsubscribe-link`, `--no-send-as-plain-text`, `--no-protect-account-plays`, `--no-stop-company-on-reply`, `--no-group-same-company-sends`, `--no-new-leads-first`, `--no-warm-start`, `--no-catch-all-lane-enabled`, `--no-auto-launch-when-ready`, `--data`, `--each`, `--concurrency`.
3238
3239
 
3239
3240
  ### kenso campaigns update-agent-work
3240
3241
 
@@ -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`.
@@ -4738,6 +4745,12 @@ Read the room's quote. `GET /v1/deal-rooms/{dealRoomId}/quote`. Beta: needs `dea
4738
4745
 
4739
4746
  Flags: `--deal-room-id` (required), `--each`, `--concurrency`.
4740
4747
 
4748
+ ### kenso deal-room-content list-file-sources
4749
+
4750
+ List which sources the caller can pick a deal room file from. `GET /v1/deal-rooms/{dealRoomId}/files/sources`. Beta: needs `deal_room`.
4751
+
4752
+ Flags: `--deal-room-id` (required), `--each`, `--concurrency`.
4753
+
4741
4754
  ### kenso deal-room-content list-files
4742
4755
 
4743
4756
  List a deal room's files. `GET /v1/deal-rooms/{dealRoomId}/files`. Beta: needs `deal_room`.
@@ -4792,6 +4805,12 @@ Rename a file or move it to another place in the room. `PATCH /v1/deal-rooms/{de
4792
4805
 
4793
4806
  Flags: `--deal-room-id` (required), `--file-id` (required), `--name`, `--target-kind`, `--target-key`, `--data`, `--each`, `--concurrency`.
4794
4807
 
4808
+ ### kenso deal-room-content update-file-from-source
4809
+
4810
+ Make a new copy of a deal room file from its Google Drive or OneDrive source. `POST /v1/deal-rooms/{dealRoomId}/files/{fileId}/update-from-source`. Beta: needs `deal_room`.
4811
+
4812
+ Flags: `--deal-room-id` (required), `--file-id` (required), `--each`, `--concurrency`.
4813
+
4795
4814
  ### kenso deal-room-content update-plan-step
4796
4815
 
4797
4816
  Change one plan step. `PATCH /v1/deal-rooms/{dealRoomId}/plan/steps/{stepKey}`. Beta: needs `deal_room`.
@@ -5960,6 +5979,12 @@ Regenerate a contact's image. `POST /v1/campaigns/{campaignId}/image-variables/{
5960
5979
 
5961
5980
  Flags: `--campaign-id` (required), `--variable-key` (required), `--contact-id` (required), `--each`, `--concurrency`.
5962
5981
 
5982
+ ### kenso image-variables set-contact-image
5983
+
5984
+ Set a contact's image. `POST /v1/campaigns/{campaignId}/image-variables/{variableKey}/contacts/{contactId}/image`. Beta: needs `campaign_images`.
5985
+
5986
+ Flags: `--campaign-id` (required), `--variable-key` (required), `--contact-id` (required), `--file`, `--url`, `--svg`, `--data`, `--each`, `--concurrency`.
5987
+
5963
5988
  ### kenso image-variables set-shared-image
5964
5989
 
5965
5990
  Set a shared image variable's image. `POST /v1/campaigns/{campaignId}/image-variables/{variableKey}/shared-image`. Beta: needs `campaign_images`.
@@ -5978,6 +6003,16 @@ Update an image variable. `PATCH /v1/campaigns/{campaignId}/image-variables/{var
5978
6003
 
5979
6004
  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
6005
 
6006
+ ## images
6007
+
6008
+ ### kenso images upload
6009
+
6010
+ 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`.
6011
+
6012
+ Arguments: `<source>`.
6013
+
6014
+ Flags: `--campaign`, `--concurrency`, `--out`, `--variable`.
6015
+
5981
6016
  ## imessage-lines
5982
6017
 
5983
6018
  ### kenso imessage-lines cancel
package/docs/work.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Agent work (beta)
2
2
 
3
- Some of Kenso's AI work can wait for your own coding agent instead: personalization, qualification, segmentation, rewriting, meeting briefs, call briefs, workflow prompts and background AI (Kenso's background model calls, such as sender persona labels and deal details: the item's prompt is the exact request Kenso would have sent). Set a kind to **My agent** and Kenso's AI no longer runs it. The work waits in a queue, your agent (Claude Code, Codex and others) writes it on your machine with your own AI plan, and Kenso stores each answer where its own AI would have. That work costs 0 Kenso credits.
3
+ Some of Kenso's AI work can wait for your own coding agent instead: personalization, qualification, segmentation, rewriting, meeting briefs, call briefs, workflow prompts and background AI (Kenso's background model calls, such as sender persona labels and deal details: the item's prompt is the exact request Kenso would have sent). Set a kind to **My agent** and Kenso's AI no longer runs it. The work waits in a queue, your agent (Claude Code, Codex and others) writes it on your machine with your own AI plan, and Kenso stores each answer where its own AI would have. That work runs at no Kenso cost.
4
4
 
5
5
  Switch it on per kind in the app: **Settings > AI work**, then pick **My agent** for a kind. Switch a kind back to **Ken** and Kenso's AI runs its work again. The `kenso work` commands are beta: they need the `agent_work` feature on your workspace, and until it is on they answer `not_found` (exit 4).
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.208",
3
+ "version": "0.1.210",
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": "a5b27a05a4ca8f4933f670e3e5289d2aaca7b5ff"
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",