kenso 0.1.29 → 0.1.31

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.
@@ -130,6 +130,7 @@ Two API codes change the exit code: `workspace_required` exits 2 with `"next":"k
130
130
  | 6 | Rate limited after retries, or a plan or campaign lead limit stopped the run (`limit_reached`) |
131
131
  | 7 | Conflict or invalid state (HTTP 409), or a run another process holds |
132
132
  | 8 | Server error after retries (5xx), or the API is unreachable |
133
+ | 9 | Answer refused: a Kenso sandbox run stopped because an answer held a credential or something shaped like one |
133
134
  | 130 | Interrupted. A batch run can be resumed: see its `next` |
134
135
 
135
136
  Skipped rows (duplicates, blocklisted, already contacted) are not failures: a batch with only created, updated and skipped rows exits 0.
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.29 (API contracts aabc104043de) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.31 (API contracts a807ccff7a62) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1544 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
+ 1550 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
 
@@ -98,7 +98,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
98
98
  - [call-tasks](#call-tasks) (9)
99
99
  - [calling](#calling) (17)
100
100
  - [calls](#calls) (6)
101
- - [campaign-batches](#campaign-batches) (4)
101
+ - [campaign-batches](#campaign-batches) (7)
102
102
  - [campaign-compliance](#campaign-compliance) (2)
103
103
  - [campaign-images](#campaign-images) (2)
104
104
  - [campaign-knowledge-prompts](#campaign-knowledge-prompts) (1)
@@ -152,6 +152,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
152
152
  - [custom-variables](#custom-variables) (4)
153
153
  - [dashboard](#dashboard) (1)
154
154
  - [data-retention](#data-retention) (2)
155
+ - [deliverability-rules](#deliverability-rules) (1)
155
156
  - [delivery-defaults](#delivery-defaults) (3)
156
157
  - [delivery-settings](#delivery-settings) (2)
157
158
  - [describe](#describe) (1)
@@ -162,7 +163,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
162
163
  - [domain-health-checks](#domain-health-checks) (1)
163
164
  - [domain-imports](#domain-imports) (4)
164
165
  - [domain-orders](#domain-orders) (6)
165
- - [domains](#domains) (10)
166
+ - [domains](#domains) (11)
166
167
  - [email-copy-grades](#email-copy-grades) (1)
167
168
  - [email-copy-lints](#email-copy-lints) (1)
168
169
  - [email-finds](#email-finds) (2)
@@ -193,7 +194,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
193
194
  - [inbox-order-intents](#inbox-order-intents) (3)
194
195
  - [inbox-photos](#inbox-photos) (1)
195
196
  - [inbox-stock](#inbox-stock) (2)
196
- - [inboxes](#inboxes) (18)
197
+ - [inboxes](#inboxes) (19)
197
198
  - [infra](#infra) (3)
198
199
  - [infra-action-batches](#infra-action-batches) (3)
199
200
  - [infra-action-previews](#infra-action-previews) (1)
@@ -2353,7 +2354,7 @@ Flags: `--call-id` (required), `--disposition`, `--notes`, `--next-step`, `--fol
2353
2354
 
2354
2355
  Approve a campaign batch. `POST /v1/campaign-batches/{campaignBatchId}/approve`. Beta: needs `campaign_batches`.
2355
2356
 
2356
- Flags: `--campaign-batch-id` (required), `--count`, `--data`, `--each`, `--concurrency`.
2357
+ Flags: `--campaign-batch-id` (required), `--count`, `--updated-at`, `--data`, `--each`, `--concurrency`.
2357
2358
 
2358
2359
  ### kenso campaign-batches get
2359
2360
 
