@perkos/perkos-a2a 0.8.7 → 0.8.8
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,cAAc,YAAY,CAAC;AAuB3B,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,cAAc,YAAY,CAAC;AAuB3B,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,GAAG,QAofxC"}
|
package/dist/index.js
CHANGED
|
@@ -27218,7 +27218,23 @@ function register(api) {
|
|
|
27218
27218
|
prompt,
|
|
27219
27219
|
timeoutMs: api.runtime.agent.resolveAgentTimeoutMs(cfg)
|
|
27220
27220
|
});
|
|
27221
|
-
const
|
|
27221
|
+
const payloadText = result?.payloads?.map((p) => p?.text).filter(Boolean).join("\n\n") || "";
|
|
27222
|
+
const finalText = (result?.meta?.finalAssistantVisibleText || payloadText || "").trim();
|
|
27223
|
+
task.artifacts.push({
|
|
27224
|
+
kind: "artifact",
|
|
27225
|
+
artifactId: randomUUID4(),
|
|
27226
|
+
parts: [{
|
|
27227
|
+
kind: "text",
|
|
27228
|
+
text: JSON.stringify({
|
|
27229
|
+
debug: "embedded-run-result",
|
|
27230
|
+
stopReason: result?.meta?.stopReason || null,
|
|
27231
|
+
finalAssistantVisibleText: result?.meta?.finalAssistantVisibleText || null,
|
|
27232
|
+
payloadText: payloadText || null,
|
|
27233
|
+
didSendViaMessagingTool: result?.didSendViaMessagingTool || false,
|
|
27234
|
+
payloadCount: Array.isArray(result?.payloads) ? result.payloads.length : 0
|
|
27235
|
+
}, null, 2)
|
|
27236
|
+
}]
|
|
27237
|
+
});
|
|
27222
27238
|
if (finalText) {
|
|
27223
27239
|
task.artifacts.push({
|
|
27224
27240
|
kind: "artifact",
|