@vtxmacro/cli 2026.10.49 → 2026.10.51
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 +25 -1
- package/bin/vtx-mcp.js +352 -47
- package/bin/vtx-service-bootstrap.js +49 -5
- package/bin/vtx-service-launcher.js +25 -1
- package/bin/vtx.js +6906 -3337
- package/package.json +1 -1
|
@@ -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.51", 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 = {
|
|
@@ -395,6 +395,7 @@ var runtime_policy_generated_default = {
|
|
|
395
395
|
all_profile_account_summary_poll_min_ms: 1e3,
|
|
396
396
|
all_profile_trade_history_poll_min_ms: 1e3,
|
|
397
397
|
all_profile_live_refresh_idle_timeout_ms: 5e3,
|
|
398
|
+
all_profile_server_sibling_open_orders_per_refresh: 2,
|
|
398
399
|
copy_trading_message_limit: 25,
|
|
399
400
|
browser_account_refresh_min_interval_ms: 1250,
|
|
400
401
|
browser_account_watchdog_poll_min_ms: 1e4,
|
|
@@ -714,6 +715,11 @@ var runtime_policy_generated_default = {
|
|
|
714
715
|
trading: {
|
|
715
716
|
engine: {
|
|
716
717
|
client_runtime: {
|
|
718
|
+
candle_series: {
|
|
719
|
+
full_refresh_seconds: 600,
|
|
720
|
+
overlap_candles: 2,
|
|
721
|
+
delta_max_candles: 60
|
|
722
|
+
},
|
|
717
723
|
reconcile: {
|
|
718
724
|
tick_interval_seconds: 30,
|
|
719
725
|
wake_jitter_max_ms: 1e3,
|
|
@@ -756,9 +762,15 @@ var runtime_policy_generated_default = {
|
|
|
756
762
|
device_rounds_per_beat: 6,
|
|
757
763
|
device_retry_seconds: 60
|
|
758
764
|
},
|
|
765
|
+
resting_order_fills: {
|
|
766
|
+
check_seconds: 60,
|
|
767
|
+
idle_recheck_seconds: 600,
|
|
768
|
+
device_rounds_per_sweep: 4
|
|
769
|
+
},
|
|
759
770
|
panel_reads: {
|
|
760
771
|
device_open_orders_reuse_seconds: 2,
|
|
761
|
-
all_view_profile_concurrency: 2
|
|
772
|
+
all_view_profile_concurrency: 2,
|
|
773
|
+
display_account_fresh_seconds: 60
|
|
762
774
|
},
|
|
763
775
|
account_stream: {
|
|
764
776
|
fill_forward_interval_ms: 1e3,
|
|
@@ -1124,6 +1136,8 @@ var runtime_policy_generated_default = {
|
|
|
1124
1136
|
reserve_margin_weight: 40,
|
|
1125
1137
|
demand_bucket_seconds: 60,
|
|
1126
1138
|
demand_horizon_seconds: 3600,
|
|
1139
|
+
rescue_quiet_release_minutes: 5,
|
|
1140
|
+
rescue_quiet_release_gap_multiplier: 2,
|
|
1127
1141
|
capacity_cut_percent: 70,
|
|
1128
1142
|
capacity_min_weight: 240,
|
|
1129
1143
|
capacity_recovery_weight_per_minute: 120,
|
|
@@ -1223,6 +1237,7 @@ var runtime_policy_generated_default = {
|
|
|
1223
1237
|
}
|
|
1224
1238
|
},
|
|
1225
1239
|
cache: {
|
|
1240
|
+
available_assets_ttl_seconds: 300,
|
|
1226
1241
|
order_history_ttl_seconds: 30,
|
|
1227
1242
|
twap_history_ttl_seconds: 30,
|
|
1228
1243
|
twap_fills_ttl_seconds: 30,
|
|
@@ -1428,6 +1443,11 @@ var HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE = {
|
|
|
1428
1443
|
"userNonFundingLedgerUpdates"
|
|
1429
1444
|
]
|
|
1430
1445
|
};
|
|
1446
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE = {
|
|
1447
|
+
"base_weight": 20,
|
|
1448
|
+
"rows_per_extra_weight": 60,
|
|
1449
|
+
"max_rows": 5e3
|
|
1450
|
+
};
|
|
1431
1451
|
var ERROR_REDACTION_RULES = {
|
|
1432
1452
|
"redacted_value": "[REDACTED]",
|
|
1433
1453
|
"fragments": {
|
|
@@ -1514,7 +1534,11 @@ var INFERENCE_HOST_RANDOM_BYTES = {
|
|
|
1514
1534
|
OAUTH_STATE: 32,
|
|
1515
1535
|
OAUTH_CALLBACK_PATH: 16
|
|
1516
1536
|
};
|
|
1537
|
+
var UINT32_RANGE = 2 ** 32;
|
|
1517
1538
|
var HYPERLIQUID_TIF_GTC = HYPERLIQUID_EXCHANGE_SPECIFICATION.good_til_cancelled_time_in_force;
|
|
1539
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_BASE_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.base_weight;
|
|
1540
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_ROWS_PER_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.rows_per_extra_weight;
|
|
1541
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_MAX_ROWS = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.max_rows;
|
|
1518
1542
|
var HYPERLIQUID_ROW_WEIGHTED_INFO_REQUESTS = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.request_types;
|
|
1519
1543
|
var HYPERLIQUID_ROW_WEIGHTED_INFO_BASE_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.base_weight;
|
|
1520
1544
|
var HYPERLIQUID_INFO_ROWS_PER_EXTRA_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.rows_per_extra_weight;
|
|
@@ -2887,6 +2911,21 @@ var writeCliReleaseRejection = async (path, rejection, privateRoot) => {
|
|
|
2887
2911
|
privateRoot ? { defaultRoot: privateRoot } : {}
|
|
2888
2912
|
);
|
|
2889
2913
|
};
|
|
2914
|
+
var resolveCliUpdateRegistry = (env) => {
|
|
2915
|
+
const configured = String(env.VTX_CLI_UPDATE_REGISTRY || "").trim().replace(/\/+$/u, "");
|
|
2916
|
+
if (!configured) return OFFICIAL_NPM_REGISTRY;
|
|
2917
|
+
let url;
|
|
2918
|
+
try {
|
|
2919
|
+
url = new URL(configured);
|
|
2920
|
+
} catch {
|
|
2921
|
+
throw new Error("VTX_CLI_UPDATE_REGISTRY is not a URL.");
|
|
2922
|
+
}
|
|
2923
|
+
const loopback = ["127.0.0.1", "localhost", "[::1]"].includes(url.hostname);
|
|
2924
|
+
if (url.protocol !== "https:" && !(url.protocol === "http:" && loopback)) {
|
|
2925
|
+
throw new Error("VTX_CLI_UPDATE_REGISTRY must be https, or http on loopback.");
|
|
2926
|
+
}
|
|
2927
|
+
return configured;
|
|
2928
|
+
};
|
|
2890
2929
|
|
|
2891
2930
|
// lib/inference-host/service-launcher-state.ts
|
|
2892
2931
|
import { access as access2, readFile as readFile3, rm as rm3 } from "node:fs/promises";
|
|
@@ -3043,7 +3082,8 @@ var appendBootstrapLog = async (path, event, fields = {}) => {
|
|
|
3043
3082
|
{ encoding: "utf8", mode: OWNER_ONLY_FILE_MODE }
|
|
3044
3083
|
);
|
|
3045
3084
|
};
|
|
3046
|
-
var fetchLatestRelease = async (fetchImpl, signal) => await fetchLatestCliRelease(fetchImpl, {
|
|
3085
|
+
var fetchLatestRelease = async (fetchImpl, registry, signal) => await fetchLatestCliRelease(fetchImpl, {
|
|
3086
|
+
registry,
|
|
3047
3087
|
timeoutMs: runtime_policy_generated_default.external_inference.service.update_registry_timeout_ms,
|
|
3048
3088
|
signal
|
|
3049
3089
|
});
|
|
@@ -3054,10 +3094,11 @@ var atomicWriteSelection = async (manifestPath, selection) => {
|
|
|
3054
3094
|
`
|
|
3055
3095
|
);
|
|
3056
3096
|
};
|
|
3057
|
-
var stageRelease = async (manifestPath, target, executable, platform, runCommand, now) => {
|
|
3097
|
+
var stageRelease = async (manifestPath, target, registry, executable, platform, runCommand, now) => {
|
|
3058
3098
|
const staged = await stageCliRelease({
|
|
3059
3099
|
releasesPath: releasesPathFor(manifestPath),
|
|
3060
3100
|
target,
|
|
3101
|
+
registry,
|
|
3061
3102
|
executable,
|
|
3062
3103
|
platform,
|
|
3063
3104
|
runCommand,
|
|
@@ -3075,12 +3116,13 @@ var stageRelease = async (manifestPath, target, executable, platform, runCommand
|
|
|
3075
3116
|
};
|
|
3076
3117
|
var updateSelection = async (manifestPath, manifest, dependencies) => {
|
|
3077
3118
|
const active = await parseSelection(manifestPath);
|
|
3119
|
+
const registry = resolveCliUpdateRegistry(dependencies.env);
|
|
3078
3120
|
let latest = null;
|
|
3079
3121
|
let lastError = null;
|
|
3080
3122
|
for (let attempt = 0; attempt < UPDATE_ATTEMPTS; attempt += 1) {
|
|
3081
3123
|
try {
|
|
3082
3124
|
if (dependencies.signal?.aborted) throw new Error("service_update_cancelled");
|
|
3083
|
-
latest = await fetchLatestRelease(dependencies.fetch, dependencies.signal);
|
|
3125
|
+
latest = await fetchLatestRelease(dependencies.fetch, registry, dependencies.signal);
|
|
3084
3126
|
break;
|
|
3085
3127
|
} catch (error) {
|
|
3086
3128
|
lastError = error;
|
|
@@ -3104,6 +3146,7 @@ var updateSelection = async (manifestPath, manifest, dependencies) => {
|
|
|
3104
3146
|
candidate: await stageRelease(
|
|
3105
3147
|
manifestPath,
|
|
3106
3148
|
latest,
|
|
3149
|
+
registry,
|
|
3107
3150
|
manifest.executable,
|
|
3108
3151
|
dependencies.platform,
|
|
3109
3152
|
dependencies.runCommand,
|
|
@@ -3211,6 +3254,7 @@ var runInferenceHostServiceBootstrap = async (manifestPathValue, dependencies =
|
|
|
3211
3254
|
});
|
|
3212
3255
|
const runSupervisor = dependencies.runSupervisor ?? defaultRunSupervisor;
|
|
3213
3256
|
const updateDependencies = {
|
|
3257
|
+
env: dependencies.env ?? process.env,
|
|
3214
3258
|
fetch: dependencies.fetch ?? fetch,
|
|
3215
3259
|
now,
|
|
3216
3260
|
platform: dependencies.platform ?? process.platform,
|
|
@@ -379,6 +379,7 @@ var runtime_policy_generated_default = {
|
|
|
379
379
|
all_profile_account_summary_poll_min_ms: 1e3,
|
|
380
380
|
all_profile_trade_history_poll_min_ms: 1e3,
|
|
381
381
|
all_profile_live_refresh_idle_timeout_ms: 5e3,
|
|
382
|
+
all_profile_server_sibling_open_orders_per_refresh: 2,
|
|
382
383
|
copy_trading_message_limit: 25,
|
|
383
384
|
browser_account_refresh_min_interval_ms: 1250,
|
|
384
385
|
browser_account_watchdog_poll_min_ms: 1e4,
|
|
@@ -698,6 +699,11 @@ var runtime_policy_generated_default = {
|
|
|
698
699
|
trading: {
|
|
699
700
|
engine: {
|
|
700
701
|
client_runtime: {
|
|
702
|
+
candle_series: {
|
|
703
|
+
full_refresh_seconds: 600,
|
|
704
|
+
overlap_candles: 2,
|
|
705
|
+
delta_max_candles: 60
|
|
706
|
+
},
|
|
701
707
|
reconcile: {
|
|
702
708
|
tick_interval_seconds: 30,
|
|
703
709
|
wake_jitter_max_ms: 1e3,
|
|
@@ -740,9 +746,15 @@ var runtime_policy_generated_default = {
|
|
|
740
746
|
device_rounds_per_beat: 6,
|
|
741
747
|
device_retry_seconds: 60
|
|
742
748
|
},
|
|
749
|
+
resting_order_fills: {
|
|
750
|
+
check_seconds: 60,
|
|
751
|
+
idle_recheck_seconds: 600,
|
|
752
|
+
device_rounds_per_sweep: 4
|
|
753
|
+
},
|
|
743
754
|
panel_reads: {
|
|
744
755
|
device_open_orders_reuse_seconds: 2,
|
|
745
|
-
all_view_profile_concurrency: 2
|
|
756
|
+
all_view_profile_concurrency: 2,
|
|
757
|
+
display_account_fresh_seconds: 60
|
|
746
758
|
},
|
|
747
759
|
account_stream: {
|
|
748
760
|
fill_forward_interval_ms: 1e3,
|
|
@@ -1108,6 +1120,8 @@ var runtime_policy_generated_default = {
|
|
|
1108
1120
|
reserve_margin_weight: 40,
|
|
1109
1121
|
demand_bucket_seconds: 60,
|
|
1110
1122
|
demand_horizon_seconds: 3600,
|
|
1123
|
+
rescue_quiet_release_minutes: 5,
|
|
1124
|
+
rescue_quiet_release_gap_multiplier: 2,
|
|
1111
1125
|
capacity_cut_percent: 70,
|
|
1112
1126
|
capacity_min_weight: 240,
|
|
1113
1127
|
capacity_recovery_weight_per_minute: 120,
|
|
@@ -1207,6 +1221,7 @@ var runtime_policy_generated_default = {
|
|
|
1207
1221
|
}
|
|
1208
1222
|
},
|
|
1209
1223
|
cache: {
|
|
1224
|
+
available_assets_ttl_seconds: 300,
|
|
1210
1225
|
order_history_ttl_seconds: 30,
|
|
1211
1226
|
twap_history_ttl_seconds: 30,
|
|
1212
1227
|
twap_fills_ttl_seconds: 30,
|
|
@@ -1412,6 +1427,11 @@ var HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE = {
|
|
|
1412
1427
|
"userNonFundingLedgerUpdates"
|
|
1413
1428
|
]
|
|
1414
1429
|
};
|
|
1430
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE = {
|
|
1431
|
+
"base_weight": 20,
|
|
1432
|
+
"rows_per_extra_weight": 60,
|
|
1433
|
+
"max_rows": 5e3
|
|
1434
|
+
};
|
|
1415
1435
|
|
|
1416
1436
|
// lib/constants.ts
|
|
1417
1437
|
var MS_PER_SECOND = 1e3;
|
|
@@ -1450,7 +1470,11 @@ var INFERENCE_HOST_RANDOM_BYTES = {
|
|
|
1450
1470
|
OAUTH_STATE: 32,
|
|
1451
1471
|
OAUTH_CALLBACK_PATH: 16
|
|
1452
1472
|
};
|
|
1473
|
+
var UINT32_RANGE = 2 ** 32;
|
|
1453
1474
|
var HYPERLIQUID_TIF_GTC = HYPERLIQUID_EXCHANGE_SPECIFICATION.good_til_cancelled_time_in_force;
|
|
1475
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_BASE_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.base_weight;
|
|
1476
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_ROWS_PER_WEIGHT = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.rows_per_extra_weight;
|
|
1477
|
+
var HYPERLIQUID_CANDLE_SNAPSHOT_MAX_ROWS = HYPERLIQUID_CANDLE_SNAPSHOT_CHARGE.max_rows;
|
|
1454
1478
|
var HYPERLIQUID_ROW_WEIGHTED_INFO_REQUESTS = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.request_types;
|
|
1455
1479
|
var HYPERLIQUID_ROW_WEIGHTED_INFO_BASE_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.base_weight;
|
|
1456
1480
|
var HYPERLIQUID_INFO_ROWS_PER_EXTRA_WEIGHT = HYPERLIQUID_ROW_WEIGHTED_INFO_CHARGE.rows_per_extra_weight;
|