diff --git a/internal/bots/types.go b/internal/bots/types.go index ecac2fa1..443064e7 100644 --- a/internal/bots/types.go +++ b/internal/bots/types.go @@ -75,7 +75,6 @@ type RuntimeChecker interface { ListChecks(ctx context.Context, botID string) []BotCheck } - const ( BotStatusCreating = "creating" BotStatusReady = "ready" diff --git a/internal/channel/inbound/identity.go b/internal/channel/inbound/identity.go index ec3008b3..add03485 100644 --- a/internal/channel/inbound/identity.go +++ b/internal/channel/inbound/identity.go @@ -403,10 +403,6 @@ func extractThreadID(msg channel.InboundMessage) string { return "" } -func isGroupConversationType(conversationType string) bool { - return channel.NormalizeConversationType(conversationType) != channel.ConversationTypePrivate -} - func (r *IdentityResolver) tryLinkConfiglessChannelIdentityToUser(ctx context.Context, msg channel.InboundMessage, channelIdentityID string) string { if r.registry == nil || !r.registry.IsConfigless(msg.Channel) { return "" diff --git a/internal/conversation/service_integration_test.go b/internal/conversation/service_integration_test.go index eff8caf4..92d9e2a0 100644 --- a/internal/conversation/service_integration_test.go +++ b/internal/conversation/service_integration_test.go @@ -80,7 +80,6 @@ func createBotForChatPresence(ctx context.Context, queries *sqlc.Queries, ownerU } row, err := queries.CreateBot(ctx, sqlc.CreateBotParams{ OwnerUserID: pgOwnerID, - Type: "personal", DisplayName: pgtype.Text{String: "presence-test-bot", Valid: true}, IsActive: true, Metadata: meta, diff --git a/internal/schedule/service_integration_test.go b/internal/schedule/service_integration_test.go index c54efe69..037b130e 100644 --- a/internal/schedule/service_integration_test.go +++ b/internal/schedule/service_integration_test.go @@ -78,7 +78,6 @@ func createUserBotAndSchedule(ctx context.Context, t *testing.T, queries *sqlc.Q meta, _ := json.Marshal(map[string]any{"source": "schedule-integration-test"}) botRow, err := queries.CreateBot(ctx, sqlc.CreateBotParams{ OwnerUserID: pgOwnerID, - Type: "personal", DisplayName: pgtype.Text{String: "schedule-test-bot", Valid: true}, AvatarUrl: pgtype.Text{}, IsActive: true, diff --git a/internal/settings/service.go b/internal/settings/service.go index ea843b65..ccda8a16 100644 --- a/internal/settings/service.go +++ b/internal/settings/service.go @@ -25,7 +25,7 @@ type Service struct { var ( ErrModelIDAmbiguous = errors.New("model_id is ambiguous across providers") - ErrInvalidModelRef = errors.New("invalid model reference") + ErrInvalidModelRef = errors.New("invalid model reference") ) func NewService(log *slog.Logger, queries *sqlc.Queries, aclService *acl.Service) *Service {