@girardmedia/bootspring 3.3.2 → 3.3.3
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/cli/index.js +930 -955
- package/dist/core.js +56 -95
- package/dist/mcp-server.js +175 -255
- package/package.json +1 -1
- package/dist/core/index.d.ts +0 -2424
- package/dist/core/index.js +0 -2
- package/dist/mcp/index.d.ts +0 -578
- package/dist/mcp/index.js +0 -2
package/dist/core/index.d.ts
DELETED
|
@@ -1,2424 +0,0 @@
|
|
|
1
|
-
export * from '@bootspring/shared';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Bootspring Auth Module
|
|
6
|
-
*
|
|
7
|
-
* Manages authentication tokens stored in ~/.bootspring/
|
|
8
|
-
*/
|
|
9
|
-
interface UserProfile {
|
|
10
|
-
id?: string;
|
|
11
|
-
email?: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
tier?: string;
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
}
|
|
16
|
-
interface Credentials {
|
|
17
|
-
token?: string;
|
|
18
|
-
refreshToken?: string;
|
|
19
|
-
apiKey?: string;
|
|
20
|
-
expiresAt?: string;
|
|
21
|
-
user?: UserProfile;
|
|
22
|
-
}
|
|
23
|
-
interface LoginResponse {
|
|
24
|
-
token: string;
|
|
25
|
-
refreshToken?: string;
|
|
26
|
-
expiresIn?: string;
|
|
27
|
-
user?: UserProfile;
|
|
28
|
-
}
|
|
29
|
-
interface DeviceInfo {
|
|
30
|
-
deviceId: string;
|
|
31
|
-
fingerprint: string;
|
|
32
|
-
createdAt: string;
|
|
33
|
-
platform: string;
|
|
34
|
-
arch: string;
|
|
35
|
-
hostname: string;
|
|
36
|
-
}
|
|
37
|
-
interface DeviceContext {
|
|
38
|
-
deviceId: string;
|
|
39
|
-
platform: string;
|
|
40
|
-
arch: string;
|
|
41
|
-
hostname: string;
|
|
42
|
-
cliVersion: string;
|
|
43
|
-
nodeVersion: string;
|
|
44
|
-
timezone: string;
|
|
45
|
-
cwd: string;
|
|
46
|
-
cwdFull: string;
|
|
47
|
-
}
|
|
48
|
-
interface ProjectAuth {
|
|
49
|
-
token: string;
|
|
50
|
-
expiresAt: string;
|
|
51
|
-
issuedAt: string;
|
|
52
|
-
source: string;
|
|
53
|
-
migratedFromLegacyApiKey: boolean;
|
|
54
|
-
}
|
|
55
|
-
interface ProjectConfig {
|
|
56
|
-
apiKey?: string;
|
|
57
|
-
projectAuth?: ProjectAuth;
|
|
58
|
-
[key: string]: unknown;
|
|
59
|
-
}
|
|
60
|
-
interface SessionOptions {
|
|
61
|
-
expiresAt?: string;
|
|
62
|
-
expiresIn?: number | string;
|
|
63
|
-
source?: string;
|
|
64
|
-
migratedFromLegacyApiKey?: boolean;
|
|
65
|
-
}
|
|
66
|
-
interface BootspringConfig {
|
|
67
|
-
[key: string]: unknown;
|
|
68
|
-
}
|
|
69
|
-
declare const BOOTSPRING_DIR: string;
|
|
70
|
-
declare const CREDENTIALS_FILE: string;
|
|
71
|
-
declare const CONFIG_FILE: string;
|
|
72
|
-
declare const DEVICE_FILE: string;
|
|
73
|
-
/**
|
|
74
|
-
* Ensure ~/.bootspring directory exists
|
|
75
|
-
*/
|
|
76
|
-
declare function ensureBootspringDir(): void;
|
|
77
|
-
interface EncryptedData {
|
|
78
|
-
iv: string;
|
|
79
|
-
data: string;
|
|
80
|
-
v: number;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Encrypt data — always uses v2 (scrypt) key derivation
|
|
84
|
-
* @throws {Error} If encryption fails - never falls back to plaintext
|
|
85
|
-
*/
|
|
86
|
-
declare function encrypt(data: Credentials): EncryptedData;
|
|
87
|
-
/**
|
|
88
|
-
* Decrypt data — tries v2 key first, falls back to v1 for migration
|
|
89
|
-
* @throws {Error} If decryption fails with both key versions
|
|
90
|
-
*/
|
|
91
|
-
declare function decrypt(encrypted: unknown): Credentials;
|
|
92
|
-
/**
|
|
93
|
-
* Get stored credentials
|
|
94
|
-
* @returns Decrypted credentials or null if not available
|
|
95
|
-
*/
|
|
96
|
-
declare function getCredentials(): Credentials | null;
|
|
97
|
-
/**
|
|
98
|
-
* Save credentials (encrypted with v2 scrypt key)
|
|
99
|
-
* @throws {Error} If encryption or file write fails
|
|
100
|
-
*/
|
|
101
|
-
declare function saveCredentials(credentials: Credentials): void;
|
|
102
|
-
/**
|
|
103
|
-
* Clear credentials (logout)
|
|
104
|
-
*/
|
|
105
|
-
declare function clearCredentials(): void;
|
|
106
|
-
/**
|
|
107
|
-
* Get auth token (JWT)
|
|
108
|
-
*/
|
|
109
|
-
declare function getToken(): string | null;
|
|
110
|
-
interface ExpiryStatus {
|
|
111
|
-
expiringSoon: boolean;
|
|
112
|
-
expired: boolean;
|
|
113
|
-
expiresAt: string | null;
|
|
114
|
-
msUntilExpiry: number;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Check if the current token is expiring soon
|
|
118
|
-
*/
|
|
119
|
-
declare function getTokenExpiryStatus(thresholdMs?: number): ExpiryStatus;
|
|
120
|
-
declare function findNearestProjectConfigPath(): string | null;
|
|
121
|
-
declare function readNearestProjectConfig(): {
|
|
122
|
-
path: string;
|
|
123
|
-
config: ProjectConfig;
|
|
124
|
-
} | null;
|
|
125
|
-
declare function writeNearestProjectConfig(configPath: string, config: ProjectConfig): boolean;
|
|
126
|
-
declare function getProjectScopedSessionState(): ProjectAuth | null;
|
|
127
|
-
declare function getLegacyProjectApiKey(): string | null;
|
|
128
|
-
declare function getProjectScopedToken(): string | null;
|
|
129
|
-
declare function getStoredApiKey(): string | null;
|
|
130
|
-
declare function getApiKey(): string | null;
|
|
131
|
-
declare function isApiKeyAuth(): boolean;
|
|
132
|
-
declare function getRefreshToken(): string | null;
|
|
133
|
-
declare function isAuthenticated(): boolean;
|
|
134
|
-
declare function getUser(): UserProfile | null;
|
|
135
|
-
declare function getTier$1(): string;
|
|
136
|
-
declare function login(response: LoginResponse): void;
|
|
137
|
-
declare function saveApiKeyToProject(apiKey: string): boolean;
|
|
138
|
-
declare function clearProjectApiKey(): boolean;
|
|
139
|
-
declare function loginWithApiKey(apiKey: string, user?: UserProfile): void;
|
|
140
|
-
declare function updateTokens(response: LoginResponse): void;
|
|
141
|
-
declare function saveProjectScopedSession(token: string, options?: SessionOptions): boolean;
|
|
142
|
-
declare function clearProjectScopedSession(): boolean;
|
|
143
|
-
declare function logout(): void;
|
|
144
|
-
declare function getConfig(): BootspringConfig;
|
|
145
|
-
declare function saveConfig(config: BootspringConfig): void;
|
|
146
|
-
declare function getCredentialsPath(): string;
|
|
147
|
-
declare function generateDeviceFingerprint(): string;
|
|
148
|
-
declare function getDeviceInfo(): DeviceInfo;
|
|
149
|
-
declare function getDeviceId(): string;
|
|
150
|
-
declare function getDeviceContext(cliVersion?: string): DeviceContext;
|
|
151
|
-
declare function clearDeviceInfo(): void;
|
|
152
|
-
|
|
153
|
-
declare const auth_BOOTSPRING_DIR: typeof BOOTSPRING_DIR;
|
|
154
|
-
type auth_BootspringConfig = BootspringConfig;
|
|
155
|
-
declare const auth_CONFIG_FILE: typeof CONFIG_FILE;
|
|
156
|
-
declare const auth_CREDENTIALS_FILE: typeof CREDENTIALS_FILE;
|
|
157
|
-
type auth_Credentials = Credentials;
|
|
158
|
-
declare const auth_DEVICE_FILE: typeof DEVICE_FILE;
|
|
159
|
-
type auth_DeviceContext = DeviceContext;
|
|
160
|
-
type auth_DeviceInfo = DeviceInfo;
|
|
161
|
-
type auth_ExpiryStatus = ExpiryStatus;
|
|
162
|
-
type auth_LoginResponse = LoginResponse;
|
|
163
|
-
type auth_ProjectAuth = ProjectAuth;
|
|
164
|
-
type auth_ProjectConfig = ProjectConfig;
|
|
165
|
-
type auth_SessionOptions = SessionOptions;
|
|
166
|
-
type auth_UserProfile = UserProfile;
|
|
167
|
-
declare const auth_clearCredentials: typeof clearCredentials;
|
|
168
|
-
declare const auth_clearDeviceInfo: typeof clearDeviceInfo;
|
|
169
|
-
declare const auth_clearProjectApiKey: typeof clearProjectApiKey;
|
|
170
|
-
declare const auth_clearProjectScopedSession: typeof clearProjectScopedSession;
|
|
171
|
-
declare const auth_decrypt: typeof decrypt;
|
|
172
|
-
declare const auth_encrypt: typeof encrypt;
|
|
173
|
-
declare const auth_ensureBootspringDir: typeof ensureBootspringDir;
|
|
174
|
-
declare const auth_findNearestProjectConfigPath: typeof findNearestProjectConfigPath;
|
|
175
|
-
declare const auth_generateDeviceFingerprint: typeof generateDeviceFingerprint;
|
|
176
|
-
declare const auth_getApiKey: typeof getApiKey;
|
|
177
|
-
declare const auth_getConfig: typeof getConfig;
|
|
178
|
-
declare const auth_getCredentials: typeof getCredentials;
|
|
179
|
-
declare const auth_getCredentialsPath: typeof getCredentialsPath;
|
|
180
|
-
declare const auth_getDeviceContext: typeof getDeviceContext;
|
|
181
|
-
declare const auth_getDeviceId: typeof getDeviceId;
|
|
182
|
-
declare const auth_getDeviceInfo: typeof getDeviceInfo;
|
|
183
|
-
declare const auth_getLegacyProjectApiKey: typeof getLegacyProjectApiKey;
|
|
184
|
-
declare const auth_getProjectScopedSessionState: typeof getProjectScopedSessionState;
|
|
185
|
-
declare const auth_getProjectScopedToken: typeof getProjectScopedToken;
|
|
186
|
-
declare const auth_getRefreshToken: typeof getRefreshToken;
|
|
187
|
-
declare const auth_getStoredApiKey: typeof getStoredApiKey;
|
|
188
|
-
declare const auth_getToken: typeof getToken;
|
|
189
|
-
declare const auth_getTokenExpiryStatus: typeof getTokenExpiryStatus;
|
|
190
|
-
declare const auth_getUser: typeof getUser;
|
|
191
|
-
declare const auth_isApiKeyAuth: typeof isApiKeyAuth;
|
|
192
|
-
declare const auth_isAuthenticated: typeof isAuthenticated;
|
|
193
|
-
declare const auth_login: typeof login;
|
|
194
|
-
declare const auth_loginWithApiKey: typeof loginWithApiKey;
|
|
195
|
-
declare const auth_logout: typeof logout;
|
|
196
|
-
declare const auth_readNearestProjectConfig: typeof readNearestProjectConfig;
|
|
197
|
-
declare const auth_saveApiKeyToProject: typeof saveApiKeyToProject;
|
|
198
|
-
declare const auth_saveConfig: typeof saveConfig;
|
|
199
|
-
declare const auth_saveCredentials: typeof saveCredentials;
|
|
200
|
-
declare const auth_saveProjectScopedSession: typeof saveProjectScopedSession;
|
|
201
|
-
declare const auth_updateTokens: typeof updateTokens;
|
|
202
|
-
declare const auth_writeNearestProjectConfig: typeof writeNearestProjectConfig;
|
|
203
|
-
declare namespace auth {
|
|
204
|
-
export { auth_BOOTSPRING_DIR as BOOTSPRING_DIR, type auth_BootspringConfig as BootspringConfig, auth_CONFIG_FILE as CONFIG_FILE, auth_CREDENTIALS_FILE as CREDENTIALS_FILE, type auth_Credentials as Credentials, auth_DEVICE_FILE as DEVICE_FILE, type auth_DeviceContext as DeviceContext, type auth_DeviceInfo as DeviceInfo, type auth_ExpiryStatus as ExpiryStatus, type auth_LoginResponse as LoginResponse, type auth_ProjectAuth as ProjectAuth, type auth_ProjectConfig as ProjectConfig, type auth_SessionOptions as SessionOptions, type auth_UserProfile as UserProfile, auth_clearCredentials as clearCredentials, auth_clearDeviceInfo as clearDeviceInfo, auth_clearProjectApiKey as clearProjectApiKey, auth_clearProjectScopedSession as clearProjectScopedSession, auth_decrypt as decrypt, auth_encrypt as encrypt, auth_ensureBootspringDir as ensureBootspringDir, auth_findNearestProjectConfigPath as findNearestProjectConfigPath, auth_generateDeviceFingerprint as generateDeviceFingerprint, auth_getApiKey as getApiKey, auth_getConfig as getConfig, auth_getCredentials as getCredentials, auth_getCredentialsPath as getCredentialsPath, auth_getDeviceContext as getDeviceContext, auth_getDeviceId as getDeviceId, auth_getDeviceInfo as getDeviceInfo, auth_getLegacyProjectApiKey as getLegacyProjectApiKey, auth_getProjectScopedSessionState as getProjectScopedSessionState, auth_getProjectScopedToken as getProjectScopedToken, auth_getRefreshToken as getRefreshToken, auth_getStoredApiKey as getStoredApiKey, getTier$1 as getTier, auth_getToken as getToken, auth_getTokenExpiryStatus as getTokenExpiryStatus, auth_getUser as getUser, auth_isApiKeyAuth as isApiKeyAuth, auth_isAuthenticated as isAuthenticated, auth_login as login, auth_loginWithApiKey as loginWithApiKey, auth_logout as logout, auth_readNearestProjectConfig as readNearestProjectConfig, auth_saveApiKeyToProject as saveApiKeyToProject, auth_saveConfig as saveConfig, auth_saveCredentials as saveCredentials, auth_saveProjectScopedSession as saveProjectScopedSession, auth_updateTokens as updateTokens, auth_writeNearestProjectConfig as writeNearestProjectConfig };
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Bootspring API Client
|
|
209
|
-
*
|
|
210
|
-
* Handles all communication with api.bootspring.com
|
|
211
|
-
* This is the thin-client version that requires API for all operations.
|
|
212
|
-
*/
|
|
213
|
-
declare const API_BASE: string;
|
|
214
|
-
declare const API_VERSION = "v1";
|
|
215
|
-
declare function setAuthFailureHandler(handler: () => Promise<boolean>): void;
|
|
216
|
-
declare function request(method: string, path: string, data?: any, options?: any): Promise<any>;
|
|
217
|
-
declare function healthCheck(): Promise<any>;
|
|
218
|
-
declare function apiLogin(email: string, password: string): Promise<any>;
|
|
219
|
-
declare function startDeviceFlow(): Promise<any>;
|
|
220
|
-
declare function pollDeviceToken(deviceCode: string): Promise<any>;
|
|
221
|
-
declare function refreshSession(): Promise<any>;
|
|
222
|
-
declare function remoteLogout(): Promise<any>;
|
|
223
|
-
declare function listMcpTools(): Promise<any>;
|
|
224
|
-
declare function callMcpTool(tool: string, args: unknown): Promise<any>;
|
|
225
|
-
declare function listMcpResources(): Promise<any>;
|
|
226
|
-
declare function getMcpResource(uri: string): Promise<any>;
|
|
227
|
-
|
|
228
|
-
declare const apiClient_API_BASE: typeof API_BASE;
|
|
229
|
-
declare const apiClient_API_VERSION: typeof API_VERSION;
|
|
230
|
-
declare const apiClient_apiLogin: typeof apiLogin;
|
|
231
|
-
declare const apiClient_callMcpTool: typeof callMcpTool;
|
|
232
|
-
declare const apiClient_getMcpResource: typeof getMcpResource;
|
|
233
|
-
declare const apiClient_healthCheck: typeof healthCheck;
|
|
234
|
-
declare const apiClient_listMcpResources: typeof listMcpResources;
|
|
235
|
-
declare const apiClient_listMcpTools: typeof listMcpTools;
|
|
236
|
-
declare const apiClient_pollDeviceToken: typeof pollDeviceToken;
|
|
237
|
-
declare const apiClient_refreshSession: typeof refreshSession;
|
|
238
|
-
declare const apiClient_remoteLogout: typeof remoteLogout;
|
|
239
|
-
declare const apiClient_request: typeof request;
|
|
240
|
-
declare const apiClient_setAuthFailureHandler: typeof setAuthFailureHandler;
|
|
241
|
-
declare const apiClient_startDeviceFlow: typeof startDeviceFlow;
|
|
242
|
-
declare namespace apiClient {
|
|
243
|
-
export { apiClient_API_BASE as API_BASE, apiClient_API_VERSION as API_VERSION, apiClient_apiLogin as apiLogin, apiClient_callMcpTool as callMcpTool, apiClient_getMcpResource as getMcpResource, apiClient_healthCheck as healthCheck, apiClient_listMcpResources as listMcpResources, apiClient_listMcpTools as listMcpTools, apiClient_pollDeviceToken as pollDeviceToken, apiClient_refreshSession as refreshSession, apiClient_remoteLogout as remoteLogout, apiClient_request as request, apiClient_setAuthFailureHandler as setAuthFailureHandler, apiClient_startDeviceFlow as startDeviceFlow };
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Bootspring policy profiles
|
|
248
|
-
* Team-level controls for capability gating.
|
|
249
|
-
*
|
|
250
|
-
* @package @bootspring/core
|
|
251
|
-
*/
|
|
252
|
-
interface PolicyProfile {
|
|
253
|
-
id: string;
|
|
254
|
-
name: string;
|
|
255
|
-
allowExternalSkills: boolean;
|
|
256
|
-
blockedWorkflows: string[];
|
|
257
|
-
}
|
|
258
|
-
interface PolicyOptions {
|
|
259
|
-
policyProfile?: string | undefined;
|
|
260
|
-
blockedWorkflows?: string | undefined;
|
|
261
|
-
}
|
|
262
|
-
interface Workflow {
|
|
263
|
-
key?: string | undefined;
|
|
264
|
-
name?: string | undefined;
|
|
265
|
-
tier?: string | undefined;
|
|
266
|
-
}
|
|
267
|
-
declare const DEFAULT_POLICY_PROFILE = "startup";
|
|
268
|
-
declare const POLICY_PROFILES: Record<string, PolicyProfile>;
|
|
269
|
-
declare function normalizeProfile(profile: string | undefined | null): string;
|
|
270
|
-
declare function resolvePolicyProfile(options?: PolicyOptions): string;
|
|
271
|
-
declare function getPolicyProfile(profile: string | undefined, options?: PolicyOptions): PolicyProfile;
|
|
272
|
-
declare function isWorkflowBlocked(workflow: Workflow | undefined | null, profile: PolicyProfile): boolean;
|
|
273
|
-
|
|
274
|
-
declare const policies_DEFAULT_POLICY_PROFILE: typeof DEFAULT_POLICY_PROFILE;
|
|
275
|
-
declare const policies_POLICY_PROFILES: typeof POLICY_PROFILES;
|
|
276
|
-
type policies_PolicyOptions = PolicyOptions;
|
|
277
|
-
type policies_PolicyProfile = PolicyProfile;
|
|
278
|
-
type policies_Workflow = Workflow;
|
|
279
|
-
declare const policies_getPolicyProfile: typeof getPolicyProfile;
|
|
280
|
-
declare const policies_isWorkflowBlocked: typeof isWorkflowBlocked;
|
|
281
|
-
declare const policies_normalizeProfile: typeof normalizeProfile;
|
|
282
|
-
declare const policies_resolvePolicyProfile: typeof resolvePolicyProfile;
|
|
283
|
-
declare namespace policies {
|
|
284
|
-
export { policies_DEFAULT_POLICY_PROFILE as DEFAULT_POLICY_PROFILE, policies_POLICY_PROFILES as POLICY_PROFILES, type policies_PolicyOptions as PolicyOptions, type policies_PolicyProfile as PolicyProfile, type policies_Workflow as Workflow, policies_getPolicyProfile as getPolicyProfile, policies_isWorkflowBlocked as isWorkflowBlocked, policies_normalizeProfile as normalizeProfile, policies_resolvePolicyProfile as resolvePolicyProfile };
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Bootspring Session Manager
|
|
289
|
-
*
|
|
290
|
-
* Manages the current project session context linked to bootspring.com API.
|
|
291
|
-
*/
|
|
292
|
-
declare const SESSION_FILE: string;
|
|
293
|
-
declare const LOCAL_CONFIG_NAME = ".bootspring.json";
|
|
294
|
-
interface ProjectContext$1 {
|
|
295
|
-
id: string;
|
|
296
|
-
name: string;
|
|
297
|
-
slug?: string;
|
|
298
|
-
source?: 'local' | 'session';
|
|
299
|
-
[key: string]: any;
|
|
300
|
-
}
|
|
301
|
-
interface SessionData {
|
|
302
|
-
project?: ProjectContext$1;
|
|
303
|
-
projectScopeDir?: string;
|
|
304
|
-
projectScopeMode?: 'exact' | 'tree';
|
|
305
|
-
recentProjects?: ProjectContext$1[];
|
|
306
|
-
updatedAt?: string;
|
|
307
|
-
[key: string]: any;
|
|
308
|
-
}
|
|
309
|
-
declare function getSession(): SessionData | null;
|
|
310
|
-
declare function saveSession(session: SessionData): void;
|
|
311
|
-
declare function clearSession(): void;
|
|
312
|
-
declare function getCurrentProject(): ProjectContext$1 | null;
|
|
313
|
-
declare function setCurrentProject(project: ProjectContext$1 | null, scopeDir?: string): void;
|
|
314
|
-
declare function getRecentProjects(): ProjectContext$1[];
|
|
315
|
-
declare function addRecentProject(project: ProjectContext$1): void;
|
|
316
|
-
declare function findLocalConfig(startDir?: string): any | null;
|
|
317
|
-
declare function getEffectiveProject(startDir?: string): ProjectContext$1 | null;
|
|
318
|
-
declare function createLocalConfig(dir: string, project: ProjectContext$1): string;
|
|
319
|
-
declare function getSessionState(): any;
|
|
320
|
-
|
|
321
|
-
declare const session_LOCAL_CONFIG_NAME: typeof LOCAL_CONFIG_NAME;
|
|
322
|
-
declare const session_SESSION_FILE: typeof SESSION_FILE;
|
|
323
|
-
type session_SessionData = SessionData;
|
|
324
|
-
declare const session_addRecentProject: typeof addRecentProject;
|
|
325
|
-
declare const session_clearSession: typeof clearSession;
|
|
326
|
-
declare const session_createLocalConfig: typeof createLocalConfig;
|
|
327
|
-
declare const session_findLocalConfig: typeof findLocalConfig;
|
|
328
|
-
declare const session_getCurrentProject: typeof getCurrentProject;
|
|
329
|
-
declare const session_getEffectiveProject: typeof getEffectiveProject;
|
|
330
|
-
declare const session_getRecentProjects: typeof getRecentProjects;
|
|
331
|
-
declare const session_getSession: typeof getSession;
|
|
332
|
-
declare const session_getSessionState: typeof getSessionState;
|
|
333
|
-
declare const session_saveSession: typeof saveSession;
|
|
334
|
-
declare const session_setCurrentProject: typeof setCurrentProject;
|
|
335
|
-
declare namespace session {
|
|
336
|
-
export { session_LOCAL_CONFIG_NAME as LOCAL_CONFIG_NAME, type ProjectContext$1 as ProjectContext, session_SESSION_FILE as SESSION_FILE, type session_SessionData as SessionData, session_addRecentProject as addRecentProject, session_clearSession as clearSession, session_createLocalConfig as createLocalConfig, session_findLocalConfig as findLocalConfig, session_getCurrentProject as getCurrentProject, session_getEffectiveProject as getEffectiveProject, session_getRecentProjects as getRecentProjects, session_getSession as getSession, session_getSessionState as getSessionState, session_saveSession as saveSession, session_setCurrentProject as setCurrentProject };
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* CLI Input Validation Module
|
|
341
|
-
* Comprehensive validation for CLI arguments and user input.
|
|
342
|
-
*/
|
|
343
|
-
/**
|
|
344
|
-
* Default limits for validation
|
|
345
|
-
*/
|
|
346
|
-
declare const LIMITS: {
|
|
347
|
-
readonly MAX_STRING_LENGTH: 1000;
|
|
348
|
-
readonly MAX_PATH_LENGTH: 4096;
|
|
349
|
-
readonly MAX_FILENAME_LENGTH: 255;
|
|
350
|
-
readonly MAX_TODO_LENGTH: 500;
|
|
351
|
-
readonly MAX_PROJECT_NAME_LENGTH: 100;
|
|
352
|
-
readonly MAX_DESCRIPTION_LENGTH: 2000;
|
|
353
|
-
readonly MIN_ID: 1;
|
|
354
|
-
readonly MAX_ID: number;
|
|
355
|
-
readonly MAX_ARRAY_LENGTH: 1000;
|
|
356
|
-
};
|
|
357
|
-
/**
|
|
358
|
-
* Patterns for validation
|
|
359
|
-
*/
|
|
360
|
-
declare const PATTERNS: {
|
|
361
|
-
readonly PROJECT_NAME: RegExp;
|
|
362
|
-
readonly SAFE_FILENAME: RegExp;
|
|
363
|
-
readonly SLUG: RegExp;
|
|
364
|
-
readonly NUMERIC_ID: RegExp;
|
|
365
|
-
readonly EMAIL: RegExp;
|
|
366
|
-
readonly URL: RegExp;
|
|
367
|
-
};
|
|
368
|
-
/**
|
|
369
|
-
* Characters that should be escaped or rejected in shell contexts
|
|
370
|
-
*/
|
|
371
|
-
declare const SHELL_DANGEROUS_CHARS: RegExp;
|
|
372
|
-
interface ValidationResult$1<T = string> {
|
|
373
|
-
valid: boolean;
|
|
374
|
-
error?: string;
|
|
375
|
-
sanitized?: T;
|
|
376
|
-
value?: any;
|
|
377
|
-
}
|
|
378
|
-
declare function stripUnsafeControlChars(value: string, options?: {
|
|
379
|
-
allowTabs?: boolean;
|
|
380
|
-
allowNewlines?: boolean;
|
|
381
|
-
}): string;
|
|
382
|
-
declare function validateStringLength(value: unknown, maxLength?: number, minLength?: number): ValidationResult$1;
|
|
383
|
-
declare function validateNumericId(value: unknown, options?: {
|
|
384
|
-
min?: number;
|
|
385
|
-
max?: number;
|
|
386
|
-
}): ValidationResult$1<number>;
|
|
387
|
-
declare function validateTodoText(text: string): ValidationResult$1;
|
|
388
|
-
declare function validateSlug(slug: string): ValidationResult$1;
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Bootspring Self-Healing Module
|
|
392
|
-
*
|
|
393
|
-
* Classifies errors into known issues and provides automatic fixes.
|
|
394
|
-
* Used by the CLI middleware to intercept failures and recover silently.
|
|
395
|
-
*/
|
|
396
|
-
interface Issue {
|
|
397
|
-
id: string;
|
|
398
|
-
category: 'auth' | 'network' | 'config' | 'deps' | 'state';
|
|
399
|
-
message: string;
|
|
400
|
-
fix: string;
|
|
401
|
-
autoHealable: boolean;
|
|
402
|
-
}
|
|
403
|
-
interface HealResult {
|
|
404
|
-
issue: Issue;
|
|
405
|
-
healed: boolean;
|
|
406
|
-
detail?: string;
|
|
407
|
-
}
|
|
408
|
-
declare function classifyError(err: any): Issue | null;
|
|
409
|
-
declare function tryHeal(issue: Issue): HealResult;
|
|
410
|
-
interface DiagnosticResult {
|
|
411
|
-
id: string;
|
|
412
|
-
status: 'ok' | 'healed' | 'action-needed';
|
|
413
|
-
message: string;
|
|
414
|
-
fix?: string;
|
|
415
|
-
}
|
|
416
|
-
declare function runDiagnostics(autoFix?: boolean): DiagnosticResult[];
|
|
417
|
-
type AssistantTarget = 'claude' | 'cursor' | 'codex' | 'gemini';
|
|
418
|
-
declare function registerMcpForAssistant(target: AssistantTarget): {
|
|
419
|
-
success: boolean;
|
|
420
|
-
path: string;
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
type selfHeal_AssistantTarget = AssistantTarget;
|
|
424
|
-
type selfHeal_DiagnosticResult = DiagnosticResult;
|
|
425
|
-
type selfHeal_HealResult = HealResult;
|
|
426
|
-
type selfHeal_Issue = Issue;
|
|
427
|
-
declare const selfHeal_classifyError: typeof classifyError;
|
|
428
|
-
declare const selfHeal_registerMcpForAssistant: typeof registerMcpForAssistant;
|
|
429
|
-
declare const selfHeal_runDiagnostics: typeof runDiagnostics;
|
|
430
|
-
declare const selfHeal_tryHeal: typeof tryHeal;
|
|
431
|
-
declare namespace selfHeal {
|
|
432
|
-
export { type selfHeal_AssistantTarget as AssistantTarget, type selfHeal_DiagnosticResult as DiagnosticResult, type selfHeal_HealResult as HealResult, type selfHeal_Issue as Issue, selfHeal_classifyError as classifyError, selfHeal_registerMcpForAssistant as registerMcpForAssistant, selfHeal_runDiagnostics as runDiagnostics, selfHeal_tryHeal as tryHeal };
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* Bootspring Dashboard Presence & Health Sync
|
|
437
|
-
*
|
|
438
|
-
* Fire-and-forget sync of CLI activity to the bootspring.com dashboard.
|
|
439
|
-
* All calls are non-blocking and fail silently — CLI performance is never affected.
|
|
440
|
-
*
|
|
441
|
-
* @package @bootspring/core
|
|
442
|
-
*/
|
|
443
|
-
/**
|
|
444
|
-
* Send a presence heartbeat to the dashboard.
|
|
445
|
-
* Fire-and-forget: returns immediately, network call happens in background.
|
|
446
|
-
*/
|
|
447
|
-
declare function sendHeartbeat(options?: {
|
|
448
|
-
activity?: string;
|
|
449
|
-
status?: string;
|
|
450
|
-
}): void;
|
|
451
|
-
/**
|
|
452
|
-
* Send a health report to the dashboard.
|
|
453
|
-
* Best-effort async — callers should catch errors.
|
|
454
|
-
*/
|
|
455
|
-
declare function sendHealthReport(payload: {
|
|
456
|
-
score: number;
|
|
457
|
-
grade: string;
|
|
458
|
-
data: any;
|
|
459
|
-
}): Promise<void>;
|
|
460
|
-
/**
|
|
461
|
-
* Track an MCP tool call to the dashboard for usage metering.
|
|
462
|
-
* Fire-and-forget: returns immediately, network call happens in background.
|
|
463
|
-
*
|
|
464
|
-
* Maps tool names to usage types:
|
|
465
|
-
* - bootspring_agent → agents_invoked
|
|
466
|
-
* - bootspring_skill → skills_accessed
|
|
467
|
-
* - bootspring_build/seed/context/quality/orchestrator/todo/sprint → mcp_calls
|
|
468
|
-
*/
|
|
469
|
-
declare function trackToolUsage(toolName: string): void;
|
|
470
|
-
/**
|
|
471
|
-
* Maybe auto-upload accumulated telemetry events.
|
|
472
|
-
* Triggers when >10 events accumulated or last upload was >1hr ago.
|
|
473
|
-
*/
|
|
474
|
-
declare function maybeAutoUploadTelemetry(): void;
|
|
475
|
-
|
|
476
|
-
declare const presence_maybeAutoUploadTelemetry: typeof maybeAutoUploadTelemetry;
|
|
477
|
-
declare const presence_sendHealthReport: typeof sendHealthReport;
|
|
478
|
-
declare const presence_sendHeartbeat: typeof sendHeartbeat;
|
|
479
|
-
declare const presence_trackToolUsage: typeof trackToolUsage;
|
|
480
|
-
declare namespace presence {
|
|
481
|
-
export { presence_maybeAutoUploadTelemetry as maybeAutoUploadTelemetry, presence_sendHealthReport as sendHealthReport, presence_sendHeartbeat as sendHeartbeat, presence_trackToolUsage as trackToolUsage };
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
interface InstallContext {
|
|
485
|
-
mode: 'development' | 'ephemeral' | 'global' | 'local';
|
|
486
|
-
packageRoot: string;
|
|
487
|
-
projectRoot: string | null;
|
|
488
|
-
scriptPath: string;
|
|
489
|
-
}
|
|
490
|
-
declare const PACKAGE_NAME = "@girardmedia/bootspring";
|
|
491
|
-
declare const CURRENT_VERSION = "3.3.2";
|
|
492
|
-
declare const DEFAULT_INTERVAL_MS: number;
|
|
493
|
-
declare const STATE_PATH: string;
|
|
494
|
-
declare function compareVersions(a: string, b: string): number;
|
|
495
|
-
declare function getInstallContext(): InstallContext;
|
|
496
|
-
declare function getLatestVersion(): string | null;
|
|
497
|
-
declare function applyUpdate(context: InstallContext): void;
|
|
498
|
-
declare function checkForUpdates(options?: {
|
|
499
|
-
currentVersion?: string;
|
|
500
|
-
}): {
|
|
501
|
-
current: string;
|
|
502
|
-
latest: string | null;
|
|
503
|
-
updateAvailable: boolean;
|
|
504
|
-
};
|
|
505
|
-
declare function ensureLatestVersion(args?: string[]): {
|
|
506
|
-
updated: boolean;
|
|
507
|
-
skipped?: boolean;
|
|
508
|
-
current?: string;
|
|
509
|
-
latest?: string | null;
|
|
510
|
-
exitCode?: number;
|
|
511
|
-
error?: unknown;
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
declare const selfUpdate_CURRENT_VERSION: typeof CURRENT_VERSION;
|
|
515
|
-
declare const selfUpdate_DEFAULT_INTERVAL_MS: typeof DEFAULT_INTERVAL_MS;
|
|
516
|
-
declare const selfUpdate_PACKAGE_NAME: typeof PACKAGE_NAME;
|
|
517
|
-
declare const selfUpdate_STATE_PATH: typeof STATE_PATH;
|
|
518
|
-
declare const selfUpdate_applyUpdate: typeof applyUpdate;
|
|
519
|
-
declare const selfUpdate_checkForUpdates: typeof checkForUpdates;
|
|
520
|
-
declare const selfUpdate_compareVersions: typeof compareVersions;
|
|
521
|
-
declare const selfUpdate_ensureLatestVersion: typeof ensureLatestVersion;
|
|
522
|
-
declare const selfUpdate_getInstallContext: typeof getInstallContext;
|
|
523
|
-
declare const selfUpdate_getLatestVersion: typeof getLatestVersion;
|
|
524
|
-
declare namespace selfUpdate {
|
|
525
|
-
export { selfUpdate_CURRENT_VERSION as CURRENT_VERSION, selfUpdate_DEFAULT_INTERVAL_MS as DEFAULT_INTERVAL_MS, selfUpdate_PACKAGE_NAME as PACKAGE_NAME, selfUpdate_STATE_PATH as STATE_PATH, selfUpdate_applyUpdate as applyUpdate, selfUpdate_checkForUpdates as checkForUpdates, selfUpdate_compareVersions as compareVersions, selfUpdate_ensureLatestVersion as ensureLatestVersion, selfUpdate_getInstallContext as getInstallContext, selfUpdate_getLatestVersion as getLatestVersion };
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
declare const COMMANDS_SOURCE: string;
|
|
529
|
-
declare const TARGET_DIRS: {
|
|
530
|
-
name: string;
|
|
531
|
-
path: string;
|
|
532
|
-
}[];
|
|
533
|
-
declare function getCommandFiles(commandsSource?: string): string[];
|
|
534
|
-
declare function installToTarget(targetDir: string, options?: {
|
|
535
|
-
verbose?: boolean;
|
|
536
|
-
force?: boolean;
|
|
537
|
-
commandsSource?: string;
|
|
538
|
-
}): {
|
|
539
|
-
installed: string[];
|
|
540
|
-
skipped: string[];
|
|
541
|
-
errors: Array<{
|
|
542
|
-
file: string;
|
|
543
|
-
error: string;
|
|
544
|
-
}>;
|
|
545
|
-
};
|
|
546
|
-
declare function installAll(options?: {
|
|
547
|
-
verbose?: boolean;
|
|
548
|
-
force?: boolean;
|
|
549
|
-
commandsSource?: string;
|
|
550
|
-
}): {
|
|
551
|
-
targets: Array<{
|
|
552
|
-
name: string;
|
|
553
|
-
path: string;
|
|
554
|
-
installed: string[];
|
|
555
|
-
skipped: string[];
|
|
556
|
-
errors: Array<{
|
|
557
|
-
file: string;
|
|
558
|
-
error: string;
|
|
559
|
-
}>;
|
|
560
|
-
}>;
|
|
561
|
-
totalInstalled: number;
|
|
562
|
-
totalSkipped: number;
|
|
563
|
-
totalErrors: number;
|
|
564
|
-
};
|
|
565
|
-
declare function checkInstallation(commandsSource?: string): Array<{
|
|
566
|
-
name: string;
|
|
567
|
-
path: string;
|
|
568
|
-
installed: boolean;
|
|
569
|
-
commandCount: number;
|
|
570
|
-
}>;
|
|
571
|
-
declare function uninstallAll(options?: {
|
|
572
|
-
verbose?: boolean;
|
|
573
|
-
commandsSource?: string;
|
|
574
|
-
}): {
|
|
575
|
-
removed: number;
|
|
576
|
-
notFound: number;
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
declare const setupCommands_COMMANDS_SOURCE: typeof COMMANDS_SOURCE;
|
|
580
|
-
declare const setupCommands_TARGET_DIRS: typeof TARGET_DIRS;
|
|
581
|
-
declare const setupCommands_checkInstallation: typeof checkInstallation;
|
|
582
|
-
declare const setupCommands_getCommandFiles: typeof getCommandFiles;
|
|
583
|
-
declare const setupCommands_installAll: typeof installAll;
|
|
584
|
-
declare const setupCommands_installToTarget: typeof installToTarget;
|
|
585
|
-
declare const setupCommands_uninstallAll: typeof uninstallAll;
|
|
586
|
-
declare namespace setupCommands {
|
|
587
|
-
export { setupCommands_COMMANDS_SOURCE as COMMANDS_SOURCE, setupCommands_TARGET_DIRS as TARGET_DIRS, setupCommands_checkInstallation as checkInstallation, setupCommands_getCommandFiles as getCommandFiles, setupCommands_installAll as installAll, setupCommands_installToTarget as installToTarget, setupCommands_uninstallAll as uninstallAll };
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
interface TierLimits {
|
|
591
|
-
projects: number;
|
|
592
|
-
apiCallsPerMonth: number;
|
|
593
|
-
devices: number;
|
|
594
|
-
teamSeats: number;
|
|
595
|
-
storage: string;
|
|
596
|
-
}
|
|
597
|
-
interface AgentAccessResult {
|
|
598
|
-
allowed: boolean;
|
|
599
|
-
requiredTier?: string | undefined;
|
|
600
|
-
userTier: string;
|
|
601
|
-
}
|
|
602
|
-
interface SkillAccessResult {
|
|
603
|
-
allowed: boolean;
|
|
604
|
-
reason?: string | undefined;
|
|
605
|
-
userTier: string;
|
|
606
|
-
}
|
|
607
|
-
interface CommandAccessResult {
|
|
608
|
-
allowed: boolean;
|
|
609
|
-
requiredTier: string;
|
|
610
|
-
userTier: string;
|
|
611
|
-
feature: string;
|
|
612
|
-
}
|
|
613
|
-
interface LimitCheckResult {
|
|
614
|
-
allowed: boolean;
|
|
615
|
-
limit: number;
|
|
616
|
-
usage: number;
|
|
617
|
-
remaining: number;
|
|
618
|
-
}
|
|
619
|
-
interface Entitlements {
|
|
620
|
-
tier: string;
|
|
621
|
-
limits?: TierLimits | undefined;
|
|
622
|
-
features?: string[] | undefined;
|
|
623
|
-
agents?: {
|
|
624
|
-
denied?: string[] | undefined;
|
|
625
|
-
} | undefined;
|
|
626
|
-
cachedAt?: string | undefined;
|
|
627
|
-
}
|
|
628
|
-
interface TierError extends Error {
|
|
629
|
-
code?: string | undefined;
|
|
630
|
-
requiredTier?: string | undefined;
|
|
631
|
-
userTier?: string | undefined;
|
|
632
|
-
feature?: string | undefined;
|
|
633
|
-
upgradePrompt?: string | undefined;
|
|
634
|
-
}
|
|
635
|
-
type UpgradePromptPlacement = 'inline' | 'banner' | 'footer';
|
|
636
|
-
interface UpgradePromptExperiment {
|
|
637
|
-
variant: string;
|
|
638
|
-
placement: UpgradePromptPlacement;
|
|
639
|
-
source: 'default' | 'env' | 'override';
|
|
640
|
-
}
|
|
641
|
-
interface UpgradePromptContext {
|
|
642
|
-
feature: string;
|
|
643
|
-
featureType: 'skill' | 'workflow' | 'agent' | 'preseed' | 'seed' | 'general';
|
|
644
|
-
featureLabel: string;
|
|
645
|
-
capability: string;
|
|
646
|
-
action: string;
|
|
647
|
-
requiredTier: string;
|
|
648
|
-
userTier: string;
|
|
649
|
-
placement: UpgradePromptPlacement;
|
|
650
|
-
variant: string;
|
|
651
|
-
}
|
|
652
|
-
interface UpgradePromptOptions {
|
|
653
|
-
capability?: string | undefined;
|
|
654
|
-
action?: string | undefined;
|
|
655
|
-
placement?: string | undefined;
|
|
656
|
-
variant?: string | undefined;
|
|
657
|
-
}
|
|
658
|
-
declare const TIER_HIERARCHY: Record<string, number>;
|
|
659
|
-
declare const DEFAULT_LIMITS: Record<string, TierLimits>;
|
|
660
|
-
declare const FEATURE_GATES: Record<string, string[]>;
|
|
661
|
-
declare const PRESEED_PAID_COMMANDS: string[];
|
|
662
|
-
declare const SEED_PAID_COMMANDS: string[];
|
|
663
|
-
declare const AGENT_TIERS: Record<string, string>;
|
|
664
|
-
/** Agents available on the free trial tier. All others require Pro+. */
|
|
665
|
-
declare const FREE_AGENTS: Set<string>;
|
|
666
|
-
declare const PREMIUM_SKILL_CATEGORIES: string[];
|
|
667
|
-
declare const PREMIUM_SKILL_PATTERNS: string[];
|
|
668
|
-
/** Monthly generation limits per tier */
|
|
669
|
-
declare const GENERATION_LIMITS: Record<string, number>;
|
|
670
|
-
/** Custom prompts access by tier */
|
|
671
|
-
declare const CUSTOM_PROMPTS_TIERS: Set<string>;
|
|
672
|
-
/** Dual-LLM merge access by tier */
|
|
673
|
-
declare const DUAL_LLM_TIERS: Set<string>;
|
|
674
|
-
declare function getCachedEntitlements(): Entitlements | null;
|
|
675
|
-
declare function cacheEntitlements(entitlements: Entitlements): void;
|
|
676
|
-
declare function clearCache(): void;
|
|
677
|
-
declare function fetchEntitlements(): Promise<Entitlements | null>;
|
|
678
|
-
declare function getEntitlements(options?: {
|
|
679
|
-
forceRefresh?: boolean;
|
|
680
|
-
}): Promise<Entitlements>;
|
|
681
|
-
declare function getTier(): string;
|
|
682
|
-
declare function getTierLevel(tier: string | null | undefined): number;
|
|
683
|
-
declare function meetsTierRequirement(requiredTier: string, userTier?: string | null): boolean;
|
|
684
|
-
declare function checkAgentAccess(agentId: string): AgentAccessResult;
|
|
685
|
-
declare function isSkillPremium(skillId: string): boolean;
|
|
686
|
-
declare function checkSkillAccess$1(skillId: string): SkillAccessResult;
|
|
687
|
-
declare function hasFeature(feature: string): boolean;
|
|
688
|
-
declare function getLimits(): Promise<TierLimits>;
|
|
689
|
-
declare function checkLimit(limitType: keyof TierLimits, currentUsage: number): Promise<LimitCheckResult>;
|
|
690
|
-
declare function getUpgradePromptExperiment(options?: UpgradePromptOptions): UpgradePromptExperiment;
|
|
691
|
-
declare function getUpgradePromptContext(feature: string, requiredTier?: string, options?: UpgradePromptOptions): UpgradePromptContext;
|
|
692
|
-
declare function getUpgradePrompt(feature: string, requiredTier?: string, options?: UpgradePromptOptions): string;
|
|
693
|
-
declare function formatTierBadge(tier: string | null | undefined): string;
|
|
694
|
-
declare function requireTier(requiredTier: string, feature?: string): void;
|
|
695
|
-
declare function requireFeature(feature: string): void;
|
|
696
|
-
declare function checkPreseedAccess(command: string): CommandAccessResult;
|
|
697
|
-
declare function checkSeedAccess(command: string): CommandAccessResult;
|
|
698
|
-
declare function requirePreseedAccess(command: string): void;
|
|
699
|
-
declare function requireSeedAccess(command: string): void;
|
|
700
|
-
declare function checkGenerationAccess(): {
|
|
701
|
-
allowed: boolean;
|
|
702
|
-
limit: number;
|
|
703
|
-
tier: string;
|
|
704
|
-
};
|
|
705
|
-
declare function checkCustomPromptsAccess(): boolean;
|
|
706
|
-
declare function checkDualLlmAccess(): boolean;
|
|
707
|
-
|
|
708
|
-
declare const tierEnforcement_AGENT_TIERS: typeof AGENT_TIERS;
|
|
709
|
-
type tierEnforcement_AgentAccessResult = AgentAccessResult;
|
|
710
|
-
declare const tierEnforcement_CUSTOM_PROMPTS_TIERS: typeof CUSTOM_PROMPTS_TIERS;
|
|
711
|
-
type tierEnforcement_CommandAccessResult = CommandAccessResult;
|
|
712
|
-
declare const tierEnforcement_DEFAULT_LIMITS: typeof DEFAULT_LIMITS;
|
|
713
|
-
declare const tierEnforcement_DUAL_LLM_TIERS: typeof DUAL_LLM_TIERS;
|
|
714
|
-
type tierEnforcement_Entitlements = Entitlements;
|
|
715
|
-
declare const tierEnforcement_FEATURE_GATES: typeof FEATURE_GATES;
|
|
716
|
-
declare const tierEnforcement_FREE_AGENTS: typeof FREE_AGENTS;
|
|
717
|
-
declare const tierEnforcement_GENERATION_LIMITS: typeof GENERATION_LIMITS;
|
|
718
|
-
type tierEnforcement_LimitCheckResult = LimitCheckResult;
|
|
719
|
-
declare const tierEnforcement_PREMIUM_SKILL_CATEGORIES: typeof PREMIUM_SKILL_CATEGORIES;
|
|
720
|
-
declare const tierEnforcement_PREMIUM_SKILL_PATTERNS: typeof PREMIUM_SKILL_PATTERNS;
|
|
721
|
-
declare const tierEnforcement_PRESEED_PAID_COMMANDS: typeof PRESEED_PAID_COMMANDS;
|
|
722
|
-
declare const tierEnforcement_SEED_PAID_COMMANDS: typeof SEED_PAID_COMMANDS;
|
|
723
|
-
type tierEnforcement_SkillAccessResult = SkillAccessResult;
|
|
724
|
-
declare const tierEnforcement_TIER_HIERARCHY: typeof TIER_HIERARCHY;
|
|
725
|
-
type tierEnforcement_TierError = TierError;
|
|
726
|
-
type tierEnforcement_TierLimits = TierLimits;
|
|
727
|
-
type tierEnforcement_UpgradePromptContext = UpgradePromptContext;
|
|
728
|
-
type tierEnforcement_UpgradePromptExperiment = UpgradePromptExperiment;
|
|
729
|
-
type tierEnforcement_UpgradePromptOptions = UpgradePromptOptions;
|
|
730
|
-
type tierEnforcement_UpgradePromptPlacement = UpgradePromptPlacement;
|
|
731
|
-
declare const tierEnforcement_cacheEntitlements: typeof cacheEntitlements;
|
|
732
|
-
declare const tierEnforcement_checkAgentAccess: typeof checkAgentAccess;
|
|
733
|
-
declare const tierEnforcement_checkCustomPromptsAccess: typeof checkCustomPromptsAccess;
|
|
734
|
-
declare const tierEnforcement_checkDualLlmAccess: typeof checkDualLlmAccess;
|
|
735
|
-
declare const tierEnforcement_checkGenerationAccess: typeof checkGenerationAccess;
|
|
736
|
-
declare const tierEnforcement_checkLimit: typeof checkLimit;
|
|
737
|
-
declare const tierEnforcement_checkPreseedAccess: typeof checkPreseedAccess;
|
|
738
|
-
declare const tierEnforcement_checkSeedAccess: typeof checkSeedAccess;
|
|
739
|
-
declare const tierEnforcement_clearCache: typeof clearCache;
|
|
740
|
-
declare const tierEnforcement_fetchEntitlements: typeof fetchEntitlements;
|
|
741
|
-
declare const tierEnforcement_formatTierBadge: typeof formatTierBadge;
|
|
742
|
-
declare const tierEnforcement_getCachedEntitlements: typeof getCachedEntitlements;
|
|
743
|
-
declare const tierEnforcement_getEntitlements: typeof getEntitlements;
|
|
744
|
-
declare const tierEnforcement_getLimits: typeof getLimits;
|
|
745
|
-
declare const tierEnforcement_getTier: typeof getTier;
|
|
746
|
-
declare const tierEnforcement_getTierLevel: typeof getTierLevel;
|
|
747
|
-
declare const tierEnforcement_getUpgradePrompt: typeof getUpgradePrompt;
|
|
748
|
-
declare const tierEnforcement_getUpgradePromptContext: typeof getUpgradePromptContext;
|
|
749
|
-
declare const tierEnforcement_getUpgradePromptExperiment: typeof getUpgradePromptExperiment;
|
|
750
|
-
declare const tierEnforcement_hasFeature: typeof hasFeature;
|
|
751
|
-
declare const tierEnforcement_isSkillPremium: typeof isSkillPremium;
|
|
752
|
-
declare const tierEnforcement_meetsTierRequirement: typeof meetsTierRequirement;
|
|
753
|
-
declare const tierEnforcement_requireFeature: typeof requireFeature;
|
|
754
|
-
declare const tierEnforcement_requirePreseedAccess: typeof requirePreseedAccess;
|
|
755
|
-
declare const tierEnforcement_requireSeedAccess: typeof requireSeedAccess;
|
|
756
|
-
declare const tierEnforcement_requireTier: typeof requireTier;
|
|
757
|
-
declare namespace tierEnforcement {
|
|
758
|
-
export { tierEnforcement_AGENT_TIERS as AGENT_TIERS, type tierEnforcement_AgentAccessResult as AgentAccessResult, tierEnforcement_CUSTOM_PROMPTS_TIERS as CUSTOM_PROMPTS_TIERS, type tierEnforcement_CommandAccessResult as CommandAccessResult, tierEnforcement_DEFAULT_LIMITS as DEFAULT_LIMITS, tierEnforcement_DUAL_LLM_TIERS as DUAL_LLM_TIERS, type tierEnforcement_Entitlements as Entitlements, tierEnforcement_FEATURE_GATES as FEATURE_GATES, tierEnforcement_FREE_AGENTS as FREE_AGENTS, tierEnforcement_GENERATION_LIMITS as GENERATION_LIMITS, type tierEnforcement_LimitCheckResult as LimitCheckResult, tierEnforcement_PREMIUM_SKILL_CATEGORIES as PREMIUM_SKILL_CATEGORIES, tierEnforcement_PREMIUM_SKILL_PATTERNS as PREMIUM_SKILL_PATTERNS, tierEnforcement_PRESEED_PAID_COMMANDS as PRESEED_PAID_COMMANDS, tierEnforcement_SEED_PAID_COMMANDS as SEED_PAID_COMMANDS, type tierEnforcement_SkillAccessResult as SkillAccessResult, tierEnforcement_TIER_HIERARCHY as TIER_HIERARCHY, type tierEnforcement_TierError as TierError, type tierEnforcement_TierLimits as TierLimits, type tierEnforcement_UpgradePromptContext as UpgradePromptContext, type tierEnforcement_UpgradePromptExperiment as UpgradePromptExperiment, type tierEnforcement_UpgradePromptOptions as UpgradePromptOptions, type tierEnforcement_UpgradePromptPlacement as UpgradePromptPlacement, tierEnforcement_cacheEntitlements as cacheEntitlements, tierEnforcement_checkAgentAccess as checkAgentAccess, tierEnforcement_checkCustomPromptsAccess as checkCustomPromptsAccess, tierEnforcement_checkDualLlmAccess as checkDualLlmAccess, tierEnforcement_checkGenerationAccess as checkGenerationAccess, tierEnforcement_checkLimit as checkLimit, tierEnforcement_checkPreseedAccess as checkPreseedAccess, tierEnforcement_checkSeedAccess as checkSeedAccess, checkSkillAccess$1 as checkSkillAccess, tierEnforcement_clearCache as clearCache, tierEnforcement_fetchEntitlements as fetchEntitlements, tierEnforcement_formatTierBadge as formatTierBadge, tierEnforcement_getCachedEntitlements as getCachedEntitlements, tierEnforcement_getEntitlements as getEntitlements, tierEnforcement_getLimits as getLimits, tierEnforcement_getTier as getTier, tierEnforcement_getTierLevel as getTierLevel, tierEnforcement_getUpgradePrompt as getUpgradePrompt, tierEnforcement_getUpgradePromptContext as getUpgradePromptContext, tierEnforcement_getUpgradePromptExperiment as getUpgradePromptExperiment, tierEnforcement_hasFeature as hasFeature, tierEnforcement_isSkillPremium as isSkillPremium, tierEnforcement_meetsTierRequirement as meetsTierRequirement, tierEnforcement_requireFeature as requireFeature, tierEnforcement_requirePreseedAccess as requirePreseedAccess, tierEnforcement_requireSeedAccess as requireSeedAccess, tierEnforcement_requireTier as requireTier };
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
declare const LOCAL_MODE = "local";
|
|
762
|
-
declare const SERVER_MODE = "server";
|
|
763
|
-
interface AccessContext {
|
|
764
|
-
mode: string;
|
|
765
|
-
tier: string;
|
|
766
|
-
entitled: boolean;
|
|
767
|
-
policyProfile: string;
|
|
768
|
-
}
|
|
769
|
-
interface AccessDecision {
|
|
770
|
-
allowed: boolean;
|
|
771
|
-
code: string;
|
|
772
|
-
reason: string;
|
|
773
|
-
context: AccessContext;
|
|
774
|
-
}
|
|
775
|
-
interface AccessOptions extends PolicyOptions {
|
|
776
|
-
mode?: string | undefined;
|
|
777
|
-
tier?: string | undefined;
|
|
778
|
-
entitled?: boolean | undefined;
|
|
779
|
-
skillTier?: string | undefined;
|
|
780
|
-
}
|
|
781
|
-
interface DeniedSkill {
|
|
782
|
-
skillId: string;
|
|
783
|
-
code: string;
|
|
784
|
-
reason: string;
|
|
785
|
-
}
|
|
786
|
-
interface FilteredSkills {
|
|
787
|
-
allowed: string[];
|
|
788
|
-
denied: DeniedSkill[];
|
|
789
|
-
}
|
|
790
|
-
interface DeniedWorkflow {
|
|
791
|
-
key: string | undefined;
|
|
792
|
-
name: string | undefined;
|
|
793
|
-
code: string;
|
|
794
|
-
reason: string;
|
|
795
|
-
}
|
|
796
|
-
interface FilteredWorkflows {
|
|
797
|
-
allowed: Workflow[];
|
|
798
|
-
denied: DeniedWorkflow[];
|
|
799
|
-
}
|
|
800
|
-
declare function resolveAccessContext(options?: AccessOptions): AccessContext;
|
|
801
|
-
declare function resolveWorkflowAccessContext(options?: AccessOptions): AccessContext;
|
|
802
|
-
declare function isExternalSkill(skillId: string): boolean;
|
|
803
|
-
declare function checkSkillAccess(skillId: string, options?: AccessOptions): AccessDecision;
|
|
804
|
-
declare function filterAccessibleSkills(skillIds: string[], options?: AccessOptions): FilteredSkills;
|
|
805
|
-
declare function isPremiumWorkflow(workflow: Workflow | undefined | null): boolean;
|
|
806
|
-
declare function checkWorkflowAccess(workflow: Workflow, options?: AccessOptions): AccessDecision;
|
|
807
|
-
declare function filterAccessibleWorkflows(workflows: Workflow[], options?: AccessOptions): FilteredWorkflows;
|
|
808
|
-
|
|
809
|
-
type entitlements_AccessContext = AccessContext;
|
|
810
|
-
type entitlements_AccessDecision = AccessDecision;
|
|
811
|
-
type entitlements_AccessOptions = AccessOptions;
|
|
812
|
-
type entitlements_DeniedSkill = DeniedSkill;
|
|
813
|
-
type entitlements_DeniedWorkflow = DeniedWorkflow;
|
|
814
|
-
type entitlements_FilteredSkills = FilteredSkills;
|
|
815
|
-
type entitlements_FilteredWorkflows = FilteredWorkflows;
|
|
816
|
-
declare const entitlements_LOCAL_MODE: typeof LOCAL_MODE;
|
|
817
|
-
declare const entitlements_SERVER_MODE: typeof SERVER_MODE;
|
|
818
|
-
declare const entitlements_checkSkillAccess: typeof checkSkillAccess;
|
|
819
|
-
declare const entitlements_checkWorkflowAccess: typeof checkWorkflowAccess;
|
|
820
|
-
declare const entitlements_filterAccessibleSkills: typeof filterAccessibleSkills;
|
|
821
|
-
declare const entitlements_filterAccessibleWorkflows: typeof filterAccessibleWorkflows;
|
|
822
|
-
declare const entitlements_isExternalSkill: typeof isExternalSkill;
|
|
823
|
-
declare const entitlements_isPremiumWorkflow: typeof isPremiumWorkflow;
|
|
824
|
-
declare const entitlements_resolveAccessContext: typeof resolveAccessContext;
|
|
825
|
-
declare const entitlements_resolveWorkflowAccessContext: typeof resolveWorkflowAccessContext;
|
|
826
|
-
declare namespace entitlements {
|
|
827
|
-
export { type entitlements_AccessContext as AccessContext, type entitlements_AccessDecision as AccessDecision, type entitlements_AccessOptions as AccessOptions, type entitlements_DeniedSkill as DeniedSkill, type entitlements_DeniedWorkflow as DeniedWorkflow, type entitlements_FilteredSkills as FilteredSkills, type entitlements_FilteredWorkflows as FilteredWorkflows, entitlements_LOCAL_MODE as LOCAL_MODE, entitlements_SERVER_MODE as SERVER_MODE, entitlements_checkSkillAccess as checkSkillAccess, entitlements_checkWorkflowAccess as checkWorkflowAccess, entitlements_filterAccessibleSkills as filterAccessibleSkills, entitlements_filterAccessibleWorkflows as filterAccessibleWorkflows, entitlements_isExternalSkill as isExternalSkill, entitlements_isPremiumWorkflow as isPremiumWorkflow, entitlements_resolveAccessContext as resolveAccessContext, entitlements_resolveWorkflowAccessContext as resolveWorkflowAccessContext };
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
/**
|
|
831
|
-
* Bootspring Configuration — Zod Schemas & Types
|
|
832
|
-
*
|
|
833
|
-
* All Zod schema definitions and their inferred TypeScript types.
|
|
834
|
-
* Imported by config.ts and config-presets.ts.
|
|
835
|
-
*
|
|
836
|
-
* @package bootspring
|
|
837
|
-
* @module core/config-schemas
|
|
838
|
-
*/
|
|
839
|
-
|
|
840
|
-
declare const BasePluginSchema: z.ZodObject<{
|
|
841
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
842
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
843
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
844
|
-
}, z.core.$loose>;
|
|
845
|
-
declare const AuthPluginSchema: z.ZodObject<{
|
|
846
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
847
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
848
|
-
custom: "custom";
|
|
849
|
-
clerk: "clerk";
|
|
850
|
-
nextauth: "nextauth";
|
|
851
|
-
auth0: "auth0";
|
|
852
|
-
supabase: "supabase";
|
|
853
|
-
jwt: "jwt";
|
|
854
|
-
}>>;
|
|
855
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
856
|
-
sso: "sso";
|
|
857
|
-
social_login: "social_login";
|
|
858
|
-
email_password: "email_password";
|
|
859
|
-
magic_link: "magic_link";
|
|
860
|
-
mfa: "mfa";
|
|
861
|
-
rbac: "rbac";
|
|
862
|
-
passwordless: "passwordless";
|
|
863
|
-
}>>>>;
|
|
864
|
-
}, z.core.$loose>;
|
|
865
|
-
declare const PaymentsPluginSchema: z.ZodObject<{
|
|
866
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
867
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
868
|
-
custom: "custom";
|
|
869
|
-
stripe: "stripe";
|
|
870
|
-
paddle: "paddle";
|
|
871
|
-
lemonsqueezy: "lemonsqueezy";
|
|
872
|
-
paypal: "paypal";
|
|
873
|
-
}>>;
|
|
874
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
875
|
-
checkout: "checkout";
|
|
876
|
-
subscriptions: "subscriptions";
|
|
877
|
-
invoices: "invoices";
|
|
878
|
-
usage_billing: "usage_billing";
|
|
879
|
-
trials: "trials";
|
|
880
|
-
coupons: "coupons";
|
|
881
|
-
}>>>>;
|
|
882
|
-
}, z.core.$loose>;
|
|
883
|
-
declare const DatabasePluginSchema: z.ZodObject<{
|
|
884
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
885
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
886
|
-
custom: "custom";
|
|
887
|
-
prisma: "prisma";
|
|
888
|
-
drizzle: "drizzle";
|
|
889
|
-
typeorm: "typeorm";
|
|
890
|
-
kysely: "kysely";
|
|
891
|
-
}>>;
|
|
892
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
893
|
-
migrations: "migrations";
|
|
894
|
-
transactions: "transactions";
|
|
895
|
-
seeding: "seeding";
|
|
896
|
-
multi_tenant: "multi_tenant";
|
|
897
|
-
full_text_search: "full_text_search";
|
|
898
|
-
soft_delete: "soft_delete";
|
|
899
|
-
}>>>>;
|
|
900
|
-
}, z.core.$loose>;
|
|
901
|
-
declare const TestingPluginSchema: z.ZodObject<{
|
|
902
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
903
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
904
|
-
custom: "custom";
|
|
905
|
-
vitest: "vitest";
|
|
906
|
-
jest: "jest";
|
|
907
|
-
playwright: "playwright";
|
|
908
|
-
cypress: "cypress";
|
|
909
|
-
}>>;
|
|
910
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
911
|
-
unit: "unit";
|
|
912
|
-
integration: "integration";
|
|
913
|
-
e2e: "e2e";
|
|
914
|
-
coverage: "coverage";
|
|
915
|
-
snapshot: "snapshot";
|
|
916
|
-
mocking: "mocking";
|
|
917
|
-
}>>>>;
|
|
918
|
-
}, z.core.$loose>;
|
|
919
|
-
declare const SecurityPluginSchema: z.ZodObject<{
|
|
920
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
921
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
922
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
923
|
-
rbac: "rbac";
|
|
924
|
-
input_validation: "input_validation";
|
|
925
|
-
rate_limiting: "rate_limiting";
|
|
926
|
-
csrf: "csrf";
|
|
927
|
-
xss: "xss";
|
|
928
|
-
sql_injection: "sql_injection";
|
|
929
|
-
audit: "audit";
|
|
930
|
-
encryption: "encryption";
|
|
931
|
-
secrets_management: "secrets_management";
|
|
932
|
-
}>>>>;
|
|
933
|
-
}, z.core.$loose>;
|
|
934
|
-
declare const AIPluginSchema: z.ZodObject<{
|
|
935
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
936
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
937
|
-
custom: "custom";
|
|
938
|
-
anthropic: "anthropic";
|
|
939
|
-
openai: "openai";
|
|
940
|
-
google: "google";
|
|
941
|
-
cohere: "cohere";
|
|
942
|
-
}>>;
|
|
943
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
944
|
-
agents: "agents";
|
|
945
|
-
streaming: "streaming";
|
|
946
|
-
tool_use: "tool_use";
|
|
947
|
-
embeddings: "embeddings";
|
|
948
|
-
rag: "rag";
|
|
949
|
-
vision: "vision";
|
|
950
|
-
}>>>>;
|
|
951
|
-
}, z.core.$loose>;
|
|
952
|
-
declare const EmailPluginSchema: z.ZodObject<{
|
|
953
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
954
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
955
|
-
custom: "custom";
|
|
956
|
-
resend: "resend";
|
|
957
|
-
sendgrid: "sendgrid";
|
|
958
|
-
postmark: "postmark";
|
|
959
|
-
ses: "ses";
|
|
960
|
-
mailgun: "mailgun";
|
|
961
|
-
}>>;
|
|
962
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
963
|
-
transactional: "transactional";
|
|
964
|
-
marketing: "marketing";
|
|
965
|
-
templates: "templates";
|
|
966
|
-
tracking: "tracking";
|
|
967
|
-
}>>>>;
|
|
968
|
-
}, z.core.$loose>;
|
|
969
|
-
declare const AnalyticsPluginSchema: z.ZodObject<{
|
|
970
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
971
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
972
|
-
custom: "custom";
|
|
973
|
-
posthog: "posthog";
|
|
974
|
-
amplitude: "amplitude";
|
|
975
|
-
mixpanel: "mixpanel";
|
|
976
|
-
google_analytics: "google_analytics";
|
|
977
|
-
}>>;
|
|
978
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
979
|
-
page_views: "page_views";
|
|
980
|
-
events: "events";
|
|
981
|
-
user_tracking: "user_tracking";
|
|
982
|
-
funnels: "funnels";
|
|
983
|
-
experiments: "experiments";
|
|
984
|
-
}>>>>;
|
|
985
|
-
}, z.core.$loose>;
|
|
986
|
-
declare const MonitoringPluginSchema: z.ZodObject<{
|
|
987
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
988
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
989
|
-
custom: "custom";
|
|
990
|
-
sentry: "sentry";
|
|
991
|
-
datadog: "datadog";
|
|
992
|
-
newrelic: "newrelic";
|
|
993
|
-
logrocket: "logrocket";
|
|
994
|
-
}>>;
|
|
995
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
996
|
-
performance: "performance";
|
|
997
|
-
error_tracking: "error_tracking";
|
|
998
|
-
logs: "logs";
|
|
999
|
-
alerts: "alerts";
|
|
1000
|
-
apm: "apm";
|
|
1001
|
-
}>>>>;
|
|
1002
|
-
}, z.core.$loose>;
|
|
1003
|
-
declare const PluginsSchema: z.ZodObject<{
|
|
1004
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
1005
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1006
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1007
|
-
custom: "custom";
|
|
1008
|
-
clerk: "clerk";
|
|
1009
|
-
nextauth: "nextauth";
|
|
1010
|
-
auth0: "auth0";
|
|
1011
|
-
supabase: "supabase";
|
|
1012
|
-
jwt: "jwt";
|
|
1013
|
-
}>>;
|
|
1014
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1015
|
-
sso: "sso";
|
|
1016
|
-
social_login: "social_login";
|
|
1017
|
-
email_password: "email_password";
|
|
1018
|
-
magic_link: "magic_link";
|
|
1019
|
-
mfa: "mfa";
|
|
1020
|
-
rbac: "rbac";
|
|
1021
|
-
passwordless: "passwordless";
|
|
1022
|
-
}>>>>;
|
|
1023
|
-
}, z.core.$loose>>;
|
|
1024
|
-
payments: z.ZodOptional<z.ZodObject<{
|
|
1025
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1026
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1027
|
-
custom: "custom";
|
|
1028
|
-
stripe: "stripe";
|
|
1029
|
-
paddle: "paddle";
|
|
1030
|
-
lemonsqueezy: "lemonsqueezy";
|
|
1031
|
-
paypal: "paypal";
|
|
1032
|
-
}>>;
|
|
1033
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1034
|
-
checkout: "checkout";
|
|
1035
|
-
subscriptions: "subscriptions";
|
|
1036
|
-
invoices: "invoices";
|
|
1037
|
-
usage_billing: "usage_billing";
|
|
1038
|
-
trials: "trials";
|
|
1039
|
-
coupons: "coupons";
|
|
1040
|
-
}>>>>;
|
|
1041
|
-
}, z.core.$loose>>;
|
|
1042
|
-
database: z.ZodOptional<z.ZodObject<{
|
|
1043
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1044
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1045
|
-
custom: "custom";
|
|
1046
|
-
prisma: "prisma";
|
|
1047
|
-
drizzle: "drizzle";
|
|
1048
|
-
typeorm: "typeorm";
|
|
1049
|
-
kysely: "kysely";
|
|
1050
|
-
}>>;
|
|
1051
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1052
|
-
migrations: "migrations";
|
|
1053
|
-
transactions: "transactions";
|
|
1054
|
-
seeding: "seeding";
|
|
1055
|
-
multi_tenant: "multi_tenant";
|
|
1056
|
-
full_text_search: "full_text_search";
|
|
1057
|
-
soft_delete: "soft_delete";
|
|
1058
|
-
}>>>>;
|
|
1059
|
-
}, z.core.$loose>>;
|
|
1060
|
-
testing: z.ZodOptional<z.ZodObject<{
|
|
1061
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1062
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1063
|
-
custom: "custom";
|
|
1064
|
-
vitest: "vitest";
|
|
1065
|
-
jest: "jest";
|
|
1066
|
-
playwright: "playwright";
|
|
1067
|
-
cypress: "cypress";
|
|
1068
|
-
}>>;
|
|
1069
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1070
|
-
unit: "unit";
|
|
1071
|
-
integration: "integration";
|
|
1072
|
-
e2e: "e2e";
|
|
1073
|
-
coverage: "coverage";
|
|
1074
|
-
snapshot: "snapshot";
|
|
1075
|
-
mocking: "mocking";
|
|
1076
|
-
}>>>>;
|
|
1077
|
-
}, z.core.$loose>>;
|
|
1078
|
-
security: z.ZodOptional<z.ZodObject<{
|
|
1079
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1080
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
1081
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1082
|
-
rbac: "rbac";
|
|
1083
|
-
input_validation: "input_validation";
|
|
1084
|
-
rate_limiting: "rate_limiting";
|
|
1085
|
-
csrf: "csrf";
|
|
1086
|
-
xss: "xss";
|
|
1087
|
-
sql_injection: "sql_injection";
|
|
1088
|
-
audit: "audit";
|
|
1089
|
-
encryption: "encryption";
|
|
1090
|
-
secrets_management: "secrets_management";
|
|
1091
|
-
}>>>>;
|
|
1092
|
-
}, z.core.$loose>>;
|
|
1093
|
-
ai: z.ZodOptional<z.ZodObject<{
|
|
1094
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1095
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1096
|
-
custom: "custom";
|
|
1097
|
-
anthropic: "anthropic";
|
|
1098
|
-
openai: "openai";
|
|
1099
|
-
google: "google";
|
|
1100
|
-
cohere: "cohere";
|
|
1101
|
-
}>>;
|
|
1102
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1103
|
-
agents: "agents";
|
|
1104
|
-
streaming: "streaming";
|
|
1105
|
-
tool_use: "tool_use";
|
|
1106
|
-
embeddings: "embeddings";
|
|
1107
|
-
rag: "rag";
|
|
1108
|
-
vision: "vision";
|
|
1109
|
-
}>>>>;
|
|
1110
|
-
}, z.core.$loose>>;
|
|
1111
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1112
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1113
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1114
|
-
custom: "custom";
|
|
1115
|
-
resend: "resend";
|
|
1116
|
-
sendgrid: "sendgrid";
|
|
1117
|
-
postmark: "postmark";
|
|
1118
|
-
ses: "ses";
|
|
1119
|
-
mailgun: "mailgun";
|
|
1120
|
-
}>>;
|
|
1121
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1122
|
-
transactional: "transactional";
|
|
1123
|
-
marketing: "marketing";
|
|
1124
|
-
templates: "templates";
|
|
1125
|
-
tracking: "tracking";
|
|
1126
|
-
}>>>>;
|
|
1127
|
-
}, z.core.$loose>>;
|
|
1128
|
-
analytics: z.ZodOptional<z.ZodObject<{
|
|
1129
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1130
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1131
|
-
custom: "custom";
|
|
1132
|
-
posthog: "posthog";
|
|
1133
|
-
amplitude: "amplitude";
|
|
1134
|
-
mixpanel: "mixpanel";
|
|
1135
|
-
google_analytics: "google_analytics";
|
|
1136
|
-
}>>;
|
|
1137
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1138
|
-
page_views: "page_views";
|
|
1139
|
-
events: "events";
|
|
1140
|
-
user_tracking: "user_tracking";
|
|
1141
|
-
funnels: "funnels";
|
|
1142
|
-
experiments: "experiments";
|
|
1143
|
-
}>>>>;
|
|
1144
|
-
}, z.core.$loose>>;
|
|
1145
|
-
monitoring: z.ZodOptional<z.ZodObject<{
|
|
1146
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1147
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1148
|
-
custom: "custom";
|
|
1149
|
-
sentry: "sentry";
|
|
1150
|
-
datadog: "datadog";
|
|
1151
|
-
newrelic: "newrelic";
|
|
1152
|
-
logrocket: "logrocket";
|
|
1153
|
-
}>>;
|
|
1154
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1155
|
-
performance: "performance";
|
|
1156
|
-
error_tracking: "error_tracking";
|
|
1157
|
-
logs: "logs";
|
|
1158
|
-
alerts: "alerts";
|
|
1159
|
-
apm: "apm";
|
|
1160
|
-
}>>>>;
|
|
1161
|
-
}, z.core.$loose>>;
|
|
1162
|
-
}, z.core.$catchall<z.ZodObject<{
|
|
1163
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1164
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
1165
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1166
|
-
}, z.core.$loose>>>;
|
|
1167
|
-
declare const PluginSchema: z.ZodObject<{
|
|
1168
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1169
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
1170
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1171
|
-
}, z.core.$loose>;
|
|
1172
|
-
declare const AgentConfigSchema: z.ZodObject<{
|
|
1173
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1174
|
-
expertise: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1175
|
-
customInstructions: z.ZodOptional<z.ZodString>;
|
|
1176
|
-
priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1177
|
-
high: "high";
|
|
1178
|
-
medium: "medium";
|
|
1179
|
-
low: "low";
|
|
1180
|
-
}>>>;
|
|
1181
|
-
}, z.core.$loose>;
|
|
1182
|
-
declare const AgentsConfigSchema: z.ZodObject<{
|
|
1183
|
-
enabled: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1184
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1185
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1186
|
-
expertise: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1187
|
-
customInstructions: z.ZodOptional<z.ZodString>;
|
|
1188
|
-
priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1189
|
-
high: "high";
|
|
1190
|
-
medium: "medium";
|
|
1191
|
-
low: "low";
|
|
1192
|
-
}>>>;
|
|
1193
|
-
}, z.core.$loose>>>;
|
|
1194
|
-
defaults: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1195
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
1196
|
-
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1197
|
-
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1198
|
-
verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1199
|
-
}, z.core.$strip>>;
|
|
1200
|
-
}, z.core.$loose>;
|
|
1201
|
-
declare const SkillConfigSchema: z.ZodObject<{
|
|
1202
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1203
|
-
tier: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1204
|
-
free: "free";
|
|
1205
|
-
pro: "pro";
|
|
1206
|
-
premium: "premium";
|
|
1207
|
-
}>>>;
|
|
1208
|
-
category: z.ZodOptional<z.ZodString>;
|
|
1209
|
-
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
1210
|
-
}, z.core.$loose>;
|
|
1211
|
-
declare const SkillsConfigSchema: z.ZodObject<{
|
|
1212
|
-
categories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1213
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1214
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1215
|
-
tier: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1216
|
-
free: "free";
|
|
1217
|
-
pro: "pro";
|
|
1218
|
-
premium: "premium";
|
|
1219
|
-
}>>>;
|
|
1220
|
-
category: z.ZodOptional<z.ZodString>;
|
|
1221
|
-
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
1222
|
-
}, z.core.$loose>>>;
|
|
1223
|
-
external: z.ZodOptional<z.ZodObject<{
|
|
1224
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1225
|
-
manifestUrl: z.ZodOptional<z.ZodString>;
|
|
1226
|
-
cacheDir: z.ZodOptional<z.ZodString>;
|
|
1227
|
-
requireSignature: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1228
|
-
}, z.core.$strip>>;
|
|
1229
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
1230
|
-
defaultMaxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1231
|
-
summaryByDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1232
|
-
includeExternal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1233
|
-
}, z.core.$strip>>;
|
|
1234
|
-
}, z.core.$loose>;
|
|
1235
|
-
declare const WorkflowPhaseSchema: z.ZodObject<{
|
|
1236
|
-
name: z.ZodString;
|
|
1237
|
-
agents: z.ZodArray<z.ZodString>;
|
|
1238
|
-
duration: z.ZodOptional<z.ZodString>;
|
|
1239
|
-
parallel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1240
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1241
|
-
}, z.core.$loose>;
|
|
1242
|
-
declare const WorkflowConfigSchema: z.ZodObject<{
|
|
1243
|
-
name: z.ZodString;
|
|
1244
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1245
|
-
tier: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1246
|
-
free: "free";
|
|
1247
|
-
pro: "pro";
|
|
1248
|
-
}>>>;
|
|
1249
|
-
pack: z.ZodOptional<z.ZodString>;
|
|
1250
|
-
outcomes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1251
|
-
completionSignals: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1252
|
-
phases: z.ZodArray<z.ZodObject<{
|
|
1253
|
-
name: z.ZodString;
|
|
1254
|
-
agents: z.ZodArray<z.ZodString>;
|
|
1255
|
-
duration: z.ZodOptional<z.ZodString>;
|
|
1256
|
-
parallel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1257
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1258
|
-
}, z.core.$loose>>;
|
|
1259
|
-
}, z.core.$loose>;
|
|
1260
|
-
declare const WorkflowsConfigSchema: z.ZodObject<{
|
|
1261
|
-
enabled: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1262
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1263
|
-
name: z.ZodString;
|
|
1264
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1265
|
-
tier: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1266
|
-
free: "free";
|
|
1267
|
-
pro: "pro";
|
|
1268
|
-
}>>>;
|
|
1269
|
-
pack: z.ZodOptional<z.ZodString>;
|
|
1270
|
-
outcomes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1271
|
-
completionSignals: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1272
|
-
phases: z.ZodArray<z.ZodObject<{
|
|
1273
|
-
name: z.ZodString;
|
|
1274
|
-
agents: z.ZodArray<z.ZodString>;
|
|
1275
|
-
duration: z.ZodOptional<z.ZodString>;
|
|
1276
|
-
parallel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1277
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1278
|
-
}, z.core.$loose>>;
|
|
1279
|
-
}, z.core.$loose>>>;
|
|
1280
|
-
default: z.ZodOptional<z.ZodString>;
|
|
1281
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
1282
|
-
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1283
|
-
pauseBetweenPhases: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1284
|
-
trackSignals: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1285
|
-
emitTelemetry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1286
|
-
}, z.core.$strip>>;
|
|
1287
|
-
}, z.core.$loose>;
|
|
1288
|
-
declare const QualityCheckSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1289
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1290
|
-
checks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1291
|
-
test: "test";
|
|
1292
|
-
security: "security";
|
|
1293
|
-
format: "format";
|
|
1294
|
-
coverage: "coverage";
|
|
1295
|
-
lint: "lint";
|
|
1296
|
-
typecheck: "typecheck";
|
|
1297
|
-
build: "build";
|
|
1298
|
-
}>>>;
|
|
1299
|
-
}, z.core.$strip>]>;
|
|
1300
|
-
declare const QualityConfigSchema: z.ZodObject<{
|
|
1301
|
-
preCommit: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1302
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1303
|
-
checks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1304
|
-
test: "test";
|
|
1305
|
-
security: "security";
|
|
1306
|
-
format: "format";
|
|
1307
|
-
coverage: "coverage";
|
|
1308
|
-
lint: "lint";
|
|
1309
|
-
typecheck: "typecheck";
|
|
1310
|
-
build: "build";
|
|
1311
|
-
}>>>;
|
|
1312
|
-
}, z.core.$strip>]>>>;
|
|
1313
|
-
prePush: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1314
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1315
|
-
checks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1316
|
-
test: "test";
|
|
1317
|
-
security: "security";
|
|
1318
|
-
format: "format";
|
|
1319
|
-
coverage: "coverage";
|
|
1320
|
-
lint: "lint";
|
|
1321
|
-
typecheck: "typecheck";
|
|
1322
|
-
build: "build";
|
|
1323
|
-
}>>>;
|
|
1324
|
-
}, z.core.$strip>]>>>;
|
|
1325
|
-
preDeploy: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1326
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1327
|
-
checks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1328
|
-
test: "test";
|
|
1329
|
-
security: "security";
|
|
1330
|
-
format: "format";
|
|
1331
|
-
coverage: "coverage";
|
|
1332
|
-
lint: "lint";
|
|
1333
|
-
typecheck: "typecheck";
|
|
1334
|
-
build: "build";
|
|
1335
|
-
}>>>;
|
|
1336
|
-
}, z.core.$strip>]>>;
|
|
1337
|
-
strictMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1338
|
-
coverage: z.ZodOptional<z.ZodObject<{
|
|
1339
|
-
statements: z.ZodOptional<z.ZodNumber>;
|
|
1340
|
-
branches: z.ZodOptional<z.ZodNumber>;
|
|
1341
|
-
functions: z.ZodOptional<z.ZodNumber>;
|
|
1342
|
-
lines: z.ZodOptional<z.ZodNumber>;
|
|
1343
|
-
}, z.core.$strip>>;
|
|
1344
|
-
}, z.core.$loose>;
|
|
1345
|
-
declare const ContextConfigSchema: z.ZodObject<{
|
|
1346
|
-
includeEnvVars: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1347
|
-
includeTechStack: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1348
|
-
includePlugins: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1349
|
-
includeGitInfo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1350
|
-
includeTodos: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1351
|
-
includeLearnings: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1352
|
-
customSections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1353
|
-
title: z.ZodString;
|
|
1354
|
-
content: z.ZodString;
|
|
1355
|
-
}, z.core.$strip>>>>;
|
|
1356
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
1357
|
-
}, z.core.$loose>;
|
|
1358
|
-
declare const PathsConfigSchema: z.ZodObject<{
|
|
1359
|
-
context: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1360
|
-
config: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1361
|
-
todo: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1362
|
-
roadmap: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1363
|
-
changelog: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1364
|
-
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1365
|
-
}, z.core.$loose>;
|
|
1366
|
-
declare const DashboardConfigSchema: z.ZodObject<{
|
|
1367
|
-
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1368
|
-
autoOpen: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1369
|
-
host: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1370
|
-
theme: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1371
|
-
light: "light";
|
|
1372
|
-
dark: "dark";
|
|
1373
|
-
system: "system";
|
|
1374
|
-
}>>>;
|
|
1375
|
-
}, z.core.$loose>;
|
|
1376
|
-
declare const ProjectConfigSchema: z.ZodObject<{
|
|
1377
|
-
name: z.ZodString;
|
|
1378
|
-
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1379
|
-
version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1380
|
-
author: z.ZodOptional<z.ZodString>;
|
|
1381
|
-
license: z.ZodOptional<z.ZodString>;
|
|
1382
|
-
repository: z.ZodOptional<z.ZodString>;
|
|
1383
|
-
}, z.core.$loose>;
|
|
1384
|
-
declare const StackConfigSchema: z.ZodObject<{
|
|
1385
|
-
framework: z.ZodOptional<z.ZodEnum<{
|
|
1386
|
-
custom: "custom";
|
|
1387
|
-
nextjs: "nextjs";
|
|
1388
|
-
remix: "remix";
|
|
1389
|
-
nuxt: "nuxt";
|
|
1390
|
-
sveltekit: "sveltekit";
|
|
1391
|
-
astro: "astro";
|
|
1392
|
-
express: "express";
|
|
1393
|
-
fastify: "fastify";
|
|
1394
|
-
hono: "hono";
|
|
1395
|
-
}>>;
|
|
1396
|
-
language: z.ZodOptional<z.ZodEnum<{
|
|
1397
|
-
typescript: "typescript";
|
|
1398
|
-
javascript: "javascript";
|
|
1399
|
-
}>>;
|
|
1400
|
-
database: z.ZodOptional<z.ZodEnum<{
|
|
1401
|
-
supabase: "supabase";
|
|
1402
|
-
postgresql: "postgresql";
|
|
1403
|
-
mysql: "mysql";
|
|
1404
|
-
mongodb: "mongodb";
|
|
1405
|
-
sqlite: "sqlite";
|
|
1406
|
-
planetscale: "planetscale";
|
|
1407
|
-
none: "none";
|
|
1408
|
-
}>>;
|
|
1409
|
-
hosting: z.ZodOptional<z.ZodEnum<{
|
|
1410
|
-
custom: "custom";
|
|
1411
|
-
vercel: "vercel";
|
|
1412
|
-
railway: "railway";
|
|
1413
|
-
render: "render";
|
|
1414
|
-
fly: "fly";
|
|
1415
|
-
aws: "aws";
|
|
1416
|
-
gcp: "gcp";
|
|
1417
|
-
azure: "azure";
|
|
1418
|
-
cloudflare: "cloudflare";
|
|
1419
|
-
"self-hosted": "self-hosted";
|
|
1420
|
-
}>>;
|
|
1421
|
-
}, z.core.$loose>;
|
|
1422
|
-
declare const ConfigSchema: z.ZodObject<{
|
|
1423
|
-
project: z.ZodOptional<z.ZodObject<{
|
|
1424
|
-
name: z.ZodString;
|
|
1425
|
-
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1426
|
-
version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1427
|
-
author: z.ZodOptional<z.ZodString>;
|
|
1428
|
-
license: z.ZodOptional<z.ZodString>;
|
|
1429
|
-
repository: z.ZodOptional<z.ZodString>;
|
|
1430
|
-
}, z.core.$loose>>;
|
|
1431
|
-
stack: z.ZodOptional<z.ZodObject<{
|
|
1432
|
-
framework: z.ZodOptional<z.ZodEnum<{
|
|
1433
|
-
custom: "custom";
|
|
1434
|
-
nextjs: "nextjs";
|
|
1435
|
-
remix: "remix";
|
|
1436
|
-
nuxt: "nuxt";
|
|
1437
|
-
sveltekit: "sveltekit";
|
|
1438
|
-
astro: "astro";
|
|
1439
|
-
express: "express";
|
|
1440
|
-
fastify: "fastify";
|
|
1441
|
-
hono: "hono";
|
|
1442
|
-
}>>;
|
|
1443
|
-
language: z.ZodOptional<z.ZodEnum<{
|
|
1444
|
-
typescript: "typescript";
|
|
1445
|
-
javascript: "javascript";
|
|
1446
|
-
}>>;
|
|
1447
|
-
database: z.ZodOptional<z.ZodEnum<{
|
|
1448
|
-
supabase: "supabase";
|
|
1449
|
-
postgresql: "postgresql";
|
|
1450
|
-
mysql: "mysql";
|
|
1451
|
-
mongodb: "mongodb";
|
|
1452
|
-
sqlite: "sqlite";
|
|
1453
|
-
planetscale: "planetscale";
|
|
1454
|
-
none: "none";
|
|
1455
|
-
}>>;
|
|
1456
|
-
hosting: z.ZodOptional<z.ZodEnum<{
|
|
1457
|
-
custom: "custom";
|
|
1458
|
-
vercel: "vercel";
|
|
1459
|
-
railway: "railway";
|
|
1460
|
-
render: "render";
|
|
1461
|
-
fly: "fly";
|
|
1462
|
-
aws: "aws";
|
|
1463
|
-
gcp: "gcp";
|
|
1464
|
-
azure: "azure";
|
|
1465
|
-
cloudflare: "cloudflare";
|
|
1466
|
-
"self-hosted": "self-hosted";
|
|
1467
|
-
}>>;
|
|
1468
|
-
}, z.core.$loose>>;
|
|
1469
|
-
plugins: z.ZodOptional<z.ZodObject<{
|
|
1470
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
1471
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1472
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1473
|
-
custom: "custom";
|
|
1474
|
-
clerk: "clerk";
|
|
1475
|
-
nextauth: "nextauth";
|
|
1476
|
-
auth0: "auth0";
|
|
1477
|
-
supabase: "supabase";
|
|
1478
|
-
jwt: "jwt";
|
|
1479
|
-
}>>;
|
|
1480
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1481
|
-
sso: "sso";
|
|
1482
|
-
social_login: "social_login";
|
|
1483
|
-
email_password: "email_password";
|
|
1484
|
-
magic_link: "magic_link";
|
|
1485
|
-
mfa: "mfa";
|
|
1486
|
-
rbac: "rbac";
|
|
1487
|
-
passwordless: "passwordless";
|
|
1488
|
-
}>>>>;
|
|
1489
|
-
}, z.core.$loose>>;
|
|
1490
|
-
payments: z.ZodOptional<z.ZodObject<{
|
|
1491
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1492
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1493
|
-
custom: "custom";
|
|
1494
|
-
stripe: "stripe";
|
|
1495
|
-
paddle: "paddle";
|
|
1496
|
-
lemonsqueezy: "lemonsqueezy";
|
|
1497
|
-
paypal: "paypal";
|
|
1498
|
-
}>>;
|
|
1499
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1500
|
-
checkout: "checkout";
|
|
1501
|
-
subscriptions: "subscriptions";
|
|
1502
|
-
invoices: "invoices";
|
|
1503
|
-
usage_billing: "usage_billing";
|
|
1504
|
-
trials: "trials";
|
|
1505
|
-
coupons: "coupons";
|
|
1506
|
-
}>>>>;
|
|
1507
|
-
}, z.core.$loose>>;
|
|
1508
|
-
database: z.ZodOptional<z.ZodObject<{
|
|
1509
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1510
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1511
|
-
custom: "custom";
|
|
1512
|
-
prisma: "prisma";
|
|
1513
|
-
drizzle: "drizzle";
|
|
1514
|
-
typeorm: "typeorm";
|
|
1515
|
-
kysely: "kysely";
|
|
1516
|
-
}>>;
|
|
1517
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1518
|
-
migrations: "migrations";
|
|
1519
|
-
transactions: "transactions";
|
|
1520
|
-
seeding: "seeding";
|
|
1521
|
-
multi_tenant: "multi_tenant";
|
|
1522
|
-
full_text_search: "full_text_search";
|
|
1523
|
-
soft_delete: "soft_delete";
|
|
1524
|
-
}>>>>;
|
|
1525
|
-
}, z.core.$loose>>;
|
|
1526
|
-
testing: z.ZodOptional<z.ZodObject<{
|
|
1527
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1528
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1529
|
-
custom: "custom";
|
|
1530
|
-
vitest: "vitest";
|
|
1531
|
-
jest: "jest";
|
|
1532
|
-
playwright: "playwright";
|
|
1533
|
-
cypress: "cypress";
|
|
1534
|
-
}>>;
|
|
1535
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1536
|
-
unit: "unit";
|
|
1537
|
-
integration: "integration";
|
|
1538
|
-
e2e: "e2e";
|
|
1539
|
-
coverage: "coverage";
|
|
1540
|
-
snapshot: "snapshot";
|
|
1541
|
-
mocking: "mocking";
|
|
1542
|
-
}>>>>;
|
|
1543
|
-
}, z.core.$loose>>;
|
|
1544
|
-
security: z.ZodOptional<z.ZodObject<{
|
|
1545
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1546
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
1547
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1548
|
-
rbac: "rbac";
|
|
1549
|
-
input_validation: "input_validation";
|
|
1550
|
-
rate_limiting: "rate_limiting";
|
|
1551
|
-
csrf: "csrf";
|
|
1552
|
-
xss: "xss";
|
|
1553
|
-
sql_injection: "sql_injection";
|
|
1554
|
-
audit: "audit";
|
|
1555
|
-
encryption: "encryption";
|
|
1556
|
-
secrets_management: "secrets_management";
|
|
1557
|
-
}>>>>;
|
|
1558
|
-
}, z.core.$loose>>;
|
|
1559
|
-
ai: z.ZodOptional<z.ZodObject<{
|
|
1560
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1561
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1562
|
-
custom: "custom";
|
|
1563
|
-
anthropic: "anthropic";
|
|
1564
|
-
openai: "openai";
|
|
1565
|
-
google: "google";
|
|
1566
|
-
cohere: "cohere";
|
|
1567
|
-
}>>;
|
|
1568
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1569
|
-
agents: "agents";
|
|
1570
|
-
streaming: "streaming";
|
|
1571
|
-
tool_use: "tool_use";
|
|
1572
|
-
embeddings: "embeddings";
|
|
1573
|
-
rag: "rag";
|
|
1574
|
-
vision: "vision";
|
|
1575
|
-
}>>>>;
|
|
1576
|
-
}, z.core.$loose>>;
|
|
1577
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1578
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1579
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1580
|
-
custom: "custom";
|
|
1581
|
-
resend: "resend";
|
|
1582
|
-
sendgrid: "sendgrid";
|
|
1583
|
-
postmark: "postmark";
|
|
1584
|
-
ses: "ses";
|
|
1585
|
-
mailgun: "mailgun";
|
|
1586
|
-
}>>;
|
|
1587
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1588
|
-
transactional: "transactional";
|
|
1589
|
-
marketing: "marketing";
|
|
1590
|
-
templates: "templates";
|
|
1591
|
-
tracking: "tracking";
|
|
1592
|
-
}>>>>;
|
|
1593
|
-
}, z.core.$loose>>;
|
|
1594
|
-
analytics: z.ZodOptional<z.ZodObject<{
|
|
1595
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1596
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1597
|
-
custom: "custom";
|
|
1598
|
-
posthog: "posthog";
|
|
1599
|
-
amplitude: "amplitude";
|
|
1600
|
-
mixpanel: "mixpanel";
|
|
1601
|
-
google_analytics: "google_analytics";
|
|
1602
|
-
}>>;
|
|
1603
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1604
|
-
page_views: "page_views";
|
|
1605
|
-
events: "events";
|
|
1606
|
-
user_tracking: "user_tracking";
|
|
1607
|
-
funnels: "funnels";
|
|
1608
|
-
experiments: "experiments";
|
|
1609
|
-
}>>>>;
|
|
1610
|
-
}, z.core.$loose>>;
|
|
1611
|
-
monitoring: z.ZodOptional<z.ZodObject<{
|
|
1612
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1613
|
-
provider: z.ZodOptional<z.ZodEnum<{
|
|
1614
|
-
custom: "custom";
|
|
1615
|
-
sentry: "sentry";
|
|
1616
|
-
datadog: "datadog";
|
|
1617
|
-
newrelic: "newrelic";
|
|
1618
|
-
logrocket: "logrocket";
|
|
1619
|
-
}>>;
|
|
1620
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1621
|
-
performance: "performance";
|
|
1622
|
-
error_tracking: "error_tracking";
|
|
1623
|
-
logs: "logs";
|
|
1624
|
-
alerts: "alerts";
|
|
1625
|
-
apm: "apm";
|
|
1626
|
-
}>>>>;
|
|
1627
|
-
}, z.core.$loose>>;
|
|
1628
|
-
}, z.core.$catchall<z.ZodObject<{
|
|
1629
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1630
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
1631
|
-
features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1632
|
-
}, z.core.$loose>>>>;
|
|
1633
|
-
agents: z.ZodOptional<z.ZodObject<{
|
|
1634
|
-
enabled: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1635
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1636
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1637
|
-
expertise: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1638
|
-
customInstructions: z.ZodOptional<z.ZodString>;
|
|
1639
|
-
priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1640
|
-
high: "high";
|
|
1641
|
-
medium: "medium";
|
|
1642
|
-
low: "low";
|
|
1643
|
-
}>>>;
|
|
1644
|
-
}, z.core.$loose>>>;
|
|
1645
|
-
defaults: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1646
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
1647
|
-
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1648
|
-
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1649
|
-
verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1650
|
-
}, z.core.$strip>>;
|
|
1651
|
-
}, z.core.$loose>>;
|
|
1652
|
-
skills: z.ZodOptional<z.ZodObject<{
|
|
1653
|
-
categories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1654
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1655
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1656
|
-
tier: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1657
|
-
free: "free";
|
|
1658
|
-
pro: "pro";
|
|
1659
|
-
premium: "premium";
|
|
1660
|
-
}>>>;
|
|
1661
|
-
category: z.ZodOptional<z.ZodString>;
|
|
1662
|
-
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
1663
|
-
}, z.core.$loose>>>;
|
|
1664
|
-
external: z.ZodOptional<z.ZodObject<{
|
|
1665
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1666
|
-
manifestUrl: z.ZodOptional<z.ZodString>;
|
|
1667
|
-
cacheDir: z.ZodOptional<z.ZodString>;
|
|
1668
|
-
requireSignature: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1669
|
-
}, z.core.$strip>>;
|
|
1670
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
1671
|
-
defaultMaxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1672
|
-
summaryByDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1673
|
-
includeExternal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1674
|
-
}, z.core.$strip>>;
|
|
1675
|
-
}, z.core.$loose>>;
|
|
1676
|
-
workflows: z.ZodOptional<z.ZodObject<{
|
|
1677
|
-
enabled: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1678
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1679
|
-
name: z.ZodString;
|
|
1680
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1681
|
-
tier: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1682
|
-
free: "free";
|
|
1683
|
-
pro: "pro";
|
|
1684
|
-
}>>>;
|
|
1685
|
-
pack: z.ZodOptional<z.ZodString>;
|
|
1686
|
-
outcomes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1687
|
-
completionSignals: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1688
|
-
phases: z.ZodArray<z.ZodObject<{
|
|
1689
|
-
name: z.ZodString;
|
|
1690
|
-
agents: z.ZodArray<z.ZodString>;
|
|
1691
|
-
duration: z.ZodOptional<z.ZodString>;
|
|
1692
|
-
parallel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1693
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1694
|
-
}, z.core.$loose>>;
|
|
1695
|
-
}, z.core.$loose>>>;
|
|
1696
|
-
default: z.ZodOptional<z.ZodString>;
|
|
1697
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
1698
|
-
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1699
|
-
pauseBetweenPhases: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1700
|
-
trackSignals: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1701
|
-
emitTelemetry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1702
|
-
}, z.core.$strip>>;
|
|
1703
|
-
}, z.core.$loose>>;
|
|
1704
|
-
dashboard: z.ZodOptional<z.ZodObject<{
|
|
1705
|
-
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1706
|
-
autoOpen: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1707
|
-
host: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1708
|
-
theme: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1709
|
-
light: "light";
|
|
1710
|
-
dark: "dark";
|
|
1711
|
-
system: "system";
|
|
1712
|
-
}>>>;
|
|
1713
|
-
}, z.core.$loose>>;
|
|
1714
|
-
quality: z.ZodOptional<z.ZodObject<{
|
|
1715
|
-
preCommit: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1716
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1717
|
-
checks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1718
|
-
test: "test";
|
|
1719
|
-
security: "security";
|
|
1720
|
-
format: "format";
|
|
1721
|
-
coverage: "coverage";
|
|
1722
|
-
lint: "lint";
|
|
1723
|
-
typecheck: "typecheck";
|
|
1724
|
-
build: "build";
|
|
1725
|
-
}>>>;
|
|
1726
|
-
}, z.core.$strip>]>>>;
|
|
1727
|
-
prePush: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1728
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1729
|
-
checks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1730
|
-
test: "test";
|
|
1731
|
-
security: "security";
|
|
1732
|
-
format: "format";
|
|
1733
|
-
coverage: "coverage";
|
|
1734
|
-
lint: "lint";
|
|
1735
|
-
typecheck: "typecheck";
|
|
1736
|
-
build: "build";
|
|
1737
|
-
}>>>;
|
|
1738
|
-
}, z.core.$strip>]>>>;
|
|
1739
|
-
preDeploy: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1740
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1741
|
-
checks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1742
|
-
test: "test";
|
|
1743
|
-
security: "security";
|
|
1744
|
-
format: "format";
|
|
1745
|
-
coverage: "coverage";
|
|
1746
|
-
lint: "lint";
|
|
1747
|
-
typecheck: "typecheck";
|
|
1748
|
-
build: "build";
|
|
1749
|
-
}>>>;
|
|
1750
|
-
}, z.core.$strip>]>>;
|
|
1751
|
-
strictMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1752
|
-
coverage: z.ZodOptional<z.ZodObject<{
|
|
1753
|
-
statements: z.ZodOptional<z.ZodNumber>;
|
|
1754
|
-
branches: z.ZodOptional<z.ZodNumber>;
|
|
1755
|
-
functions: z.ZodOptional<z.ZodNumber>;
|
|
1756
|
-
lines: z.ZodOptional<z.ZodNumber>;
|
|
1757
|
-
}, z.core.$strip>>;
|
|
1758
|
-
}, z.core.$loose>>;
|
|
1759
|
-
context: z.ZodOptional<z.ZodObject<{
|
|
1760
|
-
includeEnvVars: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1761
|
-
includeTechStack: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1762
|
-
includePlugins: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1763
|
-
includeGitInfo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1764
|
-
includeTodos: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1765
|
-
includeLearnings: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1766
|
-
customSections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1767
|
-
title: z.ZodString;
|
|
1768
|
-
content: z.ZodString;
|
|
1769
|
-
}, z.core.$strip>>>>;
|
|
1770
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
1771
|
-
}, z.core.$loose>>;
|
|
1772
|
-
paths: z.ZodOptional<z.ZodObject<{
|
|
1773
|
-
context: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1774
|
-
config: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1775
|
-
todo: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1776
|
-
roadmap: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1777
|
-
changelog: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1778
|
-
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1779
|
-
}, z.core.$loose>>;
|
|
1780
|
-
mcp: z.ZodOptional<z.ZodObject<{
|
|
1781
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1782
|
-
servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1783
|
-
command: z.ZodString;
|
|
1784
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1785
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1786
|
-
}, z.core.$strip>>>;
|
|
1787
|
-
}, z.core.$strip>>;
|
|
1788
|
-
}, z.core.$loose>;
|
|
1789
|
-
type BasePluginInput = z.input<typeof BasePluginSchema>;
|
|
1790
|
-
type AuthPluginInput = z.input<typeof AuthPluginSchema>;
|
|
1791
|
-
type PaymentsPluginInput = z.input<typeof PaymentsPluginSchema>;
|
|
1792
|
-
type DatabasePluginInput = z.input<typeof DatabasePluginSchema>;
|
|
1793
|
-
type TestingPluginInput = z.input<typeof TestingPluginSchema>;
|
|
1794
|
-
type SecurityPluginInput = z.input<typeof SecurityPluginSchema>;
|
|
1795
|
-
type AIPluginInput = z.input<typeof AIPluginSchema>;
|
|
1796
|
-
type EmailPluginInput = z.input<typeof EmailPluginSchema>;
|
|
1797
|
-
type AnalyticsPluginInput = z.input<typeof AnalyticsPluginSchema>;
|
|
1798
|
-
type MonitoringPluginInput = z.input<typeof MonitoringPluginSchema>;
|
|
1799
|
-
type PluginsInput = z.input<typeof PluginsSchema>;
|
|
1800
|
-
type ConfigInput = z.input<typeof ConfigSchema>;
|
|
1801
|
-
type BasePlugin = z.infer<typeof BasePluginSchema>;
|
|
1802
|
-
type AuthPlugin = z.infer<typeof AuthPluginSchema>;
|
|
1803
|
-
type PaymentsPlugin = z.infer<typeof PaymentsPluginSchema>;
|
|
1804
|
-
type DatabasePlugin = z.infer<typeof DatabasePluginSchema>;
|
|
1805
|
-
type TestingPlugin = z.infer<typeof TestingPluginSchema>;
|
|
1806
|
-
type SecurityPlugin = z.infer<typeof SecurityPluginSchema>;
|
|
1807
|
-
type AIPlugin = z.infer<typeof AIPluginSchema>;
|
|
1808
|
-
type EmailPlugin = z.infer<typeof EmailPluginSchema>;
|
|
1809
|
-
type AnalyticsPlugin = z.infer<typeof AnalyticsPluginSchema>;
|
|
1810
|
-
type MonitoringPlugin = z.infer<typeof MonitoringPluginSchema>;
|
|
1811
|
-
type Plugins = z.infer<typeof PluginsSchema>;
|
|
1812
|
-
type AgentConfig = z.infer<typeof AgentConfigSchema>;
|
|
1813
|
-
type AgentsConfig = z.infer<typeof AgentsConfigSchema>;
|
|
1814
|
-
type SkillConfig = z.infer<typeof SkillConfigSchema>;
|
|
1815
|
-
type SkillsConfig = z.infer<typeof SkillsConfigSchema>;
|
|
1816
|
-
type ConfigWorkflowPhase = z.infer<typeof WorkflowPhaseSchema>;
|
|
1817
|
-
type WorkflowConfig = z.infer<typeof WorkflowConfigSchema>;
|
|
1818
|
-
type WorkflowsConfig = z.infer<typeof WorkflowsConfigSchema>;
|
|
1819
|
-
type QualityCheck = z.infer<typeof QualityCheckSchema>;
|
|
1820
|
-
type QualityConfig = z.infer<typeof QualityConfigSchema>;
|
|
1821
|
-
type ContextConfig = z.infer<typeof ContextConfigSchema>;
|
|
1822
|
-
type PathsConfig = z.infer<typeof PathsConfigSchema>;
|
|
1823
|
-
type DashboardConfig = z.infer<typeof DashboardConfigSchema>;
|
|
1824
|
-
type ConfigProjectConfig = z.infer<typeof ProjectConfigSchema>;
|
|
1825
|
-
type ConfigStackConfig = z.infer<typeof StackConfigSchema>;
|
|
1826
|
-
type Config = z.infer<typeof ConfigSchema>;
|
|
1827
|
-
interface LoadedConfig extends ConfigInput {
|
|
1828
|
-
_projectRoot?: string | undefined;
|
|
1829
|
-
_configPath?: string | null | undefined;
|
|
1830
|
-
_bootspringDir?: string | undefined;
|
|
1831
|
-
_validation?: ValidationResult | {
|
|
1832
|
-
skipped: boolean;
|
|
1833
|
-
} | undefined;
|
|
1834
|
-
}
|
|
1835
|
-
interface ValidationResult {
|
|
1836
|
-
valid: boolean;
|
|
1837
|
-
errors: string[];
|
|
1838
|
-
warnings?: string[] | undefined;
|
|
1839
|
-
data?: Config | null | undefined;
|
|
1840
|
-
validatedAt?: string | undefined;
|
|
1841
|
-
}
|
|
1842
|
-
interface SectionValidationResult {
|
|
1843
|
-
valid: boolean;
|
|
1844
|
-
errors: string[];
|
|
1845
|
-
data: unknown;
|
|
1846
|
-
}
|
|
1847
|
-
interface PresetDefinition {
|
|
1848
|
-
name: string;
|
|
1849
|
-
description: string;
|
|
1850
|
-
tags: string[];
|
|
1851
|
-
extends: string | null;
|
|
1852
|
-
config: Partial<ConfigInput>;
|
|
1853
|
-
}
|
|
1854
|
-
interface PresetInfo {
|
|
1855
|
-
key: string;
|
|
1856
|
-
name: string;
|
|
1857
|
-
description: string;
|
|
1858
|
-
tags?: string[] | undefined;
|
|
1859
|
-
extends?: string | null | undefined;
|
|
1860
|
-
}
|
|
1861
|
-
interface ListPresetsOptions {
|
|
1862
|
-
tag?: string | undefined;
|
|
1863
|
-
verbose?: boolean | undefined;
|
|
1864
|
-
}
|
|
1865
|
-
interface ValidateOptions {
|
|
1866
|
-
strict?: boolean | undefined;
|
|
1867
|
-
sections?: string[] | undefined;
|
|
1868
|
-
}
|
|
1869
|
-
interface LoadWithValidationOptions {
|
|
1870
|
-
validate?: boolean | undefined;
|
|
1871
|
-
strict?: boolean | undefined;
|
|
1872
|
-
silent?: boolean | undefined;
|
|
1873
|
-
}
|
|
1874
|
-
declare const DEFAULT_CONFIG: ConfigInput;
|
|
1875
|
-
/**
|
|
1876
|
-
* Deep merge two objects
|
|
1877
|
-
*/
|
|
1878
|
-
declare function deepMerge<T extends Record<string, unknown>>(target: T, source: Partial<T>): T;
|
|
1879
|
-
|
|
1880
|
-
/**
|
|
1881
|
-
* Bootspring Configuration — Presets
|
|
1882
|
-
*
|
|
1883
|
-
* Static preset configurations and preset management functions.
|
|
1884
|
-
*
|
|
1885
|
-
* @package bootspring
|
|
1886
|
-
* @module core/config-presets
|
|
1887
|
-
*/
|
|
1888
|
-
|
|
1889
|
-
declare const CONFIG_PRESETS: Record<string, PresetDefinition>;
|
|
1890
|
-
declare function getPreset(presetName: string): PresetDefinition | null;
|
|
1891
|
-
declare function resolvePresetChain(presetName: string, seen?: Set<string>): ConfigInput;
|
|
1892
|
-
declare function applyPreset(presetNames: string | string[], overrides?: Partial<ConfigInput>): ConfigInput;
|
|
1893
|
-
declare function combinePresets(presetNames: string[], overrides?: Partial<ConfigInput>): ConfigInput;
|
|
1894
|
-
declare function parsePresetString(presetString: string): string[];
|
|
1895
|
-
declare function validatePresets(presetNames: string | string[]): {
|
|
1896
|
-
valid: boolean;
|
|
1897
|
-
errors: string[];
|
|
1898
|
-
validPresets: string[];
|
|
1899
|
-
};
|
|
1900
|
-
declare function getPresetsByTag(tag: string): string[];
|
|
1901
|
-
declare function createCustomPreset(baseName: string, newName: string, customConfig?: Partial<ConfigInput>): PresetDefinition;
|
|
1902
|
-
declare function listPresets(options?: ListPresetsOptions): PresetInfo[];
|
|
1903
|
-
|
|
1904
|
-
/**
|
|
1905
|
-
* Bootspring Configuration
|
|
1906
|
-
* Handles loading and validating bootspring.config.js
|
|
1907
|
-
*
|
|
1908
|
-
* Split into:
|
|
1909
|
-
* config-schemas.ts — Zod schemas + inferred types + interfaces
|
|
1910
|
-
* config-presets.ts — preset data + preset functions
|
|
1911
|
-
* config.ts (this file) — defaults, helpers, loader, validation, re-exports
|
|
1912
|
-
*
|
|
1913
|
-
* @package bootspring
|
|
1914
|
-
* @module core/config
|
|
1915
|
-
*/
|
|
1916
|
-
|
|
1917
|
-
declare const CONFIG_FILES: string[];
|
|
1918
|
-
/**
|
|
1919
|
-
* Format Zod validation errors into user-friendly messages
|
|
1920
|
-
* Compatible with Zod 4.x
|
|
1921
|
-
*/
|
|
1922
|
-
declare function formatValidationErrors(zodError: z.ZodError): string[];
|
|
1923
|
-
/**
|
|
1924
|
-
* Validate a specific config section
|
|
1925
|
-
*/
|
|
1926
|
-
declare function validateSection(section: string, data: unknown): SectionValidationResult;
|
|
1927
|
-
/**
|
|
1928
|
-
* Find the project root directory
|
|
1929
|
-
*/
|
|
1930
|
-
declare function findProjectRoot(): string;
|
|
1931
|
-
/**
|
|
1932
|
-
* Find config file in project
|
|
1933
|
-
*/
|
|
1934
|
-
declare function findConfigFile(projectRoot: string): string | null;
|
|
1935
|
-
/**
|
|
1936
|
-
* Load configuration from file
|
|
1937
|
-
*/
|
|
1938
|
-
declare function load(projectRoot?: string | null): LoadedConfig;
|
|
1939
|
-
/**
|
|
1940
|
-
* Save configuration to file
|
|
1941
|
-
*/
|
|
1942
|
-
declare function save(config: LoadedConfig, filepath?: string | null): boolean;
|
|
1943
|
-
/**
|
|
1944
|
-
* Validate configuration
|
|
1945
|
-
*/
|
|
1946
|
-
declare function validate$1(config: LoadedConfig, options?: ValidateOptions): ValidationResult;
|
|
1947
|
-
/**
|
|
1948
|
-
* Load and optionally validate configuration
|
|
1949
|
-
*/
|
|
1950
|
-
declare function loadWithValidation(projectRoot?: string | null, options?: LoadWithValidationOptions): LoadedConfig;
|
|
1951
|
-
/**
|
|
1952
|
-
* Get validation hint for error path
|
|
1953
|
-
*/
|
|
1954
|
-
declare function getValidationHint(errorPath: string): string | null;
|
|
1955
|
-
/**
|
|
1956
|
-
* Parse and validate configuration with defaults
|
|
1957
|
-
*/
|
|
1958
|
-
declare function parseConfig(config: LoadedConfig): Config;
|
|
1959
|
-
/**
|
|
1960
|
-
* Get default configuration
|
|
1961
|
-
*/
|
|
1962
|
-
declare function getDefaults(): ConfigInput;
|
|
1963
|
-
|
|
1964
|
-
type config_AIPlugin = AIPlugin;
|
|
1965
|
-
type config_AIPluginInput = AIPluginInput;
|
|
1966
|
-
declare const config_AIPluginSchema: typeof AIPluginSchema;
|
|
1967
|
-
type config_AgentConfig = AgentConfig;
|
|
1968
|
-
declare const config_AgentConfigSchema: typeof AgentConfigSchema;
|
|
1969
|
-
type config_AgentsConfig = AgentsConfig;
|
|
1970
|
-
declare const config_AgentsConfigSchema: typeof AgentsConfigSchema;
|
|
1971
|
-
type config_AnalyticsPlugin = AnalyticsPlugin;
|
|
1972
|
-
type config_AnalyticsPluginInput = AnalyticsPluginInput;
|
|
1973
|
-
declare const config_AnalyticsPluginSchema: typeof AnalyticsPluginSchema;
|
|
1974
|
-
type config_AuthPlugin = AuthPlugin;
|
|
1975
|
-
type config_AuthPluginInput = AuthPluginInput;
|
|
1976
|
-
declare const config_AuthPluginSchema: typeof AuthPluginSchema;
|
|
1977
|
-
type config_BasePlugin = BasePlugin;
|
|
1978
|
-
type config_BasePluginInput = BasePluginInput;
|
|
1979
|
-
declare const config_BasePluginSchema: typeof BasePluginSchema;
|
|
1980
|
-
declare const config_CONFIG_FILES: typeof CONFIG_FILES;
|
|
1981
|
-
declare const config_CONFIG_PRESETS: typeof CONFIG_PRESETS;
|
|
1982
|
-
type config_Config = Config;
|
|
1983
|
-
type config_ConfigInput = ConfigInput;
|
|
1984
|
-
type config_ConfigProjectConfig = ConfigProjectConfig;
|
|
1985
|
-
declare const config_ConfigSchema: typeof ConfigSchema;
|
|
1986
|
-
type config_ConfigStackConfig = ConfigStackConfig;
|
|
1987
|
-
type config_ConfigWorkflowPhase = ConfigWorkflowPhase;
|
|
1988
|
-
type config_ContextConfig = ContextConfig;
|
|
1989
|
-
declare const config_ContextConfigSchema: typeof ContextConfigSchema;
|
|
1990
|
-
declare const config_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
|
|
1991
|
-
type config_DashboardConfig = DashboardConfig;
|
|
1992
|
-
declare const config_DashboardConfigSchema: typeof DashboardConfigSchema;
|
|
1993
|
-
type config_DatabasePlugin = DatabasePlugin;
|
|
1994
|
-
type config_DatabasePluginInput = DatabasePluginInput;
|
|
1995
|
-
declare const config_DatabasePluginSchema: typeof DatabasePluginSchema;
|
|
1996
|
-
type config_EmailPlugin = EmailPlugin;
|
|
1997
|
-
type config_EmailPluginInput = EmailPluginInput;
|
|
1998
|
-
declare const config_EmailPluginSchema: typeof EmailPluginSchema;
|
|
1999
|
-
type config_ListPresetsOptions = ListPresetsOptions;
|
|
2000
|
-
type config_LoadWithValidationOptions = LoadWithValidationOptions;
|
|
2001
|
-
type config_LoadedConfig = LoadedConfig;
|
|
2002
|
-
type config_MonitoringPlugin = MonitoringPlugin;
|
|
2003
|
-
type config_MonitoringPluginInput = MonitoringPluginInput;
|
|
2004
|
-
declare const config_MonitoringPluginSchema: typeof MonitoringPluginSchema;
|
|
2005
|
-
type config_PathsConfig = PathsConfig;
|
|
2006
|
-
declare const config_PathsConfigSchema: typeof PathsConfigSchema;
|
|
2007
|
-
type config_PaymentsPlugin = PaymentsPlugin;
|
|
2008
|
-
type config_PaymentsPluginInput = PaymentsPluginInput;
|
|
2009
|
-
declare const config_PaymentsPluginSchema: typeof PaymentsPluginSchema;
|
|
2010
|
-
declare const config_PluginSchema: typeof PluginSchema;
|
|
2011
|
-
type config_Plugins = Plugins;
|
|
2012
|
-
type config_PluginsInput = PluginsInput;
|
|
2013
|
-
declare const config_PluginsSchema: typeof PluginsSchema;
|
|
2014
|
-
type config_PresetDefinition = PresetDefinition;
|
|
2015
|
-
type config_PresetInfo = PresetInfo;
|
|
2016
|
-
declare const config_ProjectConfigSchema: typeof ProjectConfigSchema;
|
|
2017
|
-
type config_QualityCheck = QualityCheck;
|
|
2018
|
-
declare const config_QualityCheckSchema: typeof QualityCheckSchema;
|
|
2019
|
-
type config_QualityConfig = QualityConfig;
|
|
2020
|
-
declare const config_QualityConfigSchema: typeof QualityConfigSchema;
|
|
2021
|
-
type config_SectionValidationResult = SectionValidationResult;
|
|
2022
|
-
type config_SecurityPlugin = SecurityPlugin;
|
|
2023
|
-
type config_SecurityPluginInput = SecurityPluginInput;
|
|
2024
|
-
declare const config_SecurityPluginSchema: typeof SecurityPluginSchema;
|
|
2025
|
-
type config_SkillConfig = SkillConfig;
|
|
2026
|
-
declare const config_SkillConfigSchema: typeof SkillConfigSchema;
|
|
2027
|
-
type config_SkillsConfig = SkillsConfig;
|
|
2028
|
-
declare const config_SkillsConfigSchema: typeof SkillsConfigSchema;
|
|
2029
|
-
declare const config_StackConfigSchema: typeof StackConfigSchema;
|
|
2030
|
-
type config_TestingPlugin = TestingPlugin;
|
|
2031
|
-
type config_TestingPluginInput = TestingPluginInput;
|
|
2032
|
-
declare const config_TestingPluginSchema: typeof TestingPluginSchema;
|
|
2033
|
-
type config_ValidateOptions = ValidateOptions;
|
|
2034
|
-
type config_ValidationResult = ValidationResult;
|
|
2035
|
-
type config_WorkflowConfig = WorkflowConfig;
|
|
2036
|
-
declare const config_WorkflowConfigSchema: typeof WorkflowConfigSchema;
|
|
2037
|
-
declare const config_WorkflowPhaseSchema: typeof WorkflowPhaseSchema;
|
|
2038
|
-
type config_WorkflowsConfig = WorkflowsConfig;
|
|
2039
|
-
declare const config_WorkflowsConfigSchema: typeof WorkflowsConfigSchema;
|
|
2040
|
-
declare const config_applyPreset: typeof applyPreset;
|
|
2041
|
-
declare const config_combinePresets: typeof combinePresets;
|
|
2042
|
-
declare const config_createCustomPreset: typeof createCustomPreset;
|
|
2043
|
-
declare const config_deepMerge: typeof deepMerge;
|
|
2044
|
-
declare const config_findConfigFile: typeof findConfigFile;
|
|
2045
|
-
declare const config_findProjectRoot: typeof findProjectRoot;
|
|
2046
|
-
declare const config_formatValidationErrors: typeof formatValidationErrors;
|
|
2047
|
-
declare const config_getDefaults: typeof getDefaults;
|
|
2048
|
-
declare const config_getPreset: typeof getPreset;
|
|
2049
|
-
declare const config_getPresetsByTag: typeof getPresetsByTag;
|
|
2050
|
-
declare const config_getValidationHint: typeof getValidationHint;
|
|
2051
|
-
declare const config_listPresets: typeof listPresets;
|
|
2052
|
-
declare const config_load: typeof load;
|
|
2053
|
-
declare const config_loadWithValidation: typeof loadWithValidation;
|
|
2054
|
-
declare const config_parseConfig: typeof parseConfig;
|
|
2055
|
-
declare const config_parsePresetString: typeof parsePresetString;
|
|
2056
|
-
declare const config_resolvePresetChain: typeof resolvePresetChain;
|
|
2057
|
-
declare const config_save: typeof save;
|
|
2058
|
-
declare const config_validatePresets: typeof validatePresets;
|
|
2059
|
-
declare const config_validateSection: typeof validateSection;
|
|
2060
|
-
declare namespace config {
|
|
2061
|
-
export { type config_AIPlugin as AIPlugin, type config_AIPluginInput as AIPluginInput, config_AIPluginSchema as AIPluginSchema, type config_AgentConfig as AgentConfig, config_AgentConfigSchema as AgentConfigSchema, type config_AgentsConfig as AgentsConfig, config_AgentsConfigSchema as AgentsConfigSchema, type config_AnalyticsPlugin as AnalyticsPlugin, type config_AnalyticsPluginInput as AnalyticsPluginInput, config_AnalyticsPluginSchema as AnalyticsPluginSchema, type config_AuthPlugin as AuthPlugin, type config_AuthPluginInput as AuthPluginInput, config_AuthPluginSchema as AuthPluginSchema, type config_BasePlugin as BasePlugin, type config_BasePluginInput as BasePluginInput, config_BasePluginSchema as BasePluginSchema, config_CONFIG_FILES as CONFIG_FILES, config_CONFIG_PRESETS as CONFIG_PRESETS, type config_Config as Config, type config_ConfigInput as ConfigInput, type config_ConfigProjectConfig as ConfigProjectConfig, config_ConfigSchema as ConfigSchema, type config_ConfigStackConfig as ConfigStackConfig, type config_ConfigWorkflowPhase as ConfigWorkflowPhase, type config_ContextConfig as ContextConfig, config_ContextConfigSchema as ContextConfigSchema, config_DEFAULT_CONFIG as DEFAULT_CONFIG, type config_DashboardConfig as DashboardConfig, config_DashboardConfigSchema as DashboardConfigSchema, type config_DatabasePlugin as DatabasePlugin, type config_DatabasePluginInput as DatabasePluginInput, config_DatabasePluginSchema as DatabasePluginSchema, type config_EmailPlugin as EmailPlugin, type config_EmailPluginInput as EmailPluginInput, config_EmailPluginSchema as EmailPluginSchema, type config_ListPresetsOptions as ListPresetsOptions, type config_LoadWithValidationOptions as LoadWithValidationOptions, type config_LoadedConfig as LoadedConfig, type config_MonitoringPlugin as MonitoringPlugin, type config_MonitoringPluginInput as MonitoringPluginInput, config_MonitoringPluginSchema as MonitoringPluginSchema, type config_PathsConfig as PathsConfig, config_PathsConfigSchema as PathsConfigSchema, type config_PaymentsPlugin as PaymentsPlugin, type config_PaymentsPluginInput as PaymentsPluginInput, config_PaymentsPluginSchema as PaymentsPluginSchema, config_PluginSchema as PluginSchema, type config_Plugins as Plugins, type config_PluginsInput as PluginsInput, config_PluginsSchema as PluginsSchema, type config_PresetDefinition as PresetDefinition, type config_PresetInfo as PresetInfo, config_ProjectConfigSchema as ProjectConfigSchema, type config_QualityCheck as QualityCheck, config_QualityCheckSchema as QualityCheckSchema, type config_QualityConfig as QualityConfig, config_QualityConfigSchema as QualityConfigSchema, type config_SectionValidationResult as SectionValidationResult, type config_SecurityPlugin as SecurityPlugin, type config_SecurityPluginInput as SecurityPluginInput, config_SecurityPluginSchema as SecurityPluginSchema, type config_SkillConfig as SkillConfig, config_SkillConfigSchema as SkillConfigSchema, type config_SkillsConfig as SkillsConfig, config_SkillsConfigSchema as SkillsConfigSchema, config_StackConfigSchema as StackConfigSchema, type config_TestingPlugin as TestingPlugin, type config_TestingPluginInput as TestingPluginInput, config_TestingPluginSchema as TestingPluginSchema, type config_ValidateOptions as ValidateOptions, type config_ValidationResult as ValidationResult, type config_WorkflowConfig as WorkflowConfig, config_WorkflowConfigSchema as WorkflowConfigSchema, config_WorkflowPhaseSchema as WorkflowPhaseSchema, type config_WorkflowsConfig as WorkflowsConfig, config_WorkflowsConfigSchema as WorkflowsConfigSchema, config_applyPreset as applyPreset, config_combinePresets as combinePresets, config_createCustomPreset as createCustomPreset, config_deepMerge as deepMerge, config_findConfigFile as findConfigFile, config_findProjectRoot as findProjectRoot, config_formatValidationErrors as formatValidationErrors, config_getDefaults as getDefaults, config_getPreset as getPreset, config_getPresetsByTag as getPresetsByTag, config_getValidationHint as getValidationHint, config_listPresets as listPresets, config_load as load, config_loadWithValidation as loadWithValidation, config_parseConfig as parseConfig, config_parsePresetString as parsePresetString, config_resolvePresetChain as resolvePresetChain, config_save as save, validate$1 as validate, config_validatePresets as validatePresets, config_validateSection as validateSection };
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
/**
|
|
2065
|
-
* Bootspring Context Manager
|
|
2066
|
-
* Handles project context for AI assistants
|
|
2067
|
-
*
|
|
2068
|
-
* @package bootspring
|
|
2069
|
-
* @module core/context
|
|
2070
|
-
*/
|
|
2071
|
-
|
|
2072
|
-
/**
|
|
2073
|
-
* Enabled plugin info
|
|
2074
|
-
*/
|
|
2075
|
-
interface EnabledPlugin {
|
|
2076
|
-
provider: string;
|
|
2077
|
-
features: string[];
|
|
2078
|
-
}
|
|
2079
|
-
/**
|
|
2080
|
-
* Enabled plugins map
|
|
2081
|
-
*/
|
|
2082
|
-
interface EnabledPlugins {
|
|
2083
|
-
[name: string]: EnabledPlugin;
|
|
2084
|
-
}
|
|
2085
|
-
/**
|
|
2086
|
-
* Project file structure info
|
|
2087
|
-
*/
|
|
2088
|
-
interface ProjectFiles {
|
|
2089
|
-
hasPackageJson: boolean;
|
|
2090
|
-
hasTsConfig: boolean;
|
|
2091
|
-
hasClaudeMd: boolean;
|
|
2092
|
-
hasBootspringConfig: boolean;
|
|
2093
|
-
hasTodoMd: boolean;
|
|
2094
|
-
hasGit: boolean;
|
|
2095
|
-
hasSrcDir: boolean;
|
|
2096
|
-
hasAppDir: boolean;
|
|
2097
|
-
hasPagesDir: boolean;
|
|
2098
|
-
structure: 'app-router' | 'pages-router' | 'src-based' | 'flat';
|
|
2099
|
-
}
|
|
2100
|
-
/**
|
|
2101
|
-
* Git repository info
|
|
2102
|
-
*/
|
|
2103
|
-
interface GitInfo {
|
|
2104
|
-
initialized: boolean;
|
|
2105
|
-
branch?: string | undefined;
|
|
2106
|
-
hasRemote?: boolean | undefined;
|
|
2107
|
-
}
|
|
2108
|
-
/**
|
|
2109
|
-
* Project state info
|
|
2110
|
-
*/
|
|
2111
|
-
interface ProjectState {
|
|
2112
|
-
phase: 'unknown' | 'uninitialized' | 'initialized' | 'active';
|
|
2113
|
-
health: 'unknown' | 'good' | 'fair' | 'needs-attention';
|
|
2114
|
-
todos: number;
|
|
2115
|
-
lastGenerated: Date | null;
|
|
2116
|
-
issues?: string[] | undefined;
|
|
2117
|
-
}
|
|
2118
|
-
/**
|
|
2119
|
-
* Full project context
|
|
2120
|
-
*/
|
|
2121
|
-
interface ProjectContext {
|
|
2122
|
-
project: ConfigInput['project'];
|
|
2123
|
-
stack: ConfigInput['stack'];
|
|
2124
|
-
plugins: EnabledPlugins;
|
|
2125
|
-
files: ProjectFiles;
|
|
2126
|
-
git: GitInfo;
|
|
2127
|
-
state: ProjectState;
|
|
2128
|
-
timestamp: string;
|
|
2129
|
-
}
|
|
2130
|
-
/**
|
|
2131
|
-
* Validation check result
|
|
2132
|
-
*/
|
|
2133
|
-
interface ValidationCheck {
|
|
2134
|
-
name: string;
|
|
2135
|
-
status: 'pass' | 'fail' | 'warn';
|
|
2136
|
-
message: string;
|
|
2137
|
-
}
|
|
2138
|
-
/**
|
|
2139
|
-
* Context validation result
|
|
2140
|
-
*/
|
|
2141
|
-
interface ContextValidationResult {
|
|
2142
|
-
valid: boolean;
|
|
2143
|
-
score: number;
|
|
2144
|
-
maxScore: number;
|
|
2145
|
-
percentage: number;
|
|
2146
|
-
checks: ValidationCheck[];
|
|
2147
|
-
}
|
|
2148
|
-
/**
|
|
2149
|
-
* Options for get/validate functions
|
|
2150
|
-
*/
|
|
2151
|
-
interface ContextOptions {
|
|
2152
|
-
config?: LoadedConfig | undefined;
|
|
2153
|
-
}
|
|
2154
|
-
/**
|
|
2155
|
-
* Get current project context
|
|
2156
|
-
*/
|
|
2157
|
-
declare function get(options?: ContextOptions): ProjectContext;
|
|
2158
|
-
/**
|
|
2159
|
-
* Get enabled plugins from config
|
|
2160
|
-
*/
|
|
2161
|
-
declare function getEnabledPlugins(cfg: LoadedConfig | ConfigInput): EnabledPlugins;
|
|
2162
|
-
/**
|
|
2163
|
-
* Get project file structure summary
|
|
2164
|
-
*/
|
|
2165
|
-
declare function getProjectFiles(projectRoot: string): ProjectFiles;
|
|
2166
|
-
/**
|
|
2167
|
-
* Get git information
|
|
2168
|
-
*/
|
|
2169
|
-
declare function getGitInfo(projectRoot: string): GitInfo;
|
|
2170
|
-
/**
|
|
2171
|
-
* Get project state
|
|
2172
|
-
*/
|
|
2173
|
-
declare function getProjectState(projectRoot: string, cfg: LoadedConfig | ConfigInput): ProjectState;
|
|
2174
|
-
/**
|
|
2175
|
-
* Validate project context
|
|
2176
|
-
*/
|
|
2177
|
-
declare function validate(options?: ContextOptions): ContextValidationResult;
|
|
2178
|
-
/**
|
|
2179
|
-
* Generate context summary for AI
|
|
2180
|
-
*/
|
|
2181
|
-
declare function generateSummary(options?: ContextOptions): string;
|
|
2182
|
-
|
|
2183
|
-
type context_ContextOptions = ContextOptions;
|
|
2184
|
-
type context_ContextValidationResult = ContextValidationResult;
|
|
2185
|
-
type context_EnabledPlugin = EnabledPlugin;
|
|
2186
|
-
type context_EnabledPlugins = EnabledPlugins;
|
|
2187
|
-
type context_GitInfo = GitInfo;
|
|
2188
|
-
type context_ProjectContext = ProjectContext;
|
|
2189
|
-
type context_ProjectFiles = ProjectFiles;
|
|
2190
|
-
type context_ProjectState = ProjectState;
|
|
2191
|
-
type context_ValidationCheck = ValidationCheck;
|
|
2192
|
-
declare const context_generateSummary: typeof generateSummary;
|
|
2193
|
-
declare const context_get: typeof get;
|
|
2194
|
-
declare const context_getEnabledPlugins: typeof getEnabledPlugins;
|
|
2195
|
-
declare const context_getGitInfo: typeof getGitInfo;
|
|
2196
|
-
declare const context_getProjectFiles: typeof getProjectFiles;
|
|
2197
|
-
declare const context_getProjectState: typeof getProjectState;
|
|
2198
|
-
declare const context_validate: typeof validate;
|
|
2199
|
-
declare namespace context {
|
|
2200
|
-
export { type context_ContextOptions as ContextOptions, type context_ContextValidationResult as ContextValidationResult, type context_EnabledPlugin as EnabledPlugin, type context_EnabledPlugins as EnabledPlugins, type context_GitInfo as GitInfo, type context_ProjectContext as ProjectContext, type context_ProjectFiles as ProjectFiles, type context_ProjectState as ProjectState, type context_ValidationCheck as ValidationCheck, context_generateSummary as generateSummary, context_get as get, context_getEnabledPlugins as getEnabledPlugins, context_getGitInfo as getGitInfo, context_getProjectFiles as getProjectFiles, context_getProjectState as getProjectState, context_validate as validate };
|
|
2201
|
-
}
|
|
2202
|
-
|
|
2203
|
-
/**
|
|
2204
|
-
* Bootspring Telemetry
|
|
2205
|
-
* Lightweight JSONL event emitter for product instrumentation.
|
|
2206
|
-
*
|
|
2207
|
-
* @package bootspring
|
|
2208
|
-
* @module core/telemetry
|
|
2209
|
-
*/
|
|
2210
|
-
declare const MAX_EVENTS_LIMIT = 10000;
|
|
2211
|
-
declare const ASSISTANTS: readonly ["claude", "codex", "gemini"];
|
|
2212
|
-
type AssistantId = typeof ASSISTANTS[number];
|
|
2213
|
-
declare const ASSISTANT_SETUP_EVENT = "assistant_setup";
|
|
2214
|
-
declare const ASSISTANT_FIRST_SUCCESS_EVENT = "assistant_first_success";
|
|
2215
|
-
declare const ASSISTANT_RETURN_EVENT = "assistant_return";
|
|
2216
|
-
declare const BILLING_UPGRADE_STARTED_EVENT = "billing_upgrade_started";
|
|
2217
|
-
declare const UPGRADE_PROMPT_EVENT = "premium_prompted";
|
|
2218
|
-
declare const UPGRADE_COMPLETED_EVENT = "premium_unlocked";
|
|
2219
|
-
/**
|
|
2220
|
-
* Telemetry event record
|
|
2221
|
-
*/
|
|
2222
|
-
interface TelemetryRecord {
|
|
2223
|
-
timestamp: string;
|
|
2224
|
-
event: string;
|
|
2225
|
-
payload: Record<string, unknown>;
|
|
2226
|
-
}
|
|
2227
|
-
/**
|
|
2228
|
-
* Telemetry status
|
|
2229
|
-
*/
|
|
2230
|
-
interface TelemetryStatus {
|
|
2231
|
-
file: string;
|
|
2232
|
-
exists: boolean;
|
|
2233
|
-
count: number;
|
|
2234
|
-
lastEventAt: string | null;
|
|
2235
|
-
}
|
|
2236
|
-
/**
|
|
2237
|
-
* Upload result
|
|
2238
|
-
*/
|
|
2239
|
-
interface UploadResult {
|
|
2240
|
-
uploaded: number;
|
|
2241
|
-
remaining: number;
|
|
2242
|
-
endpoint: string;
|
|
2243
|
-
attempted?: number;
|
|
2244
|
-
batches?: number;
|
|
2245
|
-
attempts?: number;
|
|
2246
|
-
failedBatches?: FailedBatch[];
|
|
2247
|
-
}
|
|
2248
|
-
/**
|
|
2249
|
-
* Failed batch info
|
|
2250
|
-
*/
|
|
2251
|
-
interface FailedBatch {
|
|
2252
|
-
index: number;
|
|
2253
|
-
count: number;
|
|
2254
|
-
error: string;
|
|
2255
|
-
}
|
|
2256
|
-
/**
|
|
2257
|
-
* List events options
|
|
2258
|
-
*/
|
|
2259
|
-
interface ListEventsOptions {
|
|
2260
|
-
projectRoot?: string | undefined;
|
|
2261
|
-
event?: string | undefined;
|
|
2262
|
-
from?: string | Date | undefined;
|
|
2263
|
-
to?: string | Date | undefined;
|
|
2264
|
-
limit?: number | undefined;
|
|
2265
|
-
}
|
|
2266
|
-
/**
|
|
2267
|
-
* Upload options
|
|
2268
|
-
*/
|
|
2269
|
-
interface UploadOptions {
|
|
2270
|
-
projectRoot?: string | undefined;
|
|
2271
|
-
endpoint?: string | undefined;
|
|
2272
|
-
token?: string | undefined;
|
|
2273
|
-
event?: string | undefined;
|
|
2274
|
-
limit?: number | undefined;
|
|
2275
|
-
batchSize?: number | undefined;
|
|
2276
|
-
clearOnSuccess?: boolean | undefined;
|
|
2277
|
-
maxRetries?: number | undefined;
|
|
2278
|
-
retryDelayMs?: number | undefined;
|
|
2279
|
-
/** Pass directly to avoid dynamic import of auth module */
|
|
2280
|
-
apiKey?: string | undefined;
|
|
2281
|
-
/** Pass directly to avoid dynamic import of session module */
|
|
2282
|
-
projectId?: string | undefined;
|
|
2283
|
-
}
|
|
2284
|
-
/**
|
|
2285
|
-
* Emit event options
|
|
2286
|
-
*/
|
|
2287
|
-
interface EmitOptions {
|
|
2288
|
-
projectRoot?: string;
|
|
2289
|
-
now?: string | Date | undefined;
|
|
2290
|
-
}
|
|
2291
|
-
interface AssistantTrackOptions extends EmitOptions {
|
|
2292
|
-
now?: string | Date | undefined;
|
|
2293
|
-
}
|
|
2294
|
-
interface AssistantUsageTrackResult {
|
|
2295
|
-
assistant: AssistantId | null;
|
|
2296
|
-
firstSuccessTracked: boolean;
|
|
2297
|
-
returnTracked: boolean;
|
|
2298
|
-
daysSinceFirst: number | null;
|
|
2299
|
-
}
|
|
2300
|
-
interface AssistantFunnelEntry {
|
|
2301
|
-
setup: boolean;
|
|
2302
|
-
firstSuccess: boolean;
|
|
2303
|
-
returned: boolean;
|
|
2304
|
-
d1: boolean;
|
|
2305
|
-
d7: boolean;
|
|
2306
|
-
setupAt: string | null;
|
|
2307
|
-
firstSuccessAt: string | null;
|
|
2308
|
-
lastReturnAt: string | null;
|
|
2309
|
-
}
|
|
2310
|
-
interface AssistantFunnelSummary {
|
|
2311
|
-
generatedAt: string;
|
|
2312
|
-
query: {
|
|
2313
|
-
assistant: AssistantId | null;
|
|
2314
|
-
from: string | Date | null;
|
|
2315
|
-
to: string | Date | null;
|
|
2316
|
-
};
|
|
2317
|
-
totals: {
|
|
2318
|
-
setup: number;
|
|
2319
|
-
firstSuccess: number;
|
|
2320
|
-
return: number;
|
|
2321
|
-
d1: number;
|
|
2322
|
-
d7: number;
|
|
2323
|
-
};
|
|
2324
|
-
assistants: Partial<Record<AssistantId, AssistantFunnelEntry>>;
|
|
2325
|
-
}
|
|
2326
|
-
interface UpgradeFunnelEntry {
|
|
2327
|
-
capability: string;
|
|
2328
|
-
featureType: string;
|
|
2329
|
-
feature: string;
|
|
2330
|
-
prompted: number;
|
|
2331
|
-
started: number;
|
|
2332
|
-
completed: number;
|
|
2333
|
-
converted: number;
|
|
2334
|
-
conversionRate: number;
|
|
2335
|
-
placements: Record<string, number>;
|
|
2336
|
-
variants: Record<string, number>;
|
|
2337
|
-
}
|
|
2338
|
-
interface UpgradeFunnelSummary {
|
|
2339
|
-
generatedAt: string;
|
|
2340
|
-
totals: {
|
|
2341
|
-
prompted: number;
|
|
2342
|
-
started: number;
|
|
2343
|
-
completed: number;
|
|
2344
|
-
converted: number;
|
|
2345
|
-
startRate: number;
|
|
2346
|
-
conversionRate: number;
|
|
2347
|
-
};
|
|
2348
|
-
capabilities: Record<string, UpgradeFunnelEntry>;
|
|
2349
|
-
}
|
|
2350
|
-
declare function inferAssistantFromEnvironment(env?: NodeJS.ProcessEnv): AssistantId | null;
|
|
2351
|
-
declare function getTelemetryDir(projectRoot?: string): string;
|
|
2352
|
-
declare function getTelemetryFile(projectRoot?: string): string;
|
|
2353
|
-
declare function ensureTelemetryDir(projectRoot?: string): string;
|
|
2354
|
-
declare function emitEvent(event: string, payload?: Record<string, unknown>, options?: EmitOptions): TelemetryRecord;
|
|
2355
|
-
declare function trackAssistantSetup(assistant: string, payload?: Record<string, unknown>, options?: EmitOptions): TelemetryRecord | null;
|
|
2356
|
-
declare function trackAssistantUsageSuccess(assistant: string, payload?: Record<string, unknown>, options?: AssistantTrackOptions): AssistantUsageTrackResult;
|
|
2357
|
-
declare function listEvents(options?: ListEventsOptions): TelemetryRecord[];
|
|
2358
|
-
interface ClearResult {
|
|
2359
|
-
cleared: number;
|
|
2360
|
-
file: string;
|
|
2361
|
-
}
|
|
2362
|
-
declare function clearEvents(options?: {
|
|
2363
|
-
projectRoot?: string;
|
|
2364
|
-
}): ClearResult;
|
|
2365
|
-
declare function getStatus(options?: {
|
|
2366
|
-
projectRoot?: string;
|
|
2367
|
-
}): TelemetryStatus;
|
|
2368
|
-
declare function getAssistantActivationFunnel(options?: {
|
|
2369
|
-
projectRoot?: string;
|
|
2370
|
-
assistant?: string | undefined;
|
|
2371
|
-
from?: string | Date | undefined;
|
|
2372
|
-
to?: string | Date | undefined;
|
|
2373
|
-
}): AssistantFunnelSummary;
|
|
2374
|
-
/**
|
|
2375
|
-
* Summarize upgrade conversion funnel (prompt shown -> upgrade started -> premium unlocked).
|
|
2376
|
-
*/
|
|
2377
|
-
declare function getUpgradeConversionFunnel(options?: {
|
|
2378
|
-
projectRoot?: string;
|
|
2379
|
-
}): UpgradeFunnelSummary;
|
|
2380
|
-
declare function uploadEvents(options?: UploadOptions): Promise<UploadResult>;
|
|
2381
|
-
declare const track: typeof emitEvent;
|
|
2382
|
-
|
|
2383
|
-
declare const telemetry_ASSISTANTS: typeof ASSISTANTS;
|
|
2384
|
-
declare const telemetry_ASSISTANT_FIRST_SUCCESS_EVENT: typeof ASSISTANT_FIRST_SUCCESS_EVENT;
|
|
2385
|
-
declare const telemetry_ASSISTANT_RETURN_EVENT: typeof ASSISTANT_RETURN_EVENT;
|
|
2386
|
-
declare const telemetry_ASSISTANT_SETUP_EVENT: typeof ASSISTANT_SETUP_EVENT;
|
|
2387
|
-
type telemetry_AssistantFunnelEntry = AssistantFunnelEntry;
|
|
2388
|
-
type telemetry_AssistantFunnelSummary = AssistantFunnelSummary;
|
|
2389
|
-
type telemetry_AssistantId = AssistantId;
|
|
2390
|
-
type telemetry_AssistantTrackOptions = AssistantTrackOptions;
|
|
2391
|
-
type telemetry_AssistantUsageTrackResult = AssistantUsageTrackResult;
|
|
2392
|
-
declare const telemetry_BILLING_UPGRADE_STARTED_EVENT: typeof BILLING_UPGRADE_STARTED_EVENT;
|
|
2393
|
-
type telemetry_ClearResult = ClearResult;
|
|
2394
|
-
type telemetry_EmitOptions = EmitOptions;
|
|
2395
|
-
type telemetry_FailedBatch = FailedBatch;
|
|
2396
|
-
type telemetry_ListEventsOptions = ListEventsOptions;
|
|
2397
|
-
declare const telemetry_MAX_EVENTS_LIMIT: typeof MAX_EVENTS_LIMIT;
|
|
2398
|
-
type telemetry_TelemetryRecord = TelemetryRecord;
|
|
2399
|
-
type telemetry_TelemetryStatus = TelemetryStatus;
|
|
2400
|
-
declare const telemetry_UPGRADE_COMPLETED_EVENT: typeof UPGRADE_COMPLETED_EVENT;
|
|
2401
|
-
declare const telemetry_UPGRADE_PROMPT_EVENT: typeof UPGRADE_PROMPT_EVENT;
|
|
2402
|
-
type telemetry_UpgradeFunnelEntry = UpgradeFunnelEntry;
|
|
2403
|
-
type telemetry_UpgradeFunnelSummary = UpgradeFunnelSummary;
|
|
2404
|
-
type telemetry_UploadOptions = UploadOptions;
|
|
2405
|
-
type telemetry_UploadResult = UploadResult;
|
|
2406
|
-
declare const telemetry_clearEvents: typeof clearEvents;
|
|
2407
|
-
declare const telemetry_emitEvent: typeof emitEvent;
|
|
2408
|
-
declare const telemetry_ensureTelemetryDir: typeof ensureTelemetryDir;
|
|
2409
|
-
declare const telemetry_getAssistantActivationFunnel: typeof getAssistantActivationFunnel;
|
|
2410
|
-
declare const telemetry_getStatus: typeof getStatus;
|
|
2411
|
-
declare const telemetry_getTelemetryDir: typeof getTelemetryDir;
|
|
2412
|
-
declare const telemetry_getTelemetryFile: typeof getTelemetryFile;
|
|
2413
|
-
declare const telemetry_getUpgradeConversionFunnel: typeof getUpgradeConversionFunnel;
|
|
2414
|
-
declare const telemetry_inferAssistantFromEnvironment: typeof inferAssistantFromEnvironment;
|
|
2415
|
-
declare const telemetry_listEvents: typeof listEvents;
|
|
2416
|
-
declare const telemetry_track: typeof track;
|
|
2417
|
-
declare const telemetry_trackAssistantSetup: typeof trackAssistantSetup;
|
|
2418
|
-
declare const telemetry_trackAssistantUsageSuccess: typeof trackAssistantUsageSuccess;
|
|
2419
|
-
declare const telemetry_uploadEvents: typeof uploadEvents;
|
|
2420
|
-
declare namespace telemetry {
|
|
2421
|
-
export { telemetry_ASSISTANTS as ASSISTANTS, telemetry_ASSISTANT_FIRST_SUCCESS_EVENT as ASSISTANT_FIRST_SUCCESS_EVENT, telemetry_ASSISTANT_RETURN_EVENT as ASSISTANT_RETURN_EVENT, telemetry_ASSISTANT_SETUP_EVENT as ASSISTANT_SETUP_EVENT, type telemetry_AssistantFunnelEntry as AssistantFunnelEntry, type telemetry_AssistantFunnelSummary as AssistantFunnelSummary, type telemetry_AssistantId as AssistantId, type telemetry_AssistantTrackOptions as AssistantTrackOptions, type telemetry_AssistantUsageTrackResult as AssistantUsageTrackResult, telemetry_BILLING_UPGRADE_STARTED_EVENT as BILLING_UPGRADE_STARTED_EVENT, type telemetry_ClearResult as ClearResult, type telemetry_EmitOptions as EmitOptions, type telemetry_FailedBatch as FailedBatch, type telemetry_ListEventsOptions as ListEventsOptions, telemetry_MAX_EVENTS_LIMIT as MAX_EVENTS_LIMIT, type telemetry_TelemetryRecord as TelemetryRecord, type telemetry_TelemetryStatus as TelemetryStatus, telemetry_UPGRADE_COMPLETED_EVENT as UPGRADE_COMPLETED_EVENT, telemetry_UPGRADE_PROMPT_EVENT as UPGRADE_PROMPT_EVENT, type telemetry_UpgradeFunnelEntry as UpgradeFunnelEntry, type telemetry_UpgradeFunnelSummary as UpgradeFunnelSummary, type telemetry_UploadOptions as UploadOptions, type telemetry_UploadResult as UploadResult, telemetry_clearEvents as clearEvents, telemetry_emitEvent as emitEvent, telemetry_ensureTelemetryDir as ensureTelemetryDir, telemetry_getAssistantActivationFunnel as getAssistantActivationFunnel, telemetry_getStatus as getStatus, telemetry_getTelemetryDir as getTelemetryDir, telemetry_getTelemetryFile as getTelemetryFile, telemetry_getUpgradeConversionFunnel as getUpgradeConversionFunnel, telemetry_inferAssistantFromEnvironment as inferAssistantFromEnvironment, telemetry_listEvents as listEvents, telemetry_track as track, telemetry_trackAssistantSetup as trackAssistantSetup, telemetry_trackAssistantUsageSuccess as trackAssistantUsageSuccess, telemetry_uploadEvents as uploadEvents };
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
export { API_BASE, API_VERSION, type AssistantTarget, BOOTSPRING_DIR, type BootspringConfig, COMMANDS_SOURCE, CONFIG_FILE, CREDENTIALS_FILE, CURRENT_VERSION, type Credentials, DEFAULT_INTERVAL_MS, DEFAULT_POLICY_PROFILE, DEVICE_FILE, type DeviceContext, type DeviceInfo, type DiagnosticResult, type ExpiryStatus, type HealResult, type Issue, LIMITS, LOCAL_CONFIG_NAME, type LoginResponse, PACKAGE_NAME, PATTERNS, POLICY_PROFILES, type PolicyOptions, type PolicyProfile, type ProjectAuth, type ProjectConfig, type ProjectContext$1 as ProjectContext, SESSION_FILE, SHELL_DANGEROUS_CHARS, STATE_PATH, type SessionData, type SessionOptions, TARGET_DIRS, type UserProfile, type ValidationResult$1 as ValidationResult, type Workflow, addRecentProject, apiClient as api, apiLogin, applyUpdate, auth, callMcpTool, checkForUpdates, checkInstallation, classifyError, clearCredentials, clearDeviceInfo, clearProjectApiKey, clearProjectScopedSession, clearSession, compareVersions, config, context, createLocalConfig, decrypt, encrypt, ensureBootspringDir, ensureLatestVersion, entitlements, findLocalConfig, findNearestProjectConfigPath, generateDeviceFingerprint, getApiKey, getCommandFiles, getConfig, getCredentials, getCredentialsPath, getCurrentProject, getDeviceContext, getDeviceId, getDeviceInfo, getEffectiveProject, getInstallContext, getLatestVersion, getLegacyProjectApiKey, getMcpResource, getPolicyProfile, getProjectScopedSessionState, getProjectScopedToken, getRecentProjects, getRefreshToken, getSession, getSessionState, getStoredApiKey, getTier$1 as getTier, getToken, getTokenExpiryStatus, getUser, healthCheck, installAll, installToTarget, isApiKeyAuth, isAuthenticated, isWorkflowBlocked, listMcpResources, listMcpTools, login, loginWithApiKey, logout, maybeAutoUploadTelemetry, normalizeProfile, policies, pollDeviceToken, presence, readNearestProjectConfig, refreshSession, registerMcpForAssistant, remoteLogout, request, resolvePolicyProfile, runDiagnostics, saveApiKeyToProject, saveConfig, saveCredentials, saveProjectScopedSession, saveSession, selfHeal, selfUpdate, sendHealthReport, sendHeartbeat, session, setAuthFailureHandler, setCurrentProject, setupCommands, startDeviceFlow, stripUnsafeControlChars, telemetry, tierEnforcement, trackToolUsage, tryHeal, uninstallAll, updateTokens, validateNumericId, validateSlug, validateStringLength, validateTodoText, writeNearestProjectConfig };
|