kenso 0.1.64 → 0.1.65
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 +4 -0
- package/README.md +2 -0
- package/dist/kenso.js +448 -109
- package/dist/operations.json +1 -1
- package/docs/README.md +1 -0
- package/docs/reference.md +59 -3
- package/docs/sandbox.md +61 -0
- package/package.json +2 -2
package/docs/README.md
CHANGED
|
@@ -94,6 +94,7 @@ Every page is in the package and prints offline with `kenso docs <topic>`.
|
|
|
94
94
|
| [Studio (beta)](studio.md) | `studio` | Pull, push, validate, preview and fill templates |
|
|
95
95
|
| [Agent work (beta)](work.md) | `work` | My agent: your own coding agent writes Kenso's AI work with `kenso work run`, or pull and submit |
|
|
96
96
|
| [Webhooks](webhooks.md) | `webhooks` | Build a webhook handler locally: `kenso webhooks listen --forward-to`, `trigger`, the signature |
|
|
97
|
+
| [Developer sandbox](sandbox.md) | `sandbox` | `kenso sandbox`: a workspace of your own where sends are simulated, its test key, the reserved test leads |
|
|
97
98
|
| [Coding agents](agents.md) | `agents` | Claude Code, Codex, Cursor, the Agent Skill, environment variables, sandboxes |
|
|
98
99
|
| Command reference | `reference` | Every command with its flags, generated from the CLI at build time: `kenso docs reference`, or `docs/reference.md` in the installed package |
|
|
99
100
|
|
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.65 (API contracts 0eb560f862fc) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1647 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
|
|
|
@@ -58,6 +58,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
58
58
|
- [answers](#answers) (4)
|
|
59
59
|
- [api](#api) (1)
|
|
60
60
|
- [api-keys](#api-keys) (5)
|
|
61
|
+
- [api-requests](#api-requests) (1)
|
|
61
62
|
- [apollo-lists](#apollo-lists) (1)
|
|
62
63
|
- [approval-tests](#approval-tests) (6)
|
|
63
64
|
- [approvals](#approvals) (4)
|
|
@@ -341,7 +342,8 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
|
|
|
341
342
|
- [role-candidates](#role-candidates) (6)
|
|
342
343
|
- [roles](#roles) (6)
|
|
343
344
|
- [runs](#runs) (3)
|
|
344
|
-
- [
|
|
345
|
+
- [sandbox](#sandbox) (5)
|
|
346
|
+
- [sandboxes](#sandboxes) (6)
|
|
345
347
|
- [saved-list-invites](#saved-list-invites) (2)
|
|
346
348
|
- [saved-list-members](#saved-list-members) (1)
|
|
347
349
|
- [saved-lists](#saved-lists) (18)
|
|
@@ -1213,6 +1215,14 @@ Rename one of the caller's keys, or change the API version it is pinned to. `PAT
|
|
|
1213
1215
|
|
|
1214
1216
|
Flags: `--api-key-id` (required), `--api-version`, `--name`, `--data`, `--each`, `--concurrency`.
|
|
1215
1217
|
|
|
1218
|
+
## api-requests
|
|
1219
|
+
|
|
1220
|
+
### kenso api-requests list
|
|
1221
|
+
|
|
1222
|
+
List API requests in the current workspace. `GET /v1/api-requests` (a list). Beta: needs `api_request_logs`.
|
|
1223
|
+
|
|
1224
|
+
Flags: `--api-key-id`, `--cursor`, `--limit`, `--occurred-after`, `--occurred-before`, `--request-id`, `--status`, `--all`, `--each`, `--concurrency`.
|
|
1225
|
+
|
|
1216
1226
|
## apollo-lists
|
|
1217
1227
|
|
|
1218
1228
|
### kenso apollo-lists list
|
|
@@ -8361,6 +8371,34 @@ Show one batch run and its files.
|
|
|
8361
8371
|
|
|
8362
8372
|
Arguments: `<runId>`.
|
|
8363
8373
|
|
|
8374
|
+
## sandbox
|
|
8375
|
+
|
|
8376
|
+
### kenso sandbox create
|
|
8377
|
+
|
|
8378
|
+
Create your developer sandbox and save its test key as the sandbox profile. `POST /v1/sandboxes`. Beta: needs `developer_sandboxes`.
|
|
8379
|
+
|
|
8380
|
+
### kenso sandbox delete
|
|
8381
|
+
|
|
8382
|
+
Delete your sandbox and its test keys. API operations: `sandboxes.list`, `sandboxes.delete`. Beta: needs `developer_sandboxes`.
|
|
8383
|
+
|
|
8384
|
+
Arguments: `<sandboxId>` (optional).
|
|
8385
|
+
|
|
8386
|
+
### kenso sandbox key
|
|
8387
|
+
|
|
8388
|
+
Create a new test key for your sandbox and save it as the sandbox profile. API operations: `sandboxes.list`, `sandboxes.create-test-key`. Beta: needs `developer_sandboxes`.
|
|
8389
|
+
|
|
8390
|
+
Arguments: `<sandboxId>` (optional).
|
|
8391
|
+
|
|
8392
|
+
### kenso sandbox list
|
|
8393
|
+
|
|
8394
|
+
List your developer sandbox. `GET /v1/sandboxes`. Beta: needs `developer_sandboxes`.
|
|
8395
|
+
|
|
8396
|
+
### kenso sandbox reset
|
|
8397
|
+
|
|
8398
|
+
Reset your sandbox to its seed data. API operations: `sandboxes.list`, `sandboxes.reset`. Beta: needs `developer_sandboxes`.
|
|
8399
|
+
|
|
8400
|
+
Arguments: `<sandboxId>` (optional).
|
|
8401
|
+
|
|
8364
8402
|
## sandboxes
|
|
8365
8403
|
|
|
8366
8404
|
### kenso sandboxes create
|
|
@@ -8369,6 +8407,18 @@ Create your sandbox and its first test key. `POST /v1/sandboxes`. Beta: needs `d
|
|
|
8369
8407
|
|
|
8370
8408
|
Flags: `--each`, `--concurrency`.
|
|
8371
8409
|
|
|
8410
|
+
### kenso sandboxes create-test-key
|
|
8411
|
+
|
|
8412
|
+
Create another test key for your sandbox. `POST /v1/sandboxes/{sandboxId}/test-keys`. Beta: needs `developer_sandboxes`.
|
|
8413
|
+
|
|
8414
|
+
Flags: `--sandbox-id` (required), `--each`, `--concurrency`.
|
|
8415
|
+
|
|
8416
|
+
### kenso sandboxes delete
|
|
8417
|
+
|
|
8418
|
+
Delete your sandbox. `DELETE /v1/sandboxes/{sandboxId}`. Beta: needs `developer_sandboxes`.
|
|
8419
|
+
|
|
8420
|
+
Flags: `--sandbox-id` (required), `--each`, `--concurrency`.
|
|
8421
|
+
|
|
8372
8422
|
### kenso sandboxes get
|
|
8373
8423
|
|
|
8374
8424
|
Get your sandbox. `GET /v1/sandboxes/{sandboxId}`. Beta: needs `developer_sandboxes`.
|
|
@@ -8381,6 +8431,12 @@ List your sandboxes. `GET /v1/sandboxes` (a list). Beta: needs `developer_sandbo
|
|
|
8381
8431
|
|
|
8382
8432
|
Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
|
|
8383
8433
|
|
|
8434
|
+
### kenso sandboxes reset
|
|
8435
|
+
|
|
8436
|
+
Reset your sandbox to its seed data. `POST /v1/sandboxes/{sandboxId}/reset`. Beta: needs `developer_sandboxes`.
|
|
8437
|
+
|
|
8438
|
+
Flags: `--sandbox-id` (required), `--each`, `--concurrency`.
|
|
8439
|
+
|
|
8384
8440
|
## saved-list-invites
|
|
8385
8441
|
|
|
8386
8442
|
### kenso saved-list-invites accept
|
package/docs/sandbox.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Developer sandbox
|
|
2
|
+
|
|
3
|
+
A developer sandbox is a Kenso workspace of your own for building and testing an integration. It starts with example campaigns, contacts, inboxes and conversation threads, and everything in it is simulated: sends, orders and charges never reach a provider. Nothing leaves Kenso. Campaigns still plan and send in the sandbox, your webhook endpoints still receive its events, and a few reserved test addresses answer like real leads would.
|
|
4
|
+
|
|
5
|
+
You work in it with a test key: `kenso_test_` and 49 letters and digits. A test key works only in its sandbox, and only on `Ken-Version: 1.1` routes, which is what `kenso` sends: every other workspace answers 404, and a request without that version, or to a route that has no 1.1 form, answers 403. You have one sandbox at most.
|
|
6
|
+
|
|
7
|
+
This is not the cloud sandbox a coding agent runs in (`kenso work run`, see `kenso docs agents`).
|
|
8
|
+
|
|
9
|
+
Sandboxes are in beta: the commands work in workspaces where Kenso has turned them on.
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
|
|
13
|
+
The sandbox commands run with your live key, in your current workspace. Run with a test key, they stop before sending anything.
|
|
14
|
+
|
|
15
|
+
| Command | What it does |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `sandbox create` | Creates your sandbox and its first test key, and saves the key as the profile `sandbox` |
|
|
18
|
+
| `sandbox list` | Lists your sandbox |
|
|
19
|
+
| `sandbox reset [sandboxId]` | Deletes everything in the sandbox and seeds it again. Test keys and webhook endpoints stay |
|
|
20
|
+
| `sandbox key [sandboxId]` | Creates another test key (5 active at most) and saves it as the profile `sandbox` |
|
|
21
|
+
| `sandbox delete [sandboxId]` | Deletes the sandbox and revokes its test keys, then removes the profile `sandbox` |
|
|
22
|
+
|
|
23
|
+
Without an id, `reset`, `key` and `delete` use your one sandbox. `delete` asks first on a terminal; in a script or an agent it needs `--yes`, and `--dry-run` prints the request it would send.
|
|
24
|
+
|
|
25
|
+
## Quick start
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
kenso sandbox create
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
It prints the sandbox and its test key once, as JSON:
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{"sandboxId":20417,"name":"Sandbox (you@acme.com)","status":"ready","seed":{"campaigns":2,"contacts":25,"inboxes":2,"threads":4},"testKey":{"id":"apk_...","prefix":"kenso_test_AbCdE","secret":"kenso_test_...","expiresAt":"2027-02-13T18:00:00Z"},"profile":"sandbox"}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The key is saved as the profile `sandbox`, and your active profile stays the live one. Add `--profile sandbox` to run any command in the sandbox:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
kenso campaigns list --profile sandbox
|
|
41
|
+
kenso auth status --profile sandbox
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`KENSO_API_KEY` and `KENSO_WORKSPACE_ID` win over every profile, `--profile sandbox` included: while either is set, a command does not use the test key and its sandbox. Unset them, or set `KENSO_API_KEY=<the test key> KENSO_WORKSPACE_ID=<sandboxId>` to work in the sandbox. `sandbox create` and `sandbox key` warn when they are set, and `auth status` when they override the profile.
|
|
45
|
+
|
|
46
|
+
`auth status` says `"keyKind":"test"` and names the sandbox. A test key expires after 90 days: `kenso sandbox key` makes a new one and saves it over the old one in the profile. To start over, `kenso sandbox reset`. When you are done, `kenso sandbox delete --yes`.
|
|
47
|
+
|
|
48
|
+
Your code can use the same key without the CLI: send it as `Authorization: Bearer <key>` and the sandbox id as `X-Ken-Workspace-Id`.
|
|
49
|
+
|
|
50
|
+
## Reserved test leads
|
|
51
|
+
|
|
52
|
+
Add a lead with one of these addresses to a sandbox campaign and launch it. After its simulated send, the lead gets that outcome. A `+label` before the `@` is ignored, so `replied-interested+signup@test.ken.so` works too.
|
|
53
|
+
|
|
54
|
+
| Address | Outcome in a sandbox |
|
|
55
|
+
|---|---|
|
|
56
|
+
| `replied-interested@test.ken.so` | A reply classified Interested |
|
|
57
|
+
| `bounced@test.ken.so` | A hard bounce |
|
|
58
|
+
| `ooo@test.ken.so` | An out-of-office auto reply |
|
|
59
|
+
| `unsubscribed@test.ken.so` | An unsubscribe |
|
|
60
|
+
|
|
61
|
+
Any other address gets a simulated send and nothing after it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kenso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.65",
|
|
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": "35d8e3366844185a8eafda5905d92e74a98a816c"
|
|
53
53
|
}
|