kenso 0.1.131 → 0.1.134
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 +1 -0
- package/dist/kenso.js +62 -28
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/output-and-errors.md +3 -1
- package/docs/reference.md +1 -1
- package/docs/studio.md +2 -2
- package/package.json +2 -2
|
@@ -37,12 +37,14 @@ kenso contacts list --campaign-id 812 --all -o ids
|
|
|
37
37
|
- `--query <JMESPath>` filters or reshapes in-process, so you need no `jq`. On a list it sees the whole list. There is no `--jq`: `--query` takes JMESPath, not jq syntax.
|
|
38
38
|
- Neither applies to a batch summary, which always prints in full.
|
|
39
39
|
- `threads list`, `contacts list` and `contacts search` print a short set of fields per row, in every format: a thread's id, channel, sender, subject, interest, read state, newest message time and preview, a contact's id, name, email, title, company and email validity, and a few more (the command's `--help` names them all). `--full` prints every field (`--full -o json` for a script that reads them all), `--fields` picks your own, and `--query` sees every field.
|
|
40
|
+
- A thread list's `preview` is a one-line preview by default: the first 280 characters of the newest message's text (the API's `bodyFormat=snippet`), in every format. `--full`, or `--fields` that names `preview` or `htmlBody`, prints the whole message text, and `kenso threads list-messages --thread-id <id>` reads every message of a thread whole.
|
|
40
41
|
- A contact list asks the API for only the fields it prints (the API's `fields`), so a page downloads what it shows. A thread list printed with `-o ids`, or with `--fields` that names neither `preview` nor `htmlBody`, asks for no message bodies (`bodyFormat=none`). `--full` and `--query` ask for every field, and `--param-fields` or `--body-format` sent by hand wins.
|
|
41
42
|
|
|
42
43
|
```bash
|
|
43
44
|
kenso campaigns list --fields id,name,status
|
|
44
45
|
kenso campaigns list --all --query "[?status=='active'].id"
|
|
45
46
|
kenso me get --query "length(features)"
|
|
47
|
+
kenso threads list --folder inbox --fields id,subject,preview
|
|
46
48
|
kenso threads list --folder inbox --full
|
|
47
49
|
```
|
|
48
50
|
|
|
@@ -165,7 +167,7 @@ Two API codes change the exit code: `workspace_required` exits 2 with `"next":"k
|
|
|
165
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 |
|
|
166
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 |
|
|
167
169
|
| `mcp_tool_error` | 1 | `kenso mcp call`: the MCP tool answered with an error |
|
|
168
|
-
| `unsafe_path` | 1 | `studio pull` refused a file path that
|
|
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 |
|
|
169
171
|
| `network_error` | 8 | The API could not be reached after retries |
|
|
170
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) |
|
|
171
173
|
| `pull_incomplete` | 8 | `studio pull`: a file came back with neither text nor a download link |
|
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.134 (API contracts 05c39db77ef8) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
5
|
1903 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/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 would land outside `--dir`, one
|
|
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. 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 `--dir
|
|
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.
|
|
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.
|
|
3
|
+
"version": "0.1.134",
|
|
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": "7e0e608a3b467db7557bca748009ce53401e1f98"
|
|
53
53
|
}
|