kenso 0.1.174 → 0.1.175

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/agents.md CHANGED
@@ -115,6 +115,7 @@ kenso skill show workflows --reference files.md
115
115
  - **Follow `next`.** Every error with a known fix carries the exact command to run.
116
116
  - **Branch on the exit code:** 0 ok, 2 fix the command, 3 fix the key, 5 some rows failed, 6 wait or raise a limit, 130 resume.
117
117
  - **Look things up, do not guess.** `kenso describe <resource> <action>` prints any command's flags and body schema as JSON.
118
+ - **One id goes bare.** A command whose route names one record takes its id as a bare argument: `kenso opportunities update 2908 --stage proposal --dry-run` is `--opportunity-id 2908`.
118
119
  - **Find, then look up.** `kenso discover` turns a plain request into the command, doc, skill or workflow step for it, offline, with the next command to run.
119
120
  - **See the cost first.** The dry run of every `spend` command, one call or an `--each` file, and of `kenso workflows run` prints `credits` with `needed`, `available` and `sufficient`, each `null` when the CLI cannot read or price it. A generated command has a `needed` only where one call charges one unit (an email find, a place opened): its rate-card price times the calls. Every other generated spend prints `needed: null`, because the API decides how many units one call charges (an AI run charges each contact of the campaign). `null` is unknown, never free. A dry run without a key still prints its plan, with `available: null`. `kenso credits` reads the balance, usage and prices.
120
121
 
package/docs/crm.md CHANGED
@@ -8,8 +8,8 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
8
8
  | `people import` | Create or match people from a file, optionally onto accounts |
9
9
  | `import accounts <file.csv>`, `import people <file.csv>`, `import deals <file.csv>` | Import a CSV export of another CRM, up to 50,000 rows: Kenso proposes the mapping, you approve once, it runs in the background and can be undone for 30 days |
10
10
  | `accounts update --each`, `people update --each`, `opportunities update --each` | Edit many records from a file, one call per row |
11
- | `accounts bulk-update`, `people bulk-update`, `opportunities bulk-update` | Set the same fields on many records at once, by ids or by a filter, with a preview first. Needs `bulk_edit` too |
12
- | `accounts bulk-delete`, `people bulk-delete`, `opportunities bulk-delete` | Delete many records at once, by ids or by a filter, with a preview first. Not undone. Needs `bulk_edit` too |
11
+ | `accounts bulk-update`, `people bulk-update`, `opportunities bulk-update` | Set the same fields on many records at once, by ids, a filter or a saved view, with a preview first. Needs `bulk_edit` too |
12
+ | `accounts bulk-delete`, `people bulk-delete`, `opportunities bulk-delete` | Delete many records at once, by ids, a filter or a saved view, with a preview first. Not undone. Needs `bulk_edit` too |
13
13
  | `changes list`, `get`, `rows`, `apply`, `cancel`, `undo` | Follow a bulk change, read what each record got, stop it, or put the old values back for 30 days |
14
14
  | `accounts write-research`, `people write-research` | Store research you gathered as a record's latest research, free. `--each` writes many |
15
15
  | `opportunities move <id> [--stage <key>] [--pipeline <pipelineId>] [--reason <key>]` | Move a deal to a stage or another pipeline, with its won or lost reason; a field the stage asks for never stops it |
@@ -136,10 +136,12 @@ kenso accounts bulk-update --ids 812,813 --set stage=engaged --set tier=2 --yes
136
136
  kenso changes get --change-id 31
