@gholl-studio/pier-connector 0.2.47 → 0.2.48
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 +1 -1
- package/src/index.js +2 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gholl-studio/pier-connector",
|
|
3
3
|
"author": "gholl",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.48",
|
|
5
5
|
"description": "OpenClaw plugin that connects to the Pier job marketplace. Automatically fetches, executes, and reports distributed tasks for rewards.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "src/index.js",
|
package/src/index.js
CHANGED
|
@@ -256,13 +256,14 @@ export default function register(api) {
|
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
const ctxPayload = api.runtime.channel.reply.finalizeInboundContext({
|
|
259
|
+
AgentId: finalAgentId, // Explicitly override with our calculated routing result
|
|
259
260
|
Body: inbound.text,
|
|
260
261
|
BodyForAgent: inbound.text,
|
|
261
262
|
RawBody: inbound.text,
|
|
262
263
|
From: inbound.senderId,
|
|
263
264
|
To: `pier:${jobId}`,
|
|
264
265
|
SessionKey: dynamicSessionKey,
|
|
265
|
-
AccountId:
|
|
266
|
+
AccountId: inbound.accountId, // Use the real inbound account name
|
|
266
267
|
ChatType: 'direct',
|
|
267
268
|
SenderId: inbound.senderId,
|
|
268
269
|
Provider: 'pier',
|