clawtool 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/web/index.html +8 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawtool",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Local-first OpenClaw diagnose and repair tool",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
package/web/index.html CHANGED
@@ -163,10 +163,12 @@
163
163
  <section id="start" class="card">
164
164
  <div class="hint" id="start-text">No cloud call. No token required. Local execution only.</div>
165
165
  <button id="btn-start" class="btn btn-main">Start Scan</button>
166
- <button id="btn-rescan" class="btn btn-main hidden" style="margin-top:8px">Scan Again</button>
167
166
  </section>
168
167
 
169
168
  <section id="feed" class="feed hidden"></section>
169
+ <section id="actions" class="card hidden">
170
+ <button id="btn-rescan" class="btn btn-main">Scan Again</button>
171
+ </section>
170
172
  </main>
171
173
 
172
174
  <script>
@@ -215,6 +217,7 @@
215
217
  sub: document.getElementById('brand-sub'),
216
218
  startText: document.getElementById('start-text'),
217
219
  startWrap: document.getElementById('start'),
220
+ actionsWrap: document.getElementById('actions'),
218
221
  btnStart: document.getElementById('btn-start'),
219
222
  btnRescan: document.getElementById('btn-rescan'),
220
223
  feed: document.getElementById('feed')
@@ -307,14 +310,14 @@
307
310
 
308
311
  if (type === 'complete') {
309
312
  addCard('<h3 class="ok">' + T.done + '</h3><p>' + (data.summary || '') + '</p>');
310
- el.btnRescan.classList.remove('hidden');
313
+ el.actionsWrap.classList.remove('hidden');
311
314
  if (eventSource) eventSource.close();
312
315
  return;
313
316
  }
314
317
 
315
318
  if (type === 'error') {
316
319
  addCard('<h3 class="err">' + T.error + '</h3><p>' + (data.message || '') + '</p>');
317
- el.btnRescan.classList.remove('hidden');
320
+ el.actionsWrap.classList.remove('hidden');
318
321
  if (eventSource) eventSource.close();
319
322
  }
320
323
  };
@@ -323,14 +326,14 @@
323
326
  el.btnStart.addEventListener('click', function () {
324
327
  el.startWrap.classList.add('hidden');
325
328
  el.feed.classList.remove('hidden');
326
- el.btnRescan.classList.add('hidden');
329
+ el.actionsWrap.classList.add('hidden');
327
330
  connect();
328
331
  });
329
332
 
330
333
  el.btnRescan.addEventListener('click', function () {
331
334
  el.feed.innerHTML = '';
332
335
  el.feed.classList.remove('hidden');
333
- el.btnRescan.classList.add('hidden');
336
+ el.actionsWrap.classList.add('hidden');
334
337
  if (eventSource) eventSource.close();
335
338
  connect();
336
339
  });