copilotkit 0.0.13 → 0.0.14

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.
Files changed (52) hide show
  1. package/README.md +28 -1
  2. package/dist/commands/base-command.js +1 -1
  3. package/dist/commands/base-command.js.map +1 -1
  4. package/dist/commands/dev.js +27 -14
  5. package/dist/commands/dev.js.map +1 -1
  6. package/dist/commands/init.d.ts +36 -0
  7. package/dist/commands/init.js +856 -0
  8. package/dist/commands/init.js.map +1 -0
  9. package/dist/commands/login.js +1 -1
  10. package/dist/commands/login.js.map +1 -1
  11. package/dist/commands/logout.js +1 -1
  12. package/dist/commands/logout.js.map +1 -1
  13. package/dist/lib/init/index.d.ts +9 -0
  14. package/dist/lib/init/index.js +441 -0
  15. package/dist/lib/init/index.js.map +1 -0
  16. package/dist/lib/init/questions.d.ts +6 -0
  17. package/dist/lib/init/questions.js +133 -0
  18. package/dist/lib/init/questions.js.map +1 -0
  19. package/dist/lib/init/scaffold/env.d.ts +6 -0
  20. package/dist/lib/init/scaffold/env.js +68 -0
  21. package/dist/lib/init/scaffold/env.js.map +1 -0
  22. package/dist/lib/init/scaffold/github.d.ts +20 -0
  23. package/dist/lib/init/scaffold/github.js +138 -0
  24. package/dist/lib/init/scaffold/github.js.map +1 -0
  25. package/dist/lib/init/scaffold/index.d.ts +7 -0
  26. package/dist/lib/init/scaffold/index.js +339 -0
  27. package/dist/lib/init/scaffold/index.js.map +1 -0
  28. package/dist/lib/init/scaffold/packages.d.ts +6 -0
  29. package/dist/lib/init/scaffold/packages.js +60 -0
  30. package/dist/lib/init/scaffold/packages.js.map +1 -0
  31. package/dist/lib/init/scaffold/shadcn.d.ts +6 -0
  32. package/dist/lib/init/scaffold/shadcn.js +79 -0
  33. package/dist/lib/init/scaffold/shadcn.js.map +1 -0
  34. package/dist/lib/init/types/index.d.ts +3 -0
  35. package/dist/lib/init/types/index.js +41 -0
  36. package/dist/lib/init/types/index.js.map +1 -0
  37. package/dist/lib/init/types/questions.d.ts +55 -0
  38. package/dist/lib/init/types/questions.js +28 -0
  39. package/dist/lib/init/types/questions.js.map +1 -0
  40. package/dist/lib/init/types/templates.d.ts +6 -0
  41. package/dist/lib/init/types/templates.js +15 -0
  42. package/dist/lib/init/types/templates.js.map +1 -0
  43. package/dist/services/events.d.ts +11 -8
  44. package/dist/utils/detect-endpoint-type.utils.d.ts +2 -1
  45. package/dist/utils/detect-endpoint-type.utils.js +27 -13
  46. package/dist/utils/detect-endpoint-type.utils.js.map +1 -1
  47. package/dist/utils/trpc.d.ts +64 -1
  48. package/dist/utils/version.d.ts +1 -1
  49. package/dist/utils/version.js +1 -1
  50. package/dist/utils/version.js.map +1 -1
  51. package/oclif.manifest.json +158 -1
  52. package/package.json +3 -1
