kenso 0.1.60 → 0.1.62

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
@@ -143,7 +143,7 @@ kenso people write-research --each people-research.jsonl --yes --concurrency 8
143
143
  {"accountId": 502, "description": {"text": "Cloud cost tooling for retailers."}, "links": {"website": "https://beta.example"}}
144
144
  ```
145
145
 
146
- A row fails as a whole with the API's code: `validation_failed` (an unknown field is `unknown_field`, and `error.details` names every bad field), `research_in_progress` (`409`: Ken is researching that record now, write it again once the run ends) or `not_found`. Rerunning a file is safe: each write replaces the record's research shown.
146
+ A row fails as a whole with the API's code: `validation_failed` (an unknown field is `unknown_field`, and `error.details` names every bad field), `research_in_progress` (`409`: Ken is researching that record now, write it again once the run ends; an account run waiting for credits counts too: it runs once the workspace has credits, and the write stays refused until that run ends) or `not_found`. Rerunning a file is safe: each write replaces the record's research shown.
147
147
 
148
148
  ## CRM sync
149
149
 
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.60 (API contracts b1ee089ab227) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.62 (API contracts 4d06ba0209d1) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1630 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
+ 1632 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
 
@@ -261,8 +261,8 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
261
261
  - [loopster-people](#loopster-people) (1)
262
262
  - [loopster-search-filters](#loopster-search-filters) (1)
263
263
  - [mail-messages](#mail-messages) (2)
264
- - [market-profile](#market-profile) (2)
265
- - [market-stories](#market-stories) (3)
264
+ - [market-profile](#market-profile) (3)
265
+ - [market-stories](#market-stories) (4)
266
266
  - [markets](#markets) (2)
267
267
  - [mcp](#mcp) (2)
268
268
  - [mcp-calls](#mcp-calls) (1)
@@ -920,13 +920,13 @@ Flags: `--each`, `--concurrency`.
920
920
 
921
921
  Claim agent work. `POST /v1/agent-work/claims`. Beta: needs `agent_work`.
922
922
 
923
- Flags: `--campaign-id`, `--limit`, `--lease-minutes`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
923
+ Flags: `--campaign-id`, `--limit`, `--lease-minutes`, `--scope`, `--idempotency-key`, `--data`, `--each`, `--concurrency`.
924
924
 
925
925
  ### kenso agent-work get
926
926
 
927
927
  Get the agent work queue. `GET /v1/agent-work`. Beta: needs `agent_work`.
928
928
 
929
- Flags: `--campaign-id`, `--each`, `--concurrency`.
929
+ Flags: `--campaign-id`, `--scope`, `--each`, `--concurrency`.
930
930
 
931
931
  ### kenso agent-work release-claim
932
932
 
@@ -2820,7 +2820,7 @@ Flags: `--campaign-id` (required), `--idempotency-key`, `--each`, `--concurrency
2820
2820
 
2821
2821
  List campaigns. `GET /v1/campaigns` (a list).
2822
2822
 
2823
- Flags: `--cursor`, `--include-tag-ids`, `--kind`, `--limit`, `--search`, `--status`, `--no-include-tag-ids`, `--all`, `--each`, `--concurrency`.
2823
+ Flags: `--created-after`, `--created-before`, `--cursor`, `--include-tag-ids`, `--kind`, `--limit`, `--search`, `--sort`, `--status`, `--no-include-tag-ids`, `--all`, `--each`, `--concurrency`.
2824
2824
 
2825
2825
  ### kenso campaigns list-ai-workflows
2826
2826
 
@@ -4388,7 +4388,7 @@ Flags: `--funding-round-id` (required), `--each`, `--concurrency`.
4388
4388
 
4389
4389
  ### kenso funding-rounds get-export-allowance
4390
4390
 
4391
- Get the export allowance. `GET /v1/funding-rounds/export-allowance`.
4391
+ Get the funding round export allowance. `GET /v1/funding-rounds/export-allowance`.
4392
4392
 
4393
4393
  Flags: `--each`, `--concurrency`.
4394
4394
 
@@ -4990,7 +4990,7 @@ Flags: `--job-posting-id` (required), `--each`, `--concurrency`.
4990
4990
 
4991
4991
  ### kenso job-postings get-export-allowance
