claude-task-worker 0.112.0 → 0.113.0
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/index.js +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5407,6 +5407,7 @@ import { homedir as homedir6 } from "node:os";
|
|
|
5407
5407
|
import { join as join8 } from "node:path";
|
|
5408
5408
|
var LOG_PREFIX = "cloud-setup";
|
|
5409
5409
|
var CLOUD_DEFAULT_PERMISSION_MODE = "auto";
|
|
5410
|
+
var CLOUD_PERMISSION_ALLOW = ["Bash(gh *)"];
|
|
5410
5411
|
var CLOUD_SETTINGS_DEFAULTS = {
|
|
5411
5412
|
outputStyle: "Proactive",
|
|
5412
5413
|
language: "Japanese"
|
|
@@ -5442,6 +5443,13 @@ function withCloudDefaults(existing, force) {
|
|
|
5442
5443
|
changed = true;
|
|
5443
5444
|
};
|
|
5444
5445
|
set(permissions, "defaultMode", CLOUD_DEFAULT_PERMISSION_MODE);
|
|
5446
|
+
const allow = permissions["allow"] ?? [];
|
|
5447
|
+
if (!Array.isArray(allow)) throw new Error("`permissions.allow` is not an array");
|
|
5448
|
+
const missing = CLOUD_PERMISSION_ALLOW.filter((rule) => !allow.includes(rule));
|
|
5449
|
+
if (missing.length > 0) {
|
|
5450
|
+
permissions["allow"] = [...allow, ...missing];
|
|
5451
|
+
changed = true;
|
|
5452
|
+
}
|
|
5445
5453
|
for (const [key, value] of Object.entries(CLOUD_SETTINGS_DEFAULTS)) set(settings, key, value);
|
|
5446
5454
|
for (const [key, value] of Object.entries(CLOUD_SETTINGS_ENV)) set(env, key, value);
|
|
5447
5455
|
if (!changed) return null;
|