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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Merge branch 'main' into claude/project-thread-pe8v3l
[._.]/e8645a8b40d4
diff --cc client/src/components/musicVideo/AutonomousRunPanel.jsxindex 6ed68dc734,ed0b5d772f..20fa403b51--- a/client/src/components/musicVideo/AutonomousRunPanel.jsx+++ b/client/src/components/musicVideo/AutonomousRunPanel.jsx@@@ -54,11 -55,14 +55,15 @@@ function StageOutput({ run, row, editab* read-only from its checklist row; the open row is the caller's URL state* (`selectedStage` / `onSelectStage`). Progress arrives over `music-video:autonomous` through* `useAutonomousMusicVideo`; this panel only renders the run it is given.+ * `framed={false}` drops the card chrome and title for a host that supplies them.*/-export default function AutonomousRunPanel({ project, auto, selectedStage = null, onSelectStage }) {+export default function AutonomousRunPanel({ project, auto, selectedStage = null, onSelectStage, framed = true }) {const run = project?.autonomousRun;const [edit, setEdit] = useState(null); // { for: stage, value } — the director's edit at a checkpoint+ // "Auto-approve the rest": a grant sent with the next resume (password entered once, never kept).+ const [autoApprove, setAutoApprove] = useState([]);+ const [password, setPassword] = useState('');+ const [grantError, setGrantError] = useState(null);if (!run) return null;const rows = autonomousStageRows(run);const live = isAutonomousLive(run);@@@ -74,11 -78,22 +79,22 @@@// A stale or hand-edited `?run-stage=` that names no finished, viewable stage opens nothing.const selectedRow = rows.find((row) => row.id === selectedStage && row.status === 'done' && AUTONOMOUS_VIEWABLE_STAGES.includes(row.id)) || null;const selected = selectedRow?.id || null;+ const grantBlocked = autoApprove.length > 0 && !password;+ // Every resume path carries the grant when one is picked; a refused password shows inline.+ const resume = (edits = {}) => {+ if (!autoApprove.length) return auto.resume(edits);+ const secret = password;+ setPassword('');+ setGrantError(null);+ return auto.resume({ ...edits, autoApprove, password: secret }, { inline: true })+ .then((res) => { setAutoApprove([]); return res; })+ .catch((err) => { setGrantError(err?.message || 'Could not grant auto-approval'); });+ };return (- <section className="bg-port-card border border-port-border rounded-lg p-3 space-y-3 min-w-0" aria-label="Autonomous run">+ <section className={`${framed ? 'bg-port-card border border-port-border rounded-lg p-3 ' : ''}space-y-3 min-w-0`} aria-label="Autonomous run"><div className="flex flex-wrap items-center gap-x-3 gap-y-1">- <span className="flex items-center gap-1 text-sm font-medium"><Wand2 size={15} className="text-port-accent" aria-hidden="true" /> Autonomous run</span>+ {framed && <span className="flex items-center gap-1 text-sm font-medium"><Wand2 size={15} className="text-port-accent" aria-hidden="true" /> Autonomous run</span>}<span className={`text-sm ${tone}`}>{run.interrupted ? 'Interrupted — resume to continue' : AUTONOMOUS_STATUS_LABELS[run.status] || run.status}</span>{run.brief?.origin?.kind === 'schedule' && (<span className="text-xs text-port-text-muted">Scheduled{run.brief.origin.ideaTitle ? ` · from “${run.brief.origin.ideaTitle}”` : ''}</span>