(directory, files)
| 709 | } |
| 710 | |
| 711 | function 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 | } |
no outgoing calls
no test coverage detected