kenso 0.1.32 → 0.1.34

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/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.32 (API contracts a07b32385d9a) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.34 (API contracts 0bddace5bb59) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1556 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
+ 1558 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
 
@@ -37,6 +37,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
37
37
  - [ad-audiences](#ad-audiences) (5)
38
38
  - [ad-connections](#ad-connections) (6)
39
39
  - [agent-sandbox-connections](#agent-sandbox-connections) (5)
40
+ - [agent-sandbox-runs](#agent-sandbox-runs) (1)
40
41
  - [agent-team](#agent-team) (9)
41
42
  - [agent-work](#agent-work) (5)
42
43
  - [agent-work-settings](#agent-work-settings) (2)
@@ -83,7 +84,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
83
84
  - [brand-kit](#brand-kit) (3)
84
85
  - [brands](#brands) (1)
85
86
  - [browser-runs](#browser-runs) (5)
86
- - [bug-reports](#bug-reports) (1)
87
+ - [bug-reports](#bug-reports) (2)
87
88
  - [build-events](#build-events) (2)
88
89
  - [build-files](#build-files) (6)
89
90
  - [build-sessions](#build-sessions) (9)
@@ -807,6 +808,14 @@ Start connecting an agent. `POST /v1/agent-sandbox/connections/{agent}/logins`.
807
808
 
808
809
  Flags: `--agent` (required), `--each`, `--concurrency`.
809
810
 
811
+ ## agent-sandbox-runs
812
+
813
+ ### kenso agent-sandbox-runs create
814
+
815
+ Estimate or start a sandbox run. `POST /v1/agent-sandbox-runs`. Beta: needs `agent_sandboxes` and `agent_work`.
816
+
817
+ Flags: `--agent`, `--campaign-id`, `--estimate-only`, `--max-ceiling-credits`, `--no-estimate-only`, `--data`, `--each`, `--concurrency`.
818
+
810
819
  ## agent-team
811
820
 
812
821
  ### kenso agent-team create-action
@@ -1913,6 +1922,12 @@ Create a bug report. `POST /v1/bug-reports`. Beta: needs `bug_reports`.
1913
1922
 
1914
1923
  Flags: `--description`, `--title`, `--summary`, `--source`, `--client-name`, `--page-url`, `--user-agent`, `--diagnostics`, `--transcript`, `--file`, `--data`, `--each`, `--concurrency`.
1915
1924
 
1925
+ ### kenso bug-reports notes-create
1926
+
1927
+ Add a note to a bug report. `POST /v1/bug-reports/{bugReportId}/notes`. Beta: needs `bug_reports`.
1928
+
1929
+ Flags: `--bug-report-id` (required), `--note`, `--data`, `--each`, `--concurrency`.
1930
+
1916
1931
  ## build-events
1917
1932
 
1918
1933
  ### kenso build-events append
@@ -10051,7 +10066,7 @@ Arguments: `<claim>`.
10051
10066
 
10052
10067
  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
10068
 
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`.
10069
+ 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
10070
 
10056
10071
  ### kenso work status
10057
10072
 
package/docs/work.md CHANGED
@@ -58,7 +58,9 @@ When Kenso does not answer (a deploy restarts it), `run` and `pull` wait 30 s an
58
58
 
59
59
  ### In a Kenso sandbox
60
60
 
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.
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, beside them, only the run's `tmp` folder (3770), which every agent gets as `TMPDIR`, `TMP` and `TEMP`, so its temp files stay in the run folder. OpenCode keeps a session database per job there too (`OPENCODE_DB`), not in the one every earlier run wrote to. 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
+
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.
62
64
 
63
65
  ## Agents
64
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
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": "02ac3464a351d5ebcf109cef30c3d153a6f1e0a4"
47
+ "gitHead": "27b6cc5eb8cd23f5faaf6a2ccdeaa2b98b5a6399"
48
48
  }