@vtxmacro/cli 2026.8.47 → 2026.8.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.
Files changed (2) hide show
  1. package/bin/vtx.js +20 -5
  2. package/package.json +1 -1
package/bin/vtx.js CHANGED
@@ -38,7 +38,7 @@ var init_agent_cli_release = __esm({
38
38
  "agent-cli-release.json"() {
39
39
  agent_cli_release_default = {
40
40
  package_name: "@vtxmacro/cli",
41
- package_version: "2026.8.47",
41
+ package_version: "2026.8.48",
42
42
  codex_package_name: "@openai/codex",
43
43
  codex_version: "0.147.0",
44
44
  copilot_sdk_package_name: "@github/copilot-sdk",
@@ -33576,6 +33576,7 @@ __export(cli_exports, {
33576
33576
  import { createHash as createHash7, randomUUID as randomUUID2 } from "node:crypto";
33577
33577
  import { spawn as spawn7 } from "node:child_process";
33578
33578
  import { lstat as lstat4, realpath as realpath4, rm as rm6 } from "node:fs/promises";
33579
+ import { hostname as osHostname } from "node:os";
33579
33580
  import { join as join7, resolve as resolve5 } from "node:path";
33580
33581
  async function runInferenceHostCli(argv2, env = process.env, dependencies = {}) {
33581
33582
  const warnings = [];
@@ -33677,7 +33678,7 @@ async function runInferenceHostCli(argv2, env = process.env, dependencies = {})
33677
33678
  };
33678
33679
  }
33679
33680
  }
33680
- var INFERENCE_HOST_CLI_VERSION, runtimeReceiptPath, codexRecoveryPath, codexGuardianReceiptRoot, revocationCheckpointPath, foregroundHostLockPath, credentialLifecycleLockPath, serviceRecoveryCommandLockPath, AGENT_HEARTBEAT_INTERVAL_MS, AGENT_HEARTBEAT_MAX_RETRY_DELAY_MS, retryableAgentHeartbeatError, assertRevocationCheckpoint, readRevocationCheckpoint, writeRevocationCheckpoint, clearRevocationCheckpoint, render, INFERENCE_HOST_HELP, parseHostConcurrency, parseInferenceHostArgs, defaultOpenBrowser, registerInferenceHostServiceControlInput, defaultRegisterLifecycleSignalHandlers, lifecycleCancellation, configuredCredentialStore, restoreInferenceHostCredentialContext, recoverInferenceHostCredentialContextTransition, accountKeyForState, assertCredentialMatchesState2, revocationCheckpointForCredential, assertRevocationCheckpointMatchesLocalIdentity, fileExistsPrivately, inspectCodexAuthentication, clearLocalRuntimeArtifacts, assertDurableServiceUninstalled, assertLocalRuntimeArtifactsMayBeDiscarded, defaultRunForeground, preparePortableDurableAdapter, defaultRunPortableDurableAdapter, login, codexLogin, codexLogout, localStatus, doctor, cleanupLogin, runHost, defaultReadStdin, parseAgentStdin, agentOperationId, agentSession, agentConnect, agentRun, agentNext, agentComplete, agentFail, withAgentCommandLock, recoveryBackupPath, serviceRecoveryTransactionPath, readServiceRecoveryTransaction, assertResumableCodexRecoveryEvidence, recoverInstalledCodexService, serviceCommand, hasExplicitCredentialStoreConfiguration, credentialEnvironmentForIdentity, commandRequiresRetainedCredentialStore, commandUsesInstalledServiceCredentials, resolveInferenceHostCommandConfig;
33681
+ var INFERENCE_HOST_CLI_VERSION, runtimeReceiptPath, codexRecoveryPath, codexGuardianReceiptRoot, revocationCheckpointPath, foregroundHostLockPath, credentialLifecycleLockPath, serviceRecoveryCommandLockPath, AGENT_HEARTBEAT_INTERVAL_MS, AGENT_HEARTBEAT_MAX_RETRY_DELAY_MS, retryableAgentHeartbeatError, assertRevocationCheckpoint, readRevocationCheckpoint, writeRevocationCheckpoint, clearRevocationCheckpoint, render, INFERENCE_HOST_HELP, parseHostConcurrency, parseInferenceHostArgs, resolveDurableServiceDisplayName, defaultOpenBrowser, registerInferenceHostServiceControlInput, defaultRegisterLifecycleSignalHandlers, lifecycleCancellation, configuredCredentialStore, restoreInferenceHostCredentialContext, recoverInferenceHostCredentialContextTransition, accountKeyForState, assertCredentialMatchesState2, revocationCheckpointForCredential, assertRevocationCheckpointMatchesLocalIdentity, fileExistsPrivately, inspectCodexAuthentication, clearLocalRuntimeArtifacts, assertDurableServiceUninstalled, assertLocalRuntimeArtifactsMayBeDiscarded, defaultRunForeground, preparePortableDurableAdapter, defaultRunPortableDurableAdapter, login, codexLogin, codexLogout, localStatus, doctor, cleanupLogin, runHost, defaultReadStdin, parseAgentStdin, agentOperationId, agentSession, agentConnect, agentRun, agentNext, agentComplete, agentFail, withAgentCommandLock, recoveryBackupPath, serviceRecoveryTransactionPath, readServiceRecoveryTransaction, assertResumableCodexRecoveryEvidence, recoverInstalledCodexService, serviceCommand, hasExplicitCredentialStoreConfiguration, credentialEnvironmentForIdentity, commandRequiresRetainedCredentialStore, commandUsesInstalledServiceCredentials, resolveInferenceHostCommandConfig;
33681
33682
  var init_cli = __esm({
33682
33683
  "lib/inference-host/cli.ts"() {
33683
33684
  "use strict";
@@ -33920,6 +33921,7 @@ Durable service:
33920
33921
  instanceExplicit,
33921
33922
  instanceFlagExplicit,
33922
33923
  displayName,
33924
+ displayNameExplicit,
33923
33925
  adapter,
33924
33926
  modelId,
33925
33927
  modelLabel,
@@ -33931,6 +33933,17 @@ Durable service:
33931
33933
  forceRecovery
33932
33934
  };
33933
33935
  };
33936
+ resolveDurableServiceDisplayName = (parsed, dependencies) => {
33937
+ if (parsed.displayNameExplicit) return parsed.displayName;
33938
+ try {
33939
+ const machineName = (dependencies.hostname ?? osHostname)().trim();
33940
+ if (machineName && machineName.length <= 128 && !/[\u0000-\u001f\u007f-\u009f]/u.test(machineName)) {
33941
+ return machineName;
33942
+ }
33943
+ } catch {
33944
+ }
33945
+ return parsed.displayName;
33946
+ };
33934
33947
  defaultOpenBrowser = (url2) => {
33935
33948
  const command = process.platform === "darwin" ? "open" : process.platform === "win32" ? "cmd" : "xdg-open";
33936
33949
  const args = process.platform === "win32" ? ["/c", "start", "", url2] : [url2];
@@ -35693,6 +35706,7 @@ Waiting for approval...
35693
35706
  if (parsed.modelId || parsed.modelLabel || parsed.reasoningEffort) {
35694
35707
  throw new Error("Durable services discover their exact model and effort catalog from the authenticated runtime.");
35695
35708
  }
35709
+ const displayName = resolveDurableServiceDisplayName(parsed, dependencies);
35696
35710
  if (adapter !== "codex") {
35697
35711
  const prepared = await (dependencies.prepareDurableAdapter ?? preparePortableDurableAdapter)(
35698
35712
  adapter
@@ -35700,7 +35714,7 @@ Waiting for approval...
35700
35714
  try {
35701
35715
  const status2 = await manager.install({
35702
35716
  adapter,
35703
- displayName: parsed.displayName,
35717
+ displayName,
35704
35718
  maxConcurrency: parsed.maxConcurrency,
35705
35719
  authenticatedAccountIdentity: prepared.preflight.authenticatedAccountIdentity,
35706
35720
  authenticatedAccountEmail: prepared.preflight.authenticatedAccountEmail,
@@ -35729,7 +35743,7 @@ Waiting for approval...
35729
35743
  });
35730
35744
  const status = await manager.install({
35731
35745
  adapter: "codex",
35732
- displayName: parsed.displayName,
35746
+ displayName,
35733
35747
  maxConcurrency: parsed.maxConcurrency,
35734
35748
  authenticatedAccountEmail: preflight?.authenticated_account_email ?? null,
35735
35749
  authenticatedAccountPlan: preflight?.authenticated_account_plan ?? null
@@ -39155,7 +39169,7 @@ async function reconcileActiveClientRuntimeExchangeMutation(profileId) {
39155
39169
  }
39156
39170
  return rememberCompletedDeferredClientRuntimeStop(profileId, result2);
39157
39171
  }
39158
- var getApiUrl, API_URL, sleep2, isTransientNetworkFetchError, createIdempotencyKey, getErrorMessage, getErrorPayloadOrEmpty, getErrorPayloadOrFallbackDetail, getErrorMessageFromResponse, _activeProfileId, PROFILE_STORAGE_KEY, completedDeferredClientRuntimeStops, rememberCompletedDeferredClientRuntimeStop, toNumericProfileId, shouldAttachRuntimeIdempotencyKey, attachRuntimeLeaseHeader, resolveRuntimeLeaseToken, persistRuntimeLeaseFromPayload, persistRuntimeLeaseStatusMetadata, shouldClearPersistedRuntimeLeaseOnError, isMissingRuntimeLeaseError, createRuntimeRequestError, parseClientRuntimeRequestContext, recordRuntimeAuthFailureBreadcrumb, classifyRuntimeRequestError, annotateRuntimeRequestError, parseRuntimeRetryAfterMs, shouldRecoverMissingRuntimeLease, recoverMissingRuntimeLease, isRetryableClientRuntimeStatus, shouldRetryClientRuntimeHttpStatus, resolveClientRuntimeRetryDelayMs, CLIENT_EXCHANGE_AUTHORITY_DEVICE_KEY, CLIENT_EXCHANGE_AUTHORITY_SESSION_KEY, getOrCreateClientExchangeAuthorityIdentity, resolveClientExchangeMutationAuthority, isPendingClientExchangeMutationError, clientExchangeMutationReconciliationTimers, MAX_CLIENT_EXCHANGE_RECONCILIATION_DELAY_MS, CLIENT_EXCHANGE_RECONCILIATION_CLOCK_SKEW_MS, ClientExchangeMutationRebuildRequiredError, isTerminalClientExchangeMutation, clientExchangeMutationReconciliationKey, clearScheduledClientExchangeMutationReconciliation, postClientExchangeMutationReconciliation, scheduleClientExchangeMutationReconciliation;
39172
+ var getApiUrl, API_URL, sleep2, isTransientNetworkFetchError, createIdempotencyKey, getErrorMessage, getErrorPayloadOrEmpty, getErrorPayloadOrFallbackDetail, getErrorMessageFromResponse, _activeProfileId, PROFILE_STORAGE_KEY, preferencesWriteQueue, completedDeferredClientRuntimeStops, rememberCompletedDeferredClientRuntimeStop, toNumericProfileId, shouldAttachRuntimeIdempotencyKey, attachRuntimeLeaseHeader, resolveRuntimeLeaseToken, persistRuntimeLeaseFromPayload, persistRuntimeLeaseStatusMetadata, shouldClearPersistedRuntimeLeaseOnError, isMissingRuntimeLeaseError, createRuntimeRequestError, parseClientRuntimeRequestContext, recordRuntimeAuthFailureBreadcrumb, classifyRuntimeRequestError, annotateRuntimeRequestError, parseRuntimeRetryAfterMs, shouldRecoverMissingRuntimeLease, recoverMissingRuntimeLease, isRetryableClientRuntimeStatus, shouldRetryClientRuntimeHttpStatus, resolveClientRuntimeRetryDelayMs, CLIENT_EXCHANGE_AUTHORITY_DEVICE_KEY, CLIENT_EXCHANGE_AUTHORITY_SESSION_KEY, getOrCreateClientExchangeAuthorityIdentity, resolveClientExchangeMutationAuthority, isPendingClientExchangeMutationError, clientExchangeMutationReconciliationTimers, MAX_CLIENT_EXCHANGE_RECONCILIATION_DELAY_MS, CLIENT_EXCHANGE_RECONCILIATION_CLOCK_SKEW_MS, ClientExchangeMutationRebuildRequiredError, isTerminalClientExchangeMutation, clientExchangeMutationReconciliationKey, clearScheduledClientExchangeMutationReconciliation, postClientExchangeMutationReconciliation, scheduleClientExchangeMutationReconciliation;
39159
39173
  var init_api2 = __esm({
39160
39174
  "lib/api.ts"() {
39161
39175
  "use strict";
@@ -39264,6 +39278,7 @@ var init_api2 = __esm({
39264
39278
  }
39265
39279
  }
39266
39280
  }
39281
+ preferencesWriteQueue = Promise.resolve();
39267
39282
  completedDeferredClientRuntimeStops = /* @__PURE__ */ new Set();
39268
39283
  rememberCompletedDeferredClientRuntimeStop = (profileId, result2) => {
39269
39284
  if (result2.runtime_stop_completed === true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtxmacro/cli",
3
- "version": "2026.8.47",
3
+ "version": "2026.8.48",
4
4
  "description": "VTX Macro CLI, MCP server, and durable subscription inference host.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",