@themoltnet/pi-extension 0.7.0 → 0.8.0
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 +1 -0
- package/dist/index.js +19 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -272,6 +272,7 @@ declare const Task: TObject< {
|
|
|
272
272
|
imposedByAgentId: TUnion<[TString, TNull]>;
|
|
273
273
|
imposedByHumanId: TUnion<[TString, TNull]>;
|
|
274
274
|
acceptedAttemptN: TUnion<[TNumber, TNull]>;
|
|
275
|
+
requiredExecutorTrustLevel: TUnion<[TLiteral<"selfDeclared">, TLiteral<"agentSigned">, TLiteral<"releaseVerifiedTool">, TLiteral<"sandboxAttested">]>;
|
|
275
276
|
status: TUnion<[TLiteral<"queued">, TLiteral<"dispatched">, TLiteral<"running">, TLiteral<"completed">, TLiteral<"failed">, TLiteral<"cancelled">, TLiteral<"expired">]>;
|
|
276
277
|
queuedAt: TString;
|
|
277
278
|
completedAt: TUnion<[TString, TNull]>;
|
package/dist/index.js
CHANGED
|
@@ -2536,6 +2536,7 @@ function createDiaryGrantsNamespace(context) {
|
|
|
2536
2536
|
}
|
|
2537
2537
|
};
|
|
2538
2538
|
}
|
|
2539
|
+
new TextEncoder();
|
|
2539
2540
|
//#endregion
|
|
2540
2541
|
//#region ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
|
|
2541
2542
|
/** Checks if something is Uint8Array. Be careful: nodejs Buffer will return true. */
|
|
@@ -4266,6 +4267,13 @@ etc.sha512Sync = (...m) => {
|
|
|
4266
4267
|
return hash.digest();
|
|
4267
4268
|
};
|
|
4268
4269
|
//#endregion
|
|
4270
|
+
//#region ../crypto-service/src/executor-attestation.ts
|
|
4271
|
+
etc.sha512Sync = (...m) => {
|
|
4272
|
+
const hash = createHash("sha512");
|
|
4273
|
+
m.forEach((msg) => hash.update(msg));
|
|
4274
|
+
return hash.digest();
|
|
4275
|
+
};
|
|
4276
|
+
//#endregion
|
|
4269
4277
|
//#region ../../node_modules/.pnpm/multiformats@13.4.2/node_modules/multiformats/dist/src/codecs/json.js
|
|
4270
4278
|
var textEncoder$1 = new TextEncoder();
|
|
4271
4279
|
new TextDecoder();
|
|
@@ -9224,6 +9232,12 @@ var TaskAttemptStatus = Type$1.Union([
|
|
|
9224
9232
|
Type$1.Literal("cancelled"),
|
|
9225
9233
|
Type$1.Literal("timed_out")
|
|
9226
9234
|
], { $id: "TaskAttemptStatus" });
|
|
9235
|
+
var ExecutorTrustLevel = Type$1.Union([
|
|
9236
|
+
Type$1.Literal("selfDeclared"),
|
|
9237
|
+
Type$1.Literal("agentSigned"),
|
|
9238
|
+
Type$1.Literal("releaseVerifiedTool"),
|
|
9239
|
+
Type$1.Literal("sandboxAttested")
|
|
9240
|
+
], { $id: "ExecutorTrustLevel" });
|
|
9227
9241
|
var OutputKind = Type$1.Union([Type$1.Literal("artifact"), Type$1.Literal("judgment")], { $id: "OutputKind" });
|
|
9228
9242
|
var TaskMessageKind = Type$1.Union([
|
|
9229
9243
|
Type$1.Literal("text_delta"),
|
|
@@ -9316,6 +9330,7 @@ Type$1.Object({
|
|
|
9316
9330
|
imposedByAgentId: Type$1.Union([Uuid, Type$1.Null()]),
|
|
9317
9331
|
imposedByHumanId: Type$1.Union([Uuid, Type$1.Null()]),
|
|
9318
9332
|
acceptedAttemptN: Type$1.Union([Type$1.Number(), Type$1.Null()]),
|
|
9333
|
+
requiredExecutorTrustLevel: ExecutorTrustLevel,
|
|
9319
9334
|
status: TaskStatus,
|
|
9320
9335
|
queuedAt: IsoTimestamp,
|
|
9321
9336
|
completedAt: Type$1.Union([IsoTimestamp, Type$1.Null()]),
|
|
@@ -9339,6 +9354,10 @@ Type$1.Object({
|
|
|
9339
9354
|
status: TaskAttemptStatus,
|
|
9340
9355
|
output: Type$1.Union([Type$1.Record(Type$1.String(), Type$1.Unknown()), Type$1.Null()]),
|
|
9341
9356
|
outputCid: Type$1.Union([Cid, Type$1.Null()]),
|
|
9357
|
+
claimedExecutorFingerprint: Type$1.Union([Cid, Type$1.Null()]),
|
|
9358
|
+
claimedExecutorManifest: Type$1.Union([Type$1.Record(Type$1.String(), Type$1.Unknown()), Type$1.Null()]),
|
|
9359
|
+
completedExecutorFingerprint: Type$1.Union([Cid, Type$1.Null()]),
|
|
9360
|
+
completedExecutorManifest: Type$1.Union([Type$1.Record(Type$1.String(), Type$1.Unknown()), Type$1.Null()]),
|
|
9342
9361
|
error: Type$1.Union([TaskError, Type$1.Null()]),
|
|
9343
9362
|
usage: Type$1.Union([TaskUsage, Type$1.Null()]),
|
|
9344
9363
|
contentSignature: Type$1.Union([Type$1.String(), Type$1.Null()]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@themoltnet/pi-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
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/agent-runtime": "0.
|
|
35
|
-
"@themoltnet/sdk": "0.
|
|
34
|
+
"@themoltnet/agent-runtime": "0.4.0",
|
|
35
|
+
"@themoltnet/sdk": "0.96.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@mariozechner/pi-coding-agent": ">=0.67.0",
|