137
137
  ```
138
138
 
139
- `accounts bulk-update` sets the same fields on every account you name: `--ids` (1,000 at most), everything a `--filter` matches (the body `kenso accounts search --data` takes: `filters`, `where`, `q`; up to 50,000), or `--all`. A filter that holds only options and no condition (`--filter '{"includeImportOnly":true}'`) takes `--all` beside it. `--exclude-ids` leaves some of a filter's accounts out. `--set field=value` takes `ownerMemberId` (or `owner`), `stage`, `tierOverride` (or `tier`), `industry`, `fundingRound`, `employeeCount`, `hqLocation` and `cadenceDays`, and a custom field as `custom.<key>` (`--set custom.region=EMEA`; `kenso api GET '/v1/fields?object=account'` gives the keys); a value of `null` clears the field. `--add-tag 12,14` and `--remove-tag 13` put tags on every account or take them off (`kenso tags list` gives the ids); each tag is one row per account from `false` to `true` or back, so `kenso changes undo` takes off only the tags the change put on. People take them too; deals have no tags. A text field's value is sent as you type it (`--set hqLocation=10001` is the text "10001"); a custom field's type is not known to the CLI, so quote its text when it reads as a number or as true or false: `--set 'custom.code="10001"'`. Use `accounts update --each` when every row gets its own values.
139
+ `accounts bulk-update` sets the same fields on every account you name: `--ids` (1,000 at most), everything a `--filter` matches (the body `kenso accounts search --data` takes: `filters`, `where`, `q`; up to 50,000), every account a saved view lists (`--view <id>`: the API reads the view's own filter, so the count is what `kenso views run` lists), or `--all`. A view with no condition takes `--all` beside it. A filter that holds only options and no condition (`--filter '{"includeImportOnly":true}'`) takes `--all` beside it. `--exclude-ids` leaves some of a filter's accounts out. `--set field=value` takes `ownerMemberId` (or `owner`), `stage`, `tierOverride` (or `tier`), `industry`, `fundingRound`, `employeeCount`, `hqLocation` and `cadenceDays`, and a custom field as `custom.<key>` (`--set custom.region=EMEA`; `kenso api GET '/v1/fields?object=account'` gives the keys); a value of `null` clears the field. `--add-tag 12,14` and `--remove-tag 13` put tags on every account or take them off (`kenso tags list` gives the ids); each tag is one row per account from `false` to `true` or back, so `kenso changes undo` takes off only the tags the change put on. People take them too; deals have no tags. A text field's value is sent as you type it (`--set hqLocation=10001` is the text "10001"); a custom field's type is not known to the CLI, so quote its text when it reads as a number or as true or false: `--set 'custom.code="10001"'`. Use `accounts update --each` when every row gets its own values.
140
140
 
141
141
  It makes a change set: the accounts it names and, for each, the field, its value before and its value after. Without `--yes` (or with `--dry-run`) it previews: it prints `count` and a `sample`, writes nothing, and `next` is the `kenso changes apply` command that writes exactly those accounts. With `--yes` it writes in the background and waits (`--timeout`, default 10m), then prints the change with its `counts`: `applied`, `unchanged` (already had the value), `conflict` (the account changed after the preview, so it was left alone) and `failed` (for example `pinned`: a person set the field by hand; `--overwrite-pinned` replaces it). Exit 5 when some accounts failed or conflicted. It needs the `bulk_edit` flag as well as `accounts`.
142
142
 
143
+ Without `--yes` the command previews and prints the change's id. `--yes` with the same flags lists the records again as a new change; to apply exactly the preview, run `kenso accounts bulk-update --change-id <id> --yes` (or `kenso changes apply --change-id <id>`). `--change-id` takes no other target or `--set` flag.
144
+
143
145
  `kenso accounts bulk-update` used to be the generated command for the route's older one-field body, which sets one `accountType` on up to 500 accounts and needs only `accounts`. The route still takes that body, but this command no longer sends it: use `kenso accounts update --each` with an `accountType` column, or `kenso api POST /v1/accounts/bulk-update --data '{"accountIds":[812,813],"accountType":"lost"}'`.
144
146
 
145
147
  `people bulk-update` and `opportunities bulk-update` work the same way. People take `--set` for `ownerMemberId` (or `owner`), `leadStatus`, `title`, `seniority`, `department` and `location`, and a `--filter` of `kenso people search --data` fields (`leadStatus`, `roles`, `tagIds`, `q` and the rest). Deals take `stage` (a live stage key), `ownerMemberId` (or `owner`), `closeDate` (or `close`), `amount`, `dealType` and `nextStep`, and a `--filter` of `kenso opportunities search --data` fields (`filters`, `accountId`, `pipelineId`, `q`, `missingFields`). A stage belongs to one pipeline, and a bulk stage change keeps every deal in its own: `"pipelineId"` in the filter names one pipeline's deals, and a deal of another pipeline is counted under `failed` with the row code `other_pipeline` and is not moved (`kenso opportunities update` moves one deal to another pipeline):
@@ -157,7 +159,7 @@ kenso changes apply --change-id 32
157
159
  kenso opportunities bulk-delete --ids 71,72,73 --yes
158
160
  ```
