kenso 0.1.120 → 0.1.122

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
@@ -61,6 +61,8 @@ Exit codes: 0 when every row succeeded or was skipped, 5 when some rows are `fai
61
61
 
62
62
  Each run keeps its files in `~/.kenso/runs/<runId>/` (`KENSO_RUNS_DIR` moves the root), or in `--out <dir>` when you pass it. A run in `--out` is also linked under the runs folder, so `kenso runs` finds it. The folder is mode 0700 and its files 0600.
63
63
 
64
+ The CLI refuses (exit 2) a runs folder or `--out` folder that another user owns or that it cannot make 0700 (a runs folder of yours that others can write is made 0700 first; a sticky runs folder root owns, such as a Kenso sandbox's, passes). `kenso runs list` leaves out, and `kenso runs show` and `resume` refuse with `run_not_private`, a run whose folder or `run.json` another user owns or can write. On Windows, which has no such owners and modes, these checks are skipped.
65
+
64
66
  | File | What it holds |
65
67
  |---|---|
66
68
  | `run.json` | The command, its arguments, the input path and SHA-256, the workspace, the chunk plan and the status (`planned`, `running`, `done`, `failed`, `interrupted`) |
@@ -87,7 +89,7 @@ A run is identified by its command, its arguments, the SHA-256 of its input file
87
89
  - **answers from a finished run where every row succeeded:** it prints that run's summary with `"changed":0` and `"alreadyDone":true`, sends no writes and exits 0 (a command may still read first: `contacts import` reads the campaign, and `contacts update --match email` looks up the campaign's contacts).
88
90
  - **starts a new run** when the last one finished with failed or invalid rows, or when the file changed. Lead, people and account writes match existing records (an email in a campaign, a person by email or LinkedIn URL, an account by domain), so sending a row twice never creates a duplicate.
89
91
 
90
- `kenso runs resume <runId>` does the same from the run id: it rebuilds the command from `run.json` and runs it with `--yes` from the folder it started in. It refuses when the input was stdin, or the file is gone or changed. Two processes cannot work on one run: the second gets `run_in_progress` (exit 7).
92
+ `kenso runs resume <runId>` does the same from the run id: it rebuilds the command from `run.json` and runs it with `--yes` from the folder it started in. It replays only a batch command (`contacts import`, `update`, `remove`, `restore`, `pause`, `resume`, `tag` and `untag`, `people import`, `accounts import`, `studio fill`, or a command run with `--each`) and only the flags that command takes, never a `kenso work` run. It refuses when the input was stdin, or the file is gone or changed. Two processes cannot work on one run: the second gets `run_in_progress` (exit 7).
91
93
 
92
94
  ```bash
93
95
  kenso runs resume r_ubqu7wtx
package/docs/crm.md CHANGED
@@ -350,7 +350,7 @@ kenso opportunities stage-history 77
350
350
  kenso opportunities stage-history 77 --query "entries[].{to: stageLabel, at: enteredAt, by: changedBy}"
351
351
  ```
352
352
 
353
- 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.
353
+ 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.
354
354
 
355
355
  ## Notes on accounts, people and deals
356
356
 
package/docs/reference.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.120 (API contracts 8d56e9d30422) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.122 (API contracts 514616767860) 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
 
@@ -11178,7 +11178,7 @@ Flags: `--suggestion-id` (required), `--each`, `--concurrency`.
11178
11178
 
11179
11179
  Edit a pending suggestion. `PATCH /v1/theme-suggestions/{suggestionId}`. Beta: needs `themes`.
11180
11180
 
11181
- Flags: `--suggestion-id` (required), `--data`, `--each`, `--concurrency`.
11181
+ Flags: `--suggestion-id` (required), `--updated-at`, `--data`, `--each`, `--concurrency`.
11182
11182
 
11183
11183
  ## themes
11184
11184
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.120",
3
+ "version": "0.1.122",
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": "5a3f86cb9d83327cf1d949afc4644041fa6e9af5"
52
+ "gitHead": "6e2eddea9fe80bbd097fe1d3acafb402517d2bbb"
53
53
  }