@themoltnet/agent-daemon 0.52.0 → 0.53.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 +14 -6
- package/dist/cli.js +8 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -135,14 +135,22 @@ of `MOLTNET_PRIVATE_KEY`.
|
|
|
135
135
|
An agent key used by the daemon needs this least-privilege scope set:
|
|
136
136
|
|
|
137
137
|
```text
|
|
138
|
-
agent:profile runtime:read task:read task:claim task:execute
|
|
138
|
+
agent:profile crypto:sign runtime:read task:read task:claim task:execute
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
The Console selects these
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
The Console selects these scopes by default. Knowledge-enabled workers must add
|
|
142
|
+
`diary:read`, `diary:write`, `pack:read`, and `pack:write` when the key is
|
|
143
|
+
issued.
|
|
144
|
+
|
|
145
|
+
`crypto:sign` is in the minimum because host-capability signing runs on the
|
|
146
|
+
daemon's own credential: the local seed signer calls the signing-request
|
|
147
|
+
endpoints, which require it. Without it the daemon refuses to start rather than
|
|
148
|
+
booting cleanly and failing the first time guest code signs a diary entry or a
|
|
149
|
+
commit. Keys issued with the older five-scope set must be reissued.
|
|
150
|
+
|
|
151
|
+
Runtime policy can narrow key authority but cannot add missing scopes, and
|
|
152
|
+
existing keys are never widened automatically; issue a replacement credential
|
|
153
|
+
when broader authority is required.
|
|
146
154
|
|
|
147
155
|
### Pi provider auth
|
|
148
156
|
|
package/dist/cli.js
CHANGED
|
@@ -779,9 +779,16 @@ var ALL_CREDENTIAL_SCOPES = Object.freeze(Object.values(CREDENTIAL_SCOPES));
|
|
|
779
779
|
/**
|
|
780
780
|
* Minimum grant for the agent daemon. Task credentials attenuate this further
|
|
781
781
|
* to `task:execute` alone.
|
|
782
|
+
*
|
|
783
|
+
* `crypto:sign` is part of the minimum because host-capability signing runs on
|
|
784
|
+
* the daemon's own credential: the local seed signer calls the signing-request
|
|
785
|
+
* endpoints, which require it. A grant without it produces a daemon that boots
|
|
786
|
+
* cleanly and then fails the first time guest code signs a diary entry or a
|
|
787
|
+
* commit.
|
|
782
788
|
*/
|
|
783
789
|
var AGENT_CREDENTIAL_SCOPES = [
|
|
784
790
|
CREDENTIAL_SCOPES.AgentProfile,
|
|
791
|
+
CREDENTIAL_SCOPES.CryptoSign,
|
|
785
792
|
CREDENTIAL_SCOPES.RuntimeRead,
|
|
786
793
|
CREDENTIAL_SCOPES.TaskRead,
|
|
787
794
|
CREDENTIAL_SCOPES.TaskClaim,
|
|
@@ -10812,7 +10819,7 @@ async function writeCache(cache) {
|
|
|
10812
10819
|
}
|
|
10813
10820
|
//#endregion
|
|
10814
10821
|
//#region src/version.ts
|
|
10815
|
-
var DAEMON_VERSION = "0.
|
|
10822
|
+
var DAEMON_VERSION = "0.53.0";
|
|
10816
10823
|
//#endregion
|
|
10817
10824
|
//#region src/cli.ts
|
|
10818
10825
|
async function runAgentDaemonCli(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@themoltnet/agent-daemon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.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.",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"proper-lockfile": "4.1.2",
|
|
86
86
|
"reflect-metadata": "^0.2.2",
|
|
87
87
|
"typebox": "^1.2.8",
|
|
88
|
-
"@themoltnet/
|
|
89
|
-
"@themoltnet/agent-runtime": "0.45.2",
|
|
88
|
+
"@themoltnet/agent-runtime": "0.45.3",
|
|
90
89
|
"@themoltnet/os-keyring": "0.3.0",
|
|
91
|
-
"@themoltnet/
|
|
90
|
+
"@themoltnet/pi-runtime": "0.14.2",
|
|
91
|
+
"@themoltnet/sdk": "0.140.1"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@fastify/swagger": "^9.6.1",
|
|
@@ -98,15 +98,15 @@
|
|
|
98
98
|
"vite": "^8.0.0",
|
|
99
99
|
"vite-plugin-dts": "^4.5.4",
|
|
100
100
|
"vitest": "^3.0.0",
|
|
101
|
-
"@moltnet/bootstrap": "0.1.0",
|
|
102
101
|
"@moltnet/agent-eval": "0.1.0",
|
|
103
102
|
"@moltnet/crypto-service": "0.1.0",
|
|
104
103
|
"@moltnet/execution-integrations": "0.1.0",
|
|
104
|
+
"@moltnet/bootstrap": "0.1.0",
|
|
105
105
|
"@moltnet/execution-plan": "0.1.0",
|
|
106
|
-
"@moltnet/
|
|
106
|
+
"@moltnet/models": "0.1.0",
|
|
107
107
|
"@moltnet/observability": "0.1.0",
|
|
108
|
+
"@moltnet/loopback-companion": "0.1.0",
|
|
108
109
|
"@moltnet/runtime-profiles": "0.1.0",
|
|
109
|
-
"@moltnet/models": "0.1.0",
|
|
110
110
|
"@moltnet/tasks": "0.1.0"
|
|
111
111
|
},
|
|
112
112
|
"nx": {
|