openpencil/desktop/capabilities/default.json
Danila Poyarkov 83a5ea1b42
feat(ai): add HarnessAgent sidecar foundation (#560)
* feat(ai): add HarnessAgent sidecar foundation

* feat(ai): integrate Pi as a Harness provider

* fix(ai): harden Harness provider integration

* fix(ai): address Harness integration review

* fix(ai): align Harness code with project conventions

* fix(ai): preserve Harness sessions on cancellation

* test(ai): cover Harness JSONL framing

* refactor(ai): generalize Harness sidecar adapters

* fix(ci): build Harness sidecar for native checks
2026-08-19 17:41:10 +03:00

71 lines
2.1 KiB
JSON

{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"core:default",
"opener:default",
"dialog:default",
"dialog:allow-save",
"dialog:allow-open",
"updater:default",
"process:default",
"clipboard-manager:allow-read-text",
"clipboard-manager:allow-write-html",
"clipboard-manager:allow-write-text",
{
"identifier": "fs:allow-read-file",
"allow": [{ "path": "**" }]
},
{
"identifier": "fs:allow-read-text-file",
"allow": [
{ "path": "$HOME/Library/Application Support/OpenPencil/mcp.json" },
{ "path": "$LOCALDATA/OpenPencil/mcp.json" },
{ "path": "$RUNTIME/openpencil/mcp.json" },
{ "path": "$HOME/.openpencil/mcp.json" }
]
},
{
"identifier": "fs:allow-write-file",
"allow": [{ "path": "**" }]
},
{
"identifier": "fs:allow-exists",
"allow": [
{ "path": "$HOME/Library/Application Support/OpenPencil/mcp.json" },
{ "path": "$LOCALDATA/OpenPencil/mcp.json" },
{ "path": "$RUNTIME/openpencil/mcp.json" },
{ "path": "$HOME/.openpencil/mcp.json" }
]
},
{
"identifier": "fs:allow-mkdir",
"allow": [{ "path": "**" }]
},
{
"identifier": "fs:allow-remove",
"allow": [{ "path": "**" }]
},
{
"identifier": "fs:allow-watch",
"allow": [{ "path": "**" }]
},
"fs:allow-unwatch",
{
"identifier": "shell:allow-spawn",
"allow": [
{ "name": "claude-agent-acp", "cmd": "claude-agent-acp", "args": true },
{ "name": "codex-acp", "cmd": "codex-acp", "args": true },
{ "name": "gemini", "cmd": "gemini", "args": true },
{ "name": "openpencil-mcp-http", "cmd": "openpencil-mcp-http", "args": true },
{ "name": "binaries/openpencil-harness", "sidecar": true, "args": false },
{ "name": "cmd", "cmd": "cmd", "args": true }
]
},
"shell:allow-stdin-write",
"shell:allow-kill"
]
}