From a1a8075786033d9e3eb6be3c109e7ed94d85fe4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hyori=20=ED=9A=A8=EB=A6=AC?= Date: Wed, 14 May 2025 21:29:14 +0800 Subject: [PATCH 1/2] add sqlite pkg --- cli/mods.go | 4 ++++ go.mod | 19 +++++++++++++++++-- go.sum | 45 +++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 62 insertions(+), 6 deletions(-) diff --git a/cli/mods.go b/cli/mods.go index e0d397d..6a3939a 100644 --- a/cli/mods.go +++ b/cli/mods.go @@ -14,6 +14,7 @@ import ( "github.com/starpkg/gum" "github.com/starpkg/llm" "github.com/starpkg/markdown" + "github.com/starpkg/sqlite" ) var ( @@ -25,6 +26,7 @@ var ( llm.ModuleName, markdown.ModuleName, cmd.ModuleName, + sqlite.ModuleName, } ) @@ -78,6 +80,8 @@ func loadCLIModuleByName(opts *BoxOpts, name string) (starlet.ModuleLoader, erro return markdown.NewModule().LoadModule(), nil case cmd.ModuleName: return cmd.NewModule().LoadModule(), nil + case sqlite.ModuleName: + return sqlite.NewModule().LoadModule(), nil default: return nil, fmt.Errorf("unknown module: %s", name) } diff --git a/go.mod b/go.mod index 2e55388..dd3a3e2 100644 --- a/go.mod +++ b/go.mod @@ -18,6 +18,7 @@ require ( github.com/starpkg/gum v0.0.0-20250510052251-3d605fc6ba4f github.com/starpkg/llm v0.0.0-20250510052828-ad20b1351071 github.com/starpkg/markdown v0.0.0-20250504182330-a76dbc09d06d + github.com/starpkg/sqlite v0.0.0-20250514132517-c4f4c892bb62 go.starlark.net v0.0.0-20240123142251-f86470692795 go.uber.org/atomic v1.11.0 go.uber.org/zap v1.24.0 @@ -53,6 +54,7 @@ require ( github.com/gorilla/css v1.0.0 // indirect github.com/h2so5/here v0.0.0-20200815043652-5e14eb691fae // indirect github.com/hashicorp/hcl v1.0.0 // indirect + github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/mattn/go-isatty v0.0.20 // indirect @@ -69,6 +71,7 @@ require ( github.com/olekukonko/tablewriter v0.0.5 // indirect github.com/pelletier/go-toml/v2 v2.1.0 // indirect github.com/psanford/memfs v0.0.0-20230130182539-4dbf7e3e865e // indirect + github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/resend/resend-go/v2 v2.11.0 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rodolfoag/gow32 v0.0.0-20160917004320-d95ff468acf8 // indirect @@ -77,19 +80,31 @@ require ( github.com/spf13/cast v1.6.0 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spyzhov/ajson v0.9.6 // indirect - github.com/starpkg/base v0.0.4 // indirect + github.com/starpkg/base v0.0.5 // indirect github.com/subosito/gotenv v1.6.0 // indirect github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect github.com/yuin/goldmark v1.7.11 // indirect github.com/yuin/goldmark-emoji v1.0.6 // indirect go.uber.org/multierr v1.9.0 // indirect golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 // indirect - golang.org/x/net v0.19.0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.25.0 // indirect golang.org/x/sync v0.11.0 // indirect golang.org/x/sys v0.30.0 // indirect golang.org/x/text v0.22.0 // indirect + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect + lukechampine.com/uint128 v1.2.0 // indirect + modernc.org/cc/v3 v3.40.0 // indirect + modernc.org/ccgo/v3 v3.16.13 // indirect + modernc.org/libc v1.22.5 // indirect + modernc.org/mathutil v1.5.0 // indirect + modernc.org/memory v1.5.0 // indirect + modernc.org/opt v0.1.3 // indirect + modernc.org/sqlite v1.24.0 // indirect + modernc.org/strutil v1.1.3 // indirect + modernc.org/token v1.0.1 // indirect ) diff --git a/go.sum b/go.sum index a4799f6..58027e8 100644 --- a/go.sum +++ b/go.sum @@ -76,6 +76,7 @@ github.com/gonutz/w32 v1.0.0 h1:3t1z6ZfkFvirjFYBx9pHeHBuKoN/VBVk9yHb/m2Ll/k= github.com/gonutz/w32 v1.0.0/go.mod h1:Rc/YP5K9gv0FW4p6X9qL3E7Y56lfMflEol1fLElfMW4= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26 h1:Xim43kblpZXfIBQsbuBVKCudVG457BR2GZFIz3uw3hQ= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY= @@ -85,6 +86,8 @@ github.com/h2so5/here v0.0.0-20200815043652-5e14eb691fae/go.mod h1:Q+Ziz4FsuRTHq github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -107,6 +110,7 @@ github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRC github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= github.com/microcosm-cc/bluemonday v1.0.25 h1:4NEwSfiJ+Wva0VxN5B8OwMicaJvD8r9tlJWm9rtloEg= github.com/microcosm-cc/bluemonday v1.0.25/go.mod h1:ZIOjCQp1OrzBBPIJmfX4qDYFuhU02nx4bn030ixfHLE= github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= @@ -134,6 +138,9 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/psanford/memfs v0.0.0-20230130182539-4dbf7e3e865e h1:51xcRlSMBU5rhM9KahnJGfEsBPVPz3182TgFRowA8yY= github.com/psanford/memfs v0.0.0-20230130182539-4dbf7e3e865e/go.mod h1:tcaRap0jS3eifrEEllL6ZMd9dg8IlDpi2S1oARrQ+NI= +github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= +github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE= +github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/resend/resend-go/v2 v2.11.0 h1:Ja5eXizUCbvyLgbiP8sFsJW/UN1b7d6IEUqi80IlgiU= github.com/resend/resend-go/v2 v2.11.0/go.mod h1:ihnxc7wPpSgans8RV8d8dIF4hYWVsqMK5KxXAr9LIos= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= @@ -159,8 +166,8 @@ github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= github.com/spyzhov/ajson v0.9.6 h1:iJRDaLa+GjhCDAt1yFtU/LKMtLtsNVKkxqlpvrHHlpQ= github.com/spyzhov/ajson v0.9.6/go.mod h1:a6oSw0MMb7Z5aD2tPoPO+jq11ETKgXUr2XktHdT8Wt8= -github.com/starpkg/base v0.0.4 h1:B3P0SEzRyhbU2KGEMhcaQAj1faMGOZeaarwcC66fdEw= -github.com/starpkg/base v0.0.4/go.mod h1:NV3OZtaqYEpYRTf3J5oW99DIVMYQl2Kz1moBJ93mws4= +github.com/starpkg/base v0.0.5 h1:vJll6ekC00ucy/lbwSslBTDitG2pHxzMZJ2zGzTuSaA= +github.com/starpkg/base v0.0.5/go.mod h1:NV3OZtaqYEpYRTf3J5oW99DIVMYQl2Kz1moBJ93mws4= github.com/starpkg/cmd v0.0.0-20250504183432-8bf94e3c79bb h1:ROcfp4z9xFjWI4+r1nL5IUkXOlpRwyaPa/ikPcScMJY= github.com/starpkg/cmd v0.0.0-20250504183432-8bf94e3c79bb/go.mod h1:R9brkGHQJgwvDnaHsK0pa9IPPGIUb1CXYqx3+iXf2bU= github.com/starpkg/email v0.0.0-20250510052426-e35d576c8e48 h1:kgCJtQHX5nMA+tP7PgvW+mesred187fL4DJb4NwX3vI= @@ -171,6 +178,8 @@ github.com/starpkg/llm v0.0.0-20250510052828-ad20b1351071 h1:TrUeHxTCzubWUPM8EqL github.com/starpkg/llm v0.0.0-20250510052828-ad20b1351071/go.mod h1:cOgJBjN7Xg74Nej5sffBDLtSkBs3403U75e9sVx4Yjg= github.com/starpkg/markdown v0.0.0-20250504182330-a76dbc09d06d h1:Nfz991M69IwfQuR4hIM6t1T5xBdC+OsxrFzd1tCEePc= github.com/starpkg/markdown v0.0.0-20250504182330-a76dbc09d06d/go.mod h1:rf9Yi0PvT81adPnWtjKMYwgeuNcQ2kQaNXjFz90A/ug= +github.com/starpkg/sqlite v0.0.0-20250514132517-c4f4c892bb62 h1:NvKbODkvzjDmV8/y5Xh4nSs7xIQO+7IsM1Vatj8ullU= +github.com/starpkg/sqlite v0.0.0-20250514132517-c4f4c892bb62/go.mod h1:u5chiECDLUV0Zt976n4VlW4buuVhqpgdQPzXV7T6emY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= @@ -209,12 +218,14 @@ golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 h1:mchzmB1XO2pMaKFRqk/+MV3mg golang.org/x/exp v0.0.0-20231108232855-2478ac86f678/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w= @@ -242,6 +253,8 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -260,3 +273,27 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI= +lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk= +modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw= +modernc.org/cc/v3 v3.40.0/go.mod h1:/bTg4dnWkSXowUO6ssQKnOV0yMVxDYNIsIrzqTFDGH0= +modernc.org/ccgo/v3 v3.16.13 h1:Mkgdzl46i5F/CNR/Kj80Ri59hC8TKAhZrYSaqvkwzUw= +modernc.org/ccgo/v3 v3.16.13/go.mod h1:2Quk+5YgpImhPjv2Qsob1DnZ/4som1lJTodubIcoUkY= +modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk= +modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM= +modernc.org/libc v1.22.5 h1:91BNch/e5B0uPbJFgqbxXuOnxBQjlS//icfQEGmvyjE= +modernc.org/libc v1.22.5/go.mod h1:jj+Z7dTNX8fBScMVNRAYZ/jF91K8fdT2hYMThc3YjBY= +modernc.org/mathutil v1.5.0 h1:rV0Ko/6SfM+8G+yKiyI830l3Wuz1zRutdslNoQ0kfiQ= +modernc.org/mathutil v1.5.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E= +modernc.org/memory v1.5.0 h1:N+/8c5rE6EqugZwHii4IFsaJ7MUhoWX07J5tC/iI5Ds= +modernc.org/memory v1.5.0/go.mod h1:PkUhL0Mugw21sHPeskwZW4D6VscE/GQJOnIpCnW6pSU= +modernc.org/opt v0.1.3 h1:3XOZf2yznlhC+ibLltsDGzABUGVx8J6pnFMS3E4dcq4= +modernc.org/opt v0.1.3/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0= +modernc.org/sqlite v1.24.0 h1:EsClRIWHGhLTCX44p+Ri/JLD+vFGo0QGjasg2/F9TlI= +modernc.org/sqlite v1.24.0/go.mod h1:OrDj17Mggn6MhE+iPbBNf7RGKODDE9NFT0f3EwDzJqk= +modernc.org/strutil v1.1.3 h1:fNMm+oJklMGYfU9Ylcywl0CO5O6nTfaowNsh2wpPjzY= +modernc.org/strutil v1.1.3/go.mod h1:MEHNA7PdEnEwLvspRMtWTNnp2nnyvMfkimT1NKNAGbw= +modernc.org/tcl v1.15.2 h1:C4ybAYCGJw968e+Me18oW55kD/FexcHbqH2xak1ROSY= +modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg= +modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= +modernc.org/z v1.7.3 h1:zDJf6iHjrnB+WRD88stbXokugjyc0/pB91ri1gO6LZY= From 23a3aabfd212aed3376f61f2aa3de3f348cc77c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hyori=20=ED=9A=A8=EB=A6=AC?= Date: Sat, 14 Jun 2025 13:42:48 +0800 Subject: [PATCH 2/2] for latest sqlite, llm pkg --- go.mod | 6 +++--- go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index dd3a3e2..3706b55 100644 --- a/go.mod +++ b/go.mod @@ -16,9 +16,9 @@ require ( github.com/starpkg/cmd v0.0.0-20250504183432-8bf94e3c79bb github.com/starpkg/email v0.0.0-20250510052426-e35d576c8e48 github.com/starpkg/gum v0.0.0-20250510052251-3d605fc6ba4f - github.com/starpkg/llm v0.0.0-20250510052828-ad20b1351071 + github.com/starpkg/llm v0.0.0-20250614053946-768e3352ab02 github.com/starpkg/markdown v0.0.0-20250504182330-a76dbc09d06d - github.com/starpkg/sqlite v0.0.0-20250514132517-c4f4c892bb62 + github.com/starpkg/sqlite v0.0.0-20250614042714-407c1ff5036e go.starlark.net v0.0.0-20240123142251-f86470692795 go.uber.org/atomic v1.11.0 go.uber.org/zap v1.24.0 @@ -75,7 +75,7 @@ require ( github.com/resend/resend-go/v2 v2.11.0 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rodolfoag/gow32 v0.0.0-20160917004320-d95ff468acf8 // indirect - github.com/sashabaranov/go-openai v1.39.1 // indirect + github.com/sashabaranov/go-openai v1.40.1 // indirect github.com/spf13/afero v1.11.0 // indirect github.com/spf13/cast v1.6.0 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect diff --git a/go.sum b/go.sum index 58027e8..878bb6e 100644 --- a/go.sum +++ b/go.sum @@ -152,8 +152,8 @@ github.com/rodolfoag/gow32 v0.0.0-20160917004320-d95ff468acf8/go.mod h1:w/ebPUfA github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/samber/lo v1.50.0 h1:XrG0xOeHs+4FQ8gJR97zDz5uOFMW7OwFWiFVzqopKgY= github.com/samber/lo v1.50.0/go.mod h1:RjZyNk6WSnUFRKK6EyOhsRJMqft3G+pg7dCWHQCWvsc= -github.com/sashabaranov/go-openai v1.39.1 h1:TMD4w77Iy9WTFlgnjNaxbAASdsCJ9R/rMdzL+SN14oU= -github.com/sashabaranov/go-openai v1.39.1/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg= +github.com/sashabaranov/go-openai v1.40.1 h1:bJ08Iwct5mHBVkuvG6FEcb9MDTfsXdTYPGjYLRdeTEU= +github.com/sashabaranov/go-openai v1.40.1/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= @@ -174,12 +174,12 @@ github.com/starpkg/email v0.0.0-20250510052426-e35d576c8e48 h1:kgCJtQHX5nMA+tP7P github.com/starpkg/email v0.0.0-20250510052426-e35d576c8e48/go.mod h1:yQwcGUunIs7BpP2/ogUGf+akH4OcVVpRQClekPVBYl4= github.com/starpkg/gum v0.0.0-20250510052251-3d605fc6ba4f h1:ExvSdeCGhi41OtODYpH2+NbRwoSrR6Mfidk0DED0lso= github.com/starpkg/gum v0.0.0-20250510052251-3d605fc6ba4f/go.mod h1:lbog1y+yy4BvVodmeHyx04kaLL6VwsbX6xJJNkUfn7o= -github.com/starpkg/llm v0.0.0-20250510052828-ad20b1351071 h1:TrUeHxTCzubWUPM8EqLpLKYifOmeJU4HW0TKRyEnrU8= -github.com/starpkg/llm v0.0.0-20250510052828-ad20b1351071/go.mod h1:cOgJBjN7Xg74Nej5sffBDLtSkBs3403U75e9sVx4Yjg= +github.com/starpkg/llm v0.0.0-20250614053946-768e3352ab02 h1:hmzvDcSwKvUQgBwh5PEEGhZP52XpNnx2FVWYI9cWJYI= +github.com/starpkg/llm v0.0.0-20250614053946-768e3352ab02/go.mod h1:KXzZyp37Hn63whoYXCWQ+0qiFbsT1/nHEo0TuifJcC4= github.com/starpkg/markdown v0.0.0-20250504182330-a76dbc09d06d h1:Nfz991M69IwfQuR4hIM6t1T5xBdC+OsxrFzd1tCEePc= github.com/starpkg/markdown v0.0.0-20250504182330-a76dbc09d06d/go.mod h1:rf9Yi0PvT81adPnWtjKMYwgeuNcQ2kQaNXjFz90A/ug= -github.com/starpkg/sqlite v0.0.0-20250514132517-c4f4c892bb62 h1:NvKbODkvzjDmV8/y5Xh4nSs7xIQO+7IsM1Vatj8ullU= -github.com/starpkg/sqlite v0.0.0-20250514132517-c4f4c892bb62/go.mod h1:u5chiECDLUV0Zt976n4VlW4buuVhqpgdQPzXV7T6emY= +github.com/starpkg/sqlite v0.0.0-20250614042714-407c1ff5036e h1:jxwDnJLuKiHhqOz830mQRa1I/Vi1iGNGmE7eHJGQqBo= +github.com/starpkg/sqlite v0.0.0-20250614042714-407c1ff5036e/go.mod h1:u5chiECDLUV0Zt976n4VlW4buuVhqpgdQPzXV7T6emY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=