@getmonoceros/workbench 1.23.0 → 1.23.1
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/bin.js +14 -1
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2515,6 +2515,19 @@ async function writeOpencodeConfig(targetDir, containerName2, features) {
|
|
|
2515
2515
|
...managedInstructions,
|
|
2516
2516
|
...existingInstructions.filter((i) => !managedInstructions.includes(i))
|
|
2517
2517
|
];
|
|
2518
|
+
if (typeof config.permission !== "string") {
|
|
2519
|
+
const permission = typeof config.permission === "object" && config.permission !== null ? config.permission : {};
|
|
2520
|
+
const ext = typeof permission.external_directory === "object" && permission.external_directory !== null ? permission.external_directory : {};
|
|
2521
|
+
for (const p of [
|
|
2522
|
+
`${workspaceRoot}/AGENTS.md`,
|
|
2523
|
+
`${workspaceRoot}/.monoceros/commands.md`,
|
|
2524
|
+
`${workspaceRoot}/projects/**`
|
|
2525
|
+
]) {
|
|
2526
|
+
ext[p] = "allow";
|
|
2527
|
+
}
|
|
2528
|
+
permission.external_directory = ext;
|
|
2529
|
+
config.permission = permission;
|
|
2530
|
+
}
|
|
2518
2531
|
if (model) {
|
|
2519
2532
|
config.model = model;
|
|
2520
2533
|
}
|
|
@@ -7220,7 +7233,7 @@ var CLI_VERSION;
|
|
|
7220
7233
|
var init_version = __esm({
|
|
7221
7234
|
"src/version.ts"() {
|
|
7222
7235
|
"use strict";
|
|
7223
|
-
CLI_VERSION = true ? "1.23.
|
|
7236
|
+
CLI_VERSION = true ? "1.23.1" : "dev";
|
|
7224
7237
|
}
|
|
7225
7238
|
});
|
|
7226
7239
|
|