4992
4992
 
4993
- Get the export allowance. `GET /v1/job-postings/export-allowance`.
4993
+ Get the job posting export allowance. `GET /v1/job-postings/export-allowance`.
4994
4994
 
4995
4995
  Flags: `--each`, `--concurrency`.
4996
4996
 
@@ -5934,6 +5934,12 @@ Get the workspace's market news topic profile. `GET /v1/market-profile`. Beta: n
5934
5934
 
5935
5935
  Flags: `--each`, `--concurrency`.
5936
5936
 
5937
+ ### kenso market-profile rebuild
5938
+
5939
+ Rebuild the workspace's market news topic profile from its website. `POST /v1/market-profile/rebuild`. Beta: needs `market_news`.
5940
+
5941
+ Flags: `--each`, `--concurrency`.
5942
+
5937
5943
  ### kenso market-profile update
5938
5944
 
5939
5945
  Update lists of the workspace's market news topic profile. `PATCH /v1/market-profile`. Beta: needs `market_news`.
@@ -5960,6 +5966,12 @@ List the workspace's market stories. `GET /v1/market-stories` (a list). Beta: ne
5960
5966
 
5961
5967
  Flags: `--campaign-id`, `--cursor`, `--include-expired`, `--limit`, `--status`, `--no-include-expired`, `--all`, `--each`, `--concurrency`.
5962
5968
 
5969
+ ### kenso market-stories update
5970
+
5971
+ Dismiss or restore a market story. `PATCH /v1/market-stories/{storyId}`. Beta: needs `market_news`.
5972
+
5973
+ Flags: `--story-id` (required), `--status`, `--data`, `--each`, `--concurrency`.
5974
+
5963
5975
  ## markets
5964
5976
 
5965
5977
  ### kenso markets get
@@ -8598,7 +8610,7 @@ Flags: `--each`, `--concurrency`.
8598
8610
 
8599
8611
  ### kenso search get-company
8600
8612
 
8601
- Get a company. `GET /v1/search/companies/{companyId}`.
8613
+ Get a company from Search. `GET /v1/search/companies/{companyId}`.
8602
8614
 
8603
8615
  Flags: `--company-id` (required), `--each`, `--concurrency`.
8604
8616
 
@@ -10548,7 +10560,7 @@ Show the key's user, workspace and expiry. API operations: `me.get`, `api-keys.l
10548
10560
 
10549
10561
  Claim waiting work into local work files, to answer by hand. API operations: `agent-work.create-claim`, `agent-work.release-claim`. Beta: needs `agent_work`.
10550
10562
 
10551
- Flags: `--campaign`, `--files`, `--kind`, `--lease`, `--out`, `--per-file`.
10563
+ Flags: `--campaign`, `--files`, `--kind`, `--lease`, `--live-only`, `--out`, `--per-file`.
10552
10564
 
10553
10565
  ### kenso work release
10554
10566
 
@@ -10560,13 +10572,13 @@ Arguments: `<claim>`.
10560
10572
 
10561
10573
  Run your own coding agent on the waiting work until the queue is empty. API operations: `agent-work.create-claim`, `agent-work.submit-answers`, `agent-work.release-claim`, `agent-work.create-agent-key`. Beta: needs `agent_work`.
10562
10574
 
10563
- Flags: `--agent` (required), `--agent-bin`, `--agent-tools`, `--agent-user`, `--allow-unconfined`, `--campaign`, `--kind`, `--lease`, `--max-items`, `--model`, `--no-research`, `--out`, `--parallel`, `--per-file`, `--timeout`, `--token-stdin`, `--watch`.
10575
+ Flags: `--agent` (required), `--agent-bin`, `--agent-tools`, `--agent-user`, `--allow-unconfined`, `--campaign`, `--kind`, `--lease`, `--live-only`, `--max-items`, `--model`, `--no-research`, `--out`, `--parallel`, `--per-file`, `--timeout`, `--token-stdin`, `--watch`.
10564
10576
 
10565
10577
  ### kenso work status
10566
10578
 
10567
10579
  Show the Kenso AI work waiting for your own agent, per kind. `GET /v1/agent-work`. Beta: needs `agent_work`.
10568
10580
 
