@themoltnet/agent-daemon 0.58.0 → 0.59.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/cli.js +10 -5
- package/package.json +9 -9
package/dist/cli.js
CHANGED
|
@@ -3165,7 +3165,8 @@ var TaskMessageKind = Type.Union([
|
|
|
3165
3165
|
Type.Literal("tool_call_end"),
|
|
3166
3166
|
Type.Literal("turn_end"),
|
|
3167
3167
|
Type.Literal("error"),
|
|
3168
|
-
Type.Literal("info")
|
|
3168
|
+
Type.Literal("info"),
|
|
3169
|
+
Type.Literal("tool_policy_decision")
|
|
3169
3170
|
], { $id: "TaskMessageKind" });
|
|
3170
3171
|
var Uuid = Type.String({ format: "uuid" });
|
|
3171
3172
|
var Cid = Type.String({ minLength: 1 });
|
|
@@ -6532,7 +6533,7 @@ function makeTurnEventHandler(base, context = {}) {
|
|
|
6532
6533
|
});
|
|
6533
6534
|
return (event, summary) => {
|
|
6534
6535
|
if (event === "text_delta") return;
|
|
6535
|
-
log[event === "error" ? "warn" : event === "turn_end" ? "info" : "debug"]({
|
|
6536
|
+
log[event === "error" || event === "tool_policy_decision" && summary.decision === "blocked" ? "warn" : event === "turn_end" || event === "tool_policy_decision" ? "info" : "debug"]({
|
|
6536
6537
|
event,
|
|
6537
6538
|
...summary
|
|
6538
6539
|
}, `turn.${event}`);
|
|
@@ -9851,7 +9852,6 @@ var INHERITED_MOLTNET_ENV_NAMES = new Set([
|
|
|
9851
9852
|
"MOLTNET_CLI_LINUX_BINARY",
|
|
9852
9853
|
"MOLTNET_CREDENTIAL_BINDINGS",
|
|
9853
9854
|
"MOLTNET_CREDENTIAL_ENFORCEMENT",
|
|
9854
|
-
"MOLTNET_DIARY_ID",
|
|
9855
9855
|
"MOLTNET_GIT_AUTHOR",
|
|
9856
9856
|
"MOLTNET_OTEL_ENDPOINT",
|
|
9857
9857
|
"MOLTNET_PI_VM_INTEGRATION",
|
|
@@ -9905,7 +9905,8 @@ var RunManager = class {
|
|
|
9905
9905
|
XDG_CACHE_HOME: join(homeDir, ".cache"),
|
|
9906
9906
|
XDG_CONFIG_HOME: join(homeDir, ".config"),
|
|
9907
9907
|
XDG_DATA_HOME: join(homeDir, ".local", "share"),
|
|
9908
|
-
MOLTNET_TEAM_ID: spec.teamId
|
|
9908
|
+
MOLTNET_TEAM_ID: spec.teamId,
|
|
9909
|
+
...spec.diaryId ? { MOLTNET_DIARY_ID: spec.diaryId } : {}
|
|
9909
9910
|
};
|
|
9910
9911
|
const target = activation.source === "managed" ? {
|
|
9911
9912
|
agentName: activation.alias,
|
|
@@ -10574,6 +10575,7 @@ var AgentServerRunRecordSchema = Type.Object({
|
|
|
10574
10575
|
id: Type.String(),
|
|
10575
10576
|
agent: Type.String(),
|
|
10576
10577
|
teamId: Type.String(),
|
|
10578
|
+
diaryId: Type.Optional(Type.String()),
|
|
10577
10579
|
profiles: StringList,
|
|
10578
10580
|
taskTypes: StringList,
|
|
10579
10581
|
mode: Type.Union([Type.Literal("poll"), Type.Literal("drain")]),
|
|
@@ -10651,6 +10653,7 @@ var DiscoverModelsSchema = Type.Object({ models: ProviderModelList }, { $id: "Di
|
|
|
10651
10653
|
var StartRunSchema = Type.Object({
|
|
10652
10654
|
agent: Type.String(),
|
|
10653
10655
|
teamId: Type.String(),
|
|
10656
|
+
diaryId: Type.Optional(Type.String()),
|
|
10654
10657
|
profiles: StringList,
|
|
10655
10658
|
taskTypes: Type.Array(AgentServerTaskTypeSchema),
|
|
10656
10659
|
mode: Type.Union([Type.Literal("poll"), Type.Literal("drain")])
|
|
@@ -11263,9 +11266,11 @@ function registerRunRoutes(app, options, requirePairedOrigin) {
|
|
|
11263
11266
|
}, async (request, reply) => {
|
|
11264
11267
|
requirePairedOrigin(request);
|
|
11265
11268
|
const body = requireBody(request);
|
|
11269
|
+
const diaryId = optionalString(body, "diaryId");
|
|
11266
11270
|
const record = await runs.start({
|
|
11267
11271
|
agent: requireString(body, "agent"),
|
|
11268
11272
|
teamId: requireString(body, "teamId"),
|
|
11273
|
+
...diaryId ? { diaryId } : {},
|
|
11269
11274
|
profiles: stringArray(body, "profiles"),
|
|
11270
11275
|
taskTypes: stringArray(body, "taskTypes"),
|
|
11271
11276
|
mode: requireString(body, "mode")
|
|
@@ -12204,7 +12209,7 @@ async function writeCache(cache) {
|
|
|
12204
12209
|
}
|
|
12205
12210
|
//#endregion
|
|
12206
12211
|
//#region src/version.ts
|
|
12207
|
-
var DAEMON_VERSION = "0.
|
|
12212
|
+
var DAEMON_VERSION = "0.59.0";
|
|
12208
12213
|
//#endregion
|
|
12209
12214
|
//#region src/cli.ts
|
|
12210
12215
|
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.59.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.",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"reflect-metadata": "^0.2.2",
|
|
87
87
|
"typebox": "^1.2.8",
|
|
88
88
|
"@themoltnet/agent-runtime": "1.0.3",
|
|
89
|
-
"@themoltnet/pi-runtime": "0.
|
|
90
|
-
"@themoltnet/
|
|
91
|
-
"@themoltnet/
|
|
89
|
+
"@themoltnet/pi-runtime": "0.18.0",
|
|
90
|
+
"@themoltnet/os-keyring": "0.3.0",
|
|
91
|
+
"@themoltnet/sdk": "0.142.0"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@fastify/swagger": "^9.6.1",
|
|
@@ -99,15 +99,15 @@
|
|
|
99
99
|
"vite-plugin-dts": "^4.5.4",
|
|
100
100
|
"vitest": "^3.0.0",
|
|
101
101
|
"@moltnet/agent-eval": "0.1.0",
|
|
102
|
-
"@moltnet/api-client": "0.1.0",
|
|
103
|
-
"@moltnet/loopback-companion": "0.1.0",
|
|
104
|
-
"@moltnet/execution-plan": "0.1.0",
|
|
105
102
|
"@moltnet/bootstrap": "0.1.0",
|
|
106
|
-
"@moltnet/models": "0.1.0",
|
|
107
|
-
"@moltnet/execution-integrations": "0.1.0",
|
|
108
103
|
"@moltnet/crypto-service": "0.1.0",
|
|
104
|
+
"@moltnet/api-client": "0.1.0",
|
|
105
|
+
"@moltnet/execution-integrations": "0.1.0",
|
|
106
|
+
"@moltnet/execution-plan": "0.1.0",
|
|
107
|
+
"@moltnet/loopback-companion": "0.1.0",
|
|
109
108
|
"@moltnet/observability": "0.1.0",
|
|
110
109
|
"@moltnet/runtime-profiles": "0.1.0",
|
|
110
|
+
"@moltnet/models": "0.1.0",
|
|
111
111
|
"@moltnet/tasks": "0.1.0"
|
|
112
112
|
},
|
|
113
113
|
"nx": {
|