stratagem-x7 0.3.9 → 0.3.11

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 +38 -20
  2. package/package.json +2 -1
package/dist/cli.mjs CHANGED
@@ -156292,6 +156292,25 @@ import { existsSync as existsSync7 } from "fs";
156292
156292
  import { homedir as homedir12 } from "os";
156293
156293
  import * as path10 from "path";
156294
156294
  import { fileURLToPath as fileURLToPath3 } from "url";
156295
+ function getVscodeRipgrepPath() {
156296
+ try {
156297
+ const rgBin = process.platform === "win32" ? "rg.exe" : "rg";
156298
+ const candidates = [
156299
+ path10.resolve(__dirname2, "node_modules", "@vscode", "ripgrep", "bin", rgBin),
156300
+ path10.resolve(__dirname2, "..", "node_modules", "@vscode", "ripgrep", "bin", rgBin),
156301
+ path10.resolve(__dirname2, "..", "..", "node_modules", "@vscode", "ripgrep", "bin", rgBin),
156302
+ path10.resolve(__dirname2, "..", "..", "..", "node_modules", "@vscode", "ripgrep", "bin", rgBin)
156303
+ ];
156304
+ for (const candidate of candidates) {
156305
+ if (existsSync7(candidate)) {
156306
+ return candidate;
156307
+ }
156308
+ }
156309
+ return null;
156310
+ } catch {
156311
+ return null;
156312
+ }
156313
+ }
156295
156314
  function isErrnoException(error41) {
156296
156315
  return error41 instanceof Error;
156297
156316
  }
