stratagem-x7 0.3.16 → 0.3.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.
Files changed (2) hide show
  1. package/dist/cli.mjs +17 -11
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -219368,7 +219368,7 @@ async function* openaiStreamToAnthropic(response, model, signal) {
219368
219368
  const initialArguments = tc.function.arguments ?? "";
219369
219369
  const normalizeAtStop = hasToolFieldMapping(tc.function.name);
219370
219370
  activeToolCalls.set(tc.index, {
219371
- id: tc.id,
219371
+ id: sanitizeToolId(tc.id),
219372
219372
  name: tc.function.name,
219373
219373
  index: toolBlockIndex,
219374
219374
  jsonBuffer: initialArguments,
@@ -219379,7 +219379,7 @@ async function* openaiStreamToAnthropic(response, model, signal) {
219379
219379
  index: toolBlockIndex,
219380
219380
  content_block: {
219381
219381
  type: "tool_use",
219382
- id: tc.id,
219382
+ id: sanitizeToolId(tc.id),
219383
219383
  name: tc.function.name,
219384
219384
  input: {},
219385
219385
  ...tc.extra_content ? { extra_content: tc.extra_content } : {},
@@ -219858,7 +219858,7 @@ class OpenAIShimMessages {
219858
219858
  const input = normalizeToolArguments(tc.function.name, tc.function.arguments);
219859
219859
  content.push({
219860
219860
  type: "tool_use",
219861
- id: tc.id,
219861
+ id: sanitizeToolId(tc.id),
219862
219862
  name: tc.function.name,
219863
219863
  input,
219864
219864
  ...tc.extra_content ? { extra_content: tc.extra_content } : {},
@@ -300773,6 +300773,9 @@ function AssistantMessageBlock(t0) {
300773
300773
  return t1;
300774
300774
  }
300775
300775
  case "redacted_thinking": {
300776
+ if (!isTranscriptMode && !verbose) {
300777
+ return null;
300778
+ }
300776
300779
  let t1;
300777
300780
  if ($2[29] !== addMargin) {
300778
300781
  t1 = /* @__PURE__ */ jsx_dev_runtime117.jsxDEV(AssistantRedactedThinkingMessage, {
@@ -300786,6 +300789,9 @@ function AssistantMessageBlock(t0) {
300786
300789
  return t1;
300787
300790
  }
300788
300791
  case "thinking": {
300792
+ if (!isTranscriptMode && !verbose) {
300793
+ return null;
300794
+ }
300789
300795
  const isLastThinking = !lastThinkingBlockId || thinkingBlockId === lastThinkingBlockId;
300790
300796
  const t1 = isTranscriptMode && !isLastThinking;
300791
300797
  let t2;
@@ -382886,7 +382892,7 @@ function getAnthropicEnvMetadata() {
382886
382892
  function getBuildAgeMinutes() {
382887
382893
  if (false)
382888
382894
  ;
382889
- const buildTime = new Date("2026-04-25T08:17:51.435Z").getTime();
382895
+ const buildTime = new Date("2026-04-27T07:18:56.370Z").getTime();
382890
382896
  if (isNaN(buildTime))
382891
382897
  return;
382892
382898
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -410063,7 +410069,7 @@ function buildPrimarySection() {
410063
410069
  }, undefined, false, undefined, this);
410064
410070
  return [{
410065
410071
  label: "Version",
410066
- value: "0.3.16"
410072
+ value: "0.3.18"
410067
410073
  }, {
410068
410074
  label: "Session name",
410069
410075
  value: nameValue
@@ -449689,7 +449695,7 @@ function getStartupLines(termWidth) {
449689
449695
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
449690
449696
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
449691
449697
  out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
449692
- out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.16"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
449698
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.18"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
449693
449699
  out.push("");
449694
449700
  return out;
449695
449701
  }
@@ -478238,7 +478244,7 @@ var init_bridge_kick = __esm(() => {
478238
478244
  var call60 = async () => {
478239
478245
  return {
478240
478246
  type: "text",
478241
- value: `${"99.0.0"} (built ${"2026-04-25T08:17:51.435Z"})`
478247
+ value: `${"99.0.0"} (built ${"2026-04-27T07:18:56.370Z"})`
478242
478248
  };
478243
478249
  }, version2, version_default;
478244
478250
  var init_version = __esm(() => {
@@ -553650,7 +553656,7 @@ function WelcomeV2() {
553650
553656
  dimColor: true,
553651
553657
  children: [
553652
553658
  "v",
553653
- "0.3.16",
553659
+ "0.3.18",
553654
553660
  " "
553655
553661
  ]
553656
553662
  }, undefined, true, undefined, this)
@@ -573667,7 +573673,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
573667
573673
  pendingHookMessages
573668
573674
  }, renderAndRun);
573669
573675
  }
573670
- }).version("0.3.16 (STRATAGEM X7)", "-v, --version", "Output the version number");
573676
+ }).version("0.3.18 (STRATAGEM X7)", "-v, --version", "Output the version number");
573671
573677
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
573672
573678
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
573673
573679
  if (canUserConfigureAdvisor()) {
@@ -574195,7 +574201,7 @@ if (false) {}
574195
574201
  async function main2() {
574196
574202
  const args = process.argv.slice(2);
574197
574203
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
574198
- console.log(`${"0.3.16"} (STRATAGEM X7)`);
574204
+ console.log(`${"0.3.18"} (STRATAGEM X7)`);
574199
574205
  return;
574200
574206
  }
574201
574207
  if (args.includes("--provider")) {
@@ -574317,4 +574323,4 @@ async function main2() {
574317
574323
  }
574318
574324
  main2();
574319
574325
 
574320
- //# debugId=C282649C2A2D695464756E2164756E21
574326
+ //# debugId=7637B5BF7C1637F664756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers",
5
5
  "type": "module",
6
6
  "bin": {