MCPcopy Create free account
hub / github.com/cursor/plugins / inferKickoffRootSlug

Function inferKickoffRootSlug

orchestrate/skills/orchestrate/scripts/cli/task.ts:510–515  ·  view source on GitHub ↗
(goal: string)

Source from the content-addressed store, hash-verified

508}
509
510export function inferKickoffRootSlug(goal: string): string {
511 const firstLine = goal.split("\n")[0]?.trim() ?? "";
512 const explicit = firstLine.match(/^`?([a-z0-9][a-z0-9._-]*)`?\s*:/i);
513 const slug = explicit?.[1];
514 return slug ?? buildKickoffAgentName(goal);
515}
516
517function listItems(value: unknown): Record<string, unknown>[] {
518 const items = Array.isArray(field(value, "items"))

Callers 2

registerTaskCommandsFunction · 0.85

Calls 1

buildKickoffAgentNameFunction · 0.90

Tested by

no test coverage detected