internaltool-mcp 1.5.1 → 1.5.2
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/index.js +2 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -473,7 +473,7 @@ Use this when a developer says "start task", "brief me on", or "what do I need t
|
|
|
473
473
|
.replace(/[^a-z0-9]+/g, '-')
|
|
474
474
|
.slice(0, 40)}`
|
|
475
475
|
|
|
476
|
-
const hasReadme =
|
|
476
|
+
const hasReadme = typeof task.readmeMarkdown === 'string' && task.readmeMarkdown.trim().length > 0
|
|
477
477
|
const subtasks = (task.subtasks || []).map(s => ({
|
|
478
478
|
title: s.title,
|
|
479
479
|
done: s.done,
|
|
@@ -797,10 +797,9 @@ Use this at the start of a session or when switching tasks.`,
|
|
|
797
797
|
const res = await api.get('/api/users/me/tasks')
|
|
798
798
|
if (!res?.success) return errorText('Could not fetch tasks')
|
|
799
799
|
|
|
800
|
-
|
|
800
|
+
// Server already sorts by priority (critical → low) then updatedAt — just filter and annotate
|
|
801
801
|
const tasks = (res.data.tasks || [])
|
|
802
802
|
.filter(t => includeColumns.includes(t.column))
|
|
803
|
-
.sort((a, b) => (PRIORITY_ORDER[a.priority] ?? 99) - (PRIORITY_ORDER[b.priority] ?? 99))
|
|
804
803
|
.map(t => {
|
|
805
804
|
let suggestedAction = null
|
|
806
805
|
if (t.column === 'todo') {
|
package/package.json
CHANGED