dsh-research-report 0.3.29 → 0.3.32
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 +19 -1
- package/LICENSE +0 -0
- package/README-es.md +56 -4
- package/README-hi.md +56 -4
- package/README-pt.md +56 -4
- package/README-zh.md +56 -4
- package/README.md +57 -6
- package/THIRD_PARTY_NOTICES.md +0 -0
- package/cordis.patch.yml +0 -0
- package/lib/cli.js +0 -0
- package/lib/index.js +23 -4
- package/lib/types/assemble.d.ts +0 -0
- package/lib/types/assemble.d.ts.map +0 -0
- package/lib/types/assemble.js +0 -0
- package/lib/types/assemble.js.map +0 -0
- package/lib/types/cli.d.ts +0 -0
- package/lib/types/cli.d.ts.map +0 -0
- package/lib/types/cli.js +0 -0
- package/lib/types/cli.js.map +0 -0
- package/lib/types/config.d.ts +9 -0
- package/lib/types/config.d.ts.map +1 -1
- package/lib/types/config.js +2 -0
- package/lib/types/config.js.map +1 -1
- package/lib/types/doi.d.ts +0 -0
- package/lib/types/doi.d.ts.map +0 -0
- package/lib/types/doi.js +0 -0
- package/lib/types/doi.js.map +0 -0
- package/lib/types/gather.d.ts +0 -0
- package/lib/types/gather.d.ts.map +0 -0
- package/lib/types/gather.js +0 -0
- package/lib/types/gather.js.map +0 -0
- package/lib/types/index.d.ts +0 -0
- package/lib/types/index.d.ts.map +0 -0
- package/lib/types/index.js +0 -0
- package/lib/types/index.js.map +0 -0
- package/lib/types/ledger.d.ts +0 -0
- package/lib/types/ledger.d.ts.map +0 -0
- package/lib/types/ledger.js +0 -0
- package/lib/types/ledger.js.map +0 -0
- package/lib/types/provider-local.d.ts +11 -1
- package/lib/types/provider-local.d.ts.map +1 -1
- package/lib/types/provider-local.js +30 -4
- package/lib/types/provider-local.js.map +1 -1
- package/lib/types/service.d.ts +0 -0
- package/lib/types/service.d.ts.map +0 -0
- package/lib/types/service.js +0 -0
- package/lib/types/service.js.map +0 -0
- package/lib/types/tools/evidence-add.d.ts +0 -0
- package/lib/types/tools/evidence-add.d.ts.map +0 -0
- package/lib/types/tools/evidence-add.js +0 -0
- package/lib/types/tools/evidence-add.js.map +0 -0
- package/lib/types/tools/ledger-query.d.ts +0 -0
- package/lib/types/tools/ledger-query.d.ts.map +0 -0
- package/lib/types/tools/ledger-query.js +0 -0
- package/lib/types/tools/ledger-query.js.map +0 -0
- package/lib/types/tools/research-report.d.ts +0 -0
- package/lib/types/tools/research-report.d.ts.map +0 -0
- package/lib/types/tools/research-report.js +0 -0
- package/lib/types/tools/research-report.js.map +0 -0
- package/lib/types/verify-sealed.d.ts +0 -0
- package/lib/types/verify-sealed.d.ts.map +0 -0
- package/lib/types/verify-sealed.js +0 -0
- package/lib/types/verify-sealed.js.map +0 -0
- package/lib/types/verify.d.ts +0 -0
- package/lib/types/verify.d.ts.map +0 -0
- package/lib/types/verify.js +0 -0
- package/lib/types/verify.js.map +0 -0
- package/lib/types/version.d.ts +0 -0
- package/lib/types/version.d.ts.map +0 -0
- package/lib/types/version.js +0 -0
- package/lib/types/version.js.map +0 -0
- package/lib/verify-sealed-Dylli1KR.js +0 -0
- package/package.json +31 -29
- package/src/assemble.ts +0 -0
- package/src/cli.ts +0 -0
- package/src/config.ts +11 -0
- package/src/doi.ts +0 -0
- package/src/gather.ts +0 -0
- package/src/index.ts +0 -0
- package/src/ledger.ts +0 -0
- package/src/provider-local.ts +37 -4
- package/src/service.ts +0 -0
- package/src/tools/evidence-add.ts +0 -0
- package/src/tools/ledger-query.ts +0 -0
- package/src/tools/research-report.ts +0 -0
- package/src/verify-sealed.ts +0 -0
- package/src/verify.ts +0 -0
- package/src/version.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1] - 2026-11-05
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- **Host 0.2.2 line support.** devDependencies move from 0.2.1-rc.2 to 0.2.2-rc.1, cordis to 4.1.0 / include 1.1.0 / loader 1.1.0, and schemastery to ~3.19.0 so a single copy resolves against `@deepseek-ai/dsh-llm` 0.2.2. `engines.dsh` appends `>=0.2.2-0 <0.3.0` (append-only) and `engines.node` becomes `^22.19.0 || >=24.9.0`.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **Tool dispatch uses the 0.2.2 batch executor.** `ctx.tools.execute()` now takes `{ calls, signal }` with JSON-encoded `arguments` and settles `{ results }`; the native executor is mounted in the test harness and listed in the loader composition rows because raw batch execution moved behind a pluggable executor in 0.2.2.
|
|
12
|
+
- **Loader composition surfaces row failures again.** cordis 4.1.0 settles a failed row on its fiber instead of rejecting `loader.await()`; the runner awaits every row fiber so a broken row fails loud.
|
|
13
|
+
- Add `@deepseek-ai/dsh-package-manifest`: `@deepseek-ai/dsh-llm` 0.2.2's published types import it but its manifest does not declare it.
|
|
14
|
+
|
|
15
|
+
## [0.3.30] - 2026-10-22
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **Workspace-path evidence now resolves against the session's working directory (issue #23).** The provider captured `process.cwd()` at mount and used it for every `evidence_add` path origin. On DSH Desktop the main process runs with its cwd set to the profile directory, so a real workspace file was read as `~/.dsh/profiles/<name>/...` (`ORIGIN_UNREADABLE`) and an absolute path was rejected as outside the workspace (`ORIGIN_OUTSIDE_WORKSPACE`). The provider now resolves the root per call: an explicit `workspaceRoot` config wins, otherwise the host's session-scoped `workingDirectory` service, and only then the launch cwd. A missing or throwing host service falls back instead of failing the tool. `workspaceRoot` is documented in all five READMEs; tests cover the session directory, the explicit override, and the fallback.
|
|
20
|
+
|
|
3
21
|
## [0.3.29] - 2026-10-19
|
|
4
22
|
|
|
5
23
|
### Fixed
|
|
@@ -89,7 +107,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
89
107
|
- Correct the release date in the previous section, which was stamped with the literal string `undefined` by the release stamper. No content or behaviour change; the version is bumped only because npm will not republish an existing version.
|
|
90
108
|
|
|
91
109
|
|
|
92
|
-
## [
|
|
110
|
+
## [0.3.32] - 2026-11-05
|
|
93
111
|
|
|
94
112
|
## [0.3.18] - 2026-10-04
|
|
95
113
|
|
package/LICENSE
CHANGED
|
File without changes
|
package/README-es.md
CHANGED
|
@@ -55,9 +55,10 @@ Un motor de informes de investigación verificables para DeepSeek Harness.
|
|
|
55
55
|
|
|
56
56
|
Cada afirmación (claim) queda vinculada a instantáneas de evidencia inmutables, se verifica byte a byte y se sella en un informe versionado cuyo hash de manifiesto cualquiera puede recomputar.
|
|
57
57
|
|
|
58
|
-

