@themoltnet/pi-runtime 0.14.2 → 0.15.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 CHANGED
@@ -56,13 +56,17 @@ import { WriteOperations } from '@earendil-works/pi-coding-agent';
56
56
 
57
57
  export { activateAgentEnv }
58
58
 
59
+ declare const AGENT_SIGNING_PROTOCOL_VERSION: 1;
60
+
59
61
  /**
60
62
  * Non-secret identity of the agent a daemon runs as. Everything here may be
61
63
  * projected into a sandbox guest; nothing here can sign.
62
64
  */
63
65
  declare interface AgentIdentity {
66
+ protocolVersion: typeof AGENT_SIGNING_PROTOCOL_VERSION;
64
67
  agentName: string;
65
- identityId: string;
68
+ subjectId: string;
69
+ subjectType: 'agent';
66
70
  /** `ed25519:<base64>` */
67
71
  publicKey: string;
68
72
  fingerprint: string;
package/dist/index.js CHANGED
@@ -1741,7 +1741,14 @@ var CREDENTIAL_SCOPES = {
1741
1741
  var ALL_CREDENTIAL_SCOPES = Object.freeze(Object.values(CREDENTIAL_SCOPES));
1742
1742
  CREDENTIAL_SCOPES.AgentProfile, CREDENTIAL_SCOPES.CryptoSign, CREDENTIAL_SCOPES.RuntimeRead, CREDENTIAL_SCOPES.TaskRead, CREDENTIAL_SCOPES.TaskClaim, CREDENTIAL_SCOPES.TaskExecute;
1743
1743
  Object.freeze(ALL_CREDENTIAL_SCOPES.filter((scope) => scope !== CREDENTIAL_SCOPES.HumanProfile));
1744
- [
1744
+ /**
1745
+ * REST capabilities exercised by the current MCP tool surface.
1746
+ *
1747
+ * Intentionally excludes connector invocation, key management, runtime
1748
+ * management/read, and task claiming because MCP exposes none of those
1749
+ * operations.
1750
+ */
1751
+ var MCP_CLIENT_SCOPES = [
1745
1752
  CREDENTIAL_SCOPES.AgentProfile,
1746
1753
  CREDENTIAL_SCOPES.CryptoSign,
1747
1754
  CREDENTIAL_SCOPES.DiaryManage,
@@ -1755,7 +1762,13 @@ Object.freeze(ALL_CREDENTIAL_SCOPES.filter((scope) => scope !== CREDENTIAL_SCOPE
1755
1762
  CREDENTIAL_SCOPES.TaskRead,
1756
1763
  CREDENTIAL_SCOPES.TeamManage,
1757
1764
  CREDENTIAL_SCOPES.TeamRead
1758
- ].filter((scope) => scope !== CREDENTIAL_SCOPES.HumanProfile);
1765
+ ];
1766
+ MCP_CLIENT_SCOPES.filter((scope) => scope !== CREDENTIAL_SCOPES.HumanProfile);
1767
+ Object.freeze([...[
1768
+ "openid",
1769
+ "offline",
1770
+ "offline_access"
1771
+ ], ...MCP_CLIENT_SCOPES]);
1759
1772
  //#endregion
1760
1773
  //#region ../models/src/preview-sign.ts
1761
1774
  function schemaRef$1(schema, id) {
@@ -2296,7 +2309,8 @@ Type.Object({ "x-moltnet-team-id": Type.Optional(Type.String({
2296
2309
  })) });
2297
2310
  Type.Object({
2298
2311
  kind: Type.Literal("agent"),
2299
- identityId: UuidSchema,
2312
+ agentId: UuidSchema,
2313
+ identityId: Type.Union([UuidSchema, Type.Null()]),
2300
2314
  fingerprint: FingerprintSchema,
2301
2315
  publicKey: PublicKeySchema
2302
2316
  }, {
@@ -2313,7 +2327,8 @@ Type.Object({
2313
2327
  });
2314
2328
  var principalUnionVariants = [Type.Object({
2315
2329
  kind: Type.Literal("agent"),
2316
- identityId: UuidSchema,
2330
+ agentId: UuidSchema,
2331
+ identityId: Type.Union([UuidSchema, Type.Null()]),
2317
2332
  fingerprint: FingerprintSchema,
2318
2333
  publicKey: PublicKeySchema
2319
2334
  }, { additionalProperties: false }), Type.Object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@themoltnet/pi-runtime",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Composable MoltNet runtime kernel for Pi agents in Gondolin VMs",
@@ -35,11 +35,11 @@
35
35
  "@opentelemetry/api": "^1.9.1",
36
36
  "multiformats": "^13.3.0",
37
37
  "typebox": "^1.2.8",
38
+ "@themoltnet/agent-runtime": "1.0.0",
39
+ "@themoltnet/sandbox-gondolin": "0.5.1",
40
+ "@themoltnet/sdk": "0.141.0",
38
41
  "@themoltnet/os-keyring": "0.3.0",
39
- "@themoltnet/agent-runtime": "0.45.3",
40
- "@themoltnet/sdk": "0.140.1",
41
- "@themoltnet/shell-command-analyzer": "0.3.0",
42
- "@themoltnet/sandbox-gondolin": "0.5.1"
42
+ "@themoltnet/shell-command-analyzer": "0.3.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@earendil-works/pi-ai": "0.84.4",
@@ -56,10 +56,10 @@
56
56
  "vite": "^8.0.0",
57
57
  "vite-plugin-dts": "^4.5.4",
58
58
  "vitest": "^3.0.0",
59
- "@moltnet/crypto-service": "0.1.0",
60
59
  "@moltnet/models": "0.1.0",
61
60
  "@moltnet/runtime-profiles": "0.1.0",
62
- "@moltnet/tasks": "0.1.0"
61
+ "@moltnet/tasks": "0.1.0",
62
+ "@moltnet/crypto-service": "0.1.0"
63
63
  },
64
64
  "engines": {
65
65
  "node": ">=24"