permission addition

This commit is contained in:
2026-03-16 22:32:52 -04:00
parent 7c45451212
commit f54ce0579b
4 changed files with 99 additions and 7 deletions

View File

@@ -160,6 +160,8 @@ This allows development before the SDK is officially published to npm.
## Install Into Paperclip (Local Development)
The API port may vary depending on your setup. Common ports are `3100` (dev server) or `8087`. Check your Paperclip startup logs or use `curl http://localhost:3100/api/health` to find the correct port.
### Step 1: Build the plugin
```bash
@@ -176,10 +178,13 @@ After building, install the plugin into your local Paperclip instance using the
curl -X POST http://localhost:3100/api/plugins/install \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-api-key>" \
-d '{"packageName":"/home/mike/code/paperclip_plugins/plugin-agent-permissions","isLocalPath":true}'
-d '{"packageName":"/absolute/path/to/paperclip_plugins/plugin-agent-permissions","isLocalPath":true}'
```
**Note:** Replace `<your-api-key>` with your Paperclip API key. For local development, you can get this from browser dev tools or the CLI config.
**Note:**
- Replace `<your-api-key>` with your Paperclip API key
- Replace `/absolute/path/to/paperclip_plugins` with the actual absolute path to this repository
- The port (3100) may need to be changed to match your Paperclip instance (e.g., 8087)
The server watches local-path plugins and will automatically restart the worker after rebuilds.
@@ -190,7 +195,7 @@ curl http://localhost:3100/api/plugins \
-H "Authorization: Bearer <your-api-key>"
```
You should see `plugin-agent-permissions` in the list.
You should see `plugin-agent-permissions` in the list. (Replace 3100 with your port if different.)
## Uninstall