Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files1773 unmodified lines17741775177617771778177917805 unmodified lines17861787178817891790179117925 unmodified lines1798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822361 unmodified lines2184218521862187218821891773 unmodified lines<div class="prompt-row"><div><p class="prompt-title">Wake on heartbeat</p><textarea class="prompt-input" id="prompt-1" rows="1" aria-label="Wake on heartbeat prompt">Register for the heartbeat and tell me an interesting fact every time it triggers.</textarea><p class="prompt-step" id="hint-hb">Waiting for a system.heartbeat poll, or click Send heartbeat anytime. Edit the prompt to ask for one trigger (subscribe once) if you want it to stop after the first event.</p></div><div class="prompt-actions">5 unmodified lines<div class="prompt-row"><div><p class="prompt-title">Follow a job to completion</p><textarea class="prompt-input" id="prompt-2" rows="2" aria-label="Follow a job prompt">Start job-1 for "nightly fine-tune", subscribe to job.status_changed for it, and summarize the run once it finishes.</textarea><p class="prompt-step" id="hint-job">Waiting for a job.status_changed poll, then emit running and done.</p></div><div class="prompt-actions">5 unmodified lines<div class="prompt-row"><div><p class="prompt-title">Recover from a skipped-event gap</p><textarea class="prompt-input" id="prompt-3" rows="2" aria-label="Recover from gap prompt">Watch job-1 and if the server reports truncated events, fetch full job details to catch up.</textarea><p class="prompt-step">Sets truncated: true on the next poll so fast-agent knows events were skipped and calls get_job_details.</p></div><div class="prompt-actions"><button type="button" class="btn-secondary" onclick="copyPrompt('prompt-3')">Copy prompt</button><button type="button" class="btn-waiting" id="trigger-gap" onclick="armGap()">Arm truncated gap</button></div></div><div class="prompt-row"><div><p class="prompt-title">Test passive buffering or revocation</p><textarea class="prompt-input" id="prompt-4" rows="1" aria-label="Passive buffering prompt">Subscribe passively (wake=false) to system.heartbeat and hold updates until I ask.</textarea><p class="prompt-step">Send heartbeats to queue events without waking, or revoke the job stream to test -32024 Forbidden.</p></div><div class="prompt-actions"><button type="button" class="btn-secondary" onclick="copyPrompt('prompt-4')">Copy prompt</button><button type="button" class="btn-waiting" id="trigger-revoke" onclick="armTerm()">Revoke job</button></div></div></div>361 unmodified linesactiveJobId = jobStream ? jobStream.slice('job.status_changed:'.length) : null;setTriggerActive('trigger-hb', hbActive, 'btn-primary');setTriggerActive('trigger-job-run', jobActive, 'btn-primary');setTriggerActive('trigger-job-done', jobActive, 'btn-primary');setTriggerActive('trigger-gap', jobActive, 'btn-primary');1773 unmodified lines17741775177617771778177917805 unmodified lines17861787178817891790179117925 unmodified lines17981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823361 unmodified lines21852186218721882189219021911773 unmodified lines<div class="prompt-row"><div><p class="prompt-title">Wake on heartbeat</p><textarea class="prompt-input" spellcheck="false" id="prompt-1" rows="1" aria-label="Wake on heartbeat prompt">Register for the heartbeat and tell me an interesting fact every time it triggers.</textarea><p class="prompt-step" id="hint-hb">Waiting for a system.heartbeat poll, or click Send heartbeat anytime. Edit the prompt to ask for one trigger (subscribe once) if you want it to stop after the first event.</p></div><div class="prompt-actions">5 unmodified lines<div class="prompt-row"><div><p class="prompt-title">Follow a job to completion</p><textarea class="prompt-input" spellcheck="false" id="prompt-2" rows="2" aria-label="Follow a job prompt">Start job-1 for "nightly fine-tune", subscribe to job.status_changed for it, and summarize the run once it finishes.</textarea><p class="prompt-step" id="hint-job">Waiting for a job.status_changed poll, then emit running and done.</p></div><div class="prompt-actions">5 unmodified lines<div class="prompt-row"><div><p class="prompt-title">Test gaps and revocation</p><textarea class="prompt-input" spellcheck="false" id="prompt-3" rows="2" aria-label="Recover from gap prompt">Watch job-1 and if the server reports truncated events, fetch full job details to catch up.</textarea><p class="prompt-step">Arm truncated gap sets truncated: true on the next poll; Revoke job returns -32024 Forbidden so fast-agent ends the subscription.</p></div><div class="prompt-actions"><button type="button" class="btn-secondary" onclick="copyPrompt('prompt-3')">Copy prompt</button><button type="button" class="btn-waiting" id="trigger-gap" onclick="armGap()">Arm truncated gap</button><button type="button" class="btn-waiting" id="trigger-revoke" onclick="armTerm()">Revoke job</button></div></div><div class="prompt-row"><div><p class="prompt-title">Buffer events without waking</p><textarea class="prompt-input" spellcheck="false" id="prompt-4" rows="1" aria-label="Passive buffering prompt">Subscribe passively (wake=false) to system.heartbeat and hold updates until I ask.</textarea><p class="prompt-step">Send a few heartbeats to queue them in the toolbar inbox, then send any message (like "Any updates?") to drain them on your next turn.</p></div><div class="prompt-actions"><button type="button" class="btn-secondary" onclick="copyPrompt('prompt-4')">Copy prompt</button><button type="button" class="btn-waiting" id="trigger-hb-passive" onclick="emitHB()">Send heartbeat</button></div></div></div>361 unmodified linesactiveJobId = jobStream ? jobStream.slice('job.status_changed:'.length) : null;setTriggerActive('trigger-hb', hbActive, 'btn-primary');setTriggerActive('trigger-hb-passive', hbActive, 'btn-primary');setTriggerActive('trigger-job-run', jobActive, 'btn-primary');setTriggerActive('trigger-job-done', jobActive, 'btn-primary');setTriggerActive('trigger-gap', jobActive, 'btn-primary');
app.py+11-9