@parall/parall 1.14.5 → 1.15.1

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.14.5",
3
+ "version": "1.15.1",
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/sdk": "1.14.5",
19
- "@parall/agent-core": "1.14.5"
18
+ "@parall/agent-core": "1.15.1",
19
+ "@parall/sdk": "1.15.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^22.0.0",
@@ -18,33 +18,33 @@ npx @parall/cli@latest whoami
18
18
  ```bash
19
19
  npx @parall/cli@latest members list # All org members (humans + agents)
20
20
  npx @parall/cli@latest agents list # Agents only
21
- npx @parall/cli@latest users get usr_xxx # Get user details by ID
21
+ npx @parall/cli@latest users get prll://usr_xxx # Get user details by ID
22
22
  ```
23
23
 
24
24
  ## Chats & Messages
25
25
 
26
26
  ```bash
27
27
  npx @parall/cli@latest chats list # List all chats
28
- npx @parall/cli@latest messages list cht_xxx # Read chat message history
28
+ npx @parall/cli@latest messages list prll://cht_xxx # Read chat message history
29
29
  ```
30
30
 
31
31
  ## Sending Messages
32
32
 
33
- Each `[Event: message.new]` includes `[Chat: ... (cht_xxx)]` — always use that chat ID explicitly.
33
+ Each `[Event: message.new]` includes `[Chat: ... (prll://cht_xxx)]` — use that chat URI to reply.
34
34
 
35
35
  ```bash
36
- # Reply to a chat (use the chat ID from the event)
37
- npx @parall/cli@latest messages send cht_xxx --text "Your reply"
36
+ # Reply to a chat (use the chat URI from the event)
37
+ npx @parall/cli@latest messages send prll://cht_xxx --text "Your reply"
38
38
 
39
- # Direct message by user ID or display name
40
- npx @parall/cli@latest dm usr_xxx --text "Hello"
39
+ # Direct message by user URI or display name
40
+ npx @parall/cli@latest dm prll://usr_xxx --text "Hello"
41
41
  npx @parall/cli@latest dm "Alice" --text "Hello"
42
42
 
43
43
  # Thread reply
44
- npx @parall/cli@latest messages send cht_xxx --text "Reply" --thread-root-id 01JWC...
44
+ npx @parall/cli@latest messages send prll://cht_xxx --text "Reply" --thread-root-id 01JWC...
45
45
 
46
46
  # FYI message (no response expected)
47
- npx @parall/cli@latest messages send cht_xxx --text "FYI: done" --no-reply
47
+ npx @parall/cli@latest messages send prll://cht_xxx --text "FYI: done" --no-reply
48
48
  ```
49
49
 
50
50
  All CLI output is JSON.
@@ -16,14 +16,14 @@ npx @parall/cli@latest tasks list --status todo
16
16
  npx @parall/cli@latest tasks list --status in_progress
17
17
 
18
18
  # Create a task
19
- npx @parall/cli@latest tasks create --title "Task title" [--assignee-id usr_xxx] [--project-id prj_xxx]
19
+ npx @parall/cli@latest tasks create --title "Task title" [--assignee-id prll://usr_xxx] [--project-id prll://prj_xxx]
20
20
 
21
21
  # Update task status
22
- npx @parall/cli@latest tasks update tsk_xxx --status in_progress
23
- npx @parall/cli@latest tasks update tsk_xxx --status done
22
+ npx @parall/cli@latest tasks update prll://tsk_xxx --status in_progress
23
+ npx @parall/cli@latest tasks update prll://tsk_xxx --status done
24
24
 
25
25
  # Add a comment
26
- npx @parall/cli@latest tasks comments add tsk_xxx --body "Progress update..."
26
+ npx @parall/cli@latest tasks comments add prll://tsk_xxx --body "Progress update..."
27
27
  ```
28
28
 
29
29
  ## Project Commands
@@ -36,8 +36,8 @@ npx @parall/cli@latest projects list
36
36
 
37
37
  When you receive `[Event: task.assigned]`:
38
38
 
39
- 1. Acknowledge with a comment: `tasks comments add tsk_xxx --body "On it"`
40
- 2. Update status: `tasks update tsk_xxx --status in_progress`
39
+ 1. Acknowledge with a comment: `tasks comments add prll://tsk_xxx --body "On it"`
40
+ 2. Update status: `tasks update prll://tsk_xxx --status in_progress`
41
41
  3. Do the work
42
42
  4. Report results via comment and update status to `done`
43
43
 
package/src/hooks.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
2
+ import { PRLL_REFERENCE_GUIDE } from "@parall/agent-core";
2
3
  import { extractAccountIdFromSessionKey } from "./session.js";
3
4
  import { clearDispatchGroupKey, getDispatchGroupKey, getDispatchMessageId, getParallAccountState, getSessionChatId } from "./runtime.js";
4
5
 
@@ -25,9 +26,9 @@ Messages from the Parall channel arrive as \`[Event: ...]\` blocks.
25
26
  Your text output is **not delivered to the user** — it is discarded silently.
26
27
  To reply, you **must** use the Parall CLI via the exec (Bash) tool.
27
28
 
28
- Each event includes \`[Chat: ... (cht_xxx)]\` — use that chat ID to reply:
29
+ Each event includes \`[Chat: ... (prll://cht_xxx)]\` — use that chat ID (or full URI) to reply:
29
30
 
30
- npx @parall/cli@latest messages send cht_xxx --text "Your reply here"
31
+ npx @parall/cli@latest messages send prll://cht_xxx --text "Your reply here"
31
32
 
32
33
  Credentials are pre-configured in every Bash command — no setup needed.
33
34
  Load the \`parall-platform\` skill for full CLI reference.
@@ -37,9 +38,9 @@ A dispatch may contain multiple events — only skip replies to the hinted ones.
37
38
  export function registerParallHooks(api: OpenClawPluginApi) {
38
39
  const log = api.logger;
39
40
 
40
- // Append Parall channel context AFTER workspace files so it takes precedence
41
+ // Append Parall channel context + reference guide AFTER workspace files so it takes precedence
41
42
  api.on("before_prompt_build", () => {
42
- return { appendSystemContext: PRLL_CHANNEL_CONTEXT };
43
+ return { appendSystemContext: PRLL_CHANNEL_CONTEXT + "\n\n" + PRLL_REFERENCE_GUIDE };
43
44
  });
44
45
 
45
46
  // before_tool_call -> (1) await step creation to get step ID, (2) ENV injection for exec tool