gateway: harden shared auth resolution across systemd, discord, and node host

This commit is contained in:
Josh Avant
2026-03-07 18:28:32 -06:00
committed by GitHub
parent a7f6e0a921
commit 25252ab5ab
28 changed files with 1498 additions and 255 deletions

View File

@@ -539,6 +539,7 @@ public struct AgentParams: Codable, Sendable {
public let idempotencykey: String
public let label: String?
public let spawnedby: String?
public let workspacedir: String?
public init(
message: String,
@@ -566,7 +567,8 @@ public struct AgentParams: Codable, Sendable {
inputprovenance: [String: AnyCodable]?,
idempotencykey: String,
label: String?,
spawnedby: String?)
spawnedby: String?,
workspacedir: String?)
{
self.message = message
self.agentid = agentid
@@ -594,6 +596,7 @@ public struct AgentParams: Codable, Sendable {
self.idempotencykey = idempotencykey
self.label = label
self.spawnedby = spawnedby
self.workspacedir = workspacedir
}
private enum CodingKeys: String, CodingKey {
@@ -623,6 +626,7 @@ public struct AgentParams: Codable, Sendable {
case idempotencykey = "idempotencyKey"
case label
case spawnedby = "spawnedBy"
case workspacedir = "workspaceDir"
}
}