agent-relay-server 0.10.27 → 0.11.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay-server",
3
- "version": "0.10.27",
3
+ "version": "0.11.1",
4
4
  "description": "Lightweight HTTP message relay for inter-agent communication across machines",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
package/src/db.ts CHANGED
@@ -4688,7 +4688,7 @@ function rowToOrchestrator(row: any): Orchestrator {
4688
4688
  const providerCatalog = Array.isArray(meta.providerCatalog) ? meta.providerCatalog as Orchestrator["providerCatalog"] : undefined;
4689
4689
  const compatibility = contractCompatibility(contracts, { orchestratorProtocol: CONTRACT_REQUIREMENTS.orchestratorProtocol });
4690
4690
  const supervisorRaw = stringValue(meta.supervisor);
4691
- const supervisor = supervisorRaw === "systemd" || supervisorRaw === "process" || supervisorRaw === "unknown" ? supervisorRaw : undefined;
4691
+ const supervisor = supervisorRaw === "systemd" || supervisorRaw === "launchd" || supervisorRaw === "process" || supervisorRaw === "unknown" ? supervisorRaw : undefined;
4692
4692
  const selfUnit = stringValue(meta.selfUnit);
4693
4693
  const runtimePrefix = stringValue(meta.runtimePrefix);
4694
4694
  const upgrade = parseOrchestratorUpgrade(meta.upgrade);
package/src/routes.ts CHANGED
@@ -3263,7 +3263,7 @@ const patchOrchestratorAgents: Handler = async (req, params) => {
3263
3263
  provider: cleanEnum(a.provider, "provider", VALID_ORCHESTRATOR_PROVIDERS)! as SpawnProvider,
3264
3264
  sessionName,
3265
3265
  tmuxSession: cleanString(a.tmuxSession, "tmuxSession", { max: 240 }) ?? sessionName,
3266
- supervisor: cleanEnum(a.supervisor, "supervisor", ["process", "systemd", "unknown"] as const),
3266
+ supervisor: cleanEnum(a.supervisor, "supervisor", ["process", "systemd", "launchd", "unknown"] as const),
3267
3267
  systemdUnit: cleanString(a.systemdUnit, "systemdUnit", { max: 240 }),
3268
3268
  terminalSession: cleanString(a.terminalSession, "terminalSession", { max: 240 }),
3269
3269
  terminalAvailable: typeof a.terminalAvailable === "boolean" ? a.terminalAvailable : undefined,
@@ -3375,7 +3375,7 @@ function cleanManagedSessionExitDiagnostics(value: unknown, index: number): Mana
3375
3375
  policyName: cleanString(value.policyName, `exitedAgents[${index}].policyName`, { max: 120 }),
3376
3376
  spawnRequestId: cleanString(value.spawnRequestId, `exitedAgents[${index}].spawnRequestId`, { max: 160 }),
3377
3377
  automationRunId: cleanString(value.automationRunId, `exitedAgents[${index}].automationRunId`, { max: 160 }),
3378
- supervisor: cleanEnum(value.supervisor, `exitedAgents[${index}].supervisor`, ["process", "systemd", "unknown"] as const, "unknown")!,
3378
+ supervisor: cleanEnum(value.supervisor, `exitedAgents[${index}].supervisor`, ["process", "systemd", "launchd", "unknown"] as const, "unknown")!,
3379
3379
  systemdUnit: cleanString(value.systemdUnit, `exitedAgents[${index}].systemdUnit`, { max: 240 }),
3380
3380
  terminalSession: cleanString(value.terminalSession, `exitedAgents[${index}].terminalSession`, { max: 240 }),
3381
3381
  terminalAvailable: typeof value.terminalAvailable === "boolean" ? value.terminalAvailable : undefined,