@andreprado/agentkit 0.1.0-alpha.16 → 0.1.0-alpha.17

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 (32) hide show
  1. package/README.md +8 -0
  2. package/docs/guides/add-channel.md +2 -0
  3. package/docs/guides/add-managed-composio.md +137 -0
  4. package/docs/guides/channels-production-handoff.md +1 -1
  5. package/docs/guides/connect-telegram.md +3 -1
  6. package/docs/guides/prepare-deploy.md +3 -1
  7. package/docs/llms-full.txt +13 -1
  8. package/docs/llms.txt +7 -0
  9. package/package.json +1 -1
  10. package/src/cli/commands/channels.ts +119 -7
  11. package/src/cli/commands/transcribe.ts +171 -0
  12. package/src/cli/deploy-readiness.ts +59 -3
  13. package/src/cli/help.ts +15 -0
  14. package/src/cli/index.ts +130 -0
  15. package/src/create-project.ts +4 -32
  16. package/src/index.ts +145 -0
  17. package/src/runtime/chat.ts +2 -1
  18. package/src/runtime/config.ts +129 -0
  19. package/src/runtime/core/manifest.ts +29 -2
  20. package/src/runtime/deploy-readiness.ts +31 -1
  21. package/src/runtime/inspect.ts +108 -4
  22. package/src/runtime/integrations/composio.ts +257 -0
  23. package/src/runtime/skills.ts +95 -0
  24. package/src/runtime/targets/cloudflare/build.ts +160 -5
  25. package/src/runtime/tool-runner.ts +2 -1
  26. package/src/templates/skills/agentkit-capsule/SKILL.md +1 -0
  27. package/src/templates/skills/agentkit-channels/SKILL.md +2 -0
  28. package/src/templates/skills/agentkit-channels/references/channel-debugging.md +3 -1
  29. package/src/templates/skills/agentkit-channels/references/telegram.md +3 -1
  30. package/src/templates/skills/agentkit-deploy/SKILL.md +1 -1
  31. package/src/templates/skills/agentkit-integrations/SKILL.md +66 -0
  32. package/src/templates/skills/agentkit-troubleshooting/SKILL.md +3 -2
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: agentkit-integrations
3
+ description: Use when adding, inspecting, connecting, or troubleshooting AgentKit-managed integrations such as managed Composio in an Agent Capsule.
4
+ ---
5
+
6
+ # AgentKit Integrations
7
+
8
+ Use this when the owner asks for managed connected apps, Gmail/Calendar/Slack/Linear through AgentKit, or paid AgentKit-managed Composio.
9
+
10
+ ## Managed Composio
11
+
12
+ Managed Composio is a paid hosted AgentKit feature. Use it when the owner wants AgentKit to manage OAuth/connect links, per-agent connected app state, deploy readiness, and hosted Composio credentials.
13
+
14
+ Use BYO `defineTool` instead when the owner wants to bring their own Composio account/API key.
15
+
16
+ ## Config
17
+
18
+ Edit `agentkit.config.ts`:
19
+
20
+ ```ts
21
+ import { composioManaged, defineAgent } from "@andreprado/agentkit";
22
+
23
+ export default defineAgent({
24
+ integrations: [
25
+ composioManaged({
26
+ toolkits: ["gmail", "googlecalendar"],
27
+ tools: {
28
+ gmail: ["GMAIL_FETCH_EMAILS", "GMAIL_SEND_EMAIL"],
29
+ googlecalendar: ["GOOGLECALENDAR_CREATE_EVENT"],
30
+ },
31
+ }),
32
+ ],
33
+ });
34
+ ```
35
+
36
+ Keep the action list explicit. Do not expose the whole Composio catalog by default.
37
+
38
+ ## Commands
39
+
40
+ ```sh
41
+ npm run agentkit -- inspect
42
+ npm run agentkit -- deploy doctor
43
+ npm run agentkit -- deploy
44
+ npm run agentkit -- integrations status
45
+ npm run agentkit -- integrations connect composio --toolkit gmail
46
+ ```
47
+
48
+ ## Rules
49
+
50
+ - Do not add `COMPOSIO_API_KEY` to `.env.schema` for managed Composio.
51
+ - Do not ask the owner for a Composio key when using managed Composio.
52
+ - Managed Composio requires a non-anonymous hosted deploy and `managed_composio` entitlement.
53
+ - The generated tool is `agentkit_composio_execute`.
54
+ - Use one Composio settings profile per agent.
55
+
56
+ ## Verification
57
+
58
+ Expected `inspect` output includes:
59
+
60
+ ```txt
61
+ integrations[0].provider = composio
62
+ tools includes agentkit_composio_execute
63
+ managedSecrets includes COMPOSIO_API_KEY
64
+ ```
65
+
66
+ If `deploy doctor` reports `managed_composio_entitlement_required`, the owner must log in with a paid AgentKit Cloud account or ask an operator to grant it.
@@ -18,6 +18,7 @@ Use this when something fails.
18
18
 
19
19
  ```sh
20
20
  npm run agentkit -- inspect
21
+ npm run agentkit -- skills status
21
22
  npm run typecheck
22
23
  npm run agentkit -- env list
23
24
  git status --short
@@ -48,5 +49,5 @@ npm run agentkit -- deploy doctor
48
49
  - provider not chosen: stay on `test/fake` or ask the owner;
49
50
  - schema missing: run `db migrate` and check `schema.sql`;
50
51
  - tool validation failed: check `inputSchema` and `outputSchema`;
51
- - channel secret missing: set hosted managed secret, not source files.
52
-
52
+ - channel secret missing: set hosted managed secret, not source files;
53
+ - local AgentKit skills are stale: run `npm run agentkit -- skills sync`.