dsh-research-suite-plugin 0.1.4 → 0.1.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/CHANGELOG.md +7 -0
- package/LICENSE +0 -0
- package/README-zh.md +0 -0
- package/README.md +0 -0
- package/SECURITY.md +0 -0
- package/THIRD_PARTY_NOTICES.md +0 -0
- package/cordis.patch.yml +0 -0
- package/examples/README.md +0 -0
- package/examples/sample.md +0 -0
- package/lib/config.d.ts +32 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +31 -0
- package/lib/config.js.map +1 -0
- package/lib/doctor.d.ts +55 -0
- package/lib/doctor.d.ts.map +1 -0
- package/lib/doctor.js +172 -0
- package/lib/doctor.js.map +1 -0
- package/lib/index.d.ts +31 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +34 -0
- package/lib/index.js.map +1 -0
- package/lib/tools/doctor.d.ts +40 -0
- package/lib/tools/doctor.d.ts.map +1 -0
- package/lib/tools/doctor.js +144 -0
- package/lib/tools/doctor.js.map +1 -0
- package/lib/version.d.ts +7 -0
- package/lib/version.d.ts.map +1 -0
- package/lib/version.js +7 -0
- package/lib/version.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/LICENSE
CHANGED
|
File without changes
|
package/README-zh.md
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
package/SECURITY.md
CHANGED
|
File without changes
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
File without changes
|
package/cordis.patch.yml
CHANGED
|
File without changes
|
package/examples/README.md
CHANGED
|
File without changes
|
package/examples/sample.md
CHANGED
|
File without changes
|
package/lib/config.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config schema and resolution for the research suite.
|
|
3
|
+
*
|
|
4
|
+
* The suite is mostly a bundle: its own row only adds `research_doctor`, which
|
|
5
|
+
* reads the REP store. `root` must match `@perrylink/dsh-research-core`'s root.
|
|
6
|
+
* @module dsh-research-suite/config
|
|
7
|
+
*/
|
|
8
|
+
import z from '@deepseek-ai/schemastery';
|
|
9
|
+
/** Raw plugin config — every field optional. */
|
|
10
|
+
export interface Config {
|
|
11
|
+
/** Master switch. `false` mounts no tools. */
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
/** REP store root, resolved against the harness working directory. */
|
|
14
|
+
root?: string;
|
|
15
|
+
/** Per-journal scan cap in bytes; larger journals are counted but not parsed. */
|
|
16
|
+
maxScanBytes?: number;
|
|
17
|
+
}
|
|
18
|
+
/** Fully resolved config. */
|
|
19
|
+
export interface ResolvedConfig {
|
|
20
|
+
readonly enabled: boolean;
|
|
21
|
+
readonly root: string;
|
|
22
|
+
readonly maxScanBytes: number;
|
|
23
|
+
}
|
|
24
|
+
/** Schemastery schema: the loader validates and fills defaults before `apply`. */
|
|
25
|
+
export declare const Config: z<Config>;
|
|
26
|
+
/**
|
|
27
|
+
* Validate raw values and fill explicit defaults.
|
|
28
|
+
* @param config - raw (possibly partial) plugin config.
|
|
29
|
+
* @returns the fully resolved config.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolveConfig(config?: Config): ResolvedConfig;
|
|
32
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAExC,gDAAgD;AAChD,MAAM,WAAW,MAAM;IACrB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,6BAA6B;AAC7B,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAC9B;AAED,kFAAkF;AAClF,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,MAAM,CAI3B,CAAA;AAEF;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,GAAE,MAAW,GAAG,cAAc,CAQjE"}
|
package/lib/config.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config schema and resolution for the research suite.
|
|
3
|
+
*
|
|
4
|
+
* The suite is mostly a bundle: its own row only adds `research_doctor`, which
|
|
5
|
+
* reads the REP store. `root` must match `@perrylink/dsh-research-core`'s root.
|
|
6
|
+
* @module dsh-research-suite/config
|
|
7
|
+
*/
|
|
8
|
+
import path from 'node:path';
|
|
9
|
+
import z from '@deepseek-ai/schemastery';
|
|
10
|
+
/** Schemastery schema: the loader validates and fills defaults before `apply`. */
|
|
11
|
+
export const Config = z.object({
|
|
12
|
+
enabled: z.boolean().default(true),
|
|
13
|
+
root: z.string().default('.research-rep'),
|
|
14
|
+
maxScanBytes: z.number().default(16 * 1024 * 1024),
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* Validate raw values and fill explicit defaults.
|
|
18
|
+
* @param config - raw (possibly partial) plugin config.
|
|
19
|
+
* @returns the fully resolved config.
|
|
20
|
+
*/
|
|
21
|
+
export function resolveConfig(config = {}) {
|
|
22
|
+
const root = config.root ?? '.research-rep';
|
|
23
|
+
if (typeof root !== 'string' || root.trim() === '')
|
|
24
|
+
throw new TypeError('root must be a non-empty path');
|
|
25
|
+
const maxScanBytes = config.maxScanBytes ?? 16 * 1024 * 1024;
|
|
26
|
+
if (!Number.isInteger(maxScanBytes) || maxScanBytes <= 0) {
|
|
27
|
+
throw new TypeError('maxScanBytes must be a positive integer');
|
|
28
|
+
}
|
|
29
|
+
return { enabled: config.enabled ?? true, root: path.resolve(root), maxScanBytes };
|
|
30
|
+
}
|
|
31
|
+
//# s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
1
|
+
/**
|
|
2
|
+
* Read-only REP store inspection for `research_doctor`.
|
|
3
|
+
*
|
|
4
|
+
* The doctor never repairs: it counts journal lines, parses what fits inside
|
|
5
|
+
* the scan cap, reports malformed lines, and finds the latest sealed record.
|
|
6
|
+
* A malformed journal is an error because every count derived from it would be
|
|
7
|
+
* a lie; a missing store is only a warning (a fresh profile has no records yet).
|
|
8
|
+
*
|
|
9
|
+
* @module dsh-research-suite/doctor
|
|
10
|
+
*/
|
|
11
|
+
/** Journal files written by `@perrylink/dsh-research-core`. */
|
|
12
|
+
export declare const JOURNALS: readonly ["snapshots.jsonl", "evidence.jsonl", "evidence-checks.jsonl", "claims.jsonl", "verdicts.jsonl", "audits.jsonl"];
|
|
13
|
+
/** One journal's health. */
|
|
14
|
+
export interface JournalReport {
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly exists: boolean;
|
|
17
|
+
readonly bytes: number;
|
|
18
|
+
readonly lines: number;
|
|
19
|
+
readonly malformed: number;
|
|
20
|
+
/** False when the file exceeded `maxScanBytes` and was counted but not parsed. */
|
|
21
|
+
readonly scanned: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** One `records/*.rep.json` summary. */
|
|
24
|
+
export interface RecordReport {
|
|
25
|
+
readonly file: string;
|
|
26
|
+
readonly bytes: number;
|
|
27
|
+
readonly recordId?: string;
|
|
28
|
+
readonly createdAt?: string;
|
|
29
|
+
readonly evidence?: number;
|
|
30
|
+
readonly claims?: number;
|
|
31
|
+
readonly sealed: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** The full read-only inspection. */
|
|
34
|
+
export interface RepReport {
|
|
35
|
+
readonly root: string;
|
|
36
|
+
readonly exists: boolean;
|
|
37
|
+
readonly journals: readonly JournalReport[];
|
|
38
|
+
readonly records: {
|
|
39
|
+
readonly count: number;
|
|
40
|
+
readonly malformed: number;
|
|
41
|
+
readonly latest?: RecordReport;
|
|
42
|
+
};
|
|
43
|
+
readonly status: 'ok' | 'warn' | 'error';
|
|
44
|
+
readonly hints: readonly string[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Inspect a REP root without modifying it.
|
|
48
|
+
* @param options - root directory and per-file scan cap.
|
|
49
|
+
* @returns the report, including hints for the model.
|
|
50
|
+
*/
|
|
51
|
+
export declare function inspectRep(options: {
|
|
52
|
+
root: string;
|
|
53
|
+
maxScanBytes: number;
|
|
54
|
+
}): Promise<RepReport>;
|
|
55
|
+
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../src/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,+DAA+D;AAC/D,eAAO,MAAM,QAAQ,2HAOX,CAAA;AAEV,4BAA4B;AAC5B,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,kFAAkF;IAClF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B;AAED,wCAAwC;AACxC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CACzB;AAED,qCAAqC;AACrC,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAA;IAC3C,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;QACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAA;KAC/B,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAAA;IACxC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAClC;AAyED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CA0EpG"}
|
package/lib/doctor.js
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read-only REP store inspection for `research_doctor`.
|
|
3
|
+
*
|
|
4
|
+
* The doctor never repairs: it counts journal lines, parses what fits inside
|
|
5
|
+
* the scan cap, reports malformed lines, and finds the latest sealed record.
|
|
6
|
+
* A malformed journal is an error because every count derived from it would be
|
|
7
|
+
* a lie; a missing store is only a warning (a fresh profile has no records yet).
|
|
8
|
+
*
|
|
9
|
+
* @module dsh-research-suite/doctor
|
|
10
|
+
*/
|
|
11
|
+
import { readFile, readdir, stat } from 'node:fs/promises';
|
|
12
|
+
import path from 'node:path';
|
|
13
|
+
/** Journal files written by `@perrylink/dsh-research-core`. */
|
|
14
|
+
export const JOURNALS = [
|
|
15
|
+
'snapshots.jsonl',
|
|
16
|
+
'evidence.jsonl',
|
|
17
|
+
'evidence-checks.jsonl',
|
|
18
|
+
'claims.jsonl',
|
|
19
|
+
'verdicts.jsonl',
|
|
20
|
+
'audits.jsonl',
|
|
21
|
+
];
|
|
22
|
+
async function readText(file, maxBytes) {
|
|
23
|
+
try {
|
|
24
|
+
const info = await stat(file);
|
|
25
|
+
if (!info.isFile())
|
|
26
|
+
return { exists: false, bytes: 0 };
|
|
27
|
+
if (info.size > maxBytes)
|
|
28
|
+
return { exists: true, bytes: info.size };
|
|
29
|
+
return { exists: true, bytes: info.size, text: await readFile(file, 'utf8') };
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
if (error.code === 'ENOENT')
|
|
33
|
+
return { exists: false, bytes: 0 };
|
|
34
|
+
throw error;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function countJournal(name, file) {
|
|
38
|
+
let lines = 0;
|
|
39
|
+
let malformed = 0;
|
|
40
|
+
if (file.text !== undefined) {
|
|
41
|
+
for (const line of file.text.split('\n')) {
|
|
42
|
+
if (line.trim() === '')
|
|
43
|
+
continue;
|
|
44
|
+
lines += 1;
|
|
45
|
+
try {
|
|
46
|
+
JSON.parse(line);
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
malformed += 1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return { name, exists: file.exists, bytes: file.bytes, lines, malformed, scanned: file.text !== undefined };
|
|
54
|
+
}
|
|
55
|
+
function numberField(value) {
|
|
56
|
+
return Array.isArray(value) ? value.length : undefined;
|
|
57
|
+
}
|
|
58
|
+
function stringField(value) {
|
|
59
|
+
return typeof value === 'string' && value !== '' ? value : undefined;
|
|
60
|
+
}
|
|
61
|
+
async function readRecord(file, maxBytes) {
|
|
62
|
+
const info = await stat(file);
|
|
63
|
+
if (info.size > maxBytes)
|
|
64
|
+
return { malformed: false };
|
|
65
|
+
const text = await readFile(file, 'utf8');
|
|
66
|
+
try {
|
|
67
|
+
const raw = JSON.parse(text);
|
|
68
|
+
const recordId = stringField(raw.recordId);
|
|
69
|
+
const createdAt = stringField(raw.createdAt);
|
|
70
|
+
const evidence = numberField(raw.evidence);
|
|
71
|
+
const claims = numberField(raw.claims);
|
|
72
|
+
const sealed = raw.manifest !== undefined && raw.manifest !== null;
|
|
73
|
+
return {
|
|
74
|
+
malformed: false,
|
|
75
|
+
report: {
|
|
76
|
+
file: path.basename(file),
|
|
77
|
+
bytes: info.size,
|
|
78
|
+
...(recordId === undefined ? {} : { recordId }),
|
|
79
|
+
...(createdAt === undefined ? {} : { createdAt }),
|
|
80
|
+
...(evidence === undefined ? {} : { evidence }),
|
|
81
|
+
...(claims === undefined ? {} : { claims }),
|
|
82
|
+
sealed,
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
return { malformed: true };
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Inspect a REP root without modifying it.
|
|
92
|
+
* @param options - root directory and per-file scan cap.
|
|
93
|
+
* @returns the report, including hints for the model.
|
|
94
|
+
*/
|
|
95
|
+
export async function inspectRep(options) {
|
|
96
|
+
const { root, maxScanBytes } = options;
|
|
97
|
+
let rootInfo;
|
|
98
|
+
try {
|
|
99
|
+
rootInfo = await stat(root);
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
if (error.code !== 'ENOENT')
|
|
103
|
+
throw error;
|
|
104
|
+
}
|
|
105
|
+
if (rootInfo === undefined || !rootInfo.isDirectory()) {
|
|
106
|
+
return {
|
|
107
|
+
root,
|
|
108
|
+
exists: false,
|
|
109
|
+
journals: JOURNALS.map(name => ({ name, exists: false, bytes: 0, lines: 0, malformed: 0, scanned: false })),
|
|
110
|
+
records: { count: 0, malformed: 0 },
|
|
111
|
+
status: 'warn',
|
|
112
|
+
hints: [
|
|
113
|
+
`REP root ${root} does not exist yet. Run a research tool (for example research_report) or the demo in examples/.`,
|
|
114
|
+
],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
const journals = [];
|
|
118
|
+
for (const name of JOURNALS) {
|
|
119
|
+
journals.push(countJournal(name, await readText(path.join(root, name), maxScanBytes)));
|
|
120
|
+
}
|
|
121
|
+
let recordFiles = [];
|
|
122
|
+
try {
|
|
123
|
+
recordFiles = (await readdir(path.join(root, 'records'))).filter(name => name.endsWith('.rep.json'));
|
|
124
|
+
}
|
|
125
|
+
catch (error) {
|
|
126
|
+
if (error.code !== 'ENOENT')
|
|
127
|
+
throw error;
|
|
128
|
+
}
|
|
129
|
+
let recordMalformed = 0;
|
|
130
|
+
const records = [];
|
|
131
|
+
const mtimes = new Map();
|
|
132
|
+
for (const file of recordFiles) {
|
|
133
|
+
const full = path.join(root, 'records', file);
|
|
134
|
+
const result = await readRecord(full, maxScanBytes);
|
|
135
|
+
if (result.malformed)
|
|
136
|
+
recordMalformed += 1;
|
|
137
|
+
if (result.report !== undefined) {
|
|
138
|
+
records.push(result.report);
|
|
139
|
+
mtimes.set(result.report.file, (await stat(full)).mtimeMs);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
records.sort((left, right) => (mtimes.get(right.file) ?? 0) - (mtimes.get(left.file) ?? 0));
|
|
143
|
+
const latest = records[0];
|
|
144
|
+
const malformed = journals.reduce((sum, journal) => sum + journal.malformed, 0) + recordMalformed;
|
|
145
|
+
const hints = [];
|
|
146
|
+
if (malformed > 0) {
|
|
147
|
+
hints.push(`${malformed} malformed record line(s)/file(s): counts below are not trustworthy until those are fixed by hand.`);
|
|
148
|
+
}
|
|
149
|
+
if (records.length === 0) {
|
|
150
|
+
hints.push('No sealed record yet: use research_report with at least one evidence item, then run research_doctor again.');
|
|
151
|
+
}
|
|
152
|
+
else if (latest !== undefined && !latest.sealed) {
|
|
153
|
+
hints.push(`Latest record ${latest.file} has no manifest: seal it before treating it as a report.`);
|
|
154
|
+
}
|
|
155
|
+
if (journals.every(journal => !journal.exists)) {
|
|
156
|
+
hints.push('No REP journal exists yet: the store has not recorded any evidence or claim.');
|
|
157
|
+
}
|
|
158
|
+
const status = malformed > 0 ? 'error' : records.length === 0 ? 'warn' : 'ok';
|
|
159
|
+
return {
|
|
160
|
+
root,
|
|
161
|
+
exists: true,
|
|
162
|
+
journals,
|
|
163
|
+
records: {
|
|
164
|
+
count: records.length,
|
|
165
|
+
malformed: recordMalformed,
|
|
166
|
+
...(latest === undefined ? {} : { latest }),
|
|
167
|
+
},
|
|
168
|
+
status,
|
|
169
|
+
hints,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=doctor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../src/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,+DAA+D;AAC/D,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,iBAAiB;IACjB,gBAAgB;IAChB,uBAAuB;IACvB,cAAc;IACd,gBAAgB;IAChB,cAAc;CACN,CAAA;AA4CV,KAAK,UAAU,QAAQ,CAAC,IAAY,EAAE,QAAgB;IACpD,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,CAAA;QAC7B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAA;QACtD,IAAI,IAAI,CAAC,IAAI,GAAG,QAAQ;YAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAA;QACnE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,CAAA;IAC/E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAK,KAA+B,CA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AAC,CAAC,EAAE,MAAM,EAAE,CAAC;SAC5C;QACD,MAAM;QACN,KAAK;KACN,CAAA;AACH,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `dsh-research-suite-plugin` — one bundle layer for the research family,
|
|
3
|
+
* plus `research_doctor`.
|
|
4
|
+
*
|
|
5
|
+
* The bundle patch installs the evidence, verification, systematic-review and
|
|
6
|
+
* report plugins; this module only adds the doctor tool. It is a function
|
|
7
|
+
* plugin, no default export.
|
|
8
|
+
*
|
|
9
|
+
* @module dsh-research-suite
|
|
10
|
+
*/
|
|
11
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
12
|
+
import { Config, resolveConfig, type Config as ConfigShape } from './config.ts';
|
|
13
|
+
import { inspectRep } from './doctor.ts';
|
|
14
|
+
import { makeDoctorTool } from './tools/doctor.ts';
|
|
15
|
+
import { VERSION } from './version.ts';
|
|
16
|
+
/** Cordis plugin name. */
|
|
17
|
+
export declare const name = "research-suite";
|
|
18
|
+
/** The tool registry is required. */
|
|
19
|
+
export declare const inject: string[];
|
|
20
|
+
export { Config, resolveConfig, inspectRep, makeDoctorTool, VERSION };
|
|
21
|
+
export type { ConfigShape };
|
|
22
|
+
export type { ResolvedConfig } from './config.ts';
|
|
23
|
+
export type { JournalReport, RecordReport, RepReport } from './doctor.ts';
|
|
24
|
+
export type { DoctorFailure, DoctorValue } from './tools/doctor.ts';
|
|
25
|
+
/**
|
|
26
|
+
* Mount `research_doctor`.
|
|
27
|
+
* @param ctx - the plugin context (host).
|
|
28
|
+
* @param config - raw plugin config.
|
|
29
|
+
*/
|
|
30
|
+
export declare function apply(ctx: Context, config: ConfigShape): void;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,MAAM,IAAI,WAAW,EAAE,MAAM,aAAa,CAAA;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,0BAA0B;AAC1B,eAAO,MAAM,IAAI,mBAAmB,CAAA;AAEpC,qCAAqC;AACrC,eAAO,MAAM,MAAM,UAAY,CAAA;AAE/B,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,CAAA;AACrE,YAAY,EAAE,WAAW,EAAE,CAAA;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACzE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAQ7D"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `dsh-research-suite-plugin` — one bundle layer for the research family,
|
|
3
|
+
* plus `research_doctor`.
|
|
4
|
+
*
|
|
5
|
+
* The bundle patch installs the evidence, verification, systematic-review and
|
|
6
|
+
* report plugins; this module only adds the doctor tool. It is a function
|
|
7
|
+
* plugin, no default export.
|
|
8
|
+
*
|
|
9
|
+
* @module dsh-research-suite
|
|
10
|
+
*/
|
|
11
|
+
import { Config, resolveConfig } from "./config.js";
|
|
12
|
+
import { inspectRep } from "./doctor.js";
|
|
13
|
+
import { makeDoctorTool } from "./tools/doctor.js";
|
|
14
|
+
import { VERSION } from "./version.js";
|
|
15
|
+
/** Cordis plugin name. */
|
|
16
|
+
export const name = 'research-suite';
|
|
17
|
+
/** The tool registry is required. */
|
|
18
|
+
export const inject = ['tools'];
|
|
19
|
+
export { Config, resolveConfig, inspectRep, makeDoctorTool, VERSION };
|
|
20
|
+
/**
|
|
21
|
+
* Mount `research_doctor`.
|
|
22
|
+
* @param ctx - the plugin context (host).
|
|
23
|
+
* @param config - raw plugin config.
|
|
24
|
+
*/
|
|
25
|
+
export function apply(ctx, config) {
|
|
26
|
+
const resolved = resolveConfig(config);
|
|
27
|
+
const logger = ctx.logger('research-suite');
|
|
28
|
+
if (!resolved.enabled) {
|
|
29
|
+
logger.info('disabled: enabled is false — research_doctor is not mounted');
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
ctx.effect(() => ctx.tools.register(makeDoctorTool(ctx, resolved)), 'research-suite: research_doctor tool');
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,MAAM,EAAE,aAAa,EAA8B,MAAM,aAAa,CAAA;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,0BAA0B;AAC1B,MAAM,CAAC,MAAM,IAAI,GAAG,gBAAgB,CAAA;AAEpC,qCAAqC;AACrC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAO,CAAC,CAAA;AAE/B,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,CAAA;AAMrE;;;;GAIG;AACH,MAAM,UAAU,KAAK,CAAC,GAAY,EAAE,MAAmB;IACrD,MAAM,QAAQ,GAAG,aAAa,CAAC,MAAM,CAAC,CAAA;IACtC,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAC3C,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC,6DAA6D,CAAC,CAAA;QAC1E,OAAM;IACR,CAAC;IACD,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,EAAE,sCAAsC,CAAC,CAAA;AAC7G,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `research_doctor` — read-only REP store and service check.
|
|
3
|
+
* @module dsh-research-suite/tools/doctor
|
|
4
|
+
*/
|
|
5
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
+
import type { ResolvedConfig } from '../config.ts';
|
|
7
|
+
import { type JournalReport, type RecordReport } from '../doctor.ts';
|
|
8
|
+
/** The canonical success value. */
|
|
9
|
+
export interface DoctorValue {
|
|
10
|
+
readonly ok: true;
|
|
11
|
+
readonly status: 'ok' | 'warn' | 'error';
|
|
12
|
+
readonly root: string;
|
|
13
|
+
readonly services: {
|
|
14
|
+
readonly researchEvidence: boolean;
|
|
15
|
+
readonly researchReport: boolean;
|
|
16
|
+
};
|
|
17
|
+
readonly journals: readonly JournalReport[];
|
|
18
|
+
readonly records: {
|
|
19
|
+
readonly count: number;
|
|
20
|
+
readonly malformed: number;
|
|
21
|
+
readonly latest?: RecordReport;
|
|
22
|
+
};
|
|
23
|
+
readonly hints: readonly string[];
|
|
24
|
+
}
|
|
25
|
+
/** The canonical failure value. */
|
|
26
|
+
export interface DoctorFailure {
|
|
27
|
+
readonly ok: false;
|
|
28
|
+
readonly error: {
|
|
29
|
+
readonly code: string;
|
|
30
|
+
readonly message: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Build the `research_doctor` tool.
|
|
35
|
+
* @param ctx - the plugin context (used to probe optional services).
|
|
36
|
+
* @param config - resolved suite config.
|
|
37
|
+
* @returns the tool definition.
|
|
38
|
+
*/
|
|
39
|
+
export declare function makeDoctorTool(ctx: Context, config: ResolvedConfig): import("@deepseek-ai/dsh-tools").ToolDefinition;
|
|
40
|
+
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/tools/doctor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAc,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhF,mCAAmC;AACnC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;IACjB,QAAQ,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAAA;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAA;KAAE,CAAA;IAC3F,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAA;IAC3C,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;QACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAA;KAC/B,CAAA;IACD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAClC;AAED,mCAAmC;AACnC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAA;IAClB,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CACpE;AAkED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,mDAiElE"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `research_doctor` — read-only REP store and service check.
|
|
3
|
+
* @module dsh-research-suite/tools/doctor
|
|
4
|
+
*/
|
|
5
|
+
import { defineTool } from '@deepseek-ai/dsh-tools';
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
import { inspectRep } from "../doctor.js";
|
|
8
|
+
const JOURNAL_SCHEMA = {
|
|
9
|
+
type: 'object',
|
|
10
|
+
additionalProperties: false,
|
|
11
|
+
properties: {
|
|
12
|
+
name: { type: 'string', required: true },
|
|
13
|
+
exists: { type: 'boolean', required: true },
|
|
14
|
+
bytes: { type: 'integer', required: true },
|
|
15
|
+
lines: { type: 'integer', required: true },
|
|
16
|
+
malformed: { type: 'integer', required: true },
|
|
17
|
+
scanned: { type: 'boolean', required: true },
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
const RECORD_SCHEMA = {
|
|
21
|
+
type: 'object',
|
|
22
|
+
additionalProperties: false,
|
|
23
|
+
properties: {
|
|
24
|
+
file: { type: 'string', required: true },
|
|
25
|
+
bytes: { type: 'integer', required: true },
|
|
26
|
+
recordId: { type: 'string' },
|
|
27
|
+
createdAt: { type: 'string' },
|
|
28
|
+
evidence: { type: 'integer' },
|
|
29
|
+
claims: { type: 'integer' },
|
|
30
|
+
sealed: { type: 'boolean', required: true },
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
const OUTPUT_SCHEMA = {
|
|
34
|
+
type: 'object',
|
|
35
|
+
additionalProperties: false,
|
|
36
|
+
properties: {
|
|
37
|
+
ok: { type: 'boolean', required: true },
|
|
38
|
+
status: { type: 'string' },
|
|
39
|
+
root: { type: 'string' },
|
|
40
|
+
services: {
|
|
41
|
+
type: 'object',
|
|
42
|
+
additionalProperties: false,
|
|
43
|
+
properties: {
|
|
44
|
+
researchEvidence: { type: 'boolean', required: true },
|
|
45
|
+
researchReport: { type: 'boolean', required: true },
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
journals: { type: 'array', items: JOURNAL_SCHEMA },
|
|
49
|
+
records: {
|
|
50
|
+
type: 'object',
|
|
51
|
+
additionalProperties: false,
|
|
52
|
+
properties: {
|
|
53
|
+
count: { type: 'integer', required: true },
|
|
54
|
+
malformed: { type: 'integer', required: true },
|
|
55
|
+
latest: RECORD_SCHEMA,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
hints: { type: 'array', items: { type: 'string' } },
|
|
59
|
+
error: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
additionalProperties: false,
|
|
62
|
+
properties: {
|
|
63
|
+
code: { type: 'string', required: true },
|
|
64
|
+
message: { type: 'string', required: true },
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Build the `research_doctor` tool.
|
|
71
|
+
* @param ctx - the plugin context (used to probe optional services).
|
|
72
|
+
* @param config - resolved suite config.
|
|
73
|
+
* @returns the tool definition.
|
|
74
|
+
*/
|
|
75
|
+
export function makeDoctorTool(ctx, config) {
|
|
76
|
+
return defineTool({
|
|
77
|
+
name: 'research_doctor',
|
|
78
|
+
description: [
|
|
79
|
+
'Check the local research evidence store and the mounted research services (dsh-research-suite).',
|
|
80
|
+
'',
|
|
81
|
+
'Reports the REP root, whether ctx.researchEvidence and ctx.researchReport are mounted, per-journal line/malformed counts, the number of sealed records and the latest one. Read-only: it never repairs, deletes or writes. A malformed journal is reported as an error because every count derived from it would be unreliable.',
|
|
82
|
+
].join('\n'),
|
|
83
|
+
parameters: {
|
|
84
|
+
root: { type: 'string', description: 'Override the REP root (defaults to the suite config root).' },
|
|
85
|
+
},
|
|
86
|
+
output: {
|
|
87
|
+
schema: OUTPUT_SCHEMA,
|
|
88
|
+
render: (_args, value) => {
|
|
89
|
+
const result = value;
|
|
90
|
+
if (!result.ok)
|
|
91
|
+
return [{ type: 'text', text: `research_doctor failed (${result.error.code}): ${result.error.message}` }];
|
|
92
|
+
const lines = [`research_doctor: ${result.status} (${result.root})`];
|
|
93
|
+
lines.push(`services: researchEvidence=${result.services.researchEvidence ? 'on' : 'off'} researchReport=${result.services.researchReport ? 'on' : 'off'}`);
|
|
94
|
+
for (const journal of result.journals) {
|
|
95
|
+
lines.push(` ${journal.name}: ${journal.exists ? `${journal.lines} line(s), ${journal.malformed} malformed, ${journal.bytes} B${journal.scanned ? '' : ' (not scanned)'}` : 'missing'}`);
|
|
96
|
+
}
|
|
97
|
+
const latest = result.records.latest;
|
|
98
|
+
lines.push(`records: ${result.records.count}${result.records.malformed > 0 ? `, ${result.records.malformed} malformed` : ''}${latest === undefined ? '' : `; latest ${latest.file}${latest.sealed ? ' (sealed)' : ' (unsealed)'}`}`);
|
|
99
|
+
for (const hint of result.hints)
|
|
100
|
+
lines.push(` hint: ${hint}`);
|
|
101
|
+
return [{ type: 'text', text: lines.join('\n') }];
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
async execute(input) {
|
|
105
|
+
const args = (input ?? {});
|
|
106
|
+
try {
|
|
107
|
+
const root = args.root === undefined ? config.root : path.resolve(args.root);
|
|
108
|
+
const rep = await inspectRep({ root, maxScanBytes: config.maxScanBytes });
|
|
109
|
+
const services = {
|
|
110
|
+
researchEvidence: ctx.get('researchEvidence') !== undefined,
|
|
111
|
+
researchReport: ctx.get('researchReport') !== undefined,
|
|
112
|
+
};
|
|
113
|
+
const hints = [...rep.hints];
|
|
114
|
+
if (!services.researchEvidence) {
|
|
115
|
+
hints.push('ctx.researchEvidence is not mounted: install @perrylink/dsh-research-core or enable its row; the suite depends on it.');
|
|
116
|
+
}
|
|
117
|
+
if (!services.researchReport) {
|
|
118
|
+
hints.push('ctx.researchReport is not mounted: dsh-research-report is not active, so sealed reports cannot be produced.');
|
|
119
|
+
}
|
|
120
|
+
const status = rep.status === 'error' ? 'error' : !services.researchEvidence ? 'warn' : rep.status;
|
|
121
|
+
return {
|
|
122
|
+
ok: true,
|
|
123
|
+
status,
|
|
124
|
+
root,
|
|
125
|
+
services,
|
|
126
|
+
journals: rep.journals.map(journal => ({ ...journal })),
|
|
127
|
+
records: {
|
|
128
|
+
count: rep.records.count,
|
|
129
|
+
malformed: rep.records.malformed,
|
|
130
|
+
...(rep.records.latest === undefined ? {} : { latest: { ...rep.records.latest } }),
|
|
131
|
+
},
|
|
132
|
+
hints: [...hints],
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
catch (error) {
|
|
136
|
+
return {
|
|
137
|
+
ok: false,
|
|
138
|
+
error: { code: 'IO', message: error instanceof Error ? error.message : String(error) },
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=doctor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/tools/doctor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAE,UAAU,EAAyC,MAAM,cAAc,CAAA;AAuBhF,MAAM,cAAc,GAAG;IACrB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,MAAM,EAAE,EAAE,IA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oot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,2BAA2B;AAC3B,eAAO,MAAM,OAAO,UAAU,CAAA"}
|
package/lib/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-research-suite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "One-command research suite for DeepSeek Harness: installs the core evidence, verification, systematic-review and report plugins as one bundle layer, and adds a research_doctor health check for the REP store.",
|
|
5
5
|
"author": "PerryLink contributors",
|
|
6
6
|
"license": "Apache-2.0",
|