@@ -156301,6 +156320,7 @@ function resolveRipgrepConfig({
156301
156320
  builtinCommand,
156302
156321
  builtinExists,
156303
156322
  systemExecutablePath,
156323
+ vscodeRipgrepPath,
156304
156324
  processExecPath = process.execPath
156305
156325
  }) {
156306
156326
  if (userWantsSystemRipgrep && systemExecutablePath !== "rg") {
@@ -156317,9 +156337,15 @@ function resolveRipgrepConfig({
156317
156337
  if (builtinExists) {
156318
156338
  return { mode: "builtin", command: builtinCommand, args: [] };
156319
156339
  }
156340
+ if (vscodeRipgrepPath && existsSync7(vscodeRipgrepPath)) {
156341
+ return { mode: "builtin", command: vscodeRipgrepPath, args: [] };
156342
+ }
156320
156343
  if (systemExecutablePath !== "rg") {
156321
156344
  return { mode: "system", command: "rg", args: [] };
156322
156345
  }
156346
+ if (vscodeRipgrepPath) {
156347
+ return { mode: "builtin", command: vscodeRipgrepPath, args: [] };
156348
+ }
156323
156349
  return { mode: "builtin", command: builtinCommand, args: [] };
156324
156350
  }
156325
156351
  function ripgrepCommand() {
@@ -156582,12 +156608,14 @@ var init_ripgrep = __esm(() => {
156582
156608
  const builtinCommand = process.platform === "win32" ? path10.resolve(rgRoot, `${process.arch}-win32`, "rg.exe") : path10.resolve(rgRoot, `${process.arch}-${process.platform}`, "rg");
156583
156609
  const builtinExists = existsSync7(builtinCommand);
156584
156610
  const { cmd: systemExecutablePath } = findExecutable("rg", []);
156611
+ const vscodeRipgrepPath = getVscodeRipgrepPath();
156585
156612
  return resolveRipgrepConfig({
156586
156613
  userWantsSystemRipgrep,
156587
156614
  bundledMode,
156588
156615
  builtinCommand,
156589
156616
  builtinExists,
156590
- systemExecutablePath
156617
+ systemExecutablePath,
156618
+ vscodeRipgrepPath
156591
156619
  });
156592
156620
  });
156593
156621
  RipgrepTimeoutError = class RipgrepTimeoutError extends Error {
@@ -217061,19 +217089,9 @@ function isAgentTeamsFlagSet() {
217061
217089
  return process.argv.includes("--agent-teams");
217062
217090
  }
217063
217091
  function isAgentSwarmsEnabled() {
217064
- if (process.env.USER_TYPE === "ant") {
217065
- return true;
217066
- }
217067
- if (!isEnvTruthy(process.env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS) && !isAgentTeamsFlagSet()) {
217068
- return false;
217069
- }
217070
- if (!getFeatureValue_CACHED_MAY_BE_STALE("tengu_amber_flint", true)) {
217071
- return false;
217072
- }
217073
- return true;
217092
+ return isEnvTruthy(process.env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS) || isAgentTeamsFlagSet();
217074
217093
  }
217075
217094
  var init_agentSwarmsEnabled = __esm(() => {
217076
- init_growthbook();
217077
217095
  init_envUtils();
217078
217096
  });
217079
217097
 
@@ -382890,7 +382908,7 @@ function getAnthropicEnvMetadata() {
382890
382908
  function getBuildAgeMinutes() {
382891
382909
  if (false)
382892
382910
  ;
382893
- const buildTime = new Date("2026-04-25T03:07:55.863Z").getTime();
382911
+ const buildTime = new Date("2026-04-25T04:18:15.797Z").getTime();
382894
382912
  if (isNaN(buildTime))
382895
382913
  return;
382896
382914
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -410069,7 +410087,7 @@ function buildPrimarySection() {
410069
410087
  }, undefined, false, undefined, this);
410070
410088
  return [{
410071
410089
  label: "Version",
410072
- value: "0.3.9"
410090
+ value: "0.3.11"
410073
410091
  }, {
410074
410092
  label: "Session name",
410075
410093
  value: nameValue
@@ -449696,7 +449714,7 @@ function getStartupLines(termWidth) {
449696
449714
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
449697
449715
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
449698
449716
  out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
449699
- out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.9"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
449717
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.11"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
449700
449718
  out.push("");
449701
449719
  return out;
449702
449720
  }
@@ -478245,7 +478263,7 @@ var init_bridge_kick = __esm(() => {
478245
478263
  var call60 = async () => {
478246
478264
  return {
478247
478265
  type: "text",
478248
- value: `${"99.0.0"} (built ${"2026-04-25T03:07:55.863Z"})`
478266
+ value: `${"99.0.0"} (built ${"2026-04-25T04:18:15.797Z"})`
478249
478267
  };
478250
478268
  }, version2, version_default;
478251
478269
  var init_version = __esm(() => {
@@ -553636,7 +553654,7 @@ function WelcomeV2() {
553636
553654
  dimColor: true,
553637
553655
  children: [
553638
553656
  "v",
553639
- "0.3.9",
553657
+ "0.3.11",
553640
553658
  " "
553641
553659
  ]
553642
553660
  }, undefined, true, undefined, this)
@@ -573654,7 +573672,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
573654
573672
  pendingHookMessages
573655
573673
  }, renderAndRun);
573656
573674
  }
573657
- }).version("0.3.9 (STRATAGEM X7)", "-v, --version", "Output the version number");
573675
+ }).version("0.3.11 (STRATAGEM X7)", "-v, --version", "Output the version number");
573658
573676
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
573659
573677
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
573660
573678
  if (canUserConfigureAdvisor()) {
@@ -574183,7 +574201,7 @@ if (false) {}
574183
574201
  async function main2() {
574184
574202
  const args = process.argv.slice(2);
574185
574203
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
574186
- console.log(`${"0.3.9"} (STRATAGEM X7)`);
574204
+ console.log(`${"0.3.11"} (STRATAGEM X7)`);
574187
574205
  return;
574188
574206
  }
574189
574207
  if (args.includes("--provider")) {
@@ -574305,4 +574323,4 @@ async function main2() {
574305
574323
  }
574306
574324
  main2();
574307
574325
 
574308
- //# debugId=FBB2A0D30CC3435964756E2164756E21
574326
+ //# debugId=AD29159858C1C98464756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "description": "STRATAGEM X7 is a cyberpunk coding-agent CLI for cloud and local model providers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -75,6 +75,7 @@
75
75
  "@opentelemetry/sdk-trace-base": "2.6.1",
76
76
  "@opentelemetry/sdk-trace-node": "2.6.1",
77
77
  "@opentelemetry/semantic-conventions": "1.40.0",
78
+ "@vscode/ripgrep": "^1.17.1",
78
79
  "ajv": "8.18.0",
79
80
  "auto-bind": "5.0.1",
80
81
  "axios": "1.15.0",