@task-mcp/cli 1.0.24 → 1.0.26
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 +41 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42,11 +42,7 @@ import {
|
|
|
42
42
|
} from "@task-mcp/shared";
|
|
43
43
|
|
|
44
44
|
// src/storage.ts
|
|
45
|
-
import {
|
|
46
|
-
TaskStore,
|
|
47
|
-
InboxStore,
|
|
48
|
-
StateStore
|
|
49
|
-
} from "@task-mcp/mcp-server/storage";
|
|
45
|
+
import { TaskStore, InboxStore, StateStore } from "@task-mcp/mcp-server/storage";
|
|
50
46
|
var _taskStore = null;
|
|
51
47
|
var _inboxStore = null;
|
|
52
48
|
var _stateStore = null;
|
|
@@ -102,7 +98,7 @@ async function getActiveTag() {
|
|
|
102
98
|
async function dashboard(workspaceName) {
|
|
103
99
|
const workspaces = await listWorkspaces();
|
|
104
100
|
const activeTag = await getActiveTag();
|
|
105
|
-
const
|
|
101
|
+
const _currentWorkspace = getCurrentWorkspace();
|
|
106
102
|
if (workspaces.length === 0) {
|
|
107
103
|
console.log(c.yellow("No tasks found. Create a task first using the MCP server."));
|
|
108
104
|
return;
|
|
@@ -119,7 +115,8 @@ async function dashboard(workspaceName) {
|
|
|
119
115
|
tasks = tasks.filter((t) => t.workspace === selectedWorkspace.name);
|
|
120
116
|
} else if (workspaces.length === 1) {
|
|
121
117
|
selectedWorkspace = workspaces[0];
|
|
122
|
-
tasks = await
|
|
118
|
+
tasks = await listAllTasks();
|
|
119
|
+
tasks = tasks.filter((t) => t.workspace === selectedWorkspace.name);
|
|
123
120
|
} else {
|
|
124
121
|
tasks = await listAllTasks();
|
|
125
122
|
}
|
|
@@ -134,7 +131,10 @@ async function dashboard(workspaceName) {
|
|
|
134
131
|
const getWorkspaceTasks = (ws) => tasksByWorkspace.get(ws) ?? [];
|
|
135
132
|
let output;
|
|
136
133
|
if (selectedWorkspace) {
|
|
137
|
-
output = renderWorkspaceDashboard(selectedWorkspace.name, tasks, {
|
|
134
|
+
output = renderWorkspaceDashboard(selectedWorkspace.name, tasks, {
|
|
135
|
+
version: VERSION,
|
|
136
|
+
activeTag
|
|
137
|
+
});
|
|
138
138
|
} else {
|
|
139
139
|
output = renderGlobalDashboard(workspaces, tasks, inboxItems, getWorkspaceTasks, { version: VERSION, activeTag });
|
|
140
140
|
}
|
|
@@ -190,11 +190,31 @@ async function listTasksCmd(options) {
|
|
|
190
190
|
Tasks (${tasks.length}) - ${c.cyan(currentWorkspace)}
|
|
191
191
|
`));
|
|
192
192
|
const columns = [
|
|
193
|
-
{
|
|
193
|
+
{
|
|
194
|
+
header: "ID",
|
|
195
|
+
key: "id",
|
|
196
|
+
width: COLUMN_WIDTH_ID,
|
|
197
|
+
format: (v) => c.cyan(String(v).slice(0, ID_DISPLAY_LENGTH))
|
|
198
|
+
},
|
|
194
199
|
{ header: "Title", key: "title", width: COLUMN_WIDTH_TITLE },
|
|
195
|
-
{
|
|
196
|
-
|
|
197
|
-
|
|
200
|
+
{
|
|
201
|
+
header: "Status",
|
|
202
|
+
key: "status",
|
|
203
|
+
width: COLUMN_WIDTH_STATUS,
|
|
204
|
+
format: (v) => formatStatus(v)
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
header: "Priority",
|
|
208
|
+
key: "priority",
|
|
209
|
+
width: COLUMN_WIDTH_PRIORITY,
|
|
210
|
+
format: (v) => formatPriority(v)
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
header: "Due",
|
|
214
|
+
key: "dueDate",
|
|
215
|
+
width: COLUMN_WIDTH_DATE,
|
|
216
|
+
format: (v) => formatDate(v)
|
|
217
|
+
}
|
|
198
218
|
];
|
|
199
219
|
console.log(table(tasks, columns));
|
|
200
220
|
console.log();
|
|
@@ -216,7 +236,12 @@ Workspaces (${workspaces.length})
|
|
|
216
236
|
}));
|
|
217
237
|
const columns = [
|
|
218
238
|
{ header: "", key: "current", width: 2 },
|
|
219
|
-
{
|
|
239
|
+
{
|
|
240
|
+
header: "Name",
|
|
241
|
+
key: "name",
|
|
242
|
+
width: COLUMN_WIDTH_PROJECT_NAME,
|
|
243
|
+
format: (v) => c.cyan(String(v))
|
|
244
|
+
},
|
|
220
245
|
{ header: "Tasks", key: "progress", width: COLUMN_WIDTH_PRIORITY }
|
|
221
246
|
];
|
|
222
247
|
console.log(table(workspacesWithCurrent, columns));
|
|
@@ -563,7 +588,7 @@ async function inboxCountCmd() {
|
|
|
563
588
|
// package.json
|
|
564
589
|
var package_default = {
|
|
565
590
|
name: "@task-mcp/cli",
|
|
566
|
-
version: "1.0.
|
|
591
|
+
version: "1.0.25",
|
|
567
592
|
description: "Zero-dependency CLI for task-mcp with Bun native visualization",
|
|
568
593
|
type: "module",
|
|
569
594
|
bin: {
|
|
@@ -595,8 +620,8 @@ var package_default = {
|
|
|
595
620
|
directory: "packages/cli"
|
|
596
621
|
},
|
|
597
622
|
dependencies: {
|
|
598
|
-
"@task-mcp/mcp-server": "
|
|
599
|
-
"@task-mcp/shared": "
|
|
623
|
+
"@task-mcp/mcp-server": "^1.0.27",
|
|
624
|
+
"@task-mcp/shared": "^1.0.22"
|
|
600
625
|
},
|
|
601
626
|
devDependencies: {
|
|
602
627
|
"@types/bun": "^1.1.14",
|