kenso 0.1.165 → 0.1.166

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 CHANGED
@@ -3422,7 +3422,7 @@ var VERSION;
3422
3422
  var init_version = __esm({
3423
3423
  "src/core/version.ts"() {
3424
3424
  "use strict";
3425
- VERSION = true ? "0.1.165" : "0.0.0-dev";
3425
+ VERSION = true ? "0.1.166" : "0.0.0-dev";
3426
3426
  }
3427
3427
  });
3428
3428
 
@@ -9959,7 +9959,7 @@ var init_workflows = __esm({
9959
9959
  var SKILL_default;
9960
9960
  var init_SKILL = __esm({
9961
9961
  "skill/kenso/SKILL.md"() {
9962
- SKILL_default = '---\nname: kenso\ndescription: "Use for any outbound work in Kenso: leads, lists, campaigns, sequences, replies, accounts, signals, workflows, Studio, sending setup, reporting. Routes to the Kenso skill for the job and sets the rules for workspace, spend, sends and the final reply."\n---\n\n# Kenso: start here\n\nThis skill comes first for any work in Kenso. It sends you to the skill for the job and sets the rules every other Kenso skill follows: the workspace, spend, sends and the final reply. When another skill says "the spend rules", it means section 5 below.\n\n**Rules that hold in every Kenso job:**\n\n- Name the workspace before the first change: "I will work in <name> (<id>)."\n- Before the real run of anything that can charge or send, `kenso workflows run` included and also when the dry run\'s `credits.needed` is 0: show the section 5 approval block with the dry run\'s numbers and wait for the person\'s yes. A request such as "run it on them", given before the person saw the estimate, is not that yes.\n- End every job with the section 9 final reply, all five lines.\n\n## 1. First\n\n```bash\nkenso doctor\nkenso whoami\nkenso workspace list\nkenso credits balance\n```\n\n- `kenso doctor` checks the CLI, the key, the skills and the MCP. When a check fails, run its `next` before anything else.\n- No key, or `key_valid` failed: hand the sign-in to the person. `kenso login --no-wait` prints a link and a code; give both to the person, and once they say they approved it, run `kenso auth wait`.\n- `kenso whoami` shows the workspace this folder and key use (`activeWorkspace`, with its `id` and `name`) and where it comes from (`workspaceSource`); `kenso workspace list` lists every workspace the key reaches. Before any change, tell the person: "I will work in <name> (<id>)."\n- `kenso credits balance` shows the credits `available`. Read it before you plan anything that charges.\n\n## 2. The loop\n\n```bash\nkenso discover "find work emails for a list of people"\nkenso describe email-finds create\n```\n\n1. `kenso discover` with the request in plain words finds the command, doc, skill or workflow step for it, offline. Each hit has its `effect` (read, write, spend, send or destructive), its cost line and the `describe` command to run next.\n2. `kenso describe <resource> <action>` prints the command\'s flags, body, `effect` and `cost` as JSON.\n3. Run it with `--dry-run` and read the plan: what it would send and, for paid work, `credits` with `needed`, `available` and `sufficient` (`null` where the CLI could not read or price it). A `null` `needed` is unknown, never free: ask before you run it.\n4. Run it for real only as the rules below allow, with the plan\'s `next`.\n\nWhile you only look around, set `KENSO_READ_ONLY=1`: any command that is not a read is then refused before it sends anything, and a `--dry-run` still prints its plan.\n\n## 3. Which skill\n\nLoad a skill with `kenso skill show` and its name, for example `kenso skill show workflows`, or with `load_skill` through the Kenso MCP. `kenso skill list` shows the ones this workspace can use.\n\n| Need | Skill |\n|---|---|\n| Count my market, size it and build the list | `tam-builder` |\n| People-search filters for a campaign | `ken-search` |\n| Build a campaign from an ICP and an offer, to launch-ready | `create-campaign` |\n| Why a campaign is up or down; my best and worst campaign | `campaign-diagnosis` |\n| Fix the email that is not working in a live campaign | `campaign-improvement` |\n| Go through replies, draft answers, offer meeting times | `reply-handling` |\n| What needs my attention: what failed, stalled or came out wrong, and what to fix first | `kenso-triage` |\n| My Today queue: the touches due today, to draft, snooze or skip | `today-review` |\n| Bounces up or sends dropped | `deliverability-guard` |\n| Sending setup: inboxes, domains, LinkedIn accounts, the link host | `delivery-setup` |\n| Connect my own sending domains | `connect-domains` |\n| Review or order sending domains | `domain-selection` |\n| Inbox limits, display names, signatures, reply forwarding | `inbox-configuration` |\n| How many domains and inboxes I need | `infra-planning` |\n| Set up a new workspace | `setup-workspace` |\n| Sign up from the agent, with no workspace yet | `onboarding-signup` |\n| Company, offer and voice files in Knowledge | `knowledge-setup` |\n| Edit the skills in Knowledge > Skills | `skill-editor` |\n| Target accounts: add, research, map who buys, plan touches | `accounts` |\n| A one-page brief on an account before a call | `account-brief` |\n| Hiring, funding, job changes, website visits or replies that start outreach | `signals` |\n| Outreach around a conference or trade show | `event-outbound` |\n| A job opening turned into a candidate campaign | `role-intake` |\n| Someone\'s social profiles and recent posts | `social-data` |\n| Build, test and run a workflow, as a file or in the app | `workflows` |\n| Build or edit a Studio template | `studio-template` |\n| Fill a Studio page for an account or a candidate | `studio-asset` |\n| Prep for a call, then follow it up | `meeting-prep-and-followup` |\n| A MEDDIC summary of a call | `meddic-summary` |\n| The objections raised on a call | `objection-log` |\n| The next-steps email after a call | `next-step-email` |\n| The handoff to the AE after a call | `handoff-to-ae` |\n| Open deals by stage, and the stuck ones | `pipeline-review` |\n| The weekly or monthly results report | `report` |\n| The person asks for the start interview | `kenso-start` |\n\n**CLI or MCP.** Use the CLI for work from a file, or on more than about 50 records: imports, updates, exports and workflow runs. The kenso-cli skill has those commands; `kenso agent setup` installs it beside this one. For one record or a question, the MCP is fine.\n\n**What to offer.** Look first:\n\n```bash\nkenso campaigns list --limit 5\n```\n\nA workspace with campaigns: offer "Diagnose my best and worst campaign" (`campaign-diagnosis`) and "Triage today\'s replies" (`reply-handling`). A new workspace: offer the starter menu.\n\n1. Count my market: how many companies and people match my ICP?\n2. Check my sending setup and tell me what to fix before I launch.\n3. Draft a campaign for my company from my website and show it to me before anything is sent.\n4. Tell me what you want to get done.\n\nThey lead to `tam-builder`, `delivery-setup` and `create-campaign`; for the fourth, find the skill in the table or run `kenso discover` with the person\'s words.\n\n## 4. Workspace\n\nName the workspace before the first change, and again whenever it changes. A yes that does not name the workspace is not a yes: ask again, with its name. Under a coding agent, every command that is not a read prints `workspace: <id> (<source>)` on stderr: stop when it is not the workspace the person approved. A `kenso.json` in a folder holds that folder\'s workspace.\n\n## 5. Spend\n\nThese rules hold in every Kenso skill.\n\n- A bounded request ("find emails for these 200 people") covers that scope and nothing wider. An open one ("find me leads") needs a row count and a budget from the person first.\n- Sample first. When a paid step covers more than 25 records, or the estimate\'s `credits.needed` is over 10, run 3 to 5 records first, show the result and the projected cost of the rest, and ask before the rest. These four numbers are thresholds of this contract, not prices.\n - A workflow samples on the full ids file, never on a separate file of a few ids, which the full run would start again: `kenso workflows run` with a `--max-credits` that covers 3 to 5 records starts only those. After the yes, run the same command with only `--max-credits` changed: it stops with `already_started`, and its `next` runs only the records the sample did not start.\n - Any other paid batch: sample with a file of 3 to 5 rows, then run the rest from a file without them.\n- Prices come from a `--dry-run`, `kenso credits quote` or `kenso credits rate-card`, never from memory or from a skill.\n- `Effect: write.` or `Effect: send.` in a command\'s help is not proof that it is free: not every route that charges is marked, and `kenso workflows run` is a send that charges for its steps. The dry run or `kenso credits quote` is the authority.\n- Ask once, with one approval block, and wait for the yes, also when `credits.needed` is 0:\n\n```text\nPlan: <what will run>\nRecords: <how many, and from where>\nEstimate: <needed> of <available> available credits (from the dry run)\nCap: --max-credits <the cap you will set>\nReply yes to run it.\n```\n\n- On `kenso workflows run`, always set `--max-credits` to the cap in the approval block.\n- Out of credits (`sufficient: false` in the plan, or a run that stops because the credits ran out): stop, show what finished, and give the billing link, https://app.ken.so/<workspace id>/settings/billing. Never retry in a loop.\n\n```bash\nkenso credits quote --kind leads --count 200\nkenso credits rate-card --action email_found\n```\n\n## 6. Sends\n\nSends, launches, CRM writes and schedule changes need a yes that names the campaign or the record set ("launch campaign 812", "update these 40 deals in the CRM"). A yes to a plan is not a yes to send. A delete, archive or remove runs with `--yes` only after the person said yes to that delete.\n\n## 7. Workflows, signals and tools\n\n- A **workflow** is a saved set of steps that runs on each record (an account, a person, a lead), started by hand, on a schedule or by a signal. The `workflows` skill builds one; its file loop is `kenso skill show workflows --reference files.md`.\n- A **signal** is an event that starts a workflow: hiring, funding, a job change, a website visit, a reply. `kenso signals types` lists them; the `signals` skill watches for them.\n- A **tool** is one command you run yourself (`kenso discover` finds it) or one MCP operation.\n\nThe first run of a workflow template is five commands: `init --template`, `push`, `test`, `push --publish --expected-hash` with the hash `test` printed, and `run`. Check the file after every edit, and dry-run the run before the paid one:\n\n```bash\nkenso workflow-templates list\nkenso workflows init qualify --template <templateKey>\nkenso workflows push qualify.workflow.json\nkenso workflows check qualify.workflow.json --mode publish\nkenso workflows test qualify.workflow.json --record account:<accountId>\nkenso workflows push qualify.workflow.json --publish --expected-hash <definitionHash>\nkenso workflows run qualify.workflow.json --ids ids.txt --max-credits <cap> --dry-run\nkenso workflows run qualify.workflow.json --ids ids.txt --max-credits <cap> --wait --out results.csv --yes\n```\n\n## 8. Your own agent plan: kenso work\n\nWhere your workspace has it, `kenso work` runs Kenso AI steps on your own Claude or Codex plan at 0 Kenso AI credits. Check with `kenso work status`: it lists what waits for your agent, and answers `not_found` when the workspace does not have it yet. When most of an estimate is AI steps, name this to the person as an option before they approve.\n\n```bash\nkenso work status\n```\n\n## 9. The final reply\n\nEnd every job with this reply, in this order:\n\n```text\nOutcome: <what ran, on how many records, what it produced>\nMisses: <count and reason for each kind of miss, or none>\nLinks: <the app page> and <the results file>\nCredits spent: <from the run summary\'s creditsCharged, or kenso credits usage --run <runId>>\nNext: <the one next step you recommend>\n```\n\n## No Kenso account yet\n\nThese steps run on the Kenso MCP server, which signs in with a Kenso account. If the user has none, send them to https://app.ken.so/get-started to create one, then sign in when the agent asks.\n';
9962
+ SKILL_default = '---\nname: kenso\ndescription: "Use for any outbound work in Kenso: leads, lists, campaigns, sequences, replies, accounts, signals, workflows, Studio, sending setup, reporting. Routes to the Kenso skill for the job and sets the rules for workspace, spend, sends and the final reply."\n---\n\n# Kenso: start here\n\nThis skill comes first for any work in Kenso. It sends you to the skill for the job and sets the rules every other Kenso skill follows: the workspace, spend, sends and the final reply. When another skill says "the spend rules", it means section 5 below.\n\n**Rules that hold in every Kenso job:**\n\n- Name the workspace before the first change: "I will work in <name> (<id>)."\n- Before the real run of anything that can charge or send, `kenso workflows run` included and also when the dry run\'s `credits.needed` is 0: show the section 5 approval block with the dry run\'s numbers and wait for the person\'s yes. A request such as "run it on them", given before the person saw the estimate, is not that yes.\n- End every job with the section 9 final reply, all five lines.\n\n## 1. First\n\n```bash\nkenso doctor\nkenso whoami\nkenso workspace list\nkenso credits balance\n```\n\n- `kenso doctor` checks the CLI, the key, the skills and the MCP. When a check fails, run its `next` before anything else.\n- No key, or `key_valid` failed: hand the sign-in to the person. `kenso login --no-wait` prints a link and a code; give both to the person, and once they say they approved it, run `kenso auth wait`.\n- `kenso whoami` shows the workspace this folder and key use (`activeWorkspace`, with its `id` and `name`) and where it comes from (`workspaceSource`); `kenso workspace list` lists every workspace the key reaches. Before any change, tell the person: "I will work in <name> (<id>)."\n- `kenso credits balance` shows the credits `available`. Read it before you plan anything that charges.\n\n## 2. The loop\n\n```bash\nkenso discover "find work emails for a list of people"\nkenso describe email-finds create\n```\n\n1. `kenso discover` with the request in plain words finds the command, doc, skill or workflow step for it, offline. Each hit has its `effect` (read, write, spend, send or destructive), its cost line and the `describe` command to run next.\n2. `kenso describe <resource> <action>` prints the command\'s flags, body, `effect` and `cost` as JSON.\n3. Run it with `--dry-run` and read the plan: what it would send and, for paid work, `credits` with `needed`, `available` and `sufficient` (`null` where the CLI could not read or price it). A `null` `needed` is unknown, never free: ask before you run it.\n4. Run it for real only as the rules below allow, with the plan\'s `next`.\n\nRun `kenso` commands without a pipe, so the exit code and stderr stay visible. Trim the output with `-o json` and `--query <JMESPath>` instead of `head`, `cut` or `grep`.\n\nWhile you only look around, set `KENSO_READ_ONLY=1`: any command that is not a read is then refused before it sends anything, and a `--dry-run` still prints its plan.\n\n## 3. Which skill\n\nLoad a skill with `kenso skill show` and its name, for example `kenso skill show workflows`, or with `load_skill` through the Kenso MCP. `kenso skill list` shows the ones this workspace can use.\n\n| Need | Skill |\n|---|---|\n| Count my market, size it and build the list | `tam-builder` |\n| People-search filters for a campaign | `ken-search` |\n| Build a campaign from an ICP and an offer, to launch-ready | `create-campaign` |\n| Why a campaign is up or down; my best and worst campaign | `campaign-diagnosis` |\n| Fix the email that is not working in a live campaign | `campaign-improvement` |\n| Go through replies, draft answers, offer meeting times | `reply-handling` |\n| What needs my attention: what failed, stalled or came out wrong, and what to fix first | `kenso-triage` |\n| My Today queue: the touches due today, to draft, snooze or skip | `today-review` |\n| Bounces up or sends dropped | `deliverability-guard` |\n| Sending setup: inboxes, domains, LinkedIn accounts, the link host | `delivery-setup` |\n| Connect my own sending domains | `connect-domains` |\n| Review or order sending domains | `domain-selection` |\n| Inbox limits, display names, signatures, reply forwarding | `inbox-configuration` |\n| How many domains and inboxes I need | `infra-planning` |\n| Set up a new workspace | `setup-workspace` |\n| Sign up from the agent, with no workspace yet | `onboarding-signup` |\n| Company, offer and voice files in Knowledge | `knowledge-setup` |\n| Edit the skills in Knowledge > Skills | `skill-editor` |\n| Target accounts: add, research, map who buys, plan touches | `accounts` |\n| A one-page brief on an account before a call | `account-brief` |\n| Hiring, funding, job changes, website visits or replies that start outreach | `signals` |\n| Outreach around a conference or trade show | `event-outbound` |\n| A job opening turned into a candidate campaign | `role-intake` |\n| Someone\'s social profiles and recent posts | `social-data` |\n| Build, test and run a workflow, as a file or in the app | `workflows` |\n| Build or edit a Studio template | `studio-template` |\n| Fill a Studio page for an account or a candidate | `studio-asset` |\n| Prep for a call, then follow it up | `meeting-prep-and-followup` |\n| A MEDDIC summary of a call | `meddic-summary` |\n| The objections raised on a call | `objection-log` |\n| The next-steps email after a call | `next-step-email` |\n| The handoff to the AE after a call | `handoff-to-ae` |\n| Open deals by stage, and the stuck ones | `pipeline-review` |\n| The weekly or monthly results report | `report` |\n| The person asks for the start interview | `kenso-start` |\n\n**CLI or MCP.** Use the CLI for work from a file, or on more than about 50 records: imports, updates, exports and workflow runs. The kenso-cli skill has those commands; `kenso agent setup` installs it beside this one. For one record or a question, the MCP is fine.\n\n**What to offer.** Look first:\n\n```bash\nkenso campaigns list --limit 5\n```\n\nA workspace with campaigns: offer "Diagnose my best and worst campaign" (`campaign-diagnosis`) and "Triage today\'s replies" (`reply-handling`). A new workspace: offer the starter menu.\n\n1. Count my market: how many companies and people match my ICP?\n2. Check my sending setup and tell me what to fix before I launch.\n3. Draft a campaign for my company from my website and show it to me before anything is sent.\n4. Tell me what you want to get done.\n\nThey lead to `tam-builder`, `delivery-setup` and `create-campaign`; for the fourth, find the skill in the table or run `kenso discover` with the person\'s words.\n\n## 4. Workspace\n\nName the workspace before the first change, and again whenever it changes. A yes that does not name the workspace is not a yes: ask again, with its name. Under a coding agent, every command that is not a read prints `workspace: <id> (<source>)` on stderr: stop when it is not the workspace the person approved. A `kenso.json` in a folder holds that folder\'s workspace.\n\n## 5. Spend\n\nThese rules hold in every Kenso skill.\n\n- A bounded request ("find emails for these 200 people") covers that scope and nothing wider. An open one ("find me leads") needs a row count and a budget from the person first.\n- Sample first. When a paid step covers more than 25 records, or the estimate\'s `credits.needed` is over 10, run 3 to 5 records first, show the result and the projected cost of the rest, and ask before the rest. These four numbers are thresholds of this contract, not prices.\n - A workflow samples on the full ids file, never on a separate file of a few ids, which the full run would start again: `kenso workflows run` with a `--max-credits` that covers 3 to 5 records starts only those. After the yes, run the same command with only `--max-credits` changed: it stops with `already_started`, and its `next` runs only the records the sample did not start.\n - Any other paid batch: sample with a file of 3 to 5 rows, then run the rest from a file without them.\n- Prices come from a `--dry-run`, `kenso credits quote` or `kenso credits rate-card`, never from memory or from a skill.\n- `Effect: write.` or `Effect: send.` in a command\'s help is not proof that it is free: not every route that charges is marked, and `kenso workflows run` is a send that charges for its steps. The dry run or `kenso credits quote` is the authority.\n- Ask once, with one approval block, and wait for the yes, also when `credits.needed` is 0:\n\n```text\nPlan: <what will run>\nRecords: <how many, and from where>\nEstimate: <needed> of <available> available credits (from the dry run)\nCap: --max-credits <the cap you will set>\nReply yes to run it.\n```\n\n- On `kenso workflows run`, always set `--max-credits` to the cap in the approval block.\n- Out of credits (`sufficient: false` in the plan, or a run that stops because the credits ran out): stop, show what finished, and give the billing link, https://app.ken.so/<workspace id>/settings/billing. Never retry in a loop.\n\n```bash\nkenso credits quote --kind leads --count 200\nkenso credits rate-card --action email_found\n```\n\n## 6. Sends\n\nSends, launches, CRM writes and schedule changes need a yes that names the campaign or the record set ("launch campaign 812", "update these 40 deals in the CRM"). A yes to a plan is not a yes to send. A delete, archive or remove runs with `--yes` only after the person said yes to that delete.\n\n## 7. Workflows, signals and tools\n\n- A **workflow** is a saved set of steps that runs on each record (an account, a person, a lead), started by hand, on a schedule or by a signal. The `workflows` skill builds one; its file loop is `kenso skill show workflows --reference files.md`.\n- A **signal** is an event that starts a workflow: hiring, funding, a job change, a website visit, a reply. `kenso signals types` lists them; the `signals` skill watches for them.\n- A **tool** is one command you run yourself (`kenso discover` finds it) or one MCP operation.\n\nThe first run of a workflow template is five commands: `init --template`, `push`, `test`, `push --publish --expected-hash` with the hash `test` printed, and `run`. Check the file after every edit, and dry-run the run before the paid one:\n\n```bash\nkenso workflow-templates list\nkenso workflows init qualify --template <templateKey>\nkenso workflows push qualify.workflow.json\nkenso workflows check qualify.workflow.json --mode publish\nkenso workflows test qualify.workflow.json --record account:<accountId>\nkenso workflows push qualify.workflow.json --publish --expected-hash <definitionHash>\nkenso workflows run qualify.workflow.json --ids ids.txt --max-credits <cap> --dry-run\nkenso workflows run qualify.workflow.json --ids ids.txt --max-credits <cap> --wait --out results.csv --yes\n```\n\nQueued runs can wait up to 15 minutes before they start, longer than many coding agents let one command run. So run the `--wait` command in the background with no pipe and read its result when it ends, or add `--timeout 5m` and run the same command again while the summary\'s `waiting` is above 0: a rerun starts nothing again, follows only this input\'s runs and rewrites the `--out` file. A run still queued or running is not a failure: say so in the final reply, with that command to check it.\n\n## 8. Your own agent plan: kenso work\n\nWhere your workspace has it, `kenso work` runs Kenso AI steps on your own Claude or Codex plan at 0 Kenso AI credits. Check with `kenso work status`: it lists what waits for your agent, and answers `not_found` when the workspace does not have it yet. When most of an estimate is AI steps, name this to the person as an option before they approve.\n\n```bash\nkenso work status\n```\n\n## 9. The final reply\n\nEnd every job with this reply, in this order:\n\n```text\nOutcome: <what ran, on how many records, what it produced>\nMisses: <count and reason for each kind of miss, or none>\nLinks: <the app page> and <the results file>\nCredits spent: <from the run summary\'s creditsCharged, or kenso credits usage --run <runId>>\nNext: <the one next step you recommend>\n```\n\n## No Kenso account yet\n\nThese steps run on the Kenso MCP server, which signs in with a Kenso account. If the user has none, send them to https://app.ken.so/get-started to create one, then sign in when the agent asks.\n';
9963
9963
  }
9964
9964
  });
9965
9965
 
@@ -10119,7 +10119,8 @@ var init_shipped = __esm({
10119
10119
  "6fb333a826726d51ba2ea3927745f843343490c8aa9098e5da682d24172323f7",
10120
10120
  "7d88215cf4e6eb7aaeb28d22839fc3006c57a0491e12dde86db7623b635d6f90",
10121
10121
  "875c8ed2738ecdc963377be449c21f40c623a0750baf361d3e51b22818cf8e9d",
10122
- "3d067823c28aee5cb7f0cd1f564ab7b514eae2f8580cf1b323733a5bf783f074"
10122
+ "3d067823c28aee5cb7f0cd1f564ab7b514eae2f8580cf1b323733a5bf783f074",
10123
+ "d7177ed1fb80d0433f5a3f6301e278b5434c07a65089fae75e624d9c9266e6d8"
10123
10124
  ]
10124
10125
  };
10125
10126
  }