kenso 0.1.32 → 0.1.33
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/dist/kenso.js +296 -56
- package/dist/operations.json +1 -1
- package/docs/reference.md +10 -4
- package/docs/work.md +2 -0
- package/package.json +2 -2
package/docs/reference.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Kenso CLI command reference
|
|
2
2
|
|
|
3
|
-
Generated from kenso 0.1.
|
|
3
|
+
Generated from kenso 0.1.33 (API contracts 1c27c145f906) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1557 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
|
|
|
@@ -83,7 +83,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
83
83
|
- [brand-kit](#brand-kit) (3)
|
|
84
84
|
- [brands](#brands) (1)
|
|
85
85
|
- [browser-runs](#browser-runs) (5)
|
|
86
|
-
- [bug-reports](#bug-reports) (
|
|
86
|
+
- [bug-reports](#bug-reports) (2)
|
|
87
87
|
- [build-events](#build-events) (2)
|
|
88
88
|
- [build-files](#build-files) (6)
|
|
89
89
|
- [build-sessions](#build-sessions) (9)
|
|
@@ -1913,6 +1913,12 @@ Create a bug report. `POST /v1/bug-reports`. Beta: needs `bug_reports`.
|
|
|
1913
1913
|
|
|
1914
1914
|
Flags: `--description`, `--title`, `--summary`, `--source`, `--client-name`, `--page-url`, `--user-agent`, `--diagnostics`, `--transcript`, `--file`, `--data`, `--each`, `--concurrency`.
|
|
1915
1915
|
|
|
1916
|
+
### kenso bug-reports notes-create
|
|
1917
|
+
|
|
1918
|
+
Add a note to a bug report. `POST /v1/bug-reports/{bugReportId}/notes`. Beta: needs `bug_reports`.
|
|
1919
|
+
|
|
1920
|
+
Flags: `--bug-report-id` (required), `--note`, `--data`, `--each`, `--concurrency`.
|
|
1921
|
+
|
|
1916
1922
|
## build-events
|
|
1917
1923
|
|
|
1918
1924
|
### kenso build-events append
|
|
@@ -10051,7 +10057,7 @@ Arguments: `<claim>`.
|
|
|
10051
10057
|
|
|
10052
10058
|
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`.
|
|
10053
10059
|
|
|
10054
|
-
Flags: `--agent` (required), `--agent-bin`, `--agent-user`, `--allow-unconfined`, `--campaign`, `--kind`, `--lease`, `--max-items`, `--model`, `--no-research`, `--out`, `--parallel`, `--per-file`, `--timeout`, `--token-stdin`, `--watch`.
|
|
10060
|
+
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`.
|
|
10055
10061
|
|
|
10056
10062
|
### kenso work status
|
|
10057
10063
|
|
package/docs/work.md
CHANGED
|
@@ -60,6 +60,8 @@ When Kenso does not answer (a deploy restarts it), `run` and `pull` wait 30 s an
|
|
|
60
60
|
|
|
61
61
|
A Kenso sandbox runs `kenso work run` in a box of your own with two flags that help leaves out. `--token-stdin` reads stdin to its end, so the caller closes it after writing, and uses its first line, a run token (`krt_` and 43 characters), instead of any saved key or `KENSO_API_KEY`: no config file is read, the token goes only on the claim, answer and release calls, and a terminal on stdin is refused (exit 2). `--agent-user <name>` starts every agent and every login check as that user through `sudo -n -u <name> -H`, so the agent gets the environment sudo builds plus the agent's own variables and nothing of kenso's, and it stops agents with `kill` run as that user. It refuses (exit 2, `agent_user_invalid`) root, the user kenso runs as, a user in a group that can run sudo, a user with no home folder and a user sudo will not run `cat` or `kill` as. It needs `KENSO_RUNS_DIR`, which the box makes `root:ksjobs` with mode 3770: the run folder there is 2750, each job folder 3770 (sticky, so no agent can replace the work file) and each work file 0640, so the agent user's group can write its answers and nothing else of the run. Every answer is scanned before it is sent: one that holds a piece of the agent's login, a credential-shaped string or a long random-looking run outside a link stops the run with exit 9, and the summary's `message` names only the reason. A run that cannot read the agent's login files does not start (exit 1). The summary's `confinement` (`full`, `partial` or `none`) says how far a sandbox holds the agent.
|
|
62
62
|
|
|
63
|
+
`--agent-tools` (only with both, and with `--allow-unconfined`; not with `--no-research`) gives each agent more. Before the first claim kenso asks Kenso for the run's agent key (an Editor-level key of the person who started the run, revoked when the run ends) and passes it to each agent as `KENSO_API_KEY`, with `KENSO_API_URL`, `KENSO_WORKSPACE_ID` and `AI_AGENT`; when Kenso has no key for the run (409 `agent_key_unavailable`) the agents run without one, and any other failure stops the run (exit 1, `agent_key_failed`). Each agent starts with its shell and web tools on, each job folder gets `AGENTS.md`, `CLAUDE.md` and `GEMINI.md` (one text, shipped with kenso, saying what the agent may use and what it costs), and an answer that holds the key is refused like one that holds a login. The summary's `confinement` is then `none`, or `partial` for codex.
|
|
64
|
+
|
|
63
65
|
## Agents
|
|
64
66
|
|
|
65
67
|
| Agent | `--agent` | Held to the job folder | Proven on a plan login |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
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",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"typescript-eslint": "8.71.1",
|
|
45
45
|
"vitest": "5.0.3"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "18b0a8ba0eea32f5463231ea7101cc61e1b9bc78"
|
|
48
48
|
}
|