stratagem-x7 0.4.1 → 0.4.2
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 +26 -15
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -54435,7 +54435,7 @@ var init_types2 = __esm(() => {
|
|
|
54435
54435
|
autoMemoryEnabled: exports_external.boolean().optional().describe("Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory."),
|
|
54436
54436
|
autoMemoryDirectory: exports_external.string().optional().describe("Custom directory path for auto-memory storage. Supports ~/ prefix for home directory expansion. Ignored if set in projectSettings (checked-in .claude/settings.json) for security. When unset, defaults to ~/.claude/projects/<sanitized-cwd>/memory/."),
|
|
54437
54437
|
autoDreamEnabled: exports_external.boolean().optional().describe("Enable background memory consolidation (auto-dream). When set, overrides the server-side default."),
|
|
54438
|
-
autonomyMode: exports_external.enum(["off", "smart", "aggressive"]).optional().describe("Autonomy policy tier: off = normal approvals, smart = classifier-driven autonomy, aggressive = bypass-style execution."),
|
|
54438
|
+
autonomyMode: exports_external.enum(["off", "plan", "smart", "aggressive"]).optional().describe("Autonomy policy tier: off = normal approvals, plan = read-only plan mode, smart = classifier-driven autonomy, aggressive = bypass-style execution."),
|
|
54439
54439
|
showThinkingSummaries: exports_external.boolean().optional().describe("Show thinking summaries in the transcript view (ctrl+o). Default: false."),
|
|
54440
54440
|
skipDangerousModePermissionPrompt: exports_external.boolean().optional().describe("Whether the user has accepted the bypass permissions mode dialog"),
|
|
54441
54441
|
...{},
|
|
@@ -54965,7 +54965,7 @@ var init_settings = __esm(() => {
|
|
|
54965
54965
|
// src/utils/settings/settings.ts
|
|
54966
54966
|
import { dirname as dirname10, join as join23, resolve as resolve9 } from "path";
|
|
54967
54967
|
function normalizeAutonomyModeSetting(value) {
|
|
54968
|
-
return value === "smart" || value === "aggressive" || value === "off" ? value : "off";
|
|
54968
|
+
return value === "plan" || value === "smart" || value === "aggressive" || value === "off" ? value : "off";
|
|
54969
54969
|
}
|
|
54970
54970
|
function getManagedSettingsFilePath() {
|
|
54971
54971
|
return join23(getManagedFilePath(), "managed-settings.json");
|
|
@@ -239092,6 +239092,8 @@ function getAutonomyModeFromSettings(settings) {
|
|
|
239092
239092
|
}
|
|
239093
239093
|
function autonomyModeTitle(mode) {
|
|
239094
239094
|
switch (mode) {
|
|
239095
|
+
case "plan":
|
|
239096
|
+
return "PLAN";
|
|
239095
239097
|
case "smart":
|
|
239096
239098
|
return "SMART";
|
|
239097
239099
|
case "aggressive":
|
|
@@ -239102,6 +239104,8 @@ function autonomyModeTitle(mode) {
|
|
|
239102
239104
|
}
|
|
239103
239105
|
function autonomyModeDescription(mode) {
|
|
239104
239106
|
switch (mode) {
|
|
239107
|
+
case "plan":
|
|
239108
|
+
return "Plan mode — read-only exploration; no edits or shell side effects until you exit.";
|
|
239105
239109
|
case "smart":
|
|
239106
239110
|
return "Classifier-driven autonomy with minimal prompts for routine work.";
|
|
239107
239111
|
case "aggressive":
|
|
@@ -239112,6 +239116,8 @@ function autonomyModeDescription(mode) {
|
|
|
239112
239116
|
}
|
|
239113
239117
|
function autonomyModeColor(mode) {
|
|
239114
239118
|
switch (mode) {
|
|
239119
|
+
case "plan":
|
|
239120
|
+
return "planMode";
|
|
239115
239121
|
case "smart":
|
|
239116
239122
|
return "promptBorder";
|
|
239117
239123
|
case "aggressive":
|
|
@@ -239123,6 +239129,8 @@ function autonomyModeColor(mode) {
|
|
|
239123
239129
|
function getNextAutonomyMode(mode) {
|
|
239124
239130
|
switch (mode) {
|
|
239125
239131
|
case "off":
|
|
239132
|
+
return "plan";
|
|
239133
|
+
case "plan":
|
|
239126
239134
|
return "smart";
|
|
239127
239135
|
case "smart":
|
|
239128
239136
|
return "aggressive";
|
|
@@ -239137,6 +239145,8 @@ function autonomyModeToPermissionMode(mode, context4) {
|
|
|
239137
239145
|
case "smart":
|
|
239138
239146
|
if (false) {}
|
|
239139
239147
|
return "acceptEdits";
|
|
239148
|
+
case "plan":
|
|
239149
|
+
return "plan";
|
|
239140
239150
|
default:
|
|
239141
239151
|
return "default";
|
|
239142
239152
|
}
|
|
@@ -239154,7 +239164,7 @@ function applyAutonomyModeToPermissionContext(context4, autonomyMode) {
|
|
|
239154
239164
|
var AUTONOMY_MODES;
|
|
239155
239165
|
var init_autonomy = __esm(() => {
|
|
239156
239166
|
init_permissionSetup();
|
|
239157
|
-
AUTONOMY_MODES = ["off", "smart", "aggressive"];
|
|
239167
|
+
AUTONOMY_MODES = ["off", "plan", "smart", "aggressive"];
|
|
239158
239168
|
});
|
|
239159
239169
|
|
|
239160
239170
|
// src/utils/settings/applySettingsChange.ts
|
|
@@ -353871,7 +353881,7 @@ function getAnthropicEnvMetadata() {
|
|
|
353871
353881
|
function getBuildAgeMinutes() {
|
|
353872
353882
|
if (false)
|
|
353873
353883
|
;
|
|
353874
|
-
const buildTime = new Date("2026-05-
|
|
353884
|
+
const buildTime = new Date("2026-05-12T05:11:04.056Z").getTime();
|
|
353875
353885
|
if (isNaN(buildTime))
|
|
353876
353886
|
return;
|
|
353877
353887
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -417551,7 +417561,7 @@ async function call7(onDone, _context, args) {
|
|
|
417551
417561
|
onDone(HELP);
|
|
417552
417562
|
return null;
|
|
417553
417563
|
}
|
|
417554
|
-
if (normalized !== "off" && normalized !== "smart" && normalized !== "aggressive") {
|
|
417564
|
+
if (normalized !== "off" && normalized !== "plan" && normalized !== "smart" && normalized !== "aggressive") {
|
|
417555
417565
|
onDone(`Invalid autonomy mode: ${args}.
|
|
417556
417566
|
|
|
417557
417567
|
${HELP}`);
|
|
@@ -417562,10 +417572,11 @@ ${HELP}`);
|
|
|
417562
417572
|
onDone
|
|
417563
417573
|
}, undefined, false, undefined, this);
|
|
417564
417574
|
}
|
|
417565
|
-
var React51, jsx_dev_runtime166, HELP = `Usage: /autonomy [off|smart|aggressive|status]
|
|
417575
|
+
var React51, jsx_dev_runtime166, HELP = `Usage: /autonomy [off|plan|smart|aggressive|status]
|
|
417566
417576
|
|
|
417567
417577
|
Modes:
|
|
417568
417578
|
- off: normal approvals
|
|
417579
|
+
- plan: read-only plan mode (no edits or shell side effects)
|
|
417569
417580
|
- smart: classifier-driven autonomy
|
|
417570
417581
|
- aggressive: bypass-style execution with no permission prompts`;
|
|
417571
417582
|
var init_autonomy2 = __esm(() => {
|
|
@@ -417582,7 +417593,7 @@ var init_autonomy3 = __esm(() => {
|
|
|
417582
417593
|
autonomy = {
|
|
417583
417594
|
type: "local-jsx",
|
|
417584
417595
|
name: "autonomy",
|
|
417585
|
-
description: "Set autonomy mode: off, smart, or aggressive",
|
|
417596
|
+
description: "Set autonomy mode: off, plan, smart, or aggressive",
|
|
417586
417597
|
load: () => Promise.resolve().then(() => (init_autonomy2(), exports_autonomy))
|
|
417587
417598
|
};
|
|
417588
417599
|
autonomy_default = autonomy;
|
|
@@ -421684,7 +421695,7 @@ function buildPrimarySection() {
|
|
|
421684
421695
|
}, undefined, false, undefined, this);
|
|
421685
421696
|
return [{
|
|
421686
421697
|
label: "Version",
|
|
421687
|
-
value: "0.4.
|
|
421698
|
+
value: "0.4.2"
|
|
421688
421699
|
}, {
|
|
421689
421700
|
label: "Session name",
|
|
421690
421701
|
value: nameValue
|
|
@@ -461661,9 +461672,9 @@ function getStartupLines(termWidth) {
|
|
|
461661
461672
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
461662
461673
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
461663
461674
|
if (tw >= 50) {
|
|
461664
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.4.
|
|
461675
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.4.2"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
461665
461676
|
} else {
|
|
461666
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STX7${RESET2} ${rgb3(...ACCENT)}v${"0.4.
|
|
461677
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STX7${RESET2} ${rgb3(...ACCENT)}v${"0.4.2"}${RESET2}`, tw));
|
|
461667
461678
|
}
|
|
461668
461679
|
out.push("");
|
|
461669
461680
|
return out;
|
|
@@ -490478,7 +490489,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
490478
490489
|
var call61 = async () => {
|
|
490479
490490
|
return {
|
|
490480
490491
|
type: "text",
|
|
490481
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
490492
|
+
value: `${"99.0.0"} (built ${"2026-05-12T05:11:04.056Z"})`
|
|
490482
490493
|
};
|
|
490483
490494
|
}, version2, version_default;
|
|
490484
490495
|
var init_version = __esm(() => {
|
|
@@ -559394,7 +559405,7 @@ function WelcomeV2() {
|
|
|
559394
559405
|
dimColor: true,
|
|
559395
559406
|
children: [
|
|
559396
559407
|
"v",
|
|
559397
|
-
"0.4.
|
|
559408
|
+
"0.4.2",
|
|
559398
559409
|
" "
|
|
559399
559410
|
]
|
|
559400
559411
|
}, undefined, true, undefined, this)
|
|
@@ -578852,7 +578863,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
578852
578863
|
pendingHookMessages
|
|
578853
578864
|
}, renderAndRun);
|
|
578854
578865
|
}
|
|
578855
|
-
}).version("0.4.
|
|
578866
|
+
}).version("0.4.2 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
578856
578867
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
578857
578868
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
578858
578869
|
if (canUserConfigureAdvisor()) {
|
|
@@ -579313,7 +579324,7 @@ if (false) {}
|
|
|
579313
579324
|
async function main2() {
|
|
579314
579325
|
const args = process.argv.slice(2);
|
|
579315
579326
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
579316
|
-
console.log(`${"0.4.
|
|
579327
|
+
console.log(`${"0.4.2"} (STRATAGEM X7)`);
|
|
579317
579328
|
return;
|
|
579318
579329
|
}
|
|
579319
579330
|
if (args.includes("--provider")) {
|
|
@@ -579435,4 +579446,4 @@ async function main2() {
|
|
|
579435
579446
|
}
|
|
579436
579447
|
main2();
|
|
579437
579448
|
|
|
579438
|
-
//# debugId=
|
|
579449
|
+
//# debugId=7EE9DC19B245A28E64756E2164756E21
|