kenso 0.1.209 → 0.1.211
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/CHANGELOG.md +1 -0
- package/dist/discover.json +1 -1
- package/dist/kenso.js +220 -82
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/reference.md +17 -5
- package/docs/work.md +15 -5
- package/package.json +2 -2
package/docs/reference.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Kenso CLI command reference
|
|
2
2
|
|
|
3
|
-
Generated from kenso 0.1.
|
|
3
|
+
Generated from kenso 0.1.211 (API contracts 26c8dcb4835c) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
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) (
|
|
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)
|
|
@@ -3025,7 +3025,7 @@ Flags: `--campaign-id` (required), `--auto-launch-when-ready`, `--no-auto-launch
|
|
|
3025
3025
|
|
|
3026
3026
|
Create a campaign. `POST /v1/campaigns`.
|
|
3027
3027
|
|
|
3028
|
-
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`.
|
|
3029
3029
|
|
|
3030
3030
|
### kenso campaigns create-enrichment-run
|
|
3031
3031
|
|
|
@@ -3235,7 +3235,7 @@ Flags: `--campaign-id` (required), `--each`, `--concurrency`.
|
|
|
3235
3235
|
|
|
3236
3236
|
Update a campaign. `PATCH /v1/campaigns/{campaignId}`.
|
|
3237
3237
|
|
|
3238
|
-
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`.
|
|
3239
3239
|
|
|
3240
3240
|
### kenso campaigns update-agent-work
|
|
3241
3241
|
|
|
@@ -4745,6 +4745,12 @@ Read the room's quote. `GET /v1/deal-rooms/{dealRoomId}/quote`. Beta: needs `dea
|
|
|
4745
4745
|
|
|
4746
4746
|
Flags: `--deal-room-id` (required), `--each`, `--concurrency`.
|
|
4747
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
|
+
|
|
4748
4754
|
### kenso deal-room-content list-files
|
|
4749
4755
|
|
|
4750
4756
|
List a deal room's files. `GET /v1/deal-rooms/{dealRoomId}/files`. Beta: needs `deal_room`.
|
|
@@ -4799,6 +4805,12 @@ Rename a file or move it to another place in the room. `PATCH /v1/deal-rooms/{de
|
|
|
4799
4805
|
|
|
4800
4806
|
Flags: `--deal-room-id` (required), `--file-id` (required), `--name`, `--target-kind`, `--target-key`, `--data`, `--each`, `--concurrency`.
|
|
4801
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
|
+
|
|
4802
4814
|
### kenso deal-room-content update-plan-step
|
|
4803
4815
|
|
|
4804
4816
|
Change one plan step. `PATCH /v1/deal-rooms/{dealRoomId}/plan/steps/{stepKey}`. Beta: needs `deal_room`.
|
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
|
|
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, 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) and images (each lead's campaign image: see [Images](#images)). 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
|
|
|
@@ -32,9 +32,9 @@ kenso work run --agent claude --watch --live-only
|
|
|
32
32
|
|
|
33
33
|
`run` repeats one job per work file, with up to 16 agents at once:
|
|
34
34
|
|
|
35
|
-
1. It claims up to `--per-file` items of one kind: 1 with web research (the default), 10 with `--no-research
|
|
35
|
+
1. It claims up to `--per-file` items of one kind: 1 with web research (the default), 10 with `--no-research`, and 1 with `--kind image` alone. Kenso and other claims leave them alone for `--lease` (default 30m).
|
|
36
36
|
2. It writes the claim to `<claimId>.work.json` in a job folder that holds only that file.
|
|
37
|
-
3. It starts the agent headless in that folder with a short instruction: read the work file, write `<claimId>.answers.json`, run no commands, touch no other file.
|
|
37
|
+
3. It starts the agent headless in that folder with a short instruction: read the work file, write `<claimId>.answers.json`, run no commands, touch no other file. An image job may also write its image files in the folder, and draw them with code or an image tool.
|
|
38
38
|
4. When the agent exits, it sends the answers and releases the items left unanswered, so they go back to the queue at once.
|
|
39
39
|
|
|
40
40
|
The agent never gets the Kenso API key and never runs `kenso`: the loop claims and submits. The agent uses its own login and plan; API key variables such as `ANTHROPIC_API_KEY` are removed from its environment so the plan login is the one used. Its environment holds only what a CLI needs from yours: `PATH`, `HOME`, `USER`, `LOGNAME`, `SHELL`, `TERM`, the locale (`LANG`, `LANGUAGE`, `LC_*`, `TZ`), the temp folder, the `XDG_*` folders, your proxy and CA variables, the Windows profile variables, and the agent's own (`CLAUDE_CONFIG_DIR` and `CLAUDE_CODE_OAUTH_TOKEN` for Claude Code, `CODEX_HOME` for Codex). Every other variable you have exported stays out of it.
|
|
@@ -51,7 +51,7 @@ kenso work run --agent claude --watch
|
|
|
51
51
|
|---|---|---|
|
|
52
52
|
| `--agent` | (required) | `claude`, `codex`, `antigravity`, `opencode`, `grok` or `cursor` |
|
|
53
53
|
| `--parallel` | 16 | Agents running at once, 1 to 16 |
|
|
54
|
-
| `--per-file` | 1, or 10 with `--no-research` | Items per work file (one claim), 1 to 50 |
|
|
54
|
+
| `--per-file` | 1, or 10 with `--no-research` (1 with `--kind image` alone) | Items per work file (one claim), 1 to 50 |
|
|
55
55
|
| `--kind`, `--campaign` | all | Only this kind (repeat or comma-separate) or this campaign's work |
|
|
56
56
|
| `--live-only` | off | Only the campaigns Kenso's AI works on by itself: no Draft, finished or errored campaign's leads |
|
|
57
57
|
| `--max-items` | none | Stop after claiming this many items |
|
|
@@ -72,7 +72,7 @@ When Kenso does not answer (a deploy restarts it), `run` and `pull` wait 30 s an
|
|
|
72
72
|
|
|
73
73
|
### In a Kenso sandbox
|
|
74
74
|
|
|
75
|
-
A Kenso sandbox runs `kenso work run` in a box of your own with two flags that help leaves out. `--token-stdin` reads stdin to its end, so the caller closes it after writing, and uses its first line, a run token (`krt_` and 43 characters), instead of any saved key or `KENSO_API_KEY`: no config file is read, the token goes only on the claim, answer and release calls, and a terminal on stdin is refused (exit 2). `--agent-user <name>` starts every agent and every login check as that user through `sudo -n -u <name> -H`, so the agent gets the environment sudo builds plus the agent's own variables and nothing of kenso's, and it stops agents with `kill` run as that user. It refuses (exit 2, `agent_user_invalid`) root, the user kenso runs as, a user in a group that can run sudo, a user with no home folder and a user sudo will not run `cat` or `kill` as. It needs `KENSO_RUNS_DIR`, which the box makes `root:ksjobs` with mode 3770: the run folder there is 2750, each job folder 3770 (sticky, so no agent can replace the work file) and each work file 0640, so the agent user's group can write its answers and, beside them, only the run's `tmp` folder (3770), which every agent gets as `TMPDIR`, `TMP` and `TEMP`, so its temp files stay in the run folder. OpenCode keeps a session database per job there too (`OPENCODE_DB`), not in the one every earlier run wrote to. Every answer is scanned before it is sent: one that holds a piece of the agent's login, a credential-shaped string or a long random-looking run outside a link stops the run with exit 9, and the summary's `message` names only the reason. A run that cannot read the agent's login files does not start (exit 1). The summary's `confinement` (`full`, `partial` or `none`) says how far a sandbox holds the agent.
|
|
75
|
+
A Kenso sandbox runs `kenso work run` in a box of your own with two flags that help leaves out. `--token-stdin` reads stdin to its end, so the caller closes it after writing, and uses its first line, a run token (`krt_` and 43 characters), instead of any saved key or `KENSO_API_KEY`: no config file is read, the token goes only on the claim, answer and release calls, and a terminal on stdin is refused (exit 2). `--agent-user <name>` starts every agent and every login check as that user through `sudo -n -u <name> -H`, so the agent gets the environment sudo builds plus the agent's own variables and nothing of kenso's, and it stops agents with `kill` run as that user. It refuses (exit 2, `agent_user_invalid`) root, the user kenso runs as, a user in a group that can run sudo, a user with no home folder and a user sudo will not run `cat` or `kill` as. It needs `KENSO_RUNS_DIR`, which the box makes `root:ksjobs` with mode 3770: the run folder there is 2750, each job folder 3770 (sticky, so no agent can replace the work file) and each work file 0640, so the agent user's group can write its answers and, beside them, only the run's `tmp` folder (3770), which every agent gets as `TMPDIR`, `TMP` and `TEMP`, so its temp files stay in the run folder. OpenCode keeps a session database per job there too (`OPENCODE_DB`), not in the one every earlier run wrote to. Every answer is scanned before it is sent: one that holds a piece of the agent's login, a credential-shaped string or a long random-looking run outside a link stops the run with exit 9, and the summary's `message` names only the reason. An image answer's SVG is scanned for the first two only (its drawing data reads as random), and a raster image's bytes (PNG, JPEG, WebP, GIF) are not scanned at all. A run that cannot read the agent's login files does not start (exit 1). The summary's `confinement` (`full`, `partial` or `none`) says how far a sandbox holds the agent.
|
|
76
76
|
|
|
77
77
|
`--agent-tools` (only with both, and with `--allow-unconfined`; not with `--no-research`) gives each agent more. Before the first claim kenso asks Kenso for the run's agent key (an Editor-level key of the person who started the run, revoked when the run ends) and passes it to each agent as `KENSO_API_KEY`, with `KENSO_API_URL`, `KENSO_WORKSPACE_ID` and `AI_AGENT`; when Kenso has no key for the run (409 `agent_key_unavailable`) the agents run without one, and any other failure stops the run (exit 1, `agent_key_failed`). Each agent starts with its shell and web tools on, each job folder gets `AGENTS.md`, `CLAUDE.md` and `GEMINI.md` (one text, shipped with kenso, saying what the agent may use and what it costs), and an answer that holds the key is refused like one that holds a login. The summary's `confinement` is then `none`, or `partial` for codex.
|
|
78
78
|
|
|
@@ -114,6 +114,16 @@ kenso work release awc_8fK2Qm1xYp3Lr7Tn0Va9Bc
|
|
|
114
114
|
3. `submit` sends the answers files and prints the counts.
|
|
115
115
|
4. `release` gives back a claim you will not finish. Unanswered items also go back on their own when the claim expires.
|
|
116
116
|
|
|
117
|
+
## Images
|
|
118
|
+
|
|
119
|
+
With **Images** on My agent (for the workspace, or for one campaign), Kenso's image model makes no images for that campaign's per-prospect image variables: each lead with no current image waits for your agent. A shared image and a workflow's `ai.image` step stay on Kenso's AI. Images your agent makes run at no Kenso cost.
|
|
120
|
+
|
|
121
|
+
Each item holds the variable's prompt with the lead's facts filled in (the prompt Kenso's model would get), the size, the alt text and public links to the reference pictures the variable names (the lead's photo, the company's logo and website, your own logo, a picture you added). The agent makes the image any way it can: Claude Code, held to the job folder, writes an SVG; an agent run with `--allow-unconfined` may also run code or its own image tool.
|
|
122
|
+
|
|
123
|
+
The agent saves the image next to the answers file under a plain file name and answers `{"file": "<name>"}`. `run` and `submit` send the file itself, one answer per call: an SVG (at most 512 KB) as `{"svg": "..."}`, which Kenso turns into a PNG 1024 px high, and a PNG, JPEG, WebP or GIF (at most 8 MB, known by its first bytes) as `{"image": {"contentType", "base64"}}`. A file they cannot send drops its answer, and the item goes back to the queue: `image_file_name` (a path, not a plain name), `image_file_missing`, `image_file_type` or `image_file_too_large`. An agent with no file system (the MCP, the API) answers `{"svg": "..."}` or `{"url": "https://..."}` instead.
|
|
124
|
+
|
|
125
|
+
Kenso takes an image in as an upload. An image you upload, or regenerate with Kenso's AI, while the item is claimed wins, and an answer for a lead whose image already went out in a step is `expired`.
|
|
126
|
+
|
|
117
127
|
## Files
|
|
118
128
|
|
|
119
129
|
`<claimId>.work.json`, written by `pull` and `run`:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.211",
|
|
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": "
|
|
52
|
+
"gitHead": "12ac208474f2868cf293db393ab859de9afa6a99"
|
|
53
53
|
}
|