agents-relay 2.0.189 → 2.0.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard-html.js +2 -4
- package/dist/dashboard-style.js +7 -8
- package/dist/reconciler.js +7 -3
- package/package.json +1 -1
package/dist/dashboard-html.js
CHANGED
|
@@ -42,7 +42,7 @@ ${dashboardStyles}
|
|
|
42
42
|
</header>
|
|
43
43
|
<main>
|
|
44
44
|
<section id="jobs-view" role="tabpanel" aria-labelledby="jobs-tab" class="panel jobs-panel">
|
|
45
|
-
<div class="panel-head"><h2>Jobs</h2><div class="panel-actions"><div class="job-filters"><input id="job-search" class="job-search" type="search" placeholder="Search
|
|
45
|
+
<div class="panel-head"><h2>Jobs</h2><div class="panel-actions"><div class="job-filters"><input id="job-search" class="job-search" type="search" placeholder="Search" aria-label="Search jobs by title or PR number"><select id="status-filter" class="job-filter" aria-label="Filter jobs by status (default excludes cancelled)"><option value="">No cancelled</option><option value="DRAFT">DRAFT</option><option value="ACTIVE">ACTIVE</option><option value="COMPLETED">COMPLETED</option><option value="CANCELLED">CANCELLED</option></select><select id="repo-filter" class="job-filter" aria-label="Filter jobs by repository"><option value="">All repos</option></select></div><div class="jobs-actions"><button id="jobs-refresh" class="refresh-button" type="button">Refresh</button></div><span id="jobs-feedback" class="jobs-feedback subtle" role="status" aria-live="polite"></span></div></div>
|
|
46
46
|
<div class="panel-body" aria-live="polite"><ul id="job-list" class="job-list"><li class="skeleton" aria-hidden="true"></li></ul></div>
|
|
47
47
|
</section>
|
|
48
48
|
<div class="workspace" id="jobs-workspace">
|
|
@@ -142,7 +142,6 @@ const shortcutsView=document.querySelector('#shortcuts-view');
|
|
|
142
142
|
const jobsWorkspace=document.querySelector('#jobs-workspace');
|
|
143
143
|
const jobList=document.querySelector('#job-list');
|
|
144
144
|
const jobsRefresh=document.querySelector('#jobs-refresh');
|
|
145
|
-
const jobsReset=document.querySelector('#jobs-reset');
|
|
146
145
|
const jobSearch=document.querySelector('#job-search');
|
|
147
146
|
const repoFilter=document.querySelector('#repo-filter');
|
|
148
147
|
const statusFilter=document.querySelector('#status-filter');
|
|
@@ -223,7 +222,7 @@ function matchesSearch(job){const query=searchQuery.trim().toLowerCase();if(!que
|
|
|
223
222
|
function filteredJobs(){return jobs.filter(job=>(!selectedRepo||selectedRepo===job.repository)&&matchesQuickFilter(job)&&matchesSearch(job)).slice(0,20);}
|
|
224
223
|
function syncFilters(){
|
|
225
224
|
const repos=jobRepositories.length?jobRepositories:[...new Set(jobs.map(job=>job.repository).filter(Boolean))].sort();
|
|
226
|
-
const repoOptions=[new Option('All
|
|
225
|
+
const repoOptions=[new Option('All repos',''),...repos.map(repo=>new Option(repo,repo))];
|
|
227
226
|
if(repoFilter.options.length!==repoOptions.length||[...repoFilter.options].some((option,index)=>option.value!==repoOptions[index].value))repoFilter.replaceChildren(...repoOptions);
|
|
228
227
|
if(selectedRepo&&!repos.includes(selectedRepo))selectedRepo='';
|
|
229
228
|
if(!['','DRAFT','ACTIVE','COMPLETED','CANCELLED'].includes(selectedStatus))selectedStatus='';
|
|
@@ -337,7 +336,6 @@ jobsTab.addEventListener('click',()=>{location.hash=selectedJob?'#/jobs/'+encode
|
|
|
337
336
|
jobsRefresh.addEventListener('click',()=>void refresh(true));
|
|
338
337
|
eventsAllTasks.addEventListener('click',()=>{eventTaskId=null;clearEvents();renderEventScope();void loadEventHistory();});
|
|
339
338
|
function applyLocalJobFilters(){rememberJobFilters();renderJobList();}
|
|
340
|
-
jobsReset.addEventListener('click',()=>{searchQuery='';selectedStatus='';selectedRepo='';syncFilters();applyLocalJobFilters();});
|
|
341
339
|
repoFilter.addEventListener('change',()=>{selectedRepo=repoFilter.value;applyLocalJobFilters();});
|
|
342
340
|
jobSearch.addEventListener('input',()=>{searchQuery=jobSearch.value;applyLocalJobFilters();});
|
|
343
341
|
statusFilter.addEventListener('change',()=>{selectedStatus=statusFilter.value;applyLocalJobFilters();});
|
package/dist/dashboard-style.js
CHANGED
|
@@ -158,15 +158,14 @@ export const dashboardStyles = ` <style>
|
|
|
158
158
|
body[data-mobile-jobs-view="detail"] #jobs-view { display:none; }
|
|
159
159
|
.mobile-only { display:inline-flex; }
|
|
160
160
|
#jobs-view .panel-head { display:grid; align-items:start; }
|
|
161
|
-
#jobs-view .panel-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; gap:.
|
|
161
|
+
#jobs-view .panel-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; width:100%; gap:.25rem; }
|
|
162
162
|
.runtime-summary { display:none; }
|
|
163
|
-
#jobs-view .job-filters {
|
|
164
|
-
#jobs-view .job-
|
|
165
|
-
#jobs-view .job-
|
|
166
|
-
#jobs-view .
|
|
167
|
-
#jobs-view .jobs-
|
|
168
|
-
#jobs-view
|
|
169
|
-
#jobs-view .refresh-button { min-height:2.5rem; }
|
|
163
|
+
#jobs-view .job-filters { display:grid; grid-template-columns:minmax(0,1fr) 5.8rem 4.6rem; align-items:center; gap:.25rem; min-width:0; }
|
|
164
|
+
#jobs-view .job-search { width:100%; min-width:0; max-width:none; min-height:2.25rem; }
|
|
165
|
+
#jobs-view .job-filter { width:100%; max-width:none; min-width:0; text-transform:none; font-size:.69rem; min-height:2.25rem; padding:.2rem .15rem; }
|
|
166
|
+
#jobs-view .jobs-actions { justify-content:flex-end; }
|
|
167
|
+
#jobs-view .jobs-feedback { grid-column:1 / -1; text-align:left; }
|
|
168
|
+
#jobs-view #jobs-refresh { min-height:2.25rem; padding:.28rem .35rem; }
|
|
170
169
|
#jobs-view .panel-body { max-height:none; }
|
|
171
170
|
#jobs-workspace { gap:.65rem; }
|
|
172
171
|
#jobs-workspace .panel-body { max-height:none; }
|
package/dist/reconciler.js
CHANGED
|
@@ -514,13 +514,17 @@ export class Reconciler extends ReconcilerReviewBase {
|
|
|
514
514
|
return;
|
|
515
515
|
await this.store.mutateJob?.(jobId, current => {
|
|
516
516
|
const task = current.tasks.find(item => item.id === taskId);
|
|
517
|
-
|
|
517
|
+
const historical = task?.executionHistory?.some(item => item.id === executionId);
|
|
518
|
+
if (!task || (task.executionId !== executionId && !historical))
|
|
518
519
|
return current;
|
|
519
|
-
|
|
520
|
+
// The terminal event may be accepted before WebHelm returns the durable thread receipt.
|
|
521
|
+
// Keep this execution's URL even after the execution lease has been cleared.
|
|
522
|
+
if (task.executionId === executionId || task.executionId === null)
|
|
523
|
+
task.threadUrl = url;
|
|
520
524
|
if (!task.threadHistory?.some(item => item.executionId === executionId)) {
|
|
521
525
|
task.threadHistory = [...(task.threadHistory ?? []), { executionId, threadUrl: url, attempt: task.attempt, at: new Date().toISOString() }].slice(-12);
|
|
522
526
|
}
|
|
523
|
-
if (typeof id === 'string')
|
|
527
|
+
if (typeof id === 'string' && (task.executionId === executionId || task.executionId === null))
|
|
524
528
|
task.threadId = id;
|
|
525
529
|
return current;
|
|
526
530
|
});
|