@nexface/agent 0.1.13-alpha.2 → 0.1.13-alpha.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/dist/agent.js +0 -1
- package/dist/browser-policy/gpt.js +0 -1
- package/dist/browser-policy/jev.js +0 -1
- package/dist/browser-policy/response-error.js +0 -1
- package/dist/browser-policy/shared.js +0 -1
- package/dist/browser-prompt.generated.js +0 -1
- package/dist/browser-prompt.js +0 -1
- package/dist/errors.js +0 -1
- package/dist/history-compaction.js +0 -1
- package/dist/history-version.js +0 -1
- package/dist/index.js +0 -1
- package/dist/model/binding.js +0 -1
- package/dist/model/error.js +0 -1
- package/dist/model/internal-adapter.js +0 -1
- package/dist/model/types.js +0 -1
- package/dist/models/39.js +0 -3
- package/dist/models/851.js +0 -1
- package/dist/models/_chunks/360-7e580bb2.js +0 -8
- package/dist/models/_chunks/474-e1813138.js +0 -113
- package/dist/models/_chunks/86-c0c5ac98.js +0 -2
- package/dist/models/_chunks/anthropic-messages~1-d35e3e7d.js +0 -62
- package/dist/models/_chunks/deferred-tools-90f3c977.js +0 -1
- package/dist/models/_chunks/error-body-8bee35c2.js +0 -1
- package/dist/models/_chunks/google-generative-ai~1-2ba71457.js +0 -3
- package/dist/models/_chunks/openai-completions~1-b340f0e0.js +0 -1
- package/dist/models/_chunks/openai-responses~1-b53c65c2.js +0 -2
- package/dist/models/anthropic-messages.js +0 -2
- package/dist/models/google-generative-ai.js +0 -2
- package/dist/models/openai-completions.js +0 -1
- package/dist/models/openai-responses.js +0 -1
- package/dist/page-decision.js +0 -1
- package/dist/page-decisions/gpt.js +0 -1
- package/dist/page-decisions/jev.js +0 -1
- package/dist/page-decisions/shared.js +0 -1
- package/dist/page-diagnostics.js +0 -1
- package/dist/page-observation.js +0 -1
- package/dist/request.js +0 -1
- package/dist/shared/definition.js +0 -1
- package/dist/shared/errors.js +0 -1
- package/dist/shared/page-protocol.js +0 -1
- package/dist/shared/page-tools.js +0 -1
- package/dist/shared/runtime-controller.js +0 -1
- package/dist/shared/runtime-execution.js +0 -1
- package/dist/shared/schema.js +0 -1
- package/dist/tool-catalog.js +0 -1
- package/dist/tool-result.js +0 -1
- package/dist/types.js +0 -1
- package/package.json +6 -2
- package/dist/agent.js.map +0 -1
- package/dist/browser-policy/gpt.js.map +0 -1
- package/dist/browser-policy/jev.js.map +0 -1
- package/dist/browser-policy/response-error.js.map +0 -1
- package/dist/browser-policy/shared.js.map +0 -1
- package/dist/browser-prompt.generated.js.map +0 -1
- package/dist/browser-prompt.js.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/history-compaction.js.map +0 -1
- package/dist/history-version.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/model/binding.js.map +0 -1
- package/dist/model/error.js.map +0 -1
- package/dist/model/internal-adapter.js.map +0 -1
- package/dist/model/types.js.map +0 -1
- package/dist/page-decision.js.map +0 -1
- package/dist/page-decisions/gpt.js.map +0 -1
- package/dist/page-decisions/jev.js.map +0 -1
- package/dist/page-decisions/shared.js.map +0 -1
- package/dist/page-diagnostics.js.map +0 -1
- package/dist/page-observation.js.map +0 -1
- package/dist/request.js.map +0 -1
- package/dist/shared/definition.js.map +0 -1
- package/dist/shared/errors.js.map +0 -1
- package/dist/shared/page-protocol.js.map +0 -1
- package/dist/shared/page-tools.js.map +0 -1
- package/dist/shared/runtime-controller.js.map +0 -1
- package/dist/shared/runtime-execution.js.map +0 -1
- package/dist/shared/schema.js.map +0 -1
- package/dist/tool-catalog.js.map +0 -1
- package/dist/tool-result.js.map +0 -1
- package/dist/types.js.map +0 -1
package/dist/agent.js
CHANGED
|
@@ -54,4 +54,3 @@ Execution policy:
|
|
|
54
54
|
- Return JSON-serializable data when reading information from the page.
|
|
55
55
|
- A successful Page action receipt proves only that the action ran. Confirm business success through visible feedback, field readback, or an application tool result.
|
|
56
56
|
- nxf_executeAction automatically returns a best-effort viewport snapshot. If refsExpired, postSnapshotTimedOut, or snapshotUnavailable is true, or the expected page state is absent, call nxf_getSnapshot before another write or nxf_finish.`;
|
|
57
|
-
//# sourceMappingURL=browser-prompt.generated.js.map
|
package/dist/browser-prompt.js
CHANGED
package/dist/errors.js
CHANGED
package/dist/history-version.js
CHANGED
package/dist/index.js
CHANGED
package/dist/model/binding.js
CHANGED
package/dist/model/error.js
CHANGED
package/dist/model/types.js
CHANGED
package/dist/models/39.js
CHANGED
|
@@ -3,7 +3,6 @@ import { defineAgentModelConfig } from "../model/binding.js";
|
|
|
3
3
|
function flattenModelCatalog(_provider, groups) {
|
|
4
4
|
return Object.assign({}, ...Object.values(groups));
|
|
5
5
|
}
|
|
6
|
-
//# sourceMappingURL=model-catalog.js.map
|
|
7
6
|
// Generic event stream class for async iteration
|
|
8
7
|
class EventStream {
|
|
9
8
|
queue = [];
|
|
@@ -84,7 +83,6 @@ class AssistantMessageEventStream extends EventStream {
|
|
|
84
83
|
function createAssistantMessageEventStream() {
|
|
85
84
|
return new AssistantMessageEventStream();
|
|
86
85
|
}
|
|
87
|
-
//# sourceMappingURL=event-stream.js.map
|
|
88
86
|
|
|
89
87
|
function createSetupErrorMessage(model, error) {
|
|
90
88
|
return {
|
|
@@ -154,7 +152,6 @@ function lazyApi(load, capabilities) {
|
|
|
154
152
|
}
|
|
155
153
|
return api;
|
|
156
154
|
}
|
|
157
|
-
//# sourceMappingURL=lazy.js.map
|
|
158
155
|
const LEGACY_TOOL_NAMES = new Set([
|
|
159
156
|
"callAppTool",
|
|
160
157
|
"getSnapshot",
|
package/dist/models/851.js
CHANGED
|
@@ -585,7 +585,6 @@ function modelsAreEqual(a, b) {
|
|
|
585
585
|
return false;
|
|
586
586
|
return a.id === b.id && a.provider === b.provider;
|
|
587
587
|
}
|
|
588
|
-
//# sourceMappingURL=models.js.map
|
|
589
588
|
function headersToRecord(headers) {
|
|
590
589
|
const result = {};
|
|
591
590
|
for (const [key, value] of headers.entries()) {
|
|
@@ -603,7 +602,6 @@ function providerHeadersToRecord(headers) {
|
|
|
603
602
|
}
|
|
604
603
|
return Object.keys(result).length > 0 ? result : undefined;
|
|
605
604
|
}
|
|
606
|
-
//# sourceMappingURL=headers.js.map
|
|
607
605
|
const DEFAULT_MAX_RETRY_DELAY_MS = 60_000;
|
|
608
606
|
function isProviderError(error) {
|
|
609
607
|
if (!(error instanceof Error) || !("status" in error) || !("headers" in error))
|
|
@@ -697,7 +695,6 @@ async function retryProviderRequest(request, options = {}) {
|
|
|
697
695
|
}
|
|
698
696
|
}
|
|
699
697
|
}
|
|
700
|
-
//# sourceMappingURL=provider-retry.js.map
|
|
701
698
|
/**
|
|
702
699
|
* Removes unpaired Unicode surrogate characters from a string.
|
|
703
700
|
*
|
|
@@ -723,7 +720,6 @@ function sanitizeSurrogates(text) {
|
|
|
723
720
|
// Replace unpaired low surrogates (0xDC00-0xDFFF not preceded by high surrogate)
|
|
724
721
|
return text.replace(/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g, "");
|
|
725
722
|
}
|
|
726
|
-
//# sourceMappingURL=sanitize-unicode.js.map
|
|
727
723
|
function getGrammarToolInput(toolName, arguments_, inputProperty) {
|
|
728
724
|
const input = arguments_[inputProperty];
|
|
729
725
|
if (typeof input !== "string") {
|
|
@@ -823,7 +819,6 @@ function createGrammarToolInputProperties(tools, supportsOpenAIGrammarTools) {
|
|
|
823
819
|
}
|
|
824
820
|
return properties;
|
|
825
821
|
}
|
|
826
|
-
//# sourceMappingURL=constrained-sampling.js.map
|
|
827
822
|
const CHARS_PER_TOKEN = 4;
|
|
828
823
|
const ESTIMATED_IMAGE_CHARS = 4800;
|
|
829
824
|
function calculateContextTokens(usage) {
|
|
@@ -939,7 +934,6 @@ function estimateContextTokens(context) {
|
|
|
939
934
|
lastUsageIndex: estimate.lastUsageIndex,
|
|
940
935
|
};
|
|
941
936
|
}
|
|
942
|
-
//# sourceMappingURL=estimate.js.map
|
|
943
937
|
|
|
944
938
|
const CONTEXT_SAFETY_TOKENS = 4096;
|
|
945
939
|
const MIN_MAX_TOKENS = 1;
|
|
@@ -998,7 +992,6 @@ baseMaxTokens, modelMaxTokens, reasoningLevel, customBudgets) {
|
|
|
998
992
|
}
|
|
999
993
|
return { maxTokens, thinkingBudget };
|
|
1000
994
|
}
|
|
1001
|
-
//# sourceMappingURL=simple-options.js.map
|
|
1002
995
|
const NON_VISION_USER_IMAGE_PLACEHOLDER = "(image omitted: model does not support images)";
|
|
1003
996
|
const NON_VISION_TOOL_IMAGE_PLACEHOLDER = "(tool image omitted: model does not support images)";
|
|
1004
997
|
function replaceImagesWithPlaceholder(content, placeholder) {
|
|
@@ -1185,5 +1178,4 @@ function transformMessages(messages, model, normalizeToolCallId) {
|
|
|
1185
1178
|
insertSyntheticToolResults();
|
|
1186
1179
|
return result;
|
|
1187
1180
|
}
|
|
1188
|
-
//# sourceMappingURL=transform-messages.js.map
|
|
1189
1181
|
export { adjustMaxTokensForThinking, appendGrammarToolInputJsonDelta, buildBaseOptions, calculateCost, clampMaxTokensToContext, clampReasoning, clampThinkingLevel, createGrammarToolInputProperties, getGrammarToolInput, headersToRecord, providerHeadersToRecord, resolveGrammarConstrainedSampling, resolveJsonSchemaStrictSampling, retryProviderRequest, sanitizeSurrogates, transformMessages };
|