mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 17:01:53 +03:00
fix(ci): resolve windows test path assertion and sync protocol swift models
This commit is contained in:
@@ -489,6 +489,7 @@ public struct AgentParams: Codable, Sendable {
|
|||||||
public let timeout: Int?
|
public let timeout: Int?
|
||||||
public let lane: String?
|
public let lane: String?
|
||||||
public let extrasystemprompt: String?
|
public let extrasystemprompt: String?
|
||||||
|
public let inputprovenance: [String: AnyCodable]?
|
||||||
public let idempotencykey: String
|
public let idempotencykey: String
|
||||||
public let label: String?
|
public let label: String?
|
||||||
public let spawnedby: String?
|
public let spawnedby: String?
|
||||||
@@ -514,6 +515,7 @@ public struct AgentParams: Codable, Sendable {
|
|||||||
timeout: Int?,
|
timeout: Int?,
|
||||||
lane: String?,
|
lane: String?,
|
||||||
extrasystemprompt: String?,
|
extrasystemprompt: String?,
|
||||||
|
inputprovenance: [String: AnyCodable]?,
|
||||||
idempotencykey: String,
|
idempotencykey: String,
|
||||||
label: String?,
|
label: String?,
|
||||||
spawnedby: String?
|
spawnedby: String?
|
||||||
@@ -538,6 +540,7 @@ public struct AgentParams: Codable, Sendable {
|
|||||||
self.timeout = timeout
|
self.timeout = timeout
|
||||||
self.lane = lane
|
self.lane = lane
|
||||||
self.extrasystemprompt = extrasystemprompt
|
self.extrasystemprompt = extrasystemprompt
|
||||||
|
self.inputprovenance = inputprovenance
|
||||||
self.idempotencykey = idempotencykey
|
self.idempotencykey = idempotencykey
|
||||||
self.label = label
|
self.label = label
|
||||||
self.spawnedby = spawnedby
|
self.spawnedby = spawnedby
|
||||||
@@ -563,6 +566,7 @@ public struct AgentParams: Codable, Sendable {
|
|||||||
case timeout
|
case timeout
|
||||||
case lane
|
case lane
|
||||||
case extrasystemprompt = "extraSystemPrompt"
|
case extrasystemprompt = "extraSystemPrompt"
|
||||||
|
case inputprovenance = "inputProvenance"
|
||||||
case idempotencykey = "idempotencyKey"
|
case idempotencykey = "idempotencyKey"
|
||||||
case label
|
case label
|
||||||
case spawnedby = "spawnedBy"
|
case spawnedby = "spawnedBy"
|
||||||
|
|||||||
@@ -489,6 +489,7 @@ public struct AgentParams: Codable, Sendable {
|
|||||||
public let timeout: Int?
|
public let timeout: Int?
|
||||||
public let lane: String?
|
public let lane: String?
|
||||||
public let extrasystemprompt: String?
|
public let extrasystemprompt: String?
|
||||||
|
public let inputprovenance: [String: AnyCodable]?
|
||||||
public let idempotencykey: String
|
public let idempotencykey: String
|
||||||
public let label: String?
|
public let label: String?
|
||||||
public let spawnedby: String?
|
public let spawnedby: String?
|
||||||
@@ -514,6 +515,7 @@ public struct AgentParams: Codable, Sendable {
|
|||||||
timeout: Int?,
|
timeout: Int?,
|
||||||
lane: String?,
|
lane: String?,
|
||||||
extrasystemprompt: String?,
|
extrasystemprompt: String?,
|
||||||
|
inputprovenance: [String: AnyCodable]?,
|
||||||
idempotencykey: String,
|
idempotencykey: String,
|
||||||
label: String?,
|
label: String?,
|
||||||
spawnedby: String?
|
spawnedby: String?
|
||||||
@@ -538,6 +540,7 @@ public struct AgentParams: Codable, Sendable {
|
|||||||
self.timeout = timeout
|
self.timeout = timeout
|
||||||
self.lane = lane
|
self.lane = lane
|
||||||
self.extrasystemprompt = extrasystemprompt
|
self.extrasystemprompt = extrasystemprompt
|
||||||
|
self.inputprovenance = inputprovenance
|
||||||
self.idempotencykey = idempotencykey
|
self.idempotencykey = idempotencykey
|
||||||
self.label = label
|
self.label = label
|
||||||
self.spawnedby = spawnedby
|
self.spawnedby = spawnedby
|
||||||
@@ -563,6 +566,7 @@ public struct AgentParams: Codable, Sendable {
|
|||||||
case timeout
|
case timeout
|
||||||
case lane
|
case lane
|
||||||
case extrasystemprompt = "extraSystemPrompt"
|
case extrasystemprompt = "extraSystemPrompt"
|
||||||
|
case inputprovenance = "inputProvenance"
|
||||||
case idempotencykey = "idempotencyKey"
|
case idempotencykey = "idempotencyKey"
|
||||||
case label
|
case label
|
||||||
case spawnedby = "spawnedBy"
|
case spawnedby = "spawnedBy"
|
||||||
|
|||||||
@@ -546,8 +546,10 @@ describe("resolveSessionTranscriptCandidates safety", () => {
|
|||||||
storePath,
|
storePath,
|
||||||
"../../etc/passwd",
|
"../../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.some((value) => value.includes("etc/passwd"))).toBe(false);
|
||||||
expect(candidates).toContain(path.join(path.dirname(storePath), "sess-safe.jsonl"));
|
expect(normalizedCandidates).toContain(expectedFallback);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user