@atolis-hq/wake 0.2.61 → 0.2.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.
@@ -312,7 +312,10 @@ async function renderBoard(context) {
312
312
  ...(item.labels && item.labels.length > 0
313
313
  ? [el('div', { class: 'meta' }, item.labels.map((label) => el('span', { class: 'chip chip-label', text: label })))]
314
314
  : []),
315
- el('div', { class: 'meta', text: item.lastRunSentinel ? 'last: ' + item.lastRunAction + ' → ' + item.lastRunSentinel : item.conditionReason }),
315
+ ...(item.activeMainRun
316
+ ? []
317
+ : [el('div', { class: 'meta', text: item.lastRunSentinel ? 'last: ' + item.lastRunAction + ' → ' + item.lastRunSentinel : item.conditionReason })]),
318
+ ...(item.activeMainRun ? [renderChildRun(item.activeMainRun)] : []),
316
319
  ...((item.activeChildRuns || []).map(renderChildRun)),
317
320
  ]));
318
321
  return el('div', { class: 'col' + (items.length === 0 ? ' col-empty' : '') }, [
@@ -107,6 +107,18 @@ export async function buildBoard(input) {
107
107
  const lastRun = item.wake.lastRunId === undefined ? null : (runsById.get(item.wake.lastRunId) ?? null);
108
108
  const { condition, reason } = deriveCondition(item, lastRun, input.config);
109
109
  const activeChildRuns = activeChildRunsForItem(item, runs, input.now);
110
+ const activeMainRun = lastRun?.status === 'running'
111
+ ? {
112
+ runId: lastRun.runId,
113
+ action: lastRun.action,
114
+ startedAt: lastRun.startedAt,
115
+ ageMs: input.now.getTime() - Date.parse(lastRun.startedAt),
116
+ ...(lastRun.routing?.runnerName === undefined
117
+ ? {}
118
+ : { runnerName: lastRun.routing.runnerName }),
119
+ ...(lastRun.routing?.tier === undefined ? {} : { tier: lastRun.routing.tier }),
120
+ }
121
+ : undefined;
110
122
  return {
111
123
  repo: item.issue.repo,
112
124
  number: item.issue.number,
@@ -120,6 +132,7 @@ export async function buildBoard(input) {
120
132
  lastRunAction: lastRun?.action,
121
133
  lastRunSentinel: lastRun?.sentinel,
122
134
  lastRunStatus: lastRun?.status,
135
+ ...(activeMainRun === undefined ? {} : { activeMainRun }),
123
136
  ...(activeChildRuns.length === 0 ? {} : { activeChildRuns }),
124
137
  sessionId: item.wake.sessionId,
125
138
  workspacePath: item.wake.workspacePath,
@@ -124,4 +124,4 @@ export function resolveWakeVersion(options = {}) {
124
124
  }
125
125
  return '0.1.0-dev';
126
126
  }
127
- export const wakeVersion = "g99d278b";
127
+ export const wakeVersion = "gf68a086";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.2.61",
3
+ "version": "0.2.62",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {