@synergenius/flow-weaver 0.16.0 → 0.17.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,7 +1,10 @@
1
1
  /**
2
- * Init command — scaffolds a new flow-weaver project interactively
2
+ * Init command — scaffolds a new flow-weaver project interactively.
3
+ * Supports persona-aware onboarding for nocode, low-code, vibe-coder, and expert users.
3
4
  */
5
+ import type { ToolId } from './mcp-setup.js';
4
6
  import type { TModuleFormat } from '../../ast/types.js';
7
+ import type { PersonaId, UseCaseId } from './init-personas.js';
5
8
  export interface InitOptions {
6
9
  name?: string;
7
10
  template?: string;
@@ -11,6 +14,10 @@ export interface InitOptions {
11
14
  git?: boolean;
12
15
  force?: boolean;
13
16
  json?: boolean;
17
+ preset?: string;
18
+ useCase?: string;
19
+ mcp?: boolean;
20
+ agent?: boolean;
14
21
  }
15
22
  export interface InitConfig {
16
23
  projectName: string;
@@ -20,6 +27,11 @@ export interface InitConfig {
20
27
  install: boolean;
21
28
  git: boolean;
22
29
  force: boolean;
30
+ persona: PersonaId;
31
+ useCase?: UseCaseId;
32
+ /** Free-text description when user picked "Something else" */
33
+ useCaseDescription?: string;
34
+ mcp: boolean;
23
35
  }
24
36
  export interface InitReport {
25
37
  projectDir: string;
@@ -27,6 +39,7 @@ export interface InitReport {
27
39
  filesSkipped: string[];
28
40
  template: string;
29
41
  format: TModuleFormat;
42
+ persona: PersonaId;
30
43
  installResult?: {
31
44
  success: boolean;
32
45
  error?: string;
@@ -35,12 +48,14 @@ export interface InitReport {
35
48
  success: boolean;
36
49
  error?: string;
37
50
  };
51
+ mcpConfigured?: string[];
52
+ agentLaunched?: boolean;
38
53
  }
39
54
  export declare function validateProjectName(name: string): string | true;
40
55
  export declare function toWorkflowName(projectName: string): string;
41
56
  export declare function isNonInteractive(): boolean;
42
57
  export declare function resolveInitConfig(dirArg: string | undefined, options: InitOptions): Promise<InitConfig>;
43
- export declare function generateProjectFiles(projectName: string, template: string, format?: TModuleFormat): Record<string, string>;
58
+ export declare function generateProjectFiles(projectName: string, template: string, format?: TModuleFormat, persona?: PersonaId): Record<string, string>;
44
59
  export declare function scaffoldProject(targetDir: string, files: Record<string, string>, options: {
45
60
  force: boolean;
46
61
  }): {
@@ -55,5 +70,21 @@ export declare function runGitInit(targetDir: string): {
55
70
  success: boolean;
56
71
  error?: string;
57
72
  };
73
+ interface AgentHandoffOptions {
74
+ projectName: string;
75
+ persona: PersonaId;
76
+ template: string;
77
+ targetDir: string;
78
+ cliTools: ToolId[];
79
+ guiTools: ToolId[];
80
+ filesCreated: string[];
81
+ useCaseDescription?: string;
82
+ }
83
+ /**
84
+ * After init + MCP setup, offer to launch a CLI agent or generate a prompt for GUI editors.
85
+ * Returns true if a CLI agent was spawned (init should exit and let the agent take over).
86
+ */
87
+ export declare function handleAgentHandoff(opts: AgentHandoffOptions): Promise<boolean>;
58
88
  export declare function initCommand(dirArg: string | undefined, options: InitOptions): Promise<void>;
89
+ export {};
59
90
  //# sourceMappingURL=init.d.ts.map