MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / taskLineIndexes

Function taskLineIndexes

plugins/_editor/webui/editor-store.js:176–182  ·  view source on GitHub ↗
(markdown = "")

Source from the content-addressed store, hash-verified

174}
175
176function taskLineIndexes(markdown = "") {
177 const indexes = [];
178 String(markdown || "").split("\n").forEach((line, index) => {
179 if (/^\s*(?:[-*+]|\d+[.)])\s+\[[ xX]\](?:\s+|$)/.test(line)) indexes.push(index);
180 });
181 return indexes;
182}
183
184async function callEditor(action, payload = {}) {
185 const explicitContextId = String(payload.ctxid || payload.context_id || "").trim();

Callers 1

togglePreviewTaskFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected