@atolis-hq/wake 0.2.3 → 0.2.4

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.
@@ -73,6 +73,10 @@ export const indexHtml = `<!DOCTYPE html>
73
73
  .ok { color: #7fe3a3; }
74
74
  input[type=text] { background: #1a1d23; border: 1px solid #2c313a; color: #e8e8e8; padding: 0.3rem 0.5rem; border-radius: 6px; margin-bottom: 0.6rem; width: 260px; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
75
75
  input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15); }
76
+ a { color: var(--accent-light); text-decoration: none; }
77
+ a:hover { text-decoration: underline; }
78
+ .resource-list { list-style: none; padding: 0; margin: 0 0 1rem; }
79
+ .resource-list li { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.35rem; font-size: 0.8rem; }
76
80
  </style>
77
81
  </head>
78
82
  <body>
@@ -195,6 +199,21 @@ async function renderBoard() {
195
199
  main.appendChild(columns);
196
200
  }
197
201
 
202
+ function resourceUriToUrl(resourceUri) {
203
+ const parts = resourceUri.split(':');
204
+ if (parts.length < 3) return null;
205
+ const provider = parts[0];
206
+ const type = parts[1];
207
+ const locator = parts.slice(2).join(':');
208
+ const m = locator.match(/^(.+)#([0-9]+)$/);
209
+ if (!m) return null;
210
+ if (provider === 'github') {
211
+ if (type === 'issue') return 'https://github.com/' + m[1] + '/issues/' + m[2];
212
+ if (type === 'pr') return 'https://github.com/' + m[1] + '/pull/' + m[2];
213
+ }
214
+ return null;
215
+ }
216
+
198
217
  async function openItem(repo, number) {
199
218
  const drawer = document.getElementById('drawer');
200
219
  const body = document.getElementById('drawer-body');
@@ -203,12 +222,27 @@ async function openItem(repo, number) {
203
222
  const detail = await getJson('/items/' + encodeURIComponent(repo) + '/' + number);
204
223
  if (!detail) { body.textContent = 'Not found'; return; }
205
224
  body.innerHTML = '';
206
- body.appendChild(el('h2', { text: repo + '#' + number }));
225
+ const headLink = el('a', { href: detail.item.issue.url, target: '_blank', rel: 'noopener noreferrer', text: repo + '#' + number });
226
+ body.appendChild(el('h2', {}, [headLink]));
207
227
  body.appendChild(el('p', { text: detail.item.issue.title }));
208
228
  body.appendChild(el('p', { class: 'meta', text: 'stage: ' + detail.item.wake.stage + (detail.item.wake.sessionId ? ' · session: ' + detail.item.wake.sessionId : '') }));
209
229
  if (detail.item.wake.workspacePath) {
210
230
  body.appendChild(el('p', { class: 'meta', text: 'workspace: ' + detail.item.wake.workspacePath }));
211
231
  }
232
+ const resources = detail.item.correlatedResources || [];
233
+ if (resources.length > 0) {
234
+ body.appendChild(el('h3', { text: 'Resources' }));
235
+ const resourceList = el('ul', { class: 'resource-list' });
236
+ for (const res of resources) {
237
+ const resUrl = resourceUriToUrl(res.resourceUri);
238
+ const badge = el('span', { class: 'chip', text: res.role });
239
+ const linkOrText = resUrl
240
+ ? el('a', { href: resUrl, target: '_blank', rel: 'noopener noreferrer', text: res.resourceUri })
241
+ : el('span', { class: 'meta', text: res.resourceUri });
242
+ resourceList.appendChild(el('li', {}, [badge, linkOrText]));
243
+ }
244
+ body.appendChild(resourceList);
245
+ }
212
246
  body.appendChild(el('h3', { text: 'Runs' }));
213
247
  const runsTable = el('table', {}, [
214
248
  el('tr', {}, ['action', 'status', 'sentinel', 'started', 'runId'].map((h) => el('th', { text: h }))),
@@ -1 +1 @@
1
- export const wakeVersion = "0.2.3+gfb2197d";
1
+ export const wakeVersion = "0.2.4+g59df9f2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {