copilotkit 2.1.2 → 3.0.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.
Files changed (69) hide show
  1. package/README.md +179 -0
  2. package/index.js +75447 -71992
  3. package/package.json +1 -1
  4. package/src/commands/docs.d.ts +0 -17
  5. package/src/commands/docs.d.ts.map +0 -1
  6. package/src/commands/init.d.ts +0 -142
  7. package/src/commands/init.d.ts.map +0 -1
  8. package/src/commands/kite.d.ts +0 -8
  9. package/src/commands/kite.d.ts.map +0 -1
  10. package/src/commands/license.d.ts +0 -25
  11. package/src/commands/license.d.ts.map +0 -1
  12. package/src/commands/login.d.ts +0 -13
  13. package/src/commands/login.d.ts.map +0 -1
  14. package/src/commands/logs.d.ts +0 -32
  15. package/src/commands/logs.d.ts.map +0 -1
  16. package/src/commands/version.d.ts +0 -8
  17. package/src/commands/version.d.ts.map +0 -1
  18. package/src/config.d.ts +0 -46
  19. package/src/config.d.ts.map +0 -1
  20. package/src/index.d.ts +0 -21
  21. package/src/index.d.ts.map +0 -1
  22. package/src/services/agentcore-config.d.ts +0 -34
  23. package/src/services/agentcore-config.d.ts.map +0 -1
  24. package/src/services/api-client.d.ts +0 -99
  25. package/src/services/api-client.d.ts.map +0 -1
  26. package/src/services/auth.service.d.ts +0 -141
  27. package/src/services/auth.service.d.ts.map +0 -1
  28. package/src/services/cli-auth-diagnostics.d.ts +0 -71
  29. package/src/services/cli-auth-diagnostics.d.ts.map +0 -1
  30. package/src/services/cli-logs.d.ts +0 -45
  31. package/src/services/cli-logs.d.ts.map +0 -1
  32. package/src/services/cli-tips.d.ts +0 -45
  33. package/src/services/cli-tips.d.ts.map +0 -1
  34. package/src/services/config.service.d.ts +0 -53
  35. package/src/services/config.service.d.ts.map +0 -1
  36. package/src/services/kite-game-engine.d.ts +0 -99
  37. package/src/services/kite-game-engine.d.ts.map +0 -1
  38. package/src/services/kite-game-score.d.ts +0 -33
  39. package/src/services/kite-game-score.d.ts.map +0 -1
  40. package/src/services/project-scaffold.d.ts +0 -49
  41. package/src/services/project-scaffold.d.ts.map +0 -1
  42. package/src/services/showcase-config.d.ts +0 -19
  43. package/src/services/showcase-config.d.ts.map +0 -1
  44. package/src/services/telemetry/event-properties.d.ts +0 -128
  45. package/src/services/telemetry/event-properties.d.ts.map +0 -1
  46. package/src/services/telemetry/index.d.ts +0 -48
  47. package/src/services/telemetry/index.d.ts.map +0 -1
  48. package/src/services/telemetry/installation-id.d.ts +0 -22
  49. package/src/services/telemetry/installation-id.d.ts.map +0 -1
  50. package/src/services/telemetry/opt-out.d.ts +0 -24
  51. package/src/services/telemetry/opt-out.d.ts.map +0 -1
  52. package/src/services/telemetry/telemetry.service.d.ts +0 -74
  53. package/src/services/telemetry/telemetry.service.d.ts.map +0 -1
  54. package/src/types.d.ts +0 -227
  55. package/src/types.d.ts.map +0 -1
  56. package/src/ui/banner.d.ts +0 -3
  57. package/src/ui/banner.d.ts.map +0 -1
  58. package/src/ui/browser-login.d.ts +0 -75
  59. package/src/ui/browser-login.d.ts.map +0 -1
  60. package/src/ui/cli-tip.d.ts +0 -111
  61. package/src/ui/cli-tip.d.ts.map +0 -1
  62. package/src/ui/init-flow.d.ts +0 -28
  63. package/src/ui/init-flow.d.ts.map +0 -1
  64. package/src/ui/kite-game.d.ts +0 -26
  65. package/src/ui/kite-game.d.ts.map +0 -1
  66. package/src/ui/login-flow.d.ts +0 -22
  67. package/src/ui/login-flow.d.ts.map +0 -1
  68. package/src/ui/spinner.d.ts +0 -9
  69. package/src/ui/spinner.d.ts.map +0 -1
