@themoltnet/pi-extension 0.13.0 → 0.13.2

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 CHANGED
@@ -1,8 +1,8 @@
1
- import { BashOperations } from '@mariozechner/pi-coding-agent';
1
+ import { BashOperations } from '@earendil-works/pi-coding-agent';
2
2
  import { connect } from '@themoltnet/sdk';
3
- import { EditOperations } from '@mariozechner/pi-coding-agent';
4
- import { ExtensionAPI } from '@mariozechner/pi-coding-agent';
5
- import { ReadOperations } from '@mariozechner/pi-coding-agent';
3
+ import { EditOperations } from '@earendil-works/pi-coding-agent';
4
+ import { ExtensionAPI } from '@earendil-works/pi-coding-agent';
5
+ import { ReadOperations } from '@earendil-works/pi-coding-agent';
6
6
  import { Static } from '@sinclair/typebox';
7
7
  import { TArray } from '@sinclair/typebox';
8
8
  import { TBoolean } from '@sinclair/typebox';
@@ -11,14 +11,14 @@ import { TLiteral } from '@sinclair/typebox';
11
11
  import { TNull } from '@sinclair/typebox';
12
12
  import { TNumber } from '@sinclair/typebox';
13
13
  import { TObject } from '@sinclair/typebox';
14
- import { ToolDefinition } from '@mariozechner/pi-coding-agent';
14
+ import { ToolDefinition } from '@earendil-works/pi-coding-agent';
15
15
  import { TOptional } from '@sinclair/typebox';
16
16
  import { TRecord } from '@sinclair/typebox';
17
17
  import { TString } from '@sinclair/typebox';
18
18
  import { TUnion } from '@sinclair/typebox';
19
19
  import { TUnknown } from '@sinclair/typebox';
20
20
  import { VM } from '@earendil-works/gondolin';
21
- import { WriteOperations } from '@mariozechner/pi-coding-agent';
21
+ import { WriteOperations } from '@earendil-works/pi-coding-agent';
22
22
 
23
23
  /**
24
24
  * Apply agent env vars to the host process, mirroring `moltnet start`.
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@ import { createRequire } from "node:module";
2
2
  import { execFileSync } from "node:child_process";
3
3
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync } from "node:fs";
4
4
  import path, { join } from "node:path";
5
- import { DefaultResourceLoader, SessionManager, createAgentSession, createBashTool, createBashToolDefinition, createEditTool, createEditToolDefinition, createReadTool, createReadToolDefinition, createWriteTool, createWriteToolDefinition, defineTool } from "@mariozechner/pi-coding-agent";
5
+ import { DefaultResourceLoader, SessionManager, createAgentSession, createBashTool, createBashToolDefinition, createEditTool, createEditToolDefinition, createReadTool, createReadToolDefinition, createWriteTool, createWriteToolDefinition, defineTool } from "@earendil-works/pi-coding-agent";
6
6
  import { createHash } from "node:crypto";
7
7
  import crypto, { createHash as createHash$1 } from "crypto";
8
8
  import { readFile } from "node:fs/promises";
9
9
  import { homedir } from "node:os";
10
- import { Type, getModel } from "@mariozechner/pi-ai";
10
+ import { Type, getModel } from "@earendil-works/pi-ai";
11
11
  import { RealFSProvider, ShadowProvider, VM, VmCheckpoint, createHttpHooks, createShadowPathPredicate, ensureImageSelector, loadGuestAssets } from "@earendil-works/gondolin";
12
12
  import { parseEnv } from "node:util";
13
13
  import { SpanStatusCode, context, metrics, trace } from "@opentelemetry/api";
@@ -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.28.0";
7880
- /** Resolve guest architecture from host (Gondolin VMs match host arch). */
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-amd64"
7902
+ npm: "linux-x64"
7889
7903
  };
7890
7904
  }
7891
7905
  /** Hosts reachable during snapshot build. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@themoltnet/pi-extension",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
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,24 +31,24 @@
31
31
  "@earendil-works/gondolin": "^0.7.0",
32
32
  "@opentelemetry/api": "^1.9.0",
33
33
  "@sinclair/typebox": "^0.34.0",
34
- "@themoltnet/agent-runtime": "0.10.0",
35
- "@themoltnet/sdk": "0.98.0"
34
+ "@themoltnet/sdk": "0.99.0",
35
+ "@themoltnet/agent-runtime": "0.10.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@mariozechner/pi-coding-agent": ">=0.73.0",
39
- "@mariozechner/pi-ai": ">=0.73.0"
38
+ "@earendil-works/pi-coding-agent": ">=0.74.0",
39
+ "@earendil-works/pi-ai": ">=0.74.0"
40
40
  },
41
41
  "peerDependenciesMeta": {
42
- "@mariozechner/pi-coding-agent": {
42
+ "@earendil-works/pi-coding-agent": {
43
43
  "optional": false
44
44
  },
45
- "@mariozechner/pi-ai": {
45
+ "@earendil-works/pi-ai": {
46
46
  "optional": false
47
47
  }
48
48
  },
49
49
  "devDependencies": {
50
- "@mariozechner/pi-ai": "^0.73.0",
51
- "@mariozechner/pi-coding-agent": "^0.73.0",
50
+ "@earendil-works/pi-ai": "^0.74.0",
51
+ "@earendil-works/pi-coding-agent": "^0.74.0",
52
52
  "@opentelemetry/sdk-metrics": "^2.5.1",
53
53
  "@opentelemetry/sdk-trace-base": "^2.5.1",
54
54
  "@types/node": "^20.11.0",