specpilot 2.16.0 → 2.18.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/README.md +10 -7
- package/dist/commands/serve.d.ts +4 -2
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +71 -19
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +59 -74
- package/dist/commands/validate.js.map +1 -1
- package/dist/core/ideConfig.js +1 -1
- package/dist/core/ideConfig.js.map +1 -1
- package/dist/core/specFiles.js +14 -5
- package/dist/core/specFiles.js.map +1 -1
- package/dist/utils/mcpLocal.d.ts +2 -0
- package/dist/utils/mcpLocal.d.ts.map +1 -1
- package/dist/utils/mcpLocal.js +14 -6
- package/dist/utils/mcpLocal.js.map +1 -1
- package/dist/utils/specArchiver.d.ts +9 -2
- package/dist/utils/specArchiver.d.ts.map +1 -1
- package/dist/utils/specArchiver.js +21 -13
- package/dist/utils/specArchiver.js.map +1 -1
- package/dist/utils/specReader.d.ts +62 -4
- package/dist/utils/specReader.d.ts.map +1 -1
- package/dist/utils/specReader.js +75 -2
- package/dist/utils/specReader.js.map +1 -1
- package/dist/utils/specServer.d.ts +10 -1
- package/dist/utils/specServer.d.ts.map +1 -1
- package/dist/utils/specServer.js +111 -14
- package/dist/utils/specServer.js.map +1 -1
- package/dist/utils/specValidator.d.ts +28 -0
- package/dist/utils/specValidator.d.ts.map +1 -1
- package/dist/utils/specValidator.js +79 -1
- package/dist/utils/specValidator.js.map +1 -1
- package/dist/utils/taskMover.d.ts +99 -12
- package/dist/utils/taskMover.d.ts.map +1 -1
- package/dist/utils/taskMover.js +276 -35
- package/dist/utils/taskMover.js.map +1 -1
- package/package.json +1 -1
- package/ui/app.css +80 -10
- package/ui/app.js +377 -91
- package/ui/index.html +20 -11
- package/ui/route.js +3 -1
package/ui/index.html
CHANGED
|
@@ -54,9 +54,13 @@
|
|
|
54
54
|
<symbol id="i-shield" viewBox="0 0 24 24"><path d="M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/><path d="M9 12l2 2 4-4"/></symbol>
|
|
55
55
|
<symbol id="i-bot" viewBox="0 0 24 24"><rect x="4" y="8" width="16" height="12" rx="2"/><path d="M12 8V4M8 4h8"/><circle cx="9" cy="14" r="1"/><circle cx="15" cy="14" r="1"/></symbol>
|
|
56
56
|
<symbol id="i-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
|
|
57
|
+
<symbol id="i-dots" viewBox="0 0 24 24"><path d="M5 12h.01M12 12h.01M19 12h.01"/></symbol>
|
|
58
|
+
<symbol id="i-archive" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="4" rx="1"/><path d="M5 8v11a1 1 0 001 1h12a1 1 0 001-1V8M10 12h4"/></symbol>
|
|
57
59
|
<symbol id="i-gear" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 00.3 1.8l.1.1a2 2 0 11-2.8 2.8l-.1-.1a1.7 1.7 0 00-1.8-.3 1.7 1.7 0 00-1 1.5V21a2 2 0 11-4 0v-.1a1.7 1.7 0 00-1.1-1.5 1.7 1.7 0 00-1.8.3l-.1.1a2 2 0 11-2.8-2.8l.1-.1a1.7 1.7 0 00.3-1.8 1.7 1.7 0 00-1.5-1H3a2 2 0 110-4h.1a1.7 1.7 0 001.5-1.1 1.7 1.7 0 00-.3-1.8l-.1-.1a2 2 0 112.8-2.8l.1.1a1.7 1.7 0 001.8.3H9a1.7 1.7 0 001-1.5V3a2 2 0 114 0v.1a1.7 1.7 0 001 1.5 1.7 1.7 0 001.8-.3l.1-.1a2 2 0 112.8 2.8l-.1.1a1.7 1.7 0 00-.3 1.8V9a1.7 1.7 0 001.5 1H21a2 2 0 110 4h-.1a1.7 1.7 0 00-1.5 1z"/></symbol>
|
|
58
60
|
<symbol id="i-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></symbol>
|
|
59
61
|
<symbol id="i-x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18"/></symbol>
|
|
62
|
+
<symbol id="i-warn" viewBox="0 0 24 24"><path d="M12 4l9 16H3z"/><path d="M12 10v4M12 17h.01"/></symbol>
|
|
63
|
+
<symbol id="i-info" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8h.01"/></symbol>
|
|
60
64
|
<symbol id="i-file" viewBox="0 0 24 24"><path d="M6 3h8l4 4v14H6z"/><path d="M14 3v4h4"/></symbol>
|
|
61
65
|
<symbol id="i-play" viewBox="0 0 24 24"><path d="M7 5l12 7-12 7z"/></symbol>
|
|
62
66
|
<symbol id="i-git" viewBox="0 0 24 24"><circle cx="6" cy="6" r="2.5"/><circle cx="6" cy="18" r="2.5"/><circle cx="18" cy="8" r="2.5"/><path d="M6 8.5v7M18 10.5c0 4-12 2-12 5"/></symbol>
|
|
@@ -116,10 +120,8 @@
|
|
|
116
120
|
<button class="ib menu" id="menuBtn" aria-label="Show sidebar"><svg class="ico" aria-hidden="true" focusable="false"><use href="#i-menu"/></svg></button>
|
|
117
121
|
<div><h1 id="title">Tasks</h1><div class="sub"><span id="subName" translate="no"></span><span class="mono" id="subPath" translate="no"></span><span class="mono" id="crumb" translate="no" hidden></span></div></div>
|
|
118
122
|
<div class="right">
|
|
119
|
-
<div class="seg" id="modeSeg"><button class="on" data-m="list">List</button><button data-m="board">Board</button></div>
|
|
120
123
|
<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>
|
|
121
124
|
<div class="idewrap" id="ideWrap" hidden><button type="button" class="ib" id="ideBtn" aria-haspopup="menu" aria-expanded="false" aria-controls="ideMenu" aria-label="Open in AI IDE" title="Open in AI IDE"><svg class="ico" aria-hidden="true" focusable="false"><use href="#i-spark"/></svg></button><div class="idemenu" id="ideMenu" role="menu" aria-label="Open in AI IDE" hidden></div></div>
|
|
122
|
-
<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>
|
|
123
125
|
</div>
|
|
124
126
|
</div>
|
|
125
127
|
<div class="content" id="content" tabindex="-1">
|
|
@@ -145,14 +147,10 @@
|
|
|
145
147
|
|
|
146
148
|
<!-- TASKS: the rows of planning/tasks.md, from readSpecs() -->
|
|
147
149
|
<section class="view on" id="v-board">
|
|
148
|
-
<div id="listMode">
|
|
149
|
-
<div class="gl" id="gSprint" data-col="currentSprint"></div>
|
|
150
|
-
<div class="gl mt18" id="gBacklog" data-col="backlog"></div>
|
|
151
|
-
<div class="gl mt18" id="gDone" data-col="completed"></div>
|
|
152
|
-
</div>
|
|
153
|
-
<div id="boardMode" class="board" hidden></div>
|
|
154
150
|
<div class="gl" id="gRaw" hidden></div>
|
|
151
|
+
<div class="gl" id="gHead" hidden role="status" aria-live="polite"></div>
|
|
155
152
|
<div class="gl" id="gConv"></div>
|
|
153
|
+
<div id="boardMode" class="board"></div>
|
|
156
154
|
</section>
|
|
157
155
|
|
|
158
156
|
<!-- EXPLORER: the .specs/ folder -->
|
|
@@ -240,17 +238,28 @@
|
|
|
240
238
|
|
|
241
239
|
<!-- NEW TASK (BL-PM-005): one row appended to Backlog or Current Sprint in planning/tasks.md -->
|
|
242
240
|
<div class="veil" id="taskVeil"><div class="sheet task" role="dialog" aria-modal="true" aria-labelledby="taskTitle" tabindex="-1">
|
|
243
|
-
<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
|
|
241
|
+
<div class="sh"><div><h2 id="taskTitle">New Task · <span id="taskLane">Backlog</span></h2><p>Adds one row to <span class="mono" translate="no">planning/tasks.md</span>, as you type it. <span id="taskNextWrap" hidden>Next ID <span class="mono" id="taskNext" translate="no"></span></span></p></div></div>
|
|
244
242
|
<form class="sb" id="taskForm" autocomplete="off">
|
|
245
|
-
<div class="gl"><div class="gh"><label for="taskIn">Description</label></div><div class="box"><div class="field"><
|
|
246
|
-
<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>
|
|
243
|
+
<div class="gl"><div class="gh"><label for="taskIn">Description</label></div><div class="box"><div class="field"><textarea id="taskIn" name="task-description" rows="3" aria-describedby="taskErr" placeholder="What needs doing"></textarea></div></div></div>
|
|
247
244
|
<p class="err" id="taskErr" role="alert" hidden></p>
|
|
248
245
|
</form>
|
|
249
246
|
<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>
|
|
250
247
|
</div></div>
|
|
251
248
|
|
|
249
|
+
<!-- ARCHIVE COMPLETED (BL-TB-06, D8): what the action does, the gates that apply, a box to tick for each that warns -->
|
|
250
|
+
<div class="veil" id="archVeil"><div class="sheet task" role="dialog" aria-modal="true" aria-labelledby="archTitle" tabindex="-1">
|
|
251
|
+
<div class="sh"><div><h2 id="archTitle">Archive oldest Completed rows</h2><p>Moves the oldest rows of <span class="mono" translate="no">## Completed</span> in <span class="mono" translate="no">planning/tasks.md</span> into a dated block at the end of <span class="mono" translate="no">planning/tasks-archive.md</span>, as <span class="mono" translate="no">specpilot archive</span> does. The newest 20 stay; <span class="mono" translate="no">prompts.md</span> is not touched.</p></div></div>
|
|
252
|
+
<form class="sb" id="archForm" autocomplete="off">
|
|
253
|
+
<div class="gl"><div class="gh">Checks</div><div class="box" id="archGates"></div></div>
|
|
254
|
+
<p class="err" id="archErr" role="alert" hidden></p>
|
|
255
|
+
</form>
|
|
256
|
+
<div class="sf"><button type="button" class="btn" id="archCancel">Cancel</button><button type="submit" class="btn pri" id="archGo" form="archForm">Archive</button></div>
|
|
257
|
+
</div></div>
|
|
258
|
+
|
|
252
259
|
<!-- PALETTE -->
|
|
253
260
|
<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>
|
|
261
|
+
<!-- CARD MENU (BL-TB-11): a task card's actions, built from the move table of /api/specs -->
|
|
262
|
+
<div class="idemenu cardmenu" id="cardMenu" role="menu" aria-label="Task actions" hidden></div>
|
|
254
263
|
<div class="toast" id="toast" role="status" aria-live="polite"></div>
|
|
255
264
|
</body>
|
|
256
265
|
</html>
|
package/ui/route.js
CHANGED
|
@@ -12,12 +12,14 @@ const esc=s=>String(s).replace(/[&<>"]/g,c=>({'&':'&','<':'<','>':'>',
|
|
|
12
12
|
that names no served project goes to project 0's Tasks view. "#home" is the Home screen
|
|
13
13
|
(BL-PM-001) when `home` says the page has one, and "#new" the new-project chat (BL-PM-004) on the
|
|
14
14
|
same terms: both belong to no project, so an index before them and anything after is ignored;
|
|
15
|
-
without `home` they are unknown views.
|
|
15
|
+
without `home` they are unknown views. A `count` of 0 (no project served, BL-080) keeps those two
|
|
16
|
+
and sends every other hash, the empty one included, to Home; the boot call passes Infinity. */
|
|
16
17
|
function resolveRoute(hash,files,count,home){
|
|
17
18
|
let h=String(hash||'').replace(/^#/,''),project=0;
|
|
18
19
|
const m=/^(\d+)\/(.*)$/.exec(h);
|
|
19
20
|
const top=/^(home|new)(\/|$)/.exec(m?m[2]:h);
|
|
20
21
|
if(home&&top)return {project:0,view:top[1],sub:'',missing:false};
|
|
22
|
+
if(home&&count===0)return {project:0,view:'home',sub:'',missing:false};
|
|
21
23
|
if(m){
|
|
22
24
|
if(!/^(0|[1-9][0-9]*)$/.test(m[1])||Number(m[1])>=(count||1))return {project:0,view:'board',sub:'',missing:false};
|
|
23
25
|
project=Number(m[1]);h=m[2];
|