kenso 0.1.54 → 0.1.56

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/crm.md CHANGED
@@ -7,6 +7,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
7
7
  | `accounts import` | Create accounts from a CSV or JSONL file. Research is charged per created account |
8
8
  | `people import` | Create or match people from a file, optionally onto accounts |
9
9
  | `accounts update --each`, `people update --each`, `opportunities update --each` | Edit many records from a file, one call per row |
10
+ | `accounts write-research`, `people write-research` | Store research you gathered as a record's latest research, free. `--each` writes many |
10
11
  | `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
11
12
 
12
13
  Import accounts first, then people: `people import` never creates an account.
@@ -91,6 +92,42 @@ accountId,stage,ownerMemberId,overwritePinned
91
92
 
92
93
  A row that changes a field someone pinned in the app fails as a whole (`409 conflict`, `pinned_by_user`: nothing on that record changes, the other fields of the row included), unless the row sets `overwritePinned` to `true` (or you pass `--overwrite-pinned`, only with the person's OK). Every flag of an update command: `kenso accounts update --help`.
93
94
 
95
+ ## Write research you gathered
96
+
97
+ `accounts write-research` and `people write-research` store research you gathered outside Kenso as the record's latest research (`PUT /v1/accounts/{accountId}/research`, `PUT /v1/people/{personId}/research`). The Research tab shows it like a Ken run, with `trigger: agent` and `researchedAt` now. Nothing is charged, and no account or person field changes: set an account's own `fitScore`, `whyNow` or `angle` with `accounts update`. They need the `accounts_research` flag and accounts edit.
98
+
99
+ The body is the research block `accounts get --expand research` (or `people get-research`) returns, without its read-only fields: leave out `id`, `status`, `trigger`, `errorCode`, `researchedAt`, `isStale` and `appliedPrompt` (for a person also `mode`, `requestedAt`, `researchedMode`, `firecrawlCredits` and `webNote`), or the write fails with `unknown_field`. Pass it with `--data @file`:
100
+
101
+ ```bash
102
+ kenso accounts write-research --account-id 501 --data @acme-dossier.json
103
+ kenso people write-research --person-id 9001 --data @jane.json
104
+ ```
105
+
106
+ ```json
107
+ {
108
+ "tagline": { "text": "Payroll for EU contractors", "sourceUrls": ["https://acme.example"] },
109
+ "description": { "text": "Acme runs payroll and compliance for companies hiring contractors in 30 EU countries.", "sourceUrls": ["https://acme.example"] },
110
+ "links": { "website": "https://acme.example" },
111
+ "whyNow": { "text": "Raised a $40M Series B in October", "sourceUrls": ["https://news.example/acme-b"], "date": "2026-10" },
112
+ "fitScore": 82,
113
+ "angle": "Lead with contractor onboarding time."
114
+ }
115
+ ```
116
+
117
+ Many records: one JSONL line per record, with the id next to the block's fields. Nested objects are sent as written. Use JSONL, not CSV: the block's fields are objects and lists, which a CSV cell cannot carry.
118
+
119
+ ```bash
120
+ kenso accounts write-research --each dossiers.jsonl --dry-run # then the same with --yes
121
+ kenso people write-research --each people-research.jsonl --yes --concurrency 8
122
+ ```
123
+
124
+ ```jsonl
125
+ {"accountId": 501, "tagline": {"text": "Payroll for EU contractors"}, "links": {"website": "https://acme.example"}}
126
+ {"accountId": 502, "description": {"text": "Cloud cost tooling for retailers."}, "links": {"website": "https://beta.example"}}
127
+ ```
128
+
129
+ A row fails as a whole with the API's code: `validation_failed` (an unknown field is `unknown_field`, and `error.details` names every bad field), `research_in_progress` (`409`: Ken is researching that record now, write it again once the run ends) or `not_found`. Rerunning a file is safe: each write replaces the record's research shown.
130
+
94
131
  ## CRM sync
95
132
 
96
133
  CRM sync has generated commands only: read connections, preview, start an import, and work through sync issues. Connect the CRM itself in the app.
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.54 (API contracts 2c23649fe6fd) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.56 (API contracts c666d1126c14) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1623 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
+ 1633 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
 
@@ -34,7 +34,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
34
34
  - [account-signals](#account-signals) (3)
35
35
  - [account-tiers](#account-tiers) (3)
36
36
  - [account-views](#account-views) (5)
37
- - [accounts](#accounts) (19)
37
+ - [accounts](#accounts) (20)
38
38
  - [ad-audiences](#ad-audiences) (5)
39
39
  - [ad-connections](#ad-connections) (6)
40
40
  - [agent](#agent) (1)
@@ -310,7 +310,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
310
310
  - [outbound-event-suggestions](#outbound-event-suggestions) (3)
311
311
  - [outbound-events](#outbound-events) (15)
312
312
  - [outbound-site](#outbound-site) (7)
313
- - [people](#people) (28)
313
+ - [people](#people) (29)
314
314
  - [performance-deal](#performance-deal) (8)
315
315
  - [permission-catalog](#permission-catalog) (1)
316
316
  - [permission-templates](#permission-templates) (5)
@@ -339,6 +339,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
339
339
  - [role-candidates](#role-candidates) (6)
340
340
  - [roles](#roles) (6)
341
341
  - [runs](#runs) (3)
342
+ - [sandboxes](#sandboxes) (3)
342
343
  - [saved-list-invites](#saved-list-invites) (2)
343
344
  - [saved-list-members](#saved-list-members) (1)
344
345
  - [saved-lists](#saved-lists) (18)
@@ -367,6 +368,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
367
368
  - [slack-channels](#slack-channels) (1)
368
369
  - [slack-connection](#slack-connection) (5)
369
370
  - [social-lookups](#social-lookups) (2)
371
+ - [social-monitor](#social-monitor) (5)
370
372
  - [social-records](#social-records) (1)
371
373
  - [social-resolutions](#social-resolutions) (1)
372
374
  - [social-searches](#social-searches) (2)
@@ -729,6 +731,12 @@ Update account fields. Absent fields stay unchanged; null clears. `PATCH /v1/acc
729
731
 
730
732
  Flags: `--account-id` (required), `--name`, `--stage`, `--network-label`, `--owner-member-id`, `--fit-score`, `--why-now`, `--angle`, `--cadence-days`, `--industry`, `--funding-round`, `--employee-count`, `--hq-location`, `--linkedin-url`, `--ken-company-id`, `--sends-from-inbox-id`, `--sends-from-linked-in-account-id`, `--sends-from-whats-app-account-id`, `--sends-from-facebook-account-id`, `--overwrite-pinned`, `--sends-from-instagram-account-id`, `--tier-override`, `--is-customer`, `--account-type`, `--no-overwrite-pinned`, `--no-is-customer`, `--data`, `--each`, `--concurrency`.
731
733
 
734
+ ### kenso accounts write-research
735
+
736
+ Write an account's research: store a dossier an agent gathered as its latest research. `PUT /v1/accounts/{accountId}/research`. Beta: needs `accounts` and `accounts_research`.
737
+
738
+ Flags: `--account-id` (required), `--why-now-status`, `--angle`, `--fit-score`, `--data`, `--each`, `--concurrency`.
739
+
732
740
  ## ad-audiences
733
741
 
734
742
  ### kenso ad-audiences create
@@ -3331,7 +3339,7 @@ Flags: `--campaign`, `--file`, `--map`, `--out`, `--server-import`, `--template`
3331
3339
 
3332
3340
  List contacts. `GET /v1/contacts` (a list).
3333
3341
 
3334
- Flags: `--campaign-id`, `--company-id`, `--created-after`, `--created-before`, `--cursor`, `--do-not-contact`, `--email`, `--is-qualified`, `--limit`, `--search`, `--segment-id`, `--no-do-not-contact`, `--no-is-qualified`, `--all`, `--each`, `--concurrency`.
3342
+ Flags: `--campaign-id`, `--company-id`, `--created-after`, `--created-before`, `--cursor`, `--do-not-contact`, `--email`, `--is-qualified`, `--limit`, `--search`, `--segment-id`, `--sort`, `--no-do-not-contact`, `--no-is-qualified`, `--all`, `--each`, `--concurrency`.
3335
3343
 
3336
3344
  ### kenso contacts list-website-pages
3337
3345
 
@@ -5893,7 +5901,7 @@ Flags: `--list-id` (required), `--each`, `--concurrency`.
5893
5901
 
5894
5902
  List a campaign's lists. `GET /v1/campaigns/{campaignId}/lists` (a list).
5895
5903
 
5896
- Flags: `--campaign-id` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
5904
+ Flags: `--campaign-id` (required), `--created-after`, `--created-before`, `--cursor`, `--limit`, `--sort`, `--all`, `--each`, `--concurrency`.
5897
5905
 
5898
5906
  ## login
5899
5907
 
@@ -6027,7 +6035,7 @@ List the hosted Kenso MCP's tools.
6027
6035
 
6028
6036
  List MCP tool calls in the current workspace. `GET /v1/mcp/calls` (a list).
6029
6037
 
6030
- Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
6038
+ Flags: `--cursor`, `--limit`, `--ok`, `--no-ok`, `--all`, `--each`, `--concurrency`.
6031
6039
 
6032
6040
  ## mcp-clients
6033
6041
 
