@autorag/librarian 2.11.0 → 2.12.0

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 (60) hide show
  1. package/NOTICE +6 -0
  2. package/README.md +7 -4
  3. package/dist/agent/agent.d.ts +64 -1
  4. package/dist/agent/answer-citations.d.ts +34 -2
  5. package/dist/agent/answer-guidelines.d.ts +2 -2
  6. package/dist/agent/ask-user.d.ts +8 -0
  7. package/dist/agent/automation-tool.d.ts +45 -0
  8. package/dist/agent/citation-links.d.ts +23 -0
  9. package/dist/agent/citation-numbers.d.ts +68 -0
  10. package/dist/agent/citation-relevance.d.ts +37 -0
  11. package/dist/agent/conversation-queries.d.ts +31 -0
  12. package/dist/agent/convert-tool.d.ts +28 -0
  13. package/dist/agent/evidence-persistence.d.ts +17 -11
  14. package/dist/agent/index.d.ts +1 -0
  15. package/dist/agent/intent-tracing.d.ts +33 -0
  16. package/dist/agent/permission-gate.d.ts +78 -0
  17. package/dist/agent/permission-judgment.d.ts +72 -0
  18. package/dist/agent/permission-paths.d.ts +23 -0
  19. package/dist/agent/query-routing.d.ts +14 -17
  20. package/dist/agent/search-documents.d.ts +1 -1
  21. package/dist/agent/self-config.d.ts +2 -0
  22. package/dist/agent/user-requests.d.ts +52 -0
  23. package/dist/automation/config.d.ts +48 -0
  24. package/dist/automation/daemon.d.ts +31 -0
  25. package/dist/automation/dispatch.d.ts +13 -0
  26. package/dist/automation/run-agent.d.ts +22 -0
  27. package/dist/automation/run.d.ts +32 -0
  28. package/dist/automation/service.d.ts +61 -0
  29. package/dist/cli/commands/automate.d.ts +2 -0
  30. package/dist/cli/config.d.ts +21 -0
  31. package/dist/cli/index.d.ts +1 -1
  32. package/dist/cli/index.js +8336 -4254
  33. package/dist/cli/open-target.d.ts +9 -0
  34. package/dist/cli/setup.d.ts +12 -0
  35. package/dist/convert/cli.d.ts +77 -0
  36. package/dist/convert/index.d.ts +4 -0
  37. package/dist/convert/installer.d.ts +84 -0
  38. package/dist/convert/matrix.d.ts +27 -0
  39. package/dist/convert/relate.d.ts +30 -0
  40. package/dist/core.js +32002 -28171
  41. package/dist/datasource/connector-timeouts.d.ts +6 -2
  42. package/dist/datasource/crawler-types.d.ts +1 -1
  43. package/dist/datasource/skills/lazykatok/types.d.ts +2 -2
  44. package/dist/datasource/skills/mailcrawl/types.d.ts +1 -1
  45. package/dist/dupey/cli.d.ts +18 -0
  46. package/dist/index.d.ts +1 -0
  47. package/dist/index.js +32047 -28192
  48. package/dist/mcp/index.js +32054 -28223
  49. package/dist/minsync/installer.d.ts +1 -1
  50. package/dist/profiles/agent-factory.d.ts +60 -0
  51. package/dist/profiles/automation-profiles.d.ts +25 -0
  52. package/dist/profiles/loop-guard.d.ts +23 -0
  53. package/dist/profiles/retrieval-tools.d.ts +24 -0
  54. package/dist/profiles/session-model.d.ts +69 -0
  55. package/dist/profiles.d.ts +13 -0
  56. package/dist/profiles.js +34739 -0
  57. package/dist/retrieval/rerank.d.ts +6 -0
  58. package/package.json +8 -2
  59. package/skills/autorag/SKILL.md +73 -2
  60. package/skills/autorag-setup/SKILL.md +8 -4
@@ -9,8 +9,12 @@
9
9
  * of making progress. Interactive reads (`search`, `doctor`, chunk lookups) keep
10
10
  * the short default.
11
11
  */
12
- /** Non-interactive budget for a connector `sync`/`index` step (30 minutes). */
13
- export declare const DEFAULT_CONNECTOR_SYNC_TIMEOUT_MS = 1800000;
12
+ /**
13
+ * Non-interactive budget for a connector `sync`/`index` step (one hour). A no-op mailcrawl `sync` of a
14
+ * 1,000-message INBOX measured 16 to 27 minutes because mailcrawl re-reads every message on each run
15
+ * (NomaDamas/mailcrawl#48), so 30 minutes did not hold even when nothing had changed.
16
+ */
17
+ export declare const DEFAULT_CONNECTOR_SYNC_TIMEOUT_MS = 3600000;
14
18
  /**
15
19
  * Operator-facing hint appended to a sync/index diagnostic when the connector
16
20
  * timeout killed the step. It names the override and explains why the next
@@ -45,7 +45,7 @@ export interface CrawlerCliOptions {
45
45
  */
