@girardmedia/bootspring 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var a=require("path"),d=require("fs");function i(o){for(let s of o){let t=a.resolve(__dirname,s);if(d.existsSync(t))return t}return a.resolve(__dirname,o[0])}var p=i(["../package.json"]),c=require(p).version,n=i(["cli/index.js"]),u=i(["core.js","core/index.js"]),e={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m"},$=["auth","build","seed","init","go","mcp","doctor","deploy","agent","observe","commands"],l={Core:["auth","build","seed","init","go","mcp"],Project:["project","workspace","org","switch","checkpoint"],"Dev Tools":["doctor","health","setup","validate","watch","dashboard","update","hook"],Analysis:["analyze","audit","quality","security","diff","report","policy"],"AI & Agents":["agent","skill","context","prompt","flow","brain","sprint"],Observe:["observe","autopilot","monitor","session","metrics","telemetry"],Docs:["docs","generate","prd","content","plan","suggest"],"Deploy & Ops":["deploy","sync","cloud-sync","github","undo","history","changes","log"],Business:["business","marketing","sales","geo","fundraise","legal","jobs"],Tasks:["todo","task","memory","learn","issue","loop"],Other:["billing","onboard","visualize","mvp","plugin","manager","harness","pipeline","workflow","orchestrator","marketplace","swarm"]};function h(){console.log(`${e.cyan}${e.bold}\u26A1 Bootspring${e.reset} ${e.dim}v${c}${e.reset}`),console.log(`${e.dim}AI-assisted development platform${e.reset}
1
+ "use strict";var a=require("path"),d=require("fs");function i(o){for(let s of o){let t=a.resolve(__dirname,s);if(d.existsSync(t))return t}return a.resolve(__dirname,o[0])}var p=i(["../package.json"]),c=require(p).version,n=i(["cli/index.js"]),u=i(["core.js","core/index.js"]),e={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m"},$=["auth","build","seed","init","go","mcp","doctor","deploy","agent","observe","commands"],l={Core:["auth","build","seed","init","go","mcp"],Project:["project","workspace","org","switch","checkpoint"],"Dev Tools":["doctor","health","setup","validate","watch","dashboard","update","hook"],Analysis:["analyze","audit","quality","security","diff","report","policy"],"AI & Agents":["agent","skill","context","prompt","flow","brain","sprint","instinct","evolve"],Observe:["observe","autopilot","monitor","session","metrics","telemetry"],Docs:["docs","generate","prd","content","plan","suggest"],"Deploy & Ops":["deploy","sync","cloud-sync","github","undo","history","changes","log"],Business:["business","marketing","sales","geo","fundraise","legal","jobs"],Tasks:["todo","task","memory","learn","issue","loop"],Other:["billing","onboard","visualize","mvp","plugin","manager","harness","pipeline","workflow","orchestrator","marketplace","swarm"]};function h(){console.log(`${e.cyan}${e.bold}\u26A1 Bootspring${e.reset} ${e.dim}v${c}${e.reset}`),console.log(`${e.dim}AI-assisted development platform${e.reset}
2
2
  `),console.log(`${e.bold}Usage:${e.reset} bootspring <command> [options]
3
3
  `),console.log(`${e.cyan}${e.bold}COMMANDS${e.reset}`),console.log(` ${e.green}go${e.reset} ${e.dim}One command to set up everything${e.reset}`),console.log(` ${e.green}auth${e.reset} ${e.dim}Login, logout, status${e.reset}`),console.log(` ${e.green}init${e.reset} ${e.dim}Initialize a new project${e.reset}`),console.log(` ${e.green}seed${e.reset} ${e.dim}Create and refine context documents${e.reset}`),console.log(` ${e.green}build${e.reset} ${e.dim}Build loop \u2014 next, done, status, auto${e.reset}`),console.log(` ${e.green}deploy${e.reset} ${e.dim}Validate and deploy${e.reset}`),console.log(` ${e.green}mcp${e.reset} ${e.dim}MCP server management${e.reset}`),console.log(` ${e.green}agent${e.reset} ${e.dim}AI agent proxy${e.reset}`),console.log(` ${e.green}observe${e.reset} ${e.dim}Session intelligence and analytics${e.reset}`),console.log(` ${e.green}doctor${e.reset} ${e.dim}Diagnose project issues${e.reset}`),console.log("");let o=Object.values(l).flat().length;console.log(` ${e.green}commands${e.reset} ${e.dim}Show all ${o} commands${e.reset}`),console.log(`
4
4
  ${e.dim}Run "bootspring <command> --help" for details${e.reset}`),console.log(`${e.dim}Docs: https://bootspring.com/docs${e.reset}
@@ -220,7 +220,18 @@ declare const API_BASE: string;
220
220
  declare const API_VERSION = "v1";
221
221
  declare function setAuthFailureHandler(handler: () => Promise<boolean>): void;
222
222
  declare function request<T = any>(method: string, path: string, data?: unknown, options?: RequestOptions): Promise<T>;
223
- declare function healthCheck(): Promise<unknown>;
223
+ interface HealthCheckResult {
224
+ connected: boolean;
225
+ ok?: boolean;
226
+ status?: string;
227
+ healthy?: boolean;
228
+ version?: string;
229
+ latency?: number;
230
+ message?: string;
231
+ error?: string;
232
+ [key: string]: unknown;
233
+ }
234
+ declare function healthCheck(): Promise<HealthCheckResult>;
224
235
  declare function apiLogin(email: string, password: string): Promise<any>;
225
236
  declare function startDeviceFlow(): Promise<any>;
226
237
  declare function pollDeviceToken(deviceCode: string): Promise<any>;
@@ -233,6 +244,7 @@ declare function getMcpResource(uri: string): Promise<any>;
233
244
 
234
245
  declare const apiClient_API_BASE: typeof API_BASE;
235
246
  declare const apiClient_API_VERSION: typeof API_VERSION;
247
+ type apiClient_HealthCheckResult = HealthCheckResult;
236
248
  declare const apiClient_apiLogin: typeof apiLogin;
237
249
  declare const apiClient_callMcpTool: typeof callMcpTool;
238
250
  declare const apiClient_getMcpResource: typeof getMcpResource;
@@ -246,7 +258,7 @@ declare const apiClient_request: typeof request;
246
258
  declare const apiClient_setAuthFailureHandler: typeof setAuthFailureHandler;
247
259
  declare const apiClient_startDeviceFlow: typeof startDeviceFlow;
248
260
  declare namespace apiClient {
249
- 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 };
261
+ export { apiClient_API_BASE as API_BASE, apiClient_API_VERSION as API_VERSION, type apiClient_HealthCheckResult as HealthCheckResult, 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 };
250
262
  }
251
263
 
252
264
  interface BootspringClientConfig {
@@ -646,11 +658,22 @@ declare function addRecentProject(project: ProjectContext$1): void;
646
658
  declare function findLocalConfig(startDir?: string): Record<string, unknown> | null;
647
659
  declare function getEffectiveProject(startDir?: string): ProjectContext$1 | null;
648
660
  declare function createLocalConfig(dir: string, project: ProjectContext$1): string;
649
- declare function getSessionState(): Record<string, unknown>;
661
+ interface SessionStateView {
662
+ hasSession: boolean;
663
+ project: ProjectContext$1 | null;
664
+ source: ProjectContext$1['source'] | null;
665
+ hasLocalConfig: boolean;
666
+ localConfigPath?: string;
667
+ recentProjects: ProjectContext$1[];
668
+ lastUpdated: string | null;
669
+ [key: string]: unknown;
670
+ }
671
+ declare function getSessionState(): SessionStateView;
650
672
 
651
673
  declare const session_LOCAL_CONFIG_NAME: typeof LOCAL_CONFIG_NAME;
652
674
  declare const session_SESSION_FILE: typeof SESSION_FILE;
653
675
  type session_SessionData = SessionData;
676
+ type session_SessionStateView = SessionStateView;
654
677
  declare const session_addRecentProject: typeof addRecentProject;
655
678
  declare const session_clearSession: typeof clearSession;
656
679
  declare const session_createLocalConfig: typeof createLocalConfig;
@@ -663,7 +686,7 @@ declare const session_getSessionState: typeof getSessionState;
663
686
  declare const session_saveSession: typeof saveSession;
664
687
  declare const session_setCurrentProject: typeof setCurrentProject;
665
688
  declare namespace session {
666
- 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 };
689
+ 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, type session_SessionStateView as SessionStateView, 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 };
667
690
  }
668
691
 
669
692
  /**
@@ -818,7 +841,7 @@ interface InstallContext {
818
841
  scriptPath: string;
819
842
  }
820
843
  declare const PACKAGE_NAME = "@girardmedia/bootspring";
821
- declare const CURRENT_VERSION = "3.3.2";
844
+ declare const CURRENT_VERSION = "3.4.0";
822
845
  declare const DEFAULT_INTERVAL_MS: number;
823
846
  declare const STATE_PATH: string;
824
847
  declare function compareVersions(a: string, b: string): number;
@@ -2751,4 +2774,4 @@ declare namespace telemetry {
2751
2774
  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 };
2752
2775
  }
2753
2776
 
2754
- export { API_BASE, API_VERSION, type AssistantTarget, BOOTSPRING_DIR, BootspringClient, type BootspringClientConfig, 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, createClient, 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 };
2777
+ export { API_BASE, API_VERSION, type AssistantTarget, BOOTSPRING_DIR, BootspringClient, type BootspringClientConfig, 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 HealthCheckResult, 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, type SessionStateView, 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, createClient, 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 };