kenso 0.1.85 → 0.1.87
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/CHANGELOG.md +3 -0
- package/dist/kenso.js +191 -87
- package/dist/operations.json +1 -1
- package/docs/crm.md +24 -9
- package/docs/reference.md +46 -10
- package/package.json +2 -2
package/docs/crm.md
CHANGED
|
@@ -18,7 +18,7 @@ The CRM commands work on Kenso's Accounts lane: accounts (companies), the people
|
|
|
18
18
|
| `capture teammates-see summary\|full_email` | Workspace admin: what teammates see of captured email |
|
|
19
19
|
| `pipelines stage-rules` | List or set the fields a deal should have in each stage |
|
|
20
20
|
| `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
|
|
21
|
-
| `tasks add`, `tasks done`, `tasks assign` | Add a to-do for a member on an account, person or deal, complete it,
|
|
21
|
+
| `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`) |
|
|
22
22
|
|
|
23
23
|
Import accounts first, then people: `people import` never creates an account.
|
|
24
24
|
|
|
@@ -190,6 +190,20 @@ kenso pipelines get --pipeline-id 5
|
|
|
190
190
|
|
|
191
191
|
`list` prints every pipeline in display order, archived ones included: `id`, `name`, `routingRule` (the one sentence Ken reads to decide whether a new deal belongs there), `isDefault`, `isArchived`, `position`, `opportunityCount`, `amountTotal` and `stages`, each stage as `kenso opportunity-stages list` prints it. A stage key is unique in the workspace, across pipelines, so a deal's `stage` names its pipeline and its `pipelineId` repeats it. The first read turns the workspace's stage list into its default pipeline, named Sales, with every deal in it. The same rows as the MCP's `pipelines(operation="list")`.
|
|
192
192
|
|
|
193
|
+
Shaping them needs the `workspace_settings` permission:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
kenso pipelines create --name Renewals --routing-rule "The account is already a customer" --data '{"stages": [{"label": "Up for renewal", "category": "open"}, {"label": "Won", "category": "won"}, {"label": "Lost", "category": "lost"}]}'
|
|
197
|
+
kenso pipelines update --pipeline-id 6 --name Expansion --position 0
|
|
198
|
+
kenso pipelines update --pipeline-id 6 --data @stages.json
|
|
199
|
+
kenso pipelines archive --pipeline-id 6
|
|
200
|
+
kenso pipelines restore --pipeline-id 6
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
- **`create`** takes a unique `name`, the pipeline's `stages` in display order (at least one `open`, one `won` and one `lost`) and an optional `routingRule`: one sentence that says which deals belong there, which Ken reads to route a new deal that names no pipeline. Each stage gets a key from its label; a key another pipeline already uses gets the pipeline's name in front (`renewals_won`). A workspace has at most 10 pipelines.
|
|
204
|
+
- **`update`** changes what you send. `stages` is the pipeline's whole stage list: read it with `pipelines get`, keep each stage's `key`, and add a new stage without one. A stage with live deals in it cannot be left out; archive it with `"isArchived": true` instead.
|
|
205
|
+
- **`archive`** stops new deals from entering a pipeline and keeps the deals in it. The default pipeline cannot be archived, and nothing is deleted: `restore` brings a pipeline back.
|
|
206
|
+
|
|
193
207
|
## Restore a deleted account
|
|
194
208
|
|
|
195
209
|
```bash
|
|
@@ -236,15 +250,16 @@ A missing field never stops a move. The deal moves, and it is flagged Missing on
|
|
|
236
250
|
Tasks are to-dos a member owes: a title, an optional due day or time, an assignee and at most one account, person or deal. They need the `tasks` flag. The app calls deals "Deals"; the CLI keeps `--deal` for an opportunity id.
|
|
237
251
|
|
|
238
252
|
```bash
|
|
239
|
-
kenso tasks add "Send the deck" --due
|
|
240
|
-
kenso tasks add "Call Ada back" --due
|
|
253
|
+
kenso tasks add "Send the deck" --due tomorrow --account 812
|
|
254
|
+
kenso tasks add "Call Ada back" --due friday --at 16:00 --person 501 --assignee ada@acme.com
|
|
241
255
|
kenso tasks list --assignee me --due overdue,today
|
|
242
|
-
kenso
|
|
243
|
-
kenso tasks assign 7
|
|
244
|
-
kenso tasks done 7
|
|
256
|
+
kenso tasks queue --scope mine
|
|
257
|
+
kenso tasks assign 7 me
|
|
258
|
+
kenso tasks done 7 8 9
|
|
245
259
|
kenso tasks done 7 --undo
|
|
246
260
|
```
|
|
247
261
|
|
|
248
|
-
- `tasks add` sends `POST /v1/tasks`.
|
|
249
|
-
- `tasks done` completes
|
|
250
|
-
- `tasks
|
|
262
|
+
- `tasks add` sends `POST /v1/tasks`. `--due` takes `today`, `tomorrow`, a weekday (the next one: `friday` or `fri`), a day (`2026-11-20`) or an ISO 8601 time; `--at HH:MM` puts a time on that day (today without `--due`). Day words and `--at` read this computer's clock and time zone (`TZ`); a time's day is read in the assignee's app time zone. `--assignee` takes `me`, a member id or an email; without it the task is yours.
|
|
263
|
+
- `tasks done` completes each task it names, in order (`PATCH /v1/tasks/{id}` with `status: done`); `--undo` reopens them. `tasks assign` gives a task to `me`, a member id or a member's email; that member gets a `task_assigned` notification.
|
|
264
|
+
- `tasks queue` is `task-queue list` under the name you would try: the Tasks screen's open work by due day, with `--scope mine|assigned_by_me|everyone`. It lists tasks, manual touches, call tasks, inbox threads with a reminder due (when you can view the Inbox) and Ken's follow-ups to you, each with an app link in `href`.
|
|
265
|
+
- `tasks list`, `get`, `update`, `delete`, `restore` and `task-queue list` are generated from the API: `kenso tasks --help` lists them.
|
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.87 (API contracts b935ecce0a22) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1716 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
|
|
|
@@ -327,7 +327,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
327
327
|
- [permission-templates](#permission-templates) (5)
|
|
328
328
|
- [person-behavior](#person-behavior) (1)
|
|
329
329
|
- [person-facebook](#person-facebook) (4)
|
|
330
|
-
- [pipelines](#pipelines) (
|
|
330
|
+
- [pipelines](#pipelines) (7)
|
|
331
331
|
- [placement-seed-sharing](#placement-seed-sharing) (2)
|
|
332
332
|
- [placement-tests](#placement-tests) (4)
|
|
333
333
|
- [portal-sessions](#portal-sessions) (1)
|
|
@@ -397,7 +397,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
397
397
|
- [sync](#sync) (4)
|
|
398
398
|
- [tags](#tags) (9)
|
|
399
399
|
- [task-queue](#task-queue) (1)
|
|
400
|
-
- [tasks](#tasks) (
|
|
400
|
+
- [tasks](#tasks) (10)
|
|
401
401
|
- [teams-connection](#teams-connection) (5)
|
|
402
402
|
- [threads](#threads) (18)
|
|
403
403
|
- [today](#today) (1)
|
|
@@ -456,7 +456,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
456
456
|
- [workflow-versions](#workflow-versions) (4)
|
|
457
457
|
- [workflows](#workflows) (10)
|
|
458
458
|
- [workspace](#workspace) (2)
|
|
459
|
-
- [workspace-api-keys](#workspace-api-keys) (
|
|
459
|
+
- [workspace-api-keys](#workspace-api-keys) (3)
|
|
460
460
|
- [workspace-data-deletions](#workspace-data-deletions) (4)
|
|
461
461
|
- [workspaces](#workspaces) (17)
|
|
462
462
|
|
|
@@ -8140,6 +8140,18 @@ Flags: `--person-id` (required), `--url`, `--data`, `--each`, `--concurrency`.
|
|
|
8140
8140
|
|
|
8141
8141
|
## pipelines
|
|
8142
8142
|
|
|
8143
|
+
### kenso pipelines archive
|
|
8144
|
+
|
|
8145
|
+
Archive a pipeline. `POST /v1/pipelines/{pipelineId}/archive`. Beta: needs `opportunities` and `pipelines`.
|
|
8146
|
+
|
|
8147
|
+
Flags: `--pipeline-id` (required), `--each`, `--concurrency`.
|
|
8148
|
+
|
|
8149
|
+
### kenso pipelines create
|
|
8150
|
+
|
|
8151
|
+
Create a pipeline with its stages. `POST /v1/pipelines`. Beta: needs `opportunities` and `pipelines`.
|
|
8152
|
+
|
|
8153
|
+
Flags: `--name`, `--routing-rule`, `--data`, `--each`, `--concurrency`.
|
|
8154
|
+
|
|
8143
8155
|
### kenso pipelines get
|
|
8144
8156
|
|
|
8145
8157
|
Return one pipeline with its stages. `GET /v1/pipelines/{pipelineId}`. Beta: needs `opportunities` and `pipelines`.
|
|
@@ -8152,6 +8164,12 @@ List the workspace's pipelines. `GET /v1/pipelines` (a list). Beta: needs `oppor
|
|
|
8152
8164
|
|
|
8153
8165
|
Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8154
8166
|
|
|
8167
|
+
### kenso pipelines restore
|
|
8168
|
+
|
|
8169
|
+
Restore an archived pipeline. `POST /v1/pipelines/{pipelineId}/restore`. Beta: needs `opportunities` and `pipelines`.
|
|
8170
|
+
|
|
8171
|
+
Flags: `--pipeline-id` (required), `--each`, `--concurrency`.
|
|
8172
|
+
|
|
8155
8173
|
### kenso pipelines stage-rules
|
|
8156
8174
|
|
|
8157
8175
|
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`.
|
|
@@ -8160,6 +8178,12 @@ Arguments: `<stage>` (optional).
|
|
|
8160
8178
|
|
|
8161
8179
|
Flags: `--default`, `--none`, `--require`.
|
|
8162
8180
|
|
|
8181
|
+
### kenso pipelines update
|
|
8182
|
+
|
|
8183
|
+
Update a pipeline: its name, routing rule, place and stages. `PATCH /v1/pipelines/{pipelineId}`. Beta: needs `opportunities` and `pipelines`.
|
|
8184
|
+
|
|
8185
|
+
Flags: `--pipeline-id` (required), `--name`, `--routing-rule`, `--position`, `--data`, `--each`, `--concurrency`.
|
|
8186
|
+
|
|
8163
8187
|
## placement-seed-sharing
|
|
8164
8188
|
|
|
8165
8189
|
### kenso placement-seed-sharing get
|
|
@@ -9990,17 +10014,17 @@ Flags: `--cursor`, `--limit`, `--scope`, `--timezone`, `--all`, `--each`, `--con
|
|
|
9990
10014
|
|
|
9991
10015
|
### kenso tasks add
|
|
9992
10016
|
|
|
9993
|
-
Add a task: a title, an optional due day
|
|
10017
|
+
Add a task: a title, an optional due day and time, assignee and the account, person or deal it is about. API operations: `tasks.create`, `me.get`, `members.list`. Beta: needs `tasks`.
|
|
9994
10018
|
|
|
9995
10019
|
Arguments: `<title>`.
|
|
9996
10020
|
|
|
9997
|
-
Flags: `--account`, `--assignee`, `--deal`, `--due`, `--notes`, `--person`.
|
|
10021
|
+
Flags: `--account`, `--assignee`, `--at`, `--deal`, `--due`, `--notes`, `--person`.
|
|
9998
10022
|
|
|
9999
10023
|
### kenso tasks assign
|
|
10000
10024
|
|
|
10001
|
-
Give a task to a member. `
|
|
10025
|
+
Give a task to a member. API operations: `tasks.update`, `me.get`, `members.list`. Beta: needs `tasks`.
|
|
10002
10026
|
|
|
10003
|
-
Arguments: `<taskId>`, `<
|
|
10027
|
+
Arguments: `<taskId>`, `<member>`.
|
|
10004
10028
|
|
|
10005
10029
|
### kenso tasks create
|
|
10006
10030
|
|
|
@@ -10016,7 +10040,7 @@ Flags: `--task-id` (required), `--each`, `--concurrency`.
|
|
|
10016
10040
|
|
|
10017
10041
|
### kenso tasks done
|
|
10018
10042
|
|
|
10019
|
-
Complete
|
|
10043
|
+
Complete one or more tasks (--undo reopens them). `PATCH /v1/tasks/{taskId}`. Beta: needs `tasks`.
|
|
10020
10044
|
|
|
10021
10045
|
Arguments: `<taskId>`.
|
|
10022
10046
|
|
|
@@ -10034,6 +10058,12 @@ List tasks. `GET /v1/tasks` (a list). Beta: needs `tasks`.
|
|
|
10034
10058
|
|
|
10035
10059
|
Flags: `--account-id`, `--assigned-by`, `--assignee`, `--cursor`, `--due`, `--limit`, `--opportunity-id`, `--person-id`, `--status`, `--timezone`, `--all`, `--each`, `--concurrency`.
|
|
10036
10060
|
|
|
10061
|
+
### kenso tasks queue
|
|
10062
|
+
|
|
10063
|
+
Your open work by due day: tasks, touches, call tasks, reply reminders and Ken follow-ups. `GET /v1/task-queue`. Beta: needs `tasks`.
|
|
10064
|
+
|
|
10065
|
+
Flags: `--scope`, `--timezone`.
|
|
10066
|
+
|
|
10037
10067
|
### kenso tasks restore
|
|
10038
10068
|
|
|
10039
10069
|
Restore a deleted task. `POST /v1/tasks/{taskId}/restore`. Beta: needs `tasks`.
|
|
@@ -11458,6 +11488,12 @@ Arguments: `<workspaceId>`.
|
|
|
11458
11488
|
|
|
11459
11489
|
## workspace-api-keys
|
|
11460
11490
|
|
|
11491
|
+
### kenso workspace-api-keys create
|
|
11492
|
+
|
|
11493
|
+
Create a workspace-owned API key. The secret is returned once. `POST /v1/workspace-api-keys`. Beta: needs `workspace_api_keys` and `workspace_owned_api_keys`.
|
|
11494
|
+
|
|
11495
|
+
Flags: `--name`, `--template`, `--expires-in-days`, `--data`, `--each`, `--concurrency`.
|
|
11496
|
+
|
|
11461
11497
|
### kenso workspace-api-keys delete
|
|
11462
11498
|
|
|
11463
11499
|
Revoke an API key that reaches the workspace. `DELETE /v1/workspace-api-keys/{apiKeyId}`. Beta: needs `workspace_api_keys`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.87",
|
|
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": "93590cecfed5719443280d962d2ed3d68398a156"
|
|
53
53
|
}
|