@copilotkit/shared 1.50.1-next.3 → 1.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-2RLW43JT.mjs → chunk-4KTOMF4X.mjs} +2 -2
- package/dist/chunk-4KTOMF4X.mjs.map +1 -0
- package/dist/{chunk-PCMUZHWC.mjs → chunk-4MW543GA.mjs} +2 -2
- package/dist/{chunk-OR2MTQLY.mjs → chunk-OX5WDDTA.mjs} +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -17
- package/dist/telemetry/index.js +1 -1
- package/dist/telemetry/index.js.map +1 -1
- package/dist/telemetry/index.mjs +2 -2
- package/dist/telemetry/scarf-client.js +1 -1
- package/dist/telemetry/scarf-client.js.map +1 -1
- package/dist/telemetry/scarf-client.mjs +1 -1
- package/dist/telemetry/telemetry-client.js +1 -1
- package/dist/telemetry/telemetry-client.js.map +1 -1
- package/dist/telemetry/telemetry-client.mjs +2 -2
- package/dist/types/index.mjs +1 -1
- package/dist/utils/errors.js +1 -1
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/errors.mjs +6 -6
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +13 -13
- package/package.json +1 -1
- package/dist/chunk-2RLW43JT.mjs.map +0 -1
- /package/dist/{chunk-PCMUZHWC.mjs.map → chunk-4MW543GA.mjs.map} +0 -0
- /package/dist/{chunk-OR2MTQLY.mjs.map → chunk-OX5WDDTA.mjs.map} +0 -0
package/dist/utils/index.mjs
CHANGED
|
@@ -23,7 +23,15 @@ import {
|
|
|
23
23
|
isStructuredCopilotKitError,
|
|
24
24
|
parseJson,
|
|
25
25
|
tryMap
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-4MW543GA.mjs";
|
|
27
|
+
import {
|
|
28
|
+
ConsoleColors,
|
|
29
|
+
ConsoleStyles,
|
|
30
|
+
logCopilotKitPlatformMessage,
|
|
31
|
+
logStyled,
|
|
32
|
+
publicApiKeyRequired,
|
|
33
|
+
styledConsole
|
|
34
|
+
} from "../chunk-6W2UEO2M.mjs";
|
|
27
35
|
import {
|
|
28
36
|
actionParametersToJsonSchema,
|
|
29
37
|
convertJsonSchemaToZodSchema,
|
|
@@ -40,8 +48,8 @@ import {
|
|
|
40
48
|
readBody
|
|
41
49
|
} from "../chunk-XEMZTHQZ.mjs";
|
|
42
50
|
import "../chunk-XTHC46M2.mjs";
|
|
43
|
-
import "../chunk-GYZIHHE6.mjs";
|
|
44
51
|
import "../chunk-N5EP5OD5.mjs";
|
|
52
|
+
import "../chunk-NAFEBKSO.mjs";
|
|
45
53
|
import "../chunk-MSUB6DGR.mjs";
|
|
46
54
|
import "../chunk-2OJ5OJ2D.mjs";
|
|
47
55
|
import "../chunk-UYARLQNA.mjs";
|
|
@@ -50,19 +58,11 @@ import "../chunk-FCCOSO5L.mjs";
|
|
|
50
58
|
import {
|
|
51
59
|
executeConditions
|
|
52
60
|
} from "../chunk-PL5WNHFZ.mjs";
|
|
53
|
-
import
|
|
54
|
-
ConsoleColors,
|
|
55
|
-
ConsoleStyles,
|
|
56
|
-
logCopilotKitPlatformMessage,
|
|
57
|
-
logStyled,
|
|
58
|
-
publicApiKeyRequired,
|
|
59
|
-
styledConsole
|
|
60
|
-
} from "../chunk-6W2UEO2M.mjs";
|
|
61
|
+
import "../chunk-GYZIHHE6.mjs";
|
|
61
62
|
import "../chunk-P7STFMPO.mjs";
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
63
|
+
import "../chunk-OX5WDDTA.mjs";
|
|
64
|
+
import "../chunk-4KTOMF4X.mjs";
|
|
64
65
|
import "../chunk-6QGXWNS5.mjs";
|
|
65
|
-
import "../chunk-NAFEBKSO.mjs";
|
|
66
66
|
export {
|
|
67
67
|
BANNER_ERROR_NAMES,
|
|
68
68
|
COPILOT_CLOUD_ERROR_NAMES,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/telemetry/scarf-client.ts"],"sourcesContent":["{\n \"name\": \"@copilotkit/shared\",\n \"private\": false,\n \"homepage\": \"https://github.com/CopilotKit/CopilotKit\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/CopilotKit/CopilotKit.git\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"version\": \"1.50.1-next.3\",\n \"sideEffects\": false,\n \"main\": \"./dist/index.js\",\n \"module\": \"./dist/index.mjs\",\n \"exports\": {\n \".\": {\n \"import\": \"./dist/index.mjs\",\n \"require\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\"\n }\n },\n \"types\": \"./dist/index.d.ts\",\n \"license\": \"MIT\",\n \"scripts\": {\n \"build\": \"tsup --clean\",\n \"dev\": \"tsup --watch --no-splitting\",\n \"test\": \"jest --passWithNoTests\",\n \"check-types\": \"tsc --noEmit\",\n \"clean\": \"rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf .next\",\n \"link:global\": \"pnpm link --global\",\n \"unlink:global\": \"pnpm unlink --global\"\n },\n \"devDependencies\": {\n \"@types/jest\": \"^29.5.4\",\n \"@types/uuid\": \"^10.0.0\",\n \"eslint\": \"^8.56.0\",\n \"eslint-config-custom\": \"workspace:*\",\n \"jest\": \"^29.6.4\",\n \"ts-jest\": \"^29.1.1\",\n \"tsconfig\": \"workspace:*\",\n \"tsup\": \"^6.7.0\",\n \"typescript\": \"^5.2.3\",\n \"zod-to-json-schema\": \"^3.23.5\"\n },\n \"dependencies\": {\n \"@ag-ui/core\": \"^0.0.42\",\n \"@segment/analytics-node\": \"^2.1.2\",\n \"chalk\": \"4.1.2\",\n \"graphql\": \"^16.8.1\",\n \"uuid\": \"^10.0.0\",\n \"zod\": \"^3.23.3\"\n },\n \"keywords\": [\n \"copilotkit\",\n \"copilot\",\n \"react\",\n \"nextjs\",\n \"nodejs\",\n \"ai\",\n \"assistant\",\n \"javascript\",\n \"automation\",\n \"textarea\"\n ]\n}\n","import * as packageJson from \"../../package.json\";\n\nconst SCARF_BASE_URL = `https://copilotkit.gateway.scarf.sh/${packageJson.version}`;\n\nclass ScarfClient {\n constructor() {}\n\n async logEvent(properties: Record<string, any>): Promise<void> {\n try {\n const controller = new AbortController();\n const timeoutId = setTimeout(() => controller.abort(), 3000);\n\n const queryParams = new URLSearchParams();\n\n Object.entries(properties).forEach(([key, value]) => {\n if (value !== null && value !== undefined) {\n queryParams.append(key, String(value));\n }\n });\n\n const url = `${SCARF_BASE_URL}?${queryParams.toString()}`;\n\n const response = await fetch(url, {\n method: \"GET\",\n signal: controller.signal,\n });\n\n clearTimeout(timeoutId);\n\n if (!response.ok) {\n throw new Error(`HTTP error! status: ${response.status}`);\n }\n } catch {\n // Silently fail - telemetry should not break the application\n }\n }\n}\n\nexport default new ScarfClient();\n"],"mappings":";AAWE,cAAW;;;ACTb,IAAM,iBAAiB,uCAAmD;AAE1E,IAAM,cAAN,MAAkB;AAAA,EAChB,cAAc;AAAA,EAAC;AAAA,EAEf,MAAM,SAAS,YAAgD;AAC7D,QAAI;AACF,YAAM,aAAa,IAAI,gBAAgB;AACvC,YAAM,YAAY,WAAW,MAAM,WAAW,MAAM,GAAG,GAAI;AAE3D,YAAM,cAAc,IAAI,gBAAgB;AAExC,aAAO,QAAQ,UAAU,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AACnD,YAAI,UAAU,QAAQ,UAAU,QAAW;AACzC,sBAAY,OAAO,KAAK,OAAO,KAAK,CAAC;AAAA,QACvC;AAAA,MACF,CAAC;AAED,YAAM,MAAM,GAAG,kBAAkB,YAAY,SAAS;AAEtD,YAAM,WAAW,MAAM,MAAM,KAAK;AAAA,QAChC,QAAQ;AAAA,QACR,QAAQ,WAAW;AAAA,MACrB,CAAC;AAED,mBAAa,SAAS;AAEtB,UAAI,CAAC,SAAS,IAAI;AAChB,cAAM,IAAI,MAAM,uBAAuB,SAAS,QAAQ;AAAA,MAC1D;AAAA,IACF,QAAE;AAAA,IAEF;AAAA,EACF;AACF;AAEA,IAAO,uBAAQ,IAAI,YAAY;","names":[]}
|
|
File without changes
|
|
File without changes
|