@vtxmacro/cli 2026.10.46 → 2026.10.48
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 +24 -8
- package/bin/vtx-mcp.js +26 -10
- package/bin/vtx-service-bootstrap.js +25 -9
- package/bin/vtx-service-launcher.js +24 -8
- package/bin/vtx.js +527 -175
- package/package.json +1 -1
package/bin/exo-harness.ts
CHANGED
|
@@ -71,6 +71,30 @@ var SECONDS_PER_AI_COST_ESTIMATE_PERIOD = SECONDS_PER_DAY * AI_COST_ESTIMATE_PER
|
|
|
71
71
|
var INFERENCE_HOST_MODEL_ID_MAX_CHARS = 256;
|
|
72
72
|
var RETRY_AFTER_HEADER_MAX_CHARS = 128;
|
|
73
73
|
var EXO_POLICY_MAX_TOOL_ROUNDS = 64;
|
|
74
|
+
var HYPERLIQUID_EXCHANGE_SPECIFICATION = {
|
|
75
|
+
// Chain ID of the phantom-agent EIP-712 domain L1 actions sign.
|
|
76
|
+
l1_signing_chain_id: 1337,
|
|
77
|
+
// A signed action hash appends the nonce (and expiresAfter) as big-endian uint64.
|
|
78
|
+
action_nonce_bytes: 8,
|
|
79
|
+
// Largest atomic order group VTX sends.
|
|
80
|
+
max_orders_per_batch: 16,
|
|
81
|
+
// A positionTpsl group is exactly one stop-loss and one take-profit order.
|
|
82
|
+
position_tpsl_order_count: 2,
|
|
83
|
+
// Prices carry at most this many significant figures...
|
|
84
|
+
price_significant_figures: 5,
|
|
85
|
+
// ...unless they are integers at or above this, which keep every digit.
|
|
86
|
+
integer_price_minimum: 1e5,
|
|
87
|
+
// A perp price has at most this many decimals minus the asset's szDecimals.
|
|
88
|
+
perp_price_max_decimals: 6,
|
|
89
|
+
// A HIP-3 builder-DEX asset ID is base + dex index * stride + index in meta.
|
|
90
|
+
hip3_asset_id_base: 1e5,
|
|
91
|
+
hip3_asset_id_dex_stride: 1e4,
|
|
92
|
+
// A trailing stop's percent retracement carries at most this many decimals.
|
|
93
|
+
trailing_retracement_pct_max_decimals: 3,
|
|
94
|
+
// Good-til-cancelled time in force as the order wire spells it.
|
|
95
|
+
good_til_cancelled_time_in_force: "Gtc"
|
|
96
|
+
};
|
|
97
|
+
var HYPERLIQUID_TIF_GTC = HYPERLIQUID_EXCHANGE_SPECIFICATION.good_til_cancelled_time_in_force;
|
|
74
98
|
|
|
75
99
|
// lib/runtime-policy.generated.json
|
|
76
100
|
var runtime_policy_generated_default = {
|
|
@@ -468,8 +492,6 @@ var runtime_policy_generated_default = {
|
|
|
468
492
|
observed_activity_recent_ms: 8e3,
|
|
469
493
|
startup_hold_activation_gap_ms: 9e4,
|
|
470
494
|
hidden_ticker_update_interval_ms: 16,
|
|
471
|
-
client_close_fill_sync_attempts: 3,
|
|
472
|
-
client_close_fill_sync_retry_step_ms: 300,
|
|
473
495
|
post_leverage_update_order_delay_ms: 250,
|
|
474
496
|
takeover_telemetry_error_chars: 500,
|
|
475
497
|
takeover_telemetry_error_name_chars: 120,
|
|
@@ -791,7 +813,6 @@ var runtime_policy_generated_default = {
|
|
|
791
813
|
protective_actions: {
|
|
792
814
|
adoption_request_timeout_milliseconds: 2e4,
|
|
793
815
|
idle_recheck_seconds: 60,
|
|
794
|
-
attention_refresh_seconds: 60,
|
|
795
816
|
evidence_max_items: 32,
|
|
796
817
|
evidence_shared_read_seconds: 10,
|
|
797
818
|
retry_delay_seconds: 15,
|
|
@@ -921,10 +942,6 @@ var runtime_policy_generated_default = {
|
|
|
921
942
|
},
|
|
922
943
|
defaults: {
|
|
923
944
|
server_ai_max_slippage: 5
|
|
924
|
-
},
|
|
925
|
-
risk: {
|
|
926
|
-
max_order_notional: 5e3,
|
|
927
|
-
max_position_notional: 1e4
|
|
928
945
|
}
|
|
929
946
|
},
|
|
930
947
|
agent_cli: {
|
|
@@ -1190,7 +1207,6 @@ var runtime_policy_generated_default = {
|
|
|
1190
1207
|
capacity_recovery_weight_per_minute: 120,
|
|
1191
1208
|
background_floor_weight: 120,
|
|
1192
1209
|
background_admission_wait_seconds: 90,
|
|
1193
|
-
cooldown_seconds: 60,
|
|
1194
1210
|
metadata_ttl_seconds: 300,
|
|
1195
1211
|
user_fees_ttl_seconds: 300,
|
|
1196
1212
|
account_mode_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.48", 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/constants.ts
|
|
51
|
-
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, CANDLE_TIMEFRAME_SECONDS, 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, EXIT_CODE_INTERRUPTED, EXIT_CODE_SIGNAL_BASE;
|
|
51
|
+
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, CANDLE_TIMEFRAME_SECONDS, 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_EXCHANGE_SPECIFICATION, HYPERLIQUID_TIF_GTC, EXIT_CODE_INTERRUPTED, EXIT_CODE_SIGNAL_BASE;
|
|
52
52
|
var init_constants = __esm({
|
|
53
53
|
"lib/constants.ts"() {
|
|
54
54
|
"use strict";
|
|
@@ -146,6 +146,30 @@ var init_constants = __esm({
|
|
|
146
146
|
OAUTH_STATE: 32,
|
|
147
147
|
OAUTH_CALLBACK_PATH: 16
|
|
148
148
|
};
|
|
149
|
+
HYPERLIQUID_EXCHANGE_SPECIFICATION = {
|
|
150
|
+
// Chain ID of the phantom-agent EIP-712 domain L1 actions sign.
|
|
151
|
+
l1_signing_chain_id: 1337,
|
|
152
|
+
// A signed action hash appends the nonce (and expiresAfter) as big-endian uint64.
|
|
153
|
+
action_nonce_bytes: 8,
|
|
154
|
+
// Largest atomic order group VTX sends.
|
|
155
|
+
max_orders_per_batch: 16,
|
|
156
|
+
// A positionTpsl group is exactly one stop-loss and one take-profit order.
|
|
157
|
+
position_tpsl_order_count: 2,
|
|
158
|
+
// Prices carry at most this many significant figures...
|
|
159
|
+
price_significant_figures: 5,
|
|
160
|
+
// ...unless they are integers at or above this, which keep every digit.
|
|
161
|
+
integer_price_minimum: 1e5,
|
|
162
|
+
// A perp price has at most this many decimals minus the asset's szDecimals.
|
|
163
|
+
perp_price_max_decimals: 6,
|
|
164
|
+
// A HIP-3 builder-DEX asset ID is base + dex index * stride + index in meta.
|
|
165
|
+
hip3_asset_id_base: 1e5,
|
|
166
|
+
hip3_asset_id_dex_stride: 1e4,
|
|
167
|
+
// A trailing stop's percent retracement carries at most this many decimals.
|
|
168
|
+
trailing_retracement_pct_max_decimals: 3,
|
|
169
|
+
// Good-til-cancelled time in force as the order wire spells it.
|
|
170
|
+
good_til_cancelled_time_in_force: "Gtc"
|
|
171
|
+
};
|
|
172
|
+
HYPERLIQUID_TIF_GTC = HYPERLIQUID_EXCHANGE_SPECIFICATION.good_til_cancelled_time_in_force;
|
|
149
173
|
EXIT_CODE_INTERRUPTED = 130;
|
|
150
174
|
EXIT_CODE_SIGNAL_BASE = 128;
|
|
151
175
|
}
|
|
@@ -1737,8 +1761,6 @@ var runtime_policy_generated_default = {
|
|
|
1737
1761
|
observed_activity_recent_ms: 8e3,
|
|
1738
1762
|
startup_hold_activation_gap_ms: 9e4,
|
|
1739
1763
|
hidden_ticker_update_interval_ms: 16,
|
|
1740
|
-
client_close_fill_sync_attempts: 3,
|
|
1741
|
-
client_close_fill_sync_retry_step_ms: 300,
|
|
1742
1764
|
post_leverage_update_order_delay_ms: 250,
|
|
1743
1765
|
takeover_telemetry_error_chars: 500,
|
|
1744
1766
|
takeover_telemetry_error_name_chars: 120,
|
|
@@ -2060,7 +2082,6 @@ var runtime_policy_generated_default = {
|
|
|
2060
2082
|
protective_actions: {
|
|
2061
2083
|
adoption_request_timeout_milliseconds: 2e4,
|
|
2062
2084
|
idle_recheck_seconds: 60,
|
|
2063
|
-
attention_refresh_seconds: 60,
|
|
2064
2085
|
evidence_max_items: 32,
|
|
2065
2086
|
evidence_shared_read_seconds: 10,
|
|
2066
2087
|
retry_delay_seconds: 15,
|
|
@@ -2190,10 +2211,6 @@ var runtime_policy_generated_default = {
|
|
|
2190
2211
|
},
|
|
2191
2212
|
defaults: {
|
|
2192
2213
|
server_ai_max_slippage: 5
|
|
2193
|
-
},
|
|
2194
|
-
risk: {
|
|
2195
|
-
max_order_notional: 5e3,
|
|
2196
|
-
max_position_notional: 1e4
|
|
2197
2214
|
}
|
|
2198
2215
|
},
|
|
2199
2216
|
agent_cli: {
|
|
@@ -2459,7 +2476,6 @@ var runtime_policy_generated_default = {
|
|
|
2459
2476
|
capacity_recovery_weight_per_minute: 120,
|
|
2460
2477
|
background_floor_weight: 120,
|
|
2461
2478
|
background_admission_wait_seconds: 90,
|
|
2462
|
-
cooldown_seconds: 60,
|
|
2463
2479
|
metadata_ttl_seconds: 300,
|
|
2464
2480
|
user_fees_ttl_seconds: 300,
|
|
2465
2481
|
account_mode_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.48", 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 = {
|
|
@@ -412,8 +412,6 @@ var runtime_policy_generated_default = {
|
|
|
412
412
|
observed_activity_recent_ms: 8e3,
|
|
413
413
|
startup_hold_activation_gap_ms: 9e4,
|
|
414
414
|
hidden_ticker_update_interval_ms: 16,
|
|
415
|
-
client_close_fill_sync_attempts: 3,
|
|
416
|
-
client_close_fill_sync_retry_step_ms: 300,
|
|
417
415
|
post_leverage_update_order_delay_ms: 250,
|
|
418
416
|
takeover_telemetry_error_chars: 500,
|
|
419
417
|
takeover_telemetry_error_name_chars: 120,
|
|
@@ -735,7 +733,6 @@ var runtime_policy_generated_default = {
|
|
|
735
733
|
protective_actions: {
|
|
736
734
|
adoption_request_timeout_milliseconds: 2e4,
|
|
737
735
|
idle_recheck_seconds: 60,
|
|
738
|
-
attention_refresh_seconds: 60,
|
|
739
736
|
evidence_max_items: 32,
|
|
740
737
|
evidence_shared_read_seconds: 10,
|
|
741
738
|
retry_delay_seconds: 15,
|
|
@@ -865,10 +862,6 @@ var runtime_policy_generated_default = {
|
|
|
865
862
|
},
|
|
866
863
|
defaults: {
|
|
867
864
|
server_ai_max_slippage: 5
|
|
868
|
-
},
|
|
869
|
-
risk: {
|
|
870
|
-
max_order_notional: 5e3,
|
|
871
|
-
max_position_notional: 1e4
|
|
872
865
|
}
|
|
873
866
|
},
|
|
874
867
|
agent_cli: {
|
|
@@ -1134,7 +1127,6 @@ var runtime_policy_generated_default = {
|
|
|
1134
1127
|
capacity_recovery_weight_per_minute: 120,
|
|
1135
1128
|
background_floor_weight: 120,
|
|
1136
1129
|
background_admission_wait_seconds: 90,
|
|
1137
|
-
cooldown_seconds: 60,
|
|
1138
1130
|
metadata_ttl_seconds: 300,
|
|
1139
1131
|
user_fees_ttl_seconds: 300,
|
|
1140
1132
|
account_mode_ttl_seconds: 30,
|
|
@@ -1453,6 +1445,30 @@ var INFERENCE_HOST_RANDOM_BYTES = {
|
|
|
1453
1445
|
OAUTH_STATE: 32,
|
|
1454
1446
|
OAUTH_CALLBACK_PATH: 16
|
|
1455
1447
|
};
|
|
1448
|
+
var HYPERLIQUID_EXCHANGE_SPECIFICATION = {
|
|
1449
|
+
// Chain ID of the phantom-agent EIP-712 domain L1 actions sign.
|
|
1450
|
+
l1_signing_chain_id: 1337,
|
|
1451
|
+
// A signed action hash appends the nonce (and expiresAfter) as big-endian uint64.
|
|
1452
|
+
action_nonce_bytes: 8,
|
|
1453
|
+
// Largest atomic order group VTX sends.
|
|
1454
|
+
max_orders_per_batch: 16,
|
|
1455
|
+
// A positionTpsl group is exactly one stop-loss and one take-profit order.
|
|
1456
|
+
position_tpsl_order_count: 2,
|
|
1457
|
+
// Prices carry at most this many significant figures...
|
|
1458
|
+
price_significant_figures: 5,
|
|
1459
|
+
// ...unless they are integers at or above this, which keep every digit.
|
|
1460
|
+
integer_price_minimum: 1e5,
|
|
1461
|
+
// A perp price has at most this many decimals minus the asset's szDecimals.
|
|
1462
|
+
perp_price_max_decimals: 6,
|
|
1463
|
+
// A HIP-3 builder-DEX asset ID is base + dex index * stride + index in meta.
|
|
1464
|
+
hip3_asset_id_base: 1e5,
|
|
1465
|
+
hip3_asset_id_dex_stride: 1e4,
|
|
1466
|
+
// A trailing stop's percent retracement carries at most this many decimals.
|
|
1467
|
+
trailing_retracement_pct_max_decimals: 3,
|
|
1468
|
+
// Good-til-cancelled time in force as the order wire spells it.
|
|
1469
|
+
good_til_cancelled_time_in_force: "Gtc"
|
|
1470
|
+
};
|
|
1471
|
+
var HYPERLIQUID_TIF_GTC = HYPERLIQUID_EXCHANGE_SPECIFICATION.good_til_cancelled_time_in_force;
|
|
1456
1472
|
|
|
1457
1473
|
// lib/cli-release/updater.ts
|
|
1458
1474
|
import { spawn as spawn2 } from "node:child_process";
|
|
@@ -396,8 +396,6 @@ var runtime_policy_generated_default = {
|
|
|
396
396
|
observed_activity_recent_ms: 8e3,
|
|
397
397
|
startup_hold_activation_gap_ms: 9e4,
|
|
398
398
|
hidden_ticker_update_interval_ms: 16,
|
|
399
|
-
client_close_fill_sync_attempts: 3,
|
|
400
|
-
client_close_fill_sync_retry_step_ms: 300,
|
|
401
399
|
post_leverage_update_order_delay_ms: 250,
|
|
402
400
|
takeover_telemetry_error_chars: 500,
|
|
403
401
|
takeover_telemetry_error_name_chars: 120,
|
|
@@ -719,7 +717,6 @@ var runtime_policy_generated_default = {
|
|
|
719
717
|
protective_actions: {
|
|
720
718
|
adoption_request_timeout_milliseconds: 2e4,
|
|
721
719
|
idle_recheck_seconds: 60,
|
|
722
|
-
attention_refresh_seconds: 60,
|
|
723
720
|
evidence_max_items: 32,
|
|
724
721
|
evidence_shared_read_seconds: 10,
|
|
725
722
|
retry_delay_seconds: 15,
|
|
@@ -849,10 +846,6 @@ var runtime_policy_generated_default = {
|
|
|
849
846
|
},
|
|
850
847
|
defaults: {
|
|
851
848
|
server_ai_max_slippage: 5
|
|
852
|
-
},
|
|
853
|
-
risk: {
|
|
854
|
-
max_order_notional: 5e3,
|
|
855
|
-
max_position_notional: 1e4
|
|
856
849
|
}
|
|
857
850
|
},
|
|
858
851
|
agent_cli: {
|
|
@@ -1118,7 +1111,6 @@ var runtime_policy_generated_default = {
|
|
|
1118
1111
|
capacity_recovery_weight_per_minute: 120,
|
|
1119
1112
|
background_floor_weight: 120,
|
|
1120
1113
|
background_admission_wait_seconds: 90,
|
|
1121
|
-
cooldown_seconds: 60,
|
|
1122
1114
|
metadata_ttl_seconds: 300,
|
|
1123
1115
|
user_fees_ttl_seconds: 300,
|
|
1124
1116
|
account_mode_ttl_seconds: 30,
|
|
@@ -1436,6 +1428,30 @@ var INFERENCE_HOST_RANDOM_BYTES = {
|
|
|
1436
1428
|
OAUTH_STATE: 32,
|
|
1437
1429
|
OAUTH_CALLBACK_PATH: 16
|
|
1438
1430
|
};
|
|
1431
|
+
var HYPERLIQUID_EXCHANGE_SPECIFICATION = {
|
|
1432
|
+
// Chain ID of the phantom-agent EIP-712 domain L1 actions sign.
|
|
1433
|
+
l1_signing_chain_id: 1337,
|
|
1434
|
+
// A signed action hash appends the nonce (and expiresAfter) as big-endian uint64.
|
|
1435
|
+
action_nonce_bytes: 8,
|
|
1436
|
+
// Largest atomic order group VTX sends.
|
|
1437
|
+
max_orders_per_batch: 16,
|
|
1438
|
+
// A positionTpsl group is exactly one stop-loss and one take-profit order.
|
|
1439
|
+
position_tpsl_order_count: 2,
|
|
1440
|
+
// Prices carry at most this many significant figures...
|
|
1441
|
+
price_significant_figures: 5,
|
|
1442
|
+
// ...unless they are integers at or above this, which keep every digit.
|
|
1443
|
+
integer_price_minimum: 1e5,
|
|
1444
|
+
// A perp price has at most this many decimals minus the asset's szDecimals.
|
|
1445
|
+
perp_price_max_decimals: 6,
|
|
1446
|
+
// A HIP-3 builder-DEX asset ID is base + dex index * stride + index in meta.
|
|
1447
|
+
hip3_asset_id_base: 1e5,
|
|
1448
|
+
hip3_asset_id_dex_stride: 1e4,
|
|
1449
|
+
// A trailing stop's percent retracement carries at most this many decimals.
|
|
1450
|
+
trailing_retracement_pct_max_decimals: 3,
|
|
1451
|
+
// Good-til-cancelled time in force as the order wire spells it.
|
|
1452
|
+
good_til_cancelled_time_in_force: "Gtc"
|
|
1453
|
+
};
|
|
1454
|
+
var HYPERLIQUID_TIF_GTC = HYPERLIQUID_EXCHANGE_SPECIFICATION.good_til_cancelled_time_in_force;
|
|
1439
1455
|
|
|
1440
1456
|
// lib/inference-host/service-launcher.ts
|
|
1441
1457
|
import { spawn as spawn2 } from "node:child_process";
|