opencastle 0.32.11 → 0.32.12
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/cli/convoy/engine.d.ts.map +1 -1
- package/dist/cli/convoy/engine.js +1 -0
- package/dist/cli/convoy/engine.js.map +1 -1
- package/dist/cli/convoy/pipeline.d.ts.map +1 -1
- package/dist/cli/convoy/pipeline.js +5 -2
- package/dist/cli/convoy/pipeline.js.map +1 -1
- package/dist/cli/convoy/pipeline.test.js +44 -0
- package/dist/cli/convoy/pipeline.test.js.map +1 -1
- package/dist/cli/run.js +4 -4
- package/dist/cli/run.js.map +1 -1
- package/dist/dashboard/scripts/etl.d.ts +1 -0
- package/dist/dashboard/scripts/etl.d.ts.map +1 -1
- package/dist/dashboard/scripts/etl.js +7 -2
- package/dist/dashboard/scripts/etl.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/convoy/engine.ts +1 -0
- package/src/cli/convoy/pipeline.test.ts +49 -0
- package/src/cli/convoy/pipeline.ts +7 -2
- package/src/cli/run.ts +4 -4
- package/src/dashboard/dist/_astro/{index.6xXNs4L2.css → index.CADNhRPS.css} +1 -1
- package/src/dashboard/dist/data/convoys/demo-api-v2.json +3 -3
- package/src/dashboard/dist/data/convoys/demo-auth-revamp.json +4 -4
- package/src/dashboard/dist/data/convoys/demo-dashboard-ui.json +18 -18
- package/src/dashboard/dist/data/convoys/demo-data-pipeline.json +3 -3
- package/src/dashboard/dist/data/convoys/demo-deploy-ci.json +1 -1
- package/src/dashboard/dist/data/convoys/demo-docs-update.json +7 -7
- package/src/dashboard/dist/data/convoys/demo-perf-opt.json +10 -10
- package/src/dashboard/dist/index.html +29 -6
- package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
- package/src/dashboard/public/data/convoys/demo-api-v2.json +3 -3
- package/src/dashboard/public/data/convoys/demo-auth-revamp.json +4 -4
- package/src/dashboard/public/data/convoys/demo-dashboard-ui.json +18 -18
- package/src/dashboard/public/data/convoys/demo-data-pipeline.json +3 -3
- package/src/dashboard/public/data/convoys/demo-deploy-ci.json +1 -1
- package/src/dashboard/public/data/convoys/demo-docs-update.json +7 -7
- package/src/dashboard/public/data/convoys/demo-perf-opt.json +10 -10
- package/src/dashboard/scripts/etl.ts +9 -5
- package/src/dashboard/src/pages/index.astro +36 -4
- package/src/dashboard/src/styles/dashboard.css +4 -0
|
@@ -339,6 +339,15 @@ try {
|
|
|
339
339
|
<div class="chart-card__body" id="panel-chart"></div>
|
|
340
340
|
</section>
|
|
341
341
|
|
|
342
|
+
<!-- Recent Sessions (live during active convoy) -->
|
|
343
|
+
<section class="chart-card" id="detail-sessions-section" data-nav-section>
|
|
344
|
+
<div class="chart-card__header">
|
|
345
|
+
<h2 class="chart-card__title">Recent Sessions</h2>
|
|
346
|
+
<p class="chart-card__desc">Latest agent sessions from observability log</p>
|
|
347
|
+
</div>
|
|
348
|
+
<div class="chart-card__body chart-card__body--table" id="detail-sessions-table"></div>
|
|
349
|
+
</section>
|
|
350
|
+
|
|
342
351
|
</div><!-- .view-convoy-detail -->
|
|
343
352
|
|
|
344
353
|
|
|
@@ -693,6 +702,8 @@ try {
|
|
|
693
702
|
const url = new URL(window.location);
|
|
694
703
|
url.searchParams.delete('convoy');
|
|
695
704
|
history.pushState({}, '', url);
|
|
705
|
+
const chainNav = document.getElementById('pipeline-chain-nav');
|
|
706
|
+
if (chainNav) chainNav.remove();
|
|
696
707
|
}
|
|
697
708
|
|
|
698
709
|
function showConvoyDetailView(convoyId, convoyName) {
|
|
@@ -977,7 +988,8 @@ try {
|
|
|
977
988
|
|
|
978
989
|
async function renderRecentSessions() {
|
|
979
990
|
var el = document.getElementById('sessions-table');
|
|
980
|
-
|
|
991
|
+
var detailEl = document.getElementById('detail-sessions-table');
|
|
992
|
+
if (!el && !detailEl) return;
|
|
981
993
|
try {
|
|
982
994
|
var allEvents = await loadNdjson(base + 'data/events.ndjson');
|
|
983
995
|
var sessions = allEvents.filter(function(e) { return e.type === 'session'; });
|
|
@@ -986,7 +998,9 @@ try {
|
|
|
986
998
|
});
|
|
987
999
|
sessions = sessions.slice(0, 15);
|
|
988
1000
|
if (sessions.length === 0) {
|
|
989
|
-
|
|
1001
|
+
var emptyHtml = emptyStateHtml('sessions', 'No sessions recorded yet', 'Agent session data will appear here when sessions are logged via opencastle log.');
|
|
1002
|
+
if (el) el.innerHTML = emptyHtml;
|
|
1003
|
+
if (detailEl) detailEl.innerHTML = emptyHtml;
|
|
990
1004
|
return;
|
|
991
1005
|
}
|
|
992
1006
|
var thead = '<thead><tr>' +
|
|
@@ -1016,9 +1030,13 @@ try {
|
|
|
1016
1030
|
'</tr>';
|
|
1017
1031
|
}
|
|
1018
1032
|
tbody += '</tbody>';
|
|
1019
|
-
|
|
1033
|
+
var tableHtml = '<table class="sessions-table">' + thead + tbody + '</table>';
|
|
1034
|
+
if (el) el.innerHTML = tableHtml;
|
|
1035
|
+
if (detailEl) detailEl.innerHTML = tableHtml;
|
|
1020
1036
|
} catch (e) {
|
|
1021
|
-
|
|
1037
|
+
var errHtml = emptyStateHtml('sessions', 'No sessions recorded yet', 'Agent session data will appear here when sessions are logged.');
|
|
1038
|
+
if (el) el.innerHTML = errHtml;
|
|
1039
|
+
if (detailEl) detailEl.innerHTML = errHtml;
|
|
1022
1040
|
}
|
|
1023
1041
|
}
|
|
1024
1042
|
|
|
@@ -1056,6 +1074,18 @@ try {
|
|
|
1056
1074
|
renderEventTimeline(detail);
|
|
1057
1075
|
renderDetailPanelChart(detail.tasks || []);
|
|
1058
1076
|
renderDetailReviewsTable(detail.tasks || []);
|
|
1077
|
+
// Show pipeline chain if this convoy is part of a pipeline
|
|
1078
|
+
const convoyListForChain = window.__DASHBOARD_DATA__?.convoyList ?? [];
|
|
1079
|
+
const currentConvoyEntry = convoyListForChain.find(c => c.id === convoyId);
|
|
1080
|
+
if (currentConvoyEntry && currentConvoyEntry.pipeline_id) {
|
|
1081
|
+
const chainConvoys = convoyListForChain
|
|
1082
|
+
.filter(c => c.pipeline_id === currentConvoyEntry.pipeline_id)
|
|
1083
|
+
.sort((a, b) => (a.created_at || '').localeCompare(b.created_at || ''));
|
|
1084
|
+
if (chainConvoys.length > 1) {
|
|
1085
|
+
renderPipelineChain(chainConvoys, convoyId);
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
await renderRecentSessions();
|
|
1059
1089
|
} catch (e) {
|
|
1060
1090
|
console.error('Failed to load convoy detail:', e);
|
|
1061
1091
|
renderConvoyDetailHeader(null);
|
|
@@ -1165,6 +1195,7 @@ try {
|
|
|
1165
1195
|
return;
|
|
1166
1196
|
}
|
|
1167
1197
|
const cols = [
|
|
1198
|
+
{ key: 'id', label: 'Task ID' },
|
|
1168
1199
|
{ key: 'phase', label: 'Phase' },
|
|
1169
1200
|
{ key: 'agent', label: 'Agent' },
|
|
1170
1201
|
{ key: 'status', label: 'Status' },
|
|
@@ -1209,6 +1240,7 @@ try {
|
|
|
1209
1240
|
: '<span style="opacity:0.4">\u2014</span>';
|
|
1210
1241
|
const tokens = t.total_tokens != null ? formatTokens(t.total_tokens) : '\u2014';
|
|
1211
1242
|
return '<tr>' +
|
|
1243
|
+
'<td class="td-task">' + escapeHtml(t.id || '\u2014') + '</td>' +
|
|
1212
1244
|
'<td>' + (t.phase != null ? t.phase : '\u2014') + '</td>' +
|
|
1213
1245
|
'<td class="td-agent">' + escapeHtml(t.agent || '\u2014') + '</td>' +
|
|
1214
1246
|
'<td>' + statusBadge + '</td>' +
|
|
@@ -1961,6 +1961,8 @@ body {
|
|
|
1961
1961
|
pointer-events: none;
|
|
1962
1962
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
1963
1963
|
text-transform: none;
|
|
1964
|
+
font-family: inherit;
|
|
1965
|
+
font-weight: 400;
|
|
1964
1966
|
}
|
|
1965
1967
|
.tooltip-trigger:focus {
|
|
1966
1968
|
opacity: 1;
|
|
@@ -1991,6 +1993,8 @@ body {
|
|
|
1991
1993
|
pointer-events: none;
|
|
1992
1994
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
1993
1995
|
text-transform: none;
|
|
1996
|
+
font-family: inherit;
|
|
1997
|
+
font-weight: 400;
|
|
1994
1998
|
}
|
|
1995
1999
|
|
|
1996
2000
|
/* ── Additional Status Badges ── */
|