@copilotkit/runtime 1.55.0-next.9 → 1.55.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.
- package/CHANGELOG.md +24 -2
- package/dist/agent/index.cjs +101 -12
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts.map +1 -1
- package/dist/agent/index.d.mts.map +1 -1
- package/dist/agent/index.mjs +102 -13
- package/dist/agent/index.mjs.map +1 -1
- package/dist/lib/runtime/agent-integrations/langgraph/agent.cjs.map +1 -1
- package/dist/lib/runtime/agent-integrations/langgraph/agent.d.cts +4 -841
- package/dist/lib/runtime/agent-integrations/langgraph/agent.d.cts.map +1 -1
- package/dist/lib/runtime/agent-integrations/langgraph/agent.d.mts +4 -841
- package/dist/lib/runtime/agent-integrations/langgraph/agent.d.mts.map +1 -1
- package/dist/lib/runtime/agent-integrations/langgraph/agent.mjs.map +1 -1
- package/dist/lib/runtime/copilot-runtime.cjs +3 -2
- package/dist/lib/runtime/copilot-runtime.cjs.map +1 -1
- package/dist/lib/runtime/copilot-runtime.d.cts +1 -1
- package/dist/lib/runtime/copilot-runtime.d.cts.map +1 -1
- package/dist/lib/runtime/copilot-runtime.d.mts +3 -3
- package/dist/lib/runtime/copilot-runtime.d.mts.map +1 -1
- package/dist/lib/runtime/copilot-runtime.mjs +3 -2
- package/dist/lib/runtime/copilot-runtime.mjs.map +1 -1
- package/dist/package.cjs +70 -47
- package/dist/package.mjs +70 -47
- package/dist/v2/express.cjs +8 -0
- package/dist/v2/express.d.cts +5 -0
- package/dist/v2/express.d.mts +5 -0
- package/dist/v2/express.mjs +5 -0
- package/dist/v2/hono.cjs +9 -0
- package/dist/v2/hono.d.cts +5 -0
- package/dist/v2/hono.d.mts +5 -0
- package/dist/v2/hono.mjs +5 -0
- package/dist/v2/index.cjs +8 -3
- package/dist/v2/index.d.cts +8 -5
- package/dist/v2/index.d.mts +8 -5
- package/dist/v2/index.mjs +5 -4
- package/dist/v2/node.cjs +8 -0
- package/dist/v2/node.d.cts +5 -0
- package/dist/v2/node.d.mts +5 -0
- package/dist/v2/node.mjs +5 -0
- package/dist/v2/runtime/core/fetch-cors.cjs +72 -0
- package/dist/v2/runtime/core/fetch-cors.cjs.map +1 -0
- package/dist/v2/runtime/core/fetch-cors.d.cts +20 -0
- package/dist/v2/runtime/core/fetch-cors.d.cts.map +1 -0
- package/dist/v2/runtime/core/fetch-cors.d.mts +20 -0
- package/dist/v2/runtime/core/fetch-cors.d.mts.map +1 -0
- package/dist/v2/runtime/core/fetch-cors.mjs +70 -0
- package/dist/v2/runtime/core/fetch-cors.mjs.map +1 -0
- package/dist/v2/runtime/core/fetch-handler.cjs +232 -0
- package/dist/v2/runtime/core/fetch-handler.cjs.map +1 -0
- package/dist/v2/runtime/core/fetch-handler.d.cts +40 -0
- package/dist/v2/runtime/core/fetch-handler.d.cts.map +1 -0
- package/dist/v2/runtime/core/fetch-handler.d.mts +40 -0
- package/dist/v2/runtime/core/fetch-handler.d.mts.map +1 -0
- package/dist/v2/runtime/core/fetch-handler.mjs +231 -0
- package/dist/v2/runtime/core/fetch-handler.mjs.map +1 -0
- package/dist/v2/runtime/core/fetch-router.cjs +68 -0
- package/dist/v2/runtime/core/fetch-router.cjs.map +1 -0
- package/dist/v2/runtime/core/fetch-router.mjs +67 -0
- package/dist/v2/runtime/core/fetch-router.mjs.map +1 -0
- package/dist/v2/runtime/core/hooks.cjs +29 -0
- package/dist/v2/runtime/core/hooks.cjs.map +1 -0
- package/dist/v2/runtime/core/hooks.d.cts +78 -0
- package/dist/v2/runtime/core/hooks.d.cts.map +1 -0
- package/dist/v2/runtime/core/hooks.d.mts +78 -0
- package/dist/v2/runtime/core/hooks.d.mts.map +1 -0
- package/dist/v2/runtime/core/hooks.mjs +25 -0
- package/dist/v2/runtime/core/hooks.mjs.map +1 -0
- package/dist/v2/runtime/{middleware-sse-parser.cjs → core/middleware-sse-parser.cjs} +2 -2
- package/dist/v2/runtime/core/middleware-sse-parser.cjs.map +1 -0
- package/dist/v2/runtime/{middleware-sse-parser.d.cts → core/middleware-sse-parser.d.cts} +1 -1
- package/dist/v2/runtime/core/middleware-sse-parser.d.cts.map +1 -0
- package/dist/v2/runtime/{middleware-sse-parser.d.mts → core/middleware-sse-parser.d.mts} +1 -1
- package/dist/v2/runtime/core/middleware-sse-parser.d.mts.map +1 -0
- package/dist/v2/runtime/{middleware-sse-parser.mjs → core/middleware-sse-parser.mjs} +1 -1
- package/dist/v2/runtime/core/middleware-sse-parser.mjs.map +1 -0
- package/dist/v2/runtime/{middleware.cjs → core/middleware.cjs} +2 -2
- package/dist/v2/runtime/core/middleware.cjs.map +1 -0
- package/dist/v2/runtime/{middleware.d.cts → core/middleware.d.cts} +1 -1
- package/dist/v2/runtime/core/middleware.d.cts.map +1 -0
- package/dist/v2/runtime/{middleware.d.mts → core/middleware.d.mts} +1 -1
- package/dist/v2/runtime/core/middleware.d.mts.map +1 -0
- package/dist/v2/runtime/{middleware.mjs → core/middleware.mjs} +1 -1
- package/dist/v2/runtime/core/middleware.mjs.map +1 -0
- package/dist/v2/runtime/{runtime.cjs → core/runtime.cjs} +35 -10
- package/dist/v2/runtime/core/runtime.cjs.map +1 -0
- package/dist/v2/runtime/{runtime.d.cts → core/runtime.d.cts} +41 -7
- package/dist/v2/runtime/core/runtime.d.cts.map +1 -0
- package/dist/v2/runtime/{runtime.d.mts → core/runtime.d.mts} +42 -8
- package/dist/v2/runtime/core/runtime.d.mts.map +1 -0
- package/dist/v2/runtime/{runtime.mjs → core/runtime.mjs} +36 -11
- package/dist/v2/runtime/core/runtime.mjs.map +1 -0
- package/dist/v2/runtime/endpoints/express-fetch-bridge.cjs +83 -0
- package/dist/v2/runtime/endpoints/express-fetch-bridge.cjs.map +1 -0
- package/dist/v2/runtime/endpoints/express-fetch-bridge.mjs +82 -0
- package/dist/v2/runtime/endpoints/express-fetch-bridge.mjs.map +1 -0
- package/dist/v2/runtime/endpoints/express-single.cjs +35 -181
- package/dist/v2/runtime/endpoints/express-single.cjs.map +1 -1
- package/dist/v2/runtime/endpoints/express-single.d.cts +35 -2
- package/dist/v2/runtime/endpoints/express-single.d.cts.map +1 -1
- package/dist/v2/runtime/endpoints/express-single.d.mts +35 -2
- package/dist/v2/runtime/endpoints/express-single.d.mts.map +1 -1
- package/dist/v2/runtime/endpoints/express-single.mjs +35 -178
- package/dist/v2/runtime/endpoints/express-single.mjs.map +1 -1
- package/dist/v2/runtime/endpoints/express.cjs +41 -195
- package/dist/v2/runtime/endpoints/express.cjs.map +1 -1
- package/dist/v2/runtime/endpoints/express.d.cts +26 -4
- package/dist/v2/runtime/endpoints/express.d.cts.map +1 -1
- package/dist/v2/runtime/endpoints/express.d.mts +26 -4
- package/dist/v2/runtime/endpoints/express.d.mts.map +1 -1
- package/dist/v2/runtime/endpoints/express.mjs +41 -195
- package/dist/v2/runtime/endpoints/express.mjs.map +1 -1
- package/dist/v2/runtime/endpoints/hono-single.cjs +11 -123
- package/dist/v2/runtime/endpoints/hono-single.cjs.map +1 -1
- package/dist/v2/runtime/endpoints/hono-single.d.cts +14 -11
- package/dist/v2/runtime/endpoints/hono-single.d.cts.map +1 -1
- package/dist/v2/runtime/endpoints/hono-single.d.mts +14 -11
- package/dist/v2/runtime/endpoints/hono-single.d.mts.map +1 -1
- package/dist/v2/runtime/endpoints/hono-single.mjs +11 -123
- package/dist/v2/runtime/endpoints/hono-single.mjs.map +1 -1
- package/dist/v2/runtime/endpoints/hono.cjs +23 -237
- package/dist/v2/runtime/endpoints/hono.cjs.map +1 -1
- package/dist/v2/runtime/endpoints/hono.d.cts +29 -120
- package/dist/v2/runtime/endpoints/hono.d.cts.map +1 -1
- package/dist/v2/runtime/endpoints/hono.d.mts +29 -120
- package/dist/v2/runtime/endpoints/hono.d.mts.map +1 -1
- package/dist/v2/runtime/endpoints/hono.mjs +22 -238
- package/dist/v2/runtime/endpoints/hono.mjs.map +1 -1
- package/dist/v2/runtime/endpoints/index.d.cts +2 -2
- package/dist/v2/runtime/endpoints/index.d.mts +2 -2
- package/dist/v2/runtime/endpoints/node-fetch-handler.cjs +26 -0
- package/dist/v2/runtime/endpoints/node-fetch-handler.cjs.map +1 -0
- package/dist/v2/runtime/endpoints/node-fetch-handler.d.cts +12 -0
- package/dist/v2/runtime/endpoints/node-fetch-handler.d.cts.map +1 -0
- package/dist/v2/runtime/endpoints/node-fetch-handler.d.mts +12 -0
- package/dist/v2/runtime/endpoints/node-fetch-handler.d.mts.map +1 -0
- package/dist/v2/runtime/endpoints/node-fetch-handler.mjs +24 -0
- package/dist/v2/runtime/endpoints/node-fetch-handler.mjs.map +1 -0
- package/dist/v2/runtime/endpoints/node.cjs +30 -0
- package/dist/v2/runtime/endpoints/node.cjs.map +1 -0
- package/dist/v2/runtime/endpoints/node.d.cts +27 -0
- package/dist/v2/runtime/endpoints/node.d.cts.map +1 -0
- package/dist/v2/runtime/endpoints/node.d.mts +27 -0
- package/dist/v2/runtime/endpoints/node.d.mts.map +1 -0
- package/dist/v2/runtime/endpoints/node.mjs +30 -0
- package/dist/v2/runtime/endpoints/node.mjs.map +1 -0
- package/dist/v2/runtime/express.d.cts +3 -0
- package/dist/v2/runtime/express.d.mts +3 -0
- package/dist/v2/runtime/handlers/get-runtime-info.cjs +2 -1
- package/dist/v2/runtime/handlers/get-runtime-info.cjs.map +1 -1
- package/dist/v2/runtime/handlers/get-runtime-info.mjs +2 -1
- package/dist/v2/runtime/handlers/get-runtime-info.mjs.map +1 -1
- package/dist/v2/runtime/handlers/handle-connect.cjs +6 -3
- package/dist/v2/runtime/handlers/handle-connect.cjs.map +1 -1
- package/dist/v2/runtime/handlers/handle-connect.mjs +6 -3
- package/dist/v2/runtime/handlers/handle-connect.mjs.map +1 -1
- package/dist/v2/runtime/handlers/handle-run.cjs +6 -3
- package/dist/v2/runtime/handlers/handle-run.cjs.map +1 -1
- package/dist/v2/runtime/handlers/handle-run.mjs +6 -3
- package/dist/v2/runtime/handlers/handle-run.mjs.map +1 -1
- package/dist/v2/runtime/handlers/handle-stop.cjs.map +1 -1
- package/dist/v2/runtime/handlers/handle-stop.mjs.map +1 -1
- package/dist/v2/runtime/handlers/handle-transcribe.cjs.map +1 -1
- package/dist/v2/runtime/handlers/handle-transcribe.mjs.map +1 -1
- package/dist/v2/runtime/handlers/intelligence/connect.cjs.map +1 -1
- package/dist/v2/runtime/handlers/intelligence/connect.mjs.map +1 -1
- package/dist/v2/runtime/handlers/intelligence/run.cjs +22 -1
- package/dist/v2/runtime/handlers/intelligence/run.cjs.map +1 -1
- package/dist/v2/runtime/handlers/intelligence/run.mjs +22 -1
- package/dist/v2/runtime/handlers/intelligence/run.mjs.map +1 -1
- package/dist/v2/runtime/handlers/intelligence/thread-names.cjs +1 -1
- package/dist/v2/runtime/handlers/intelligence/thread-names.cjs.map +1 -1
- package/dist/v2/runtime/handlers/intelligence/thread-names.mjs +1 -1
- package/dist/v2/runtime/handlers/intelligence/thread-names.mjs.map +1 -1
- package/dist/v2/runtime/handlers/shared/agent-utils.cjs +21 -6
- package/dist/v2/runtime/handlers/shared/agent-utils.cjs.map +1 -1
- package/dist/v2/runtime/handlers/shared/agent-utils.mjs +21 -6
- package/dist/v2/runtime/handlers/shared/agent-utils.mjs.map +1 -1
- package/dist/v2/runtime/handlers/shared/json-response.cjs +4 -1
- package/dist/v2/runtime/handlers/shared/json-response.cjs.map +1 -1
- package/dist/v2/runtime/handlers/shared/json-response.mjs +4 -1
- package/dist/v2/runtime/handlers/shared/json-response.mjs.map +1 -1
- package/dist/v2/runtime/handlers/shared/resolve-intelligence-user.cjs.map +1 -1
- package/dist/v2/runtime/handlers/shared/resolve-intelligence-user.mjs.map +1 -1
- package/dist/v2/runtime/handlers/sse/connect.cjs.map +1 -1
- package/dist/v2/runtime/handlers/sse/connect.mjs.map +1 -1
- package/dist/v2/runtime/handlers/sse/run.cjs.map +1 -1
- package/dist/v2/runtime/handlers/sse/run.mjs.map +1 -1
- package/dist/v2/runtime/hono.d.cts +3 -0
- package/dist/v2/runtime/hono.d.mts +3 -0
- package/dist/v2/runtime/index.d.cts +16 -4
- package/dist/v2/runtime/index.d.cts.map +1 -0
- package/dist/v2/runtime/index.d.mts +16 -4
- package/dist/v2/runtime/index.d.mts.map +1 -0
- package/dist/v2/runtime/intelligence-platform/client.cjs +10 -1
- package/dist/v2/runtime/intelligence-platform/client.cjs.map +1 -1
- package/dist/v2/runtime/intelligence-platform/client.d.cts +22 -0
- package/dist/v2/runtime/intelligence-platform/client.d.cts.map +1 -1
- package/dist/v2/runtime/intelligence-platform/client.d.mts +22 -0
- package/dist/v2/runtime/intelligence-platform/client.d.mts.map +1 -1
- package/dist/v2/runtime/intelligence-platform/client.mjs +10 -1
- package/dist/v2/runtime/intelligence-platform/client.mjs.map +1 -1
- package/dist/v2/runtime/node.d.cts +3 -0
- package/dist/v2/runtime/node.d.mts +3 -0
- package/dist/v2/runtime/open-generative-ui-middleware.cjs +282 -0
- package/dist/v2/runtime/open-generative-ui-middleware.cjs.map +1 -0
- package/dist/v2/runtime/open-generative-ui-middleware.mjs +280 -0
- package/dist/v2/runtime/open-generative-ui-middleware.mjs.map +1 -0
- package/dist/v2/runtime/runner/intelligence.cjs +4 -4
- package/dist/v2/runtime/runner/intelligence.cjs.map +1 -1
- package/dist/v2/runtime/runner/intelligence.d.cts +6 -2
- package/dist/v2/runtime/runner/intelligence.d.cts.map +1 -1
- package/dist/v2/runtime/runner/intelligence.d.mts +6 -2
- package/dist/v2/runtime/runner/intelligence.d.mts.map +1 -1
- package/dist/v2/runtime/runner/intelligence.mjs +4 -4
- package/dist/v2/runtime/runner/intelligence.mjs.map +1 -1
- package/dist/v2/runtime/telemetry/telemetry-client.cjs +37 -0
- package/dist/v2/runtime/telemetry/telemetry-client.cjs.map +1 -1
- package/dist/v2/runtime/telemetry/telemetry-client.mjs +36 -0
- package/dist/v2/runtime/telemetry/telemetry-client.mjs.map +1 -1
- package/dist/v2/runtime/telemetry/utils.cjs +15 -0
- package/dist/v2/runtime/telemetry/utils.cjs.map +1 -0
- package/dist/v2/runtime/telemetry/utils.mjs +14 -0
- package/dist/v2/runtime/telemetry/utils.mjs.map +1 -0
- package/package.json +81 -48
- package/src/agent/__tests__/multimodal.test.ts +176 -0
- package/src/agent/index.ts +130 -19
- package/src/lib/runtime/agent-integrations/langgraph/agent.ts +3 -3
- package/src/lib/runtime/copilot-runtime.ts +1 -0
- package/src/v2/express.ts +1 -0
- package/src/v2/hono.ts +1 -0
- package/src/v2/node.ts +1 -0
- package/src/v2/runtime/__tests__/backward-compat.test.ts +261 -0
- package/src/v2/runtime/__tests__/code-review-fixes.test.ts +500 -0
- package/src/v2/runtime/__tests__/cors-credentials.test.ts +2 -2
- package/src/v2/runtime/__tests__/express-adapter.test.ts +188 -0
- package/src/v2/runtime/__tests__/express-body-order.test.ts +1 -1
- package/src/v2/runtime/__tests__/express-fetch-bridge.test.ts +344 -0
- package/src/v2/runtime/__tests__/express-single-sse.test.ts +1 -1
- package/src/v2/runtime/__tests__/fetch-cors.test.ts +205 -0
- package/src/v2/runtime/__tests__/fetch-handler-validation.test.ts +372 -0
- package/src/v2/runtime/__tests__/fetch-handler.test.ts +456 -0
- package/src/v2/runtime/__tests__/fetch-router.test.ts +132 -0
- package/src/v2/runtime/__tests__/get-runtime-info.test.ts +4 -1
- package/src/v2/runtime/__tests__/handle-connect.test.ts +15 -13
- package/src/v2/runtime/__tests__/handle-run.test.ts +21 -17
- package/src/v2/runtime/__tests__/handle-threads.test.ts +1 -1
- package/src/v2/runtime/__tests__/handle-transcribe.test.ts +1 -1
- package/src/v2/runtime/__tests__/hono-adapter.test.ts +150 -0
- package/src/v2/runtime/__tests__/hooks-edge-cases.test.ts +457 -0
- package/src/v2/runtime/__tests__/hooks.test.ts +557 -0
- package/src/v2/runtime/__tests__/integration/bun/bun-servers.integration.test.ts +27 -0
- package/src/v2/runtime/__tests__/integration/bun/elysia-multi.ts +32 -0
- package/src/v2/runtime/__tests__/integration/bun/elysia-single.ts +33 -0
- package/src/v2/runtime/__tests__/integration/bun/hono-bun-multi.ts +25 -0
- package/src/v2/runtime/__tests__/integration/bun/hono-bun-single.ts +32 -0
- package/src/v2/runtime/__tests__/integration/helpers/create-test-runtime.ts +15 -0
- package/src/v2/runtime/__tests__/integration/helpers/sse-reader.ts +45 -0
- package/src/v2/runtime/__tests__/integration/helpers/test-agent.ts +58 -0
- package/src/v2/runtime/__tests__/integration/node-servers.integration.test.ts +39 -0
- package/src/v2/runtime/__tests__/integration/servers/express-multi.ts +35 -0
- package/src/v2/runtime/__tests__/integration/servers/express-single.ts +36 -0
- package/src/v2/runtime/__tests__/integration/servers/fetch-direct.ts +39 -0
- package/src/v2/runtime/__tests__/integration/servers/hono-multi.ts +30 -0
- package/src/v2/runtime/__tests__/integration/servers/hono-single.ts +37 -0
- package/src/v2/runtime/__tests__/integration/servers/node-multi.ts +45 -0
- package/src/v2/runtime/__tests__/integration/servers/node-single.ts +46 -0
- package/src/v2/runtime/__tests__/integration/servers/types.ts +18 -0
- package/src/v2/runtime/__tests__/integration/suites/multi-endpoint.suite.ts +358 -0
- package/src/v2/runtime/__tests__/integration/suites/single-endpoint.suite.ts +363 -0
- package/src/v2/runtime/__tests__/middleware-express.test.ts +1 -1
- package/src/v2/runtime/__tests__/middleware-single-express.test.ts +1 -1
- package/src/v2/runtime/__tests__/middleware-single.test.ts +1 -1
- package/src/v2/runtime/__tests__/middleware-sse-parser.test.ts +1 -1
- package/src/v2/runtime/__tests__/middleware.test.ts +1 -2
- package/src/v2/runtime/__tests__/node-fetch-handler.test.ts +157 -0
- package/src/v2/runtime/__tests__/open-generative-ui-middleware.e2e.test.ts +728 -0
- package/src/v2/runtime/__tests__/router-edge-cases.test.ts +217 -0
- package/src/v2/runtime/__tests__/routing-express.test.ts +1 -1
- package/src/v2/runtime/__tests__/routing-single-express.test.ts +1 -1
- package/src/v2/runtime/__tests__/routing-single.test.ts +1 -1
- package/src/v2/runtime/__tests__/routing.test.ts +1 -1
- package/src/v2/runtime/__tests__/runtime.test.ts +110 -1
- package/src/v2/runtime/__tests__/telemetry.test.ts +62 -1
- package/src/v2/runtime/core/fetch-cors.ts +136 -0
- package/src/v2/runtime/core/fetch-handler.ts +415 -0
- package/src/v2/runtime/core/fetch-router.ts +112 -0
- package/src/v2/runtime/core/hooks.ts +151 -0
- package/src/v2/runtime/{runtime.ts → core/runtime.ts} +79 -10
- package/src/v2/runtime/endpoints/express-fetch-bridge.ts +137 -0
- package/src/v2/runtime/endpoints/express-single.ts +42 -219
- package/src/v2/runtime/endpoints/express.ts +128 -230
- package/src/v2/runtime/endpoints/hono-single.ts +19 -171
- package/src/v2/runtime/endpoints/hono.ts +45 -270
- package/src/v2/runtime/endpoints/node-fetch-handler.ts +48 -0
- package/src/v2/runtime/endpoints/node.ts +28 -0
- package/src/v2/runtime/handlers/get-runtime-info.ts +3 -2
- package/src/v2/runtime/handlers/handle-connect.ts +7 -4
- package/src/v2/runtime/handlers/handle-run.ts +7 -4
- package/src/v2/runtime/handlers/handle-stop.ts +1 -1
- package/src/v2/runtime/handlers/handle-transcribe.ts +1 -1
- package/src/v2/runtime/handlers/intelligence/connect.ts +1 -1
- package/src/v2/runtime/handlers/intelligence/run.ts +31 -1
- package/src/v2/runtime/handlers/intelligence/thread-names.ts +2 -2
- package/src/v2/runtime/handlers/intelligence/threads.ts +1 -1
- package/src/v2/runtime/handlers/shared/agent-utils.ts +29 -10
- package/src/v2/runtime/handlers/shared/json-response.ts +4 -1
- package/src/v2/runtime/handlers/shared/resolve-intelligence-user.ts +1 -1
- package/src/v2/runtime/handlers/sse/connect.ts +1 -1
- package/src/v2/runtime/handlers/sse/run.ts +1 -1
- package/src/v2/runtime/hono.ts +2 -0
- package/src/v2/runtime/index.ts +27 -1
- package/src/v2/runtime/intelligence-platform/client.ts +50 -1
- package/src/v2/runtime/node.ts +6 -0
- package/src/v2/runtime/open-generative-ui-middleware.ts +373 -0
- package/src/v2/runtime/runner/intelligence.ts +14 -4
- package/src/v2/runtime/telemetry/telemetry-client.ts +56 -0
- package/src/v2/runtime/telemetry/utils.ts +15 -0
- package/tsdown.config.ts +8 -1
- package/vitest.config.mjs +2 -5
- package/.eslintrc.js +0 -7
- package/dist/v2/runtime/endpoints/express-utils.cjs +0 -119
- package/dist/v2/runtime/endpoints/express-utils.cjs.map +0 -1
- package/dist/v2/runtime/endpoints/express-utils.mjs +0 -117
- package/dist/v2/runtime/endpoints/express-utils.mjs.map +0 -1
- package/dist/v2/runtime/handlers/intelligence/threads.cjs +0 -159
- package/dist/v2/runtime/handlers/intelligence/threads.cjs.map +0 -1
- package/dist/v2/runtime/handlers/intelligence/threads.mjs +0 -154
- package/dist/v2/runtime/handlers/intelligence/threads.mjs.map +0 -1
- package/dist/v2/runtime/middleware-sse-parser.cjs.map +0 -1
- package/dist/v2/runtime/middleware-sse-parser.d.cts.map +0 -1
- package/dist/v2/runtime/middleware-sse-parser.d.mts.map +0 -1
- package/dist/v2/runtime/middleware-sse-parser.mjs.map +0 -1
- package/dist/v2/runtime/middleware.cjs.map +0 -1
- package/dist/v2/runtime/middleware.d.cts.map +0 -1
- package/dist/v2/runtime/middleware.d.mts.map +0 -1
- package/dist/v2/runtime/middleware.mjs.map +0 -1
- package/dist/v2/runtime/runtime.cjs.map +0 -1
- package/dist/v2/runtime/runtime.d.cts.map +0 -1
- package/dist/v2/runtime/runtime.d.mts.map +0 -1
- package/dist/v2/runtime/runtime.mjs.map +0 -1
- package/src/v2/runtime/__tests__/express-abort-signal.test.ts +0 -25
- package/src/v2/runtime/endpoints/express-utils.ts +0 -182
- package/src/v2/runtime/handler.ts +0 -3
- /package/src/v2/runtime/{middleware-sse-parser.ts → core/middleware-sse-parser.ts} +0 -0
- /package/src/v2/runtime/{middleware.ts → core/middleware.ts} +0 -0
package/dist/package.cjs
CHANGED
|
@@ -5,14 +5,26 @@ const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
|
5
5
|
var require_package = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, module) => {
|
|
6
6
|
module.exports = {
|
|
7
7
|
"name": "@copilotkit/runtime",
|
|
8
|
+
"version": "1.55.0",
|
|
8
9
|
"private": false,
|
|
10
|
+
"keywords": [
|
|
11
|
+
"ai",
|
|
12
|
+
"assistant",
|
|
13
|
+
"automation",
|
|
14
|
+
"copilot",
|
|
15
|
+
"copilotkit",
|
|
16
|
+
"javascript",
|
|
17
|
+
"nextjs",
|
|
18
|
+
"nodejs",
|
|
19
|
+
"react",
|
|
20
|
+
"textarea"
|
|
21
|
+
],
|
|
9
22
|
"homepage": "https://github.com/CopilotKit/CopilotKit",
|
|
23
|
+
"license": "MIT",
|
|
10
24
|
"repository": {
|
|
11
25
|
"type": "git",
|
|
12
26
|
"url": "https://github.com/CopilotKit/CopilotKit.git"
|
|
13
27
|
},
|
|
14
|
-
"publishConfig": { "access": "public" },
|
|
15
|
-
"version": "1.55.0-next.9",
|
|
16
28
|
"sideEffects": [
|
|
17
29
|
"./dist/index.mjs",
|
|
18
30
|
"./dist/index.cjs",
|
|
@@ -21,6 +33,13 @@ var require_package = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, m
|
|
|
21
33
|
],
|
|
22
34
|
"main": "./dist/index.cjs",
|
|
23
35
|
"module": "./dist/index.mjs",
|
|
36
|
+
"types": "./dist/index.d.cts",
|
|
37
|
+
"typesVersions": { "*": {
|
|
38
|
+
"v2": ["./dist/v2/index.d.cts"],
|
|
39
|
+
"v2/express": ["./dist/v2/express.d.cts"],
|
|
40
|
+
"v2/hono": ["./dist/v2/hono.d.cts"],
|
|
41
|
+
"v2/node": ["./dist/v2/node.d.cts"]
|
|
42
|
+
} },
|
|
24
43
|
"exports": {
|
|
25
44
|
".": {
|
|
26
45
|
"import": "./dist/index.mjs",
|
|
@@ -34,10 +53,21 @@ var require_package = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, m
|
|
|
34
53
|
"import": "./dist/v2/index.mjs",
|
|
35
54
|
"require": "./dist/v2/index.cjs"
|
|
36
55
|
},
|
|
56
|
+
"./v2/express": {
|
|
57
|
+
"import": "./dist/v2/express.mjs",
|
|
58
|
+
"require": "./dist/v2/express.cjs"
|
|
59
|
+
},
|
|
60
|
+
"./v2/hono": {
|
|
61
|
+
"import": "./dist/v2/hono.mjs",
|
|
62
|
+
"require": "./dist/v2/hono.cjs"
|
|
63
|
+
},
|
|
64
|
+
"./v2/node": {
|
|
65
|
+
"import": "./dist/v2/node.mjs",
|
|
66
|
+
"require": "./dist/v2/node.cjs"
|
|
67
|
+
},
|
|
37
68
|
"./package.json": "./package.json"
|
|
38
69
|
},
|
|
39
|
-
"
|
|
40
|
-
"license": "MIT",
|
|
70
|
+
"publishConfig": { "access": "public" },
|
|
41
71
|
"scripts": {
|
|
42
72
|
"build": "tsdown",
|
|
43
73
|
"dev": "tsdown --watch",
|
|
@@ -50,44 +80,28 @@ var require_package = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, m
|
|
|
50
80
|
"publint": "publint .",
|
|
51
81
|
"attw": "attw --pack . --profile node16"
|
|
52
82
|
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@swc/core": "1.5.28",
|
|
55
|
-
"@types/cors": "^2.8.17",
|
|
56
|
-
"@types/express": "^4.17.21",
|
|
57
|
-
"@types/node": "^18.11.17",
|
|
58
|
-
"@types/phoenix": "^1.6.6",
|
|
59
|
-
"@valibot/to-json-schema": "^1.5.0",
|
|
60
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
61
|
-
"@whatwg-node/server": "^0.9.34",
|
|
62
|
-
"arktype": "^2.1.29",
|
|
63
|
-
"eslint": "^8.56.0",
|
|
64
|
-
"eslint-config-custom": "workspace:*",
|
|
65
|
-
"nodemon": "^3.1.3",
|
|
66
|
-
"supertest": "^7.1.1",
|
|
67
|
-
"ts-node": "^10.9.2",
|
|
68
|
-
"tsconfig": "workspace:*",
|
|
69
|
-
"tsdown": "^0.20.3",
|
|
70
|
-
"typescript": "^5.2.3",
|
|
71
|
-
"valibot": "^1.2.0",
|
|
72
|
-
"vitest": "^3.2.4"
|
|
73
|
-
},
|
|
74
83
|
"dependencies": {
|
|
75
|
-
"@ag-ui/a2ui-middleware": "0.0.
|
|
76
|
-
"@ag-ui/client": "
|
|
77
|
-
"@ag-ui/core": "
|
|
78
|
-
"@ag-ui/encoder": "0.0.
|
|
79
|
-
"@ag-ui/langgraph": "
|
|
80
|
-
"@ag-ui/mcp-apps-middleware": "0.0.
|
|
84
|
+
"@ag-ui/a2ui-middleware": "0.0.3",
|
|
85
|
+
"@ag-ui/client": "0.0.52",
|
|
86
|
+
"@ag-ui/core": "0.0.52",
|
|
87
|
+
"@ag-ui/encoder": "0.0.52",
|
|
88
|
+
"@ag-ui/langgraph": "0.0.27",
|
|
89
|
+
"@ag-ui/mcp-apps-middleware": "0.0.3",
|
|
81
90
|
"@ai-sdk/anthropic": "^3.0.49",
|
|
82
91
|
"@ai-sdk/google": "^3.0.33",
|
|
83
92
|
"@ai-sdk/google-vertex": "^3.0.97",
|
|
84
93
|
"@ai-sdk/mcp": "^1.0.21",
|
|
85
94
|
"@ai-sdk/openai": "^3.0.36",
|
|
86
|
-
"@
|
|
95
|
+
"@copilotkit/license-verifier": "0.0.1-a1",
|
|
87
96
|
"@copilotkit/shared": "workspace:*",
|
|
88
97
|
"@graphql-yoga/plugin-defer-stream": "^3.3.1",
|
|
89
98
|
"@hono/node-server": "^1.13.5",
|
|
99
|
+
"@modelcontextprotocol/sdk": "^1.18.2",
|
|
100
|
+
"@remix-run/node-fetch-server": "^0.13.0",
|
|
90
101
|
"@scarf/scarf": "^1.3.0",
|
|
102
|
+
"@segment/analytics-node": "^2.1.2",
|
|
103
|
+
"ai": "^6.0.104",
|
|
104
|
+
"clarinet": "^0.12.4",
|
|
91
105
|
"class-transformer": "^0.5.1",
|
|
92
106
|
"class-validator": "^0.14.1",
|
|
93
107
|
"cors": "^2.8.5",
|
|
@@ -95,7 +109,6 @@ var require_package = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, m
|
|
|
95
109
|
"graphql": "^16.8.1",
|
|
96
110
|
"graphql-scalars": "^1.23.0",
|
|
97
111
|
"graphql-yoga": "^5.3.1",
|
|
98
|
-
"ai": "^6.0.104",
|
|
99
112
|
"hono": "^4.11.4",
|
|
100
113
|
"openai": "^4.85.1",
|
|
101
114
|
"partial-json": "^0.1.7",
|
|
@@ -105,14 +118,36 @@ var require_package = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, m
|
|
|
105
118
|
"reflect-metadata": "^0.2.2",
|
|
106
119
|
"rxjs": "7.8.1",
|
|
107
120
|
"type-graphql": "2.0.0-rc.1",
|
|
121
|
+
"uuid": "^10.0.0",
|
|
108
122
|
"ws": "^8.18.0",
|
|
109
123
|
"zod": "^3.23.3"
|
|
110
124
|
},
|
|
125
|
+
"devDependencies": {
|
|
126
|
+
"@swc/core": "1.5.28",
|
|
127
|
+
"@types/cors": "^2.8.17",
|
|
128
|
+
"@types/express": "^4.17.21",
|
|
129
|
+
"@types/node": "^18.11.17",
|
|
130
|
+
"@types/phoenix": "^1.6.6",
|
|
131
|
+
"@valibot/to-json-schema": "^1.5.0",
|
|
132
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
133
|
+
"@whatwg-node/server": "^0.9.34",
|
|
134
|
+
"arktype": "^2.1.29",
|
|
135
|
+
"elysia": "^1.2.25",
|
|
136
|
+
"eslint": "^8.56.0",
|
|
137
|
+
"nodemon": "^3.1.3",
|
|
138
|
+
"supertest": "^7.1.1",
|
|
139
|
+
"ts-node": "^10.9.2",
|
|
140
|
+
"tsconfig": "workspace:*",
|
|
141
|
+
"tsdown": "^0.20.3",
|
|
142
|
+
"typescript": "^5.2.3",
|
|
143
|
+
"valibot": "^1.2.0",
|
|
144
|
+
"vitest": "^3.2.4"
|
|
145
|
+
},
|
|
111
146
|
"peerDependencies": {
|
|
112
147
|
"@anthropic-ai/sdk": "^0.57.0",
|
|
113
148
|
"@langchain/aws": ">=0.1.9",
|
|
114
|
-
"@langchain/core": ">=0.3.66",
|
|
115
149
|
"@langchain/community": ">=0.3.58",
|
|
150
|
+
"@langchain/core": ">=0.3.66",
|
|
116
151
|
"@langchain/google-gauth": ">=0.1.0",
|
|
117
152
|
"@langchain/langgraph-sdk": ">=0.1.2",
|
|
118
153
|
"@langchain/openai": ">=0.4.2",
|
|
@@ -130,19 +165,7 @@ var require_package = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, m
|
|
|
130
165
|
"langchain": { "optional": true },
|
|
131
166
|
"openai": { "optional": true }
|
|
132
167
|
},
|
|
133
|
-
"nx": { "targets": { "build": { "dependsOn": ["generate-graphql-schema", "^build"] } } }
|
|
134
|
-
"keywords": [
|
|
135
|
-
"copilotkit",
|
|
136
|
-
"copilot",
|
|
137
|
-
"react",
|
|
138
|
-
"nextjs",
|
|
139
|
-
"nodejs",
|
|
140
|
-
"ai",
|
|
141
|
-
"assistant",
|
|
142
|
-
"javascript",
|
|
143
|
-
"automation",
|
|
144
|
-
"textarea"
|
|
145
|
-
]
|
|
168
|
+
"nx": { "targets": { "build": { "dependsOn": ["generate-graphql-schema", "^build"] } } }
|
|
146
169
|
};
|
|
147
170
|
}));
|
|
148
171
|
|
package/dist/package.mjs
CHANGED
|
@@ -5,14 +5,26 @@ import { __commonJSMin } from "./_virtual/_rolldown/runtime.mjs";
|
|
|
5
5
|
var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
6
|
module.exports = {
|
|
7
7
|
"name": "@copilotkit/runtime",
|
|
8
|
+
"version": "1.55.0",
|
|
8
9
|
"private": false,
|
|
10
|
+
"keywords": [
|
|
11
|
+
"ai",
|
|
12
|
+
"assistant",
|
|
13
|
+
"automation",
|
|
14
|
+
"copilot",
|
|
15
|
+
"copilotkit",
|
|
16
|
+
"javascript",
|
|
17
|
+
"nextjs",
|
|
18
|
+
"nodejs",
|
|
19
|
+
"react",
|
|
20
|
+
"textarea"
|
|
21
|
+
],
|
|
9
22
|
"homepage": "https://github.com/CopilotKit/CopilotKit",
|
|
23
|
+
"license": "MIT",
|
|
10
24
|
"repository": {
|
|
11
25
|
"type": "git",
|
|
12
26
|
"url": "https://github.com/CopilotKit/CopilotKit.git"
|
|
13
27
|
},
|
|
14
|
-
"publishConfig": { "access": "public" },
|
|
15
|
-
"version": "1.55.0-next.9",
|
|
16
28
|
"sideEffects": [
|
|
17
29
|
"./dist/index.mjs",
|
|
18
30
|
"./dist/index.cjs",
|
|
@@ -21,6 +33,13 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21
33
|
],
|
|
22
34
|
"main": "./dist/index.cjs",
|
|
23
35
|
"module": "./dist/index.mjs",
|
|
36
|
+
"types": "./dist/index.d.cts",
|
|
37
|
+
"typesVersions": { "*": {
|
|
38
|
+
"v2": ["./dist/v2/index.d.cts"],
|
|
39
|
+
"v2/express": ["./dist/v2/express.d.cts"],
|
|
40
|
+
"v2/hono": ["./dist/v2/hono.d.cts"],
|
|
41
|
+
"v2/node": ["./dist/v2/node.d.cts"]
|
|
42
|
+
} },
|
|
24
43
|
"exports": {
|
|
25
44
|
".": {
|
|
26
45
|
"import": "./dist/index.mjs",
|
|
@@ -34,10 +53,21 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34
53
|
"import": "./dist/v2/index.mjs",
|
|
35
54
|
"require": "./dist/v2/index.cjs"
|
|
36
55
|
},
|
|
56
|
+
"./v2/express": {
|
|
57
|
+
"import": "./dist/v2/express.mjs",
|
|
58
|
+
"require": "./dist/v2/express.cjs"
|
|
59
|
+
},
|
|
60
|
+
"./v2/hono": {
|
|
61
|
+
"import": "./dist/v2/hono.mjs",
|
|
62
|
+
"require": "./dist/v2/hono.cjs"
|
|
63
|
+
},
|
|
64
|
+
"./v2/node": {
|
|
65
|
+
"import": "./dist/v2/node.mjs",
|
|
66
|
+
"require": "./dist/v2/node.cjs"
|
|
67
|
+
},
|
|
37
68
|
"./package.json": "./package.json"
|
|
38
69
|
},
|
|
39
|
-
"
|
|
40
|
-
"license": "MIT",
|
|
70
|
+
"publishConfig": { "access": "public" },
|
|
41
71
|
"scripts": {
|
|
42
72
|
"build": "tsdown",
|
|
43
73
|
"dev": "tsdown --watch",
|
|
@@ -50,44 +80,28 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
50
80
|
"publint": "publint .",
|
|
51
81
|
"attw": "attw --pack . --profile node16"
|
|
52
82
|
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@swc/core": "1.5.28",
|
|
55
|
-
"@types/cors": "^2.8.17",
|
|
56
|
-
"@types/express": "^4.17.21",
|
|
57
|
-
"@types/node": "^18.11.17",
|
|
58
|
-
"@types/phoenix": "^1.6.6",
|
|
59
|
-
"@valibot/to-json-schema": "^1.5.0",
|
|
60
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
61
|
-
"@whatwg-node/server": "^0.9.34",
|
|
62
|
-
"arktype": "^2.1.29",
|
|
63
|
-
"eslint": "^8.56.0",
|
|
64
|
-
"eslint-config-custom": "workspace:*",
|
|
65
|
-
"nodemon": "^3.1.3",
|
|
66
|
-
"supertest": "^7.1.1",
|
|
67
|
-
"ts-node": "^10.9.2",
|
|
68
|
-
"tsconfig": "workspace:*",
|
|
69
|
-
"tsdown": "^0.20.3",
|
|
70
|
-
"typescript": "^5.2.3",
|
|
71
|
-
"valibot": "^1.2.0",
|
|
72
|
-
"vitest": "^3.2.4"
|
|
73
|
-
},
|
|
74
83
|
"dependencies": {
|
|
75
|
-
"@ag-ui/a2ui-middleware": "0.0.
|
|
76
|
-
"@ag-ui/client": "
|
|
77
|
-
"@ag-ui/core": "
|
|
78
|
-
"@ag-ui/encoder": "0.0.
|
|
79
|
-
"@ag-ui/langgraph": "
|
|
80
|
-
"@ag-ui/mcp-apps-middleware": "0.0.
|
|
84
|
+
"@ag-ui/a2ui-middleware": "0.0.3",
|
|
85
|
+
"@ag-ui/client": "0.0.52",
|
|
86
|
+
"@ag-ui/core": "0.0.52",
|
|
87
|
+
"@ag-ui/encoder": "0.0.52",
|
|
88
|
+
"@ag-ui/langgraph": "0.0.27",
|
|
89
|
+
"@ag-ui/mcp-apps-middleware": "0.0.3",
|
|
81
90
|
"@ai-sdk/anthropic": "^3.0.49",
|
|
82
91
|
"@ai-sdk/google": "^3.0.33",
|
|
83
92
|
"@ai-sdk/google-vertex": "^3.0.97",
|
|
84
93
|
"@ai-sdk/mcp": "^1.0.21",
|
|
85
94
|
"@ai-sdk/openai": "^3.0.36",
|
|
86
|
-
"@
|
|
95
|
+
"@copilotkit/license-verifier": "0.0.1-a1",
|
|
87
96
|
"@copilotkit/shared": "workspace:*",
|
|
88
97
|
"@graphql-yoga/plugin-defer-stream": "^3.3.1",
|
|
89
98
|
"@hono/node-server": "^1.13.5",
|
|
99
|
+
"@modelcontextprotocol/sdk": "^1.18.2",
|
|
100
|
+
"@remix-run/node-fetch-server": "^0.13.0",
|
|
90
101
|
"@scarf/scarf": "^1.3.0",
|
|
102
|
+
"@segment/analytics-node": "^2.1.2",
|
|
103
|
+
"ai": "^6.0.104",
|
|
104
|
+
"clarinet": "^0.12.4",
|
|
91
105
|
"class-transformer": "^0.5.1",
|
|
92
106
|
"class-validator": "^0.14.1",
|
|
93
107
|
"cors": "^2.8.5",
|
|
@@ -95,7 +109,6 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
95
109
|
"graphql": "^16.8.1",
|
|
96
110
|
"graphql-scalars": "^1.23.0",
|
|
97
111
|
"graphql-yoga": "^5.3.1",
|
|
98
|
-
"ai": "^6.0.104",
|
|
99
112
|
"hono": "^4.11.4",
|
|
100
113
|
"openai": "^4.85.1",
|
|
101
114
|
"partial-json": "^0.1.7",
|
|
@@ -105,14 +118,36 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
105
118
|
"reflect-metadata": "^0.2.2",
|
|
106
119
|
"rxjs": "7.8.1",
|
|
107
120
|
"type-graphql": "2.0.0-rc.1",
|
|
121
|
+
"uuid": "^10.0.0",
|
|
108
122
|
"ws": "^8.18.0",
|
|
109
123
|
"zod": "^3.23.3"
|
|
110
124
|
},
|
|
125
|
+
"devDependencies": {
|
|
126
|
+
"@swc/core": "1.5.28",
|
|
127
|
+
"@types/cors": "^2.8.17",
|
|
128
|
+
"@types/express": "^4.17.21",
|
|
129
|
+
"@types/node": "^18.11.17",
|
|
130
|
+
"@types/phoenix": "^1.6.6",
|
|
131
|
+
"@valibot/to-json-schema": "^1.5.0",
|
|
132
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
133
|
+
"@whatwg-node/server": "^0.9.34",
|
|
134
|
+
"arktype": "^2.1.29",
|
|
135
|
+
"elysia": "^1.2.25",
|
|
136
|
+
"eslint": "^8.56.0",
|
|
137
|
+
"nodemon": "^3.1.3",
|
|
138
|
+
"supertest": "^7.1.1",
|
|
139
|
+
"ts-node": "^10.9.2",
|
|
140
|
+
"tsconfig": "workspace:*",
|
|
141
|
+
"tsdown": "^0.20.3",
|
|
142
|
+
"typescript": "^5.2.3",
|
|
143
|
+
"valibot": "^1.2.0",
|
|
144
|
+
"vitest": "^3.2.4"
|
|
145
|
+
},
|
|
111
146
|
"peerDependencies": {
|
|
112
147
|
"@anthropic-ai/sdk": "^0.57.0",
|
|
113
148
|
"@langchain/aws": ">=0.1.9",
|
|
114
|
-
"@langchain/core": ">=0.3.66",
|
|
115
149
|
"@langchain/community": ">=0.3.58",
|
|
150
|
+
"@langchain/core": ">=0.3.66",
|
|
116
151
|
"@langchain/google-gauth": ">=0.1.0",
|
|
117
152
|
"@langchain/langgraph-sdk": ">=0.1.2",
|
|
118
153
|
"@langchain/openai": ">=0.4.2",
|
|
@@ -130,19 +165,7 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
130
165
|
"langchain": { "optional": true },
|
|
131
166
|
"openai": { "optional": true }
|
|
132
167
|
},
|
|
133
|
-
"nx": { "targets": { "build": { "dependsOn": ["generate-graphql-schema", "^build"] } } }
|
|
134
|
-
"keywords": [
|
|
135
|
-
"copilotkit",
|
|
136
|
-
"copilot",
|
|
137
|
-
"react",
|
|
138
|
-
"nextjs",
|
|
139
|
-
"nodejs",
|
|
140
|
-
"ai",
|
|
141
|
-
"assistant",
|
|
142
|
-
"javascript",
|
|
143
|
-
"automation",
|
|
144
|
-
"textarea"
|
|
145
|
-
]
|
|
168
|
+
"nx": { "targets": { "build": { "dependsOn": ["generate-graphql-schema", "^build"] } } }
|
|
146
169
|
};
|
|
147
170
|
}));
|
|
148
171
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
require("reflect-metadata");
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
+
const require_express = require('./runtime/endpoints/express.cjs');
|
|
4
|
+
const require_express_single = require('./runtime/endpoints/express-single.cjs');
|
|
5
|
+
|
|
6
|
+
exports.createCopilotEndpointExpress = require_express.createCopilotExpressHandler;
|
|
7
|
+
exports.createCopilotExpressHandler = require_express.createCopilotExpressHandler;
|
|
8
|
+
exports.createCopilotEndpointSingleRouteExpress = require_express_single.createCopilotEndpointSingleRouteExpress;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
import { CopilotExpressEndpointParams, createCopilotExpressHandler } from "./runtime/endpoints/express.cjs";
|
|
3
|
+
import { createCopilotEndpointSingleRouteExpress } from "./runtime/endpoints/express-single.cjs";
|
|
4
|
+
import "./runtime/express.cjs";
|
|
5
|
+
export { CopilotExpressEndpointParams, createCopilotExpressHandler as createCopilotEndpointExpress, createCopilotExpressHandler, createCopilotEndpointSingleRouteExpress };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { CopilotExpressEndpointParams, createCopilotExpressHandler } from "./runtime/endpoints/express.mjs";
|
|
3
|
+
import { createCopilotEndpointSingleRouteExpress } from "./runtime/endpoints/express-single.mjs";
|
|
4
|
+
import "./runtime/express.mjs";
|
|
5
|
+
export { CopilotExpressEndpointParams, createCopilotExpressHandler as createCopilotEndpointExpress, createCopilotExpressHandler, createCopilotEndpointSingleRouteExpress };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { createCopilotExpressHandler } from "./runtime/endpoints/express.mjs";
|
|
3
|
+
import { createCopilotEndpointSingleRouteExpress } from "./runtime/endpoints/express-single.mjs";
|
|
4
|
+
|
|
5
|
+
export { createCopilotExpressHandler as createCopilotEndpointExpress, createCopilotExpressHandler, createCopilotEndpointSingleRouteExpress };
|
package/dist/v2/hono.cjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require("reflect-metadata");
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
+
const require_hono = require('./runtime/endpoints/hono.cjs');
|
|
4
|
+
const require_hono_single = require('./runtime/endpoints/hono-single.cjs');
|
|
5
|
+
|
|
6
|
+
exports.createCopilotEndpoint = require_hono.createCopilotEndpoint;
|
|
7
|
+
exports.createCopilotEndpointSingleRoute = require_hono_single.createCopilotEndpointSingleRoute;
|
|
8
|
+
exports.createCopilotHonoHandler = require_hono.createCopilotHonoHandler;
|
|
9
|
+
exports.toFetchCorsConfig = require_hono.toFetchCorsConfig;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
import { CopilotEndpointCorsConfig, createCopilotEndpoint, createCopilotHonoHandler, toFetchCorsConfig } from "./runtime/endpoints/hono.cjs";
|
|
3
|
+
import { createCopilotEndpointSingleRoute } from "./runtime/endpoints/hono-single.cjs";
|
|
4
|
+
import "./runtime/hono.cjs";
|
|
5
|
+
export { CopilotEndpointCorsConfig, createCopilotEndpoint, createCopilotEndpointSingleRoute, createCopilotHonoHandler, toFetchCorsConfig };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { CopilotEndpointCorsConfig, createCopilotEndpoint, createCopilotHonoHandler, toFetchCorsConfig } from "./runtime/endpoints/hono.mjs";
|
|
3
|
+
import { createCopilotEndpointSingleRoute } from "./runtime/endpoints/hono-single.mjs";
|
|
4
|
+
import "./runtime/hono.mjs";
|
|
5
|
+
export { CopilotEndpointCorsConfig, createCopilotEndpoint, createCopilotEndpointSingleRoute, createCopilotHonoHandler, toFetchCorsConfig };
|
package/dist/v2/hono.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { createCopilotEndpoint, createCopilotHonoHandler, toFetchCorsConfig } from "./runtime/endpoints/hono.mjs";
|
|
3
|
+
import { createCopilotEndpointSingleRoute } from "./runtime/endpoints/hono-single.mjs";
|
|
4
|
+
|
|
5
|
+
export { createCopilotEndpoint, createCopilotEndpointSingleRoute, createCopilotHonoHandler, toFetchCorsConfig };
|
package/dist/v2/index.cjs
CHANGED
|
@@ -4,8 +4,9 @@ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
|
4
4
|
const require_agent_runner = require('./runtime/runner/agent-runner.cjs');
|
|
5
5
|
const require_in_memory = require('./runtime/runner/in-memory.cjs');
|
|
6
6
|
const require_intelligence = require('./runtime/runner/intelligence.cjs');
|
|
7
|
-
const require_runtime$1 = require('./runtime/runtime.cjs');
|
|
7
|
+
const require_runtime$1 = require('./runtime/core/runtime.cjs');
|
|
8
8
|
const require_client = require('./runtime/intelligence-platform/client.cjs');
|
|
9
|
+
const require_fetch_handler = require('./runtime/core/fetch-handler.cjs');
|
|
9
10
|
const require_hono = require('./runtime/endpoints/hono.cjs');
|
|
10
11
|
const require_hono_single = require('./runtime/endpoints/hono-single.cjs');
|
|
11
12
|
const require_express = require('./runtime/endpoints/express.cjs');
|
|
@@ -30,9 +31,12 @@ exports.convertMessagesToVercelAISDKMessages = require_index.convertMessagesToVe
|
|
|
30
31
|
exports.convertToolDefinitionsToVercelAITools = require_index.convertToolDefinitionsToVercelAITools;
|
|
31
32
|
exports.convertToolsToVercelAITools = require_index.convertToolsToVercelAITools;
|
|
32
33
|
exports.createCopilotEndpoint = require_hono.createCopilotEndpoint;
|
|
33
|
-
exports.createCopilotEndpointExpress = require_express.
|
|
34
|
+
exports.createCopilotEndpointExpress = require_express.createCopilotExpressHandler;
|
|
35
|
+
exports.createCopilotExpressHandler = require_express.createCopilotExpressHandler;
|
|
34
36
|
exports.createCopilotEndpointSingleRoute = require_hono_single.createCopilotEndpointSingleRoute;
|
|
35
37
|
exports.createCopilotEndpointSingleRouteExpress = require_express_single.createCopilotEndpointSingleRouteExpress;
|
|
38
|
+
exports.createCopilotHonoHandler = require_hono.createCopilotHonoHandler;
|
|
39
|
+
exports.createCopilotRuntimeHandler = require_fetch_handler.createCopilotRuntimeHandler;
|
|
36
40
|
exports.defineTool = require_index.defineTool;
|
|
37
41
|
Object.defineProperty(exports, 'finalizeRunEvents', {
|
|
38
42
|
enumerable: true,
|
|
@@ -41,4 +45,5 @@ Object.defineProperty(exports, 'finalizeRunEvents', {
|
|
|
41
45
|
}
|
|
42
46
|
});
|
|
43
47
|
exports.isIntelligenceRuntime = require_runtime$1.isIntelligenceRuntime;
|
|
44
|
-
exports.resolveModel = require_index.resolveModel;
|
|
48
|
+
exports.resolveModel = require_index.resolveModel;
|
|
49
|
+
exports.toFetchCorsConfig = require_hono.toFetchCorsConfig;
|
package/dist/v2/index.d.cts
CHANGED
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
import { TranscribeFileOptions, TranscriptionService } from "./runtime/transcription-service/transcription-service.cjs";
|
|
3
3
|
import { AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest } from "./runtime/runner/agent-runner.cjs";
|
|
4
4
|
import { CopilotKitIntelligence, CopilotKitIntelligenceConfig, CreateThreadRequest, ListThreadsResponse, SubscribeToThreadsRequest, SubscribeToThreadsResponse, ThreadSummary, UpdateThreadRequest } from "./runtime/intelligence-platform/client.cjs";
|
|
5
|
-
import { CopilotIntelligenceRuntime, CopilotIntelligenceRuntimeLike, CopilotIntelligenceRuntimeOptions, CopilotRuntime, CopilotRuntimeLike, CopilotRuntimeOptions, CopilotRuntimeUser, CopilotSseRuntime, CopilotSseRuntimeLike, CopilotSseRuntimeOptions, IdentifyUserCallback, McpAppsConfig, McpAppsServerConfig, VERSION, isIntelligenceRuntime } from "./runtime/runtime.cjs";
|
|
6
|
-
import {
|
|
5
|
+
import { CopilotIntelligenceRuntime, CopilotIntelligenceRuntimeLike, CopilotIntelligenceRuntimeOptions, CopilotRuntime, CopilotRuntimeLike, CopilotRuntimeOptions, CopilotRuntimeUser, CopilotSseRuntime, CopilotSseRuntimeLike, CopilotSseRuntimeOptions, IdentifyUserCallback, McpAppsConfig, McpAppsServerConfig, OpenGenerativeUIConfig, OpenGenerativeUIOptions, VERSION, isIntelligenceRuntime } from "./runtime/core/runtime.cjs";
|
|
6
|
+
import { CopilotCorsConfig } from "./runtime/core/fetch-cors.cjs";
|
|
7
|
+
import { CopilotRuntimeHooks, ErrorHookContext, HandlerHookContext, HookContext, ResponseHookContext, RouteInfo } from "./runtime/core/hooks.cjs";
|
|
8
|
+
import { CopilotEndpointCorsConfig, createCopilotEndpoint, createCopilotHonoHandler, toFetchCorsConfig } from "./runtime/endpoints/hono.cjs";
|
|
7
9
|
import { createCopilotEndpointSingleRoute } from "./runtime/endpoints/hono-single.cjs";
|
|
8
|
-
import {
|
|
10
|
+
import { CopilotExpressEndpointParams, createCopilotExpressHandler } from "./runtime/endpoints/express.cjs";
|
|
9
11
|
import { createCopilotEndpointSingleRouteExpress } from "./runtime/endpoints/express-single.cjs";
|
|
10
12
|
import { InMemoryAgentRunner } from "./runtime/runner/in-memory.cjs";
|
|
11
13
|
import { IntelligenceAgentRunner, IntelligenceAgentRunnerOptions } from "./runtime/runner/intelligence.cjs";
|
|
12
14
|
import { finalizeRunEvents } from "./runtime/runner/index.cjs";
|
|
13
|
-
import "./runtime/
|
|
15
|
+
import { CopilotRuntimeFetchHandler, CopilotRuntimeHandlerOptions, createCopilotRuntimeHandler } from "./runtime/core/fetch-handler.cjs";
|
|
16
|
+
import { CopilotKitRequestHandler } from "./runtime/index.cjs";
|
|
14
17
|
import { BasicAgent, BasicAgentConfiguration, BuiltInAgent, BuiltInAgentConfiguration, BuiltInAgentModel, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, MessageConversionOptions, ModelSpecifier, OverridableProperty, ToolDefinition, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, defineTool, resolveModel } from "../agent/index.cjs";
|
|
15
|
-
export { AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, BasicAgent, BasicAgentConfiguration, BuiltInAgent, BuiltInAgentConfiguration, BuiltInAgentModel, CopilotEndpointCorsConfig, CopilotIntelligenceRuntime, CopilotIntelligenceRuntimeLike, CopilotIntelligenceRuntimeOptions, CopilotKitIntelligence, CopilotKitIntelligenceConfig, CopilotRuntime, CopilotRuntimeLike, CopilotRuntimeOptions, CopilotRuntimeUser, CopilotSseRuntime, CopilotSseRuntimeLike, CopilotSseRuntimeOptions, CreateThreadRequest, IdentifyUserCallback, InMemoryAgentRunner, IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, ListThreadsResponse, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, McpAppsConfig, McpAppsServerConfig, MessageConversionOptions, ModelSpecifier, OverridableProperty, SubscribeToThreadsRequest, SubscribeToThreadsResponse, ThreadSummary, ToolDefinition, TranscribeFileOptions, TranscriptionService, UpdateThreadRequest, VERSION, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, defineTool, finalizeRunEvents, isIntelligenceRuntime, resolveModel };
|
|
18
|
+
export { AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, BasicAgent, BasicAgentConfiguration, BuiltInAgent, BuiltInAgentConfiguration, BuiltInAgentModel, CopilotCorsConfig, CopilotEndpointCorsConfig, CopilotExpressEndpointParams, CopilotIntelligenceRuntime, CopilotIntelligenceRuntimeLike, CopilotIntelligenceRuntimeOptions, CopilotKitIntelligence, CopilotKitIntelligenceConfig, CopilotKitRequestHandler, CopilotRuntime, CopilotRuntimeFetchHandler, CopilotRuntimeHandlerOptions, CopilotRuntimeHooks, CopilotRuntimeLike, CopilotRuntimeOptions, CopilotRuntimeUser, CopilotSseRuntime, CopilotSseRuntimeLike, CopilotSseRuntimeOptions, CreateThreadRequest, ErrorHookContext, HandlerHookContext, HookContext, IdentifyUserCallback, InMemoryAgentRunner, IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, ListThreadsResponse, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, McpAppsConfig, McpAppsServerConfig, MessageConversionOptions, ModelSpecifier, OpenGenerativeUIConfig, OpenGenerativeUIOptions, OverridableProperty, ResponseHookContext, RouteInfo, SubscribeToThreadsRequest, SubscribeToThreadsResponse, ThreadSummary, ToolDefinition, TranscribeFileOptions, TranscriptionService, UpdateThreadRequest, VERSION, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, createCopilotEndpoint, createCopilotExpressHandler as createCopilotEndpointExpress, createCopilotExpressHandler, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotHonoHandler, createCopilotRuntimeHandler, defineTool, finalizeRunEvents, isIntelligenceRuntime, resolveModel, toFetchCorsConfig };
|
package/dist/v2/index.d.mts
CHANGED
|
@@ -2,14 +2,17 @@ import "reflect-metadata";
|
|
|
2
2
|
import { TranscribeFileOptions, TranscriptionService } from "./runtime/transcription-service/transcription-service.mjs";
|
|
3
3
|
import { AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest } from "./runtime/runner/agent-runner.mjs";
|
|
4
4
|
import { CopilotKitIntelligence, CopilotKitIntelligenceConfig, CreateThreadRequest, ListThreadsResponse, SubscribeToThreadsRequest, SubscribeToThreadsResponse, ThreadSummary, UpdateThreadRequest } from "./runtime/intelligence-platform/client.mjs";
|
|
5
|
-
import { CopilotIntelligenceRuntime, CopilotIntelligenceRuntimeLike, CopilotIntelligenceRuntimeOptions, CopilotRuntime, CopilotRuntimeLike, CopilotRuntimeOptions, CopilotRuntimeUser, CopilotSseRuntime, CopilotSseRuntimeLike, CopilotSseRuntimeOptions, IdentifyUserCallback, McpAppsConfig, McpAppsServerConfig, VERSION, isIntelligenceRuntime } from "./runtime/runtime.mjs";
|
|
6
|
-
import {
|
|
5
|
+
import { CopilotIntelligenceRuntime, CopilotIntelligenceRuntimeLike, CopilotIntelligenceRuntimeOptions, CopilotRuntime, CopilotRuntimeLike, CopilotRuntimeOptions, CopilotRuntimeUser, CopilotSseRuntime, CopilotSseRuntimeLike, CopilotSseRuntimeOptions, IdentifyUserCallback, McpAppsConfig, McpAppsServerConfig, OpenGenerativeUIConfig, OpenGenerativeUIOptions, VERSION, isIntelligenceRuntime } from "./runtime/core/runtime.mjs";
|
|
6
|
+
import { CopilotCorsConfig } from "./runtime/core/fetch-cors.mjs";
|
|
7
|
+
import { CopilotRuntimeHooks, ErrorHookContext, HandlerHookContext, HookContext, ResponseHookContext, RouteInfo } from "./runtime/core/hooks.mjs";
|
|
8
|
+
import { CopilotEndpointCorsConfig, createCopilotEndpoint, createCopilotHonoHandler, toFetchCorsConfig } from "./runtime/endpoints/hono.mjs";
|
|
7
9
|
import { createCopilotEndpointSingleRoute } from "./runtime/endpoints/hono-single.mjs";
|
|
8
|
-
import {
|
|
10
|
+
import { CopilotExpressEndpointParams, createCopilotExpressHandler } from "./runtime/endpoints/express.mjs";
|
|
9
11
|
import { createCopilotEndpointSingleRouteExpress } from "./runtime/endpoints/express-single.mjs";
|
|
10
12
|
import { InMemoryAgentRunner } from "./runtime/runner/in-memory.mjs";
|
|
11
13
|
import { IntelligenceAgentRunner, IntelligenceAgentRunnerOptions } from "./runtime/runner/intelligence.mjs";
|
|
12
14
|
import { finalizeRunEvents } from "./runtime/runner/index.mjs";
|
|
13
|
-
import "./runtime/
|
|
15
|
+
import { CopilotRuntimeFetchHandler, CopilotRuntimeHandlerOptions, createCopilotRuntimeHandler } from "./runtime/core/fetch-handler.mjs";
|
|
16
|
+
import { CopilotKitRequestHandler } from "./runtime/index.mjs";
|
|
14
17
|
import { BasicAgent, BasicAgentConfiguration, BuiltInAgent, BuiltInAgentConfiguration, BuiltInAgentModel, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, MessageConversionOptions, ModelSpecifier, OverridableProperty, ToolDefinition, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, defineTool, resolveModel } from "../agent/index.mjs";
|
|
15
|
-
export { AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, BasicAgent, BasicAgentConfiguration, BuiltInAgent, BuiltInAgentConfiguration, BuiltInAgentModel, CopilotEndpointCorsConfig, CopilotIntelligenceRuntime, CopilotIntelligenceRuntimeLike, CopilotIntelligenceRuntimeOptions, CopilotKitIntelligence, CopilotKitIntelligenceConfig, CopilotRuntime, CopilotRuntimeLike, CopilotRuntimeOptions, CopilotRuntimeUser, CopilotSseRuntime, CopilotSseRuntimeLike, CopilotSseRuntimeOptions, CreateThreadRequest, IdentifyUserCallback, InMemoryAgentRunner, IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, ListThreadsResponse, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, McpAppsConfig, McpAppsServerConfig, MessageConversionOptions, ModelSpecifier, OverridableProperty, SubscribeToThreadsRequest, SubscribeToThreadsResponse, ThreadSummary, ToolDefinition, TranscribeFileOptions, TranscriptionService, UpdateThreadRequest, VERSION, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, defineTool, finalizeRunEvents, isIntelligenceRuntime, resolveModel };
|
|
18
|
+
export { AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, BasicAgent, BasicAgentConfiguration, BuiltInAgent, BuiltInAgentConfiguration, BuiltInAgentModel, CopilotCorsConfig, CopilotEndpointCorsConfig, CopilotExpressEndpointParams, CopilotIntelligenceRuntime, CopilotIntelligenceRuntimeLike, CopilotIntelligenceRuntimeOptions, CopilotKitIntelligence, CopilotKitIntelligenceConfig, CopilotKitRequestHandler, CopilotRuntime, CopilotRuntimeFetchHandler, CopilotRuntimeHandlerOptions, CopilotRuntimeHooks, CopilotRuntimeLike, CopilotRuntimeOptions, CopilotRuntimeUser, CopilotSseRuntime, CopilotSseRuntimeLike, CopilotSseRuntimeOptions, CreateThreadRequest, ErrorHookContext, HandlerHookContext, HookContext, IdentifyUserCallback, InMemoryAgentRunner, IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, ListThreadsResponse, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, McpAppsConfig, McpAppsServerConfig, MessageConversionOptions, ModelSpecifier, OpenGenerativeUIConfig, OpenGenerativeUIOptions, OverridableProperty, ResponseHookContext, RouteInfo, SubscribeToThreadsRequest, SubscribeToThreadsResponse, ThreadSummary, ToolDefinition, TranscribeFileOptions, TranscriptionService, UpdateThreadRequest, VERSION, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, createCopilotEndpoint, createCopilotExpressHandler as createCopilotEndpointExpress, createCopilotExpressHandler, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotHonoHandler, createCopilotRuntimeHandler, defineTool, finalizeRunEvents, isIntelligenceRuntime, resolveModel, toFetchCorsConfig };
|
package/dist/v2/index.mjs
CHANGED
|
@@ -2,14 +2,15 @@ import "reflect-metadata";
|
|
|
2
2
|
import { AgentRunner } from "./runtime/runner/agent-runner.mjs";
|
|
3
3
|
import { InMemoryAgentRunner } from "./runtime/runner/in-memory.mjs";
|
|
4
4
|
import { IntelligenceAgentRunner } from "./runtime/runner/intelligence.mjs";
|
|
5
|
-
import { CopilotIntelligenceRuntime, CopilotRuntime, CopilotSseRuntime, VERSION, isIntelligenceRuntime } from "./runtime/runtime.mjs";
|
|
5
|
+
import { CopilotIntelligenceRuntime, CopilotRuntime, CopilotSseRuntime, VERSION, isIntelligenceRuntime } from "./runtime/core/runtime.mjs";
|
|
6
6
|
import { CopilotKitIntelligence } from "./runtime/intelligence-platform/client.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { createCopilotRuntimeHandler } from "./runtime/core/fetch-handler.mjs";
|
|
8
|
+
import { createCopilotEndpoint, createCopilotHonoHandler, toFetchCorsConfig } from "./runtime/endpoints/hono.mjs";
|
|
8
9
|
import { createCopilotEndpointSingleRoute } from "./runtime/endpoints/hono-single.mjs";
|
|
9
|
-
import {
|
|
10
|
+
import { createCopilotExpressHandler } from "./runtime/endpoints/express.mjs";
|
|
10
11
|
import { createCopilotEndpointSingleRouteExpress } from "./runtime/endpoints/express-single.mjs";
|
|
11
12
|
import { finalizeRunEvents } from "./runtime/runner/index.mjs";
|
|
12
13
|
import { TranscriptionService } from "./runtime/transcription-service/transcription-service.mjs";
|
|
13
14
|
import { BasicAgent, BuiltInAgent, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, defineTool, resolveModel } from "../agent/index.mjs";
|
|
14
15
|
|
|
15
|
-
export { AgentRunner, BasicAgent, BuiltInAgent, CopilotIntelligenceRuntime, CopilotKitIntelligence, CopilotRuntime, CopilotSseRuntime, InMemoryAgentRunner, IntelligenceAgentRunner, TranscriptionService, VERSION, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, defineTool, finalizeRunEvents, isIntelligenceRuntime, resolveModel };
|
|
16
|
+
export { AgentRunner, BasicAgent, BuiltInAgent, CopilotIntelligenceRuntime, CopilotKitIntelligence, CopilotRuntime, CopilotSseRuntime, InMemoryAgentRunner, IntelligenceAgentRunner, TranscriptionService, VERSION, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, createCopilotEndpoint, createCopilotExpressHandler as createCopilotEndpointExpress, createCopilotExpressHandler, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotHonoHandler, createCopilotRuntimeHandler, defineTool, finalizeRunEvents, isIntelligenceRuntime, resolveModel, toFetchCorsConfig };
|
package/dist/v2/node.cjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
require("reflect-metadata");
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
+
const require_node_fetch_handler = require('./runtime/endpoints/node-fetch-handler.cjs');
|
|
4
|
+
const require_node = require('./runtime/endpoints/node.cjs');
|
|
5
|
+
|
|
6
|
+
exports.createCopilotNodeHandler = require_node_fetch_handler.createCopilotNodeHandler;
|
|
7
|
+
exports.createCopilotNodeListener = require_node.createCopilotNodeListener;
|
|
8
|
+
exports.createNodeFetchHandler = require_node_fetch_handler.createNodeFetchHandler;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
import { NodeFetchHandler, createCopilotNodeHandler, createNodeFetchHandler } from "./runtime/endpoints/node-fetch-handler.cjs";
|
|
3
|
+
import { createCopilotNodeListener } from "./runtime/endpoints/node.cjs";
|
|
4
|
+
import "./runtime/node.cjs";
|
|
5
|
+
export { NodeFetchHandler, createCopilotNodeHandler, createCopilotNodeListener, createNodeFetchHandler };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { NodeFetchHandler, createCopilotNodeHandler, createNodeFetchHandler } from "./runtime/endpoints/node-fetch-handler.mjs";
|
|
3
|
+
import { createCopilotNodeListener } from "./runtime/endpoints/node.mjs";
|
|
4
|
+
import "./runtime/node.mjs";
|
|
5
|
+
export { NodeFetchHandler, createCopilotNodeHandler, createCopilotNodeListener, createNodeFetchHandler };
|
package/dist/v2/node.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { createCopilotNodeHandler, createNodeFetchHandler } from "./runtime/endpoints/node-fetch-handler.mjs";
|
|
3
|
+
import { createCopilotNodeListener } from "./runtime/endpoints/node.mjs";
|
|
4
|
+
|
|
5
|
+
export { createCopilotNodeHandler, createCopilotNodeListener, createNodeFetchHandler };
|