specpilot 2.15.0 → 2.17.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.
Files changed (38) hide show
  1. package/README.md +8 -7
  2. package/dist/cli.js +0 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/add-specs.d.ts +1 -2
  5. package/dist/commands/add-specs.d.ts.map +1 -1
  6. package/dist/commands/add-specs.js +1 -1
  7. package/dist/commands/add-specs.js.map +1 -1
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/init.js +27 -33
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/serve.d.ts +4 -2
  12. package/dist/commands/serve.d.ts.map +1 -1
  13. package/dist/commands/serve.js +71 -19
  14. package/dist/commands/serve.js.map +1 -1
  15. package/dist/core/slashCommands.d.ts.map +1 -1
  16. package/dist/core/slashCommands.js +0 -1
  17. package/dist/core/slashCommands.js.map +1 -1
  18. package/dist/utils/slashCommandGenerator.d.ts.map +1 -1
  19. package/dist/utils/slashCommandGenerator.js +6 -0
  20. package/dist/utils/slashCommandGenerator.js.map +1 -1
  21. package/dist/utils/specArchiver.d.ts +9 -2
  22. package/dist/utils/specArchiver.d.ts.map +1 -1
  23. package/dist/utils/specArchiver.js +21 -13
  24. package/dist/utils/specArchiver.js.map +1 -1
  25. package/dist/utils/specServer.d.ts +7 -1
  26. package/dist/utils/specServer.d.ts.map +1 -1
  27. package/dist/utils/specServer.js +73 -14
  28. package/dist/utils/specServer.js.map +1 -1
  29. package/dist/utils/specValidator.js +1 -1
  30. package/dist/utils/taskMover.d.ts +43 -4
  31. package/dist/utils/taskMover.d.ts.map +1 -1
  32. package/dist/utils/taskMover.js +116 -24
  33. package/dist/utils/taskMover.js.map +1 -1
  34. package/package.json +1 -1
  35. package/ui/app.css +35 -5
  36. package/ui/app.js +212 -79
  37. package/ui/index.html +17 -11
  38. package/ui/route.js +3 -1
package/ui/route.js CHANGED
@@ -12,12 +12,14 @@ const esc=s=>String(s).replace(/[&<>"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;',
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];