( projectPath: string, toolIds: string[], scope: InstallScope, homeDir = os.homedir(), includeProfileFlag = true, )
| 27 | } |
| 28 | |
| 29 | function buildOpenSpecInitInvocation( |
| 30 | projectPath: string, |
| 31 | toolIds: string[], |
| 32 | scope: InstallScope, |
| 33 | homeDir = os.homedir(), |
| 34 | includeProfileFlag = true, |
| 35 | ): { command: string; args: string[] } { |
| 36 | const targetPath = scope === 'global' ? homeDir : projectPath; |
| 37 | const args = ['init', targetPath, '--tools', toolIds.join(',')]; |
| 38 | if (includeProfileFlag) { |
| 39 | args.push('--profile', 'custom'); |
| 40 | } |
| 41 | return { command: 'openspec', args }; |
| 42 | } |
| 43 | |
| 44 | const ALL_WORKFLOWS_CONFIG = |
| 45 | JSON.stringify( |
no outgoing calls
no test coverage detected