@themoltnet/agent-daemon 0.59.0 → 0.61.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.
Files changed (4) hide show
  1. package/README.md +97 -14
  2. package/dist/cli.js +2098 -819
  3. package/dist/pi.js +16 -1
  4. package/package.json +7 -6
package/dist/pi.js CHANGED
@@ -174,6 +174,21 @@ var cryptoService = {
174
174
  }
175
175
  };
176
176
  //#endregion
177
+ //#region ../../libs/crypto-service/src/enrollment-proof.ts
178
+ /** Domain-separated identity proof for one human-approved enrollment token. */
179
+ function enrollmentProofMessage(input) {
180
+ const { grant } = input;
181
+ return JSON.stringify([
182
+ "moltnet:pkce-team-enrollment:v1",
183
+ createHash("sha256").update(input.accessToken).digest("hex"),
184
+ grant.agentId,
185
+ grant.teamId,
186
+ grant.operation,
187
+ [...new Set(grant.scopes)].sort(),
188
+ grant.idempotencyKey
189
+ ]);
190
+ }
191
+ //#endregion
177
192
  //#region ../../libs/crypto-service/src/executor-attestation.ts
178
193
  ed.etc.sha512Sync = (...m) => {
179
194
  const hash = createHash("sha512");
@@ -619,4 +634,4 @@ var defaultPiRuntimeDefinition = definePiRuntime({
619
634
  });
620
635
  var defaultPiDaemonAdapter = createPiDaemonAdapter(defaultPiRuntimeDefinition);
621
636
  //#endregion
622
- export { PI_KERNEL_TOOL_NAMES, cryptoService as a, createPiDaemonAdapter, defaultPiDaemonAdapter, defaultPiRuntimeDefinition, compileExecutionPlan as i, createExecutionPlanSnapshot as n, parseCredentialRequirements as r, runtimeExecutionOffer as t };
637
+ export { PI_KERNEL_TOOL_NAMES, enrollmentProofMessage as a, createPiDaemonAdapter, defaultPiDaemonAdapter, defaultPiRuntimeDefinition, compileExecutionPlan as i, createExecutionPlanSnapshot as n, cryptoService as o, parseCredentialRequirements as r, runtimeExecutionOffer as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@themoltnet/agent-daemon",
3
- "version": "0.59.0",
3
+ "version": "0.61.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.",
@@ -78,6 +78,7 @@
78
78
  "@peculiar/x509": "^2.0.0",
79
79
  "fastify": "^5.8.5",
80
80
  "fastify-plugin": "^5.1.0",
81
+ "jose": "^6.1.3",
81
82
  "multiformats": "^13.3.0",
82
83
  "pino": "^10.3.1",
83
84
  "pino-opentelemetry-transport": "^3.0.0",
@@ -85,10 +86,10 @@
85
86
  "proper-lockfile": "4.1.2",
86
87
  "reflect-metadata": "^0.2.2",
87
88
  "typebox": "^1.2.8",
88
- "@themoltnet/agent-runtime": "1.0.3",
89
- "@themoltnet/pi-runtime": "0.18.0",
89
+ "@themoltnet/agent-runtime": "1.2.0",
90
90
  "@themoltnet/os-keyring": "0.3.0",
91
- "@themoltnet/sdk": "0.142.0"
91
+ "@themoltnet/pi-runtime": "0.18.2",
92
+ "@themoltnet/sdk": "0.144.0"
92
93
  },
93
94
  "devDependencies": {
94
95
  "@fastify/swagger": "^9.6.1",
@@ -99,15 +100,15 @@
99
100
  "vite-plugin-dts": "^4.5.4",
100
101
  "vitest": "^3.0.0",
101
102
  "@moltnet/agent-eval": "0.1.0",
102
- "@moltnet/bootstrap": "0.1.0",
103
103
  "@moltnet/crypto-service": "0.1.0",
104
104
  "@moltnet/api-client": "0.1.0",
105
+ "@moltnet/bootstrap": "0.1.0",
105
106
  "@moltnet/execution-integrations": "0.1.0",
106
107
  "@moltnet/execution-plan": "0.1.0",
107
108
  "@moltnet/loopback-companion": "0.1.0",
109
+ "@moltnet/models": "0.1.0",
108
110
  "@moltnet/observability": "0.1.0",
109
111
  "@moltnet/runtime-profiles": "0.1.0",
110
- "@moltnet/models": "0.1.0",
111
112
  "@moltnet/tasks": "0.1.0"
112
113
  },
113
114
  "nx": {