Files
copilotkit__copilotkit/packages/bot-intelligence/package.json
Alem Tuzlak 5ef2f6ce0a feat(bot-intelligence): HTTP render-frame streaming + live Phoenix channel (OSS-402)
Complete the SDK realtime path so managed replies reach 1:1 bot-slack UX end to
end, over either transport:

- HttpRenderEventSink streams render frames to app-api's durable accept route
  (/api/bots/deliveries/:id/render-events/accept), reusing HttpDeliverySource's
  per-delivery scope (now carried on the claim response). This lets the whole
  loop run over HTTP against app-api directly — no realtime gateway required —
  which the Connector Outbox then renders to Slack.
- intelligenceAdapter defaults its render sink to the HTTP one when it builds
  the HTTP transports; injected in-memory sources still use the egress-backed
  fallback.
- connectPhoenixHostedBotChannel wires the real Phoenix Socket/Channel behind
  the HostedBotChannel contract for the production realtime-gateway path
  (joins hosted_bots:project:{id}, push→ok/error, on-push), backed by phoenix@1.8.

Tests: 45 bot-intelligence pass (HttpRenderEventSink scope-echo + no-scope guard);
check-types green.
2026-07-01 14:05:45 +02:00

58 lines
1.4 KiB
JSON

{
"name": "@copilotkit/bot-intelligence",
"version": "0.1.0",
"description": "Intelligence-delivered managed-bot adapter for CopilotKit JSX bots (@copilotkit/bot).",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/CopilotKit/CopilotKit.git",
"directory": "packages/bot-intelligence"
},
"homepage": "https://github.com/CopilotKit/CopilotKit",
"keywords": [
"ai",
"agent",
"bot",
"intelligence",
"managed-bots",
"copilotkit",
"ag-ui"
],
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
"build": "tsc -p tsconfig.json",
"check-types": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.check.json",
"test": "vitest run",
"test:watch": "vitest",
"publint": "publint .",
"attw": "attw --pack . --profile esm-only"
},
"dependencies": {
"@ag-ui/client": "0.0.57",
"@copilotkit/bot": "workspace:~",
"@copilotkit/bot-ui": "workspace:~",
"phoenix": "^1.8.4"
},
"devDependencies": {
"@copilotkit/typescript-config": "workspace:^",
"@types/node": "^22.10.0",
"@types/phoenix": "^1.6.6",
"typescript": "^5.6.3",
"vitest": "^4.1.3"
}
}