idea-manager 0.7.3 → 0.7.4
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/package.json +1 -1
- package/src/cli.ts +7 -7
- package/src/lib/db/queries/brainstorms.ts +1 -1
- package/src/lib/db/queries/projects.ts +1 -1
- package/src/lib/db/queries/sub-projects.ts +1 -1
- package/src/lib/db/queries/task-conversations.ts +1 -1
- package/src/lib/db/queries/task-prompts.ts +1 -1
- package/src/lib/db/queries/tasks.ts +1 -1
- package/src/lib/mcp/server.ts +2 -2
- package/src/lib/mcp/tools.ts +1 -1
- package/src/lib/watcher.ts +1 -1
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { Command } from 'commander';
|
|
4
|
-
import { startMcpServer } from '
|
|
5
|
-
import { listProjects, getProject } from '
|
|
6
|
-
import { getSubProjects } from '
|
|
7
|
-
import { getTasksByProject, updateTask } from '
|
|
8
|
-
import { getTaskPrompt } from '
|
|
9
|
-
import type { McpToolContext } from '
|
|
4
|
+
import { startMcpServer } from './lib/mcp/server';
|
|
5
|
+
import { listProjects, getProject } from './lib/db/queries/projects';
|
|
6
|
+
import { getSubProjects } from './lib/db/queries/sub-projects';
|
|
7
|
+
import { getTasksByProject, updateTask } from './lib/db/queries/tasks';
|
|
8
|
+
import { getTaskPrompt } from './lib/db/queries/task-prompts';
|
|
9
|
+
import type { McpToolContext } from './lib/mcp/tools';
|
|
10
10
|
import { spawn } from 'child_process';
|
|
11
11
|
import path from 'path';
|
|
12
12
|
import { fileURLToPath } from 'url';
|
|
@@ -46,7 +46,7 @@ program
|
|
|
46
46
|
.option('--timeout <minutes>', 'Per-task timeout in minutes', '10')
|
|
47
47
|
.option('--dry-run', 'Show what would be executed without running')
|
|
48
48
|
.action(async (opts) => {
|
|
49
|
-
const { startWatcher } = await import('
|
|
49
|
+
const { startWatcher } = await import('./lib/watcher');
|
|
50
50
|
await startWatcher({
|
|
51
51
|
projectId: opts.project,
|
|
52
52
|
intervalMs: parseInt(opts.interval) * 1000,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDb } from '../index';
|
|
2
2
|
import { generateId } from '../../utils/id';
|
|
3
|
-
import type { ISubProject, ISubProjectWithStats, TaskStatus } from '
|
|
3
|
+
import type { ISubProject, ISubProjectWithStats, TaskStatus } from '../../../types';
|
|
4
4
|
|
|
5
5
|
export function getSubProjects(projectId: string): ISubProject[] {
|
|
6
6
|
const db = getDb();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDb } from '../index';
|
|
2
2
|
import { generateId } from '../../utils/id';
|
|
3
|
-
import type { ITaskConversation } from '
|
|
3
|
+
import type { ITaskConversation } from '../../../types';
|
|
4
4
|
|
|
5
5
|
export function getTaskConversations(taskId: string): ITaskConversation[] {
|
|
6
6
|
const db = getDb();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDb } from '../index';
|
|
2
2
|
import { generateId } from '../../utils/id';
|
|
3
|
-
import type { ITaskPrompt } from '
|
|
3
|
+
import type { ITaskPrompt } from '../../../types';
|
|
4
4
|
|
|
5
5
|
export function getTaskPrompt(taskId: string): ITaskPrompt | undefined {
|
|
6
6
|
const db = getDb();
|
package/src/lib/mcp/server.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
2
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { getNextTask, getProjectContext, formatTaskForMcp, formatProjectForMcp } from '
|
|
5
|
-
import type { McpToolContext } from '
|
|
4
|
+
import { getNextTask, getProjectContext, formatTaskForMcp, formatProjectForMcp } from './tools';
|
|
5
|
+
import type { McpToolContext } from './tools';
|
|
6
6
|
|
|
7
7
|
export async function startMcpServer(ctx: McpToolContext) {
|
|
8
8
|
const server = new McpServer({
|
package/src/lib/mcp/tools.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ITask, ITaskPrompt, ISubProject } from '
|
|
1
|
+
import type { ITask, ITaskPrompt, ISubProject } from '../../types';
|
|
2
2
|
|
|
3
3
|
export interface McpToolContext {
|
|
4
4
|
listProjects: () => { id: string; name: string; description: string; created_at: string; updated_at: string }[];
|
package/src/lib/watcher.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { getSubProject } from './db/queries/sub-projects';
|
|
|
5
5
|
import { getTasksByProject, getTask, updateTask } from './db/queries/tasks';
|
|
6
6
|
import { getTaskPrompt } from './db/queries/task-prompts';
|
|
7
7
|
import { addTaskConversation } from './db/queries/task-conversations';
|
|
8
|
-
import type { ITask, IProject } from '
|
|
8
|
+
import type { ITask, IProject } from '../types';
|
|
9
9
|
|
|
10
10
|
export interface WatcherOptions {
|
|
11
11
|
projectId?: string;
|