46
46
  readonly timeoutMs?: number;
47
47
  /**
48
- * Spawn timeout for `sync` in milliseconds. Default 1_800_000 (30 min): a first
48
+ * Spawn timeout for `sync` in milliseconds. Default 3_600_000 (1 hour): a first
49
49
  * full import over a real archive can take many minutes, and a timed-out sync
50
50
  * restarts from scratch on the next refresh.
51
51
  */
@@ -23,7 +23,7 @@ export interface LazykatokOptions {
23
23
  */
24
24
  readonly timeoutMs?: number;
25
25
  /**
26
- * Spawn timeout for `sync`/`index` in milliseconds. Default 1_800_000 (30 min):
26
+ * Spawn timeout for `sync`/`index` in milliseconds. Default 3_600_000 (1 hour):
27
27
  * the first semantic index over a large archive was measured at ~11 minutes, and
28
28
  * a timed-out build restarts from scratch on the next refresh.
29
29
  */
@@ -59,7 +59,7 @@ export declare const DEFAULT_LAZYKATOK_TIMEOUT_MS = 60000;
59
59
  * the 60-second interactive default: a first semantic index over a large archive
60
60
  * was measured at ~11 minutes.
61
61
  */
62
- export declare const DEFAULT_LAZYKATOK_INDEX_TIMEOUT_MS = 1800000;
62
+ export declare const DEFAULT_LAZYKATOK_INDEX_TIMEOUT_MS = 3600000;
63
63
  /** The live macOS adapter `sync` names by default on darwin. */
64
64
  export declare const DEFAULT_LAZYKATOK_SOURCE = "macos";
65
65
  export declare const DEFAULT_LAZYKATOK_MAX_BUFFER_BYTES: number;
@@ -19,7 +19,7 @@ export interface MailcrawlOptions {
19
19
  * `indexTimeoutMs`, because a 0.2.0 native index run is not interactive.
20
20
  */
21
21
  readonly timeoutMs?: number;
22
- /** Non-interactive budget for `sync`/`index`; defaults to 30 minutes. */
22
+ /** Non-interactive budget for `sync`/`index`; defaults to one hour. */
23
23
  readonly indexTimeoutMs?: number;
24
24
  readonly maxBufferBytes?: number;
25
25
  readonly env?: Readonly<Record<string, string | undefined>>;
@@ -38,3 +38,21 @@ export declare class DupeyCliError extends Error {
38
38
  constructor(message: string);
39
39
  }
40
40
  export declare function scanWithDupey(dir: string, options?: DupeyCliOptions): Promise<DupeyScanResult>;
41
+ export type DupeyRelation = "exact" | "near" | "contains" | "different";
42
+ export type DupeyCompareResult = {
43
+ readonly relation: DupeyRelation;
44
+ readonly nearScore: number;
45
+ readonly jaccard: number;
46
+ readonly containmentAInB?: number;
47
+ readonly containmentBInA?: number;
48
+ }
49
+ /** dupey cannot extract text from one of the files (for example HTML or an image), so no family can form. */
50
+ | {
51
+ readonly relation: "unsupported";
52
+ };
53
+ /**
54
+ * Would `dupey scan` put these two files in one family? Classifies with the
55
+ * same default thresholds the scan uses, so the answer matches what a later
56
+ * scan of a directory holding both will report.
57
+ */
58
+ export declare function compareWithDupey(a: string, b: string, options?: DupeyCliOptions): Promise<DupeyCompareResult>;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { AutoRAGAgent, type AutoRAGAgentOptions, type AutoRAGRefreshComponentSta
2
2
  export { type AutoRAGResultsDetails, reportSchema, type SearchDocumentDiagnostic, type SearchDocumentDiagnosticCode, type SearchDocumentDiagnosticSeverity, type SearchDocumentsResponse, type SearchDocumentsStreamEvent, type SearchDocumentWarning, } from "./agent/index.js";
3
3
  export { buildSystemPrompt, type SystemPromptConfig } from "./agent/system-prompt.js";
4
4
  export * from "./cloud/index.js";
5
+ export * from "./convert/index.js";
5
6
  export { AutoRAGLite, type AutoRAGLiteOptions, buildAgentOptions, type CliConfig, createAutoRAGLite, type ResolveConfigInput, resolveConfig, resolveConfigReadOnly, writeConfigObject, writeDefaultConfig, } from "./core.js";
6
7
  export * from "./datasource/index.js";
7
8
  export * from "./dupey/index.js";