kenso 0.1.185 → 0.1.187
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 +6 -0
- package/dist/discover.json +1 -1
- package/dist/kenso.js +337 -44
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/reference.md +28 -7
- package/docs/webhooks.md +1 -1
- package/docs/work.md +7 -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.187 (API contracts ae8eda67df06) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
2013 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
|
|
|
@@ -74,7 +74,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
74
74
|
- [asset-runs](#asset-runs) (4)
|
|
75
75
|
- [asset-template-datasets](#asset-template-datasets) (3)
|
|
76
76
|
- [asset-templates](#asset-templates) (17)
|
|
77
|
-
- [assets](#assets) (
|
|
77
|
+
- [assets](#assets) (18)
|
|
78
78
|
- [ats-connections](#ats-connections) (7)
|
|
79
79
|
- [ats-jobs](#ats-jobs) (2)
|
|
80
80
|
- [ats-pushes](#ats-pushes) (1)
|
|
@@ -187,7 +187,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
187
187
|
- [deal-room-answers](#deal-room-answers) (4)
|
|
188
188
|
- [deal-room-buyer-inputs](#deal-room-buyer-inputs) (10)
|
|
189
189
|
- [deal-room-content](#deal-room-content) (13)
|
|
190
|
-
- [deal-rooms](#deal-rooms) (
|
|
190
|
+
- [deal-rooms](#deal-rooms) (14)
|
|
191
191
|
- [deal-watch](#deal-watch) (3)
|
|
192
192
|
- [deal-watch-actions](#deal-watch-actions) (4)
|
|
193
193
|
- [deleted-accounts](#deleted-accounts) (1)
|
|
@@ -204,6 +204,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
204
204
|
- [domain-imports](#domain-imports) (4)
|
|
205
205
|
- [domain-orders](#domain-orders) (6)
|
|
206
206
|
- [domains](#domains) (11)
|
|
207
|
+
- [email-copy-detections](#email-copy-detections) (1)
|
|
207
208
|
- [email-copy-grades](#email-copy-grades) (1)
|
|
208
209
|
- [email-copy-lints](#email-copy-lints) (1)
|
|
209
210
|
- [email-copy-sameness-checks](#email-copy-sameness-checks) (1)
|
|
@@ -1683,6 +1684,12 @@ Flags: `--template-id` (required), `--delete-missing`, `--no-delete-missing`, `-
|
|
|
1683
1684
|
|
|
1684
1685
|
## assets
|
|
1685
1686
|
|
|
1687
|
+
### kenso assets approve
|
|
1688
|
+
|
|
1689
|
+
Approve a page that needs review. `POST /v1/assets/{assetId}/approve`. Beta: needs `studio`.
|
|
1690
|
+
|
|
1691
|
+
Flags: `--asset-id` (required), `--expected`, `--data`, `--each`, `--concurrency`.
|
|
1692
|
+
|
|
1686
1693
|
### kenso assets create-doc
|
|
1687
1694
|
|
|
1688
1695
|
Create a doc page from text. `POST /v1/assets/docs`. Beta: needs `rd_docs` and `studio`.
|
|
@@ -3305,7 +3312,7 @@ Flags: `--thread-id` (required), `--each`, `--concurrency`.
|
|
|
3305
3312
|
|
|
3306
3313
|
Reply in a captured thread from your own mailbox. `POST /v1/capture/threads/{threadId}/replies`. Beta: needs `crm_capture` and `deal_watch`.
|
|
3307
3314
|
|
|
3308
|
-
Flags: `--thread-id` (required), `--body`, `--idempotency-key` (required), `--data`, `--each`, `--concurrency`.
|
|
3315
|
+
Flags: `--thread-id` (required), `--body`, `--to-email`, `--idempotency-key` (required), `--data`, `--each`, `--concurrency`.
|
|
3309
3316
|
|
|
3310
3317
|
### kenso capture-threads update
|
|
3311
3318
|
|
|
@@ -4547,6 +4554,12 @@ Create a deal room. `POST /v1/deal-rooms`. Beta: needs `deal_room`.
|
|
|
4547
4554
|
|
|
4548
4555
|
Flags: `--opportunity-id`, `--data`, `--each`, `--concurrency`.
|
|
4549
4556
|
|
|
4557
|
+
### kenso deal-rooms create-preview-link
|
|
4558
|
+
|
|
4559
|
+
Open a deal room as a preview. `POST /v1/deal-rooms/{dealRoomId}/preview-links`. Beta: needs `deal_room`.
|
|
4560
|
+
|
|
4561
|
+
Flags: `--deal-room-id` (required), `--each`, `--concurrency`.
|
|
4562
|
+
|
|
4550
4563
|
### kenso deal-rooms get
|
|
4551
4564
|
|
|
4552
4565
|
Return one deal room. `GET /v1/deal-rooms/{dealRoomId}`. Beta: needs `deal_room`.
|
|
@@ -4953,6 +4966,14 @@ Verify a domain's tracking DNS. `POST /v1/domains/{domainId}/verify-dns`.
|
|
|
4953
4966
|
|
|
4954
4967
|
Flags: `--domain-id` (required), `--each`, `--concurrency`.
|
|
4955
4968
|
|
|
4969
|
+
## email-copy-detections
|
|
4970
|
+
|
|
4971
|
+
### kenso email-copy-detections detect
|
|
4972
|
+
|
|
4973
|
+
Read how an email draft reads. `POST /v1/email-copy-detections`.
|
|
4974
|
+
|
|
4975
|
+
Flags: `--subject`, `--body`, `--data`, `--each`, `--concurrency`.
|
|
4976
|
+
|
|
4956
4977
|
## email-copy-grades
|
|
4957
4978
|
|
|
4958
4979
|
### kenso email-copy-grades grade
|
|
@@ -6723,7 +6744,7 @@ Flags: `--each`, `--concurrency`.
|
|
|
6723
6744
|
|
|
6724
6745
|
Return the whole Knowledge tree: every folder and every file the caller can read, files with their bodies. `GET /v1/knowledge/tree`. Beta: needs `knowledge`.
|
|
6725
6746
|
|
|
6726
|
-
Flags: `--include-bodies`, `--no-include-bodies`, `--each`, `--concurrency`.
|
|
6747
|
+
Flags: `--account-id`, `--include-account-contents`, `--include-bodies`, `--no-include-account-contents`, `--no-include-bodies`, `--each`, `--concurrency`.
|
|
6727
6748
|
|
|
6728
6749
|
## knowledge-uploads
|
|
6729
6750
|
|
|
@@ -9449,7 +9470,7 @@ Flags: `--each`, `--concurrency`.
|
|
|
9449
9470
|
|
|
9450
9471
|
Start a placement test. `POST /v1/placement-tests`.
|
|
9451
9472
|
|
|
9452
|
-
Flags: `--campaign-id`, `--inbox-id`, `--domain-id`, `--sequence-version-id`, `--campaign-segment-id`, `--contact-id`, `--random-segment`, `--random-lead`, `--random-scope`, `--random-copy-version`, `--open-pixel`, `--track-links`, `--control`, `--subject`, `--body`, `--no-random-segment`, `--no-random-lead`, `--no-random-scope`, `--no-random-copy-version`, `--no-open-pixel`, `--no-track-links`, `--no-control`, `--data`, `--each`, `--concurrency`.
|
|
9473
|
+
Flags: `--campaign-id`, `--inbox-id`, `--domain-id`, `--sequence-version-id`, `--campaign-segment-id`, `--contact-id`, `--random-segment`, `--random-lead`, `--random-scope`, `--random-copy-version`, `--open-pixel`, `--track-links`, `--mime-shape`, `--control`, `--subject`, `--body`, `--no-random-segment`, `--no-random-lead`, `--no-random-scope`, `--no-random-copy-version`, `--no-open-pixel`, `--no-track-links`, `--no-control`, `--data`, `--each`, `--concurrency`.
|
|
9453
9474
|
|
|
9454
9475
|
### kenso placement-tests get
|
|
9455
9476
|
|
package/docs/webhooks.md
CHANGED
|
@@ -47,7 +47,7 @@ The headers:
|
|
|
47
47
|
| `svix-signature` | `v1,` and the base64 HMAC-SHA256 of `{svix-id}.{svix-timestamp}.{body}`, keyed by the secret |
|
|
48
48
|
| `content-type` | `application/json` |
|
|
49
49
|
|
|
50
|
-
So the verification code you write for production works unchanged: the Svix libraries (`svix` for Node, Python, Go and others) and the check in the Webhooks section of the Kenso API docs accept these deliveries. Only the secret differs. The listener's secret is local: it is made on your machine the first time you run `listen`, stays the same on every run, and is never a real endpoint's secret. In production, use your endpoint's secret from `kenso webhook-endpoints get-signing-secret --webhook-endpoint-id <webhookEndpointId>`.
|
|
50
|
+
So the verification code you write for production works unchanged: the Svix libraries (`svix` for Node, Python, Go and others) and the check in the Webhooks section of the Kenso API docs accept these deliveries. Only the secret differs. The listener's secret is local: it is made on your machine the first time you run `listen`, stays the same on every run, and is never a real endpoint's secret. In production, use your endpoint's secret from `kenso webhook-endpoints get-signing-secret --webhook-endpoint-id <webhookEndpointId>`. Run that yourself: Kenso gives the secret to a person only, so it refuses it when a coding agent runs the CLI, and read-only mode refuses it too.
|
|
51
51
|
|
|
52
52
|
For scripts, take the secret without starting a listener:
|
|
53
53
|
|
package/docs/work.md
CHANGED
|
@@ -32,12 +32,14 @@ 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 (default 10
|
|
35
|
+
1. It claims up to `--per-file` items of one kind: 1 with web research (the default), 10 with `--no-research`. 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
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.
|
|
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
|
-
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.
|
|
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.
|
|
41
|
+
|
|
42
|
+
With web research on, each job holds one lead, so text in one lead that steers the agent can reach only that lead's own data, never the rest of a batch. That makes a run slower: one agent start per lead. `--per-file` above 1 with web research still works and warns. The agent's web traffic goes through a proxy `run` starts on `127.0.0.1` (its `HTTP_PROXY` and `HTTPS_PROXY`), which refuses every address that is not on the public internet: loopback, private, link-local and the other special ranges, named as an IP address or by a name that resolves to one. When you have a proxy of your own in `HTTPS_PROXY`, `HTTP_PROXY` or `ALL_PROXY`, the agent uses yours, and `run` warns that it does not check the addresses. The proxy holds an agent that sends its web traffic through `HTTPS_PROXY`, as Claude Code's fetch and search tools do: an unconfined agent that runs commands (`--allow-unconfined`) can go around it.
|
|
41
43
|
|
|
42
44
|
```bash
|
|
43
45
|
kenso work run --agent claude --parallel 4 --kind personalization --max-items 200
|
|
@@ -49,13 +51,13 @@ kenso work run --agent claude --watch
|
|
|
49
51
|
|---|---|---|
|
|
50
52
|
| `--agent` | (required) | `claude`, `codex`, `antigravity`, `opencode`, `grok` or `cursor` |
|
|
51
53
|
| `--parallel` | 16 | Agents running at once, 1 to 16 |
|
|
52
|
-
| `--per-file` | 10 | Items per work file (one claim), 1 to 50 |
|
|
54
|
+
| `--per-file` | 1, or 10 with `--no-research` | Items per work file (one claim), 1 to 50 |
|
|
53
55
|
| `--kind`, `--campaign` | all | Only this kind (repeat or comma-separate) or this campaign's work |
|
|
54
56
|
| `--live-only` | off | Only the campaigns Kenso's AI works on by itself: no Draft, finished or errored campaign's leads |
|
|
55
57
|
| `--max-items` | none | Stop after claiming this many items |
|
|
56
58
|
| `--model` | the agent's | The model the agent runs |
|
|
57
59
|
| `--timeout` | 15m | Stop one job's agent after this long; shorter than `--lease` |
|
|
58
|
-
| `--no-research` | off | No web research: the agent answers from the work file only |
|
|
60
|
+
| `--no-research` | off | No web research: the agent answers from the work file only, 10 items per job |
|
|
59
61
|
| `--watch` | off | An empty queue is not the end: check again every 60 s until Ctrl-C |
|
|
60
62
|
| `--agent-bin` | on PATH | The agent's binary, when it is not on PATH under its usual name |
|
|
61
63
|
| `--allow-unconfined` | off | Run an agent Kenso cannot hold to the job folder (every agent but `claude`; see below) |
|
|
@@ -89,7 +91,7 @@ Claude Code is held to the job folder with its `--restricted` flag (Claude Code
|
|
|
89
91
|
|
|
90
92
|
### --allow-unconfined
|
|
91
93
|
|
|
92
|
-
Kenso can hold only Claude Code to the job folder. Any other agent could be steered by text in a lead's data to read other files on your machine (the saved Kenso API key in `~/.kenso/config.json` included) or, for some agents, to run commands. So `run` refuses those agents unless you pass `--allow-unconfined`, which says you accept that risk.
|
|
94
|
+
Kenso can hold only Claude Code to the job folder. Any other agent could be steered by text in a lead's data to read other files on your machine (the saved Kenso API key in `~/.kenso/config.json` included), every environment variable you have exported, in this and your other processes, or, for some agents, to run commands, which can reach any web address around the web guard. Kenso keeps your other variables out of the agent's own environment, but an agent that runs as you can still read another process's. So `run` refuses those agents unless you pass `--allow-unconfined`, which says you accept that risk.
|
|
93
95
|
|
|
94
96
|
```bash
|
|
95
97
|
kenso work run --agent codex --allow-unconfined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.187",
|
|
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": "c1862442c1dd41a3c272d82a0b69d4ad6a1a0a7a"
|
|
53
53
|
}
|