Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

move Creative Director out of Media Gen tabs into its own Create page

[._.]/ Adam Eivya44a35c8d75b
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index d9d9e8cbfe..f75a5ec422 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -14,6 +14,10 @@
- The standalone `/layered-intelligence` page has been removed — with the loop now a per-app scheduled task, its status is seen and managed in CoS → Schedule like every other task, and per-app behavior stays on Edit App → Intelligence. (The dedicated cross-app overview/proposals page and its endpoints are gone; nothing else surfaced there.)
- **[issue-2326] The app Automation page now edits per-task provider/model overrides inline.** Each task row on Edit App → Automation gained a "⚙ Configure" disclosure that expands a per-app provider + model override (with "Use default provider" to inherit the global/task default) — previously reachable only from CoS → Schedule → Configure. The `layered-intelligence` row additionally links straight to its behavior config (telemetry sources, allowed scopes, guidance rules) on the Edit App → Intelligence tab, so an app's full self-improvement setup is configurable without leaving the app.
+## Changed
+
+- **Creative Director is now a top-level page under Create, not a Media Gen tab.** It moved out of the Media Gen tab strip to its own `/creative-director` route with a Create sidebar link, so it's reachable directly (⌘K, voice nav, and the sidebar) without first opening Media Gen. Legacy `/media/creative-director` links and deep-links (including `:id/:tab`) redirect to the new route, preserving query string and hash.
+
## Added
- **CoS → Timeline: the Workflow tab is now a schedule timeline — see when every active task will run, and fix collisions in place.** The conceptual stage-pipeline visualization at `/cos/workflow` has been replaced with a real execution timeline over a 24-hour or 7-day window: cron launches at their exact slots, interval tasks/jobs at their learning-adjusted next runs and repeats, perpetual tasks as an open-ended draining band with reset/recheck markers, and a "Scheduled order" strip showing the next launches in sequence. Launches from different tasks within 15 minutes of each other get a collision ring plus a "tight handoffs" counter, so schedules can be staggered before they pile onto the concurrent-agent slots. Selecting any track (or an unpinned rotation/on-demand task) opens an inline editor to change its timing mode, frequency, enabled state, weekday-only flag, and hard `runAfter` dependencies without leaving the page — with the zoom window and open track deep-linked via URL params. Projections respect parked app-scoped perpetual tasks and weekday-only schedules (weekend slots that the scheduler would refuse are never drawn), and switching a system job between pinned-cron and interval modes now explicitly clears the inactive mode's fields.
diff --git a/client/src/App.jsx b/client/src/App.jsx
index 64d5e9a35b..2c801d0441 100644
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -158,6 +158,16 @@ function UniverseRouteRedirect({ fromPrefix, canon = false }) {
return <Navigate to={target} replace />;
}
+// Redirect legacy /media/creative-director/* deep-links to the top-level
+// /creative-director/* route (Creative Director moved out of the Media Gen
+// tabs into its own Create page). Preserves the trailing path (id + tab),
+// query string, and hash.
+function CreativeDirectorLegacyRedirect() {
+ const { pathname, search, hash } = useLocation();
+ const rest = pathname.replace(/^\/media\/creative-director/, '');
+ return <Navigate to={`/creative-director${rest}${search}${hash}`} replace />;
+}
+
// Force full reload on HMR — partial hot-replacement of the route tree
// causes stale lazy imports and React Router errors on nested paths
if (import.meta.hot) {
@@ -287,9 +297,12 @@ export default function App() {
<Route path="collections" element={<MediaCollections />} />
<Route path="collections/:id" element={<MediaCollectionDetail />} />
<Route path="collections/:id/sync" element={<MediaCollectionSyncView />} />
- <Route path="creative-director" element={<CreativeDirector />} />
- <Route path="creative-director/:id" element={<Navigate to="overview" replace />} />
- <Route path="creative-director/:id/:tab" element={<CreativeDirectorDetail />} />
+ {/* Creative Director moved to the top-level /creative-director route
+ (Create sidebar link). These redirects keep legacy
+ /media/creative-director bookmarks + in-app deep-links working. */}
+ <Route path="creative-director" element={<RedirectWithSearch to="/creative-director" />} />
+ <Route path="creative-director/:id" element={<CreativeDirectorLegacyRedirect />} />
+ <Route path="creative-director/:id/:tab" element={<CreativeDirectorLegacyRedirect />} />
<Route path="music-video" element={<MusicVideo />} />
<Route path="music-video/:projectId" element={<MusicVideo />} />
<Route path="timeline" element={<VideoTimeline />} />
@@ -305,6 +318,11 @@ export default function App() {
<Route path="universe-builder/:universeId" element={<UniverseRouteRedirect fromPrefix={/^\/media\/universe-builder/} />} />
<Route path="universe-builder/:universeId/canon" element={<UniverseRouteRedirect fromPrefix={/^\/media\/universe-builder/} canon />} />
</Route>
+ {/* Creative Director — a top-level Create page (moved out of the
+ Media Gen tabs). :id with no tab redirects to the overview tab. */}
+ <Route path="creative-director" element={<CreativeDirector />} />
+ <Route path="creative-director/:id" element={<Navigate to="overview" replace />} />
+ <Route path="creative-director/:id/:tab" element={<CreativeDirectorDetail />} />
<Route path="image-gen" element={<RedirectWithSearch to="/media/image" />} />
<Route path="video-gen" element={<RedirectWithSearch to="/media/video" />} />
<Route path="media-history" element={<RedirectWithSearch to="/media/history" />} />
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 448866cd46..58bbbb674e 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -90,7 +90,8 @@ import {
Navigation,
Music,
Workflow as WorkflowIcon,
- ChartGantt
+ ChartGantt,
+ Clapperboard
} from 'lucide-react';
/* global __APP_VERSION__ */
import Logo from './Logo';
@@ -216,6 +217,7 @@ const navItems = [
children: [
{ to: '/authors', label: 'Authors', icon: FilePen },
{ to: '/catalog', label: 'Catalog', icon: Sparkles },
+ { to: '/creative-director', label: 'Creative Director', icon: Clapperboard },
{ to: '/pipeline/editorial-checks', label: 'Editorial Checks', icon: ListChecks },
{ to: '/importer', label: 'Importer', icon: FileInput },
{ to: '/media', label: 'Media Gen', icon: Layers },
@@ -1152,6 +1154,11 @@ export default function Layout() {
// own scroll. The /catalog list/index page stays scrolling-default.
location.pathname.startsWith('/catalog/') ||
location.pathname.startsWith('/cos') ||
+ // Both the Creative Director index and its detail editor manage
+ // their own internal scroll (flex-col h-full + overflow-auto body),
+ // so they need the bare full-width main — same as when they lived
+ // under the /media tabs.
+ location.pathname.startsWith('/creative-director') ||
location.pathname.startsWith('/brain') ||
location.pathname.startsWith('/digital-twin') ||
location.pathname.startsWith('/feature-agents') ||
diff --git a/client/src/components/pipeline/stages/EpisodeVideoStage.jsx b/client/src/components/pipeline/stages/EpisodeVideoStage.jsx
index c005b82b26..9e3ddda4fa 100644
--- a/client/src/components/pipeline/stages/EpisodeVideoStage.jsx
+++ b/client/src/components/pipeline/stages/EpisodeVideoStage.jsx
@@ -338,7 +338,7 @@ export default function EpisodeVideoStage({ issue, onStageUpdate }) {
)}
</div>
<Link
- to={`/media/creative-director/${cdProjectId}`}
+ to={`/creative-director/${cdProjectId}`}
className="inline-flex items-center gap-1 text-xs text-port-accent hover:underline"
>
Open in Creative Director <ExternalLink size={11} />
diff --git a/client/src/components/writers-room/CdBridgePanel.jsx b/client/src/components/writers-room/CdBridgePanel.jsx
index b8fea24d4c..e35a4fda33 100644
--- a/client/src/components/writers-room/CdBridgePanel.jsx
+++ b/client/src/components/writers-room/CdBridgePanel.jsx
@@ -80,7 +80,7 @@ export default function CdBridgePanel({ workId, liveMode, usage, onUsageChange,
if (!res?.project) return;
onLinked?.(res.project.id);
toast.success('Sent to Creative Director');
- navigate(`/media/creative-director/${encodeURIComponent(res.project.id)}/overview`);
+ navigate(`/creative-director/${encodeURIComponent(res.project.id)}/overview`);
}, [proposal, sending, onLinked, navigate, mountedRef]);
// When live mode flips off, clear any stale proposal so the panel doesn't
diff --git a/client/src/components/writers-room/WorkEditor.jsx b/client/src/components/writers-room/WorkEditor.jsx
index 51548fd638..9773258c56 100644
--- a/client/src/components/writers-room/WorkEditor.jsx
+++ b/client/src/components/writers-room/WorkEditor.jsx
@@ -466,7 +466,7 @@ export default function WorkEditor({ work, onChange, onToggleExercise, exerciseO
const handleOpenInCreativeDirector = () => {
if (!work.cdProjectId) return;
- navigate(`/media/creative-director/${encodeURIComponent(work.cdProjectId)}/overview`);
+ navigate(`/creative-director/${encodeURIComponent(work.cdProjectId)}/overview`);
};
const commitTitle = async () => {
diff --git a/client/src/lib/creativeDirectorPlan.js b/client/src/lib/creativeDirectorPlan.js
index d4d15ab728..50af124756 100644
--- a/client/src/lib/creativeDirectorPlan.js
+++ b/client/src/lib/creativeDirectorPlan.js
@@ -144,7 +144,7 @@ export function stepResultLink(step) {
if (r.workId) return { to: `/writers-room/works/${r.workId}`, label: 'Open work' };
// A minted CD sub-project (cd.* tools return an `id`).
if (r.id && typeof step.toolName === 'string' && step.toolName.startsWith('cd')) {
- return { to: `/media/creative-director/${r.id}/overview`, label: 'Open project' };
+ return { to: `/creative-director/${r.id}/overview`, label: 'Open project' };
}
return null;
}
diff --git a/client/src/lib/creativeDirectorPlan.test.js b/client/src/lib/creativeDirectorPlan.test.js
index a8848ece2d..7b2594dca6 100644
--- a/client/src/lib/creativeDirectorPlan.test.js
+++ b/client/src/lib/creativeDirectorPlan.test.js
@@ -116,7 +116,7 @@ describe('stepResultLink', () => {
});
it('links a minted cd sub-project by id', () => {
expect(stepResultLink({ toolName: 'cd_produceVideoFromIssue', result: { id: 'cd-9' } }))
- .toEqual({ to: '/media/creative-director/cd-9/overview', label: 'Open project' });
+ .toEqual({ to: '/creative-director/cd-9/overview', label: 'Open project' });
});
it('returns null with no linkable result', () => {
expect(stepResultLink({ result: null })).toBeNull();
diff --git a/client/src/pages/Catalog.jsx b/client/src/pages/Catalog.jsx
index 2e24e2f73d..de16e55620 100644
--- a/client/src/pages/Catalog.jsx
+++ b/client/src/pages/Catalog.jsx
@@ -51,7 +51,7 @@ const PAGE_SIZE = 60;
// reads the same key. Each target's `to` is the route to navigate to.
const REMIX_TARGETS = [
{ id: 'story-builder', label: 'Story Builder', to: '/story-builder' },
- { id: 'creative-director', label: 'Creative Director', to: '/media/creative-director' },
+ { id: 'creative-director', label: 'Creative Director', to: '/creative-director' },
];
export default function Catalog() {
diff --git a/client/src/pages/CatalogIngredient.jsx b/client/src/pages/CatalogIngredient.jsx
index 82bc937e28..8f985dac95 100644
--- a/client/src/pages/CatalogIngredient.jsx
+++ b/client/src/pages/CatalogIngredient.jsx
@@ -53,7 +53,7 @@ function refPath(refKind, refId) {
case 'universe': return `/universes/${encodeURIComponent(refId)}`;
case 'series': return `/pipeline/series/${encodeURIComponent(refId)}`;
case 'issue': return `/pipeline/issues/${encodeURIComponent(refId)}/concept`;
- case 'creative-director': return `/media/creative-director/${encodeURIComponent(refId)}/overview`;
+ case 'creative-director': return `/creative-director/${encodeURIComponent(refId)}/overview`;
case 'writers-room':
case 'writersRoom': return '/writers-room';
default: return null;
diff --git a/client/src/pages/CreativeDirector.jsx b/client/src/pages/CreativeDirector.jsx
index 9e89f3b24e..c17ec0104a 100644
--- a/client/src/pages/CreativeDirector.jsx
+++ b/client/src/pages/CreativeDirector.jsx
@@ -140,7 +140,7 @@ export default function CreativeDirector() {
// so the user sees the cast immediately; otherwise stay on the list.
if (remixIds.length) {
clearRemix();
- navigate(`/media/creative-director/${created.id}/overview`);
+ navigate(`/creative-director/${created.id}/overview`);
}
} catch (err) {
toast.error(err.message || 'Failed to create project');
@@ -183,7 +183,7 @@ export default function CreativeDirector() {
setProjects((prev) => [created, ...prev]);
toast.success(`Created directive "${created.name}"`);
closeDirective();
- navigate(`/media/creative-director/${created.id}/plan`);
+ navigate(`/creative-director/${created.id}/plan`);
};
// Optimistic-update the row in place rather than refetching the whole list
@@ -404,7 +404,7 @@ export default function CreativeDirector() {
{projects.map((p) => (
<div key={p.id} className="bg-port-card border border-port-border rounded p-3 flex flex-col gap-2">
<div className="flex items-start justify-between gap-2">
- <Link to={`/media/creative-director/${p.id}/overview`} className="flex-1 min-w-0">
+ <Link to={`/creative-director/${p.id}/overview`} className="flex-1 min-w-0">
<div className="font-medium truncate">{p.name}</div>
<div className="text-xs text-port-text-muted truncate">{p.id}</div>
</Link>
diff --git a/client/src/pages/CreativeDirectorDetail.jsx b/client/src/pages/CreativeDirectorDetail.jsx
index cb6fa7b718..8a2ee0c0a7 100644
--- a/client/src/pages/CreativeDirectorDetail.jsx
+++ b/client/src/pages/CreativeDirectorDetail.jsx
@@ -162,14 +162,14 @@ export default function CreativeDirectorDetail() {
if (loading) return <div className="p-6 text-port-text-muted">Loading…</div>;
if (!project) return <div className="p-6 text-port-error">Project not found.</div>;
- const goTo = (tabId) => navigate(`/media/creative-director/${id}/${tabId}`);
+ const goTo = (tabId) => navigate(`/creative-director/${id}/${tabId}`);
return (
<div className="flex flex-col h-full">
<div className="shrink-0 px-6 pt-6 pb-3 border-b border-port-border">
<div className="flex items-center justify-between gap-3">
<div className="flex items-center gap-3 min-w-0">
- <Link to="/media/creative-director" className="text-port-text-muted hover:text-port-text"><ArrowLeft className="w-4 h-4" /></Link>
+ <Link to="/creative-director" className="text-port-text-muted hover:text-port-text"><ArrowLeft className="w-4 h-4" /></Link>
<div className="min-w-0">
<h1 className="text-xl font-semibold truncate">{project.name}</h1>
<div className="text-xs text-port-text-muted truncate">
diff --git a/client/src/pages/MediaGen.jsx b/client/src/pages/MediaGen.jsx
index fcf7f540d8..9b874c202a 100644
--- a/client/src/pages/MediaGen.jsx
+++ b/client/src/pages/MediaGen.jsx
@@ -1,12 +1,11 @@
import { useNavigate, useLocation, Outlet } from 'react-router-dom';
-import { Layers, Image as ImageIcon, Film, History, HardDrive, Scissors, FolderOpen, Clapperboard, Sparkles, GraduationCap, Music } from 'lucide-react';
+import { Layers, Image as ImageIcon, Film, History, HardDrive, Scissors, FolderOpen, Sparkles, GraduationCap, Music } from 'lucide-react';
import TabPills from '../components/ui/TabPills';
const TABS = [
{ id: 'image', label: 'Image', icon: ImageIcon },
{ id: 'video', label: 'Video', icon: Film },
{ id: 'timeline', label: 'Timeline', icon: Scissors },
- { id: 'creative-director', label: 'Creative Director', icon: Clapperboard },
{ id: 'music-video', label: 'Music Video', icon: Music },
{ id: 'history', label: 'History', icon: History },
{ id: 'collections', label: 'Collections', icon: FolderOpen },
diff --git a/docs/features/writers-room.md b/docs/features/writers-room.md
index d9ef2a0d3b..6763171d95 100644
--- a/docs/features/writers-room.md
+++ b/docs/features/writers-room.md
@@ -113,6 +113,6 @@ Most services carry sibling `.test.js` suites (storage CRUD, draft save/version/
## Related Features
-- Creative Director (`server/services/creativeDirector/`, `/media/creative-director`) — treatment/scene/run orchestration the CD bridge feeds into
+- Creative Director (`server/services/creativeDirector/`, `/creative-director`) — treatment/scene/run orchestration the CD bridge feeds into
- Comic pipeline — the promote-to-pipeline target
- Media collections, image-gen, and the media job queue — shared render infrastructure
diff --git a/server/lib/navManifest.js b/server/lib/navManifest.js
index 572c206c31..dd0678f4c8 100644
--- a/server/lib/navManifest.js
+++ b/server/lib/navManifest.js
@@ -19,7 +19,7 @@ export const NAV_COMMANDS = [
{ id: 'nav.media.history', path: '/media/history', label: 'Media History', section: 'Create', aliases: ['media-history', 'video-history'], keywords: ['videos', 'gallery', 'stitch'] },
{ id: 'nav.media.annotate', path: '/media/annotate', label: 'Annotate', section: 'Create', aliases: ['annotate', 'media-annotate', 'sketch', 'draw-over', 'markup'], keywords: ['annotation', 'sketch', 'draw', 'markup', 'scribble', 'label', 'canvas', 'overlay', 'stroke'] },
{ id: 'nav.media.collections', path: '/media/collections', label: 'Collections', section: 'Create', aliases: ['collections', 'media-collections', 'stacks', 'projects'], keywords: ['bucket', 'group', 'project', 'album', 'organize'] },
- { id: 'nav.media.creative-director', path: '/media/creative-director', label: 'Creative Director', section: 'Create', aliases: ['creative-director', 'creative', 'director', 'producer', 'orchestrator', 'long-form', 'episode'], keywords: ['story', 'episode', 'narrative', 'agent', 'auto-video', 'long-form', 'directive', 'production plan', 'plan board', 'orchestrator', 'studio', 'producer'] },
+ { id: 'nav.create.creative-director', path: '/creative-director', label: 'Creative Director', section: 'Create', aliases: ['creative-director', 'creative', 'director', 'producer', 'orchestrator', 'long-form', 'episode'], keywords: ['story', 'episode', 'narrative', 'agent', 'auto-video', 'long-form', 'directive', 'production plan', 'plan board', 'orchestrator', 'studio', 'producer'] },
{ id: 'nav.media.music-video', path: '/media/music-video', label: 'Music Video', section: 'Create', aliases: ['music-video', 'musicvideo', 'music video', 'mv', 'sync-to-beat'], keywords: ['music', 'beat', 'sync', 'audio-reactive', 'director', 'scene board', 'tempo', 'choreography'] },
{ id: 'nav.create.mood-boards', path: '/mood-boards', label: 'Mood Boards', section: 'Create', aliases: ['mood-boards', 'mood-board', 'moodboard', 'mood', 'inspiration', 'references'], keywords: ['inspiration', 'reference', 'pin', 'visual', 'canvas', 'collect', 'pinboard', 'palette', 'ideas'] },
{ id: 'nav.media.timeline', path: '/media/timeline', label: 'Timeline', section: 'Create', aliases: ['timeline', 'video-timeline', 'editor'], keywords: ['edit', 'trim', 'composite', 'stitch', 'cut', 'compose'] },