@ekanos/cli 0.5.1 → 0.7.0

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.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/dist/apps-api.d.ts +27 -0
  3. package/dist/apps-api.js +80 -0
  4. package/dist/apps-api.js.map +1 -0
  5. package/dist/claude-docs.d.ts +39 -0
  6. package/dist/claude-docs.js +70 -0
  7. package/dist/claude-docs.js.map +1 -0
  8. package/dist/commands/agents-init.d.ts +34 -0
  9. package/dist/commands/agents-init.js +119 -0
  10. package/dist/commands/agents-init.js.map +1 -0
  11. package/dist/commands/agents.d.ts +5 -1
  12. package/dist/commands/agents.js +18 -5
  13. package/dist/commands/agents.js.map +1 -1
  14. package/dist/commands/apps.d.ts +25 -0
  15. package/dist/commands/apps.js +155 -0
  16. package/dist/commands/apps.js.map +1 -0
  17. package/dist/commands/catalog.js +3 -2
  18. package/dist/commands/catalog.js.map +1 -1
  19. package/dist/commands/init.d.ts +1 -1
  20. package/dist/commands/init.js +2 -1
  21. package/dist/commands/init.js.map +1 -1
  22. package/dist/commands/login.d.ts +4 -0
  23. package/dist/commands/login.js +16 -3
  24. package/dist/commands/login.js.map +1 -1
  25. package/dist/index.d.ts +3 -0
  26. package/dist/index.js +34 -2
  27. package/dist/index.js.map +1 -1
  28. package/package.json +2 -2
  29. package/templates/agents-claude.md.tmpl +14 -0
  30. package/templates/claude-skill.md.tmpl +4 -8
  31. package/templates/package.json.tmpl +4 -4
  32. package/templates/skills/build-agent/SKILL.md +118 -0
  33. package/templates/skills/build-agent/references/agent-json.md +85 -0
  34. package/templates/skills/build-agent/references/rollout.md +53 -0
  35. package/templates/skills/build-agent/references/triggers.md +47 -0
  36. package/templates/skills/ekanos-platform/SKILL.md +107 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekanos/cli",
3
- "version": "0.5.1",
3
+ "version": "0.7.0",
4
4
  "private": false,
5
5
  "description": "The Ekanos partner toolchain CLI: scaffold, validate, and test an Ekanos integration against the published @ekanos packages. Agent-native — every verb speaks JSON with a stable exit-code taxonomy.",
6
6
  "keywords": [
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@clack/prompts": "1.7.0",
38
- "@ekanos/integration-schema": "0.9.0",
38
+ "@ekanos/integration-schema": "0.10.0",
39
39
  "esbuild": "0.28.1",
40
40
  "picocolors": "1.1.1"
41
41
  },
