MCPcopy Create free account
hub / github.com/ByBrawe/opencode-loop / pickGoalJob

Function pickGoalJob

src/index.js:1037–1043  ·  view source on GitHub ↗
(state, target = "")

Source from the content-addressed store, hash-verified

1035 if (typeof args === "string")
1036 return args;
1037 if (Array.isArray(args))
1038 return args.map(commandArgsText).join(" ");
1039 if (typeof args === "object") {
1040 for (const key of ["arguments", "args", "message", "text", "value"]) {
1041 if (args[key] !== undefined)
1042 return commandArgsText(args[key]);
1043 }
1044 }
1045 return String(args);
1046}

Callers 3

setGoalCompleteFunction · 0.85
setGoalBlockedFunction · 0.85
setGoalProgressFunction · 0.85

Calls 1

matchJobFunction · 0.85

Tested by

no test coverage detected