kenso 0.1.80 → 0.1.82
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/dist/kenso.js +413 -172
- package/dist/operations.json +1 -1
- package/docs/crm.md +25 -0
- package/docs/reference.md +48 -5
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -10,11 +10,13 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
10
10
|
| `accounts write-research`, `people write-research` | Store research you gathered as a record's latest research, free. `--each` writes many |
|
|
11
11
|
| `opportunities stage-history <id>` | A deal's stage history: each stage, when, who moved it and how long it sat there |
|
|
12
12
|
| `deleted-accounts list`, `accounts restore <id>` | The accounts deleted in the last 30 days, and bringing one back |
|
|
13
|
+
| `export <accounts\|people\|deals>` | The list as CSV: everything, a saved Accounts view, or what the filters match |
|
|
13
14
|
| `capture status` | Your captured mailbox, its backfill progress and what teammates see of a captured email. Needs the `crm_capture` flag |
|
|
14
15
|
| `capture connect` | Turn capture on for your own mailbox. `--private` starts it hidden from teammates; `--provider google` prints a sign-in link when no account is connected yet |
|
|
15
16
|
| `capture private on\|off` | Hide your captured email from teammates, or show it again. Email only: meetings stay visible |
|
|
16
17
|
| `capture disconnect` | Turn capture off and delete your stored email bodies. Asks first; `--yes` skips the question |
|
|
17
18
|
| `capture teammates-see summary\|full_email` | Workspace admin: what teammates see of captured email |
|
|
19
|
+
| `pipelines stage-rules` | List or set the fields a deal should have in each stage |
|
|
18
20
|
| `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
|
|
19
21
|
|
|
20
22
|
Import accounts first, then people: `people import` never creates an account.
|
|
@@ -184,6 +186,16 @@ kenso accounts restore 812
|
|
|
184
186
|
|
|
185
187
|
A deleted account can be restored for 30 days. `deleted-accounts list` shows each one with who deleted it, `expiresAt` (restore works until then) and what comes back: `personCount`, `opportunityCount` and `touchCount`. `accounts restore <id>` brings the account back with its domains, its people, its deals and its planned touches, which wait for approval again. A domain another account took since stays with that account and is listed in `domainsTaken`. A merged account is not listed and cannot be restored: a merge has no undo. Both commands are behind the `crm_import_export` feature flag (`404` while it is off).
|
|
186
188
|
|
|
189
|
+
## Export accounts, people or deals
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
kenso export accounts --out accounts.csv
|
|
193
|
+
kenso export accounts --view 12 --out tier-1.csv
|
|
194
|
+
kenso export deals --filters '[{"field":"stageCategory","operator":"is","values":["open"]}]' > open-deals.csv
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
It writes the CSV that `POST /v1/accounts/export`, `/v1/people/export` or `/v1/opportunities/export` returns, to stdout or to `--out` (then it prints the file and its row count). With no filter it exports every record. More than 50,000 rows is refused: narrow the filters. `--view <id>` exports a saved Accounts view (`kenso account-views list` shows the ids). `--filters`, `--where` (accounts), `--q` and `--sort` are the search operation's own fields, so a deals or people view exports with its filters and sort. The accounts and deals files start with `id` and import back as they are. Each export writes an audit-log entry and needs the export permission. Accounts and deals also need the `crm_import_export` flag while it is in beta.
|
|
198
|
+
|
|
187
199
|
## A deal's stage history
|
|
188
200
|
|
|
189
201
|
```bash
|
|
@@ -192,3 +204,16 @@ kenso opportunities stage-history 77 --query "entries[].{to: stageLabel, at: ent
|
|
|
192
204
|
```
|
|
193
205
|
|
|
194
206
|
It prints `GET /v1/opportunities/{id}/stage-history` as it is, the same rows as the deal page and the MCP's `opportunities(operation="get-stage-history")`: the stage now, `isComplete` and `entries`, oldest first, each with `fromStage`, `stage`, `stageLabel`, `enteredAt`, `leftAt`, `durationSeconds`, `actorKind`, `actorMemberId` and Ken's `reason` on a move its stage judge made. With the `deal_stage_rules` flag on, each entry also has `changedBy` (`member`, `agent`, `api_key`, `workflow`, `stage_judge`, `crm_sync` or `ken_automation`), `crmProvider` on a CRM sync, and on a move `fromStageLabel` and `fromStageDurationSeconds`, how long the deal sat in the stage it left. `isComplete` false means Kenso has no record of part of the history.
|
|
207
|
+
|
|
208
|
+
## Required fields per stage
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
kenso pipelines stage-rules
|
|
212
|
+
kenso pipelines stage-rules proposal --require amount,closeDate,custom.tier
|
|
213
|
+
kenso pipelines stage-rules proposal --none
|
|
214
|
+
kenso pipelines stage-rules lost --default
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
With the `deal_stage_rules` flag on, each stage can name the fields a deal should have in it. Without a stage the command prints every stage's `key`, `label`, `category`, `isArchived`, `requiredFields` and `isDefault`, plus `requirableFields`: `amount`, `closeDate`, `ownerMemberId`, `primaryPersonId`, `nextStep`, `lostReasonKey`, `wonReasonKey` and `custom.<key>` for each custom deal field. `--require` sets the stage's whole list, in order, at most 10. `--none` requires nothing, and `--default` goes back to the default: a lost stage asks for `lostReasonKey`, any other stage nothing. Setting a rule needs the `workspace_settings` permission. The same as the MCP's `opportunities(operation="stages-set-required-fields")`.
|
|
218
|
+
|
|
219
|
+
A missing field never stops a move. The deal moves, and it is flagged Missing on the board, the list and the deal page until the field is filled. A rule also applies to deals already in the stage.
|
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.82 (API contracts 3eabdc0b785e) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1700 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
|
|
|
@@ -188,6 +188,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
188
188
|
- [event-subscriptions](#event-subscriptions) (5)
|
|
189
189
|
- [events](#events) (2)
|
|
190
190
|
- [experiments](#experiments) (12)
|
|
191
|
+
- [export](#export) (1)
|
|
191
192
|
- [external-bookings](#external-bookings) (2)
|
|
192
193
|
- [facebook-accounts](#facebook-accounts) (9)
|
|
193
194
|
- [fathom-connection](#fathom-connection) (3)
|
|
@@ -314,7 +315,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
314
315
|
- [opportunities](#opportunities) (11)
|
|
315
316
|
- [opportunity-people](#opportunity-people) (4)
|
|
316
317
|
- [opportunity-settings](#opportunity-settings) (3)
|
|
317
|
-
- [opportunity-stages](#opportunity-stages) (
|
|
318
|
+
- [opportunity-stages](#opportunity-stages) (3)
|
|
318
319
|
- [optiverse-connection](#optiverse-connection) (3)
|
|
319
320
|
- [outbound-event-attendees](#outbound-event-attendees) (3)
|
|
320
321
|
- [outbound-event-suggestions](#outbound-event-suggestions) (3)
|
|
@@ -326,6 +327,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
326
327
|
- [permission-templates](#permission-templates) (5)
|
|
327
328
|
- [person-behavior](#person-behavior) (1)
|
|
328
329
|
- [person-facebook](#person-facebook) (4)
|
|
330
|
+
- [pipelines](#pipelines) (1)
|
|
329
331
|
- [placement-seed-sharing](#placement-seed-sharing) (2)
|
|
330
332
|
- [placement-tests](#placement-tests) (4)
|
|
331
333
|
- [portal-sessions](#portal-sessions) (1)
|
|
@@ -394,6 +396,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
394
396
|
- [support-attachments](#support-attachments) (3)
|
|
395
397
|
- [sync](#sync) (4)
|
|
396
398
|
- [tags](#tags) (9)
|
|
399
|
+
- [tasks](#tasks) (2)
|
|
397
400
|
- [teams-connection](#teams-connection) (5)
|
|
398
401
|
- [threads](#threads) (18)
|
|
399
402
|
- [today](#today) (1)
|
|
@@ -664,7 +667,7 @@ Flags: `--account-type`, `--data`, `--each`, `--concurrency`.
|
|
|
664
667
|
|
|
665
668
|
Create an account from its domains. `POST /v1/accounts`. Beta: needs `accounts`.
|
|
666
669
|
|
|
667
|
-
Flags: `--skip-research`, `--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`, `--source`, `--no-skip-research`, `--data`, `--each`, `--concurrency`.
|
|
670
|
+
Flags: `--skip-research`, `--name`, `--stage`, `--network-label`, `--owner-member-id`, `--fit-score`, `--why-now`, `--angle`, `--cadence-days`, `--industry`, `--funding-round`, `--employee-count`, `--hq-location`, `--revenue-range`, `--hq-city`, `--hq-country`, `--founded-year`, `--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`, `--source`, `--no-skip-research`, `--data`, `--each`, `--concurrency`.
|
|
668
671
|
|
|
669
672
|
### kenso accounts delete
|
|
670
673
|
|
|
@@ -754,7 +757,7 @@ Flags: `--search`, `--time-zone`, `--include-import-only`, `--sort`, `--limit`,
|
|
|
754
757
|
|
|
755
758
|
Update account fields. Absent fields stay unchanged; null clears. `PATCH /v1/accounts/{accountId}`. Beta: needs `accounts`.
|
|
756
759
|
|
|
757
|
-
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`.
|
|
760
|
+
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`, `--revenue-range`, `--hq-city`, `--hq-country`, `--founded-year`, `--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`.
|
|
758
761
|
|
|
759
762
|
### kenso accounts write-research
|
|
760
763
|
|
|
@@ -4378,6 +4381,16 @@ Watch the finding. `PUT /v1/experiments/{experimentId}/watch`. Beta: needs `expe
|
|
|
4378
4381
|
|
|
4379
4382
|
Flags: `--experiment-id` (required), `--each`, `--concurrency`.
|
|
4380
4383
|
|
|
4384
|
+
## export
|
|
4385
|
+
|
|
4386
|
+
### kenso export
|
|
4387
|
+
|
|
4388
|
+
Export accounts, people or deals as CSV: everything, a saved view, or what the filters match. API operations: `accounts.export`, `people.export`, `opportunities.export`, `account-views.list`. Beta: needs `accounts`.
|
|
4389
|
+
|
|
4390
|
+
Arguments: `<object>`.
|
|
4391
|
+
|
|
4392
|
+
Flags: `--filters`, `--out`, `--q`, `--sort`, `--view`, `--where`.
|
|
4393
|
+
|
|
4381
4394
|
## external-bookings
|
|
4382
4395
|
|
|
4383
4396
|
### kenso external-bookings get
|
|
@@ -7622,6 +7635,12 @@ Replace the workspace's opportunity stages. `PUT /v1/opportunity-stages`. Beta:
|
|
|
7622
7635
|
|
|
7623
7636
|
Flags: `--data`, `--each`, `--concurrency`.
|
|
7624
7637
|
|
|
7638
|
+
### kenso opportunity-stages set-required-fields
|
|
7639
|
+
|
|
7640
|
+
Set the fields a deal should have in a stage. `PUT /v1/opportunity-stages/{stageKey}/required-fields`. Beta: needs `deal_stage_rules` and `opportunities`.
|
|
7641
|
+
|
|
7642
|
+
Flags: `--stage-key` (required), `--data`, `--each`, `--concurrency`.
|
|
7643
|
+
|
|
7625
7644
|
## optiverse-connection
|
|
7626
7645
|
|
|
7627
7646
|
### kenso optiverse-connection connect
|
|
@@ -8118,6 +8137,16 @@ Set a person's Facebook profile URL. `PUT /v1/people/{personId}/facebook-profile
|
|
|
8118
8137
|
|
|
8119
8138
|
Flags: `--person-id` (required), `--url`, `--data`, `--each`, `--concurrency`.
|
|
8120
8139
|
|
|
8140
|
+
## pipelines
|
|
8141
|
+
|
|
8142
|
+
### kenso pipelines stage-rules
|
|
8143
|
+
|
|
8144
|
+
List or set the fields a deal should have in each stage. API operations: `opportunity-stages.list`, `opportunity-stages.set-required-fields`. Beta: needs `opportunities` and `deal_stage_rules`.
|
|
8145
|
+
|
|
8146
|
+
Arguments: `<stage>` (optional).
|
|
8147
|
+
|
|
8148
|
+
Flags: `--default`, `--none`, `--require`.
|
|
8149
|
+
|
|
8121
8150
|
## placement-seed-sharing
|
|
8122
8151
|
|
|
8123
8152
|
### kenso placement-seed-sharing get
|
|
@@ -9936,6 +9965,20 @@ Update a tag. `PATCH /v1/tags/{tagId}`.
|
|
|
9936
9965
|
|
|
9937
9966
|
Flags: `--tag-id` (required), `--data`, `--each`, `--concurrency`.
|
|
9938
9967
|
|
|
9968
|
+
## tasks
|
|
9969
|
+
|
|
9970
|
+
### kenso tasks get
|
|
9971
|
+
|
|
9972
|
+
Return one task. `GET /v1/tasks/{taskId}`. Beta: needs `tasks`.
|
|
9973
|
+
|
|
9974
|
+
Flags: `--task-id` (required), `--timezone`, `--each`, `--concurrency`.
|
|
9975
|
+
|
|
9976
|
+
### kenso tasks list
|
|
9977
|
+
|
|
9978
|
+
List tasks. `GET /v1/tasks` (a list). Beta: needs `tasks`.
|
|
9979
|
+
|
|
9980
|
+
Flags: `--account-id`, `--assigned-by`, `--assignee`, `--cursor`, `--due`, `--limit`, `--opportunity-id`, `--person-id`, `--status`, `--timezone`, `--all`, `--each`, `--concurrency`.
|
|
9981
|
+
|
|
9939
9982
|
## teams-connection
|
|
9940
9983
|
|
|
9941
9984
|
### kenso teams-connection complete
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.82",
|
|
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": "5bda6ad490d93a1055318b8eafdd670230eb4558"
|
|
53
53
|
}
|