MCPcopy
hub / github.com/Dimillian/CodexMonitor / normalizeCommandStatus

Function normalizeCommandStatus

src/utils/threadItems.explore.ts:190–197  ·  view source on GitHub ↗
(status?: string)

Source from the content-addressed store, hash-verified

188}
189
190function normalizeCommandStatus(status?: string) {
191 const normalized = (status ?? "").toLowerCase();
192 return /(pending|running|processing|started|in[_ -]?progress|inprogress)/.test(
193 normalized,
194 )
195 ? "exploring"
196 : "explored";
197}
198
199function isFailedStatus(status?: string) {
200 const normalized = (status ?? "").toLowerCase();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected