@datalyr/wizard 1.0.0 → 1.0.2

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/index.d.mts CHANGED
@@ -59,6 +59,65 @@ declare function detectFramework(cwd: string): Promise<DetectionResult>;
59
59
 
60
60
  declare function generateInstallationPlan(context: ProjectContext, apiKey: string): InstallationPlan;
61
61
 
62
+ interface AgentResult {
63
+ success: boolean;
64
+ message?: string;
65
+ error?: string;
66
+ filesModified?: string[];
67
+ }
68
+
69
+ /**
70
+ * Framework Configuration Types
71
+ * Defines SDK mappings and setup instructions for each supported framework
72
+ */
73
+
74
+ interface FrameworkConfig {
75
+ /** Framework identifier */
76
+ id: Framework;
77
+ /** Display name */
78
+ name: string;
79
+ /** Package to detect in package.json */
80
+ detectPackage: string;
81
+ /** SDKs to install */
82
+ sdks: SDK[];
83
+ /** Environment variables */
84
+ envVars: {
85
+ key: string;
86
+ description: string;
87
+ isPublic: boolean;
88
+ }[];
89
+ /** Estimated setup time in minutes */
90
+ estimatedTime: number;
91
+ /** Documentation URL */
92
+ docsUrl: string;
93
+ /** Post-installation steps */
94
+ postInstallSteps: string[];
95
+ /** Files to look for to detect router type (Next.js specific) */
96
+ routerDetection?: {
97
+ appRouter: string[];
98
+ pagesRouter: string[];
99
+ };
100
+ }
101
+
102
+ /**
103
+ * Agent Runner
104
+ * Orchestrates the full wizard flow with the Claude Agent SDK
105
+ */
106
+
107
+ interface WizardAgentOptions {
108
+ cwd?: string;
109
+ apiKey?: string;
110
+ debug?: boolean;
111
+ framework?: Framework;
112
+ skipVerification?: boolean;
113
+ enableContainer?: boolean;
114
+ }
115
+ /**
116
+ * Run the agent-powered wizard
117
+ */
118
+ declare function runAgentWizard(_config: FrameworkConfig, // Reserved for future use (e.g., default config overrides)
119
+ options?: WizardAgentOptions): Promise<AgentResult>;
120
+
62
121
  declare function runWizard(options?: WizardOptions): Promise<boolean>;
63
122
 
64
- export { type InstallationPlan, type ProjectContext, type WizardOptions, detectFramework, generateInstallationPlan, runWizard };
123
+ export { type Framework, type InstallationPlan, type PackageManager, type ProjectContext, type SDK, type WizardAgentOptions, type WizardOptions, detectFramework, generateInstallationPlan, runAgentWizard, runWizard };
package/dist/index.d.ts CHANGED
@@ -59,6 +59,65 @@ declare function detectFramework(cwd: string): Promise<DetectionResult>;
59
59
 
60
60
  declare function generateInstallationPlan(context: ProjectContext, apiKey: string): InstallationPlan;
61
61
 
62
+ interface AgentResult {
63
+ success: boolean;
64
+ message?: string;
65
+ error?: string;
66
+ filesModified?: string[];
67
+ }
68
+
69
+ /**
70
+ * Framework Configuration Types
71
+ * Defines SDK mappings and setup instructions for each supported framework
72
+ */
73
+
74
+ interface FrameworkConfig {
75
+ /** Framework identifier */
76
+ id: Framework;
77
+ /** Display name */
78
+ name: string;
79
+ /** Package to detect in package.json */
80
+ detectPackage: string;
81
+ /** SDKs to install */
82
+ sdks: SDK[];
83
+ /** Environment variables */
84
+ envVars: {
85
+ key: string;
86
+ description: string;
87
+ isPublic: boolean;
88
+ }[];
89
+ /** Estimated setup time in minutes */
90
+ estimatedTime: number;
91
+ /** Documentation URL */
92
+ docsUrl: string;
93
+ /** Post-installation steps */
94
+ postInstallSteps: string[];
95
+ /** Files to look for to detect router type (Next.js specific) */
96
+ routerDetection?: {
97
+ appRouter: string[];
98
+ pagesRouter: string[];
99
+ };
100
+ }
101
+
102
+ /**
103
+ * Agent Runner
104
+ * Orchestrates the full wizard flow with the Claude Agent SDK
105
+ */
106
+
107
+ interface WizardAgentOptions {
108
+ cwd?: string;
109
+ apiKey?: string;
110
+ debug?: boolean;
111
+ framework?: Framework;
112
+ skipVerification?: boolean;
113
+ enableContainer?: boolean;
114
+ }
115
+ /**
116
+ * Run the agent-powered wizard
117
+ */
118
+ declare function runAgentWizard(_config: FrameworkConfig, // Reserved for future use (e.g., default config overrides)
119
+ options?: WizardAgentOptions): Promise<AgentResult>;
120
+
62
121
  declare function runWizard(options?: WizardOptions): Promise<boolean>;
63
122
 
64
- export { type InstallationPlan, type ProjectContext, type WizardOptions, detectFramework, generateInstallationPlan, runWizard };
123
+ export { type Framework, type InstallationPlan, type PackageManager, type ProjectContext, type SDK, type WizardAgentOptions, type WizardOptions, detectFramework, generateInstallationPlan, runAgentWizard, runWizard };