CreateAgent inserts an agent with a domain FK. Does NOT check domain ownership — that's the API handler's responsibility (shared domain skips the check). webhookURL and agentMode are accepted for signature compatibility but are now IGNORED: the legacy per-agent webhook_url + agent_mode columns were
(ctx context.Context, agentEmail, domain, name, webhookURL, agentMode, userID string)
| 914 | // retained to avoid churning the ~80 call-sites that still pass them; the |
| 915 | // internal-signature cleanup is a separate follow-up. |
| 916 | func (s *Store) CreateAgent(ctx context.Context, agentEmail, domain, name, webhookURL, agentMode, userID string) (*AgentIdentity, error) { |
| 917 | return createAgent(ctx, s.pool, agentEmail, domain, name, userID) |
| 918 | } |
| 919 | |
| 920 | // CreateAgentTx inserts an agent inside a caller-owned transaction. |
| 921 | // Used by the OAuth consent flow so the slug auto-create row and the |