opencode-conductor-plugin 1.18.0 → 1.19.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 +23 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78,6 +78,7 @@ const ConductorPlugin = async (ctx) => {
|
|
|
78
78
|
console.log("[Conductor] All components ready. Injecting config...");
|
|
79
79
|
return {
|
|
80
80
|
tool: {
|
|
81
|
+
...(ctx.client.tool || {}),
|
|
81
82
|
"conductor_delegate": createDelegationTool(ctx),
|
|
82
83
|
"conductor_bg_task": createBackgroundTask(backgroundManager),
|
|
83
84
|
"conductor_bg_output": createBackgroundOutput(backgroundManager),
|
|
@@ -122,10 +123,17 @@ const ConductorPlugin = async (ctx) => {
|
|
|
122
123
|
mode: "primary",
|
|
123
124
|
prompt: conductorPrompt,
|
|
124
125
|
permission: {
|
|
126
|
+
"read": {
|
|
127
|
+
"*": "allow",
|
|
128
|
+
"*.env": "deny",
|
|
129
|
+
"*.env.*": "deny",
|
|
130
|
+
"*.env.example": "allow"
|
|
131
|
+
},
|
|
125
132
|
bash: "allow",
|
|
126
133
|
edit: "allow",
|
|
127
134
|
webfetch: "allow",
|
|
128
135
|
external_directory: "deny",
|
|
136
|
+
list: "allow",
|
|
129
137
|
},
|
|
130
138
|
tools: {
|
|
131
139
|
bash: true,
|
|
@@ -145,10 +153,25 @@ const ConductorPlugin = async (ctx) => {
|
|
|
145
153
|
mode: "primary",
|
|
146
154
|
prompt: implementerPrompt,
|
|
147
155
|
permission: {
|
|
156
|
+
"read": {
|
|
157
|
+
"*": "allow",
|
|
158
|
+
"*.env": "deny",
|
|
159
|
+
"*.env.*": "deny",
|
|
160
|
+
"*.env.example": "allow"
|
|
161
|
+
},
|
|
148
162
|
bash: "allow",
|
|
149
163
|
edit: "allow",
|
|
150
164
|
webfetch: "allow",
|
|
151
165
|
external_directory: "deny",
|
|
166
|
+
list: "allow",
|
|
167
|
+
"conductor_delegate": "allow",
|
|
168
|
+
"conductor_bg_task": "allow",
|
|
169
|
+
"conductor_bg_output": "allow",
|
|
170
|
+
"conductor_bg_cancel": "allow",
|
|
171
|
+
grep: "allow",
|
|
172
|
+
glob: "allow",
|
|
173
|
+
todowrite: "allow",
|
|
174
|
+
todoread: "allow",
|
|
152
175
|
},
|
|
153
176
|
tools: {
|
|
154
177
|
bash: true,
|