@autorag/librarian 2.13.4 → 2.13.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 (91) hide show
  1. package/NOTICE +3 -0
  2. package/README.md +50 -18
  3. package/dist/agent/agent.d.ts +111 -40
  4. package/dist/agent/cloud-release-extension.d.ts +43 -0
  5. package/dist/agent/decision-backends.d.ts +49 -0
  6. package/dist/agent/decision-model-check.d.ts +92 -0
  7. package/dist/agent/dupey-tool.d.ts +2 -0
  8. package/dist/agent/everything-search-tool.d.ts +1 -0
  9. package/dist/agent/fsearch-search-tool.d.ts +1 -0
  10. package/dist/agent/index.d.ts +4 -1
  11. package/dist/agent/jev-extension.d.ts +27 -32
  12. package/dist/agent/jikji-find-tool.d.ts +5 -0
  13. package/dist/agent/name-candidates.d.ts +88 -0
  14. package/dist/agent/permission-gate.d.ts +2 -5
  15. package/dist/agent/query-routing.d.ts +1 -1
  16. package/dist/agent/search-documents.d.ts +1 -1
  17. package/dist/agent/sllm-decision.d.ts +34 -0
  18. package/dist/cli/commands/duplicates.d.ts +3 -2
  19. package/dist/cli/commands/models.d.ts +2 -0
  20. package/dist/cli/commands/search.d.ts +2 -0
  21. package/dist/cli/config.d.ts +49 -30
  22. package/dist/cli/index.js +13522 -10169
  23. package/dist/cli/setup.d.ts +27 -1
  24. package/dist/cloud/jev-backend.d.ts +26 -4
  25. package/dist/core.js +6079 -2840
  26. package/dist/datasource/index.d.ts +2 -2
  27. package/dist/datasource/skills/obsidian/index.d.ts +1 -1
  28. package/dist/datasource/skills/obsidian/methods.d.ts +1 -1
  29. package/dist/datasource/skills/obsidian/skill.d.ts +1 -0
  30. package/dist/datasource/skills/obsidian/vault-index.d.ts +1 -1
  31. package/dist/datasource/skills/wombat/client.d.ts +17 -0
  32. package/dist/datasource/skills/wombat/index.d.ts +4 -0
  33. package/dist/datasource/skills/wombat/methods.d.ts +15 -0
  34. package/dist/datasource/skills/wombat/skill.d.ts +38 -0
  35. package/dist/datasource/skills/wombat/types.d.ts +89 -0
  36. package/dist/dupey/cli.d.ts +21 -1
  37. package/dist/dupey/filter.d.ts +8 -1
  38. package/dist/dupey/index.d.ts +1 -0
  39. package/dist/dupey/scan-plan.d.ts +23 -0
  40. package/dist/embedding/index.d.ts +3 -1
  41. package/dist/everything/client.d.ts +1 -2
  42. package/dist/filesystem/cloud-placeholder.d.ts +313 -21
  43. package/dist/filesystem/shared-exclusive-queue.d.ts +16 -0
  44. package/dist/fsearch/client.d.ts +3 -2
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +6184 -2905
  47. package/dist/jikji/answer-pack.d.ts +7 -1
  48. package/dist/jikji/client.d.ts +28 -14
  49. package/dist/jikji/diagnostics.d.ts +16 -2
  50. package/dist/jikji/index.d.ts +3 -3
  51. package/dist/jikji/installer.d.ts +11 -5
  52. package/dist/jikji/retry-command.d.ts +10 -0
  53. package/dist/jikji/types.d.ts +47 -1
  54. package/dist/jikji/version.d.ts +20 -0
  55. package/dist/mcp/index.js +6154 -2902
  56. package/dist/mcp/server.d.ts +3 -0
  57. package/dist/minsync/binary.d.ts +10 -5
  58. package/dist/minsync/client.d.ts +7 -10
  59. package/dist/minsync/embedder-config.d.ts +11 -10
  60. package/dist/minsync/errors.d.ts +3 -0
  61. package/dist/minsync/index.d.ts +1 -1
  62. package/dist/minsync/installer.d.ts +1 -1
  63. package/dist/minsync/method.d.ts +1 -0
  64. package/dist/minsync/types.d.ts +0 -9
  65. package/dist/minsync/version.d.ts +20 -0
  66. package/dist/mirror/cloud-fingerprints.d.ts +30 -0
  67. package/dist/mirror/cloud.d.ts +79 -0
  68. package/dist/mirror/index.d.ts +4 -0
  69. package/dist/mirror/sync.d.ts +79 -1
  70. package/dist/parser/csv.d.ts +26 -0
  71. package/dist/parser/defaults.d.ts +1 -1
  72. package/dist/parser/index.d.ts +2 -0
  73. package/dist/parser/kordoc.d.ts +6 -3
  74. package/dist/parser/parse-worker.js +668 -28
  75. package/dist/parser/spreadsheet-render.d.ts +53 -0
  76. package/dist/parser/spreadsheet.d.ts +27 -0
  77. package/dist/profiles/loop-guard.d.ts +8 -2
  78. package/dist/profiles/retrieval-tools.d.ts +2 -1
  79. package/dist/profiles.js +13520 -10280
  80. package/dist/retrieval/skip.d.ts +1 -1
  81. package/dist/retrieval/types.d.ts +1 -1
  82. package/package.json +3 -3
  83. package/skills/autorag/SKILL.md +7 -4
  84. package/skills/autorag-doctor/SKILL.md +8 -3
  85. package/skills/autorag-lite-setup/SKILL.md +4 -4
  86. package/skills/autorag-setup/SKILL.md +53 -30
  87. package/dist/datasource/skills/cloud-drive/index.d.ts +0 -2
  88. package/dist/datasource/skills/cloud-drive/rclone-connector.d.ts +0 -49
  89. package/dist/datasource/skills/cloud-drive/skill.d.ts +0 -14
  90. package/dist/minsync/kiwi.d.ts +0 -17
  91. package/dist/minsync/lexical-language.d.ts +0 -18
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Renders decoded spreadsheet grids as retrieval-ready text.
3
+ *
4
+ * Every spreadsheet row becomes one line that names its sheet, cell range and table caption and
5
+ * pairs each value with its column label:
6
+ *
7
+ * [예산총괄!A4:F4 · 2026년 연구개발비 편성표 (단위: 천원)] 구분: 직접비 | 비목: 인건비 | 편성액: 742,000
8
+ *
9
+ * Chunkers split mirror text between lines, so a value never reaches a chunk without its labels.
10
+ * A row too long for one retrieval chunk is split into several lines that each repeat the row key.
11
+ *
12
+ * Structure is inferred per block of consecutive non-empty rows:
13
+ * - leading rows holding a single value (titles such as "… (단위: 천원)") become the block caption,
14
+ * and a title block directly above a table captions that table;
15
+ * - the first remaining row is the header only when the evidence is strong: a two-level header under
16
+ * horizontally merged group cells, or a text header above at least three data rows with a column
17
+ * whose values are mostly numbers, dates or formulas. Otherwise the rows are kept as written, so a
18
+ * form-style label/value block is never relabelled with invented column names;
19
+ * - a block without its own header that continues the previous table's columns reuses that header;
20
+ * - a one-column vertical merge repeats its value on every covered row; horizontal merges and
21
+ * blocks merged across rows and columns (side notes) are shown once.
22
+ */
23
+ export type CellKind = "text" | "number" | "date" | "boolean" | "error" | "formula";
24
+ export interface SheetCell {
25
+ /** Display text as the spreadsheet shows it; may contain line breaks. */
26
+ readonly text: string;
27
+ readonly kind: CellKind;
28
+ readonly comment?: string;
29
+ }
30
+ /** A merged range, 0-based and inclusive. */
31
+ export interface SheetMerge {
32
+ readonly top: number;
33
+ readonly left: number;
34
+ readonly bottom: number;
35
+ readonly right: number;
36
+ }
37
+ export interface SheetGrid {
38
+ readonly name: string;
39
+ readonly hidden?: boolean;
40
+ /** Row-major cells. Rows and cells may be missing. */
41
+ readonly rows: readonly (readonly (SheetCell | undefined)[] | undefined)[];
42
+ readonly merges?: readonly SheetMerge[];
43
+ }
44
+ /**
45
+ * Upper bound on a rendered line, in MinSync's `estimate_tokens_upper` units. It keeps several lines
46
+ * per chunk under both MinSync's 4096-character recursive chunks and the 2048-token embedder budget.
47
+ */
48
+ export declare const MAX_LINE_TOKENS = 768;
49
+ /** MinSync's `estimate_tokens_upper`: half-tokens 1 per ASCII char, 2 per 2-byte, 4 per wider char. */
50
+ export declare function estimateLineTokens(text: string): number;
51
+ /** Kind of a value that arrived as text: numbers and dates typed as strings still count as data. */
52
+ export declare function classifyText(text: string): CellKind;
53
+ export declare function renderWorkbook(sheets: readonly SheetGrid[]): string;
@@ -0,0 +1,27 @@
1
+ import { type ParseInput, type ParseOutput, Parser } from "./types.js";
2
+ /** Workbook extensions SheetJS decodes for the spreadsheet parser. */
3
+ export declare const SPREADSHEET_EXTENSIONS: readonly [".xlsx", ".xlsm", ".xlsb", ".xls", ".ods"];
4
+ export interface SpreadsheetParserOptions {
5
+ /** Rows read per sheet, header included. Default 100,000. */
6
+ readonly maxRowsPerSheet?: number;
7
+ }
8
+ /**
9
+ * Parses Excel (`.xlsx`, `.xlsm`, `.xlsb`, legacy `.xls`) and OpenDocument (`.ods`) workbooks with
10
+ * SheetJS, then renders every row as one self-describing line (see `spreadsheet-render.ts`).
11
+ *
12
+ * Cell text is what the spreadsheet shows: cached formula results with their number formats applied
13
+ * (`742,000`, `32.1%`, dates). A format that scales or hides the stored number (`#,##0,"천원"`) keeps
14
+ * the stored value next to it, Korean-numeral formats (`[DBNum1]`) fall back to the plain number, and a
15
+ * formula saved without a result is shown as its formula (`=SUM(B2:B3)`).
16
+ *
17
+ * A web export saved under a workbook extension (an HTML table, common for bank and ERP downloads) is read
18
+ * as a sheet with its cell text kept as written, so `2023-06-01` and `00123` are not turned into numbers.
19
+ */
20
+ export declare class SpreadsheetParser extends Parser {
21
+ #private;
22
+ readonly name = "spreadsheet";
23
+ readonly extensions: readonly [".xlsx", ".xlsm", ".xlsb", ".xls", ".ods"];
24
+ readonly version: string;
25
+ constructor(options?: SpreadsheetParserOptions);
26
+ parse(input: ParseInput): Promise<ParseOutput>;
27
+ }
@@ -17,7 +17,13 @@ export declare function includedExtensions(include: readonly string[]): readonly
17
17
  * The automation runner appends it to the profile's own prompt; a profile cannot
