tui-cap 0.1.0 → 0.1.2

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/dist/web/app.js CHANGED
@@ -87,6 +87,7 @@ const els = {
87
87
  updateMsg: $('updateMsg'),
88
88
  updateBtn: $('updateBtn'),
89
89
  updateDismiss: $('updateDismiss'),
90
+ appVersion: $('appVersion'),
90
91
  toast: $('toast'),
91
92
  };
92
93
 
@@ -500,10 +501,18 @@ async function checkForUpdate() {
500
501
  } catch {
501
502
  return;
502
503
  }
504
+ if (updateInfo && updateInfo.current) showAppVersion(updateInfo.current);
503
505
  if (!updateInfo || !updateInfo.updateAvailable || !updateInfo.latest) return;
504
506
  showUpdateBanner();
505
507
  }
506
508
 
509
+ // Show the running version next to the title in the header.
510
+ function showAppVersion(current) {
511
+ if (!els.appVersion) return;
512
+ els.appVersion.textContent = `v${current}`;
513
+ els.appVersion.hidden = false;
514
+ }
515
+
507
516
  function showUpdateBanner() {
508
517
  const { current, latest, installKind } = updateInfo;
509
518
  if (installKind === 'npx') {
@@ -12,6 +12,7 @@
12
12
  <div class="brand">
13
13
  <img class="logo" src="logo.svg" alt="" aria-hidden="true" />
14
14
  <h1>GitHub Copilot CLI Capture</h1>
15
+ <span id="appVersion" class="app-version muted" hidden></span>
15
16
  </div>
16
17
  <div class="view-scale" role="group" aria-label="Canvas scale">
17
18
  <button id="zoomFitBtn" class="btn small" type="button"
@@ -187,6 +187,12 @@ h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color:
187
187
  .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
188
188
  .brand h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
189
189
  .brand .logo { width: 28px; height: 28px; display: block; flex: none; }
190
+ .brand .app-version {
191
+ flex: none;
192
+ align-self: center;
193
+ font-size: 12px;
194
+ font-variant-numeric: tabular-nums;
195
+ }
190
196
 
191
197
  /* Canvas scale controls — stay centered in the header across viewport sizes. */
192
198
  .view-scale { justify-self: center; display: flex; align-items: center; gap: 8px; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tui-cap",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "description": "Capture GitHub Copilot CLI TUI output as editable, branded SVG for marketing and product shots",
6
6
  "license": "MIT",