@autorag/librarian 2.13.6 → 2.13.8

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 (52) hide show
  1. package/README.md +15 -0
  2. package/dist/agent/agent.d.ts +35 -5
  3. package/dist/agent/calculator-tool.d.ts +39 -0
  4. package/dist/agent/dupey-tool.d.ts +0 -2
  5. package/dist/agent/evidence-ledger.d.ts +11 -0
  6. package/dist/agent/index-schedule.d.ts +45 -0
  7. package/dist/agent/index.d.ts +1 -0
  8. package/dist/agent/pipelined-sync.d.ts +34 -0
  9. package/dist/agent/result-render.d.ts +43 -0
  10. package/dist/agent/search-all-tool.d.ts +2 -1
  11. package/dist/agent/search-documents.d.ts +1 -1
  12. package/dist/agent/search-minsync-tool.d.ts +2 -1
  13. package/dist/agent/search-single-datasource-tool.d.ts +2 -1
  14. package/dist/agent/watch-refresh.d.ts +2 -0
  15. package/dist/calculator/civil.d.ts +27 -0
  16. package/dist/calculator/decimal.d.ts +47 -0
  17. package/dist/calculator/errors.d.ts +4 -0
  18. package/dist/calculator/expression.d.ts +11 -0
  19. package/dist/calculator/index.d.ts +17 -0
  20. package/dist/calculator/operations.d.ts +36 -0
  21. package/dist/calculator/temporal.d.ts +18 -0
  22. package/dist/calculator/timezone.d.ts +19 -0
  23. package/dist/cli/commands/duplicates.d.ts +2 -3
  24. package/dist/cli/commands/index.d.ts +1 -1
  25. package/dist/cli/commands/lite-refresh.d.ts +1 -1
  26. package/dist/cli/commands/refresh.d.ts +4 -0
  27. package/dist/cli/commands/watch.d.ts +2 -1
  28. package/dist/cli/index.js +3617 -1480
  29. package/dist/cli/signal-abort.d.ts +21 -0
  30. package/dist/core.d.ts +2 -0
  31. package/dist/core.js +4144 -2097
  32. package/dist/datasource/skills/factory.d.ts +4 -1
  33. package/dist/dupey/filter.d.ts +0 -2
  34. package/dist/dupey/index.d.ts +0 -1
  35. package/dist/dupey/version.d.ts +17 -0
  36. package/dist/index.js +4183 -2144
  37. package/dist/mcp/index.js +4182 -2142
  38. package/dist/mcp/server.d.ts +0 -3
  39. package/dist/minsync/installer.d.ts +1 -1
  40. package/dist/minsync/method.d.ts +7 -0
  41. package/dist/minsync/version.d.ts +3 -2
  42. package/dist/mirror/cloud-fingerprints.d.ts +6 -5
  43. package/dist/mirror/cloud.d.ts +9 -6
  44. package/dist/mirror/sync.d.ts +28 -15
  45. package/dist/profiles.js +3463 -1421
  46. package/dist/retrieval/engine.d.ts +7 -0
  47. package/dist/retrieval/merger.d.ts +6 -0
  48. package/dist/retrieval/record-cut.d.ts +101 -0
  49. package/package.json +1 -1
  50. package/skills/autorag/SKILL.md +28 -0
  51. package/skills/autorag-setup/SKILL.md +39 -0
  52. package/dist/dupey/scan-plan.d.ts +0 -23
@@ -5,6 +5,6 @@ import type { CommandContext } from "./types.js";
5
5
  * Delegates to the agent's refresh pipeline (parsed mirrors, MinSync,
6
6
  * datasources, Jikji) without requiring any model configuration.
7
7
  *
8
- * Exit codes: 0 on success, 2 on config error, 1 on runtime error.
8
+ * Exit codes: 0 on success, 2 on config error, 1 on runtime error, 130/143 when stopped by SIGINT/SIGTERM.
9
9
  */
10
10
  export declare function runLiteRefresh(ctx: CommandContext): Promise<number>;
@@ -8,6 +8,10 @@ import type { CommandContext } from "./types.js";
8
8
  *
9
9
  * `--method minsync,parsed` restricts which methods run. When omitted, all
10
10
  * methods run. Parsed mirrors are always synced when MinSync is selected.
11
+ *
12
+ * SIGINT and SIGTERM abort the refresh: the MinSync and parser children are stopped, the run is recorded as
13
+ * failed, and the command exits 130 or 143 like any process a signal ended. A long first index can run for
14
+ * hours, so an operator or a service manager needs to be able to stop it.
11
15
  */
12
16
  export declare function runRefresh(ctx: CommandContext): Promise<number>;
13
17
  /**
@@ -5,6 +5,7 @@ import type { CommandContext } from "./types.js";
5
5
  * - default: long-running recursive fs watch with debounced refresh
6
6
  * - `--once`: single refresh tick (for cron / launchd / Task Scheduler)
7
7
  *
8
- * Exit codes: 0 on success, 2 on config error, 1 on runtime error.
8
+ * Exit codes: 0 on success, 2 on config error, 1 on runtime error, 130/143 when a one-shot tick is stopped by
9
+ * SIGINT/SIGTERM. The long-running watch handles those signals itself and exits 0.
9
10
  */
10
11
  export declare function runWatch(ctx: CommandContext): Promise<number>;