@juanhuttemann/pi-deep-research 0.1.5 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/result.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juanhuttemann/pi-deep-research",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Fact-checked, cited web research inside Pi: runs the deep-research CLI (drsh) on Pi's own model, with live progress, clarifying questions and plan review",
5
5
  "keywords": [
6
6
  "pi-package",
package/src/result.ts CHANGED
@@ -28,6 +28,9 @@ export interface Figure {
28
28
 
29
29
  export interface Digest {
30
30
  question: string;
31
+ // title is the report's headline, absent for a run with none (instant
32
+ // and older runs): the question titles it then.
33
+ title?: string;
31
34
  depth: string;
32
35
  confidence: string;
33
36
  // instant is a run that answers in one call with no fact-check at all.
@@ -47,6 +50,7 @@ export interface Digest {
47
50
 
48
51
  interface RunJSON {
49
52
  question?: string;
53
+ title?: string;
50
54
  depth?: string;
51
55
  confidence?: string;
52
56
  error?: string;
@@ -111,6 +115,7 @@ export function digest(raw: unknown): Digest {
111
115
  const citations = j.citations ?? [];
112
116
  return {
113
117
  question: j.question ?? "",
118
+ title: j.title || undefined,
114
119
  depth: j.depth ?? "",
115
120
  confidence: j.confidence ?? "",
116
121
  instant: j.depth === "instant",