@vtxmacro/cli 2026.9.3 → 2026.9.4
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 +21 -12
- 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.4",
|
|
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.9.
|
|
50
|
+
package_version: "2026.9.4",
|
|
51
51
|
codex_package_name: "@openai/codex",
|
|
52
52
|
codex_version: "0.147.0",
|
|
53
53
|
copilot_sdk_package_name: "@github/copilot-sdk",
|
|
@@ -34434,9 +34434,6 @@ var init_runner = __esm({
|
|
|
34434
34434
|
} catch (error48) {
|
|
34435
34435
|
inputValidationError = error48;
|
|
34436
34436
|
}
|
|
34437
|
-
if (!options.resumeReceipt) {
|
|
34438
|
-
await persistAttempt({ phase: "claimed" }, true);
|
|
34439
|
-
}
|
|
34440
34437
|
if (attemptReceipt.phase === "claimed") {
|
|
34441
34438
|
const attemptDeadlineAtMs = Math.min(
|
|
34442
34439
|
Date.parse(claim.deadline_at),
|
|
@@ -34448,13 +34445,25 @@ var init_runner = __esm({
|
|
|
34448
34445
|
}
|
|
34449
34446
|
let startResult;
|
|
34450
34447
|
const startCallStartedAtMs = now();
|
|
34451
|
-
|
|
34452
|
-
|
|
34453
|
-
|
|
34454
|
-
|
|
34455
|
-
|
|
34456
|
-
|
|
34457
|
-
|
|
34448
|
+
let startCallCompletedAtMs = startCallStartedAtMs;
|
|
34449
|
+
const claimPromotionPromise = options.resumeReceipt ? Promise.resolve() : persistAttempt({ phase: "claimed" }, true);
|
|
34450
|
+
const startCallPromise = retryExact(() => mcp.callTool(
|
|
34451
|
+
"inference.job.start",
|
|
34452
|
+
startRequest,
|
|
34453
|
+
{ signal, deadlineAtMs: attemptDeadlineAtMs }
|
|
34454
|
+
), { signal, deadlineAtMs: attemptDeadlineAtMs }).then((result2) => {
|
|
34455
|
+
startCallCompletedAtMs = now();
|
|
34456
|
+
return result2;
|
|
34457
|
+
});
|
|
34458
|
+
const [startOutcome, claimPromotionOutcome] = await Promise.allSettled([
|
|
34459
|
+
startCallPromise,
|
|
34460
|
+
claimPromotionPromise
|
|
34461
|
+
]);
|
|
34462
|
+
if (claimPromotionOutcome.status === "rejected") {
|
|
34463
|
+
throw claimPromotionOutcome.reason;
|
|
34464
|
+
}
|
|
34465
|
+
if (startOutcome.status === "rejected") {
|
|
34466
|
+
const error48 = startOutcome.reason;
|
|
34458
34467
|
if (error48 instanceof ExternalInferenceMcpError && error48.serverFailureCode === "server_account_context_expired_before_provider_dispatch") {
|
|
34459
34468
|
await removeAttempt();
|
|
34460
34469
|
options.onAttemptOutcome?.({
|
|
@@ -34499,6 +34508,7 @@ var init_runner = __esm({
|
|
|
34499
34508
|
await options.sleep(retryDelayMs, signal);
|
|
34500
34509
|
return "retry_claimed";
|
|
34501
34510
|
}
|
|
34511
|
+
startResult = startOutcome.value;
|
|
34502
34512
|
assertStartResult(startRequest, startResult);
|
|
34503
34513
|
if (serverProviderDispatchDeadlineMs !== void 0) {
|
|
34504
34514
|
const serverRemaining = startResult.provider_dispatch_freshness_remaining_ms;
|
|
@@ -34508,7 +34518,6 @@ var init_runner = __esm({
|
|
|
34508
34518
|
"The Server provider-dispatch freshness receipt is unavailable."
|
|
34509
34519
|
);
|
|
34510
34520
|
}
|
|
34511
|
-
const startCallCompletedAtMs = now();
|
|
34512
34521
|
startRoundTripMs = Math.max(0, startCallCompletedAtMs - startCallStartedAtMs);
|
|
34513
34522
|
serverReportedFreshnessRemainingMs = Number(serverRemaining);
|
|
34514
34523
|
const conservativeRemainingMs = Math.max(
|