copilotkit 0.0.26 → 0.0.28
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/dist/commands/base-command.js +1 -1
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/dev.js +1 -1
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/init.js +73 -72
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/logout.js.map +1 -1
- package/dist/lib/init/index.js +58 -59
- package/dist/lib/init/index.js.map +1 -1
- package/dist/lib/init/questions.js +28 -25
- package/dist/lib/init/questions.js.map +1 -1
- package/dist/lib/init/scaffold/agent.js +1 -1
- package/dist/lib/init/scaffold/agent.js.map +1 -1
- package/dist/lib/init/scaffold/env.js +4 -1
- package/dist/lib/init/scaffold/env.js.map +1 -1
- package/dist/lib/init/scaffold/index.js +36 -40
- package/dist/lib/init/scaffold/index.js.map +1 -1
- package/dist/lib/init/scaffold/shadcn.js +31 -38
- package/dist/lib/init/scaffold/shadcn.js.map +1 -1
- package/dist/lib/init/types/index.js +6 -6
- package/dist/lib/init/types/index.js.map +1 -1
- package/dist/lib/init/types/questions.d.ts +27 -27
- package/dist/lib/init/types/questions.js +3 -3
- package/dist/lib/init/types/questions.js.map +1 -1
- package/dist/lib/init/types/templates.d.ts +1 -1
- package/dist/lib/init/types/templates.js +3 -3
- package/dist/lib/init/types/templates.js.map +1 -1
- package/dist/utils/detect-endpoint-type.utils.d.ts +1 -1
- package/dist/utils/version.d.ts +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/utils/version.js.map +1 -1
- package/oclif.manifest.json +4 -7
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _oclif_core_interfaces from '@oclif/core/interfaces';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
declare const AGENT_FRAMEWORKS: readonly ["CrewAI", "LangGraph"
|
|
4
|
+
declare const AGENT_FRAMEWORKS: readonly ["CrewAI", "LangGraph"];
|
|
5
5
|
declare const CREW_TYPES: readonly ["Crews", "Flows"];
|
|
6
6
|
declare const CHAT_COMPONENTS: readonly ["CopilotChat", "CopilotSidebar", "Headless", "CopilotPopup"];
|
|
7
|
-
declare const LANGGRAPH_AGENTS: readonly ["Python Starter", "TypeScript Starter"
|
|
8
|
-
declare const CREW_FLOW_TEMPLATES: readonly ["Starter"
|
|
7
|
+
declare const LANGGRAPH_AGENTS: readonly ["Python Starter", "TypeScript Starter"];
|
|
8
|
+
declare const CREW_FLOW_TEMPLATES: readonly ["Starter"];
|
|
9
9
|
declare const YES_NO: readonly ["Yes", "No"];
|
|
10
10
|
declare const sanitizers: {
|
|
11
11
|
url: (value: string) => string;
|
|
@@ -13,11 +13,11 @@ declare const sanitizers: {
|
|
|
13
13
|
lowercase: (value: string) => string;
|
|
14
14
|
apiKey: (value: string) => string;
|
|
15
15
|
};
|
|
16
|
-
declare const AgentFrameworkSchema: z.ZodEnum<["CrewAI", "LangGraph"
|
|
16
|
+
declare const AgentFrameworkSchema: z.ZodEnum<["CrewAI", "LangGraph"]>;
|
|
17
17
|
declare const CrewTypeSchema: z.ZodEnum<["Crews", "Flows"]>;
|
|
18
18
|
declare const ChatComponentSchema: z.ZodEnum<["CopilotChat", "CopilotSidebar", "Headless", "CopilotPopup"]>;
|
|
19
|
-
declare const LangGraphAgentSchema: z.ZodEnum<["Python Starter", "TypeScript Starter"
|
|
20
|
-
declare const CrewFlowTemplateSchema: z.ZodEnum<["Starter"
|
|
19
|
+
declare const LangGraphAgentSchema: z.ZodEnum<["Python Starter", "TypeScript Starter"]>;
|
|
20
|
+
declare const CrewFlowTemplateSchema: z.ZodEnum<["Starter"]>;
|
|
21
21
|
declare const YesNoSchema: z.ZodEnum<["Yes", "No"]>;
|
|
22
22
|
declare const UrlSchema: z.ZodEffects<z.ZodString, string, unknown>;
|
|
23
23
|
declare const TokenSchema: z.ZodEffects<z.ZodString, string, unknown>;
|
|
@@ -25,12 +25,12 @@ declare const ApiKeySchema: z.ZodEffects<z.ZodString, string, unknown>;
|
|
|
25
25
|
declare const NameSchema: z.ZodEffects<z.ZodString, string, unknown>;
|
|
26
26
|
declare const ConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
27
27
|
copilotKitVersion: z.ZodOptional<z.ZodString>;
|
|
28
|
-
agentFramework: z.ZodEnum<["CrewAI", "LangGraph"
|
|
28
|
+
agentFramework: z.ZodEnum<["CrewAI", "LangGraph"]>;
|
|
29
29
|
chatUi: z.ZodOptional<z.ZodEnum<["CopilotChat", "CopilotSidebar", "Headless", "CopilotPopup"]>>;
|
|
30
30
|
alreadyDeployed: z.ZodOptional<z.ZodEnum<["Yes", "No"]>>;
|
|
31
31
|
fastApiEnabled: z.ZodOptional<z.ZodEnum<["Yes", "No"]>>;
|
|
32
32
|
useCopilotCloud: z.ZodOptional<z.ZodEnum<["Yes", "No"]>>;
|
|
33
|
-
langGraphAgent: z.ZodOptional<z.ZodEnum<["Python Starter", "TypeScript Starter"
|
|
33
|
+
langGraphAgent: z.ZodOptional<z.ZodEnum<["Python Starter", "TypeScript Starter"]>>;
|
|
34
34
|
langGraphPlatform: z.ZodOptional<z.ZodEnum<["Yes", "No"]>>;
|
|
35
35
|
langGraphPlatformUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>;
|
|
36
36
|
langGraphRemoteEndpointURL: z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>;
|
|
@@ -38,18 +38,18 @@ declare const ConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
38
38
|
crewName: z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>;
|
|
39
39
|
crewUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>;
|
|
40
40
|
crewBearerToken: z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>;
|
|
41
|
-
crewFlowAgent: z.ZodOptional<z.ZodEnum<["Starter"
|
|
41
|
+
crewFlowAgent: z.ZodOptional<z.ZodEnum<["Starter"]>>;
|
|
42
42
|
copilotCloudPublicApiKey: z.ZodOptional<z.ZodString>;
|
|
43
43
|
langSmithApiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>;
|
|
44
44
|
llmToken: z.ZodOptional<z.ZodEffects<z.ZodString, string, unknown>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
agentFramework: "CrewAI" | "LangGraph"
|
|
46
|
+
agentFramework: "CrewAI" | "LangGraph";
|
|
47
47
|
copilotKitVersion?: string | undefined;
|
|
48
48
|
chatUi?: "CopilotChat" | "CopilotSidebar" | "Headless" | "CopilotPopup" | undefined;
|
|
49
49
|
alreadyDeployed?: "Yes" | "No" | undefined;
|
|
50
50
|
fastApiEnabled?: "Yes" | "No" | undefined;
|
|
51
51
|
useCopilotCloud?: "Yes" | "No" | undefined;
|
|
52
|
-
langGraphAgent?: "
|
|
52
|
+
langGraphAgent?: "Python Starter" | "TypeScript Starter" | undefined;
|
|
53
53
|
langGraphPlatform?: "Yes" | "No" | undefined;
|
|
54
54
|
langGraphPlatformUrl?: string | undefined;
|
|
55
55
|
langGraphRemoteEndpointURL?: string | undefined;
|
|
@@ -57,18 +57,18 @@ declare const ConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
57
57
|
crewName?: string | undefined;
|
|
58
58
|
crewUrl?: string | undefined;
|
|
59
59
|
crewBearerToken?: string | undefined;
|
|
60
|
-
crewFlowAgent?: "
|
|
60
|
+
crewFlowAgent?: "Starter" | undefined;
|
|
61
61
|
copilotCloudPublicApiKey?: string | undefined;
|
|
62
62
|
langSmithApiKey?: string | undefined;
|
|
63
63
|
llmToken?: string | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
agentFramework: "CrewAI" | "LangGraph"
|
|
65
|
+
agentFramework: "CrewAI" | "LangGraph";
|
|
66
66
|
copilotKitVersion?: string | undefined;
|
|
67
67
|
chatUi?: "CopilotChat" | "CopilotSidebar" | "Headless" | "CopilotPopup" | undefined;
|
|
68
68
|
alreadyDeployed?: "Yes" | "No" | undefined;
|
|
69
69
|
fastApiEnabled?: "Yes" | "No" | undefined;
|
|
70
70
|
useCopilotCloud?: "Yes" | "No" | undefined;
|
|
71
|
-
langGraphAgent?: "
|
|
71
|
+
langGraphAgent?: "Python Starter" | "TypeScript Starter" | undefined;
|
|
72
72
|
langGraphPlatform?: "Yes" | "No" | undefined;
|
|
73
73
|
langGraphPlatformUrl?: unknown;
|
|
74
74
|
langGraphRemoteEndpointURL?: unknown;
|
|
@@ -76,18 +76,18 @@ declare const ConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
76
76
|
crewName?: unknown;
|
|
77
77
|
crewUrl?: unknown;
|
|
78
78
|
crewBearerToken?: unknown;
|
|
79
|
-
crewFlowAgent?: "
|
|
79
|
+
crewFlowAgent?: "Starter" | undefined;
|
|
80
80
|
copilotCloudPublicApiKey?: string | undefined;
|
|
81
81
|
langSmithApiKey?: unknown;
|
|
82
82
|
llmToken?: unknown;
|
|
83
83
|
}>, {
|
|
84
|
-
agentFramework: "CrewAI" | "LangGraph"
|
|
84
|
+
agentFramework: "CrewAI" | "LangGraph";
|
|
85
85
|
copilotKitVersion?: string | undefined;
|
|
86
86
|
chatUi?: "CopilotChat" | "CopilotSidebar" | "Headless" | "CopilotPopup" | undefined;
|
|
87
87
|
alreadyDeployed?: "Yes" | "No" | undefined;
|
|
88
88
|
fastApiEnabled?: "Yes" | "No" | undefined;
|
|
89
89
|
useCopilotCloud?: "Yes" | "No" | undefined;
|
|
90
|
-
langGraphAgent?: "
|
|
90
|
+
langGraphAgent?: "Python Starter" | "TypeScript Starter" | undefined;
|
|
91
91
|
langGraphPlatform?: "Yes" | "No" | undefined;
|
|
92
92
|
langGraphPlatformUrl?: string | undefined;
|
|
93
93
|
langGraphRemoteEndpointURL?: string | undefined;
|
|
@@ -95,18 +95,18 @@ declare const ConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
95
95
|
crewName?: string | undefined;
|
|
96
96
|
crewUrl?: string | undefined;
|
|
97
97
|
crewBearerToken?: string | undefined;
|
|
98
|
-
crewFlowAgent?: "
|
|
98
|
+
crewFlowAgent?: "Starter" | undefined;
|
|
99
99
|
copilotCloudPublicApiKey?: string | undefined;
|
|
100
100
|
langSmithApiKey?: string | undefined;
|
|
101
101
|
llmToken?: string | undefined;
|
|
102
102
|
}, {
|
|
103
|
-
agentFramework: "CrewAI" | "LangGraph"
|
|
103
|
+
agentFramework: "CrewAI" | "LangGraph";
|
|
104
104
|
copilotKitVersion?: string | undefined;
|
|
105
105
|
chatUi?: "CopilotChat" | "CopilotSidebar" | "Headless" | "CopilotPopup" | undefined;
|
|
106
106
|
alreadyDeployed?: "Yes" | "No" | undefined;
|
|
107
107
|
fastApiEnabled?: "Yes" | "No" | undefined;
|
|
108
108
|
useCopilotCloud?: "Yes" | "No" | undefined;
|
|
109
|
-
langGraphAgent?: "
|
|
109
|
+
langGraphAgent?: "Python Starter" | "TypeScript Starter" | undefined;
|
|
110
110
|
langGraphPlatform?: "Yes" | "No" | undefined;
|
|
111
111
|
langGraphPlatformUrl?: unknown;
|
|
112
112
|
langGraphRemoteEndpointURL?: unknown;
|
|
@@ -114,18 +114,18 @@ declare const ConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
114
114
|
crewName?: unknown;
|
|
115
115
|
crewUrl?: unknown;
|
|
116
116
|
crewBearerToken?: unknown;
|
|
117
|
-
crewFlowAgent?: "
|
|
117
|
+
crewFlowAgent?: "Starter" | undefined;
|
|
118
118
|
copilotCloudPublicApiKey?: string | undefined;
|
|
119
119
|
langSmithApiKey?: unknown;
|
|
120
120
|
llmToken?: unknown;
|
|
121
121
|
}>, {
|
|
122
|
-
agentFramework: "CrewAI" | "LangGraph"
|
|
122
|
+
agentFramework: "CrewAI" | "LangGraph";
|
|
123
123
|
copilotKitVersion?: string | undefined;
|
|
124
124
|
chatUi?: "CopilotChat" | "CopilotSidebar" | "Headless" | "CopilotPopup" | undefined;
|
|
125
125
|
alreadyDeployed?: "Yes" | "No" | undefined;
|
|
126
126
|
fastApiEnabled?: "Yes" | "No" | undefined;
|
|
127
127
|
useCopilotCloud?: "Yes" | "No" | undefined;
|
|
128
|
-
langGraphAgent?: "
|
|
128
|
+
langGraphAgent?: "Python Starter" | "TypeScript Starter" | undefined;
|
|
129
129
|
langGraphPlatform?: "Yes" | "No" | undefined;
|
|
130
130
|
langGraphPlatformUrl?: string | undefined;
|
|
131
131
|
langGraphRemoteEndpointURL?: string | undefined;
|
|
@@ -133,18 +133,18 @@ declare const ConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
133
133
|
crewName?: string | undefined;
|
|
134
134
|
crewUrl?: string | undefined;
|
|
135
135
|
crewBearerToken?: string | undefined;
|
|
136
|
-
crewFlowAgent?: "
|
|
136
|
+
crewFlowAgent?: "Starter" | undefined;
|
|
137
137
|
copilotCloudPublicApiKey?: string | undefined;
|
|
138
138
|
langSmithApiKey?: string | undefined;
|
|
139
139
|
llmToken?: string | undefined;
|
|
140
140
|
}, {
|
|
141
|
-
agentFramework: "CrewAI" | "LangGraph"
|
|
141
|
+
agentFramework: "CrewAI" | "LangGraph";
|
|
142
142
|
copilotKitVersion?: string | undefined;
|
|
143
143
|
chatUi?: "CopilotChat" | "CopilotSidebar" | "Headless" | "CopilotPopup" | undefined;
|
|
144
144
|
alreadyDeployed?: "Yes" | "No" | undefined;
|
|
145
145
|
fastApiEnabled?: "Yes" | "No" | undefined;
|
|
146
146
|
useCopilotCloud?: "Yes" | "No" | undefined;
|
|
147
|
-
langGraphAgent?: "
|
|
147
|
+
langGraphAgent?: "Python Starter" | "TypeScript Starter" | undefined;
|
|
148
148
|
langGraphPlatform?: "Yes" | "No" | undefined;
|
|
149
149
|
langGraphPlatformUrl?: unknown;
|
|
150
150
|
langGraphRemoteEndpointURL?: unknown;
|
|
@@ -152,7 +152,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
152
152
|
crewName?: unknown;
|
|
153
153
|
crewUrl?: unknown;
|
|
154
154
|
crewBearerToken?: unknown;
|
|
155
|
-
crewFlowAgent?: "
|
|
155
|
+
crewFlowAgent?: "Starter" | undefined;
|
|
156
156
|
copilotCloudPublicApiKey?: string | undefined;
|
|
157
157
|
langSmithApiKey?: unknown;
|
|
158
158
|
llmToken?: unknown;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// src/lib/init/types/questions.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { Flags } from "@oclif/core";
|
|
4
|
-
var AGENT_FRAMEWORKS = ["CrewAI", "LangGraph"
|
|
4
|
+
var AGENT_FRAMEWORKS = ["CrewAI", "LangGraph"];
|
|
5
5
|
var CREW_TYPES = ["Crews", "Flows"];
|
|
6
6
|
var CHAT_COMPONENTS = ["CopilotChat", "CopilotSidebar", "Headless", "CopilotPopup"];
|
|
7
|
-
var LANGGRAPH_AGENTS = ["Python Starter", "TypeScript Starter"
|
|
8
|
-
var CREW_FLOW_TEMPLATES = ["Starter"
|
|
7
|
+
var LANGGRAPH_AGENTS = ["Python Starter", "TypeScript Starter"];
|
|
8
|
+
var CREW_FLOW_TEMPLATES = ["Starter"];
|
|
9
9
|
var YES_NO = ["Yes", "No"];
|
|
10
10
|
var sanitizers = {
|
|
11
11
|
// Remove trailing slash from URLs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/init/types/questions.ts"],"sourcesContent":["import { z } from 'zod';\nimport { Flags } from \"@oclif/core\"\n\n// ===== Core Constants =====\nexport const AGENT_FRAMEWORKS = ['CrewAI', 'LangGraph'
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/init/types/questions.ts"],"sourcesContent":["import { z } from 'zod';\nimport { Flags } from \"@oclif/core\"\n\n// ===== Core Constants =====\nexport const AGENT_FRAMEWORKS = ['CrewAI', 'LangGraph'] as const;\nexport const CREW_TYPES = ['Crews', 'Flows'] as const;\nexport const CHAT_COMPONENTS = ['CopilotChat','CopilotSidebar', 'Headless', 'CopilotPopup'] as const;\nexport const LANGGRAPH_AGENTS = ['Python Starter', 'TypeScript Starter'] as const;\nexport const CREW_FLOW_TEMPLATES = ['Starter'] as const;\nexport const YES_NO = ['Yes', 'No'] as const;\n\n// ===== Sanitizers =====\nexport const sanitizers = {\n // Remove trailing slash from URLs\n url: (value: string): string => {\n if (!value) return value;\n return value.trim().replace(/\\/+$/, '');\n },\n \n // Trim whitespace from strings\n trim: (value: string): string => {\n if (!value) return value;\n return value.trim();\n },\n \n // Lowercase strings\n lowercase: (value: string): string => {\n if (!value) return value;\n return value.toLowerCase().trim();\n },\n \n // Clean API keys (remove whitespace)\n apiKey: (value: string): string => {\n if (!value) return value;\n return value.trim().replace(/\\s/g, '');\n }\n};\n\n// ===== Zod Schemas =====\n\n// Basic schemas\nexport const AgentFrameworkSchema = z.enum(AGENT_FRAMEWORKS);\nexport const CrewTypeSchema = z.enum(CREW_TYPES);\nexport const ChatComponentSchema = z.enum(CHAT_COMPONENTS);\nexport const LangGraphAgentSchema = z.enum(LANGGRAPH_AGENTS);\nexport const CrewFlowTemplateSchema = z.enum(CREW_FLOW_TEMPLATES);\nexport const YesNoSchema = z.enum(YES_NO);\n\n// URL validation schema with preprocessing to remove trailing slash\nexport const UrlSchema = z.preprocess(\n val => sanitizers.url(String(val)),\n z.string().url('Please enter a valid URL').min(1, 'URL is required')\n);\n\n// Token validation schema with preprocessing to trim\nexport const TokenSchema = z.preprocess(\n val => sanitizers.trim(String(val)),\n z.string().min(1, 'Token is required')\n);\n\n// API key validation schema with preprocessing to remove whitespace\nexport const ApiKeySchema = z.preprocess(\n val => sanitizers.apiKey(String(val)),\n z.string().min(1, 'API key is required')\n);\n\n// Name validation schema with preprocessing to trim\nexport const NameSchema = z.preprocess(\n val => sanitizers.trim(String(val)),\n z.string().min(1, 'Name is required')\n);\n\n// Config schema\nexport const ConfigSchema = z.object({\n // Core fields\n copilotKitVersion: z.string().optional(),\n agentFramework: AgentFrameworkSchema,\n chatUi: ChatComponentSchema.optional(),\n \n // Yes/No fields\n alreadyDeployed: YesNoSchema.optional(),\n fastApiEnabled: YesNoSchema.optional(),\n useCopilotCloud: YesNoSchema.optional(),\n \n // LangGraph specific fields \n langGraphAgent: LangGraphAgentSchema.optional(),\n langGraphPlatform: YesNoSchema.optional(),\n langGraphPlatformUrl: UrlSchema.optional(),\n langGraphRemoteEndpointURL: UrlSchema.optional(),\n \n // CrewAI specific fields\n crewType: CrewTypeSchema.optional(),\n crewName: NameSchema.optional(),\n crewUrl: UrlSchema.optional(),\n crewBearerToken: TokenSchema.optional(),\n crewFlowAgent: CrewFlowTemplateSchema.optional(),\n \n // API keys and tokens\n copilotCloudPublicApiKey: z.string().optional(),\n langSmithApiKey: ApiKeySchema.optional(),\n llmToken: ApiKeySchema.optional(),\n})\n.refine(\n (data) => {\n // If CrewAI is selected with Crews type, require crew URL and bearer token\n if (data.agentFramework === 'CrewAI' && data.crewType === 'Crews') {\n return !!data.crewUrl && !!data.crewBearerToken;\n }\n return true;\n },\n {\n message: \"Crew URL and bearer token are required for CrewAI Crews\",\n path: [\"crewUrl\", \"crewBearerToken\"],\n }\n)\n.refine(\n (data) => {\n // If LangGraph is selected with LangGraph Platform, require platform URL and LangSmith API key\n if (\n data.agentFramework === 'LangGraph' && \n data.alreadyDeployed === 'Yes' && \n data.langGraphPlatform === 'Yes'\n ) {\n return !!data.langGraphPlatformUrl && !!data.langSmithApiKey;\n }\n return true;\n },\n {\n message: \"LangGraph Platform URL and LangSmith API key are required\",\n path: [\"langGraphPlatformUrl\", \"langSmithApiKey\"],\n }\n);\n\n// Export the inferred type from the schema\nexport type Config = z.infer<typeof ConfigSchema>;\n\n// Question type definition with improved validation and sanitization\nexport type Question = {\n type: 'input' | 'yes/no' | 'select';\n name: keyof Config;\n message: string;\n choices?: readonly string[];\n default?: string;\n when?: (answers: Partial<Config>) => boolean;\n sensitive?: boolean;\n validate?: (input: string) => true | string; // Return true if valid, error message string if invalid\n sanitize?: (input: string) => string; // Function to sanitize input before validation\n};\n\n// CLI flags definition with descriptions\nexport const ConfigFlags = {\n copilotKitVersion: Flags.string({description: 'CopilotKit version to use (e.g. 1.7.0)'}),\n agentFramework: Flags.string({description: 'Agent framework to power your copilot', options: AGENT_FRAMEWORKS}),\n fastApiEnabled: Flags.string({description: 'Use FastAPI to serve your agent locally', options: YES_NO}),\n useCopilotCloud: Flags.string({description: 'Use Copilot Cloud for production-ready hosting', options: YES_NO}),\n chatUi: Flags.string({description: 'Chat UI component to add to your app', options: CHAT_COMPONENTS}),\n langGraphAgent: Flags.string({description: 'LangGraph agent template to use', options: LANGGRAPH_AGENTS}),\n crewType: Flags.string({description: 'CrewAI implementation type', options: CREW_TYPES}),\n crewName: Flags.string({description: 'Name for your CrewAI agent'}),\n crewUrl: Flags.string({description: 'URL endpoint for your CrewAI agent'}),\n crewBearerToken: Flags.string({description: 'Bearer token for CrewAI authentication'}),\n langSmithApiKey: Flags.string({description: 'LangSmith API key for LangGraph observability'}),\n llmToken: Flags.string({description: 'API key for your preferred LLM provider'}),\n crewFlowAgent: Flags.string({description: 'CrewAI Flow template to use', options: CREW_FLOW_TEMPLATES}),\n}"],"mappings":";AAAA,SAAS,SAAS;AAClB,SAAS,aAAa;AAGf,IAAM,mBAAmB,CAAC,UAAU,WAAW;AAC/C,IAAM,aAAa,CAAC,SAAS,OAAO;AACpC,IAAM,kBAAkB,CAAC,eAAc,kBAAkB,YAAY,cAAc;AACnF,IAAM,mBAAmB,CAAC,kBAAkB,oBAAoB;AAChE,IAAM,sBAAsB,CAAC,SAAS;AACtC,IAAM,SAAS,CAAC,OAAO,IAAI;AAG3B,IAAM,aAAa;AAAA;AAAA,EAExB,KAAK,CAAC,UAA0B;AAC9B,QAAI,CAAC,MAAO,QAAO;AACnB,WAA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ACvF,gBAAgB,MAAM,OAAO,EAAC,aAAa,yCAAyC,SAAS,iBAAgB,CAAC;AAAA,EAC9G,gBAAgB,MAAM,OAAO,EAAC,aAAa,2CAA2C,SAAS,OAAM,CAAC;AAAA,EACtG,iBAAiB,MAAM,OAAO,EAAC,aAAa,kDAAkD,SAAS,OAAM,CAAC;AAAA,EAC9G,QAAQ,MAAM,OAAO,EAAC,aAAa,wCAAwC,SAAS,gBAAe,CAAC;AAAA,EACpG,gBAAgB,MAAM,OAAO,EAAC,aAAa,mCAAmC,SAAS,iBAAgB,CAAC;AAAA,EACxG,UAAU,MAAM,OAAO,EAAC,aAAa,8BAA8B,SAAS,WAAU,CAAC;AAAA,EACvF,UAAU,MAAM,OAAO,EAAC,aAAa,6BAA4B,CAAC;AAAA,EAClE,SAAS,MAAM,OAAO,EAAC,aAAa,qCAAoC,CAAC;AAAA,EACzE,iBAAiB,MAAM,OAAO,EAAC,aAAa,yCAAwC,CAAC;AAAA,EACrF,iBAAiB,MAAM,OAAO,EAAC,aAAa,gDAA+C,CAAC;AAAA,EAC5F,UAAU,MAAM,OAAO,EAAC,aAAa,0CAAyC,CAAC;AAAA,EAC/E,eAAe,MAAM,OAAO,EAAC,aAAa,+BAA+B,SAAS,oBAAmB,CAAC;AACxG;","names":[]}
|
|
@@ -2,7 +2,7 @@ type ChatTemplate = "CopilotChat" | "CopilotPopup" | "CopilotSidebar";
|
|
|
2
2
|
type StarterTemplate = "LangGraphPlatform" | "RemoteEndpoint" | "Standard" | "CrewEnterprise" | "CrewFlowsStarter";
|
|
3
3
|
type Template = ChatTemplate | StarterTemplate;
|
|
4
4
|
declare const templateMapping: {
|
|
5
|
-
|
|
5
|
+
LangGraphPlatformRuntime: string;
|
|
6
6
|
RemoteEndpoint: string;
|
|
7
7
|
CrewEnterprise: string[];
|
|
8
8
|
LangGraphGeneric: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// src/lib/init/types/templates.ts
|
|
2
|
-
var BASE_URL = "
|
|
2
|
+
var BASE_URL = "http://registry.copilotkit.ai/r";
|
|
3
3
|
var templateMapping = {
|
|
4
|
-
"
|
|
4
|
+
"LangGraphPlatformRuntime": `${BASE_URL}/langgraph-platform-starter.json`,
|
|
5
5
|
"RemoteEndpoint": `${BASE_URL}/remote-endpoint-starter.json`,
|
|
6
6
|
"CrewEnterprise": [
|
|
7
7
|
`${BASE_URL}/coagents-crew-starter.json`
|
|
8
8
|
],
|
|
9
|
-
"LangGraphGeneric": `${BASE_URL}/generic-lg-starter.json`,
|
|
9
|
+
"LangGraphGeneric": `${BASE_URL}/generic-lg-starter-with-cloud.json`,
|
|
10
10
|
"CrewFlowsStarter": [
|
|
11
11
|
`${BASE_URL}/coagents-starter-ui.json`,
|
|
12
12
|
`${BASE_URL}/agent-layout.json`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/init/types/templates.ts"],"sourcesContent":["export type ChatTemplate = \n \"CopilotChat\" |\n \"CopilotPopup\" |\n \"CopilotSidebar\"\n\nexport type StarterTemplate = \n \"LangGraphPlatform\" |\n \"RemoteEndpoint\" |\n \"Standard\" |\n \"CrewEnterprise\" |\n \"CrewFlowsStarter\"\n\nexport type Template = ChatTemplate | StarterTemplate\n\nconst BASE_URL = \"
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/init/types/templates.ts"],"sourcesContent":["export type ChatTemplate = \n \"CopilotChat\" |\n \"CopilotPopup\" |\n \"CopilotSidebar\"\n\nexport type StarterTemplate = \n \"LangGraphPlatform\" |\n \"RemoteEndpoint\" |\n \"Standard\" |\n \"CrewEnterprise\" |\n \"CrewFlowsStarter\"\n\nexport type Template = ChatTemplate | StarterTemplate\n\nconst BASE_URL = \"http://registry.copilotkit.ai/r\"\n\nexport const templateMapping = {\n \"LangGraphPlatformRuntime\": `${BASE_URL}/langgraph-platform-starter.json`,\n \"RemoteEndpoint\": `${BASE_URL}/remote-endpoint-starter.json`,\n \"CrewEnterprise\": [\n `${BASE_URL}/coagents-crew-starter.json`,\n ],\n\n \"LangGraphGeneric\": `${BASE_URL}/generic-lg-starter-with-cloud.json`,\n\n \"CrewFlowsStarter\": [\n `${BASE_URL}/coagents-starter-ui.json`,\n `${BASE_URL}/agent-layout.json`,\n `${BASE_URL}/remote-endpoint.json`\n ],\n\n \"LangGraphStarter\": [\n `${BASE_URL}/langgraph-platform-starter.json`,\n `${BASE_URL}/coagents-starter-ui.json`,\n ],\n\n \"Standard\": `${BASE_URL}/standard-starter.json`,\n \"CopilotChat\": `${BASE_URL}/chat.json`,\n \"CopilotPopup\": `${BASE_URL}/popup.json`,\n \"CopilotSidebar\": `${BASE_URL}/sidebar.json`,\n}"],"mappings":";AAcA,IAAM,WAAW;AAEV,IAAM,kBAAkB;AAAA,EAC3B,4BAA4B,GAAG,QAAQ;AAAA,EACvC,kBAAkB,GAAG,QAAQ;AAAA,EAC7B,kBAAkB;AAAA,IACd,GAAG,QAAQ;AAAA,EACf;AAAA,EAEA,oBAAoB,GAAG,QAAQ;AAAA,EAE/B,oBAAoB;AAAA,IAChB,GAAG,QAAQ;AAAA,IACX,GAAG,QAAQ;AAAA,IACX,GAAG,QAAQ;AAAA,EACf;AAAA,EAEA,oBAAoB;AAAA,IAChB,GAAG,QAAQ;AAAA,IACX,GAAG,QAAQ;AAAA,EACf;AAAA,EAEA,YAAY,GAAG,QAAQ;AAAA,EACvB,eAAe,GAAG,QAAQ;AAAA,EAC1B,gBAAgB,GAAG,QAAQ;AAAA,EAC3B,kBAAkB,GAAG,QAAQ;AACjC;","names":[]}
|
|
@@ -5,7 +5,7 @@ declare enum RemoteEndpointType {
|
|
|
5
5
|
MCP = "MCP",
|
|
6
6
|
Invalid = "Invalid"
|
|
7
7
|
}
|
|
8
|
-
declare const getHumanReadableEndpointType: (type: RemoteEndpointType) => "
|
|
8
|
+
declare const getHumanReadableEndpointType: (type: RemoteEndpointType) => "LangGraph Platform" | "CopilotKit" | "CrewAI" | "MCP" | "Invalid";
|
|
9
9
|
declare function detectRemoteEndpointType(url: string): Promise<{
|
|
10
10
|
url: string;
|
|
11
11
|
type: RemoteEndpointType;
|
package/dist/utils/version.d.ts
CHANGED
package/dist/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/version.ts"],"sourcesContent":["// This is auto generated!\nexport const LIB_VERSION = \"0.0.
|
|
1
|
+
{"version":3,"sources":["../../src/utils/version.ts"],"sourcesContent":["// This is auto generated!\nexport const LIB_VERSION = \"0.0.28\";\n"],"mappings":";AACO,IAAM,cAAc;","names":[]}
|
package/oclif.manifest.json
CHANGED
|
@@ -79,8 +79,7 @@
|
|
|
79
79
|
"multiple": false,
|
|
80
80
|
"options": [
|
|
81
81
|
"CrewAI",
|
|
82
|
-
"LangGraph"
|
|
83
|
-
"None"
|
|
82
|
+
"LangGraph"
|
|
84
83
|
],
|
|
85
84
|
"type": "option"
|
|
86
85
|
},
|
|
@@ -126,8 +125,7 @@
|
|
|
126
125
|
"multiple": false,
|
|
127
126
|
"options": [
|
|
128
127
|
"Python Starter",
|
|
129
|
-
"TypeScript Starter"
|
|
130
|
-
"None"
|
|
128
|
+
"TypeScript Starter"
|
|
131
129
|
],
|
|
132
130
|
"type": "option"
|
|
133
131
|
},
|
|
@@ -183,8 +181,7 @@
|
|
|
183
181
|
"hasDynamicHelp": false,
|
|
184
182
|
"multiple": false,
|
|
185
183
|
"options": [
|
|
186
|
-
"Starter"
|
|
187
|
-
"None"
|
|
184
|
+
"Starter"
|
|
188
185
|
],
|
|
189
186
|
"type": "option"
|
|
190
187
|
},
|
|
@@ -270,5 +267,5 @@
|
|
|
270
267
|
]
|
|
271
268
|
}
|
|
272
269
|
},
|
|
273
|
-
"version": "0.0.
|
|
270
|
+
"version": "0.0.28"
|
|
274
271
|
}
|