@@ -2367,12 +2368,30 @@ List campaign batches. `GET /v1/campaign-batches` (a list). Beta: needs `campaig
2367
2368
 
2368
2369
  Flags: `--campaign-id`, `--cursor`, `--limit`, `--status`, `--all`, `--each`, `--concurrency`.
2369
2370
 
2371
+ ### kenso campaign-batches restore-sample
2372
+
2373
+ Undo a skip in a campaign batch. `POST /v1/campaign-batches/{campaignBatchId}/samples/{contactId}/restore`. Beta: needs `campaign_batches`.
2374
+
2375
+ Flags: `--campaign-batch-id` (required), `--contact-id` (required), `--each`, `--concurrency`.
2376
+
2370
2377
  ### kenso campaign-batches send-back
2371
2378
 
2372
2379
  Send a campaign batch back to Ken. `POST /v1/campaign-batches/{campaignBatchId}/send-back`. Beta: needs `campaign_batches`.
2373
2380
 
2374
2381
  Flags: `--campaign-batch-id` (required), `--note`, `--data`, `--each`, `--concurrency`.
2375
2382
 
2383
+ ### kenso campaign-batches skip-sample
2384
+
2385
+ Skip one lead of a campaign batch. `POST /v1/campaign-batches/{campaignBatchId}/samples/{contactId}/skip`. Beta: needs `campaign_batches`.
2386
+
2387
+ Flags: `--campaign-batch-id` (required), `--contact-id` (required), `--reason`, `--data`, `--each`, `--concurrency`.
2388
+
2389
+ ### kenso campaign-batches update-sample
2390
+
2391
+ Edit one lead's first email in a campaign batch. `PATCH /v1/campaign-batches/{campaignBatchId}/samples/{contactId}`. Beta: needs `campaign_batches`.
2392
+
2393
+ Flags: `--campaign-batch-id` (required), `--contact-id` (required), `--subject`, `--body`, `--updated-at`, `--data`, `--each`, `--concurrency`.
2394
+
2376
2395
  ## campaign-compliance
2377
2396
 
2378
2397
  ### kenso campaign-compliance acknowledge
@@ -3493,6 +3512,14 @@ Change the workspace's data retention period. `PATCH /v1/data-retention`. Beta:
3493
3512
 
3494
3513
  Flags: `--months`, `--data`, `--each`, `--concurrency`.
3495
3514
 
3515
+ ## deliverability-rules
3516
+
3517
+ ### kenso deliverability-rules list
3518
+
3519
+ List the deliverability rules in force for the workspace. `GET /v1/deliverability-rules`.
3520
+
3521
+ Flags: `--each`, `--concurrency`.
3522
+
3496
3523
  ## delivery-defaults
3497
3524
 
3498
3525
  ### kenso delivery-defaults get
@@ -3749,6 +3776,12 @@ List domains. `GET /v1/domains` (a list).
3749
3776
 
3750
3777
  Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
3751
3778
 
3779
+ ### kenso domains list-health
3780
+
3781
+ List the health of many domains. `GET /v1/domains/health`.
3782
+
3783
+ Flags: `--domain-ids`, `--each`, `--concurrency`.
3784
+
3752
3785
  ### kenso domains update
3753
3786
 
3754
3787
  Update a domain. `PATCH /v1/domains/{domainId}`.
@@ -4591,6 +4624,12 @@ Get an inbox's warmup. `GET /v1/inboxes/{inboxId}/warmup`.
4591
4624
 
4592
4625
  Flags: `--inbox-id` (required), `--each`, `--concurrency`.
4593
4626
 
4627
+ ### kenso inboxes get-warmup-summary
4628
+
4629
+ Return warmup sends per day and placement test results for the workspace, per domain and per inbox. `GET /v1/inboxes/warmup-summary`.
4630
+
4631
+ Flags: `--from`, `--to`, `--each`, `--concurrency`.
4632
+
4594
4633
  ### kenso inboxes list
4595
4634
 
4596
4635
  List inboxes. `GET /v1/inboxes` (a list).
@@ -6381,7 +6420,7 @@ Flags: `--meeting-id` (required), `--each`, `--concurrency`.
6381
6420
 
6382
6421
  List the meetings the caller can see. `GET /v1/meetings` (a list). Beta: needs `meetings`.
6383
6422
 
6384
- Flags: `--account-id`, `--cursor`, `--from`, `--has-recording`, `--limit`, `--owner-member-id`, `--q`, `--status`, `--to`, `--no-has-recording`, `--all`, `--each`, `--concurrency`.
6423
+ Flags: `--account-id`, `--cursor`, `--from`, `--has-recording`, `--ids`, `--limit`, `--owner-member-id`, `--q`, `--status`, `--to`, `--no-has-recording`, `--all`, `--each`, `--concurrency`.
6385
6424
 
6386
6425
  ### kenso meetings list-sources
6387
6426
 
@@ -7459,7 +7498,7 @@ Flags: `--placement-test-id` (required), `--each`, `--concurrency`.
7459
7498
 
7460
7499
  List placement tests. `GET /v1/placement-tests` (a list).
7461
7500
 
7462
- Flags: `--campaign-id`, `--cursor`, `--domain-id`, `--inbox-id`, `--limit`, `--all`, `--each`, `--concurrency`.
7501
+ Flags: `--campaign-id`, `--cursor`, `--domain-id`, `--domain-ids`, `--inbox-id`, `--limit`, `--all`, `--each`, `--concurrency`.
7463
7502
 
7464
7503
  ## portal-sessions
7465
7504
 
package/docs/work.md CHANGED
@@ -58,7 +58,7 @@ When Kenso does not answer (a deploy restarts it), `run` and `pull` wait 30 s an
58
58
 
59
59
  ### In a Kenso sandbox
60
60
 
61
- 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 nothing else of the run.
61
+ 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 nothing else of the run. 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.
62
62
 
63
63
  ## Agents
64
64
 
@@ -71,7 +71,7 @@ A Kenso sandbox runs `kenso work run` in a box of your own with two flags that h
71
71
  | OpenCode | `opencode` | no | not yet |
72
72
  | Antigravity | `antigravity` | no | not yet |
73
73
 
74
- `run` checks that the agent is installed and logged in before it claims anything. Not installed: it stops with how to install it. Logged out: it stops with the agent's own login command. Kenso never logs in for you, never reads an agent's credential files, and never signs up for anything. An agent not yet proven runs, and says so once at the start.
74
+ `run` checks that the agent is installed and logged in before it claims anything. Not installed: it stops with how to install it. Logged out: it stops with the agent's own login command. Kenso never logs in for you, never copies or keeps an agent's credential files (a Kenso sandbox run reads them only to scan answers, and keeps only hashes), and never signs up for anything. An agent not yet proven runs, and says so once at the start.
75
75
 
76
76
  Claude Code is held to the job folder with its `--restricted` flag (Claude Code 2.1.322 or newer): an older one fails, and `run` says to update Claude Code.
77
77
 
@@ -170,4 +170,5 @@ Kenso checks format and language only: that each answer has the format and schem
170
170
  | 4 | `not_found`: the `agent_work` feature is not on, or the campaign or claim is not this workspace's |
171
171
  | 5 | Some answers were rejected, or some jobs failed (expired and duplicate answers do not count) |
172
172
  | 6 | The agent's plan hit its usage limit |
173
+ | 9 | In a Kenso sandbox (`--agent-user`): an answer held a credential or something shaped like one. Nothing of its claim was sent, every open claim was released and the run stopped |
173
174
  | 130 | Ctrl-C (or SIGTERM, or a closed terminal): the agents were stopped and the open claims released. A second Ctrl-C quits at once |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
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",
@@ -44,5 +44,5 @@
44
44
  "typescript-eslint": "8.71.1",
45
45
  "vitest": "5.0.3"
46
46
  },
47
- "gitHead": "4a8338358467792e8483d8bd8f127a07a69727f4"
47
+ "gitHead": "bc3d1eefe54bb709aabff0dd61e6842cc762ffda"
48
48
  }