@brutalsystems/muster 1.2.1 → 1.2.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/guard.js +15 -8
- package/package.json +1 -1
package/dist/guard.js
CHANGED
|
@@ -428,14 +428,21 @@ export function runtimeArgs(req) {
|
|
|
428
428
|
return result;
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
|
-
* The keys of a profile's own settings.json that name its skill set
|
|
432
|
-
* its policy. `--setting-sources ""` is what keeps
|
|
433
|
-
* `hooks` muster's alone — forwarding those would
|
|
434
|
-
* what `assertClaudePolicy` refuses to take on
|
|
435
|
-
* carried across, and muster's keys are spread after
|
|
431
|
+
* The keys of a profile's own settings.json that name its skill set or its
|
|
432
|
+
* layout rather than its policy. `--setting-sources ""` is what keeps
|
|
433
|
+
* `permissions`, `sandbox` and `hooks` muster's alone — forwarding those would
|
|
434
|
+
* let a settings file re-widen what `assertClaudePolicy` refuses to take on
|
|
435
|
+
* trust — so only these are carried across, and muster's keys are spread after
|
|
436
|
+
* them and win regardless. `tui` is how a watched session is drawn (#58).
|
|
437
|
+
* `statusLine` is deliberately absent: Claude Code runs no status line while
|
|
438
|
+
* `disableAllHooks` is true, so it would be inert until that changes.
|
|
436
439
|
*/
|
|
437
|
-
const forwardedSettings = [
|
|
438
|
-
|
|
440
|
+
const forwardedSettings = [
|
|
441
|
+
"enabledPlugins",
|
|
442
|
+
"extraKnownMarketplaces",
|
|
443
|
+
"tui",
|
|
444
|
+
];
|
|
445
|
+
function profileForwardedSettings(configDir) {
|
|
439
446
|
let parsed;
|
|
440
447
|
try {
|
|
441
448
|
parsed = JSON.parse(readFileSync(join(configDir, "settings.json"), "utf8"));
|
|
@@ -573,7 +580,7 @@ musterHome = defaultMusterHome(env)) {
|
|
|
573
580
|
// write root ends up naming a directory nobody is launching in.
|
|
574
581
|
const configDir = claudeConfigDir(env);
|
|
575
582
|
const settings = {
|
|
576
|
-
...
|
|
583
|
+
...profileForwardedSettings(configDir),
|
|
577
584
|
disableAllHooks: true,
|
|
578
585
|
// `--setting-sources ""` means an acceptance recorded in the profile's
|
|
579
586
|
// settings.json is never read, so without this the bypass warning stops
|