@delega-dev/mcp 1.0.4 → 1.0.5
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/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -107,7 +107,15 @@ function formatTask(t) {
|
|
|
107
107
|
if (t.description) lines.push(` Description: ${t.description}`);
|
|
108
108
|
if (t.project?.name ?? t.project_name)
|
|
109
109
|
lines.push(` Project: ${t.project?.name ?? t.project_name}`);
|
|
110
|
-
|
|
110
|
+
const labels = Array.isArray(t.labels) ? t.labels : typeof t.labels === "string" ? (() => {
|
|
111
|
+
try {
|
|
112
|
+
const p = JSON.parse(t.labels);
|
|
113
|
+
return Array.isArray(p) ? p : [];
|
|
114
|
+
} catch {
|
|
115
|
+
return [];
|
|
116
|
+
}
|
|
117
|
+
})() : [];
|
|
118
|
+
if (labels.length) lines.push(` Labels: ${labels.join(", ")}`);
|
|
111
119
|
if (t.priority) lines.push(` Priority: ${t.priority}`);
|
|
112
120
|
if (t.due_date) lines.push(` Due: ${t.due_date}`);
|
|
113
121
|
lines.push(` Completed: ${t.completed ? "yes" : "no"}`);
|