@autorag/librarian 2.10.1 → 2.10.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.
- package/NOTICE +0 -3
- package/README.md +76 -33
- package/dist/agent/agent.d.ts +96 -18
- package/dist/agent/evidence-ledger.d.ts +54 -5
- package/dist/agent/evidence-persistence.d.ts +24 -0
- package/dist/agent/jev-extension.d.ts +5 -3
- package/dist/agent/search-documents.d.ts +1 -1
- package/dist/agent/system-prompt.d.ts +0 -2
- package/dist/agent/tool-burst-guard.d.ts +26 -0
- package/dist/cli/config.d.ts +37 -23
- package/dist/cli/index.js +2095 -1151
- package/dist/cloud/config.d.ts +16 -10
- package/dist/cloud/credential.d.ts +17 -0
- package/dist/cloud/errors.d.ts +6 -6
- package/dist/cloud/index.d.ts +5 -4
- package/dist/cloud/jev-backend.d.ts +15 -13
- package/dist/cloud/models.d.ts +4 -4
- package/dist/cloud/oauth-login.d.ts +3 -3
- package/dist/cloud/provider.d.ts +16 -11
- package/dist/cloud/token.d.ts +2 -2
- package/dist/core.d.ts +2 -1
- package/dist/core.js +2237 -1310
- package/dist/datasource/aliased-skill.d.ts +2 -2
- package/dist/datasource/connector-skill.d.ts +2 -2
- package/dist/datasource/crawler-skill.d.ts +2 -2
- package/dist/datasource/described-skill.d.ts +2 -2
- package/dist/datasource/index.d.ts +1 -1
- package/dist/datasource/retry.d.ts +49 -0
- package/dist/datasource/skills/clawgallery/skill.d.ts +4 -4
- package/dist/datasource/skills/discrawl/skill.d.ts +5 -5
- package/dist/datasource/skills/github-gist/skill.d.ts +2 -2
- package/dist/datasource/skills/lazykatok/skill.d.ts +5 -5
- package/dist/datasource/skills/mailcrawl/skill.d.ts +2 -2
- package/dist/datasource/skills/obsidian/skill.d.ts +5 -5
- package/dist/datasource/types.d.ts +13 -1
- package/dist/embedding-runtime/cache.d.ts +9 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2301 -1375
- package/dist/jikji/client.d.ts +13 -2
- package/dist/jikji/index.d.ts +1 -1
- package/dist/jikji/path-map.d.ts +9 -0
- package/dist/jikji/prepare-budget.d.ts +18 -0
- package/dist/jikji/serial-queue.d.ts +17 -0
- package/dist/jikji/types.d.ts +17 -0
- package/dist/mcp/index.js +2281 -1354
- package/dist/minsync/client.d.ts +3 -1
- package/dist/minsync/method.d.ts +1 -1
- package/dist/minsync/types.d.ts +1 -1
- package/dist/mirror/atomic-write.d.ts +6 -0
- package/dist/mirror/index-store.d.ts +8 -1
- package/dist/mirror/index.d.ts +2 -2
- package/dist/mirror/sync.d.ts +57 -1
- package/dist/p2p/simplex-server.d.ts +0 -1
- package/dist/parser/defaults.d.ts +8 -0
- package/dist/parser/errors.d.ts +10 -0
- package/dist/parser/isolated.d.ts +77 -0
- package/dist/parser/kordoc.d.ts +1 -0
- package/dist/parser/parse-worker.d.ts +1 -0
- package/dist/parser/parse-worker.js +780 -0
- package/dist/parser/types.d.ts +5 -0
- package/dist/process/abort-reason.d.ts +2 -0
- package/dist/retrieval/index.d.ts +1 -1
- package/dist/retrieval/rerank.d.ts +16 -10
- package/package.json +5 -5
- package/skills/autorag/SKILL.md +2 -1
- package/skills/autorag-doctor/SKILL.md +6 -0
- package/skills/autorag-lite-setup/SKILL.md +1 -1
- package/skills/autorag-setup/SKILL.md +41 -16
- package/dist/manifest/index.d.ts +0 -2
- package/dist/manifest/loader.d.ts +0 -3
- package/dist/manifest/types.d.ts +0 -8
package/dist/cloud/config.d.ts
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
/** Provider identity and endpoint configuration for the hosted
|
|
2
|
-
export declare const PROVIDER_ID = "
|
|
3
|
-
export declare const PROVIDER_NAME = "
|
|
1
|
+
/** Provider identity and endpoint configuration for the hosted Dazzi Models plan. */
|
|
2
|
+
export declare const PROVIDER_ID = "dazzi";
|
|
3
|
+
export declare const PROVIDER_NAME = "Dazzi Models";
|
|
4
|
+
/**
|
|
5
|
+
* Chat model used when nothing is configured and the user is signed in. Used only
|
|
6
|
+
* if the live or persisted catalog lists it; otherwise the first catalog model.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_DAZZI_CHAT_MODEL_ID = "anthropic/claude-haiku-5.5";
|
|
9
|
+
/**
|
|
10
|
+
* Question-decomposition model used when nothing is configured and the user is
|
|
11
|
+
* signed in. `z-ai/glm-5.3-flash` is not usable here: it requires reasoning, and
|
|
12
|
+
* the decomposition call runs with reasoning off. Same catalog caveat as
|
|
13
|
+
* {@link DEFAULT_DAZZI_CHAT_MODEL_ID}: the model must be in the signed-in catalog.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DEFAULT_DAZZI_QUERY_DECOMPOSITION_MODEL_ID = "openai/gpt-6-luna";
|
|
4
16
|
/** Server root, e.g. `https://api.dazziapp.com`. The API lives under `<root>/v1`. */
|
|
5
17
|
export declare const DEFAULT_BASE_URL = "https://api.dazziapp.com";
|
|
6
18
|
export declare const AUTORAG_BASE_URL_ENV = "AUTORAG_BASE_URL";
|
|
7
|
-
export declare const AUTORAG_API_KEY_ENV = "AUTORAG_API_KEY";
|
|
8
19
|
/** Server paths appended to the normalized server root. */
|
|
9
20
|
export declare const API_PATH = "/v1";
|
|
10
21
|
export declare const MODELS_PATH = "/v1/models";
|
|
@@ -20,7 +31,7 @@ export declare const TOKEN_PATH = "/api/desktop/token";
|
|
|
20
31
|
* cap leaves headroom for the tool declarations and request framing the
|
|
21
32
|
* transcript size does not count; the resize cap keeps one image well below it.
|
|
22
33
|
*/
|
|
23
|
-
export declare const
|
|
34
|
+
export declare const DAZZI_INPUT_LIMITS: {
|
|
24
35
|
readonly maxRequestBytes: 3500000;
|
|
25
36
|
readonly images: {
|
|
26
37
|
readonly resize: {
|
|
@@ -30,11 +41,6 @@ export declare const AUTORAG_INPUT_LIMITS: {
|
|
|
30
41
|
};
|
|
31
42
|
/** OAuth client identifier for the AutoRAG agent (Pi-compatible hosts use `pi`). */
|
|
32
43
|
export declare const OAUTH_CLIENT_ID = "agent";
|
|
33
|
-
/**
|
|
34
|
-
* Value used for `ProviderConfig.apiKey`. Pi resolves `$NAME` from the
|
|
35
|
-
* environment, so `AUTORAG_API_KEY` enables a headless, login-free setup.
|
|
36
|
-
*/
|
|
37
|
-
export declare const API_KEY_CONFIG_VALUE = "$AUTORAG_API_KEY";
|
|
38
44
|
/** Trim whitespace and trailing slashes so path concatenation is unambiguous. */
|
|
39
45
|
export declare function normalizeBaseUrl(value: string): string;
|
|
40
46
|
/** Server root from `AUTORAG_BASE_URL`, falling back to {@link DEFAULT_BASE_URL}. */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Message for every Dazzi-backed feature used without a stored `/login` credential. */
|
|
2
|
+
export declare const DAZZI_LOGIN_REQUIRED_MESSAGE = "Dazzi Models needs a sign-in: run `autorag tui`, then `/login` and choose Dazzi Models.";
|
|
3
|
+
/**
|
|
4
|
+
* The bearer token `/login` stored for the Dazzi Models plan, or `undefined`
|
|
5
|
+
* when the user has not signed in.
|
|
6
|
+
*
|
|
7
|
+
* Login is the only credential: Dazzi's `/v1/*` endpoints take the key the
|
|
8
|
+
* sign-in flow issues, so Jev and rerank read the same `auth.json` entry the
|
|
9
|
+
* model provider uses. `agentDir` defaults to Pi's agent home.
|
|
10
|
+
*/
|
|
11
|
+
export declare function readDazziLoginToken(agentDir?: string): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Whether a `/login` credential for Dazzi Models is stored. Defaults (Jev,
|
|
14
|
+
* rerank, question decomposition, the chat model) follow this: signed in means
|
|
15
|
+
* the hosted plan, signed out keeps the OpenRouter defaults.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isDazziSignedIn(agentDir?: string): boolean;
|
package/dist/cloud/errors.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Error types for the hosted
|
|
2
|
+
* Error types for the hosted Dazzi Models provider.
|
|
3
3
|
*
|
|
4
4
|
* Messages never contain credentials, authorization headers, or provider
|
|
5
5
|
* payloads; they are safe to surface in the CLI UI and in test assertions.
|
|
6
6
|
*/
|
|
7
|
-
/** Base class for every error raised by the
|
|
8
|
-
export declare class
|
|
7
|
+
/** Base class for every error raised by the Dazzi Models provider. */
|
|
8
|
+
export declare class DazziError extends Error {
|
|
9
9
|
constructor(message: string, options?: {
|
|
10
10
|
cause?: unknown;
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
/** Raised for OAuth/PKCE/callback failures. */
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class DazziOAuthError extends DazziError {
|
|
15
15
|
constructor(message: string, options?: {
|
|
16
16
|
cause?: unknown;
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Raised when an HTTP call to
|
|
20
|
+
* Raised when an HTTP call to Dazzi Models fails.
|
|
21
21
|
*
|
|
22
22
|
* `status` is the HTTP status code, `code`/`type` come from the OpenAI-shaped
|
|
23
23
|
* error body when the server supplies them.
|
|
24
24
|
*/
|
|
25
|
-
export declare class
|
|
25
|
+
export declare class DazziHttpError extends DazziError {
|
|
26
26
|
readonly status: number;
|
|
27
27
|
readonly code?: string;
|
|
28
28
|
readonly type?: string;
|
package/dist/cloud/index.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ export { buildAuthorizeUrl } from "./authorize.js";
|
|
|
3
3
|
export type { CallbackResult } from "./callback.js";
|
|
4
4
|
export { parseCallbackInput, parseCallbackQuery, requireAuthorizationCode } from "./callback.js";
|
|
5
5
|
export { CALLBACK_PATH, type CallbackServer, type CallbackServerOptions, DEFAULT_LOGIN_TIMEOUT_MS, startCallbackServer, } from "./callback-server.js";
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
6
|
+
export { API_PATH, AUTHORIZE_PATH, AUTORAG_BASE_URL_ENV, DEFAULT_BASE_URL, MODELS_PATH, normalizeBaseUrl, OAUTH_CLIENT_ID, PROVIDER_ID, PROVIDER_NAME, resolveBaseUrl, TOKEN_PATH, } from "./config.js";
|
|
7
|
+
export { DAZZI_LOGIN_REQUIRED_MESSAGE, readDazziLoginToken } from "./credential.js";
|
|
8
|
+
export { DazziError, DazziHttpError, DazziOAuthError, type ErrorPayload, extractErrorPayload, } from "./errors.js";
|
|
8
9
|
export { buildStoreEntry, DEFAULT_CONTEXT_WINDOW, DEFAULT_MAX_TOKENS, type FetchModelsOptions, fetchModels, mapModelsError, mapServerModel, mapServerModels, modelsFromStore, resolveCredentialKey, } from "./models.js";
|
|
9
|
-
export { type LoginOptions,
|
|
10
|
+
export { type LoginOptions, loginDazzi, refreshDazziCredentials } from "./oauth-login.js";
|
|
10
11
|
export { base64UrlEncode, createCodeChallenge, createCodeVerifier, createPkcePair, createState, type PkcePair, } from "./pkce.js";
|
|
11
|
-
export { type
|
|
12
|
+
export { createDazziProviderConfig, type DazziEnv, refreshDazziModels, registerDazziProvider, } from "./provider.js";
|
|
12
13
|
export { type ExchangeCodeOptions, exchangeCodeForToken, mapTokenExchangeError, type TokenResponse } from "./token.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Jev backend for the hosted
|
|
2
|
+
* Jev backend for the hosted Dazzi Models plan.
|
|
3
3
|
*
|
|
4
4
|
* The server answers Jev's native dialect at `POST <root>/v1/jev` behind the
|
|
5
|
-
*
|
|
5
|
+
* Dazzi login token (stored by `/login`), returning the same `answers` map the
|
|
6
6
|
* TypeSafe and OpenRouter backends do. `jev-use`'s package index does not
|
|
7
7
|
* export its native-dialect helpers, so the small mapping and the retrying JSON
|
|
8
8
|
* transport are reimplemented here against that documented dialect (covered by
|
|
@@ -15,17 +15,19 @@
|
|
|
15
15
|
import { type BackendRequest, type BackendResponse, type JevBackend, type Question, type RawAnswer, type State } from "jev-use";
|
|
16
16
|
/** API path appended to the normalized server root. */
|
|
17
17
|
export declare const JEV_PATH = "/v1/jev";
|
|
18
|
-
/** Live Jev model id on the hosted
|
|
19
|
-
export declare const
|
|
20
|
-
/** Options for {@link
|
|
21
|
-
export interface
|
|
22
|
-
/** Environment holding
|
|
18
|
+
/** Live Jev model id on the hosted Dazzi Models plan. */
|
|
19
|
+
export declare const DAZZI_DEFAULT_JEV_MODEL = "jev-1.13";
|
|
20
|
+
/** Options for {@link DazziJevBackend}. */
|
|
21
|
+
export interface DazziJevBackendOptions {
|
|
22
|
+
/** Environment holding `AUTORAG_BASE_URL`. Default `process.env`. */
|
|
23
23
|
readonly env?: Record<string, string | undefined>;
|
|
24
|
-
/**
|
|
24
|
+
/** Pi agent home whose `auth.json` holds the `/login` credential. Default: Pi's agent dir. */
|
|
25
|
+
readonly agentDir?: string;
|
|
26
|
+
/** Explicit bearer token (test seam); when omitted, the stored login token is used. */
|
|
25
27
|
readonly apiKey?: string;
|
|
26
28
|
/** Override the server root (test seam); defaults to `resolveBaseUrl(env)`. */
|
|
27
29
|
readonly baseUrl?: string;
|
|
28
|
-
/** Model used when a call names none. @default
|
|
30
|
+
/** Model used when a call names none. @default DAZZI_DEFAULT_JEV_MODEL */
|
|
29
31
|
readonly defaultModel?: string;
|
|
30
32
|
/** Abort one attempt after this long. @default 10_000 */
|
|
31
33
|
readonly timeoutMs?: number;
|
|
@@ -56,21 +58,21 @@ interface NativeBody {
|
|
|
56
58
|
questions: Record<string, NativeWireQuestion>;
|
|
57
59
|
}
|
|
58
60
|
/**
|
|
59
|
-
* Jev backend served by the hosted
|
|
61
|
+
* Jev backend served by the hosted Dazzi Models plan.
|
|
60
62
|
*
|
|
61
63
|
* The constructor throws a named error when no account key is configured — a
|
|
62
64
|
* missing credential must be loud, never a silent fake judgment — and the retry
|
|
63
65
|
* policy mirrors `jev-use`'s own remote backends (408/429/5xx, `Retry-After`).
|
|
64
66
|
*/
|
|
65
|
-
export declare class
|
|
66
|
-
readonly name = "
|
|
67
|
+
export declare class DazziJevBackend implements JevBackend {
|
|
68
|
+
readonly name = "dazzi";
|
|
67
69
|
private readonly apiKey;
|
|
68
70
|
private readonly baseUrl;
|
|
69
71
|
private readonly defaultModel;
|
|
70
72
|
private readonly timeoutMs;
|
|
71
73
|
private readonly maxRetries;
|
|
72
74
|
private readonly fetchImpl;
|
|
73
|
-
constructor(options?:
|
|
75
|
+
constructor(options?: DazziJevBackendOptions);
|
|
74
76
|
judge(request: BackendRequest): Promise<BackendResponse>;
|
|
75
77
|
/** POST JSON with a per-attempt timeout and jev-use's retry policy. */
|
|
76
78
|
private postJson;
|
package/dist/cloud/models.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Credential, ModelsStoreEntry } from "@earendil-works/pi-ai";
|
|
2
2
|
import type { ProviderModelConfig } from "@earendil-works/pi-coding-agent";
|
|
3
|
-
import {
|
|
3
|
+
import { DazziHttpError } from "./errors.js";
|
|
4
4
|
/** Used when the server omits `context_window` / `max_output_tokens`. */
|
|
5
5
|
export declare const DEFAULT_CONTEXT_WINDOW = 128000;
|
|
6
6
|
export declare const DEFAULT_MAX_TOKENS = 16384;
|
|
7
7
|
export interface FetchModelsOptions {
|
|
8
8
|
/** Server root, e.g. `https://api.dazziapp.com`. */
|
|
9
9
|
baseUrl: string;
|
|
10
|
-
/** Bearer token
|
|
10
|
+
/** Bearer token from the stored `/login` credential. */
|
|
11
11
|
apiKey: string;
|
|
12
12
|
signal?: AbortSignal;
|
|
13
13
|
fetchImpl?: typeof fetch;
|
|
@@ -21,10 +21,10 @@ export declare function resolveCredentialKey(credential: Credential | undefined)
|
|
|
21
21
|
*/
|
|
22
22
|
export declare function fetchModels(options: FetchModelsOptions): Promise<ProviderModelConfig[]>;
|
|
23
23
|
/** Map a failed `/v1/models` response; 401 means the token is invalid or revoked. */
|
|
24
|
-
export declare function mapModelsError(status: number, body: unknown):
|
|
24
|
+
export declare function mapModelsError(status: number, body: unknown): DazziHttpError;
|
|
25
25
|
/** Map an OpenAI-shaped `{ object: "list", data: [...] }` catalog body. */
|
|
26
26
|
export declare function mapServerModels(payload: unknown): ProviderModelConfig[];
|
|
27
|
-
/** Map a single
|
|
27
|
+
/** Map a single Dazzi Models record; returns `undefined` when it has no usable id. */
|
|
28
28
|
export declare function mapServerModel(entry: Record<string, unknown>): ProviderModelConfig | undefined;
|
|
29
29
|
/** Snapshot the live catalog for offline startup. */
|
|
30
30
|
export declare function buildStoreEntry(models: readonly ProviderModelConfig[], providerId: string, baseUrl: string): ModelsStoreEntry;
|
|
@@ -7,10 +7,10 @@ export interface LoginOptions {
|
|
|
7
7
|
fetchImpl?: typeof fetch;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Dazzi Models tokens are long-lived revocable API keys: there is no refresh token
|
|
11
11
|
* and no expiry, so a refresh returns the stored credentials unchanged.
|
|
12
12
|
*/
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function refreshDazziCredentials(credentials: OAuthCredentials): OAuthCredentials;
|
|
14
14
|
/**
|
|
15
15
|
* OAuth2 authorization-code + PKCE (S256) login for native apps.
|
|
16
16
|
*
|
|
@@ -19,4 +19,4 @@ export declare function refreshAutoragCredentials(credentials: OAuthCredentials)
|
|
|
19
19
|
* the final redirect URL (or the bare code) into the prompt instead; both paths
|
|
20
20
|
* are raced and the first result wins.
|
|
21
21
|
*/
|
|
22
|
-
export declare function
|
|
22
|
+
export declare function loginDazzi(callbacks: OAuthLoginCallbacks, options: LoginOptions): Promise<OAuthCredentials>;
|
package/dist/cloud/provider.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The hosted
|
|
3
|
-
* `autorag`.
|
|
2
|
+
* The hosted Dazzi Models plan as a first-class model provider named `dazzi`.
|
|
4
3
|
*
|
|
5
4
|
* The server exposes an OpenAI Responses API surface under `<root>/v1`. Login
|
|
6
|
-
* is OAuth2 authorization-code + PKCE over a loopback redirect
|
|
7
|
-
*
|
|
5
|
+
* is OAuth2 authorization-code + PKCE over a loopback redirect and is the only
|
|
6
|
+
* way to authenticate; the model catalog is discovered live from
|
|
8
7
|
* `GET <root>/v1/models` — no model id is ever hardcoded here. Streaming is
|
|
9
8
|
* delegated to Pi's built-in `openai-responses` API implementation.
|
|
10
9
|
*/
|
|
11
10
|
import type { RefreshModelsContext } from "@earendil-works/pi-ai";
|
|
12
11
|
import type { ModelRuntime, ProviderConfig, ProviderModelConfig } from "@earendil-works/pi-coding-agent";
|
|
13
12
|
/** Injection seam for tests and hosts that resolve configuration themselves. */
|
|
14
|
-
export type
|
|
13
|
+
export type DazziEnv = Record<string, string | undefined>;
|
|
15
14
|
interface Endpoints {
|
|
16
15
|
/** Server root, used for OAuth endpoints. */
|
|
17
16
|
baseUrl: string;
|
|
@@ -25,16 +24,22 @@ interface Endpoints {
|
|
|
25
24
|
* credential (or without network access) the last persisted catalog, if any,
|
|
26
25
|
* is restored; a failed fetch keeps the previous list instead of blanking it.
|
|
27
26
|
*/
|
|
28
|
-
export declare function
|
|
29
|
-
/** Build the `ProviderConfig` handed to `ModelRuntime.registerProvider("autorag", ...)`. */
|
|
30
|
-
export declare function createAutoRAGProviderConfig(env?: AutoragEnv): ProviderConfig;
|
|
27
|
+
export declare function refreshDazziModels(context: RefreshModelsContext, endpoints: Endpoints): Promise<ProviderModelConfig[]>;
|
|
31
28
|
/**
|
|
32
|
-
*
|
|
29
|
+
* Build the `ProviderConfig` handed to `ModelRuntime.registerProvider("dazzi", ...)`.
|
|
33
30
|
*
|
|
34
|
-
*
|
|
31
|
+
* No `apiKey` is declared: the provider is OAuth-only, so a signed-out refresh
|
|
32
|
+
* restores the persisted snapshot without an error and `/login` still lists
|
|
33
|
+
* Dazzi Models.
|
|
34
|
+
*/
|
|
35
|
+
export declare function createDazziProviderConfig(env?: DazziEnv): ProviderConfig;
|
|
36
|
+
/**
|
|
37
|
+
* The single registration point: register `dazzi` on a Pi `ModelRuntime`.
|
|
38
|
+
*
|
|
39
|
+
* Runs even when the user is not signed in, so `/login` lists Dazzi Models. The
|
|
35
40
|
* awaited cache-only refresh loads the persisted catalog snapshot (offline and
|
|
36
41
|
* with `allowModelNetwork:false`); it makes no network call, so a signed-out
|
|
37
42
|
* provider contributes no models and nothing here reaches the network.
|
|
38
43
|
*/
|
|
39
|
-
export declare function
|
|
44
|
+
export declare function registerDazziProvider(runtime: ModelRuntime, env?: DazziEnv): Promise<void>;
|
|
40
45
|
export {};
|
package/dist/cloud/token.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DazziHttpError } from "./errors.js";
|
|
2
2
|
export interface TokenResponse {
|
|
3
3
|
accessToken: string;
|
|
4
4
|
email?: string;
|
|
@@ -13,7 +13,7 @@ export interface ExchangeCodeOptions {
|
|
|
13
13
|
fetchImpl?: typeof fetch;
|
|
14
14
|
}
|
|
15
15
|
/** Map a failed token-exchange response to an error carrying the HTTP status and server code. */
|
|
16
|
-
export declare function mapTokenExchangeError(status: number, body: unknown):
|
|
16
|
+
export declare function mapTokenExchangeError(status: number, body: unknown): DazziHttpError;
|
|
17
17
|
/**
|
|
18
18
|
* Trade a PKCE authorization code for a long-lived API key.
|
|
19
19
|
*
|
package/dist/core.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { type SearchDocumentsResponse } from "./agent/search-documents.js";
|
|
|
4
4
|
import { type CliConfig, type ResolveConfigInput } from "./cli/config.js";
|
|
5
5
|
import type { EverythingSearchRequest, EverythingSearchResult } from "./everything/index.js";
|
|
6
6
|
import type { FSearchSearchRequest, FSearchSearchResult } from "./fsearch/index.js";
|
|
7
|
+
import type { JikjiPrepareOptions } from "./jikji/index.js";
|
|
7
8
|
import type { MemorySchema } from "./memory/memory.js";
|
|
8
9
|
import type { MinSyncSyncResult } from "./minsync/types.js";
|
|
9
10
|
import type { ParsedMirrorSyncResult } from "./mirror/sync.js";
|
|
@@ -37,7 +38,7 @@ export declare class AutoRAGLite {
|
|
|
37
38
|
/** Run the configured MinSync indexer without constructing a model. */
|
|
38
39
|
syncMinSync(): Promise<MinSyncSyncResult | undefined>;
|
|
39
40
|
/** Run the configured Jikji preparer without constructing a model. */
|
|
40
|
-
prepareJikji(): Promise<readonly AutoRAGJikjiPrepareResult[] | undefined>;
|
|
41
|
+
prepareJikji(options?: JikjiPrepareOptions): Promise<readonly AutoRAGJikjiPrepareResult[] | undefined>;
|
|
41
42
|
/** Start an opt-in incremental filesystem refresh watcher. */
|
|
42
43
|
startWatchRefresh(options?: AutoRAGWatchRefreshOptions): AutoRAGWatchRefreshHandle;
|
|
43
44
|
/** Return the deterministic retrieval engine used by this configured runtime. */
|