@andreprado/agentkit 0.1.0-alpha.15 → 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.
- package/README.md +8 -0
- package/docs/guides/add-channel.md +65 -0
- package/docs/guides/add-managed-composio.md +137 -0
- package/docs/guides/channel-security.md +32 -0
- package/docs/guides/channels-production-handoff.md +1 -1
- package/docs/guides/connect-telegram.md +60 -0
- package/docs/guides/connect-whatsapp-zapster.md +65 -0
- package/docs/guides/prepare-deploy.md +3 -1
- package/docs/llms-full.txt +13 -1
- package/docs/llms.txt +7 -0
- package/package.json +1 -1
- package/src/cli/commands/channels.ts +121 -7
- package/src/cli/commands/transcribe.ts +171 -0
- package/src/cli/deploy-readiness.ts +59 -3
- package/src/cli/help.ts +15 -0
- package/src/cli/index.ts +130 -0
- package/src/create-project.ts +4 -32
- package/src/index.ts +231 -0
- package/src/runtime/channel-test-harness.ts +2 -0
- package/src/runtime/channels/telegram.ts +326 -10
- package/src/runtime/channels/whatsapp-zapster.ts +319 -0
- package/src/runtime/channels.ts +47 -1
- package/src/runtime/chat.ts +2 -1
- package/src/runtime/config.ts +214 -4
- package/src/runtime/core/manifest.ts +61 -2
- package/src/runtime/deploy-readiness.ts +31 -1
- package/src/runtime/dev-server.ts +72 -4
- package/src/runtime/inspect.ts +142 -4
- package/src/runtime/integrations/composio.ts +257 -0
- package/src/runtime/skills.ts +95 -0
- package/src/runtime/targets/cloudflare/build.ts +162 -5
- package/src/runtime/tool-runner.ts +2 -1
- package/src/runtime/transcription.ts +483 -0
- package/src/templates/skills/agentkit-capsule/SKILL.md +1 -0
- package/src/templates/skills/agentkit-channels/SKILL.md +36 -1
- package/src/templates/skills/agentkit-channels/references/channel-debugging.md +16 -1
- package/src/templates/skills/agentkit-channels/references/telegram.md +34 -0
- package/src/templates/skills/agentkit-channels/references/whatsapp-zapster.md +29 -0
- package/src/templates/skills/agentkit-deploy/SKILL.md +1 -1
- package/src/templates/skills/agentkit-integrations/SKILL.md +66 -0
- 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`.
|