kenso 0.1.121 → 0.1.124
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 +2 -0
- package/dist/kenso.js +182 -67
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/batch.md +3 -1
- package/docs/crm.md +3 -3
- package/docs/reference.md +1 -1
- package/package.json +2 -2
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
|
@@ -156,7 +156,7 @@ kenso changes apply --change-id 32
|
|
|
156
156
|
kenso opportunities bulk-delete --ids 71,72,73 --yes
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
`accounts bulk-delete`, `people bulk-delete` and `opportunities bulk-delete` name their records the way `bulk-update` does (`--ids`, `--filter`, `--all`, `--exclude-ids`) and take no `--set`. Without `--yes` they preview: `count`, a `sample`, and `next` is the `kenso changes apply` command that deletes exactly those records. The API itself previews a delete whose body leaves `dryRun` out, so `--yes` sends `dryRun: false`. Each record is deleted as its own `delete` command deletes it, so one that cannot be deleted (a person still on an account) is counted as `failed` and the rest go on.
|
|
159
|
+
`accounts bulk-delete`, `people bulk-delete` and `opportunities bulk-delete` name their records the way `bulk-update` does (`--ids`, `--filter`, `--all`, `--exclude-ids`) and take no `--set`. Without `--yes` they preview: `count`, a `sample`, and `next` is the `kenso changes apply` command that deletes exactly those records. The API itself previews a delete whose body leaves `dryRun` out, so `--yes` sends `dryRun: false`. Each record is deleted as its own `delete` command deletes it, so one that cannot be deleted (a person still on an account) is counted as `failed` and the rest go on. `kenso changes undo` undoes a delete of accounts for 30 days: each account still deleted is restored, as `kenso accounts restore` restores it. A delete of people or deals is not undone.
|
|
160
160
|
|
|
161
161
|
### Follow, stop and undo a change
|
|
162
162
|
|
|
@@ -167,7 +167,7 @@ kenso changes cancel --change-id 31
|
|
|
167
167
|
kenso changes undo --change-id 31
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
-
`changes list` shows the workspace's bulk changes, newest first, whoever made them. `changes rows` lists a change's records with the value before (`from`) and after (`to`) and a `status`; `--status conflict,failed` reads what a change missed. `changes cancel` drops a preview or stops a change that is still writing; what it already wrote stays. `changes undo` puts the old value back on every record that still holds the value the change wrote, for 30 days after it was applied (`undoUntil`). A record someone changed again since keeps its newer value: `counts.undone` is how many went back, `counts.applied` how many still hold the change. Undo answers `409 invalid_state` with `undo_expired`, `still_running`, `nothing_applied` or `not_undoable` when there is nothing it can put back.
|
|
170
|
+
`changes list` shows the workspace's bulk changes, newest first, whoever made them. `changes rows` lists a change's records with the value before (`from`) and after (`to`) and a `status`; `--status conflict,failed` reads what a change missed. `changes cancel` drops a preview or stops a change that is still writing; what it already wrote stays. `changes undo` puts the old value back on every record that still holds the value the change wrote, for 30 days after it was applied (`undoUntil`). A record someone changed again since keeps its newer value: `counts.undone` is how many went back, `counts.applied` how many still hold the change. Undo answers `409 invalid_state` with `undo_expired`, `still_running`, `nothing_applied` or `not_undoable` (a delete of people or deals) when there is nothing it can put back.
|
|
171
171
|
|
|
172
172
|
## Search opportunities
|
|
173
173
|
|
|
@@ -314,7 +314,7 @@ Per row: a domain no account has creates an account; a domain that is already an
|
|
|
314
314
|
|
|
315
315
|
`kenso import people <file.csv>` works the same way for people. Import the accounts file first: a people row's company id (Twenty's `Company Id`, HubSpot's associated company id) places the person on the account that kept that id, and without one the person goes on the account that holds their email's or company's domain. A people import never creates an account; a person whose company is no account comes in without one and the row says so. A row matches a person by email, then LinkedIn URL, then name on the company, as every other way into People does; a matched person gets only their empty fields filled (a phone only when they have none). A row with none of the three is skipped, and a row with only a name needs a company that is an account with a domain. `kenso record-imports undo --import-id <id>` takes a people import back too: a person it created leaves the accounts the row placed them on and is deleted, unless someone changed them since, they were contacted or have a touch planned, or they are on an open deal; a field it filled is emptied while it still holds the imported value. `kenso people import` stays the JSONL and enrichment path (`--find-emails`); `kenso import people` is the CRM file with a plan, a row report and one approval.
|
|
316
316
|
|
|
317
|
-
`kenso import deals <file.csv>` works the same way for deals, after the accounts file and the people file. A row opens a deal on the account that kept its company id (Twenty's `Company Id`, HubSpot's associated company id), else on the account that holds its company domain; a row whose account Kenso does not know is skipped and says so. Its contact is the person a people import kept the row's contact id for (Twenty's `Point of Contact Id`). The plan maps each stage in the file to one of the workspace's deal stages (`valueMaps`, field `stage`): a stage's key or label matches by itself, Closed Won and Closed Lost go to the first won and lost stage, and a value with no match opens in the first open stage until you pick one with `kenso record-imports update`. Amounts stay in the workspace currency: an amount in another currency is left out with a warning, never converted. A row whose deal id an earlier import kept is that deal and only gets its empty fields filled
|
|
317
|
+
`kenso import deals <file.csv>` works the same way for deals, after the accounts file and the people file. A row opens a deal on the account that kept its company id (Twenty's `Company Id`, HubSpot's associated company id), else on the account that holds its company domain; a row whose account Kenso does not know is skipped and says so. Its contact is the person a people import kept the row's contact id for (Twenty's `Point of Contact Id`). The plan maps each stage in the file to one of the workspace's deal stages (`valueMaps`, field `stage`): a stage's key or label matches by itself, Closed Won and Closed Lost go to the first won and lost stage, and a value with no match opens in the first open stage until you pick one with `kenso record-imports update`. Amounts stay in the workspace currency: an amount in another currency is left out with a warning, never converted. A row whose deal id an earlier import kept is that deal and only gets its empty fields filled. A row no id names a deal for is the one live deal on its account with its name and its contact (a side with no contact matches any) that is open, won or lost as the row is: it fills that deal's empty fields and keeps the row's id for it, and a row that matches two such deals is skipped and names them. A file with no id column is matched that way only, and the plan says so (`no_source_id`). `kenso record-imports undo --import-id <id>` takes a deals import back: a deal it opened is deleted unless someone changed it since, and a field it filled is emptied while it still holds the imported value. Undo in the reverse order of the imports (deals, then people, then accounts): an account that holds a deal is kept.
|
|
318
318
|
|
|
319
319
|
## Export accounts, people or deals
|
|
320
320
|
|
package/docs/reference.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Kenso CLI command reference
|
|
2
2
|
|
|
3
|
-
Generated from kenso 0.1.
|
|
3
|
+
Generated from kenso 0.1.124 (API contracts 8df1a5320ac5) 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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.124",
|
|
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": "4e8bbcc4a79a7768ab0c5c5b2a1ae64381e29ed6"
|
|
53
53
|
}
|