copilotkit 0.0.0-main-20260402184302
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 +83 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +8 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +17 -0
- package/dist/commands/base-command.d.ts +12 -0
- package/dist/commands/base-command.js +65 -0
- package/dist/commands/base-command.js.map +1 -0
- package/dist/commands/create.d.ts +24 -0
- package/dist/commands/create.js +507 -0
- package/dist/commands/create.js.map +1 -0
- package/dist/commands/dev.d.ts +25 -0
- package/dist/commands/dev.js +776 -0
- package/dist/commands/dev.js.map +1 -0
- package/dist/commands/init.d.ts +11 -0
- package/dist/commands/init.js +523 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/login.d.ts +13 -0
- package/dist/commands/login.js +374 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +13 -0
- package/dist/commands/logout.js +375 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/init/ide-docs.d.ts +25 -0
- package/dist/lib/init/ide-docs.js +170 -0
- package/dist/lib/init/ide-docs.js.map +1 -0
- package/dist/lib/init/index.d.ts +14 -0
- package/dist/lib/init/index.js +1104 -0
- package/dist/lib/init/index.js.map +1 -0
- package/dist/lib/init/questions.d.ts +9 -0
- package/dist/lib/init/questions.js +508 -0
- package/dist/lib/init/questions.js.map +1 -0
- package/dist/lib/init/scaffold/agent.d.ts +20 -0
- package/dist/lib/init/scaffold/agent.js +173 -0
- package/dist/lib/init/scaffold/agent.js.map +1 -0
- package/dist/lib/init/scaffold/crew-inputs.d.ts +3 -0
- package/dist/lib/init/scaffold/crew-inputs.js +59 -0
- package/dist/lib/init/scaffold/crew-inputs.js.map +1 -0
- package/dist/lib/init/scaffold/env.d.ts +7 -0
- package/dist/lib/init/scaffold/env.js +124 -0
- package/dist/lib/init/scaffold/env.js.map +1 -0
- package/dist/lib/init/scaffold/github.d.ts +17 -0
- package/dist/lib/init/scaffold/github.js +114 -0
- package/dist/lib/init/scaffold/github.js.map +1 -0
- package/dist/lib/init/scaffold/index.d.ts +10 -0
- package/dist/lib/init/scaffold/index.js +690 -0
- package/dist/lib/init/scaffold/index.js.map +1 -0
- package/dist/lib/init/scaffold/langgraph-assistants.d.ts +18 -0
- package/dist/lib/init/scaffold/langgraph-assistants.js +26 -0
- package/dist/lib/init/scaffold/langgraph-assistants.js.map +1 -0
- package/dist/lib/init/scaffold/packages.d.ts +7 -0
- package/dist/lib/init/scaffold/packages.js +62 -0
- package/dist/lib/init/scaffold/packages.js.map +1 -0
- package/dist/lib/init/scaffold/shadcn.d.ts +7 -0
- package/dist/lib/init/scaffold/shadcn.js +279 -0
- package/dist/lib/init/scaffold/shadcn.js.map +1 -0
- package/dist/lib/init/types/index.d.ts +4 -0
- package/dist/lib/init/types/index.js +238 -0
- package/dist/lib/init/types/index.js.map +1 -0
- package/dist/lib/init/types/questions.d.ts +209 -0
- package/dist/lib/init/types/questions.js +214 -0
- package/dist/lib/init/types/questions.js.map +1 -0
- package/dist/lib/init/types/templates.d.ts +17 -0
- package/dist/lib/init/types/templates.js +26 -0
- package/dist/lib/init/types/templates.js.map +1 -0
- package/dist/lib/init/utils.d.ts +3 -0
- package/dist/lib/init/utils.js +8 -0
- package/dist/lib/init/utils.js.map +1 -0
- package/dist/services/analytics.service.d.ts +38 -0
- package/dist/services/analytics.service.js +134 -0
- package/dist/services/analytics.service.js.map +1 -0
- package/dist/services/auth.service.d.ts +26 -0
- package/dist/services/auth.service.js +299 -0
- package/dist/services/auth.service.js.map +1 -0
- package/dist/services/events.d.ts +119 -0
- package/dist/services/events.js +1 -0
- package/dist/services/events.js.map +1 -0
- package/dist/services/tunnel.service.d.ts +15 -0
- package/dist/services/tunnel.service.js +21 -0
- package/dist/services/tunnel.service.js.map +1 -0
- package/dist/utils/detect-endpoint-type.utils.d.ts +15 -0
- package/dist/utils/detect-endpoint-type.utils.js +157 -0
- package/dist/utils/detect-endpoint-type.utils.js.map +1 -0
- package/dist/utils/trpc.d.ts +4 -0
- package/dist/utils/trpc.js +25 -0
- package/dist/utils/trpc.js.map +1 -0
- package/dist/utils/version.d.ts +3 -0
- package/dist/utils/version.js +6 -0
- package/dist/utils/version.js.map +1 -0
- package/oclif.manifest.json +208 -0
- package/package.json +113 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/detect-endpoint-type.utils.ts"],"sourcesContent":["export enum RemoteEndpointType {\n LangGraphPlatform = \"LangGraphPlatform\",\n CopilotKit = \"CopilotKit\",\n CrewAI = \"CrewAI\",\n MCP = \"MCP\",\n Invalid = \"Invalid\",\n}\n\nconst removeTrailingSlash = (url: string) => url.replace(/\\/$/, \"\");\n\nexport const getHumanReadableEndpointType = (type: RemoteEndpointType) => {\n switch (type) {\n case RemoteEndpointType.LangGraphPlatform:\n return \"LangGraph Platform\";\n case RemoteEndpointType.CopilotKit:\n return \"CopilotKit\";\n case RemoteEndpointType.CrewAI:\n return \"CrewAI\";\n case RemoteEndpointType.MCP:\n return \"MCP\";\n default:\n return \"Invalid\";\n }\n};\n\nexport async function detectRemoteEndpointType(url: string): Promise<{\n url: string;\n type: RemoteEndpointType;\n humanReadableType: string;\n}> {\n // First check base URL\n const [isLangGraph, isLangGraphFastAPI, isCopilot, isCrewAI, isMCP] =\n await Promise.all([\n isLangGraphPlatformEndpoint(url),\n isLangGraphFastAPIEndpoint(url),\n isCopilotKitEndpoint(url),\n isCrewAIEndpoint(url),\n isMCPEndpoint(url),\n ]);\n\n // Check base endpoints first\n if (isLangGraph || isLangGraphFastAPI) {\n return {\n url,\n type: RemoteEndpointType.LangGraphPlatform,\n humanReadableType: \"LangGraph Platform\",\n };\n }\n\n if (isCopilot) {\n return {\n url,\n type: RemoteEndpointType.CopilotKit,\n humanReadableType: \"CopilotKit\",\n };\n }\n\n if (isCrewAI) {\n return {\n url,\n type: RemoteEndpointType.CrewAI,\n humanReadableType: \"CrewAI\",\n };\n }\n\n if (isMCP) {\n return {\n url,\n type: RemoteEndpointType.MCP,\n humanReadableType: \"MCP\",\n };\n }\n\n // If no match and URL doesn't already end with /copilotkit, try that path\n if (!url.endsWith(\"/copilotkit\")) {\n const copilotKitUrl = `${removeTrailingSlash(url)}/copilotkit`;\n const isCopilotWithPath = await isCopilotKitEndpoint(copilotKitUrl);\n\n if (isCopilotWithPath) {\n return {\n url: copilotKitUrl,\n type: RemoteEndpointType.CopilotKit,\n humanReadableType: \"CopilotKit\",\n };\n }\n }\n\n return {\n url,\n type: RemoteEndpointType.Invalid,\n humanReadableType: \"Invalid\",\n };\n}\n\nasync function isLangGraphPlatformEndpoint(\n url: string,\n retries: number = 0,\n): Promise<boolean> {\n let response;\n\n try {\n response = await fetch(`${url}/assistants/search`, {\n method: \"POST\",\n\n body: JSON.stringify({\n metadata: {},\n limit: 99,\n offset: 0,\n }),\n });\n } catch (error) {\n return false;\n }\n\n if (!response.ok) {\n if (response.status === 502) {\n if (retries < 3) {\n console.log(\"RETRYING LGC\", retries + 1);\n return isLangGraphPlatformEndpoint(url, retries + 1);\n }\n }\n\n if (response.status === 403) {\n return true;\n }\n\n return false;\n }\n\n const data = await response.json();\n\n if (data[0].assistant_id) {\n return true;\n }\n\n return false;\n}\n\nasync function isLangGraphFastAPIEndpoint(url: string): Promise<boolean> {\n let response;\n\n try {\n response = await fetch(`${url}/health`, {\n method: \"GET\",\n });\n } catch (error) {\n return false;\n }\n\n return response.ok;\n}\n\nasync function isCopilotKitEndpoint(\n url: string,\n retries: number = 0,\n): Promise<boolean> {\n let response;\n\n try {\n response = await fetch(`${url}/info`, {\n method: \"POST\",\n body: JSON.stringify({}),\n });\n } catch (error) {\n return false;\n }\n\n if (!response.ok) {\n if (response.status === 502) {\n if (retries < 3) {\n console.log(\"RETRYING CK\", retries + 1);\n return isCopilotKitEndpoint(url, retries + 1);\n }\n }\n\n return false;\n }\n\n const data = await response.json();\n\n if (data.agents && data.actions) {\n return true;\n }\n\n return false;\n}\n\nasync function isCrewAIEndpoint(url: string): Promise<boolean> {\n return url.toLowerCase().includes(\"crew\");\n}\n\nasync function isMCPEndpoint(_url: string): Promise<boolean> {\n return true;\n}\n"],"mappings":"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","names":["RemoteEndpointType"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/utils/trpc.ts
|
|
2
|
+
import { createTRPCClient as trpcClient, httpBatchLink } from "@trpc/client";
|
|
3
|
+
import superjson from "superjson";
|
|
4
|
+
var COPILOT_CLOUD_BASE_URL = process.env.COPILOT_CLOUD_BASE_URL || "https://cloud.copilotkit.ai";
|
|
5
|
+
function createTRPCClient(cliToken) {
|
|
6
|
+
return trpcClient({
|
|
7
|
+
links: [
|
|
8
|
+
httpBatchLink({
|
|
9
|
+
url: `${COPILOT_CLOUD_BASE_URL}/api/trpc-cli`,
|
|
10
|
+
transformer: superjson,
|
|
11
|
+
headers: () => {
|
|
12
|
+
return {
|
|
13
|
+
"x-trpc-source": "cli",
|
|
14
|
+
"x-cli-token": cliToken
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
COPILOT_CLOUD_BASE_URL,
|
|
23
|
+
createTRPCClient
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=trpc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/trpc.ts"],"sourcesContent":["import { createTRPCClient as trpcClient, httpBatchLink } from \"@trpc/client\";\nimport superjson from \"superjson\";\n\nexport const COPILOT_CLOUD_BASE_URL =\n process.env.COPILOT_CLOUD_BASE_URL || \"https://cloud.copilotkit.ai\";\n\nexport function createTRPCClient(cliToken: string): any {\n return trpcClient({\n links: [\n httpBatchLink({\n url: `${COPILOT_CLOUD_BASE_URL}/api/trpc-cli`,\n transformer: superjson,\n headers: () => {\n return {\n \"x-trpc-source\": \"cli\",\n \"x-cli-token\": cliToken,\n };\n },\n }),\n ],\n });\n}\n"],"mappings":";AAAA,SAAS,oBAAoB,YAAY,qBAAqB;AAC9D,OAAO,eAAe;AAEf,IAAM,yBACX,QAAQ,IAAI,0BAA0B;AAEjC,SAAS,iBAAiB,UAAuB;AACtD,SAAO,WAAW;AAAA,IAChB,OAAO;AAAA,MACL,cAAc;AAAA,QACZ,KAAK,GAAG,sBAAsB;AAAA,QAC9B,aAAa;AAAA,QACb,SAAS,MAAM;AACb,iBAAO;AAAA,YACL,iBAAiB;AAAA,YACjB,eAAe;AAAA,UACjB;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/version.ts"],"sourcesContent":["// This is auto generated!\nexport const LIB_VERSION = \"0.0.0-main-20260402184302\";\n"],"mappings":";AACO,IAAM,cAAc;","names":[]}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"base-command": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"flags": {},
|
|
7
|
+
"hasDynamicHelp": false,
|
|
8
|
+
"hiddenAliases": [],
|
|
9
|
+
"id": "base-command",
|
|
10
|
+
"pluginAlias": "copilotkit",
|
|
11
|
+
"pluginName": "copilotkit",
|
|
12
|
+
"pluginType": "core",
|
|
13
|
+
"strict": true,
|
|
14
|
+
"enableJsonFlag": false,
|
|
15
|
+
"isESM": true,
|
|
16
|
+
"relativePath": [
|
|
17
|
+
"dist",
|
|
18
|
+
"commands",
|
|
19
|
+
"base-command.js"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"create": {
|
|
23
|
+
"aliases": [],
|
|
24
|
+
"args": {
|
|
25
|
+
"projectName": {
|
|
26
|
+
"description": "Name of the project",
|
|
27
|
+
"name": "projectName",
|
|
28
|
+
"required": false
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"description": "Create a new CopilotKit project",
|
|
32
|
+
"examples": [
|
|
33
|
+
"$ copilotkit create my-app",
|
|
34
|
+
"$ copilotkit create my-app --framework langgraph-js",
|
|
35
|
+
"$ copilotkit create -n my-app -f langgraph-js"
|
|
36
|
+
],
|
|
37
|
+
"flags": {
|
|
38
|
+
"framework": {
|
|
39
|
+
"char": "f",
|
|
40
|
+
"description": "Agent framework to use",
|
|
41
|
+
"name": "framework",
|
|
42
|
+
"required": false,
|
|
43
|
+
"hasDynamicHelp": false,
|
|
44
|
+
"multiple": false,
|
|
45
|
+
"options": [
|
|
46
|
+
"langgraph-py",
|
|
47
|
+
"langgraph-js",
|
|
48
|
+
"mastra",
|
|
49
|
+
"flows",
|
|
50
|
+
"llamaindex",
|
|
51
|
+
"agno",
|
|
52
|
+
"pydantic-ai",
|
|
53
|
+
"ag2",
|
|
54
|
+
"adk",
|
|
55
|
+
"aws-strands-py",
|
|
56
|
+
"a2a",
|
|
57
|
+
"microsoft-agent-framework-dotnet",
|
|
58
|
+
"microsoft-agent-framework-py",
|
|
59
|
+
"mcp-apps"
|
|
60
|
+
],
|
|
61
|
+
"type": "option"
|
|
62
|
+
},
|
|
63
|
+
"name": {
|
|
64
|
+
"char": "n",
|
|
65
|
+
"description": "Name of the project",
|
|
66
|
+
"name": "name",
|
|
67
|
+
"required": false,
|
|
68
|
+
"hasDynamicHelp": false,
|
|
69
|
+
"multiple": false,
|
|
70
|
+
"type": "option"
|
|
71
|
+
},
|
|
72
|
+
"no-banner": {
|
|
73
|
+
"char": "q",
|
|
74
|
+
"description": "Removes the banner",
|
|
75
|
+
"name": "no-banner",
|
|
76
|
+
"required": false,
|
|
77
|
+
"allowNo": false,
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
80
|
+
"project": {
|
|
81
|
+
"description": "project ID (deprecated, kept for backwards compatibility)",
|
|
82
|
+
"name": "project",
|
|
83
|
+
"hasDynamicHelp": false,
|
|
84
|
+
"multiple": false,
|
|
85
|
+
"type": "option"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"hasDynamicHelp": false,
|
|
89
|
+
"hiddenAliases": [],
|
|
90
|
+
"id": "create",
|
|
91
|
+
"pluginAlias": "copilotkit",
|
|
92
|
+
"pluginName": "copilotkit",
|
|
93
|
+
"pluginType": "core",
|
|
94
|
+
"strict": true,
|
|
95
|
+
"isESM": true,
|
|
96
|
+
"relativePath": [
|
|
97
|
+
"dist",
|
|
98
|
+
"commands",
|
|
99
|
+
"create.js"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"dev": {
|
|
103
|
+
"aliases": [],
|
|
104
|
+
"args": {},
|
|
105
|
+
"description": "Start local development for a CopilotKit project",
|
|
106
|
+
"examples": [
|
|
107
|
+
"<%= config.bin %> <%= command.id %> --port 8000 --project proj_mv3laowus0lz11kklo57bdr6"
|
|
108
|
+
],
|
|
109
|
+
"flags": {
|
|
110
|
+
"port": {
|
|
111
|
+
"description": "port",
|
|
112
|
+
"name": "port",
|
|
113
|
+
"required": true,
|
|
114
|
+
"hasDynamicHelp": false,
|
|
115
|
+
"multiple": false,
|
|
116
|
+
"type": "option"
|
|
117
|
+
},
|
|
118
|
+
"project": {
|
|
119
|
+
"description": "project ID (can be found in the Copilot Cloud dashboard)",
|
|
120
|
+
"name": "project",
|
|
121
|
+
"hasDynamicHelp": false,
|
|
122
|
+
"multiple": false,
|
|
123
|
+
"type": "option"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"hasDynamicHelp": false,
|
|
127
|
+
"hiddenAliases": [],
|
|
128
|
+
"id": "dev",
|
|
129
|
+
"pluginAlias": "copilotkit",
|
|
130
|
+
"pluginName": "copilotkit",
|
|
131
|
+
"pluginType": "core",
|
|
132
|
+
"strict": true,
|
|
133
|
+
"isESM": true,
|
|
134
|
+
"relativePath": [
|
|
135
|
+
"dist",
|
|
136
|
+
"commands",
|
|
137
|
+
"dev.js"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"init": {
|
|
141
|
+
"aliases": [],
|
|
142
|
+
"args": {},
|
|
143
|
+
"description": "`init` is deprecated — use `create` instead.",
|
|
144
|
+
"examples": [
|
|
145
|
+
"<%= config.bin %> create"
|
|
146
|
+
],
|
|
147
|
+
"flags": {},
|
|
148
|
+
"hasDynamicHelp": false,
|
|
149
|
+
"hiddenAliases": [],
|
|
150
|
+
"id": "init",
|
|
151
|
+
"pluginAlias": "copilotkit",
|
|
152
|
+
"pluginName": "copilotkit",
|
|
153
|
+
"pluginType": "core",
|
|
154
|
+
"strict": true,
|
|
155
|
+
"isESM": true,
|
|
156
|
+
"relativePath": [
|
|
157
|
+
"dist",
|
|
158
|
+
"commands",
|
|
159
|
+
"init.js"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"login": {
|
|
163
|
+
"aliases": [],
|
|
164
|
+
"args": {},
|
|
165
|
+
"description": "Login to Copilot Cloud",
|
|
166
|
+
"examples": [
|
|
167
|
+
"<%= config.bin %> login"
|
|
168
|
+
],
|
|
169
|
+
"flags": {},
|
|
170
|
+
"hasDynamicHelp": false,
|
|
171
|
+
"hiddenAliases": [],
|
|
172
|
+
"id": "login",
|
|
173
|
+
"pluginAlias": "copilotkit",
|
|
174
|
+
"pluginName": "copilotkit",
|
|
175
|
+
"pluginType": "core",
|
|
176
|
+
"strict": true,
|
|
177
|
+
"isESM": true,
|
|
178
|
+
"relativePath": [
|
|
179
|
+
"dist",
|
|
180
|
+
"commands",
|
|
181
|
+
"login.js"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"logout": {
|
|
185
|
+
"aliases": [],
|
|
186
|
+
"args": {},
|
|
187
|
+
"description": "Logout from Copilot Cloud",
|
|
188
|
+
"examples": [
|
|
189
|
+
"<%= config.bin %> logout"
|
|
190
|
+
],
|
|
191
|
+
"flags": {},
|
|
192
|
+
"hasDynamicHelp": false,
|
|
193
|
+
"hiddenAliases": [],
|
|
194
|
+
"id": "logout",
|
|
195
|
+
"pluginAlias": "copilotkit",
|
|
196
|
+
"pluginName": "copilotkit",
|
|
197
|
+
"pluginType": "core",
|
|
198
|
+
"strict": true,
|
|
199
|
+
"isESM": true,
|
|
200
|
+
"relativePath": [
|
|
201
|
+
"dist",
|
|
202
|
+
"commands",
|
|
203
|
+
"logout.js"
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"version": "0.0.0-main-20260402184302"
|
|
208
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "copilotkit",
|
|
3
|
+
"version": "0.0.0-main-20260402184302",
|
|
4
|
+
"description": "CopilotKit CLI",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"oclif"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/CopilotKit/CopilotKit/tree/main/packages/cli",
|
|
9
|
+
"bugs": "https://github.com/CopilotKit/CopilotKit/issues",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"author": "CopilotKit",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/CopilotKit/CopilotKit.git",
|
|
15
|
+
"directory": "packages/cli"
|
|
16
|
+
},
|
|
17
|
+
"bin": {
|
|
18
|
+
"copilotkit": "./bin/run.js",
|
|
19
|
+
"cpk": "./bin/run.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"/bin",
|
|
23
|
+
"/dist",
|
|
24
|
+
"/oclif.manifest.json"
|
|
25
|
+
],
|
|
26
|
+
"type": "module",
|
|
27
|
+
"main": "dist/index.js",
|
|
28
|
+
"types": "dist/index.d.ts",
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@oclif/core": "^4.2.0",
|
|
34
|
+
"@paralleldrive/cuid2": "^2.2.2",
|
|
35
|
+
"@segment/analytics-node": "^2.1.2",
|
|
36
|
+
"@sentry/node": "^7.116.0",
|
|
37
|
+
"@trpc/client": "^11.0.1",
|
|
38
|
+
"@trpc/server": "^11.0.1",
|
|
39
|
+
"ansis": "^3.3.2",
|
|
40
|
+
"axios": "^1.7.8",
|
|
41
|
+
"chalk": "^5.3.0",
|
|
42
|
+
"conf": "^13.1.0",
|
|
43
|
+
"cors": "^2.8.5",
|
|
44
|
+
"cross-spawn": "^7.0.6",
|
|
45
|
+
"execa": "^8.0.1",
|
|
46
|
+
"express": "^4.21.2",
|
|
47
|
+
"fs-extra": "^11.2.0",
|
|
48
|
+
"get-port": "^7.1.0",
|
|
49
|
+
"inquirer": "^12.3.0",
|
|
50
|
+
"localtunnel": "^2.0.2",
|
|
51
|
+
"open": "^10.1.0",
|
|
52
|
+
"ora": "^8.1.1",
|
|
53
|
+
"posthog-node": "^4.0.1",
|
|
54
|
+
"superjson": "^2.2.1",
|
|
55
|
+
"tar": "6.1.13",
|
|
56
|
+
"zod": "^3.22.4"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@jest/globals": "30.0.0-beta.3",
|
|
60
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
61
|
+
"@oclif/test": "^4",
|
|
62
|
+
"@types/chai": "^4.3.20",
|
|
63
|
+
"@types/cors": "^2.8.17",
|
|
64
|
+
"@types/cross-spawn": "^6.0.6",
|
|
65
|
+
"@types/express": "^5.0.0",
|
|
66
|
+
"@types/fs-extra": "^11.0.4",
|
|
67
|
+
"@types/jest": "^29.5.2",
|
|
68
|
+
"@types/localtunnel": "^2.0.4",
|
|
69
|
+
"@types/mocha": "^10",
|
|
70
|
+
"@types/node": "^18",
|
|
71
|
+
"@types/sinon": "^17.0.3",
|
|
72
|
+
"@types/sinon-chai": "^4.0.0",
|
|
73
|
+
"@types/tar": "6.1.13",
|
|
74
|
+
"chai": "^4",
|
|
75
|
+
"jest": "^29.5.0",
|
|
76
|
+
"mocha": "^10",
|
|
77
|
+
"oclif": "^4",
|
|
78
|
+
"shx": "^0.3.3",
|
|
79
|
+
"sinon": "^19.0.2",
|
|
80
|
+
"sinon-chai": "^4.0.0",
|
|
81
|
+
"ts-jest": "^29.1.0",
|
|
82
|
+
"ts-node": "^10",
|
|
83
|
+
"tsup": "^8.0.2",
|
|
84
|
+
"typescript": "^5"
|
|
85
|
+
},
|
|
86
|
+
"oclif": {
|
|
87
|
+
"bin": "copilotkit",
|
|
88
|
+
"commands": "./dist/commands",
|
|
89
|
+
"dirname": "copilotkit",
|
|
90
|
+
"topicSeparator": " ",
|
|
91
|
+
"topics": {
|
|
92
|
+
"login": {
|
|
93
|
+
"description": "Authenticate with Copilot Cloud"
|
|
94
|
+
},
|
|
95
|
+
"tunnel": {
|
|
96
|
+
"description": "Create a local tunnel to expose your agent to the internet"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"engines": {
|
|
101
|
+
"node": ">=18.0.0"
|
|
102
|
+
},
|
|
103
|
+
"scripts": {
|
|
104
|
+
"clean": "shx rm -rf dist",
|
|
105
|
+
"extract-version": "node -p \"'// This is auto generated!\\nexport const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/utils/version.ts",
|
|
106
|
+
"prebuild": "pnpm run clean && pnpm run extract-version",
|
|
107
|
+
"build": "tsup",
|
|
108
|
+
"generate-manifest": "oclif manifest",
|
|
109
|
+
"test": "jest",
|
|
110
|
+
"version": "oclif readme && git add README.md",
|
|
111
|
+
"validate": "node validate-package.js"
|
|
112
|
+
}
|
|
113
|
+
}
|