@@ -28,10 +28,10 @@ declare function createTRPCClient(cliToken: string): {
28
28
  reportRemoteEndpointLocalTunnel: {
29
29
  mutate: _trpc_client.Resolver<{
30
30
  input: {
31
- port: number;
32
31
  tunnelId: string;
33
32
  projectId: string;
34
33
  tunnelUrl: string;
34
+ port: number;
35
35
  endpointType?: any;
36
36
  };
37
37
  output: {
@@ -134,6 +134,69 @@ declare function createTRPCClient(cliToken: string): {
134
134
  transformer: true;
135
135
  }>;
136
136
  };
137
+ createRemoteEndpoint: {
138
+ mutate: _trpc_client.Resolver<{
139
+ input: {
140
+ projectId: string;
141
+ config: {
142
+ [x: string]: any;
143
+ url?: unknown;
144
+ metadata?: unknown;
145
+ type?: unknown;
146
+ } | {
147
+ [x: string]: any;
148
+ url?: unknown;
149
+ metadata?: unknown;
150
+ apiKey?: unknown;
151
+ type?: unknown;
152
+ } | {
153
+ [x: string]: any;
154
+ url?: unknown;
155
+ metadata?: unknown;
156
+ agentName?: unknown;
157
+ agentDescription?: unknown;
158
+ crewApiBearerToken?: unknown;
159
+ type?: unknown;
160
+ };
161
+ type?: any;
162
+ schemaVersion?: number | undefined;
163
+ localTunnel?: string | undefined;
164
+ };
165
+ output: void;
166
+ errorShape: {
167
+ data: {
168
+ zodError: zod.typeToFlattenedError<any, string> | null;
169
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
170
+ httpStatus: number;
171
+ path?: string | undefined;
172
+ stack?: string | undefined;
173
+ };
174
+ message: string;
175
+ code: _trpc_server_unstable_core_do_not_import.TRPC_ERROR_CODE_NUMBER;
176
+ };
177
+ transformer: true;
178
+ }>;
179
+ };
180
+ getCopilotCloudPublicApiKey: {
181
+ query: _trpc_client.Resolver<{
182
+ input: {
183
+ projectId: string;
184
+ };
185
+ output: any;
186
+ errorShape: {
187
+ data: {
188
+ zodError: zod.typeToFlattenedError<any, string> | null;
189
+ code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST";
190
+ httpStatus: number;
191
+ path?: string | undefined;
192
+ stack?: string | undefined;
193
+ };
194
+ message: string;
195
+ code: _trpc_server_unstable_core_do_not_import.TRPC_ERROR_CODE_NUMBER;
196
+ };
197
+ transformer: true;
198
+ }>;
199
+ };
137
200
  };
138
201
 
139
202
  export { COPILOT_CLOUD_BASE_URL, createTRPCClient };
@@ -1,3 +1,3 @@
1
- declare const LIB_VERSION = "0.0.13";
1
+ declare const LIB_VERSION = "0.0.14";
2
2
 
3
3
  export { LIB_VERSION };
@@ -1,5 +1,5 @@
1
1
  // src/utils/version.ts
2
- var LIB_VERSION = "0.0.13";
2
+ var LIB_VERSION = "0.0.14";
3
3
  export {
4
4
  LIB_VERSION
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/version.ts"],"sourcesContent":["// This is auto generated!\nexport const LIB_VERSION = \"0.0.13\";\n"],"mappings":";AACO,IAAM,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/utils/version.ts"],"sourcesContent":["// This is auto generated!\nexport const LIB_VERSION = \"0.0.14\";\n"],"mappings":";AACO,IAAM,cAAc;","names":[]}
@@ -57,6 +57,163 @@
57
57
  "dev.js"
58
58
  ]
59
59
  },
60
+ "init": {
61
+ "aliases": [],
62
+ "args": {},
63
+ "description": "Set up CopilotKit in your Next.js project",
64
+ "examples": [
65
+ "<%= config.bin %> init"
66
+ ],
67
+ "flags": {
68
+ "copilotKitVersion": {
69
+ "description": "CopilotKit version to use (e.g. 1.7.0)",
70
+ "name": "copilotKitVersion",
71
+ "hasDynamicHelp": false,
72
+ "multiple": false,
73
+ "type": "option"
74
+ },
75
+ "agentFramework": {
76
+ "description": "Agent framework to power your copilot",
77
+ "name": "agentFramework",
78
+ "hasDynamicHelp": false,
79
+ "multiple": false,
80
+ "options": [
81
+ "CrewAI",
82
+ "LangGraph",
83
+ "None"
84
+ ],
85
+ "type": "option"
86
+ },
87
+ "fastApiEnabled": {
88
+ "description": "Use FastAPI to serve your agent locally",
89
+ "name": "fastApiEnabled",
90
+ "hasDynamicHelp": false,
91
+ "multiple": false,
92
+ "options": [
93
+ "Yes",
94
+ "No"
95
+ ],
96
+ "type": "option"
97
+ },
98
+ "useCopilotCloud": {
99
+ "description": "Use Copilot Cloud for production-ready hosting",
100
+ "name": "useCopilotCloud",
101
+ "hasDynamicHelp": false,
102
+ "multiple": false,
103
+ "options": [
104
+ "Yes",
105
+ "No"
106
+ ],
107
+ "type": "option"
108
+ },
109
+ "chatUi": {
110
+ "description": "Chat UI component to add to your app",
111
+ "name": "chatUi",
112
+ "hasDynamicHelp": false,
113
+ "multiple": false,
114
+ "options": [
115
+ "CopilotChat",
116
+ "CopilotSidebar",
117
+ "Headless",
118
+ "CopilotPopup"
119
+ ],
120
+ "type": "option"
121
+ },
122
+ "langGraphAgent": {
123
+ "description": "LangGraph agent template to use",
124
+ "name": "langGraphAgent",
125
+ "hasDynamicHelp": false,
126
+ "multiple": false,
127
+ "options": [
128
+ "Python Starter",
129
+ "TypeScript Starter",
130
+ "None"
131
+ ],
132
+ "type": "option"
133
+ },
134
+ "crewType": {
135
+ "description": "CrewAI implementation type",
136
+ "name": "crewType",
137
+ "hasDynamicHelp": false,
138
+ "multiple": false,
139
+ "options": [
140
+ "Crews",
141
+ "Flows"
142
+ ],
143
+ "type": "option"
144
+ },
145
+ "crewName": {
146
+ "description": "Name for your CrewAI agent",
147
+ "name": "crewName",
148
+ "hasDynamicHelp": false,
149
+ "multiple": false,
150
+ "type": "option"
151
+ },
152
+ "crewUrl": {
153
+ "description": "URL endpoint for your CrewAI agent",
154
+ "name": "crewUrl",
155
+ "hasDynamicHelp": false,
156
+ "multiple": false,
157
+ "type": "option"
158
+ },
159
+ "crewBearerToken": {
160
+ "description": "Bearer token for CrewAI authentication",
161
+ "name": "crewBearerToken",
162
+ "hasDynamicHelp": false,
163
+ "multiple": false,
164
+ "type": "option"
165
+ },
166
+ "langSmithApiKey": {
167
+ "description": "LangSmith API key for LangGraph observability",
168
+ "name": "langSmithApiKey",
169
+ "hasDynamicHelp": false,
170
+ "multiple": false,
171
+ "type": "option"
172
+ },
173
+ "llmToken": {
174
+ "description": "API key for your preferred LLM provider",
175
+ "name": "llmToken",
176
+ "hasDynamicHelp": false,
177
+ "multiple": false,
178
+ "type": "option"
179
+ },
180
+ "runtimeUrl": {
181
+ "description": "runtime URL",
182
+ "name": "runtimeUrl",
183
+ "hasDynamicHelp": false,
184
+ "multiple": false,
185
+ "type": "option"
186
+ },
187
+ "project": {
188
+ "description": "project ID (can be found in the Copilot Cloud dashboard)",
189
+ "name": "project",
190
+ "hasDynamicHelp": false,
191
+ "multiple": false,
192
+ "type": "option"
193
+ },
194
+ "dir": {
195
+ "description": "directory of the Next.js project",
196
+ "name": "dir",
197
+ "default": ".",
198
+ "hasDynamicHelp": false,
199
+ "multiple": false,
200
+ "type": "option"
201
+ }
202
+ },
203
+ "hasDynamicHelp": false,
204
+ "hiddenAliases": [],
205
+ "id": "init",
206
+ "pluginAlias": "copilotkit",
207
+ "pluginName": "copilotkit",
208
+ "pluginType": "core",
209
+ "strict": true,
210
+ "isESM": true,
211
+ "relativePath": [
212
+ "dist",
213
+ "commands",
214
+ "init.js"
215
+ ]
216
+ },
60
217
  "login": {
61
218
  "aliases": [],
62
219
  "args": {},
@@ -102,5 +259,5 @@
102
259
  ]
103
260
  }
104
261
  },
105
- "version": "0.0.13"
262
+ "version": "0.0.14"
106
263
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "copilotkit",
3
3
  "description": "CopilotKit CLI",
4
- "version": "0.0.13",
4
+ "version": "0.0.14",
5
5
  "author": "CopilotKit",
6
6
  "bin": {
7
7
  "copilotkit": "./bin/run.js",
@@ -33,6 +33,7 @@
33
33
  "chalk": "^5.3.0",
34
34
  "conf": "^13.1.0",
35
35
  "cors": "^2.8.5",
36
+ "cross-spawn": "^7.0.6",
36
37
  "express": "^4.21.2",
37
38
  "get-port": "^7.1.0",
38
39
  "inquirer": "^12.3.0",
@@ -47,6 +48,7 @@
47
48
  "@oclif/test": "^4",
48
49
  "@types/chai": "^4.3.20",
49
50
  "@types/cors": "^2.8.17",
51
+ "@types/cross-spawn": "^6.0.6",
50
52
  "@types/express": "^5.0.0",
51
53
  "@types/localtunnel": "^2.0.4",
52
54
  "@types/mocha": "^10",