@autorag/librarian 2.5.3 → 2.6.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.
- package/NOTICE +10 -13
- package/README.md +46 -7
- package/dist/agent/agent.d.ts +16 -1
- package/dist/agent/refresh-progress.d.ts +30 -0
- package/dist/agent/search-documents.d.ts +1 -1
- package/dist/cli/commands/report.d.ts +3 -0
- package/dist/cli/commands/serve.d.ts +2 -1
- package/dist/cli/config.d.ts +1 -10
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +4927 -6925
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1120 -1175
- package/dist/index.js +1123 -1179
- package/dist/language.d.ts +21 -0
- package/dist/memory/memory.d.ts +0 -1
- package/dist/mirror/paths.d.ts +2 -0
- package/dist/mirror/sync.d.ts +1 -1
- package/dist/p2p/simplex-server.d.ts +21 -5
- package/dist/p2p/simplex-transport.d.ts +21 -4
- package/dist/parser/defaults.d.ts +10 -4
- package/dist/parser/index.d.ts +3 -5
- package/dist/parser/kordoc.d.ts +53 -0
- package/dist/parser/ocr-engines.d.ts +12 -0
- package/dist/parser/ocr.d.ts +7 -1
- package/dist/parser/office.d.ts +1 -10
- package/dist/parser/types.d.ts +1 -1
- package/package.json +10 -10
- package/skills/autorag-lite-search/SKILL.md +57 -7
- package/skills/autorag-lite-setup/SKILL.md +2 -2
- package/skills/autorag-setup/SKILL.md +2 -2
- package/dist/cli/commands/ui.d.ts +0 -13
- package/dist/parser/hwp-markdown.d.ts +0 -25
- package/dist/parser/hwp.d.ts +0 -13
- package/dist/parser/opendataloader-pdf.d.ts +0 -31
- package/dist/parser/rhwp-adapter.d.ts +0 -30
- package/dist/ui/browse.d.ts +0 -11
- package/dist/ui/catalog.d.ts +0 -59
- package/dist/ui/config-store.d.ts +0 -43
- package/dist/ui/discover.d.ts +0 -17
- package/dist/ui/html.d.ts +0 -2
- package/dist/ui/probe.d.ts +0 -24
- package/dist/ui/prompt.d.ts +0 -21
- package/dist/ui/server.d.ts +0 -28
package/dist/ui/catalog.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Operator-facing connection catalog for the local datasource UI.
|
|
3
|
-
*
|
|
4
|
-
* Each built-in factory key gets a small form: paths, env-var *names*,
|
|
5
|
-
* feed/repo lists, and optional CLI binary paths. Secret values are never
|
|
6
|
-
* catalog fields.
|
|
7
|
-
*/
|
|
8
|
-
export declare const LOCAL_FOLDERS_ID = "local-folders";
|
|
9
|
-
export type CatalogFieldKind = "text" | "path" | "path-list" | "env" | "textarea" | "select" | "checkbox";
|
|
10
|
-
export interface CatalogField {
|
|
11
|
-
readonly key: string;
|
|
12
|
-
readonly label: string;
|
|
13
|
-
readonly kind: CatalogFieldKind;
|
|
14
|
-
readonly help?: string;
|
|
15
|
-
readonly required?: boolean;
|
|
16
|
-
readonly placeholder?: string;
|
|
17
|
-
readonly options?: readonly {
|
|
18
|
-
readonly value: string;
|
|
19
|
-
readonly label: string;
|
|
20
|
-
}[];
|
|
21
|
-
}
|
|
22
|
-
export interface DatasourceTypeCatalog {
|
|
23
|
-
readonly type: string;
|
|
24
|
-
readonly title: string;
|
|
25
|
-
readonly summary: string;
|
|
26
|
-
readonly defaultTags: readonly string[];
|
|
27
|
-
readonly binaryName?: string;
|
|
28
|
-
readonly installHint?: string;
|
|
29
|
-
readonly fields: readonly CatalogField[];
|
|
30
|
-
}
|
|
31
|
-
export declare const DATASOURCE_TYPE_CATALOG: readonly DatasourceTypeCatalog[];
|
|
32
|
-
export declare function getDatasourceType(type: string): DatasourceTypeCatalog | undefined;
|
|
33
|
-
export type SourcePickerKind = "folders" | "index" | "datasource";
|
|
34
|
-
export interface SourcePickerEntry {
|
|
35
|
-
readonly type: string;
|
|
36
|
-
readonly title: string;
|
|
37
|
-
readonly summary: string;
|
|
38
|
-
readonly kind: SourcePickerKind;
|
|
39
|
-
readonly binaryName?: string;
|
|
40
|
-
readonly installHint?: string;
|
|
41
|
-
/** False for sources that cannot attach a second account (KakaoTalk). */
|
|
42
|
-
readonly supportsMultiple: boolean;
|
|
43
|
-
readonly extras: readonly PickerExtra[];
|
|
44
|
-
}
|
|
45
|
-
export type PickerExtraKind = "text" | "textarea" | "select" | "path";
|
|
46
|
-
export interface PickerExtra {
|
|
47
|
-
readonly key: string;
|
|
48
|
-
readonly label: string;
|
|
49
|
-
readonly kind: PickerExtraKind;
|
|
50
|
-
readonly placeholder?: string;
|
|
51
|
-
readonly help?: string;
|
|
52
|
-
readonly choices?: "rclone-remotes" | "mail-accounts";
|
|
53
|
-
readonly allowOther?: boolean;
|
|
54
|
-
/** Asked in the coding-agent prompt when this extra is left blank. */
|
|
55
|
-
readonly question: string;
|
|
56
|
-
}
|
|
57
|
-
export declare const SOURCE_PICKER: readonly SourcePickerEntry[];
|
|
58
|
-
export declare function getPickerEntry(type: string): SourcePickerEntry | undefined;
|
|
59
|
-
export declare function assertCatalogCoversBuiltins(): void;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trusted config mutations for the local datasource UI.
|
|
3
|
-
*
|
|
4
|
-
* Reads/writes the operator `config.json` on disk. Never persists secret
|
|
5
|
-
* values — only env-var names, paths, and lists. Enabling a connection
|
|
6
|
-
* recomputes `datasourceAccess` from catalog tags + `/${alias}/**` scopes.
|
|
7
|
-
*/
|
|
8
|
-
import { DATASOURCE_TYPE_CATALOG, SOURCE_PICKER } from "./catalog.js";
|
|
9
|
-
import { type ProbeResult } from "./probe.js";
|
|
10
|
-
export interface ConnectionInput {
|
|
11
|
-
readonly alias: string;
|
|
12
|
-
readonly type: string;
|
|
13
|
-
readonly enabled?: boolean;
|
|
14
|
-
readonly instanceId?: string;
|
|
15
|
-
readonly connector?: Record<string, unknown>;
|
|
16
|
-
readonly tags?: readonly string[];
|
|
17
|
-
}
|
|
18
|
-
export interface UiConnection {
|
|
19
|
-
readonly alias: string;
|
|
20
|
-
readonly type: string;
|
|
21
|
-
readonly enabled: boolean;
|
|
22
|
-
readonly instanceId?: string;
|
|
23
|
-
readonly connector: Record<string, unknown>;
|
|
24
|
-
readonly tags: readonly string[];
|
|
25
|
-
readonly probe: ProbeResult;
|
|
26
|
-
}
|
|
27
|
-
export interface UiState {
|
|
28
|
-
readonly searchPaths: readonly string[];
|
|
29
|
-
readonly connections: readonly UiConnection[];
|
|
30
|
-
readonly catalog: typeof DATASOURCE_TYPE_CATALOG;
|
|
31
|
-
readonly picker: typeof SOURCE_PICKER;
|
|
32
|
-
readonly access: {
|
|
33
|
-
readonly allowedTags: readonly string[];
|
|
34
|
-
readonly allowedScopes: readonly string[];
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export declare function listUiState(configPath: string, env?: NodeJS.ProcessEnv): UiState;
|
|
38
|
-
export declare function upsertConnection(configPath: string, input: ConnectionInput): UiState;
|
|
39
|
-
export declare function toggleConnection(configPath: string, alias: string, enabled: boolean): UiState;
|
|
40
|
-
export declare function removeConnection(configPath: string, alias: string): UiState;
|
|
41
|
-
export declare function setSearchPaths(configPath: string, searchPaths: readonly string[]): UiState;
|
|
42
|
-
export declare function normalizeAlias(alias: string): string;
|
|
43
|
-
export declare function stripSecrets<T>(value: T): T;
|
package/dist/ui/discover.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Best-effort local account/remote discovery for the datasource UI.
|
|
3
|
-
* Spawns operator CLIs with a short timeout. Failures return empty lists.
|
|
4
|
-
*/
|
|
5
|
-
export interface Choice {
|
|
6
|
-
readonly value: string;
|
|
7
|
-
readonly label: string;
|
|
8
|
-
}
|
|
9
|
-
export type DiscoverRun = (binary: string, args: readonly string[]) => Promise<{
|
|
10
|
-
ok: boolean;
|
|
11
|
-
stdout: string;
|
|
12
|
-
}>;
|
|
13
|
-
export declare function listRcloneRemotes(run?: DiscoverRun): Promise<readonly Choice[]>;
|
|
14
|
-
export declare function choicesForType(type: string, run?: DiscoverRun): Promise<{
|
|
15
|
-
rcloneRemotes: readonly Choice[];
|
|
16
|
-
mailAccounts: readonly Choice[];
|
|
17
|
-
}>;
|
package/dist/ui/html.d.ts
DELETED
package/dist/ui/probe.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Local, side-effect-free connection probes for the datasource UI.
|
|
3
|
-
*
|
|
4
|
-
* Checks env-var presence, path existence, and CLI binaries on PATH.
|
|
5
|
-
* Never returns secret values.
|
|
6
|
-
*/
|
|
7
|
-
export type ProbeStatus = "ready" | "auth-missing" | "binary-missing" | "path-missing" | "not-configured" | "unknown-type";
|
|
8
|
-
export interface ProbeResult {
|
|
9
|
-
readonly ok: boolean;
|
|
10
|
-
readonly status: ProbeStatus;
|
|
11
|
-
readonly detail: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ProbeConnectionInput {
|
|
14
|
-
readonly alias: string;
|
|
15
|
-
readonly type: string;
|
|
16
|
-
readonly enabled?: boolean;
|
|
17
|
-
readonly connector?: Record<string, unknown>;
|
|
18
|
-
}
|
|
19
|
-
export interface ProbeDeps {
|
|
20
|
-
readonly env?: NodeJS.ProcessEnv;
|
|
21
|
-
readonly pathExists?: (path: string) => boolean;
|
|
22
|
-
readonly binaryExists?: (binaryName: string, binaryPath?: string) => boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare function probeConnection(input: ProbeConnectionInput, deps?: ProbeDeps): ProbeResult;
|
package/dist/ui/prompt.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Short copy-paste prompt for a coding agent.
|
|
3
|
-
*
|
|
4
|
-
* The operator picks a type, names it, and may fill optional extras
|
|
5
|
-
* (repos, remotes, mailbox). Blank extras become questions the agent
|
|
6
|
-
* must ask the user.
|
|
7
|
-
*/
|
|
8
|
-
export interface RegistrationPromptInput {
|
|
9
|
-
readonly type: string;
|
|
10
|
-
readonly alias?: string;
|
|
11
|
-
readonly note?: string;
|
|
12
|
-
readonly extras?: Readonly<Record<string, string>>;
|
|
13
|
-
}
|
|
14
|
-
export interface RegistrationPrompt {
|
|
15
|
-
readonly type: string;
|
|
16
|
-
readonly title: string;
|
|
17
|
-
readonly alias: string;
|
|
18
|
-
readonly prompt: string;
|
|
19
|
-
readonly questions: readonly string[];
|
|
20
|
-
}
|
|
21
|
-
export declare function buildRegistrationPrompt(input: RegistrationPromptInput): RegistrationPrompt;
|
package/dist/ui/server.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Loopback-only HTTP server for the datasource UI.
|
|
3
|
-
*
|
|
4
|
-
* Binds 127.0.0.1 / ::1, requires a session token, and never returns secret
|
|
5
|
-
* connector values. This is a trusted local control plane — the same trust
|
|
6
|
-
* boundary as editing config.json by hand.
|
|
7
|
-
*/
|
|
8
|
-
export interface StartUiServerOptions {
|
|
9
|
-
readonly configPath: string;
|
|
10
|
-
readonly host?: string;
|
|
11
|
-
readonly port?: number;
|
|
12
|
-
readonly token: string;
|
|
13
|
-
readonly env?: NodeJS.ProcessEnv;
|
|
14
|
-
readonly allowRemote?: boolean;
|
|
15
|
-
readonly publicOrigin?: string;
|
|
16
|
-
readonly corsOrigins?: readonly string[];
|
|
17
|
-
}
|
|
18
|
-
export interface UiServer {
|
|
19
|
-
readonly url: string;
|
|
20
|
-
readonly origin: string;
|
|
21
|
-
readonly host: string;
|
|
22
|
-
readonly port: number;
|
|
23
|
-
readonly token: string;
|
|
24
|
-
close(): Promise<void>;
|
|
25
|
-
}
|
|
26
|
-
export declare function isLoopbackHost(host: string): boolean;
|
|
27
|
-
export declare function isLoopbackAddress(address: string | undefined): boolean;
|
|
28
|
-
export declare function startUiServer(options: StartUiServerOptions): Promise<UiServer>;
|