kenso 0.1.125 → 0.1.128

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/batch.md CHANGED
@@ -148,6 +148,13 @@ accountId,stage,overwritePinned
148
148
 
149
149
  Each row is `ok` on a 2xx answer (with the created or returned id), `not_found` on 404, `failed` otherwise, or `invalid` when a required value is missing.
150
150
 
151
+ `--each` sends one request per row. Where the API has a bulk or batch route, call it once instead: `campaigns bulk-pause` and `campaigns bulk-resume` take up to 50 campaign ids and answer with one result per campaign, and `threads batch-messages` reads the messages of up to 50 email threads.
152
+
153
+ ```bash
154
+ kenso campaigns bulk-pause --data '{"ids": [812, 813, 814]}' --dry-run
155
+ kenso threads batch-messages --thread-ids thr_abc,thr_def
156
+ ```
157
+
151
158
  ## The token-saving pattern for agents
152
159
 
153
160
  1. Pass a file path, never the rows: `--file leads.csv`.
package/docs/crm.md CHANGED
@@ -354,7 +354,7 @@ kenso opportunities stage-history 77
354
354
  kenso opportunities stage-history 77 --query "entries[].{to: stageLabel, at: enteredAt, by: changedBy}"
355
355
  ```
356
356
 
357
- 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. The created entry of a deal a CSV import brought in has `imported: true`; one imported in a won or lost stage entered it on its file's close date, which is its `enteredAt`. 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.
357
+ 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. The created entry of a deal a CSV import brought in has `imported: true`; one imported in a won or lost stage entered it on its file's close date, which is its `enteredAt`. 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. With the `pipelines` flag on, a move between pipelines also has `pipeline` and `fromPipeline` (`{id, name}`), the pipeline the deal moved into and out of. `isComplete` false means Kenso has no record of part of the history.
358
358
 
359
359
  ## Notes on accounts, people and deals
360
360
 
@@ -362,6 +362,8 @@ With the `record_notes` feature on, everyone who can see a record reads its note
362
362
 
363
363
  ```bash
364
364
  kenso notes list --account 5
365
+ kenso notes list --account 5 --related # with the notes on its deals and people
366
+ kenso notes list --parent 900 # every comment under note 900, oldest first
365
367
  kenso notes add --account 5 --body 'Budget approved, @[Jane Doe](41) please send the DPA'
366
368
  kenso notes add --parent 900 --body 'Sent it this morning' # a comment under note 900
367
369
  cat call-notes.md | kenso notes add --deal 77 --body - # the body from stdin
@@ -370,7 +372,7 @@ kenso notes edit 900 --pin
370
372
  kenso notes delete 900 --yes # kenso notes restore --note-id 900 brings it back
371
373
  ```
372
374
 
373
- 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 account's notes. 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.
375
+ `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.
374
376
 
375
377
  ## Required fields per stage
376
378
 
package/docs/reference.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.125 (API contracts 67f3662fb446) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.128 (API contracts 7a0e66b3828e) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
5
  1902 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
 
@@ -3864,7 +3864,7 @@ Flags: `--campaign`, `--file`, `--map`, `--out`, `--server-import`, `--template`
3864
3864
 
3865
3865
  List contacts. `GET /v1/contacts` (a list).
3866
3866
 
3867
- Flags: `--campaign-id`, `--company-id`, `--created-after`, `--created-before`, `--cursor`, `--do-not-contact`, `--email`, `--is-qualified`, `--limit`, `--person-id`, `--search`, `--segment-id`, `--sort`, `--no-do-not-contact`, `--no-is-qualified`, `--all`, `--full`, `--each`, `--concurrency`.
3867
+ Flags: `--campaign-id`, `--company-id`, `--created-after`, `--created-before`, `--cursor`, `--do-not-contact`, `--email`, `--param-fields`, `--is-qualified`, `--limit`, `--person-id`, `--search`, `--segment-id`, `--sort`, `--no-do-not-contact`, `--no-is-qualified`, `--all`, `--full`, `--each`, `--concurrency`.
3868
3868
 
3869
3869
  ### kenso contacts list-website-pages
3870
3870
 
@@ -8062,9 +8062,9 @@ Flags: `--note-id` (required), `--each`, `--concurrency`.
8062
8062
 
8063
8063
  ### kenso notes list
8064
8064
 
8065
- List the notes on an account, a person or a deal, pinned first, then newest. `GET /v1/notes`. Beta: needs `record_notes`.
8065
+ List the notes on an account, a person or a deal, or every comment under one note. `GET /v1/notes`. Beta: needs `record_notes`.
8066
8066
 
8067
- Flags: `--account`, `--deal`, `--person`.
8067
+ Flags: `--account`, `--deal`, `--parent`, `--person`, `--related`.
8068
8068
 
8069
8069
  ### kenso notes restore
8070
8070
 
@@ -11304,7 +11304,7 @@ Flags: `--thread-id` (required), `--message-id` (required), `--index` (required)
11304
11304
 
11305
11305
  List threads. `GET /v1/threads` (a list).
11306
11306
 
11307
- Flags: `--campaign-id`, `--channel`, `--contact-id`, `--cursor`, `--folder`, `--group-by`, `--has-reminder`, `--inbox-id`, `--interest`, `--is-archived`, `--is-read`, `--is-saved`, `--limit`, `--person-key`, `--search`, `--sort`, `--source`, `--status`, `--tag-ids`, `--no-has-reminder`, `--no-is-archived`, `--no-is-read`, `--no-is-saved`, `--all`, `--full`, `--each`, `--concurrency`.
11307
+ Flags: `--body-format`, `--campaign-id`, `--channel`, `--contact-id`, `--cursor`, `--folder`, `--group-by`, `--has-reminder`, `--inbox-id`, `--include-total`, `--interest`, `--is-archived`, `--is-read`, `--is-saved`, `--limit`, `--person-key`, `--search`, `--sort`, `--source`, `--status`, `--tag-ids`, `--no-has-reminder`, `--no-include-total`, `--no-is-archived`, `--no-is-read`, `--no-is-saved`, `--all`, `--full`, `--each`, `--concurrency`.
11308
11308
 
11309
11309
  ### kenso threads list-messages
11310
11310
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.125",
3
+ "version": "0.1.128",
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": "1d76f10ba7dbf28c38aab860becaaf1320effdc6"
52
+ "gitHead": "b9aafe751efd9cee43c5f6014556d941d02864d2"
53
53
  }