Repository navigation
Expand file tree
/
Copy pathopencode.json
More file actions
55 lines (55 loc) · 2.18 KB
/
Copy pathopencode.json
File metadata and controls
55 lines (55 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$schema": "https://opencode.ai/config.json",
"model": "omniroute/auto-coding",
"share": "disabled",
"permissions": [
{ "action": "read", "resource": "*Siemens/*", "effect": "deny" },
{ "action": "read", "resource": "*MATLAB/*", "effect": "deny" },
{ "action": "read", "resource": "*datasets/*", "effect": "deny" },
{ "action": "read", "resource": "*.venv/*", "effect": "deny" },
{ "action": "read", "resource": "*.ssh/*", "effect": "deny" },
{ "action": "read", "resource": "*.kdbx", "effect": "deny" },
{ "action": "read", "resource": "*.env", "effect": "deny" },
{ "action": "shell", "resource": "*", "effect": "ask" },
{ "action": "shell", "resource": "git status *", "effect": "allow" },
{ "action": "shell", "resource": "git diff *", "effect": "allow" },
{ "action": "shell", "resource": "git log *", "effect": "allow" }
],
"watcher": {
"ignore": [
"**/node_modules/**",
"**/.git/objects/**",
"**/Siemens/**",
"**/MATLAB/**",
"**/datasets/**",
"**/.venv/**",
"**/__pycache__/**",
"**/site-packages/**"
]
},
"providers": {
"omniroute": {
"name": "OmniRoute",
"env": ["OMNIROUTE_API_KEY"],
"package": "@opencode/ai/providers/openai-compatible",
"settings": {
"baseURL": "http://127.0.0.1:20128/v1"
},
"models": {
"auto": { "name": "OmniRoute Auto", "modelID": "auto" },
"auto-coding": { "name": "OmniRoute Auto Coding", "modelID": "auto/coding" },
"auto-fast": { "name": "OmniRoute Auto Fast", "modelID": "auto/fast" }
}
}
},
"command": {
"precheck": {
"description": "parse every PowerShell file in this repo",
"template": "powershell -NoProfile -Command Get-ChildItem . -Recurse -Filter *.ps1 | ForEach-Object { $t=$null; $e=$null; [void][System.Management.Automation.Language.Parser]::ParseFile($_.FullName,[ref]$t,[ref]$e); if($e.Count){$e | ForEach-Object { Write-Error $_.Message } } }"
},
"dryrun": {
"description": "print planned changes without applying them",
"template": "powershell -NoProfile -ExecutionPolicy Bypass -File .\\Install.ps1 -Profile iot -DryRun"
}
}
}