@themoltnet/agent-daemon 0.56.1 → 0.56.2
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 +13 -3
- package/package.json +9 -9
package/dist/cli.js
CHANGED
|
@@ -796,6 +796,8 @@ var AGENT_CREDENTIAL_SCOPES = [
|
|
|
796
796
|
CREDENTIAL_SCOPES.TaskClaim,
|
|
797
797
|
CREDENTIAL_SCOPES.TaskExecute
|
|
798
798
|
];
|
|
799
|
+
CREDENTIAL_SCOPES.AgentProfile, CREDENTIAL_SCOPES.TaskRead, CREDENTIAL_SCOPES.TaskWrite;
|
|
800
|
+
CREDENTIAL_SCOPES.AgentProfile, CREDENTIAL_SCOPES.DiaryRead, CREDENTIAL_SCOPES.PackRead, CREDENTIAL_SCOPES.RuntimeRead, CREDENTIAL_SCOPES.TaskRead, CREDENTIAL_SCOPES.TeamRead;
|
|
799
801
|
Object.freeze(ALL_CREDENTIAL_SCOPES.filter((scope) => scope !== CREDENTIAL_SCOPES.HumanProfile));
|
|
800
802
|
/**
|
|
801
803
|
* REST capabilities exercised by the current MCP tool surface.
|
|
@@ -1005,6 +1007,12 @@ var FingerprintSchema = Type.String({
|
|
|
1005
1007
|
pattern: "^[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}$",
|
|
1006
1008
|
description: "Key fingerprint (A1B2-C3D4-E5F6-G7H8)"
|
|
1007
1009
|
});
|
|
1010
|
+
var AgentAliasSchema = Type.String({
|
|
1011
|
+
pattern: "^[A-Za-z0-9][A-Za-z0-9._-]{0,62}$",
|
|
1012
|
+
minLength: 1,
|
|
1013
|
+
maxLength: 63,
|
|
1014
|
+
description: "Case-preserving network alias; self-asserted, not unique, never used for authorization or lookup"
|
|
1015
|
+
});
|
|
1008
1016
|
Type.Object({
|
|
1009
1017
|
title: Type.Optional(Type.String({ maxLength: 255 })),
|
|
1010
1018
|
content: Type.String({
|
|
@@ -1209,6 +1217,7 @@ var TeamMemberSchema = Type.Object({
|
|
|
1209
1217
|
subjectType: Type.Union([Type.Literal("agent"), Type.Literal("human")]),
|
|
1210
1218
|
role: TeamRoleSchema,
|
|
1211
1219
|
displayName: Type.String(),
|
|
1220
|
+
alias: Type.Optional(AgentAliasSchema),
|
|
1212
1221
|
fingerprint: Type.Optional(Type.String()),
|
|
1213
1222
|
email: Type.Optional(Type.String())
|
|
1214
1223
|
});
|
|
@@ -4273,7 +4282,7 @@ function createExecutionPlanCache(args) {
|
|
|
4273
4282
|
const existing = cache.get(key);
|
|
4274
4283
|
if (existing) return existing;
|
|
4275
4284
|
const plan = await maybeAttachWarmSlotContext(claimedTask, buildDaemonTaskExecutionPlan(claimedTask.task, args.stateDirs, args.slotIdentity, args.warmSessionTtlSec, args.workspacePolicy, claimedTask.attemptN), args.stateDirs, args.slotRegistry, runtimeSessionStore, sourceAttemptResolver);
|
|
4276
|
-
assertPlanAllowedByWorkspacePolicy(plan, args.workspacePolicy);
|
|
4285
|
+
assertPlanAllowedByWorkspacePolicy(plan, args.workspacePolicy, args.slotIdentity.runtimeProfileId);
|
|
4277
4286
|
cache.set(key, plan);
|
|
4278
4287
|
return plan;
|
|
4279
4288
|
},
|
|
@@ -4303,13 +4312,14 @@ function createNullRuntimeSessionStore() {
|
|
|
4303
4312
|
async uploadAttemptFinal() {}
|
|
4304
4313
|
};
|
|
4305
4314
|
}
|
|
4306
|
-
function assertPlanAllowedByWorkspacePolicy(plan, policy) {
|
|
4315
|
+
function assertPlanAllowedByWorkspacePolicy(plan, policy, runtimeProfileId) {
|
|
4307
4316
|
const allowed = new Set(policy?.allowedWorkspaceModes && policy.allowedWorkspaceModes.length > 0 ? policy.allowedWorkspaceModes : [
|
|
4308
4317
|
"none",
|
|
4309
4318
|
"shared_mount",
|
|
4310
4319
|
"dedicated_worktree"
|
|
4311
4320
|
]);
|
|
4312
4321
|
const effectiveMode = planToRuntimeProfileWorkspaceMode(plan);
|
|
4322
|
+
if (plan.workspaceRevision && effectiveMode !== "dedicated_worktree") throw new Error(`Runtime profile "${runtimeProfileId}" does not allow "dedicated_worktree", required by a revision-pinned task (resolved workspace mode "${effectiveMode}")`);
|
|
4313
4323
|
if (!allowed.has(effectiveMode)) throw new Error(`Runtime profile forbids final workspace mode "${effectiveMode}" for this task`);
|
|
4314
4324
|
}
|
|
4315
4325
|
function planToRuntimeProfileWorkspaceMode(plan) {
|
|
@@ -11854,7 +11864,7 @@ async function writeCache(cache) {
|
|
|
11854
11864
|
}
|
|
11855
11865
|
//#endregion
|
|
11856
11866
|
//#region src/version.ts
|
|
11857
|
-
var DAEMON_VERSION = "0.56.
|
|
11867
|
+
var DAEMON_VERSION = "0.56.2";
|
|
11858
11868
|
//#endregion
|
|
11859
11869
|
//#region src/cli.ts
|
|
11860
11870
|
async function runAgentDaemonCli(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@themoltnet/agent-daemon",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.2",
|
|
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,9 +85,9 @@
|
|
|
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": "1.0.1",
|
|
88
|
+
"@themoltnet/agent-runtime": "1.0.2",
|
|
90
89
|
"@themoltnet/os-keyring": "0.3.0",
|
|
90
|
+
"@themoltnet/pi-runtime": "0.15.2",
|
|
91
91
|
"@themoltnet/sdk": "0.141.1"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
@@ -98,16 +98,16 @@
|
|
|
98
98
|
"vite": "^8.0.0",
|
|
99
99
|
"vite-plugin-dts": "^4.5.4",
|
|
100
100
|
"vitest": "^3.0.0",
|
|
101
|
+
"@moltnet/agent-eval": "0.1.0",
|
|
101
102
|
"@moltnet/bootstrap": "0.1.0",
|
|
102
103
|
"@moltnet/crypto-service": "0.1.0",
|
|
103
|
-
"@moltnet/
|
|
104
|
-
"@moltnet/
|
|
104
|
+
"@moltnet/execution-integrations": "0.1.0",
|
|
105
|
+
"@moltnet/models": "0.1.0",
|
|
105
106
|
"@moltnet/loopback-companion": "0.1.0",
|
|
106
107
|
"@moltnet/observability": "0.1.0",
|
|
107
|
-
"@moltnet/
|
|
108
|
-
"@moltnet/
|
|
109
|
-
"@moltnet/
|
|
110
|
-
"@moltnet/runtime-profiles": "0.1.0"
|
|
108
|
+
"@moltnet/runtime-profiles": "0.1.0",
|
|
109
|
+
"@moltnet/execution-plan": "0.1.0",
|
|
110
|
+
"@moltnet/tasks": "0.1.0"
|
|
111
111
|
},
|
|
112
112
|
"nx": {
|
|
113
113
|
"projectType": "application",
|