@copilotkit/react-core 2.0.0-next.1 → 2.0.0-rc.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/LICENSE +21 -0
- package/README.md +18 -12
- package/dist/MarkdownRendererContext-B4Us6mwL.d.cts +954 -0
- package/dist/MarkdownRendererContext-B4Us6mwL.d.cts.map +1 -0
- package/dist/MarkdownRendererContext-CRKFzsEB.d.mts +954 -0
- package/dist/MarkdownRendererContext-CRKFzsEB.d.mts.map +1 -0
- package/dist/MarkdownSurfaces-C2XZISKn.cjs +3964 -0
- package/dist/MarkdownSurfaces-C2XZISKn.cjs.map +1 -0
- package/dist/MarkdownSurfaces-ChSlVYOk.mjs +3655 -0
- package/dist/MarkdownSurfaces-ChSlVYOk.mjs.map +1 -0
- package/dist/context.cjs +144 -0
- package/dist/context.cjs.map +1 -0
- package/dist/context.d.cts +166 -0
- package/dist/context.d.cts.map +1 -0
- package/dist/context.d.mts +166 -0
- package/dist/context.d.mts.map +1 -0
- package/dist/context.mjs +136 -0
- package/dist/context.mjs.map +1 -0
- package/dist/generative-ui.cjs +8151 -0
- package/dist/generative-ui.cjs.map +1 -0
- package/dist/generative-ui.d.cts +4952 -0
- package/dist/generative-ui.d.cts.map +1 -0
- package/dist/generative-ui.d.mts +4952 -0
- package/dist/generative-ui.d.mts.map +1 -0
- package/dist/generative-ui.mjs +8137 -0
- package/dist/generative-ui.mjs.map +1 -0
- package/dist/headless.cjs +1927 -0
- package/dist/headless.cjs.map +1 -0
- package/dist/headless.d.cts +1117 -0
- package/dist/headless.d.cts.map +1 -0
- package/dist/headless.d.mts +1008 -0
- package/dist/headless.d.mts.map +1 -0
- package/dist/headless.mjs +1869 -0
- package/dist/headless.mjs.map +1 -0
- package/dist/index.cjs +15576 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +2 -0
- package/dist/index.d.cts +3450 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +3433 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +13927 -146
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +18856 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +124 -52
- package/CHANGELOG.md +0 -4210
- package/dist/chunk-2IDV5OHF.mjs +0 -11
- package/dist/chunk-2IDV5OHF.mjs.map +0 -1
- package/dist/chunk-36KQV2NA.mjs +0 -1
- package/dist/chunk-36KQV2NA.mjs.map +0 -1
- package/dist/chunk-3V5TOYKW.mjs +0 -120
- package/dist/chunk-3V5TOYKW.mjs.map +0 -1
- package/dist/chunk-4CEQJ2X6.mjs +0 -31
- package/dist/chunk-4CEQJ2X6.mjs.map +0 -1
- package/dist/chunk-4RRMC7L2.mjs +0 -32
- package/dist/chunk-4RRMC7L2.mjs.map +0 -1
- package/dist/chunk-4YZA2BZC.mjs +0 -551
- package/dist/chunk-4YZA2BZC.mjs.map +0 -1
- package/dist/chunk-53K6WNJG.mjs +0 -36
- package/dist/chunk-53K6WNJG.mjs.map +0 -1
- package/dist/chunk-6ESSSQ7Q.mjs +0 -134
- package/dist/chunk-6ESSSQ7Q.mjs.map +0 -1
- package/dist/chunk-6PUNP7CD.mjs +0 -102
- package/dist/chunk-6PUNP7CD.mjs.map +0 -1
- package/dist/chunk-6YOKPWQ7.mjs +0 -1
- package/dist/chunk-6YOKPWQ7.mjs.map +0 -1
- package/dist/chunk-6ZLPNY7X.mjs +0 -225
- package/dist/chunk-6ZLPNY7X.mjs.map +0 -1
- package/dist/chunk-7DTB7S5V.mjs +0 -83
- package/dist/chunk-7DTB7S5V.mjs.map +0 -1
- package/dist/chunk-7IBF6RBW.mjs +0 -23
- package/dist/chunk-7IBF6RBW.mjs.map +0 -1
- package/dist/chunk-A6NKSGH3.mjs +0 -1
- package/dist/chunk-A6NKSGH3.mjs.map +0 -1
- package/dist/chunk-ABWT4DRT.mjs +0 -24
- package/dist/chunk-ABWT4DRT.mjs.map +0 -1
- package/dist/chunk-AFNWX62Q.mjs +0 -110
- package/dist/chunk-AFNWX62Q.mjs.map +0 -1
- package/dist/chunk-BUSWSDYO.mjs +0 -17
- package/dist/chunk-BUSWSDYO.mjs.map +0 -1
- package/dist/chunk-CDUIA2WM.mjs +0 -60
- package/dist/chunk-CDUIA2WM.mjs.map +0 -1
- package/dist/chunk-CYDWEPFL.mjs +0 -1
- package/dist/chunk-CYDWEPFL.mjs.map +0 -1
- package/dist/chunk-DMLQZG75.mjs +0 -25
- package/dist/chunk-DMLQZG75.mjs.map +0 -1
- package/dist/chunk-E7SE25ZU.mjs +0 -59
- package/dist/chunk-E7SE25ZU.mjs.map +0 -1
- package/dist/chunk-EFL5OBKN.mjs +0 -310
- package/dist/chunk-EFL5OBKN.mjs.map +0 -1
- package/dist/chunk-F555TVE4.mjs +0 -33
- package/dist/chunk-F555TVE4.mjs.map +0 -1
- package/dist/chunk-FD6FGKYY.mjs +0 -1
- package/dist/chunk-FD6FGKYY.mjs.map +0 -1
- package/dist/chunk-FDOMAPJY.mjs +0 -59
- package/dist/chunk-FDOMAPJY.mjs.map +0 -1
- package/dist/chunk-FQFXYAV7.mjs +0 -86
- package/dist/chunk-FQFXYAV7.mjs.map +0 -1
- package/dist/chunk-GPEJNVE5.mjs +0 -80
- package/dist/chunk-GPEJNVE5.mjs.map +0 -1
- package/dist/chunk-HE22TZMF.mjs +0 -186
- package/dist/chunk-HE22TZMF.mjs.map +0 -1
- package/dist/chunk-I76HKHPJ.mjs +0 -32
- package/dist/chunk-I76HKHPJ.mjs.map +0 -1
- package/dist/chunk-ICIK2BSB.mjs +0 -17
- package/dist/chunk-ICIK2BSB.mjs.map +0 -1
- package/dist/chunk-JD7BAH7U.mjs +0 -1
- package/dist/chunk-JD7BAH7U.mjs.map +0 -1
- package/dist/chunk-LHERIF3L.mjs +0 -83
- package/dist/chunk-LHERIF3L.mjs.map +0 -1
- package/dist/chunk-LSHFN2Y5.mjs +0 -349
- package/dist/chunk-LSHFN2Y5.mjs.map +0 -1
- package/dist/chunk-LUGEI4YQ.mjs +0 -1
- package/dist/chunk-LUGEI4YQ.mjs.map +0 -1
- package/dist/chunk-NB2FKV2V.mjs +0 -1
- package/dist/chunk-NB2FKV2V.mjs.map +0 -1
- package/dist/chunk-NBK4KBLX.mjs +0 -54
- package/dist/chunk-NBK4KBLX.mjs.map +0 -1
- package/dist/chunk-O7ARI5CV.mjs +0 -31
- package/dist/chunk-O7ARI5CV.mjs.map +0 -1
- package/dist/chunk-PIF5KJYI.mjs +0 -103
- package/dist/chunk-PIF5KJYI.mjs.map +0 -1
- package/dist/chunk-PMAFHQ7P.mjs +0 -65
- package/dist/chunk-PMAFHQ7P.mjs.map +0 -1
- package/dist/chunk-QNUAXSDP.mjs +0 -166
- package/dist/chunk-QNUAXSDP.mjs.map +0 -1
- package/dist/chunk-RKTVJRK7.mjs +0 -143
- package/dist/chunk-RKTVJRK7.mjs.map +0 -1
- package/dist/chunk-SKC7AJIV.mjs +0 -61
- package/dist/chunk-SKC7AJIV.mjs.map +0 -1
- package/dist/chunk-SPCZTZCY.mjs +0 -1
- package/dist/chunk-SPCZTZCY.mjs.map +0 -1
- package/dist/chunk-VV56AVPB.mjs +0 -125
- package/dist/chunk-VV56AVPB.mjs.map +0 -1
- package/dist/chunk-WF65O6HX.mjs +0 -66
- package/dist/chunk-WF65O6HX.mjs.map +0 -1
- package/dist/chunk-XDFVCQD3.mjs +0 -27
- package/dist/chunk-XDFVCQD3.mjs.map +0 -1
- package/dist/chunk-YCG6SNAU.mjs +0 -759
- package/dist/chunk-YCG6SNAU.mjs.map +0 -1
- package/dist/chunk-YTQHRJUA.mjs +0 -86
- package/dist/chunk-YTQHRJUA.mjs.map +0 -1
- package/dist/chunk-YYN33GSG.mjs +0 -73
- package/dist/chunk-YYN33GSG.mjs.map +0 -1
- package/dist/chunk-Z6JV2LRY.mjs +0 -37
- package/dist/chunk-Z6JV2LRY.mjs.map +0 -1
- package/dist/chunk-ZVF5Q6IH.mjs +0 -29
- package/dist/chunk-ZVF5Q6IH.mjs.map +0 -1
- package/dist/chunk-ZYTXB6HH.mjs +0 -151
- package/dist/chunk-ZYTXB6HH.mjs.map +0 -1
- package/dist/components/CopilotListeners.d.ts +0 -3
- package/dist/components/CopilotListeners.js +0 -101
- package/dist/components/CopilotListeners.js.map +0 -1
- package/dist/components/CopilotListeners.mjs +0 -9
- package/dist/components/CopilotListeners.mjs.map +0 -1
- package/dist/components/copilot-provider/copilot-messages.d.ts +0 -24
- package/dist/components/copilot-provider/copilot-messages.js +0 -351
- package/dist/components/copilot-provider/copilot-messages.js.map +0 -1
- package/dist/components/copilot-provider/copilot-messages.mjs +0 -16
- package/dist/components/copilot-provider/copilot-messages.mjs.map +0 -1
- package/dist/components/copilot-provider/copilotkit-props.d.ts +0 -160
- package/dist/components/copilot-provider/copilotkit-props.js +0 -19
- package/dist/components/copilot-provider/copilotkit-props.js.map +0 -1
- package/dist/components/copilot-provider/copilotkit-props.mjs +0 -1
- package/dist/components/copilot-provider/copilotkit-props.mjs.map +0 -1
- package/dist/components/copilot-provider/copilotkit.d.ts +0 -19
- package/dist/components/copilot-provider/copilotkit.js +0 -1960
- package/dist/components/copilot-provider/copilotkit.js.map +0 -1
- package/dist/components/copilot-provider/copilotkit.mjs +0 -31
- package/dist/components/copilot-provider/copilotkit.mjs.map +0 -1
- package/dist/components/copilot-provider/index.d.ts +0 -14
- package/dist/components/copilot-provider/index.js +0 -1960
- package/dist/components/copilot-provider/index.js.map +0 -1
- package/dist/components/copilot-provider/index.mjs +0 -30
- package/dist/components/copilot-provider/index.mjs.map +0 -1
- package/dist/components/dev-console/console-trigger.d.ts +0 -8
- package/dist/components/dev-console/console-trigger.js +0 -1202
- package/dist/components/dev-console/console-trigger.js.map +0 -1
- package/dist/components/dev-console/console-trigger.mjs +0 -233
- package/dist/components/dev-console/console-trigger.mjs.map +0 -1
- package/dist/components/dev-console/developer-console-modal.d.ts +0 -10
- package/dist/components/dev-console/developer-console-modal.js +0 -987
- package/dist/components/dev-console/developer-console-modal.js.map +0 -1
- package/dist/components/dev-console/developer-console-modal.mjs +0 -12
- package/dist/components/dev-console/developer-console-modal.mjs.map +0 -1
- package/dist/components/dev-console/icons.d.ts +0 -9
- package/dist/components/dev-console/icons.js +0 -131
- package/dist/components/dev-console/icons.js.map +0 -1
- package/dist/components/dev-console/icons.mjs +0 -16
- package/dist/components/dev-console/icons.mjs.map +0 -1
- package/dist/components/error-boundary/error-boundary.d.ts +0 -31
- package/dist/components/error-boundary/error-boundary.js +0 -500
- package/dist/components/error-boundary/error-boundary.js.map +0 -1
- package/dist/components/error-boundary/error-boundary.mjs +0 -15
- package/dist/components/error-boundary/error-boundary.mjs.map +0 -1
- package/dist/components/error-boundary/error-utils.d.ts +0 -11
- package/dist/components/error-boundary/error-utils.js +0 -190
- package/dist/components/error-boundary/error-utils.js.map +0 -1
- package/dist/components/error-boundary/error-utils.mjs +0 -14
- package/dist/components/error-boundary/error-utils.mjs.map +0 -1
- package/dist/components/index.d.ts +0 -14
- package/dist/components/index.js +0 -1960
- package/dist/components/index.js.map +0 -1
- package/dist/components/index.mjs +0 -31
- package/dist/components/index.mjs.map +0 -1
- package/dist/components/toast/exclamation-mark-icon.d.ts +0 -9
- package/dist/components/toast/exclamation-mark-icon.js +0 -55
- package/dist/components/toast/exclamation-mark-icon.js.map +0 -1
- package/dist/components/toast/exclamation-mark-icon.mjs +0 -8
- package/dist/components/toast/exclamation-mark-icon.mjs.map +0 -1
- package/dist/components/toast/toast-provider.d.ts +0 -27
- package/dist/components/toast/toast-provider.js +0 -347
- package/dist/components/toast/toast-provider.js.map +0 -1
- package/dist/components/toast/toast-provider.mjs +0 -10
- package/dist/components/toast/toast-provider.mjs.map +0 -1
- package/dist/components/usage-banner.d.ts +0 -29
- package/dist/components/usage-banner.js +0 -247
- package/dist/components/usage-banner.js.map +0 -1
- package/dist/components/usage-banner.mjs +0 -12
- package/dist/components/usage-banner.mjs.map +0 -1
- package/dist/context/coagent-state-renders-context.d.ts +0 -24
- package/dist/context/coagent-state-renders-context.js +0 -91
- package/dist/context/coagent-state-renders-context.js.map +0 -1
- package/dist/context/coagent-state-renders-context.mjs +0 -12
- package/dist/context/coagent-state-renders-context.mjs.map +0 -1
- package/dist/context/copilot-context.d.ts +0 -10
- package/dist/context/copilot-context.js +0 -161
- package/dist/context/copilot-context.js.map +0 -1
- package/dist/context/copilot-context.mjs +0 -10
- package/dist/context/copilot-context.mjs.map +0 -1
- package/dist/context/copilot-messages-context.d.ts +0 -18
- package/dist/context/copilot-messages-context.js +0 -60
- package/dist/context/copilot-messages-context.js.map +0 -1
- package/dist/context/copilot-messages-context.mjs +0 -10
- package/dist/context/copilot-messages-context.mjs.map +0 -1
- package/dist/context/index.d.ts +0 -15
- package/dist/context/index.js +0 -285
- package/dist/context/index.js.map +0 -1
- package/dist/context/index.mjs +0 -33
- package/dist/context/index.mjs.map +0 -1
- package/dist/context/threads-context.d.ts +0 -16
- package/dist/context/threads-context.js +0 -59
- package/dist/context/threads-context.js.map +0 -1
- package/dist/context/threads-context.mjs +0 -12
- package/dist/context/threads-context.mjs.map +0 -1
- package/dist/copilot-context-ec77e921.d.ts +0 -209
- package/dist/hooks/index.d.ts +0 -33
- package/dist/hooks/index.js +0 -1774
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -91
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/hooks/use-agent-nodename.d.ts +0 -3
- package/dist/hooks/use-agent-nodename.js +0 -56
- package/dist/hooks/use-agent-nodename.js.map +0 -1
- package/dist/hooks/use-agent-nodename.mjs +0 -8
- package/dist/hooks/use-agent-nodename.mjs.map +0 -1
- package/dist/hooks/use-coagent-state-render-bridge.d.ts +0 -100
- package/dist/hooks/use-coagent-state-render-bridge.js +0 -214
- package/dist/hooks/use-coagent-state-render-bridge.js.map +0 -1
- package/dist/hooks/use-coagent-state-render-bridge.mjs +0 -15
- package/dist/hooks/use-coagent-state-render-bridge.mjs.map +0 -1
- package/dist/hooks/use-coagent-state-render.d.ts +0 -55
- package/dist/hooks/use-coagent-state-render.js +0 -255
- package/dist/hooks/use-coagent-state-render.js.map +0 -1
- package/dist/hooks/use-coagent-state-render.mjs +0 -11
- package/dist/hooks/use-coagent-state-render.mjs.map +0 -1
- package/dist/hooks/use-coagent.d.ts +0 -192
- package/dist/hooks/use-coagent.js +0 -233
- package/dist/hooks/use-coagent.js.map +0 -1
- package/dist/hooks/use-coagent.mjs +0 -9
- package/dist/hooks/use-coagent.mjs.map +0 -1
- package/dist/hooks/use-configure-chat-suggestions.d.ts +0 -36
- package/dist/hooks/use-configure-chat-suggestions.js +0 -79
- package/dist/hooks/use-configure-chat-suggestions.js.map +0 -1
- package/dist/hooks/use-configure-chat-suggestions.mjs +0 -47
- package/dist/hooks/use-configure-chat-suggestions.mjs.map +0 -1
- package/dist/hooks/use-copilot-action.d.ts +0 -103
- package/dist/hooks/use-copilot-action.js +0 -295
- package/dist/hooks/use-copilot-action.js.map +0 -1
- package/dist/hooks/use-copilot-action.mjs +0 -11
- package/dist/hooks/use-copilot-action.mjs.map +0 -1
- package/dist/hooks/use-copilot-additional-instructions.d.ts +0 -26
- package/dist/hooks/use-copilot-additional-instructions.js +0 -177
- package/dist/hooks/use-copilot-additional-instructions.js.map +0 -1
- package/dist/hooks/use-copilot-additional-instructions.mjs +0 -9
- package/dist/hooks/use-copilot-additional-instructions.mjs.map +0 -1
- package/dist/hooks/use-copilot-authenticated-action.d.ts +0 -18
- package/dist/hooks/use-copilot-authenticated-action.js +0 -462
- package/dist/hooks/use-copilot-authenticated-action.js.map +0 -1
- package/dist/hooks/use-copilot-authenticated-action.mjs +0 -13
- package/dist/hooks/use-copilot-authenticated-action.mjs.map +0 -1
- package/dist/hooks/use-copilot-chat-headless_c.d.ts +0 -25
- package/dist/hooks/use-copilot-chat-headless_c.js +0 -1044
- package/dist/hooks/use-copilot-chat-headless_c.js.map +0 -1
- package/dist/hooks/use-copilot-chat-headless_c.mjs +0 -24
- package/dist/hooks/use-copilot-chat-headless_c.mjs.map +0 -1
- package/dist/hooks/use-copilot-chat-suggestions.d.ts +0 -35
- package/dist/hooks/use-copilot-chat-suggestions.js +0 -60
- package/dist/hooks/use-copilot-chat-suggestions.js.map +0 -1
- package/dist/hooks/use-copilot-chat-suggestions.mjs +0 -8
- package/dist/hooks/use-copilot-chat-suggestions.mjs.map +0 -1
- package/dist/hooks/use-copilot-chat.d.ts +0 -92
- package/dist/hooks/use-copilot-chat.js +0 -978
- package/dist/hooks/use-copilot-chat.js.map +0 -1
- package/dist/hooks/use-copilot-chat.mjs +0 -21
- package/dist/hooks/use-copilot-chat.mjs.map +0 -1
- package/dist/hooks/use-copilot-chat_internal.d.ts +0 -244
- package/dist/hooks/use-copilot-chat_internal.js +0 -976
- package/dist/hooks/use-copilot-chat_internal.js.map +0 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +0 -22
- package/dist/hooks/use-copilot-chat_internal.mjs.map +0 -1
- package/dist/hooks/use-copilot-readable.d.ts +0 -37
- package/dist/hooks/use-copilot-readable.js +0 -61
- package/dist/hooks/use-copilot-readable.js.map +0 -1
- package/dist/hooks/use-copilot-readable.mjs +0 -8
- package/dist/hooks/use-copilot-readable.mjs.map +0 -1
- package/dist/hooks/use-copilot-runtime-client.d.ts +0 -10
- package/dist/hooks/use-copilot-runtime-client.js +0 -203
- package/dist/hooks/use-copilot-runtime-client.js.map +0 -1
- package/dist/hooks/use-copilot-runtime-client.mjs +0 -9
- package/dist/hooks/use-copilot-runtime-client.mjs.map +0 -1
- package/dist/hooks/use-default-tool.d.ts +0 -8
- package/dist/hooks/use-default-tool.js +0 -302
- package/dist/hooks/use-default-tool.js.map +0 -1
- package/dist/hooks/use-default-tool.mjs +0 -12
- package/dist/hooks/use-default-tool.mjs.map +0 -1
- package/dist/hooks/use-flat-category-store.d.ts +0 -9
- package/dist/hooks/use-flat-category-store.js +0 -93
- package/dist/hooks/use-flat-category-store.js.map +0 -1
- package/dist/hooks/use-flat-category-store.mjs +0 -8
- package/dist/hooks/use-flat-category-store.mjs.map +0 -1
- package/dist/hooks/use-frontend-tool.d.ts +0 -11
- package/dist/hooks/use-frontend-tool.js +0 -104
- package/dist/hooks/use-frontend-tool.js.map +0 -1
- package/dist/hooks/use-frontend-tool.mjs +0 -8
- package/dist/hooks/use-frontend-tool.mjs.map +0 -1
- package/dist/hooks/use-human-in-the-loop.d.ts +0 -13
- package/dist/hooks/use-human-in-the-loop.js +0 -122
- package/dist/hooks/use-human-in-the-loop.js.map +0 -1
- package/dist/hooks/use-human-in-the-loop.mjs +0 -8
- package/dist/hooks/use-human-in-the-loop.mjs.map +0 -1
- package/dist/hooks/use-langgraph-interrupt-render.d.ts +0 -6
- package/dist/hooks/use-langgraph-interrupt-render.js +0 -318
- package/dist/hooks/use-langgraph-interrupt-render.js.map +0 -1
- package/dist/hooks/use-langgraph-interrupt-render.mjs +0 -14
- package/dist/hooks/use-langgraph-interrupt-render.mjs.map +0 -1
- package/dist/hooks/use-langgraph-interrupt.d.ts +0 -14
- package/dist/hooks/use-langgraph-interrupt.js +0 -201
- package/dist/hooks/use-langgraph-interrupt.js.map +0 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +0 -10
- package/dist/hooks/use-langgraph-interrupt.mjs.map +0 -1
- package/dist/hooks/use-lazy-tool-renderer.d.ts +0 -6
- package/dist/hooks/use-lazy-tool-renderer.js +0 -53
- package/dist/hooks/use-lazy-tool-renderer.js.map +0 -1
- package/dist/hooks/use-lazy-tool-renderer.mjs +0 -8
- package/dist/hooks/use-lazy-tool-renderer.mjs.map +0 -1
- package/dist/hooks/use-make-copilot-document-readable.d.ts +0 -12
- package/dist/hooks/use-make-copilot-document-readable.js +0 -176
- package/dist/hooks/use-make-copilot-document-readable.js.map +0 -1
- package/dist/hooks/use-make-copilot-document-readable.mjs +0 -9
- package/dist/hooks/use-make-copilot-document-readable.mjs.map +0 -1
- package/dist/hooks/use-render-tool-call.d.ts +0 -12
- package/dist/hooks/use-render-tool-call.js +0 -90
- package/dist/hooks/use-render-tool-call.js.map +0 -1
- package/dist/hooks/use-render-tool-call.mjs +0 -8
- package/dist/hooks/use-render-tool-call.mjs.map +0 -1
- package/dist/hooks/use-tree.d.ts +0 -19
- package/dist/hooks/use-tree.js +0 -175
- package/dist/hooks/use-tree.js.map +0 -1
- package/dist/hooks/use-tree.mjs +0 -8
- package/dist/hooks/use-tree.mjs.map +0 -1
- package/dist/index.d.ts +0 -43
- package/dist/index.js +0 -3528
- package/dist/index.js.map +0 -1
- package/dist/lib/copilot-task.d.ts +0 -97
- package/dist/lib/copilot-task.js +0 -194
- package/dist/lib/copilot-task.js.map +0 -1
- package/dist/lib/copilot-task.mjs +0 -31
- package/dist/lib/copilot-task.mjs.map +0 -1
- package/dist/lib/index.d.ts +0 -11
- package/dist/lib/index.js +0 -196
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/index.mjs +0 -32
- package/dist/lib/index.mjs.map +0 -1
- package/dist/lib/status-checker.d.ts +0 -17
- package/dist/lib/status-checker.js +0 -102
- package/dist/lib/status-checker.js.map +0 -1
- package/dist/lib/status-checker.mjs +0 -8
- package/dist/lib/status-checker.mjs.map +0 -1
- package/dist/setupTests.d.ts +0 -2
- package/dist/setupTests.js +0 -26
- package/dist/setupTests.js.map +0 -1
- package/dist/setupTests.mjs +0 -24
- package/dist/setupTests.mjs.map +0 -1
- package/dist/types/chat-suggestion-configuration.d.ts +0 -22
- package/dist/types/chat-suggestion-configuration.js +0 -19
- package/dist/types/chat-suggestion-configuration.js.map +0 -1
- package/dist/types/chat-suggestion-configuration.mjs +0 -1
- package/dist/types/chat-suggestion-configuration.mjs.map +0 -1
- package/dist/types/coagent-action.d.ts +0 -29
- package/dist/types/coagent-action.js +0 -19
- package/dist/types/coagent-action.js.map +0 -1
- package/dist/types/coagent-action.mjs +0 -1
- package/dist/types/coagent-action.mjs.map +0 -1
- package/dist/types/coagent-state.d.ts +0 -15
- package/dist/types/coagent-state.js +0 -19
- package/dist/types/coagent-state.js.map +0 -1
- package/dist/types/coagent-state.mjs +0 -1
- package/dist/types/coagent-state.mjs.map +0 -1
- package/dist/types/crew.d.ts +0 -79
- package/dist/types/crew.js +0 -19
- package/dist/types/crew.js.map +0 -1
- package/dist/types/crew.mjs +0 -2
- package/dist/types/crew.mjs.map +0 -1
- package/dist/types/document-pointer.d.ts +0 -9
- package/dist/types/document-pointer.js +0 -19
- package/dist/types/document-pointer.js.map +0 -1
- package/dist/types/document-pointer.mjs +0 -1
- package/dist/types/document-pointer.mjs.map +0 -1
- package/dist/types/frontend-action.d.ts +0 -127
- package/dist/types/frontend-action.js +0 -53
- package/dist/types/frontend-action.js.map +0 -1
- package/dist/types/frontend-action.mjs +0 -8
- package/dist/types/frontend-action.mjs.map +0 -1
- package/dist/types/index.d.ts +0 -12
- package/dist/types/index.js +0 -19
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.mjs +0 -4
- package/dist/types/index.mjs.map +0 -1
- package/dist/types/interrupt-action.d.ts +0 -10
- package/dist/types/interrupt-action.js +0 -19
- package/dist/types/interrupt-action.js.map +0 -1
- package/dist/types/interrupt-action.mjs +0 -2
- package/dist/types/interrupt-action.mjs.map +0 -1
- package/dist/types/system-message.d.ts +0 -3
- package/dist/types/system-message.js +0 -19
- package/dist/types/system-message.js.map +0 -1
- package/dist/types/system-message.mjs +0 -1
- package/dist/types/system-message.mjs.map +0 -1
- package/dist/utils/dev-console.d.ts +0 -3
- package/dist/utils/dev-console.js +0 -41
- package/dist/utils/dev-console.js.map +0 -1
- package/dist/utils/dev-console.mjs +0 -8
- package/dist/utils/dev-console.mjs.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -52
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -13
- package/dist/utils/index.mjs.map +0 -1
- package/dist/utils/suggestions-constants.d.ts +0 -9
- package/dist/utils/suggestions-constants.js +0 -35
- package/dist/utils/suggestions-constants.js.map +0 -1
- package/dist/utils/suggestions-constants.mjs +0 -8
- package/dist/utils/suggestions-constants.mjs.map +0 -1
- package/dist/utils/utils.d.ts +0 -2
- package/dist/utils/utils.js +0 -19
- package/dist/utils/utils.js.map +0 -1
- package/dist/utils/utils.mjs +0 -1
- package/dist/utils/utils.mjs.map +0 -1
- package/dist/v2/index.css +0 -4
- package/dist/v2/index.css.map +0 -1
- package/dist/v2/index.d.ts +0 -2
- package/dist/v2/index.js +0 -27
- package/dist/v2/index.js.map +0 -1
- package/dist/v2/index.mjs +0 -6
- package/dist/v2/index.mjs.map +0 -1
- package/jest.config.js +0 -25
- package/src/components/CopilotListeners.tsx +0 -81
- package/src/components/copilot-provider/__tests__/copilotkit-error.test.tsx +0 -75
- package/src/components/copilot-provider/copilot-messages.tsx +0 -274
- package/src/components/copilot-provider/copilotkit-props.tsx +0 -169
- package/src/components/copilot-provider/copilotkit.tsx +0 -671
- package/src/components/copilot-provider/index.ts +0 -3
- package/src/components/dev-console/console-trigger.tsx +0 -254
- package/src/components/dev-console/developer-console-modal.tsx +0 -866
- package/src/components/dev-console/icons.tsx +0 -101
- package/src/components/error-boundary/error-boundary.tsx +0 -91
- package/src/components/error-boundary/error-utils.tsx +0 -100
- package/src/components/index.ts +0 -1
- package/src/components/toast/exclamation-mark-icon.tsx +0 -27
- package/src/components/toast/toast-provider.tsx +0 -363
- package/src/components/usage-banner.tsx +0 -259
- package/src/context/coagent-state-renders-context.tsx +0 -76
- package/src/context/copilot-context.tsx +0 -332
- package/src/context/copilot-messages-context.tsx +0 -35
- package/src/context/index.ts +0 -16
- package/src/context/threads-context.tsx +0 -41
- package/src/hooks/__tests__/use-coagent-config.test.ts +0 -351
- package/src/hooks/index.ts +0 -34
- package/src/hooks/use-agent-nodename.ts +0 -30
- package/src/hooks/use-coagent-state-render-bridge.tsx +0 -293
- package/src/hooks/use-coagent-state-render.ts +0 -152
- package/src/hooks/use-coagent.ts +0 -366
- package/src/hooks/use-configure-chat-suggestions.tsx +0 -86
- package/src/hooks/use-copilot-action.ts +0 -236
- package/src/hooks/use-copilot-additional-instructions.ts +0 -85
- package/src/hooks/use-copilot-authenticated-action.ts +0 -70
- package/src/hooks/use-copilot-chat-headless_c.ts +0 -258
- package/src/hooks/use-copilot-chat-suggestions.tsx +0 -124
- package/src/hooks/use-copilot-chat.ts +0 -130
- package/src/hooks/use-copilot-chat_internal.ts +0 -696
- package/src/hooks/use-copilot-readable.ts +0 -135
- package/src/hooks/use-copilot-runtime-client.ts +0 -164
- package/src/hooks/use-default-tool.ts +0 -7
- package/src/hooks/use-flat-category-store.ts +0 -105
- package/src/hooks/use-frontend-tool.ts +0 -96
- package/src/hooks/use-human-in-the-loop.ts +0 -122
- package/src/hooks/use-langgraph-interrupt-render.ts +0 -136
- package/src/hooks/use-langgraph-interrupt.ts +0 -36
- package/src/hooks/use-lazy-tool-renderer.tsx +0 -30
- package/src/hooks/use-make-copilot-document-readable.ts +0 -30
- package/src/hooks/use-render-tool-call.ts +0 -80
- package/src/hooks/use-tree.ts +0 -207
- package/src/index.tsx +0 -7
- package/src/lib/copilot-task.ts +0 -201
- package/src/lib/index.ts +0 -1
- package/src/lib/status-checker.ts +0 -64
- package/src/setupTests.ts +0 -26
- package/src/types/chat-suggestion-configuration.ts +0 -23
- package/src/types/coagent-action.ts +0 -31
- package/src/types/coagent-state.ts +0 -13
- package/src/types/crew.ts +0 -89
- package/src/types/document-pointer.ts +0 -7
- package/src/types/frontend-action.ts +0 -202
- package/src/types/index.ts +0 -17
- package/src/types/interrupt-action.ts +0 -43
- package/src/types/system-message.ts +0 -4
- package/src/utils/dev-console.ts +0 -19
- package/src/utils/index.ts +0 -2
- package/src/utils/suggestions-constants.ts +0 -8
- package/src/utils/utils.test.ts +0 -7
- package/src/utils/utils.ts +0 -8
- package/src/v2/index.css +0 -1
- package/src/v2/index.ts +0 -4
- package/tsconfig.json +0 -8
- package/tsup.config.ts +0 -16
- package/typedoc.json +0 -4
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/document-pointer.ts
|
|
17
|
-
var document_pointer_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(document_pointer_exports);
|
|
19
|
-
//# sourceMappingURL=document-pointer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/document-pointer.ts"],"sourcesContent":["export interface DocumentPointer {\n id: string;\n name: string;\n sourceApplication: string;\n iconImageUri: string;\n getContents: () => string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=document-pointer.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { ActionInputAvailability } from '@copilotkit/runtime-client-gql';
|
|
2
|
-
import { Parameter, Action, MappedParameterTypes } from '@copilotkit/shared';
|
|
3
|
-
import React__default from 'react';
|
|
4
|
-
|
|
5
|
-
interface InProgressState<T extends Parameter[] | [] = []> {
|
|
6
|
-
status: "inProgress";
|
|
7
|
-
args: Partial<MappedParameterTypes<T>>;
|
|
8
|
-
result: undefined;
|
|
9
|
-
}
|
|
10
|
-
interface ExecutingState<T extends Parameter[] | [] = []> {
|
|
11
|
-
status: "executing";
|
|
12
|
-
args: MappedParameterTypes<T>;
|
|
13
|
-
result: undefined;
|
|
14
|
-
}
|
|
15
|
-
interface CompleteState<T extends Parameter[] | [] = []> {
|
|
16
|
-
status: "complete";
|
|
17
|
-
args: MappedParameterTypes<T>;
|
|
18
|
-
result: any;
|
|
19
|
-
}
|
|
20
|
-
interface InProgressStateNoArgs<T extends Parameter[] | [] = []> {
|
|
21
|
-
status: "inProgress";
|
|
22
|
-
args: Partial<MappedParameterTypes<T>>;
|
|
23
|
-
result: undefined;
|
|
24
|
-
}
|
|
25
|
-
interface ExecutingStateNoArgs<T extends Parameter[] | [] = []> {
|
|
26
|
-
status: "executing";
|
|
27
|
-
args: MappedParameterTypes<T>;
|
|
28
|
-
result: undefined;
|
|
29
|
-
}
|
|
30
|
-
interface CompleteStateNoArgs<T extends Parameter[] | [] = []> {
|
|
31
|
-
status: "complete";
|
|
32
|
-
args: MappedParameterTypes<T>;
|
|
33
|
-
result: any;
|
|
34
|
-
}
|
|
35
|
-
interface InProgressStateWait<T extends Parameter[] | [] = []> {
|
|
36
|
-
status: "inProgress";
|
|
37
|
-
args: Partial<MappedParameterTypes<T>>;
|
|
38
|
-
/** @deprecated use respond instead */
|
|
39
|
-
handler: undefined;
|
|
40
|
-
respond: undefined;
|
|
41
|
-
result: undefined;
|
|
42
|
-
}
|
|
43
|
-
interface ExecutingStateWait<T extends Parameter[] | [] = []> {
|
|
44
|
-
status: "executing";
|
|
45
|
-
args: MappedParameterTypes<T>;
|
|
46
|
-
/** @deprecated use respond instead */
|
|
47
|
-
handler: (result: any) => void;
|
|
48
|
-
respond: (result: any) => void;
|
|
49
|
-
result: undefined;
|
|
50
|
-
}
|
|
51
|
-
interface CompleteStateWait<T extends Parameter[] | [] = []> {
|
|
52
|
-
status: "complete";
|
|
53
|
-
args: MappedParameterTypes<T>;
|
|
54
|
-
/** @deprecated use respond instead */
|
|
55
|
-
handler: undefined;
|
|
56
|
-
respond: undefined;
|
|
57
|
-
result: any;
|
|
58
|
-
}
|
|
59
|
-
interface InProgressStateNoArgsWait<T extends Parameter[] | [] = []> {
|
|
60
|
-
status: "inProgress";
|
|
61
|
-
args: Partial<MappedParameterTypes<T>>;
|
|
62
|
-
/** @deprecated use respond instead */
|
|
63
|
-
handler: undefined;
|
|
64
|
-
respond: undefined;
|
|
65
|
-
result: undefined;
|
|
66
|
-
}
|
|
67
|
-
interface ExecutingStateNoArgsWait<T extends Parameter[] | [] = []> {
|
|
68
|
-
status: "executing";
|
|
69
|
-
args: MappedParameterTypes<T>;
|
|
70
|
-
/** @deprecated use respond instead */
|
|
71
|
-
handler: (result: any) => void;
|
|
72
|
-
respond: (result: any) => void;
|
|
73
|
-
result: undefined;
|
|
74
|
-
}
|
|
75
|
-
interface CompleteStateNoArgsWait<T extends Parameter[] | [] = []> {
|
|
76
|
-
status: "complete";
|
|
77
|
-
args: MappedParameterTypes<T>;
|
|
78
|
-
/** @deprecated use respond instead */
|
|
79
|
-
handler: undefined;
|
|
80
|
-
respond: undefined;
|
|
81
|
-
}
|
|
82
|
-
type ActionRenderProps<T extends Parameter[] | [] = []> = CompleteState<T> | ExecutingState<T> | InProgressState<T>;
|
|
83
|
-
type ActionRenderPropsNoArgs<T extends Parameter[] | [] = []> = CompleteStateNoArgs<T> | ExecutingStateNoArgs<T> | InProgressStateNoArgs<T>;
|
|
84
|
-
type ActionRenderPropsWait<T extends Parameter[] | [] = []> = CompleteStateWait<T> | ExecutingStateWait<T> | InProgressStateWait<T>;
|
|
85
|
-
type ActionRenderPropsNoArgsWait<T extends Parameter[] | [] = []> = CompleteStateNoArgsWait<T> | ExecutingStateNoArgsWait<T> | InProgressStateNoArgsWait<T>;
|
|
86
|
-
type CatchAllActionRenderProps<T extends Parameter[] | [] = []> = (CompleteState<T> & {
|
|
87
|
-
name: string;
|
|
88
|
-
}) | (ExecutingState<T> & {
|
|
89
|
-
name: string;
|
|
90
|
-
}) | (InProgressState<T> & {
|
|
91
|
-
name: string;
|
|
92
|
-
});
|
|
93
|
-
type FrontendActionAvailability = "disabled" | "enabled" | "remote" | "frontend";
|
|
94
|
-
type FrontendAction<T extends Parameter[] | [] = [], N extends string = string> = Action<T> & {
|
|
95
|
-
name: Exclude<N, "*">;
|
|
96
|
-
/**
|
|
97
|
-
* @deprecated Use `available` instead.
|
|
98
|
-
*/
|
|
99
|
-
disabled?: boolean;
|
|
100
|
-
available?: FrontendActionAvailability;
|
|
101
|
-
pairedAction?: string;
|
|
102
|
-
followUp?: boolean;
|
|
103
|
-
} & ({
|
|
104
|
-
render?: string | (T extends [] ? (props: ActionRenderPropsNoArgs<T>) => string | React__default.ReactElement : (props: ActionRenderProps<T>) => string | React__default.ReactElement);
|
|
105
|
-
/** @deprecated use renderAndWaitForResponse instead */
|
|
106
|
-
renderAndWait?: never;
|
|
107
|
-
renderAndWaitForResponse?: never;
|
|
108
|
-
} | {
|
|
109
|
-
render?: never;
|
|
110
|
-
/** @deprecated use renderAndWaitForResponse instead */
|
|
111
|
-
renderAndWait?: T extends [] ? (props: ActionRenderPropsNoArgsWait<T>) => React__default.ReactElement : (props: ActionRenderPropsWait<T>) => React__default.ReactElement;
|
|
112
|
-
renderAndWaitForResponse?: T extends [] ? (props: ActionRenderPropsNoArgsWait<T>) => React__default.ReactElement : (props: ActionRenderPropsWait<T>) => React__default.ReactElement;
|
|
113
|
-
handler?: never;
|
|
114
|
-
});
|
|
115
|
-
type CatchAllFrontendAction = {
|
|
116
|
-
name: "*";
|
|
117
|
-
render: (props: CatchAllActionRenderProps<any>) => React__default.ReactElement;
|
|
118
|
-
};
|
|
119
|
-
type RenderFunctionStatus = ActionRenderProps<any>["status"];
|
|
120
|
-
declare function processActionsForRuntimeRequest(actions: FrontendAction<any>[]): {
|
|
121
|
-
name: string;
|
|
122
|
-
description: string;
|
|
123
|
-
jsonSchema: string;
|
|
124
|
-
available: ActionInputAvailability;
|
|
125
|
-
}[];
|
|
126
|
-
|
|
127
|
-
export { ActionRenderProps, ActionRenderPropsNoArgs, ActionRenderPropsNoArgsWait, ActionRenderPropsWait, CatchAllActionRenderProps, CatchAllFrontendAction, FrontendAction, FrontendActionAvailability, RenderFunctionStatus, processActionsForRuntimeRequest };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/types/frontend-action.ts
|
|
21
|
-
var frontend_action_exports = {};
|
|
22
|
-
__export(frontend_action_exports, {
|
|
23
|
-
processActionsForRuntimeRequest: () => processActionsForRuntimeRequest
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(frontend_action_exports);
|
|
26
|
-
var import_runtime_client_gql = require("@copilotkit/runtime-client-gql");
|
|
27
|
-
var import_shared = require("@copilotkit/shared");
|
|
28
|
-
function processActionsForRuntimeRequest(actions) {
|
|
29
|
-
const filteredActions = actions.filter(
|
|
30
|
-
(action) => action.available !== import_runtime_client_gql.ActionInputAvailability.Disabled && action.disabled !== true && action.name !== "*" && action.available != "frontend" && !action.pairedAction
|
|
31
|
-
).map((action) => {
|
|
32
|
-
let available = import_runtime_client_gql.ActionInputAvailability.Enabled;
|
|
33
|
-
if (action.disabled) {
|
|
34
|
-
available = import_runtime_client_gql.ActionInputAvailability.Disabled;
|
|
35
|
-
} else if (action.available === "disabled") {
|
|
36
|
-
available = import_runtime_client_gql.ActionInputAvailability.Disabled;
|
|
37
|
-
} else if (action.available === "remote") {
|
|
38
|
-
available = import_runtime_client_gql.ActionInputAvailability.Remote;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
name: action.name,
|
|
42
|
-
description: action.description || "",
|
|
43
|
-
jsonSchema: JSON.stringify((0, import_shared.actionParametersToJsonSchema)(action.parameters || [])),
|
|
44
|
-
available
|
|
45
|
-
};
|
|
46
|
-
});
|
|
47
|
-
return filteredActions;
|
|
48
|
-
}
|
|
49
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
-
0 && (module.exports = {
|
|
51
|
-
processActionsForRuntimeRequest
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=frontend-action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/frontend-action.ts"],"sourcesContent":["import { ActionInputAvailability } from \"@copilotkit/runtime-client-gql\";\nimport {\n Action,\n Parameter,\n MappedParameterTypes,\n actionParametersToJsonSchema,\n} from \"@copilotkit/shared\";\nimport React from \"react\";\n\ninterface InProgressState<T extends Parameter[] | [] = []> {\n status: \"inProgress\";\n args: Partial<MappedParameterTypes<T>>;\n result: undefined;\n}\n\ninterface ExecutingState<T extends Parameter[] | [] = []> {\n status: \"executing\";\n args: MappedParameterTypes<T>;\n result: undefined;\n}\n\ninterface CompleteState<T extends Parameter[] | [] = []> {\n status: \"complete\";\n args: MappedParameterTypes<T>;\n result: any;\n}\n\ninterface InProgressStateNoArgs<T extends Parameter[] | [] = []> {\n status: \"inProgress\";\n args: Partial<MappedParameterTypes<T>>;\n result: undefined;\n}\n\ninterface ExecutingStateNoArgs<T extends Parameter[] | [] = []> {\n status: \"executing\";\n args: MappedParameterTypes<T>;\n result: undefined;\n}\n\ninterface CompleteStateNoArgs<T extends Parameter[] | [] = []> {\n status: \"complete\";\n args: MappedParameterTypes<T>;\n result: any;\n}\n\ninterface InProgressStateWait<T extends Parameter[] | [] = []> {\n status: \"inProgress\";\n args: Partial<MappedParameterTypes<T>>;\n /** @deprecated use respond instead */\n handler: undefined;\n respond: undefined;\n result: undefined;\n}\n\ninterface ExecutingStateWait<T extends Parameter[] | [] = []> {\n status: \"executing\";\n args: MappedParameterTypes<T>;\n /** @deprecated use respond instead */\n handler: (result: any) => void;\n respond: (result: any) => void;\n result: undefined;\n}\n\ninterface CompleteStateWait<T extends Parameter[] | [] = []> {\n status: \"complete\";\n args: MappedParameterTypes<T>;\n /** @deprecated use respond instead */\n handler: undefined;\n respond: undefined;\n result: any;\n}\n\ninterface InProgressStateNoArgsWait<T extends Parameter[] | [] = []> {\n status: \"inProgress\";\n args: Partial<MappedParameterTypes<T>>;\n /** @deprecated use respond instead */\n handler: undefined;\n respond: undefined;\n result: undefined;\n}\n\ninterface ExecutingStateNoArgsWait<T extends Parameter[] | [] = []> {\n status: \"executing\";\n args: MappedParameterTypes<T>;\n /** @deprecated use respond instead */\n handler: (result: any) => void;\n respond: (result: any) => void;\n result: undefined;\n}\n\ninterface CompleteStateNoArgsWait<T extends Parameter[] | [] = []> {\n status: \"complete\";\n args: MappedParameterTypes<T>;\n /** @deprecated use respond instead */\n handler: undefined;\n respond: undefined;\n}\n\nexport type ActionRenderProps<T extends Parameter[] | [] = []> =\n | CompleteState<T>\n | ExecutingState<T>\n | InProgressState<T>;\n\nexport type ActionRenderPropsNoArgs<T extends Parameter[] | [] = []> =\n | CompleteStateNoArgs<T>\n | ExecutingStateNoArgs<T>\n | InProgressStateNoArgs<T>;\n\nexport type ActionRenderPropsWait<T extends Parameter[] | [] = []> =\n | CompleteStateWait<T>\n | ExecutingStateWait<T>\n | InProgressStateWait<T>;\n\nexport type ActionRenderPropsNoArgsWait<T extends Parameter[] | [] = []> =\n | CompleteStateNoArgsWait<T>\n | ExecutingStateNoArgsWait<T>\n | InProgressStateNoArgsWait<T>;\n\nexport type CatchAllActionRenderProps<T extends Parameter[] | [] = []> =\n | (CompleteState<T> & {\n name: string;\n })\n | (ExecutingState<T> & {\n name: string;\n })\n | (InProgressState<T> & {\n name: string;\n });\n\nexport type FrontendActionAvailability = \"disabled\" | \"enabled\" | \"remote\" | \"frontend\";\n\nexport type FrontendAction<\n T extends Parameter[] | [] = [],\n N extends string = string,\n> = Action<T> & {\n name: Exclude<N, \"*\">;\n /**\n * @deprecated Use `available` instead.\n */\n disabled?: boolean;\n available?: FrontendActionAvailability;\n pairedAction?: string;\n followUp?: boolean;\n} & (\n | {\n render?:\n | string\n | (T extends []\n ? (props: ActionRenderPropsNoArgs<T>) => string | React.ReactElement\n : (props: ActionRenderProps<T>) => string | React.ReactElement);\n /** @deprecated use renderAndWaitForResponse instead */\n renderAndWait?: never;\n renderAndWaitForResponse?: never;\n }\n | {\n render?: never;\n /** @deprecated use renderAndWaitForResponse instead */\n renderAndWait?: T extends []\n ? (props: ActionRenderPropsNoArgsWait<T>) => React.ReactElement\n : (props: ActionRenderPropsWait<T>) => React.ReactElement;\n renderAndWaitForResponse?: T extends []\n ? (props: ActionRenderPropsNoArgsWait<T>) => React.ReactElement\n : (props: ActionRenderPropsWait<T>) => React.ReactElement;\n handler?: never;\n }\n );\n\nexport type CatchAllFrontendAction = {\n name: \"*\";\n render: (props: CatchAllActionRenderProps<any>) => React.ReactElement;\n};\n\nexport type RenderFunctionStatus = ActionRenderProps<any>[\"status\"];\n\nexport function processActionsForRuntimeRequest(actions: FrontendAction<any>[]) {\n const filteredActions = actions\n .filter(\n (action) =>\n action.available !== ActionInputAvailability.Disabled &&\n action.disabled !== true &&\n action.name !== \"*\" &&\n action.available != \"frontend\" &&\n !action.pairedAction,\n )\n .map((action) => {\n let available: ActionInputAvailability | undefined = ActionInputAvailability.Enabled;\n if (action.disabled) {\n available = ActionInputAvailability.Disabled;\n } else if (action.available === \"disabled\") {\n available = ActionInputAvailability.Disabled;\n } else if (action.available === \"remote\") {\n available = ActionInputAvailability.Remote;\n }\n return {\n name: action.name,\n description: action.description || \"\",\n jsonSchema: JSON.stringify(actionParametersToJsonSchema(action.parameters || [])),\n available,\n };\n });\n return filteredActions;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAwC;AACxC,oBAKO;AAwKA,SAAS,gCAAgC,SAAgC;AAC9E,QAAM,kBAAkB,QACrB;AAAA,IACC,CAAC,WACC,OAAO,cAAc,kDAAwB,YAC7C,OAAO,aAAa,QACpB,OAAO,SAAS,OAChB,OAAO,aAAa,cACpB,CAAC,OAAO;AAAA,EACZ,EACC,IAAI,CAAC,WAAW;AACf,QAAI,YAAiD,kDAAwB;AAC7E,QAAI,OAAO,UAAU;AACnB,kBAAY,kDAAwB;AAAA,IACtC,WAAW,OAAO,cAAc,YAAY;AAC1C,kBAAY,kDAAwB;AAAA,IACtC,WAAW,OAAO,cAAc,UAAU;AACxC,kBAAY,kDAAwB;AAAA,IACtC;AACA,WAAO;AAAA,MACL,MAAM,OAAO;AAAA,MACb,aAAa,OAAO,eAAe;AAAA,MACnC,YAAY,KAAK,cAAU,4CAA6B,OAAO,cAAc,CAAC,CAAC,CAAC;AAAA,MAChF;AAAA,IACF;AAAA,EACF,CAAC;AACH,SAAO;AACT;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { DocumentPointer } from './document-pointer.js';
|
|
2
|
-
export { SystemMessageFunction } from './system-message.js';
|
|
3
|
-
export { ActionRenderProps, ActionRenderPropsNoArgs, ActionRenderPropsNoArgsWait, ActionRenderPropsWait, CatchAllActionRenderProps, CatchAllFrontendAction, FrontendAction, FrontendActionAvailability, RenderFunctionStatus } from './frontend-action.js';
|
|
4
|
-
export { CopilotChatSuggestionConfiguration } from './chat-suggestion-configuration.js';
|
|
5
|
-
export { CrewsAgentState, CrewsResponse, CrewsResponseStatus, CrewsStateItem, CrewsTaskStateItem, CrewsToolStateItem } from './crew.js';
|
|
6
|
-
export { f as LangGraphInterruptAction, h as LangGraphInterruptActionSetter, g as LangGraphInterruptActionSetterArgs, e as LangGraphInterruptRender, L as LangGraphInterruptRenderHandlerProps, d as LangGraphInterruptRenderProps, Q as QueuedInterruptEvent } from '../copilot-context-ec77e921.js';
|
|
7
|
-
import '@copilotkit/runtime-client-gql';
|
|
8
|
-
import '@copilotkit/shared';
|
|
9
|
-
import 'react';
|
|
10
|
-
import '../hooks/use-tree.js';
|
|
11
|
-
import './coagent-action.js';
|
|
12
|
-
import './coagent-state.js';
|
package/dist/types/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/index.ts
|
|
17
|
-
var types_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(types_exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export type { DocumentPointer } from \"./document-pointer\";\nexport type { SystemMessageFunction } from \"./system-message\";\nexport type {\n ActionRenderProps,\n ActionRenderPropsNoArgs,\n ActionRenderPropsWait,\n ActionRenderPropsNoArgsWait,\n FrontendAction,\n FrontendActionAvailability,\n RenderFunctionStatus,\n CatchAllActionRenderProps,\n CatchAllFrontendAction,\n} from \"./frontend-action\";\n\nexport type { CopilotChatSuggestionConfiguration } from \"./chat-suggestion-configuration\";\nexport * from \"./crew\";\nexport * from \"./interrupt-action\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/index.mjs
DELETED
package/dist/types/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import '@copilotkit/runtime-client-gql';
|
|
2
|
-
export { f as LangGraphInterruptAction, h as LangGraphInterruptActionSetter, g as LangGraphInterruptActionSetterArgs, e as LangGraphInterruptRender, L as LangGraphInterruptRenderHandlerProps, d as LangGraphInterruptRenderProps, Q as QueuedInterruptEvent } from '../copilot-context-ec77e921.js';
|
|
3
|
-
import '@copilotkit/shared';
|
|
4
|
-
import './frontend-action.js';
|
|
5
|
-
import 'react';
|
|
6
|
-
import '../hooks/use-tree.js';
|
|
7
|
-
import './document-pointer.js';
|
|
8
|
-
import './chat-suggestion-configuration.js';
|
|
9
|
-
import './coagent-action.js';
|
|
10
|
-
import './coagent-state.js';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/interrupt-action.ts
|
|
17
|
-
var interrupt_action_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(interrupt_action_exports);
|
|
19
|
-
//# sourceMappingURL=interrupt-action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/interrupt-action.ts"],"sourcesContent":["import { LangGraphInterruptEvent } from \"@copilotkit/runtime-client-gql\";\nimport { AgentSession } from \"../context/copilot-context\";\n\nexport interface LangGraphInterruptRenderHandlerProps<TEventValue = any> {\n event: LangGraphInterruptEvent<TEventValue>;\n resolve: (resolution: string) => void;\n}\n\nexport interface LangGraphInterruptRenderProps<TEventValue = any> {\n result: unknown;\n event: LangGraphInterruptEvent<TEventValue>;\n resolve: (resolution: string) => void;\n}\n\nexport interface LangGraphInterruptRender<TEventValue = any> {\n id: string;\n /**\n * The handler function to handle the event.\n */\n handler?: (props: LangGraphInterruptRenderHandlerProps<TEventValue>) => any | Promise<any>;\n /**\n * The render function to handle the event.\n */\n render?: (props: LangGraphInterruptRenderProps<TEventValue>) => string | React.ReactElement;\n /**\n * Method that returns a boolean, indicating if the interrupt action should run\n * Useful when using multiple interrupts\n */\n enabled?: (args: { eventValue: TEventValue; agentMetadata: AgentSession }) => boolean;\n}\n\nexport type LangGraphInterruptAction = LangGraphInterruptRender & {\n event?: LangGraphInterruptEvent;\n};\n\nexport type LangGraphInterruptActionSetterArgs = Partial<LangGraphInterruptRender> | null;\nexport type LangGraphInterruptActionSetter = (action: LangGraphInterruptActionSetterArgs) => void;\n\nexport interface QueuedInterruptEvent {\n eventId: string; // Generated unique ID for tracking\n threadId: string;\n event: LangGraphInterruptEvent;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/system-message.ts
|
|
17
|
-
var system_message_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(system_message_exports);
|
|
19
|
-
//# sourceMappingURL=system-message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/system-message.ts"],"sourcesContent":["export type SystemMessageFunction = (\n contextString: string,\n additionalInstructions?: string,\n) => string;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=system-message.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/utils/dev-console.ts
|
|
21
|
-
var dev_console_exports = {};
|
|
22
|
-
__export(dev_console_exports, {
|
|
23
|
-
shouldShowDevConsole: () => shouldShowDevConsole
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(dev_console_exports);
|
|
26
|
-
function isLocalhost() {
|
|
27
|
-
if (typeof window === "undefined")
|
|
28
|
-
return false;
|
|
29
|
-
return window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "0.0.0.0";
|
|
30
|
-
}
|
|
31
|
-
function shouldShowDevConsole(showDevConsole) {
|
|
32
|
-
if (showDevConsole !== void 0) {
|
|
33
|
-
return showDevConsole;
|
|
34
|
-
}
|
|
35
|
-
return isLocalhost();
|
|
36
|
-
}
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
shouldShowDevConsole
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=dev-console.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/dev-console.ts"],"sourcesContent":["function isLocalhost(): boolean {\n if (typeof window === \"undefined\") return false;\n\n return (\n window.location.hostname === \"localhost\" ||\n window.location.hostname === \"127.0.0.1\" ||\n window.location.hostname === \"0.0.0.0\"\n );\n}\n\nexport function shouldShowDevConsole(showDevConsole?: boolean): boolean {\n // If explicitly set, use that value\n if (showDevConsole !== undefined) {\n return showDevConsole;\n }\n\n // If not set, default to true on localhost\n return isLocalhost();\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAS,cAAuB;AAC9B,MAAI,OAAO,WAAW;AAAa,WAAO;AAE1C,SACE,OAAO,SAAS,aAAa,eAC7B,OAAO,SAAS,aAAa,eAC7B,OAAO,SAAS,aAAa;AAEjC;AAEO,SAAS,qBAAqB,gBAAmC;AAEtE,MAAI,mBAAmB,QAAW;AAChC,WAAO;AAAA,EACT;AAGA,SAAO,YAAY;AACrB;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/utils/index.d.ts
DELETED
package/dist/utils/index.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/utils/index.ts
|
|
21
|
-
var utils_exports = {};
|
|
22
|
-
__export(utils_exports, {
|
|
23
|
-
SUGGESTION_RETRY_CONFIG: () => SUGGESTION_RETRY_CONFIG,
|
|
24
|
-
shouldShowDevConsole: () => shouldShowDevConsole
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(utils_exports);
|
|
27
|
-
|
|
28
|
-
// src/utils/suggestions-constants.ts
|
|
29
|
-
var SUGGESTION_RETRY_CONFIG = {
|
|
30
|
-
MAX_RETRIES: 3,
|
|
31
|
-
COOLDOWN_MS: 5e3
|
|
32
|
-
// 5 seconds
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// src/utils/dev-console.ts
|
|
36
|
-
function isLocalhost() {
|
|
37
|
-
if (typeof window === "undefined")
|
|
38
|
-
return false;
|
|
39
|
-
return window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "0.0.0.0";
|
|
40
|
-
}
|
|
41
|
-
function shouldShowDevConsole(showDevConsole) {
|
|
42
|
-
if (showDevConsole !== void 0) {
|
|
43
|
-
return showDevConsole;
|
|
44
|
-
}
|
|
45
|
-
return isLocalhost();
|
|
46
|
-
}
|
|
47
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
-
0 && (module.exports = {
|
|
49
|
-
SUGGESTION_RETRY_CONFIG,
|
|
50
|
-
shouldShowDevConsole
|
|
51
|
-
});
|
|
52
|
-
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/index.ts","../../src/utils/suggestions-constants.ts","../../src/utils/dev-console.ts"],"sourcesContent":["export { SUGGESTION_RETRY_CONFIG } from \"./suggestions-constants\";\nexport * from \"./dev-console\";\n","/**\n * Constants for suggestions retry logic\n */\n\nexport const SUGGESTION_RETRY_CONFIG = {\n MAX_RETRIES: 3,\n COOLDOWN_MS: 5000, // 5 seconds\n} as const;\n","function isLocalhost(): boolean {\n if (typeof window === \"undefined\") return false;\n\n return (\n window.location.hostname === \"localhost\" ||\n window.location.hostname === \"127.0.0.1\" ||\n window.location.hostname === \"0.0.0.0\"\n );\n}\n\nexport function shouldShowDevConsole(showDevConsole?: boolean): boolean {\n // If explicitly set, use that value\n if (showDevConsole !== undefined) {\n return showDevConsole;\n }\n\n // If not set, default to true on localhost\n return isLocalhost();\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAM,0BAA0B;AAAA,EACrC,aAAa;AAAA,EACb,aAAa;AAAA;AACf;;;ACPA,SAAS,cAAuB;AAC9B,MAAI,OAAO,WAAW;AAAa,WAAO;AAE1C,SACE,OAAO,SAAS,aAAa,eAC7B,OAAO,SAAS,aAAa,eAC7B,OAAO,SAAS,aAAa;AAEjC;AAEO,SAAS,qBAAqB,gBAAmC;AAEtE,MAAI,mBAAmB,QAAW;AAChC,WAAO;AAAA,EACT;AAGA,SAAO,YAAY;AACrB;","names":[]}
|
package/dist/utils/index.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "../chunk-CYDWEPFL.mjs";
|
|
2
|
-
import {
|
|
3
|
-
SUGGESTION_RETRY_CONFIG
|
|
4
|
-
} from "../chunk-2IDV5OHF.mjs";
|
|
5
|
-
import {
|
|
6
|
-
shouldShowDevConsole
|
|
7
|
-
} from "../chunk-ICIK2BSB.mjs";
|
|
8
|
-
import "../chunk-SKC7AJIV.mjs";
|
|
9
|
-
export {
|
|
10
|
-
SUGGESTION_RETRY_CONFIG,
|
|
11
|
-
shouldShowDevConsole
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/utils/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/utils/suggestions-constants.ts
|
|
21
|
-
var suggestions_constants_exports = {};
|
|
22
|
-
__export(suggestions_constants_exports, {
|
|
23
|
-
SUGGESTION_RETRY_CONFIG: () => SUGGESTION_RETRY_CONFIG
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(suggestions_constants_exports);
|
|
26
|
-
var SUGGESTION_RETRY_CONFIG = {
|
|
27
|
-
MAX_RETRIES: 3,
|
|
28
|
-
COOLDOWN_MS: 5e3
|
|
29
|
-
// 5 seconds
|
|
30
|
-
};
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
SUGGESTION_RETRY_CONFIG
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=suggestions-constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/suggestions-constants.ts"],"sourcesContent":["/**\n * Constants for suggestions retry logic\n */\n\nexport const SUGGESTION_RETRY_CONFIG = {\n MAX_RETRIES: 3,\n COOLDOWN_MS: 5000, // 5 seconds\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,IAAM,0BAA0B;AAAA,EACrC,aAAa;AAAA,EACb,aAAa;AAAA;AACf;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/utils/utils.d.ts
DELETED
package/dist/utils/utils.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/utils/utils.ts
|
|
17
|
-
var utils_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(utils_exports);
|
|
19
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/utils/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/utils.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n actionParametersToJsonSchema,\n convertJsonSchemaToZodSchema,\n Parameter,\n} from \"@copilotkit/shared\";\n\nexport {};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/utils/utils.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=utils.mjs.map
|
package/dist/utils/utils.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/v2/index.css
DELETED
package/dist/v2/index.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/v2/index.d.ts
DELETED