kenso 0.1.186 → 0.1.188

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/connect.md CHANGED
@@ -26,7 +26,7 @@ Once the person signs in, it prints the new inbox and exits 0:
26
26
  | `connect inbox --provider google\|microsoft` | A sending inbox (`--purpose campaign`, the default) or your own mailbox (`--purpose primary`) | `GET /v1/inboxes` for a new inbox, or one signed in again |
27
27
  | `connect calendar --provider google\|microsoft` | A calendar, with email unless `--access calendar_only`. `--account-id cacc_...` signs one in again | `GET /v1/calendar-accounts` |
28
28
  | `connect video --provider zoom\|webex` | Nothing: only a signed-in person can start a Zoom or Webex connect, so it says where in the app and waits | `GET /v1/video-connections` |
29
- | `connect crm --provider <crm>` | hubspot, salesforce, pipedrive, attio, highlevel, dynamics (`--base-url`), zoho | `GET /v1/crm-connections` |
29
+ | `connect crm --provider <crm>` | hubspot, salesforce, pipedrive, attio, highlevel, dynamics (`--base-url`), zoho; `--sync-mode one_way` for push only | `GET /v1/crm-connections` |
30
30
  | `connect hubspot-knowledge` | HubSpot as a Knowledge source | `GET /v1/knowledge/sources` |
31
31
  | `connect github` | The Kenso GitHub app, for Knowledge | `GET /v1/integrations/github/installations` |
32
32
  | `connect migration` | Outreach, as a migration source. `--connection-id` signs one in again | `GET /v1/migration-connections` |
package/docs/crm.md CHANGED
@@ -29,7 +29,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
29
29
  | `pipelines stage-rules` | List or set the fields a deal should have in each stage |
30
30
  | `opportunity-reasons get`, `opportunity-reasons replace` | List or edit why deals are lost and won |
31
31
  | `layouts show\|set\|reset <object>` | How every account, person or deal page in the workspace lays out its fields: header, rail sections and hidden fields (needs `record_layout`) |
32
- | `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
32
+ | `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync, and switch it between two-way and one-way. Connect a CRM with `kenso connect crm` |
33
33
  | `tasks add`, `tasks done`, `tasks assign`, `tasks queue` | Add a to-do for a member on an account, person or deal, complete it, hand it on, or read your open work (needs `tasks`) |
34
34
  | `fields list`, `create`, `update`, `archive` | The built-in and custom fields of accounts, people and deals, and adding your own (needs `custom_fields`) |
35
35
  | `field-fill-settings`, `suggestions`, `fields fill` | How Ken fills each field from email, calls and meetings, the values it waits on you for, and filling a deal field for existing deals or a custom field for existing accounts (needs `ken_field_fill`) |
@@ -243,6 +243,8 @@ kenso crm-sync-issues list --connection-id 7 --all
243
243
 
244
244
  Run `kenso crm-connections --help` (or add `--all-commands` when the actions are hidden) to see every action.
245
245
 
246
+ A connection syncs two-way unless you choose one-way (`settings.syncMode`: `two_way` or `one_way`). One-way only pushes: Kenso keeps creating and updating CRM records and pushing activity, opt-outs, deals, tasks and lists, and reads nothing from the CRM but its owners, so there is no import, polling, webhooks, CRM list sources, inbound people or send holds from CRM data. Records already pulled stay. Choose it at connect with `kenso connect crm --provider hubspot --sync-mode one_way` (or `--sync-mode one_way` on `kenso crm-connections create` for close and twenty); a reconnect keeps the mode. Switch an existing connection with `kenso crm-connections update --connection-id 7 --data '{"settings": {"syncMode": "one_way"}}'`. Switching back to `two_way` starts the full first import again.
247
+
246
248
  ## Pipelines
247
249
 
248
250
  A workspace with the `pipelines` flag on can run several deal pipelines, each with its own stages. These are generated commands (beta):
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.186 (API contracts 13b0f73be913) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.188 (API contracts 9ce60eadc654) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 2010 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
+ 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) (17)
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) (13)
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
 
@@ -3721,7 +3728,7 @@ Flags: `--access`, `--account-id`, `--no-browser`, `--no-wait`, `--provider`, `-
3721
3728
 
3722
3729
  Connect a CRM (HubSpot, Salesforce, Pipedrive ...) in the browser. API operations: `crm-connections.create`, `crm-connections.list`.
3723
3730
 
3724
- Flags: `--base-url`, `--no-browser`, `--no-wait`, `--provider`, `--return-path`, `--timeout`.
3731
+ Flags: `--base-url`, `--no-browser`, `--no-wait`, `--provider`, `--return-path`, `--sync-mode`, `--timeout`.
3725
3732
 
3726
3733
  ### kenso connect facebook
3727
3734
 
@@ -4125,7 +4132,7 @@ Flags: `--code`, `--state`, `--error`, `--error-description`, `--accounts-server
4125
4132
 
4126
4133
  Connect a CRM. `POST /v1/crm-connections`. Beta: needs `ingestion`.
4127
4134
 
4128
- Flags: `--provider`, `--api-key`, `--base-url`, `--return-path`, `--install-source`, `--data`, `--each`, `--concurrency`.
4135
+ Flags: `--provider`, `--api-key`, `--base-url`, `--return-path`, `--install-source`, `--sync-mode`, `--data`, `--each`, `--concurrency`.
4129
4136
 
4130
4137
  ### kenso crm-connections create-pending-install
4131
4138
 
@@ -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/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) of one kind. Kenso and other claims leave them alone for `--lease` (default 30m).
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.186",
3
+ "version": "0.1.188",
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": "0ec1b32cd549495bb61a4b293da7861a8eaafc94"
52
+ "gitHead": "73a750631812ebef128af747bd770de2e2a1a01d"
53
53
  }