stratagem-x7 0.3.9 → 0.3.10

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 +37 -9
  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 {
@@ -382890,7 +382918,7 @@ function getAnthropicEnvMetadata() {
382890
382918
  function getBuildAgeMinutes() {
382891
382919
  if (false)
382892
382920
  ;
382893
- const buildTime = new Date("2026-04-25T03:07:55.863Z").getTime();
382921
+ const buildTime = new Date("2026-04-25T03:57:28.614Z").getTime();
382894
382922
  if (isNaN(buildTime))
382895
382923
  return;
382896
382924
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -410069,7 +410097,7 @@ function buildPrimarySection() {
410069
410097
  }, undefined, false, undefined, this);
410070
410098
  return [{
410071
410099
  label: "Version",
410072
- value: "0.3.9"
410100
+ value: "0.3.10"
410073
410101
  }, {
410074
410102
  label: "Session name",
410075
410103
  value: nameValue
@@ -449696,7 +449724,7 @@ function getStartupLines(termWidth) {
449696
449724
  const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
449697
449725
  out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
449698
449726
  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));
449727
+ out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.10"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
449700
449728
  out.push("");
449701
449729
  return out;
449702
449730
  }
@@ -478245,7 +478273,7 @@ var init_bridge_kick = __esm(() => {
478245
478273
  var call60 = async () => {
478246
478274
  return {
478247
478275
  type: "text",
478248
- value: `${"99.0.0"} (built ${"2026-04-25T03:07:55.863Z"})`
478276
+ value: `${"99.0.0"} (built ${"2026-04-25T03:57:28.614Z"})`
478249
478277
  };
478250
478278
  }, version2, version_default;
478251
478279
  var init_version = __esm(() => {
@@ -553636,7 +553664,7 @@ function WelcomeV2() {
553636
553664
  dimColor: true,
553637
553665
  children: [
553638
553666
  "v",
553639
- "0.3.9",
553667
+ "0.3.10",
553640
553668
  " "
553641
553669
  ]
553642
553670
  }, undefined, true, undefined, this)
@@ -573654,7 +573682,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
573654
573682
  pendingHookMessages
573655
573683
  }, renderAndRun);
573656
573684
  }
573657
- }).version("0.3.9 (STRATAGEM X7)", "-v, --version", "Output the version number");
573685
+ }).version("0.3.10 (STRATAGEM X7)", "-v, --version", "Output the version number");
573658
573686
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
573659
573687
  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
573688
  if (canUserConfigureAdvisor()) {
@@ -574183,7 +574211,7 @@ if (false) {}
574183
574211
  async function main2() {
574184
574212
  const args = process.argv.slice(2);
574185
574213
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
574186
- console.log(`${"0.3.9"} (STRATAGEM X7)`);
574214
+ console.log(`${"0.3.10"} (STRATAGEM X7)`);
574187
574215
  return;
574188
574216
  }
574189
574217
  if (args.includes("--provider")) {
@@ -574305,4 +574333,4 @@ async function main2() {
574305
574333
  }
574306
574334
  main2();
574307
574335
 
574308
- //# debugId=FBB2A0D30CC3435964756E2164756E21
574336
+ //# debugId=24F1E7F0EBCDF2AE64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagem-x7",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
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",