@devflow-tools/cli 0.12.5 → 0.12.6
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 +2 -2
- package/dist/commands/benchmark-cmd.d.ts +0 -5
- package/dist/commands/benchmark-cmd.d.ts.map +0 -1
- package/dist/commands/benchmark-cmd.js +0 -18
- package/dist/commands/benchmark-cmd.js.map +0 -1
- package/dist/commands/connect.d.ts +0 -8
- package/dist/commands/connect.d.ts.map +0 -1
- package/dist/commands/connect.js +0 -26
- package/dist/commands/connect.js.map +0 -1
- package/dist/commands/context.d.ts +0 -15
- package/dist/commands/context.d.ts.map +0 -1
- package/dist/commands/context.js +0 -24
- package/dist/commands/context.js.map +0 -1
- package/dist/commands/dashboard.d.ts +0 -3
- package/dist/commands/dashboard.d.ts.map +0 -1
- package/dist/commands/dashboard.js +0 -10
- package/dist/commands/dashboard.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -56
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -156
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/graph.d.ts +0 -11
- package/dist/commands/graph.d.ts.map +0 -1
- package/dist/commands/graph.js +0 -14
- package/dist/commands/graph.js.map +0 -1
- package/dist/commands/index-cmd.d.ts +0 -4
- package/dist/commands/index-cmd.d.ts.map +0 -1
- package/dist/commands/index-cmd.js +0 -15
- package/dist/commands/index-cmd.js.map +0 -1
- package/dist/commands/init.d.ts +0 -20
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -145
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/knowledge.d.ts +0 -5
- package/dist/commands/knowledge.d.ts.map +0 -1
- package/dist/commands/knowledge.js +0 -23
- package/dist/commands/knowledge.js.map +0 -1
- package/dist/commands/memory.d.ts +0 -5
- package/dist/commands/memory.d.ts.map +0 -1
- package/dist/commands/memory.js +0 -72
- package/dist/commands/memory.js.map +0 -1
- package/dist/commands/plugin/install.d.ts +0 -3
- package/dist/commands/plugin/install.d.ts.map +0 -1
- package/dist/commands/plugin/install.js +0 -22
- package/dist/commands/plugin/install.js.map +0 -1
- package/dist/commands/plugin/list.d.ts +0 -3
- package/dist/commands/plugin/list.d.ts.map +0 -1
- package/dist/commands/plugin/list.js +0 -47
- package/dist/commands/plugin/list.js.map +0 -1
- package/dist/commands/plugin/search.d.ts +0 -3
- package/dist/commands/plugin/search.d.ts.map +0 -1
- package/dist/commands/plugin/search.js +0 -29
- package/dist/commands/plugin/search.js.map +0 -1
- package/dist/commands/plugin/uninstall.d.ts +0 -3
- package/dist/commands/plugin/uninstall.d.ts.map +0 -1
- package/dist/commands/plugin/uninstall.js +0 -21
- package/dist/commands/plugin/uninstall.js.map +0 -1
- package/dist/commands/plugin-guide.d.ts +0 -19
- package/dist/commands/plugin-guide.d.ts.map +0 -1
- package/dist/commands/plugin-guide.js +0 -131
- package/dist/commands/plugin-guide.js.map +0 -1
- package/dist/commands/plugin-loader.d.ts +0 -2
- package/dist/commands/plugin-loader.d.ts.map +0 -1
- package/dist/commands/plugin-loader.js +0 -2
- package/dist/commands/plugin-loader.js.map +0 -1
- package/dist/commands/review.d.ts +0 -6
- package/dist/commands/review.d.ts.map +0 -1
- package/dist/commands/review.js +0 -75
- package/dist/commands/review.js.map +0 -1
- package/dist/commands/server.d.ts +0 -16
- package/dist/commands/server.d.ts.map +0 -1
- package/dist/commands/server.js +0 -88
- package/dist/commands/server.js.map +0 -1
- package/dist/commands/session.d.ts +0 -7
- package/dist/commands/session.d.ts.map +0 -1
- package/dist/commands/session.js +0 -20
- package/dist/commands/session.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -6
- package/dist/commands/setup.d.ts.map +0 -1
- package/dist/commands/setup.js +0 -78
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/skill.d.ts +0 -18
- package/dist/commands/skill.d.ts.map +0 -1
- package/dist/commands/skill.js +0 -105
- package/dist/commands/skill.js.map +0 -1
- package/dist/commands/start.d.ts +0 -5
- package/dist/commands/start.d.ts.map +0 -1
- package/dist/commands/start.js +0 -58
- package/dist/commands/start.js.map +0 -1
- package/dist/commands/status.d.ts +0 -2
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -33
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/stop.d.ts +0 -2
- package/dist/commands/stop.d.ts.map +0 -1
- package/dist/commands/stop.js +0 -12
- package/dist/commands/stop.js.map +0 -1
- package/dist/commands/workflow.d.ts +0 -6
- package/dist/commands/workflow.d.ts.map +0 -1
- package/dist/commands/workflow.js +0 -24
- package/dist/commands/workflow.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -606
- package/dist/index.js.map +0 -1
- package/dist/lib/dashboard-cache.d.ts +0 -3
- package/dist/lib/dashboard-cache.d.ts.map +0 -1
- package/dist/lib/dashboard-cache.js +0 -97
- package/dist/lib/dashboard-cache.js.map +0 -1
- package/dist/lib/paths.d.ts +0 -1
- package/dist/lib/paths.d.ts.map +0 -1
- package/dist/lib/paths.js +0 -4
- package/dist/lib/paths.js.map +0 -1
- package/dist/lib/plugin-registry.d.ts +0 -18
- package/dist/lib/plugin-registry.d.ts.map +0 -1
- package/dist/lib/plugin-registry.js +0 -39
- package/dist/lib/plugin-registry.js.map +0 -1
- package/dist/lib/plugin-setup.d.ts +0 -23
- package/dist/lib/plugin-setup.d.ts.map +0 -1
- package/dist/lib/plugin-setup.js +0 -141
- package/dist/lib/plugin-setup.js.map +0 -1
- package/dist/lib/with-server.d.ts +0 -7
- package/dist/lib/with-server.d.ts.map +0 -1
- package/dist/lib/with-server.js +0 -28
- package/dist/lib/with-server.js.map +0 -1
- package/dist/mode.d.ts +0 -10
- package/dist/mode.d.ts.map +0 -1
- package/dist/mode.js +0 -40
- package/dist/mode.js.map +0 -1
- package/dist/plugin-files/.claude-plugin/plugin.json +0 -20
- package/dist/plugin-files/CLAUDE.md +0 -34
- package/dist/plugin-files/dist/command-registry.json +0 -235
- package/dist/plugin-files/dist/skills/devflow:context/SKILL.md +0 -49
- package/dist/plugin-files/dist/skills/devflow:docker/SKILL.md +0 -67
- package/dist/plugin-files/dist/skills/devflow:electron/SKILL.md +0 -67
- package/dist/plugin-files/dist/skills/devflow:graph/SKILL.md +0 -42
- package/dist/plugin-files/dist/skills/devflow:graphql/SKILL.md +0 -68
- package/dist/plugin-files/dist/skills/devflow:knowledge/SKILL.md +0 -42
- package/dist/plugin-files/dist/skills/devflow:memory/SKILL.md +0 -41
- package/dist/plugin-files/dist/skills/devflow:nest/SKILL.md +0 -68
- package/dist/plugin-files/dist/skills/devflow:nextjs/SKILL.md +0 -65
- package/dist/plugin-files/dist/skills/devflow:performance/SKILL.md +0 -67
- package/dist/plugin-files/dist/skills/devflow:react/SKILL.md +0 -85
- package/dist/plugin-files/dist/skills/devflow:tailwind/SKILL.md +0 -63
- package/dist/plugin-files/dist/skills/devflow:taro/SKILL.md +0 -66
- package/dist/plugin-files/dist/skills/devflow:vue/SKILL.md +0 -74
- package/dist/plugin-files/dist/skills/devflow:workflow/SKILL.md +0 -42
- package/dist/plugin-files/hooks/constitution.md +0 -20
- package/dist/plugin-files/hooks/post-tool-use +0 -16
- package/dist/plugin-files/hooks/pre-tool-use +0 -23
- package/dist/plugin-files/hooks/session-start +0 -165
- package/dist/plugin-files/hooks/stop +0 -32
- package/dist/plugin-files/hooks.json +0 -52
- package/dist/plugin-files/package.json +0 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"dist",
|
|
50
50
|
"bin"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "d544427472016eb332c6c2107f0fc98d8ae59c14"
|
|
53
53
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark-cmd.d.ts","sourceRoot":"","sources":["../../src/commands/benchmark-cmd.ts"],"names":[],"mappings":"AAGA,wBAAsB,YAAY,CAChC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C,OAAO,CAAC,MAAM,CAAC,CAgBjB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BenchmarkEngine } from "@devflow-tools/benchmark";
|
|
2
|
-
import chalk from "chalk";
|
|
3
|
-
export async function runBenchmark(_target, _opts) {
|
|
4
|
-
const engine = new BenchmarkEngine();
|
|
5
|
-
const tasks = engine.getTasks();
|
|
6
|
-
const lines = [
|
|
7
|
-
chalk.blue("◉ DevFlow Benchmark"),
|
|
8
|
-
"───────────────────────────────",
|
|
9
|
-
`Available tasks: ${tasks.length}`,
|
|
10
|
-
"",
|
|
11
|
-
"Benchmark requires a real runner implementation.",
|
|
12
|
-
"No fake data or estimated scores are shown.",
|
|
13
|
-
"",
|
|
14
|
-
"Setup: devflow benchmark --runner <path-to-runner>",
|
|
15
|
-
];
|
|
16
|
-
return lines.join("\n");
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=benchmark-cmd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark-cmd.js","sourceRoot":"","sources":["../../src/commands/benchmark-cmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,OAAe,EACf,KAA+C;IAE/C,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IACrC,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;IAEhC,MAAM,KAAK,GAAG;QACZ,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC;QACjC,iCAAiC;QACjC,oBAAoB,KAAK,CAAC,MAAM,EAAE;QAClC,EAAE;QACF,kDAAkD;QAClD,6CAA6C;QAC7C,EAAE;QACF,oDAAoD;KACrD,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface ConnectOptions {
|
|
2
|
-
agent?: string;
|
|
3
|
-
command?: string;
|
|
4
|
-
sseUrl?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function connectAgent(options: ConnectOptions): Promise<string[]>;
|
|
7
|
-
export declare function getAvailableAgents(): string[];
|
|
8
|
-
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/commands/connect.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAuB7E;AAED,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C"}
|
package/dist/commands/connect.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { connect, listAdapters } from "@devflow-tools/adapters";
|
|
2
|
-
export async function connectAgent(options) {
|
|
3
|
-
const results = [];
|
|
4
|
-
let connectionConfig;
|
|
5
|
-
if (options.sseUrl) {
|
|
6
|
-
connectionConfig = { url: options.sseUrl };
|
|
7
|
-
}
|
|
8
|
-
else {
|
|
9
|
-
connectionConfig = {
|
|
10
|
-
command: options.command ?? "devflow-mcp",
|
|
11
|
-
args: ["--mode", "stdio"],
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const targets = options.agent
|
|
15
|
-
? [options.agent]
|
|
16
|
-
: await import("@devflow-tools/adapters").then((m) => m.detectAll());
|
|
17
|
-
for (const agent of targets) {
|
|
18
|
-
const result = await connect(agent, connectionConfig);
|
|
19
|
-
results.push(`${agent}: ${result.configPath} (${result.written ? "written" : "skipped"})`);
|
|
20
|
-
}
|
|
21
|
-
return results;
|
|
22
|
-
}
|
|
23
|
-
export function getAvailableAgents() {
|
|
24
|
-
return listAdapters();
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=connect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/commands/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAShE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAAuB;IACxD,MAAM,OAAO,GAAa,EAAE,CAAC;IAE7B,IAAI,gBAAkC,CAAC;IACvC,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,gBAAgB,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;IAC7C,CAAC;SAAM,CAAC;QACN,gBAAgB,GAAG;YACjB,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,aAAa;YACzC,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;SAC1B,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK;QAC3B,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QACjB,CAAC,CAAC,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;IAEvE,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;QACtD,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,KAAK,MAAM,CAAC,UAAU,KAAK,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC;IAC7F,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,YAAY,EAAE,CAAC;AACxB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { TaskContextResult } from "@devflow-tools/sdk";
|
|
2
|
-
export interface ContextOptions {
|
|
3
|
-
query: string;
|
|
4
|
-
mode?: "fast" | "deep";
|
|
5
|
-
maxTokens?: number;
|
|
6
|
-
skipServer?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface ContextResult {
|
|
9
|
-
files: unknown[];
|
|
10
|
-
confidence: number;
|
|
11
|
-
tokenCount: number;
|
|
12
|
-
}
|
|
13
|
-
export declare function getContext(options: ContextOptions): Promise<ContextResult>;
|
|
14
|
-
export declare function getTaskContext(options: ContextOptions): Promise<TaskContextResult>;
|
|
15
|
-
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/commands/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAchF;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAexF"}
|
package/dist/commands/context.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { withServer } from "../lib/with-server.js";
|
|
2
|
-
import { createEngines } from "@devflow-tools/context-engine";
|
|
3
|
-
export async function getContext(options) {
|
|
4
|
-
return withServer(process.cwd(), (client) => client.buildContext(options.query, options.mode ?? "fast", options.maxTokens), async () => {
|
|
5
|
-
const { context } = await createEngines(process.cwd());
|
|
6
|
-
return context.build({
|
|
7
|
-
query: options.query,
|
|
8
|
-
mode: options.mode ?? "fast",
|
|
9
|
-
maxTokens: options.maxTokens ?? 8000,
|
|
10
|
-
});
|
|
11
|
-
}, { skipServer: options.skipServer });
|
|
12
|
-
}
|
|
13
|
-
export async function getTaskContext(options) {
|
|
14
|
-
const rootPath = process.cwd();
|
|
15
|
-
const taskOptions = {
|
|
16
|
-
mode: options.mode ?? "fast",
|
|
17
|
-
maxTokens: options.maxTokens ?? 8000,
|
|
18
|
-
};
|
|
19
|
-
return withServer(rootPath, (client) => client.buildTaskContext(options.query, rootPath, taskOptions), async () => {
|
|
20
|
-
const { context } = await createEngines(rootPath);
|
|
21
|
-
return context.buildTaskContext(options.query, taskOptions);
|
|
22
|
-
}, { skipServer: options.skipServer });
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/commands/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0B,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAgB9D,MAAM,CAAC,KAAK,U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AAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/commands/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,gBAAgB,SAMzB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import chalk from "chalk";
|
|
3
|
-
export const dashboardCommand = new Command("dashboard")
|
|
4
|
-
.description("Open DevFlow Dashboard")
|
|
5
|
-
.action(async () => {
|
|
6
|
-
console.log(chalk.blue("The Dashboard is served by the DevFlow server."));
|
|
7
|
-
console.log(chalk.dim("Run: devflow start"));
|
|
8
|
-
console.log(chalk.dim(`Then open: http://localhost:13337`));
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=dashboard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/commands/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,OAAO,CAAC,WAAW,CAAC;KACrD,WAAW,CAAC,wBAAwB,CAAC;KACrC,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAC,CAAC;IAC1E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC,CAAC;AAC9D,CAAC,CAAC,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export interface DoctorReport {
|
|
2
|
-
index: {
|
|
3
|
-
totalFiles: number;
|
|
4
|
-
totalSymbols: number;
|
|
5
|
-
indexing: boolean;
|
|
6
|
-
};
|
|
7
|
-
graph: {
|
|
8
|
-
nodes: number;
|
|
9
|
-
edges: number;
|
|
10
|
-
};
|
|
11
|
-
memory: {
|
|
12
|
-
projectReady: boolean;
|
|
13
|
-
userPrefs: number;
|
|
14
|
-
};
|
|
15
|
-
knowledge: {
|
|
16
|
-
sources: number;
|
|
17
|
-
};
|
|
18
|
-
plugins: {
|
|
19
|
-
installed: number;
|
|
20
|
-
names: string[];
|
|
21
|
-
};
|
|
22
|
-
workflows: {
|
|
23
|
-
registered: number;
|
|
24
|
-
};
|
|
25
|
-
server: {
|
|
26
|
-
running: boolean;
|
|
27
|
-
};
|
|
28
|
-
toolCalls: {
|
|
29
|
-
total: number;
|
|
30
|
-
byTool: Record<string, number>;
|
|
31
|
-
};
|
|
32
|
-
readyScore: number;
|
|
33
|
-
}
|
|
34
|
-
export declare function runDoctor(): Promise<DoctorReport>;
|
|
35
|
-
export declare function runDoctorAudit(): Promise<{
|
|
36
|
-
valid: boolean;
|
|
37
|
-
brokenAt: number | null;
|
|
38
|
-
entryCount: number;
|
|
39
|
-
}>;
|
|
40
|
-
export declare function runDoctorAuditFix(): Promise<{
|
|
41
|
-
rebuilt: boolean;
|
|
42
|
-
}>;
|
|
43
|
-
export declare function runDoctorViolations(last?: string): Promise<{
|
|
44
|
-
violations: Array<{
|
|
45
|
-
tool: string;
|
|
46
|
-
decision: string;
|
|
47
|
-
ruleId: string | null;
|
|
48
|
-
ts: number;
|
|
49
|
-
sessionId: string;
|
|
50
|
-
}>;
|
|
51
|
-
}>;
|
|
52
|
-
export declare function runDoctorReceipts(): {
|
|
53
|
-
sessionId: string;
|
|
54
|
-
data: unknown;
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor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,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAqBjL;AAED,wBAAgB,iBAAiB,IAAI;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAUxE"}
|
package/dist/commands/doctor.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { createHmac, createHash } from "node:crypto";
|
|
2
|
-
import { readFileSync } from "node:fs";
|
|
3
|
-
import { createEngines } from "@devflow-tools/context-engine";
|
|
4
|
-
import { serverStatus } from "./server.js";
|
|
5
|
-
export async function runDoctor() {
|
|
6
|
-
const { codegraph, graph, memory, knowledge, workflow, data } = await createEngines(process.cwd());
|
|
7
|
-
const stats = codegraph.getStats();
|
|
8
|
-
const graphOutput = graph.export();
|
|
9
|
-
let workflowCount = 0;
|
|
10
|
-
try {
|
|
11
|
-
const wfList = await workflow.list();
|
|
12
|
-
workflowCount = wfList.length;
|
|
13
|
-
}
|
|
14
|
-
catch {
|
|
15
|
-
// workflow engine not initialized
|
|
16
|
-
}
|
|
17
|
-
let memoryReady = false;
|
|
18
|
-
let userPrefs = 0;
|
|
19
|
-
try {
|
|
20
|
-
const mem = await memory.getAll();
|
|
21
|
-
memoryReady = !!mem?.project;
|
|
22
|
-
const prefs = mem?.user ?? {};
|
|
23
|
-
userPrefs = Object.keys(prefs).length;
|
|
24
|
-
}
|
|
25
|
-
catch {
|
|
26
|
-
// memory engine not initialized
|
|
27
|
-
}
|
|
28
|
-
let knowledgeSources = 0;
|
|
29
|
-
try {
|
|
30
|
-
const sources = await knowledge.getSources();
|
|
31
|
-
knowledgeSources = sources.length;
|
|
32
|
-
}
|
|
33
|
-
catch {
|
|
34
|
-
// knowledge engine not initialized
|
|
35
|
-
}
|
|
36
|
-
// Layer 4: Fetch local tool call telemetry
|
|
37
|
-
let toolCallStats = { total: 0, byTool: {} };
|
|
38
|
-
try {
|
|
39
|
-
toolCallStats = await data.getToolCallStats();
|
|
40
|
-
}
|
|
41
|
-
catch {
|
|
42
|
-
// data provider not available or table not yet created
|
|
43
|
-
}
|
|
44
|
-
const server = await serverStatus();
|
|
45
|
-
let readyScore = 0;
|
|
46
|
-
if (stats.fileCount > 0)
|
|
47
|
-
readyScore += 25;
|
|
48
|
-
if (stats.nodeCount > 0)
|
|
49
|
-
readyScore += 15;
|
|
50
|
-
if (graphOutput.nodes.length > 0)
|
|
51
|
-
readyScore += 20;
|
|
52
|
-
if (memoryReady)
|
|
53
|
-
readyScore += 15;
|
|
54
|
-
if (knowledgeSources > 0)
|
|
55
|
-
readyScore += 10;
|
|
56
|
-
if (workflowCount > 0)
|
|
57
|
-
readyScore += 5;
|
|
58
|
-
if (server.running)
|
|
59
|
-
readyScore += 10;
|
|
60
|
-
if (toolCallStats.total > 0)
|
|
61
|
-
readyScore += 5;
|
|
62
|
-
return {
|
|
63
|
-
index: {
|
|
64
|
-
totalFiles: stats.fileCount,
|
|
65
|
-
totalSymbols: stats.nodeCount,
|
|
66
|
-
indexing: codegraph.isIndexing(),
|
|
67
|
-
},
|
|
68
|
-
graph: {
|
|
69
|
-
nodes: graphOutput.nodes.length,
|
|
70
|
-
edges: graphOutput.edges.length,
|
|
71
|
-
},
|
|
72
|
-
memory: {
|
|
73
|
-
projectReady: memoryReady,
|
|
74
|
-
userPrefs,
|
|
75
|
-
},
|
|
76
|
-
knowledge: {
|
|
77
|
-
sources: knowledgeSources,
|
|
78
|
-
},
|
|
79
|
-
plugins: {
|
|
80
|
-
installed: 0,
|
|
81
|
-
names: [],
|
|
82
|
-
},
|
|
83
|
-
workflows: {
|
|
84
|
-
registered: workflowCount,
|
|
85
|
-
},
|
|
86
|
-
server: {
|
|
87
|
-
running: server.running,
|
|
88
|
-
},
|
|
89
|
-
toolCalls: toolCallStats,
|
|
90
|
-
readyScore,
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
export async function runDoctorAudit() {
|
|
94
|
-
const { data } = await createEngines(process.cwd());
|
|
95
|
-
const secret = await data.auditGetSecret();
|
|
96
|
-
const entries = await data.auditGetAll();
|
|
97
|
-
let prevHash = createHash("sha256").update("genesis").digest("hex");
|
|
98
|
-
for (const entry of entries) {
|
|
99
|
-
if (entry.prevHash !== prevHash) {
|
|
100
|
-
return { valid: false, brokenAt: entry.seq, entryCount: entries.length };
|
|
101
|
-
}
|
|
102
|
-
const payload = `${entry.seq}|${entry.ts}|${entry.tool}|${entry.argsHash}|${entry.decision}|${entry.ruleId ?? ""}|${entry.sessionId}|${prevHash}`;
|
|
103
|
-
const expectedSig = createHmac("sha256", secret).update(payload).digest("hex");
|
|
104
|
-
if (entry.signature !== expectedSig) {
|
|
105
|
-
return { valid: false, brokenAt: entry.seq, entryCount: entries.length };
|
|
106
|
-
}
|
|
107
|
-
prevHash = entry.signature;
|
|
108
|
-
}
|
|
109
|
-
return { valid: true, brokenAt: null, entryCount: entries.length };
|
|
110
|
-
}
|
|
111
|
-
export async function runDoctorAuditFix() {
|
|
112
|
-
const { data } = await createEngines(process.cwd());
|
|
113
|
-
const secret = await data.auditGetSecret();
|
|
114
|
-
const entries = await data.auditGetAll();
|
|
115
|
-
let prevHash = createHash("sha256").update("genesis").digest("hex");
|
|
116
|
-
for (const entry of entries) {
|
|
117
|
-
const payload = `${entry.seq}|${entry.ts}|${entry.tool}|${entry.argsHash}|${entry.decision}|${entry.ruleId ?? ""}|${entry.sessionId}|${prevHash}`;
|
|
118
|
-
const signature = createHmac("sha256", secret).update(payload).digest("hex");
|
|
119
|
-
await data.sqlExecute("UPDATE devflow_audit_chain SET prev_hash = ?, signature = ? WHERE seq = ?", [prevHash, signature, entry.seq]);
|
|
120
|
-
prevHash = signature;
|
|
121
|
-
}
|
|
122
|
-
return { rebuilt: true };
|
|
123
|
-
}
|
|
124
|
-
export async function runDoctorViolations(last) {
|
|
125
|
-
const { data } = await createEngines(process.cwd());
|
|
126
|
-
const entries = await data.auditGetAll();
|
|
127
|
-
let violations = entries.filter((e) => e.decision !== "allow");
|
|
128
|
-
if (last) {
|
|
129
|
-
const match = last.match(/^(\d+)([dh])$/);
|
|
130
|
-
if (match) {
|
|
131
|
-
const num = parseInt(match[1], 10);
|
|
132
|
-
const unit = match[2];
|
|
133
|
-
const cutoffMs = unit === "d" ? num * 86400000 : num * 3600000;
|
|
134
|
-
const cutoff = Date.now() - cutoffMs;
|
|
135
|
-
violations = violations.filter((v) => v.ts > cutoff);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return {
|
|
139
|
-
violations: violations.map((v) => ({
|
|
140
|
-
tool: v.tool, decision: v.decision, ruleId: v.ruleId, ts: v.ts, sessionId: v.sessionId,
|
|
141
|
-
})),
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
export function runDoctorReceipts() {
|
|
145
|
-
const receiptDir = `${process.env.TMPDIR ?? "/tmp"}/.devflow-receipts`;
|
|
146
|
-
const sessionId = createHash("sha256").update(process.cwd()).digest("hex").slice(0, 16);
|
|
147
|
-
const receiptFile = `${receiptDir}/${sessionId}.json`;
|
|
148
|
-
try {
|
|
149
|
-
const raw = readFileSync(receiptFile, "utf-8");
|
|
150
|
-
return { sessionId, data: JSON.parse(raw) };
|
|
151
|
-
}
|
|
152
|
-
catch {
|
|
153
|
-
return { sessionId, data: null };
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
//# sourceMappingURL=doctor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAoC3C,M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AAM,UAAU,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,MAAM,oBAAoB,CAAC;IACvE,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACxF,MAAM,WAAW,GAAG,GAAG,UAAU,IAAI,SAAS,OAAO,CAAC;IACtD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,YAAY,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC/C,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;IAC9C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACnC,CAAC;AACH,CAAC"}
|
package/dist/commands/graph.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface GraphOptions {
|
|
2
|
-
target?: string;
|
|
3
|
-
depth?: number;
|
|
4
|
-
skipServer?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface GraphOutput {
|
|
7
|
-
nodes: unknown[];
|
|
8
|
-
edges: unknown[];
|
|
9
|
-
}
|
|
10
|
-
export declare function getGraph(options?: GraphOptions): Promise<GraphOutput>;
|
|
11
|
-
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/commands/graph.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,wBAAsB,QAAQ,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAe/E"}
|
package/dist/commands/graph.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { withServer } from "../lib/with-server.js";
|
|
2
|
-
import { createEngines } from "@devflow-tools/context-engine";
|
|
3
|
-
export async function getGraph(options = {}) {
|
|
4
|
-
const target = options.target ?? "all";
|
|
5
|
-
const depth = options.depth ?? 2;
|
|
6
|
-
return withServer(process.cwd(), (client) => client.getGraph(target, depth), async () => {
|
|
7
|
-
const { graph } = await createEngines(process.cwd());
|
|
8
|
-
if (target === "all")
|
|
9
|
-
return graph.export();
|
|
10
|
-
const sub = graph.getSubGraph(target, depth);
|
|
11
|
-
return { nodes: sub.nodes, edges: sub.edges };
|
|
12
|
-
}, { skipServer: options.skipServer });
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=graph.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../src/commands/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0B,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAa9D,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,UAAwB,EAAE;IACvD,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,KAAK,CAAC;IACvC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC;IAEjC,OAAO,UAAU,CACf,OAAO,CAAC,GAAG,EAAE,EACb,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,EAC1C,KAAK,IAAI,EAAE;QACT,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QACrD,IAAI,MAAM,KAAK,KAAK;YAAE,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5C,MAAM,GAAG,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC7C,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;IAChD,CAAC,EACD,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CACnC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-cmd.d.ts","sourceRoot":"","sources":["../../src/commands/index-cmd.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,wBAAsB,cAAc,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAgB/E"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { withServer } from "../lib/with-server.js";
|
|
2
|
-
import { createEngines } from "@devflow-tools/context-engine";
|
|
3
|
-
export async function getIndexStatus(skipServer) {
|
|
4
|
-
return withServer(process.cwd(), (client) => client.getIndexStatus(), async () => {
|
|
5
|
-
const { codegraph } = await createEngines(process.cwd());
|
|
6
|
-
const stats = codegraph.getStats();
|
|
7
|
-
return {
|
|
8
|
-
totalFiles: stats.fileCount,
|
|
9
|
-
totalSymbols: stats.nodeCount,
|
|
10
|
-
lastIndexTime: stats.lastUpdated,
|
|
11
|
-
indexing: codegraph.isIndexing(),
|
|
12
|
-
};
|
|
13
|
-
}, { skipServer });
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=index-cmd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-cmd.js","sourceRoot":"","sources":["../../src/commands/index-cmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0B,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAK9D,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,UAAoB;IACvD,OAAO,UAAU,CACf,OAAO,CAAC,GAAG,EAAE,EACb,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,EAAE,EACnC,KAAK,IAAI,EAAE;QACT,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QACzD,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;QACnC,OAAO;YACL,UAAU,EAAE,KAAK,CAAC,SAAS;YAC3B,YAAY,EAAE,KAAK,CAAC,SAAS;YAC7B,aAAa,EAAE,KAAK,CAAC,WAAW;YAChC,QAAQ,EAAE,SAAS,CAAC,UAAU,EAAE;SACjC,CAAC;IACJ,CAAC,EACD,EAAE,UAAU,EAAE,CACf,CAAC;AACJ,CAAC"}
|
package/dist/commands/init.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { OnboardingPack } from "@devflow-tools/context-engine";
|
|
2
|
-
export interface InitOptions {
|
|
3
|
-
force?: boolean;
|
|
4
|
-
scan?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface InitResult {
|
|
7
|
-
created: string[];
|
|
8
|
-
indexed?: {
|
|
9
|
-
files: number;
|
|
10
|
-
symbols: number;
|
|
11
|
-
graphNodes: number;
|
|
12
|
-
};
|
|
13
|
-
pluginDeployed: boolean;
|
|
14
|
-
pluginEnabled: boolean;
|
|
15
|
-
mcpConfigured: boolean;
|
|
16
|
-
onboardingPack?: OnboardingPack;
|
|
17
|
-
}
|
|
18
|
-
export declare function initProject(projectRoot: string, options?: InitOptions): Promise<InitResult>;
|
|
19
|
-
export declare function renderInitReport(pack: OnboardingPack): string;
|
|
20
|
-
//# sourceMappingURL=init.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAMpE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IACjE,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,wBAAsB,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,CA4HrG;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CA+B7D"}
|
package/dist/commands/init.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { mkdirSync, writeFileSync, existsSync, readFileSync } from "fs";
|
|
2
|
-
import { join } from "path";
|
|
3
|
-
import { homedir } from "os";
|
|
4
|
-
import { createRequire } from "module";
|
|
5
|
-
import CGModule from "@colbymchenry/codegraph";
|
|
6
|
-
import { createEngines, buildOnboardingPack } from "@devflow-tools/context-engine";
|
|
7
|
-
import { getPluginFilesDir, deployPlugin, ensurePluginEnabled, writeMcpConfig } from "../lib/plugin-setup.js";
|
|
8
|
-
const CodeGraph = CGModule.default ?? CGModule;
|
|
9
|
-
const require = createRequire(import.meta.url);
|
|
10
|
-
export async function initProject(projectRoot, options = {}) {
|
|
11
|
-
const devflowDir = join(projectRoot, ".devflow");
|
|
12
|
-
const created = [];
|
|
13
|
-
// ── Step 1: Project initialization (existing) ──
|
|
14
|
-
if (!existsSync(devflowDir)) {
|
|
15
|
-
mkdirSync(devflowDir, { recursive: true });
|
|
16
|
-
created.push(".devflow/");
|
|
17
|
-
}
|
|
18
|
-
const configPath = join(devflowDir, "config.json");
|
|
19
|
-
if (!existsSync(configPath) || options.force) {
|
|
20
|
-
writeFileSync(configPath, JSON.stringify({
|
|
21
|
-
version: "0.1.0",
|
|
22
|
-
initialized: new Date().toISOString(),
|
|
23
|
-
}, null, 2), "utf-8");
|
|
24
|
-
created.push(".devflow/config.json");
|
|
25
|
-
}
|
|
26
|
-
const result = {
|
|
27
|
-
created,
|
|
28
|
-
pluginDeployed: false,
|
|
29
|
-
pluginEnabled: false,
|
|
30
|
-
mcpConfigured: false,
|
|
31
|
-
};
|
|
32
|
-
// Initialize CodeGraph if not already done
|
|
33
|
-
if (!CodeGraph.isInitialized(projectRoot)) {
|
|
34
|
-
await CodeGraph.init(projectRoot, { index: options.scan !== false });
|
|
35
|
-
}
|
|
36
|
-
if (options.scan !== false) {
|
|
37
|
-
try {
|
|
38
|
-
const { indexer, graph } = await createEngines(projectRoot);
|
|
39
|
-
const { files, symbols, imports } = await indexer.indexAll(projectRoot);
|
|
40
|
-
const graphResult = await graph.build(symbols, imports);
|
|
41
|
-
result.indexed = {
|
|
42
|
-
files: files.length,
|
|
43
|
-
symbols: symbols.length,
|
|
44
|
-
graphNodes: graphResult.nodes.length,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
catch (err) {
|
|
48
|
-
// Indexing is best-effort during init; errors are non-fatal
|
|
49
|
-
result.indexed = { files: 0, symbols: 0, graphNodes: 0 };
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
// ── Step 1.5: Onboarding pack generation ──
|
|
53
|
-
if (options.scan !== false) {
|
|
54
|
-
try {
|
|
55
|
-
const { indexer, graph } = await createEngines(projectRoot);
|
|
56
|
-
const cg = CodeGraph.openSync(projectRoot);
|
|
57
|
-
const pack = await buildOnboardingPack(projectRoot, cg, indexer, graph);
|
|
58
|
-
const onboardingPath = join(devflowDir, "onboarding-pack.json");
|
|
59
|
-
writeFileSync(onboardingPath, JSON.stringify(pack, null, 2), "utf-8");
|
|
60
|
-
created.push(".devflow/onboarding-pack.json");
|
|
61
|
-
const reportPath = join(devflowDir, "init-report.md");
|
|
62
|
-
writeFileSync(reportPath, renderInitReport(pack), "utf-8");
|
|
63
|
-
created.push(".devflow/init-report.md");
|
|
64
|
-
result.onboardingPack = pack;
|
|
65
|
-
}
|
|
66
|
-
catch (err) {
|
|
67
|
-
console.warn(`Warning: Onboarding pack generation skipped — ${err.message}`);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
// ── Step 2: Plugin deployment ──
|
|
71
|
-
try {
|
|
72
|
-
const pluginFilesDir = getPluginFilesDir();
|
|
73
|
-
const home = homedir();
|
|
74
|
-
const cacheBaseDir = join(home, ".claude", "plugins", "cache");
|
|
75
|
-
const globalSkillsDir = join(home, ".claude", "skills");
|
|
76
|
-
const pluginPkgPath = join(pluginFilesDir, "package.json");
|
|
77
|
-
const version = existsSync(pluginPkgPath)
|
|
78
|
-
? JSON.parse(readFileSync(pluginPkgPath, "utf-8")).version
|
|
79
|
-
: "0.0.0";
|
|
80
|
-
deployPlugin(pluginFilesDir, cacheBaseDir, version, globalSkillsDir);
|
|
81
|
-
result.pluginDeployed = true;
|
|
82
|
-
}
|
|
83
|
-
catch (err) {
|
|
84
|
-
console.warn(`Warning: Plugin deployment skipped — ${err.message}`);
|
|
85
|
-
}
|
|
86
|
-
// ── Step 3: Plugin enablement ──
|
|
87
|
-
try {
|
|
88
|
-
const home = homedir();
|
|
89
|
-
const settingsPath = join(home, ".claude", "settings.json");
|
|
90
|
-
ensurePluginEnabled(settingsPath);
|
|
91
|
-
result.pluginEnabled = true;
|
|
92
|
-
}
|
|
93
|
-
catch (err) {
|
|
94
|
-
console.warn(`Warning: Plugin enablement skipped — ${err.message}`);
|
|
95
|
-
}
|
|
96
|
-
// ── Step 4: MCP configuration ──
|
|
97
|
-
try {
|
|
98
|
-
let mcpCommand;
|
|
99
|
-
try {
|
|
100
|
-
mcpCommand = require.resolve("@devflow-tools/mcp-server/bin/devflow-mcp.cjs");
|
|
101
|
-
}
|
|
102
|
-
catch {
|
|
103
|
-
mcpCommand = "devflow-mcp";
|
|
104
|
-
}
|
|
105
|
-
writeMcpConfig(projectRoot, mcpCommand);
|
|
106
|
-
result.mcpConfigured = true;
|
|
107
|
-
}
|
|
108
|
-
catch (err) {
|
|
109
|
-
console.warn(`Warning: MCP config skipped — ${err.message}`);
|
|
110
|
-
}
|
|
111
|
-
return result;
|
|
112
|
-
}
|
|
113
|
-
export function renderInitReport(pack) {
|
|
114
|
-
const lines = [
|
|
115
|
-
`# ${pack.projectName} — DevFlow Onboarding Report`,
|
|
116
|
-
`Generated: ${pack.createdAt}`,
|
|
117
|
-
``,
|
|
118
|
-
`## Project Stats`,
|
|
119
|
-
`- Files: ${pack.stats.files}`,
|
|
120
|
-
`- Symbols: ${pack.stats.symbols}`,
|
|
121
|
-
`- Graph Nodes: ${pack.stats.graphNodes}`,
|
|
122
|
-
``,
|
|
123
|
-
`## Tech Stack`,
|
|
124
|
-
`- Languages: ${pack.stack.languages.join(", ") || "unknown"}`,
|
|
125
|
-
`- Frameworks: ${pack.stack.frameworks.join(", ") || "none detected"}`,
|
|
126
|
-
`- Build Tools: ${pack.stack.buildTools.join(", ") || "none detected"}`,
|
|
127
|
-
`- Test Tools: ${pack.stack.testTools.join(", ") || "none detected"}`,
|
|
128
|
-
``,
|
|
129
|
-
`## Architecture Layers`,
|
|
130
|
-
...pack.architectureLayers.map((l) => `- **${l.name}**: ${l.files} files`),
|
|
131
|
-
``,
|
|
132
|
-
`## Key Modules`,
|
|
133
|
-
...pack.keyModules.slice(0, 10).map((m) => `- \`${m.name}\` — ${m.reason}`),
|
|
134
|
-
``,
|
|
135
|
-
`## Key Symbols`,
|
|
136
|
-
...pack.keySymbols.slice(0, 20).map((s) => `- \`${s.name}\` (${s.kind}) in \`${s.file}\``),
|
|
137
|
-
``,
|
|
138
|
-
`## Recommended Next Steps`,
|
|
139
|
-
...pack.recommendedPlugins.map((p) => `- Install plugin: \`${p}\``),
|
|
140
|
-
...pack.recommendedWorkflows.map((w) => `- Run workflow: \`devflow workflow ${w}\``),
|
|
141
|
-
`- Try: \`devflow context "${pack.recommendedQueries[0] ?? '项目架构'}"\``,
|
|
142
|
-
];
|
|
143
|
-
return lines.join("\n");
|
|
144
|
-
}
|
|
145
|
-
//# sourceMappingURL=init.js.map
|