@themoltnet/pi-extension 0.13.1 → 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 +23 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1060,7 +1060,9 @@ var reflectDiary = (options) => (options.client ?? client).get({
|
|
|
1060
1060
|
...options
|
|
1061
1061
|
});
|
|
1062
1062
|
/**
|
|
1063
|
-
* Cluster semantically similar entries and return consolidation suggestions.
|
|
1063
|
+
* [DEPRECATED] Server-side consolidation is obsolete. Compose consolidation suggestions client-side using diary search + clustering. Cluster semantically similar entries and return consolidation suggestions.
|
|
1064
|
+
*
|
|
1065
|
+
* @deprecated
|
|
1064
1066
|
*/
|
|
1065
1067
|
var consolidateDiary = (options) => (options.client ?? client).post({
|
|
1066
1068
|
security: [
|
|
@@ -1086,7 +1088,9 @@ var consolidateDiary = (options) => (options.client ?? client).post({
|
|
|
1086
1088
|
}
|
|
1087
1089
|
});
|
|
1088
1090
|
/**
|
|
1089
|
-
* Compile a token-budget-fitted context pack from diary entries.
|
|
1091
|
+
* [DEPRECATED] Server-side compilation is obsolete. Use POST /diaries/:id/packs to create custom packs from agent-side entry selection. Compile a token-budget-fitted context pack from diary entries.
|
|
1092
|
+
*
|
|
1093
|
+
* @deprecated
|
|
1090
1094
|
*/
|
|
1091
1095
|
var compileDiary = (options) => (options.client ?? client).post({
|
|
1092
1096
|
security: [
|
|
@@ -7876,8 +7880,18 @@ var BASE_ALPINE_PACKAGES = [
|
|
|
7876
7880
|
/** gh CLI version installed in every snapshot. */
|
|
7877
7881
|
var GH_VERSION = "2.74.0";
|
|
7878
7882
|
/** MoltNet CLI version — downloaded as a binary, no Node needed. */
|
|
7879
|
-
var MOLTNET_CLI_VERSION = "1.
|
|
7880
|
-
/**
|
|
7883
|
+
var MOLTNET_CLI_VERSION = "1.37.0";
|
|
7884
|
+
/**
|
|
7885
|
+
* Resolve guest architecture from host (Gondolin VMs match host arch).
|
|
7886
|
+
*
|
|
7887
|
+
* The two naming conventions are NOT interchangeable:
|
|
7888
|
+
* - `gh` — GitHub release-asset suffix (gh CLI ships `linux_amd64.tar.gz`,
|
|
7889
|
+
* `linux_arm64.tar.gz`).
|
|
7890
|
+
* - `npm` — npm optionalDependencies naming, which mirrors Node's
|
|
7891
|
+
* `process.arch` values (`x64`, `arm64`). The MoltNet CLI is
|
|
7892
|
+
* published as `@themoltnet/cli-linux-x64` and
|
|
7893
|
+
* `@themoltnet/cli-linux-arm64`, NOT `cli-linux-amd64`.
|
|
7894
|
+
*/
|
|
7881
7895
|
function getGuestArch() {
|
|
7882
7896
|
if (process.arch === "arm64") return {
|
|
7883
7897
|
gh: "linux_arm64",
|
|
@@ -7885,7 +7899,7 @@ function getGuestArch() {
|
|
|
7885
7899
|
};
|
|
7886
7900
|
return {
|
|
7887
7901
|
gh: "linux_amd64",
|
|
7888
|
-
npm: "linux-
|
|
7902
|
+
npm: "linux-x64"
|
|
7889
7903
|
};
|
|
7890
7904
|
}
|
|
7891
7905
|
/** Hosts reachable during snapshot build. */
|
|
@@ -14146,6 +14160,7 @@ async function executePiTask(claimedTask, reporter, opts) {
|
|
|
14146
14160
|
return makeFailedOutput("session_setup_failed", message);
|
|
14147
14161
|
}
|
|
14148
14162
|
let llmAbort = false;
|
|
14163
|
+
let llmErrorMessage = null;
|
|
14149
14164
|
let assistantText = "";
|
|
14150
14165
|
let reporterError = null;
|
|
14151
14166
|
const usage = finalUsage;
|
|
@@ -14188,6 +14203,8 @@ async function executePiTask(claimedTask, reporter, opts) {
|
|
|
14188
14203
|
}
|
|
14189
14204
|
track(emit("turn_end", { stop_reason: msg?.stopReason ?? "end_turn" }));
|
|
14190
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;
|
|
14191
14208
|
}
|
|
14192
14209
|
});
|
|
14193
14210
|
let runError = null;
|
|
@@ -14264,7 +14281,7 @@ async function executePiTask(claimedTask, reporter, opts) {
|
|
|
14264
14281
|
};
|
|
14265
14282
|
const status = runError || llmAbort || parseError || reporterError ? "failed" : "completed";
|
|
14266
14283
|
const errorCode = runError?.code ?? parseError?.code ?? reporterError?.code ?? (llmAbort ? "llm_api_error" : void 0);
|
|
14267
|
-
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);
|
|
14268
14285
|
return {
|
|
14269
14286
|
taskId: task.id,
|
|
14270
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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@opentelemetry/api": "^1.9.0",
|
|
33
33
|
"@sinclair/typebox": "^0.34.0",
|
|
34
34
|
"@themoltnet/agent-runtime": "0.10.0",
|
|
35
|
-
"@themoltnet/sdk": "0.
|
|
35
|
+
"@themoltnet/sdk": "0.99.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@earendil-works/pi-coding-agent": ">=0.74.0",
|