@@ -1,22 +0,0 @@
1
- /** Config-store key under which the persistent installation id is stored. */
2
- export declare const INSTALLATION_ID_KEY = "telemetry.installationId";
3
- /** Minimal config-store surface used to persist the installation id. */
4
- export interface ConfigStoreReadWrite {
5
- get<T>(key: string): T | undefined;
6
- set(key: string, value: unknown): void;
7
- }
8
- /** Injectable dependencies for {@link getOrCreateInstallationId}. */
9
- export interface InstallationIdDeps {
10
- configStore: ConfigStoreReadWrite;
11
- /** Injectable UUID generator for deterministic tests. Defaults to crypto. */
12
- generateId?: () => string;
13
- }
14
- /**
15
- * Reads the persistent anonymous installation id, generating and persisting
16
- * a fresh UUID v4 on first call.
17
- *
18
- * @param deps - Injectable config store and id generator.
19
- * @returns The installation id as a string.
20
- */
21
- export declare function getOrCreateInstallationId(deps: InstallationIdDeps): string;
22
- //# sourceMappingURL=installation-id.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"installation-id.d.ts","sourceRoot":"","sources":["../../../../../../apps/cli/src/services/telemetry/installation-id.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IACnC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACxC;AAED,qEAAqE;AACrE,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,oBAAoB,CAAC;IAClC,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAS1E"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Resolves whether telemetry should be disabled for this process.
3
- *
4
- * Honors, in order of precedence:
5
- * 1. The `DO_NOT_TRACK` env var (consoledonottrack.com standard).
6
- * 2. The `COPILOTKIT_TELEMETRY_DISABLED` env var.
7
- * 3. A persisted `telemetry.optOut` boolean in {@link ConfigStoreReader}.
8
- *
9
- * Env values are matched case-insensitively against `1 | true | yes | on`.
10
- * Empty or unset values are treated as not-set.
11
- */
12
- /** Minimal config-store surface used to read the persisted opt-out flag. */
13
- export interface ConfigStoreReader {
14
- get<T>(key: string): T | undefined;
15
- }
16
- /**
17
- * Resolves the effective opt-out state for the current process.
18
- *
19
- * @param env - Process environment variables (defaults to `process.env`).
20
- * @param configStore - Persistent config store with `telemetry.optOut`.
21
- * @returns `true` when telemetry should be disabled.
22
- */
23
- export declare function resolveOptOut(env: NodeJS.ProcessEnv, configStore: ConfigStoreReader): boolean;
24
- //# sourceMappingURL=opt-out.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"opt-out.d.ts","sourceRoot":"","sources":["../../../../../../apps/cli/src/services/telemetry/opt-out.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,4EAA4E;AAC5E,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;CACpC;AAaD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,WAAW,EAAE,iBAAiB,GAC7B,OAAO,CAIT"}
@@ -1,74 +0,0 @@
1
- import type { BaseProperties, TelemetryCommand, TelemetryErrorCode, TelemetryOutcome } from "./event-properties.js";
2
- /** Wire-shape event name; one allowlist entry covers every CLI event. */
3
- export declare const CLI_TELEMETRY_EVENT_NAME: "cli.command.invoked";
4
- /** Per-event property keys that may appear in addition to base properties. */
5
- export interface TelemetryEventProperties {
6
- command: TelemetryCommand;
7
- outcome: TelemetryOutcome;
8
- subcommand?: string;
9
- scope?: "org" | "user";
10
- duration_ms?: number;
11
- error_code?: TelemetryErrorCode;
12
- }
13
- /** Full event payload accepted by {@link TelemetryService.recordEvent}. */
14
- export interface TelemetryEvent {
15
- properties: TelemetryEventProperties;
16
- }
17
- /** Maximum concurrent in-flight requests; excess events are dropped. */
18
- export declare const MAX_INFLIGHT = 32;
19
- /** Per-request hard timeout for the outbound POST. */
20
- export declare const DEFAULT_PER_REQUEST_TIMEOUT_MS = 2000;
21
- /** Default flush timeout used by {@link TelemetryService.flush}. */
22
- export declare const DEFAULT_FLUSH_TIMEOUT_MS = 1500;
23
- /**
24
- * Minimal logger surface used by the telemetry service. Mirrors the subset of
25
- * the CLI's `writeCliLog` signature so callers can pass a thin wrapper.
26
- */
27
- export interface TelemetryLogger {
28
- debug: (payload: Record<string, unknown>) => void;
29
- warn: (payload: Record<string, unknown>) => void;
30
- error: (payload: Record<string, unknown>) => void;
31
- }
32
- /** Injectable dependencies for {@link createTelemetryService}. */
33
- export interface TelemetryServiceDeps {
34
- /** Master on/off; when `false`, `recordEvent` is a synchronous no-op. */
35
- enabled: boolean;
36
- /** Absolute URL of the telemetry ingest endpoint. */
37
- endpointUrl: string;
38
- /** Producer of the base properties merged into every event. */
39
- buildBaseProperties: () => BaseProperties;
40
- /** Structured logger for diagnostic events. */
41
- logger: TelemetryLogger;
42
- /** Injectable fetch for tests. Defaults to global `fetch`. */
43
- fetch?: typeof fetch;
44
- /** Per-request hard timeout. Defaults to {@link DEFAULT_PER_REQUEST_TIMEOUT_MS}. */
45
- perRequestTimeoutMs?: number;
46
- /** Cap on in-flight requests. Defaults to {@link MAX_INFLIGHT}. */
47
- maxInFlight?: number;
48
- }
49
- /** Public surface of the telemetry service. */
50
- export interface TelemetryService {
51
- /**
52
- * Synchronously schedules a telemetry event for fire-and-forget delivery.
53
- * Returns `void` and never throws — callers must not `await` this.
54
- */
55
- recordEvent(event: TelemetryEvent): void;
56
- /**
57
- * Awaits all in-flight requests up to a bounded timeout, then resolves.
58
- * Safe to call multiple times; resolves immediately when the queue is empty.
59
- */
60
- flush(timeoutMs?: number): Promise<void>;
61
- }
62
- /**
63
- * Constructs a CLI telemetry service.
64
- *
65
- * Sends `{ event: "cli.command.invoked", properties }` to the configured
66
- * endpoint as fire-and-forget POSTs, with a bounded in-flight queue and a
67
- * per-request `AbortController`. All failures are swallowed and logged via
68
- * the injected `logger`.
69
- *
70
- * @param deps - Injectable configuration and collaborators.
71
- * @returns The telemetry service instance.
72
- */
73
- export declare function createTelemetryService(deps: TelemetryServiceDeps): TelemetryService;
74
- //# sourceMappingURL=telemetry.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"telemetry.service.d.ts","sourceRoot":"","sources":["../../../../../../apps/cli/src/services/telemetry/telemetry.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEpH,yEAAyE;AACzE,eAAO,MAAM,wBAAwB,EAAG,qBAA8B,CAAC;AAEvE,8EAA8E;AAC9E,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC;AAED,2EAA2E;AAC3E,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,wBAAwB,CAAC;CACtC;AAED,wEAAwE;AACxE,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,sDAAsD;AACtD,eAAO,MAAM,8BAA8B,OAAQ,CAAC;AAEpD,oEAAoE;AACpE,eAAO,MAAM,wBAAwB,OAAQ,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAClD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACjD,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACnD;AAED,kEAAkE;AAClE,MAAM,WAAW,oBAAoB;IACnC,yEAAyE;IACzE,OAAO,EAAE,OAAO,CAAC;IACjB,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,mBAAmB,EAAE,MAAM,cAAc,CAAC;IAC1C,+CAA+C;IAC/C,MAAM,EAAE,eAAe,CAAC;IACxB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,oFAAoF;IACpF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAEzC;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,oBAAoB,GAAG,gBAAgB,CA6FnF"}
package/src/types.d.ts DELETED
@@ -1,227 +0,0 @@
1
- /**
2
- * Agent framework options — matches CopilotKit CLI supported frameworks.
3
- *
4
- * Each value corresponds to a supported agent integration target that
5
- * CopilotKit Intelligence can scaffold or connect to.
6
- */
7
- export type AgentFramework = 'langgraph-py' | 'langgraph-js' | 'flows' | 'mastra' | 'pydantic-ai' | 'llamaindex' | 'agno' | 'ag2' | 'adk' | 'aws-strands-py' | 'a2a' | 'microsoft-agent-framework-dotnet' | 'microsoft-agent-framework-py' | 'mcp-apps' | 'agentcore-langgraph' | 'agentcore-strands' | 'a2ui' | 'opengenui';
8
- /**
9
- * Runtime list of all supported agent frameworks.
10
- *
11
- * Used for validation of CLI flags and any other user-provided framework
12
- * values before they are used as template keys.
13
- */
14
- export declare const AGENT_FRAMEWORKS: readonly ["langgraph-py", "langgraph-js", "flows", "mastra", "pydantic-ai", "llamaindex", "agno", "ag2", "adk", "aws-strands-py", "a2a", "microsoft-agent-framework-dotnet", "microsoft-agent-framework-py", "mcp-apps", "agentcore-langgraph", "agentcore-strands", "a2ui", "opengenui"];
15
- /**
16
- * User-facing aliases for `--framework`/`-f` values.
17
- *
18
- * Alias keys resolve to canonical {@link AgentFramework} values before
19
- * validation. Used to keep legacy or user-friendly names working without
20
- * proliferating canonical IDs.
21
- */
22
- export declare const FRAMEWORK_ALIASES: Record<string, AgentFramework>;
23
- /**
24
- * Resolves a user-supplied framework string through {@link FRAMEWORK_ALIASES}.
25
- *
26
- * Returns the canonical framework value when an alias is matched, or the
27
- * input unchanged. Validation against {@link AGENT_FRAMEWORKS} happens
28
- * separately via {@link isAgentFramework}.
29
- *
30
- * @param value - User-provided framework identifier or alias.
31
- * @returns The canonical framework string.
32
- */
33
- export declare function resolveFrameworkAlias(value: string): string;
34
- /**
35
- * Structured template source with explicit branch support.
36
- *
37
- * Used when the branch name contains `/` characters that break URL parsing.
38
- */
39
- export interface TemplateSource {
40
- owner: string;
41
- repo: string;
42
- branch: string;
43
- path: string;
44
- }
45
- /**
46
- * Emoji markers shown next to each framework in interactive prompts and
47
- * completion messages. Mirrors the set used by the legacy CopilotKit CLI.
48
- */
49
- export declare const FRAMEWORK_EMOJI: Record<AgentFramework, string>;
50
- /**
51
- * Framework display labels for interactive prompts.
52
- *
53
- * Each entry pairs a human-readable label with its corresponding
54
- * {@link AgentFramework} value for use in ink select-input components.
55
- */
56
- export declare const FRAMEWORK_CHOICES: Array<{
57
- label: string;
58
- value: AgentFramework;
59
- }>;
60
- /**
61
- * Checks whether a string is one of the supported CLI framework identifiers.
62
- *
63
- * @param value - User-provided framework string.
64
- * @returns `true` when the value is a supported {@link AgentFramework}.
65
- */
66
- export declare function isAgentFramework(value: string): value is AgentFramework;
67
- /**
68
- * Builds the user-facing invalid-framework error for CLI validation failures.
69
- *
70
- * @param value - Unsupported framework string provided by the user.
71
- * @returns A human-readable validation error message.
72
- */
73
- export declare function formatInvalidFrameworkError(value: string): string;
74
- export declare const TEMPLATE_REPOS: Record<AgentFramework, string | TemplateSource>;
75
- /**
76
- * Template metadata used by `copilotkit init` to resolve scaffold behavior.
77
- */
78
- export interface InitTemplateDefinition {
79
- /** Stable identifier for the template choice. */
80
- id: string;
81
- /** Source used by the scaffold service to fetch the template. */
82
- template: string | TemplateSource;
83
- /** Whether the scaffold path must authenticate and issue a license key. */
84
- requiresLicense: boolean;
85
- /** Success flair shown when scaffolding completes. */
86
- successEmoji: string;
87
- /** Runtime and setup prerequisites expected by the scaffolded template. */
88
- prerequisites: InitTemplatePrerequisite[];
89
- /** Command used to install project dependencies after scaffolding. */
90
- installCommand: string;
91
- /** Additional setup commands needed after dependency installation. */
92
- postInstallCommands?: string[];
93
- /** Command used to run the scaffolded project after dependencies are ready. */
94
- runCommand: string;
95
- /** Environment variables the user should set before running the template. */
96
- environment: InitTemplateEnvironmentKey[];
97
- /**
98
- * Optional template-specific patcher run after files land but before git init.
99
- *
100
- * Used by frameworks like AgentCore that need to specialize a generic
101
- * template into a framework-specific variant, or by showcase frameworks
102
- * (a2ui, opengenui) that need a sidecar config file written into the
103
- * scaffolded project.
104
- */
105
- postScaffold?: (projectDir: string) => Promise<void>;
106
- }
107
- /** Tool or runtime needed by an init template. */
108
- export interface InitTemplatePrerequisite {
109
- /** Executable name used for PATH checks. */
110
- command: string;
111
- /** Human-readable prerequisite label. */
112
- label: string;
113
- /** Whether the prerequisite is needed during setup or only while running. */
114
- phase: 'setup' | 'runtime';
115
- /** Template-specific install guidance shown when the command is missing. */
116
- installHint: string;
117
- }
118
- /** Environment variable metadata shown in init next steps. */
119
- export interface InitTemplateEnvironmentKey {
120
- /** Environment variable name. */
121
- key: string;
122
- /** Whether the template cannot run usefully without this value. */
123
- required: boolean;
124
- /** Short user-facing note about how the value is used. */
125
- note: string;
126
- }
127
- /**
128
- * Catalog of standard framework templates.
129
- *
130
- * These templates scaffold without requiring CLI authentication or license
131
- * issuance.
132
- */
133
- export declare const FRAMEWORK_TEMPLATES: Record<AgentFramework, InitTemplateDefinition>;
134
- /**
135
- * Explicit template metadata for the langgraph-python-threads example.
136
- *
137
- * Uses structured fields instead of a URL because the branch name contains a
138
- * `/` which breaks URL-based parsing.
139
- */
140
- export declare const THREADS_TEMPLATE: InitTemplateDefinition;
141
- /**
142
- * Shape of user/org data returned by ops-api after successful CLI authentication.
143
- *
144
- * Received from the `/cli/auth/callback` endpoint and used to populate
145
- * the local {@link StoredAuth} credential store.
146
- */
147
- export interface AuthPayload {
148
- /** Short-lived CLI session token issued by ops-api. */
149
- cliToken: string;
150
- /** Authenticated user record. */
151
- user: {
152
- id: string;
153
- email: string;
154
- name: string | null;
155
- };
156
- /** Organization the user authenticated under. */
157
- organization: {
158
- clerkOrgId: string;
159
- organizationName?: string;
160
- };
161
- }
162
- /**
163
- * Scope accepted by CLI license listing requests.
164
- */
165
- export type CliLicenseScope = 'org' | 'user';
166
- /**
167
- * License metadata returned by the authenticated CLI license API.
168
- */
169
- export interface CliLicenseRecord {
170
- /** Stable license identifier. */
171
- license_id: string;
172
- /** Issued license tier. */
173
- tier: string;
174
- /** Maximum seat count for the license. */
175
- seat_limit: number;
176
- /** Feature flags embedded in the license payload. */
177
- features: Record<string, boolean>;
178
- /** Whether the license grants remove-branding rights. */
179
- remove_branding: boolean;
180
- /** Timestamp when the license was formally issued, or null when pending. */
181
- issued_at: string | null;
182
- /** Timestamp when the license expires. */
183
- expires_at: string;
184
- /** Timestamp when the license row was created. */
185
- created_at: string;
186
- }
187
- /**
188
- * Shape stored in the copilotkit-auth conf store on disk.
189
- *
190
- * Written after a successful login and read by subsequent CLI commands
191
- * that require an authenticated session.
192
- */
193
- export interface StoredAuth {
194
- /** CLI session token used to authenticate requests to ops-api. */
195
- cliToken: string;
196
- /** Stable identifier for the authenticated user. */
197
- userId: string;
198
- /** Email address of the authenticated user. */
199
- email: string;
200
- /** Active Clerk organization identifier for the authenticated session. */
201
- clerkOrgId: string;
202
- /** Display name for the authenticated organization, when available. */
203
- organizationName?: string;
204
- }
205
- /**
206
- * Shape of init options after flag parsing and interactive prompts are resolved.
207
- *
208
- * Represents the fully-resolved configuration for a `copilotkit init` invocation,
209
- * ready to be handed to the scaffold service.
210
- */
211
- export interface InitOptions {
212
- /** Human-readable name for the project being initialized. */
213
- name: string;
214
- /** Whether the user chose the Intelligence (threads) path. */
215
- intelligence: boolean;
216
- /** Target agent framework — only set when intelligence is false. */
217
- framework: AgentFramework | null;
218
- }
219
- /**
220
- * Resolves the init template metadata for the supplied scaffold options.
221
- *
222
- * @param options - Resolved init options that determine the scaffold path.
223
- * @returns The template definition that should drive scaffolding.
224
- * @throws {Error} When a non-threads scaffold is missing a framework.
225
- */
226
- export declare function resolveInitTemplate(options: Pick<InitOptions, 'intelligence' | 'framework'>): InitTemplateDefinition;
227
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../apps/cli/src/types.ts"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,cAAc,GACd,OAAO,GACP,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,MAAM,GACN,KAAK,GACL,KAAK,GACL,gBAAgB,GAChB,KAAK,GACL,kCAAkC,GAClC,8BAA8B,GAC9B,UAAU,GACV,qBAAqB,GACrB,mBAAmB,GACnB,MAAM,GACN,WAAW,CAAC;AAEhB;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,2RAmBiB,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAE5D,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED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E,MAAM,CAAC;IACnB,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,YAAY,EAAE,OAAO,CAAC;IACtB,oEAAoE;IACpE,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC;CAClC;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,cAAc,GAAG,WAAW,CAAC,GACvD,sBAAsB,CAsBxB"}
@@ -1,3 +0,0 @@
1
- /** Renders the kite banner above interactive CLI flows. */
2
- export declare function Banner(): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=banner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/ui/banner.tsx"],"names":[],"mappings":"AAsBA,2DAA2D;AAC3D,wBAAgB,MAAM,4CAOrB"}
@@ -1,75 +0,0 @@
1
- import { type ReactElement, type ReactNode } from "react";
2
- import { login as defaultLogin } from "../services/auth.service.js";
3
- /** Message shown before the CLI opens the browser for authentication. */
4
- export declare const BROWSER_LOGIN_CONFIRMATION_MESSAGE = "Sign in to your \uD83E\uDE81 CopilotKit account in your browser.";
5
- /** Prompt shown after the pre-login explanation. */
6
- export declare const BROWSER_LOGIN_CONFIRMATION_PROMPT = "Press Enter to continue...";
7
- /** Browser login function shape shared by command flows. */
8
- export type BrowserLoginRunner = typeof defaultLogin;
9
- /** Rendered state for the shared browser-login interaction. */
10
- export type BrowserLoginPhase = "idle" | "confirming" | "waiting" | "finalizing" | "success" | "error";
11
- /** User and organization data displayed after a successful login. */
12
- export interface BrowserLoginIdentity {
13
- /** Authenticated user email. */
14
- email: string;
15
- /** Authenticated organization display name or Clerk organization id. */
16
- organizationName: string;
17
- }
18
- /** Current state exposed by {@link useBrowserLogin}. */
19
- export interface BrowserLoginState {
20
- /** Current interaction phase. */
21
- phase: BrowserLoginPhase;
22
- /** Authenticated identity, available after success. */
23
- identity: BrowserLoginIdentity | null;
24
- /** User-facing error message, available after failure. */
25
- errorMessage: string;
26
- }
27
- /** Context value exposed by {@link BrowserLoginProvider}. */
28
- export interface BrowserLoginContextValue {
29
- /** Runs the shared browser login flow, including confirmation when interactive. */
30
- runLogin: BrowserLoginRunner;
31
- /** Current browser login UI state. */
32
- state: BrowserLoginState;
33
- /** Confirms that the browser login may begin. */
34
- confirmBrowserLoginStart: () => unknown;
35
- /** Submits a manually pasted Clerk token to complete login when the loopback callback never fires. */
36
- submitManualClerkToken: (clerkToken: string) => unknown;
37
- }
38
- /** Props for {@link BrowserLoginProvider}. */
39
- export interface BrowserLoginProviderProps {
40
- /** Child Ink tree that can call {@link useBrowserLogin}. */
41
- children: ReactNode;
42
- /** Injectable login implementation, primarily for tests. */
43
- loginRunner?: BrowserLoginRunner;
44
- /** Overrides TTY detection, primarily for tests. */
45
- isInteractive?: boolean;
46
- }
47
- /**
48
- * Returns whether the CLI should pause for a browser-login confirmation.
49
- *
50
- * @returns True when both standard input and output are interactive TTYs.
51
- */
52
- export declare function isBrowserLoginConfirmationInteractive(): boolean;
53
- /**
54
- * Provides a shared browser-login runner and UI state to CLI Ink flows.
55
- *
56
- * @param props - Provider props.
57
- * @returns Provider element for descendant command UI.
58
- */
59
- export declare function BrowserLoginProvider({ children, loginRunner, isInteractive, }: BrowserLoginProviderProps): ReactElement;
60
- /**
61
- * Reads the shared browser-login runner and UI state.
62
- *
63
- * @returns Browser-login context value.
64
- * @throws When rendered outside {@link BrowserLoginProvider}.
65
- */
66
- export declare function useBrowserLogin(): BrowserLoginContextValue;
67
- /** Hint shown beneath the spinner so users know about the manual paste fallback. */
68
- export declare const BROWSER_LOGIN_MANUAL_PASTE_LABEL = "If your browser finished sign-in but the CLI didn't notice, paste the code shown in the browser:";
69
- /**
70
- * Renders the shared browser-login confirmation and result states.
71
- *
72
- * @returns Ink element for the current browser-login phase.
73
- */
74
- export declare function BrowserLoginConfirmation(): ReactElement | null;
75
- //# sourceMappingURL=browser-login.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser-login.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/ui/browser-login.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKpE,yEAAyE;AACzE,eAAO,MAAM,kCAAkC,qEACW,CAAC;AAE3D,oDAAoD;AACpD,eAAO,MAAM,iCAAiC,+BAChB,CAAC;AAE/B,4DAA4D;AAC5D,MAAM,MAAM,kBAAkB,GAAG,OAAO,YAAY,CAAC;AAErD,+DAA+D;AAC/D,MAAM,MAAM,iBAAiB,GACzB,MAAM,GACN,YAAY,GACZ,SAAS,GACT,YAAY,GACZ,SAAS,GACT,OAAO,CAAC;AAUZ,qEAAqE;AACrE,MAAM,WAAW,oBAAoB;IACnC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,wDAAwD;AACxD,MAAM,WAAW,iBAAiB;IAChC,iCAAiC;IACjC,KAAK,EAAE,iBAAiB,CAAC;IACzB,uDAAuD;IACvD,QAAQ,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACtC,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,6DAA6D;AAC7D,MAAM,WAAW,wBAAwB;IACvC,mFAAmF;IACnF,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,sCAAsC;IACtC,KAAK,EAAE,iBAAiB,CAAC;IACzB,iDAAiD;IACjD,wBAAwB,EAAE,MAAM,OAAO,CAAC;IACxC,sGAAsG;IACtG,sBAAsB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CACzD;AAED,8CAA8C;AAC9C,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,QAAQ,EAAE,SAAS,CAAC;IACpB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,oDAAoD;IACpD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA2BD;;;;GAIG;AACH,wBAAgB,qCAAqC,IAAI,OAAO,CAE/D;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,WAA0B,EAC1B,aAAa,GACd,EAAE,yBAAyB,GAAG,YAAY,CAoJ1C;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,wBAAwB,CAO1D;AAED,oFAAoF;AACpF,eAAO,MAAM,gCAAgC,qGACuD,CAAC;AAErG;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,YAAY,GAAG,IAAI,CAoF9D"}
@@ -1,111 +0,0 @@
1
- import { type ReactElement } from 'react';
2
- import { type CliTip as CliTipEntry } from '../services/cli-tips.js';
3
- /** Default delay before a CLI tip appears in a dwell surface. */
4
- export declare const CLI_TIP_DEFAULT_DELAY_MS = 2500;
5
- /** Default quiet rotation interval after the first CLI tip is visible. */
6
- export declare const CLI_TIP_DEFAULT_ROTATION_MS = 12000;
7
- /** Default maximum number of top-ranked tips included in rotation. */
8
- export declare const CLI_TIP_DEFAULT_ROTATION_LIMIT = 5;
9
- /** Default size of the ranked pool eligible for randomized rotation. */
10
- export declare const CLI_TIP_DEFAULT_ROTATION_POOL_LIMIT = 20;
11
- /** Function used to generate a random number in the range [0, 1). */
12
- export type CliTipRandomNumberGenerator = () => number;
13
- /** Parsed segment of CLI tip text. */
14
- export interface CliTipTextSegment {
15
- /** Segment rendering style. */
16
- kind: 'text' | 'code';
17
- /** Segment text content. */
18
- text: string;
19
- }
20
- /** Options for selecting a CLI tip rotation subset. */
21
- export interface SelectCliTipRotationSubsetOptions {
22
- /** Maximum number of top-ranked tips included in rotation. */
23
- rotationLimit?: number;
24
- /** Maximum number of top-ranked tips eligible for randomized selection. */
25
- rotationPoolLimit?: number;
26
- /** Whether to shuffle the ranked pool before taking the rotation subset. */
27
- randomize?: boolean;
28
- /** Random number generator used when randomizing the rotation subset. */
29
- rng?: CliTipRandomNumberGenerator;
30
- }
31
- /** Props for {@link CliTip}. */
32
- export interface CliTipProps {
33
- /** Optional candidate tips, primarily for tests. */
34
- tips?: readonly CliTipEntry[];
35
- /** Zero-based index into the deterministic ranked tip list. */
36
- selectionIndex?: number;
37
- /** Delay before rendering the selected tip. */
38
- delayMs?: number;
39
- /** Quiet rotation interval once the first tip is visible. */
40
- rotationMs?: number;
41
- /** Maximum number of top-ranked tips included in rotation. */
42
- rotationLimit?: number;
43
- /** Maximum number of top-ranked tips eligible for randomized selection. */
44
- rotationPoolLimit?: number;
45
- /** Whether to randomize the bounded rotation subset. */
46
- randomize?: boolean;
47
- /** Random number generator used when randomizing the rotation subset. */
48
- rng?: CliTipRandomNumberGenerator;
49
- }
50
- /**
51
- * Normalizes a numeric index for deterministic tip selection.
52
- *
53
- * @param selectionIndex - Candidate index.
54
- * @returns A finite non-negative integer index.
55
- */
56
- export declare function normalizeCliTipSelectionIndex(selectionIndex?: number): number;
57
- /**
58
- * Normalizes a positive integer limit with a fallback.
59
- *
60
- * @param limit - Candidate limit.
61
- * @param fallback - Fallback limit for non-finite values.
62
- * @returns A finite non-negative integer limit.
63
- */
64
- export declare function normalizeCliTipLimit(limit: number, fallback: number): number;
65
- /**
66
- * Normalizes RNG output for bounded array indexing.
67
- *
68
- * @param randomValue - Candidate random number.
69
- * @returns A finite number in the range [0, 1).
70
- */
71
- export declare function normalizeCliTipRandomValue(randomValue: number): number;
72
- /**
73
- * Shuffles tips using Fisher-Yates without mutating the input.
74
- *
75
- * @param tips - Tips to shuffle.
76
- * @param rng - Random number generator.
77
- * @returns Shuffled tip copy.
78
- */
79
- export declare function shuffleCliTips(tips: readonly CliTipEntry[], rng?: CliTipRandomNumberGenerator): readonly CliTipEntry[];
80
- /**
81
- * Selects a bounded subset from the ranked catalog.
82
- *
83
- * @param tips - Candidate tips to rank.
84
- * @param options - Rotation subset options.
85
- * @returns Tips included in rotation.
86
- */
87
- export declare function selectCliTipRotationSubset(tips?: readonly CliTipEntry[], options?: SelectCliTipRotationSubsetOptions | number): readonly CliTipEntry[];
88
- /**
89
- * Selects one deterministic CLI tip from the bounded ranked rotation subset.
90
- *
91
- * @param tips - Candidate tips to rank.
92
- * @param selectionIndex - Zero-based initial offset into the rotation subset.
93
- * @param rotationLimit - Maximum number of top-ranked tips to include.
94
- * @returns The selected tip, or `null` when no tip is available.
95
- */
96
- export declare function selectCliTipForRender(tips?: readonly CliTipEntry[], selectionIndex?: number, rotationLimit?: number): CliTipEntry | null;
97
- /**
98
- * Parses matched backtick code spans while preserving unmatched backticks.
99
- *
100
- * @param text - Tip text to parse.
101
- * @returns Ordered text and code segments.
102
- */
103
- export declare function parseCliTipText(text: string): readonly CliTipTextSegment[];
104
- /**
105
- * Renders a delayed CopilotKit CLI tip for intentional dwell moments.
106
- *
107
- * @param props - Component props.
108
- * @returns Ink element once the delay has elapsed, otherwise `null`.
109
- */
110
- export declare function CliTip({ tips, selectionIndex, delayMs, rotationMs, rotationLimit, rotationPoolLimit, randomize, rng, }: CliTipProps): ReactElement | null;
111
- //# sourceMappingURL=cli-tip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli-tip.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/ui/cli-tip.tsx"],"names":[],"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AAC;IACpB,yEAAyE;IACzE,GAAG,CAAC,EAAE,2BAA2B,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,cAAc,SAAI,GAAG,MAAM,CAIxE;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE5E;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAMtE;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,SAAS,WAAW,EAAE,EAC5B,GAAG,GAAE,2BAAyC,GAC7C,SAAS,WAAW,EAAE,CAexB;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,CAAC,EAAE,SAAS,WAAW,EAAE,EAC7B,OAAO,GAAE,iCAAiC,GAAG,MAAW,GACvD,SAAS,WAAW,EAAE,CA4BxB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,CAAC,EAAE,SAAS,WAAW,EAAE,EAC7B,cAAc,SAAI,EAClB,aAAa,SAAiC,GAC7C,WAAW,GAAG,IAAI,CAOpB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,iBAAiB,EAAE,CAgC1E;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,cAAkB,EAClB,OAAkC,EAClC,UAAwC,EACxC,aAA8C,EAC9C,iBAAuD,EACvD,SAAgB,EAChB,GAAiB,GAClB,EAAE,WAAW,GAAG,YAAY,GAAG,IAAI,CAsFnC"}
@@ -1,28 +0,0 @@
1
- import type { InitOptions } from "../types.js";
2
- /** Props for the {@link InitFlow} component. */
3
- export interface InitFlowProps {
4
- /** Pre-filled project name from --name flag, or `null` to prompt. */
5
- initialName: string | null;
6
- /** Pre-selected via --intelligence flag, or `null` to prompt. */
7
- initialIntelligence: boolean | null;
8
- /** Pre-selected via --framework flag, or `null` to prompt. */
9
- initialFramework: string | null;
10
- /**
11
- * Callback invoked when all prompts are complete.
12
- *
13
- * Receives a fully-resolved {@link InitOptions} object, or `null` when the
14
- * user cancels (future extension point).
15
- */
16
- onComplete: (options: InitOptions | null) => void;
17
- }
18
- /**
19
- * Ink component that steps through the interactive `init` prompts.
20
- *
21
- * Flow:
22
- * 1. Project name
23
- * 2. Do you want Intelligence?
24
- * - Yes → done with threads template
25
- * - No → framework picker → done with framework template
26
- */
27
- export declare function InitFlow({ initialName, initialIntelligence, initialFramework, onComplete, }: InitFlowProps): import("react/jsx-runtime").JSX.Element | null;
28
- //# sourceMappingURL=init-flow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init-flow.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/ui/init-flow.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAuB/D,gDAAgD;AAChD,MAAM,WAAW,aAAa;IAC5B,qEAAqE;IACrE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iEAAiE;IACjE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAAC;IACpC,8DAA8D;IAC9D,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;;OAKG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CACnD;AAeD;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EACvB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,GACX,EAAE,aAAa,kDA8If"}
@@ -1,26 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- import { type KiteGameRng } from '../services/kite-game-engine.js';
3
- /** Props for the {@link KiteGame} component. */
4
- export interface KiteGameProps {
5
- /** Random source used by the deterministic game engine. */
6
- readonly rng?: KiteGameRng;
7
- /** Interval between engine ticks in milliseconds. */
8
- readonly tickMs?: number;
9
- /** Called when the player quits the game. */
10
- readonly onExit?: () => void;
11
- }
12
- /**
13
- * Renders the hidden terminal kite game.
14
- *
15
- * @param props - Component configuration.
16
- * @returns The Ink game UI.
17
- */
18
- export declare function KiteGame({ rng, tickMs, onExit, }: KiteGameProps): ReactElement;
19
- /**
20
- * Converts terminal width into the playable board width.
21
- *
22
- * @param terminalWidth - Terminal column count.
23
- * @returns Playable board width in terminal cells.
24
- */
25
- export declare function getPlayableWidth(terminalWidth: number): number;
26
- //# sourceMappingURL=kite-game.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kite-game.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/ui/kite-game.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAML,KAAK,WAAW,EAEjB,MAAM,iCAAiC,CAAC;AAMzC,gDAAgD;AAChD,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,QAAQ,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC;IAE3B,qDAAqD;IACrD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEzB,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAMD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EACvB,GAAiB,EACjB,MAAwB,EACxB,MAAM,GACP,EAAE,aAAa,GAAG,YAAY,CA4G9B;AAuCD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE9D"}