diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a812b48..88dcf7e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -41,7 +41,7 @@ To use a local version of this library from source in another project, edit the
directive. This can be done through the CLI with the following:
```sh
-$ go mod edit -replace github.com/sst/opencode-sdk-go=/path/to/opencode-sdk-go
+$ go mod edit -replace github.com/anomalyco/opencode-sdk-go=/path/to/opencode-sdk-go
```
## Running tests
diff --git a/README.md b/README.md
index f184c3e..ce3b8f0 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Opencode Go API Library
-
+
The Opencode Go library provides convenient access to the [Opencode REST API](https://opencode.ai/docs)
from applications written in Go.
@@ -13,7 +13,7 @@ It is generated with [Stainless](https://www.stainless.com/).
```go
import (
- "github.com/sst/opencode-sdk-go" // imported as opencode
+ "github.com/anomalyco/opencode-sdk-go" // imported as opencode
)
```
@@ -24,7 +24,7 @@ Or to pin the version:
```sh
-go get -u 'github.com/sst/opencode-sdk-go@v0.19.2'
+go get -u 'github.com/anomalyco/opencode-sdk-go@v0.19.2'
```
@@ -44,7 +44,7 @@ import (
"context"
"fmt"
- "github.com/sst/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go"
)
func main() {
@@ -150,7 +150,7 @@ client.Session.List(context.TODO(), ...,
)
```
-See the [full list of request options](https://pkg.go.dev/github.com/sst/opencode-sdk-go/option).
+See the [full list of request options](https://pkg.go.dev/github.com/anomalyco/opencode-sdk-go/option).
### Pagination
@@ -356,7 +356,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
-We are keen for your feedback; please open an [issue](https://www.github.com/sst/opencode-sdk-go/issues) with questions, bugs, or suggestions.
+We are keen for your feedback; please open an [issue](https://www.github.com/anomalyco/opencode-sdk-go/issues) with questions, bugs, or suggestions.
## Contributing
diff --git a/agent.go b/agent.go
index 3413b56..25030bd 100644
--- a/agent.go
+++ b/agent.go
@@ -8,11 +8,11 @@ import (
"net/url"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
// AgentService contains methods and other services that help with interacting with
diff --git a/agent_test.go b/agent_test.go
index 0827df5..a297779 100644
--- a/agent_test.go
+++ b/agent_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestAgentListWithOptionalParams(t *testing.T) {
diff --git a/aliases.go b/aliases.go
index 50beeae..c4d9bd2 100644
--- a/aliases.go
+++ b/aliases.go
@@ -3,8 +3,8 @@
package opencode
import (
- "github.com/sst/opencode-sdk-go/internal/apierror"
- "github.com/sst/opencode-sdk-go/shared"
+ "github.com/anomalyco/opencode-sdk-go/internal/apierror"
+ "github.com/anomalyco/opencode-sdk-go/shared"
)
type Error = apierror.Error
diff --git a/api.md b/api.md
index 02ac42b..e768795 100644
--- a/api.md
+++ b/api.md
@@ -1,194 +1,194 @@
# Shared Response Types
-- shared.MessageAbortedError
-- shared.ProviderAuthError
-- shared.UnknownError
+- shared.MessageAbortedError
+- shared.ProviderAuthError
+- shared.UnknownError
# Event
Response Types:
-- opencode.EventListResponse
+- opencode.EventListResponse
Methods:
-- client.Event.List(ctx context.Context, query opencode.EventListParams) (opencode.EventListResponse, error)
+- client.Event.List(ctx context.Context, query opencode.EventListParams) (opencode.EventListResponse, error)
# Path
Response Types:
-- opencode.Path
+- opencode.Path
Methods:
-- client.Path.Get(ctx context.Context, query opencode.PathGetParams) (opencode.Path, error)
+- client.Path.Get(ctx context.Context, query opencode.PathGetParams) (opencode.Path, error)
# App
Response Types:
-- opencode.Model
-- opencode.Provider
-- opencode.AppProvidersResponse
+- opencode.Model
+- opencode.Provider
+- opencode.AppProvidersResponse
Methods:
-- client.App.Log(ctx context.Context, params opencode.AppLogParams) (bool, error)
-- client.App.Providers(ctx context.Context, query opencode.AppProvidersParams) (opencode.AppProvidersResponse, error)
+- client.App.Log(ctx context.Context, params opencode.AppLogParams) (bool, error)
+- client.App.Providers(ctx context.Context, query opencode.AppProvidersParams) (opencode.AppProvidersResponse, error)
# Agent
Response Types:
-- opencode.Agent
+- opencode.Agent
Methods:
-- client.Agent.List(ctx context.Context, query opencode.AgentListParams) ([]opencode.Agent, error)
+- client.Agent.List(ctx context.Context, query opencode.AgentListParams) ([]opencode.Agent, error)
# Find
Response Types:
-- opencode.Symbol
-- opencode.FindTextResponse
+- opencode.Symbol
+- opencode.FindTextResponse
Methods:
-- client.Find.Files(ctx context.Context, query opencode.FindFilesParams) ([]string, error)
-- client.Find.Symbols(ctx context.Context, query opencode.FindSymbolsParams) ([]opencode.Symbol, error)
-- client.Find.Text(ctx context.Context, query opencode.FindTextParams) ([]opencode.FindTextResponse, error)
+- client.Find.Files(ctx context.Context, query opencode.FindFilesParams) ([]string, error)
+- client.Find.Symbols(ctx context.Context, query opencode.FindSymbolsParams) ([]opencode.Symbol, error)
+- client.Find.Text(ctx context.Context, query opencode.FindTextParams) ([]opencode.FindTextResponse, error)
# File
Response Types:
-- opencode.File
-- opencode.FileNode
-- opencode.FileReadResponse
+- opencode.File
+- opencode.FileNode
+- opencode.FileReadResponse
Methods:
-- client.File.List(ctx context.Context, query opencode.FileListParams) ([]opencode.FileNode, error)
-- client.File.Read(ctx context.Context, query opencode.FileReadParams) (opencode.FileReadResponse, error)
-- client.File.Status(ctx context.Context, query opencode.FileStatusParams) ([]opencode.File, error)
+- client.File.List(ctx context.Context, query opencode.FileListParams) ([]opencode.FileNode, error)
+- client.File.Read(ctx context.Context, query opencode.FileReadParams) (opencode.FileReadResponse, error)
+- client.File.Status(ctx context.Context, query opencode.FileStatusParams) ([]opencode.File, error)
# Config
Response Types:
-- opencode.Config
-- opencode.KeybindsConfig
-- opencode.McpLocalConfig
-- opencode.McpRemoteConfig
+- opencode.Config
+- opencode.KeybindsConfig
+- opencode.McpLocalConfig
+- opencode.McpRemoteConfig
Methods:
-- client.Config.Get(ctx context.Context, query opencode.ConfigGetParams) (opencode.Config, error)
+- client.Config.Get(ctx context.Context, query opencode.ConfigGetParams) (opencode.Config, error)
# Command
Response Types:
-- opencode.Command
+- opencode.Command
Methods:
-- client.Command.List(ctx context.Context, query opencode.CommandListParams) ([]opencode.Command, error)
+- client.Command.List(ctx context.Context, query opencode.CommandListParams) ([]opencode.Command, error)
# Project
Response Types:
-- opencode.Project
+- opencode.Project
Methods:
-- client.Project.List(ctx context.Context, query opencode.ProjectListParams) ([]opencode.Project, error)
-- client.Project.Current(ctx context.Context, query opencode.ProjectCurrentParams) (opencode.Project, error)
+- client.Project.List(ctx context.Context, query opencode.ProjectListParams) ([]opencode.Project, error)
+- client.Project.Current(ctx context.Context, query opencode.ProjectCurrentParams) (opencode.Project, error)
# Session
Params Types:
-- opencode.AgentPartInputParam
-- opencode.FilePartInputParam
-- opencode.FilePartSourceUnionParam
-- opencode.FilePartSourceTextParam
-- opencode.FileSourceParam
-- opencode.SymbolSourceParam
-- opencode.TextPartInputParam
+- opencode.AgentPartInputParam
+- opencode.FilePartInputParam
+- opencode.FilePartSourceUnionParam
+- opencode.FilePartSourceTextParam
+- opencode.FileSourceParam
+- opencode.SymbolSourceParam
+- opencode.TextPartInputParam
Response Types:
-- opencode.AgentPart
-- opencode.AssistantMessage
-- opencode.FilePart
-- opencode.FilePartSource
-- opencode.FilePartSourceText
-- opencode.FileSource
-- opencode.Message
-- opencode.Part
-- opencode.ReasoningPart
-- opencode.Session
-- opencode.SnapshotPart
-- opencode.StepFinishPart
-- opencode.StepStartPart
-- opencode.SymbolSource
-- opencode.TextPart
-- opencode.ToolPart
-- opencode.ToolStateCompleted
-- opencode.ToolStateError
-- opencode.ToolStatePending
-- opencode.ToolStateRunning
-- opencode.UserMessage
-- opencode.SessionCommandResponse
-- opencode.SessionMessageResponse
-- opencode.SessionMessagesResponse
-- opencode.SessionPromptResponse
+- opencode.AgentPart
+- opencode.AssistantMessage
+- opencode.FilePart
+- opencode.FilePartSource
+- opencode.FilePartSourceText
+- opencode.FileSource
+- opencode.Message
+- opencode.Part
+- opencode.ReasoningPart
+- opencode.Session
+- opencode.SnapshotPart
+- opencode.StepFinishPart
+- opencode.StepStartPart
+- opencode.SymbolSource
+- opencode.TextPart
+- opencode.ToolPart
+- opencode.ToolStateCompleted
+- opencode.ToolStateError
+- opencode.ToolStatePending
+- opencode.ToolStateRunning
+- opencode.UserMessage
+- opencode.SessionCommandResponse
+- opencode.SessionMessageResponse
+- opencode.SessionMessagesResponse
+- opencode.SessionPromptResponse
Methods:
-- client.Session.New(ctx context.Context, params opencode.SessionNewParams) (opencode.Session, error)
-- client.Session.Update(ctx context.Context, id string, params opencode.SessionUpdateParams) (opencode.Session, error)
-- client.Session.List(ctx context.Context, query opencode.SessionListParams) ([]opencode.Session, error)
-- client.Session.Delete(ctx context.Context, id string, body opencode.SessionDeleteParams) (bool, error)
-- client.Session.Abort(ctx context.Context, id string, body opencode.SessionAbortParams) (bool, error)
-- client.Session.Children(ctx context.Context, id string, query opencode.SessionChildrenParams) ([]opencode.Session, error)
-- client.Session.Command(ctx context.Context, id string, params opencode.SessionCommandParams) (opencode.SessionCommandResponse, error)
-- client.Session.Get(ctx context.Context, id string, query opencode.SessionGetParams) (opencode.Session, error)
-- client.Session.Init(ctx context.Context, id string, params opencode.SessionInitParams) (bool, error)
-- client.Session.Message(ctx context.Context, id string, messageID string, query opencode.SessionMessageParams) (opencode.SessionMessageResponse, error)
-- client.Session.Messages(ctx context.Context, id string, query opencode.SessionMessagesParams) ([]opencode.SessionMessagesResponse, error)
-- client.Session.Prompt(ctx context.Context, id string, params opencode.SessionPromptParams) (opencode.SessionPromptResponse, error)
-- client.Session.Revert(ctx context.Context, id string, params opencode.SessionRevertParams) (opencode.Session, error)
-- client.Session.Share(ctx context.Context, id string, body opencode.SessionShareParams) (opencode.Session, error)
-- client.Session.Shell(ctx context.Context, id string, params opencode.SessionShellParams) (opencode.AssistantMessage, error)
-- client.Session.Summarize(ctx context.Context, id string, params opencode.SessionSummarizeParams) (bool, error)
-- client.Session.Unrevert(ctx context.Context, id string, body opencode.SessionUnrevertParams) (opencode.Session, error)
-- client.Session.Unshare(ctx context.Context, id string, body opencode.SessionUnshareParams) (opencode.Session, error)
+- client.Session.New(ctx context.Context, params opencode.SessionNewParams) (opencode.Session, error)
+- client.Session.Update(ctx context.Context, id string, params opencode.SessionUpdateParams) (opencode.Session, error)
+- client.Session.List(ctx context.Context, query opencode.SessionListParams) ([]opencode.Session, error)
+- client.Session.Delete(ctx context.Context, id string, body opencode.SessionDeleteParams) (bool, error)
+- client.Session.Abort(ctx context.Context, id string, body opencode.SessionAbortParams) (bool, error)
+- client.Session.Children(ctx context.Context, id string, query opencode.SessionChildrenParams) ([]opencode.Session, error)
+- client.Session.Command(ctx context.Context, id string, params opencode.SessionCommandParams) (opencode.SessionCommandResponse, error)
+- client.Session.Get(ctx context.Context, id string, query opencode.SessionGetParams) (opencode.Session, error)
+- client.Session.Init(ctx context.Context, id string, params opencode.SessionInitParams) (bool, error)
+- client.Session.Message(ctx context.Context, id string, messageID string, query opencode.SessionMessageParams) (opencode.SessionMessageResponse, error)
+- client.Session.Messages(ctx context.Context, id string, query opencode.SessionMessagesParams) ([]opencode.SessionMessagesResponse, error)
+- client.Session.Prompt(ctx context.Context, id string, params opencode.SessionPromptParams) (opencode.SessionPromptResponse, error)
+- client.Session.Revert(ctx context.Context, id string, params opencode.SessionRevertParams) (opencode.Session, error)
+- client.Session.Share(ctx context.Context, id string, body opencode.SessionShareParams) (opencode.Session, error)
+- client.Session.Shell(ctx context.Context, id string, params opencode.SessionShellParams) (opencode.AssistantMessage, error)
+- client.Session.Summarize(ctx context.Context, id string, params opencode.SessionSummarizeParams) (bool, error)
+- client.Session.Unrevert(ctx context.Context, id string, body opencode.SessionUnrevertParams) (opencode.Session, error)
+- client.Session.Unshare(ctx context.Context, id string, body opencode.SessionUnshareParams) (opencode.Session, error)
## Permissions
Response Types:
-- opencode.Permission
+- opencode.Permission
Methods:
-- client.Session.Permissions.Respond(ctx context.Context, id string, permissionID string, params opencode.SessionPermissionRespondParams) (bool, error)
+- client.Session.Permissions.Respond(ctx context.Context, id string, permissionID string, params opencode.SessionPermissionRespondParams) (bool, error)
# Tui
Methods:
-- client.Tui.AppendPrompt(ctx context.Context, params opencode.TuiAppendPromptParams) (bool, error)
-- client.Tui.ClearPrompt(ctx context.Context, body opencode.TuiClearPromptParams) (bool, error)
-- client.Tui.ExecuteCommand(ctx context.Context, params opencode.TuiExecuteCommandParams) (bool, error)
-- client.Tui.OpenHelp(ctx context.Context, body opencode.TuiOpenHelpParams) (bool, error)
-- client.Tui.OpenModels(ctx context.Context, body opencode.TuiOpenModelsParams) (bool, error)
-- client.Tui.OpenSessions(ctx context.Context, body opencode.TuiOpenSessionsParams) (bool, error)
-- client.Tui.OpenThemes(ctx context.Context, body opencode.TuiOpenThemesParams) (bool, error)
-- client.Tui.ShowToast(ctx context.Context, params opencode.TuiShowToastParams) (bool, error)
-- client.Tui.SubmitPrompt(ctx context.Context, body opencode.TuiSubmitPromptParams) (bool, error)
+- client.Tui.AppendPrompt(ctx context.Context, params opencode.TuiAppendPromptParams) (bool, error)
+- client.Tui.ClearPrompt(ctx context.Context, body opencode.TuiClearPromptParams) (bool, error)
+- client.Tui.ExecuteCommand(ctx context.Context, params opencode.TuiExecuteCommandParams) (bool, error)
+- client.Tui.OpenHelp(ctx context.Context, body opencode.TuiOpenHelpParams) (bool, error)
+- client.Tui.OpenModels(ctx context.Context, body opencode.TuiOpenModelsParams) (bool, error)
+- client.Tui.OpenSessions(ctx context.Context, body opencode.TuiOpenSessionsParams) (bool, error)
+- client.Tui.OpenThemes(ctx context.Context, body opencode.TuiOpenThemesParams) (bool, error)
+- client.Tui.ShowToast(ctx context.Context, params opencode.TuiShowToastParams) (bool, error)
+- client.Tui.SubmitPrompt(ctx context.Context, body opencode.TuiSubmitPromptParams) (bool, error)
diff --git a/app.go b/app.go
index 4ba4233..735bcb3 100644
--- a/app.go
+++ b/app.go
@@ -8,11 +8,11 @@ import (
"net/url"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
// AppService contains methods and other services that help with interacting with
diff --git a/app_test.go b/app_test.go
index eb2fc92..30c593b 100644
--- a/app_test.go
+++ b/app_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestAppLogWithOptionalParams(t *testing.T) {
diff --git a/client.go b/client.go
index a7b8642..a4a379d 100644
--- a/client.go
+++ b/client.go
@@ -8,8 +8,8 @@ import (
"os"
"slices"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
// Client creates a struct with services and top level methods that help with
diff --git a/client_test.go b/client_test.go
index d620da8..a7fe141 100644
--- a/client_test.go
+++ b/client_test.go
@@ -11,9 +11,9 @@ import (
"testing"
"time"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
type closureTransport struct {
diff --git a/command.go b/command.go
index 2f64489..9fae71e 100644
--- a/command.go
+++ b/command.go
@@ -8,11 +8,11 @@ import (
"net/url"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
// CommandService contains methods and other services that help with interacting
diff --git a/command_test.go b/command_test.go
index 781498b..8b6afe0 100644
--- a/command_test.go
+++ b/command_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestCommandListWithOptionalParams(t *testing.T) {
diff --git a/config.go b/config.go
index 02460fb..18f7695 100644
--- a/config.go
+++ b/config.go
@@ -9,12 +9,12 @@ import (
"reflect"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
- "github.com/sst/opencode-sdk-go/shared"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/shared"
"github.com/tidwall/gjson"
)
diff --git a/config_test.go b/config_test.go
index f188d7e..337b456 100644
--- a/config_test.go
+++ b/config_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestConfigGetWithOptionalParams(t *testing.T) {
diff --git a/event.go b/event.go
index 41a3795..b64ab9c 100644
--- a/event.go
+++ b/event.go
@@ -9,13 +9,13 @@ import (
"reflect"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
- "github.com/sst/opencode-sdk-go/packages/ssestream"
- "github.com/sst/opencode-sdk-go/shared"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/packages/ssestream"
+ "github.com/anomalyco/opencode-sdk-go/shared"
"github.com/tidwall/gjson"
)
diff --git a/field.go b/field.go
index 56d2f89..7d8af16 100644
--- a/field.go
+++ b/field.go
@@ -1,7 +1,7 @@
package opencode
import (
- "github.com/sst/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
"io"
)
@@ -9,7 +9,7 @@ import (
// This helps specify null, zero values, and overrides, as well as normal values.
// You can read more about this in our [README].
//
-// [README]: https://pkg.go.dev/github.com/sst/opencode-sdk-go#readme-request-fields
+// [README]: https://pkg.go.dev/github.com/anomalyco/opencode-sdk-go#readme-request-fields
func F[T any](value T) param.Field[T] { return param.Field[T]{Value: value, Present: true} }
// Null is a param field helper which explicitly sends null to the API.
diff --git a/file.go b/file.go
index 34a9c57..7bd5716 100644
--- a/file.go
+++ b/file.go
@@ -8,11 +8,11 @@ import (
"net/url"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
// FileService contains methods and other services that help with interacting with
diff --git a/file_test.go b/file_test.go
index 2790fff..de76820 100644
--- a/file_test.go
+++ b/file_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestFileListWithOptionalParams(t *testing.T) {
diff --git a/find.go b/find.go
index 3833ec5..ffce0d2 100644
--- a/find.go
+++ b/find.go
@@ -8,11 +8,11 @@ import (
"net/url"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
// FindService contains methods and other services that help with interacting with
diff --git a/find_test.go b/find_test.go
index 901a895..9145da8 100644
--- a/find_test.go
+++ b/find_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestFindFilesWithOptionalParams(t *testing.T) {
diff --git a/go.mod b/go.mod
index 5b6eb40..1d9b471 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
-module github.com/sst/opencode-sdk-go
+module github.com/anomalyco/opencode-sdk-go
-go 1.22
+go 1.25
require (
github.com/tidwall/gjson v1.14.4
diff --git a/internal/apierror/apierror.go b/internal/apierror/apierror.go
index 24307fc..6a4e9ec 100644
--- a/internal/apierror/apierror.go
+++ b/internal/apierror/apierror.go
@@ -7,7 +7,7 @@ import (
"net/http"
"net/http/httputil"
- "github.com/sst/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
)
// Error represents an error that originates from the API, i.e. when a request is
diff --git a/internal/apiform/encoder.go b/internal/apiform/encoder.go
index 243a1a1..6392bd4 100644
--- a/internal/apiform/encoder.go
+++ b/internal/apiform/encoder.go
@@ -13,7 +13,7 @@ import (
"sync"
"time"
- "github.com/sst/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
)
var encoders sync.Map // map[encoderEntry]encoderFunc
diff --git a/internal/apijson/encoder.go b/internal/apijson/encoder.go
index 66b319b..76177f8 100644
--- a/internal/apijson/encoder.go
+++ b/internal/apijson/encoder.go
@@ -13,7 +13,7 @@ import (
"github.com/tidwall/sjson"
- "github.com/sst/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
)
var encoders sync.Map // map[encoderEntry]encoderFunc
diff --git a/internal/apijson/field_test.go b/internal/apijson/field_test.go
index 2e170c7..51835da 100644
--- a/internal/apijson/field_test.go
+++ b/internal/apijson/field_test.go
@@ -4,7 +4,7 @@ import (
"testing"
"time"
- "github.com/sst/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
)
type Struct struct {
diff --git a/internal/apiquery/encoder.go b/internal/apiquery/encoder.go
index 0922c23..cb0b2b1 100644
--- a/internal/apiquery/encoder.go
+++ b/internal/apiquery/encoder.go
@@ -9,7 +9,7 @@ import (
"sync"
"time"
- "github.com/sst/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
)
var encoders sync.Map // map[reflect.Type]encoderFunc
diff --git a/internal/requestconfig/requestconfig.go b/internal/requestconfig/requestconfig.go
index 95111f7..8377f10 100644
--- a/internal/requestconfig/requestconfig.go
+++ b/internal/requestconfig/requestconfig.go
@@ -18,11 +18,11 @@ import (
"strings"
"time"
- "github.com/sst/opencode-sdk-go/internal"
- "github.com/sst/opencode-sdk-go/internal/apierror"
- "github.com/sst/opencode-sdk-go/internal/apiform"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal"
+ "github.com/anomalyco/opencode-sdk-go/internal/apierror"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiform"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
)
func getDefaultHeaders() map[string]string {
diff --git a/option/requestoption.go b/option/requestoption.go
index 6847806..8f821b8 100644
--- a/option/requestoption.go
+++ b/option/requestoption.go
@@ -11,7 +11,7 @@ import (
"strings"
"time"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
"github.com/tidwall/sjson"
)
@@ -19,7 +19,7 @@ import (
// which can be supplied to clients, services, and methods. You can read more about this functional
// options pattern in our [README].
//
-// [README]: https://pkg.go.dev/github.com/sst/opencode-sdk-go#readme-requestoptions
+// [README]: https://pkg.go.dev/github.com/anomalyco/opencode-sdk-go#readme-requestoptions
type RequestOption = requestconfig.RequestOption
// WithBaseURL returns a RequestOption that sets the BaseURL for the client.
diff --git a/path.go b/path.go
index 6b64a43..8780b69 100644
--- a/path.go
+++ b/path.go
@@ -8,11 +8,11 @@ import (
"net/url"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
// PathService contains methods and other services that help with interacting with
diff --git a/path_test.go b/path_test.go
index 08273ce..0df75cd 100644
--- a/path_test.go
+++ b/path_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestPathGetWithOptionalParams(t *testing.T) {
diff --git a/project.go b/project.go
index 319cfe3..6338bc1 100644
--- a/project.go
+++ b/project.go
@@ -8,11 +8,11 @@ import (
"net/url"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
// ProjectService contains methods and other services that help with interacting
diff --git a/project_test.go b/project_test.go
index adf3dbf..a93d7e2 100644
--- a/project_test.go
+++ b/project_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestProjectListWithOptionalParams(t *testing.T) {
diff --git a/session.go b/session.go
index afd64cb..5ea9893 100644
--- a/session.go
+++ b/session.go
@@ -11,12 +11,12 @@ import (
"reflect"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
- "github.com/sst/opencode-sdk-go/shared"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/shared"
"github.com/tidwall/gjson"
)
diff --git a/session_test.go b/session_test.go
index 6f910ca..eb5b869 100644
--- a/session_test.go
+++ b/session_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestSessionNewWithOptionalParams(t *testing.T) {
diff --git a/sessionpermission.go b/sessionpermission.go
index 51d18e2..f2eea2f 100644
--- a/sessionpermission.go
+++ b/sessionpermission.go
@@ -11,12 +11,12 @@ import (
"reflect"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
- "github.com/sst/opencode-sdk-go/shared"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/shared"
"github.com/tidwall/gjson"
)
diff --git a/sessionpermission_test.go b/sessionpermission_test.go
index ed396b5..84d3d56 100644
--- a/sessionpermission_test.go
+++ b/sessionpermission_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestSessionPermissionRespondWithOptionalParams(t *testing.T) {
diff --git a/shared/shared.go b/shared/shared.go
index f2c6db0..8235a9c 100644
--- a/shared/shared.go
+++ b/shared/shared.go
@@ -3,7 +3,7 @@
package shared
import (
- "github.com/sst/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
)
type MessageAbortedError struct {
diff --git a/tui.go b/tui.go
index cd323c7..3905347 100644
--- a/tui.go
+++ b/tui.go
@@ -8,11 +8,11 @@ import (
"net/url"
"slices"
- "github.com/sst/opencode-sdk-go/internal/apijson"
- "github.com/sst/opencode-sdk-go/internal/apiquery"
- "github.com/sst/opencode-sdk-go/internal/param"
- "github.com/sst/opencode-sdk-go/internal/requestconfig"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go/internal/apijson"
+ "github.com/anomalyco/opencode-sdk-go/internal/apiquery"
+ "github.com/anomalyco/opencode-sdk-go/internal/param"
+ "github.com/anomalyco/opencode-sdk-go/internal/requestconfig"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
// TuiService contains methods and other services that help with interacting with
diff --git a/tui_test.go b/tui_test.go
index 635473b..b890f69 100644
--- a/tui_test.go
+++ b/tui_test.go
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestTuiAppendPromptWithOptionalParams(t *testing.T) {
diff --git a/usage_test.go b/usage_test.go
index bb2aa20..f82130c 100644
--- a/usage_test.go
+++ b/usage_test.go
@@ -7,9 +7,9 @@ import (
"os"
"testing"
- "github.com/sst/opencode-sdk-go"
- "github.com/sst/opencode-sdk-go/internal/testutil"
- "github.com/sst/opencode-sdk-go/option"
+ "github.com/anomalyco/opencode-sdk-go"
+ "github.com/anomalyco/opencode-sdk-go/internal/testutil"
+ "github.com/anomalyco/opencode-sdk-go/option"
)
func TestUsage(t *testing.T) {