@devflow-tools/cli 0.15.0 → 0.16.0
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/dist/commands/benchmark-cmd.d.ts +17 -4
- package/dist/commands/benchmark-cmd.d.ts.map +1 -1
- package/dist/commands/benchmark-cmd.js +71 -14
- package/dist/commands/benchmark-cmd.js.map +1 -1
- package/dist/commands/connect.d.ts +0 -1
- package/dist/commands/connect.d.ts.map +1 -1
- package/dist/commands/connect.js +4 -10
- package/dist/commands/connect.js.map +1 -1
- package/dist/commands/context.d.ts +2 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +5 -3
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/db.d.ts +25 -0
- package/dist/commands/db.d.ts.map +1 -0
- package/dist/commands/db.js +258 -0
- package/dist/commands/db.js.map +1 -0
- package/dist/commands/docs.d.ts +20 -0
- package/dist/commands/docs.d.ts.map +1 -0
- package/dist/commands/docs.js +37 -0
- package/dist/commands/docs.js.map +1 -0
- package/dist/commands/doctor.d.ts +59 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +3912 -50
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/index-cmd.d.ts +1 -0
- package/dist/commands/index-cmd.d.ts.map +1 -1
- package/dist/commands/index-cmd.js +7 -0
- package/dist/commands/index-cmd.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +3 -6
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/knowledge.d.ts +2 -1
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +11 -8
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/memory.d.ts +17 -1
- package/dist/commands/memory.d.ts.map +1 -1
- package/dist/commands/memory.js +22 -3
- package/dist/commands/memory.js.map +1 -1
- package/dist/commands/plugin-loader.d.ts +1 -1
- package/dist/commands/plugin-loader.d.ts.map +1 -1
- package/dist/commands/plugin-loader.js +1 -1
- package/dist/commands/plugin-loader.js.map +1 -1
- package/dist/commands/plugin-memory-hints.d.ts +23 -0
- package/dist/commands/plugin-memory-hints.d.ts.map +1 -0
- package/dist/commands/plugin-memory-hints.js +58 -0
- package/dist/commands/plugin-memory-hints.js.map +1 -0
- package/dist/commands/reset.d.ts +32 -0
- package/dist/commands/reset.d.ts.map +1 -0
- package/dist/commands/reset.js +316 -0
- package/dist/commands/reset.js.map +1 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +2 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +33 -6
- package/dist/commands/status.js.map +1 -1
- package/dist/index.js +225 -96
- package/dist/index.js.map +1 -1
- package/dist/lib/plugin-setup.d.ts.map +1 -1
- package/dist/lib/plugin-setup.js +37 -2
- package/dist/lib/plugin-setup.js.map +1 -1
- package/dist/plugin-files/.claude-plugin/plugin.json +1 -1
- package/dist/plugin-files/dist/command-registry.json +34 -36
- package/dist/plugin-files/dist/hooks/enforcer-summary.js +6 -0
- package/dist/plugin-files/dist/hooks/hook-client.js +6 -0
- package/dist/plugin-files/dist/hooks/hook-daemon.js +14 -0
- package/dist/plugin-files/dist/hooks/post-tool-use-failure.js +2 -0
- package/dist/plugin-files/dist/hooks/post-tool-use.js +3 -0
- package/dist/plugin-files/dist/hooks/pre-compact.js +3 -0
- package/dist/plugin-files/dist/hooks/pre-tool-use.js +2 -0
- package/dist/plugin-files/dist/hooks/server-bootstrap.js +109 -0
- package/dist/plugin-files/dist/hooks/session-end.js +2 -0
- package/dist/plugin-files/dist/hooks/stop.js +2 -0
- package/dist/plugin-files/dist/hooks/user-prompt-submit.js +2 -0
- package/dist/plugin-files/dist/skills/devflow:graphql/SKILL.md +2 -4
- package/dist/plugin-files/dist/skills/devflow:nest/SKILL.md +4 -4
- package/dist/plugin-files/dist/skills/devflow:nextjs/SKILL.md +4 -4
- package/dist/plugin-files/dist/skills/devflow:react/SKILL.md +6 -8
- package/dist/plugin-files/dist/skills/devflow:tailwind/SKILL.md +4 -2
- package/dist/plugin-files/dist/skills/devflow:vue/SKILL.md +2 -4
- package/dist/plugin-files/hooks/post-tool-use +2 -2
- package/dist/plugin-files/hooks/post-tool-use-failure +2 -2
- package/dist/plugin-files/hooks/pre-compact +2 -2
- package/dist/plugin-files/hooks/pre-tool-use +4 -4
- package/dist/plugin-files/hooks/session-end +2 -2
- package/dist/plugin-files/hooks/session-start +160 -77
- package/dist/plugin-files/hooks/stop +2 -8
- package/dist/plugin-files/hooks/user-prompt-submit +2 -2
- package/dist/plugin-files/package.json +13 -2
- package/package.json +27 -27
- 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
|
@@ -1,3 +1,60 @@
|
|
|
1
|
+
export type DoctorStatus = "green" | "yellow" | "red";
|
|
2
|
+
export type DoctorSeverity = "info" | "warning" | "error";
|
|
3
|
+
export interface DoctorMetric {
|
|
4
|
+
key: string;
|
|
5
|
+
value: unknown;
|
|
6
|
+
target?: unknown;
|
|
7
|
+
ok: boolean;
|
|
8
|
+
severity?: DoctorSeverity;
|
|
9
|
+
}
|
|
10
|
+
export interface DoctorSection {
|
|
11
|
+
name: "Isolation" | "Distill" | "Vectors" | "Telemetry" | "Injection" | "Memory quality" | "Knowledge quality" | "Contract" | "Deadcode" | "Data face" | "Legacy paths" | "Runtime security" | "Benchmark" | "UI reachability" | "Hook path health";
|
|
12
|
+
status: DoctorStatus;
|
|
13
|
+
metrics: DoctorMetric[];
|
|
14
|
+
}
|
|
15
|
+
export interface DoctorResult {
|
|
16
|
+
sections: DoctorSection[];
|
|
17
|
+
exitCode: number;
|
|
18
|
+
}
|
|
19
|
+
export interface DoctorOptions {
|
|
20
|
+
project?: string;
|
|
21
|
+
json?: boolean;
|
|
22
|
+
strict?: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface DoctorStatement {
|
|
25
|
+
all(...params: unknown[]): unknown[];
|
|
26
|
+
get(...params: unknown[]): unknown;
|
|
27
|
+
setReadBigInts?(enabled: boolean): void;
|
|
28
|
+
}
|
|
29
|
+
interface DoctorDatabase {
|
|
30
|
+
prepare(sql: string): DoctorStatement;
|
|
31
|
+
close(): void;
|
|
32
|
+
}
|
|
33
|
+
export interface DoctorDependencies {
|
|
34
|
+
registryPath?: string;
|
|
35
|
+
legacyArtifactRoots?: readonly string[];
|
|
36
|
+
homePath?: string;
|
|
37
|
+
claudeSettingsPath?: string;
|
|
38
|
+
installedPluginsPath?: string;
|
|
39
|
+
knownMarketplacesPath?: string;
|
|
40
|
+
pluginCachePath?: string;
|
|
41
|
+
env?: NodeJS.ProcessEnv;
|
|
42
|
+
now?: () => number;
|
|
43
|
+
openDatabase?: (path: string) => DoctorDatabase;
|
|
44
|
+
acceptanceManifestPath?: string;
|
|
45
|
+
httpGet?: (url: string) => Promise<{
|
|
46
|
+
status: number;
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
49
|
+
export interface DoctorCommandIO {
|
|
50
|
+
stdout(output: string): void;
|
|
51
|
+
stderr(output: string): void;
|
|
52
|
+
}
|
|
53
|
+
export declare function runStructuredDoctor(options?: DoctorOptions, dependencies?: DoctorDependencies): Promise<DoctorResult>;
|
|
54
|
+
export declare function runDoctor(): Promise<DoctorReport>;
|
|
55
|
+
export declare function runDoctor(options: DoctorOptions, dependencies?: DoctorDependencies): Promise<DoctorResult>;
|
|
56
|
+
export declare function renderDoctorText(result: DoctorResult): string;
|
|
57
|
+
export declare function runDoctorCommand(options?: DoctorOptions, io?: DoctorCommandIO, dependencies?: DoctorDependencies): Promise<number>;
|
|
1
58
|
export interface DoctorReport {
|
|
2
59
|
index: {
|
|
3
60
|
totalFiles: number;
|
|
@@ -31,7 +88,7 @@ export interface DoctorReport {
|
|
|
31
88
|
};
|
|
32
89
|
readyScore: number;
|
|
33
90
|
}
|
|
34
|
-
export declare function
|
|
91
|
+
export declare function runLegacyDoctorReport(project?: string): Promise<DoctorReport>;
|
|
35
92
|
export declare function runDoctorAudit(): Promise<{
|
|
36
93
|
valid: boolean;
|
|
37
94
|
brokenAt: number | null;
|
|
@@ -53,4 +110,5 @@ export declare function runDoctorReceipts(): {
|
|
|
53
110
|
sessionId: string;
|
|
54
111
|
data: unknown;
|
|
55
112
|
};
|
|
113
|
+
export {};
|
|
56
114
|
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAyDA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,EAAE,EAAE,OAAO,CAAC;IACZ,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EACA,WAAW,GACX,SAAS,GACT,SAAS,GACT,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,mBAAmB,GACnB,UAAU,GACV,UAAU,GACV,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,WAAW,GACX,iBAAiB,GACjB,kBAAkB,CAAC;IACvB,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAA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