@vtxmacro/cli 2026.9.15 → 2026.9.18
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 +7 -3
- package/bin/vtx-service-bootstrap.js +40 -1
- package/bin/vtx.js +3029 -2885
- package/package.json +1 -1
package/bin/exo-harness.ts
CHANGED
|
@@ -18,6 +18,7 @@ type Input = {
|
|
|
18
18
|
outputSchema: Json; decisionSchema: Json; dataContract: { id: string; input_schema: Json }[];
|
|
19
19
|
requestedModel: string; providerModel: string; reasoningEffort: string;
|
|
20
20
|
nativeReasoningEffort: string | null; maxRounds: number;
|
|
21
|
+
deadlineAtMs: number;
|
|
21
22
|
};
|
|
22
23
|
type ExoHarnessModule = {
|
|
23
24
|
materializePromptMessages(conversation: unknown, instructions: Message[]): Promise<Message[]>;
|
|
@@ -175,11 +176,13 @@ export default {
|
|
|
175
176
|
const source = process.env.VTX_EXO_SOURCE_ROOT;
|
|
176
177
|
if (brokerUrl.protocol !== 'http:' || brokerUrl.hostname !== '127.0.0.1' || brokerUrl.username || brokerUrl.password
|
|
177
178
|
|| brokerUrl.pathname !== '/' || brokerUrl.search || brokerUrl.hash || !token || !source) throw new Error('exo_bridge_invalid');
|
|
178
|
-
const broker = async (path: string, body?: Json): Promise<Json> => {
|
|
179
|
+
const broker = async (path: string, body?: Json, deadlineAtMs?: number): Promise<Json> => {
|
|
180
|
+
const timeoutMs = deadlineAtMs === undefined ? 30_000 : deadlineAtMs - Date.now();
|
|
181
|
+
if (!Number.isSafeInteger(timeoutMs) || timeoutMs < 1) throw new Error('exo_deadline_reached');
|
|
179
182
|
const response = await nativeFetch(new URL(path, brokerUrl), {
|
|
180
183
|
method: body === undefined ? 'GET' : 'POST',
|
|
181
184
|
headers: { authorization: `Bearer ${token}`, 'content-type': 'application/json' },
|
|
182
|
-
...(body === undefined ? {} : { body: JSON.stringify(body) }), redirect: 'error', signal: AbortSignal.timeout(
|
|
185
|
+
...(body === undefined ? {} : { body: JSON.stringify(body) }), redirect: 'error', signal: AbortSignal.timeout(timeoutMs),
|
|
183
186
|
});
|
|
184
187
|
if (!response.ok) throw new Error('exo_bridge_rejected');
|
|
185
188
|
return record(await response.json());
|
|
@@ -211,6 +214,7 @@ export default {
|
|
|
211
214
|
const input = await broker('/input') as unknown as Input;
|
|
212
215
|
if (!['openai', 'venice'].includes(input.provider) || !['provider', 'agent'].includes(input.mode) || typeof input.systemPrompt !== 'string' || typeof input.userPrompt !== 'string'
|
|
213
216
|
|| !Number.isSafeInteger(input.maxRounds) || input.maxRounds < 1 || input.maxRounds > 64
|
|
217
|
+
|| !Number.isSafeInteger(input.deadlineAtMs) || input.deadlineAtMs < 1
|
|
214
218
|
|| typeof input.providerModel !== 'string' || !input.providerModel || typeof input.reasoningEffort !== 'string'
|
|
215
219
|
|| !(input.nativeReasoningEffort === null || typeof input.nativeReasoningEffort === 'string')) throw new Error('exo_input_invalid');
|
|
216
220
|
const credential = await broker('/credential');
|
|
@@ -350,7 +354,7 @@ export default {
|
|
|
350
354
|
if (input.mode !== 'agent' || calls.some((call) => !allowed.has(call.request.functionName))) throw new Error('exo_tool_not_allowed');
|
|
351
355
|
for (const call of calls) {
|
|
352
356
|
const result = await broker('/tool', { callId: call.toolCallId, tool: call.request.functionName, arguments: call.request.arguments,
|
|
353
|
-
effectiveModel: input.requestedModel, effectiveReasoningEffort: input.reasoningEffort });
|
|
357
|
+
effectiveModel: input.requestedModel, effectiveReasoningEffort: input.reasoningEffort }, input.deadlineAtMs);
|
|
354
358
|
// Append the entire result directly. The default registry replaces
|
|
355
359
|
// results over 8k with previews, which loses assignment data.
|
|
356
360
|
await context.exoharness.current.turn.addEvents([harness.toolResultEvent(call.toolCallId,
|
|
@@ -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.18",
|
|
20
20
|
codex_package_name: "@openai/codex",
|
|
21
21
|
codex_version: "0.153.3",
|
|
22
22
|
copilot_sdk_package_name: "@github/copilot-sdk",
|
|
@@ -1536,3 +1536,42 @@ export {
|
|
|
1536
1536
|
runInferenceHostBootstrapNpmCommand,
|
|
1537
1537
|
runInferenceHostServiceBootstrap
|
|
1538
1538
|
};
|
|
1539
|
+
/*! Bundled license information:
|
|
1540
|
+
|
|
1541
|
+
smol-toml/dist/date.js:
|
|
1542
|
+
smol-toml/dist/error.js:
|
|
1543
|
+
smol-toml/dist/util.js:
|
|
1544
|
+
smol-toml/dist/primitive.js:
|
|
1545
|
+
smol-toml/dist/extract.js:
|
|
1546
|
+
smol-toml/dist/struct.js:
|
|
1547
|
+
smol-toml/dist/parse.js:
|
|
1548
|
+
smol-toml/dist/stringify.js:
|
|
1549
|
+
smol-toml/dist/index.js:
|
|
1550
|
+
(*!
|
|
1551
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
1552
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1553
|
+
*
|
|
1554
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1555
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1556
|
+
*
|
|
1557
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
1558
|
+
* list of conditions and the following disclaimer.
|
|
1559
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
1560
|
+
* this list of conditions and the following disclaimer in the
|
|
1561
|
+
* documentation and/or other materials provided with the distribution.
|
|
1562
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
1563
|
+
* may be used to endorse or promote products derived from this software without
|
|
1564
|
+
* specific prior written permission.
|
|
1565
|
+
*
|
|
1566
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
1567
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1568
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1569
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1570
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1571
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1572
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1573
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1574
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1575
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1576
|
+
*)
|
|
1577
|
+
*/
|