kenso 0.1.28 → 0.1.30
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 +688 -163
- package/dist/operations.json +1 -1
- package/docs/output-and-errors.md +1 -0
- package/docs/reference.md +21 -9
- package/docs/work.md +6 -1
- package/package.json +2 -2
|
@@ -130,6 +130,7 @@ Two API codes change the exit code: `workspace_required` exits 2 with `"next":"k
|
|
|
130
130
|
| 6 | Rate limited after retries, or a plan or campaign lead limit stopped the run (`limit_reached`) |
|
|
131
131
|
| 7 | Conflict or invalid state (HTTP 409), or a run another process holds |
|
|
132
132
|
| 8 | Server error after retries (5xx), or the API is unreachable |
|
|
133
|
+
| 9 | Answer refused: a Kenso sandbox run stopped because an answer held a credential or something shaped like one |
|
|
133
134
|
| 130 | Interrupted. A batch run can be resumed: see its `next` |
|
|
134
135
|
|
|
135
136
|
Skipped rows (duplicates, blocklisted, already contacted) are not failures: a batch with only created, updated and skipped rows exits 0.
|
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.30 (API contracts 44953754b4c8) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1544 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
|
|
|
@@ -81,7 +81,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
81
81
|
- [branching-sequences](#branching-sequences) (2)
|
|
82
82
|
- [brand-kit](#brand-kit) (3)
|
|
83
83
|
- [brands](#brands) (1)
|
|
84
|
-
- [browser-runs](#browser-runs) (
|
|
84
|
+
- [browser-runs](#browser-runs) (5)
|
|
85
85
|
- [bug-reports](#bug-reports) (1)
|
|
86
86
|
- [build-events](#build-events) (2)
|
|
87
87
|
- [build-files](#build-files) (6)
|
|
@@ -293,7 +293,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
293
293
|
- [optiverse-connection](#optiverse-connection) (3)
|
|
294
294
|
- [outbound-event-attendees](#outbound-event-attendees) (3)
|
|
295
295
|
- [outbound-event-suggestions](#outbound-event-suggestions) (3)
|
|
296
|
-
- [outbound-events](#outbound-events) (
|
|
296
|
+
- [outbound-events](#outbound-events) (15)
|
|
297
297
|
- [outbound-site](#outbound-site) (7)
|
|
298
298
|
- [people](#people) (28)
|
|
299
299
|
- [performance-deal](#performance-deal) (8)
|
|
@@ -677,7 +677,7 @@ Flags: `--account-id` (required), `--each`, `--concurrency`.
|
|
|
677
677
|
|
|
678
678
|
List accounts in the current workspace. `GET /v1/accounts` (a list). Beta: needs `accounts`.
|
|
679
679
|
|
|
680
|
-
Flags: `--account-type`, `--cursor`, `--domain`, `--expand`, `--fits-icp`, `--has-open-opportunity`, `--is-customer`, `--latest-signal-after`, `--limit`, `--next-touch-before`, `--owner-member-id`, `--q`, `--sort`, `--stage`, `--stage-group`, `--tag-ids`, `--no-fits-icp`, `--no-has-open-opportunity`, `--no-is-customer`, `--all`, `--each`, `--concurrency`.
|
|
680
|
+
Flags: `--account-type`, `--cursor`, `--domain`, `--expand`, `--fits-icp`, `--has-open-opportunity`, `--ids`, `--is-customer`, `--latest-signal-after`, `--limit`, `--next-touch-before`, `--owner-member-id`, `--q`, `--sort`, `--stage`, `--stage-group`, `--tag-ids`, `--no-fits-icp`, `--no-has-open-opportunity`, `--no-is-customer`, `--all`, `--each`, `--concurrency`.
|
|
681
681
|
|
|
682
682
|
### kenso accounts merge
|
|
683
683
|
|
|
@@ -1835,6 +1835,12 @@ Flags: `--host`, `--each`, `--concurrency`.
|
|
|
1835
1835
|
|
|
1836
1836
|
## browser-runs
|
|
1837
1837
|
|
|
1838
|
+
### kenso browser-runs create
|
|
1839
|
+
|
|
1840
|
+
Start a browser run outside a workflow. `POST /v1/browser-runs`. Beta: needs `agent_work` and `browser_steps` and `workflows`.
|
|
1841
|
+
|
|
1842
|
+
Flags: `--instruction`, `--start-url`, `--max-minutes`, `--data`, `--each`, `--concurrency`.
|
|
1843
|
+
|
|
1838
1844
|
### kenso browser-runs get
|
|
1839
1845
|
|
|
1840
1846
|
Return one browser run in full. `GET /v1/browser-runs/{browserRunId}`. Beta: needs `browser_steps` and `workflows`.
|
|
@@ -6977,7 +6983,7 @@ Flags: `--attendee-id` (required), `--each`, `--concurrency`.
|
|
|
6977
6983
|
|
|
6978
6984
|
List an outbound event's attendees, exhibitors, speakers and sponsors. `GET /v1/outbound-events/{eventId}/attendees` (a list). Beta: needs `accounts` and `event_outbound`.
|
|
6979
6985
|
|
|
6980
|
-
Flags: `--event-id` (required), `--account`, `--cursor`, `--limit`, `--role`, `--all`, `--each`, `--concurrency`.
|
|
6986
|
+
Flags: `--event-id` (required), `--account`, `--cursor`, `--limit`, `--role`, `--source`, `--all`, `--each`, `--concurrency`.
|
|
6981
6987
|
|
|
6982
6988
|
## outbound-event-suggestions
|
|
6983
6989
|
|
|
@@ -7001,6 +7007,12 @@ Flags: `--cursor`, `--limit`, `--status`, `--all`, `--each`, `--concurrency`.
|
|
|
7001
7007
|
|
|
7002
7008
|
## outbound-events
|
|
7003
7009
|
|
|
7010
|
+
### kenso outbound-events check-posts
|
|
7011
|
+
|
|
7012
|
+
Check public LinkedIn posts for people going to the event again. `POST /v1/outbound-events/{eventId}/check-posts`. Beta: needs `accounts` and `event_outbound`.
|
|
7013
|
+
|
|
7014
|
+
Flags: `--event-id` (required), `--each`, `--concurrency`.
|
|
7015
|
+
|
|
7004
7016
|
### kenso outbound-events create
|
|
7005
7017
|
|
|
7006
7018
|
Create an outbound event. `POST /v1/outbound-events`. Beta: needs `accounts` and `event_outbound`.
|
|
@@ -7083,7 +7095,7 @@ Flags: `--event-id` (required), `--url`, `--linked-in-account-id`, `--accept-war
|
|
|
7083
7095
|
|
|
7084
7096
|
Update an outbound event. Absent fields stay unchanged. `PATCH /v1/outbound-events/{eventId}`. Beta: needs `accounts` and `event_outbound`.
|
|
7085
7097
|
|
|
7086
|
-
Flags: `--event-id` (required), `--name`, `--starts-on`, `--ends-on`, `--timezone`, `--format`, `--attendance`, `--city`, `--venue`, `--url`, `--data`, `--each`, `--concurrency`.
|
|
7098
|
+
Flags: `--event-id` (required), `--name`, `--starts-on`, `--ends-on`, `--timezone`, `--format`, `--attendance`, `--city`, `--venue`, `--url`, `--post-spend-limit-millicredits`, `--data`, `--each`, `--concurrency`.
|
|
7087
7099
|
|
|
7088
7100
|
## outbound-site
|
|
7089
7101
|
|
|
@@ -8905,7 +8917,7 @@ Flags: `--each`, `--concurrency`.
|
|
|
8905
8917
|
|
|
8906
8918
|
Page one entity's working set. `GET /v1/sync/snapshot/{entity}` (a list). Beta: needs `sync_engine`.
|
|
8907
8919
|
|
|
8908
|
-
Flags: `--entity` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8920
|
+
Flags: `--entity` (required), `--cursor`, `--include`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8909
8921
|
|
|
8910
8922
|
## tags
|
|
8911
8923
|
|
|
@@ -9961,7 +9973,7 @@ Arguments: `<claim>`.
|
|
|
9961
9973
|
|
|
9962
9974
|
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`.
|
|
9963
9975
|
|
|
9964
|
-
Flags: `--agent` (required), `--agent-bin`, `--allow-unconfined`, `--campaign`, `--kind`, `--lease`, `--max-items`, `--model`, `--no-research`, `--out`, `--parallel`, `--per-file`, `--timeout`, `--watch`.
|
|
9976
|
+
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`.
|
|
9965
9977
|
|
|
9966
9978
|
### kenso work status
|
|
9967
9979
|
|
package/docs/work.md
CHANGED
|
@@ -56,6 +56,10 @@ kenso work run --agent claude --watch
|
|
|
56
56
|
|
|
57
57
|
When Kenso does not answer (a deploy restarts it), `run` and `pull` wait 30 s and ask again, up to 10 times. Answers `run` still cannot send stay in their file and their claim stays open: the summary lists those files in `unsent`, with the `kenso work submit` command in `next`. A failed job's own output (what the agent said) goes only to `results.ndjson` in the run folder, never to stdout or stderr, because it can quote a lead's data.
|
|
58
58
|
|
|
59
|
+
### In a Kenso sandbox
|
|
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.
|
|
62
|
+
|
|
59
63
|
## Agents
|
|
60
64
|
|
|
61
65
|
| Agent | `--agent` | Held to the job folder | Proven on a plan login |
|
|
@@ -67,7 +71,7 @@ When Kenso does not answer (a deploy restarts it), `run` and `pull` wait 30 s an
|
|
|
67
71
|
| OpenCode | `opencode` | no | not yet |
|
|
68
72
|
| Antigravity | `antigravity` | no | not yet |
|
|
69
73
|
|
|
70
|
-
`run` checks that the agent is installed and logged in before it claims anything. Not installed: it stops with how to install it. Logged out: it stops with the agent's own login command. Kenso never logs in for you, never
|
|
74
|
+
`run` checks that the agent is installed and logged in before it claims anything. Not installed: it stops with how to install it. Logged out: it stops with the agent's own login command. Kenso never logs in for you, never copies or keeps an agent's credential files (a Kenso sandbox run reads them only to scan answers, and keeps only hashes), and never signs up for anything. An agent not yet proven runs, and says so once at the start.
|
|
71
75
|
|
|
72
76
|
Claude Code is held to the job folder with its `--restricted` flag (Claude Code 2.1.322 or newer): an older one fails, and `run` says to update Claude Code.
|
|
73
77
|
|
|
@@ -166,4 +170,5 @@ Kenso checks format and language only: that each answer has the format and schem
|
|
|
166
170
|
| 4 | `not_found`: the `agent_work` feature is not on, or the campaign or claim is not this workspace's |
|
|
167
171
|
| 5 | Some answers were rejected, or some jobs failed (expired and duplicate answers do not count) |
|
|
168
172
|
| 6 | The agent's plan hit its usage limit |
|
|
173
|
+
| 9 | In a Kenso sandbox (`--agent-user`): an answer held a credential or something shaped like one. Nothing of its claim was sent, every open claim was released and the run stopped |
|
|
169
174
|
| 130 | Ctrl-C (or SIGTERM, or a closed terminal): the agents were stopped and the open claims released. A second Ctrl-C quits at once |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
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": "ff7f3efb5f962cd989ade3a767170b879295c127"
|
|
48
48
|
}
|