fix(ci): resolve windows test path assertion and sync protocol swift models

This commit is contained in:
Peter Steinberger
2026-02-13 02:39:27 +01:00
parent 89bfe0c944
commit 8ff89ba14c
3 changed files with 11 additions and 1 deletions

View File

@@ -489,6 +489,7 @@ public struct AgentParams: Codable, Sendable {
public let timeout: Int?
public let lane: String?
public let extrasystemprompt: String?
public let inputprovenance: [String: AnyCodable]?
public let idempotencykey: String
public let label: String?
public let spawnedby: String?
@@ -514,6 +515,7 @@ public struct AgentParams: Codable, Sendable {
timeout: Int?,
lane: String?,
extrasystemprompt: String?,
inputprovenance: [String: AnyCodable]?,
idempotencykey: String,
label: String?,
spawnedby: String?
@@ -538,6 +540,7 @@ public struct AgentParams: Codable, Sendable {
self.timeout = timeout
self.lane = lane
self.extrasystemprompt = extrasystemprompt
self.inputprovenance = inputprovenance
self.idempotencykey = idempotencykey
self.label = label
self.spawnedby = spawnedby
@@ -563,6 +566,7 @@ public struct AgentParams: Codable, Sendable {
case timeout
case lane
case extrasystemprompt = "extraSystemPrompt"
case inputprovenance = "inputProvenance"
case idempotencykey = "idempotencyKey"
case label
case spawnedby = "spawnedBy"

View File

@@ -489,6 +489,7 @@ public struct AgentParams: Codable, Sendable {
public let timeout: Int?
public let lane: String?
public let extrasystemprompt: String?
public let inputprovenance: [String: AnyCodable]?
public let idempotencykey: String
public let label: String?
public let spawnedby: String?
@@ -514,6 +515,7 @@ public struct AgentParams: Codable, Sendable {
timeout: Int?,
lane: String?,
extrasystemprompt: String?,
inputprovenance: [String: AnyCodable]?,
idempotencykey: String,
label: String?,
spawnedby: String?
@@ -538,6 +540,7 @@ public struct AgentParams: Codable, Sendable {
self.timeout = timeout
self.lane = lane
self.extrasystemprompt = extrasystemprompt
self.inputprovenance = inputprovenance
self.idempotencykey = idempotencykey
self.label = label
self.spawnedby = spawnedby
@@ -563,6 +566,7 @@ public struct AgentParams: Codable, Sendable {
case timeout
case lane
case extrasystemprompt = "extraSystemPrompt"
case inputprovenance = "inputProvenance"
case idempotencykey = "idempotencyKey"
case label
case spawnedby = "spawnedBy"

View File

@@ -546,8 +546,10 @@ describe("resolveSessionTranscriptCandidates safety", () => {
storePath,
"../../etc/passwd",
);
const normalizedCandidates = candidates.map((value) => path.resolve(value));
const expectedFallback = path.resolve(path.dirname(storePath), "sess-safe.jsonl");
expect(candidates.some((value) => value.includes("etc/passwd"))).toBe(false);
expect(candidates).toContain(path.join(path.dirname(storePath), "sess-safe.jsonl"));
expect(normalizedCandidates).toContain(expectedFallback);
});
});