@vtxmacro/cli 2026.8.57 → 2026.8.59
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 -1
- package/bin/vtx.js +39 -6
- 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.8.
|
|
19
|
+
package_version: "2026.8.59",
|
|
20
20
|
codex_package_name: "@openai/codex",
|
|
21
21
|
codex_version: "0.147.0",
|
|
22
22
|
copilot_sdk_package_name: "@github/copilot-sdk",
|
package/bin/vtx.js
CHANGED
|
@@ -47,7 +47,7 @@ var init_agent_cli_release = __esm({
|
|
|
47
47
|
"agent-cli-release.json"() {
|
|
48
48
|
agent_cli_release_default = {
|
|
49
49
|
package_name: "@vtxmacro/cli",
|
|
50
|
-
package_version: "2026.8.
|
|
50
|
+
package_version: "2026.8.59",
|
|
51
51
|
codex_package_name: "@openai/codex",
|
|
52
52
|
codex_version: "0.147.0",
|
|
53
53
|
copilot_sdk_package_name: "@github/copilot-sdk",
|
|
@@ -18157,7 +18157,7 @@ ${body}`;
|
|
|
18157
18157
|
});
|
|
18158
18158
|
|
|
18159
18159
|
// lib/inference-host/mcp-client.ts
|
|
18160
|
-
var EXTERNAL_INFERENCE_MCP_PROTOCOL_VERSION, EXTERNAL_INFERENCE_AUTOMATED_HOST_TOOLS, EXTERNAL_INFERENCE_OPERATIONAL_TOOLS, ExternalInferenceMcpError, DEFAULT_REQUEST_TIMEOUT_MS, MAX_RETRY_AFTER_MS, parseRetryAfterMs, identifierSchema2, safeCodeSchema2, 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;
|
|
18160
|
+
var EXTERNAL_INFERENCE_MCP_PROTOCOL_VERSION, EXTERNAL_INFERENCE_AUTOMATED_HOST_TOOLS, EXTERNAL_INFERENCE_OPERATIONAL_TOOLS, 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;
|
|
18161
18161
|
var init_mcp_client = __esm({
|
|
18162
18162
|
"lib/inference-host/mcp-client.ts"() {
|
|
18163
18163
|
"use strict";
|
|
@@ -18196,6 +18196,7 @@ var init_mcp_client = __esm({
|
|
|
18196
18196
|
this.definitivelyNotApplied = options.definitivelyNotApplied ?? false;
|
|
18197
18197
|
this.httpStatusCode = options.httpStatusCode ?? null;
|
|
18198
18198
|
this.retryAfterMs = options.retryAfterMs ?? null;
|
|
18199
|
+
this.serverFailureCode = options.serverFailureCode ?? null;
|
|
18199
18200
|
this.retryable = options.retryable ?? [
|
|
18200
18201
|
"network_error",
|
|
18201
18202
|
"transport_rejected",
|
|
@@ -18209,6 +18210,7 @@ var init_mcp_client = __esm({
|
|
|
18209
18210
|
};
|
|
18210
18211
|
DEFAULT_REQUEST_TIMEOUT_MS = 15e3;
|
|
18211
18212
|
MAX_RETRY_AFTER_MS = 24 * 60 * 60 * 1e3;
|
|
18213
|
+
PUBLIC_TOOL_ERROR_PREFIX = "VTX_INSIGHTS_ERROR_V1:";
|
|
18212
18214
|
parseRetryAfterMs = (response, observedAtMs = Date.now()) => {
|
|
18213
18215
|
const value = response.headers.get("retry-after")?.trim();
|
|
18214
18216
|
if (!value) return null;
|
|
@@ -18219,6 +18221,27 @@ var init_mcp_client = __esm({
|
|
|
18219
18221
|
};
|
|
18220
18222
|
identifierSchema2 = external_exports.string().min(1).max(128);
|
|
18221
18223
|
safeCodeSchema2 = external_exports.string().min(1).max(96);
|
|
18224
|
+
publicFailureCodeSchema = external_exports.string().regex(/^[a-z0-9][a-z0-9._-]{0,95}$/u);
|
|
18225
|
+
publicToolErrorSchema = external_exports.object({
|
|
18226
|
+
failure_code: publicFailureCodeSchema,
|
|
18227
|
+
phase: safeCodeSchema2,
|
|
18228
|
+
retryable: external_exports.boolean(),
|
|
18229
|
+
terminal_before_execution: external_exports.boolean()
|
|
18230
|
+
}).passthrough();
|
|
18231
|
+
structuredPublicToolErrorSchema = publicToolErrorSchema.extend({
|
|
18232
|
+
schema_version: external_exports.literal("vtx_insights_tool_error_v1")
|
|
18233
|
+
});
|
|
18234
|
+
parsePublicToolError = (text) => {
|
|
18235
|
+
const marker = text.lastIndexOf(PUBLIC_TOOL_ERROR_PREFIX);
|
|
18236
|
+
if (marker < 0) return null;
|
|
18237
|
+
const raw = text.slice(marker + PUBLIC_TOOL_ERROR_PREFIX.length).trim();
|
|
18238
|
+
try {
|
|
18239
|
+
const parsed = publicToolErrorSchema.safeParse(JSON.parse(raw));
|
|
18240
|
+
return parsed.success ? parsed.data : null;
|
|
18241
|
+
} catch {
|
|
18242
|
+
return null;
|
|
18243
|
+
}
|
|
18244
|
+
};
|
|
18222
18245
|
hostMutationResultSchema = external_exports.strictObject({
|
|
18223
18246
|
host: hostStatusReadSchema,
|
|
18224
18247
|
replayed: external_exports.boolean()
|
|
@@ -18754,10 +18777,17 @@ var init_mcp_client = __esm({
|
|
|
18754
18777
|
}).passthrough().parse(rawResult);
|
|
18755
18778
|
if (callResult.isError === true) {
|
|
18756
18779
|
const errorText = (callResult.content ?? []).filter((block) => block.type === "text").map((block) => block.text ?? "").join("\n");
|
|
18780
|
+
const structuredPublicToolError = structuredPublicToolErrorSchema.safeParse(
|
|
18781
|
+
callResult.structuredContent
|
|
18782
|
+
);
|
|
18783
|
+
const structuredDocument = callResult.structuredContent !== null && typeof callResult.structuredContent === "object" && !Array.isArray(callResult.structuredContent) ? callResult.structuredContent : null;
|
|
18784
|
+
const hasStructuredPublicToolErrorMarker = structuredDocument?.schema_version === "vtx_insights_tool_error_v1";
|
|
18785
|
+
const publicToolError = structuredPublicToolError.success ? structuredPublicToolError.data : hasStructuredPublicToolErrorMarker ? null : parsePublicToolError(errorText);
|
|
18786
|
+
const hasPublicToolErrorMarker = hasStructuredPublicToolErrorMarker || errorText.includes(PUBLIC_TOOL_ERROR_PREFIX);
|
|
18787
|
+
const completionEvidenceExpired = name === "inference.job.complete" && (publicToolError ? publicToolError.failure_code === "completion_evidence_expired" && publicToolError.phase === "validation" && publicToolError.retryable === false && publicToolError.terminal_before_execution === true : !hasPublicToolErrorMarker && errorText.includes("External inference completion evidence window expired"));
|
|
18757
18788
|
const definitivelyNotApplied = (name === "inference.host.register" || name === "inference.host.advertise") && (errorText.includes("Advertisement time is outside the allowed clock skew.") || errorText.includes("Advertisement is already expired.")) || (name === "inference.agent.next" || name === "inference.agent.heartbeat") && (errorText.includes("Advertisement time is outside the allowed clock skew.") || errorText.includes("Advertisement is already expired.") || errorText.includes("Heartbeat time is outside the allowed clock skew.")) || name === "inference.host.heartbeat" && errorText.includes("Heartbeat time is outside the allowed clock skew.") || name === "inference.job.claim" && (errorText.includes(
|
|
18758
18789
|
"External inference claim request was not applied before its generation became stale"
|
|
18759
|
-
) || errorText.includes("External inference host advertisement is expired or superseded")) || name === "inference.job.complete" &&
|
|
18760
|
-
const completionEvidenceExpired = name === "inference.job.complete" && errorText.includes("External inference completion evidence window expired");
|
|
18790
|
+
) || errorText.includes("External inference host advertisement is expired or superseded")) || name === "inference.job.complete" && completionEvidenceExpired;
|
|
18761
18791
|
const retryableInfrastructureRejection = EXTERNAL_INFERENCE_AUTOMATED_HOST_TOOLS.includes(name) && (errorText.includes("External inference polling is at its configured concurrency limit") || errorText.includes("The Insights action reached the response timeout") || errorText.includes("Insights capability failed without exposing private runtime details"));
|
|
18762
18792
|
const retryableClaimRejection = name === "inference.job.claim" && !definitivelyNotApplied && (retryableInfrastructureRejection || errorText.includes("External inference host is not live enough to claim work") || errorText.includes("External inference host request generation is stale") || errorText.includes("External inference claim runtime fence is stale"));
|
|
18763
18793
|
const retryableHeartbeatClockSkew = name === "inference.host.heartbeat" && definitivelyNotApplied;
|
|
@@ -18775,7 +18805,8 @@ var init_mcp_client = __esm({
|
|
|
18775
18805
|
// API rotation the MCP server can return a tool error after the
|
|
18776
18806
|
// request reached the application boundary, so retain and replay
|
|
18777
18807
|
// the exact request unless the server proves it was not applied.
|
|
18778
|
-
retryable: retryableInfrastructureRejection || retryableClaimRejection || retryableHeartbeatClockSkew || retryableAdvertisementClockSkew
|
|
18808
|
+
retryable: retryableInfrastructureRejection || retryableClaimRejection || retryableHeartbeatClockSkew || retryableAdvertisementClockSkew,
|
|
18809
|
+
serverFailureCode: publicToolError?.failure_code ?? null
|
|
18779
18810
|
}
|
|
18780
18811
|
);
|
|
18781
18812
|
}
|
|
@@ -32427,7 +32458,7 @@ function createDefaultInferenceHostRunnerDependencies(options) {
|
|
|
32427
32458
|
envelopePublicKey: options.envelopePublicKey
|
|
32428
32459
|
};
|
|
32429
32460
|
}
|
|
32430
|
-
var import_ajv, RUNTIME_RECEIPT_SCHEMA_VERSION, ATTEMPT_RECEIPT_SCHEMA_VERSION, DEFAULT_ADVERTISEMENT_TTL_MS, DEFAULT_ADVERTISEMENT_REFRESH_LEAD_MS, DEFAULT_HOST_HEARTBEAT_MS, DEFAULT_PROVIDER_RATE_LIMIT_REFRESH_MS, DEFAULT_ATTEMPT_HEARTBEAT_MS, DEFAULT_DRAIN_TIMEOUT_MS, DEFAULT_REMOTE_RETRY_LIMIT, MIN_SLEEP_MS, MIN_HOST_HEARTBEAT_GAP_DIAGNOSTIC_MS, HOST_HEARTBEAT_GAP_DIAGNOSTIC_FACTOR, DEFAULT_CODEX_ACCOUNT_COOLDOWN_MS, DEFAULT_AGENT_RATE_LIMIT_COOLDOWN_MS, DEFAULT_AGENT_QUOTA_COOLDOWN_MS, DEFAULT_AGENT_TRANSIENT_COOLDOWN_MS, MIN_CLAIM_START_WINDOW_MS, MAX_ATTEMPT_START_RETRY_DELAY_MS, UNBOUNDED_AVAILABLE_SLOTS, buildInferenceAdvertisedModels, summarizeInferenceHostRuntimeRecovery, FileInferenceHostRuntimeReceiptStore, InferenceHostRecoveryRequiredError, InferenceHostRunnerError, defaultSleep, abortError, settlesWithin, defaultRegisterSignalHandlers, safeInteger, exactObjectKeys, validIso, validateAttemptReceipt, validateRuntimeReceipt, sha256, stableOperationId, buildAttemptStartRequest, isoAt, providerWeeklyQuotaFromRateLimits, finitePositiveOption, validateRunnerOptions, assertLocalCredentialIdentity, retryableRemoteError, remoteRetryAfterMs, controlPlaneFatal, defaultValidateOutput, objectRecord, positiveUtf8ByteLimit, assertCompilableOutputSchema, parseOutputContract, membershipFailureDisposition, safeFailureCode, attemptStartRetryFallbackMs, exactJson2, runnerIdentityMismatch, assertAdvertisementResult, assertHostHeartbeatResult, assertClaimResult, assertStartResult, assertJobHeartbeatResult, assertTerminalResult, isDefinitiveCompletionEvidenceExpiry, classifyFailure, ambiguousHeartbeatTransport, reportedTokenUsage, reportedUsage, InferenceHostRunner, createInferenceAgentControlClient, INFERENCE_AGENT_SYSTEM_PROMPT, INFERENCE_AGENT_WAKE_SCHEMA, parseInferenceAgentWake, InferenceAgentRuntime;
|
|
32461
|
+
var import_ajv, RUNTIME_RECEIPT_SCHEMA_VERSION, ATTEMPT_RECEIPT_SCHEMA_VERSION, DEFAULT_ADVERTISEMENT_TTL_MS, DEFAULT_ADVERTISEMENT_REFRESH_LEAD_MS, DEFAULT_HOST_HEARTBEAT_MS, DEFAULT_PROVIDER_RATE_LIMIT_REFRESH_MS, DEFAULT_ATTEMPT_HEARTBEAT_MS, DEFAULT_DRAIN_TIMEOUT_MS, DEFAULT_REMOTE_RETRY_LIMIT, MIN_SLEEP_MS, MIN_HOST_HEARTBEAT_GAP_DIAGNOSTIC_MS, HOST_HEARTBEAT_GAP_DIAGNOSTIC_FACTOR, DEFAULT_CODEX_ACCOUNT_COOLDOWN_MS, DEFAULT_AGENT_RATE_LIMIT_COOLDOWN_MS, DEFAULT_AGENT_QUOTA_COOLDOWN_MS, DEFAULT_AGENT_TRANSIENT_COOLDOWN_MS, MIN_CLAIM_START_WINDOW_MS, MAX_ATTEMPT_START_RETRY_DELAY_MS, UNBOUNDED_AVAILABLE_SLOTS, buildInferenceAdvertisedModels, summarizeInferenceHostRuntimeRecovery, FileInferenceHostRuntimeReceiptStore, InferenceHostRecoveryRequiredError, InferenceHostRunnerError, defaultSleep, abortError, settlesWithin, defaultRegisterSignalHandlers, safeInteger, exactObjectKeys, validIso, validateAttemptReceipt, validateRuntimeReceipt, sha256, stableOperationId, buildAttemptStartRequest, isoAt, providerWeeklyQuotaFromRateLimits, finitePositiveOption, validateRunnerOptions, assertLocalCredentialIdentity, retryableRemoteError, remoteRetryAfterMs, controlPlaneFatal, defaultValidateOutput, objectRecord, positiveUtf8ByteLimit, assertCompilableOutputSchema, parseOutputContract, membershipFailureDisposition, safeFailureCode, publicServerFailureCode, attemptStartRetryFallbackMs, exactJson2, runnerIdentityMismatch, assertAdvertisementResult, assertHostHeartbeatResult, assertClaimResult, assertStartResult, assertJobHeartbeatResult, assertTerminalResult, isDefinitiveCompletionEvidenceExpiry, classifyFailure, ambiguousHeartbeatTransport, reportedTokenUsage, reportedUsage, InferenceHostRunner, createInferenceAgentControlClient, INFERENCE_AGENT_SYSTEM_PROMPT, INFERENCE_AGENT_WAKE_SCHEMA, parseInferenceAgentWake, InferenceAgentRuntime;
|
|
32431
32462
|
var init_runner = __esm({
|
|
32432
32463
|
"lib/inference-host/runner.ts"() {
|
|
32433
32464
|
"use strict";
|
|
@@ -33010,6 +33041,7 @@ var init_runner = __esm({
|
|
|
33010
33041
|
const normalized = value.trim().toLowerCase().replace(/[^a-z0-9._-]+/gu, "_").slice(0, 96);
|
|
33011
33042
|
return /^[a-z0-9]/u.test(normalized) ? normalized : fallback;
|
|
33012
33043
|
};
|
|
33044
|
+
publicServerFailureCode = (value) => value !== null && /^[a-z0-9][a-z0-9._-]{0,95}$/u.test(value) ? value : null;
|
|
33013
33045
|
attemptStartRetryFallbackMs = (retryCount) => Math.min(
|
|
33014
33046
|
1e3 * 2 ** Math.min(Math.max(0, retryCount - 1), 4),
|
|
33015
33047
|
MAX_ATTEMPT_START_RETRY_DELAY_MS
|
|
@@ -33209,6 +33241,7 @@ var init_runner = __esm({
|
|
|
33209
33241
|
attempt_phase: recovery.phase,
|
|
33210
33242
|
terminal_operation: terminal?.schema_version === "external_inference_job_fail_v1" ? "fail" : "complete",
|
|
33211
33243
|
error_code: safeFailureCode(rawCode, "terminal_recovery_failed"),
|
|
33244
|
+
server_failure_code: cause instanceof ExternalInferenceMcpError ? publicServerFailureCode(cause.serverFailureCode) : null,
|
|
33212
33245
|
retryable: retryableRemoteError(cause),
|
|
33213
33246
|
definitively_not_applied: Boolean(
|
|
33214
33247
|
cause && typeof cause === "object" && "definitivelyNotApplied" in cause && cause.definitivelyNotApplied === true
|