@task-mcp/cli 1.0.25 → 1.0.27
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 +39 -15
- package/package.json +3 -3
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;
|
|
@@ -135,7 +131,10 @@ async function dashboard(workspaceName) {
|
|
|
135
131
|
const getWorkspaceTasks = (ws) => tasksByWorkspace.get(ws) ?? [];
|
|
136
132
|
let output;
|
|
137
133
|
if (selectedWorkspace) {
|
|
138
|
-
output = renderWorkspaceDashboard(selectedWorkspace.name, tasks, {
|
|
134
|
+
output = renderWorkspaceDashboard(selectedWorkspace.name, tasks, {
|
|
135
|
+
version: VERSION,
|
|
136
|
+
activeTag
|
|
137
|
+
});
|
|
139
138
|
} else {
|
|
140
139
|
output = renderGlobalDashboard(workspaces, tasks, inboxItems, getWorkspaceTasks, { version: VERSION, activeTag });
|
|
141
140
|
}
|
|
@@ -191,11 +190,31 @@ async function listTasksCmd(options) {
|
|
|
191
190
|
Tasks (${tasks.length}) - ${c.cyan(currentWorkspace)}
|
|
192
191
|
`));
|
|
193
192
|
const columns = [
|
|
194
|
-
{
|
|
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
|
+
},
|
|
195
199
|
{ header: "Title", key: "title", width: COLUMN_WIDTH_TITLE },
|
|
196
|
-
{
|
|
197
|
-
|
|
198
|
-
|
|
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
|
+
}
|
|
199
218
|
];
|
|
200
219
|
console.log(table(tasks, columns));
|
|
201
220
|
console.log();
|
|
@@ -217,7 +236,12 @@ Workspaces (${workspaces.length})
|
|
|
217
236
|
}));
|
|
218
237
|
const columns = [
|
|
219
238
|
{ header: "", key: "current", width: 2 },
|
|
220
|
-
{
|
|
239
|
+
{
|
|
240
|
+
header: "Name",
|
|
241
|
+
key: "name",
|
|
242
|
+
width: COLUMN_WIDTH_PROJECT_NAME,
|
|
243
|
+
format: (v) => c.cyan(String(v))
|
|
244
|
+
},
|
|
221
245
|
{ header: "Tasks", key: "progress", width: COLUMN_WIDTH_PRIORITY }
|
|
222
246
|
];
|
|
223
247
|
console.log(table(workspacesWithCurrent, columns));
|
|
@@ -564,7 +588,7 @@ async function inboxCountCmd() {
|
|
|
564
588
|
// package.json
|
|
565
589
|
var package_default = {
|
|
566
590
|
name: "@task-mcp/cli",
|
|
567
|
-
version: "1.0.
|
|
591
|
+
version: "1.0.27",
|
|
568
592
|
description: "Zero-dependency CLI for task-mcp with Bun native visualization",
|
|
569
593
|
type: "module",
|
|
570
594
|
bin: {
|
|
@@ -596,8 +620,8 @@ var package_default = {
|
|
|
596
620
|
directory: "packages/cli"
|
|
597
621
|
},
|
|
598
622
|
dependencies: {
|
|
599
|
-
"@task-mcp/mcp-server": "^1.0.
|
|
600
|
-
"@task-mcp/shared": "^1.0.
|
|
623
|
+
"@task-mcp/mcp-server": "^1.0.29",
|
|
624
|
+
"@task-mcp/shared": "^1.0.25"
|
|
601
625
|
},
|
|
602
626
|
devDependencies: {
|
|
603
627
|
"@types/bun": "^1.1.14",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@task-mcp/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "Zero-dependency CLI for task-mcp with Bun native visualization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"directory": "packages/cli"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@task-mcp/mcp-server": "^1.0.
|
|
36
|
-
"@task-mcp/shared": "^1.0.
|
|
35
|
+
"@task-mcp/mcp-server": "^1.0.29",
|
|
36
|
+
"@task-mcp/shared": "^1.0.25"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/bun": "^1.1.14",
|