@babylonjs-toolkit/agent 1.1.61 → 1.1.62
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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Babylon Toolkit Desktop Agent (1.1.
|
|
1
|
+
# Babylon Toolkit Desktop Agent (1.1.62)
|
|
2
2
|
|
|
3
3
|
The desktop agent owns the entire pipeline end to end — frontend and UI design, gameplay code, shaders, generated art and audio, 3D models in headless Blender, whole game levels and prefabs in a terminal-driven Unity Editor, the interactive glTF export, the web build, the dev server, and visual QA by screenshotting both Unity and the running browser.
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -600,6 +600,8 @@
|
|
|
600
600
|
.task-live { padding: 12px 14px; border-radius: var(--radius-small); background: var(--active-soft); }
|
|
601
601
|
.now-warning { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--failed); border-radius: 0 var(--radius-small) var(--radius-small) 0; background: var(--failed-soft); font-size: 13.5px; }
|
|
602
602
|
.tag.tag-watchdog { color: var(--updated); border-color: color-mix(in srgb, var(--updated) 45%, transparent); background: var(--updated-soft); letter-spacing: 0.06em; }
|
|
603
|
+
.tag.tag-snapshots { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
|
|
604
|
+
.tag-snapshots svg { width: 13px; height: 13px; flex: none; }
|
|
603
605
|
.task-live .now-head { font-size: 10.5px; }
|
|
604
606
|
.task-id { font: 700 13px/1 var(--font-mono); color: var(--text-muted); }
|
|
605
607
|
.task-title { font-weight: 600; min-width: 0; }
|
|
@@ -975,7 +977,7 @@
|
|
|
975
977
|
<article class="card after-action">
|
|
976
978
|
<div class="after-action-head">
|
|
977
979
|
<span class="kicker">After Action Report${afterAction.writtenAt ? ` <span>· ${escapeHtml(afterAction.writtenAt)}</span>` : ''}</span>
|
|
978
|
-
<span class="meta">${isFinal ? '' :
|
|
980
|
+
<span class="meta">${snapshotBadge([...(comparison && comparison.before && comparison.after ? [comparison] : []), ...(afterAction.snapshots || [])])}${isFinal ? '' :'<span class="status status-in-progress">Interim — plan not finished</span>'}${updatedBadge(afterAction.updates)}</span>
|
|
979
981
|
</div>
|
|
980
982
|
${afterAction.headline ? `<h3 class="headline">${formatInline(afterAction.headline)}</h3>` : ''}
|
|
981
983
|
${comparison && comparison.before && comparison.after ? `<div class="plan-compare">${renderSnapshot(comparison)}</div>` : ''}
|
|
@@ -1060,10 +1062,20 @@
|
|
|
1060
1062
|
</article>`;
|
|
1061
1063
|
}
|
|
1062
1064
|
|
|
1065
|
+
// A camera badge on a task's row, so tasks with pictures stand out without opening them.
|
|
1066
|
+
function snapshotBadge(snapshots) {
|
|
1067
|
+
const list = Array.isArray(snapshots) ? snapshots : [];
|
|
1068
|
+
if (!list.length) return '';
|
|
1069
|
+
const images = list.reduce((total, snapshot) => total + (Array.isArray(snapshot.frames) ? snapshot.frames.length : snapshot.before || snapshot.after ? 2 : 1), 0);
|
|
1070
|
+
const label = `${list.length} snapshot${list.length === 1 ? '' : 's'}${images !== list.length ? ` · ${images} images` : ''}`;
|
|
1071
|
+
return `<span class="tag tag-snapshots" title="${escapeAttribute(label)}" aria-label="${escapeAttribute(label)}"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z"/><circle cx="12" cy="13" r="3.5"/></svg>${list.length}</span>`;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1063
1074
|
function renderTask(task) {
|
|
1064
1075
|
const status = task.status || 'pending';
|
|
1065
1076
|
const tags = [
|
|
1066
|
-
|
|
1077
|
+
snapshotBadge(task.snapshots),
|
|
1078
|
+
task.kind ?`<span class="tag">${escapeHtml(task.kind)}</span>` : '',
|
|
1067
1079
|
task.verifyLevel === 'live' ? '<span class="tag">live check</span>' : '',
|
|
1068
1080
|
task.attempts > 1 ? `<span class="tag">${escapeHtml(task.attempts)} attempts</span>` : '',
|
|
1069
1081
|
status === 'built' || status === 'verifying' ? `<span class="status status-${status}">${STATUS_LABELS[status]}</span>` : '',
|