@nexface/agent 0.1.1-alpha.0 → 0.1.1-alpha.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/dist/index.d.ts +1 -1
- package/dist/models/_chunks/{958-bedced75.js → 86-c0c5ac98.js} +5 -5
- package/dist/models/_chunks/{anthropic-messages~1-a4b25b48.js → anthropic-messages~1-a838a7c1.js} +4 -4
- package/dist/models/_chunks/{google-generative-ai~1-78bb2822.js → google-generative-ai~1-5ceee40d.js} +11 -11
- package/dist/models/_chunks/{openai-completions~1-7677fb83.js → openai-completions~1-396a5c3a.js} +4 -4
- package/dist/models/_chunks/{openai-responses~1-cc0a71cd.js → openai-responses~1-2b3e0291.js} +5 -5
- package/dist/models/anthropic-messages.js +3 -3
- package/dist/models/google-generative-ai.js +3 -3
- package/dist/models/openai-completions.js +2 -2
- package/dist/models/openai-responses.js +2 -2
- package/dist/types.d.ts +16 -0
- package/package.json +4 -15
- /package/dist/models/{885.js → 42.js} +0 -0
- /package/dist/models/{956.js → 663.js} +0 -0
- /package/dist/models/_chunks/{879-7e580bb2.js → 360-7e580bb2.js} +0 -0
- /package/dist/models/_chunks/{35-e1813138.js → 474-e1813138.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export { createAgent } from "./agent.js";
|
|
|
2
2
|
export { isAgentError } from "./errors.js";
|
|
3
3
|
export { ToolBridgeError, isToolBridgeError } from "./tool-bridge.js";
|
|
4
4
|
export type { ToolBridge } from "./tool-bridge.js";
|
|
5
|
-
export type { Agent, AgentMessage, AgentInputContent, AgentRun, AgentRunEvent, AgentRunInput, AgentRunOptions, AgentRunResult, AgentSkill,
|
|
5
|
+
export type { Agent, AgentMessage, AgentInputContent, AgentRun, AgentRunEvent, AgentRunInput, AgentRunOptions, AgentRunResult, AgentSkill, } from "./types.js";
|
|
6
6
|
export type { AgentModelConfig, AgentModelInfo, } from "./model/types.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __webpack_require__ } from "../rslib-runtime.js";
|
|
2
2
|
|
|
3
3
|
__webpack_require__.add({
|
|
4
|
-
|
|
4
|
+
2661(__unused_rspack_module, exports, __webpack_require__) {
|
|
5
5
|
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
@@ -19,9 +19,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
21
21
|
exports.Allow = exports.MalformedJSON = exports.PartialJSON = exports.parseJSON = exports.parse = void 0;
|
|
22
|
-
const options_1 = __webpack_require__(
|
|
22
|
+
const options_1 = __webpack_require__(519);
|
|
23
23
|
Object.defineProperty(exports, "Allow", ({ enumerable: true, get: function () { return options_1.Allow; } }));
|
|
24
|
-
__exportStar(__webpack_require__(
|
|
24
|
+
__exportStar(__webpack_require__(519), exports);
|
|
25
25
|
class PartialJSON extends Error {
|
|
26
26
|
}
|
|
27
27
|
exports.PartialJSON = PartialJSON;
|
|
@@ -225,7 +225,7 @@ exports.parse = parse;
|
|
|
225
225
|
|
|
226
226
|
|
|
227
227
|
},
|
|
228
|
-
|
|
228
|
+
519(__unused_rspack_module, exports) {
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* Sometimes you don't allow every type to be partially parsed.
|
|
@@ -302,7 +302,7 @@ exports["default"] = exports.Allow;
|
|
|
302
302
|
|
|
303
303
|
},
|
|
304
304
|
});
|
|
305
|
-
const dist = __webpack_require__("
|
|
305
|
+
const dist = __webpack_require__("2661");
|
|
306
306
|
|
|
307
307
|
const VALID_JSON_ESCAPES = new Set(['"', "\\", "/", "b", "f", "n", "r", "t", "u"]);
|
|
308
308
|
function isControlCharacter(char) {
|
package/dist/models/_chunks/{anthropic-messages~1-a4b25b48.js → anthropic-messages~1-a838a7c1.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __webpack_require__ } from "../rslib-runtime.js";
|
|
2
|
-
import { getProviderEnvValue, buildCopilotDynamicHeaders, parseStreamingJson, parseJsonWithRepair, hasCopilotVisionInput } from "./
|
|
3
|
-
import { retryProviderRequest, adjustMaxTokensForThinking, headersToRecord, resolveJsonSchemaStrictSampling, transformMessages, calculateCost, clampMaxTokensToContext, buildBaseOptions, sanitizeSurrogates } from "./
|
|
4
|
-
import { AssistantMessageEventStream } from "../
|
|
2
|
+
import { getProviderEnvValue, buildCopilotDynamicHeaders, parseStreamingJson, parseJsonWithRepair, hasCopilotVisionInput } from "./86-c0c5ac98.js";
|
|
3
|
+
import { retryProviderRequest, adjustMaxTokensForThinking, headersToRecord, resolveJsonSchemaStrictSampling, transformMessages, calculateCost, clampMaxTokensToContext, buildBaseOptions, sanitizeSurrogates } from "./360-7e580bb2.js";
|
|
4
|
+
import { AssistantMessageEventStream } from "../42.js";
|
|
5
5
|
import { splitDeferredTools } from "./deferred-tools-90f3c977.js";
|
|
6
6
|
|
|
7
|
-
// NAMESPACE OBJECT:
|
|
7
|
+
// NAMESPACE OBJECT: ../../node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__ws@8.21.1_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js
|
|
8
8
|
var anthropic_messages_namespaceObject = {};
|
|
9
9
|
__webpack_require__.r(anthropic_messages_namespaceObject);
|
|
10
10
|
__webpack_require__.d(anthropic_messages_namespaceObject, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __webpack_require__ } from "../rslib-runtime.js";
|
|
2
|
-
import { providerHeadersToRecord, clampThinkingLevel, resolveJsonSchemaStrictSampling, transformMessages, calculateCost, buildBaseOptions, retryProviderRequest, sanitizeSurrogates } from "./
|
|
3
|
-
import { AssistantMessageEventStream } from "../
|
|
2
|
+
import { providerHeadersToRecord, clampThinkingLevel, resolveJsonSchemaStrictSampling, transformMessages, calculateCost, buildBaseOptions, retryProviderRequest, sanitizeSurrogates } from "./360-7e580bb2.js";
|
|
3
|
+
import { AssistantMessageEventStream } from "../42.js";
|
|
4
4
|
import { formatProviderError, normalizeProviderError } from "./error-body-8bee35c2.js";
|
|
5
5
|
|
|
6
6
|
__webpack_require__.add({
|
|
7
|
-
|
|
7
|
+
6124(module, __unused_rspack_exports, __webpack_require__) {
|
|
8
8
|
|
|
9
|
-
const retry = __webpack_require__(
|
|
9
|
+
const retry = __webpack_require__(9627);
|
|
10
10
|
|
|
11
11
|
const networkErrorMsgs = [
|
|
12
12
|
'Failed to fetch', // Chrome
|
|
@@ -93,12 +93,12 @@ module.exports.AbortError = AbortError;
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
},
|
|
96
|
-
|
|
97
|
-
module.exports = __webpack_require__(
|
|
96
|
+
9627(module, __unused_rspack_exports, __webpack_require__) {
|
|
97
|
+
module.exports = __webpack_require__(853);
|
|
98
98
|
|
|
99
99
|
},
|
|
100
|
-
|
|
101
|
-
var RetryOperation = __webpack_require__(
|
|
100
|
+
853(__unused_rspack_module, exports, __webpack_require__) {
|
|
101
|
+
var RetryOperation = __webpack_require__(6971);
|
|
102
102
|
|
|
103
103
|
exports.operation = function(options) {
|
|
104
104
|
var timeouts = exports.timeouts(options);
|
|
@@ -201,7 +201,7 @@ exports.wrap = function(obj, options, methods) {
|
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
},
|
|
204
|
-
|
|
204
|
+
6971(module) {
|
|
205
205
|
function RetryOperation(timeouts, options) {
|
|
206
206
|
// Compatibility for the old (timeouts, retryForever) signature
|
|
207
207
|
if (typeof options === 'boolean') {
|
|
@@ -368,7 +368,7 @@ RetryOperation.prototype.mainError = function() {
|
|
|
368
368
|
|
|
369
369
|
},
|
|
370
370
|
});
|
|
371
|
-
// NAMESPACE OBJECT:
|
|
371
|
+
// NAMESPACE OBJECT: ../../node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__ws@8.21.1_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js
|
|
372
372
|
var google_generative_ai_namespaceObject = {};
|
|
373
373
|
__webpack_require__.r(google_generative_ai_namespaceObject);
|
|
374
374
|
__webpack_require__.d(google_generative_ai_namespaceObject, {
|
|
@@ -376,7 +376,7 @@ __webpack_require__.d(google_generative_ai_namespaceObject, {
|
|
|
376
376
|
streamSimple: () => (streamSimple) });
|
|
377
377
|
|
|
378
378
|
|
|
379
|
-
const p_retry = __webpack_require__("
|
|
379
|
+
const p_retry = __webpack_require__("6124");
|
|
380
380
|
|
|
381
381
|
|
|
382
382
|
/**
|
package/dist/models/_chunks/{openai-completions~1-7677fb83.js → openai-completions~1-396a5c3a.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OpenAI, shortHash, clampOpenAIPromptCacheKey } from "./
|
|
2
|
-
import { getProviderEnvValue, buildCopilotDynamicHeaders, parseStreamingJson, hasCopilotVisionInput } from "./
|
|
3
|
-
import { AssistantMessageEventStream } from "../
|
|
4
|
-
import { sanitizeSurrogates, appendGrammarToolInputJsonDelta, resolveGrammarConstrainedSampling, getGrammarToolInput, headersToRecord, clampThinkingLevel, clampReasoning, resolveJsonSchemaStrictSampling, transformMessages, calculateCost, buildBaseOptions, retryProviderRequest, createGrammarToolInputProperties } from "./
|
|
1
|
+
import { OpenAI, shortHash, clampOpenAIPromptCacheKey } from "./474-e1813138.js";
|
|
2
|
+
import { getProviderEnvValue, buildCopilotDynamicHeaders, parseStreamingJson, hasCopilotVisionInput } from "./86-c0c5ac98.js";
|
|
3
|
+
import { AssistantMessageEventStream } from "../42.js";
|
|
4
|
+
import { sanitizeSurrogates, appendGrammarToolInputJsonDelta, resolveGrammarConstrainedSampling, getGrammarToolInput, headersToRecord, clampThinkingLevel, clampReasoning, resolveJsonSchemaStrictSampling, transformMessages, calculateCost, buildBaseOptions, retryProviderRequest, createGrammarToolInputProperties } from "./360-7e580bb2.js";
|
|
5
5
|
import { formatProviderError, normalizeProviderError } from "./error-body-8bee35c2.js";
|
|
6
6
|
|
|
7
7
|
|
package/dist/models/_chunks/{openai-responses~1-cc0a71cd.js → openai-responses~1-2b3e0291.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __webpack_require__ } from "../rslib-runtime.js";
|
|
2
|
-
import { sanitizeSurrogates, appendGrammarToolInputJsonDelta, resolveGrammarConstrainedSampling, getGrammarToolInput, headersToRecord, clampThinkingLevel, resolveJsonSchemaStrictSampling, transformMessages, calculateCost, buildBaseOptions, retryProviderRequest, createGrammarToolInputProperties } from "./
|
|
3
|
-
import { OpenAI, shortHash, clampOpenAIPromptCacheKey } from "./
|
|
4
|
-
import { getProviderEnvValue, buildCopilotDynamicHeaders, parseStreamingJson, hasCopilotVisionInput } from "./
|
|
2
|
+
import { sanitizeSurrogates, appendGrammarToolInputJsonDelta, resolveGrammarConstrainedSampling, getGrammarToolInput, headersToRecord, clampThinkingLevel, resolveJsonSchemaStrictSampling, transformMessages, calculateCost, buildBaseOptions, retryProviderRequest, createGrammarToolInputProperties } from "./360-7e580bb2.js";
|
|
3
|
+
import { OpenAI, shortHash, clampOpenAIPromptCacheKey } from "./474-e1813138.js";
|
|
4
|
+
import { getProviderEnvValue, buildCopilotDynamicHeaders, parseStreamingJson, hasCopilotVisionInput } from "./86-c0c5ac98.js";
|
|
5
5
|
import { formatProviderError, normalizeProviderError } from "./error-body-8bee35c2.js";
|
|
6
|
-
import { AssistantMessageEventStream } from "../
|
|
6
|
+
import { AssistantMessageEventStream } from "../42.js";
|
|
7
7
|
import { splitDeferredTools } from "./deferred-tools-90f3c977.js";
|
|
8
8
|
|
|
9
|
-
// NAMESPACE OBJECT:
|
|
9
|
+
// NAMESPACE OBJECT: ../../node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__ws@8.21.1_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js
|
|
10
10
|
var openai_responses_namespaceObject = {};
|
|
11
11
|
__webpack_require__.r(openai_responses_namespaceObject);
|
|
12
12
|
__webpack_require__.d(openai_responses_namespaceObject, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { lazyApi, AgentModelError, createProtocolModelConfig } from "./
|
|
2
|
-
import { flattenModelCatalog } from "./
|
|
1
|
+
import { lazyApi, AgentModelError, createProtocolModelConfig } from "./42.js";
|
|
2
|
+
import { flattenModelCatalog } from "./663.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
const anthropicMessagesApi = () => lazyApi(() => import("./_chunks/anthropic-messages~1-
|
|
5
|
+
const anthropicMessagesApi = () => lazyApi(() => import("./_chunks/anthropic-messages~1-a838a7c1.js").then(m => m.anthropic_messages_namespaceObject));
|
|
6
6
|
//# sourceMappingURL=anthropic-messages.lazy.js.map
|
|
7
7
|
var anthropic_namespaceObject = /*#__PURE__*/JSON.parse('{"anthropic-messages":{"claude-fable-5":{"id":"claude-fable-5","name":"Claude Fable 5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":10,"output":50,"cacheRead":1,"cacheWrite":12.5},"contextWindow":1000000,"maxTokens":128000,"thinkingLevelMap":{"off":null,"xhigh":"xhigh","max":"max"},"compat":{"forceAdaptiveThinking":true,"supportsStrictTools":true}},"claude-haiku-4-5":{"id":"claude-haiku-4-5","name":"Claude Haiku 4.5 (latest)","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":1,"output":5,"cacheRead":0.1,"cacheWrite":1.25},"contextWindow":200000,"maxTokens":64000,"compat":{"supportsStrictTools":true}},"claude-haiku-4-5-20251001":{"id":"claude-haiku-4-5-20251001","name":"Claude Haiku 4.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":1,"output":5,"cacheRead":0.1,"cacheWrite":1.25},"contextWindow":200000,"maxTokens":64000,"compat":{"supportsStrictTools":true}},"claude-opus-4-5":{"id":"claude-opus-4-5","name":"Claude Opus 4.5 (latest)","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":5,"output":25,"cacheRead":0.5,"cacheWrite":6.25},"contextWindow":200000,"maxTokens":64000,"compat":{"supportsStrictTools":true}},"claude-opus-4-5-20251101":{"id":"claude-opus-4-5-20251101","name":"Claude Opus 4.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":5,"output":25,"cacheRead":0.5,"cacheWrite":6.25},"contextWindow":200000,"maxTokens":64000,"compat":{"supportsStrictTools":true}},"claude-opus-4-6":{"id":"claude-opus-4-6","name":"Claude Opus 4.6","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":5,"output":25,"cacheRead":0.5,"cacheWrite":6.25},"contextWindow":1000000,"maxTokens":128000,"thinkingLevelMap":{"max":"max"},"compat":{"forceAdaptiveThinking":true,"supportsStrictTools":true}},"claude-opus-4-7":{"id":"claude-opus-4-7","name":"Claude Opus 4.7","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":5,"output":25,"cacheRead":0.5,"cacheWrite":6.25},"contextWindow":1000000,"maxTokens":128000,"thinkingLevelMap":{"xhigh":"xhigh","max":"max"},"compat":{"forceAdaptiveThinking":true,"supportsTemperature":false,"supportsStrictTools":true}},"claude-opus-4-8":{"id":"claude-opus-4-8","name":"Claude Opus 4.8","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":5,"output":25,"cacheRead":0.5,"cacheWrite":6.25},"contextWindow":1000000,"maxTokens":128000,"thinkingLevelMap":{"xhigh":"xhigh","max":"max"},"compat":{"forceAdaptiveThinking":true,"supportsTemperature":false,"supportsStrictTools":true}},"claude-opus-5":{"id":"claude-opus-5","name":"Claude Opus 5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":5,"output":25,"cacheRead":0.5,"cacheWrite":6.25},"contextWindow":1000000,"maxTokens":128000,"thinkingLevelMap":{"xhigh":"xhigh","max":"max"},"compat":{"forceAdaptiveThinking":true,"supportsTemperature":false,"supportsStrictTools":true}},"claude-sonnet-4-5":{"id":"claude-sonnet-4-5","name":"Claude Sonnet 4.5 (latest)","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":3,"output":15,"cacheRead":0.3,"cacheWrite":3.75},"contextWindow":1000000,"maxTokens":64000,"compat":{"supportsStrictTools":true}},"claude-sonnet-4-5-20250929":{"id":"claude-sonnet-4-5-20250929","name":"Claude Sonnet 4.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":3,"output":15,"cacheRead":0.3,"cacheWrite":3.75},"contextWindow":1000000,"maxTokens":64000,"compat":{"supportsStrictTools":true}},"claude-sonnet-4-6":{"id":"claude-sonnet-4-6","name":"Claude Sonnet 4.6","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":3,"output":15,"cacheRead":0.3,"cacheWrite":3.75},"contextWindow":1000000,"maxTokens":128000,"thinkingLevelMap":{"max":"max"},"compat":{"forceAdaptiveThinking":true,"supportsStrictTools":true}},"claude-sonnet-5":{"id":"claude-sonnet-5","name":"Claude Sonnet 5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.2,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000,"thinkingLevelMap":{"xhigh":"xhigh","max":"max"},"compat":{"forceAdaptiveThinking":true,"supportsStrictTools":true}}}}')
|
|
8
8
|
// This file is auto-generated by scripts/generate-models.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { lazyApi, AgentModelError, createProtocolModelConfig } from "./
|
|
2
|
-
import { flattenModelCatalog } from "./
|
|
1
|
+
import { lazyApi, AgentModelError, createProtocolModelConfig } from "./42.js";
|
|
2
|
+
import { flattenModelCatalog } from "./663.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
const googleGenerativeAIApi = () => lazyApi(() => import("./_chunks/google-generative-ai~1-
|
|
5
|
+
const googleGenerativeAIApi = () => lazyApi(() => import("./_chunks/google-generative-ai~1-5ceee40d.js").then(m => m.google_generative_ai_namespaceObject));
|
|
6
6
|
//# sourceMappingURL=google-generative-ai.lazy.js.map
|
|
7
7
|
var google_namespaceObject = /*#__PURE__*/JSON.parse('{"google-generative-ai":{"deep-research-max-preview-04-2026":{"id":"deep-research-max-preview-04-2026","name":"Deep Research Max Preview (Apr-21-2026)","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":12,"cacheRead":0.2,"cacheWrite":0},"contextWindow":131072,"maxTokens":65536},"deep-research-preview-04-2026":{"id":"deep-research-preview-04-2026","name":"Deep Research Preview (Apr-21-2026)","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":12,"cacheRead":0.2,"cacheWrite":0},"contextWindow":131072,"maxTokens":65536},"gemini-2.0-flash":{"id":"gemini-2.0-flash","name":"Gemini 2.0 Flash","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"cost":{"input":0.1,"output":0.4,"cacheRead":0.025,"cacheWrite":0},"contextWindow":1048576,"maxTokens":8192},"gemini-2.0-flash-lite":{"id":"gemini-2.0-flash-lite","name":"Gemini 2.0 Flash-Lite","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"cost":{"input":0.075,"output":0.3,"cacheRead":0,"cacheWrite":0},"contextWindow":1048576,"maxTokens":8192},"gemini-2.5-computer-use-preview-10-2025":{"id":"gemini-2.5-computer-use-preview-10-2025","name":"Gemini 2.5 Computer Use Preview 10-2025","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0,"cacheWrite":0},"contextWindow":131072,"maxTokens":65536},"gemini-2.5-flash":{"id":"gemini-2.5-flash","name":"Gemini 2.5 Flash","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":2.5,"cacheRead":0.03,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},"gemini-2.5-flash-lite":{"id":"gemini-2.5-flash-lite","name":"Gemini 2.5 Flash-Lite","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.4,"cacheRead":0.01,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},"gemini-2.5-pro":{"id":"gemini-2.5-pro","name":"Gemini 2.5 Pro","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0.125,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},"gemini-3-flash-preview":{"id":"gemini-3-flash-preview","name":"Gemini 3 Flash Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.5,"output":3,"cacheRead":0.05,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-3-pro-preview":{"id":"gemini-3-pro-preview","name":"Gemini 3 Pro Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":12,"cacheRead":0.2,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null,"minimal":null,"low":"LOW","medium":null,"high":"HIGH"}},"gemini-3.1-flash-lite":{"id":"gemini-3.1-flash-lite","name":"Gemini 3.1 Flash Lite","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.25,"output":1.5,"cacheRead":0.025,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-3.1-flash-lite-image":{"id":"gemini-3.1-flash-lite-image","name":"Nano Banana 2 Lite","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.25,"output":30,"cacheRead":0,"cacheWrite":0},"contextWindow":65536,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-3.1-flash-lite-preview":{"id":"gemini-3.1-flash-lite-preview","name":"Gemini 3.1 Flash Lite Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.25,"output":1.5,"cacheRead":0.025,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-3.1-flash-live-preview":{"id":"gemini-3.1-flash-live-preview","name":"Gemini 3.1 Flash Live Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.75,"output":4.5,"cacheRead":0,"cacheWrite":0},"contextWindow":131072,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-3.1-pro-preview":{"id":"gemini-3.1-pro-preview","name":"Gemini 3.1 Pro Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":12,"cacheRead":0.2,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null,"minimal":null,"low":"LOW","medium":null,"high":"HIGH"}},"gemini-3.1-pro-preview-customtools":{"id":"gemini-3.1-pro-preview-customtools","name":"Gemini 3.1 Pro Preview Custom Tools","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":12,"cacheRead":0.2,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null,"minimal":null,"low":"LOW","medium":null,"high":"HIGH"}},"gemini-3.5-flash":{"id":"gemini-3.5-flash","name":"Gemini 3.5 Flash","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.5,"output":9,"cacheRead":0.15,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-3.5-flash-lite":{"id":"gemini-3.5-flash-lite","name":"Gemini 3.5 Flash Lite","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":2.5,"cacheRead":0.03,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-3.6-flash":{"id":"gemini-3.6-flash","name":"Gemini 3.6 Flash","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.5,"output":7.5,"cacheRead":0.15,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-flash-latest":{"id":"gemini-flash-latest","name":"Gemini Flash Latest","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.5,"output":9,"cacheRead":0.15,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-flash-lite-latest":{"id":"gemini-flash-lite-latest","name":"Gemini Flash-Lite Latest","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.25,"output":1.5,"cacheRead":0.025,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"thinkingLevelMap":{"off":null}},"gemini-robotics-er-1.6-preview":{"id":"gemini-robotics-er-1.6-preview","name":"Gemini Robotics-ER 1.6 Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1,"output":5,"cacheRead":0,"cacheWrite":0},"contextWindow":131072,"maxTokens":65536},"gemma-4-26b-a4b-it":{"id":"gemma-4-26b-a4b-it","name":"Gemma 4 26B A4B IT","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":262144,"maxTokens":32768,"thinkingLevelMap":{"off":null,"minimal":"MINIMAL","low":null,"medium":null,"high":"HIGH"}},"gemma-4-31b-it":{"id":"gemma-4-31b-it","name":"Gemma 4 31B IT","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":262144,"maxTokens":32768,"thinkingLevelMap":{"off":null,"minimal":"MINIMAL","low":null,"medium":null,"high":"HIGH"}}}}')
|
|
8
8
|
// This file is auto-generated by scripts/generate-models.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { lazyApi, createProtocolModelConfig } from "./
|
|
1
|
+
import { lazyApi, createProtocolModelConfig } from "./42.js";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const openAICompletionsApi = () => lazyApi(() => import("./_chunks/openai-completions~1-
|
|
4
|
+
const openAICompletionsApi = () => lazyApi(() => import("./_chunks/openai-completions~1-396a5c3a.js"));
|
|
5
5
|
//# sourceMappingURL=openai-completions.lazy.js.map
|
|
6
6
|
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { lazyApi, createProtocolModelConfig } from "./
|
|
1
|
+
import { lazyApi, createProtocolModelConfig } from "./42.js";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const openAIResponsesApi = () => lazyApi(() => import("./_chunks/openai-responses~1-
|
|
4
|
+
const openAIResponsesApi = () => lazyApi(() => import("./_chunks/openai-responses~1-2b3e0291.js").then(m => m.openai_responses_namespaceObject));
|
|
5
5
|
//# sourceMappingURL=openai-responses.lazy.js.map
|
|
6
6
|
|
|
7
7
|
|
package/dist/types.d.ts
CHANGED
|
@@ -53,6 +53,10 @@ export interface AgentModelResponse {
|
|
|
53
53
|
export interface AgentRunOptions {
|
|
54
54
|
signal?: AbortSignal;
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @experimental Human-in-the-loop approval descriptor.
|
|
58
|
+
* @beta
|
|
59
|
+
*/
|
|
56
60
|
export type ToolApprovalInterruptDescriptor = {
|
|
57
61
|
readonly type: "tool-approval";
|
|
58
62
|
readonly id: string;
|
|
@@ -73,7 +77,15 @@ export type AgentRunResult = {
|
|
|
73
77
|
readonly status: "completed";
|
|
74
78
|
readonly output: string;
|
|
75
79
|
} | {
|
|
80
|
+
/**
|
|
81
|
+
* @experimental Human-in-the-loop interruption; ordinary completed Runs are not experimental.
|
|
82
|
+
* @beta
|
|
83
|
+
*/
|
|
76
84
|
readonly status: "interrupted";
|
|
85
|
+
/**
|
|
86
|
+
* @experimental Human-in-the-loop approval descriptor.
|
|
87
|
+
* @beta
|
|
88
|
+
*/
|
|
77
89
|
readonly interrupt: ToolApprovalInterruptDescriptor;
|
|
78
90
|
};
|
|
79
91
|
export type AgentRunEvent = RunStartedEvent | RunFinishedEvent | RunErrorEvent | TextMessageStartEvent | TextMessageContentEvent | TextMessageEndEvent | ToolCallStartEvent | ToolCallArgsEvent | ToolCallEndEvent | ToolCallResultEvent;
|
|
@@ -89,6 +101,10 @@ export type AgentRunInput = {
|
|
|
89
101
|
readonly resume?: never;
|
|
90
102
|
} | {
|
|
91
103
|
readonly message?: never;
|
|
104
|
+
/**
|
|
105
|
+
* @experimental Resumes a human-in-the-loop Chat approval.
|
|
106
|
+
* @beta
|
|
107
|
+
*/
|
|
92
108
|
readonly resume: readonly [
|
|
93
109
|
{
|
|
94
110
|
readonly interruptId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexface/agent",
|
|
3
|
-
"version": "0.1.1-alpha.
|
|
3
|
+
"version": "0.1.1-alpha.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.19.0"
|
|
@@ -34,22 +34,11 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ag-ui/core": "0.0.59"
|
|
36
36
|
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "node ../../scripts/generate-browser-tools-skill.mjs --check && node scripts/clean.mjs && tsc -p tsconfig.json && rslib build && node scripts/clean-model-output.mjs",
|
|
39
|
-
"typecheck": "node ../../scripts/generate-browser-tools-skill.mjs --check && tsc -p tsconfig.json --noEmit"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@nexface/tools": "0.1.1-alpha.0",
|
|
43
|
-
"@earendil-works/pi-ai": "0.84.1",
|
|
44
|
-
"@rslib/core": "0.23.2",
|
|
45
|
-
"rspack-1-7": "npm:@rspack/core@1.7.12"
|
|
46
|
-
},
|
|
47
37
|
"peerDependencies": {
|
|
48
|
-
"@nexface/tools": "0.1.1-alpha.
|
|
38
|
+
"@nexface/tools": "0.1.1-alpha.2"
|
|
49
39
|
},
|
|
50
40
|
"publishConfig": {
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"access": "public"
|
|
41
|
+
"access": "public",
|
|
42
|
+
"registry": "https://registry.npmjs.org"
|
|
54
43
|
}
|
|
55
44
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|