|
|
59
|
+
|
|
60
|
+
*Resumen del flujo: pregunta → fuentes selladas → informe. Los ejemplos siguientes usan la superficie de comandos real.*
|
|
59
61
|
|
|
60
|
-

|
|
61
62
|
|
|
62
63
|
*La misma ejecución, animada.*
|
|
63
64
|
|
|
@@ -115,6 +116,54 @@ research_report({ topic: "示例行业概览", sections: [...], claims: [...], e
|
|
|
115
116
|
ledger_query({ claimId: "c1" }) # vínculos + veredicto
|
|
116
117
|
```
|
|
117
118
|
|
|
119
|
+
### Ejemplos
|
|
120
|
+
|
|
121
|
+
Son los puntos de entrada reales; instala y llama a uno.
|
|
122
|
+
|
|
123
|
+
#### Ejemplo detallado
|
|
124
|
+
|
|
125
|
+
**Comando**
|
|
126
|
+
|
|
127
|
+
~~~sh
|
|
128
|
+
research_report({
|
|
129
|
+
topic: "示例行业概览",
|
|
130
|
+
sections: [{ heading: "市场规模", paragraphs: [{ text: "2025 年全球示例行业市场规模为 1,280 亿元。", claimIds: ["c1"] }] }],
|
|
131
|
+
claims: [{ id: "c1", text: "市场规模为 1,280 亿元", evidenceIds: ["ev-5dc0a84d0e48"] }],
|
|
132
|
+
evidenceRefs: ["ev-5dc0a84d0e48", "ev-c6cf024e0916", "ev-61f8f4533cb7"]
|
|
133
|
+
})
|
|
134
|
+
~~~
|
|
135
|
+
|
|
136
|
+
**Salida**
|
|
137
|
+
|
|
138
|
+
~~~text
|
|
139
|
+
report sealed: /tmp/rr-test-4U2mlF/reports/示例行业概览/20261019-124904
|
|
140
|
+
seal (sha256 of manifest.json): 5c85c97597096ced281ca191d7abaaf7434f18b397d35ac81c31aa364a3b12f9
|
|
141
|
+
claims: 1 verified / 0 unverified / 0 contradicted / 0 insufficient / 0 disproven (of 1); evidence bound: 3
|
|
142
|
+
~~~
|
|
143
|
+
|
|
144
|
+
*Observado en `README.md:112-118,150; test/index.spec.ts:166-177; src/tools/research-report.ts:170-175`*
|
|
145
|
+
|
|
146
|
+
#### Rama de fallo
|
|
147
|
+
|
|
148
|
+
**Entrada**
|
|
149
|
+
|
|
150
|
+
~~~text
|
|
151
|
+
{"topic":"probe","sections":[{"heading":"Growth","paragraphs":[{"text":"Growth was 42%.","claimIds":["c1"]}]}],"claims":[{"id":"c1","text":"Growth was 42%.","evidenceIds":[]}]}
|
|
152
|
+
~~~
|
|
153
|
+
|
|
154
|
+
**Salida**
|
|
155
|
+
|
|
156
|
+
~~~text
|
|
157
|
+
edge-case (no throw): isError=false; kind=sealed; verdicts[0]={"claimId":"c1","status":"unverified","note":"claim binds no evidence snapshot"}; counts={"verified":0,"unverified":1,"contradicted":0,"insufficient":0,"disproven":0}; evidenceCount=0; report.md marker=Growth was 42%. [未核实]
|
|
158
|
+
~~~
|
|
159
|
+
|
|
160
|
+
*Observado en `plugins/dsh-research-report/src/verify.ts:173-175 (unverified verdict); plugins/dsh-research-report/src/assemble.ts:209-220 (visible mark); plugins/dsh-research-report/README.md:87 (honest gaps); exercised through plugins/dsh-research-report/test/harness.ts`*
|
|
161
|
+
|
|
162
|
+
#### Ejemplos breves
|
|
163
|
+
|
|
164
|
+
- `research_report`
|
|
165
|
+
- `ledger_query`
|
|
166
|
+
|
|
118
167
|
## Configuration
|
|
119
168
|
|
|
120
169
|
Todos los ajustes son campos `Config` de Schemastery; los valores inválidos fallan ruidosamente al cargar el profile. Las raíces relativas se resuelven contra el directorio de trabajo del harness (el workspace).
|
|
@@ -124,6 +173,7 @@ Todos los ajustes son campos `Config` de Schemastery; los valores inválidos fal
|
|
|
124
173
|
| `enabled` | `true` | Interruptor maestro; `false` no monta nada. |
|
|
125
174
|
| `ledgerRoot` | `.research-ledger` | Directorio del libro de evidencia (objetos + diarios JSONL). |
|
|
126
175
|
| `reportRoot` | `research-reports` | Raíz de informes sellados (versionados por tema y timestamp). |
|
|
176
|
+
| `workspaceRoot` | *(directorio de trabajo de la sesión del host)* | Raíz para la evidencia por ruta; por defecto el directorio de la sesión y luego el cwd del harness. |
|
|
127
177
|
| `maxEvidenceBytes` | `2097152` | Tope duro de bytes UTF-8 por instantánea de evidencia. |
|
|
128
178
|
| `maxEvidencePerReport` | `200` | Tope duro de evidencias vinculadas a un informe. |
|
|
129
179
|
| `fetchTimeoutMs` | `20000` | Plazo (ms) de cada `ctx.web` fetch durante la captura. |
|
|
@@ -195,7 +245,7 @@ pnpm pack
|
|
|
195
245
|
|
|
196
246
|
- [PerryLink](https://github.com/PerryLink) — autor original y mantenedor: arquitectura del plugin, ledger de evidencias, verificación a nivel de byte, informes sellados, documentación en cinco idiomas y automatización de CI/publicación.
|
|
197
247
|
|
|
198
|
-
##
|
|
248
|
+
## PerryLink DSH Plugin Family
|
|
199
249
|
|
|
200
250
|
Este proyecto forma parte de la familia de plugins de DeepSeek Harness de [PerryLink](https://github.com/PerryLink). El registro permanece plegado abajo para que cada README conserve una primera pantalla corta; expándelo para ver cada fila y su estado.
|
|
201
251
|
|
|
@@ -300,7 +350,9 @@ Este proyecto forma parte de la familia de plugins de DeepSeek Harness de [Perry
|
|
|
300
350
|
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 RETIRADO — ver el README del repositorio |
|
|
301
351
|
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 RETIRADO — ver el README del repositorio |
|
|
302
352
|
|
|
303
|
-
</details
|
|
353
|
+
</details>
|
|
354
|
+
|
|
355
|
+
## License
|
|
304
356
|
|
|
305
357
|
Apache-2.0 — ver [LICENSE](LICENSE).
|
|
306
358
|
|
package/README-hi.md
CHANGED
|
@@ -55,9 +55,10 @@ DeepSeek Harness के लिए सत्यापन-योग्य (verifia
|
|
|
55
55
|
|
|
56
56
|
हर claim अपरिवर्तनीय साक्ष्य-स्नैपशॉट से बंधता है, बाइट-दर-बाइट जाँचा जाता है, और एक संस्करणित (versioned) रिपोर्ट में सील होता है — जिसका manifest हैश कोई भी दोबारा गिनकर सत्यापित कर सकता है।
|
|
57
57
|
|
|
58
|
-

|
|
59
|
+
|
|
60
|
+
*कार्यप्रवाह: प्रश्न → सीलबंद स्रोत → रिपोर्ट। नीचे के उदाहरण वास्तविक कमांड सतह का उपयोग करते हैं।*
|
|
59
61
|
|
|
60
|
-

|
|
61
62
|
|
|
62
63
|
*वही रन, एनिमेटेड।*
|
|
63
64
|
|
|
@@ -115,6 +116,54 @@ research_report({ topic: "示例行业概览", sections: [...], claims: [...], e
|
|
|
115
116
|
ledger_query({ claimId: "c1" }) # बाइंडिंग + निर्णय
|
|
116
117
|
```
|
|
117
118
|
|
|
119
|
+
### उदाहरण
|
|
120
|
+
|
|
121
|
+
ये वास्तविक प्रवेश बिंदु हैं; इंस्टॉल के बाद एक चलाएँ।
|
|
122
|
+
|
|
123
|
+
#### विस्तृत उदाहरण
|
|
124
|
+
|
|
125
|
+
**कमांड**
|
|
126
|
+
|
|
127
|
+
~~~sh
|
|
128
|
+
research_report({
|
|
129
|
+
topic: "示例行业概览",
|
|
130
|
+
sections: [{ heading: "市场规模", paragraphs: [{ text: "2025 年全球示例行业市场规模为 1,280 亿元。", claimIds: ["c1"] }] }],
|
|
131
|
+
claims: [{ id: "c1", text: "市场规模为 1,280 亿元", evidenceIds: ["ev-5dc0a84d0e48"] }],
|
|
132
|
+
evidenceRefs: ["ev-5dc0a84d0e48", "ev-c6cf024e0916", "ev-61f8f4533cb7"]
|
|
133
|
+
})
|
|
134
|
+
~~~
|
|
135
|
+
|
|
136
|
+
**आउटपुट**
|
|
137
|
+
|
|
138
|
+
~~~text
|
|
139
|
+
report sealed: /tmp/rr-test-4U2mlF/reports/示例行业概览/20261019-124904
|
|
140
|
+
seal (sha256 of manifest.json): 5c85c97597096ced281ca191d7abaaf7434f18b397d35ac81c31aa364a3b12f9
|
|
141
|
+
claims: 1 verified / 0 unverified / 0 contradicted / 0 insufficient / 0 disproven (of 1); evidence bound: 3
|
|
142
|
+
~~~
|
|
143
|
+
|
|
144
|
+
*स्रोत `README.md:112-118,150; test/index.spec.ts:166-177; src/tools/research-report.ts:170-175`*
|
|
145
|
+
|
|
146
|
+
#### विफलता शाखा
|
|
147
|
+
|
|
148
|
+
**इनपुट**
|
|
149
|
+
|
|
150
|
+
~~~text
|
|
151
|
+
{"topic":"probe","sections":[{"heading":"Growth","paragraphs":[{"text":"Growth was 42%.","claimIds":["c1"]}]}],"claims":[{"id":"c1","text":"Growth was 42%.","evidenceIds":[]}]}
|
|
152
|
+
~~~
|
|
153
|
+
|
|
154
|
+
**आउटपुट**
|
|
155
|
+
|
|
156
|
+
~~~text
|
|
157
|
+
edge-case (no throw): isError=false; kind=sealed; verdicts[0]={"claimId":"c1","status":"unverified","note":"claim binds no evidence snapshot"}; counts={"verified":0,"unverified":1,"contradicted":0,"insufficient":0,"disproven":0}; evidenceCount=0; report.md marker=Growth was 42%. [未核实]
|
|
158
|
+
~~~
|
|
159
|
+
|
|
160
|
+
*स्रोत `plugins/dsh-research-report/src/verify.ts:173-175 (unverified verdict); plugins/dsh-research-report/src/assemble.ts:209-220 (visible mark); plugins/dsh-research-report/README.md:87 (honest gaps); exercised through plugins/dsh-research-report/test/harness.ts`*
|
|
161
|
+
|
|
162
|
+
#### संक्षिप्त उदाहरण
|
|
163
|
+
|
|
164
|
+
- `research_report`
|
|
165
|
+
- `ledger_query`
|
|
166
|
+
|
|
118
167
|
## Configuration
|
|
119
168
|
|
|
120
169
|
सभी ट्यूनेबल Schemastery `Config` फ़ील्ड हैं; अमान्य मान profile लोड पर ठोंककर (loudly) असफल होते हैं। सापेक्ष रूट harness वर्किंग डायरेक्टरी (workspace) के सापेक्ष resolve होते हैं।
|
|
@@ -124,6 +173,7 @@ ledger_query({ claimId: "c1" }) # ब
|
|
|
124
173
|
| `enabled` | `true` | मास्टर स्विच; `false` पर कुछ भी माउंट नहीं होता। |
|
|
125
174
|
| `ledgerRoot` | `.research-ledger` | साक्ष्य बही-खाता डायरेक्टरी (ऑब्जेक्ट + JSONL जर्नल)। |
|
|
126
175
|
| `reportRoot` | `research-reports` | सील्ड रिपोर्ट रूट (विषय + टाइमस्टैम्प से संस्करणित)। |
|
|
176
|
+
| `workspaceRoot` | *(होस्ट सत्र की कार्यशील निर्देशिका)* | पथ-आधारित साक्ष्य का रूट; डिफ़ॉल्ट सत्र निर्देशिका, फिर हार्नेस cwd। |
|
|
127
177
|
| `maxEvidenceBytes` | `2097152` | एक साक्ष्य स्नैपशॉट की UTF-8 बाइट हार्ड सीमा। |
|
|
128
178
|
| `maxEvidencePerReport` | `200` | एक रिपोर्ट में बंधने वाली साक्ष्य-वस्तुओं की हार्ड सीमा। |
|
|
129
179
|
| `fetchTimeoutMs` | `20000` | कैप्चर के दौरान एक `ctx.web` fetch की समय-सीमा (ms)। |
|
|
@@ -195,7 +245,7 @@ pnpm pack
|
|
|
195
245
|
|
|
196
246
|
- [PerryLink](https://github.com/PerryLink) — मूल लेखक और अनुरक्षक: प्लगइन आर्किटेक्चर, साक्ष्य लेजर, बाइट-स्तरीय सत्यापन, सीलबंद रिपोर्ट, पाँच-भाषा दस्तावेज़, CI और रिलीज़ स्वचालन।
|
|
197
247
|
|
|
198
|
-
## PerryLink DSH
|
|
248
|
+
## PerryLink DSH Plugin Family
|
|
199
249
|
|
|
200
250
|
यह प्रोजेक्ट [PerryLink](https://github.com/PerryLink) के DeepSeek Harness प्लगइन परिवार का हिस्सा है। पूरी सूची नीचे संक्षिप्त रखी गई है ताकि हर README की पहली स्क्रीन छोटी रहे; हर पंक्ति और उसकी स्थिति देखने के लिए इसे खोलें।
|
|
201
251
|
|
|
@@ -300,7 +350,9 @@ pnpm pack
|
|
|
300
350
|
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 सेवानिवृत्त — रिपॉज़िटरी README देखें |
|
|
301
351
|
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 सेवानिवृत्त — रिपॉज़िटरी README देखें |
|
|
302
352
|
|
|
303
|
-
</details
|
|
353
|
+
</details>
|
|
354
|
+
|
|
355
|
+
## License
|
|
304
356
|
|
|
305
357
|
Apache-2.0 — देखें [LICENSE](LICENSE)।
|
|
306
358
|
|
package/README-pt.md
CHANGED
|
@@ -55,9 +55,10 @@ Um motor de relatórios de pesquisa verificáveis para DeepSeek Harness.
|
|
|
55
55
|
|
|
56
56
|
Cada afirmação (claim) fica vinculada a snapshots de evidência imutáveis, é verificada byte a byte e é selada num relatório versionado cujo hash de manifesto qualquer pessoa pode recomputar.
|
|
57
57
|
|
|
58
|
-

|
|
59
|
+
|
|
60
|
+
*Visão geral do fluxo: pergunta → fontes seladas → relatório. Os exemplos abaixo usam a superfície real de comandos.*
|
|
59
61
|
|
|
60
|
-

|
|
61
62
|
|
|
62
63
|
*A mesma execução, animada.*
|
|
63
64
|
|
|
@@ -115,6 +116,54 @@ research_report({ topic: "示例行业概览", sections: [...], claims: [...], e
|
|
|
115
116
|
ledger_query({ claimId: "c1" }) # vínculos + veredito
|
|
116
117
|
```
|
|
117
118
|
|
|
119
|
+
### Exemplos
|
|
120
|
+
|
|
121
|
+
São os pontos de entrada reais; instale e chame um.
|
|
122
|
+
|
|
123
|
+
#### Exemplo detalhado
|
|
124
|
+
|
|
125
|
+
**Comando**
|
|
126
|
+
|
|
127
|
+
~~~sh
|
|
128
|
+
research_report({
|
|
129
|
+
topic: "示例行业概览",
|
|
130
|
+
sections: [{ heading: "市场规模", paragraphs: [{ text: "2025 年全球示例行业市场规模为 1,280 亿元。", claimIds: ["c1"] }] }],
|
|
131
|
+
claims: [{ id: "c1", text: "市场规模为 1,280 亿元", evidenceIds: ["ev-5dc0a84d0e48"] }],
|
|
132
|
+
evidenceRefs: ["ev-5dc0a84d0e48", "ev-c6cf024e0916", "ev-61f8f4533cb7"]
|
|
133
|
+
})
|
|
134
|
+
~~~
|
|
135
|
+
|
|
136
|
+
**Saída**
|
|
137
|
+
|
|
138
|
+
~~~text
|
|
139
|
+
report sealed: /tmp/rr-test-4U2mlF/reports/示例行业概览/20261019-124904
|
|
140
|
+
seal (sha256 of manifest.json): 5c85c97597096ced281ca191d7abaaf7434f18b397d35ac81c31aa364a3b12f9
|
|
141
|
+
claims: 1 verified / 0 unverified / 0 contradicted / 0 insufficient / 0 disproven (of 1); evidence bound: 3
|
|
142
|
+
~~~
|
|
143
|
+
|
|
144
|
+
*Observado em `README.md:112-118,150; test/index.spec.ts:166-177; src/tools/research-report.ts:170-175`*
|
|
145
|
+
|
|
146
|
+
#### Ramo de falha
|
|
147
|
+
|
|
148
|
+
**Entrada**
|
|
149
|
+
|
|
150
|
+
~~~text
|
|
151
|
+
{"topic":"probe","sections":[{"heading":"Growth","paragraphs":[{"text":"Growth was 42%.","claimIds":["c1"]}]}],"claims":[{"id":"c1","text":"Growth was 42%.","evidenceIds":[]}]}
|
|
152
|
+
~~~
|
|
153
|
+
|
|
154
|
+
**Saída**
|
|
155
|
+
|
|
156
|
+
~~~text
|
|
157
|
+
edge-case (no throw): isError=false; kind=sealed; verdicts[0]={"claimId":"c1","status":"unverified","note":"claim binds no evidence snapshot"}; counts={"verified":0,"unverified":1,"contradicted":0,"insufficient":0,"disproven":0}; evidenceCount=0; report.md marker=Growth was 42%. [未核实]
|
|
158
|
+
~~~
|
|
159
|
+
|
|
160
|
+
*Observado em `plugins/dsh-research-report/src/verify.ts:173-175 (unverified verdict); plugins/dsh-research-report/src/assemble.ts:209-220 (visible mark); plugins/dsh-research-report/README.md:87 (honest gaps); exercised through plugins/dsh-research-report/test/harness.ts`*
|
|
161
|
+
|
|
162
|
+
#### Exemplos breves
|
|
163
|
+
|
|
164
|
+
- `research_report`
|
|
165
|
+
- `ledger_query`
|
|
166
|
+
|
|
118
167
|
## Configuration
|
|
119
168
|
|
|
120
169
|
Todos os ajustes são campos `Config` de Schemastery; valores inválidos falham ruidosamente no carregamento do profile. Raízes relativas resolvem contra o diretório de trabalho do harness (o workspace).
|
|
@@ -124,6 +173,7 @@ Todos os ajustes são campos `Config` de Schemastery; valores inválidos falham
|
|
|
124
173
|
| `enabled` | `true` | Interruptor mestre; `false` não monta nada. |
|
|
125
174
|
| `ledgerRoot` | `.research-ledger` | Diretório do livro de evidência (objetos + diários JSONL). |
|
|
126
175
|
| `reportRoot` | `research-reports` | Raiz dos relatórios selados (versionados por tópico e timestamp). |
|
|
176
|
+
| `workspaceRoot` | *(diretório de trabalho da sessão do host)* | Raiz para evidência por caminho; padrão: diretório da sessão e depois o cwd do harness. |
|
|
127
177
|
| `maxEvidenceBytes` | `2097152` | Teto rígido de bytes UTF-8 por snapshot de evidência. |
|
|
128
178
|
| `maxEvidencePerReport` | `200` | Teto rígido de evidências vinculadas a um relatório. |
|
|
129
179
|
| `fetchTimeoutMs` | `20000` | Prazo (ms) de cada `ctx.web` fetch durante a captura. |
|
|
@@ -195,7 +245,7 @@ pnpm pack
|
|
|
195
245
|
|
|
196
246
|
- [PerryLink](https://github.com/PerryLink) — autor original e mantenedor: arquitetura do plugin, ledger de evidências, verificação em nível de byte, relatórios selados, documentação em cinco idiomas e automação de CI/lançamento.
|
|
197
247
|
|
|
198
|
-
##
|
|
248
|
+
## PerryLink DSH Plugin Family
|
|
199
249
|
|
|
200
250
|
Este projeto faz parte da família de plugins do DeepSeek Harness da [PerryLink](https://github.com/PerryLink). O registro fica recolhido abaixo para que cada README mantenha uma primeira tela curta; expanda para ver cada linha e seu status.
|
|
201
251
|
|
|
@@ -300,7 +350,9 @@ Este projeto faz parte da família de plugins do DeepSeek Harness da [PerryLink]
|
|
|
300
350
|
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 RETIRADO — ver o README do repositório |
|
|
301
351
|
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 RETIRADO — ver o README do repositório |
|
|
302
352
|
|
|
303
|
-
</details
|
|
353
|
+
</details>
|
|
354
|
+
|
|
355
|
+
## License
|
|
304
356
|
|
|
305
357
|
Apache-2.0 — ver [LICENSE](LICENSE).
|
|
306
358
|
|
package/README-zh.md
CHANGED
|
@@ -55,9 +55,10 @@ DeepSeek Harness 的可核查研究报告引擎。
|
|
|
55
55
|
|
|
56
56
|
每条结论(claim)都绑定到不可变的证据快照,逐字节核查,并封存进版本化报告——其 manifest 哈希任何人都可重算验证。
|
|
57
57
|
|
|
58
|
-

|
|
59
|
+
|
|
60
|
+
*工作流概览:问题 → 封存来源 → 报告。下面的示例使用实际命令面。*
|
|
59
61
|
|
|
60
|
-

|
|
61
62
|
|
|
62
63
|
*同一次运行,动图版。*
|
|
63
64
|
|
|
@@ -115,6 +116,54 @@ research_report({ topic: "示例行业概览", sections: [...], claims: [...], e
|
|
|
115
116
|
ledger_query({ claimId: "c1" }) # 绑定关系 + 核查结论
|
|
116
117
|
```
|
|
117
118
|
|
|
119
|
+
### 示例
|
|
120
|
+
|
|
121
|
+
以下为插件真实入口;安装后调用一个即可。
|
|
122
|
+
|
|
123
|
+
#### 详细示例
|
|
124
|
+
|
|
125
|
+
**命令**
|
|
126
|
+
|
|
127
|
+
~~~sh
|
|
128
|
+
research_report({
|
|
129
|
+
topic: "示例行业概览",
|
|
130
|
+
sections: [{ heading: "市场规模", paragraphs: [{ text: "2025 年全球示例行业市场规模为 1,280 亿元。", claimIds: ["c1"] }] }],
|
|
131
|
+
claims: [{ id: "c1", text: "市场规模为 1,280 亿元", evidenceIds: ["ev-5dc0a84d0e48"] }],
|
|
132
|
+
evidenceRefs: ["ev-5dc0a84d0e48", "ev-c6cf024e0916", "ev-61f8f4533cb7"]
|
|
133
|
+
})
|
|
134
|
+
~~~
|
|
135
|
+
|
|
136
|
+
**输出**
|
|
137
|
+
|
|
138
|
+
~~~text
|
|
139
|
+
report sealed: /tmp/rr-test-4U2mlF/reports/示例行业概览/20261019-124904
|
|
140
|
+
seal (sha256 of manifest.json): 5c85c97597096ced281ca191d7abaaf7434f18b397d35ac81c31aa364a3b12f9
|
|
141
|
+
claims: 1 verified / 0 unverified / 0 contradicted / 0 insufficient / 0 disproven (of 1); evidence bound: 3
|
|
142
|
+
~~~
|
|
143
|
+
|
|
144
|
+
*来源 `README.md:112-118,150; test/index.spec.ts:166-177; src/tools/research-report.ts:170-175`*
|
|
145
|
+
|
|
146
|
+
#### 失败分支
|
|
147
|
+
|
|
148
|
+
**输入**
|
|
149
|
+
|
|
150
|
+
~~~text
|
|
151
|
+
{"topic":"probe","sections":[{"heading":"Growth","paragraphs":[{"text":"Growth was 42%.","claimIds":["c1"]}]}],"claims":[{"id":"c1","text":"Growth was 42%.","evidenceIds":[]}]}
|
|
152
|
+
~~~
|
|
153
|
+
|
|
154
|
+
**输出**
|
|
155
|
+
|
|
156
|
+
~~~text
|
|
157
|
+
edge-case (no throw): isError=false; kind=sealed; verdicts[0]={"claimId":"c1","status":"unverified","note":"claim binds no evidence snapshot"}; counts={"verified":0,"unverified":1,"contradicted":0,"insufficient":0,"disproven":0}; evidenceCount=0; report.md marker=Growth was 42%. [未核实]
|
|
158
|
+
~~~
|
|
159
|
+
|
|
160
|
+
*来源 `plugins/dsh-research-report/src/verify.ts:173-175 (unverified verdict); plugins/dsh-research-report/src/assemble.ts:209-220 (visible mark); plugins/dsh-research-report/README.md:87 (honest gaps); exercised through plugins/dsh-research-report/test/harness.ts`*
|
|
161
|
+
|
|
162
|
+
#### 简短示例
|
|
163
|
+
|
|
164
|
+
- `research_report`
|
|
165
|
+
- `ledger_query`
|
|
166
|
+
|
|
118
167
|
## Configuration
|
|
119
168
|
|
|
120
169
|
全部可调项都是 Schemastery `Config` 字段;非法值在加载期响亮失败。相对路径根目录相对 harness 工作目录(workspace)解析。
|
|
@@ -124,6 +173,7 @@ ledger_query({ claimId: "c1" }) # 绑
|
|
|
124
173
|
| `enabled` | `true` | 总开关;`false` 时什么都不挂载。 |
|
|
125
174
|
| `ledgerRoot` | `.research-ledger` | 证据账本目录(对象 + JSONL 日志)。 |
|
|
126
175
|
| `reportRoot` | `research-reports` | 封存报告根目录(按主题 + 时间戳版本化)。 |
|
|
176
|
+
| `workspaceRoot` | *(宿主会话工作目录)* | 路径证据的工作区根;默认取会话工作目录,其次取 harness cwd。 |
|
|
127
177
|
| `maxEvidenceBytes` | `2097152` | 单条证据快照的 UTF-8 字节硬上限。 |
|
|
128
178
|
| `maxEvidencePerReport` | `200` | 单份报告可绑定证据条数硬上限。 |
|
|
129
179
|
| `fetchTimeoutMs` | `20000` | 抓取时单次 `ctx.web` fetch 的超时(毫秒)。 |
|
|
@@ -195,7 +245,7 @@ pnpm pack
|
|
|
195
245
|
|
|
196
246
|
- [PerryLink](https://github.com/PerryLink) —— 原作者与维护者:插件架构、证据账本、字节级核验、密封报告、五语文档、CI 与发布自动化。
|
|
197
247
|
|
|
198
|
-
## PerryLink DSH
|
|
248
|
+
## PerryLink DSH Plugin Family
|
|
199
249
|
|
|
200
250
|
本项目是 [PerryLink](https://github.com/PerryLink) 维护的 DeepSeek Harness 插件家族成员。完整名单默认折叠,避免每个 README 的首屏被长表淹没;点击展开可查看每一行及其状态。
|
|
201
251
|
|
|
@@ -300,7 +350,9 @@ pnpm pack
|
|
|
300
350
|
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 已退役 — 见仓库 README |
|
|
301
351
|
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 已退役 — 见仓库 README |
|
|
302
352
|
|
|
303
|
-
</details
|
|
353
|
+
</details>
|
|
354
|
+
|
|
355
|
+
## License
|
|
304
356
|
|
|
305
357
|
Apache-2.0 — 见 [LICENSE](LICENSE)。
|
|
306
358
|
|
package/README.md
CHANGED
|
@@ -56,11 +56,11 @@ A verifiable research-report engine for DeepSeek Harness.
|
|
|
56
56
|
|
|
57
57
|
Every claim is bound to immutable evidence snapshots, verified byte-for-byte, and sealed into a versioned report whose manifest hash anyone can recompute.
|
|
58
58
|
|
|
59
|
-

|
|
60
|
+
|
|
61
|
+
*Workflow overview: question → sealed sources → report. The examples below use the real command surface.*
|
|
60
62
|
|
|
61
|
-

|
|
62
63
|
|
|
63
|
-
*The same run, animated.*
|
|
64
64
|
|
|
65
65
|
## Compatibility
|
|
66
66
|
|
|
@@ -117,6 +117,54 @@ research_report({ topic: "示例行业概览", sections: [...], claims: [...], e
|
|
|
117
117
|
ledger_query({ claimId: "c1" }) # bindings + verdict
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
+
### Examples
|
|
121
|
+
|
|
122
|
+
These are the plugin's real entry points; install once, then call one.
|
|
123
|
+
|
|
124
|
+
#### Detailed example
|
|
125
|
+
|
|
126
|
+
**Command**
|
|
127
|
+
|
|
128
|
+
~~~sh
|
|
129
|
+
research_report({
|
|
130
|
+
topic: "示例行业概览",
|
|
131
|
+
sections: [{ heading: "市场规模", paragraphs: [{ text: "2025 年全球示例行业市场规模为 1,280 亿元。", claimIds: ["c1"] }] }],
|
|
132
|
+
claims: [{ id: "c1", text: "市场规模为 1,280 亿元", evidenceIds: ["ev-5dc0a84d0e48"] }],
|
|
133
|
+
evidenceRefs: ["ev-5dc0a84d0e48", "ev-c6cf024e0916", "ev-61f8f4533cb7"]
|
|
134
|
+
})
|
|
135
|
+
~~~
|
|
136
|
+
|
|
137
|
+
**Output**
|
|
138
|
+
|
|
139
|
+
~~~text
|
|
140
|
+
report sealed: /tmp/rr-test-4U2mlF/reports/示例行业概览/20261019-124904
|
|
141
|
+
seal (sha256 of manifest.json): 5c85c97597096ced281ca191d7abaaf7434f18b397d35ac81c31aa364a3b12f9
|
|
142
|
+
claims: 1 verified / 0 unverified / 0 contradicted / 0 insufficient / 0 disproven (of 1); evidence bound: 3
|
|
143
|
+
~~~
|
|
144
|
+
|
|
145
|
+
*Observed from `README.md:112-118,150; test/index.spec.ts:166-177; src/tools/research-report.ts:170-175`*
|
|
146
|
+
|
|
147
|
+
#### Failure branch
|
|
148
|
+
|
|
149
|
+
**Input**
|
|
150
|
+
|
|
151
|
+
~~~text
|
|
152
|
+
{"topic":"probe","sections":[{"heading":"Growth","paragraphs":[{"text":"Growth was 42%.","claimIds":["c1"]}]}],"claims":[{"id":"c1","text":"Growth was 42%.","evidenceIds":[]}]}
|
|
153
|
+
~~~
|
|
154
|
+
|
|
155
|
+
**Output**
|
|
156
|
+
|
|
157
|
+
~~~text
|
|
158
|
+
edge-case (no throw): isError=false; kind=sealed; verdicts[0]={"claimId":"c1","status":"unverified","note":"claim binds no evidence snapshot"}; counts={"verified":0,"unverified":1,"contradicted":0,"insufficient":0,"disproven":0}; evidenceCount=0; report.md marker=Growth was 42%. [未核实]
|
|
159
|
+
~~~
|
|
160
|
+
|
|
161
|
+
*Observed from `plugins/dsh-research-report/src/verify.ts:173-175 (unverified verdict); plugins/dsh-research-report/src/assemble.ts:209-220 (visible mark); plugins/dsh-research-report/README.md:87 (honest gaps); exercised through plugins/dsh-research-report/test/harness.ts`*
|
|
162
|
+
|
|
163
|
+
#### Brief examples
|
|
164
|
+
|
|
165
|
+
- `research_report`
|
|
166
|
+
- `ledger_query`
|
|
167
|
+
|
|
120
168
|
## Configuration
|
|
121
169
|
|
|
122
170
|
All tunables are Schemastery `Config` fields; invalid values fail the profile load loudly. Relative roots resolve against the harness working directory (the workspace).
|
|
@@ -126,6 +174,7 @@ All tunables are Schemastery `Config` fields; invalid values fail the profile lo
|
|
|
126
174
|
| `enabled` | `true` | Master switch; `false` mounts nothing. |
|
|
127
175
|
| `ledgerRoot` | `.research-ledger` | Evidence-ledger directory (objects + JSONL journals). |
|
|
128
176
|
| `reportRoot` | `research-reports` | Sealed-report root (versioned per topic and timestamp). |
|
|
177
|
+
| `workspaceRoot` | *(host session working directory)* | Root for workspace-path evidence; defaults to the session working directory, then the harness cwd. |
|
|
129
178
|
| `maxEvidenceBytes` | `2097152` | Hard cap on one evidence snapshot's UTF-8 bytes. |
|
|
130
179
|
| `maxEvidencePerReport` | `200` | Hard cap on evidence items bound into one report. |
|
|
131
180
|
| `fetchTimeoutMs` | `20000` | Deadline (ms) for one `ctx.web` fetch during capture. |
|
|
@@ -209,10 +258,10 @@ This project is part of the DeepSeek Harness plugin family from [PerryLink](http
|
|
|
209
258
|
| **[dsh-aqua-input-check](https://github.com/PerryLink/dsh-aqua-input-check)** | |
|
|
210
259
|
| **[dsh-archive-check](https://github.com/PerryLink/dsh-archive-check)** | |
|
|
211
260
|
| **[dsh-auto-review](https://github.com/PerryLink/dsh-auto-review)** | |
|
|
212
|
-
| **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** |
|
|
261
|
+
| **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | 🧊 FROZEN — see the repo README |
|
|
213
262
|
| **[dsh-bid-ca-precheck](https://github.com/PerryLink/dsh-bid-ca-precheck)** | |
|
|
214
263
|
| **[dsh-bid-qual-check](https://github.com/PerryLink/dsh-bid-qual-check)** | |
|
|
215
|
-
| **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** |
|
|
264
|
+
| **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | 🧊 FROZEN — see the repo README |
|
|
216
265
|
| **[dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind)** | |
|
|
217
266
|
| **[dsh-click](https://github.com/PerryLink/dsh-click)** | |
|
|
218
267
|
| **[dsh-composer-history](https://github.com/PerryLink/dsh-composer-history)** | |
|
|
@@ -302,6 +351,8 @@ This project is part of the DeepSeek Harness plugin family from [PerryLink](http
|
|
|
302
351
|
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 RETIRED — see the repo README |
|
|
303
352
|
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 RETIRED — see the repo README |
|
|
304
353
|
|
|
305
|
-
</details
|
|
354
|
+
</details>
|
|
355
|
+
|
|
356
|
+
## License
|
|
306
357
|
|
|
307
358
|
Apache-2.0 — see [LICENSE](LICENSE).
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
File without changes
|
package/cordis.patch.yml
CHANGED
|
File without changes
|
package/lib/cli.js
CHANGED
|
File without changes
|
package/lib/index.js
CHANGED
|
@@ -17,6 +17,7 @@ const Config = z.object({
|
|
|
17
17
|
enabled: z.boolean().default(true),
|
|
18
18
|
ledgerRoot: z.string().default(".research-ledger"),
|
|
19
19
|
reportRoot: z.string().default("research-reports"),
|
|
20
|
+
workspaceRoot: z.string(),
|
|
20
21
|
maxEvidenceBytes: z.number().default(2097152),
|
|
21
22
|
maxEvidencePerReport: z.number().default(200),
|
|
22
23
|
fetchTimeoutMs: z.number().default(2e4),
|
|
@@ -55,6 +56,7 @@ function resolveConfig(config = {}) {
|
|
|
55
56
|
enabled: config.enabled ?? true,
|
|
56
57
|
ledgerRoot: resolveRoot(config.ledgerRoot ?? ".research-ledger", "ledgerRoot"),
|
|
57
58
|
reportRoot: resolveRoot(config.reportRoot ?? "research-reports", "reportRoot"),
|
|
59
|
+
workspaceRoot: config.workspaceRoot === void 0 ? void 0 : resolveRoot(config.workspaceRoot, "workspaceRoot"),
|
|
58
60
|
maxEvidenceBytes,
|
|
59
61
|
maxEvidencePerReport,
|
|
60
62
|
fetchTimeoutMs,
|
|
@@ -779,14 +781,31 @@ var LocalResearchReportService = class extends ResearchReportService {
|
|
|
779
781
|
return this.ctx.get("dataQuality");
|
|
780
782
|
}
|
|
781
783
|
/** Capture dependencies for the gather/capture paths. */
|
|
782
|
-
|
|
784
|
+
captureDeps(session) {
|
|
783
785
|
return {
|
|
784
786
|
web: this.web,
|
|
785
787
|
fetchTimeoutMs: this.config.fetchTimeoutMs,
|
|
786
|
-
workspaceRoot: this.
|
|
788
|
+
workspaceRoot: this.workspaceRootFor(session)
|
|
787
789
|
};
|
|
788
790
|
}
|
|
789
791
|
/**
|
|
792
|
+
* Resolve the workspace root for one call. An explicit `workspaceRoot`
|
|
793
|
+
* config wins; otherwise the host's session-scoped working directory is
|
|
794
|
+
* used (on DSH Desktop that is the project, not the profile directory the
|
|
795
|
+
* main process runs in); only then fall back to the launch cwd captured at
|
|
796
|
+
* mount. A missing or throwing service falls back, never fails the tool.
|
|
797
|
+
* @param session - the calling session, when the tool has one.
|
|
798
|
+
* @returns an absolute workspace root.
|
|
799
|
+
*/
|
|
800
|
+
workspaceRootFor(session) {
|
|
801
|
+
if (this.config.workspaceRoot !== void 0) return this.config.workspaceRoot;
|
|
802
|
+
if (session !== void 0) try {
|
|
803
|
+
const directory = this.ctx.get("workingDirectory")?.get(session);
|
|
804
|
+
if (typeof directory === "string" && directory !== "") return directory;
|
|
805
|
+
} catch {}
|
|
806
|
+
return this.workspaceRoot;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
790
809
|
* Register one evidence snapshot. Over-size content is refused loudly;
|
|
791
810
|
* same-content registrations dedupe. DOI-typed origins are validated
|
|
792
811
|
* deterministically (zero network) and, when `requireJournalMetadata` is on,
|
|
@@ -848,7 +867,7 @@ var LocalResearchReportService = class extends ResearchReportService {
|
|
|
848
867
|
*/
|
|
849
868
|
async captureAndRegister(origin, title, signal, session) {
|
|
850
869
|
if (isDoiOrigin(origin)) throw new ResearchReportError("INVALID_DOI", `DOI evidence requires inline content (zero-network DOI validation); pass content with the DOI as origin`);
|
|
851
|
-
const snapshot = await captureSnapshot(this.captureDeps, origin, signal);
|
|
870
|
+
const snapshot = await captureSnapshot(this.captureDeps(session), origin, signal);
|
|
852
871
|
return this.addEvidence({
|
|
853
872
|
title: title ?? snapshot.origin,
|
|
854
873
|
origin: snapshot.origin,
|
|
@@ -865,7 +884,7 @@ var LocalResearchReportService = class extends ResearchReportService {
|
|
|
865
884
|
* @returns candidates plus gaps.
|
|
866
885
|
*/
|
|
867
886
|
async gather(topic, depth, signal, session) {
|
|
868
|
-
return gatherCandidates(this.captureDeps, topic, depth, signal, async (input) => {
|
|
887
|
+
return gatherCandidates(this.captureDeps(session), topic, depth, signal, async (input) => {
|
|
869
888
|
const { record } = await this.addEvidence(input, session);
|
|
870
889
|
return record;
|
|
871
890
|
});
|
package/lib/types/assemble.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/types/assemble.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/types/cli.d.ts
CHANGED
|
File without changes
|
package/lib/types/cli.d.ts.map
CHANGED
|
File without changes
|
package/lib/types/cli.js
CHANGED
|
File without changes
|
package/lib/types/cli.js.map
CHANGED
|
File without changes
|
package/lib/types/config.d.ts
CHANGED
|
@@ -20,6 +20,13 @@ export interface Config {
|
|
|
20
20
|
* Resolved against the harness working directory when relative.
|
|
21
21
|
*/
|
|
22
22
|
reportRoot?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Workspace root used to resolve and display workspace-path evidence.
|
|
25
|
+
* Absolute, or resolved against the harness working directory when relative.
|
|
26
|
+
* When omitted, the session's host working directory is used, then the
|
|
27
|
+
* harness working directory.
|
|
28
|
+
*/
|
|
29
|
+
workspaceRoot?: string;
|
|
23
30
|
/** Hard cap on one evidence snapshot's UTF-8 byte size. */
|
|
24
31
|
maxEvidenceBytes?: number;
|
|
25
32
|
/** Hard cap on how many evidence items one report may bind. */
|
|
@@ -38,6 +45,8 @@ export interface ResolvedConfig {
|
|
|
38
45
|
readonly enabled: boolean;
|
|
39
46
|
readonly ledgerRoot: string;
|
|
40
47
|
readonly reportRoot: string;
|
|
48
|
+
/** Explicit workspace root, or undefined to resolve per call/session. */
|
|
49
|
+
readonly workspaceRoot: string | undefined;
|
|
41
50
|
readonly maxEvidenceBytes: number;
|
|
42
51
|
readonly maxEvidencePerReport: number;
|
|
43
52
|
readonly fetchTimeoutMs: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAExC,6FAA6F;AAC7F,MAAM,WAAW,MAAM;IACrB,uFAAuF;IACvF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,+DAA+D;IAC/D,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAED,6EAA6E;AAC7E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;IACjC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAA;IACrC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAA;CACzC;AAED,kFAAkF;AAClF,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAExC,6FAA6F;AAC7F,MAAM,WAAW,MAAM;IACrB,uFAAuF;IACvF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,+DAA+D;IAC/D,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAED,6EAA6E;AAC7E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,yEAAyE;IACzE,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;IACjC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAA;IACrC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAA;CACzC;AAED,kFAAkF;AAClF,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,MAAM,CAS3B,CAAA;AAwBF;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,GAAE,MAAW,GAAG,cAAc,CAiBjE"}
|