@straussenl/opencode-ask-mode 1.0.11 → 1.0.12
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/index.ts +5 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -6,11 +6,16 @@ const askPlugin: Plugin = async (_ctx) => {
|
|
|
6
6
|
const agents = (cfg.agent ?? {}) as Record<string, unknown>
|
|
7
7
|
cfg.agent = agents
|
|
8
8
|
|
|
9
|
+
const existing = (agents["ask"] ?? {}) as Record<string, unknown>
|
|
10
|
+
const existingPermission = (existing.permission ?? {}) as Record<string, unknown>
|
|
11
|
+
|
|
9
12
|
agents["ask"] = {
|
|
10
13
|
description: "Read-only assistant — ask questions about your codebase. No file edits, no shell commands.",
|
|
11
14
|
mode: "primary",
|
|
12
15
|
color: "#22c55e",
|
|
16
|
+
...existing,
|
|
13
17
|
permission: {
|
|
18
|
+
...existingPermission,
|
|
14
19
|
edit: "deny",
|
|
15
20
|
bash: "deny",
|
|
16
21
|
task: { "*": "deny", "explore": "allow" },
|
package/package.json
CHANGED