MCPcopy
hub / github.com/coder/mux / buildWorkflowScriptDescriptor

Function buildWorkflowScriptDescriptor

src/node/services/workflows/WorkflowService.ts:912–927  ·  view source on GitHub ↗
(
  script: ResolvedWorkflowScript
)

Source from the content-addressed store, hash-verified

910}
911
912export function buildWorkflowScriptDescriptor(
913 script: ResolvedWorkflowScript
914): WorkflowScriptDescriptor {
915 return {
916 name: getWorkflowScriptDefinitionName(script),
917 description:
918 parseWorkflowDescription(script.source) ?? `Workflow script ${script.canonicalScriptPath}`,
919 scope: script.sourceKind === "skill" ? (script.scope ?? "global") : "project",
920 sourcePath: script.canonicalScriptPath,
921 requestedScriptPath: script.requestedScriptPath,
922 canonicalScriptPath: script.canonicalScriptPath,
923 sourceKind: script.sourceKind,
924 sourceHash: script.sourceHash,
925 executable: true,
926 };
927}
928
929function getWorkflowScriptDefinitionName(
930 script: ResolvedWorkflowScript

Callers 3

discoverWorkflowScriptsFunction · 0.90
createWorkflowRunMethod · 0.85

Calls 2

parseWorkflowDescriptionFunction · 0.90

Tested by

no test coverage detected