MCPcopy Index your code
hub / github.com/ByBrawe/opencode-loop / snapshotPaths

Function snapshotPaths

src/index.js:711–720  ·  view source on GitHub ↗
(directory, files)

Source from the content-addressed store, hash-verified

709}
710
711function actionKind(action, job = {}) {
712 const text = String(action || "").trim()
713 const forced = String(job.kind || "").trim().toLowerCase()
714 if (forced === "compact") return "compact"
715 if (forced === "goal") return "goal"
716 if (text === "/compact" || text === "/summarize") return "compact"
717 if (forced === "prompt" || forced === "ask") return "prompt"
718 if (forced === "command" || forced === "cmd" || forced === "slash") return "command"
719 if (forced === "shell") return "shell"
720 if (text.startsWith("/")) return "command"
721 if (text.startsWith("!") || text.startsWith("$")) return "shell"
722 return "prompt"
723}

Callers 2

watchChangedFunction · 0.85
addLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected