stratagem-x7 0.3.6 → 0.3.7
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.
- package/dist/cli.mjs +13 -10
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -218864,6 +218864,9 @@ function convertContentBlocks(content) {
|
|
|
218864
218864
|
function isGeminiMode() {
|
|
218865
218865
|
return isEnvTruthy(process.env.CLAUDE_CODE_USE_GEMINI) || hasGeminiApiHost(process.env.OPENAI_BASE_URL);
|
|
218866
218866
|
}
|
|
218867
|
+
function sanitizeToolId(id) {
|
|
218868
|
+
return id.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
218869
|
+
}
|
|
218867
218870
|
function convertMessages(messages, system) {
|
|
218868
218871
|
const result = [];
|
|
218869
218872
|
const sysText = convertSystemPrompt2(system);
|
|
@@ -218881,7 +218884,7 @@ function convertMessages(messages, system) {
|
|
|
218881
218884
|
for (const tr of toolResults) {
|
|
218882
218885
|
result.push({
|
|
218883
218886
|
role: "tool",
|
|
218884
|
-
tool_call_id: tr.tool_use_id ?? "unknown",
|
|
218887
|
+
tool_call_id: sanitizeToolId(tr.tool_use_id ?? "unknown"),
|
|
218885
218888
|
content: convertToolResultContent(tr.content, tr.is_error)
|
|
218886
218889
|
});
|
|
218887
218890
|
}
|
|
@@ -218915,7 +218918,7 @@ function convertMessages(messages, system) {
|
|
|
218915
218918
|
if (toolUses.length > 0) {
|
|
218916
218919
|
assistantMsg.tool_calls = toolUses.map((tu, index) => {
|
|
218917
218920
|
const toolCall = {
|
|
218918
|
-
id: tu.id ?? `call_${crypto.randomUUID().replace(/-/g, "")}
|
|
218921
|
+
id: sanitizeToolId(tu.id ?? `call_${crypto.randomUUID().replace(/-/g, "")}`),
|
|
218919
218922
|
type: "function",
|
|
218920
218923
|
function: {
|
|
218921
218924
|
name: tu.name ?? "unknown",
|
|
@@ -382818,7 +382821,7 @@ function getAnthropicEnvMetadata() {
|
|
|
382818
382821
|
function getBuildAgeMinutes() {
|
|
382819
382822
|
if (false)
|
|
382820
382823
|
;
|
|
382821
|
-
const buildTime = new Date("2026-04-
|
|
382824
|
+
const buildTime = new Date("2026-04-25T02:55:34.826Z").getTime();
|
|
382822
382825
|
if (isNaN(buildTime))
|
|
382823
382826
|
return;
|
|
382824
382827
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -409997,7 +410000,7 @@ function buildPrimarySection() {
|
|
|
409997
410000
|
}, undefined, false, undefined, this);
|
|
409998
410001
|
return [{
|
|
409999
410002
|
label: "Version",
|
|
410000
|
-
value: "0.3.
|
|
410003
|
+
value: "0.3.7"
|
|
410001
410004
|
}, {
|
|
410002
410005
|
label: "Session name",
|
|
410003
410006
|
value: nameValue
|
|
@@ -449624,7 +449627,7 @@ function getStartupLines(termWidth) {
|
|
|
449624
449627
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
449625
449628
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
449626
449629
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
449627
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
449630
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.7"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
449628
449631
|
out.push("");
|
|
449629
449632
|
return out;
|
|
449630
449633
|
}
|
|
@@ -478173,7 +478176,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
478173
478176
|
var call60 = async () => {
|
|
478174
478177
|
return {
|
|
478175
478178
|
type: "text",
|
|
478176
|
-
value: `${"99.0.0"} (built ${"2026-04-
|
|
478179
|
+
value: `${"99.0.0"} (built ${"2026-04-25T02:55:34.826Z"})`
|
|
478177
478180
|
};
|
|
478178
478181
|
}, version2, version_default;
|
|
478179
478182
|
var init_version = __esm(() => {
|
|
@@ -553564,7 +553567,7 @@ function WelcomeV2() {
|
|
|
553564
553567
|
dimColor: true,
|
|
553565
553568
|
children: [
|
|
553566
553569
|
"v",
|
|
553567
|
-
"0.3.
|
|
553570
|
+
"0.3.7",
|
|
553568
553571
|
" "
|
|
553569
553572
|
]
|
|
553570
553573
|
}, undefined, true, undefined, this)
|
|
@@ -573582,7 +573585,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
573582
573585
|
pendingHookMessages
|
|
573583
573586
|
}, renderAndRun);
|
|
573584
573587
|
}
|
|
573585
|
-
}).version("0.3.
|
|
573588
|
+
}).version("0.3.7 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
573586
573589
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
573587
573590
|
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
573591
|
if (canUserConfigureAdvisor()) {
|
|
@@ -574111,7 +574114,7 @@ if (false) {}
|
|
|
574111
574114
|
async function main2() {
|
|
574112
574115
|
const args = process.argv.slice(2);
|
|
574113
574116
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
574114
|
-
console.log(`${"0.3.
|
|
574117
|
+
console.log(`${"0.3.7"} (STRATAGEM X7)`);
|
|
574115
574118
|
return;
|
|
574116
574119
|
}
|
|
574117
574120
|
if (args.includes("--provider")) {
|
|
@@ -574233,4 +574236,4 @@ async function main2() {
|
|
|
574233
574236
|
}
|
|
574234
574237
|
main2();
|
|
574235
574238
|
|
|
574236
|
-
//# debugId=
|
|
574239
|
+
//# debugId=A66062B0C691B01264756E2164756E21
|