From 08eebcdf5adaca88b0e7598461ea75437539da71 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Thu, 27 Aug 2026 21:40:01 +0000 Subject: [PATCH] build(deps): upgrade github.com/samcharles93/ai-sdk to v0.1.29 --- cmd/archied/main.go | 3 ++- go.mod | 2 +- go.sum | 4 ++-- internal/logging/reader_test.go | 12 ++++++++---- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/cmd/archied/main.go b/cmd/archied/main.go index 5ea9d9cc8..e93b884e1 100644 --- a/cmd/archied/main.go +++ b/cmd/archied/main.go @@ -644,7 +644,8 @@ func (a chatTaskActorAdapter) ApplyChatTaskAction( if err != nil { return gateway.TaskActionResult{}, fmt.Errorf("marshal action request: %w", err) } - req := httptest.NewRequestWithContext(ctx, http.MethodPost, + req := httptest.NewRequestWithContext( + ctx, http.MethodPost, fmt.Sprintf("/api/tasks/%d/action", taskID), bytes.NewReader(body), ) diff --git a/go.mod b/go.mod index 6463854c1..255ef6549 100644 --- a/go.mod +++ b/go.mod @@ -72,7 +72,7 @@ require ( github.com/moby/moby/client v0.5.1 github.com/nats-io/nats-server/v2 v2.14.4 github.com/nats-io/nats.go v1.52.0 - github.com/samcharles93/ai-sdk v0.1.25 + github.com/samcharles93/ai-sdk v0.1.29 github.com/traefik/yaegi v0.16.1 golang.org/x/net v0.57.0 golang.org/x/term v0.45.0 diff --git a/go.sum b/go.sum index 32ef8d7ce..4b7704e63 100644 --- a/go.sum +++ b/go.sum @@ -126,8 +126,8 @@ github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94 github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= -github.com/samcharles93/ai-sdk v0.1.25 h1:30cvHZBw01XRif2cOG/PToC7xTQUZ5DHwMOShT8zSnw= -github.com/samcharles93/ai-sdk v0.1.25/go.mod h1:a4JYsUrwGsmm2eiXgrpcKExtYe7uHQ5zsHDbbkcPB6o= +github.com/samcharles93/ai-sdk v0.1.29 h1:qK+TfjlOazAzKqBFlL1KLFeKDhR9tpKOsHO+FdlhArM= +github.com/samcharles93/ai-sdk v0.1.29/go.mod h1:a4JYsUrwGsmm2eiXgrpcKExtYe7uHQ5zsHDbbkcPB6o= github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw= github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/internal/logging/reader_test.go b/internal/logging/reader_test.go index 198817db3..8aec0e8e6 100644 --- a/internal/logging/reader_test.go +++ b/internal/logging/reader_test.go @@ -297,7 +297,8 @@ func appendInt(dst []byte, n int) []byte { // must still produce a Cursor equal to the input -- otherwise the caller // cannot distinguish "no matches ahead" from "I lost my place". func TestPageCursorAdvancesWithFile(t *testing.T) { - path := writeLog(t, + path := writeLog( + t, line("INFO", "first"), line("INFO", "second"), line("INFO", "third"), @@ -333,7 +334,8 @@ func TestPageCursorPastEOFIsEmpty(t *testing.T) { // boundary behaviour directly. func TestQuerySinceUntilFilters(t *testing.T) { // Three entries: two seconds apart on the same minute. - path := writeLog(t, + path := writeLog( + t, `{"time":"2026-08-04T01:00:00Z","level":"INFO","msg":"early"}`, `{"time":"2026-08-04T01:00:02Z","level":"INFO","msg":"middle"}`, `{"time":"2026-08-04T01:00:04Z","level":"INFO","msg":"late"}`, @@ -388,7 +390,8 @@ func TestTimeBoundsExcludeUnparseableTimestamps(t *testing.T) { if err != nil { t.Fatal(err) } - path := writeLog(t, + path := writeLog( + t, `{"level":"INFO","msg":"no-time-field"}`, `{"time":"not a timestamp","level":"INFO","msg":"unparseable-time"}`, `{"time":"2026-08-04T01:00:02Z","level":"INFO","msg":"has-time"}`, @@ -472,7 +475,8 @@ func TestPageRespectsFilter(t *testing.T) { // unread, and a caller that follows PageResult's documented "cursor == // file size means done" rule would loop. func TestPageCursorAtEOFWithTrailingNonMatchingLines(t *testing.T) { - path := writeLog(t, + path := writeLog( + t, line("ERROR", "e1"), line("INFO", "i1"), line("INFO", "i2"),