@themoltnet/pi-extension 0.13.2 → 0.13.3
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.js +4 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -14160,6 +14160,7 @@ async function executePiTask(claimedTask, reporter, opts) {
|
|
|
14160
14160
|
return makeFailedOutput("session_setup_failed", message);
|
|
14161
14161
|
}
|
|
14162
14162
|
let llmAbort = false;
|
|
14163
|
+
let llmErrorMessage = null;
|
|
14163
14164
|
let assistantText = "";
|
|
14164
14165
|
let reporterError = null;
|
|
14165
14166
|
const usage = finalUsage;
|
|
@@ -14202,6 +14203,8 @@ async function executePiTask(claimedTask, reporter, opts) {
|
|
|
14202
14203
|
}
|
|
14203
14204
|
track(emit("turn_end", { stop_reason: msg?.stopReason ?? "end_turn" }));
|
|
14204
14205
|
llmAbort = msg?.stopReason === "error";
|
|
14206
|
+
if (msg?.stopReason === "error") llmErrorMessage = typeof msg.errorMessage === "string" && msg.errorMessage.length > 0 ? msg.errorMessage : null;
|
|
14207
|
+
else llmErrorMessage = null;
|
|
14205
14208
|
}
|
|
14206
14209
|
});
|
|
14207
14210
|
let runError = null;
|
|
@@ -14278,7 +14281,7 @@ async function executePiTask(claimedTask, reporter, opts) {
|
|
|
14278
14281
|
};
|
|
14279
14282
|
const status = runError || llmAbort || parseError || reporterError ? "failed" : "completed";
|
|
14280
14283
|
const errorCode = runError?.code ?? parseError?.code ?? reporterError?.code ?? (llmAbort ? "llm_api_error" : void 0);
|
|
14281
|
-
const errorMessage = runError?.message ?? parseError?.message ?? reporterError?.message ?? (llmAbort ? "LLM API error during turn" : void 0);
|
|
14284
|
+
const errorMessage = runError?.message ?? parseError?.message ?? reporterError?.message ?? (llmAbort ? llmErrorMessage ?? "LLM API error during turn" : void 0);
|
|
14282
14285
|
return {
|
|
14283
14286
|
taskId: task.id,
|
|
14284
14287
|
attemptN,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@themoltnet/pi-extension",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MoltNet pi extension — sandboxed tool execution in Gondolin VMs with MoltNet identity and persistent memory",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@earendil-works/gondolin": "^0.7.0",
|
|
32
32
|
"@opentelemetry/api": "^1.9.0",
|
|
33
33
|
"@sinclair/typebox": "^0.34.0",
|
|
34
|
-
"@themoltnet/
|
|
35
|
-
"@themoltnet/
|
|
34
|
+
"@themoltnet/agent-runtime": "0.10.0",
|
|
35
|
+
"@themoltnet/sdk": "0.99.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@earendil-works/pi-coding-agent": ">=0.74.0",
|