kenso 0.1.31 → 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/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.31 (API contracts a807ccff7a62) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
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
- 1550 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
+ 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
 
@@ -36,8 +36,9 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
36
36
  - [accounts](#accounts) (19)
37
37
  - [ad-audiences](#ad-audiences) (5)
38
38
  - [ad-connections](#ad-connections) (6)
39
+ - [agent-sandbox-connections](#agent-sandbox-connections) (5)
39
40
  - [agent-team](#agent-team) (9)
40
- - [agent-work](#agent-work) (4)
41
+ - [agent-work](#agent-work) (5)
41
42
  - [agent-work-settings](#agent-work-settings) (2)
42
43
  - [ai-assist-reservations](#ai-assist-reservations) (1)
43
44
  - [ai-cost-estimate](#ai-cost-estimate) (1)
@@ -82,7 +83,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
82
83
  - [brand-kit](#brand-kit) (3)
83
84
  - [brands](#brands) (1)
84
85
  - [browser-runs](#browser-runs) (5)
85
- - [bug-reports](#bug-reports) (1)
86
+ - [bug-reports](#bug-reports) (2)
86
87
  - [build-events](#build-events) (2)
87
88
  - [build-files](#build-files) (6)
88
89
  - [build-sessions](#build-sessions) (9)
@@ -774,6 +775,38 @@ Pick the connection's ad account. `PATCH /v1/ad-connections/{adConnectionId}`. B
774
775
 
775
776
  Flags: `--ad-connection-id` (required), `--external-account-id`, `--login-account-id`, `--terms-attested`, `--no-terms-attested`, `--data`, `--each`, `--concurrency`.
776
777
 
778
+ ## agent-sandbox-connections
779
+
780
+ ### kenso agent-sandbox-connections disconnect
781
+
782
+ Disconnect an agent. `DELETE /v1/agent-sandbox/connections/{agent}`. Beta: needs `agent_sandboxes` and `agent_work`.
783
+
784
+ Flags: `--agent` (required), `--each`, `--concurrency`.
785
+
786
+ ### kenso agent-sandbox-connections get-login
787
+
788
+ Read a login. `GET /v1/agent-sandbox/connections/{agent}/logins/{loginId}`. Beta: needs `agent_sandboxes` and `agent_work`.
789
+
790
+ Flags: `--agent` (required), `--login-id` (required), `--each`, `--concurrency`.
791
+
792
+ ### kenso agent-sandbox-connections list
793
+
794
+ List your sandbox agent connections. `GET /v1/agent-sandbox/connections`. Beta: needs `agent_sandboxes` and `agent_work`.
795
+
796
+ Flags: `--each`, `--concurrency`.
797
+
798
+ ### kenso agent-sandbox-connections send-login-input
799
+
800
+ Send a line to a login. `POST /v1/agent-sandbox/connections/{agent}/logins/{loginId}/input`. Beta: needs `agent_sandboxes` and `agent_work`.
801
+
802
+ Flags: `--agent` (required), `--login-id` (required), `--line`, `--data`, `--each`, `--concurrency`.
803
+
804
+ ### kenso agent-sandbox-connections start-login
805
+
806
+ Start connecting an agent. `POST /v1/agent-sandbox/connections/{agent}/logins`. Beta: needs `agent_sandboxes` and `agent_work`.
807
+
808
+ Flags: `--agent` (required), `--each`, `--concurrency`.
809
+
777
810
  ## agent-team
778
811
 
779
812
  ### kenso agent-team create-action
@@ -832,6 +865,12 @@ Flags: `--target-interested-per-week`, `--runway-days`, `--data`, `--each`, `--c
832
865
 
833
866
  ## agent-work
834
867
 
868
+ ### kenso agent-work create-agent-key
869
+
870
+ Get the run's agent key. `POST /v1/agent-work/agent-key`. Beta: needs `agent_work`.
871
+
872
+ Flags: `--each`, `--concurrency`.
873
+
835
874
  ### kenso agent-work create-claim
836
875
 
837
876
  Claim agent work. `POST /v1/agent-work/claims`. Beta: needs `agent_work`.
@@ -1874,6 +1913,12 @@ Create a bug report. `POST /v1/bug-reports`. Beta: needs `bug_reports`.
1874
1913
 
1875
1914
  Flags: `--description`, `--title`, `--summary`, `--source`, `--client-name`, `--page-url`, `--user-agent`, `--diagnostics`, `--transcript`, `--file`, `--data`, `--each`, `--concurrency`.
1876
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
+
1877
1922
  ## build-events
1878
1923
 
1879
1924
  ### kenso build-events append
@@ -2390,7 +2435,7 @@ Flags: `--campaign-batch-id` (required), `--contact-id` (required), `--reason`,
2390
2435
 
2391
2436
  Edit one lead's first email in a campaign batch. `PATCH /v1/campaign-batches/{campaignBatchId}/samples/{contactId}`. Beta: needs `campaign_batches`.
2392
2437
 
2393
- Flags: `--campaign-batch-id` (required), `--contact-id` (required), `--subject`, `--body`, `--updated-at`, `--data`, `--each`, `--concurrency`.
2438
+ Flags: `--campaign-batch-id` (required), `--contact-id` (required), `--subject`, `--body`, `--editable-body`, `--editable-body-version`, `--updated-at`, `--data`, `--each`, `--concurrency`.
2394
2439
 
2395
2440
  ## campaign-compliance
2396
2441
 
@@ -7486,7 +7531,7 @@ Flags: `--each`, `--concurrency`.
7486
7531
 
7487
7532
  Start a placement test. `POST /v1/placement-tests`.
7488
7533
 
7489
- Flags: `--campaign-id`, `--inbox-id`, `--domain-id`, `--sequence-version-id`, `--campaign-segment-id`, `--contact-id`, `--random-segment`, `--random-lead`, `--random-scope`, `--random-copy-version`, `--open-pixel`, `--control`, `--subject`, `--body`, `--no-random-segment`, `--no-random-lead`, `--no-random-scope`, `--no-random-copy-version`, `--no-open-pixel`, `--no-control`, `--data`, `--each`, `--concurrency`.
7534
+ Flags: `--campaign-id`, `--inbox-id`, `--domain-id`, `--sequence-version-id`, `--campaign-segment-id`, `--contact-id`, `--random-segment`, `--random-lead`, `--random-scope`, `--random-copy-version`, `--open-pixel`, `--track-links`, `--control`, `--subject`, `--body`, `--no-random-segment`, `--no-random-lead`, `--no-random-scope`, `--no-random-copy-version`, `--no-open-pixel`, `--no-track-links`, `--no-control`, `--data`, `--each`, `--concurrency`.
7490
7535
 
7491
7536
  ### kenso placement-tests get
7492
7537
 
@@ -10010,9 +10055,9 @@ Arguments: `<claim>`.
10010
10055
 
10011
10056
  ### kenso work run
10012
10057
 
10013
- 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`. Beta: needs `agent_work`.
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`.
10014
10059
 
10015
- 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`.
10016
10061
 
10017
10062
  ### kenso work status
10018
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.31",
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": "bc3d1eefe54bb709aabff0dd61e6842cc762ffda"
47
+ "gitHead": "18b0a8ba0eea32f5463231ea7101cc61e1b9bc78"
48
48
  }