@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.
Files changed (2) hide show
  1. package/index.ts +5 -0
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@straussenl/opencode-ask-mode",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Read-only Ask mode plugin for OpenCode — no edits, no shell commands, just answers.",
5
5
  "type": "module",
6
6
  "exports": "./index.ts",