@hasna/todos 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +3 -6
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -8547,18 +8547,15 @@ function pullFromClaudeTaskList(taskListId, projectId) {
|
|
|
8547
8547
|
const files = readdirSync(dir).filter((f) => f.endsWith(".json"));
|
|
8548
8548
|
let pulled = 0;
|
|
8549
8549
|
const errors = [];
|
|
8550
|
-
const
|
|
8551
|
-
if (projectId)
|
|
8552
|
-
filter["project_id"] = projectId;
|
|
8553
|
-
const existingTasks = listTasks(filter);
|
|
8550
|
+
const allTasks = listTasks({});
|
|
8554
8551
|
const byClaudeId = new Map;
|
|
8555
|
-
for (const t of
|
|
8552
|
+
for (const t of allTasks) {
|
|
8556
8553
|
const cid = t.metadata["claude_task_id"];
|
|
8557
8554
|
if (cid)
|
|
8558
8555
|
byClaudeId.set(String(cid), t);
|
|
8559
8556
|
}
|
|
8560
8557
|
const byTodosId = new Map;
|
|
8561
|
-
for (const t of
|
|
8558
|
+
for (const t of allTasks) {
|
|
8562
8559
|
byTodosId.set(t.id, t);
|
|
8563
8560
|
}
|
|
8564
8561
|
for (const f of files) {
|