specpilot 2.11.0 → 2.12.0

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/ui/index.html CHANGED
@@ -38,6 +38,9 @@
38
38
  <stop stop-color="#1481FC"/>
39
39
  <stop offset="1" stop-color="#0077FF"/>
40
40
  </linearGradient>
41
+ <symbol id="wordmark" viewBox="0 0 9216 1024" preserveAspectRatio="xMinYMid meet"><!-- wordmark (BL-PM-014): "SpecPilot" in Sixtyfour 2.001, its glyph outlines (REQ-002.H.32).
42
+ Copyright 2021 The Sixtyfour Project Authors (https://github.com/jenskutilek/homecomputer-fonts).
43
+ Licensed under the SIL Open Font License, Version 1.1: ui/OFL-Sixtyfour.txt --><path fill="currentColor" d="M291 882H733Q761 882 777 867Q793 852 793 832Q793 812 777 797Q761 782 733 782H291Q263 782 247 797Q231 812 231 832Q231 852 247 867Q263 882 291 882ZM163 754H349Q377 754 393 739Q409 724 409 704Q409 684 393 669Q377 654 349 654H163Q135 654 119 669Q103 684 103 704Q103 724 119 739Q135 754 163 754ZM675 754H861Q889 754 905 739Q921 724 921 704Q921 684 905 669Q889 654 861 654H675Q647 654 631 669Q615 684 615 704Q615 724 631 739Q647 754 675 754ZM675 626H861Q889 626 905 611Q921 596 921 576Q921 556 905 541Q889 526 861 526H675Q647 526 631 541Q615 556 615 576Q615 596 631 611Q647 626 675 626ZM291 498H733Q761 498 777 483Q793 468 793 448Q793 428 777 413Q761 398 733 398H291Q263 398 247 413Q231 428 231 448Q231 468 247 483Q263 498 291 498ZM163 370H349Q377 370 393 355Q409 340 409 320Q409 300 393 285Q377 270 349 270H163Q135 270 119 285Q103 300 103 320Q103 340 119 355Q135 370 163 370ZM163 242H349Q377 242 393 227Q409 212 409 192Q409 172 393 157Q377 142 349 142H163Q135 142 119 157Q103 172 103 192Q103 212 119 227Q135 242 163 242ZM675 242H861Q889 242 905 227Q921 212 921 192Q921 172 905 157Q889 142 861 142H675Q647 142 631 157Q615 172 615 192Q615 212 631 227Q647 242 675 242ZM291 114H733Q761 114 777 99Q793 84 793 64Q793 44 777 29Q761 14 733 14H291Q263 14 247 29Q231 44 231 64Q231 84 247 99Q263 114 291 114ZM1187 1010H1373Q1401 1010 1417 995Q1433 980 1433 960Q1433 940 1417 925Q1401 910 1373 910H1187Q1159 910 1143 925Q1127 940 1127 960Q1127 980 1143 995Q1159 1010 1187 1010ZM1187 882H1373Q1401 882 1417 867Q1433 852 1433 832Q1433 812 1417 797Q1401 782 1373 782H1187Q1159 782 1143 797Q1127 812 1127 832Q1127 852 1143 867Q1159 882 1187 882ZM1187 754H1757Q1785 754 1801 739Q1817 724 1817 704Q1817 684 1801 669Q1785 654 1757 654H1187Q1159 654 1143 669Q1127 684 1127 704Q1127 724 1143 739Q1159 754 1187 754ZM1187 626H1373Q1401 626 1417 611Q1433 596 1433 576Q1433 556 1417 541Q1401 526 1373 526H1187Q1159 526 1143 541Q1127 556 1127 576Q1127 596 1143 611Q1159 626 1187 626ZM1699 626H1885Q1913 626 1929 611Q1945 596 1945 576Q1945 556 1929 541Q1913 526 1885 526H1699Q1671 526 1655 541Q1639 556 1639 576Q1639 596 1655 611Q1671 626 1699 626ZM1187 498H1373Q1401 498 1417 483Q1433 468 1433 448Q1433 428 1417 413Q1401 398 1373 398H1187Q1159 398 1143 413Q1127 428 1127 448Q1127 468 1143 483Q1159 498 1187 498ZM1699 498H1885Q1913 498 1929 483Q1945 468 1945 448Q1945 428 1929 413Q1913 398 1885 398H1699Q1671 398 1655 413Q1639 428 1639 448Q1639 468 1655 483Q1671 498 1699 498ZM1187 370H1757Q1785 370 1801 355Q1817 340 1817 320Q1817 300 1801 285Q1785 270 1757 270H1187Q1159 270 1143 285Q1127 300 1127 320Q1127 340 1143 355Q1159 370 1187 370ZM2339 882H2781Q2809 882 2825 867Q2841 852 2841 832Q2841 812 2825 797Q2809 782 2781 782H2339Q2311 782 2295 797Q2279 812 2279 832Q2279 852 2295 867Q2311 882 2339 882ZM2211 754H2397Q2425 754 2441 739Q2457 724 2457 704Q2457 684 2441 669Q2425 654 2397 654H2211Q2183 654 2167 669Q2151 684 2151 704Q2151 724 2167 739Q2183 754 2211 754ZM2211 626H2909Q2937 626 2953 611Q2969 596 2969 576Q2969 556 2953 541Q2937 526 2909 526H2211Q2183 526 2167 541Q2151 556 2151 576Q2151 596 2167 611Q2183 626 2211 626ZM2211 498H2397Q2425 498 2441 483Q2457 468 2457 448Q2457 428 2441 413Q2425 398 2397 398H2211Q2183 398 2167 413Q2151 428 2151 448Q2151 468 2167 483Q2183 498 2211 498ZM2723 498H2909Q2937 498 2953 483Q2969 468 2969 448Q2969 428 2953 413Q2937 398 2909 398H2723Q2695 398 2679 413Q2663 428 2663 448Q2663 468 2679 483Q2695 498 2723 498ZM2339 370H2781Q2809 370 2825 355Q2841 340 2841 320Q2841 300 2825 285Q2809 270 2781 270H2339Q2311 270 2295 285Q2279 300 2279 320Q2279 340 2295 355Q2311 370 2339 370ZM3363 882H3805Q3833 882 3849 867Q3865 852 3865 832Q3865 812 3849 797Q3833 782 3805 782H3363Q3335 782 3319 797Q3303 812 3303 832Q3303 852 3319 867Q3335 882 3363 882ZM3235 754H3421Q3449 754 3465 739Q3481 724 3481 704Q3481 684 3465 669Q3449 654 3421 654H3235Q3207 654 3191 669Q3175 684 3175 704Q3175 724 3191 739Q3207 754 3235 754ZM3235 626H3421Q3449 626 3465 611Q3481 596 3481 576Q3481 556 3465 541Q3449 526 3421 526H3235Q3207 526 3191 541Q3175 556 3175 576Q3175 596 3191 611Q3207 626 3235 626ZM3235 498H3421Q3449 498 3465 483Q3481 468 3481 448Q3481 428 3465 413Q3449 398 3421 398H3235Q3207 398 3191 413Q3175 428 3175 448Q3175 468 3191 483Q3207 498 3235 498ZM3363 370H3805Q3833 370 3849 355Q3865 340 3865 320Q3865 300 3849 285Q3833 270 3805 270H3363Q3335 270 3319 285Q3303 300 3303 320Q3303 340 3319 355Q3335 370 3363 370ZM4259 882H4445Q4473 882 4489 867Q4505 852 4505 832Q4505 812 4489 797Q4473 782 4445 782H4259Q4231 782 4215 797Q4199 812 4199 832Q4199 852 4215 867Q4231 882 4259 882ZM4259 754H4445Q4473 754 4489 739Q4505 724 4505 704Q4505 684 4489 669Q4473 654 4445 654H4259Q4231 654 4215 669Q4199 684 4199 704Q4199 724 4215 739Q4231 754 4259 754ZM4259 626H4445Q4473 626 4489 611Q4505 596 4505 576Q4505 556 4489 541Q4473 526 4445 526H4259Q4231 526 4215 541Q4199 556 4199 576Q4199 596 4215 611Q4231 626 4259 626ZM4259 498H4829Q4857 498 4873 483Q4889 468 4889 448Q4889 428 4873 413Q4857 398 4829 398H4259Q4231 398 4215 413Q4199 428 4199 448Q4199 468 4215 483Q4231 498 4259 498ZM4259 370H4445Q4473 370 4489 355Q4505 340 4505 320Q4505 300 4489 285Q4473 270 4445 270H4259Q4231 270 4215 285Q4199 300 4199 320Q4199 340 4215 355Q4231 370 4259 370ZM4771 370H4957Q4985 370 5001 355Q5017 340 5017 320Q5017 300 5001 285Q4985 270 4957 270H4771Q4743 270 4727 285Q4711 300 4711 320Q4711 340 4727 355Q4743 370 4771 370ZM4259 242H4445Q4473 242 4489 227Q4505 212 4505 192Q4505 172 4489 157Q4473 142 4445 142H4259Q4231 142 4215 157Q4199 172 4199 192Q4199 212 4215 227Q4231 242 4259 242ZM4771 242H4957Q4985 242 5001 227Q5017 212 5017 192Q5017 172 5001 157Q4985 142 4957 142H4771Q4743 142 4727 157Q4711 172 4711 192Q4711 212 4727 227Q4743 242 4771 242ZM4259 114H4829Q4857 114 4873 99Q4889 84 4889 64Q4889 44 4873 29Q4857 14 4829 14H4259Q4231 14 4215 29Q4199 44 4199 64Q4199 84 4215 99Q4231 114 4259 114ZM5411 882H5853Q5881 882 5897 867Q5913 852 5913 832Q5913 812 5897 797Q5881 782 5853 782H5411Q5383 782 5367 797Q5351 812 5351 832Q5351 852 5367 867Q5383 882 5411 882ZM5539 754H5725Q5753 754 5769 739Q5785 724 5785 704Q5785 684 5769 669Q5753 654 5725 654H5539Q5511 654 5495 669Q5479 684 5479 704Q5479 724 5495 739Q5511 754 5539 754ZM5539 626H5725Q5753 626 5769 611Q5785 596 5785 576Q5785 556 5769 541Q5753 526 5725 526H5539Q5511 526 5495 541Q5479 556 5479 576Q5479 596 5495 611Q5511 626 5539 626ZM5411 498H5725Q5753 498 5769 483Q5785 468 5785 448Q5785 428 5769 413Q5753 398 5725 398H5411Q5383 398 5367 413Q5351 428 5351 448Q5351 468 5367 483Q5383 498 5411 498ZM5539 242H5725Q5753 242 5769 227Q5785 212 5785 192Q5785 172 5769 157Q5753 142 5725 142H5539Q5511 142 5495 157Q5479 172 5479 192Q5479 212 5495 227Q5511 242 5539 242ZM6435 882H6877Q6905 882 6921 867Q6937 852 6937 832Q6937 812 6921 797Q6905 782 6877 782H6435Q6407 782 6391 797Q6375 812 6375 832Q6375 852 6391 867Q6407 882 6435 882ZM6563 754H6749Q6777 754 6793 739Q6809 724 6809 704Q6809 684 6793 669Q6777 654 6749 654H6563Q6535 654 6519 669Q6503 684 6503 704Q6503 724 6519 739Q6535 754 6563 754ZM6563 626H6749Q6777 626 6793 611Q6809 596 6809 576Q6809 556 6793 541Q6777 526 6749 526H6563Q6535 526 6519 541Q6503 556 6503 576Q6503 596 6519 611Q6535 626 6563 626ZM6563 498H6749Q6777 498 6793 483Q6809 468 6809 448Q6809 428 6793 413Q6777 398 6749 398H6563Q6535 398 6519 413Q6503 428 6503 448Q6503 468 6519 483Q6535 498 6563 498ZM6563 370H6749Q6777 370 6793 355Q6809 340 6809 320Q6809 300 6793 285Q6777 270 6749 270H6563Q6535 270 6519 285Q6503 300 6503 320Q6503 340 6519 355Q6535 370 6563 370ZM6435 242H6749Q6777 242 6793 227Q6809 212 6809 192Q6809 172 6793 157Q6777 142 6749 142H6435Q6407 142 6391 157Q6375 172 6375 192Q6375 212 6391 227Q6407 242 6435 242ZM7459 882H7901Q7929 882 7945 867Q7961 852 7961 832Q7961 812 7945 797Q7929 782 7901 782H7459Q7431 782 7415 797Q7399 812 7399 832Q7399 852 7415 867Q7431 882 7459 882ZM7331 754H7517Q7545 754 7561 739Q7577 724 7577 704Q7577 684 7561 669Q7545 654 7517 654H7331Q7303 654 7287 669Q7271 684 7271 704Q7271 724 7287 739Q7303 754 7331 754ZM7843 754H8029Q8057 754 8073 739Q8089 724 8089 704Q8089 684 8073 669Q8057 654 8029 654H7843Q7815 654 7799 669Q7783 684 7783 704Q7783 724 7799 739Q7815 754 7843 754ZM7331 626H7517Q7545 626 7561 611Q7577 596 7577 576Q7577 556 7561 541Q7545 526 7517 526H7331Q7303 526 7287 541Q7271 556 7271 576Q7271 596 7287 611Q7303 626 7331 626ZM7843 626H8029Q8057 626 8073 611Q8089 596 8089 576Q8089 556 8073 541Q8057 526 8029 526H7843Q7815 526 7799 541Q7783 556 7783 576Q7783 596 7799 611Q7815 626 7843 626ZM7331 498H7517Q7545 498 7561 483Q7577 468 7577 448Q7577 428 7561 413Q7545 398 7517 398H7331Q7303 398 7287 413Q7271 428 7271 448Q7271 468 7287 483Q7303 498 7331 498ZM7843 498H8029Q8057 498 8073 483Q8089 468 8089 448Q8089 428 8073 413Q8057 398 8029 398H7843Q7815 398 7799 413Q7783 428 7783 448Q7783 468 7799 483Q7815 498 7843 498ZM7459 370H7901Q7929 370 7945 355Q7961 340 7961 320Q7961 300 7945 285Q7929 270 7901 270H7459Q7431 270 7415 285Q7399 300 7399 320Q7399 340 7415 355Q7431 370 7459 370ZM8739 882H9053Q9081 882 9097 867Q9113 852 9113 832Q9113 812 9097 797Q9081 782 9053 782H8739Q8711 782 8695 797Q8679 812 8679 832Q8679 852 8695 867Q8711 882 8739 882ZM8611 754H8797Q8825 754 8841 739Q8857 724 8857 704Q8857 684 8841 669Q8825 654 8797 654H8611Q8583 654 8567 669Q8551 684 8551 704Q8551 724 8567 739Q8583 754 8611 754ZM8611 626H8797Q8825 626 8841 611Q8857 596 8857 576Q8857 556 8841 541Q8825 526 8797 526H8611Q8583 526 8567 541Q8551 556 8551 576Q8551 596 8567 611Q8583 626 8611 626ZM8611 498H8797Q8825 498 8841 483Q8857 468 8857 448Q8857 428 8841 413Q8825 398 8797 398H8611Q8583 398 8567 413Q8551 428 8551 448Q8551 468 8567 483Q8583 498 8611 498ZM8355 370H9053Q9081 370 9097 355Q9113 340 9113 320Q9113 300 9097 285Q9081 270 9053 270H8355Q8327 270 8311 285Q8295 300 8295 320Q8295 340 8311 355Q8327 370 8355 370ZM8611 242H8797Q8825 242 8841 227Q8857 212 8857 192Q8857 172 8841 157Q8825 142 8797 142H8611Q8583 142 8567 157Q8551 172 8551 192Q8551 212 8567 227Q8583 242 8611 242Z"/></symbol>
41
44
  <symbol id="i-term" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M7 10l3 2.5-3 2.5M13 15h4"/></symbol>
42
45
  <symbol id="i-spark" viewBox="0 0 24 24"><path d="M12 3l1.7 4.8L18.5 9.5l-4.8 1.7L12 16l-1.7-4.8L5.5 9.5l4.8-1.7z"/><path d="M18 15.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z"/></symbol>
43
46
  </defs>
@@ -112,6 +115,8 @@
112
115
  <div><h1 id="title">Tasks</h1><div class="sub"><span id="subName" translate="no"></span><span class="mono" id="subPath" translate="no"></span><span id="chatSub" aria-live="polite" hidden></span></div></div>
113
116
  <div class="right">
114
117
  <div class="seg" id="modeSeg"><button class="on" data-m="list">List</button><button data-m="board">Board</button></div>
118
+ <a class="ib" id="editorBtn" hidden aria-label="Open in VS Code" title="Open in VS Code"><svg class="ico" aria-hidden="true" focusable="false"><use href="#i-ext"/></svg></a>
119
+ <button type="button" class="btn line sm" id="newTask" hidden><svg class="ico ico-13" aria-hidden="true" focusable="false"><use href="#i-plus"/></svg>New Task</button>
115
120
  <button type="button" class="btn" id="chatSetups" hidden aria-controls="setups">Setups</button><button type="button" class="btn" id="chatRestart" hidden>Start over</button><button type="button" class="btn" id="chatClose" hidden>Close</button>
116
121
  </div>
117
122
  </div>
@@ -120,7 +125,7 @@
120
125
 
121
126
  <!-- HOME (BL-PM-001): the mockup's #s-welcome column, cut down to what is built and true today -->
122
127
  <section class="view welcome" id="v-home" aria-labelledby="wTitle">
123
- <svg class="logo" aria-hidden="true" focusable="false"><use href="#logo"/></svg>
128
+ <div class="brand"><svg class="logo" aria-hidden="true" focusable="false"><use href="#logo"/></svg><svg class="wordmark" role="img" aria-label="SpecPilot" focusable="false"><use href="#wordmark"/></svg></div>
124
129
  <div><h1 id="wTitle">Your specs, as a board.</h1><p class="lead">SpecPilot reads the <span class="mono" translate="no">.specs/</span> folder of any project on this machine and shows its tasks and spec files as they are written. Your AI IDE keeps doing the coding.</p></div>
125
130
  <div class="cta">
126
131
  <button type="button" class="btn pri big" id="homeOpen">Open a Project Folder</button>
@@ -199,13 +204,15 @@
199
204
 
200
205
  <!-- COMMANDS -->
201
206
  <section class="view" id="v-commands">
202
- <div class="gl"><div class="gh"><span translate="no">.claude/commands/</span> <span class="cnt" id="cmdCnt"></span></div><div class="box" id="cmdBox"></div></div>
203
- <div class="gl"><div class="gh"><span translate="no">.github/prompts/</span> <span class="cnt" id="prmCnt"></span></div><div class="box" id="prmBox"></div></div>
207
+ <div class="gl" id="regenNote" role="status" hidden></div>
208
+ <div class="gl"><div class="gh">From SpecPilot <span class="cnt" id="cmdSpCnt"></span><button type="button" class="more" id="cmdRegen" hidden>Regenerate All</button></div><div class="box" id="cmdBox"></div></div>
209
+ <div class="gl"><div class="gh">Yours <span class="cnt" id="cmdYouCnt"></span></div><div class="box" id="cmdMine"></div></div>
204
210
  </section>
205
211
 
206
212
  <!-- SKILLS -->
207
213
  <section class="view" id="v-skills">
208
- <div class="gl"><div class="gh"><span translate="no">.claude/skills/</span> <span class="cnt" id="sklCnt"></span></div><div class="box" id="sklBox"></div></div>
214
+ <div class="gl"><div class="gh">From SpecPilot <span class="cnt" id="sklSpCnt"></span></div><div class="box" id="sklBox"></div></div>
215
+ <div class="gl"><div class="gh">Yours <span class="cnt" id="sklYouCnt"></span></div><div class="box" id="sklMine"></div></div>
209
216
  </section>
210
217
 
211
218
  </div>
@@ -235,6 +242,17 @@
235
242
  <div class="sf"><span class="cloning" id="cloneStatus" hidden><span class="bar" role="progressbar" aria-label="Cloning"></span><span id="cloneTime">Cloning… 0:00</span></span><button type="button" class="btn" id="openCancel">Cancel</button><button type="submit" class="btn pri" id="openGo" form="openForm">Open</button></div>
236
243
  </div></div>
237
244
 
245
+ <!-- NEW TASK (BL-PM-005): one row appended to Backlog or Current Sprint in planning/tasks.md -->
246
+ <div class="veil" id="taskVeil"><div class="sheet task" role="dialog" aria-modal="true" aria-labelledby="taskTitle" tabindex="-1">
247
+ <div class="sh"><div><h2 id="taskTitle">New Task</h2><p>Adds one row to <span class="mono" translate="no">planning/tasks.md</span>, as you type it.</p></div></div>
248
+ <form class="sb" id="taskForm" autocomplete="off">
249
+ <div class="gl"><div class="gh"><label for="taskIn">Description</label></div><div class="box"><div class="field"><input id="taskIn" name="task-description" type="text" aria-describedby="taskErr" placeholder="What needs doing"></div></div></div>
250
+ <div class="gl"><div class="gh" id="taskSecL">Section</div><div class="seg" id="taskSec" role="group" aria-labelledby="taskSecL"><button type="button" class="on" data-s="backlog" aria-pressed="true">Backlog</button><button type="button" data-s="currentSprint" aria-pressed="false">Current Sprint</button></div></div>
251
+ <p class="err" id="taskErr" role="alert" hidden></p>
252
+ </form>
253
+ <div class="sf"><button type="button" class="btn" id="taskCancel">Cancel</button><button type="submit" class="btn pri" id="taskGo" form="taskForm">Add Task</button></div>
254
+ </div></div>
255
+
238
256
  <!-- PALETTE -->
239
257
  <div class="veil pal-veil" id="palVeil"><div class="pal"><input id="palIn" type="search" name="q" aria-label="Search views, spec files and tasks" placeholder="Jump to a view, spec file or task…" autocomplete="off" spellcheck="false"><ul id="palList"></ul></div></div>
240
258
  <div class="toast" id="toast" role="status" aria-live="polite"></div>
package/ui/route.js CHANGED
@@ -41,9 +41,21 @@ function when(iso){
41
41
  return isNaN(d.getTime())?iso:`${d.getDate()} ${MONTHS[d.getMonth()]} ${d.getFullYear()}, ${p(d.getHours())}:${p(d.getMinutes())}`;
42
42
  }
43
43
 
44
+ /* The vscode://file/ link for an absolute folder path (BL-PM-008): `\` as `/`, each segment
45
+ percent-encoded, but a drive's `:` (`C:`) kept, so `C:\a b` gives `vscode://file/C:/a%20b`.
46
+ With a `line`, `:<line>` is appended as is, so VS Code opens the file at that line. */
47
+ function editorUrl(path,line){
48
+ const segs=String(path).replace(/\\/g,'/').split('/').map((s,i)=>i===0&&/^[A-Za-z]:$/.test(s)?s:encodeURIComponent(s));
49
+ return 'vscode://file'+(segs[0]===''?'':'/')+segs.join('/')+(line?':'+line:'');
50
+ }
51
+ const EDITOR_ICON='<svg class="ico" aria-hidden="true" focusable="false"><use href="#i-ext"/></svg>';
52
+ const REMOVE_ICON='<svg class="ico" aria-hidden="true" focusable="false"><use href="#i-x"/></svg>';
53
+
44
54
  /* The registry as GET /api/projects sends it (BL-067): the rows of the sheet's list, or of Home's
45
- (BL-PM-001), where a row is one button that opens its folder, has no Remove, and a project that
46
- is open also shows the branch /api/specs gives for it (`projects`, as the rail tooltip does). */
55
+ (BL-PM-001), where a row is one button that opens its folder, and a project that
56
+ is open also shows the branch /api/specs gives for it (`projects`, as the rail tooltip does);
57
+ beside the button, a row whose folder exists has the Open in VS Code link (BL-PM-008), and
58
+ every row a Remove icon (BL-PM-014). */
47
59
  function recentHtml(reg,home,projects,chev){
48
60
  if(reg.error)return `<p class="note">${esc(reg.error)}</p>`;
49
61
  if(!reg.entries.length)return '<div class="empty">No projects remembered yet.</div>';
@@ -52,7 +64,9 @@ function recentHtml(reg,home,projects,chev){
52
64
  if(e.project!==null)det.push('open as project '+e.project);
53
65
  if(!e.exists)det.push('folder not found');
54
66
  if(home){const q=e.project!==null&&projects?projects[e.project]:null;
55
- return `<button type="button" class="row act" data-path="${esc(e.path)}"><div class="body"><div class="ttl" translate="no">${esc(e.root+(q&&q.branch?' · '+q.branch:''))}</div><div class="det">${esc(det.join(' · '))}</div></div><div class="trail">${chev||''}</div></button>`;}
67
+ return `<div class="row hrow"><button type="button" class="act" data-path="${esc(e.path)}"><div class="body"><div class="ttl" translate="no">${esc(e.root+(q&&q.branch?' · '+q.branch:''))}</div><div class="det">${esc(det.join(' · '))}</div></div><div class="trail">${chev||''}</div></button>`
68
+ +(e.exists?`<a class="ib" href="${esc(editorUrl(e.path))}" aria-label="${esc(`Open ${e.root} in VS Code`)}" title="Open in VS Code">${EDITOR_ICON}</a>`:'')
69
+ +`<button type="button" class="ib" data-remove="${esc(e.path)}" aria-label="${esc(`Remove ${e.root} from list`)}" title="Remove from list">${REMOVE_ICON}</button></div>`;}
56
70
  return `<div class="row recent"><div class="body" data-path="${esc(e.path)}" role="button" tabindex="0"><div class="ttl" translate="no">${esc(e.root)}</div><div class="det">${esc(det.join(' · '))}</div></div><button type="button" class="btn sm" data-remove="${esc(e.path)}">Remove from list</button></div>`;
57
71
  }).join('');
58
72
  }
@@ -251,7 +265,7 @@ function setupRecord(st){
251
265
  function setupTitle(e){return e.kind==='setup'?(e.name||String(e.root||'').split(/[/\\]/).filter(Boolean).pop()||'Untitled setup'):(e.name||'Untitled setup');}
252
266
  function setupStatus(e){return e.finished?'Ready to create':'In progress';}
253
267
 
254
- const api={resolveRoute,goneHtml,when,recentHtml,openOutcome,reloadView,repoNameFromUrl,projectLabel,
268
+ const api={resolveRoute,goneHtml,when,editorUrl,recentHtml,openOutcome,reloadView,repoNameFromUrl,projectLabel,
255
269
  projectNameError,handleError,HANDLE_PATTERN,flowValue,answered,flowQuestions,nextQuestion,answerError,chatText,answerText,threadRows,recapCards,flowBody,previewFiles,
256
270
  optionHtml,tabsHtml,choiceOptions,SETUPS_KEY,setupsLoad,setupsPut,setupsRemove,setupRecord,setupTitle,setupStatus};
257
271
  if(typeof module==='object'&&module.exports)module.exports=api;else Object.assign(root,api);