@vtxmacro/cli 2026.9.50 → 2026.9.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/vtx-service-bootstrap.js +1 -6
- package/bin/vtx.js +52 -40
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ import { fileURLToPath } from "node:url";
|
|
|
16
16
|
// agent-cli-release.json
|
|
17
17
|
var agent_cli_release_default = {
|
|
18
18
|
package_name: "@vtxmacro/cli",
|
|
19
|
-
package_version: "2026.9.
|
|
19
|
+
package_version: "2026.9.51",
|
|
20
20
|
codex_package_name: "@openai/codex",
|
|
21
21
|
codex_version: "0.153.3",
|
|
22
22
|
copilot_sdk_package_name: "@github/copilot-sdk",
|
|
@@ -296,11 +296,6 @@ import { constants } from "node:fs";
|
|
|
296
296
|
import { lstat, mkdir, open, readFile, realpath, rename, rm } from "node:fs/promises";
|
|
297
297
|
import { homedir } from "node:os";
|
|
298
298
|
import { dirname, isAbsolute, join, relative, resolve, win32 as windowsPath } from "node:path";
|
|
299
|
-
|
|
300
|
-
// lib/inference-host/mcp-transport.ts
|
|
301
|
-
import { Agent, fetch as undiciFetch } from "undici";
|
|
302
|
-
|
|
303
|
-
// lib/inference-host/config.ts
|
|
304
299
|
var MAX_INFERENCE_PRIVATE_FILE_BYTES = 16 * 1024 * 1024;
|
|
305
300
|
var WINDOWS_PRIVATE_ACL_BROKER_SCRIPT = `$ErrorActionPreference='Stop'
|
|
306
301
|
$ProgressPreference='SilentlyContinue'
|
package/bin/vtx.js
CHANGED
|
@@ -77,7 +77,7 @@ var init_agent_cli_release = __esm({
|
|
|
77
77
|
"agent-cli-release.json"() {
|
|
78
78
|
agent_cli_release_default = {
|
|
79
79
|
package_name: "@vtxmacro/cli",
|
|
80
|
-
package_version: "2026.9.
|
|
80
|
+
package_version: "2026.9.51",
|
|
81
81
|
codex_package_name: "@openai/codex",
|
|
82
82
|
codex_version: "0.153.3",
|
|
83
83
|
copilot_sdk_package_name: "@github/copilot-sdk",
|
|
@@ -17580,12 +17580,9 @@ var init_dist = __esm({
|
|
|
17580
17580
|
}
|
|
17581
17581
|
});
|
|
17582
17582
|
|
|
17583
|
-
// lib/inference-host/mcp-transport.ts
|
|
17584
|
-
import { readFileSync } from "node:fs";
|
|
17585
|
-
import { X509Certificate } from "node:crypto";
|
|
17583
|
+
// lib/inference-host/mcp-transport-config.ts
|
|
17586
17584
|
import { isIP } from "node:net";
|
|
17587
17585
|
import { isAbsolute, win32 } from "node:path";
|
|
17588
|
-
import { Agent, fetch as undiciFetch } from "undici";
|
|
17589
17586
|
function resolveInferenceMcpDirectTransport(env) {
|
|
17590
17587
|
const address = String(env.VTX_INFERENCE_HOST_MCP_CONNECT_ADDRESS || "").trim();
|
|
17591
17588
|
const caFile = String(env.VTX_INFERENCE_HOST_MCP_CA_FILE || "").trim();
|
|
@@ -17595,40 +17592,8 @@ function resolveInferenceMcpDirectTransport(env) {
|
|
|
17595
17592
|
}
|
|
17596
17593
|
return { address, caFile };
|
|
17597
17594
|
}
|
|
17598
|
-
|
|
17599
|
-
|
|
17600
|
-
const canonical = new URL(endpoint);
|
|
17601
|
-
if (canonical.protocol !== "https:" || canonical.username || canonical.password || canonical.pathname !== "/insights/mcp" || canonical.search || canonical.hash || isIP(canonical.hostname) || !isIP(direct.address)) {
|
|
17602
|
-
throw new Error("Direct inference MCP transport requires a canonical HTTPS MCP hostname.");
|
|
17603
|
-
}
|
|
17604
|
-
const ca = readFileSync(direct.caFile, "utf8");
|
|
17605
|
-
new X509Certificate(ca);
|
|
17606
|
-
const agent = new Agent({
|
|
17607
|
-
connect: {
|
|
17608
|
-
ca,
|
|
17609
|
-
rejectUnauthorized: true,
|
|
17610
|
-
servername: canonical.hostname,
|
|
17611
|
-
lookup: (_hostname, options, callback) => {
|
|
17612
|
-
const address = { address: direct.address, family: isIP(direct.address) };
|
|
17613
|
-
if (options.all) callback(null, [address]);
|
|
17614
|
-
else callback(null, address.address, address.family);
|
|
17615
|
-
}
|
|
17616
|
-
}
|
|
17617
|
-
});
|
|
17618
|
-
const dispatchFetch = fetchImpl === fetch ? undiciFetch : fetchImpl;
|
|
17619
|
-
const routedFetch = (input, init2) => {
|
|
17620
|
-
const url2 = new URL(input instanceof Request ? input.url : String(input));
|
|
17621
|
-
if (url2.href !== canonical.href) {
|
|
17622
|
-
return Promise.reject(new Error("Direct inference transport cannot send requests outside its MCP endpoint."));
|
|
17623
|
-
}
|
|
17624
|
-
return dispatchFetch(input, { ...init2, redirect: "error", dispatcher: agent });
|
|
17625
|
-
};
|
|
17626
|
-
return { fetch: routedFetch, route: "direct", close: async () => {
|
|
17627
|
-
await agent.destroy();
|
|
17628
|
-
} };
|
|
17629
|
-
}
|
|
17630
|
-
var init_mcp_transport = __esm({
|
|
17631
|
-
"lib/inference-host/mcp-transport.ts"() {
|
|
17595
|
+
var init_mcp_transport_config = __esm({
|
|
17596
|
+
"lib/inference-host/mcp-transport-config.ts"() {
|
|
17632
17597
|
"use strict";
|
|
17633
17598
|
init_define_VTX_EXO_POLICY();
|
|
17634
17599
|
init_define_VTX_GROK_POLICY();
|
|
@@ -18217,7 +18182,7 @@ var init_config = __esm({
|
|
|
18217
18182
|
init_define_VTX_GROK_POLICY();
|
|
18218
18183
|
init_define_VTX_PI_MODEL_POLICY();
|
|
18219
18184
|
init_dist();
|
|
18220
|
-
|
|
18185
|
+
init_mcp_transport_config();
|
|
18221
18186
|
loadInferenceReceiptDurabilityTimeoutMs = async () => {
|
|
18222
18187
|
let configured;
|
|
18223
18188
|
if (true) {
|
|
@@ -20667,6 +20632,53 @@ var init_runtime_policy_generated = __esm({
|
|
|
20667
20632
|
}
|
|
20668
20633
|
});
|
|
20669
20634
|
|
|
20635
|
+
// lib/inference-host/mcp-transport.ts
|
|
20636
|
+
import { readFileSync } from "node:fs";
|
|
20637
|
+
import { X509Certificate } from "node:crypto";
|
|
20638
|
+
import { isIP as isIP2 } from "node:net";
|
|
20639
|
+
import { Agent, fetch as undiciFetch } from "undici";
|
|
20640
|
+
function createInferenceMcpTransport(endpoint, direct, fetchImpl = fetch) {
|
|
20641
|
+
if (!direct) return { fetch: fetchImpl, route: "public", close: async () => void 0 };
|
|
20642
|
+
const canonical = new URL(endpoint);
|
|
20643
|
+
if (canonical.protocol !== "https:" || canonical.username || canonical.password || canonical.pathname !== "/insights/mcp" || canonical.search || canonical.hash || isIP2(canonical.hostname) || !isIP2(direct.address)) {
|
|
20644
|
+
throw new Error("Direct inference MCP transport requires a canonical HTTPS MCP hostname.");
|
|
20645
|
+
}
|
|
20646
|
+
const ca = readFileSync(direct.caFile, "utf8");
|
|
20647
|
+
new X509Certificate(ca);
|
|
20648
|
+
const agent = new Agent({
|
|
20649
|
+
connect: {
|
|
20650
|
+
ca,
|
|
20651
|
+
rejectUnauthorized: true,
|
|
20652
|
+
servername: canonical.hostname,
|
|
20653
|
+
lookup: (_hostname, options, callback) => {
|
|
20654
|
+
const address = { address: direct.address, family: isIP2(direct.address) };
|
|
20655
|
+
if (options.all) callback(null, [address]);
|
|
20656
|
+
else callback(null, address.address, address.family);
|
|
20657
|
+
}
|
|
20658
|
+
}
|
|
20659
|
+
});
|
|
20660
|
+
const dispatchFetch = fetchImpl === fetch ? undiciFetch : fetchImpl;
|
|
20661
|
+
const routedFetch = (input, init2) => {
|
|
20662
|
+
const url2 = new URL(input instanceof Request ? input.url : String(input));
|
|
20663
|
+
if (url2.href !== canonical.href) {
|
|
20664
|
+
return Promise.reject(new Error("Direct inference transport cannot send requests outside its MCP endpoint."));
|
|
20665
|
+
}
|
|
20666
|
+
return dispatchFetch(input, { ...init2, redirect: "error", dispatcher: agent });
|
|
20667
|
+
};
|
|
20668
|
+
return { fetch: routedFetch, route: "direct", close: async () => {
|
|
20669
|
+
await agent.destroy();
|
|
20670
|
+
} };
|
|
20671
|
+
}
|
|
20672
|
+
var init_mcp_transport = __esm({
|
|
20673
|
+
"lib/inference-host/mcp-transport.ts"() {
|
|
20674
|
+
"use strict";
|
|
20675
|
+
init_define_VTX_EXO_POLICY();
|
|
20676
|
+
init_define_VTX_GROK_POLICY();
|
|
20677
|
+
init_define_VTX_PI_MODEL_POLICY();
|
|
20678
|
+
init_mcp_transport_config();
|
|
20679
|
+
}
|
|
20680
|
+
});
|
|
20681
|
+
|
|
20670
20682
|
// lib/inference-host/mcp-client.ts
|
|
20671
20683
|
var EXTERNAL_INFERENCE_MCP_PROTOCOL_VERSION, EXTERNAL_INFERENCE_AUTOMATED_HOST_TOOLS, EXTERNAL_INFERENCE_OPERATIONAL_TOOLS, ClaimTiming, ExternalInferenceMcpError, DEFAULT_REQUEST_TIMEOUT_MS, MAX_RETRY_AFTER_MS, PUBLIC_TOOL_ERROR_PREFIX, parseRetryAfterMs, identifierSchema2, safeCodeSchema2, publicFailureCodeSchema, publicToolErrorSchema, structuredPublicToolErrorSchema, parsePublicToolError, hostMutationResultSchema, attemptStartResultSchema, agentConnectResultSchema, agentHeartbeatResultSchema, timestampSchema2, positiveGenerationSchema, jsonObjectSchema, agentAssignmentNextArgumentsSchema, agentDataCapabilityDescriptorSchema, agentAssignmentNextResultSchema, agentAssignmentHeartbeatArgumentsSchema, agentAssignmentHeartbeatResultSchema, agentDataCallArgumentsSchema, agentDataCallResultSchema, agentDecisionSubmitArgumentsSchema, agentDecisionSubmitResultSchema, agentDecisionStatusArgumentsSchema, agentDecisionStatusResultSchema, agentAssignmentReleaseArgumentsSchema, agentAssignmentReleaseResultSchema, jobCompletionResultSchema, jobFailureResultSchema, toolContracts, discoveryResultSchema, toolListResultSchema, inlineStructuredContentSchema, protocolMeta, parseJsonDocument, parseSseDocuments, parseResponseDocuments, exactOperationalInventory, exactJson, invalidBoundResult, verifyToolResult, ExternalInferenceMcpClient;
|
|
20672
20684
|
var init_mcp_client = __esm({
|