@@ -0,0 +1,14 @@
1
+ # Ekanos agents
2
+
3
+ This folder is where we design and change our Ekanos managed agents with the
4
+ `ekanos` CLI (`npx @ekanos/cli agents …`). The agents themselves live in Ekanos;
5
+ `agents/<key>/` holds a copy for review (`agent.json` + `AGENT.md`).
6
+
7
+ - To create or change an agent, use the `build-agent` skill: it checks what
8
+ the Source already has (`npx @ekanos/cli catalog`), interviews the user, then
9
+ drafts, applies and — only on the user's yes — publishes.
10
+ - For how Sources, team accounts, seats, integrations and connections fit
11
+ together, use the `ekanos-platform` skill.
12
+ - Ekanos docs are in the `ekanos-sdk-docs` MCP server (https://sdk.ekanos.dev).
13
+ Look things up there rather than guessing.
14
+ - Never ask for or write a secret; teams enter those in the Ekanos app.
@@ -34,14 +34,10 @@ already does what the user wants, propose setting it up (walk its
34
34
 
35
35
  ## Managed agents live in Ekanos
36
36
 
37
- An agent is not code in this repo: `npx ekanos agents list --json` shows the
38
- source's agents, `pull <key>` writes one as `agent.json` + `AGENT.md`,
39
- `apply <dir>` stores a change as a new draft version, and only a source admin
40
- `publish`es it to every team. Name tools and products exactly as the catalog
41
- lists them. Decide with the user, per product and MCP server, whether each
42
- team connects its own (`required` or `optional`), and what teams may add
43
- (`teamCustomization`, all off unless turned on). Show the user the applied draft and wait for their yes before
44
- `publish --yes`; never `--overwrite` a version conflict you have not read.
37
+ An agent is not code in this repo. To create or change one — or decide who
38
+ gets it — use the `build-agent` skill; for how Sources, team accounts, seats
39
+ and connections fit together, the `ekanos-platform` skill. A folder that only
40
+ manages agents (no integration) is set up with `npx ekanos agents init`.
45
41
 
46
42
  ## The loop
47
43
 
@@ -12,12 +12,12 @@
12
12
  "prepare": "node scripts/setup-hooks.mjs"
13
13
  },
14
14
  "dependencies": {
15
- "@ekanos/sdk": "^0.9.0",
16
- "@ekanos/ui": "^0.9.0"
15
+ "@ekanos/sdk": "^0.10.0",
16
+ "@ekanos/ui": "^0.10.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@ekanos/cli": "^0.5.1",
20
- "@ekanos/harness": "^0.7.0",
19
+ "@ekanos/cli": "^0.7.0",
20
+ "@ekanos/harness": "^0.7.1",
21
21
  "@hookform/resolvers": "^5.2.2",
22
22
  "@tailwindcss/postcss": "^4.3.3",
23
23
  "@tanstack/react-query": "^5.101.4",
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: build-agent
3
+ description: Interview-driven workflow for creating, changing and rolling out an Ekanos managed agent with `ekanos agents` — e.g. "create a customer support agent that uses Linear and Zendesk", "an agent that triages tickets", "update our support agent's instructions", "roll this agent out to every team", "roll back the agent". Use for any request to build or change an agent, its tools, approvals, connections or rollout. Not for building an integration (that is build-integration).
4
+ ---
5
+
6
+ # Build an Ekanos managed agent
7
+
8
+ The user describes what they want in a sentence ("a customer support agent
9
+ that uses Linear, Zendesk and our Mintlify docs as the source of truth"). Turn
10
+ that into an agent Ekanos runs, by interviewing them — one topic at a time,
11
+ in plain words, with a recommendation each time — then drafting, applying and
12
+ (on their yes) publishing it. Read the `ekanos-platform` skill first if you
13
+ have not: Sources vs teams, seats and connections underlie every question
14
+ here.
15
+
16
+ Run the CLI as `npx @ekanos/cli … --json` and read the envelope
17
+ (`{ ok, data }` / `{ ok: false, error: { code, message, hint } }`); follow
18
+ every `hint`. Look things up in the `ekanos-sdk-docs` MCP server
19
+ (https://sdk.ekanos.dev) rather than guessing.
20
+
21
+ ## Hard rules
22
+
23
+ - Never ask for, accept or write a secret (API key, client secret, webhook
24
+ signing secret). Teams enter those in the Ekanos app.
25
+ - Never `publish` or `rollback` without the user's explicit yes to that
26
+ version, after they have seen it. `--yes` records that consent; it is never
27
+ a way past a question.
28
+ - Never `--overwrite` a version conflict (exit 7) you have not shown the user:
29
+ someone else changed the agent; pull it and reconcile.
30
+ - Use product and tool names exactly as the catalog lists them.
31
+
32
+ ## 1. Ground yourself (before asking anything)
33
+
34
+ 1. `npx @ekanos/cli sources --json` — which Sources, which seats. More than one?
35
+ Ask which Source this is for and pass `--source <slug>` on every command
36
+ after. A `developer` seat can apply drafts but not publish; say so early.
37
+ 2. `npx @ekanos/cli catalog --source <slug> --json` — every product the Source
38
+ has, its tools, its **agent events** (what can start an agent) and its
39
+ `setupSteps`.
40
+ 3. `npx @ekanos/cli agents list --source <slug> --json` — an agent that already
41
+ does this should be changed, not duplicated.
42
+ 4. Map the request onto the catalog. For each thing the user named, say
43
+ which of these it is:
44
+ - **Ready** — the product is `enabled` and has the tools/events needed.
45
+ - **Not set up yet** — offered but not enabled, or a setup step left
46
+ (`setupSteps` says who: `ekanos` = an Ekanos super admin, `source_admin`
47
+ = the user if they hold that seat, `team` = each team). The common one a
48
+ Source admin can clear: an integration's **app for the Source** is not
49
+ set up, so no team can connect. Run
50
+ `npx @ekanos/cli apps show <product> --source <slug> --json` for the
51
+ callback URL to register in the provider, then ask the user to run
52
+ `npx @ekanos/cli apps set <product> --source <slug>` **in their own
53
+ terminal** — it asks for the secret there; never ask for it in chat.
54
+ The agent can be drafted while that is pending.
55
+ - **Missing** — no product does it. Say so plainly. Options: build the
56
+ integration (the `build-integration` skill), use a remote MCP server
57
+ instead if the service offers one (common for docs and knowledge bases:
58
+ a Mintlify docs site serves one at `https://<docs-host>/mcp`), or ship
59
+ the agent without it and add it in a later version.
60
+
61
+ Tell the user this map in a few lines before the interview. Don't hide a gap
62
+ behind a plan that assumes it away.
63
+
64
+ ## 2. The interview
65
+
66
+ One topic per message. Summarize what you heard before moving on. Defaults
67
+ in parentheses are the recommendation when the user has no preference.
68
+
69
+ 1. **The job.** What should it do, for whom, and what does a good outcome
70
+ look like? What must it never do? Ask for one or two real examples (a
71
+ ticket, an issue) — they make the instructions concrete.
72
+ 2. **Who gets it** — see `references/rollout.md`. Every team, or one team's
73
+ own? (Every team, when more than one team does this work the same way.)
74
+ Explain what a team sees and does, how updates reach teams, pinning and
75
+ rollback.
76
+ 3. **What it can touch.** Which products and tools; reads vs changes.
77
+ (Reads only to start; add writes once it has earned trust.)
78
+ 4. **What waits for a person.** Reads run on their own, changes wait for
79
+ approval — and any per-tool exceptions (a public reply to a customer
80
+ almost always waits). See `references/agent-json.md` → `policy`.
81
+ 5. **Whose connections.** For each product and MCP server: each team
82
+ connects its own — `required` (the agent waits at "needs setup" until the
83
+ team connects it) or `optional` (its tools appear once connected). One
84
+ connection shared by every team is not available yet.
85
+ 6. **What teams may add** — their own MCP servers, their own skills, more of
86
+ their own integrations, or narrowing (removing tools, more approvals). All
87
+ off unless there is a reason. Give one concrete example per knob.
88
+ 7. **What starts it** — see `references/triggers.md`. Triggers belong to each
89
+ team and are set after turning the agent on; say what each team will have
90
+ to set up (an @mention, a label, a new ticket, a schedule) and what it
91
+ needs connected first.
92
+
93
+ ## 3. Draft, apply, publish
94
+
95
+ 1. Write `agents/<key>/agent.json` (the body; field guide in
96
+ `references/agent-json.md`) and `agents/<key>/AGENT.md` (the
97
+ instructions). `<key>` is lowercase-hyphenated, e.g. `support-triage`.
98
+ The instructions say: the job, the sources of truth and when to consult
99
+ each, what to do when unsure (ask, or hand to a person), tone, and what
100
+ never to do. Show the user both files and walk through them.
101
+ 2. On their go: `npx @ekanos/cli agents apply agents/<key> --source <slug> --json`.
102
+ A refusal (exit 3) lists each problem with its path in the body — explain
103
+ and fix them together. The stored version is a **draft**: no team sees it.
104
+ 3. `npx @ekanos/cli agents show <key> --source <slug>` — review the stored draft
105
+ with the user.
106
+ 4. Ask: publish this version to every team now? Only on yes:
107
+ `npx @ekanos/cli agents publish <key> --source <slug> --to <n> --yes`.
108
+ 5. Hand over the team-side checklist (`references/triggers.md` has the
109
+ per-integration parts): find it under Agents → "Provided for your team",
110
+ Turn on, connect what it needs, confirm access, add triggers. Suggest one
111
+ team pilots it first, and plan a first test run with them.
112
+
113
+ ## Changing it later
114
+
115
+ `npx @ekanos/cli agents pull <key> --source <slug>` writes the latest version to
116
+ `agents/<key>/`; edit, `apply` (a new draft), `show`, then `publish` on the
117
+ user's yes. `rollback <key> --to <n> --yes` republishes an earlier version.
118
+ Teams that pinned a version stay on it and are told a newer one exists.
@@ -0,0 +1,85 @@
1
+ # `agent.json` — the agent's body
2
+
3
+ `agents/<key>/agent.json` plus `agents/<key>/AGENT.md` (the instructions, used
4
+ when `agent.json` has no `instructions`). `ekanos agents pull` writes this
5
+ layout and records `baseVersion`; `apply` reads it back and refuses a
6
+ conflicting change unless `--overwrite`. Unknown fields are refused.
7
+
8
+ ```json
9
+ {
10
+ "name": "Support triage",
11
+ "description": "Triages new support tickets and drafts replies.",
12
+ "model": null,
13
+ "maxTurns": 50,
14
+ "tools": { "mode": "custom", "products": ["zendesk"], "tools": ["linear_list_team_issues"] },
15
+ "policy": {
16
+ "reads": "auto",
17
+ "writes": "approve",
18
+ "overrides": { "zendesk_add_internal_note": "auto" }
19
+ },
20
+ "skills": [],
21
+ "connections": {
22
+ "zendesk": { "owner": "team", "team": "required" },
23
+ "linear": { "owner": "team", "team": "optional" }
24
+ },
25
+ "mcpServers": [
26
+ {
27
+ "key": "docs",
28
+ "name": "Product docs",
29
+ "url": "https://docs.example.com/mcp",
30
+ "auth": "none",
31
+ "owner": "team",
32
+ "team": "required",
33
+ "toolEffects": { "search": "read" }
34
+ }
35
+ ],
36
+ "teamCustomization": { "mcpServers": false, "skills": false, "integrations": false, "narrow": false }
37
+ }
38
+ ```
39
+
40
+ The tool names above are illustrations. Take real ones from
41
+ `ekanos catalog --json`.
42
+
43
+ ## Fields
44
+
45
+ - **`name`** (≤80), **`description`** (≤500, or null).
46
+ - **`instructions`** — or `AGENT.md`. Up to 20,000 characters.
47
+ - **`model`** — a model id, or `null` for the house default (recommended
48
+ unless the user has a reason).
49
+ - **`maxTurns`** — 1–100, default 50: the most tool-use steps in one run.
50
+ - **`tools`** — what it may call at all:
51
+ - `read_only`: every read tool the team has connected.
52
+ - `all`: every tool, reads and changes.
53
+ - `custom`: whole `products` (slugs) plus single `tools` (names).
54
+ A tool it must never call is simply not granted — there is no deny list.
55
+ Extra team integrations (`teamCustomization.integrations`) need `custom`.
56
+ - **`policy`** — for each granted tool, `auto` (runs on its own) or
57
+ `approve` (waits for a person in the app). `reads`/`writes` set the
58
+ defaults by the tool's effect; `overrides` set single tools by name. An
59
+ undeclared tool effect counts as a write. MCP tools are named
60
+ `mcp__<server key>__<tool>` in `overrides`.
61
+ - **`skills`** — skill slugs the Source or the platform already has.
62
+ - **`connections`** — by product slug: `{ "owner": "team", "team": "required" | "optional" }`.
63
+ A product with no entry is `team`/`optional`. `owner: "source"` (one
64
+ connection for every team) is refused today.
65
+ - **`mcpServers`** — remote MCP servers (streamable HTTP, `https` only, up to
66
+ 10): `key` (lowercase, ≤31), `name`, `url`, `auth` (`none` | `bearer` |
67
+ `oauth`, default `oauth`), `owner`/`team` as for connections, and
68
+ `toolEffects` (which tools only read; the rest count as writes). Turning
69
+ the agent on adds a team-owned server to the team; `auth: "none"` needs no
70
+ sign-in, others ask the team to sign in.
71
+ - **`teamCustomization`** — what teams may add, all `false` by default:
72
+ - `mcpServers` — attach their own MCP servers (their tools ask first until
73
+ the team marks one as read-only),
74
+ - `skills` — attach their own skills,
75
+ - `integrations` — grant more of their own connected products/tools
76
+ (needs `tools.mode: "custom"`),
77
+ - `narrow` — remove tools or make more of them wait for approval. Never
78
+ loosens.
79
+
80
+ ## What the host checks on `apply`
81
+
82
+ Every product and tool must be in the Source's catalog, every skill must
83
+ exist for the Source, the model must be known, connection keys must be
84
+ catalog products. Each refusal comes back with a `path` into the body
85
+ (`tools.tools.0`, `skills.2`) — fix that field.
@@ -0,0 +1,53 @@
1
+ # Who gets the agent: rollout options
2
+
3
+ Two shapes. Recommend one, and say why in terms of the user's teams.
4
+
5
+ ## Provided for every team (an agent template)
6
+
7
+ Built with `ekanos agents` by a Source admin.
8
+
9
+ - **Defined once.** Instructions, model, tools, approvals, skills, which
10
+ connections it uses, and what teams may add.
11
+ - **Drafts are private.** `apply` stores a numbered version; no team sees it
12
+ until it is published.
13
+ - **Publishing reaches every team in the Source.** Each sees it under Agents →
14
+ "Provided for your team". There is no list of chosen teams: every team can
15
+ see it, and each decides whether to turn it on.
16
+ - **Turning it on** makes the team's own copy. The person who turns it on
17
+ becomes its owner; the agent uses that person's and that team's
18
+ connections, so a team that has not connected a `required` product sees
19
+ "needs setup" instead of a working agent.
20
+ - **Updates.** Each publish updates every team that follows the latest
21
+ version. A team can **pin** a version instead; it stays there and is told
22
+ when a newer one is published.
23
+ - **Rollback.** `ekanos agents rollback <key> --to <n> --yes` publishes an
24
+ earlier version to every team that follows it.
25
+ - **What stays the team's:** whether it is on, its triggers, its own
26
+ connections, its run history, and whatever `teamCustomization` lets it add.
27
+ - **When a new version needs more access** than a team confirmed (a new
28
+ product, a tool that now runs without approval), the team's owner is asked
29
+ to confirm again; until then the agent keeps only what needs no new
30
+ confirmation.
31
+
32
+ Good for: the same job done by several teams; a central owner who improves
33
+ it over time; consistent behaviour and approvals.
34
+
35
+ Piloting: publish, then have one team turn it on first. Teams that never
36
+ turn it on are unaffected. Or keep it as an applied draft until the pilot
37
+ plan is ready.
38
+
39
+ ## A team's own agent
40
+
41
+ Built by a team in the app (Agents → New). Only that team has it; the Source
42
+ cannot update or roll it back, and nothing about it is visible to other teams.
43
+
44
+ Good for: one team's own process; experiments a team owns.
45
+
46
+ ## Questions that decide it
47
+
48
+ - How many teams do this work? The same way?
49
+ - Who should own improvements — one central person, or each team?
50
+ - Must every team follow the same approval rules (e.g. customer-facing
51
+ replies always reviewed)?
52
+ - Do teams need to add their own tools or knowledge, and should they be
53
+ allowed to? (`teamCustomization`, all off by default.)
@@ -0,0 +1,47 @@
1
+ # What starts the agent: triggers
2
+
3
+ Triggers belong to each team. They are not part of the agent template: a team
4
+ adds them on its copy (Agents → the agent → Triggers) after turning it on.
5
+ Your job in the interview is to say which triggers each team will want, and
6
+ what it must connect first, so the team-side checklist is complete.
7
+
8
+ ## Kinds a team can add
9
+
10
+ - **An integration's event** — any event a connected integration declares
11
+ (the catalog lists them per product as `agentEvents`). The team picks the
12
+ event and fills in its filter (the fields the event declares — e.g. labels,
13
+ a team, a group, tags). When the integration also has a **channel**, the
14
+ agent answers where the event happened (on the issue, on the ticket), and
15
+ that reply tool runs on its own by default.
16
+ - **Schedule** — a cron and time zone, with "what to do each time".
17
+ - **Webhook** — a URL any system can call, with "what to do with each
18
+ request".
19
+ - **Slack** — chosen channels and/or direct messages in a connected Slack.
20
+
21
+ ## Integrations with agent events
22
+
23
+ Check `ekanos catalog <product> --source <slug> --json` for what is actually
24
+ there; these are the known shapes.
25
+
26
+ **Linear** (`linear.mentioned`, `linear.assigned`, `linear.issue_labeled`) —
27
+ the agent becomes a teammate in Linear: @mention it, assign it an issue, or
28
+ apply a label. Each team needs two things in the app: each person's own
29
+ Linear connection (for the tools), and the team's own Linear app for the
30
+ agent (client id, secret and webhook signing secret, entered in Ekanos).
31
+ Guide: https://sdk.ekanos.dev/guides/linear-agent
32
+
33
+ **Zendesk** (`zendesk.ticket_created`, `zendesk.comment_added`; filters such
34
+ as brand, group, tags, organization) — when present in the catalog, each team
35
+ connects its own Zendesk (subdomain plus an OAuth client it creates in
36
+ Zendesk) and adds a Zendesk webhook pointing at its Ekanos endpoint. The agent
37
+ answers on the ticket as a public reply or an internal note — recommend
38
+ internal notes, or approval on public replies, until the team trusts it.
39
+
40
+ ## Checklist to hand each team
41
+
42
+ 1. Agents → "Provided for your team" → Turn on.
43
+ 2. Connect every `required` product and sign in to any MCP server that needs
44
+ it (the agent shows what is missing).
45
+ 3. Do each integration's own setup (team app, webhook) from its guide.
46
+ 4. Confirm access if asked.
47
+ 5. Add the triggers above, then run one real example and review it.
@@ -0,0 +1,107 @@
1
+ ---
2
+ name: ekanos-platform
3
+ description: How Ekanos is organized — Sources, team accounts, seats and roles, products (integrations and experiences), connections, and managed agents — and which of those the ekanos CLI can change. Use whenever a request involves who gets something (one team or every team), who can set it up, whether something is "connected" or "enabled", or explaining Ekanos to the user before building an integration or an agent.
4
+ ---
5
+
6
+ # How Ekanos is organized
7
+
8
+ Explain these in plain words when a decision depends on them. Docs:
9
+ https://sdk.ekanos.dev/concepts/sources-and-teams (or search the
10
+ `ekanos-sdk-docs` MCP server). Never guess a rule that is not here or in the
11
+ docs — ask, or check the CLI.
12
+
13
+ ## Sources and team accounts
14
+
15
+ - A **Source** is one Ekanos customer's whole deployment: its brand, domain,
16
+ users and catalog. Ekanos is white-label, so the people inside a Source see
17
+ only their own brand.
18
+ - A Source holds many **team accounts**. A team is where the work happens:
19
+ its members, its data, its connections, its agents. Teams in the same Source
20
+ do not see each other's data.
21
+ - Team members have one of three team roles — **owner**, **admin**,
22
+ **member** — which govern that team only. Being a team owner gives no
23
+ authority over the Source.
24
+ - **"Source" is admin vocabulary.** Team members never see the word. When you
25
+ describe what a team will see, say "provided for your team", never "the
26
+ Source's agent". Use "Source" freely with the person you are helping only
27
+ if they are a Source admin or developer (they are, if the CLI works for
28
+ them).
29
+
30
+ ## Seats: who can use the CLI on a Source
31
+
32
+ `npx @ekanos/cli sources --json` lists the user's seats.
33
+
34
+ | Seat | Can |
35
+ |---|---|
36
+ | `developer` | Submit integrations; read the catalog; apply agent **drafts** |
37
+ | `source_admin` | Everything a developer can, plus **publish** agents to every team, set up the Source's **provider apps** (`ekanos apps`), and manage the Source's roster |
38
+
39
+ Only an Ekanos super admin grants seats. If the user lacks the seat a step
40
+ needs, say which and stop — there is no way around it from the CLI.
41
+
42
+ ## Products: integrations and experiences
43
+
44
+ Everything in the catalog (`npx @ekanos/cli catalog --source <slug> --json`) is a
45
+ **product** of one of two kinds:
46
+
47
+ - **Integration** — a connection to a third party (Linear, Zendesk, Slack…).
48
+ Brings tools an agent can call, and may declare **agent events** that start
49
+ agents (`linear.mentioned`, `zendesk.ticket_created`…).
50
+ - **Experience** — an Ekanos-native capability (Agents, Workflows, Home…).
51
+ Never "connected"; it is simply on or off for the Source.
52
+
53
+ ## Is it usable? Four separate facts
54
+
55
+ Ask them in this order; each catalog product reports where it stands
56
+ (`availability` and `setupSteps`).
57
+
58
+ 1. **Given to the Source** — `availability` is `enabled` (on), `turned-off`
59
+ (given, but a Source setting or plan has it off) or `available` (Ekanos
60
+ offers it; this Source has not been given it). A product missing from the
61
+ catalog altogether is not offered to this Source. Giving a Source a product
62
+ is an Ekanos super admin's step (`setupSteps` names it with actor
63
+ `ekanos`) — not something a Source admin or the CLI can do.
64
+ 2. **Connected by a team** — a team (or a person, for per-person
65
+ integrations) signed in to the third party. Connections belong to a team,
66
+ never to the Source: two teams using Linear each connect their own.
67
+ 3. **Set up by the team** where needed — some integrations have each team
68
+ bring its own app (a team-provided app: client id, secret, webhook signing
69
+ secret entered in Ekanos). Those secrets are typed into the app, never
70
+ into a chat or a file.
71
+ 4. **Used by an agent** — granted in the agent's tools.
72
+
73
+ Some integrations sign every team in through **one app for the whole Source**
74
+ (Linear's OAuth app, say): until the Source has its credentials, no team can
75
+ connect (`setupSteps` step `provider-app`). A Source admin sets it up —
76
+ `ekanos apps show <product>` gives the callback URL to register with the
77
+ provider, and `ekanos apps set <product>`, run by the admin at their own
78
+ terminal, takes the client ID and secret. Integrations whose teams each bring
79
+ their own app (Zendesk) have no Source app.
80
+
81
+ A product that is "enabled" is not therefore "connected". Say which one you
82
+ mean.
83
+
84
+ ## Managed agents
85
+
86
+ An agent is **data held by Ekanos**, not code: instructions, a model, the
87
+ tools it may use, which calls wait for a person's approval, and skills. It is
88
+ changed through the CLI or the app, with no deploy.
89
+
90
+ - **Provided for every team** — a Source admin defines it once with
91
+ `ekanos agents` (a template). Each team sees it under Agents → "Provided for
92
+ your team" and turns it on; it then runs on that team's own connections.
93
+ Publishing a new version updates every team that follows it.
94
+ - **A team's own** — built by a team in the app (Agents → New). Only that team
95
+ has it, and the Source cannot update it.
96
+
97
+ The `build-agent` skill walks through choosing between these and building one.
98
+
99
+ ## Where each thing is done
100
+
101
+ | Done by | Where |
102
+ |---|---|
103
+ | Making a product available to a Source; granting seats | Ekanos super admin, in Ekanos's admin |
104
+ | Building or updating an integration | A developer, with `ekanos validate` / `ekanos publish` |
105
+ | Agents provided for every team | A Source admin, with `ekanos agents` |
106
+ | An integration's app for the whole Source (client ID and secret) | A Source admin, with `ekanos apps set` at their own terminal |
107
+ | Connecting an integration; turning on a provided agent; its triggers | Each team, in the app |