10569
- Flags: `--campaign`.
10581
+ Flags: `--campaign`, `--live-only`.
10570
10582
 
10571
10583
  ### kenso work submit
10572
10584
 
package/docs/work.md CHANGED
@@ -19,7 +19,16 @@ kenso work status
19
19
  kenso work run --agent claude
20
20
  ```
21
21
 
22
- `status` prints one row per kind: `executor` (`kenso_ai` or `my_agent`), `waiting` (items your agent can take now), `claimed` (items held by open claims), `heldBy` (`billing_blocked`, `out_of_credits` or `ai_paused` when Kenso holds the kind back) and `lastAcceptedAt`. `--campaign <id>` counts one campaign.
22
+ `status` prints one row per kind: `executor` (`kenso_ai` or `my_agent`), `waiting` (items your agent can take now), `claimed` (items held by open claims), `heldBy` (`billing_blocked`, `out_of_credits` or `ai_paused` when Kenso holds the kind back) and `lastAcceptedAt`. `--campaign <id>` counts one campaign. `--live-only` counts only live campaigns (see below).
23
+
24
+ ### Live campaigns only
25
+
26
+ By default the queue holds the campaign kinds' work (qualification, segmentation, personalization, rewriting) in every campaign that is not deleted or AI-paused, a Draft, finished or errored campaign included, so a run you start by hand can work a Draft campaign on purpose. Kenso's AI never works on those campaigns by itself. `--live-only` on `status`, `run` and `pull` (the API's `scope=live`) leaves them out: your agent gets only the work Kenso's AI would have done. Use it for a run nobody watches, such as `run --watch`. Meeting briefs, call briefs, workflow prompts and background AI are not tied to a campaign and are the same either way.
27
+
28
+ ```bash
29
+ kenso work status --live-only
30
+ kenso work run --agent claude --watch --live-only
31
+ ```
23
32
 
24
33
  `run` repeats one job per work file, with up to 16 agents at once:
25
34
 
@@ -42,6 +51,7 @@ kenso work run --agent claude --watch
42
51
  | `--parallel` | 16 | Agents running at once, 1 to 16 |
43
52
  | `--per-file` | 10 | Items per work file (one claim), 1 to 50 |
44
53
  | `--kind`, `--campaign` | all | Only this kind (repeat or comma-separate) or this campaign's work |
54
+ | `--live-only` | off | Only the campaigns Kenso's AI works on by itself: no Draft, finished or errored campaign's leads |
45
55
  | `--max-items` | none | Stop after claiming this many items |
46
56
  | `--model` | the agent's | The model the agent runs |
47
57
  | `--timeout` | 15m | Stop one job's agent after this long; shorter than `--lease` |
@@ -95,7 +105,7 @@ kenso work submit ~/.kenso/runs/r_ab3dxk2q/*.answers.json
95
105
  kenso work release awc_8fK2Qm1xYp3Lr7Tn0Va9Bc
96
106
  ```
97
107
 
98
- 1. `pull` makes one claim per file, up to `--files` (default 16), and writes `<claimId>.work.json` files into `--out` or a new folder under the runs directory. It stops early when the queue is empty. It prints the folder and, per file, its claim id, kind, item count and expiry, and a `next` with the submit command; never the items' text, so rows never pass through the calling agent's context.
108
+ 1. `pull` makes one claim per file, up to `--files` (default 16; `--kind`, `--campaign` and `--live-only` narrow it as for `run`), and writes `<claimId>.work.json` files into `--out` or a new folder under the runs directory. It stops early when the queue is empty. It prints the folder and, per file, its claim id, kind, item count and expiry, and a `next` with the submit command; never the items' text, so rows never pass through the calling agent's context.
99
109
  2. Answer each work file into `<claimId>.answers.json` next to it. An agent with subagents gives each work file to its own subagent, with only the file's path: "Read this work file and write its answers file as its rules say."
100
110
  3. `submit` sends the answers files and prints the counts.
101
111
  4. `release` gives back a claim you will not finish. Unanswered items also go back on their own when the claim expires.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
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": "0ec8e64f74cc31a02ad515e670f9e28144bd06bf"
52
+ "gitHead": "864bf0c3c93b6ed21d4d253252e2467c2b536aaa"
53
53
  }