diffwiki-core 0.13.0 → 0.14.0-rc.202608012047.5d78e11

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.
@@ -116,7 +116,7 @@ ${problems.map((p) => ` - ${p}`).join("\n")}`);
116
116
  // src/collections.ts
117
117
  async function fireHook(event, collection) {
118
118
  try {
119
- const { emitPluginEvent: emitPluginEvent2 } = await import("./events-AVD3G5AX.js");
119
+ const { emitPluginEvent: emitPluginEvent2 } = await import("./events-QZYAWK7I.js");
120
120
  await emitPluginEvent2(event, collection);
121
121
  } catch {
122
122
  }
@@ -351,7 +351,11 @@ function mapHits(result, collections) {
351
351
  tags: Array.isArray(h.tags) ? h.tags.filter((t) => typeof t === "string") : [],
352
352
  snippet: typeof h.snippet === "string" ? h.snippet : void 0,
353
353
  score: typeof h.score === "number" ? h.score : void 0,
354
- docid: typeof h.docid === "string" ? h.docid : void 0
354
+ docid: typeof h.docid === "string" ? h.docid : void 0,
355
+ rawChunk: typeof h.rawChunk === "string" ? h.rawChunk : void 0,
356
+ cleanedChunk: typeof h.cleanedChunk === "string" ? h.cleanedChunk : void 0,
357
+ line: typeof h.line === "number" ? h.line : void 0,
358
+ snippetFromBody: h.snippetFromBody === true ? true : void 0
355
359
  });
356
360
  }
357
361
  return out;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  emitPluginEvent
3
- } from "./chunk-7V2DIQNL.js";
3
+ } from "./chunk-B67AZFRA.js";
4
4
  export {
5
5
  emitPluginEvent
6
6
  };
package/dist/index.cjs CHANGED
@@ -359,7 +359,11 @@ function mapHits(result, collections) {
359
359
  tags: Array.isArray(h.tags) ? h.tags.filter((t) => typeof t === "string") : [],
360
360
  snippet: typeof h.snippet === "string" ? h.snippet : void 0,
361
361
  score: typeof h.score === "number" ? h.score : void 0,
362
- docid: typeof h.docid === "string" ? h.docid : void 0
362
+ docid: typeof h.docid === "string" ? h.docid : void 0,
363
+ rawChunk: typeof h.rawChunk === "string" ? h.rawChunk : void 0,
364
+ cleanedChunk: typeof h.cleanedChunk === "string" ? h.cleanedChunk : void 0,
365
+ line: typeof h.line === "number" ? h.line : void 0,
366
+ snippetFromBody: h.snippetFromBody === true ? true : void 0
363
367
  });
364
368
  }
365
369
  return out;
package/dist/index.d.cts CHANGED
@@ -163,6 +163,14 @@ interface QueryHit {
163
163
  snippet?: string;
164
164
  score?: number;
165
165
  docid?: string;
166
+ /** Verbatim engine chunk (unsanitized) for the search UI's inspection popover. */
167
+ rawChunk?: string;
168
+ /** The chunk cleaned to plain text, untruncated (full form for the popover). */
169
+ cleanedChunk?: string;
170
+ /** Absolute source line the chunk starts at, when the engine reports it. */
171
+ line?: number;
172
+ /** True when `snippet` is a body-preview fallback rather than the cleaned chunk. */
173
+ snippetFromBody?: boolean;
166
174
  }
167
175
  type DiagnosticLevel = 'ok' | 'warn' | 'error';
168
176
  interface Diagnostic {
package/dist/index.d.ts CHANGED
@@ -163,6 +163,14 @@ interface QueryHit {
163
163
  snippet?: string;
164
164
  score?: number;
165
165
  docid?: string;
166
+ /** Verbatim engine chunk (unsanitized) for the search UI's inspection popover. */
167
+ rawChunk?: string;
168
+ /** The chunk cleaned to plain text, untruncated (full form for the popover). */
169
+ cleanedChunk?: string;
170
+ /** Absolute source line the chunk starts at, when the engine reports it. */
171
+ line?: number;
172
+ /** True when `snippet` is a body-preview fallback rather than the cleaned chunk. */
173
+ snippetFromBody?: boolean;
166
174
  }
167
175
  type DiagnosticLevel = 'ok' | 'warn' | 'error';
168
176
  interface Diagnostic {
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  upsertPlugin,
48
48
  writePluginRegistry,
49
49
  writeRegistry
50
- } from "./chunk-7V2DIQNL.js";
50
+ } from "./chunk-B67AZFRA.js";
51
51
 
52
52
  // src/config.ts
53
53
  import fs from "fs/promises";
@@ -176,7 +176,7 @@ import fs2 from "fs/promises";
176
176
  import path from "path";
177
177
  async function fireHook(event, collection, relPath) {
178
178
  try {
179
- const { emitPluginEvent: emitPluginEvent2 } = await import("./events-AVD3G5AX.js");
179
+ const { emitPluginEvent: emitPluginEvent2 } = await import("./events-QZYAWK7I.js");
180
180
  await emitPluginEvent2(event, collection, relPath);
181
181
  } catch {
182
182
  }
package/dist/plugin.d.cts CHANGED
@@ -36,6 +36,14 @@ interface SearchHandlerHit {
36
36
  score?: number;
37
37
  docid?: string;
38
38
  tags?: string[];
39
+ /** Verbatim engine chunk (unsanitized), surfaced in the search UI's inspection popover. */
40
+ rawChunk?: string;
41
+ /** The chunk cleaned to plain text, untruncated (full form for the popover). */
42
+ cleanedChunk?: string;
43
+ /** Absolute source line the chunk starts at, when the engine reports it. */
44
+ line?: number;
45
+ /** True when `snippet` is a body-preview fallback rather than the cleaned chunk. */
46
+ snippetFromBody?: boolean;
39
47
  }
40
48
  /** Result shape returned by the search handler. */
41
49
  interface SearchHandlerResult {
package/dist/plugin.d.ts CHANGED
@@ -36,6 +36,14 @@ interface SearchHandlerHit {
36
36
  score?: number;
37
37
  docid?: string;
38
38
  tags?: string[];
39
+ /** Verbatim engine chunk (unsanitized), surfaced in the search UI's inspection popover. */
40
+ rawChunk?: string;
41
+ /** The chunk cleaned to plain text, untruncated (full form for the popover). */
42
+ cleanedChunk?: string;
43
+ /** Absolute source line the chunk starts at, when the engine reports it. */
44
+ line?: number;
45
+ /** True when `snippet` is a body-preview fallback rather than the cleaned chunk. */
46
+ snippetFromBody?: boolean;
39
47
  }
40
48
  /** Result shape returned by the search handler. */
41
49
  interface SearchHandlerResult {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diffwiki-core",
3
- "version": "0.13.0",
3
+ "version": "0.14.0-rc.202608012047.5d78e11",
4
4
  "description": "Core configuration, registry, and article management for diffwiki",
5
5
  "license": "MIT",
6
6
  "type": "module",