@themoltnet/agent-daemon 0.39.0 → 0.40.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/README.md +36 -10
- package/dist/cli.js +5446 -213
- package/dist/pi.d.ts.map +1 -1
- package/dist/pi.js +0 -6
- package/dist/runtime.d.ts +0 -3
- package/dist/runtime.d.ts.map +1 -1
- package/package.json +6 -5
package/dist/pi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pi.d.ts","sourceRoot":"","sources":["../src/pi.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"pi.d.ts","sourceRoot":"","sources":["../src/pi.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,oBAAoB,EAAyB,MAAM,cAAc,CAAC;AAEhF,eAAO,MAAM,oBAAoB,kkBAIvB,CAAC;AAEX,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,mBAAmB,GAC3B,oBAAoB,CA4DtB;AAED,eAAO,MAAM,0BAA0B,qBAQrC,CAAC;AAEH,eAAO,MAAM,sBAAsB,sBAElC,CAAC"}
|
package/dist/pi.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { GONDOLIN_BASE_EXECUTABLES, GONDOLIN_TOOL_NAMES, MOLTNET_TOOL_NAMES, buildPiExecutorManifest, createPiTaskExecutor, defineGondolinTemplate, definePiRuntime } from "@themoltnet/pi-runtime";
|
|
3
|
-
import { createExecutorAttestor } from "@themoltnet/sdk";
|
|
4
3
|
//#region src/pi.ts
|
|
5
4
|
var PI_KERNEL_TOOL_NAMES = [
|
|
6
5
|
...GONDOLIN_TOOL_NAMES,
|
|
@@ -29,15 +28,10 @@ function createPiDaemonAdapter(runtime) {
|
|
|
29
28
|
template: resolvedTemplate,
|
|
30
29
|
builtInToolNames: PI_KERNEL_TOOL_NAMES
|
|
31
30
|
});
|
|
32
|
-
const attestor = await createExecutorAttestor({
|
|
33
|
-
manifest,
|
|
34
|
-
configDir: input.configDir
|
|
35
|
-
});
|
|
36
31
|
const extensionTools = runtime.extensions.flatMap((extension) => extension.declaredTools);
|
|
37
32
|
return {
|
|
38
33
|
runtimeKind: runtime.runtimeKind,
|
|
39
34
|
manifest,
|
|
40
|
-
attestor,
|
|
41
35
|
tools: [
|
|
42
36
|
...PI_KERNEL_TOOL_NAMES,
|
|
43
37
|
...runtime.tools.map((tool) => tool.descriptor.name),
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { TaskExecutor } from '@themoltnet/agent-runtime';
|
|
2
2
|
import { ExecutePiTaskOptions } from '@themoltnet/pi-runtime';
|
|
3
|
-
import { ExecutorAttestor } from '@themoltnet/sdk';
|
|
4
3
|
export interface PreparedDaemonRuntime {
|
|
5
4
|
readonly runtimeKind: string;
|
|
6
5
|
readonly manifest: Record<string, unknown>;
|
|
7
|
-
readonly attestor: ExecutorAttestor;
|
|
8
6
|
readonly tools: readonly string[];
|
|
9
7
|
readonly executables: readonly string[];
|
|
10
8
|
createTaskExecutor(options: ExecutePiTaskOptions): TaskExecutor;
|
|
@@ -18,7 +16,6 @@ export interface DaemonRuntimeAdapter {
|
|
|
18
16
|
runtimeKind: string;
|
|
19
17
|
sandboxConfig: ExecutePiTaskOptions['sandboxConfig'];
|
|
20
18
|
};
|
|
21
|
-
configDir: string;
|
|
22
19
|
onProgress?: (message: string) => void;
|
|
23
20
|
}): Promise<PreparedDaemonRuntime>;
|
|
24
21
|
}
|
package/dist/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK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net/agent-daemon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Universal MoltNet agent daemon host with a built-in Pi/Gondolin runtime and support for trusted operator-owned runtime modules. CLI: moltnet-agent.",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"pino": "^10.3.1",
|
|
69
69
|
"pino-pretty": "^13.1.3",
|
|
70
70
|
"typebox": "^1.2.8",
|
|
71
|
-
"@themoltnet/
|
|
72
|
-
"@themoltnet/pi-runtime": "0.
|
|
73
|
-
"@themoltnet/sdk": "0.
|
|
74
|
-
"@themoltnet/
|
|
71
|
+
"@themoltnet/os-keyring": "0.2.0",
|
|
72
|
+
"@themoltnet/pi-runtime": "0.8.0",
|
|
73
|
+
"@themoltnet/sdk": "0.132.0",
|
|
74
|
+
"@themoltnet/agent-runtime": "0.41.3"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"tsx": "^4.7.0",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"vitest": "^3.0.0",
|
|
82
82
|
"@moltnet/bootstrap": "0.1.0",
|
|
83
83
|
"@moltnet/crypto-service": "0.1.0",
|
|
84
|
+
"@moltnet/models": "0.1.0",
|
|
84
85
|
"@moltnet/observability": "0.1.0",
|
|
85
86
|
"@moltnet/tasks": "0.1.0"
|
|
86
87
|
},
|