kenso 0.1.57 → 0.1.58

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
@@ -8,6 +8,7 @@ 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
  | `accounts update --each`, `people update --each`, `opportunities update --each` | Edit many records from a file, one call per row |
10
10
  | `accounts write-research`, `people write-research` | Store research you gathered as a record's latest research, free. `--each` writes many |
11
+ | `opportunities stage-history <id>` | A deal's stage history: each stage, when, who moved it and how long it sat there |
11
12
  | `crm-connections`, `crm-imports`, `crm-sync-issues` | Read and run CRM sync. Connecting a CRM stays in the app |
12
13
 
13
14
  Import accounts first, then people: `people import` never creates an account.
@@ -140,3 +141,12 @@ kenso crm-sync-issues list --connection-id 7 --all
140
141
  ```
141
142
 
142
143
  Run `kenso crm-connections --help` (or add `--all-commands` when the actions are hidden) to see every action.
144
+
145
+ ## A deal's stage history
146
+
147
+ ```bash
148
+ kenso opportunities stage-history 77
149
+ kenso opportunities stage-history 77 --query "entries[].{to: stageLabel, at: enteredAt, by: changedBy}"
150
+ ```
151
+
152
+ 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.
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.57 (API contracts 8d1d7ba25c1b) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.58 (API contracts 6d745735ab97) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1636 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
+ 1629 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
 
@@ -42,7 +42,6 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
42
42
  - [agent-sandbox-auto-run-settings](#agent-sandbox-auto-run-settings) (3)
43
43
  - [agent-sandbox-connections](#agent-sandbox-connections) (5)
44
44
  - [agent-sandbox-runs](#agent-sandbox-runs) (4)
45
- - [agent-team](#agent-team) (9)
46
45
  - [agent-work](#agent-work) (5)
47
46
  - [agent-work-settings](#agent-work-settings) (2)
48
47
  - [ai-assist-reservations](#ai-assist-reservations) (1)
@@ -51,6 +50,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
51
50
  - [ai-line-holds](#ai-line-holds) (2)
52
51
  - [ai-lines](#ai-lines) (3)
53
52
  - [ai-runs](#ai-runs) (5)
53
+ - [ai-topups](#ai-topups) (1)
54
54
  - [airtable-bases](#airtable-bases) (1)
55
55
  - [airtable-records](#airtable-records) (1)
56
56
  - [airtable-tables](#airtable-tables) (1)
@@ -302,7 +302,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
302
302
  - [onboarding-builds](#onboarding-builds) (3)
303
303
  - [onboarding-connect-plan](#onboarding-connect-plan) (1)
304
304
  - [onboarding-next-step](#onboarding-next-step) (1)
305
- - [opportunities](#opportunities) (8)
305
+ - [opportunities](#opportunities) (9)
306
306
  - [opportunity-people](#opportunity-people) (4)
307
307
  - [opportunity-settings](#opportunity-settings) (3)
308
308
  - [opportunity-stages](#opportunity-stages) (2)
@@ -908,62 +908,6 @@ List your sandbox runs. `GET /v1/agent-sandbox-runs` (a list). Beta: needs `agen
908
908
 
909
909
  Flags: `--active`, `--cursor`, `--limit`, `--no-active`, `--all`, `--each`, `--concurrency`.
910
910
 
911
- ## agent-team
912
-
913
- ### kenso agent-team create-action
914
-
915
- Request a bounded change to a campaign. `POST /v1/agent-team/actions`. Beta: needs `agent_templates`.
916
-
917
- Flags: `--kind`, `--campaign-id`, `--reason`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
918
-
919
- ### kenso agent-team create-proposal
920
-
921
- Create a proposal. `POST /v1/agent-team/proposals`. Beta: needs `agent_templates`.
922
-
923
- Flags: `--kind`, `--campaign-id`, `--title`, `--reason`, `--client-yes`, `--urgent`, `--no-urgent`, `--data`, `--each`, `--concurrency`.
924
-
925
- ### kenso agent-team get-runway
926
-
927
- Get the lead runway of live campaigns. `GET /v1/agent-team/runway`. Beta: needs `agent_templates`.
928
-
929
- Flags: `--campaign-id`, `--each`, `--concurrency`.
930
-
931
- ### kenso agent-team get-settings
932
-
933
- Return the workspace's agent settings. `GET /v1/agent-team/settings`. Beta: needs `agent_templates`.
934
-
935
- Flags: `--each`, `--concurrency`.
936
-
937
- ### kenso agent-team list-changes
938
-
939
- List the changes since your last call. `GET /v1/agent-team/changes`. Beta: needs `agent_templates`.
940
-
941
- Flags: `--campaign-id`, `--since`, `--each`, `--concurrency`.
942
-
943
- ### kenso agent-team list-proposals
944
-
945
- List proposals. `GET /v1/agent-team/proposals` (a list). Beta: needs `agent_templates`.
946
-
947
- Flags: `--campaign-id`, `--cursor`, `--limit`, `--status`, `--all`, `--each`, `--concurrency`.
948
-
949
- ### kenso agent-team list-templates
950
-
951
- List the agent templates. `GET /v1/agent-team/templates`. Beta: needs `agent_templates`.
952
-
953
- Flags: `--each`, `--concurrency`.
954
-
955
- ### kenso agent-team undo-action
956
-
957
- Undo an agent action. `POST /v1/agent-team/actions/{actionId}/undo`. Beta: needs `agent_templates`.
958
-
959
- Flags: `--action-id` (required), `--each`, `--concurrency`.
960
-
961
- ### kenso agent-team update-settings
962
-
963
- Set the workspace's target and runway. `PATCH /v1/agent-team/settings`. Beta: needs `agent_templates`.
964
-
965
- Flags: `--target-interested-per-week`, `--runway-days`, `--data`, `--each`, `--concurrency`.
966
-
967
911
  ## agent-work
