@parall/parall 1.14.4 → 1.15.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 +3 -3
- package/src/hooks.ts +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/parall",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.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/agent-core": "1.15.0",
|
|
19
|
+
"@parall/sdk": "1.15.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "^22.0.0",
|
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
|