@themoltnet/pi-extension 0.22.2 → 0.22.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 +16 -3
- package/package.json +8 -3
package/dist/index.js
CHANGED
|
@@ -11,7 +11,8 @@ import { Type, getModel } from "@earendil-works/pi-ai";
|
|
|
11
11
|
import { MemoryProvider, 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";
|
|
14
|
-
import
|
|
14
|
+
import * as TypeBox from "@sinclair/typebox";
|
|
15
|
+
import { Type as Type$1 } from "@sinclair/typebox";
|
|
15
16
|
import { Value } from "@sinclair/typebox/value";
|
|
16
17
|
//#region \0rolldown/runtime.js
|
|
17
18
|
var __defProp = Object.defineProperty;
|
|
@@ -8935,8 +8936,20 @@ async function resolvePersistentSessionManager(args) {
|
|
|
8935
8936
|
* Idempotent: registration is guarded by `FormatRegistry.Has(...)`.
|
|
8936
8937
|
*/
|
|
8937
8938
|
var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
8938
|
-
|
|
8939
|
-
|
|
8939
|
+
function isFormatRegistryApi(registry) {
|
|
8940
|
+
return typeof registry === "object" && registry !== null && "Has" in registry && "Set" in registry && typeof registry.Has === "function" && typeof registry.Set === "function";
|
|
8941
|
+
}
|
|
8942
|
+
function getFormatRegistry() {
|
|
8943
|
+
const registry = TypeBox.FormatRegistry;
|
|
8944
|
+
if (registry === void 0) return;
|
|
8945
|
+
if (!isFormatRegistryApi(registry)) throw new TypeError("Invalid TypeBox FormatRegistry export");
|
|
8946
|
+
return registry;
|
|
8947
|
+
}
|
|
8948
|
+
var FormatRegistry = getFormatRegistry();
|
|
8949
|
+
if (FormatRegistry) {
|
|
8950
|
+
if (!FormatRegistry.Has("uuid")) FormatRegistry.Set("uuid", (v) => UUID_RE.test(v));
|
|
8951
|
+
if (!FormatRegistry.Has("date-time")) FormatRegistry.Set("date-time", (v) => !Number.isNaN(Date.parse(v)));
|
|
8952
|
+
}
|
|
8940
8953
|
//#endregion
|
|
8941
8954
|
//#region ../tasks/src/context.ts
|
|
8942
8955
|
/**
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@themoltnet/pi-extension",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MoltNet pi extension — sandboxed tool execution in Gondolin VMs with MoltNet identity and persistent memory",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"moltnet",
|
|
8
|
+
"pi-extension",
|
|
9
|
+
"task-execution"
|
|
10
|
+
],
|
|
6
11
|
"license": "MIT",
|
|
7
12
|
"repository": {
|
|
8
13
|
"type": "git",
|
|
@@ -31,8 +36,8 @@
|
|
|
31
36
|
"@earendil-works/gondolin": "^0.9.1",
|
|
32
37
|
"@opentelemetry/api": "^1.9.0",
|
|
33
38
|
"@sinclair/typebox": "^0.34.0",
|
|
34
|
-
"@themoltnet/
|
|
35
|
-
"@themoltnet/
|
|
39
|
+
"@themoltnet/sdk": "0.106.0",
|
|
40
|
+
"@themoltnet/agent-runtime": "0.22.3"
|
|
36
41
|
},
|
|
37
42
|
"peerDependencies": {
|
|
38
43
|
"@earendil-works/pi-coding-agent": ">=0.74.0",
|