idea-manager 0.7.3 → 0.7.5

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.
@@ -1,6 +1,5 @@
1
- import type { NextConfig } from "next";
2
-
3
- const nextConfig: NextConfig = {
1
+ /** @type {import('next').NextConfig} */
2
+ const nextConfig = {
4
3
  serverExternalPackages: ['better-sqlite3'],
5
4
  };
6
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-manager",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "AI 기반 브레인스토밍 → 구조화 → 프롬프트 생성 도구. MCP Server 내장.",
5
5
  "keywords": [
6
6
  "brainstorm",
@@ -24,7 +24,7 @@
24
24
  "bin/",
25
25
  "src/",
26
26
  "public/",
27
- "next.config.ts",
27
+ "next.config.mjs",
28
28
  "tsconfig.json",
29
29
  "postcss.config.mjs",
30
30
  "tailwind.config.ts",
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 '@/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';
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('@/lib/watcher');
49
+ const { startWatcher } = await import('./lib/watcher');
50
50
  await startWatcher({
51
51
  projectId: opts.project,
52
52
  intervalMs: parseInt(opts.interval) * 1000,
@@ -1,5 +1,5 @@
1
1
  import { getDb } from '../index';
2
- import type { IBrainstorm } from '@/types';
2
+ import type { IBrainstorm } from '../../../types';
3
3
 
4
4
  export function getBrainstorm(projectId: string): IBrainstorm | undefined {
5
5
  const db = getDb();
@@ -1,6 +1,6 @@
1
1
  import { getDb } from '../index';
2
2
  import { generateId } from '../../utils/id';
3
- import type { IProject } from '@/types';
3
+ import type { IProject } from '../../../types';
4
4
 
5
5
  interface ProjectRow {
6
6
  id: string;
@@ -1,6 +1,6 @@
1
1
  import { getDb } from '../index';
2
2
  import { generateId } from '../../utils/id';
3
- import type { ISubProject, ISubProjectWithStats, TaskStatus } from '@/types';
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 '@/types';
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 '@/types';
3
+ import type { ITaskPrompt } from '../../../types';
4
4
 
5
5
  export function getTaskPrompt(taskId: string): ITaskPrompt | undefined {
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 { ITask, TaskStatus, ItemPriority } from '@/types';
3
+ import type { ITask, TaskStatus, ItemPriority } from '../../../types';
4
4
 
5
5
  interface TaskRow {
6
6
  id: string;
@@ -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 '@/lib/mcp/tools';
5
- import type { McpToolContext } from '@/lib/mcp/tools';
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({
@@ -1,4 +1,4 @@
1
- import type { ITask, ITaskPrompt, ISubProject } from '@/types';
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 }[];
@@ -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 '@/types';
8
+ import type { ITask, IProject } from '../types';
9
9
 
10
10
  export interface WatcherOptions {
11
11
  projectId?: string;