MCPcopy Index your code
hub / github.com/Fission-AI/OpenSpec / displayExtraWorkflowsNote

Method displayExtraWorkflowsNote

src/core/update.ts:361–373  ·  view source on GitHub ↗

* Displays a note about extra workflows installed that aren't in the current profile.

(
    projectPath: string,
    configuredTools: string[],
    profileWorkflows: readonly string[]
  )

Source from the content-addressed store, hash-verified

359 * Displays a note about extra workflows installed that aren't in the current profile.
360 */
361 private displayExtraWorkflowsNote(
362 projectPath: string,
363 configuredTools: string[],
364 profileWorkflows: readonly string[]
365 ): void {
366 const installedWorkflows = scanInstalledWorkflows(projectPath, configuredTools);
367 const profileSet = new Set(profileWorkflows);
368 const extraWorkflows = installedWorkflows.filter((w) => !profileSet.has(w));
369
370 if (extraWorkflows.length > 0) {
371 console.log(chalk.dim(`Note: ${extraWorkflows.length} extra workflows not in profile (use \`openspec config profile\` to manage)`));
372 }
373 }
374
375 /**
376 * Suggest opting back into core when a custom profile still matches the old

Callers 1

executeMethod · 0.95

Calls 2

hasMethod · 0.80
scanInstalledWorkflowsFunction · 0.70

Tested by

no test coverage detected