968
912
 
969
913
  ### kenso agent-work create-agent-key
@@ -1124,6 +1068,14 @@ Reset an AI flow for chosen contacts. `POST /v1/campaigns/{campaignId}/ai-runs/r
1124
1068
 
1125
1069
  Flags: `--campaign-id` (required), `--flow`, `--data`, `--each`, `--concurrency`.
1126
1070
 
1071
+ ## ai-topups
1072
+
1073
+ ### kenso ai-topups create
1074
+
1075
+ Buy an AI top-up. `POST /v1/billing/ai-topups`.
1076
+
1077
+ Flags: `--each`, `--concurrency`.
1078
+
1127
1079
  ## airtable-bases
1128
1080
 
1129
1081
  ### kenso airtable-bases list
@@ -1310,25 +1262,25 @@ Flags: `--approval-test-id` (required), `--each`, `--concurrency`.
1310
1262
 
1311
1263
  ### kenso approvals bulk-decide
1312
1264
 
1313
- Decide many LinkedIn note, connection request or engagement approvals at once. `POST /v1/approvals/decisions`. Beta: needs one of `accounts`, `agent_templates`, `linkedin_ai_notes`, `linkedin_engagement`.
1265
+ Decide many LinkedIn note, connection request or engagement approvals at once. `POST /v1/approvals/decisions`. Beta: needs one of `accounts`, `linkedin_ai_notes`, `linkedin_engagement`.
1314
1266
 
1315
1267
  Flags: `--action`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
1316
1268
 
1317
1269
  ### kenso approvals decide
1318
1270
 
1319
- Approve, edit, snooze or skip an approval. `POST /v1/approvals/{approvalId}/decisions`. Beta: needs one of `accounts`, `agent_templates`, `linkedin_ai_notes`, `linkedin_engagement`.
1271
+ Approve, edit, snooze or skip an approval. `POST /v1/approvals/{approvalId}/decisions`. Beta: needs one of `accounts`, `linkedin_ai_notes`, `linkedin_engagement`.
1320
1272
 
1321
1273
  Flags: `--approval-id` (required), `--action`, `--updated-at`, `--recipient-version`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
1322
1274
 
1323
1275
  ### kenso approvals get
1324
1276
 
1325
- Return one approval. `GET /v1/approvals/{approvalId}`. Beta: needs one of `accounts`, `agent_templates`, `linkedin_ai_notes`, `linkedin_engagement`.
1277
+ Return one approval. `GET /v1/approvals/{approvalId}`. Beta: needs one of `accounts`, `linkedin_ai_notes`, `linkedin_engagement`.
1326
1278
 
1327
1279
  Flags: `--approval-id` (required), `--each`, `--concurrency`.
1328
1280
 
1329
1281
  ### kenso approvals list
1330
1282
 
1331
- List approvals. `GET /v1/approvals`. Beta: needs one of `accounts`, `agent_templates`, `linkedin_ai_notes`, `linkedin_engagement`.
1283
+ List approvals. `GET /v1/approvals`. Beta: needs one of `accounts`, `linkedin_ai_notes`, `linkedin_engagement`.
1332
1284
 
1333
1285
  Flags: `--account-id`, `--ids`, `--limit`, `--type`, `--each`, `--concurrency`.
1334
1286
 
@@ -2804,9 +2756,9 @@ Report how account-play protection affects a campaign. `GET /v1/campaigns/{campa
2804
2756
 
2805
2757
  Flags: `--campaign-id` (required), `--each`, `--concurrency`.
2806
2758
 
2807
- ### kenso campaigns get-autopilot
2759
+ ### kenso campaigns get-agent-work
2808
2760
 
2809
- Return the campaign's Autopilot. `GET /v1/campaigns/{campaignId}/autopilot`. Beta: needs `agent_templates`.
2761
+ Get the campaign's agent work overrides. `GET /v1/campaigns/{campaignId}/agent-work`. Beta: needs `agent_work`.
2810
2762
 
2811
2763
  Flags: `--campaign-id` (required), `--each`, `--concurrency`.
2812
2764
 
@@ -2906,12 +2858,6 @@ Replace a campaign's AI workflows. `PUT /v1/campaigns/{campaignId}/ai-workflows`
2906
2858
 
2907
2859
  Flags: `--campaign-id` (required), `--data`, `--each`, `--concurrency`.
2908
2860
 
2909
- ### kenso campaigns replace-autopilot
2910
-
2911
- Turn the campaign's Autopilot on or off, and set its audience and weekly top-up limit. `PUT /v1/campaigns/{campaignId}/autopilot`. Beta: needs `agent_templates`.
2912
-
2913
- Flags: `--campaign-id` (required), `--enabled`, `--client-yes`, `--clear-audience`, `--weekly-top-up-limit`, `--no-enabled`, `--no-clear-audience`, `--data`, `--each`, `--concurrency`.
2914
-
2915
2861
  ### kenso campaigns replace-inboxes
2916
2862
 
2917
2863
  Replace a campaign's inboxes. `PUT /v1/campaigns/{campaignId}/inboxes`.
@@ -2984,6 +2930,12 @@ Update a campaign. `PATCH /v1/campaigns/{campaignId}`.
2984
2930
 
2985
2931
  Flags: `--campaign-id` (required), `--name`, `--contact-limit`, `--sending-start-time`, `--sending-end-time`, `--sending-timezone`, `--max-emails-per-day`, `--owner-member-id`, `--stop-on-reply`, `--track-clicks`, `--track-opens`, `--unsubscribe-link`, `--send-as-plain-text`, `--protect-account-plays`, `--ramp-up-days`, `--stop-company-on-reply`, `--group-same-company-sends`, `--new-leads-first`, `--catch-all-lane-enabled`, `--booking-meeting-type-id`, `--reply-to`, `--role-id`, `--source-language`, `--language-mode`, `--language-fallback`, `--mode`, `--auto-launch-when-ready`, `--no-stop-on-reply`, `--no-track-clicks`, `--no-track-opens`, `--no-unsubscribe-link`, `--no-send-as-plain-text`, `--no-protect-account-plays`, `--no-stop-company-on-reply`, `--no-group-same-company-sends`, `--no-new-leads-first`, `--no-catch-all-lane-enabled`, `--no-auto-launch-when-ready`, `--data`, `--each`, `--concurrency`.
2986
2932
 
2933
+ ### kenso campaigns update-agent-work
2934
+
2935
+ Update the campaign's agent work overrides. `PATCH /v1/campaigns/{campaignId}/agent-work`. Beta: needs `agent_work`.
2936
+
2937
+ Flags: `--campaign-id` (required), `--data`, `--each`, `--concurrency`.
2938
+
2987
2939
  ## checkout-sessions
2988
2940
 
2989
2941
  ### kenso checkout-sessions create
@@ -7282,6 +7234,12 @@ List opportunities in the current workspace. `GET /v1/opportunities` (a list). B
7282
7234
 
7283
7235
  Flags: `--account-id`, `--close-date-after`, `--close-date-before`, `--cursor`, `--limit`, `--owner-member-id`, `--search`, `--sort`, `--source-campaign-id`, `--stage`, `--stage-category`, `--stale-days`, `--all`, `--each`, `--concurrency`.
7284
7236
 
7237
+ ### kenso opportunities stage-history
7238
+
7239
+ Show a deal's stage history: each stage, when, who moved it and how long it sat there. `GET /v1/opportunities/{opportunityId}/stage-history`. Beta: needs `opportunities`.
7240
+
7241
+ Arguments: `<opportunityId>`.
7242
+
7285
7243
  ### kenso opportunities update
7286
7244
 
7287
7245
  Update opportunity fields. Absent fields stay unchanged; null clears. `PATCH /v1/opportunities/{opportunityId}`. Beta: needs `opportunities`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
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": "04bef4e39d263fb4fb4f5c72fdc1d5af95b94cd4"
52
+ "gitHead": "5d65cde64a660ac4b908e3063f72f3e407b6de73"
53
53
  }