@autorag/librarian 2.13.0 → 2.13.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 (56) hide show
  1. package/NOTICE +9 -9
  2. package/README.md +25 -9
  3. package/dist/agent/agent.d.ts +12 -6
  4. package/dist/agent/answer-guidelines.d.ts +3 -3
  5. package/dist/agent/refresh-progress.d.ts +4 -0
  6. package/dist/agent/search-documents.d.ts +3 -1
  7. package/dist/agent/search-progress.d.ts +5 -0
  8. package/dist/cli/commands/attachments.d.ts +13 -0
  9. package/dist/cli/index.d.ts +1 -1
  10. package/dist/cli/index.js +8688 -6851
  11. package/dist/convert/installer.d.ts +1 -1
  12. package/dist/core.js +5969 -4248
  13. package/dist/datasource/connector-skill.d.ts +1 -2
  14. package/dist/datasource/connector.d.ts +2 -3
  15. package/dist/datasource/index.d.ts +1 -2
  16. package/dist/datasource/sidecar/descriptors.d.ts +14 -1
  17. package/dist/datasource/sidecar/index.d.ts +4 -0
  18. package/dist/datasource/sidecar/methods.d.ts +5 -2
  19. package/dist/datasource/skills/discrawl/attachments.d.ts +139 -0
  20. package/dist/datasource/skills/discrawl/client.d.ts +11 -1
  21. package/dist/datasource/skills/discrawl/index.d.ts +2 -1
  22. package/dist/datasource/skills/discrawl/ranked-method.d.ts +19 -0
  23. package/dist/datasource/skills/discrawl/sidecar.d.ts +21 -0
  24. package/dist/datasource/skills/discrawl/skill.d.ts +18 -2
  25. package/dist/datasource/skills/discrawl/types.d.ts +41 -0
  26. package/dist/datasource/skills/factory.d.ts +12 -1
  27. package/dist/datasource/skills/hister/client.d.ts +5 -5
  28. package/dist/datasource/skills/hister/setup.d.ts +5 -0
  29. package/dist/datasource/skills/mailcrawl/types.d.ts +18 -0
  30. package/dist/datasource/skills/spotlight/connector.d.ts +16 -24
  31. package/dist/datasource/skills/spotlight/index.d.ts +2 -2
  32. package/dist/datasource/skills/spotlight/skill.d.ts +26 -13
  33. package/dist/index.js +6027 -4305
  34. package/dist/mcp/index.js +6021 -4293
  35. package/dist/minsync/client.d.ts +2 -2
  36. package/dist/minsync/index.d.ts +1 -1
  37. package/dist/minsync/installer.d.ts +1 -1
  38. package/dist/minsync/method.d.ts +3 -3
  39. package/dist/minsync/process.d.ts +1 -0
  40. package/dist/minsync/stage.d.ts +361 -0
  41. package/dist/minsync/types.d.ts +4 -0
  42. package/dist/minsync/workspace.d.ts +2 -1
  43. package/dist/mirror/index-store.d.ts +16 -15
  44. package/dist/mirror/index.d.ts +2 -2
  45. package/dist/mirror/paths.d.ts +0 -2
  46. package/dist/mirror/sync.d.ts +6 -15
  47. package/dist/parser/types.d.ts +2 -2
  48. package/dist/process/lifecycle.d.ts +10 -0
  49. package/dist/profiles.js +6525 -4804
  50. package/dist/retrieval/scope.d.ts +1 -1
  51. package/package.json +14 -15
  52. package/skills/autorag-lite-setup/SKILL.md +27 -3
  53. package/skills/autorag-setup/SKILL.md +32 -8
  54. package/dist/datasource/skills/mail-export/connector.d.ts +0 -21
  55. package/dist/datasource/skills/mail-export/index.d.ts +0 -2
  56. package/dist/datasource/skills/mail-export/skill.d.ts +0 -20
@@ -1,20 +1,33 @@
1
- /**
2
- * macOS Spotlight datasource skill (issue #1350).
3
- *
4
- * Thin composition of {@link SpotlightConnector} with the shared
5
- * {@link ConnectorDatasourceSkill} base. The skill is **macOS only** and
6
- * needs no external installs — it drives the built-in `mdfind` CLI. The
7
- * manifest carries operator guidance for mdfind/mdls/mdutil and the Full
8
- * Disk Access requirement.
9
- */
10
- import { ConnectorDatasourceSkill, type ConnectorSkillDefinition, type ConnectorSkillOptions } from "../../connector-skill.js";
1
+ import type { RetrievalMethod, RetrievalOptions, RetrievalResult } from "../../../retrieval/types.js";
2
+ import type { DatasourceIndexResult, DatasourceSkill, DatasourceSkillDescriptor, DatasourceSkillManifest, PollingMetadata, SourceDescription } from "../../types.js";
11
3
  import { SpotlightConnector, type SpotlightConnectorOptions } from "./connector.js";
12
- export declare const SPOTLIGHT_SKILL_DEFINITION: ConnectorSkillDefinition;
13
- export interface SpotlightSkillOptions extends Omit<ConnectorSkillOptions, "connector"> {
4
+ export interface SpotlightSkillOptions {
5
+ /** Config alias used as the independent datasource/skill identity. */
6
+ readonly skillName?: string;
7
+ readonly instanceId?: string;
8
+ readonly instances?: readonly string[];
9
+ readonly tags?: readonly string[];
14
10
  /** Trusted connector configuration; a pre-built connector wins. */
15
11
  readonly connector?: SpotlightConnector;
16
12
  readonly connectorOptions?: SpotlightConnectorOptions;
17
13
  }
18
- export declare class SpotlightSkill extends ConnectorDatasourceSkill {
14
+ /** Live macOS Spotlight datasource. Refresh probes readiness; retrieval runs `mdfind`. */
15
+ export declare class SpotlightSkill implements DatasourceSkill {
16
+ private readonly connector;
17
+ private readonly skillName;
18
+ private readonly instanceId;
19
+ private readonly instances;
20
+ private readonly tags;
21
+ private lastIndexedAt;
22
+ private lastError;
19
23
  constructor(options?: SpotlightSkillOptions);
24
+ describe(): DatasourceSkillDescriptor;
25
+ polling(): PollingMetadata;
26
+ index(): Promise<DatasourceIndexResult>;
27
+ retrievalMethods(): readonly RetrievalMethod[];
28
+ describeSources(): readonly SourceDescription[];
29
+ skillManifest(): DatasourceSkillManifest;
30
+ search(query: string, options: RetrievalOptions): Promise<RetrievalResult[]>;
31
+ private fail;
32
+ private note;
20
33
  }