Skip to content

Commit ca17356

Browse files
committed
fix(ci): refresh approval protocol and learn assertion
1 parent e0a4146 commit ca17356

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

‎apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15742,21 +15742,25 @@ public struct ApprovalResolveParams: Codable, Sendable {
1574215742
public let id: String
1574315743
public let kind: ApprovalKind
1574415744
public let decision: ApprovalDecision
15745+
public let reviewer: [String: AnyCodable]?
1574515746

1574615747
public init(
1574715748
id: String,
1574815749
kind: ApprovalKind,
15749-
decision: ApprovalDecision)
15750+
decision: ApprovalDecision,
15751+
reviewer: [String: AnyCodable]? = nil)
1575015752
{
1575115753
self.id = id
1575215754
self.kind = kind
1575315755
self.decision = decision
15756+
self.reviewer = reviewer
1575415757
}
1575515758

1575615759
private enum CodingKeys: String, CodingKey {
1575715760
case id
1575815761
case kind
1575915762
case decision
15763+
case reviewer
1576015764
}
1576115765
}
1576215766

@@ -16143,18 +16147,22 @@ public struct ExecApprovalRequestParams: Codable, Sendable {
1614316147
public struct ExecApprovalResolveParams: Codable, Sendable {
1614416148
public let id: String
1614516149
public let decision: String
16150+
public let reviewer: [String: AnyCodable]?
1614616151

1614716152
public init(
1614816153
id: String,
16149-
decision: String)
16154+
decision: String,
16155+
reviewer: [String: AnyCodable]? = nil)
1615016156
{
1615116157
self.id = id
1615216158
self.decision = decision
16159+
self.reviewer = reviewer
1615316160
}
1615416161

1615516162
private enum CodingKeys: String, CodingKey {
1615616163
case id
1615716164
case decision
16165+
case reviewer
1615816166
}
1615916167
}
1616016168

@@ -16513,18 +16521,22 @@ public struct PluginApprovalRequestParams: Codable, Sendable {
1651316521
public struct PluginApprovalResolveParams: Codable, Sendable {
1651416522
public let id: String
1651516523
public let decision: String
16524+
public let reviewer: [String: AnyCodable]?
1651616525

1651716526
public init(
1651816527
id: String,
16519-
decision: String)
16528+
decision: String,
16529+
reviewer: [String: AnyCodable]? = nil)
1652016530
{
1652116531
self.id = id
1652216532
self.decision = decision
16533+
self.reviewer = reviewer
1652316534
}
1652416535

1652516536
private enum CodingKeys: String, CodingKey {
1652616537
case id
1652716538
case decision
16539+
case reviewer
1652816540
}
1652916541
}
1653016542

‎src/auto-reply/reply/commands-learn.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ describe("learn command", () => {
9999
await handleLearnCommand(params, true);
100100
const instruction = (params.ctx as { BodyForAgent?: string }).BodyForAgent ?? "";
101101

102-
expect(instruction).toContain('`skill_workshop` with action `"create"`');
102+
expect(instruction).toContain(
103+
"Use `skill_workshop` to inspect pending proposals and read any relevant live skill.",
104+
);
103105
expect(instruction).toContain("first ~60 characters");
104106
expect(instruction).toContain("never invent flags, commands, paths, APIs");
105107
});

0 commit comments

Comments
 (0)