@task-mcp/cli 1.0.25 → 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.
Files changed (2) hide show
  1. package/dist/index.js +37 -13
  2. 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 currentWorkspace = getCurrentWorkspace();
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, { version: VERSION, activeTag });
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
- { header: "ID", key: "id", width: COLUMN_WIDTH_ID, format: (v) => c.cyan(String(v).slice(0, ID_DISPLAY_LENGTH)) },
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
- { header: "Status", key: "status", width: COLUMN_WIDTH_STATUS, format: (v) => formatStatus(v) },
197
- { header: "Priority", key: "priority", width: COLUMN_WIDTH_PRIORITY, format: (v) => formatPriority(v) },
198
- { header: "Due", key: "dueDate", width: COLUMN_WIDTH_DATE, format: (v) => formatDate(v) }
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
- { header: "Name", key: "name", width: COLUMN_WIDTH_PROJECT_NAME, format: (v) => c.cyan(String(v)) },
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.24",
591
+ version: "1.0.25",
568
592
  description: "Zero-dependency CLI for task-mcp with Bun native visualization",
569
593
  type: "module",
570
594
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@task-mcp/cli",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Zero-dependency CLI for task-mcp with Bun native visualization",
5
5
  "type": "module",
6
6
  "bin": {