159
161
 
160
- `accounts bulk-delete`, `people bulk-delete` and `opportunities bulk-delete` name their records the way `bulk-update` does (`--ids`, `--filter`, `--all`, `--exclude-ids`) and take no `--set`. Without `--yes` they preview: `count`, a `sample`, and `next` is the `kenso changes apply` command that deletes exactly those records. The API itself previews a delete whose body leaves `dryRun` out, so `--yes` sends `dryRun: false`. Each record is deleted as its own `delete` command deletes it, so one that cannot be deleted (a person still on an account) is counted as `failed` and the rest go on. `kenso changes undo` undoes a delete for 30 days: each account, person or deal still deleted is restored, as `kenso accounts restore`, `kenso people restore` or `kenso opportunities restore` restores it. A restore the record refuses (a person whose email a live person holds by now, a deal whose account is deleted) is that row's `undo_failed`.
162
+ `accounts bulk-delete`, `people bulk-delete` and `opportunities bulk-delete` name their records the way `bulk-update` does (`--ids`, `--filter`, `--view`, `--all`, `--exclude-ids`, and `--change-id` with `--yes` for a listed preview) and take no `--set`. Without `--yes` they preview: `count`, a `sample`, and `next` is the `kenso changes apply` command that deletes exactly those records. The API itself previews a delete whose body leaves `dryRun` out, so `--yes` sends `dryRun: false`. Each record is deleted as its own `delete` command deletes it, so one that cannot be deleted (a person still on an account) is counted as `failed` and the rest go on. `kenso changes undo` undoes a delete for 30 days: each account, person or deal still deleted is restored, as `kenso accounts restore`, `kenso people restore` or `kenso opportunities restore` restores it. A restore the record refuses (a person whose email a live person holds by now, a deal whose account is deleted) is that row's `undo_failed`.
161
163
 
162
164
  ### Follow, stop and undo a change
163
165
 
@@ -377,7 +379,7 @@ kenso notes add --parent 900 --body 'Sent it this morning' # a comment
377
379
  cat call-notes.md | kenso notes add --deal 77 --body - # the body from stdin
378
380
  kenso notes edit 900 --body 'Budget approved for Q1' # the author only
379
381
  kenso notes edit 900 --pin
