jangada-ai 1.1.2 → 1.1.4
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/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/{anthropic-DAplvn1K.cjs → anthropic-1TWccER8.cjs} +4 -4
- package/dist/{anthropic-CmhYL1Gh.js → anthropic-CCee4Z0s.js} +4 -4
- package/dist/{base-Cj-ftiRy.cjs → base-rFOxm0iG.cjs} +1 -1
- package/dist/{base-g5bCrFT7.js → base-tTDV1c7F.js} +1 -1
- package/dist/{bedrock-BgWkxKMS.js → bedrock-BCch8ITQ.js} +2 -2
- package/dist/{bedrock-JdVKNhKf.cjs → bedrock-iZLfIOk_.cjs} +2 -2
- package/dist/{client-Bqdqedos.js → client-BzryHBvQ.js} +2 -2
- package/dist/{client-DdmvWQHy.cjs → client-CPdl8DOD.cjs} +2 -2
- package/dist/{gemini-DL-KfNHx.js → gemini-D3B3517y.js} +3 -3
- package/dist/{gemini-oKzFGnJU.cjs → gemini-DXbNxA_t.cjs} +3 -3
- package/dist/index.cjs +16 -16
- package/dist/index.js +16 -16
- package/dist/mcp/index.cjs +2 -2
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/{mistral-CwH8bIh1.cjs → mistral-BwNTWlNo.cjs} +2 -2
- package/dist/{mistral-C1kDJb5r.js → mistral-DaTNFPfQ.js} +2 -2
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.js +2 -2
- package/dist/{ollama-BuDIiTYj.js → ollama-BeZWF-gQ.js} +2 -2
- package/dist/{ollama-B3q1i2mX.cjs → ollama-Dopf4XiK.cjs} +2 -2
- package/dist/{openai-compat-Bs1sf-XE.cjs → openai-compat-ABAfd7ma.cjs} +3 -3
- package/dist/{openai-compat-rHwwRPuD.js → openai-compat-dMu9XxtK.js} +3 -3
- package/dist/prebuilt/index.cjs +1 -1
- package/dist/prebuilt/index.js +1 -1
- package/dist/{pricing-uBp59-TL.cjs → pricing--nYsP3WL.cjs} +74 -4
- package/dist/{pricing-CfPWa1Y_.js → pricing-CV93vKQg.js} +74 -4
- package/dist/{server-CZIE70Ms.js → server-Af-rFOsu.js} +19 -7
- package/dist/{server-CGoNDL_1.d.ts → server-BSKVZBdR.d.ts} +0 -4
- package/dist/{server-Mqe450gx.cjs → server-DcxM0MPq.cjs} +19 -7
- package/dist/{server-QozwMXhD.d.cts → server-G4DpDQFW.d.cts} +0 -4
- package/dist/{version-CSYDPaJx.cjs → version--np7KvSO.cjs} +1 -1
- package/dist/{version-DezFmfjm.js → version-D_SyuJN1.js} +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_errors = require("./errors-BqivrjKZ.cjs");
|
|
2
|
-
const require_client = require("./client-
|
|
2
|
+
const require_client = require("./client-CPdl8DOD.cjs");
|
|
3
3
|
const require_message = require("./message-DCvWw0dF.cjs");
|
|
4
|
-
const require_version = require("./version
|
|
5
|
-
const require_base = require("./base-
|
|
4
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
5
|
+
const require_base = require("./base-rFOxm0iG.cjs");
|
|
6
6
|
// src/providers/anthropic.ts
|
|
7
7
|
/**
|
|
8
8
|
* Provider Anthropic (Claude): texto, vision, tools, tools nativas (server tools),
|
|
@@ -40,7 +40,7 @@ const PLAIN_BLOCKS = /* @__PURE__ */ new Set([
|
|
|
40
40
|
"thinking",
|
|
41
41
|
"redacted_thinking"
|
|
42
42
|
]);
|
|
43
|
-
const NO_FORCED_TOOLS = /(?:opus-5[.-]5|sonnet-5[.-]5|fable-5[.-]
|
|
43
|
+
const NO_FORCED_TOOLS = /(?:opus-5[.-]5|sonnet-5[.-]5|fable-5[.-][12]|mythos-5[.-][12])/;
|
|
44
44
|
function get(obj, key) {
|
|
45
45
|
return obj !== null && typeof obj === "object" ? obj[key] : void 0;
|
|
46
46
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as UnsupportedError, d as ProviderError, l as OutputValidationError, m as ServerError, s as LLMError, v as classify } from "./errors-KpUEVi-c.js";
|
|
2
|
-
import { s as splitMcp } from "./client-
|
|
2
|
+
import { s as splitMcp } from "./client-BzryHBvQ.js";
|
|
3
3
|
import { a as ToolCall, n as Completion, o as imageBase64 } from "./message-0wKCrEp2.js";
|
|
4
|
-
import { c as NativeTool, i as splitTools } from "./version-
|
|
5
|
-
import { t as Provider } from "./base-
|
|
4
|
+
import { c as NativeTool, i as splitTools } from "./version-D_SyuJN1.js";
|
|
5
|
+
import { t as Provider } from "./base-tTDV1c7F.js";
|
|
6
6
|
// src/providers/anthropic.ts
|
|
7
7
|
/**
|
|
8
8
|
* Provider Anthropic (Claude): texto, vision, tools, tools nativas (server tools),
|
|
@@ -40,7 +40,7 @@ const PLAIN_BLOCKS = /* @__PURE__ */ new Set([
|
|
|
40
40
|
"thinking",
|
|
41
41
|
"redacted_thinking"
|
|
42
42
|
]);
|
|
43
|
-
const NO_FORCED_TOOLS = /(?:opus-5[.-]5|sonnet-5[.-]5|fable-5[.-]
|
|
43
|
+
const NO_FORCED_TOOLS = /(?:opus-5[.-]5|sonnet-5[.-]5|fable-5[.-][12]|mythos-5[.-][12])/;
|
|
44
44
|
function get(obj, key) {
|
|
45
45
|
return obj !== null && typeof obj === "object" ? obj[key] : void 0;
|
|
46
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_errors = require("./errors-BqivrjKZ.cjs");
|
|
2
2
|
const require_env = require("./env-B1ffNsxb.cjs");
|
|
3
|
-
const require_version = require("./version
|
|
3
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
4
4
|
// src/profiles.ts
|
|
5
5
|
const RULES = [];
|
|
6
6
|
/** Adiciona uma regra de perfil (entra no início: tem prioridade). */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as UnsupportedError, g as TruncatedError } from "./errors-KpUEVi-c.js";
|
|
2
2
|
import { n as getEnv } from "./env-BH4ulZ4_.js";
|
|
3
|
-
import { c as NativeTool } from "./version-
|
|
3
|
+
import { c as NativeTool } from "./version-D_SyuJN1.js";
|
|
4
4
|
// src/profiles.ts
|
|
5
5
|
const RULES = [];
|
|
6
6
|
/** Adiciona uma regra de perfil (entra no início: tem prioridade). */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as UnsupportedError, d as ProviderError, l as OutputValidationError, m as ServerError, s as LLMError, v as classify } from "./errors-KpUEVi-c.js";
|
|
2
2
|
import { n as getEnv } from "./env-BH4ulZ4_.js";
|
|
3
3
|
import { a as ToolCall, n as Completion } from "./message-0wKCrEp2.js";
|
|
4
|
-
import { i as splitTools } from "./version-
|
|
5
|
-
import { t as Provider } from "./base-
|
|
4
|
+
import { i as splitTools } from "./version-D_SyuJN1.js";
|
|
5
|
+
import { t as Provider } from "./base-tTDV1c7F.js";
|
|
6
6
|
// src/providers/bedrock.ts
|
|
7
7
|
/**
|
|
8
8
|
* Provider AWS Bedrock via Converse API (`@aws-sdk/client-bedrock-runtime`, peer
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_errors = require("./errors-BqivrjKZ.cjs");
|
|
2
2
|
const require_env = require("./env-B1ffNsxb.cjs");
|
|
3
3
|
const require_message = require("./message-DCvWw0dF.cjs");
|
|
4
|
-
const require_version = require("./version
|
|
5
|
-
const require_base = require("./base-
|
|
4
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
5
|
+
const require_base = require("./base-rFOxm0iG.cjs");
|
|
6
6
|
// src/providers/bedrock.ts
|
|
7
7
|
/**
|
|
8
8
|
* Provider AWS Bedrock via Converse API (`@aws-sdk/client-bedrock-runtime`, peer
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as LLMError, t as APIConnectionError } from "./errors-KpUEVi-c.js";
|
|
2
2
|
import { o as warn } from "./context-CvNVqdqz.js";
|
|
3
3
|
import { c as textPart, i as Message, r as Image } from "./message-0wKCrEp2.js";
|
|
4
|
-
import { n as Tool } from "./version-
|
|
4
|
+
import { n as Tool } from "./version-D_SyuJN1.js";
|
|
5
5
|
// src/mcp/client.ts
|
|
6
6
|
function get(obj, key) {
|
|
7
7
|
return obj !== null && typeof obj === "object" ? obj[key] : void 0;
|
|
@@ -467,7 +467,7 @@ var MCPClient = class {
|
|
|
467
467
|
const sdk = await loadSdk();
|
|
468
468
|
const info = this.#options.clientInfo ?? {
|
|
469
469
|
name: "jangada",
|
|
470
|
-
version: "1.1.
|
|
470
|
+
version: "1.1.4"
|
|
471
471
|
};
|
|
472
472
|
const client = new sdk.Client(info, { capabilities: this.capabilities() });
|
|
473
473
|
this.registerCallbacks(client, sdk);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_errors = require("./errors-BqivrjKZ.cjs");
|
|
2
2
|
const require_context = require("./context-BWyYfOyr.cjs");
|
|
3
3
|
const require_message = require("./message-DCvWw0dF.cjs");
|
|
4
|
-
const require_version = require("./version
|
|
4
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
5
5
|
// src/mcp/client.ts
|
|
6
6
|
function get(obj, key) {
|
|
7
7
|
return obj !== null && typeof obj === "object" ? obj[key] : void 0;
|
|
@@ -467,7 +467,7 @@ var MCPClient = class {
|
|
|
467
467
|
const sdk = await loadSdk();
|
|
468
468
|
const info = this.#options.clientInfo ?? {
|
|
469
469
|
name: "jangada",
|
|
470
|
-
version: "1.1.
|
|
470
|
+
version: "1.1.4"
|
|
471
471
|
};
|
|
472
472
|
const client = new sdk.Client(info, { capabilities: this.capabilities() });
|
|
473
473
|
this.registerCallbacks(client, sdk);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as UnsupportedError, i as BadRequestError, m as ServerError, v as classify } from "./errors-KpUEVi-c.js";
|
|
2
2
|
import { a as ToolCall, l as bytesToBase64, n as Completion, o as imageBase64 } from "./message-0wKCrEp2.js";
|
|
3
3
|
import { n as getEnv } from "./env-BH4ulZ4_.js";
|
|
4
|
-
import { a as mcpTools, l as toolResultText, s as splitMcp, t as MCPClient, u as toolSourceFromSession } from "./client-
|
|
4
|
+
import { a as mcpTools, l as toolResultText, s as splitMcp, t as MCPClient, u as toolSourceFromSession } from "./client-BzryHBvQ.js";
|
|
5
5
|
import { n as parseJsonText } from "./schema-CbsM_8LN.js";
|
|
6
|
-
import { i as splitTools } from "./version-
|
|
7
|
-
import { t as Provider } from "./base-
|
|
6
|
+
import { i as splitTools } from "./version-D_SyuJN1.js";
|
|
7
|
+
import { t as Provider } from "./base-tTDV1c7F.js";
|
|
8
8
|
import { t as cleanGeminiSchema } from "./gemini-schema-BLKtypnG.js";
|
|
9
9
|
// src/providers/gemini.ts
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_errors = require("./errors-BqivrjKZ.cjs");
|
|
2
2
|
const require_message = require("./message-DCvWw0dF.cjs");
|
|
3
3
|
const require_env = require("./env-B1ffNsxb.cjs");
|
|
4
|
-
const require_client = require("./client-
|
|
4
|
+
const require_client = require("./client-CPdl8DOD.cjs");
|
|
5
5
|
const require_schema = require("./schema-CdxlpDZe.cjs");
|
|
6
|
-
const require_version = require("./version
|
|
7
|
-
const require_base = require("./base-
|
|
6
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
7
|
+
const require_base = require("./base-rFOxm0iG.cjs");
|
|
8
8
|
const require_gemini_schema = require("./gemini-schema-BwcTPvV1.cjs");
|
|
9
9
|
// src/providers/gemini.ts
|
|
10
10
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_client = require("./client-
|
|
2
|
+
const require_client = require("./client-CPdl8DOD.cjs");
|
|
3
3
|
const require_message = require("./message-DCvWw0dF.cjs");
|
|
4
|
-
const require_version = require("./version
|
|
4
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
5
5
|
const require_schema = require("./schema-CdxlpDZe.cjs");
|
|
6
6
|
const require_errors = require("./errors-BqivrjKZ.cjs");
|
|
7
7
|
const require_files = require("./files-DhchXoMT.cjs");
|
|
8
|
-
const require_pricing = require("./pricing
|
|
8
|
+
const require_pricing = require("./pricing--nYsP3WL.cjs");
|
|
9
9
|
const require_gemini_schema = require("./gemini-schema-BwcTPvV1.cjs");
|
|
10
10
|
const require_context = require("./context-BWyYfOyr.cjs");
|
|
11
|
-
const require_base = require("./base-
|
|
11
|
+
const require_base = require("./base-rFOxm0iG.cjs");
|
|
12
12
|
const require_env = require("./env-B1ffNsxb.cjs");
|
|
13
13
|
// src/providers/registry.ts
|
|
14
14
|
const REGISTRY = /* @__PURE__ */ new Map();
|
|
@@ -34,17 +34,17 @@ function availableProviders() {
|
|
|
34
34
|
* Registro dos providers embutidos. O módulo de cada adapter só é carregado quando
|
|
35
35
|
* o provider é usado; o SDK, só quando o cliente é criado.
|
|
36
36
|
*/
|
|
37
|
-
registerProvider("openai", async () => (await Promise.resolve().then(() => require("./openai-compat-
|
|
38
|
-
registerProvider("azure", async () => (await Promise.resolve().then(() => require("./openai-compat-
|
|
39
|
-
registerProvider("groq", async () => (await Promise.resolve().then(() => require("./openai-compat-
|
|
40
|
-
registerProvider("openrouter", async () => (await Promise.resolve().then(() => require("./openai-compat-
|
|
41
|
-
registerProvider("deepseek", async () => (await Promise.resolve().then(() => require("./openai-compat-
|
|
42
|
-
registerProvider("anthropic", async () => (await Promise.resolve().then(() => require("./anthropic-
|
|
43
|
-
registerProvider("gemini", async () => (await Promise.resolve().then(() => require("./gemini-
|
|
44
|
-
registerProvider("vertex", async () => (await Promise.resolve().then(() => require("./gemini-
|
|
45
|
-
registerProvider("ollama", async () => (await Promise.resolve().then(() => require("./ollama-
|
|
46
|
-
registerProvider("bedrock", async () => (await Promise.resolve().then(() => require("./bedrock-
|
|
47
|
-
registerProvider("mistral", async () => (await Promise.resolve().then(() => require("./mistral-
|
|
37
|
+
registerProvider("openai", async () => (await Promise.resolve().then(() => require("./openai-compat-ABAfd7ma.cjs"))).OpenAIProvider);
|
|
38
|
+
registerProvider("azure", async () => (await Promise.resolve().then(() => require("./openai-compat-ABAfd7ma.cjs"))).AzureOpenAIProvider);
|
|
39
|
+
registerProvider("groq", async () => (await Promise.resolve().then(() => require("./openai-compat-ABAfd7ma.cjs"))).GroqProvider);
|
|
40
|
+
registerProvider("openrouter", async () => (await Promise.resolve().then(() => require("./openai-compat-ABAfd7ma.cjs"))).OpenRouterProvider);
|
|
41
|
+
registerProvider("deepseek", async () => (await Promise.resolve().then(() => require("./openai-compat-ABAfd7ma.cjs"))).DeepSeekProvider);
|
|
42
|
+
registerProvider("anthropic", async () => (await Promise.resolve().then(() => require("./anthropic-1TWccER8.cjs"))).AnthropicProvider);
|
|
43
|
+
registerProvider("gemini", async () => (await Promise.resolve().then(() => require("./gemini-DXbNxA_t.cjs"))).GeminiProvider);
|
|
44
|
+
registerProvider("vertex", async () => (await Promise.resolve().then(() => require("./gemini-DXbNxA_t.cjs"))).VertexProvider);
|
|
45
|
+
registerProvider("ollama", async () => (await Promise.resolve().then(() => require("./ollama-Dopf4XiK.cjs"))).OllamaProvider);
|
|
46
|
+
registerProvider("bedrock", async () => (await Promise.resolve().then(() => require("./bedrock-iZLfIOk_.cjs"))).BedrockProvider);
|
|
47
|
+
registerProvider("mistral", async () => (await Promise.resolve().then(() => require("./mistral-BwNTWlNo.cjs"))).MistralProvider);
|
|
48
48
|
// src/agents.ts
|
|
49
49
|
/** Memória de longo prazo sobre um RAG: `recall` busca; `remember` indexa. Best-effort. */
|
|
50
50
|
var RAGMemory = class {
|
|
@@ -2977,7 +2977,7 @@ var GeminiInteractions = class GeminiInteractions {
|
|
|
2977
2977
|
* lib não puxa o adapter para o bundle principal.
|
|
2978
2978
|
*/
|
|
2979
2979
|
provider() {
|
|
2980
|
-
this.providerPromise ??= Promise.resolve().then(() => require("./gemini-
|
|
2980
|
+
this.providerPromise ??= Promise.resolve().then(() => require("./gemini-DXbNxA_t.cjs")).then((m) => {
|
|
2981
2981
|
const Base = this.options.vertexai ? m.VertexProvider : m.GeminiProvider;
|
|
2982
2982
|
class Interactions extends Base {
|
|
2983
2983
|
nativeClient() {
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as mcpTools, l as toolResultText, n as MCPServer, o as runAgent, s as splitMcp, t as MCPClient } from "./client-
|
|
1
|
+
import { a as mcpTools, l as toolResultText, n as MCPServer, o as runAgent, s as splitMcp, t as MCPClient } from "./client-BzryHBvQ.js";
|
|
2
2
|
import { a as ToolCall, c as textPart, i as Message, l as bytesToBase64, n as Completion, o as imageBase64, r as Image, s as imageDataUri, t as Audio } from "./message-0wKCrEp2.js";
|
|
3
|
-
import { _ as webFetch, a as toTool, c as NativeTool, d as fileSearch, f as googleMaps, g as urlContext, h as nativeTool, i as splitTools, l as codeExecution, m as isNative, n as Tool, o as tool, p as imageGeneration, r as normalizeTools, s as NATIVE_TOOL_KINDS, t as VERSION, u as computerUse, v as webSearch } from "./version-
|
|
3
|
+
import { _ as webFetch, a as toTool, c as NativeTool, d as fileSearch, f as googleMaps, g as urlContext, h as nativeTool, i as splitTools, l as codeExecution, m as isNative, n as Tool, o as tool, p as imageGeneration, r as normalizeTools, s as NATIVE_TOOL_KINDS, t as VERSION, u as computerUse, v as webSearch } from "./version-D_SyuJN1.js";
|
|
4
4
|
import { n as parseJsonText, r as resolveSchema, t as jsonSchema } from "./schema-CbsM_8LN.js";
|
|
5
5
|
import { _ as UnsupportedError, a as DEFAULT_FAILOVER, c as NotFoundError, d as ProviderError, f as RateLimitError, g as TruncatedError, h as TRANSIENT, i as BadRequestError, l as OutputValidationError, m as ServerError, n as APITimeoutError, o as GuardrailError, p as SchemaValidationError, r as AuthError, s as LLMError, t as APIConnectionError, u as OverloadedError, v as classify, y as isInstanceOfAny } from "./errors-KpUEVi-c.js";
|
|
6
6
|
import { i as toParts, n as Document, r as DocumentError, t as DEFAULT_MAX_PDF_PAGES } from "./files-lcQv3hAq.js";
|
|
7
|
-
import { _ as feedback, a as loadPrices, c as registerAudioPrice, d as setPriceCacheStore, f as toolFeeFor, g as droppedCount, h as detectCapabilities, i as exportPrices, l as registerPrice, m as autoReportError, n as audioPriceFor, o as priceFor, p as autoReport, r as computeCost, s as refreshPrices, t as DEFAULT_PRICES_URL, u as registerToolFee, v as flushObservability, x as summarizeInput, y as observabilitySession } from "./pricing-
|
|
7
|
+
import { _ as feedback, a as loadPrices, c as registerAudioPrice, d as setPriceCacheStore, f as toolFeeFor, g as droppedCount, h as detectCapabilities, i as exportPrices, l as registerPrice, m as autoReportError, n as audioPriceFor, o as priceFor, p as autoReport, r as computeCost, s as refreshPrices, t as DEFAULT_PRICES_URL, u as registerToolFee, v as flushObservability, x as summarizeInput, y as observabilitySession } from "./pricing-CV93vKQg.js";
|
|
8
8
|
import { t as cleanGeminiSchema } from "./gemini-schema-BLKtypnG.js";
|
|
9
9
|
import { i as requestHeaders, n as currentUser } from "./context-CvNVqdqz.js";
|
|
10
|
-
import { i as registerProfile, n as applyProfile, r as registerAlias, t as Provider } from "./base-
|
|
10
|
+
import { i as registerProfile, n as applyProfile, r as registerAlias, t as Provider } from "./base-tTDV1c7F.js";
|
|
11
11
|
import { n as getEnv } from "./env-BH4ulZ4_.js";
|
|
12
12
|
// src/providers/registry.ts
|
|
13
13
|
const REGISTRY = /* @__PURE__ */ new Map();
|
|
@@ -33,17 +33,17 @@ function availableProviders() {
|
|
|
33
33
|
* Registro dos providers embutidos. O módulo de cada adapter só é carregado quando
|
|
34
34
|
* o provider é usado; o SDK, só quando o cliente é criado.
|
|
35
35
|
*/
|
|
36
|
-
registerProvider("openai", async () => (await import("./openai-compat-
|
|
37
|
-
registerProvider("azure", async () => (await import("./openai-compat-
|
|
38
|
-
registerProvider("groq", async () => (await import("./openai-compat-
|
|
39
|
-
registerProvider("openrouter", async () => (await import("./openai-compat-
|
|
40
|
-
registerProvider("deepseek", async () => (await import("./openai-compat-
|
|
41
|
-
registerProvider("anthropic", async () => (await import("./anthropic-
|
|
42
|
-
registerProvider("gemini", async () => (await import("./gemini-
|
|
43
|
-
registerProvider("vertex", async () => (await import("./gemini-
|
|
44
|
-
registerProvider("ollama", async () => (await import("./ollama-
|
|
45
|
-
registerProvider("bedrock", async () => (await import("./bedrock-
|
|
46
|
-
registerProvider("mistral", async () => (await import("./mistral-
|
|
36
|
+
registerProvider("openai", async () => (await import("./openai-compat-dMu9XxtK.js")).OpenAIProvider);
|
|
37
|
+
registerProvider("azure", async () => (await import("./openai-compat-dMu9XxtK.js")).AzureOpenAIProvider);
|
|
38
|
+
registerProvider("groq", async () => (await import("./openai-compat-dMu9XxtK.js")).GroqProvider);
|
|
39
|
+
registerProvider("openrouter", async () => (await import("./openai-compat-dMu9XxtK.js")).OpenRouterProvider);
|
|
40
|
+
registerProvider("deepseek", async () => (await import("./openai-compat-dMu9XxtK.js")).DeepSeekProvider);
|
|
41
|
+
registerProvider("anthropic", async () => (await import("./anthropic-CCee4Z0s.js")).AnthropicProvider);
|
|
42
|
+
registerProvider("gemini", async () => (await import("./gemini-D3B3517y.js")).GeminiProvider);
|
|
43
|
+
registerProvider("vertex", async () => (await import("./gemini-D3B3517y.js")).VertexProvider);
|
|
44
|
+
registerProvider("ollama", async () => (await import("./ollama-BeZWF-gQ.js")).OllamaProvider);
|
|
45
|
+
registerProvider("bedrock", async () => (await import("./bedrock-BCch8ITQ.js")).BedrockProvider);
|
|
46
|
+
registerProvider("mistral", async () => (await import("./mistral-DaTNFPfQ.js")).MistralProvider);
|
|
47
47
|
// src/agents.ts
|
|
48
48
|
/** Memória de longo prazo sobre um RAG: `recall` busca; `remember` indexa. Best-effort. */
|
|
49
49
|
var RAGMemory = class {
|
|
@@ -2976,7 +2976,7 @@ var GeminiInteractions = class GeminiInteractions {
|
|
|
2976
2976
|
* lib não puxa o adapter para o bundle principal.
|
|
2977
2977
|
*/
|
|
2978
2978
|
provider() {
|
|
2979
|
-
this.providerPromise ??= import("./gemini-
|
|
2979
|
+
this.providerPromise ??= import("./gemini-D3B3517y.js").then((m) => {
|
|
2980
2980
|
const Base = this.options.vertexai ? m.VertexProvider : m.GeminiProvider;
|
|
2981
2981
|
class Interactions extends Base {
|
|
2982
2982
|
nativeClient() {
|
package/dist/mcp/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_client = require("../client-
|
|
3
|
-
const require_server = require("../server-
|
|
2
|
+
const require_client = require("../client-CPdl8DOD.cjs");
|
|
3
|
+
const require_server = require("../server-DcxM0MPq.cjs");
|
|
4
4
|
const require_context = require("../context-BWyYfOyr.cjs");
|
|
5
5
|
exports.CodeMode = require_server.CodeMode;
|
|
6
6
|
exports.DEFAULT_LIMITS = require_server.DEFAULT_LIMITS;
|
package/dist/mcp/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { C as mcpTools, D as toolResultText, E as toRoot, O as toolSourceFromSession, S as mcpContentToParts, T as splitMcp, _ as RequireApproval, a as MCPServerInit, b as ToolTraceEntry, c as McpGetPromptResult, d as McpRequestOptions, f as McpResourceInfo, g as McpToolSource, h as McpToolInfo, i as MCPServer, l as McpPromptInfo, m as McpSamplingParams, n as MCPClient, o as McpCallToolResult, p as McpRoot, r as MCPClientOptions, s as McpContentBlock, t as AgentCompletion, u as McpReadResourceResult, v as RootInput, w as runAgent, x as makeSamplingHandler, y as RunAgentOptions } from "../client-C45ALXsn.cjs";
|
|
2
|
-
import { a as McpServerOptions, c as CodeMode, d as CodeModeOptions, f as DEFAULT_LIMITS, g as ToolFilter, h as ToolDescription, i as McpServerInstance, l as CodeModeDetail, m as asCodeMode, n as McpHandlerOptions, o as buildMcpHandler, p as QuickJSModuleLike, r as McpIcon, s as buildMcpServer, t as McpHandler, u as CodeModeLimits } from "../server-
|
|
2
|
+
import { a as McpServerOptions, c as CodeMode, d as CodeModeOptions, f as DEFAULT_LIMITS, g as ToolFilter, h as ToolDescription, i as McpServerInstance, l as CodeModeDetail, m as asCodeMode, n as McpHandlerOptions, o as buildMcpHandler, p as QuickJSModuleLike, r as McpIcon, s as buildMcpServer, t as McpHandler, u as CodeModeLimits } from "../server-G4DpDQFW.cjs";
|
|
3
3
|
import { a as requestHeaders, i as currentUser, n as McpRequestContext, r as RequestContextLike, t as CurrentUser } from "../context-Ciyoth__.cjs";
|
|
4
4
|
export { AgentCompletion, CodeMode, type CodeModeDetail, type CodeModeLimits, type CodeModeOptions, type CurrentUser, DEFAULT_LIMITS, MCPClient, MCPClientOptions, MCPServer, MCPServerInit, McpCallToolResult, McpContentBlock, McpGetPromptResult, type McpHandler, type McpHandlerOptions, type McpIcon, McpPromptInfo, McpReadResourceResult, type McpRequestContext, McpRequestOptions, McpResourceInfo, McpRoot, McpSamplingParams, type McpServerInstance, type McpServerOptions, McpToolInfo, McpToolSource, type QuickJSModuleLike, type RequestContextLike, RequireApproval, RootInput, RunAgentOptions, type ToolDescription, type ToolFilter, ToolTraceEntry, asCodeMode, buildMcpHandler, buildMcpServer, currentUser, makeSamplingHandler, mcpContentToParts, mcpTools, requestHeaders, runAgent, splitMcp, toRoot, toolResultText, toolSourceFromSession };
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { C as mcpTools, D as toolResultText, E as toRoot, O as toolSourceFromSession, S as mcpContentToParts, T as splitMcp, _ as RequireApproval, a as MCPServerInit, b as ToolTraceEntry, c as McpGetPromptResult, d as McpRequestOptions, f as McpResourceInfo, g as McpToolSource, h as McpToolInfo, i as MCPServer, l as McpPromptInfo, m as McpSamplingParams, n as MCPClient, o as McpCallToolResult, p as McpRoot, r as MCPClientOptions, s as McpContentBlock, t as AgentCompletion, u as McpReadResourceResult, v as RootInput, w as runAgent, x as makeSamplingHandler, y as RunAgentOptions } from "../client-tSWWUduc.js";
|
|
2
|
-
import { a as McpServerOptions, c as CodeMode, d as CodeModeOptions, f as DEFAULT_LIMITS, g as ToolFilter, h as ToolDescription, i as McpServerInstance, l as CodeModeDetail, m as asCodeMode, n as McpHandlerOptions, o as buildMcpHandler, p as QuickJSModuleLike, r as McpIcon, s as buildMcpServer, t as McpHandler, u as CodeModeLimits } from "../server-
|
|
2
|
+
import { a as McpServerOptions, c as CodeMode, d as CodeModeOptions, f as DEFAULT_LIMITS, g as ToolFilter, h as ToolDescription, i as McpServerInstance, l as CodeModeDetail, m as asCodeMode, n as McpHandlerOptions, o as buildMcpHandler, p as QuickJSModuleLike, r as McpIcon, s as buildMcpServer, t as McpHandler, u as CodeModeLimits } from "../server-BSKVZBdR.js";
|
|
3
3
|
import { a as requestHeaders, i as currentUser, n as McpRequestContext, r as RequestContextLike, t as CurrentUser } from "../context-Ciyoth__.js";
|
|
4
4
|
export { AgentCompletion, CodeMode, type CodeModeDetail, type CodeModeLimits, type CodeModeOptions, type CurrentUser, DEFAULT_LIMITS, MCPClient, MCPClientOptions, MCPServer, MCPServerInit, McpCallToolResult, McpContentBlock, McpGetPromptResult, type McpHandler, type McpHandlerOptions, type McpIcon, McpPromptInfo, McpReadResourceResult, type McpRequestContext, McpRequestOptions, McpResourceInfo, McpRoot, McpSamplingParams, type McpServerInstance, type McpServerOptions, McpToolInfo, McpToolSource, type QuickJSModuleLike, type RequestContextLike, RequireApproval, RootInput, RunAgentOptions, type ToolDescription, type ToolFilter, ToolTraceEntry, asCodeMode, buildMcpHandler, buildMcpServer, currentUser, makeSamplingHandler, mcpContentToParts, mcpTools, requestHeaders, runAgent, splitMcp, toRoot, toolResultText, toolSourceFromSession };
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as mcpTools, c as toRoot, i as mcpContentToParts, l as toolResultText, n as MCPServer, o as runAgent, r as makeSamplingHandler, s as splitMcp, t as MCPClient, u as toolSourceFromSession } from "../client-
|
|
2
|
-
import { a as asCodeMode, i as DEFAULT_LIMITS, n as buildMcpServer, r as CodeMode, t as buildMcpHandler } from "../server-
|
|
1
|
+
import { a as mcpTools, c as toRoot, i as mcpContentToParts, l as toolResultText, n as MCPServer, o as runAgent, r as makeSamplingHandler, s as splitMcp, t as MCPClient, u as toolSourceFromSession } from "../client-BzryHBvQ.js";
|
|
2
|
+
import { a as asCodeMode, i as DEFAULT_LIMITS, n as buildMcpServer, r as CodeMode, t as buildMcpHandler } from "../server-Af-rFOsu.js";
|
|
3
3
|
import { i as requestHeaders, n as currentUser } from "../context-CvNVqdqz.js";
|
|
4
4
|
export { CodeMode, DEFAULT_LIMITS, MCPClient, MCPServer, asCodeMode, buildMcpHandler, buildMcpServer, currentUser, makeSamplingHandler, mcpContentToParts, mcpTools, requestHeaders, runAgent, splitMcp, toRoot, toolResultText, toolSourceFromSession };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_errors = require("./errors-BqivrjKZ.cjs");
|
|
2
2
|
const require_message = require("./message-DCvWw0dF.cjs");
|
|
3
|
-
const require_version = require("./version
|
|
3
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
4
4
|
const require_schema = require("./schema-CdxlpDZe.cjs");
|
|
5
|
-
const require_base = require("./base-
|
|
5
|
+
const require_base = require("./base-rFOxm0iG.cjs");
|
|
6
6
|
// src/providers/mistral.ts
|
|
7
7
|
/**
|
|
8
8
|
* Provider Mistral (SDK oficial `@mistralai/mistralai`, peer dependency opcional):
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as UnsupportedError, m as ServerError, s as LLMError, v as classify } from "./errors-KpUEVi-c.js";
|
|
2
2
|
import { a as ToolCall, l as bytesToBase64, n as Completion, s as imageDataUri } from "./message-0wKCrEp2.js";
|
|
3
|
-
import { c as NativeTool, i as splitTools } from "./version-
|
|
3
|
+
import { c as NativeTool, i as splitTools } from "./version-D_SyuJN1.js";
|
|
4
4
|
import { n as parseJsonText } from "./schema-CbsM_8LN.js";
|
|
5
|
-
import { t as Provider } from "./base-
|
|
5
|
+
import { t as Provider } from "./base-tTDV1c7F.js";
|
|
6
6
|
// src/providers/mistral.ts
|
|
7
7
|
/**
|
|
8
8
|
* Provider Mistral (SDK oficial `@mistralai/mistralai`, peer dependency opcional):
|
package/dist/node/index.cjs
CHANGED
|
@@ -3,8 +3,8 @@ const require_env = require("../env-B1ffNsxb.cjs");
|
|
|
3
3
|
const require_server = require("../server-C0wyAefS.cjs");
|
|
4
4
|
const require_files = require("../files-DhchXoMT.cjs");
|
|
5
5
|
const require_message = require("../message-DCvWw0dF.cjs");
|
|
6
|
-
const require_server$1 = require("../server-
|
|
7
|
-
const require_pricing = require("../pricing
|
|
6
|
+
const require_server$1 = require("../server-DcxM0MPq.cjs");
|
|
7
|
+
const require_pricing = require("../pricing--nYsP3WL.cjs");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
let node_os = require("node:os");
|
|
10
10
|
let node_path = require("node:path");
|
package/dist/node/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as A2aServed, r as A2aServerOptions, t as A2aRequestContext } from "../server-CnO0Uj7X.cjs";
|
|
2
2
|
import { c as Document, d as DocumentOptions, n as ObservabilitySession, o as observabilitySession } from "../observability-BYl5Zj9f.cjs";
|
|
3
3
|
import { f as ImagePart, r as AudioPart } from "../message-D3MSjqww.cjs";
|
|
4
|
-
import { n as McpHandlerOptions } from "../server-
|
|
4
|
+
import { n as McpHandlerOptions } from "../server-G4DpDQFW.cjs";
|
|
5
5
|
import { r as PriceCacheStore } from "../pricing-dR8LIi2j.cjs";
|
|
6
6
|
/** Opções do {@link serveA2a}. */
|
|
7
7
|
interface ServeA2aOptions<C = A2aRequestContext> extends A2aServerOptions<C> {
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as A2aServed, r as A2aServerOptions, t as A2aRequestContext } from "../server-DVWw6Q6D.js";
|
|
2
2
|
import { c as Document, d as DocumentOptions, n as ObservabilitySession, o as observabilitySession } from "../observability-DrG1bkP7.js";
|
|
3
3
|
import { f as ImagePart, r as AudioPart } from "../message-D3MSjqww.js";
|
|
4
|
-
import { n as McpHandlerOptions } from "../server-
|
|
4
|
+
import { n as McpHandlerOptions } from "../server-BSKVZBdR.js";
|
|
5
5
|
import { r as PriceCacheStore } from "../pricing-Rpr2ntu7.js";
|
|
6
6
|
/** Opções do {@link serveA2a}. */
|
|
7
7
|
interface ServeA2aOptions<C = A2aRequestContext> extends A2aServerOptions<C> {
|
package/dist/node/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { t as envFlag } from "../env-BH4ulZ4_.js";
|
|
|
2
2
|
import { t as buildA2aHandler } from "../server-zdrObsBn.js";
|
|
3
3
|
import { n as Document } from "../files-lcQv3hAq.js";
|
|
4
4
|
import { r as Image, t as Audio } from "../message-0wKCrEp2.js";
|
|
5
|
-
import { n as buildMcpServer, t as buildMcpHandler } from "../server-
|
|
6
|
-
import { b as setSessionGetter, d as setPriceCacheStore, v as flushObservability, y as observabilitySession } from "../pricing-
|
|
5
|
+
import { n as buildMcpServer, t as buildMcpHandler } from "../server-Af-rFOsu.js";
|
|
6
|
+
import { b as setSessionGetter, d as setPriceCacheStore, v as flushObservability, y as observabilitySession } from "../pricing-CV93vKQg.js";
|
|
7
7
|
import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
import { basename, dirname, extname, join, resolve } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as UnsupportedError, c as NotFoundError, m as ServerError, s as LLMError, t as APIConnectionError, v as classify } from "./errors-KpUEVi-c.js";
|
|
2
2
|
import { a as ToolCall, l as bytesToBase64, n as Completion } from "./message-0wKCrEp2.js";
|
|
3
3
|
import { n as getEnv } from "./env-BH4ulZ4_.js";
|
|
4
|
-
import { c as NativeTool, i as splitTools, n as Tool } from "./version-
|
|
4
|
+
import { c as NativeTool, i as splitTools, n as Tool } from "./version-D_SyuJN1.js";
|
|
5
5
|
import { n as parseJsonText } from "./schema-CbsM_8LN.js";
|
|
6
|
-
import { t as Provider } from "./base-
|
|
6
|
+
import { t as Provider } from "./base-tTDV1c7F.js";
|
|
7
7
|
const CLOUD_HOST = "https://ollama.com";
|
|
8
8
|
const TOP_LEVEL = /* @__PURE__ */ new Set([
|
|
9
9
|
"think",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_errors = require("./errors-BqivrjKZ.cjs");
|
|
2
2
|
const require_message = require("./message-DCvWw0dF.cjs");
|
|
3
3
|
const require_env = require("./env-B1ffNsxb.cjs");
|
|
4
|
-
const require_version = require("./version
|
|
4
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
5
5
|
const require_schema = require("./schema-CdxlpDZe.cjs");
|
|
6
|
-
const require_base = require("./base-
|
|
6
|
+
const require_base = require("./base-rFOxm0iG.cjs");
|
|
7
7
|
const CLOUD_HOST = "https://ollama.com";
|
|
8
8
|
const TOP_LEVEL = /* @__PURE__ */ new Set([
|
|
9
9
|
"think",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_errors = require("./errors-BqivrjKZ.cjs");
|
|
2
2
|
const require_env = require("./env-B1ffNsxb.cjs");
|
|
3
|
-
const require_client = require("./client-
|
|
3
|
+
const require_client = require("./client-CPdl8DOD.cjs");
|
|
4
4
|
const require_message = require("./message-DCvWw0dF.cjs");
|
|
5
5
|
const require_schema = require("./schema-CdxlpDZe.cjs");
|
|
6
|
-
const require_version = require("./version
|
|
7
|
-
const require_base = require("./base-
|
|
6
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
7
|
+
const require_base = require("./base-rFOxm0iG.cjs");
|
|
8
8
|
// src/providers/openai-responses.ts
|
|
9
9
|
/**
|
|
10
10
|
* Responses API da OpenAI (e do Azure): o único endpoint com as tools nativas
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as UnsupportedError, l as OutputValidationError, m as ServerError, v as classify } from "./errors-KpUEVi-c.js";
|
|
2
2
|
import { n as getEnv } from "./env-BH4ulZ4_.js";
|
|
3
|
-
import { s as splitMcp } from "./client-
|
|
3
|
+
import { s as splitMcp } from "./client-BzryHBvQ.js";
|
|
4
4
|
import { a as ToolCall, n as Completion, s as imageDataUri } from "./message-0wKCrEp2.js";
|
|
5
5
|
import { n as parseJsonText } from "./schema-CbsM_8LN.js";
|
|
6
|
-
import { c as NativeTool, i as splitTools } from "./version-
|
|
7
|
-
import { t as Provider } from "./base-
|
|
6
|
+
import { c as NativeTool, i as splitTools } from "./version-D_SyuJN1.js";
|
|
7
|
+
import { t as Provider } from "./base-tTDV1c7F.js";
|
|
8
8
|
// src/providers/openai-responses.ts
|
|
9
9
|
/**
|
|
10
10
|
* Responses API da OpenAI (e do Azure): o único endpoint com as tools nativas
|
package/dist/prebuilt/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_version = require("../version
|
|
2
|
+
const require_version = require("../version--np7KvSO.cjs");
|
|
3
3
|
const require_env = require("../env-B1ffNsxb.cjs");
|
|
4
4
|
const require_schema = require("../schema-CdxlpDZe.cjs");
|
|
5
5
|
// src/prebuilt/http.ts
|
package/dist/prebuilt/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as tool, t as VERSION } from "../version-
|
|
1
|
+
import { o as tool, t as VERSION } from "../version-D_SyuJN1.js";
|
|
2
2
|
import { n as getEnv, t as envFlag } from "../env-BH4ulZ4_.js";
|
|
3
3
|
import { t as jsonSchema } from "../schema-CbsM_8LN.js";
|
|
4
4
|
// src/prebuilt/http.ts
|
|
@@ -436,6 +436,12 @@ var prices_default = {
|
|
|
436
436
|
"output": 50,
|
|
437
437
|
"cache_read": .25
|
|
438
438
|
},
|
|
439
|
+
{
|
|
440
|
+
"pattern": "claude-(?:fable|mythos)-5[-.]2",
|
|
441
|
+
"input": 8,
|
|
442
|
+
"output": 40,
|
|
443
|
+
"cache_read": .2
|
|
444
|
+
},
|
|
439
445
|
{
|
|
440
446
|
"pattern": "gemini-embedding",
|
|
441
447
|
"input": .15,
|
|
@@ -498,6 +504,29 @@ var prices_default = {
|
|
|
498
504
|
"output": 10,
|
|
499
505
|
"cache_read": .1
|
|
500
506
|
},
|
|
507
|
+
{
|
|
508
|
+
"pattern": "gemini-4-carbon",
|
|
509
|
+
"input": 2,
|
|
510
|
+
"output": 10,
|
|
511
|
+
"cache_read": .1
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"pattern": "gemini-4-hydrogen",
|
|
515
|
+
"input": 1.5,
|
|
516
|
+
"output": 7.5,
|
|
517
|
+
"cache_read": .075
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"pattern": "gemini-4-neon",
|
|
521
|
+
"input": 3,
|
|
522
|
+
"output": 15,
|
|
523
|
+
"cache_read": .15
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"pattern": "gemini-omni-1\\.2-flash",
|
|
527
|
+
"input": 1.5,
|
|
528
|
+
"output": 9
|
|
529
|
+
},
|
|
501
530
|
{
|
|
502
531
|
"pattern": "gemini-2\\.5-pro",
|
|
503
532
|
"input": 1.25,
|
|
@@ -642,6 +671,11 @@ var prices_default = {
|
|
|
642
671
|
"input": 30,
|
|
643
672
|
"output": 180
|
|
644
673
|
},
|
|
674
|
+
{
|
|
675
|
+
"pattern": "gpt-5\\.5-cyber",
|
|
676
|
+
"input": 12.5,
|
|
677
|
+
"output": 75
|
|
678
|
+
},
|
|
645
679
|
{
|
|
646
680
|
"pattern": "gpt-5\\.6",
|
|
647
681
|
"input": 4,
|
|
@@ -686,6 +720,29 @@ var prices_default = {
|
|
|
686
720
|
"output": 10,
|
|
687
721
|
"cache_read": .1
|
|
688
722
|
},
|
|
723
|
+
{
|
|
724
|
+
"pattern": "gpt-6[.-]1-terra",
|
|
725
|
+
"input": 1,
|
|
726
|
+
"output": 5,
|
|
727
|
+
"cache_read": .05
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"pattern": "gpt-6-cyber",
|
|
731
|
+
"input": 20,
|
|
732
|
+
"output": 100
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"pattern": "gpt-6\\.2-astra",
|
|
736
|
+
"input": 8,
|
|
737
|
+
"output": 40,
|
|
738
|
+
"cache_read": .4
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"pattern": "gpt-6\\.2-sol",
|
|
742
|
+
"input": 2,
|
|
743
|
+
"output": 10,
|
|
744
|
+
"cache_read": .1
|
|
745
|
+
},
|
|
689
746
|
{
|
|
690
747
|
"pattern": "gpt-rosalind-research",
|
|
691
748
|
"input": 5,
|
|
@@ -808,9 +865,9 @@ var prices_default = {
|
|
|
808
865
|
},
|
|
809
866
|
{
|
|
810
867
|
"pattern": "mistral-large-4",
|
|
811
|
-
"input":
|
|
812
|
-
"output":
|
|
813
|
-
"cache_read": .
|
|
868
|
+
"input": .7,
|
|
869
|
+
"output": 2.1,
|
|
870
|
+
"cache_read": .07
|
|
814
871
|
},
|
|
815
872
|
{
|
|
816
873
|
"pattern": "mistral-medium-3",
|
|
@@ -1029,6 +1086,12 @@ var prices_default = {
|
|
|
1029
1086
|
"input": 2,
|
|
1030
1087
|
"output": 6
|
|
1031
1088
|
},
|
|
1089
|
+
{
|
|
1090
|
+
"pattern": "qwen4-max",
|
|
1091
|
+
"input": 1.5,
|
|
1092
|
+
"output": 4.5,
|
|
1093
|
+
"cache_read": .075
|
|
1094
|
+
},
|
|
1032
1095
|
{
|
|
1033
1096
|
"pattern": "qwen3-32b",
|
|
1034
1097
|
"input": .29,
|
|
@@ -1140,6 +1203,13 @@ var prices_default = {
|
|
|
1140
1203
|
"input": .3,
|
|
1141
1204
|
"output": 1.2
|
|
1142
1205
|
},
|
|
1206
|
+
{
|
|
1207
|
+
"pattern": "muse-ember",
|
|
1208
|
+
"input": .1,
|
|
1209
|
+
"output": .5,
|
|
1210
|
+
"cache_read": .004,
|
|
1211
|
+
"above_200k": [.3, 1.5]
|
|
1212
|
+
},
|
|
1143
1213
|
{
|
|
1144
1214
|
"pattern": "cohere-embed",
|
|
1145
1215
|
"input": .1,
|
|
@@ -1369,7 +1439,7 @@ var prices_default = {
|
|
|
1369
1439
|
"source": "mistral.ai/pricing/api (document library: US$0,01/chamada)"
|
|
1370
1440
|
}
|
|
1371
1441
|
],
|
|
1372
|
-
updated_at: "2026-
|
|
1442
|
+
updated_at: "2026-11-19"
|
|
1373
1443
|
};
|
|
1374
1444
|
// src/pricing.ts
|
|
1375
1445
|
/**
|
|
@@ -436,6 +436,12 @@ var prices_default = {
|
|
|
436
436
|
"output": 50,
|
|
437
437
|
"cache_read": .25
|
|
438
438
|
},
|
|
439
|
+
{
|
|
440
|
+
"pattern": "claude-(?:fable|mythos)-5[-.]2",
|
|
441
|
+
"input": 8,
|
|
442
|
+
"output": 40,
|
|
443
|
+
"cache_read": .2
|
|
444
|
+
},
|
|
439
445
|
{
|
|
440
446
|
"pattern": "gemini-embedding",
|
|
441
447
|
"input": .15,
|
|
@@ -498,6 +504,29 @@ var prices_default = {
|
|
|
498
504
|
"output": 10,
|
|
499
505
|
"cache_read": .1
|
|
500
506
|
},
|
|
507
|
+
{
|
|
508
|
+
"pattern": "gemini-4-carbon",
|
|
509
|
+
"input": 2,
|
|
510
|
+
"output": 10,
|
|
511
|
+
"cache_read": .1
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"pattern": "gemini-4-hydrogen",
|
|
515
|
+
"input": 1.5,
|
|
516
|
+
"output": 7.5,
|
|
517
|
+
"cache_read": .075
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"pattern": "gemini-4-neon",
|
|
521
|
+
"input": 3,
|
|
522
|
+
"output": 15,
|
|
523
|
+
"cache_read": .15
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"pattern": "gemini-omni-1\\.2-flash",
|
|
527
|
+
"input": 1.5,
|
|
528
|
+
"output": 9
|
|
529
|
+
},
|
|
501
530
|
{
|
|
502
531
|
"pattern": "gemini-2\\.5-pro",
|
|
503
532
|
"input": 1.25,
|
|
@@ -642,6 +671,11 @@ var prices_default = {
|
|
|
642
671
|
"input": 30,
|
|
643
672
|
"output": 180
|
|
644
673
|
},
|
|
674
|
+
{
|
|
675
|
+
"pattern": "gpt-5\\.5-cyber",
|
|
676
|
+
"input": 12.5,
|
|
677
|
+
"output": 75
|
|
678
|
+
},
|
|
645
679
|
{
|
|
646
680
|
"pattern": "gpt-5\\.6",
|
|
647
681
|
"input": 4,
|
|
@@ -686,6 +720,29 @@ var prices_default = {
|
|
|
686
720
|
"output": 10,
|
|
687
721
|
"cache_read": .1
|
|
688
722
|
},
|
|
723
|
+
{
|
|
724
|
+
"pattern": "gpt-6[.-]1-terra",
|
|
725
|
+
"input": 1,
|
|
726
|
+
"output": 5,
|
|
727
|
+
"cache_read": .05
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"pattern": "gpt-6-cyber",
|
|
731
|
+
"input": 20,
|
|
732
|
+
"output": 100
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"pattern": "gpt-6\\.2-astra",
|
|
736
|
+
"input": 8,
|
|
737
|
+
"output": 40,
|
|
738
|
+
"cache_read": .4
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"pattern": "gpt-6\\.2-sol",
|
|
742
|
+
"input": 2,
|
|
743
|
+
"output": 10,
|
|
744
|
+
"cache_read": .1
|
|
745
|
+
},
|
|
689
746
|
{
|
|
690
747
|
"pattern": "gpt-rosalind-research",
|
|
691
748
|
"input": 5,
|
|
@@ -808,9 +865,9 @@ var prices_default = {
|
|
|
808
865
|
},
|
|
809
866
|
{
|
|
810
867
|
"pattern": "mistral-large-4",
|
|
811
|
-
"input":
|
|
812
|
-
"output":
|
|
813
|
-
"cache_read": .
|
|
868
|
+
"input": .7,
|
|
869
|
+
"output": 2.1,
|
|
870
|
+
"cache_read": .07
|
|
814
871
|
},
|
|
815
872
|
{
|
|
816
873
|
"pattern": "mistral-medium-3",
|
|
@@ -1029,6 +1086,12 @@ var prices_default = {
|
|
|
1029
1086
|
"input": 2,
|
|
1030
1087
|
"output": 6
|
|
1031
1088
|
},
|
|
1089
|
+
{
|
|
1090
|
+
"pattern": "qwen4-max",
|
|
1091
|
+
"input": 1.5,
|
|
1092
|
+
"output": 4.5,
|
|
1093
|
+
"cache_read": .075
|
|
1094
|
+
},
|
|
1032
1095
|
{
|
|
1033
1096
|
"pattern": "qwen3-32b",
|
|
1034
1097
|
"input": .29,
|
|
@@ -1140,6 +1203,13 @@ var prices_default = {
|
|
|
1140
1203
|
"input": .3,
|
|
1141
1204
|
"output": 1.2
|
|
1142
1205
|
},
|
|
1206
|
+
{
|
|
1207
|
+
"pattern": "muse-ember",
|
|
1208
|
+
"input": .1,
|
|
1209
|
+
"output": .5,
|
|
1210
|
+
"cache_read": .004,
|
|
1211
|
+
"above_200k": [.3, 1.5]
|
|
1212
|
+
},
|
|
1143
1213
|
{
|
|
1144
1214
|
"pattern": "cohere-embed",
|
|
1145
1215
|
"input": .1,
|
|
@@ -1369,7 +1439,7 @@ var prices_default = {
|
|
|
1369
1439
|
"source": "mistral.ai/pricing/api (document library: US$0,01/chamada)"
|
|
1370
1440
|
}
|
|
1371
1441
|
],
|
|
1372
|
-
updated_at: "2026-
|
|
1442
|
+
updated_at: "2026-11-19"
|
|
1373
1443
|
};
|
|
1374
1444
|
// src/pricing.ts
|
|
1375
1445
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as runWithRequestContext, o as warn, r as normalizeHeaders, t as EMPTY_CONTEXT } from "./context-CvNVqdqz.js";
|
|
2
|
-
import { a as toTool, c as NativeTool, n as Tool } from "./version-
|
|
2
|
+
import { a as toTool, c as NativeTool, n as Tool } from "./version-D_SyuJN1.js";
|
|
3
3
|
// src/mcp/invoke.ts
|
|
4
4
|
/** Nomes liberados nesta requisição (`null` = todos). */
|
|
5
5
|
async function allowedNames(filter, ctx) {
|
|
@@ -339,6 +339,7 @@ async function runSandbox(module, code, callTool, limits, signal) {
|
|
|
339
339
|
* Configuração do Code Mode de `buildMcpServer`/`buildMcpHandler`/`serveMcp`.
|
|
340
340
|
* Veja {@link CodeModeOptions}.
|
|
341
341
|
*/
|
|
342
|
+
const DIRECT_MESSAGE = "ferramenta direta, fora do execute. Chame-a como uma ferramenta normal do servidor (ao lado do execute), não com callTool.";
|
|
342
343
|
var CodeMode = class {
|
|
343
344
|
limits;
|
|
344
345
|
searchLimit;
|
|
@@ -381,6 +382,12 @@ var CodeMode = class {
|
|
|
381
382
|
const directs = tools.filter((t) => this.direct.has(t.name));
|
|
382
383
|
const all = tools.filter((t) => !this.direct.has(t.name));
|
|
383
384
|
const byName = new Map(all.map((t) => [t.name, t]));
|
|
385
|
+
const directNames = new Set(directs.map((t) => t.name));
|
|
386
|
+
const directAllowed = async (name, ctx) => {
|
|
387
|
+
if (!directNames.has(name)) return false;
|
|
388
|
+
const ok = await allowedNames(toolFilter, ctx);
|
|
389
|
+
return ok === null || ok.has(name);
|
|
390
|
+
};
|
|
384
391
|
const searchLimit = this.searchLimit;
|
|
385
392
|
const limits = { ...this.limits };
|
|
386
393
|
const visible = async (ctx) => {
|
|
@@ -449,11 +456,13 @@ var CodeMode = class {
|
|
|
449
456
|
execute: (async (args, ctx) => {
|
|
450
457
|
const names = Array.isArray(args.tool_names) ? args.tool_names.map(String) : [];
|
|
451
458
|
const detail = String(args.detail ?? "detailed");
|
|
452
|
-
const
|
|
453
|
-
|
|
459
|
+
const context = ctx ?? EMPTY_CONTEXT;
|
|
460
|
+
const shown = new Map((await visible(context)).map((s) => [s.name, s]));
|
|
461
|
+
return (await Promise.all(names.map(async (n) => {
|
|
454
462
|
const s = shown.get(n);
|
|
455
|
-
|
|
456
|
-
|
|
463
|
+
if (s) return render(s, detail);
|
|
464
|
+
return await directAllowed(n, context) ? `- ${n}: ${DIRECT_MESSAGE}` : `- ${n}: ferramenta desconhecida`;
|
|
465
|
+
}))).join("\n\n");
|
|
457
466
|
})
|
|
458
467
|
});
|
|
459
468
|
const execute = new Tool({
|
|
@@ -473,7 +482,10 @@ var CodeMode = class {
|
|
|
473
482
|
const callTool = async (name, params) => {
|
|
474
483
|
const ok = await allowedNames(toolFilter, context);
|
|
475
484
|
const t = ok === null || ok.has(name) ? byName.get(name) : void 0;
|
|
476
|
-
if (!t)
|
|
485
|
+
if (!t) {
|
|
486
|
+
if (await directAllowed(name, context)) throw new Error(`${name}: ${DIRECT_MESSAGE}`);
|
|
487
|
+
throw new Error(`ferramenta desconhecida: ${name}`);
|
|
488
|
+
}
|
|
477
489
|
return invokeTool(t, params && typeof params === "object" && !Array.isArray(params) ? params : {}, context);
|
|
478
490
|
};
|
|
479
491
|
const { output, value } = await runSandbox(module, code, callTool, limits, context.signal);
|
|
@@ -617,7 +629,7 @@ async function prepare(sync, options) {
|
|
|
617
629
|
always,
|
|
618
630
|
serverInfo: {
|
|
619
631
|
name: options.name ?? "jangada",
|
|
620
|
-
version: options.version ?? "1.1.
|
|
632
|
+
version: options.version ?? "1.1.4",
|
|
621
633
|
...identity(sdk, options)
|
|
622
634
|
}
|
|
623
635
|
};
|
|
@@ -69,10 +69,6 @@ interface CodeModeWrapOptions {
|
|
|
69
69
|
toolFilter?: ToolFilter | undefined;
|
|
70
70
|
toolDescription?: ToolDescription | undefined;
|
|
71
71
|
}
|
|
72
|
-
/**
|
|
73
|
-
* Configuração do Code Mode de `buildMcpServer`/`buildMcpHandler`/`serveMcp`.
|
|
74
|
-
* Veja {@link CodeModeOptions}.
|
|
75
|
-
*/
|
|
76
72
|
declare class CodeMode {
|
|
77
73
|
readonly limits: Readonly<CodeModeLimits>;
|
|
78
74
|
readonly searchLimit: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_context = require("./context-BWyYfOyr.cjs");
|
|
2
|
-
const require_version = require("./version
|
|
2
|
+
const require_version = require("./version--np7KvSO.cjs");
|
|
3
3
|
// src/mcp/invoke.ts
|
|
4
4
|
/** Nomes liberados nesta requisição (`null` = todos). */
|
|
5
5
|
async function allowedNames(filter, ctx) {
|
|
@@ -339,6 +339,7 @@ async function runSandbox(module, code, callTool, limits, signal) {
|
|
|
339
339
|
* Configuração do Code Mode de `buildMcpServer`/`buildMcpHandler`/`serveMcp`.
|
|
340
340
|
* Veja {@link CodeModeOptions}.
|
|
341
341
|
*/
|
|
342
|
+
const DIRECT_MESSAGE = "ferramenta direta, fora do execute. Chame-a como uma ferramenta normal do servidor (ao lado do execute), não com callTool.";
|
|
342
343
|
var CodeMode = class {
|
|
343
344
|
limits;
|
|
344
345
|
searchLimit;
|
|
@@ -381,6 +382,12 @@ var CodeMode = class {
|
|
|
381
382
|
const directs = tools.filter((t) => this.direct.has(t.name));
|
|
382
383
|
const all = tools.filter((t) => !this.direct.has(t.name));
|
|
383
384
|
const byName = new Map(all.map((t) => [t.name, t]));
|
|
385
|
+
const directNames = new Set(directs.map((t) => t.name));
|
|
386
|
+
const directAllowed = async (name, ctx) => {
|
|
387
|
+
if (!directNames.has(name)) return false;
|
|
388
|
+
const ok = await allowedNames(toolFilter, ctx);
|
|
389
|
+
return ok === null || ok.has(name);
|
|
390
|
+
};
|
|
384
391
|
const searchLimit = this.searchLimit;
|
|
385
392
|
const limits = { ...this.limits };
|
|
386
393
|
const visible = async (ctx) => {
|
|
@@ -449,11 +456,13 @@ var CodeMode = class {
|
|
|
449
456
|
execute: (async (args, ctx) => {
|
|
450
457
|
const names = Array.isArray(args.tool_names) ? args.tool_names.map(String) : [];
|
|
451
458
|
const detail = String(args.detail ?? "detailed");
|
|
452
|
-
const
|
|
453
|
-
|
|
459
|
+
const context = ctx ?? require_context.EMPTY_CONTEXT;
|
|
460
|
+
const shown = new Map((await visible(context)).map((s) => [s.name, s]));
|
|
461
|
+
return (await Promise.all(names.map(async (n) => {
|
|
454
462
|
const s = shown.get(n);
|
|
455
|
-
|
|
456
|
-
|
|
463
|
+
if (s) return render(s, detail);
|
|
464
|
+
return await directAllowed(n, context) ? `- ${n}: ${DIRECT_MESSAGE}` : `- ${n}: ferramenta desconhecida`;
|
|
465
|
+
}))).join("\n\n");
|
|
457
466
|
})
|
|
458
467
|
});
|
|
459
468
|
const execute = new require_version.Tool({
|
|
@@ -473,7 +482,10 @@ var CodeMode = class {
|
|
|
473
482
|
const callTool = async (name, params) => {
|
|
474
483
|
const ok = await allowedNames(toolFilter, context);
|
|
475
484
|
const t = ok === null || ok.has(name) ? byName.get(name) : void 0;
|
|
476
|
-
if (!t)
|
|
485
|
+
if (!t) {
|
|
486
|
+
if (await directAllowed(name, context)) throw new Error(`${name}: ${DIRECT_MESSAGE}`);
|
|
487
|
+
throw new Error(`ferramenta desconhecida: ${name}`);
|
|
488
|
+
}
|
|
477
489
|
return invokeTool(t, params && typeof params === "object" && !Array.isArray(params) ? params : {}, context);
|
|
478
490
|
};
|
|
479
491
|
const { output, value } = await runSandbox(module, code, callTool, limits, context.signal);
|
|
@@ -617,7 +629,7 @@ async function prepare(sync, options) {
|
|
|
617
629
|
always,
|
|
618
630
|
serverInfo: {
|
|
619
631
|
name: options.name ?? "jangada",
|
|
620
|
-
version: options.version ?? "1.1.
|
|
632
|
+
version: options.version ?? "1.1.4",
|
|
621
633
|
...identity(sdk, options)
|
|
622
634
|
}
|
|
623
635
|
};
|
|
@@ -69,10 +69,6 @@ interface CodeModeWrapOptions {
|
|
|
69
69
|
toolFilter?: ToolFilter | undefined;
|
|
70
70
|
toolDescription?: ToolDescription | undefined;
|
|
71
71
|
}
|
|
72
|
-
/**
|
|
73
|
-
* Configuração do Code Mode de `buildMcpServer`/`buildMcpHandler`/`serveMcp`.
|
|
74
|
-
* Veja {@link CodeModeOptions}.
|
|
75
|
-
*/
|
|
76
72
|
declare class CodeMode {
|
|
77
73
|
readonly limits: Readonly<CodeModeLimits>;
|
|
78
74
|
readonly searchLimit: number;
|
|
@@ -181,7 +181,7 @@ function splitTools(tools) {
|
|
|
181
181
|
}
|
|
182
182
|
// src/version.ts
|
|
183
183
|
/** Versão do pacote `jangada-ai` (npm). Atualizada a cada release junto do `package.json`. */
|
|
184
|
-
const VERSION = "1.1.
|
|
184
|
+
const VERSION = "1.1.4";
|
|
185
185
|
Object.defineProperty(exports, "NATIVE_TOOL_KINDS", {
|
|
186
186
|
enumerable: true,
|
|
187
187
|
get: function() {
|
|
@@ -181,5 +181,5 @@ function splitTools(tools) {
|
|
|
181
181
|
}
|
|
182
182
|
// src/version.ts
|
|
183
183
|
/** Versão do pacote `jangada-ai` (npm). Atualizada a cada release junto do `package.json`. */
|
|
184
|
-
const VERSION = "1.1.
|
|
184
|
+
const VERSION = "1.1.4";
|
|
185
185
|
export { webFetch as _, toTool as a, NativeTool as c, fileSearch as d, googleMaps as f, urlContext as g, nativeTool as h, splitTools as i, codeExecution as l, isNative as m, Tool as n, tool as o, imageGeneration as p, normalizeTools as r, NATIVE_TOOL_KINDS as s, VERSION as t, computerUse as u, webSearch as v };
|
package/package.json
CHANGED