Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch types from otto to obot #1137

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
**/node_modules/
otto8-tools/
.local/
obot-tools/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ or by downloading the binary for your platform from our [latest release](https:/

### Next Steps

For more information checkout our [Docs](https://docs.otto8.ai/).
For more information checkout our [Docs](https://docs.obot.ai/).
4 changes: 2 additions & 2 deletions apiclient/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ func (c *Client) Invoke(ctx context.Context, agentID string, input string, opts
close(events)
return &types.InvokeResponse{
Events: events,
ThreadID: resp.Header.Get("X-Otto-Thread-Id"),
ThreadID: resp.Header.Get("X-Obot-Thread-Id"),
Copy link
Member

@njhale njhale Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Might make migration easier if we fall back to the old header if the new one isn't set.

}, nil
}

return &types.InvokeResponse{
Events: toStream[types.Progress](resp),
ThreadID: resp.Header.Get("X-Otto-Thread-Id"),
ThreadID: resp.Header.Get("X-Obot-Thread-Id"),
}, nil
}
2 changes: 1 addition & 1 deletion apiclient/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ func (c *Client) AuthenticateWorkflow(ctx context.Context, wfID string) (*types.

return &types.InvokeResponse{
Events: toStream[types.Progress](resp),
ThreadID: resp.Header.Get("X-Otto-Thread-Id"),
ThreadID: resp.Header.Get("X-Obot-Thread-Id"),
}, nil
}
4 changes: 2 additions & 2 deletions docs/docs/05-configuration/02-model-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@ To set up and run an instance of Ollama, refer to the [Ollama GitHub readme](htt

The vLLM model provider requires the following configuration parameters:

- `OTTO8_VLLM_MODEL_PROVIDER_ENDPOINT`: The endpoint to use for your vLLM server (e.g., `your-vllm-server.com` or `https://your-vllm-server.com`)
- `OTTO8_VLLM_MODEL_PROVIDER_API_KEY`: The API key for authentication with your vLLM server
- `OBOT_VLLM_MODEL_PROVIDER_ENDPOINT`: The endpoint to use for your vLLM server (e.g., `your-vllm-server.com` or `https://your-vllm-server.com`)
- `OBOT_VLLM_MODEL_PROVIDER_API_KEY`: The API key for authentication with your vLLM server
6 changes: 3 additions & 3 deletions docs/src/plugins/fetch-snippets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import crypto from 'crypto';
import { LoadContext, Plugin } from '@docusaurus/types';

const FILE_URLS = [
'https://raw.githubusercontent.com/otto8-ai/python-hash-tool/main/README.md',
'https://raw.githubusercontent.com/otto8-ai/go-hash-tool/main/README.md',
'https://raw.githubusercontent.com/otto8-ai/node-hash-tool/main/README.md',
'https://raw.githubusercontent.com/obot-platform/python-hash-tool/main/README.md',
'https://raw.githubusercontent.com/obot-platform/go-hash-tool/main/README.md',
'https://raw.githubusercontent.com/obot-platform/node-hash-tool/main/README.md',
];

const EXTENSION_LANGUAGE_MAP: Record<string, string> = {
Expand Down
4 changes: 2 additions & 2 deletions generate.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:generate go run github.com/obot-platform/nah/cmd/deepcopy ./pkg/storage/apis/otto.otto8.ai/v1/
//go:generate go run github.com/obot-platform/nah/cmd/deepcopy ./pkg/storage/apis/obot.obot.ai/v1/
//go:generate go run github.com/obot-platform/nah/cmd/deepcopy ./apiclient/types/
//go:generate go run k8s.io/kube-openapi/cmd/openapi-gen --go-header-file tools/header.txt --output-file openapi_generated.go --output-dir ./pkg/storage/openapi/generated/ --output-pkg github.com/obot-platform/obot/pkg/storage/openapi/generated github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1 k8s.io/apimachinery/pkg/apis/meta/v1 k8s.io/apimachinery/pkg/runtime k8s.io/apimachinery/pkg/version k8s.io/apimachinery/pkg/api/resource k8s.io/apimachinery/pkg/util/intstr k8s.io/api/coordination/v1 github.com/obot-platform/obot/apiclient/types
//go:generate go run k8s.io/kube-openapi/cmd/openapi-gen --go-header-file tools/header.txt --output-file openapi_generated.go --output-dir ./pkg/storage/openapi/generated/ --output-pkg github.com/obot-platform/obot/pkg/storage/openapi/generated github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1 k8s.io/apimachinery/pkg/apis/meta/v1 k8s.io/apimachinery/pkg/runtime k8s.io/apimachinery/pkg/version k8s.io/apimachinery/pkg/api/resource k8s.io/apimachinery/pkg/util/intstr k8s.io/api/coordination/v1 github.com/obot-platform/obot/apiclient/types

package main
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/obot-platform/obot

go 1.23.2
go 1.23.4

replace (
github.com/oauth2-proxy/oauth2-proxy/v7 => github.com/obot-platform/oauth2-proxy/v7 v7.0.0-20241008204315-265dabe17f43
Expand Down
2 changes: 1 addition & 1 deletion logger/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func SetError() {

func Package() Logger {
_, p, _, _ := runtime.Caller(1)
_, suffix, _ := strings.Cut(p, "otto")
_, suffix, _ := strings.Cut(p, "obot")
i := strings.LastIndex(suffix, "/")
if i > 0 {
return New(suffix[:i])
Expand Down
2 changes: 1 addition & 1 deletion pkg/alias/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/obot-platform/nah/pkg/name"
"github.com/obot-platform/nah/pkg/router"
"github.com/obot-platform/obot/pkg/hash"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/authz/thread.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/gptscript-ai/gptscript/pkg/types"
"github.com/obot-platform/nah/pkg/router"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
"k8s.io/apiserver/pkg/authentication/user"
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/api/handlers/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/invoke"
"github.com/obot-platform/obot/pkg/render"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/storage/selectors"
"github.com/obot-platform/obot/pkg/system"
"github.com/obot-platform/obot/pkg/wait"
Expand Down Expand Up @@ -71,7 +71,7 @@ func (a *AgentHandler) Authenticate(req api.Context) (err error) {
}
}()

req.ResponseWriter.Header().Set("X-Otto-Thread-Id", resp.Thread.Name)
req.ResponseWriter.Header().Set("X-Obot-Thread-Id", resp.Thread.Name)
return req.WriteEvents(resp.Events)
}

Expand Down Expand Up @@ -835,7 +835,7 @@ func (a *AgentHandler) Script(req api.Context) error {
nodes := gptscript.ToolDefsToNodes(tools)
nodes = append(nodes, gptscript.Node{
TextNode: &gptscript.TextNode{
Text: "!otto-extra-env\n" + strings.Join(extraEnv, "\n"),
Text: "!obot-extra-env\n" + strings.Join(extraEnv, "\n"),
},
})

Expand Down
4 changes: 2 additions & 2 deletions pkg/api/handlers/assistants.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/events"
"github.com/obot-platform/obot/pkg/invoke"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
apierrors "k8s.io/apimachinery/pkg/api/errors"
kclient "sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -99,7 +99,7 @@ func (a *AssistantHandler) Invoke(req api.Context) error {
}
defer resp.Close()

req.ResponseWriter.Header().Set("X-Otto-Thread-Id", resp.Thread.Name)
req.ResponseWriter.Header().Set("X-Obot-Thread-Id", resp.Thread.Name)

return req.WriteCreated(map[string]string{
"threadID": resp.Thread.Name,
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/availablemodels.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/availablemodels"
"github.com/obot-platform/obot/pkg/gateway/server/dispatcher"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
"k8s.io/apimachinery/pkg/fields"
kclient "sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/cronjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/obot-platform/obot/pkg/alias"
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/controller/handlers/cronjob"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
"github.com/robfig/cron/v3"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/defaultmodelalias.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package handlers
import (
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/emailreceiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/alias"
"github.com/obot-platform/obot/pkg/api"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/gptscript-ai/go-gptscript"
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
kclient "sigs.k8s.io/controller-runtime/pkg/client"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/gptscript-ai/go-gptscript"
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/storage/selectors"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
6 changes: 3 additions & 3 deletions pkg/api/handlers/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/obot-platform/obot/pkg/alias"
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/invoke"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
apierrors "k8s.io/apimachinery/pkg/api/errors"
)
Expand All @@ -30,7 +30,7 @@ func (i *InvokeHandler) Invoke(req api.Context) error {
)

if threadID == "" {
threadID = req.Request.Header.Get("X-Otto-Thread-Id")
threadID = req.Request.Header.Get("X-Obot-Thread-Id")
}

if system.IsThreadID(id) {
Expand Down Expand Up @@ -105,7 +105,7 @@ func (i *InvokeHandler) Invoke(req api.Context) error {
}
defer resp.Close()

req.ResponseWriter.Header().Set("X-Otto-Thread-Id", resp.Thread.Name)
req.ResponseWriter.Header().Set("X-Obot-Thread-Id", resp.Thread.Name)

if synchronous {
return req.WriteEvents(resp.Events)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/knowledgesource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/gz"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
)

func convertKnowledgeSource(agentName string, knowledgeSource v1.KnowledgeSource) types.KnowledgeSource {
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/storage/selectors"
"github.com/obot-platform/obot/pkg/system"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/modelprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/gateway/server/dispatcher"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"k8s.io/apimachinery/pkg/fields"
kclient "sigs.k8s.io/controller-runtime/pkg/client"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/runs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/events"
"github.com/obot-platform/obot/pkg/gz"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/gptscript-ai/go-gptscript"
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
)

type TableHandler struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/events"
"github.com/obot-platform/obot/pkg/invoke"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
"github.com/obot-platform/obot/pkg/wait"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/threads.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/events"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kclient "sigs.k8s.io/controller-runtime/pkg/client"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/toolreferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/obot-platform/nah/pkg/name"
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/obot-platform/obot/pkg/api"
"github.com/obot-platform/obot/pkg/invoke"
"github.com/obot-platform/obot/pkg/render"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/handlers/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import (
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/alias"
"github.com/obot-platform/obot/pkg/api"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
"golang.org/x/crypto/bcrypt"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const (
WebhookTokenHTTPHeader = "X-Otto8-Webhook-Token"
WebhookTokenHTTPHeader = "X-Obot-Webhook-Token"
WebhookTokenQueryParam = "token"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/api/handlers/workflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/obot-platform/obot/pkg/controller/handlers/workflow"
"github.com/obot-platform/obot/pkg/invoke"
"github.com/obot-platform/obot/pkg/render"
v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
"github.com/obot-platform/obot/pkg/system"
"github.com/obot-platform/obot/pkg/wait"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -69,7 +69,7 @@ func (a *WorkflowHandler) Authenticate(req api.Context) error {
}
}()

req.ResponseWriter.Header().Set("X-Otto-Thread-Id", resp.Thread.Name)
req.ResponseWriter.Header().Set("X-Obot-Thread-Id", resp.Thread.Name)
return req.WriteEvents(resp.Events)
}

Expand Down Expand Up @@ -447,7 +447,7 @@ func (a *WorkflowHandler) Script(req api.Context) error {
nodes := gptscript.ToolDefsToNodes(tools)
nodes = append(nodes, gptscript.Node{
TextNode: &gptscript.TextNode{
Text: "!otto-extra-env\n" + strings.Join(extraEnv, "\n"),
Text: "!obot-extra-env\n" + strings.Join(extraEnv, "\n"),
},
})

Expand Down
4 changes: 2 additions & 2 deletions pkg/api/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (s *Server) wrap(f api.HandlerFunc) http.HandlerFunc {
// If this header is set, then the session was deemed to be invalid and the request has come back around through the proxy.
// The cookie on the request is still invalid because the new one has not been sent back to the browser.
// Therefore, respond with a redirect so that the browser will redirect back to the original request with the new cookie.
if req.Header.Get("X-Otto-Auth-Required") == "true" {
if req.Header.Get("X-Obot-Auth-Required") == "true" {
http.Redirect(rw, req, req.RequestURI, http.StatusFound)
return
}
Expand All @@ -83,7 +83,7 @@ func (s *Server) wrap(f api.HandlerFunc) http.HandlerFunc {
return
}

req.Header.Set("X-Otto-Auth-Required", "true")
req.Header.Set("X-Obot-Auth-Required", "true")
s.proxyServer.ServeHTTP(rw, req)
return
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/edit/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var ErrEditAborted = errors.New("edit aborted")
func Edit(content []byte, suffix string, save func([]byte) error) error {
editor := editor.NewDefaultEditor(envs)
for {
buf, file, err := editor.LaunchTempFile("otto", suffix, bytes.NewReader(content))
buf, file, err := editor.LaunchTempFile("obot", suffix, bytes.NewReader(content))
if file != "" {
_ = os.Remove(file)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/data/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
_ "embed"
"slices"

v1 "github.com/obot-platform/obot/pkg/storage/apis/otto.otto8.ai/v1"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
kclient "sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/yaml"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/data/agent.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: otto.otto8.ai/v1
apiVersion: obot.obot.ai/v1
kind: Agent
metadata:
name: a1-obot
Expand Down
Loading
Loading