380
- kenso notes delete 900 --yes # kenso notes restore --note-id 900 brings it back
382
+ kenso notes delete 900 --yes # kenso notes restore 900 brings it back
381
383
  ```
382
384
 
383
385
  `notes list` prints each note with its first 50 comments; when `commentCount` is higher, `notes list --parent <noteId>` reads them all. The body is markdown, up to 20,000 characters. Mention a teammate as `@[Name](memberId)`: they get a notification that opens the note. A note shows on the record's Notes tab and its Activity timeline, and Ken's account brief quotes the notes on the account, its deals and its people (`notes list --account <id> --related` reads the same). The MCP's `notes` tool does the same. A note on an account needs the accounts plan feature; people and deals work on every plan.
@@ -123,6 +123,7 @@ When stderr is not a terminal, an error is one JSON line on stderr:
123
123
  | `next` | no | The exact command to run next, such as `kenso auth login`, `kenso workspace list --search <name>` or the same command with `--yes` |
124
124
  | `httpStatus` | no | The API's HTTP status, when the API answered |
125
125
  | `requestId` | no | The API's request id: quote it when you contact Kenso support |
126
+ | `details` | no | The API's own `error.details`, as it sent them: each entry's `field`, `code` and `message`, plus the ids it names. A 409 for a domain another account owns holds `"code":"domain_taken"` and that account's `accountId` |
126
127
 
127
128
  On a terminal the same error prints as text: `Error: <message>`, then `field:`, `hint:`, `next:` and `requestId:` lines. The key never appears in an error.
128
129
 
package/docs/reference.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.174 (API contracts 0976b5e9174e) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.175 (API contracts fc9e03f58d24) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
5
  1998 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
 
@@ -763,15 +763,15 @@ Flags: `--data`, `--each`, `--concurrency`.
763
763
 
764
764
  ### kenso accounts bulk-delete
765
765
 
766
- Delete many accounts at once: by --ids, or everything a --filter matches. API operations: `accounts.bulk-delete`, `changes.get`. Beta: needs `accounts` and `bulk_edit`.
766
+ Delete many accounts at once: by --ids, everything a --filter matches, or a saved --view. API operations: `accounts.bulk-delete`, `changes.get`. Beta: needs `accounts` and `bulk_edit`.
767
767
 
768
- Flags: `--all`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--timeout`.
768
+ Flags: `--all`, `--change-id`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--timeout`, `--view`.
769
769
 
770
770
  ### kenso accounts bulk-update
771
771
 
772
- Change fields on many accounts at once: by --ids, or everything a --filter matches. API operations: `accounts.bulk-update`, `changes.get`. Beta: needs `accounts` and `bulk_edit`.
772
+ Change fields on many accounts at once: by --ids, everything a --filter matches, or a saved --view. API operations: `accounts.bulk-update`, `changes.get`. Beta: needs `accounts` and `bulk_edit`.
773
773
 
774
- Flags: `--add-tag`, `--all`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--overwrite-pinned`, `--remove-tag`, `--set`, `--timeout`.
774
+ Flags: `--add-tag`, `--all`, `--change-id`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--overwrite-pinned`, `--remove-tag`, `--set`, `--timeout`, `--view`.
775
775
 
776
776
  ### kenso accounts clear-why-not-now
777
777
 
@@ -801,7 +801,7 @@ Flags: `--cursor`, `--limit`, `--scan`, `--status`.
801
801
 
802
802
  Export the accounts a selection matches as CSV. `POST /v1/accounts/export`. Beta: needs `accounts` and `crm_import_export`.
803
803
 
804
- Flags: `--search`, `--time-zone`, `--include-import-only`, `--sort`, `--no-include-import-only`, `--out`, `--data`, `--each`, `--concurrency`.
804
+ Flags: `--search`, `--time-zone`, `--include-import-only`, `--sort`, `--view-id`, `--no-include-import-only`, `--out`, `--data`, `--each`, `--concurrency`.
805
805
 
806
806
  ### kenso accounts facets
807
807
 
@@ -4517,7 +4517,7 @@ Flags: `--deal-room-id` (required), `--step-key` (required), `--done`, `--date`,
4517
4517
 
4518
4518
  Edit, approve or switch off a section. `PATCH /v1/deal-rooms/{dealRoomId}/sections/{sectionKey}`. Beta: needs `deal_room`.
4519
4519
 
4520
- Flags: `--deal-room-id` (required), `--section-key` (required), `--status`, `--data`, `--each`, `--concurrency`.
4520
+ Flags: `--deal-room-id` (required), `--section-key` (required), `--status`, `--if-updated-at`, `--data`, `--each`, `--concurrency`.
4521
4521
 
4522
4522
  ## deal-rooms
4523
4523
 
@@ -8575,15 +8575,15 @@ Flags: `--each`, `--concurrency`.
8575
8575
 
8576
8576
  ### kenso opportunities bulk-delete
8577
8577
 
8578
- Delete many deals at once: by --ids, or everything a --filter matches. API operations: `opportunities.bulk-delete`, `changes.get`. Beta: needs `opportunities` and `bulk_edit`.
8578
+ Delete many deals at once: by --ids, everything a --filter matches, or a saved --view. API operations: `opportunities.bulk-delete`, `changes.get`. Beta: needs `opportunities` and `bulk_edit`.
8579
8579
 
8580
- Flags: `--all`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--timeout`.
8580
+ Flags: `--all`, `--change-id`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--timeout`, `--view`.
8581
8581
 
8582
8582
  ### kenso opportunities bulk-update
8583
8583
 
8584
- Change fields on many deals at once: by --ids, or everything a --filter matches. API operations: `opportunities.bulk-update`, `changes.get`. Beta: needs `opportunities` and `bulk_edit`.
8584
+ Change fields on many deals at once: by --ids, everything a --filter matches, or a saved --view. API operations: `opportunities.bulk-update`, `changes.get`. Beta: needs `opportunities` and `bulk_edit`.
8585
8585
 
8586
- Flags: `--all`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--overwrite-pinned`, `--set`, `--timeout`.
8586
+ Flags: `--all`, `--change-id`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--overwrite-pinned`, `--set`, `--timeout`, `--view`.
8587
8587
 
8588
8588
  ### kenso opportunities create
8589
8589
 
@@ -8601,7 +8601,7 @@ Flags: `--opportunity-id` (required), `--each`, `--concurrency`.
8601
8601
 
8602
8602
  Export the opportunities a selection matches as CSV. `POST /v1/opportunities/export`. Beta: needs `crm_import_export` and `opportunities`.
8603
8603
 
8604
- Flags: `--account-id`, `--pipeline-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--no-missing-fields`, `--out`, `--data`, `--each`, `--concurrency`.
8604
+ Flags: `--account-id`, `--pipeline-id`, `--search`, `--time-zone`, `--missing-fields`, `--sort`, `--view-id`, `--no-missing-fields`, `--out`, `--data`, `--each`, `--concurrency`.
8605
8605
 
8606
8606
  ### kenso opportunities fill-details
8607
8607
 
@@ -8969,15 +8969,15 @@ Flags: `--find-emails`, `--no-find-emails`, `--data`, `--each`, `--concurrency`.
8969
8969
 
8970
8970
  ### kenso people bulk-delete
8971
8971
 
8972
- Delete many people at once: by --ids, or everything a --filter matches. API operations: `people.bulk-delete`, `changes.get`. Beta: needs `accounts` and `bulk_edit`.
8972
+ Delete many people at once: by --ids, everything a --filter matches, or a saved --view. API operations: `people.bulk-delete`, `changes.get`. Beta: needs `accounts` and `bulk_edit`.
8973
8973
 
8974
- Flags: `--all`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--timeout`.
8974
+ Flags: `--all`, `--change-id`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--timeout`, `--view`.
8975
8975
 
8976
8976
  ### kenso people bulk-update
8977
8977
 
8978
- Change fields on many people at once: by --ids, or everything a --filter matches. API operations: `people.bulk-update`, `changes.get`. Beta: needs `accounts` and `bulk_edit`.
8978
+ Change fields on many people at once: by --ids, everything a --filter matches, or a saved --view. API operations: `people.bulk-update`, `changes.get`. Beta: needs `accounts` and `bulk_edit`.
8979
8979
 
8980
- Flags: `--add-tag`, `--all`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--overwrite-pinned`, `--remove-tag`, `--set`, `--timeout`.
8980
+ Flags: `--add-tag`, `--all`, `--change-id`, `--exclude-ids`, `--filter`, `--ids`, `--label`, `--overwrite-pinned`, `--remove-tag`, `--set`, `--timeout`, `--view`.
8981
8981
 
