idea-manager 1.1.4 → 1.1.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.
- package/package.json +1 -1
- package/src/cli.ts +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "idea-manager",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Turn free-form brainstorming into structured task trees with AI-generated prompts. Built-in MCP Server for autonomous AI agent execution. Local-first with SQLite, cross-PC sync via Git.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"brainstorm",
|
package/src/cli.ts
CHANGED
|
@@ -8,6 +8,8 @@ import { getSubProjects } from './lib/db/queries/sub-projects';
|
|
|
8
8
|
import { getTasksByProject, updateTask } from './lib/db/queries/tasks';
|
|
9
9
|
import { getTaskPrompt } from './lib/db/queries/task-prompts';
|
|
10
10
|
import type { McpToolContext } from './lib/mcp/tools';
|
|
11
|
+
import { startWatcher } from './lib/watcher';
|
|
12
|
+
import { syncInit, syncPush, syncPull, syncStatus } from './lib/sync/index';
|
|
11
13
|
import { spawn } from 'child_process';
|
|
12
14
|
import path from 'path';
|
|
13
15
|
import { fileURLToPath } from 'url';
|
|
@@ -100,7 +102,6 @@ program
|
|
|
100
102
|
.option('--timeout <minutes>', 'Per-task timeout in minutes', '10')
|
|
101
103
|
.option('--dry-run', 'Show what would be executed without running')
|
|
102
104
|
.action(async (opts) => {
|
|
103
|
-
const { startWatcher } = await import('./lib/watcher.ts');
|
|
104
105
|
await startWatcher({
|
|
105
106
|
projectId: opts.project,
|
|
106
107
|
intervalMs: parseInt(opts.interval) * 1000,
|
|
@@ -190,7 +191,6 @@ const syncCmd = program
|
|
|
190
191
|
.command('sync')
|
|
191
192
|
.description('Sync data via GitHub repository')
|
|
192
193
|
.action(async () => {
|
|
193
|
-
const { syncStatus } = await import('./lib/sync/index.ts');
|
|
194
194
|
await syncStatus();
|
|
195
195
|
});
|
|
196
196
|
|
|
@@ -198,7 +198,6 @@ syncCmd
|
|
|
198
198
|
.command('init')
|
|
199
199
|
.description('Initialize sync with a GitHub repository')
|
|
200
200
|
.action(async () => {
|
|
201
|
-
const { syncInit } = await import('./lib/sync/index.ts');
|
|
202
201
|
await syncInit();
|
|
203
202
|
});
|
|
204
203
|
|
|
@@ -207,7 +206,6 @@ syncCmd
|
|
|
207
206
|
.description('Export data and push to GitHub')
|
|
208
207
|
.option('-m, --message <msg>', 'Custom commit message')
|
|
209
208
|
.action(async (opts) => {
|
|
210
|
-
const { syncPush } = await import('./lib/sync/index.ts');
|
|
211
209
|
await syncPush(opts.message);
|
|
212
210
|
});
|
|
213
211
|
|
|
@@ -216,7 +214,6 @@ syncCmd
|
|
|
216
214
|
.description('Pull from GitHub and import data')
|
|
217
215
|
.option('--no-backup', 'Skip database backup before import')
|
|
218
216
|
.action(async (opts) => {
|
|
219
|
-
const { syncPull } = await import('./lib/sync/index.ts');
|
|
220
217
|
await syncPull({ backup: opts.backup });
|
|
221
218
|
});
|
|
222
219
|
|