Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.
TypeScript aeoai-agentai-searchanswer-engine-optimizationbrand-monitoringchatgptclaudecopilotdockergeminigeogoogle-ai-overviewsgrokmcpnextjsopen-sourceperplexityseosupabasetypescript
chore(action-center): close the task vocabulary transition window (#842)
Gökhan Geyik7b5d7f6e3ff7
diff --git a/server/src/lib/action-center/execution/run.test.js b/server/src/lib/action-center/execution/run.test.jsindex 8ee563deb..f96e7466d 100644--- a/server/src/lib/action-center/execution/run.test.js+++ b/server/src/lib/action-center/execution/run.test.js@@ -264,7 +264,7 @@ describe('blockedReason', () => {expect(blockedReason({task: task(),- primitive: { mode: 'manual', tool: null },+ primitive: { mode: 'human', tool: null },tool: null,sources: ALL,siblings: [],diff --git a/supabase/migrations/00096_task_modes_drop_transition_vocabulary.sql b/supabase/migrations/00096_task_modes_drop_transition_vocabulary.sqlnew file mode 100644index 000000000..855749448--- /dev/null+++ b/supabase/migrations/00096_task_modes_drop_transition_vocabulary.sql@@ -0,0 +1,17 @@+-- Closes the transition window 00094 opened.+--+-- 00094 kept `manual` / `none` / `approval` valid while the server that+-- still wrote them was live. The deploy that writes only the specification's+-- vocabulary has run a full night and every row in action_tasks uses it, so+-- the constraints go back to the new values alone.++alter table public.action_tasks drop constraint if exists action_tasks_mode_check;+alter table public.action_tasks drop constraint if exists action_tasks_permission_check;++alter table public.action_tasks+ add constraint action_tasks_mode_check+ check (mode in ('system', 'agent', 'human', 'human_or_agent'));++alter table public.action_tasks+ add constraint action_tasks_permission_check+ check (permission in ('read', 'write', 'execute'));diff --git a/supabase/schema.sql b/supabase/schema.sqlindex db7063148..4a16e346c 100644--- a/supabase/schema.sql+++ b/supabase/schema.sql@@ -11197,3 +11197,24 @@ $$;revoke all on function public.ae_citation_sources(uuid, timestamptz) from public, anon, authenticated;grant execute on function public.ae_citation_sources(uuid, timestamptz) to service_role;+-- ─────────────────────────────────────────────────────────────────────────+-- migrations/00096_task_modes_drop_transition_vocabulary.sql+-- ─────────────────────────────────────────────────────────────────────────+-- Closes the transition window 00094 opened.+--+-- 00094 kept `manual` / `none` / `approval` valid while the server that+-- still wrote them was live. The deploy that writes only the specification's+-- vocabulary has run a full night and every row in action_tasks uses it, so+-- the constraints go back to the new values alone.++alter table public.action_tasks drop constraint if exists action_tasks_mode_check;+alter table public.action_tasks drop constraint if exists action_tasks_permission_check;++alter table public.action_tasks+ add constraint action_tasks_mode_check+ check (mode in ('system', 'agent', 'human', 'human_or_agent'));++alter table public.action_tasks+ add constraint action_tasks_permission_check+ check (permission in ('read', 'write', 'execute'));+