@easbot/llm 0.3.32 → 0.3.36
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/README.en.md +1 -1
- package/README.md +1 -1
- package/dist/chunks/{chunk-R2HXV27D.mjs → chunk-3DTBBDPN.mjs} +1 -1
- package/dist/chunks/{chunk-KNR62LEG.cjs → chunk-GHMRMPMO.cjs} +1 -1
- package/dist/chunks/{chunk-XDYRNUT7.cjs → chunk-KS3TBDYP.cjs} +1 -1
- package/dist/chunks/{chunk-IDJUGUEI.cjs → chunk-LCI45SAN.cjs} +2 -2
- package/dist/chunks/{chunk-M7AHHCVC.cjs → chunk-O2YH4BJL.cjs} +2 -2
- package/dist/chunks/{chunk-UJYQQ347.cjs → chunk-RW4QUWZ2.cjs} +1 -1
- package/dist/chunks/copilot-AOW7FWY3.cjs +1 -0
- package/dist/chunks/{index.min-DHJMPYRN.mjs → index.min-PO6HDKHB.mjs} +1 -1
- package/dist/chunks/{index.min-SKM4353Q.cjs → index.min-XTHFSCRB.cjs} +2 -2
- package/dist/chunks/interfaces-2APNUNBK.cjs +1 -0
- package/dist/chunks/loader-AVOX6M4H.mjs +1 -0
- package/dist/chunks/loader-UCGPNKVW.cjs +1 -0
- package/dist/chunks/localagent-3DJBEVDM.cjs +1 -0
- package/dist/chunks/models-snapshot-CNF7AHMN.mjs +2 -0
- package/dist/chunks/models-snapshot-JD2O6VJX.cjs +2 -0
- package/dist/chunks/subagent-33FV6UYA.cjs +1 -0
- package/dist/index.cjs +117 -117
- package/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.mjs +117 -117
- package/package.json +9 -10
- package/dist/chunks/copilot-PO46XRII.cjs +0 -1
- package/dist/chunks/interfaces-H2WJRP6U.cjs +0 -1
- package/dist/chunks/loader-ON5XTSUI.cjs +0 -1
- package/dist/chunks/loader-WKTUO2AN.mjs +0 -1
- package/dist/chunks/localagent-QBKNVXRX.cjs +0 -1
- package/dist/chunks/models-snapshot-CNQITMJ7.cjs +0 -2
- package/dist/chunks/models-snapshot-XYP5QXSS.mjs +0 -2
- package/dist/chunks/subagent-K4THD4HO.cjs +0 -1
- /package/dist/assets/txt/{agent → src/agent}/generate.txt +0 -0
- /package/dist/assets/txt/{agent → src/agent}/prompt/explore.txt +0 -0
- /package/dist/assets/txt/{agent → src/agent}/prompt/summary.txt +0 -0
- /package/dist/assets/txt/{agent → src/agent}/prompt/title.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/completeness.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/consistency.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/content-quality.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/context-relevancy.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/correctness.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/fact-checking.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/faithfulness.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/goal-completion.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/moderation.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/readability.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/evaluation/templates/relevancy.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/graph-summary.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/knowledge-summary.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/memory-summary.txt +0 -0
- /package/dist/assets/txt/{model → src/model}/summary.txt +0 -0
- /package/dist/assets/txt/{tool → src/tool}/buildin/edit.txt +0 -0
- /package/dist/assets/txt/{tool → src/tool}/buildin/glob.txt +0 -0
- /package/dist/assets/txt/{tool → src/tool}/buildin/grep.txt +0 -0
- /package/dist/assets/txt/{tool → src/tool}/buildin/read.txt +0 -0
- /package/dist/assets/txt/{tool → src/tool}/buildin/todo.txt +0 -0
- /package/dist/assets/txt/{tool → src/tool}/buildin/webfetch.txt +0 -0
- /package/dist/assets/txt/{tool → src/tool}/buildin/websearch.txt +0 -0
- /package/dist/assets/txt/{tool → src/tool}/buildin/write.txt +0 -0
- /package/dist/chunks/{chunk-K4ES4MUO.cjs → chunk-2XQWKCQ4.cjs} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -336,6 +336,7 @@ declare namespace Provider {
|
|
|
336
336
|
loader: (getAuth: () => Promise<any>, authProviderData: any) => Promise<any>;
|
|
337
337
|
}): void;
|
|
338
338
|
export function clearPluginAuthLoaders(): void;
|
|
339
|
+
export function unregisterPluginAuthLoader(providerId: string): boolean;
|
|
339
340
|
export const DEFAULT_CONTEXT_LIMIT = 200000;
|
|
340
341
|
export const DEFAULT_INPUT_LIMIT_RATIO = 0.9;
|
|
341
342
|
export const DEFAULT_OUTPUT_LIMIT = 8192;
|
|
@@ -1605,7 +1606,16 @@ declare namespace ProviderAuth {
|
|
|
1605
1606
|
[key: string]: any;
|
|
1606
1607
|
}>;
|
|
1607
1608
|
}): void;
|
|
1609
|
+
function getPluginAuthProvider(providerId: string): {
|
|
1610
|
+
providerId: string;
|
|
1611
|
+
methods: Array<{
|
|
1612
|
+
type: 'oauth' | 'api';
|
|
1613
|
+
label: string;
|
|
1614
|
+
[key: string]: any;
|
|
1615
|
+
}>;
|
|
1616
|
+
} | undefined;
|
|
1608
1617
|
function clearPluginAuthProviders(): void;
|
|
1618
|
+
function unregisterPluginAuthProvider(providerId: string): boolean;
|
|
1609
1619
|
function resetState(): void;
|
|
1610
1620
|
const Method: z.ZodObject<{
|
|
1611
1621
|
type: z.ZodUnion<readonly [z.ZodLiteral<"oauth">, z.ZodLiteral<"api">]>;
|
|
@@ -1971,7 +1981,7 @@ declare namespace ProviderTransform {
|
|
|
1971
1981
|
function message(msgs: ModelMessage[], model: Provider.Model, options: Record<string, unknown>): ModelMessage[];
|
|
1972
1982
|
function temperature(model: Provider.Model): 1 | 0.6 | 0.55 | undefined;
|
|
1973
1983
|
function topP(model: Provider.Model): 1 | 0.95 | undefined;
|
|
1974
|
-
function topK(model: Provider.Model):
|
|
1984
|
+
function topK(model: Provider.Model): 20 | 40 | 64 | undefined;
|
|
1975
1985
|
function variants(model: Provider.Model): Record<string, Record<string, any>>;
|
|
1976
1986
|
function options(input: {
|
|
1977
1987
|
model: Provider.Model;
|
|
@@ -10393,7 +10403,7 @@ declare const LLMConfig: z.ZodObject<{
|
|
|
10393
10403
|
ask: "ask";
|
|
10394
10404
|
allow: "allow";
|
|
10395
10405
|
deny: "deny";
|
|
10396
|
-
}>]
|
|
10406
|
+
}>]>, unknown>, z.ZodTransform<Record<string, "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny">>, "ask" | "allow" | "deny" | {
|
|
10397
10407
|
[x: string]: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny">;
|
|
10398
10408
|
__originalKeys?: string[] | undefined;
|
|
10399
10409
|
read?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -336,6 +336,7 @@ declare namespace Provider {
|
|
|
336
336
|
loader: (getAuth: () => Promise<any>, authProviderData: any) => Promise<any>;
|
|
337
337
|
}): void;
|
|
338
338
|
export function clearPluginAuthLoaders(): void;
|
|
339
|
+
export function unregisterPluginAuthLoader(providerId: string): boolean;
|
|
339
340
|
export const DEFAULT_CONTEXT_LIMIT = 200000;
|
|
340
341
|
export const DEFAULT_INPUT_LIMIT_RATIO = 0.9;
|
|
341
342
|
export const DEFAULT_OUTPUT_LIMIT = 8192;
|
|
@@ -1605,7 +1606,16 @@ declare namespace ProviderAuth {
|
|
|
1605
1606
|
[key: string]: any;
|
|
1606
1607
|
}>;
|
|
1607
1608
|
}): void;
|
|
1609
|
+
function getPluginAuthProvider(providerId: string): {
|
|
1610
|
+
providerId: string;
|
|
1611
|
+
methods: Array<{
|
|
1612
|
+
type: 'oauth' | 'api';
|
|
1613
|
+
label: string;
|
|
1614
|
+
[key: string]: any;
|
|
1615
|
+
}>;
|
|
1616
|
+
} | undefined;
|
|
1608
1617
|
function clearPluginAuthProviders(): void;
|
|
1618
|
+
function unregisterPluginAuthProvider(providerId: string): boolean;
|
|
1609
1619
|
function resetState(): void;
|
|
1610
1620
|
const Method: z.ZodObject<{
|
|
1611
1621
|
type: z.ZodUnion<readonly [z.ZodLiteral<"oauth">, z.ZodLiteral<"api">]>;
|
|
@@ -1971,7 +1981,7 @@ declare namespace ProviderTransform {
|
|
|
1971
1981
|
function message(msgs: ModelMessage[], model: Provider.Model, options: Record<string, unknown>): ModelMessage[];
|
|
1972
1982
|
function temperature(model: Provider.Model): 1 | 0.6 | 0.55 | undefined;
|
|
1973
1983
|
function topP(model: Provider.Model): 1 | 0.95 | undefined;
|
|
1974
|
-
function topK(model: Provider.Model):
|
|
1984
|
+
function topK(model: Provider.Model): 20 | 40 | 64 | undefined;
|
|
1975
1985
|
function variants(model: Provider.Model): Record<string, Record<string, any>>;
|
|
1976
1986
|
function options(input: {
|
|
1977
1987
|
model: Provider.Model;
|
|
@@ -10393,7 +10403,7 @@ declare const LLMConfig: z.ZodObject<{
|
|
|
10393
10403
|
ask: "ask";
|
|
10394
10404
|
allow: "allow";
|
|
10395
10405
|
deny: "deny";
|
|
10396
|
-
}>]
|
|
10406
|
+
}>]>, unknown>, z.ZodTransform<Record<string, "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny">>, "ask" | "allow" | "deny" | {
|
|
10397
10407
|
[x: string]: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny">;
|
|
10398
10408
|
__originalKeys?: string[] | undefined;
|
|
10399
10409
|
read?: "ask" | "allow" | "deny" | Record<string, "ask" | "allow" | "deny"> | undefined;
|