kenso 0.1.192 → 0.1.194
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 +2 -0
- package/dist/discover.json +1 -1
- package/dist/kenso.js +867 -623
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/reference.md +36 -3
- package/docs/work.md +3 -1
- 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.194 (API contracts 08c477542f13) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
2019 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
|
|
|
@@ -430,6 +430,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
430
430
|
- [shares](#shares) (8)
|
|
431
431
|
- [signal-vendor-connections](#signal-vendor-connections) (3)
|
|
432
432
|
- [signals](#signals) (2)
|
|
433
|
+
- [simulations](#simulations) (5)
|
|
433
434
|
- [skill](#skill) (3)
|
|
434
435
|
- [slack-alerts](#slack-alerts) (3)
|
|
435
436
|
- [slack-channels](#slack-channels) (1)
|
|
@@ -11102,6 +11103,38 @@ List the signal triggers a workflow can start from, offline.
|
|
|
11102
11103
|
|
|
11103
11104
|
Flags: `--record-type`, `--workflow-type`.
|
|
11104
11105
|
|
|
11106
|
+
## simulations
|
|
11107
|
+
|
|
11108
|
+
### kenso simulations cancel
|
|
11109
|
+
|
|
11110
|
+
Cancel a simulation. `POST /v1/simulations/{simulationId}/cancel`. Beta: needs `response_simulation`.
|
|
11111
|
+
|
|
11112
|
+
Flags: `--simulation-id` (required), `--each`, `--concurrency`.
|
|
11113
|
+
|
|
11114
|
+
### kenso simulations create
|
|
11115
|
+
|
|
11116
|
+
Start a simulation. `POST /v1/simulations`. Beta: needs `response_simulation`.
|
|
11117
|
+
|
|
11118
|
+
Flags: `--kind`, `--channel`, `--reader-count`, `--rounds`, `--rewrite`, `--instruction`, `--no-rewrite`, `--data`, `--each`, `--concurrency`.
|
|
11119
|
+
|
|
11120
|
+
### kenso simulations get
|
|
11121
|
+
|
|
11122
|
+
Get one simulation with its result. `GET /v1/simulations/{simulationId}`. Beta: needs `response_simulation`.
|
|
11123
|
+
|
|
11124
|
+
Flags: `--simulation-id` (required), `--each`, `--concurrency`.
|
|
11125
|
+
|
|
11126
|
+
### kenso simulations list
|
|
11127
|
+
|
|
11128
|
+
List the workspace's simulations, newest first. `GET /v1/simulations` (a list). Beta: needs `response_simulation`.
|
|
11129
|
+
|
|
11130
|
+
Flags: `--account-id`, `--campaign-id`, `--contact-id`, `--cursor`, `--kind`, `--limit`, `--touch-id`, `--all`, `--each`, `--concurrency`.
|
|
11131
|
+
|
|
11132
|
+
### kenso simulations run
|
|
11133
|
+
|
|
11134
|
+
Run a response simulation and print how the readers reacted. API operations: `simulations.create`, `simulations.get`. Beta: needs `response_simulation`.
|
|
11135
|
+
|
|
11136
|
+
Flags: `--account-id`, `--body`, `--campaign-id`, `--channel`, `--compare-body`, `--compare-subject`, `--contact-id`, `--kind` (required), `--person-id`, `--reader-count`, `--rewrite`, `--rounds`, `--segment-id`, `--step-order`, `--subject`, `--touch-id`.
|
|
11137
|
+
|
|
11105
11138
|
## skill
|
|
11106
11139
|
|
|
11107
11140
|
### kenso skill install
|
|
@@ -12878,7 +12911,7 @@ Arguments: `<claim>`.
|
|
|
12878
12911
|
|
|
12879
12912
|
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`.
|
|
12880
12913
|
|
|
12881
|
-
Flags: `--agent` (required), `--agent-bin`, `--agent-tools`, `--agent-user`, `--allow-unconfined`, `--campaign`, `--kind`, `--lease`, `--live-only`, `--max-items`, `--model`, `--no-research`, `--out`, `--parallel`, `--per-file`, `--timeout`, `--token-stdin`, `--watch`.
|
|
12914
|
+
Flags: `--agent` (required), `--agent-bin`, `--agent-tools`, `--agent-user`, `--allow-unconfined`, `--campaign`, `--kind`, `--lease`, `--live-only`, `--max-items`, `--model`, `--no-research`, `--out`, `--parallel`, `--per-file`, `--pin-proxy`, `--proxy-by-name`, `--timeout`, `--token-stdin`, `--watch`.
|
|
12882
12915
|
|
|
12883
12916
|
### kenso work status
|
|
12884
12917
|
|
package/docs/work.md
CHANGED
|
@@ -39,7 +39,7 @@ kenso work run --agent claude --watch --live-only
|
|
|
39
39
|
|
|
40
40
|
The agent never gets the Kenso API key and never runs `kenso`: the loop claims and submits. The agent uses its own login and plan; API key variables such as `ANTHROPIC_API_KEY` are removed from its environment so the plan login is the one used. Its environment holds only what a CLI needs from yours: `PATH`, `HOME`, `USER`, `LOGNAME`, `SHELL`, `TERM`, the locale (`LANG`, `LANGUAGE`, `LC_*`, `TZ`), the temp folder, the `XDG_*` folders, your proxy and CA variables, the Windows profile variables, and the agent's own (`CLAUDE_CONFIG_DIR` and `CLAUDE_CODE_OAUTH_TOKEN` for Claude Code, `CODEX_HOME` for Codex). Every other variable you have exported stays out of it.
|
|
41
41
|
|
|
42
|
-
With web research on, each job holds one lead, so text in one lead that steers the agent can reach only that lead's own data, never the rest of a batch. That makes a run slower: one agent start per lead. `--per-file` above 1 with web research still works and warns. The agent's web traffic goes through a proxy `run` starts on `127.0.0.1` (its `HTTP_PROXY` and `HTTPS_PROXY`), which refuses every address that is not on the public internet: loopback, private, link-local and the other special ranges, named as an IP address or by a name that resolves to one. When you have a proxy of your own in `HTTPS_PROXY`, `HTTP_PROXY` or `ALL_PROXY` (the first one set), `run` checks each address the same way on your machine and then passes the traffic on to your proxy
|
|
42
|
+
With web research on, each job holds one lead, so text in one lead that steers the agent can reach only that lead's own data, never the rest of a batch. That makes a run slower: one agent start per lead. `--per-file` above 1 with web research still works and warns. The agent's web traffic goes through a proxy `run` starts on `127.0.0.1` (its `HTTP_PROXY` and `HTTPS_PROXY`), which refuses every address that is not on the public internet: loopback, private, link-local and the other special ranges, named as an IP address or by a name that resolves to one. When you have a proxy of your own in `HTTPS_PROXY`, `HTTP_PROXY` or `ALL_PROXY` (the first one set), `run` checks each address the same way on your machine and then passes the traffic on to your proxy; a name your machine cannot resolve is refused, and your `NO_PROXY` does not apply to the agents. With `--pin-proxy` your proxy gets the address `run` checked, not the name (for `https://` the site's name still travels inside the encrypted tunnel), so it reaches exactly that address. Pinning is not the default yet, because a proxy that allows listed domains only refuses an address. Without it, `run` passes your proxy the name and says so once: your proxy looks the name up again, so a name that answers differently there gets past the check. `--proxy-by-name` asks for names explicitly and warns that it drops the pin. A standard proxy replaces the `Host` header of a plain `http://` request with the host in its URL, so with `--pin-proxy` such a request reaches that address's default site, not the site asked for; `https://` is not affected. For the full guarantee without pinning, unset the proxy for the run or add `--no-research`. When your proxy refuses the agents' traffic (a wrong login, or a pinned address) or cannot be reached, `run` warns once. It passes traffic on to an `http://` or `https://` proxy only: with a SOCKS proxy there, `run` does not start, so set that variable to an `http://` proxy for the run or add `--no-research`. The proxy holds an agent that sends its web traffic through `HTTPS_PROXY`, as Claude Code's fetch and search tools do: an unconfined agent that runs commands (`--allow-unconfined`) can go around it.
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
45
|
kenso work run --agent claude --parallel 4 --kind personalization --max-items 200
|
|
@@ -58,6 +58,8 @@ kenso work run --agent claude --watch
|
|
|
58
58
|
| `--model` | the agent's | The model the agent runs |
|
|
59
59
|
| `--timeout` | 15m | Stop one job's agent after this long; shorter than `--lease` |
|
|
60
60
|
| `--no-research` | off | No web research: the agent answers from the work file only, 10 items per job |
|
|
61
|
+
| `--pin-proxy` | off | With your own proxy: send it the address the web guard checked, not the name |
|
|
62
|
+
| `--proxy-by-name` | off | With your own proxy: send it names (a proxy that allows listed domains only); drops the pin and warns |
|
|
61
63
|
| `--watch` | off | An empty queue is not the end: check again every 60 s until Ctrl-C |
|
|
62
64
|
| `--agent-bin` | on PATH | The agent's binary, when it is not on PATH under its usual name |
|
|
63
65
|
| `--allow-unconfined` | off | Run an agent Kenso cannot hold to the job folder (every agent but `claude`; see below) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.194",
|
|
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": "0de2172109ad50842ee61ba14746f33931f6c3c5"
|
|
53
53
|
}
|