8982
8982
  ### kenso people clear-instagram
8983
8983
 
@@ -9013,7 +9013,7 @@ Flags: `--person-id` (required), `--each`, `--concurrency`.
9013
9013
 
9014
9014
  Export the people the filters match as CSV. `POST /v1/people/export`. Beta: needs `accounts`.
9015
9015
 
9016
- Flags: `--search`, `--on-account`, `--has-email`, `--owner-member-id`, `--has-suggestion`, `--include-import-only`, `--location`, `--sort`, `--no-has-email`, `--no-has-suggestion`, `--no-include-import-only`, `--out`, `--data`, `--each`, `--concurrency`.
9016
+ Flags: `--search`, `--on-account`, `--has-email`, `--owner-member-id`, `--has-suggestion`, `--include-import-only`, `--location`, `--sort`, `--view-id`, `--no-has-email`, `--no-has-suggestion`, `--no-include-import-only`, `--out`, `--data`, `--each`, `--concurrency`.
9017
9017
 
9018
9018
  ### kenso people find-emails
9019
9019
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.174",
3
+ "version": "0.1.175",
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": "550b1ef078688f018ccd9d77252899fa3f15d24e"
52
+ "gitHead": "85654dc86b47d12ccbd96bd8c3bb908e870558a2"
53
53
  }