2Btainment commited on
Commit
01a57e0
·
verified ·
1 Parent(s): c891949

P6.1: resume jobs from awaiting_approval; empire-team template; cache bust v121 (part 2)

Browse files
Files changed (2) hide show
  1. video.js +2 -2
  2. workspace.js +3 -3
video.js CHANGED
@@ -1,7 +1,7 @@
1
  // STUDIUS P3.4: Video Gen (LTX-Video, text→video + image→video), Video Edit (trim, soundtrack, title, fades → MP4/WebM export)
2
  // and Stems (Demucs split → synced mixer with gain/mute/solo → WAV mixdown). All results go on the asset bus (save / send).
3
- import { run, result, MODULES, esc, hf, stTxt, url, badge, timer, setS, S, keep } from './real.js?v=120';
4
- import { toWav } from './master.js?v=120';
5
  import { onStop } from './widgets.js?v=50';
6
 
7
  export const LTX = 'Lightricks/ltx-video-distilled';
 
1
  // STUDIUS P3.4: Video Gen (LTX-Video, text→video + image→video), Video Edit (trim, soundtrack, title, fades → MP4/WebM export)
2
  // and Stems (Demucs split → synced mixer with gain/mute/solo → WAV mixdown). All results go on the asset bus (save / send).
3
+ import { run, result, MODULES, esc, hf, stTxt, url, badge, timer, setS, S, keep } from './real.js?v=121';
4
+ import { toWav } from './master.js?v=121';
5
  import { onStop } from './widgets.js?v=50';
6
 
7
  export const LTX = 'Lightricks/ltx-video-distilled';
workspace.js CHANGED
@@ -1,6 +1,6 @@
1
  // STUDIUS empire backbone (frontend): HF sign-in, Workspace (user's HF Bucket), asset bus hand-off, bee agent dock.
2
- import { MODULES, refreshQuota } from './real.js?v=120';
3
- import { Avatars } from './avatar.js?v=120';
4
  const $ = (s, r = document) => r.querySelector(s);
5
  const esc = (t) => String(t ?? '').replace(/[&<>"']/g, c => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
6
  const ST = () => window.__studius.STUDIOS;
@@ -261,6 +261,6 @@ async function resumeJob(id) {
261
  await runJob(job, crew, team, job.task, shared, from); }
262
  window.__resumeJob = resumeJob;
263
  async function renderJobs() { const el = $('#bees .jobs'); if (!el || !W.me?.signedIn) return; try { const { jobs } = await api('/api/jobs' + (W.bucket ? '?bucket=' + encodeURIComponent(W.bucket) : '')); window.__jobs = jobs;
264
- el.innerHTML = jobs.slice(0, 8).map(j => `<div class="job"><b>${{ done: '✔', running: '⏳', awaiting_approval: '✋', rejected: '⛔', error: '⚠', interrupted: '⏸' }[j.state] || '·'}</b> ${esc(j.task.slice(0, 50))} <small class="mut">${new Date(j.created * 1000).toLocaleString('de-DE', { dateStyle: 'short', timeStyle: 'short' })}${j.saved ? ' · 🪣' : ''}${j.restored ? ' · aus Bucket' : ''}</small> <small>${j.steps.map(s => esc(s.tool) + (s.external ? '🔒' : '') + ':' + s.state).join(' → ')}</small>${['interrupted', 'error'].includes(j.state) ? `<button class="btn alt rs" data-rs="${esc(j.id)}">↻ Fortsetzen</button>` : ''}</div>`).join('') || '<small class="mut">Noch keine Jobs.</small>'; } catch (e) {} }
265
  $('#bees .jobs').onclick = (e) => { const b = e.target.closest('[data-rs]'); if (b) { b.disabled = true; resumeJob(b.dataset.rs); } };
266
  $('#bsend').onclick = runAgent; $('#bin').addEventListener('keydown', e => { if (e.key === 'Enter') runAgent(); });
 
1
  // STUDIUS empire backbone (frontend): HF sign-in, Workspace (user's HF Bucket), asset bus hand-off, bee agent dock.
2
+ import { MODULES, refreshQuota } from './real.js?v=121';
3
+ import { Avatars } from './avatar.js?v=121';
4
  const $ = (s, r = document) => r.querySelector(s);
5
  const esc = (t) => String(t ?? '').replace(/[&<>"']/g, c => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
6
  const ST = () => window.__studius.STUDIOS;
 
261
  await runJob(job, crew, team, job.task, shared, from); }
262
  window.__resumeJob = resumeJob;
263
  async function renderJobs() { const el = $('#bees .jobs'); if (!el || !W.me?.signedIn) return; try { const { jobs } = await api('/api/jobs' + (W.bucket ? '?bucket=' + encodeURIComponent(W.bucket) : '')); window.__jobs = jobs;
264
+ el.innerHTML = jobs.slice(0, 8).map(j => `<div class="job"><b>${{ done: '✔', running: '⏳', awaiting_approval: '✋', rejected: '⛔', error: '⚠', interrupted: '⏸' }[j.state] || '·'}</b> ${esc(j.task.slice(0, 50))} <small class="mut">${new Date(j.created * 1000).toLocaleString('de-DE', { dateStyle: 'short', timeStyle: 'short' })}${j.saved ? ' · 🪣' : ''}${j.restored ? ' · aus Bucket' : ''}</small> <small>${j.steps.map(s => esc(s.tool) + (s.external ? '🔒' : '') + ':' + s.state).join(' → ')}</small>${['interrupted', 'error', 'awaiting_approval'].includes(j.state) ? `<button class="btn alt rs" data-rs="${esc(j.id)}">↻ Fortsetzen</button>` : ''}</div>`).join('') || '<small class="mut">Noch keine Jobs.</small>'; } catch (e) {} }
265
  $('#bees .jobs').onclick = (e) => { const b = e.target.closest('[data-rs]'); if (b) { b.disabled = true; resumeJob(b.dataset.rs); } };
266
  $('#bsend').onclick = runAgent; $('#bin').addEventListener('keydown', e => { if (e.key === 'Enter') runAgent(); });