@vtxmacro/cli 2026.10.49 → 2026.10.50
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/bin/exo-harness.ts +19 -1
- package/bin/vtx-mcp.js +362 -32
- package/bin/vtx-service-bootstrap.js +20 -2
- package/bin/vtx-service-launcher.js +19 -1
- package/bin/vtx.js +3576 -1100
- package/package.json +1 -1
package/bin/exo-harness.ts
CHANGED
|
@@ -38,6 +38,11 @@ var HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE = {
|
|
|
38
38
|
"userNonFundingLedgerUpdates"
|
|
39
39
|
]
|
|
40
40
|
};
|
|
41
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE = {
|
|
42
|
+
"base_weight": 20,
|
|
43
|
+
"rows_per_extra_weight": 60,
|
|
44
|
+
"max_rows": 5e3
|
|
45
|
+
};
|
|
41
46
|
var PROVIDER_OUT_OF_CREDIT = {
|
|
42
47
|
"payment_required_status": 402,
|
|
43
48
|
"error_codes": [
|
|
@@ -123,7 +128,11 @@ var SECONDS_PER_AI_COST_ESTIMATE_PERIOD = SECONDS_PER_DAY * AI_COST_ESTIMATE_PER
|
|
|
123
128
|
var INFERENCE_HOST_MODEL_ID_MAX_CHARS = 256;
|
|
124
129
|
var RETRY_AFTER_HEADER_MAX_CHARS = 128;
|
|
125
130
|
var EXO_POLICY_MAX_TOOL_ROUNDS = 64;
|
|
131
|
+
var UINT32_RANGE = 2 ** 32;
|
|
126
132
|
var HYPERLIQUID_TIF_GTC = HYPERLIQUID_EXCHANGE_SPECIFICATION.good_til_cancelled_time_in_force;
|
|
133
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_BASE_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.base_weight;
|
|
134
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_ROWS_PER_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.rows_per_extra_weight;
|
|
135
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_MAX_ROWS = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.max_rows;
|
|
127
136
|
var HYPERLIQUID_ROW_WEIGHTED_INFO_REQUESTS = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.request_types;
|
|
128
137
|
var HYPERLIQUID_ROW_WEIGHTED_INFO_BASE_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.base_weight;
|
|
129
138
|
var HYPERLIQUID_INFO_ROWS_PER_EXTRA_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.rows_per_extra_weight;
|
|
@@ -833,6 +842,11 @@ var runtime_policy_generated_default = {
|
|
|
833
842
|
trading: {
|
|
834
843
|
engine: {
|
|
835
844
|
client_runtime: {
|
|
845
|
+
candle_series: {
|
|
846
|
+
full_refresh_seconds: 600,
|
|
847
|
+
overlap_candles: 2,
|
|
848
|
+
delta_max_candles: 60
|
|
849
|
+
},
|
|
836
850
|
reconcile: {
|
|
837
851
|
tick_interval_seconds: 30,
|
|
838
852
|
wake_jitter_max_ms: 1e3,
|
|
@@ -877,7 +891,8 @@ var runtime_policy_generated_default = {
|
|
|
877
891
|
},
|
|
878
892
|
panel_reads: {
|
|
879
893
|
device_open_orders_reuse_seconds: 2,
|
|
880
|
-
all_view_profile_concurrency: 2
|
|
894
|
+
all_view_profile_concurrency: 2,
|
|
895
|
+
display_account_fresh_seconds: 60
|
|
881
896
|
},
|
|
882
897
|
account_stream: {
|
|
883
898
|
fill_forward_interval_ms: 1e3,
|
|
@@ -1243,6 +1258,8 @@ var runtime_policy_generated_default = {
|
|
|
1243
1258
|
reserve_margin_weight: 40,
|
|
1244
1259
|
demand_bucket_seconds: 60,
|
|
1245
1260
|
demand_horizon_seconds: 3600,
|
|
1261
|
+
rescue_quiet_release_minutes: 5,
|
|
1262
|
+
rescue_quiet_release_gap_multiplier: 2,
|
|
1246
1263
|
capacity_cut_percent: 70,
|
|
1247
1264
|
capacity_min_weight: 240,
|
|
1248
1265
|
capacity_recovery_weight_per_minute: 120,
|
|
@@ -1342,6 +1359,7 @@ var runtime_policy_generated_default = {
|
|
|
1342
1359
|
}
|
|
1343
1360
|
},
|
|
1344
1361
|
cache: {
|
|
1362
|
+
available_assets_ttl_seconds: 300,
|
|
1345
1363
|
order_history_ttl_seconds: 30,
|
|
1346
1364
|
twap_history_ttl_seconds: 30,
|
|
1347
1365
|
twap_fills_ttl_seconds: 30,
|
package/bin/vtx-mcp.js
CHANGED
|
@@ -43,12 +43,12 @@ var init_define_VTX_PI_MODEL_POLICY = __esm({
|
|
|
43
43
|
var agent_cli_release_default;
|
|
44
44
|
var init_agent_cli_release = __esm({
|
|
45
45
|
"agent-cli-release.json"() {
|
|
46
|
-
agent_cli_release_default = { package_name: "@vtxmacro/cli", package_version: "2026.10.
|
|
46
|
+
agent_cli_release_default = { package_name: "@vtxmacro/cli", package_version: "2026.10.50", codex_package_name: "@openai/codex", codex_version: "0.155.0", copilot_sdk_package_name: "@github/copilot-sdk", copilot_sdk_version: "1.0.0-beta.8", copilot_cli_package_name: "@github/copilot", copilot_cli_version: "1.0.80", deepseek_harness_version: "0.1.1-rc.2", deepseek_harness_packages: ["@deepseek-ai/dsh-agent", "@deepseek-ai/dsh-agent-instructions", "@deepseek-ai/dsh-agent-loop", "@deepseek-ai/dsh-agent-spine-demo", "@deepseek-ai/dsh-anonymous-user-id", "@deepseek-ai/dsh-atomic-write", "@deepseek-ai/dsh-attachment", "@deepseek-ai/dsh-brand", "@deepseek-ai/dsh-code-runtime", "@deepseek-ai/dsh-credentials", "@deepseek-ai/dsh-fs", "@deepseek-ai/dsh-goal", "@deepseek-ai/dsh-goal-round-driver", "@deepseek-ai/dsh-home-paths", "@deepseek-ai/dsh-invariants", "@deepseek-ai/dsh-jobs", "@deepseek-ai/dsh-jobs-local", "@deepseek-ai/dsh-launch-environment", "@deepseek-ai/dsh-llm", "@deepseek-ai/dsh-llm-deepseek", "@deepseek-ai/dsh-llm-retry", "@deepseek-ai/dsh-output-retention", "@deepseek-ai/dsh-sandbox", "@deepseek-ai/dsh-sandbox-policy", "@deepseek-ai/dsh-scope", "@deepseek-ai/dsh-session", "@deepseek-ai/dsh-session-checkpoint-policy", "@deepseek-ai/dsh-session-persistence", "@deepseek-ai/dsh-session-persistence-jsonl", "@deepseek-ai/dsh-session-projection", "@deepseek-ai/dsh-session-title", "@deepseek-ai/dsh-settings", "@deepseek-ai/dsh-shell", "@deepseek-ai/dsh-shell-env", "@deepseek-ai/dsh-skill", "@deepseek-ai/dsh-skill-filesystem", "@deepseek-ai/dsh-subprocess", "@deepseek-ai/dsh-system-prompt", "@deepseek-ai/dsh-timeout", "@deepseek-ai/dsh-tool-bash", "@deepseek-ai/dsh-tool-goal", "@deepseek-ai/dsh-tool-jobs", "@deepseek-ai/dsh-tool-skill", "@deepseek-ai/dsh-tools", "@deepseek-ai/dsh-typert-protocol", "@deepseek-ai/dsh-user-approval"], deepseek_cordis_package_name: "@deepseek-ai/cordis", deepseek_cordis_version: "4.0.1", deepseek_support_packages: { "@deepseek-ai/cordis-plugin-timer": "1.1.3" }, platforms: { "linux-x64": { package_name: "@openai/codex-linux-x64", target: "x86_64-unknown-linux-musl", binary_name: "codex", sha256: "660e159a49e823ac8e5986cb238f73158ce4b957d40d9292f8de90862644b501" }, "win32-x64": { package_name: "@openai/codex-win32-x64", target: "x86_64-pc-windows-msvc", binary_name: "codex.exe", sha256: "e4c11374bd9de8ad5c3b7617fd4654bb7839901edb0863f9930666863c7a021b" } }, pi_coding_agent_package_name: "@earendil-works/pi-coding-agent", pi_ai_package_name: "@earendil-works/pi-ai", pi_version: "0.85.1", pi_support_packages: ["@earendil-works/pi-agent-core", "@earendil-works/pi-telemetry", "@earendil-works/pi-tui", "@earendil-works/chord"], grok_version: "1.0.30", grok_platforms: { "linux-x64": { package_name: "@xai-official/grok-linux-x64", binary_name: "grok", sha256: "504dd6546ab991b75d36698242875ce461489cd1f8cd84285873cb55bd5c7d54" }, "win32-x64": { package_name: "@xai-official/grok-win32-x64", binary_name: "grok.exe", sha256: "48736d1a4342a801ea26d0ecde4c516b653f791399065adaa55973f83abd8867" } } };
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
// lib/shared-contracts.generated.ts
|
|
51
|
-
var AI_SNAPSHOT_WIRE_FORMAT, HYPERLIQUID_EXCHANGE_SPECIFICATION, HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE, ERROR_REDACTION_RULES;
|
|
51
|
+
var AI_SNAPSHOT_WIRE_FORMAT, BYOK_PROVIDER_REGISTRY, HYPERLIQUID_EXCHANGE_SPECIFICATION, HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE, HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE, ERROR_REDACTION_RULES;
|
|
52
52
|
var init_shared_contracts_generated = __esm({
|
|
53
53
|
"lib/shared-contracts.generated.ts"() {
|
|
54
54
|
"use strict";
|
|
@@ -61,6 +61,342 @@ var init_shared_contracts_generated = __esm({
|
|
|
61
61
|
"packed_fields": 3,
|
|
62
62
|
"packed_entry_fields": 2
|
|
63
63
|
};
|
|
64
|
+
BYOK_PROVIDER_REGISTRY = {
|
|
65
|
+
"uiGroup": "byok",
|
|
66
|
+
"providers": [
|
|
67
|
+
{
|
|
68
|
+
"key": "alibaba_cloud_model_studio",
|
|
69
|
+
"runtimeProvider": "alibaba_cloud_model_studio",
|
|
70
|
+
"displayName": "Alibaba Cloud Model Studio",
|
|
71
|
+
"apiKeyField": "alibaba_cloud_model_studio_api_key",
|
|
72
|
+
"envKey": "ALIBABA_CLOUD_MODEL_STUDIO_API_KEY",
|
|
73
|
+
"baseUrl": "https://dashscope-us.aliyuncs.com/compatible-mode/v1",
|
|
74
|
+
"modelsUrl": "https://dashscope-us.aliyuncs.com/compatible-mode/v1/models",
|
|
75
|
+
"requestContractStrategy": "extra_body_enable_thinking",
|
|
76
|
+
"clientRuntimeSupported": true,
|
|
77
|
+
"uiGroup": "byok",
|
|
78
|
+
"providerKind": "direct",
|
|
79
|
+
"displayOrder": 10,
|
|
80
|
+
"aliases": [
|
|
81
|
+
"alibaba",
|
|
82
|
+
"alibaba cloud",
|
|
83
|
+
"dashscope",
|
|
84
|
+
"model studio"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"key": "amazon_bedrock",
|
|
89
|
+
"runtimeProvider": "amazon_bedrock",
|
|
90
|
+
"displayName": "Amazon Bedrock",
|
|
91
|
+
"apiKeyField": "amazon_bedrock_api_key",
|
|
92
|
+
"envKey": "AMAZON_API_KEY",
|
|
93
|
+
"baseUrl": "https://bedrock-mantle.us-east-1.api.aws/v1",
|
|
94
|
+
"modelsUrl": "https://bedrock-mantle.us-east-1.api.aws/v1/models",
|
|
95
|
+
"requestContractStrategy": "top_level_reasoning_effort",
|
|
96
|
+
"clientRuntimeSupported": true,
|
|
97
|
+
"uiGroup": "byok",
|
|
98
|
+
"providerKind": "hosted",
|
|
99
|
+
"displayOrder": 20,
|
|
100
|
+
"aliases": [
|
|
101
|
+
"amazon",
|
|
102
|
+
"aws",
|
|
103
|
+
"aws bedrock",
|
|
104
|
+
"bedrock"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"key": "anthropic",
|
|
109
|
+
"runtimeProvider": "anthropic",
|
|
110
|
+
"displayName": "Anthropic",
|
|
111
|
+
"apiKeyField": "anthropic_api_key",
|
|
112
|
+
"envKey": "ANTHROPIC_API_KEY",
|
|
113
|
+
"baseUrl": null,
|
|
114
|
+
"modelsUrl": null,
|
|
115
|
+
"requestContractStrategy": "native",
|
|
116
|
+
"clientRuntimeSupported": true,
|
|
117
|
+
"uiGroup": "byok",
|
|
118
|
+
"providerKind": "direct",
|
|
119
|
+
"displayOrder": 30,
|
|
120
|
+
"aliases": [
|
|
121
|
+
"claude"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"key": "byteplus",
|
|
126
|
+
"runtimeProvider": "byteplus",
|
|
127
|
+
"displayName": "BytePlus",
|
|
128
|
+
"apiKeyField": "byteplus_api_key",
|
|
129
|
+
"envKey": "BYTEPLUS_API_KEY",
|
|
130
|
+
"baseUrl": "https://ark.ap-southeast.bytepluses.com/api/coding/v3",
|
|
131
|
+
"modelsUrl": "https://ark.ap-southeast.bytepluses.com/api/coding/v3/models",
|
|
132
|
+
"requestContractStrategy": "extra_body_thinking_type",
|
|
133
|
+
"clientRuntimeSupported": true,
|
|
134
|
+
"uiGroup": "byok",
|
|
135
|
+
"providerKind": "hosted",
|
|
136
|
+
"displayOrder": 40,
|
|
137
|
+
"aliases": [
|
|
138
|
+
"bytedance",
|
|
139
|
+
"byteplus coding plan",
|
|
140
|
+
"ark"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"key": "cerebras",
|
|
145
|
+
"runtimeProvider": "cerebras",
|
|
146
|
+
"displayName": "Cerebras",
|
|
147
|
+
"apiKeyField": "cerebras_api_key",
|
|
148
|
+
"envKey": "CEREBRAS_API_KEY",
|
|
149
|
+
"baseUrl": "https://api.cerebras.ai/v1",
|
|
150
|
+
"modelsUrl": "https://api.cerebras.ai/v1/models",
|
|
151
|
+
"requestContractStrategy": "top_level_reasoning_effort_and_extra_body_disable_reasoning",
|
|
152
|
+
"clientRuntimeSupported": true,
|
|
153
|
+
"uiGroup": "byok",
|
|
154
|
+
"providerKind": "hosted",
|
|
155
|
+
"displayOrder": 50,
|
|
156
|
+
"aliases": []
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"key": "deepseek",
|
|
160
|
+
"runtimeProvider": "deepseek",
|
|
161
|
+
"displayName": "DeepSeek",
|
|
162
|
+
"apiKeyField": "deepseek_api_key",
|
|
163
|
+
"envKey": "DEEPSEEK_API_KEY",
|
|
164
|
+
"baseUrl": "https://api.deepseek.com",
|
|
165
|
+
"modelsUrl": "https://api.deepseek.com/models",
|
|
166
|
+
"requestContractStrategy": "deepseek_extra_body",
|
|
167
|
+
"clientRuntimeSupported": true,
|
|
168
|
+
"uiGroup": "byok",
|
|
169
|
+
"providerKind": "direct",
|
|
170
|
+
"displayOrder": 60,
|
|
171
|
+
"aliases": [
|
|
172
|
+
"deep seek",
|
|
173
|
+
"deepseek ai",
|
|
174
|
+
"deepseek.ai"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"key": "fireworks",
|
|
179
|
+
"runtimeProvider": "fireworks",
|
|
180
|
+
"displayName": "Fireworks AI",
|
|
181
|
+
"apiKeyField": "fireworks_api_key",
|
|
182
|
+
"envKey": "FIREWORKS_API_KEY",
|
|
183
|
+
"baseUrl": "https://api.fireworks.ai/inference/v1",
|
|
184
|
+
"modelsUrl": "https://api.fireworks.ai/inference/v1/models",
|
|
185
|
+
"requestContractStrategy": "top_level_reasoning_effort_and_extra_body_thinking_type",
|
|
186
|
+
"clientRuntimeSupported": true,
|
|
187
|
+
"uiGroup": "byok",
|
|
188
|
+
"providerKind": "hosted",
|
|
189
|
+
"displayOrder": 70,
|
|
190
|
+
"aliases": [
|
|
191
|
+
"fireworks ai"
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"key": "google",
|
|
196
|
+
"runtimeProvider": "gemini",
|
|
197
|
+
"displayName": "Google Gemini",
|
|
198
|
+
"apiKeyField": "gemini_api_key",
|
|
199
|
+
"envKey": "GOOGLE_AI_PLATFORM_API_KEY",
|
|
200
|
+
"baseUrl": null,
|
|
201
|
+
"modelsUrl": null,
|
|
202
|
+
"requestContractStrategy": "native",
|
|
203
|
+
"clientRuntimeSupported": true,
|
|
204
|
+
"uiGroup": "byok",
|
|
205
|
+
"providerKind": "direct",
|
|
206
|
+
"displayOrder": 80,
|
|
207
|
+
"aliases": [
|
|
208
|
+
"gemini"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"key": "groq",
|
|
213
|
+
"runtimeProvider": "groq",
|
|
214
|
+
"displayName": "Groq",
|
|
215
|
+
"apiKeyField": "groq_api_key",
|
|
216
|
+
"envKey": "GROQ_API_KEY",
|
|
217
|
+
"baseUrl": "https://api.groq.com/openai/v1",
|
|
218
|
+
"modelsUrl": "https://api.groq.com/openai/v1/models",
|
|
219
|
+
"requestContractStrategy": "native",
|
|
220
|
+
"clientRuntimeSupported": true,
|
|
221
|
+
"uiGroup": "byok",
|
|
222
|
+
"providerKind": "hosted",
|
|
223
|
+
"displayOrder": 90,
|
|
224
|
+
"aliases": [
|
|
225
|
+
"groqcloud",
|
|
226
|
+
"groq cloud"
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"key": "lightning",
|
|
231
|
+
"runtimeProvider": "lightning",
|
|
232
|
+
"displayName": "Lightning AI",
|
|
233
|
+
"apiKeyField": "lightning_api_key",
|
|
234
|
+
"envKey": "LIGHTNING_API_KEY",
|
|
235
|
+
"baseUrl": "https://lightning.ai/api/v1",
|
|
236
|
+
"modelsUrl": "https://lightning.ai/api/v1/models",
|
|
237
|
+
"requestContractStrategy": "none",
|
|
238
|
+
"clientRuntimeSupported": true,
|
|
239
|
+
"uiGroup": "byok",
|
|
240
|
+
"providerKind": "hosted",
|
|
241
|
+
"displayOrder": 100,
|
|
242
|
+
"aliases": [
|
|
243
|
+
"litai",
|
|
244
|
+
"lightning ai"
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"key": "mistral",
|
|
249
|
+
"runtimeProvider": "mistral",
|
|
250
|
+
"displayName": "Mistral",
|
|
251
|
+
"apiKeyField": "mistral_api_key",
|
|
252
|
+
"envKey": "MISTRAL_API_KEY",
|
|
253
|
+
"baseUrl": "https://api.mistral.ai/v1",
|
|
254
|
+
"modelsUrl": "https://api.mistral.ai/v1/models",
|
|
255
|
+
"requestContractStrategy": "top_level_reasoning_effort",
|
|
256
|
+
"clientRuntimeSupported": true,
|
|
257
|
+
"uiGroup": "byok",
|
|
258
|
+
"providerKind": "direct",
|
|
259
|
+
"displayOrder": 110,
|
|
260
|
+
"aliases": [
|
|
261
|
+
"mistral ai"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"key": "moonshot",
|
|
266
|
+
"runtimeProvider": "moonshot",
|
|
267
|
+
"displayName": "Moonshot/Kimi",
|
|
268
|
+
"apiKeyField": "moonshot_api_key",
|
|
269
|
+
"envKey": "MOONSHOT_API_KEY",
|
|
270
|
+
"baseUrl": "https://api.moonshot.ai/v1",
|
|
271
|
+
"modelsUrl": "https://api.moonshot.ai/v1/models",
|
|
272
|
+
"requestContractStrategy": "extra_body_thinking_type",
|
|
273
|
+
"clientRuntimeSupported": true,
|
|
274
|
+
"uiGroup": "byok",
|
|
275
|
+
"providerKind": "direct",
|
|
276
|
+
"displayOrder": 120,
|
|
277
|
+
"aliases": [
|
|
278
|
+
"kimi",
|
|
279
|
+
"moonshot ai"
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"key": "openai",
|
|
284
|
+
"runtimeProvider": "openai",
|
|
285
|
+
"displayName": "OpenAI",
|
|
286
|
+
"apiKeyField": "openai_api_key",
|
|
287
|
+
"envKey": "OPENAI_API_KEY",
|
|
288
|
+
"baseUrl": "https://api.openai.com/v1",
|
|
289
|
+
"modelsUrl": "https://api.openai.com/v1/models",
|
|
290
|
+
"requestContractStrategy": "native",
|
|
291
|
+
"clientRuntimeSupported": true,
|
|
292
|
+
"uiGroup": "byok",
|
|
293
|
+
"providerKind": "direct",
|
|
294
|
+
"displayOrder": 130,
|
|
295
|
+
"aliases": []
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"key": "openrouter",
|
|
299
|
+
"runtimeProvider": "openrouter",
|
|
300
|
+
"displayName": "OpenRouter",
|
|
301
|
+
"apiKeyField": "openrouter_api_key",
|
|
302
|
+
"envKey": "OPENROUTER_API_KEY",
|
|
303
|
+
"baseUrl": "https://openrouter.ai/api/v1",
|
|
304
|
+
"modelsUrl": "https://openrouter.ai/api/v1/models",
|
|
305
|
+
"requestContractStrategy": "openrouter",
|
|
306
|
+
"clientRuntimeSupported": true,
|
|
307
|
+
"uiGroup": "byok",
|
|
308
|
+
"providerKind": "hosted",
|
|
309
|
+
"displayOrder": 140,
|
|
310
|
+
"aliases": [
|
|
311
|
+
"open-router",
|
|
312
|
+
"open router",
|
|
313
|
+
"openrouter ai"
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"key": "together",
|
|
318
|
+
"runtimeProvider": "together",
|
|
319
|
+
"displayName": "Together AI",
|
|
320
|
+
"apiKeyField": "together_api_key",
|
|
321
|
+
"envKey": "TOGETHER_API_KEY",
|
|
322
|
+
"baseUrl": "https://api.together.xyz/v1",
|
|
323
|
+
"modelsUrl": "https://api.together.xyz/v1/models",
|
|
324
|
+
"requestContractStrategy": "top_level_reasoning_effort_and_extra_body_reasoning_enabled",
|
|
325
|
+
"clientRuntimeSupported": true,
|
|
326
|
+
"uiGroup": "byok",
|
|
327
|
+
"providerKind": "hosted",
|
|
328
|
+
"displayOrder": 150,
|
|
329
|
+
"aliases": [
|
|
330
|
+
"together ai"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"key": "venice",
|
|
335
|
+
"runtimeProvider": "venice",
|
|
336
|
+
"displayName": "Venice AI",
|
|
337
|
+
"apiKeyField": "venice_api_key",
|
|
338
|
+
"envKey": "VENICE_API_KEY",
|
|
339
|
+
"baseUrl": "https://api.venice.ai/api/v1",
|
|
340
|
+
"modelsUrl": "https://api.venice.ai/api/v1/models",
|
|
341
|
+
"requestContractStrategy": "venice",
|
|
342
|
+
"clientRuntimeSupported": true,
|
|
343
|
+
"uiGroup": "byok",
|
|
344
|
+
"providerKind": "hosted",
|
|
345
|
+
"displayOrder": 160,
|
|
346
|
+
"aliases": [
|
|
347
|
+
"venice.ai"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"key": "xai",
|
|
352
|
+
"runtimeProvider": "grok",
|
|
353
|
+
"displayName": "xAI",
|
|
354
|
+
"apiKeyField": "grok_api_key",
|
|
355
|
+
"envKey": "XAI_API_KEY",
|
|
356
|
+
"baseUrl": "https://api.x.ai/v1",
|
|
357
|
+
"modelsUrl": "https://api.x.ai/v1/models",
|
|
358
|
+
"requestContractStrategy": "native",
|
|
359
|
+
"clientRuntimeSupported": true,
|
|
360
|
+
"uiGroup": "byok",
|
|
361
|
+
"providerKind": "direct",
|
|
362
|
+
"displayOrder": 170,
|
|
363
|
+
"aliases": [
|
|
364
|
+
"x",
|
|
365
|
+
"x.ai",
|
|
366
|
+
"grok"
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"key": "zai",
|
|
371
|
+
"runtimeProvider": "zai",
|
|
372
|
+
"displayName": "Z.ai",
|
|
373
|
+
"apiKeyField": "zai_api_key",
|
|
374
|
+
"envKey": "ZAI_API_KEY",
|
|
375
|
+
"baseUrl": "https://api.z.ai/api/paas/v4",
|
|
376
|
+
"modelsUrl": "https://api.z.ai/api/paas/v4/models",
|
|
377
|
+
"requestContractStrategy": "top_level_reasoning_effort_and_extra_body_thinking_type",
|
|
378
|
+
"clientRuntimeSupported": true,
|
|
379
|
+
"uiGroup": "byok",
|
|
380
|
+
"providerKind": "direct",
|
|
381
|
+
"displayOrder": 180,
|
|
382
|
+
"aliases": [
|
|
383
|
+
"zhipu",
|
|
384
|
+
"zhipu ai",
|
|
385
|
+
"knowledge atlas"
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"clientRuntimeLocal": {
|
|
390
|
+
"provider": "local",
|
|
391
|
+
"apiKeyField": "local_ai_api_key",
|
|
392
|
+
"aliases": [
|
|
393
|
+
"local",
|
|
394
|
+
"localai",
|
|
395
|
+
"local-ai",
|
|
396
|
+
"local_ai"
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
};
|
|
64
400
|
HYPERLIQUID_EXCHANGE_SPECIFICATION = {
|
|
65
401
|
"l1_signing_chain_id": 1337,
|
|
66
402
|
"action_nonce_bytes": 8,
|
|
@@ -91,6 +427,11 @@ var init_shared_contracts_generated = __esm({
|
|
|
91
427
|
"userNonFundingLedgerUpdates"
|
|
92
428
|
]
|
|
93
429
|
};
|
|
430
|
+
HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE = {
|
|
431
|
+
"base_weight": 20,
|
|
432
|
+
"rows_per_extra_weight": 60,
|
|
433
|
+
"max_rows": 5e3
|
|
434
|
+
};
|
|
94
435
|
ERROR_REDACTION_RULES = {
|
|
95
436
|
"redacted_value": "[REDACTED]",
|
|
96
437
|
"fragments": {
|
|
@@ -142,7 +483,7 @@ var init_shared_contracts_generated = __esm({
|
|
|
142
483
|
});
|
|
143
484
|
|
|
144
485
|
// lib/constants.ts
|
|
145
|
-
var MS_PER_SECOND, SECONDS_PER_MINUTE, MINUTES_PER_HOUR, HOURS_PER_DAY, DAYS_PER_WEEK, MS_PER_MINUTE, SECONDS_PER_HOUR, SECONDS_PER_DAY, SECONDS_PER_WEEK, MINUTES_PER_DAY, MINUTES_PER_WEEK, MS_PER_HOUR, MS_PER_DAY, READ_STAMP_TIE_MS, BACKOFF_GROWTH_FACTOR, BYTES_PER_KIB, BYTES_PER_MIB, OWNER_ONLY_FILE_MODE, OWNER_ONLY_DIRECTORY_MODE, GROUP_OTHER_PERMISSION_BITS, JSON_INDENT_SPACES, INT32_MIN, INT32_MAX, HTTP_STATUS, AI_COST_ESTIMATE_PERIOD_DAYS, SECONDS_PER_AI_COST_ESTIMATE_PERIOD, NODE_ARGV_COMMAND_ARGS_START, EXIT_CODE_TEMPFAIL, JSON_RPC_ERROR_CODES, INFERENCE_HOST_PROCESS_LOCK_RECORD_SCHEMA_VERSION, INFERENCE_HOST_RECLAIM_GUARD_CREATE_PASSES, LINUX_PROC_STAT_COMM_TERMINATOR_CHARS, INFERENCE_HOST_RANDOM_BYTES, HYPERLIQUID_TIF_GTC, HYPERLIQUID_ROW_WEIGHTED_INFO_REQUESTS, HYPERLIQUID_ROW_WEIGHTED_INFO_BASE_WEIGHT, HYPERLIQUID_INFO_ROWS_PER_EXTRA_WEIGHT, HYPERLIQUID_MAX_DEPLOYER_FEE_SCALE, HYPERLIQUID_DEPLOYER_FEE_SCALE_MULTIPLIER, HYPERLIQUID_GROWTH_MODE_FEE_FACTOR, HYPERLIQUID_ALIGNED_QUOTE_NON_DEPLOYER_FEE_FACTOR, EXIT_CODE_INTERRUPTED, EXIT_CODE_SIGNAL_BASE, AI_SNAPSHOT_COMPACT_TRANSPORT_VERSION, AI_SNAPSHOT_PACKED_FIELDS, AI_SNAPSHOT_PACKED_ENTRY_FIELDS
|
|
486
|
+
var MS_PER_SECOND, SECONDS_PER_MINUTE, MINUTES_PER_HOUR, HOURS_PER_DAY, DAYS_PER_WEEK, MS_PER_MINUTE, SECONDS_PER_HOUR, SECONDS_PER_DAY, SECONDS_PER_WEEK, MINUTES_PER_DAY, MINUTES_PER_WEEK, MS_PER_HOUR, MS_PER_DAY, READ_STAMP_TIE_MS, BACKOFF_GROWTH_FACTOR, BYTES_PER_KIB, BYTES_PER_MIB, OWNER_ONLY_FILE_MODE, OWNER_ONLY_DIRECTORY_MODE, GROUP_OTHER_PERMISSION_BITS, JSON_INDENT_SPACES, INT32_MIN, INT32_MAX, HTTP_STATUS, AI_COST_ESTIMATE_PERIOD_DAYS, SECONDS_PER_AI_COST_ESTIMATE_PERIOD, NODE_ARGV_COMMAND_ARGS_START, EXIT_CODE_TEMPFAIL, JSON_RPC_ERROR_CODES, INFERENCE_HOST_PROCESS_LOCK_RECORD_SCHEMA_VERSION, INFERENCE_HOST_RECLAIM_GUARD_CREATE_PASSES, LINUX_PROC_STAT_COMM_TERMINATOR_CHARS, INFERENCE_HOST_RANDOM_BYTES, UINT32_RANGE, HYPERLIQUID_TIF_GTC, HYPERLIQUID_CANDLE_SNAPSHOT_BASE_WEIGHT, HYPERLIQUID_CANDLE_SNAPSHOT_ROWS_PER_WEIGHT, HYPERLIQUID_CANDLE_SNAPSHOT_MAX_ROWS, HYPERLIQUID_ROW_WEIGHTED_INFO_REQUESTS, HYPERLIQUID_ROW_WEIGHTED_INFO_BASE_WEIGHT, HYPERLIQUID_INFO_ROWS_PER_EXTRA_WEIGHT, HYPERLIQUID_MAX_DEPLOYER_FEE_SCALE, HYPERLIQUID_DEPLOYER_FEE_SCALE_MULTIPLIER, HYPERLIQUID_GROWTH_MODE_FEE_FACTOR, HYPERLIQUID_ALIGNED_QUOTE_NON_DEPLOYER_FEE_FACTOR, EXIT_CODE_INTERRUPTED, EXIT_CODE_SIGNAL_BASE, AI_SNAPSHOT_COMPACT_TRANSPORT_VERSION, AI_SNAPSHOT_PACKED_FIELDS, AI_SNAPSHOT_PACKED_ENTRY_FIELDS;
|
|
146
487
|
var init_constants = __esm({
|
|
147
488
|
"lib/constants.ts"() {
|
|
148
489
|
"use strict";
|
|
@@ -224,7 +565,11 @@ var init_constants = __esm({
|
|
|
224
565
|
OAUTH_STATE: 32,
|
|
225
566
|
OAUTH_CALLBACK_PATH: 16
|
|
226
567
|
};
|
|
568
|
+
UINT32_RANGE = 2 ** 32;
|
|
227
569
|
HYPERLIQUID_TIF_GTC = HYPERLIQUID_EXCHANGE_SPECIFICATION.good_til_cancelled_time_in_force;
|
|
570
|
+
HYPERLIQUID_CANDLE_SNAPSHOT_BASE_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.base_weight;
|
|
571
|
+
HYPERLIQUID_CANDLE_SNAPSHOT_ROWS_PER_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.rows_per_extra_weight;
|
|
572
|
+
HYPERLIQUID_CANDLE_SNAPSHOT_MAX_ROWS = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.max_rows;
|
|
228
573
|
HYPERLIQUID_ROW_WEIGHTED_INFO_REQUESTS = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.request_types;
|
|
229
574
|
HYPERLIQUID_ROW_WEIGHTED_INFO_BASE_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.base_weight;
|
|
230
575
|
HYPERLIQUID_INFO_ROWS_PER_EXTRA_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.rows_per_extra_weight;
|
|
@@ -237,7 +582,6 @@ var init_constants = __esm({
|
|
|
237
582
|
AI_SNAPSHOT_COMPACT_TRANSPORT_VERSION = AI_SNAPSHOT_WIRE_FORMAT.compact_transport_version;
|
|
238
583
|
AI_SNAPSHOT_PACKED_FIELDS = AI_SNAPSHOT_WIRE_FORMAT.packed_fields;
|
|
239
584
|
AI_SNAPSHOT_PACKED_ENTRY_FIELDS = AI_SNAPSHOT_WIRE_FORMAT.packed_entry_fields;
|
|
240
|
-
BYOK_PROVIDER_DISPLAY_ORDER_STEP = 10;
|
|
241
585
|
}
|
|
242
586
|
});
|
|
243
587
|
|
|
@@ -318,7 +662,7 @@ var init_types = __esm({
|
|
|
318
662
|
function normalizeProviderAlias(value) {
|
|
319
663
|
return String(value ?? "").trim().toLowerCase().replace(/[._-]+/g, " ").replace(/\s+/g, " ");
|
|
320
664
|
}
|
|
321
|
-
var BYOK_UI_GROUP,
|
|
665
|
+
var BYOK_UI_GROUP, BYOK_PROVIDERS, BYOK_PROVIDER_KEY_BY_ALIAS;
|
|
322
666
|
var init_byokProviderRegistry = __esm({
|
|
323
667
|
"lib/byokProviderRegistry.ts"() {
|
|
324
668
|
"use strict";
|
|
@@ -326,32 +670,9 @@ var init_byokProviderRegistry = __esm({
|
|
|
326
670
|
init_define_VTX_EXO_POLICY();
|
|
327
671
|
init_define_VTX_GROK_POLICY();
|
|
328
672
|
init_define_VTX_PI_MODEL_POLICY();
|
|
329
|
-
|
|
330
|
-
BYOK_UI_GROUP =
|
|
331
|
-
|
|
332
|
-
{ key: "alibaba_cloud_model_studio", runtimeProvider: "alibaba_cloud_model_studio", displayName: "Alibaba Cloud Model Studio", apiKeyField: "alibaba_cloud_model_studio_api_key", envKey: "ALIBABA_CLOUD_MODEL_STUDIO_API_KEY", baseUrl: "https://dashscope-us.aliyuncs.com/compatible-mode/v1", modelsUrl: "https://dashscope-us.aliyuncs.com/compatible-mode/v1/models", requestContractStrategy: "extra_body_enable_thinking", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", aliases: ["alibaba", "alibaba cloud", "dashscope", "model studio"] },
|
|
333
|
-
{ key: "amazon_bedrock", runtimeProvider: "amazon_bedrock", displayName: "Amazon Bedrock", apiKeyField: "amazon_bedrock_api_key", envKey: "AMAZON_API_KEY", baseUrl: "https://bedrock-mantle.us-east-1.api.aws/v1", modelsUrl: "https://bedrock-mantle.us-east-1.api.aws/v1/models", requestContractStrategy: "top_level_reasoning_effort", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", aliases: ["amazon", "aws", "aws bedrock", "bedrock"] },
|
|
334
|
-
{ key: "anthropic", runtimeProvider: "anthropic", displayName: "Anthropic", apiKeyField: "anthropic_api_key", envKey: "ANTHROPIC_API_KEY", baseUrl: null, modelsUrl: null, requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", aliases: ["claude"] },
|
|
335
|
-
{ key: "byteplus", runtimeProvider: "byteplus", displayName: "BytePlus", apiKeyField: "byteplus_api_key", envKey: "BYTEPLUS_API_KEY", baseUrl: "https://ark.ap-southeast.bytepluses.com/api/coding/v3", modelsUrl: "https://ark.ap-southeast.bytepluses.com/api/coding/v3/models", requestContractStrategy: "extra_body_thinking_type", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", aliases: ["bytedance", "byteplus coding plan", "ark"] },
|
|
336
|
-
{ key: "cerebras", runtimeProvider: "cerebras", displayName: "Cerebras", apiKeyField: "cerebras_api_key", envKey: "CEREBRAS_API_KEY", baseUrl: "https://api.cerebras.ai/v1", modelsUrl: "https://api.cerebras.ai/v1/models", requestContractStrategy: "top_level_reasoning_effort_and_extra_body_disable_reasoning", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", aliases: [] },
|
|
337
|
-
{ key: "deepseek", runtimeProvider: "deepseek", displayName: "DeepSeek", apiKeyField: "deepseek_api_key", envKey: "DEEPSEEK_API_KEY", baseUrl: "https://api.deepseek.com", modelsUrl: "https://api.deepseek.com/models", requestContractStrategy: "deepseek_extra_body", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", aliases: ["deep seek", "deepseek ai", "deepseek.ai"] },
|
|
338
|
-
{ key: "fireworks", runtimeProvider: "fireworks", displayName: "Fireworks AI", apiKeyField: "fireworks_api_key", envKey: "FIREWORKS_API_KEY", baseUrl: "https://api.fireworks.ai/inference/v1", modelsUrl: "https://api.fireworks.ai/inference/v1/models", requestContractStrategy: "top_level_reasoning_effort_and_extra_body_thinking_type", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", aliases: ["fireworks ai"] },
|
|
339
|
-
{ key: "google", runtimeProvider: "gemini", displayName: "Google Gemini", apiKeyField: "gemini_api_key", envKey: "GOOGLE_AI_PLATFORM_API_KEY", baseUrl: null, modelsUrl: null, requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", aliases: ["gemini"] },
|
|
340
|
-
{ key: "groq", runtimeProvider: "groq", displayName: "Groq", apiKeyField: "groq_api_key", envKey: "GROQ_API_KEY", baseUrl: "https://api.groq.com/openai/v1", modelsUrl: "https://api.groq.com/openai/v1/models", requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", aliases: ["groqcloud", "groq cloud"] },
|
|
341
|
-
{ key: "lightning", runtimeProvider: "lightning", displayName: "Lightning AI", apiKeyField: "lightning_api_key", envKey: "LIGHTNING_API_KEY", baseUrl: "https://lightning.ai/api/v1", modelsUrl: "https://lightning.ai/api/v1/models", requestContractStrategy: "none", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", aliases: ["litai", "lightning ai"] },
|
|
342
|
-
{ key: "mistral", runtimeProvider: "mistral", displayName: "Mistral", apiKeyField: "mistral_api_key", envKey: "MISTRAL_API_KEY", baseUrl: "https://api.mistral.ai/v1", modelsUrl: "https://api.mistral.ai/v1/models", requestContractStrategy: "top_level_reasoning_effort", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", aliases: ["mistral ai"] },
|
|
343
|
-
{ key: "moonshot", runtimeProvider: "moonshot", displayName: "Moonshot/Kimi", apiKeyField: "moonshot_api_key", envKey: "MOONSHOT_API_KEY", baseUrl: "https://api.moonshot.ai/v1", modelsUrl: "https://api.moonshot.ai/v1/models", requestContractStrategy: "extra_body_thinking_type", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", aliases: ["kimi", "moonshot ai"] },
|
|
344
|
-
{ key: "openai", runtimeProvider: "openai", displayName: "OpenAI", apiKeyField: "openai_api_key", envKey: "OPENAI_API_KEY", baseUrl: "https://api.openai.com/v1", modelsUrl: "https://api.openai.com/v1/models", requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", aliases: [] },
|
|
345
|
-
{ key: "openrouter", runtimeProvider: "openrouter", displayName: "OpenRouter", apiKeyField: "openrouter_api_key", envKey: "OPENROUTER_API_KEY", baseUrl: "https://openrouter.ai/api/v1", modelsUrl: "https://openrouter.ai/api/v1/models", requestContractStrategy: "openrouter", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", aliases: ["open-router", "open router", "openrouter ai"] },
|
|
346
|
-
{ key: "together", runtimeProvider: "together", displayName: "Together AI", apiKeyField: "together_api_key", envKey: "TOGETHER_API_KEY", baseUrl: "https://api.together.xyz/v1", modelsUrl: "https://api.together.xyz/v1/models", requestContractStrategy: "top_level_reasoning_effort_and_extra_body_reasoning_enabled", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", aliases: ["together ai"] },
|
|
347
|
-
{ key: "venice", runtimeProvider: "venice", displayName: "Venice AI", apiKeyField: "venice_api_key", envKey: "VENICE_API_KEY", baseUrl: "https://api.venice.ai/api/v1", modelsUrl: "https://api.venice.ai/api/v1/models", requestContractStrategy: "venice", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", aliases: ["venice.ai"] },
|
|
348
|
-
{ key: "xai", runtimeProvider: "grok", displayName: "xAI", apiKeyField: "grok_api_key", envKey: "XAI_API_KEY", baseUrl: "https://api.x.ai/v1", modelsUrl: "https://api.x.ai/v1/models", requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", aliases: ["x", "x.ai", "grok"] },
|
|
349
|
-
{ key: "zai", runtimeProvider: "zai", displayName: "Z.ai", apiKeyField: "zai_api_key", envKey: "ZAI_API_KEY", baseUrl: "https://api.z.ai/api/paas/v4", modelsUrl: "https://api.z.ai/api/paas/v4/models", requestContractStrategy: "top_level_reasoning_effort_and_extra_body_thinking_type", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", aliases: ["zhipu", "zhipu ai", "knowledge atlas"] }
|
|
350
|
-
];
|
|
351
|
-
BYOK_PROVIDERS = BYOK_PROVIDER_ENTRIES.map((provider, index) => ({
|
|
352
|
-
...provider,
|
|
353
|
-
displayOrder: (index + 1) * BYOK_PROVIDER_DISPLAY_ORDER_STEP
|
|
354
|
-
}));
|
|
673
|
+
init_shared_contracts_generated();
|
|
674
|
+
BYOK_UI_GROUP = BYOK_PROVIDER_REGISTRY.uiGroup;
|
|
675
|
+
BYOK_PROVIDERS = BYOK_PROVIDER_REGISTRY.providers;
|
|
355
676
|
BYOK_PROVIDER_KEY_BY_ALIAS = /* @__PURE__ */ new Map();
|
|
356
677
|
for (const provider of BYOK_PROVIDERS) {
|
|
357
678
|
for (const alias of [provider.key, provider.displayName, ...provider.aliases]) {
|
|
@@ -2152,6 +2473,11 @@ var runtime_policy_generated_default = {
|
|
|
2152
2473
|
trading: {
|
|
2153
2474
|
engine: {
|
|
2154
2475
|
client_runtime: {
|
|
2476
|
+
candle_series: {
|
|
2477
|
+
full_refresh_seconds: 600,
|
|
2478
|
+
overlap_candles: 2,
|
|
2479
|
+
delta_max_candles: 60
|
|
2480
|
+
},
|
|
2155
2481
|
reconcile: {
|
|
2156
2482
|
tick_interval_seconds: 30,
|
|
2157
2483
|
wake_jitter_max_ms: 1e3,
|
|
@@ -2196,7 +2522,8 @@ var runtime_policy_generated_default = {
|
|
|
2196
2522
|
},
|
|
2197
2523
|
panel_reads: {
|
|
2198
2524
|
device_open_orders_reuse_seconds: 2,
|
|
2199
|
-
all_view_profile_concurrency: 2
|
|
2525
|
+
all_view_profile_concurrency: 2,
|
|
2526
|
+
display_account_fresh_seconds: 60
|
|
2200
2527
|
},
|
|
2201
2528
|
account_stream: {
|
|
2202
2529
|
fill_forward_interval_ms: 1e3,
|
|
@@ -2562,6 +2889,8 @@ var runtime_policy_generated_default = {
|
|
|
2562
2889
|
reserve_margin_weight: 40,
|
|
2563
2890
|
demand_bucket_seconds: 60,
|
|
2564
2891
|
demand_horizon_seconds: 3600,
|
|
2892
|
+
rescue_quiet_release_minutes: 5,
|
|
2893
|
+
rescue_quiet_release_gap_multiplier: 2,
|
|
2565
2894
|
capacity_cut_percent: 70,
|
|
2566
2895
|
capacity_min_weight: 240,
|
|
2567
2896
|
capacity_recovery_weight_per_minute: 120,
|
|
@@ -2661,6 +2990,7 @@ var runtime_policy_generated_default = {
|
|
|
2661
2990
|
}
|
|
2662
2991
|
},
|
|
2663
2992
|
cache: {
|
|
2993
|
+
available_assets_ttl_seconds: 300,
|
|
2664
2994
|
order_history_ttl_seconds: 30,
|
|
2665
2995
|
twap_history_ttl_seconds: 30,
|
|
2666
2996
|
twap_fills_ttl_seconds: 30,
|
|
@@ -14,7 +14,7 @@ import { dirname as dirname4, relative as relative4, resolve as resolve4 } from
|
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
15
15
|
|
|
16
16
|
// agent-cli-release.json
|
|
17
|
-
var agent_cli_release_default = { package_name: "@vtxmacro/cli", package_version: "2026.10.
|
|
17
|
+
var agent_cli_release_default = { package_name: "@vtxmacro/cli", package_version: "2026.10.50", codex_package_name: "@openai/codex", codex_version: "0.155.0", copilot_sdk_package_name: "@github/copilot-sdk", copilot_sdk_version: "1.0.0-beta.8", copilot_cli_package_name: "@github/copilot", copilot_cli_version: "1.0.80", deepseek_harness_version: "0.1.1-rc.2", deepseek_harness_packages: ["@deepseek-ai/dsh-agent", "@deepseek-ai/dsh-agent-instructions", "@deepseek-ai/dsh-agent-loop", "@deepseek-ai/dsh-agent-spine-demo", "@deepseek-ai/dsh-anonymous-user-id", "@deepseek-ai/dsh-atomic-write", "@deepseek-ai/dsh-attachment", "@deepseek-ai/dsh-brand", "@deepseek-ai/dsh-code-runtime", "@deepseek-ai/dsh-credentials", "@deepseek-ai/dsh-fs", "@deepseek-ai/dsh-goal", "@deepseek-ai/dsh-goal-round-driver", "@deepseek-ai/dsh-home-paths", "@deepseek-ai/dsh-invariants", "@deepseek-ai/dsh-jobs", "@deepseek-ai/dsh-jobs-local", "@deepseek-ai/dsh-launch-environment", "@deepseek-ai/dsh-llm", "@deepseek-ai/dsh-llm-deepseek", "@deepseek-ai/dsh-llm-retry", "@deepseek-ai/dsh-output-retention", "@deepseek-ai/dsh-sandbox", "@deepseek-ai/dsh-sandbox-policy", "@deepseek-ai/dsh-scope", "@deepseek-ai/dsh-session", "@deepseek-ai/dsh-session-checkpoint-policy", "@deepseek-ai/dsh-session-persistence", "@deepseek-ai/dsh-session-persistence-jsonl", "@deepseek-ai/dsh-session-projection", "@deepseek-ai/dsh-session-title", "@deepseek-ai/dsh-settings", "@deepseek-ai/dsh-shell", "@deepseek-ai/dsh-shell-env", "@deepseek-ai/dsh-skill", "@deepseek-ai/dsh-skill-filesystem", "@deepseek-ai/dsh-subprocess", "@deepseek-ai/dsh-system-prompt", "@deepseek-ai/dsh-timeout", "@deepseek-ai/dsh-tool-bash", "@deepseek-ai/dsh-tool-goal", "@deepseek-ai/dsh-tool-jobs", "@deepseek-ai/dsh-tool-skill", "@deepseek-ai/dsh-tools", "@deepseek-ai/dsh-typert-protocol", "@deepseek-ai/dsh-user-approval"], deepseek_cordis_package_name: "@deepseek-ai/cordis", deepseek_cordis_version: "4.0.1", deepseek_support_packages: { "@deepseek-ai/cordis-plugin-timer": "1.1.3" }, platforms: { "linux-x64": { package_name: "@openai/codex-linux-x64", target: "x86_64-unknown-linux-musl", binary_name: "codex", sha256: "660e159a49e823ac8e5986cb238f73158ce4b957d40d9292f8de90862644b501" }, "win32-x64": { package_name: "@openai/codex-win32-x64", target: "x86_64-pc-windows-msvc", binary_name: "codex.exe", sha256: "e4c11374bd9de8ad5c3b7617fd4654bb7839901edb0863f9930666863c7a021b" } }, pi_coding_agent_package_name: "@earendil-works/pi-coding-agent", pi_ai_package_name: "@earendil-works/pi-ai", pi_version: "0.85.1", pi_support_packages: ["@earendil-works/pi-agent-core", "@earendil-works/pi-telemetry", "@earendil-works/pi-tui", "@earendil-works/chord"], grok_version: "1.0.30", grok_platforms: { "linux-x64": { package_name: "@xai-official/grok-linux-x64", binary_name: "grok", sha256: "504dd6546ab991b75d36698242875ce461489cd1f8cd84285873cb55bd5c7d54" }, "win32-x64": { package_name: "@xai-official/grok-win32-x64", binary_name: "grok.exe", sha256: "48736d1a4342a801ea26d0ecde4c516b653f791399065adaa55973f83abd8867" } } };
|
|
18
18
|
|
|
19
19
|
// lib/runtime-policy.generated.json
|
|
20
20
|
var runtime_policy_generated_default = {
|
|
@@ -714,6 +714,11 @@ var runtime_policy_generated_default = {
|
|
|
714
714
|
trading: {
|
|
715
715
|
engine: {
|
|
716
716
|
client_runtime: {
|
|
717
|
+
candle_series: {
|
|
718
|
+
full_refresh_seconds: 600,
|
|
719
|
+
overlap_candles: 2,
|
|
720
|
+
delta_max_candles: 60
|
|
721
|
+
},
|
|
717
722
|
reconcile: {
|
|
718
723
|
tick_interval_seconds: 30,
|
|
719
724
|
wake_jitter_max_ms: 1e3,
|
|
@@ -758,7 +763,8 @@ var runtime_policy_generated_default = {
|
|
|
758
763
|
},
|
|
759
764
|
panel_reads: {
|
|
760
765
|
device_open_orders_reuse_seconds: 2,
|
|
761
|
-
all_view_profile_concurrency: 2
|
|
766
|
+
all_view_profile_concurrency: 2,
|
|
767
|
+
display_account_fresh_seconds: 60
|
|
762
768
|
},
|
|
763
769
|
account_stream: {
|
|
764
770
|
fill_forward_interval_ms: 1e3,
|
|
@@ -1124,6 +1130,8 @@ var runtime_policy_generated_default = {
|
|
|
1124
1130
|
reserve_margin_weight: 40,
|
|
1125
1131
|
demand_bucket_seconds: 60,
|
|
1126
1132
|
demand_horizon_seconds: 3600,
|
|
1133
|
+
rescue_quiet_release_minutes: 5,
|
|
1134
|
+
rescue_quiet_release_gap_multiplier: 2,
|
|
1127
1135
|
capacity_cut_percent: 70,
|
|
1128
1136
|
capacity_min_weight: 240,
|
|
1129
1137
|
capacity_recovery_weight_per_minute: 120,
|
|
@@ -1223,6 +1231,7 @@ var runtime_policy_generated_default = {
|
|
|
1223
1231
|
}
|
|
1224
1232
|
},
|
|
1225
1233
|
cache: {
|
|
1234
|
+
available_assets_ttl_seconds: 300,
|
|
1226
1235
|
order_history_ttl_seconds: 30,
|
|
1227
1236
|
twap_history_ttl_seconds: 30,
|
|
1228
1237
|
twap_fills_ttl_seconds: 30,
|
|
@@ -1428,6 +1437,11 @@ var HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE = {
|
|
|
1428
1437
|
"userNonFundingLedgerUpdates"
|
|
1429
1438
|
]
|
|
1430
1439
|
};
|
|
1440
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE = {
|
|
1441
|
+
"base_weight": 20,
|
|
1442
|
+
"rows_per_extra_weight": 60,
|
|
1443
|
+
"max_rows": 5e3
|
|
1444
|
+
};
|
|
1431
1445
|
var ERROR_REDACTION_RULES = {
|
|
1432
1446
|
"redacted_value": "[REDACTED]",
|
|
1433
1447
|
"fragments": {
|
|
@@ -1514,7 +1528,11 @@ var INFERENCE_HOST_RANDOM_BYTES = {
|
|
|
1514
1528
|
OAUTH_STATE: 32,
|
|
1515
1529
|
OAUTH_CALLBACK_PATH: 16
|
|
1516
1530
|
};
|
|
1531
|
+
var UINT32_RANGE = 2 ** 32;
|
|
1517
1532
|
var HYPERLIQUID_TIF_GTC = HYPERLIQUID_EXCHANGE_SPECIFICATION.good_til_cancelled_time_in_force;
|
|
1533
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_BASE_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.base_weight;
|
|
1534
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_ROWS_PER_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.rows_per_extra_weight;
|
|
1535
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_MAX_ROWS = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.max_rows;
|
|
1518
1536
|
var HYPERLIQUID_ROW_WEIGHTED_INFO_REQUESTS = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.request_types;
|
|
1519
1537
|
var HYPERLIQUID_ROW_WEIGHTED_INFO_BASE_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.base_weight;
|
|
1520
1538
|
var HYPERLIQUID_INFO_ROWS_PER_EXTRA_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.rows_per_extra_weight;
|