@copilotkit/sdk-js 1.83.0 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"header-propagation.cjs","names":["AsyncLocalStorage"],"sources":["../src/header-propagation.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This file defines public v1 SDK exports. Use the exact v2 mappings below.\n * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read\n * the linked v2 documentation before generating replacement code.\n *\n * @copilotkit/sdk-js — getForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime/v2\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * @copilotkit/sdk-js — withForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime/v2\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nimport { AsyncLocalStorage } from \"node:async_hooks\";\n\ntype HeaderMap = Record<string, string>;\n\nconst headerStorage = new AsyncLocalStorage<HeaderMap>();\n\n/**\n * Filter incoming headers to only x-* prefixed headers.\n * Matches the CopilotKit runtime's extractForwardableHeaders() behavior.\n */\nfunction filterForwardableHeaders(headers: HeaderMap): HeaderMap {\n const filtered: HeaderMap = {};\n for (const [key, value] of Object.entries(headers)) {\n const lower = key.toLowerCase();\n if (lower.startsWith(\"x-\")) {\n filtered[lower] = value;\n }\n }\n return filtered;\n}\n\n/**\n * Run a callback with forwarded headers available via getForwardedHeaders().\n * Call this at the AG-UI request entry point.\n */\nexport function withForwardedHeaders<T>(headers: HeaderMap, fn: () => T): T {\n return headerStorage.run(filterForwardableHeaders(headers), fn);\n}\n\n/**\n * Get x-* prefixed headers that should be forwarded to outgoing LLM calls.\n * Returns empty object when called outside a withForwardedHeaders() scope\n * (demo traffic).\n */\nexport function getForwardedHeaders(): HeaderMap {\n return headerStorage.getStore() ?? {};\n}\n"],"mappings":";;;;AA4BA,MAAM,gBAAgB,IAAIA,oCAA8B;;;;;AAMxD,SAAS,yBAAyB,SAA+B;CAC/D,MAAM,WAAsB,EAAE;AAC9B,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,QAAQ,EAAE;EAClD,MAAM,QAAQ,IAAI,aAAa;AAC/B,MAAI,MAAM,WAAW,KAAK,CACxB,UAAS,SAAS;;AAGtB,QAAO;;;;;;AAOT,SAAgB,qBAAwB,SAAoB,IAAgB;AAC1E,QAAO,cAAc,IAAI,yBAAyB,QAAQ,EAAE,GAAG;;;;;;;AAQjE,SAAgB,sBAAiC;AAC/C,QAAO,cAAc,UAAU,IAAI,EAAE"}
1
+ {"version":3,"file":"header-propagation.cjs","names":["AsyncLocalStorage"],"sources":["../src/header-propagation.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This file defines public v1 SDK exports. Use the exact v2 mappings below.\n * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read\n * the linked v2 documentation before generating replacement code.\n *\n * @copilotkit/sdk-js — getForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * @copilotkit/sdk-js — withForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nimport { AsyncLocalStorage } from \"node:async_hooks\";\n\ntype HeaderMap = Record<string, string>;\n\nconst headerStorage = new AsyncLocalStorage<HeaderMap>();\n\n/**\n * Filter incoming headers to only x-* prefixed headers.\n * Matches the CopilotKit runtime's extractForwardableHeaders() behavior.\n */\nfunction filterForwardableHeaders(headers: HeaderMap): HeaderMap {\n const filtered: HeaderMap = {};\n for (const [key, value] of Object.entries(headers)) {\n const lower = key.toLowerCase();\n if (lower.startsWith(\"x-\")) {\n filtered[lower] = value;\n }\n }\n return filtered;\n}\n\n/**\n * Run a callback with forwarded headers available via getForwardedHeaders().\n * Call this at the AG-UI request entry point.\n */\nexport function withForwardedHeaders<T>(headers: HeaderMap, fn: () => T): T {\n return headerStorage.run(filterForwardableHeaders(headers), fn);\n}\n\n/**\n * Get x-* prefixed headers that should be forwarded to outgoing LLM calls.\n * Returns empty object when called outside a withForwardedHeaders() scope\n * (demo traffic).\n */\nexport function getForwardedHeaders(): HeaderMap {\n return headerStorage.getStore() ?? {};\n}\n"],"mappings":";;;;AA4BA,MAAM,gBAAgB,IAAIA,oCAA8B;;;;;AAMxD,SAAS,yBAAyB,SAA+B;CAC/D,MAAM,WAAsB,EAAE;AAC9B,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,QAAQ,EAAE;EAClD,MAAM,QAAQ,IAAI,aAAa;AAC/B,MAAI,MAAM,WAAW,KAAK,CACxB,UAAS,SAAS;;AAGtB,QAAO;;;;;;AAOT,SAAgB,qBAAwB,SAAoB,IAAgB;AAC1E,QAAO,cAAc,IAAI,yBAAyB,QAAQ,EAAE,GAAG;;;;;;;AAQjE,SAAgB,sBAAiC;AAC/C,QAAO,cAAc,UAAU,IAAI,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"header-propagation.mjs","names":[],"sources":["../src/header-propagation.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This file defines public v1 SDK exports. Use the exact v2 mappings below.\n * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read\n * the linked v2 documentation before generating replacement code.\n *\n * @copilotkit/sdk-js — getForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime/v2\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * @copilotkit/sdk-js — withForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime/v2\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nimport { AsyncLocalStorage } from \"node:async_hooks\";\n\ntype HeaderMap = Record<string, string>;\n\nconst headerStorage = new AsyncLocalStorage<HeaderMap>();\n\n/**\n * Filter incoming headers to only x-* prefixed headers.\n * Matches the CopilotKit runtime's extractForwardableHeaders() behavior.\n */\nfunction filterForwardableHeaders(headers: HeaderMap): HeaderMap {\n const filtered: HeaderMap = {};\n for (const [key, value] of Object.entries(headers)) {\n const lower = key.toLowerCase();\n if (lower.startsWith(\"x-\")) {\n filtered[lower] = value;\n }\n }\n return filtered;\n}\n\n/**\n * Run a callback with forwarded headers available via getForwardedHeaders().\n * Call this at the AG-UI request entry point.\n */\nexport function withForwardedHeaders<T>(headers: HeaderMap, fn: () => T): T {\n return headerStorage.run(filterForwardableHeaders(headers), fn);\n}\n\n/**\n * Get x-* prefixed headers that should be forwarded to outgoing LLM calls.\n * Returns empty object when called outside a withForwardedHeaders() scope\n * (demo traffic).\n */\nexport function getForwardedHeaders(): HeaderMap {\n return headerStorage.getStore() ?? {};\n}\n"],"mappings":";;;AA4BA,MAAM,gBAAgB,IAAI,mBAA8B;;;;;AAMxD,SAAS,yBAAyB,SAA+B;CAC/D,MAAM,WAAsB,EAAE;AAC9B,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,QAAQ,EAAE;EAClD,MAAM,QAAQ,IAAI,aAAa;AAC/B,MAAI,MAAM,WAAW,KAAK,CACxB,UAAS,SAAS;;AAGtB,QAAO;;;;;;AAOT,SAAgB,qBAAwB,SAAoB,IAAgB;AAC1E,QAAO,cAAc,IAAI,yBAAyB,QAAQ,EAAE,GAAG;;;;;;;AAQjE,SAAgB,sBAAiC;AAC/C,QAAO,cAAc,UAAU,IAAI,EAAE"}
1
+ {"version":3,"file":"header-propagation.mjs","names":[],"sources":["../src/header-propagation.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This file defines public v1 SDK exports. Use the exact v2 mappings below.\n * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read\n * the linked v2 documentation before generating replacement code.\n *\n * @copilotkit/sdk-js — getForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * @copilotkit/sdk-js — withForwardedHeaders:\n * No 1:1 v2 replacement is available.\n * Start at: @copilotkit/runtime\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n *\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nimport { AsyncLocalStorage } from \"node:async_hooks\";\n\ntype HeaderMap = Record<string, string>;\n\nconst headerStorage = new AsyncLocalStorage<HeaderMap>();\n\n/**\n * Filter incoming headers to only x-* prefixed headers.\n * Matches the CopilotKit runtime's extractForwardableHeaders() behavior.\n */\nfunction filterForwardableHeaders(headers: HeaderMap): HeaderMap {\n const filtered: HeaderMap = {};\n for (const [key, value] of Object.entries(headers)) {\n const lower = key.toLowerCase();\n if (lower.startsWith(\"x-\")) {\n filtered[lower] = value;\n }\n }\n return filtered;\n}\n\n/**\n * Run a callback with forwarded headers available via getForwardedHeaders().\n * Call this at the AG-UI request entry point.\n */\nexport function withForwardedHeaders<T>(headers: HeaderMap, fn: () => T): T {\n return headerStorage.run(filterForwardableHeaders(headers), fn);\n}\n\n/**\n * Get x-* prefixed headers that should be forwarded to outgoing LLM calls.\n * Returns empty object when called outside a withForwardedHeaders() scope\n * (demo traffic).\n */\nexport function getForwardedHeaders(): HeaderMap {\n return headerStorage.getStore() ?? {};\n}\n"],"mappings":";;;AA4BA,MAAM,gBAAgB,IAAI,mBAA8B;;;;;AAMxD,SAAS,yBAAyB,SAA+B;CAC/D,MAAM,WAAsB,EAAE;AAC9B,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,QAAQ,EAAE;EAClD,MAAM,QAAQ,IAAI,aAAa;AAC/B,MAAI,MAAM,WAAW,KAAK,CACxB,UAAS,SAAS;;AAGtB,QAAO;;;;;;AAOT,SAAgB,qBAAwB,SAAoB,IAAgB;AAC1E,QAAO,cAAc,IAAI,yBAAyB,QAAQ,EAAE,GAAG;;;;;;;AAQjE,SAAgB,sBAAiC;AAC/C,QAAO,cAAc,UAAU,IAAI,EAAE"}
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@ import { getForwardedHeaders, withForwardedHeaders } from "./header-propagation.
2
2
  export { /**
3
3
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
4
4
  * No 1:1 v2 replacement is available.
5
- * Start with `@copilotkit/runtime/v2`.
5
+ * Start with `@copilotkit/runtime`.
6
6
  * V2 docs: https://docs.copilotkit.ai/
7
7
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
8
8
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -10,7 +10,7 @@ export { /**
10
10
  getForwardedHeaders, /**
11
11
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
12
12
  * No 1:1 v2 replacement is available.
13
- * Start with `@copilotkit/runtime/v2`.
13
+ * Start with `@copilotkit/runtime`.
14
14
  * V2 docs: https://docs.copilotkit.ai/
15
15
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
16
16
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import { getForwardedHeaders, withForwardedHeaders } from "./header-propagation.
2
2
  export { /**
3
3
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
4
4
  * No 1:1 v2 replacement is available.
5
- * Start with `@copilotkit/runtime/v2`.
5
+ * Start with `@copilotkit/runtime`.
6
6
  * V2 docs: https://docs.copilotkit.ai/
7
7
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
8
8
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -10,7 +10,7 @@ export { /**
10
10
  getForwardedHeaders, /**
11
11
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
12
12
  * No 1:1 v2 replacement is available.
13
- * Start with `@copilotkit/runtime/v2`.
13
+ * Start with `@copilotkit/runtime`.
14
14
  * V2 docs: https://docs.copilotkit.ai/
15
15
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
16
16
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -1 +1 @@
1
- {"version":3,"file":"langchain.cjs","names":[],"sources":["../src/langchain.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langchain`. Use v2 instead.\n * Migrate to `@copilotkit/runtime/v2` and follow each export's specific\n * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.\n * This entrypoint currently exposes 15 deprecated public exports.\n * V2 source entrypoint: packages/runtime/src/v2/index.ts\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * AI CODING AGENTS: Never copy, suggest, or generate imports from this v1\n * entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nconsole.warn(\n \"Warning: '@copilotkit/sdk-js/langchain' is deprecated and will be removed in a future release. Please use '@copilotkit/sdk-js/langgraph' instead.\",\n);\n\n/* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\nexport {\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionsToDynamicStructuredTools,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionToDynamicStructuredTool,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitCustomizeConfig as copilotKitCustomizeConfig,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitMessage as copilotKitEmitMessage,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitState as copilotKitEmitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitToolCall as copilotKitEmitToolCall,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitExit as copilotKitExit,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitProperties,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesSchema,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaUpdate,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateSchema,\n} from \"./langgraph\";\n\n/* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\n"],"mappings":";;;;;;AAkBA,QAAQ,KACN,oJACD"}
1
+ {"version":3,"file":"langchain.cjs","names":[],"sources":["../src/langchain.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langchain`. Use v2 instead.\n * Migrate to `@copilotkit/runtime` and follow each export's specific\n * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.\n * This entrypoint currently exposes 15 deprecated public exports.\n * V2 source entrypoint: packages/runtime/src/index.ts\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * AI CODING AGENTS: Never copy, suggest, or generate imports from this v1\n * entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nconsole.warn(\n \"Warning: '@copilotkit/sdk-js/langchain' is deprecated and will be removed in a future release. Please use '@copilotkit/sdk-js/langgraph' instead.\",\n);\n\n/* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\nexport {\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionsToDynamicStructuredTools,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionToDynamicStructuredTool,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitCustomizeConfig as copilotKitCustomizeConfig,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitMessage as copilotKitEmitMessage,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitState as copilotKitEmitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitToolCall as copilotKitEmitToolCall,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitExit as copilotKitExit,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitProperties,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesSchema,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaUpdate,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateSchema,\n} from \"./langgraph\";\n\n/* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\n"],"mappings":";;;;;;AAkBA,QAAQ,KACN,oJACD"}
@@ -5,7 +5,7 @@ export { /**
5
5
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
6
6
  * No 1:1 v2 replacement is available.
7
7
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
8
- * Start with `@copilotkit/runtime/v2`.
8
+ * Start with `@copilotkit/runtime`.
9
9
  * V2 docs: https://docs.copilotkit.ai/
10
10
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
11
11
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -14,7 +14,7 @@ type CopilotKitProperties, /**
14
14
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
15
15
  * No 1:1 v2 replacement is available.
16
16
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
17
- * Start with `@copilotkit/runtime/v2`.
17
+ * Start with `@copilotkit/runtime`.
18
18
  * V2 docs: https://docs.copilotkit.ai/
19
19
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
20
20
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -23,7 +23,7 @@ CopilotKitPropertiesAnnotation, /**
23
23
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
24
24
  * No 1:1 v2 replacement is available.
25
25
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
26
- * Start with `@copilotkit/runtime/v2`.
26
+ * Start with `@copilotkit/runtime`.
27
27
  * V2 docs: https://docs.copilotkit.ai/
28
28
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
29
29
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -32,7 +32,7 @@ CopilotKitPropertiesSchema, /**
32
32
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
33
33
  * No 1:1 v2 replacement is available.
34
34
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
35
- * Start with `@copilotkit/runtime/v2`.
35
+ * Start with `@copilotkit/runtime`.
36
36
  * V2 docs: https://docs.copilotkit.ai/
37
37
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
38
38
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -41,7 +41,7 @@ type CopilotKitSchemaState, /**
41
41
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
42
42
  * No 1:1 v2 replacement is available.
43
43
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
44
- * Start with `@copilotkit/runtime/v2`.
44
+ * Start with `@copilotkit/runtime`.
45
45
  * V2 docs: https://docs.copilotkit.ai/
46
46
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
47
47
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -50,7 +50,7 @@ type CopilotKitSchemaUpdate, /**
50
50
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
51
51
  * No 1:1 v2 replacement is available.
52
52
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
53
- * Start with `@copilotkit/runtime/v2`.
53
+ * Start with `@copilotkit/runtime`.
54
54
  * V2 docs: https://docs.copilotkit.ai/
55
55
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
56
56
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -59,7 +59,7 @@ type CopilotKitState, /**
59
59
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
60
60
  * No 1:1 v2 replacement is available.
61
61
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
62
- * Start with `@copilotkit/runtime/v2`.
62
+ * Start with `@copilotkit/runtime`.
63
63
  * V2 docs: https://docs.copilotkit.ai/
64
64
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
65
65
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -68,7 +68,7 @@ CopilotKitStateAnnotation, /**
68
68
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
69
69
  * No 1:1 v2 replacement is available.
70
70
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
71
- * Start with `@copilotkit/runtime/v2`.
71
+ * Start with `@copilotkit/runtime`.
72
72
  * V2 docs: https://docs.copilotkit.ai/
73
73
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
74
74
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -77,7 +77,7 @@ CopilotKitStateSchema, /**
77
77
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
78
78
  * No 1:1 v2 replacement is available.
79
79
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
80
- * Start with `@copilotkit/runtime/v2`.
80
+ * Start with `@copilotkit/runtime`.
81
81
  * V2 docs: https://docs.copilotkit.ai/
82
82
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
83
83
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -86,7 +86,7 @@ convertActionToDynamicStructuredTool, /**
86
86
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
87
87
  * No 1:1 v2 replacement is available.
88
88
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
89
- * Start with `@copilotkit/runtime/v2`.
89
+ * Start with `@copilotkit/runtime`.
90
90
  * V2 docs: https://docs.copilotkit.ai/
91
91
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
92
92
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -95,7 +95,7 @@ convertActionsToDynamicStructuredTools, /**
95
95
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
96
96
  * No 1:1 v2 replacement is available.
97
97
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
98
- * Start with `@copilotkit/runtime/v2`.
98
+ * Start with `@copilotkit/runtime`.
99
99
  * V2 docs: https://docs.copilotkit.ai/
100
100
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
101
101
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -104,7 +104,7 @@ copilotkitCustomizeConfig as copilotKitCustomizeConfig, /**
104
104
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
105
105
  * No 1:1 v2 replacement is available.
106
106
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
107
- * Start with `@copilotkit/runtime/v2`.
107
+ * Start with `@copilotkit/runtime`.
108
108
  * V2 docs: https://docs.copilotkit.ai/
109
109
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
110
110
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -113,7 +113,7 @@ copilotkitEmitMessage as copilotKitEmitMessage, /**
113
113
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
114
114
  * No 1:1 v2 replacement is available.
115
115
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
116
- * Start with `@copilotkit/runtime/v2`.
116
+ * Start with `@copilotkit/runtime`.
117
117
  * V2 docs: https://docs.copilotkit.ai/
118
118
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
119
119
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -122,7 +122,7 @@ copilotkitEmitState as copilotKitEmitState, /**
122
122
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
123
123
  * No 1:1 v2 replacement is available.
124
124
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
125
- * Start with `@copilotkit/runtime/v2`.
125
+ * Start with `@copilotkit/runtime`.
126
126
  * V2 docs: https://docs.copilotkit.ai/
127
127
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
128
128
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -131,7 +131,7 @@ copilotkitEmitToolCall as copilotKitEmitToolCall, /**
131
131
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
132
132
  * No 1:1 v2 replacement is available.
133
133
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
134
- * Start with `@copilotkit/runtime/v2`.
134
+ * Start with `@copilotkit/runtime`.
135
135
  * V2 docs: https://docs.copilotkit.ai/
136
136
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
137
137
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -6,7 +6,7 @@ export { /**
6
6
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
7
7
  * No 1:1 v2 replacement is available.
8
8
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
9
- * Start with `@copilotkit/runtime/v2`.
9
+ * Start with `@copilotkit/runtime`.
10
10
  * V2 docs: https://docs.copilotkit.ai/
11
11
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
12
12
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -15,7 +15,7 @@ type CopilotKitProperties, /**
15
15
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
16
16
  * No 1:1 v2 replacement is available.
17
17
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
18
- * Start with `@copilotkit/runtime/v2`.
18
+ * Start with `@copilotkit/runtime`.
19
19
  * V2 docs: https://docs.copilotkit.ai/
20
20
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
21
21
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -24,7 +24,7 @@ CopilotKitPropertiesAnnotation, /**
24
24
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
25
25
  * No 1:1 v2 replacement is available.
26
26
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
27
- * Start with `@copilotkit/runtime/v2`.
27
+ * Start with `@copilotkit/runtime`.
28
28
  * V2 docs: https://docs.copilotkit.ai/
29
29
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
30
30
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -33,7 +33,7 @@ CopilotKitPropertiesSchema, /**
33
33
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
34
34
  * No 1:1 v2 replacement is available.
35
35
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
36
- * Start with `@copilotkit/runtime/v2`.
36
+ * Start with `@copilotkit/runtime`.
37
37
  * V2 docs: https://docs.copilotkit.ai/
38
38
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
39
39
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -42,7 +42,7 @@ type CopilotKitSchemaState, /**
42
42
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
43
43
  * No 1:1 v2 replacement is available.
44
44
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
45
- * Start with `@copilotkit/runtime/v2`.
45
+ * Start with `@copilotkit/runtime`.
46
46
  * V2 docs: https://docs.copilotkit.ai/
47
47
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
48
48
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -51,7 +51,7 @@ type CopilotKitSchemaUpdate, /**
51
51
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
52
52
  * No 1:1 v2 replacement is available.
53
53
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
54
- * Start with `@copilotkit/runtime/v2`.
54
+ * Start with `@copilotkit/runtime`.
55
55
  * V2 docs: https://docs.copilotkit.ai/
56
56
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
57
57
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -60,7 +60,7 @@ type CopilotKitState, /**
60
60
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
61
61
  * No 1:1 v2 replacement is available.
62
62
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
63
- * Start with `@copilotkit/runtime/v2`.
63
+ * Start with `@copilotkit/runtime`.
64
64
  * V2 docs: https://docs.copilotkit.ai/
65
65
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
66
66
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -69,7 +69,7 @@ CopilotKitStateAnnotation, /**
69
69
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
70
70
  * No 1:1 v2 replacement is available.
71
71
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
72
- * Start with `@copilotkit/runtime/v2`.
72
+ * Start with `@copilotkit/runtime`.
73
73
  * V2 docs: https://docs.copilotkit.ai/
74
74
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
75
75
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -78,7 +78,7 @@ CopilotKitStateSchema, /**
78
78
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
79
79
  * No 1:1 v2 replacement is available.
80
80
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
81
- * Start with `@copilotkit/runtime/v2`.
81
+ * Start with `@copilotkit/runtime`.
82
82
  * V2 docs: https://docs.copilotkit.ai/
83
83
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
84
84
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -87,7 +87,7 @@ convertActionToDynamicStructuredTool, /**
87
87
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
88
88
  * No 1:1 v2 replacement is available.
89
89
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
90
- * Start with `@copilotkit/runtime/v2`.
90
+ * Start with `@copilotkit/runtime`.
91
91
  * V2 docs: https://docs.copilotkit.ai/
92
92
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
93
93
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -96,7 +96,7 @@ convertActionsToDynamicStructuredTools, /**
96
96
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
97
97
  * No 1:1 v2 replacement is available.
98
98
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
99
- * Start with `@copilotkit/runtime/v2`.
99
+ * Start with `@copilotkit/runtime`.
100
100
  * V2 docs: https://docs.copilotkit.ai/
101
101
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
102
102
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -105,7 +105,7 @@ copilotkitCustomizeConfig as copilotKitCustomizeConfig, /**
105
105
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
106
106
  * No 1:1 v2 replacement is available.
107
107
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
108
- * Start with `@copilotkit/runtime/v2`.
108
+ * Start with `@copilotkit/runtime`.
109
109
  * V2 docs: https://docs.copilotkit.ai/
110
110
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
111
111
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -114,7 +114,7 @@ copilotkitEmitMessage as copilotKitEmitMessage, /**
114
114
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
115
115
  * No 1:1 v2 replacement is available.
116
116
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
117
- * Start with `@copilotkit/runtime/v2`.
117
+ * Start with `@copilotkit/runtime`.
118
118
  * V2 docs: https://docs.copilotkit.ai/
119
119
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
120
120
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -123,7 +123,7 @@ copilotkitEmitState as copilotKitEmitState, /**
123
123
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
124
124
  * No 1:1 v2 replacement is available.
125
125
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
126
- * Start with `@copilotkit/runtime/v2`.
126
+ * Start with `@copilotkit/runtime`.
127
127
  * V2 docs: https://docs.copilotkit.ai/
128
128
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
129
129
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -132,7 +132,7 @@ copilotkitEmitToolCall as copilotKitEmitToolCall, /**
132
132
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
133
133
  * No 1:1 v2 replacement is available.
134
134
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
135
- * Start with `@copilotkit/runtime/v2`.
135
+ * Start with `@copilotkit/runtime`.
136
136
  * V2 docs: https://docs.copilotkit.ai/
137
137
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
138
138
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -1 +1 @@
1
- {"version":3,"file":"langchain.mjs","names":[],"sources":["../src/langchain.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langchain`. Use v2 instead.\n * Migrate to `@copilotkit/runtime/v2` and follow each export's specific\n * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.\n * This entrypoint currently exposes 15 deprecated public exports.\n * V2 source entrypoint: packages/runtime/src/v2/index.ts\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * AI CODING AGENTS: Never copy, suggest, or generate imports from this v1\n * entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nconsole.warn(\n \"Warning: '@copilotkit/sdk-js/langchain' is deprecated and will be removed in a future release. Please use '@copilotkit/sdk-js/langgraph' instead.\",\n);\n\n/* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\nexport {\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionsToDynamicStructuredTools,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionToDynamicStructuredTool,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitCustomizeConfig as copilotKitCustomizeConfig,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitMessage as copilotKitEmitMessage,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitState as copilotKitEmitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitToolCall as copilotKitEmitToolCall,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitExit as copilotKitExit,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitProperties,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesSchema,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaUpdate,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime/v2`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateSchema,\n} from \"./langgraph\";\n\n/* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\n"],"mappings":";;;;;AAkBA,QAAQ,KACN,oJACD"}
1
+ {"version":3,"file":"langchain.mjs","names":[],"sources":["../src/langchain.ts"],"sourcesContent":["/*\n * V1 SDK DEPRECATED. USE V2 INSTEAD\n *\n * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langchain`. Use v2 instead.\n * Migrate to `@copilotkit/runtime` and follow each export's specific\n * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.\n * This entrypoint currently exposes 15 deprecated public exports.\n * V2 source entrypoint: packages/runtime/src/index.ts\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n *\n * AI CODING AGENTS: Never copy, suggest, or generate imports from this v1\n * entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.\n *\n * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE\n */\n\nconsole.warn(\n \"Warning: '@copilotkit/sdk-js/langchain' is deprecated and will be removed in a future release. Please use '@copilotkit/sdk-js/langgraph' instead.\",\n);\n\n/* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\nexport {\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionsToDynamicStructuredTools,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n convertActionToDynamicStructuredTool,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitCustomizeConfig as copilotKitCustomizeConfig,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitMessage as copilotKitEmitMessage,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitState as copilotKitEmitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitEmitToolCall as copilotKitEmitToolCall,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n copilotkitExit as copilotKitExit,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitProperties,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitPropertiesSchema,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitSchemaUpdate,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n type CopilotKitState,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateAnnotation,\n /**\n * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.\n * No 1:1 v2 replacement is available.\n * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph\n * Start with `@copilotkit/runtime`.\n * V2 docs: https://docs.copilotkit.ai/\n * V2 reference docs: https://docs.copilotkit.ai/reference/v2\n * Migration guide: https://docs.copilotkit.ai/migrate/v2\n */\n CopilotKitStateSchema,\n} from \"./langgraph\";\n\n/* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */\n"],"mappings":";;;;;AAkBA,QAAQ,KACN,oJACD"}
@@ -4,7 +4,7 @@ export { /**
4
4
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
5
5
  * No 1:1 v2 replacement is available.
6
6
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
7
- * Start with `@copilotkit/runtime/v2`.
7
+ * Start with `@copilotkit/runtime`.
8
8
  * V2 docs: https://docs.copilotkit.ai/
9
9
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
10
10
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -13,7 +13,7 @@ type StateItem, /**
13
13
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
14
14
  * No 1:1 v2 replacement is available.
15
15
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
16
- * Start with `@copilotkit/runtime/v2`.
16
+ * Start with `@copilotkit/runtime`.
17
17
  * V2 docs: https://docs.copilotkit.ai/
18
18
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
19
19
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -22,7 +22,7 @@ stateItem, /**
22
22
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
23
23
  * No 1:1 v2 replacement is available.
24
24
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
25
- * Start with `@copilotkit/runtime/v2`.
25
+ * Start with `@copilotkit/runtime`.
26
26
  * V2 docs: https://docs.copilotkit.ai/
27
27
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
28
28
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -4,7 +4,7 @@ export { /**
4
4
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
5
5
  * No 1:1 v2 replacement is available.
6
6
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
7
- * Start with `@copilotkit/runtime/v2`.
7
+ * Start with `@copilotkit/runtime`.
8
8
  * V2 docs: https://docs.copilotkit.ai/
9
9
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
10
10
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -13,7 +13,7 @@ type StateItem, /**
13
13
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
14
14
  * No 1:1 v2 replacement is available.
15
15
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
16
- * Start with `@copilotkit/runtime/v2`.
16
+ * Start with `@copilotkit/runtime`.
17
17
  * V2 docs: https://docs.copilotkit.ai/
18
18
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
19
19
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -22,7 +22,7 @@ stateItem, /**
22
22
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
23
23
  * No 1:1 v2 replacement is available.
24
24
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
25
- * Start with `@copilotkit/runtime/v2`.
25
+ * Start with `@copilotkit/runtime`.
26
26
  * V2 docs: https://docs.copilotkit.ai/
27
27
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
28
28
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/sdk-js",
3
- "version": "1.83.0",
3
+ "version": "2.0.0-rc.0",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -49,8 +49,8 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@ag-ui/langgraph": "0.0.44",
52
- "@standard-schema/spec": "^1.0.0",
53
- "@copilotkit/shared": "1.83.0"
52
+ "@copilotkit/shared": "2.0.0-rc.0",
53
+ "@standard-schema/spec": "^1.0.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@langchain/core": "^1.1.41",
@@ -7,13 +7,13 @@
7
7
  *
8
8
  * @copilotkit/sdk-js — getForwardedHeaders:
9
9
  * No 1:1 v2 replacement is available.
10
- * Start at: @copilotkit/runtime/v2
10
+ * Start at: @copilotkit/runtime
11
11
  * V2 docs: https://docs.copilotkit.ai/
12
12
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
13
  *
14
14
  * @copilotkit/sdk-js — withForwardedHeaders:
15
15
  * No 1:1 v2 replacement is available.
16
- * Start at: @copilotkit/runtime/v2
16
+ * Start at: @copilotkit/runtime
17
17
  * V2 docs: https://docs.copilotkit.ai/
18
18
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
19
19
  *
package/src/index.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  * V1 SDK DEPRECATED. USE V2 INSTEAD
3
3
  *
4
4
  * This is the deprecated v1 entrypoint `@copilotkit/sdk-js`. Use v2 instead.
5
- * Migrate to `@copilotkit/runtime/v2` and follow each export's specific
5
+ * Migrate to `@copilotkit/runtime` and follow each export's specific
6
6
  * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.
7
7
  * This entrypoint currently exposes 2 deprecated public exports.
8
- * V2 source entrypoint: packages/runtime/src/v2/index.ts
8
+ * V2 source entrypoint: packages/runtime/src/index.ts
9
9
  * V2 docs: https://docs.copilotkit.ai/
10
10
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
11
11
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -21,7 +21,7 @@ export {
21
21
  /**
22
22
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
23
23
  * No 1:1 v2 replacement is available.
24
- * Start with `@copilotkit/runtime/v2`.
24
+ * Start with `@copilotkit/runtime`.
25
25
  * V2 docs: https://docs.copilotkit.ai/
26
26
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
27
27
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -30,7 +30,7 @@ export {
30
30
  /**
31
31
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
32
32
  * No 1:1 v2 replacement is available.
33
- * Start with `@copilotkit/runtime/v2`.
33
+ * Start with `@copilotkit/runtime`.
34
34
  * V2 docs: https://docs.copilotkit.ai/
35
35
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
36
36
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
package/src/langchain.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  * V1 SDK DEPRECATED. USE V2 INSTEAD
3
3
  *
4
4
  * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langchain`. Use v2 instead.
5
- * Migrate to `@copilotkit/runtime/v2` and follow each export's specific
5
+ * Migrate to `@copilotkit/runtime` and follow each export's specific
6
6
  * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.
7
7
  * This entrypoint currently exposes 15 deprecated public exports.
8
- * V2 source entrypoint: packages/runtime/src/v2/index.ts
8
+ * V2 source entrypoint: packages/runtime/src/index.ts
9
9
  * V2 docs: https://docs.copilotkit.ai/
10
10
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
11
11
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -26,7 +26,7 @@ export {
26
26
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
27
27
  * No 1:1 v2 replacement is available.
28
28
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
29
- * Start with `@copilotkit/runtime/v2`.
29
+ * Start with `@copilotkit/runtime`.
30
30
  * V2 docs: https://docs.copilotkit.ai/
31
31
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
32
32
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -36,7 +36,7 @@ export {
36
36
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
37
37
  * No 1:1 v2 replacement is available.
38
38
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
39
- * Start with `@copilotkit/runtime/v2`.
39
+ * Start with `@copilotkit/runtime`.
40
40
  * V2 docs: https://docs.copilotkit.ai/
41
41
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
42
42
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -46,7 +46,7 @@ export {
46
46
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
47
47
  * No 1:1 v2 replacement is available.
48
48
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
49
- * Start with `@copilotkit/runtime/v2`.
49
+ * Start with `@copilotkit/runtime`.
50
50
  * V2 docs: https://docs.copilotkit.ai/
51
51
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
52
52
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -56,7 +56,7 @@ export {
56
56
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
57
57
  * No 1:1 v2 replacement is available.
58
58
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
59
- * Start with `@copilotkit/runtime/v2`.
59
+ * Start with `@copilotkit/runtime`.
60
60
  * V2 docs: https://docs.copilotkit.ai/
61
61
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
62
62
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -66,7 +66,7 @@ export {
66
66
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
67
67
  * No 1:1 v2 replacement is available.
68
68
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
69
- * Start with `@copilotkit/runtime/v2`.
69
+ * Start with `@copilotkit/runtime`.
70
70
  * V2 docs: https://docs.copilotkit.ai/
71
71
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
72
72
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -76,7 +76,7 @@ export {
76
76
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
77
77
  * No 1:1 v2 replacement is available.
78
78
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
79
- * Start with `@copilotkit/runtime/v2`.
79
+ * Start with `@copilotkit/runtime`.
80
80
  * V2 docs: https://docs.copilotkit.ai/
81
81
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
82
82
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -86,7 +86,7 @@ export {
86
86
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
87
87
  * No 1:1 v2 replacement is available.
88
88
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
89
- * Start with `@copilotkit/runtime/v2`.
89
+ * Start with `@copilotkit/runtime`.
90
90
  * V2 docs: https://docs.copilotkit.ai/
91
91
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
92
92
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -96,7 +96,7 @@ export {
96
96
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
97
97
  * No 1:1 v2 replacement is available.
98
98
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
99
- * Start with `@copilotkit/runtime/v2`.
99
+ * Start with `@copilotkit/runtime`.
100
100
  * V2 docs: https://docs.copilotkit.ai/
101
101
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
102
102
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -106,7 +106,7 @@ export {
106
106
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
107
107
  * No 1:1 v2 replacement is available.
108
108
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
109
- * Start with `@copilotkit/runtime/v2`.
109
+ * Start with `@copilotkit/runtime`.
110
110
  * V2 docs: https://docs.copilotkit.ai/
111
111
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
112
112
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -116,7 +116,7 @@ export {
116
116
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
117
117
  * No 1:1 v2 replacement is available.
118
118
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
119
- * Start with `@copilotkit/runtime/v2`.
119
+ * Start with `@copilotkit/runtime`.
120
120
  * V2 docs: https://docs.copilotkit.ai/
121
121
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
122
122
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -126,7 +126,7 @@ export {
126
126
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
127
127
  * No 1:1 v2 replacement is available.
128
128
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
129
- * Start with `@copilotkit/runtime/v2`.
129
+ * Start with `@copilotkit/runtime`.
130
130
  * V2 docs: https://docs.copilotkit.ai/
131
131
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
132
132
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -136,7 +136,7 @@ export {
136
136
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
137
137
  * No 1:1 v2 replacement is available.
138
138
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
139
- * Start with `@copilotkit/runtime/v2`.
139
+ * Start with `@copilotkit/runtime`.
140
140
  * V2 docs: https://docs.copilotkit.ai/
141
141
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
142
142
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -146,7 +146,7 @@ export {
146
146
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
147
147
  * No 1:1 v2 replacement is available.
148
148
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
149
- * Start with `@copilotkit/runtime/v2`.
149
+ * Start with `@copilotkit/runtime`.
150
150
  * V2 docs: https://docs.copilotkit.ai/
151
151
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
152
152
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -156,7 +156,7 @@ export {
156
156
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
157
157
  * No 1:1 v2 replacement is available.
158
158
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
159
- * Start with `@copilotkit/runtime/v2`.
159
+ * Start with `@copilotkit/runtime`.
160
160
  * V2 docs: https://docs.copilotkit.ai/
161
161
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
162
162
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -166,7 +166,7 @@ export {
166
166
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
167
167
  * No 1:1 v2 replacement is available.
168
168
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
169
- * Start with `@copilotkit/runtime/v2`.
169
+ * Start with `@copilotkit/runtime`.
170
170
  * V2 docs: https://docs.copilotkit.ai/
171
171
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
172
172
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -2,10 +2,10 @@
2
2
  * V1 SDK DEPRECATED. USE V2 INSTEAD
3
3
  *
4
4
  * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langgraph-middlewares`. Use v2 instead.
5
- * Migrate to `@copilotkit/runtime/v2` and follow each export's specific
5
+ * Migrate to `@copilotkit/runtime` and follow each export's specific
6
6
  * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.
7
7
  * This entrypoint currently exposes 3 deprecated public exports.
8
- * V2 source entrypoint: packages/runtime/src/v2/index.ts
8
+ * V2 source entrypoint: packages/runtime/src/index.ts
9
9
  * V2 docs: https://docs.copilotkit.ai/
10
10
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
11
11
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -24,7 +24,7 @@ export {
24
24
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
25
25
  * No 1:1 v2 replacement is available.
26
26
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
27
- * Start with `@copilotkit/runtime/v2`.
27
+ * Start with `@copilotkit/runtime`.
28
28
  * V2 docs: https://docs.copilotkit.ai/
29
29
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
30
30
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -34,7 +34,7 @@ export {
34
34
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
35
35
  * No 1:1 v2 replacement is available.
36
36
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
37
- * Start with `@copilotkit/runtime/v2`.
37
+ * Start with `@copilotkit/runtime`.
38
38
  * V2 docs: https://docs.copilotkit.ai/
39
39
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
40
40
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
@@ -44,7 +44,7 @@ export {
44
44
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
45
45
  * No 1:1 v2 replacement is available.
46
46
  * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
47
- * Start with `@copilotkit/runtime/v2`.
47
+ * Start with `@copilotkit/runtime`.
48
48
  * V2 docs: https://docs.copilotkit.ai/
49
49
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
50
50
  * Migration guide: https://docs.copilotkit.ai/migrate/v2