@parall/parall 1.24.0 → 1.25.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/parall",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0",
|
|
4
4
|
"description": "OpenClaw channel plugin for Parall IM",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"openclaw.plugin.json"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@parall/
|
|
19
|
-
"@parall/
|
|
18
|
+
"@parall/sdk": "1.25.0",
|
|
19
|
+
"@parall/agent-core": "1.25.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "^22.0.0",
|
|
@@ -118,6 +118,32 @@ parall dm "Alice" --file /tmp/report.pdf --text "Report attached"
|
|
|
118
118
|
|
|
119
119
|
`--file` and `--attachment` are mutually exclusive. `--text` can be combined with either.
|
|
120
120
|
|
|
121
|
+
## Approvals
|
|
122
|
+
|
|
123
|
+
When a CLI command returns a `PERMISSION_DENIED` error, the output includes a `Tip:` line with an approval-request template — copy it and fill in the remaining placeholders (`--chat`, `--title`, `--reason`). The `Tip:` only appears for commonly approvable actions (archive, delete, restore); for other actions, use `parall approvals actions` to check if it's approvable.
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Request approval (use action and resource_uri from the error)
|
|
127
|
+
parall approvals request --action chat.archive --resource prll://cht_xxx --chat prll://cht_yyy --title "Archive old channel" --reason "No activity in 6 months"
|
|
128
|
+
|
|
129
|
+
# Check a specific approval's status
|
|
130
|
+
parall approvals get prll://apr_xxx
|
|
131
|
+
|
|
132
|
+
# Wait for a decision (blocks until approved/rejected/timeout)
|
|
133
|
+
parall approvals wait prll://apr_xxx --timeout 300
|
|
134
|
+
|
|
135
|
+
# List all your pending approvals
|
|
136
|
+
parall approvals list
|
|
137
|
+
|
|
138
|
+
# List available approvable actions
|
|
139
|
+
parall approvals actions
|
|
140
|
+
|
|
141
|
+
# Cancel a pending request you made
|
|
142
|
+
parall approvals cancel prll://apr_xxx
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Only request approval after receiving an actual `PERMISSION_DENIED` error — never preemptively. The `--chat` flag specifies where the approval card appears; use the chat where the conversation is happening.
|
|
146
|
+
|
|
121
147
|
## Reference URIs
|
|
122
148
|
|
|
123
149
|
Every entity is addressable with a `prll://` URI. Common prefixes you'll see in events, messages, and schedule descriptions:
|