@@ -7685,6 +7693,12 @@ Add, remove or reorder a person's phones without resending the list. `PATCH /v1/
7685
7693
 
7686
7694
  Flags: `--person-id` (required), `--primary`, `--overwrite-pinned`, `--no-overwrite-pinned`, `--data`, `--each`, `--concurrency`.
7687
7695
 
7696
+ ### kenso people write-research
7697
+
7698
+ Write a person's research: store research an agent gathered as their latest research. `PUT /v1/people/{personId}/research`. Beta: needs `accounts` and `accounts_research`.
7699
+
7700
+ Flags: `--person-id` (required), `--summary`, `--data`, `--each`, `--concurrency`.
7701
+
7688
7702
  ## performance-deal
7689
7703
 
7690
7704
  ### kenso performance-deal archive-offer
@@ -8317,6 +8331,26 @@ Show one batch run and its files.
8317
8331
 
8318
8332
  Arguments: `<runId>`.
8319
8333
 
8334
+ ## sandboxes
8335
+
8336
+ ### kenso sandboxes create
8337
+
8338
+ Create your sandbox and its first test key. `POST /v1/sandboxes`. Beta: needs `developer_sandboxes`.
8339
+
8340
+ Flags: `--each`, `--concurrency`.
8341
+
8342
+ ### kenso sandboxes get
8343
+
8344
+ Get your sandbox. `GET /v1/sandboxes/{sandboxId}`. Beta: needs `developer_sandboxes`.
8345
+
8346
+ Flags: `--sandbox-id` (required), `--each`, `--concurrency`.
8347
+
8348
+ ### kenso sandboxes list
8349
+
8350
+ List your sandboxes. `GET /v1/sandboxes`. Beta: needs `developer_sandboxes`.
8351
+
8352
+ Flags: `--each`, `--concurrency`.
8353
+
8320
8354
  ## saved-list-invites
8321
8355
 
8322
8356
  ### kenso saved-list-invites accept
@@ -9207,6 +9241,38 @@ Get a social lookup. `GET /v1/social-lookups/{socialLookupId}`. Beta: needs `soc
9207
9241
 
9208
9242
  Flags: `--social-lookup-id` (required), `--each`, `--concurrency`.
9209
9243
 
9244
+ ## social-monitor
9245
+
9246
+ ### kenso social-monitor approve-idea
9247
+
9248
+ Approve an edit idea's proposal. `POST /v1/social-monitor/ideas/{ideaId}/approve`. Beta: needs `social_monitor`.
9249
+
9250
+ Flags: `--idea-id` (required), `--each`, `--concurrency`.
9251
+
9252
+ ### kenso social-monitor build-idea
9253
+
9254
+ Start building a new-campaign idea. `POST /v1/social-monitor/ideas/{ideaId}/build`. Beta: needs `social_monitor`.
9255
+
9256
+ Flags: `--idea-id` (required), `--each`, `--concurrency`.
9257
+
9258
+ ### kenso social-monitor decline-idea
9259
+
9260
+ Decline an edit idea's proposal. `POST /v1/social-monitor/ideas/{ideaId}/decline`. Beta: needs `social_monitor`.
9261
+
9262
+ Flags: `--idea-id` (required), `--each`, `--concurrency`.
9263
+
9264
+ ### kenso social-monitor dismiss-idea
9265
+
9266
+ Dismiss a new-campaign idea. `POST /v1/social-monitor/ideas/{ideaId}/dismiss`. Beta: needs `social_monitor`.
9267
+
9268
+ Flags: `--idea-id` (required), `--each`, `--concurrency`.
9269
+
9270
+ ### kenso social-monitor list-weeks
9271
+
9272
+ List the weeks a From your posts message went out, newest first. `GET /v1/social-monitor/weeks` (a list). Beta: needs `social_monitor`.
9273
+
9274
+ Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
9275
+
9210
9276
  ## social-records
9211
9277
 
9212
9278
  ### kenso social-records list
@@ -10101,7 +10167,7 @@ Flags: `--account-ids`, `--person-ids`, `--each`, `--concurrency`.
10101
10167
 
10102
10168
  List an endpoint's delivery attempts. `GET /v1/webhook-endpoints/{webhookEndpointId}/deliveries` (a list).
10103
10169
 
10104
- Flags: `--webhook-endpoint-id` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
10170
+ Flags: `--webhook-endpoint-id` (required), `--created-after`, `--created-before`, `--cursor`, `--limit`, `--sort`, `--all`, `--each`, `--concurrency`.
10105
10171
 
10106
10172
  ### kenso webhook-deliveries resend
10107
10173
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
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": "e43d30d3232eb9b752f73e6f6efb5b3e92ac5ee7"
52
+ "gitHead": "9652d611ba525a59b9f4bdf7e7b468e742f9177c"
53
53
  }