kenso 0.1.38 → 0.1.40

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/agents.md CHANGED
@@ -4,18 +4,59 @@ The CLI is built to be driven by a coding agent: Claude Code, Codex, Cursor, Gem
4
4
 
5
5
  ## Set up an agent in three steps
6
6
 
7
- 1. Install the CLI where the agent runs: `npm i -g kenso` (Node 22 or newer).
7
+ 1. Install the CLI where the agent runs: `npm i -g kenso` (Node 22 or newer). Without a global install, `npx -y kenso@latest <command>` runs any command.
8
8
  2. Give it a key. Either set `KENSO_API_KEY` (and `KENSO_WORKSPACE_ID` when the key reaches several workspaces) in the agent's environment, or log in once on that machine:
9
9
 
10
10
  ```bash
11
- echo $KEY | kenso auth login --with-key
11
+ kenso auth login
12
12
  kenso workspace use 1234
13
13
  ```
14
14
 
15
- 3. Install the Agent Skill, so the agent knows the rules before its first command:
15
+ 3. Install the Agent Skill and connect the Kenso MCP server in one step, then check everything:
16
16
 
17
17
  ```bash
18
- kenso skill install
18
+ kenso agent setup
19
+ kenso agent setup -y
20
+ kenso doctor
21
+ ```
22
+
23
+ To hand the whole setup to an agent, give it https://ken.so/get-started.md: it runs these steps and stops only where a person has to act.
24
+
25
+ ## kenso agent setup
26
+
27
+ `kenso agent setup` installs the `kenso-cli` skill (as `kenso skill install` does) and registers the Kenso MCP server, `https://mcp.ken.so/mcp`, with each coding agent:
28
+
29
+ | Agent | `--client` | MCP server added with |
30
+ |---|---|---|
31
+ | Claude Code | `claude-code` | `claude mcp add --scope user --transport http kenso https://mcp.ken.so/mcp` |
32
+ | Codex | `codex` | `codex mcp add kenso --url https://mcp.ken.so/mcp` |
33
+ | Cursor | `cursor` | a `kenso` entry in `~/.cursor/mcp.json` |
34
+ | Gemini CLI | `gemini` | `gemini mcp add --scope user --transport http kenso https://mcp.ken.so/mcp` |
35
+ | OpenCode | `opencode` | a `kenso` entry in `~/.config/opencode/opencode.json` |
36
+
37
+ ```bash
38
+ kenso agent setup --client claude-code -y
39
+ kenso agent setup --client all -y
40
+ kenso agent setup --status --json
41
+ ```
42
+
43
+ - Without `--client`, it sets up the agent that runs it, else every agent found on the machine (its command on `PATH` or its config folder present).
44
+ - Without `-y` it prints the plan and changes nothing; the plan's `next` applies it. `--status` reports, for every agent, whether the skill is `installed`, `missing` or `different` and whether the MCP server is `registered`, `missing`, in `conflict` or `unknown` (a config file it cannot read as JSON), and changes nothing. `--json` prints JSON on a terminal too.
45
+ - An MCP entry with the Kenso URL under another name (such as `ken-ai` from the plugin) counts as registered, and nothing is added. A `kenso` entry pointing at another URL is left alone (`conflict`). A config file that is not plain JSON (it has comments) is left alone (`skipped`), and so is an agent whose command is not on `PATH`: their `next` is the command or edit to make by hand.
46
+ - A different `SKILL.md` in the way stops the run before any change (exit 7) until you add `--force`.
47
+ - It exits 1 when any agent was not fully set up. The MCP server signs in with your Kenso account in the browser the first time the agent uses it; each agent's `next` says how (in Claude Code, `/mcp`).
48
+
49
+ ## An AGENTS.md section for your repo
50
+
51
+ Paste this into the `AGENTS.md` (or `CLAUDE.md`) of a repo whose agents work in Kenso:
52
+
53
+ ```markdown
54
+ ## Kenso
55
+
56
+ - Kenso is our outbound platform. One record or a question: use the Kenso MCP server (https://mcp.ken.so/mcp). A file or more than about 50 records: use the `kenso` CLI.
57
+ - Setup: `npm i -g kenso`, `kenso auth login` (a person approves in the browser), `kenso agent setup -y`, `kenso doctor`.
58
+ - Every write runs first with `--dry-run`; apply with the plan's `next`. Never put an API key in a flag, a file or the chat: use `KENSO_API_KEY`.
59
+ - Code that calls the API: send `Authorization: Bearer $KENSO_API_KEY`, `Ken-Version` and `X-Ken-Workspace-Id`. Reference: https://ken.so/docs.md; the kenso-api skill: https://ken.so/.well-known/skills/index.json.
19
60
  ```
20
61
 
21
62
  ## The Agent Skill
@@ -27,8 +68,10 @@ kenso skill install
27
68
  | Claude Code | `claude-code` | `~/.claude/skills/kenso-cli/` |
28
69
  | Codex | `codex` | `~/.agents/skills/kenso-cli/` |
29
70
  | Cursor | `cursor` | `~/.cursor/skills/kenso-cli/` |
71
+ | Gemini CLI | `gemini` | `~/.gemini/skills/kenso-cli/` |
72
+ | OpenCode | `opencode` | `~/.config/opencode/skills/kenso-cli/` |
30
73
 
