@autorag/librarian 2.4.0 → 2.4.2

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 (47) hide show
  1. package/README.md +25 -3
  2. package/dist/agent/agent.d.ts +40 -12
  3. package/dist/agent/emit-results-tool.d.ts +1 -2
  4. package/dist/agent/index.d.ts +2 -2
  5. package/dist/agent/search-documents.d.ts +11 -2
  6. package/dist/cli/commands/duplicates.d.ts +6 -0
  7. package/dist/cli/commands/evidence.d.ts +3 -0
  8. package/dist/cli/commands/index.d.ts +1 -1
  9. package/dist/cli/commands/lite-refresh.d.ts +10 -0
  10. package/dist/cli/commands/lite-retrieve.d.ts +33 -0
  11. package/dist/cli/commands/lite.d.ts +3 -0
  12. package/dist/cli/commands/refresh.d.ts +3 -4
  13. package/dist/cli/commands/report.d.ts +3 -0
  14. package/dist/cli/commands/search.d.ts +2 -2
  15. package/dist/cli/commands/status.d.ts +2 -0
  16. package/dist/cli/commands/tui.d.ts +1 -1
  17. package/dist/cli/commands/watch.d.ts +3 -1
  18. package/dist/cli/config.d.ts +0 -11
  19. package/dist/cli/index.js +1538 -1090
  20. package/dist/core.d.ts +67 -0
  21. package/dist/core.js +14786 -0
  22. package/dist/datasource/access-context.d.ts +1 -1
  23. package/dist/datasource/result-filter.d.ts +1 -1
  24. package/dist/datasource/skills/gmail/index.d.ts +0 -1
  25. package/dist/datasource/skills/gmail/skill.d.ts +1 -1
  26. package/dist/index.d.ts +2 -1
  27. package/dist/index.js +4015 -3111
  28. package/dist/jikji/client.d.ts +2 -0
  29. package/dist/minsync/client.d.ts +2 -1
  30. package/dist/minsync/index.d.ts +1 -1
  31. package/dist/minsync/installer.d.ts +7 -1
  32. package/dist/minsync/method.d.ts +10 -19
  33. package/dist/mirror/index.d.ts +1 -1
  34. package/dist/mirror/paths.d.ts +2 -0
  35. package/dist/retrieval/engine.d.ts +123 -0
  36. package/dist/retrieval/index.d.ts +1 -2
  37. package/dist/retrieval/registry.d.ts +2 -2
  38. package/dist/retrieval/types.d.ts +1 -1
  39. package/dist/ui/discover.d.ts +0 -2
  40. package/package.json +6 -2
  41. package/skills/autorag/SKILL.md +19 -6
  42. package/skills/autorag-lite-search/SKILL.md +155 -0
  43. package/skills/autorag-lite-setup/SKILL.md +182 -0
  44. package/skills/autorag-setup/SKILL.md +62 -23
  45. package/dist/agent/search-bm25-tool.d.ts +0 -26
  46. package/dist/datasource/skills/gmail/himalaya-connector.d.ts +0 -51
  47. package/dist/retrieval/methods/bm25.d.ts +0 -23
@@ -39,5 +39,5 @@ export declare class DatasourceAccessContext {
39
39
  * Datasources without the `scoped` capability bypass this predicate and
40
40
  * are authorized only at the skill/tag level.
41
41
  */
42
- allowedSourcesPredicate(_userScope?: string): (source: string) => boolean;
42
+ allowedSourcesPredicate(_userScope?: string, userScopes?: readonly string[]): (source: string) => boolean;
43
43
  }
@@ -60,5 +60,5 @@ export declare class DatasourceResultFilter {
60
60
  * is intersected with the trusted allow-scopes and can only narrow
61
61
  * results. `undefined` means "no extra user restriction".
62
62
  */
63
- filter(byMethod: ResultsByMethod, methods: readonly RetrievalMethod[], ctx: DatasourceAccessContext, userScope?: string): ResultsByMethod;
63
+ filter(byMethod: ResultsByMethod, methods: readonly RetrievalMethod[], ctx: DatasourceAccessContext, userScope?: string, userScopes?: readonly string[]): ResultsByMethod;
64
64
  }
@@ -1,3 +1,2 @@
1
1
  export { GmailConnector, type GmailConnectorOptions } from "./connector.js";
2
- export { HimalayaConnector, type HimalayaConnectorOptions, type HimalayaRunner, type HimalayaRunResult, } from "./himalaya-connector.js";
3
2
  export { GMAIL_SKILL_DEFINITION, GmailSkill, type GmailSkillOptions } from "./skill.js";
@@ -14,7 +14,7 @@ export declare const GMAIL_SKILL_DEFINITION: ConnectorSkillDefinition;
14
14
  export interface GmailSkillOptions extends Omit<ConnectorSkillOptions, "connector"> {
15
15
  /**
16
16
  * Trusted pre-built connector; wins over {@link connectorOptions}. Accepts
17
- * any mail-backed connector (Gmail REST or the himalaya CLI bridge).
17
+ * any compatible mail-backed connector.
18
18
  */
19
19
  readonly connector?: DatasourceConnector;
20
20
  readonly connectorOptions?: GmailConnectorOptions;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { AutoRAGAgent, type AutoRAGAgentOptions, type AutoRAGRefreshComponentStatus, type AutoRAGRefreshOptions, type AutoRAGRefreshResult, type AutoRAGRefreshStatus, type AutoRAGWatchRefreshHandle, type AutoRAGWatchRefreshOptions, type AutoRefreshOptions, type RefreshMethod, } from "./agent/agent.js";
2
- export { type AutoRAGResultsDetails, createEmitResultsTool, EMIT_AUTORAG_RESULTS_TOOL_NAME, type SearchDocumentDiagnostic, type SearchDocumentDiagnosticCode, type SearchDocumentDiagnosticSeverity, type SearchDocumentsResponse, type SearchDocumentWarning, } from "./agent/index.js";
2
+ export { type AutoRAGResultsDetails, createEmitResultsTool, EMIT_AUTORAG_RESULTS_TOOL_NAME, emitResultsSchema, 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
+ export { AutoRAGLite, type AutoRAGLiteOptions, buildAgentOptions, type CliConfig, createAutoRAGLite, type ResolveConfigInput, resolveConfig, resolveConfigReadOnly, writeConfigObject, writeDefaultConfig, } from "./core.js";
4
5
  export * from "./datasource/index.js";
5
6
  export * from "./dupey/index.js";
6
7
  export * from "./jikji/index.js";