mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
Upgrade to Zod v4 (#2605)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
89d820b1c4
commit
c1b4e1f19d
75 changed files with 1106 additions and 1304 deletions
|
|
@ -196,7 +196,7 @@ func TestSessionCommandWithOptionalParams(t *testing.T) {
|
|||
Command: opencode.F("command"),
|
||||
Directory: opencode.F("directory"),
|
||||
Agent: opencode.F("agent"),
|
||||
MessageID: opencode.F("msg"),
|
||||
MessageID: opencode.F("msgJ!"),
|
||||
Model: opencode.F("model"),
|
||||
},
|
||||
)
|
||||
|
|
@ -353,7 +353,7 @@ func TestSessionPromptWithOptionalParams(t *testing.T) {
|
|||
}}),
|
||||
Directory: opencode.F("directory"),
|
||||
Agent: opencode.F("agent"),
|
||||
MessageID: opencode.F("msg"),
|
||||
MessageID: opencode.F("msgJ!"),
|
||||
Model: opencode.F(opencode.SessionPromptParamsModel{
|
||||
ModelID: opencode.F("modelID"),
|
||||
ProviderID: opencode.F("providerID"),
|
||||
|
|
@ -389,9 +389,9 @@ func TestSessionRevertWithOptionalParams(t *testing.T) {
|
|||
context.TODO(),
|
||||
"id",
|
||||
opencode.SessionRevertParams{
|
||||
MessageID: opencode.F("msg"),
|
||||
MessageID: opencode.F("msgJ!"),
|
||||
Directory: opencode.F("directory"),
|
||||
PartID: opencode.F("prt"),
|
||||
PartID: opencode.F("prtJ!"),
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue