@atolis-hq/wake 0.2.17 → 0.2.18

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.
@@ -331,10 +331,26 @@ async function renderConfig() {
331
331
  ...data.routingTable.map((r) => el('tr', {}, [
332
332
  el('td', { text: r.stage }), el('td', { text: r.action || '' }), el('td', { text: r.tier || '' }),
333
333
  el('td', { text: r.runnerName || '' }), el('td', { text: r.model || '' }),
334
- el('td', {}, (r.candidates || []).map((c) => el('span', {
335
- class: 'chip' + (c.paused ? ' amber' : ''),
336
- text: c.runnerName + (c.paused ? ' (paused)' : ''),
337
- }))),
334
+ el('td', {}, (r.candidates || []).map((c) => {
335
+ if (!c.paused) return el('span', { class: 'chip', text: c.runnerName });
336
+ const btn = el('button', { type: 'button', class: 'btn', text: 'Unpause', style: 'margin-top:0;font-size:0.7rem;padding:0.1rem 0.4rem;' });
337
+ btn.addEventListener('click', async () => {
338
+ btn.disabled = true;
339
+ btn.textContent = 'Unpausing…';
340
+ try {
341
+ await postJson('/runners/' + encodeURIComponent(c.runnerName) + '/unpause');
342
+ await renderConfig();
343
+ } catch (err) {
344
+ btn.disabled = false;
345
+ btn.textContent = 'Unpause';
346
+ document.getElementById('status-summary').textContent = 'unpause failed: ' + err.message;
347
+ }
348
+ });
349
+ return el('span', { style: 'display:inline-flex;align-items:center;gap:0.25rem;margin-right:0.25rem;' }, [
350
+ el('span', { class: 'chip amber', text: c.runnerName + ' (paused)' }),
351
+ btn,
352
+ ]);
353
+ })),
338
354
  ])),
339
355
  ]));
340
356
  main.appendChild(el('h3', { text: 'Effective config (redacted)' }));
@@ -124,4 +124,4 @@ export function resolveWakeVersion(options = {}) {
124
124
  }
125
125
  return '0.1.0-dev';
126
126
  }
127
- export const wakeVersion = "g743a5ea";
127
+ export const wakeVersion = "g5c65f84";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {