MCPcopy Index your code
hub / github.com/github/awesome-copilot / makeRun

Function makeRun

extensions/java-modernization-studio/autopilot.mjs:59–72  ·  view source on GitHub ↗
({ scope, maxSteps, startRank } = {})

Source from the content-addressed store, hash-verified

57
58/** Construct the mutable, serializable run record broadcast to the canvas. */
59export function makeRun({ scope, maxSteps, startRank } = {}) {
60 return {
61 running: true,
62 cancelled: false,
63 scope: scope === "all" ? "all" : "phase",
64 maxSteps: maxSteps || AUTOPILOT_MAX_STEPS,
65 startRank: startRank == null ? null : startRank,
66 status: "running",
67 current: null,
68 completed: [],
69 startedAt: Date.now(),
70 finishedAt: null,
71 };
72}
73
74/**
75 * Drive the run to completion. Mutates `run` in place and calls

Callers 2

startAutopilotFunction · 0.90
cockpit.test.mjsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected