stratagem-x7 0.3.6 → 0.3.8

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 +13 -13
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -18231,9 +18231,6 @@ function getAdditionalModelOptionsCacheScope() {
18231
18231
  if (request.transport !== "chat_completions") {
18232
18232
  return null;
18233
18233
  }
18234
- if (!isLocalProviderUrl(request.baseUrl)) {
18235
- return null;
18236
- }
18237
18234
  return `openai:${request.baseUrl.toLowerCase()}`;
18238
18235
  }
18239
18236
  function resolveCodexAuthPath(env2 = process.env) {
@@ -218864,6 +218861,9 @@ function convertContentBlocks(content) {
218864
218861
  function isGeminiMode() {
218865
218862
  return isEnvTruthy(process.env.CLAUDE_CODE_USE_GEMINI) || hasGeminiApiHost(process.env.OPENAI_BASE_URL);
218866
218863
  }
218864
+ function sanitizeToolId(id) {
218865
+ return id.replace(/[^a-zA-Z0-9_-]/g, "_");
218866
+ }
218867
218867
  function convertMessages(messages, system) {
218868
218868
  const result = [];
218869
218869
  const sysText = convertSystemPrompt2(system);
@@ -218881,7 +218881,7 @@ function convertMessages(messages, system) {
218881
218881
  for (const tr of toolResults) {
218882
218882
  result.push({
218883
218883
  role: "tool",
218884
- tool_call_id: tr.tool_use_id ?? "unknown",
218884
+ tool_call_id: sanitizeToolId(tr.tool_use_id ?? "unknown"),
218885
218885
  content: convertToolResultContent(tr.content, tr.is_error)
218886
218886
  });
218887
218887
  }
@@ -218915,7 +218915,7 @@ function convertMessages(messages, system) {
218915
218915
  if (toolUses.length > 0) {
218916
218916
  assistantMsg.tool_calls = toolUses.map((tu, index) => {
218917
218917
  const toolCall = {
218918
- id: tu.id ?? `call_${crypto.randomUUID().replace(/-/g, "")}`,
218918
+ id: sanitizeToolId(tu.id ?? `call_${crypto.randomUUID().replace(/-/g, "")}`),
218919
218919
  type: "function",
218920
218920
  function: {
218921
218921
  name: tu.name ?? "unknown",
@@ -382818,7 +382818,7 @@ function getAnthropicEnvMetadata() {
382818
382818
  function getBuildAgeMinutes() {
382819
382819
  if (false)
382820
382820
  ;
382821
- const buildTime = new Date("2026-04-24T13:00:51.720Z").getTime();
382821
+ const buildTime = new Date("2026-04-25T02:59:14.373Z").getTime();
382822
382822
  if (isNaN(buildTime))
382823
382823
  return;
382824
382824
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -409997,7 +409997,7 @@ function buildPrimarySection() {
409997
409997
  }, undefined, false, undefined, this);
409998
409998
  return [{
409999
409999
  label: "Version",
410000
- value: "0.3.6"
410000
+ value: "0.3.8"
410001
410001
  }, {
410002
410002
  label: "Session name",
410003
410003
  value: nameValue
@@ -449624,7 +449624,7 @@ function getStartupLines(termWidth) {
449624
449624
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
449625
449625
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
449626
449626
  out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
449627
- out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.6"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
449627
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.8"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
449628
449628
  out.push("");
449629
449629
  return out;
449630
449630
  }
@@ -478173,7 +478173,7 @@ var init_bridge_kick = __esm(() => {
478173
478173
  var call60 = async () => {
478174
478174
  return {
478175
478175
  type: "text",
478176
- value: `${"99.0.0"} (built ${"2026-04-24T13:00:51.720Z"})`
478176
+ value: `${"99.0.0"} (built ${"2026-04-25T02:59:14.373Z"})`
478177
478177
  };
478178
478178
  }, version2, version_default;
478179
478179
  var init_version = __esm(() => {
@@ -553564,7 +553564,7 @@ function WelcomeV2() {
553564
553564
  dimColor: true,
553565
553565
  children: [
553566
553566
  "v",
553567
- "0.3.6",
553567
+ "0.3.8",
553568
553568
  " "
553569
553569
  ]
553570
553570
  }, undefined, true, undefined, this)
@@ -573582,7 +573582,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
573582
573582
  pendingHookMessages
573583
573583
  }, renderAndRun);
573584
573584
  }
573585
- }).version("0.3.6 (STRATAGEM X7)", "-v, --version", "Output the version number");
573585
+ }).version("0.3.8 (STRATAGEM X7)", "-v, --version", "Output the version number");
573586
573586
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
573587
573587
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
573588
573588
  if (canUserConfigureAdvisor()) {
@@ -574111,7 +574111,7 @@ if (false) {}
574111
574111
  async function main2() {
574112
574112
  const args = process.argv.slice(2);
574113
574113
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
574114
- console.log(`${"0.3.6"} (STRATAGEM X7)`);
574114
+ console.log(`${"0.3.8"} (STRATAGEM X7)`);
574115
574115
  return;
574116
574116
  }
574117
574117
  if (args.includes("--provider")) {
@@ -574233,4 +574233,4 @@ async function main2() {
574233
574233
  }
574234
574234
  main2();
574235
574235
 
574236
- //# debugId=213DA9419217F0CA64756E2164756E21
574236
+ //# debugId=D065746CFBCE51A064756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers",
5
5
  "type": "module",
6
6
  "bin": {