@vtxmacro/cli 2026.8.28 → 2026.8.29

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 +15 -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.28",
41
+ package_version: "2026.8.29",
42
42
  codex_package_name: "@openai/codex",
43
43
  codex_version: "0.147.0",
44
44
  platforms: {
@@ -20330,6 +20330,9 @@ child.once('close', async () => {
20330
20330
  let adapterResponseId = null;
20331
20331
  let firstTokenAt = null;
20332
20332
  let terminal = null;
20333
+ let completedReasoningObserved = false;
20334
+ let completedReasoningSequence = 0;
20335
+ const completedReasoningSummaries = /* @__PURE__ */ new Map();
20333
20336
  let terminalResolve;
20334
20337
  let terminalReject;
20335
20338
  const terminalPromise = new Promise((resolve6, reject) => {
@@ -20449,6 +20452,15 @@ child.once('close', async () => {
20449
20452
  }));
20450
20453
  return;
20451
20454
  }
20455
+ if (method === "item/completed" && item.type === "reasoning") {
20456
+ completedReasoningObserved = true;
20457
+ const itemId = String(item.id || params.itemId || "").trim();
20458
+ const itemKey = itemId ? `id:${itemId}` : `sequence:${completedReasoningSequence++}`;
20459
+ completedReasoningSummaries.set(
20460
+ itemKey,
20461
+ Array.isArray(item.summary) ? item.summary : []
20462
+ );
20463
+ }
20452
20464
  }
20453
20465
  const observedUsage = usageFromNotification(method, params);
20454
20466
  if (method === "rawResponse/completed") {
@@ -20677,10 +20689,8 @@ child.once('close', async () => {
20677
20689
  const fallbackMessages = items.filter((item) => item?.type === "agentMessage" && item.phase == null);
20678
20690
  const answerItem = finalMessages.at(-1) ?? fallbackMessages.at(-1);
20679
20691
  const text = typeof answerItem?.text === "string" ? answerItem.text : "";
20680
- const reasoningSummaryParts = items.flatMap((item) => {
20681
- if (item?.type !== "reasoning" || !Array.isArray(item.summary)) return [];
20682
- return item.summary.filter((part) => typeof part === "string" && part.trim().length > 0);
20683
- });
20692
+ const reasoningSummarySections = completedReasoningObserved ? [...completedReasoningSummaries.values()] : items.flatMap((item) => item?.type === "reasoning" && Array.isArray(item.summary) ? [item.summary] : []);
20693
+ const reasoningSummaryParts = reasoningSummarySections.flatMap((summary) => summary.filter((part) => typeof part === "string" && part.trim().length > 0));
20684
20694
  const reasoningSummaryCandidate = reasoningSummaryParts.length > 0 ? reasoningSummaryParts.join("\n\n") : null;
20685
20695
  const reasoningSummary = reasoningSummaryCandidate !== null && Buffer.byteLength(reasoningSummaryCandidate, "utf8") <= CODEX_REASONING_SUMMARY_MAX_UTF8_BYTES ? reasoningSummaryCandidate : null;
20686
20696
  const usage = threadUsage ?? rawResponseUsage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtxmacro/cli",
3
- "version": "2026.8.28",
3
+ "version": "2026.8.29",
4
4
  "description": "VTX Macro CLI, MCP server, and durable subscription inference host.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",