31
- Without `--client`, it installs for the agent that runs it when that is Claude Code, Codex or Cursor (detected from the environment, see below), else for all three. It prints what it wrote:
74
+ Claude Code's folder follows `CLAUDE_CONFIG_DIR` when that is set. Without `--client`, it installs for the agent that runs it when that is Claude Code, Codex or Cursor (detected from the environment, see below), else for all five. It prints what it wrote:
32
75
 
33
76
  ```json
34
77
  {"installed":[{"client":"claude-code","path":"/home/you/.claude/skills/kenso-cli/SKILL.md","status":"created"}]}
@@ -44,9 +87,9 @@ kenso skill install --force
44
87
  - `--dir` writes the skill into that folder instead, for example a project's own skills folder. Name the folder `kenso-cli`, as agents expect the folder to match the skill name.
45
88
  - A different `SKILL.md` already in a target folder is replaced only with `--force`; without it the command exits 7, writes nothing, and its `next` adds `--force`. The same file is left alone (`"status":"unchanged"`).
46
89
  - `--dry-run` writes nothing and exits 0. It prints each target's status (`replaced` marks a different file there) and a `next` that applies it, with `--force` when a file would be replaced.
47
- - Cursor also reads `~/.claude/skills/` and `~/.agents/skills/`, so after a default install for all three it may list `kenso-cli` more than once. To avoid that, install with `--client cursor` only, or remove the copies you do not need.
90
+ - Cursor also reads `~/.claude/skills/` and `~/.agents/skills/` (Gemini CLI and OpenCode read `~/.agents/skills/` too), so after a default install for all of them an agent may list `kenso-cli` more than once. To avoid that, install with `--client cursor` only, or remove the copies you do not need.
48
91
 
49
- The skill also ships in the Kenso plugin for Claude Code (`Ken-Technology/ken-ai-plugin`), so `npx skills add Ken-Technology/ken-ai-plugin` installs it along with the MCP skills. To read it without installing, open `skill/kenso-cli/SKILL.md` in the package.
92
+ The skill also ships in the Kenso plugin for Claude Code (`Ken-Technology/ken-ai-plugin`), so `npx skills add Ken-Technology/ken-ai-plugin` installs it along with the MCP skills. The plugin's copy is this file byte for byte. To read it without installing, open `skill/kenso-cli/SKILL.md` in the package.
50
93
 
51
94
  ## Rules the skill teaches
52
95
 
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.38 (API contracts 5dc7eaafef1a) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.40 (API contracts 5dc7eaafef1a) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1599 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
+ 1600 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,6 +36,7 @@ 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](#agent) (1)
39
40
  - [agent-permission-settings](#agent-permission-settings) (2)
40
41
  - [agent-sandbox-auto-run-settings](#agent-sandbox-auto-run-settings) (3)
41
42
  - [agent-sandbox-connections](#agent-sandbox-connections) (5)
@@ -787,6 +788,14 @@ Pick the connection's ad account. `PATCH /v1/ad-connections/{adConnectionId}`. B
787
788
 
788
789
  Flags: `--ad-connection-id` (required), `--external-account-id`, `--login-account-id`, `--terms-attested`, `--no-terms-attested`, `--data`, `--each`, `--concurrency`.
789
790
 
791
+ ## agent
792
+
793
+ ### kenso agent setup
794
+
795
+ Set up a coding agent for Kenso: the kenso-cli skill and the Kenso MCP server.
796
+
797
+ Flags: `--client`, `--force`, `--json`, `--status`.
798
+
790
799
  ## agent-permission-settings
791
800
 
792
801
  ### kenso agent-permission-settings get
@@ -8993,7 +9002,7 @@ Flags: `--is-synthetic`, `--no-is-synthetic`, `--data`, `--each`, `--concurrency
8993
9002
 
8994
9003
  ### kenso skill install
8995
9004
 
8996
- Install the kenso-cli skill for Claude Code, Codex or Cursor.
9005
+ Install the kenso-cli skill for Claude Code, Codex, Cursor, Gemini CLI or OpenCode.
8997
9006
 
8998
9007
  Flags: `--client`, `--dir`, `--force`.
8999
9008
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
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": "d7c3ad42a078e0b5d554fbe88e429ee13596c1d0"
47
+ "gitHead": "16c8c14ffe38d383c49a63203effed179ac27498"
48
48
  }
@@ -39,3 +39,11 @@ kenso work release <claimId> # give back work you will not finish
39
39
  ```
40
40
 
41
41
  By hand in a chat: run `kenso work pull`, then give each work file to its own subagent with only its path ("Read this work file and write its answers file as its rules say"), then run pull's `next`. More: `kenso docs work`.
42
+
43
+ ## Setup
44
+
45
+ `kenso` missing: `npm i -g kenso` (Node 22 or newer), or run a command as `npx -y kenso@latest <command>`. Then `kenso auth login` (the person approves in the browser) and `kenso doctor`. `kenso agent setup -y` installs this skill and the Kenso MCP server (`https://mcp.ken.so/mcp`) for the agent; the person signs in to the MCP once in the agent.
46
+
47
+ ## No Kenso account yet
48
+
49
+ The CLI signs in with a Kenso API key. If the user has no Kenso account, send them to https://app.ken.so/get-started to create one, then create a key in Kenso at Settings > Integrations > API keys.