Commit 04928d3
committed
fix(opencode): fix permission evaluation semantics for task permissions
- Fix evaluate() to use correct last-match-wins semantics
- Add Wildcard.isWildcard() utility function
- Fix test expectation for disabled() checking with pattern '*'
- All permission-task.test.ts tests now pass (21/21)1 parent d301e5b commit 04928d3
File tree
3 files changed
+26
-16
lines changed- packages/opencode
- src
- permission
- util
- test
3 files changed
+26
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
255 | 251 | | |
| 252 | + | |
256 | 253 | | |
257 | 254 | | |
258 | 255 | | |
259 | 256 | | |
260 | 257 | | |
261 | | - | |
262 | | - | |
| 258 | + | |
263 | 259 | | |
264 | | - | |
| 260 | + | |
265 | 261 | | |
266 | | - | |
| 262 | + | |
267 | 263 | | |
268 | 264 | | |
269 | 265 | | |
270 | | - | |
271 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
272 | 277 | | |
273 | 278 | | |
274 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
0 commit comments