@autorag/librarian 2.13.5 → 2.13.7

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.
@@ -36,6 +36,8 @@ export interface BuildDatasourceSkillsResult {
36
36
  readonly skills: readonly DatasourceSkill[];
37
37
  /** Names that were configured but not recognized. */
38
38
  readonly unknown: readonly string[];
39
+ /** Configured names whose skill type was removed; they are skipped, not built. */
40
+ readonly retired: readonly string[];
39
41
  }
40
42
  /**
41
43
  * What the shared embedding backend gives a datasource. AutoRAG-owned semantic stores (chat sidecars, the
@@ -69,7 +71,8 @@ export declare function builtinDatasourceSkillNames(platform?: NodeJS.Platform):
69
71
  export declare const BUILTIN_DATASOURCE_SKILL_NAMES: readonly string[];
70
72
  /**
71
73
  * Build datasource skills from the trusted config section. `false` or
72
- * `{ enabled: false }` entries are skipped silently; unrecognized names are
74
+ * `{ enabled: false }` entries are skipped silently; entries naming a removed
75
+ * template are collected in `retired` and ignored; other unrecognized names are
73
76
  * collected in `unknown` (never thrown) so callers can surface setup
74
77
  * feedback without failing agent construction.
75
78
  */
@@ -8,8 +8,6 @@ export interface ExactDuplicateFilterResult {
8
8
  export interface ExactDuplicateFingerprint {
9
9
  readonly exact: string;
10
10
  readonly modified: string | null;
11
- /** Characters dupey extracted. `0` means no text, so the hash says nothing about the content. */
12
- readonly chars: number;
13
11
  }
14
12
  /** Selects the newest copy for each exact canonical-text hash.
15
13
  *
@@ -1,3 +1,2 @@
1
1
  export * from "./cli.js";
2
2
  export * from "./filter.js";
3
- export * from "./scan-plan.js";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * dupey version policy.
3
+ *
4
+ * AutoRAG groups files by dupey's exact hash and stores cloud files' hashes across refreshes, so it must refuse a
5
+ * binary whose hashes would disagree with the ones it stores instead of silently grouping by them.
6
+ */
7
+ /**
8
+ * Oldest `dupey` AutoRAG will run. Measured against 0.1.2: 0.1.2 misreads HWP 5.x record lengths, so an HWP
9
+ * hashes incomplete or empty text (11,199 extracted characters with 0.2.0 came out as 45 with 0.1.2, and other
10
+ * files as 0), and its `fingerprint` hashes empty text where `scan` hashes the file bytes. From 0.2.0 an HWP
11
+ * hashes its full body text, and a file with no extracted text hashes its bytes in both `scan` and `fingerprint`.
12
+ */
13
+ export declare const DUPEY_MIN_VERSION = "0.2.0";
14
+ /** Version from `dupey --version` output, or `undefined` when the output is not a dupey version line. */
15
+ export declare function parseDupeyVersion(output: string): string | undefined;
16
+ /** True when `version` is at or above {@link DUPEY_MIN_VERSION}. Numeric, per component. */
17
+ export declare function isSupportedDupeyVersion(version: string): boolean;