kenso 0.1.149 → 0.1.152

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.
@@ -167,7 +167,7 @@ Two API codes change the exit code: `workspace_required` exits 2 with `"next":"k
167
167
  | `local_changes` | 7 | `studio pull` would replace files that no earlier pull wrote or push sent, or that changed since; nothing was written, and `next` adds `--force` to replace them |
168
168
  | `job_timeout`, `job_failed`, `job_canceled` | 1 | `kenso jobs wait` (or a command that waits on a job) ran out of time, or the job failed or was canceled |
169
169
  | `mcp_tool_error` | 1 | `kenso mcp call`: the MCP tool answered with an error |
170
- | `unsafe_path` | 1 | `studio pull` refused a file path that is not a file of the Studio bundle layout (such as a dotfile, `opencode.json` or `CLAUDE.md`), would land outside `--dir`, or passes through a symbolic link |
170
+ | `unsafe_path` | 1 | `studio pull` refused a file path that is not a file of the Studio bundle layout (such as a dotfile, `opencode.json` or `CLAUDE.md`), would land outside `--dir`, or passes through a symbolic link, or a `samples/*.json` that does not hold a sample |
171
171
  | `network_error` | 8 | The API could not be reached after retries |
172
172
  | `upload_failed`, `download_failed` | 8 or 1 | A signed upload or download of a Studio file failed: 8 when storage was unreachable or answered 5xx, 1 on a 4xx (often an expired link: run the command again) |
173
173
  | `pull_incomplete` | 8 | `studio pull`: a file came back with neither text nor a download link |
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.149 (API contracts 98e29b866cef) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.152 (API contracts 7a636dc64c38) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1925 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
+ 1926 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
 
@@ -506,7 +506,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
506
506
  - [workflow-templates](#workflow-templates) (2)
507
507
  - [workflow-variables](#workflow-variables) (3)
508
508
  - [workflow-versions](#workflow-versions) (4)
509
- - [workflows](#workflows) (17)
509
+ - [workflows](#workflows) (18)
510
510
  - [workspace](#workspace) (3)
511
511
  - [workspace-api-keys](#workspace-api-keys) (3)
512
512
  - [workspace-data-deletions](#workspace-data-deletions) (4)
@@ -12854,6 +12854,14 @@ Arguments: `<file>`.
12854
12854
 
12855
12855
  Flags: `--expected-hash`, `--note`, `--publish`.
12856
12856
 
12857
+ ### kenso workflows run
12858
+
12859
+ Run a published workflow on records from an ids file or a CSV. API operations: `workflows.get`, `workflow-runs.run-on-records`, `workflow-runs.get`, `workflow-estimates.create`, `credits.get`, `people.batch`, `workflow-versions.get`. Beta: needs `workflows`.
12860
+
12861
+ Arguments: `<target>`.
12862
+
12863
+ Flags: `--file`, `--ids`, `--list`, `--max-credits`, `--record-type`.
12864
+
12857
12865
  ### kenso workflows schema
12858
12866
 
12859
12867
  Print a JSON Schema for workflow files, for editors. Beta: needs `workflows`.
package/docs/studio.md CHANGED
@@ -28,7 +28,7 @@ kenso studio push 12 --dir ./my-template --publish
28
28
 
29
29
  ### pull
30
30
 
31
- `pull` writes every file of the version under `--dir`: text files from the answer, binaries downloaded from signed links and checked against their SHA-256. It leaves other files in the folder alone. It checks every path before it writes anything, and refuses (`unsafe_path`) one that is not a file of the Studio bundle layout, one that would land outside `--dir`, and one that passes through a symbolic link. The layout is `studio.json`, `template.liquid`, `fallback.liquid`, `README.md`, `brief.md` and `ideas.md` at the top, images, fonts, pdf and csv files under `assets/`, and `.json` or `.csv` files directly in `samples/`, with names of letters, digits, `.`, `-` and `_` that neither start nor end with a dot and are not a Windows device name (`CON`, `NUL`, `COM1`). A sample is named in lowercase letters, digits, `-` and `_` (`samples/acme.json`), and never with a name a tool reads as its own config (`package.json`, `tsconfig.json`, `opencode.json`), so a tool started inside `samples/` finds none either. So pull never writes a hidden file (`.claude/`, `.mcp.json`), a tool's config file (`opencode.json`, `package.json`) or a coding agent's `CLAUDE.md` or `AGENTS.md`, which editors and coding agents read as their own settings, whatever the server sends. Studio stores nothing outside the layout; when a version stored before that rule holds such a file, the API leaves it out and pull prints a warning that names it.
31
+ `pull` writes every file of the version under `--dir`: text files from the answer, binaries downloaded from signed links and checked against their SHA-256. It leaves other files in the folder alone. It checks every path before it writes anything, and refuses (`unsafe_path`) one that is not a file of the Studio bundle layout, one that would land outside `--dir`, and one that passes through a symbolic link. The layout is `studio.json`, `template.liquid`, `fallback.liquid`, `README.md`, `brief.md` and `ideas.md` at the top, images, fonts, pdf and csv files under `assets/`, and `.json` or `.csv` files directly in `samples/`, with names of letters, digits, `.`, `-` and `_` that neither start nor end with a dot and are not a Windows device name (`CON`, `NUL`, `COM1`). A sample is named in lowercase letters, digits, `-` and `_` (`samples/acme.json`), and never with a name a tool reads as its own config (`package.json`, `tsconfig.json`, `opencode.json`), so a tool started inside `samples/` finds none either. A sample `.json` is also judged by what it holds: one JSON object with only the top-level keys `account`, `person`, `sender`, `brand`, `link`, `data`, `role` and `roles`. Pull refuses any other (`unsafe_path`) before it writes anything, so no tool's configuration arrives under a sample name. So pull never writes a hidden file (`.claude/`, `.mcp.json`), a tool's config file (`opencode.json`, `package.json`) or a coding agent's `CLAUDE.md` or `AGENTS.md`, which editors and coding agents read as their own settings, whatever the server sends. Studio stores nothing outside the layout; when a version stored before that rule holds such a file, the API leaves it out and pull prints a warning that names it.
32
32
 
33
33
  `pull` replaces a file that is already there only when an earlier pull wrote it or a push sent it and nobody changed it since, or when it already holds the new content. `.kenso-pull.json` at the top of the folder records what pulls wrote and pushes sent; push skips it like any dotfile. So pull, edit, push and pull again works as before, and a teammate's change replaces the files you did not change since your last pull or push. A file you added or changed and did not push stops the pull before anything is written: `local_changes` (exit 7) lists them. Move them away or compare them with the template, or add `--force` to replace them with the template's version. The first pull into a folder that an older version of the CLI pulled into may ask for `--force` once, for files that changed in the template since.
34
34
 
@@ -43,7 +43,7 @@ It prints `{templateId, versionId, files, dir}`, plus `replaced` when `--force`
43
43
 
44
44
  ### push
45
45
 
46
- `push` reads the files of the bundle layout in `--dir` (see pull) and skips everything else, so a folder that also holds a coding agent's `CLAUDE.md`, a `package.json` or a `src/` folder still pushes. It prints a warning naming each skipped file or folder; dotfiles, dot folders and `node_modules` are skipped without one. `validate` reads the folder the same way.
46
+ `push` reads the files of the bundle layout in `--dir` (see pull) and skips everything else, so a folder that also holds a coding agent's `CLAUDE.md`, a `package.json` or a `src/` folder still pushes. It prints a warning naming each skipped file or folder; dotfiles, dot folders and `node_modules` are skipped without one. A `samples/*.json` that is not one JSON object with only the keys `account`, `person`, `sender`, `brand`, `link`, `data`, `role` and `roles` is skipped with the same warning: the API refuses it (400 `content_mismatch`). `validate` reads the folder the same way.
47
47
 
48
48
  - A text file (valid UTF-8, no NUL byte, under 1 MB) goes inline.
49
49
  - Any other file is uploaded through a signed upload URL first, 4 at a time, up to 5 MB each. A larger file is refused before any call.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.149",
3
+ "version": "0.1.152",
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": "1be06785c317a2a9e20aaa68166dbd5a3bee40db"
52
+ "gitHead": "f0955ec93426986f30be3de151640b85a64a7311"
53
53
  }