@hivemagnus/magnus-server 1.1.10 → 1.1.12
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/agent-version.json
CHANGED
|
@@ -17,7 +17,7 @@ import { RESULT_SIGNING_SECRET, RESULT_SIGNING_PREVIOUS_SECRET } from '../utils/
|
|
|
17
17
|
import { getNodeBaseUrl } from '../utils/node-url.js';
|
|
18
18
|
import { COMMAND_COMPLETION_REGISTRY, COMMAND_COMPLETION_REGISTRY_SHA256, commandCompletionDescriptor } from '../security/command-completion-registry.js';
|
|
19
19
|
import { MANAGED_HTTP_COMMAND } from '../security/managed-http.js';
|
|
20
|
-
import { NATIVE_COMPLETION_REGISTRY, NATIVE_COMPLETION_REGISTRY_SHA256, nativeCompletionDescriptor } from '../security/native-completion-registry.js';
|
|
20
|
+
import { NATIVE_COMPLETION_REGISTRY, NATIVE_COMPLETION_REGISTRY_SHA256, nativeCompletionDescriptor, nativeCompletionResourceKey } from '../security/native-completion-registry.js';
|
|
21
21
|
import { logAuditEvent } from './audit-service.js';
|
|
22
22
|
const HELD = ['reserved', 'running', 'unknown'];
|
|
23
23
|
export class ResourceLeaseConflict extends HttpError {
|
|
@@ -147,7 +147,9 @@ export async function admitResourceCommand(context, raw) {
|
|
|
147
147
|
}
|
|
148
148
|
const resourceKey = scopedArdent ? `node:${node.id}:ardent`
|
|
149
149
|
: serviceUnit ? `node:${node.id}:system-service:${serviceUnit}` : `node:${node.id}:all`;
|
|
150
|
-
const
|
|
150
|
+
const native = payload.command === MANAGED_HTTP_COMMAND && payload.args.length === 3 && /^[a-f0-9]{64}$/.test(payload.args[2])
|
|
151
|
+
? nativeCompletionDescriptor(payload.args[0], payload.args[1]) : undefined;
|
|
152
|
+
const coordinationKey = native ? nativeCompletionResourceKey(native, node.id) : `node:${node.id}`;
|
|
151
153
|
// The node ledger has one execution slot: service metadata never promises parallel fences.
|
|
152
154
|
const conflict = await tx.commandResourceLease.findFirst({ where: { nodeId: node.id, state: { in: HELD } } });
|
|
153
155
|
if (conflict)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hivemagnus/magnus-server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Magnus server: the fleet control plane API (Hono, PostgreSQL, Redis) for nodes running magnus-agent, with optional Hive IAM, Hive Router, HiveMem, Hermes Agent and external security console integrations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"magnus",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"prepublishOnly": "npm run db:generate && npm run clean && npm run build"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@hivemagnus/magnus-contracts": "1.1.
|
|
87
|
+
"@hivemagnus/magnus-contracts": "1.1.12",
|
|
88
88
|
"@hono/node-server": "^2.1.5",
|
|
89
89
|
"@hono/swagger-ui": "^0.6.2",
|
|
90
90
|
"@prisma/adapter-pg": "7.10.1",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"ws": "^8.22.0",
|
|
103
103
|
"yaml": "2.9.1",
|
|
104
104
|
"zod": "^4.6.7",
|
|
105
|
-
"@hivemagnus/magnus-skills": "1.1.
|
|
105
|
+
"@hivemagnus/magnus-skills": "1.1.12",
|
|
106
106
|
"prisma": "^7.10.1"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|