@tangle-network/agent-runtime 10.0.22 → 10.0.24
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/CHANGELOG.md +20 -0
- package/dist/{activation-D_J9qCzU.js → activation-DLbBM2S0.js} +2 -2
- package/dist/{activation-D_J9qCzU.js.map → activation-DLbBM2S0.js.map} +1 -1
- package/dist/{activation-BSRRW51N.d.ts → activation-DUYtmQH_.d.ts} +22 -4
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/{delegate-DCZPcYy8.js → delegate-Cz2GF_z7.js} +2 -2
- package/dist/{delegate-DCZPcYy8.js.map → delegate-Cz2GF_z7.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-CgGt3NcX.js → driver-control-acknowledgers-pDEPMuML.js} +7 -7
- package/dist/{driver-control-acknowledgers-CgGt3NcX.js.map → driver-control-acknowledgers-pDEPMuML.js.map} +1 -1
- package/dist/durable-writer-thread.js +2 -2
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +14 -13
- package/dist/durable.js.map +1 -1
- package/dist/{graph-B3pBmvnf.js → graph-D-LVPqrm.js} +7 -6
- package/dist/{graph-B3pBmvnf.js.map → graph-D-LVPqrm.js.map} +1 -1
- package/dist/{improve-BjKhfQ_b.js → improve-BJW9OcEn.js} +189 -63
- package/dist/improve-BJW9OcEn.js.map +1 -0
- package/dist/index.d.ts +41 -6
- package/dist/index.js +88 -41
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +15 -15
- package/dist/{loop-runner-L594gDYR.js → loop-runner-BZWObfqa.js} +2 -2
- package/dist/{loop-runner-L594gDYR.js.map → loop-runner-BZWObfqa.js.map} +1 -1
- package/dist/{loop-runner-Dk5NO0Sz.d.ts → loop-runner-ClANio8o.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +6 -6
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-Be-6HBsX.js → provision-supervisor-ChGKJz8s.js} +5 -5
- package/dist/{provision-supervisor-Be-6HBsX.js.map → provision-supervisor-ChGKJz8s.js.map} +1 -1
- package/dist/{result-blob-store-CJjp44Mz.js → result-blob-store-BZwRmrFF.js} +2 -2
- package/dist/{result-blob-store-CJjp44Mz.js.map → result-blob-store-BZwRmrFF.js.map} +1 -1
- package/dist/{run-cancellation-BNBmsY3a.js → run-cancellation-uCwV2Ra7.js} +2 -2
- package/dist/{run-cancellation-BNBmsY3a.js.map → run-cancellation-uCwV2Ra7.js.map} +1 -1
- package/dist/{run-reopen-Cr2SHmYa.js → run-reopen-YJwUAmv6.js} +6 -6
- package/dist/{run-reopen-Cr2SHmYa.js.map → run-reopen-YJwUAmv6.js.map} +1 -1
- package/dist/{run-state-Bko0BF0_.js → run-state-6jJzk6gB.js} +5 -5
- package/dist/{run-state-Bko0BF0_.js.map → run-state-6jJzk6gB.js.map} +1 -1
- package/dist/{runtime-Dfwc9cjt.js → runtime-Ddkn1wRr.js} +15 -15
- package/dist/{runtime-Dfwc9cjt.js.map → runtime-Ddkn1wRr.js.map} +1 -1
- package/dist/{search-executor-DnWnh4kj.js → search-executor-D9E9q-Pv.js} +4 -4
- package/dist/{search-executor-DnWnh4kj.js.map → search-executor-D9E9q-Pv.js.map} +1 -1
- package/dist/{server-RCsa_gyH.js → server-BhXz3JyW.js} +4 -4
- package/dist/{server-RCsa_gyH.js.map → server-BhXz3JyW.js.map} +1 -1
- package/dist/{settle-record-BlIw2MU1.js → settle-record-DWae7fwV.js} +2 -2
- package/dist/{settle-record-BlIw2MU1.js.map → settle-record-DWae7fwV.js.map} +1 -1
- package/dist/{structural-rollout-BLflx9cs.js → structural-rollout-BL8KLLw8.js} +4 -4
- package/dist/{structural-rollout-BLflx9cs.js.map → structural-rollout-BL8KLLw8.js.map} +1 -1
- package/dist/{supervise-037R-zl1.js → supervise-C7mDlK7S.js} +10 -7
- package/dist/supervise-C7mDlK7S.js.map +1 -0
- package/dist/{supervise-identity-CtxWEk1I.js → supervise-identity-DLPzZTp3.js} +2 -2
- package/dist/{supervise-identity-CtxWEk1I.js.map → supervise-identity-DLPzZTp3.js.map} +1 -1
- package/dist/{supervision-discovery-DKxqbnHf.js → supervision-discovery-8XnVtdOD.js} +3 -3
- package/dist/{supervision-discovery-DKxqbnHf.js.map → supervision-discovery-8XnVtdOD.js.map} +1 -1
- package/dist/{supervisor-DL4hO7UW.js → supervisor-BQwg_3T0.js} +494 -28
- package/dist/supervisor-BQwg_3T0.js.map +1 -0
- package/dist/{supervisor-accounting-DlDUl58C.js → supervisor-accounting-B0ofgTZX.js} +91 -14
- package/dist/supervisor-accounting-B0ofgTZX.js.map +1 -0
- package/dist/{supervisor-root-contract-BCbu1A4n.js → supervisor-root-contract-N7rW4Ynu.js} +3 -3
- package/dist/{supervisor-root-contract-BCbu1A4n.js.map → supervisor-root-contract-N7rW4Ynu.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{tool-server-n4XYpCok.js → tool-server-I63dnHZC.js} +39 -3
- package/dist/{tool-server-n4XYpCok.js.map → tool-server-I63dnHZC.js.map} +1 -1
- package/dist/{top-web-B-sHmI3g.js → top-web-BZM3es-m.js} +7 -7
- package/dist/{top-web-B-sHmI3g.js.map → top-web-BZM3es-m.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/{types-3p2eAICm.d.ts → types-CByvdC7k.d.ts} +23 -8
- package/package.json +1 -1
- package/dist/improve-BjKhfQ_b.js.map +0 -1
- package/dist/supervise-037R-zl1.js.map +0 -1
- package/dist/supervisor-DL4hO7UW.js.map +0 -1
- package/dist/supervisor-accounting-DlDUl58C.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { $ as appendTeardownConfirmation,
|
|
1
|
+
import { $ as appendTeardownConfirmation, $r as inheritRuntimeOwnedExecutorAttestation, Ai as sameControlCoordinates, An as startRetainedRun, At as RELEASE_DESTROY_MS, Cn as stopRetainedNativeExecution, Cr as isLiveNodeStatus, Ct as unconfirmedTeardowns, Di as exactSession, Dn as mintRetainedIdentity, Ei as awaitAbortable, En as assertRetainedRunReplayMaterial, Er as HarnessTurnFailedError, Hn as WORKER_TRACE_PROPAGATION, Jr as attestRuntimeOwnedPendingExecutor, Kn as mergeTraceEnv, Kr as attestRuntimeOwnedDeferredExecutor, L as resolveWorkerSlots, Mi as promptOptionsFromAgentTurnInput, Oi as freezeControlRef, On as reconnectRetainedRun, Or as classifyDriverFailure, Qr as finalizeRuntimeOwnedPendingExecutor, R as prepareScopeResume, Rt as finalizeScopeOwnerMaterialization, Sn as describeRetainedNativeStops, St as startScopeRecoveries, Ti as assertEventBinding, Tn as RetainedMaterializationTimeoutError, Tr as DriverAttemptsExhaustedError, U as nestedScopeSeamKey, Un as workerTraceEnv, Ur as gateOnDeliverable, Vn as environmentGone, Vr as CheckUnavailableError, Wn as workerTraceHeaders, Z as appendSpawnEvents, Zt as scopeRetainedOwnerSettled, _t as registerNestedTeardownScope, ai as recordRuntimeOwnedProviderAttemptStart, an as bindScopeRetainedOwnerProvider, bn as observeModelRequest, br as createActivityLog, bt as retryUnconfirmedTeardowns, ci as recordRuntimeOwnedProviderModel, cr as captureHarnessTranscript, ct as closeRetainedSlots, di as runtimeOwnedExecutorMaterialization, dn as ownedTreeRootSpawn, dr as harnessTranscriptUnavailable, gn as SpawnEventIndex, hi as runtimeOwnedScopeOwnerRuntime, hn as nestedDriverTreeRoot, jt as keepScopeRetainedOwnerRestorePoint, ki as retainedSessionReplaced, kn as recoverRetainedRun, lt as closeScopeAdmission, mi as runtimeOwnedScopeOwnerControl, mn as driverRuntime, n as terminalAccounting, ni as newExecutionAttemptId, nt as assertRecursiveReservationPolicy, oi as recordRuntimeOwnedProviderDispatchNotStarted, on as owners, or as HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS, pn as attestNestedDriverTreeOwner, qr as attestRuntimeOwnedExecutor, r as createScope, rn as scopeRetainedOwnerCheckpointing, si as recordRuntimeOwnedProviderIdentityConflict, sn as scopeOwnerLiabilities, st as boundRetainedReleases, t as isNonEmptySpend, ui as runtimeOwnedExecutorExecutionBinding, un as loadSpawnForest, ur as harnessTranscriptFromLines, ut as hasRetriableTeardowns, vi as executableAgentProfileSnapshot, vn as executorObservation, vt as releaseHeldEnvironments, wi as RetainedRunProviderContractError, wn as verifyWorkspaceMarker, wt as waitForScopeChildren, xr as describeToolArgs, xt as settleManagerWork, yi as executableAgentSpecSnapshot, yt as releaseRetainedEnvironments } from "./supervisor-accounting-B0ofgTZX.js";
|
|
2
2
|
import { f as RuntimeRunStateError, m as ValidationError$1, r as BackendTransportError } from "./errors-DG8yufqX.js";
|
|
3
3
|
import { C as linkAbort, b as RunCancellationReason, h as checkVerdictOf, v as isFiniteNumber, w as runAbortable, x as abortReason, y as sha256 } from "./jsonl-file-B2ESMrTh.js";
|
|
4
4
|
import { a as ROOT_DEADLINE_REASON, l as isDeadlineAbortReason, o as armDeadlineTimer, t as ACCEPTED_RESULT_GRACE_MS } from "./deadline-CySmJ_0S.js";
|
|
5
5
|
import { C as unreportedSpend, D as addResourceSpend, E as zeroTokenUsage, S as unmeteredSpend, T as zeroSpend, _ as roundBoxMinutes, b as throwAbort, c as errorMessage, d as isAbortError, f as isAsyncIterable, g as randomUuid, h as randomSuffix, m as promptCacheTokenClasses, n as addSpend, o as cloneTokenUsage, p as mapWithConcurrency, r as addTokenUsage, s as deleteBoxSafe, v as sleep, w as withTimeout, x as throwIfAborted, y as stringifySafe } from "./util-qsH5cC9S.js";
|
|
6
6
|
import { t as runTaskQueue } from "./task-queue-DbpZAp6C.js";
|
|
7
|
-
import { At as sandboxTerminalUsageField, Ct as createSandboxUsageLedger, D as cappedDoublingMs, Dt as sameModelId, Et as notifySandboxEventObserver, G as turnFailureOf, J as hashJson, M as unavailablePauseMs, N as unavailableResumeAt, Nt as parseCodexUsageRecord, Ot as sandboxEventProviderModels, P as unavailableSignalOfFailure, Pt as recordValue, R as contentAddress, St as createSandboxTurnEventCollector, Tt as isSandboxTerminalEvent, W as runtimeFailureRemediationSchema, X as isCredentialRefusal, bt as assertSandboxServedModel, d as RetainedExecutionPendingError, ht as sandboxProgressEvents, i as runtimeFailureCause, j as reportedResetAt, k as placementRefusal, kt as sandboxEventServedBackend, mt as sandboxOutputMarker, nt as createBudgetPool, o as runtimeProviderCode, pt as sandboxLeafOutputFromEvents, q as turnRemediationOf, r as reportedFailureCause, ut as createSandboxToolPartState, vt as extractTransportEventIdentity, x as retainedExecutorContext, xt as canonicalSandboxUsageMode, z as contentRef } from "./tool-server-
|
|
7
|
+
import { At as sandboxTerminalUsageField, Ct as createSandboxUsageLedger, D as cappedDoublingMs, Dt as sameModelId, Et as notifySandboxEventObserver, G as turnFailureOf, J as hashJson, M as unavailablePauseMs, N as unavailableResumeAt, Nt as parseCodexUsageRecord, Ot as sandboxEventProviderModels, P as unavailableSignalOfFailure, Pt as recordValue, R as contentAddress, St as createSandboxTurnEventCollector, Tt as isSandboxTerminalEvent, W as runtimeFailureRemediationSchema, X as isCredentialRefusal, bt as assertSandboxServedModel, d as RetainedExecutionPendingError, ht as sandboxProgressEvents, i as runtimeFailureCause, j as reportedResetAt, k as placementRefusal, kt as sandboxEventServedBackend, mt as sandboxOutputMarker, nt as createBudgetPool, o as runtimeProviderCode, pt as sandboxLeafOutputFromEvents, q as turnRemediationOf, r as reportedFailureCause, ut as createSandboxToolPartState, vt as extractTransportEventIdentity, x as retainedExecutorContext, xt as canonicalSandboxUsageMode, z as contentRef } from "./tool-server-I63dnHZC.js";
|
|
8
8
|
import { a as errMessage, f as defaultRedactor, i as causeChain, l as errorText, n as detachedSnapshot, s as errorProperty, t as detachedFrozen } from "./snapshot-BKLziJ5K.js";
|
|
9
9
|
import { _ as reportedServedModel, a as concreteProfileModel, c as profileModelExecutionSettings, d as assertRouterAutoDeclaration, f as assertRouterAutoResponse, g as observedModelMatchesDeclared, l as profileProviderModel, m as mergeObservedModelIdentity, o as enforceTokenLimits, s as profileBridgeWireModel, t as assertExecutableAgentProfile, u as resolveRouterRetryPolicy, v as agentHarness } from "./model-policy-DFuhCC0-.js";
|
|
10
10
|
import { r as nativeSystemPrompt, t as assertSandboxProfileCompatibility } from "./sandbox-profile-compat-l-SLQnGb.js";
|
|
11
11
|
import { x as hasControlCharacter } from "./workspace-streams-C7PGLAUd.js";
|
|
12
12
|
import { r as appendRunLines, u as writeAtomicDurableFile } from "./durable-file-pao7FijS.js";
|
|
13
13
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-CsW2pfFk.js";
|
|
14
|
-
import { n as encodeResultBlob } from "./result-blob-store-
|
|
15
|
-
import { a as recordRootReentered, c as rootMaterializationReceipt, i as changesRootProfile, l as rootStartedAtMs, o as recordRootSegment, r as assertRootIdentity, s as rootExecutionBindingReceipt, t as assertResumeContract } from "./supervisor-root-contract-
|
|
14
|
+
import { n as encodeResultBlob } from "./result-blob-store-BZwRmrFF.js";
|
|
15
|
+
import { a as recordRootReentered, c as rootMaterializationReceipt, i as changesRootProfile, l as rootStartedAtMs, o as recordRootSegment, r as assertRootIdentity, s as rootExecutionBindingReceipt, t as assertResumeContract } from "./supervisor-root-contract-N7rW4Ynu.js";
|
|
16
16
|
import { AGENT_PROFILE_MATERIALIZATION_AXES, AgentExactRunControlRefSchema, AgentFileOutputPolicySchema, AgentRetainedFilePublicationSchema, AgentRunCancellationRequestSchema, AgentTurnInputSchema, REASONING_EFFORTS, WorkspaceCheckpointRefSchema, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalWorkspaceCwd, harnessTypeSchema, mergeProxySecretBindings, nativeReasoningControl, profileMaterializationAxes, profileMaterializationAxes as profileMaterializationAxes$1, renderInputPartsAsText, sameAgentRunControlRef, workspaceCwdPathForBase } from "@tangle-network/agent-interface";
|
|
17
17
|
import { createAgentRunOutcomeTracker } from "@tangle-network/sandbox/runtime";
|
|
18
18
|
import { SDKError, generateIdempotencyKey, isRecord, withRetry } from "@tangle-network/agent-core";
|
|
@@ -3508,10 +3508,18 @@ function naturalNumber(value) {
|
|
|
3508
3508
|
const ROUTER_PRICE_SOURCE = {
|
|
3509
3509
|
repository: "tangle-network/tangle-router",
|
|
3510
3510
|
path: "pricing/researched-provider-prices.json",
|
|
3511
|
-
commit: "
|
|
3511
|
+
commit: "836217bcf57b860a83b43cf0921d8a23234885a0",
|
|
3512
|
+
committedAt: "2026-11-29T12:23:30-08:00"
|
|
3512
3513
|
};
|
|
3513
3514
|
/** USD per token for each model id the Router prices. */
|
|
3514
3515
|
const ROUTER_TOKEN_PRICES = {
|
|
3516
|
+
"accounts/fireworks/routers/deepseek-v4p1-flash-us": {
|
|
3517
|
+
provider: "fireworks",
|
|
3518
|
+
input: 4.5000000000000003e-7,
|
|
3519
|
+
cachedInput: 9e-9,
|
|
3520
|
+
cacheWrite: 0,
|
|
3521
|
+
output: 18000000000000001e-22
|
|
3522
|
+
},
|
|
3515
3523
|
"claude-fable-5-1": {
|
|
3516
3524
|
provider: "anthropic",
|
|
3517
3525
|
input: 1e-5,
|
|
@@ -3519,6 +3527,13 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3519
3527
|
cacheWrite: null,
|
|
3520
3528
|
output: 5e-5
|
|
3521
3529
|
},
|
|
3530
|
+
"claude-fable-5-2": {
|
|
3531
|
+
provider: "anthropic",
|
|
3532
|
+
input: 8e-6,
|
|
3533
|
+
cachedInput: 2e-7,
|
|
3534
|
+
cacheWrite: null,
|
|
3535
|
+
output: 4e-5
|
|
3536
|
+
},
|
|
3522
3537
|
"claude-haiku-5-5": {
|
|
3523
3538
|
provider: "anthropic",
|
|
3524
3539
|
input: 1e-7,
|
|
@@ -3561,13 +3576,6 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3561
3576
|
cacheWrite: 3e-7,
|
|
3562
3577
|
output: 12e-7
|
|
3563
3578
|
},
|
|
3564
|
-
"deepseek-chat": {
|
|
3565
|
-
provider: "deepseek",
|
|
3566
|
-
input: 15e-8,
|
|
3567
|
-
cachedInput: 3e-9,
|
|
3568
|
-
cacheWrite: 15e-8,
|
|
3569
|
-
output: 6e-7
|
|
3570
|
-
},
|
|
3571
3579
|
"deepseek-flash": {
|
|
3572
3580
|
provider: "deepseek",
|
|
3573
3581
|
input: 15e-8,
|
|
@@ -3598,10 +3606,10 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3598
3606
|
},
|
|
3599
3607
|
"deepseek-v4-flash-vision-exp": {
|
|
3600
3608
|
provider: "deepseek",
|
|
3601
|
-
input:
|
|
3602
|
-
cachedInput:
|
|
3603
|
-
cacheWrite:
|
|
3604
|
-
output:
|
|
3609
|
+
input: 15e-8,
|
|
3610
|
+
cachedInput: 3e-9,
|
|
3611
|
+
cacheWrite: 15e-8,
|
|
3612
|
+
output: 6e-7
|
|
3605
3613
|
},
|
|
3606
3614
|
"deepseek-v4-pro": {
|
|
3607
3615
|
provider: "deepseek",
|
|
@@ -3617,6 +3625,20 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3617
3625
|
cacheWrite: 0,
|
|
3618
3626
|
output: 12e-7
|
|
3619
3627
|
},
|
|
3628
|
+
"deepseek-v4p1-flash-1017": {
|
|
3629
|
+
provider: "fireworks",
|
|
3630
|
+
input: 3e-7,
|
|
3631
|
+
cachedInput: 6e-9,
|
|
3632
|
+
cacheWrite: null,
|
|
3633
|
+
output: 12e-7
|
|
3634
|
+
},
|
|
3635
|
+
"deepseek-v4p1-flash-1017-ultrafast": {
|
|
3636
|
+
provider: "fireworks",
|
|
3637
|
+
input: 24e-7,
|
|
3638
|
+
cachedInput: 48e-9,
|
|
3639
|
+
cacheWrite: null,
|
|
3640
|
+
output: 96e-7
|
|
3641
|
+
},
|
|
3620
3642
|
"ember-1": {
|
|
3621
3643
|
provider: "fireworks",
|
|
3622
3644
|
input: 3e-6,
|
|
@@ -3624,6 +3646,13 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3624
3646
|
cacheWrite: 3e-6,
|
|
3625
3647
|
output: 15e-6
|
|
3626
3648
|
},
|
|
3649
|
+
"gemini-2.5-flash-image": {
|
|
3650
|
+
provider: "google",
|
|
3651
|
+
input: 3e-7,
|
|
3652
|
+
cachedInput: null,
|
|
3653
|
+
cacheWrite: null,
|
|
3654
|
+
output: 25e-7
|
|
3655
|
+
},
|
|
3627
3656
|
"gemini-2.5-flash-lite": {
|
|
3628
3657
|
provider: "google",
|
|
3629
3658
|
input: 1e-7,
|
|
@@ -3631,6 +3660,20 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3631
3660
|
cacheWrite: 1e-7,
|
|
3632
3661
|
output: 4e-7
|
|
3633
3662
|
},
|
|
3663
|
+
"gemini-3.1-flash-image": {
|
|
3664
|
+
provider: "google",
|
|
3665
|
+
input: 5e-7,
|
|
3666
|
+
cachedInput: null,
|
|
3667
|
+
cacheWrite: null,
|
|
3668
|
+
output: 3e-6
|
|
3669
|
+
},
|
|
3670
|
+
"gemini-3.1-flash-lite-image": {
|
|
3671
|
+
provider: "google",
|
|
3672
|
+
input: 25e-8,
|
|
3673
|
+
cachedInput: null,
|
|
3674
|
+
cacheWrite: null,
|
|
3675
|
+
output: 15e-7
|
|
3676
|
+
},
|
|
3634
3677
|
"gemini-3.1-pro-preview": {
|
|
3635
3678
|
provider: "google",
|
|
3636
3679
|
input: 2e-6,
|
|
@@ -3666,6 +3709,20 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3666
3709
|
cacheWrite: 1e-6,
|
|
3667
3710
|
output: 18e-6
|
|
3668
3711
|
},
|
|
3712
|
+
"gemini-4-argon": {
|
|
3713
|
+
provider: "google",
|
|
3714
|
+
input: 2e-6,
|
|
3715
|
+
cachedInput: 1.0000000000000001e-7,
|
|
3716
|
+
cacheWrite: 2e-6,
|
|
3717
|
+
output: 1e-5
|
|
3718
|
+
},
|
|
3719
|
+
"gemini-4-carbon": {
|
|
3720
|
+
provider: "google",
|
|
3721
|
+
input: 4e-6,
|
|
3722
|
+
cachedInput: 2.0000000000000002e-7,
|
|
3723
|
+
cacheWrite: 4e-6,
|
|
3724
|
+
output: 2e-5
|
|
3725
|
+
},
|
|
3669
3726
|
"gemini-flash-latest": {
|
|
3670
3727
|
provider: "google",
|
|
3671
3728
|
input: 15e-7,
|
|
@@ -3673,6 +3730,13 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3673
3730
|
cacheWrite: null,
|
|
3674
3731
|
output: 75e-7
|
|
3675
3732
|
},
|
|
3733
|
+
"gemini-nano-banana-2.1": {
|
|
3734
|
+
provider: "google",
|
|
3735
|
+
input: 15e-7,
|
|
3736
|
+
cachedInput: null,
|
|
3737
|
+
cacheWrite: null,
|
|
3738
|
+
output: 75e-7
|
|
3739
|
+
},
|
|
3676
3740
|
"glm-5.2": {
|
|
3677
3741
|
provider: "zai",
|
|
3678
3742
|
input: 14e-7,
|
|
@@ -3687,6 +3751,27 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3687
3751
|
cacheWrite: 0,
|
|
3688
3752
|
output: 44e-7
|
|
3689
3753
|
},
|
|
3754
|
+
"glm-5.3-flash": {
|
|
3755
|
+
provider: "moonmath",
|
|
3756
|
+
input: 15e-8,
|
|
3757
|
+
cachedInput: 4e-8,
|
|
3758
|
+
cacheWrite: 15e-8,
|
|
3759
|
+
output: 5e-7
|
|
3760
|
+
},
|
|
3761
|
+
"glm-5.3-flashx-legal": {
|
|
3762
|
+
provider: "zai",
|
|
3763
|
+
input: 37e-8,
|
|
3764
|
+
cachedInput: 75e-9,
|
|
3765
|
+
cacheWrite: null,
|
|
3766
|
+
output: 125e-8
|
|
3767
|
+
},
|
|
3768
|
+
"glm-5.4": {
|
|
3769
|
+
provider: "zai",
|
|
3770
|
+
input: 14e-7,
|
|
3771
|
+
cachedInput: 26e-8,
|
|
3772
|
+
cacheWrite: 0,
|
|
3773
|
+
output: 44e-7
|
|
3774
|
+
},
|
|
3690
3775
|
"glm-5p3": {
|
|
3691
3776
|
provider: "fireworks",
|
|
3692
3777
|
input: 14e-7,
|
|
@@ -3694,6 +3779,41 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3694
3779
|
cacheWrite: 14e-7,
|
|
3695
3780
|
output: 44e-7
|
|
3696
3781
|
},
|
|
3782
|
+
"glm-5p3-fast": {
|
|
3783
|
+
provider: "fireworks",
|
|
3784
|
+
input: 21e-7,
|
|
3785
|
+
cachedInput: 39e-8,
|
|
3786
|
+
cacheWrite: null,
|
|
3787
|
+
output: 66e-7
|
|
3788
|
+
},
|
|
3789
|
+
"glm-5p3-flash": {
|
|
3790
|
+
provider: "fireworks",
|
|
3791
|
+
input: 15e-8,
|
|
3792
|
+
cachedInput: 3e-8,
|
|
3793
|
+
cacheWrite: null,
|
|
3794
|
+
output: 5e-7
|
|
3795
|
+
},
|
|
3796
|
+
"google/gemini-4-hydrogen": {
|
|
3797
|
+
provider: "google",
|
|
3798
|
+
input: 15e-7,
|
|
3799
|
+
cachedInput: 75e-9,
|
|
3800
|
+
cacheWrite: 15e-7,
|
|
3801
|
+
output: 75e-7
|
|
3802
|
+
},
|
|
3803
|
+
"google/gemini-4-neon": {
|
|
3804
|
+
provider: "google",
|
|
3805
|
+
input: 3e-6,
|
|
3806
|
+
cachedInput: 15e-8,
|
|
3807
|
+
cacheWrite: 3e-6,
|
|
3808
|
+
output: 15e-6
|
|
3809
|
+
},
|
|
3810
|
+
"gpt-4o-mini-transcribe": {
|
|
3811
|
+
provider: "openai",
|
|
3812
|
+
input: 125e-8,
|
|
3813
|
+
cachedInput: null,
|
|
3814
|
+
cacheWrite: null,
|
|
3815
|
+
output: 5e-6
|
|
3816
|
+
},
|
|
3697
3817
|
"gpt-4o-mini-tts": {
|
|
3698
3818
|
provider: "openai",
|
|
3699
3819
|
input: 6e-7,
|
|
@@ -3715,6 +3835,13 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3715
3835
|
cacheWrite: 0,
|
|
3716
3836
|
output: 12e-6
|
|
3717
3837
|
},
|
|
3838
|
+
"gpt-4o-transcribe": {
|
|
3839
|
+
provider: "openai",
|
|
3840
|
+
input: 25e-7,
|
|
3841
|
+
cachedInput: null,
|
|
3842
|
+
cacheWrite: null,
|
|
3843
|
+
output: 1e-5
|
|
3844
|
+
},
|
|
3718
3845
|
"gpt-5.6-luna": {
|
|
3719
3846
|
provider: "openai",
|
|
3720
3847
|
input: 2e-7,
|
|
@@ -3724,10 +3851,10 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3724
3851
|
},
|
|
3725
3852
|
"gpt-5.6-sol": {
|
|
3726
3853
|
provider: "openai",
|
|
3727
|
-
input:
|
|
3728
|
-
cachedInput:
|
|
3729
|
-
cacheWrite:
|
|
3730
|
-
output:
|
|
3854
|
+
input: 4e-6,
|
|
3855
|
+
cachedInput: 4e-7,
|
|
3856
|
+
cacheWrite: 5e-6,
|
|
3857
|
+
output: 2e-5
|
|
3731
3858
|
},
|
|
3732
3859
|
"gpt-5.6-terra": {
|
|
3733
3860
|
provider: "openai",
|
|
@@ -3764,6 +3891,27 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3764
3891
|
cacheWrite: 25e-7,
|
|
3765
3892
|
output: 1e-5
|
|
3766
3893
|
},
|
|
3894
|
+
"gpt-6.1-terra": {
|
|
3895
|
+
provider: "openai",
|
|
3896
|
+
input: 1e-6,
|
|
3897
|
+
cachedInput: 5e-8,
|
|
3898
|
+
cacheWrite: 125e-8,
|
|
3899
|
+
output: 5e-6
|
|
3900
|
+
},
|
|
3901
|
+
"gpt-6.2-astra": {
|
|
3902
|
+
provider: "openai",
|
|
3903
|
+
input: 8e-6,
|
|
3904
|
+
cachedInput: 4.0000000000000003e-7,
|
|
3905
|
+
cacheWrite: 1e-5,
|
|
3906
|
+
output: 4e-5
|
|
3907
|
+
},
|
|
3908
|
+
"gpt-6.2-sol": {
|
|
3909
|
+
provider: "openai",
|
|
3910
|
+
input: 2e-6,
|
|
3911
|
+
cachedInput: 1.0000000000000001e-7,
|
|
3912
|
+
cacheWrite: 25e-7,
|
|
3913
|
+
output: 1e-5
|
|
3914
|
+
},
|
|
3767
3915
|
"gpt-audio": {
|
|
3768
3916
|
provider: "openai",
|
|
3769
3917
|
input: 25e-7,
|
|
@@ -3785,20 +3933,146 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3785
3933
|
cacheWrite: 0,
|
|
3786
3934
|
output: 24e-7
|
|
3787
3935
|
},
|
|
3788
|
-
"gpt-
|
|
3789
|
-
provider: "
|
|
3790
|
-
input:
|
|
3936
|
+
"gpt-image-2": {
|
|
3937
|
+
provider: "openai",
|
|
3938
|
+
input: 5e-6,
|
|
3791
3939
|
cachedInput: null,
|
|
3792
3940
|
cacheWrite: null,
|
|
3793
|
-
output:
|
|
3941
|
+
output: 3e-5
|
|
3794
3942
|
},
|
|
3795
|
-
"
|
|
3943
|
+
"gpt-image-2.5-flare": {
|
|
3944
|
+
provider: "openai",
|
|
3945
|
+
input: 5e-6,
|
|
3946
|
+
cachedInput: null,
|
|
3947
|
+
cacheWrite: null,
|
|
3948
|
+
output: 3e-5
|
|
3949
|
+
},
|
|
3950
|
+
"gpt-image-2.5-sunburst": {
|
|
3951
|
+
provider: "openai",
|
|
3952
|
+
input: 5e-6,
|
|
3953
|
+
cachedInput: null,
|
|
3954
|
+
cacheWrite: null,
|
|
3955
|
+
output: 3e-5
|
|
3956
|
+
},
|
|
3957
|
+
"gpt-image-2.6-flare": {
|
|
3958
|
+
provider: "openai",
|
|
3959
|
+
input: 5e-6,
|
|
3960
|
+
cachedInput: null,
|
|
3961
|
+
cacheWrite: null,
|
|
3962
|
+
output: 3e-5
|
|
3963
|
+
},
|
|
3964
|
+
"gpt-image-2.6-sunburst": {
|
|
3965
|
+
provider: "openai",
|
|
3966
|
+
input: 5e-6,
|
|
3967
|
+
cachedInput: null,
|
|
3968
|
+
cacheWrite: null,
|
|
3969
|
+
output: 3e-5
|
|
3970
|
+
},
|
|
3971
|
+
"gpt-oss-120b": {
|
|
3796
3972
|
provider: "fireworks",
|
|
3973
|
+
input: 15e-8,
|
|
3974
|
+
cachedInput: 15e-9,
|
|
3975
|
+
cacheWrite: null,
|
|
3976
|
+
output: 6e-7
|
|
3977
|
+
},
|
|
3978
|
+
"grok-4.20-0309-non-reasoning": {
|
|
3979
|
+
provider: "xai",
|
|
3980
|
+
input: 125e-8,
|
|
3981
|
+
cachedInput: 2.0000000000000002e-7,
|
|
3982
|
+
cacheWrite: 125e-8,
|
|
3983
|
+
output: 25e-7
|
|
3984
|
+
},
|
|
3985
|
+
"grok-4.20-0309-reasoning": {
|
|
3986
|
+
provider: "xai",
|
|
3987
|
+
input: 125e-8,
|
|
3988
|
+
cachedInput: 2.0000000000000002e-7,
|
|
3989
|
+
cacheWrite: 125e-8,
|
|
3990
|
+
output: 25e-7
|
|
3991
|
+
},
|
|
3992
|
+
"grok-4.20-multi-agent-0309": {
|
|
3993
|
+
provider: "xai",
|
|
3994
|
+
input: 125e-8,
|
|
3995
|
+
cachedInput: 2.0000000000000002e-7,
|
|
3996
|
+
cacheWrite: 125e-8,
|
|
3997
|
+
output: 25e-7
|
|
3998
|
+
},
|
|
3999
|
+
"grok-4.3": {
|
|
4000
|
+
provider: "xai",
|
|
4001
|
+
input: 125e-8,
|
|
4002
|
+
cachedInput: 2.0000000000000002e-7,
|
|
4003
|
+
cacheWrite: 125e-8,
|
|
4004
|
+
output: 25e-7
|
|
4005
|
+
},
|
|
4006
|
+
"grok-4.5": {
|
|
4007
|
+
provider: "xai",
|
|
4008
|
+
input: 2e-6,
|
|
4009
|
+
cachedInput: 3e-7,
|
|
4010
|
+
cacheWrite: 2e-6,
|
|
4011
|
+
output: 6e-6
|
|
4012
|
+
},
|
|
4013
|
+
"grok-4.6": {
|
|
4014
|
+
provider: "xai",
|
|
4015
|
+
input: 2e-6,
|
|
4016
|
+
cachedInput: 5e-7,
|
|
4017
|
+
cacheWrite: 2e-6,
|
|
4018
|
+
output: 6e-6
|
|
4019
|
+
},
|
|
4020
|
+
"grok-4.7": {
|
|
4021
|
+
provider: "xai",
|
|
4022
|
+
input: 2e-6,
|
|
4023
|
+
cachedInput: 5e-7,
|
|
4024
|
+
cacheWrite: 2e-6,
|
|
4025
|
+
output: 6e-6
|
|
4026
|
+
},
|
|
4027
|
+
"grok-build-0.1": {
|
|
4028
|
+
provider: "xai",
|
|
4029
|
+
input: 1e-6,
|
|
4030
|
+
cachedInput: 2.0000000000000002e-7,
|
|
4031
|
+
cacheWrite: 1e-6,
|
|
4032
|
+
output: 2e-6
|
|
4033
|
+
},
|
|
4034
|
+
k3: {
|
|
4035
|
+
provider: "moonshot",
|
|
3797
4036
|
input: 3e-6,
|
|
3798
4037
|
cachedInput: 3e-7,
|
|
3799
|
-
cacheWrite:
|
|
4038
|
+
cacheWrite: null,
|
|
4039
|
+
output: 15e-6
|
|
4040
|
+
},
|
|
4041
|
+
"k3.1-pro": {
|
|
4042
|
+
provider: "moonshot",
|
|
4043
|
+
input: 2e-6,
|
|
4044
|
+
cachedInput: 2.0000000000000002e-7,
|
|
4045
|
+
cacheWrite: null,
|
|
4046
|
+
output: 1e-5
|
|
4047
|
+
},
|
|
4048
|
+
"kimi-k3": {
|
|
4049
|
+
provider: "moonshot",
|
|
4050
|
+
input: 3e-6,
|
|
4051
|
+
cachedInput: 3e-7,
|
|
4052
|
+
cacheWrite: null,
|
|
3800
4053
|
output: 15e-6
|
|
3801
4054
|
},
|
|
4055
|
+
"kimi-k3-fast": {
|
|
4056
|
+
provider: "fireworks",
|
|
4057
|
+
input: 45e-7,
|
|
4058
|
+
cachedInput: 45e-8,
|
|
4059
|
+
cacheWrite: null,
|
|
4060
|
+
output: 225e-7
|
|
4061
|
+
},
|
|
4062
|
+
"kimi-k3.1-pro": {
|
|
4063
|
+
provider: "moonshot",
|
|
4064
|
+
input: 2e-6,
|
|
4065
|
+
cachedInput: 2.0000000000000002e-7,
|
|
4066
|
+
cacheWrite: null,
|
|
4067
|
+
output: 1e-5
|
|
4068
|
+
},
|
|
4069
|
+
"kimi-k3.1-pro-highspeed": {
|
|
4070
|
+
provider: "moonshot",
|
|
4071
|
+
input: 4e-6,
|
|
4072
|
+
cachedInput: 2.0000000000000002e-7,
|
|
4073
|
+
cacheWrite: null,
|
|
4074
|
+
output: 2e-5
|
|
4075
|
+
},
|
|
3802
4076
|
"labs-leanstral-1-5": {
|
|
3803
4077
|
provider: "mistral",
|
|
3804
4078
|
input: 0,
|
|
@@ -3827,6 +4101,20 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3827
4101
|
cacheWrite: null,
|
|
3828
4102
|
output: 4e-8
|
|
3829
4103
|
},
|
|
4104
|
+
"meta-models/Muse-Spark-Open-816B-A42B": {
|
|
4105
|
+
provider: "together",
|
|
4106
|
+
input: 125e-8,
|
|
4107
|
+
cachedInput: 15e-8,
|
|
4108
|
+
cacheWrite: 125e-8,
|
|
4109
|
+
output: 425e-8
|
|
4110
|
+
},
|
|
4111
|
+
"minimax-m3": {
|
|
4112
|
+
provider: "fireworks",
|
|
4113
|
+
input: 3e-7,
|
|
4114
|
+
cachedInput: 6e-8,
|
|
4115
|
+
cacheWrite: null,
|
|
4116
|
+
output: 12e-7
|
|
4117
|
+
},
|
|
3830
4118
|
"MiniMax-M3": {
|
|
3831
4119
|
provider: "sambanova",
|
|
3832
4120
|
input: 6e-7,
|
|
@@ -3834,6 +4122,27 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3834
4122
|
cacheWrite: null,
|
|
3835
4123
|
output: 24e-7
|
|
3836
4124
|
},
|
|
4125
|
+
"minimax-m3p1-flash": {
|
|
4126
|
+
provider: "fireworks",
|
|
4127
|
+
input: 15e-8,
|
|
4128
|
+
cachedInput: 15e-9,
|
|
4129
|
+
cacheWrite: null,
|
|
4130
|
+
output: 6e-7
|
|
4131
|
+
},
|
|
4132
|
+
"mistral-large-4": {
|
|
4133
|
+
provider: "mistral",
|
|
4134
|
+
input: 7e-7,
|
|
4135
|
+
cachedInput: 7e-8,
|
|
4136
|
+
cacheWrite: null,
|
|
4137
|
+
output: 21e-7
|
|
4138
|
+
},
|
|
4139
|
+
"mistral-large-4-0": {
|
|
4140
|
+
provider: "mistral",
|
|
4141
|
+
input: 7e-7,
|
|
4142
|
+
cachedInput: 7e-8,
|
|
4143
|
+
cacheWrite: 7e-7,
|
|
4144
|
+
output: 21000000000000002e-22
|
|
4145
|
+
},
|
|
3837
4146
|
"mistral-medium-3": {
|
|
3838
4147
|
provider: "mistral",
|
|
3839
4148
|
input: 15e-7,
|
|
@@ -3862,6 +4171,27 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3862
4171
|
cacheWrite: 3e-6,
|
|
3863
4172
|
output: 15e-6
|
|
3864
4173
|
},
|
|
4174
|
+
"nemotron-3-ultra-nvfp4": {
|
|
4175
|
+
provider: "fireworks",
|
|
4176
|
+
input: 6e-7,
|
|
4177
|
+
cachedInput: 12e-8,
|
|
4178
|
+
cacheWrite: null,
|
|
4179
|
+
output: 24e-7
|
|
4180
|
+
},
|
|
4181
|
+
"nemotron-lightning-3p5-30b-a3b": {
|
|
4182
|
+
provider: "fireworks",
|
|
4183
|
+
input: 5e-8,
|
|
4184
|
+
cachedInput: 1e-8,
|
|
4185
|
+
cacheWrite: null,
|
|
4186
|
+
output: 2e-7
|
|
4187
|
+
},
|
|
4188
|
+
"nvidia/NVIDIA-Nemotron-3.5-Super-VL": {
|
|
4189
|
+
provider: "together",
|
|
4190
|
+
input: 15e-8,
|
|
4191
|
+
cachedInput: 2e-8,
|
|
4192
|
+
cacheWrite: 15e-8,
|
|
4193
|
+
output: 5e-7
|
|
4194
|
+
},
|
|
3865
4195
|
"openai/gpt-oss-120b": {
|
|
3866
4196
|
provider: "groq",
|
|
3867
4197
|
input: 15e-8,
|
|
@@ -3890,6 +4220,20 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3890
4220
|
cacheWrite: 99e-8,
|
|
3891
4221
|
output: 149e-8
|
|
3892
4222
|
},
|
|
4223
|
+
"qwen/qwen3.7-max": {
|
|
4224
|
+
provider: "together",
|
|
4225
|
+
input: 25e-7,
|
|
4226
|
+
cachedInput: 5e-7,
|
|
4227
|
+
cacheWrite: 25e-7,
|
|
4228
|
+
output: 75e-7
|
|
4229
|
+
},
|
|
4230
|
+
"qwen/qwen3.7-plus": {
|
|
4231
|
+
provider: "together",
|
|
4232
|
+
input: 32e-8,
|
|
4233
|
+
cachedInput: 32e-8,
|
|
4234
|
+
cacheWrite: 32e-8,
|
|
4235
|
+
output: 128e-8
|
|
4236
|
+
},
|
|
3893
4237
|
"qwen/qwen3.8-27b": {
|
|
3894
4238
|
provider: "groq",
|
|
3895
4239
|
input: 8e-7,
|
|
@@ -3897,6 +4241,111 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3897
4241
|
cacheWrite: 8e-7,
|
|
3898
4242
|
output: 4e-6
|
|
3899
4243
|
},
|
|
4244
|
+
"qwen/qwen3.8-flash": {
|
|
4245
|
+
provider: "together",
|
|
4246
|
+
input: 15e-8,
|
|
4247
|
+
cachedInput: 15e-8,
|
|
4248
|
+
cacheWrite: 15e-8,
|
|
4249
|
+
output: 4.6999999999999995e-7
|
|
4250
|
+
},
|
|
4251
|
+
"ricursive-ai/Ripple-65B-Preview": {
|
|
4252
|
+
provider: "together",
|
|
4253
|
+
input: 2.0000000000000002e-7,
|
|
4254
|
+
cachedInput: 2e-8,
|
|
4255
|
+
cacheWrite: 2.0000000000000002e-7,
|
|
4256
|
+
output: 6e-7
|
|
4257
|
+
},
|
|
4258
|
+
"together/deepseek-ai/DeepSeek-V4.1-Flash-1017": {
|
|
4259
|
+
provider: "together",
|
|
4260
|
+
input: 3e-7,
|
|
4261
|
+
cachedInput: 6e-9,
|
|
4262
|
+
cacheWrite: 3e-7,
|
|
4263
|
+
output: 12e-7
|
|
4264
|
+
},
|
|
4265
|
+
"together/deepseek-ai/DeepSeek-V4.1-Flash-1017-fast": {
|
|
4266
|
+
provider: "together",
|
|
4267
|
+
input: 6e-7,
|
|
4268
|
+
cachedInput: 12e-9,
|
|
4269
|
+
cacheWrite: 6e-7,
|
|
4270
|
+
output: 24e-7
|
|
4271
|
+
},
|
|
4272
|
+
"together/meta-models/Muse-Glimmer-30B": {
|
|
4273
|
+
provider: "together",
|
|
4274
|
+
input: 35e-8,
|
|
4275
|
+
cachedInput: 4e-8,
|
|
4276
|
+
cacheWrite: 35e-8,
|
|
4277
|
+
output: 15e-7
|
|
4278
|
+
},
|
|
4279
|
+
"together/MiniMaxAI/MiniMax-M3.1-Flash": {
|
|
4280
|
+
provider: "together",
|
|
4281
|
+
input: 15e-8,
|
|
4282
|
+
cachedInput: 15e-9,
|
|
4283
|
+
cacheWrite: 15e-8,
|
|
4284
|
+
output: 6e-7
|
|
4285
|
+
},
|
|
4286
|
+
"together/moonshotai/Kimi-K3.1-Pro": {
|
|
4287
|
+
provider: "together",
|
|
4288
|
+
input: 2e-6,
|
|
4289
|
+
cachedInput: 2.0000000000000002e-7,
|
|
4290
|
+
cacheWrite: 2e-6,
|
|
4291
|
+
output: 1e-5
|
|
4292
|
+
},
|
|
4293
|
+
"together/openai/gpt-oss-120b": {
|
|
4294
|
+
provider: "together",
|
|
4295
|
+
input: 15e-8,
|
|
4296
|
+
cachedInput: 15e-8,
|
|
4297
|
+
cacheWrite: 15e-8,
|
|
4298
|
+
output: 6e-7
|
|
4299
|
+
},
|
|
4300
|
+
"together/Qwen/Qwen3.5-9B": {
|
|
4301
|
+
provider: "together",
|
|
4302
|
+
input: 1.7000000000000001e-7,
|
|
4303
|
+
cachedInput: 1.7000000000000001e-7,
|
|
4304
|
+
cacheWrite: 1.7000000000000001e-7,
|
|
4305
|
+
output: 25e-8
|
|
4306
|
+
},
|
|
4307
|
+
"together/Qwen/Qwen3.6-Plus": {
|
|
4308
|
+
provider: "together",
|
|
4309
|
+
input: 5e-7,
|
|
4310
|
+
cachedInput: 5e-7,
|
|
4311
|
+
cacheWrite: 5e-7,
|
|
4312
|
+
output: 3e-6
|
|
4313
|
+
},
|
|
4314
|
+
"together/Qwen/Qwen4-Max": {
|
|
4315
|
+
provider: "together",
|
|
4316
|
+
input: 15e-7,
|
|
4317
|
+
cachedInput: 75e-9,
|
|
4318
|
+
cacheWrite: 15e-7,
|
|
4319
|
+
output: 45e-7
|
|
4320
|
+
},
|
|
4321
|
+
"together/reflection/Beam-1.0-501B-A23B": {
|
|
4322
|
+
provider: "together",
|
|
4323
|
+
input: 4.0000000000000003e-7,
|
|
4324
|
+
cachedInput: 4e-8,
|
|
4325
|
+
cacheWrite: 4.0000000000000003e-7,
|
|
4326
|
+
output: 12e-7
|
|
4327
|
+
},
|
|
4328
|
+
"together/tencent/Hy4": {
|
|
4329
|
+
provider: "together",
|
|
4330
|
+
input: 834e-9,
|
|
4331
|
+
cachedInput: 4.2000000000000006e-8,
|
|
4332
|
+
cacheWrite: 834e-9,
|
|
4333
|
+
output: 2501e-9
|
|
4334
|
+
},
|
|
4335
|
+
"together/thinkingmachines/Inkling-2-Small": {
|
|
4336
|
+
provider: "together",
|
|
4337
|
+
input: 3e-7,
|
|
4338
|
+
cachedInput: 3e-8,
|
|
4339
|
+
cacheWrite: 3e-7,
|
|
4340
|
+
output: 1e-6
|
|
4341
|
+
},
|
|
4342
|
+
"together/zai-org/GLM-5.2": {
|
|
4343
|
+
provider: "together",
|
|
4344
|
+
input: 14e-7,
|
|
4345
|
+
cachedInput: 26e-8,
|
|
4346
|
+
cacheWrite: 14e-7,
|
|
4347
|
+
output: 44e-7
|
|
4348
|
+
},
|
|
3900
4349
|
"voxtral-small-2507": {
|
|
3901
4350
|
provider: "mistral",
|
|
3902
4351
|
input: 1e-7,
|
|
@@ -3924,6 +4373,20 @@ const ROUTER_TOKEN_PRICES = {
|
|
|
3924
4373
|
cachedInput: 26e-8,
|
|
3925
4374
|
cacheWrite: 14e-7,
|
|
3926
4375
|
output: 44e-7
|
|
4376
|
+
},
|
|
4377
|
+
"zai-org/GLM-5.3-Flash": {
|
|
4378
|
+
provider: "together",
|
|
4379
|
+
input: 15e-8,
|
|
4380
|
+
cachedInput: 3e-8,
|
|
4381
|
+
cacheWrite: 15e-8,
|
|
4382
|
+
output: 5e-7
|
|
4383
|
+
},
|
|
4384
|
+
"zro/glm-5.3-flash": {
|
|
4385
|
+
provider: "moonmath",
|
|
4386
|
+
input: 15e-8,
|
|
4387
|
+
cachedInput: 4e-8,
|
|
4388
|
+
cacheWrite: 15e-8,
|
|
4389
|
+
output: 5e-7
|
|
3927
4390
|
}
|
|
3928
4391
|
};
|
|
3929
4392
|
// src/pricing/router-prices.ts
|
|
@@ -15459,7 +15922,7 @@ function guardRunPersistence(journal, blobs, interrupt) {
|
|
|
15459
15922
|
/** Read every caller-owned field once, then detach and freeze all decision data before the first
|
|
15460
15923
|
* await; stateful collaborators stay live by reference, but later opts mutation cannot redirect the run. */
|
|
15461
15924
|
function admitSupervisorRun(task, opts) {
|
|
15462
|
-
const { budget, rootIdentity, requestedProfile, rootSegment, rootMaterialization, runId, journal: journalStore, blobs: blobStore, executors: executorRegistry, recoverExecutor, maxDepth, workerSlots, reservationPolicy, deadlineCheckIn, budgetStopHoldMs, maxRestarts, withinMs, childSettleGraceMs, teardownConfirmMs, resume, retainedAtSettlement: requestedRetainedAtSettlement, now: suppliedNow, signal, hooks, workerTrace, workerTraceUnpropagated, interactiveBindingDir } = opts;
|
|
15925
|
+
const { budget, rootIdentity, requestedProfile, rootSegment, rootMaterialization, runId, journal: journalStore, blobs: blobStore, executors: executorRegistry, recoverExecutor, maxDepth, workerSlots, reservationPolicy, deadlineCheckIn, budgetStopHoldMs, maxRestarts, withinMs, childSettleGraceMs, teardownConfirmMs, resume, retainedAtSettlement: requestedRetainedAtSettlement, retainRestorePoint, now: suppliedNow, signal, hooks, workerTrace, workerTraceUnpropagated, interactiveBindingDir } = opts;
|
|
15463
15926
|
const input = detachedSnapshot({
|
|
15464
15927
|
task,
|
|
15465
15928
|
options: {
|
|
@@ -15478,6 +15941,7 @@ function admitSupervisorRun(task, opts) {
|
|
|
15478
15941
|
...teardownConfirmMs === void 0 ? {} : { teardownConfirmMs },
|
|
15479
15942
|
...resume === void 0 ? {} : { resume },
|
|
15480
15943
|
...requestedRetainedAtSettlement === void 0 ? {} : { retainedAtSettlement: requestedRetainedAtSettlement },
|
|
15944
|
+
...retainRestorePoint === void 0 ? {} : { retainRestorePoint },
|
|
15481
15945
|
...interactiveBindingDir === void 0 ? {} : { interactiveBindingDir }
|
|
15482
15946
|
}
|
|
15483
15947
|
}, "supervisor.run");
|
|
@@ -15485,6 +15949,7 @@ function admitSupervisorRun(task, opts) {
|
|
|
15485
15949
|
const slots = resolveWorkerSlots(workerSlots);
|
|
15486
15950
|
if (teardownConfirmMs !== void 0 && (typeof teardownConfirmMs !== "number" || !Number.isFinite(teardownConfirmMs) || teardownConfirmMs < 0)) throw new ValidationError$1(`supervisor: teardownConfirmMs must be a nonnegative finite number of milliseconds, got ${JSON.stringify(teardownConfirmMs)}`);
|
|
15487
15951
|
if (requestedRetainedAtSettlement !== void 0 && requestedRetainedAtSettlement !== "release" && requestedRetainedAtSettlement !== "keep") throw new ValidationError$1(`supervisor: retainedAtSettlement must be 'release' or 'keep', got ${JSON.stringify(requestedRetainedAtSettlement)}`);
|
|
15952
|
+
if (retainRestorePoint !== void 0 && typeof retainRestorePoint !== "boolean") throw new ValidationError$1(`supervisor: retainRestorePoint must be a boolean, got ${JSON.stringify(retainRestorePoint)}`);
|
|
15488
15953
|
const controller = new AbortController();
|
|
15489
15954
|
const persistence = guardRunPersistence(journalStore, blobStore, (error) => {
|
|
15490
15955
|
controller.abort(error);
|
|
@@ -15525,6 +15990,7 @@ async function joinRunChildren(join, settleGraceMs) {
|
|
|
15525
15990
|
await releaseHeldEnvironments(scope);
|
|
15526
15991
|
join.teardownUnconfirmed = unconfirmedTeardowns(scope);
|
|
15527
15992
|
const releasing = !persistence.failed && join.retainedAtSettlement === "release";
|
|
15993
|
+
if (releasing && join.opts.retainRestorePoint === true) keepScopeRetainedOwnerRestorePoint(scope);
|
|
15528
15994
|
const clock = { windowMs: Math.max(join.opts.teardownConfirmMs ?? 0, RELEASE_DESTROY_MS) };
|
|
15529
15995
|
if (releasing) boundRetainedReleases(scope, clock);
|
|
15530
15996
|
await Promise.all([settleManagerWork(scope), releasing ? releaseRetainedEnvironments(scope) : void 0]);
|
|
@@ -16070,4 +16536,4 @@ async function noWinner(settled, rejection) {
|
|
|
16070
16536
|
}
|
|
16071
16537
|
export { failPendingAfter as $, readPromptOptions as A, defineProfileMaterializationContract as At, toolResultText as B, projectSandboxOutcome as Bt, captureReusableExecutorConfig as C, runWorktreeHarness as Ct, createSteerableSandboxSession as D, assertProfileMaterialization as Dt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as E, terminateProcessTreeAndConfirm as Et, defaultSelectWinner as F, renderUnsupported as Ft, providerAsExecutor as G, routerBrain as H, codeModeArguments as I, sandboxActProfileMaterialization as It, providerAsSandboxClient as J, providerOutputOptions as K, codeModeModelOutput as L, sandboxProfileMaterialization as Lt, createSandboxLineage as M, profileMaterializationAxes$1 as Mt, acquireSandbox as N, promptControlProfileMaterialization as Nt, runAgentRounds as O, assertProfileMaterializes as Ot, TERMINAL_DECISIONS as P, promptModelProfileMaterialization as Pt, createInbox as Q, createCodeModeTools as R, unsupportedProfileDimensions as Rt, bindReusableExecutorExecutionId as S, runSettledCommand as St, snapshotExecutorConfig as T, harnessInvocation as Tt, createAgentEnvironmentProviderRegistry as U, createRouterTranscript as V, readSandboxOutcome as Vt, resolveAgentEnvironmentProvider as W, createInPlaceCliExecutor as X, createWorktreeCliExecutor as Y, INBOX_RECEIPT_KEY as Z, isDriverSpec as _, createPushTraceSource as _t, awaitRootWake as a, isPeerMailEnvelope as at, InMemorySpawnJournal as b, bridgeStopSignalKey as bt, readRunParking as c, taskToPrompt$1 as ct, bestDelivered as d, priceTokens as dt, AUTHORITY_MARKERS as et, runFinalizer as f, ROUTER_PRICE_SOURCE as ft, driverExecutorFactory as g, readCodexRolloutSession as gt, driverChild as h, harnessUsageIsEmpty as ht, assertRunParking as i, createPeerMailbox as it, createSandboxForSpec as j, fullProfileMaterialization as jt, assertBoxlessPromptOptions as k, controlProfileMaterialization as kt, sleepScopeWait as l, bridgeAdmissionRefusal as lt, createRootHandle as m, createCodexRolloutStoreReader as mt, createSupervisor as n, PEER_MAIL_WIRE_KEY as nt, bindScopeParkingDrain as o, peerMailTools as ot, runTree as p, addHarnessUsage as pt, LEAF_CONTINUATION_TASK as q, RunParkedError as r, claimsAuthority as rt, isRunParked as s, peerMailVerbNames as st, DEFAULT_MAX_DEPTH as t, DEFAULT_PEER_MAIL_LIMITS as tt, withRunParking as u, bridgeModelRouteRefusal as ut, withDriverExecutor as v, bridgeRuntimeAttachmentsKey as vt, createExecutor as w, LOCAL_HARNESSES as wt, createExecutorRegistry as x, defaultRunCommand as xt, InMemoryResultBlobStore as y, bridgeRuntimeEnvKey as yt, runCodeMode as z, worktreeCliProfileMaterialization as zt };
|
|
16072
16538
|
|
|
16073
|
-
//# sourceMappingURL=supervisor-
|
|
16539
|
+
//# sourceMappingURL=supervisor-BQwg_3T0.js.map
|