18
18
  * leave it out. An agent that may write files could otherwise change a file the
19
19
  * rule watches, which fires the rule again and starts another run of the agent:
20
- * an endless loop. The section names the rule's folders, file types, and events,
21
- * and forbids every change that would fire the rule.
20
+ * an endless loop.
21
+ *
22
+ * The section states the one invariant (no change of this run may fire the rule
23
+ * again) and gives the agent the rule's exact decision procedure, so it can check
24
+ * its own plan instead of obeying a list of banned operations. A rename, a move or
25
+ * a write is allowed whenever the events it causes would not be picked up. The
26
+ * agent refuses only when the task cannot be done without a loop, and then
27
+ * proposes a softer variant.
22
28
  */
23
29
  export declare function loopGuardPrompt(rule: LoopGuardRule): string;
@@ -19,6 +19,7 @@ export declare function hasRetrievalTools(options: RetrievalToolOptions | undefi
19
19
  * throwaway memory file with the memory embedder off, so nothing the profile
20
20
  * searches is read from or recorded into the user's real `memory.json`. Only
21
21
  * the search tools are handed out; the backing agent's other surfaces (web,
22
- * Everything, FSearch, Jev, duplicate scan) stay off.
22
+ * Everything, FSearch, duplicate scan) stay off. Its decision model is built
23
+ * lazily and never asked: the tools search without the two-phase pipeline.
23
24
  */
24
25
  export declare function createRetrievalToolkit(config: CliConfig, options: RetrievalToolOptions): Promise<RetrievalToolkit>;