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/README.md +11 -8
- package/dist/commands/serve.js +2 -2
- package/dist/commands/serve.js.map +1 -1
- package/dist/utils/slashCommandGenerator.d.ts +7 -1
- package/dist/utils/slashCommandGenerator.d.ts.map +1 -1
- package/dist/utils/slashCommandGenerator.js +95 -28
- package/dist/utils/slashCommandGenerator.js.map +1 -1
- package/dist/utils/specBackfiller.d.ts +1 -1
- package/dist/utils/specBackfiller.d.ts.map +1 -1
- package/dist/utils/specBackfiller.js.map +1 -1
- package/dist/utils/specReader.d.ts +4 -0
- package/dist/utils/specReader.d.ts.map +1 -1
- package/dist/utils/specReader.js +4 -4
- package/dist/utils/specReader.js.map +1 -1
- package/dist/utils/specServer.d.ts +26 -3
- package/dist/utils/specServer.d.ts.map +1 -1
- package/dist/utils/specServer.js +102 -5
- package/dist/utils/specServer.js.map +1 -1
- package/dist/utils/taskMover.d.ts +42 -0
- package/dist/utils/taskMover.d.ts.map +1 -1
- package/dist/utils/taskMover.js +177 -25
- package/dist/utils/taskMover.js.map +1 -1
- package/package.json +1 -1
- package/ui/OFL-Sixtyfour.txt +93 -0
- package/ui/app.css +16 -1
- package/ui/app.js +80 -15
- package/ui/index.html +22 -4
- package/ui/route.js +18 -4
package/dist/utils/taskMover.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STALE_ERROR = exports.sha256 = exports.SECTION_HEADINGS = exports.WRITABLE_TASKS_FILE = void 0;
|
|
3
|
+
exports.NEW_STALE_ERROR = exports.MAX_DESCRIPTION = exports.TASKS_ARCHIVE_FILE = exports.STALE_ERROR = exports.sha256 = exports.SECTION_HEADINGS = exports.WRITABLE_TASKS_FILE = void 0;
|
|
4
4
|
exports.moveShapeError = moveShapeError;
|
|
5
5
|
exports.planMove = planMove;
|
|
6
6
|
exports.moveTask = moveTask;
|
|
7
|
+
exports.newTaskShapeError = newTaskShapeError;
|
|
8
|
+
exports.nextTaskId = nextTaskId;
|
|
9
|
+
exports.planNewTask = planNewTask;
|
|
10
|
+
exports.newTask = newTask;
|
|
7
11
|
const fs_1 = require("fs");
|
|
8
12
|
const crypto_1 = require("crypto");
|
|
9
13
|
const path_1 = require("path");
|
|
10
14
|
const specReader_1 = require("./specReader");
|
|
11
15
|
const specValidator_1 = require("./specValidator");
|
|
12
16
|
// The one writer behind `specpilot serve` (BL-053, ARCH-003.18, ARCH-004.36). A move removes one
|
|
13
|
-
// line of tasks.md and inserts the identical line elsewhere;
|
|
17
|
+
// line of tasks.md and inserts the identical line elsewhere; a new task (BL-PM-005) inserts one line;
|
|
18
|
+
// every other byte stays as it was.
|
|
14
19
|
/** The write allowlist: exactly one file, separate from what the server may read. */
|
|
15
20
|
exports.WRITABLE_TASKS_FILE = '.specs/planning/tasks.md';
|
|
16
21
|
/** The section headings as tasks.md writes them (what readSpecs() matches). */
|
|
@@ -66,12 +71,8 @@ function planMove(content, move) {
|
|
|
66
71
|
return { ok: true, content: out.join('\n'), from, fromIndex: hit.i, noop: false };
|
|
67
72
|
}
|
|
68
73
|
exports.STALE_ERROR = 'planning/tasks.md changed on disk since this page loaded. The move was not made.';
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
* read to the rename, so nothing else in this process runs in between; the caller's lock queues
|
|
72
|
-
* requests. Writes a temp file in the same folder, fsyncs it, keeps the mode, renames it over.
|
|
73
|
-
*/
|
|
74
|
-
function moveTask(root, move, ifMatch) {
|
|
74
|
+
/** Read tasks.md for a write: refuses a missing or symlinked file, a stale hash and bytes that are not UTF-8. */
|
|
75
|
+
function loadTasks(root, ifMatch, stale, doing) {
|
|
75
76
|
const file = (0, path_1.join)(root, exports.WRITABLE_TASKS_FILE);
|
|
76
77
|
let st;
|
|
77
78
|
try {
|
|
@@ -84,36 +85,39 @@ function moveTask(root, move, ifMatch) {
|
|
|
84
85
|
return { status: 422, error: 'planning/tasks.md is a symbolic link, and SpecPilot will not replace it with a regular file.' };
|
|
85
86
|
const before = (0, fs_1.readFileSync)(file);
|
|
86
87
|
if ((0, exports.sha256)(before) !== ifMatch)
|
|
87
|
-
return { status: 409, error:
|
|
88
|
+
return { status: 409, error: stale };
|
|
88
89
|
const content = before.toString('utf-8');
|
|
89
|
-
// Decoding and re-encoding must give back the same bytes, or the write would alter lines it never
|
|
90
|
+
// Decoding and re-encoding must give back the same bytes, or the write would alter lines it never touched.
|
|
90
91
|
if (!Buffer.from(content, 'utf-8').equals(before)) {
|
|
91
|
-
return { status: 422, error:
|
|
92
|
+
return { status: 422, error: `planning/tasks.md contains bytes that are not valid UTF-8, so SpecPilot cannot ${doing} without changing others.` };
|
|
92
93
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
return { file, mode: st.mode, content };
|
|
95
|
+
}
|
|
96
|
+
/** What `specpilot validate` would report about `after` that it does not report about `before`. */
|
|
97
|
+
const newChecks = (before, after) => {
|
|
98
|
+
const was = new Set((0, specValidator_1.tasksChecks)(before));
|
|
99
|
+
return (0, specValidator_1.tasksChecks)(after).filter(m => !was.has(m));
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Replace tasks.md with `content`: a temp file in the same folder, fsync, the original mode, a last
|
|
103
|
+
* look at the hash, rename. Returns the new hash, or null when the file changed meanwhile.
|
|
104
|
+
*/
|
|
105
|
+
function writeTasks({ file, mode }, ifMatch, content) {
|
|
102
106
|
const tmp = (0, path_1.join)((0, path_1.dirname)(file), `.tasks.md.${(0, crypto_1.randomBytes)(6).toString('hex')}.tmp`);
|
|
103
107
|
try {
|
|
104
|
-
const fd = (0, fs_1.openSync)(tmp, 'wx',
|
|
108
|
+
const fd = (0, fs_1.openSync)(tmp, 'wx', mode & 0o777);
|
|
105
109
|
try {
|
|
106
|
-
(0, fs_1.writeSync)(fd,
|
|
110
|
+
(0, fs_1.writeSync)(fd, content);
|
|
107
111
|
(0, fs_1.fsyncSync)(fd);
|
|
108
112
|
}
|
|
109
113
|
finally {
|
|
110
114
|
(0, fs_1.closeSync)(fd);
|
|
111
115
|
}
|
|
112
|
-
(0, fs_1.chmodSync)(tmp,
|
|
116
|
+
(0, fs_1.chmodSync)(tmp, mode & 0o7777);
|
|
113
117
|
// Last look: an editor may have saved while we were writing.
|
|
114
118
|
if ((0, exports.sha256)((0, fs_1.readFileSync)(file)) !== ifMatch) {
|
|
115
119
|
(0, fs_1.unlinkSync)(tmp);
|
|
116
|
-
return
|
|
120
|
+
return null;
|
|
117
121
|
}
|
|
118
122
|
(0, fs_1.renameSync)(tmp, file);
|
|
119
123
|
}
|
|
@@ -126,6 +130,154 @@ function moveTask(root, move, ifMatch) {
|
|
|
126
130
|
}
|
|
127
131
|
throw err;
|
|
128
132
|
}
|
|
129
|
-
return
|
|
133
|
+
return (0, exports.sha256)(content);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Apply a move to tasks.md on disk if `ifMatch` is its current sha256. Synchronous from the first
|
|
137
|
+
* read to the rename, so nothing else in this process runs in between; the caller's lock queues
|
|
138
|
+
* requests. Writes a temp file in the same folder, fsyncs it, keeps the mode, renames it over.
|
|
139
|
+
*/
|
|
140
|
+
function moveTask(root, move, ifMatch) {
|
|
141
|
+
const loaded = loadTasks(root, ifMatch, exports.STALE_ERROR, 'move a line');
|
|
142
|
+
if ('status' in loaded)
|
|
143
|
+
return loaded;
|
|
144
|
+
const plan = planMove(loaded.content, move);
|
|
145
|
+
if (!plan.ok)
|
|
146
|
+
return { status: 422, error: plan.error };
|
|
147
|
+
if (plan.noop)
|
|
148
|
+
return { status: 200, sha256: ifMatch, from: plan.from, fromIndex: plan.fromIndex };
|
|
149
|
+
const introduced = newChecks(loaded.content, plan.content);
|
|
150
|
+
if (introduced.length)
|
|
151
|
+
return { status: 422, error: `The move was not made, because \`specpilot validate\` would then report: ${introduced.join(' ')}` };
|
|
152
|
+
const written = writeTasks(loaded, ifMatch, plan.content);
|
|
153
|
+
if (written === null)
|
|
154
|
+
return { status: 409, error: exports.STALE_ERROR };
|
|
155
|
+
return { status: 200, sha256: written, from: plan.from, fromIndex: plan.fromIndex };
|
|
156
|
+
}
|
|
157
|
+
// ---- New Task (BL-PM-005, REQ-002.H.29, ARCH-004.48): one line appended to Backlog or Current Sprint
|
|
158
|
+
/** Read only, for IDs in use. */
|
|
159
|
+
exports.TASKS_ARCHIVE_FILE = '.specs/planning/tasks-archive.md';
|
|
160
|
+
const PREFIX = { backlog: 'BL', currentSprint: 'CS' };
|
|
161
|
+
exports.MAX_DESCRIPTION = 4000;
|
|
162
|
+
/** Check a New Task body; returns a plain-words problem or null. The description is checked as sent, before trimming. */
|
|
163
|
+
function newTaskShapeError(body) {
|
|
164
|
+
const b = body;
|
|
165
|
+
if (!b || typeof b !== 'object')
|
|
166
|
+
return 'The request must be a JSON object with description and section.';
|
|
167
|
+
if (b.section !== 'backlog' && b.section !== 'currentSprint')
|
|
168
|
+
return 'New tasks can only go to Backlog or Current Sprint.';
|
|
169
|
+
const d = b.description;
|
|
170
|
+
if (typeof d !== 'string' || !d.trim())
|
|
171
|
+
return 'Type a description for the task.';
|
|
172
|
+
if (/[\r\n\u2028\u2029]/.test(d))
|
|
173
|
+
return 'The description must be one line: a table row cannot hold a line break.';
|
|
174
|
+
// eslint-disable-next-line no-control-regex
|
|
175
|
+
if (/[\u0000-\u001f\u007f-\u009f]/.test(d))
|
|
176
|
+
return 'The description contains a control character (such as a tab), which a table row cannot hold as typed.';
|
|
177
|
+
if (/[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/.test(d))
|
|
178
|
+
return 'The description contains a character that cannot be written as UTF-8.';
|
|
179
|
+
if (d.includes('|'))
|
|
180
|
+
return 'The description cannot contain |, because it would split the table cell. Write it another way, e.g. "or".';
|
|
181
|
+
if (d.trim().endsWith('\\'))
|
|
182
|
+
return 'The description cannot end in \\, because the table would read it with the closing | as an escaped pipe.';
|
|
183
|
+
if ([...d.trim()].length > exports.MAX_DESCRIPTION)
|
|
184
|
+
return `The description is longer than ${exports.MAX_DESCRIPTION} characters.`;
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* The next free ID with this prefix: the highest number in ID positions plus one, at least three
|
|
189
|
+
* digits. ID positions are a table row's ID cell (the first cell, or the second after a `#` number
|
|
190
|
+
* cell) and the leading bracketed tags of a numbered list item (`28. [CD-067] [CS-014] …`). IDs in
|
|
191
|
+
* running text never count, and `BL-PM-005` is not `BL-<digits>`.
|
|
192
|
+
*/
|
|
193
|
+
function nextTaskId(prefix, texts) {
|
|
194
|
+
const id = new RegExp(`^\\[?${prefix}-(\\d+)\\]?$`);
|
|
195
|
+
let max = 0;
|
|
196
|
+
const take = (token) => {
|
|
197
|
+
const m = id.exec(token);
|
|
198
|
+
if (m)
|
|
199
|
+
max = Math.max(max, Number(m[1]));
|
|
200
|
+
};
|
|
201
|
+
for (const text of texts) {
|
|
202
|
+
for (const raw of text.split('\n')) {
|
|
203
|
+
const line = raw.trim();
|
|
204
|
+
if (line.startsWith('|')) {
|
|
205
|
+
const cells = line.split('|');
|
|
206
|
+
const first = (cells[1] ?? '').trim();
|
|
207
|
+
const cell = /^\d+$/.test(first) ? (cells[2] ?? '').trim() : first;
|
|
208
|
+
cell.split(/\s+/).forEach(take);
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
const item = /^\d+\.\s+((?:\[[^\]\s]+\]\s*)+)/.exec(line);
|
|
212
|
+
if (item)
|
|
213
|
+
(item[1].match(/\[[^\]\s]+\]/g) ?? []).forEach(take);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return `${prefix}-${String(max + 1).padStart(3, '0')}`;
|
|
217
|
+
}
|
|
218
|
+
/** Work out a new task on tasks.md content in memory: the content with one line inserted, or why not. */
|
|
219
|
+
function planNewTask(content, archive, task) {
|
|
220
|
+
const target = (0, specReader_1.taskRowLines)(content)[task.section];
|
|
221
|
+
const name = exports.SECTION_HEADINGS[task.section];
|
|
222
|
+
if (!target)
|
|
223
|
+
return { ok: false, error: `planning/tasks.md has no ## ${name} section.` };
|
|
224
|
+
if (target.separator === null)
|
|
225
|
+
return { ok: false, error: `${name} has no table yet.` };
|
|
226
|
+
const lines = content.split('\n');
|
|
227
|
+
const after = target.rows.length ? target.rows[target.rows.length - 1].line : target.separator;
|
|
228
|
+
if (after === lines.length - 1) {
|
|
229
|
+
return { ok: false, error: 'The new row would become the last line of planning/tasks.md, which has no line break after its last line. Add one and try again.' };
|
|
230
|
+
}
|
|
231
|
+
const id = nextTaskId(PREFIX[task.section], [content, archive]);
|
|
232
|
+
const eol = lines[after].endsWith('\r') ? '\r' : '';
|
|
233
|
+
const out = lines.slice();
|
|
234
|
+
out.splice(after + 1, 0, `| ${id} | ${task.description.trim()} |${eol}`);
|
|
235
|
+
return { ok: true, content: out.join('\n'), id, index: target.rows.length };
|
|
236
|
+
}
|
|
237
|
+
exports.NEW_STALE_ERROR = 'planning/tasks.md changed on disk since this page loaded, so the task was not added. The page now shows the file as it is: check it, then press Add Task again.';
|
|
238
|
+
/** The archive's text for IDs; missing is fine, anything SpecPilot cannot read as plain UTF-8 is refused. */
|
|
239
|
+
function readArchive(root) {
|
|
240
|
+
const file = (0, path_1.join)(root, exports.TASKS_ARCHIVE_FILE);
|
|
241
|
+
let st;
|
|
242
|
+
try {
|
|
243
|
+
st = (0, fs_1.lstatSync)(file);
|
|
244
|
+
}
|
|
245
|
+
catch {
|
|
246
|
+
return '';
|
|
247
|
+
}
|
|
248
|
+
if (st.isSymbolicLink())
|
|
249
|
+
return { status: 422, error: 'planning/tasks-archive.md is a symbolic link, so SpecPilot cannot tell which IDs are in use.' };
|
|
250
|
+
if (!st.isFile())
|
|
251
|
+
return { status: 422, error: 'planning/tasks-archive.md is not a regular file, so SpecPilot cannot tell which IDs are in use.' };
|
|
252
|
+
let bytes;
|
|
253
|
+
try {
|
|
254
|
+
bytes = (0, fs_1.readFileSync)(file);
|
|
255
|
+
}
|
|
256
|
+
catch {
|
|
257
|
+
return { status: 422, error: 'planning/tasks-archive.md could not be read, so SpecPilot cannot tell which IDs are in use.' };
|
|
258
|
+
}
|
|
259
|
+
const text = bytes.toString('utf-8');
|
|
260
|
+
if (!Buffer.from(text, 'utf-8').equals(bytes))
|
|
261
|
+
return { status: 422, error: 'planning/tasks-archive.md contains bytes that are not valid UTF-8, so SpecPilot cannot tell which IDs are in use.' };
|
|
262
|
+
return text;
|
|
263
|
+
}
|
|
264
|
+
/** Append a new task to tasks.md on disk if `ifMatch` is its current sha256; the same steps and guards as moveTask(). */
|
|
265
|
+
function newTask(root, task, ifMatch) {
|
|
266
|
+
const loaded = loadTasks(root, ifMatch, exports.NEW_STALE_ERROR, 'add a line');
|
|
267
|
+
if ('status' in loaded)
|
|
268
|
+
return loaded;
|
|
269
|
+
const archive = readArchive(root);
|
|
270
|
+
if (typeof archive !== 'string')
|
|
271
|
+
return archive;
|
|
272
|
+
const plan = planNewTask(loaded.content, archive, task);
|
|
273
|
+
if (!plan.ok)
|
|
274
|
+
return { status: 422, error: plan.error };
|
|
275
|
+
const introduced = newChecks(loaded.content, plan.content);
|
|
276
|
+
if (introduced.length)
|
|
277
|
+
return { status: 422, error: `The task was not added, because \`specpilot validate\` would then report: ${introduced.join(' ')}` };
|
|
278
|
+
const written = writeTasks(loaded, ifMatch, plan.content);
|
|
279
|
+
if (written === null)
|
|
280
|
+
return { status: 409, error: exports.NEW_STALE_ERROR };
|
|
281
|
+
return { status: 200, sha256: written, id: plan.id, section: task.section, index: plan.index };
|
|
130
282
|
}
|
|
131
283
|
//# sourceMappingURL=taskMover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskMover.js","sourceRoot":"","sources":["../../src/utils/task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AAC,CAAC;IAClC,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC;IAChD,MAAM,IAAI,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACxD,IAAI,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;IAExD,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,IAAI,UAAU,CAAC,MAAM;QAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,6EAA6E,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;IAE1J,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1D,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,uBAAe,EAAE,CAAC;IACrE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;AACjG,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2021 The Sixtyfour Project Authors (https://github.com/jenskutilek/homecomputer-fonts)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/ui/app.css
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
--orange:#f59e0b;--orange-soft:rgba(245,158,11,.14);--orange-ink:#fbbf24;
|
|
10
10
|
--red:#ef4444;--red-soft:rgba(239,68,68,.14);--red-ink:#f87171;
|
|
11
11
|
--violet:#8b5cf6;--violet-soft:rgba(139,92,246,.16);--violet-ink:#c4b5fd;
|
|
12
|
+
--brand-ink:#79b8ff; /* specpilot.dev's nav wordmark, dark (BL-PM-014) */
|
|
12
13
|
--blue:#3b82f6;--blue-soft:rgba(59,130,246,.16);--blue-ink:#93c5fd;
|
|
13
14
|
--hover:rgba(148,163,184,.08);--press:rgba(148,163,184,.14);--sel:rgba(96,165,250,.14);--sel-line:#60a5fa;
|
|
14
15
|
--shadow:none;
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
--orange:#d97706;--orange-soft:rgba(217,119,6,.12);--orange-ink:#b45309;
|
|
29
30
|
--red:#dc2626;--red-soft:rgba(220,38,38,.12);--red-ink:#b91c1c;
|
|
30
31
|
--violet:#7c3aed;--violet-soft:rgba(124,58,237,.12);--violet-ink:#6d28d9;
|
|
32
|
+
--brand-ink:#0058be;
|
|
31
33
|
--blue:#2563eb;--blue-soft:rgba(37,99,235,.12);--blue-ink:#1d4ed8;
|
|
32
34
|
--hover:rgba(15,23,42,.05);--press:rgba(15,23,42,.09);--sel:rgba(37,99,235,.12);--sel-line:#2563eb;
|
|
33
35
|
color-scheme:light;
|
|
@@ -122,6 +124,8 @@ a{color:var(--accent);text-decoration:none}
|
|
|
122
124
|
.gl .gh .cnt{color:var(--label-3);font-weight:500;font-variant-numeric:tabular-nums;text-transform:none;letter-spacing:0}
|
|
123
125
|
.gl .gh .more{margin-left:auto;color:var(--green-ink);font-weight:500;font-size:12.5px;text-transform:none;letter-spacing:0}
|
|
124
126
|
.gl .gh .more:hover{text-decoration:underline}
|
|
127
|
+
.gl .gh .more:disabled{opacity:.6;cursor:default;text-decoration:none}
|
|
128
|
+
#regenNote .note{margin:0 0 6px;overflow-wrap:anywhere}
|
|
125
129
|
.gl .gh .disc{width:20px;height:20px;display:grid;place-items:center;color:var(--label-3);transition:transform .18s;transform-origin:center}
|
|
126
130
|
.gl.closed .gh .disc{transform:rotate(-90deg)}
|
|
127
131
|
.gl.closed .box{display:none}
|
|
@@ -335,6 +339,10 @@ input.txt{width:100%}
|
|
|
335
339
|
.field .ico{color:var(--label-3);flex:none}
|
|
336
340
|
.field input{flex:1;background:transparent;border:0;outline:0;font-family:var(--mono);font-size:13px;color:var(--label);min-width:0;padding:6px 0}
|
|
337
341
|
.field input::placeholder{color:var(--label-3)}
|
|
342
|
+
.sheet.task{width:min(520px,100%)}
|
|
343
|
+
#taskIn{font-family:inherit;font-size:14px}
|
|
344
|
+
#taskSec{align-self:flex-start}
|
|
345
|
+
#taskErr{margin:0;font-size:12.5px;overflow-wrap:anywhere}
|
|
338
346
|
.recent .row{padding-right:8px}
|
|
339
347
|
.recent .row .body{cursor:pointer}
|
|
340
348
|
.recent .btn{flex:none}
|
|
@@ -465,7 +473,10 @@ input.txt{width:100%}
|
|
|
465
473
|
.tile.home .logo{width:26px;height:26px;margin:0}
|
|
466
474
|
#content:focus{outline:0}
|
|
467
475
|
.content>.welcome{width:100%;max-width:560px;margin:0 auto;gap:22px;padding:clamp(28px,8vh,72px) 0 48px}
|
|
468
|
-
.welcome .logo{width:56px;height:56px;border-radius:12px}
|
|
476
|
+
.welcome .logo{width:56px;height:56px;border-radius:12px;flex:none}
|
|
477
|
+
/* the wordmark as specpilot.dev's nav (32px logo, 20px text, 10px gap) scaled to the 56px logo; it shrinks first in a narrow window */
|
|
478
|
+
.welcome .brand{display:flex;align-items:center;gap:17.5px;min-width:0}
|
|
479
|
+
.welcome .wordmark{width:315px;height:35px;min-width:0;color:var(--brand-ink)}
|
|
469
480
|
.welcome h1{font-size:clamp(26px,4vw,32px);font-weight:600;letter-spacing:-.02em;line-height:1.15;margin:0;text-wrap:balance}
|
|
470
481
|
.welcome .lead{font-size:16px;line-height:1.55;color:var(--label-2);margin:0;max-width:52ch}
|
|
471
482
|
.welcome .cta{display:flex;flex-direction:column;gap:10px}
|
|
@@ -479,5 +490,9 @@ input.txt{width:100%}
|
|
|
479
490
|
.welcome .ic2 svg{width:15px;height:15px;stroke:var(--green-ink)}
|
|
480
491
|
.welcome .recents .row{text-align:left}
|
|
481
492
|
.welcome .recents .row .ttl{white-space:normal;overflow-wrap:anywhere}
|
|
493
|
+
.welcome .recents .hrow{padding:0 8px 0 0;gap:4px}
|
|
494
|
+
.welcome .recents .hrow:hover{background:var(--hover)}
|
|
495
|
+
.hrow>.act{display:flex;align-items:center;gap:12px;flex:1;min-width:0;align-self:stretch;padding:0 6px 0 14px;font:inherit;text-align:left;color:inherit}
|
|
496
|
+
.hrow>.act+[data-remove]{margin-left:34px} /* no link (folder not found): the chevron and Remove stay in line with the others */
|
|
482
497
|
.welcome .fine{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--label-3);font-size:13px}
|
|
483
498
|
.welcome .fine i{width:7px;height:7px;border-radius:50%;background:var(--green);flex:none}
|
package/ui/app.js
CHANGED
|
@@ -47,7 +47,7 @@ function renderProject(){
|
|
|
47
47
|
return `<button class="tile blue${cur?' cur':''}" data-project="${i}" data-tip="${esc(n)}" data-path="${esc(q.root+(q.branch?' · '+q.branch:''))}" aria-label="${esc(n)}"${cur?' aria-current="true"':''}><span aria-hidden="true">${esc(initials(n))}</span></button>`;}).join('');
|
|
48
48
|
$('#curGrp').textContent=name;$('#curGrp').title=p.root;
|
|
49
49
|
$('#curBranch').textContent=p.branch||'';
|
|
50
|
-
$('#subName').textContent=name;$('#subPath').textContent=where;
|
|
50
|
+
$('#subName').textContent=name;$('#subPath').textContent=where;$('#editorBtn').href=editorUrl(p.root);
|
|
51
51
|
$('#footAddr').textContent=$('#homeAddr').textContent=location.host;$('#footVer').textContent=$('#homeVer').textContent='v'+p.specpilotVersion;
|
|
52
52
|
document.title=name+' · SpecPilot Local';
|
|
53
53
|
}
|
|
@@ -79,7 +79,7 @@ function go(v,keep,sub){
|
|
|
79
79
|
syncNav();
|
|
80
80
|
$('#title').textContent=v==='file'?(TITLES[sub]||sub):v==='setup'?projectLabel(DATA.projects[PROJECT]):v==='new'?'New project':VIEWS[v];
|
|
81
81
|
$('#chatSub').hidden=!(v==='new'||v==='setup');if(v!=='new'&&v!=='setup'){$('#chatRestart').hidden=$('#chatClose').hidden=$('#chatSetups').hidden=true;chat=null;}
|
|
82
|
-
$('#modeSeg').hidden=v!=='board';
|
|
82
|
+
$('#modeSeg').hidden=v!=='board';$('#newTask').hidden=!(TOKEN&&v==='board');$('#editorBtn').hidden=NOPROJ.includes(v);
|
|
83
83
|
setNav(false);closeInsp();
|
|
84
84
|
if(v!=='file'||sub!==fileNoteFor)clearFileNote();
|
|
85
85
|
if(v==='home')loadRecent();
|
|
@@ -198,6 +198,7 @@ function openTask(col,i,quiet){
|
|
|
198
198
|
insp.innerHTML=`<div class="ih">${col==='completed'?`<span class="id" translate="no">${esc(t.num)}</span>`:''}<span class="id" translate="no">${mdi(t.id)}</span><span class="pill ${col==='completed'?'green':col==='currentSprint'?'orange':'gray'}">${esc(COLS[col])}</span><button type="button" class="ib x" id="inspX" aria-label="Close Details"><svg class="ico" aria-hidden="true" focusable="false"><use href="#i-x"/></svg></button></div>
|
|
199
199
|
<div class="ib2">
|
|
200
200
|
<div class="gl"><div class="gh">Description <span class="cnt" translate="no">tasks.md · ## ${esc(COLS[col])}</span></div><div class="box"><div class="desc md">${md(t.description)}</div></div></div>
|
|
201
|
+
<div class="actions"><a class="btn sm" href="${esc(editorUrl(DATA.project.root+'/.specs/planning/tasks.md',t.line))}">Open tasks.md in VS Code</a></div>
|
|
201
202
|
</div>`;
|
|
202
203
|
openInsp(quiet);
|
|
203
204
|
}
|
|
@@ -258,12 +259,32 @@ function fileRows(list){
|
|
|
258
259
|
return `<button type="button" class="row act" data-open="${esc(f.path)}"><span class="st hollow" aria-hidden="true"></span><div class="body"><div class="ttl"><span class="id" translate="no">${esc(f.path)}</span>${fm['argument-hint']!==undefined?`<span class="id" translate="no">${esc(fm['argument-hint'])}</span>`:''}</div>${fm.description!==undefined?`<div class="det">${esc(fm.description)}</div>`:''}</div><div class="trail">${fm['allowed-tools']!==undefined?`<span class="pill gray" translate="no">${esc(fm['allowed-tools'])}</span>`:''}${chev}</div></button>`;}).join('')
|
|
259
260
|
:'<div class="empty">No files here.</div>';
|
|
260
261
|
}
|
|
262
|
+
/* From SpecPilot / Yours (BL-PM-006): the server's `generated` flag decides; rows keep their full path. */
|
|
263
|
+
function fileGroup(list,box,cnt,ours){const l=list.filter(f=>!!f.generated===ours);$(box).innerHTML=fileRows(l);$(cnt).textContent=l.length;}
|
|
261
264
|
function renderAgentFiles(){
|
|
262
|
-
const N=DATA.nav;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
const N=DATA.nav,cmds=[...N.commands,...N.prompts];
|
|
266
|
+
fileGroup(cmds,'#cmdBox','#cmdSpCnt',true);fileGroup(cmds,'#cmdMine','#cmdYouCnt',false);
|
|
267
|
+
fileGroup(N.skills,'#sklBox','#sklSpCnt',true);fileGroup(N.skills,'#sklMine','#sklYouCnt',false);
|
|
268
|
+
}
|
|
269
|
+
/* Regenerate All (BL-PM-006): the server runs specpilot backfill's command step; its result lines are shown as sent,
|
|
270
|
+
until the next run or a project switch. */
|
|
271
|
+
function setRegenNote(lines){const n=$('#regenNote');n.innerHTML=lines.map(l=>`<p class="note" translate="no">${esc(l)}</p>`).join('');n.hidden=!lines.length;}
|
|
272
|
+
async function regenerate(){
|
|
273
|
+
const b=$('#cmdRegen'),p=PROJECT,had=document.activeElement===b;if(b.disabled)return;
|
|
274
|
+
b.disabled=true; // drops focus; given back below
|
|
275
|
+
let r,body={};
|
|
276
|
+
try{
|
|
277
|
+
r=await fetch('/api/commands/regenerate?'+pq(),{method:'POST',cache:'no-store',headers:{'Content-Type':'application/json','X-SpecPilot-Token':TOKEN},body:'{}'});
|
|
278
|
+
body=await r.json().catch(()=>({}));
|
|
279
|
+
}catch(e){r=null;}
|
|
280
|
+
b.disabled=false;
|
|
281
|
+
if(p!==PROJECT)return;
|
|
282
|
+
if(!r)setRegenNote(['The server did not answer. Command files may have been partly written.']);
|
|
283
|
+
else if(r.status===200){await apply(body.specs,null);setRegenNote(body.message);}
|
|
284
|
+
else setRegenNote([(body.error||`Regenerate All did not run (HTTP ${r.status}).`)+(r.status===500?' Command files may have been partly written.':'')]);
|
|
285
|
+
if(had&&document.activeElement===document.body)b.focus();
|
|
286
|
+
}
|
|
287
|
+
$('#cmdRegen').onclick=regenerate;
|
|
267
288
|
/* Inspector for a generated file: its front matter raw, its body rendered. */
|
|
268
289
|
/* Is this generated file in the latest /api/specs listing? */
|
|
269
290
|
function listed(path){const N=DATA.nav;return N.instructions.some(f=>f.exists&&f.path===path)||[N.commands,N.prompts,N.skills].some(l=>l.some(f=>f.path===path));}
|
|
@@ -300,8 +321,8 @@ document.addEventListener('keydown',e=>{
|
|
|
300
321
|
const mod=e.metaKey||e.ctrlKey;const inField=/INPUT|SELECT|TEXTAREA/.test(e.target.tagName);
|
|
301
322
|
if(mod&&e.key.toLowerCase()==='k'){e.preventDefault();palVeil.classList.contains('open')?closePal():openPal();return}
|
|
302
323
|
if(mod&&/^[1-9]$/.test(e.key)){e.preventDefault();const n=NAV[+e.key-1];if(n)go(n[0],false,n[1]);return}
|
|
303
|
-
if(e.key==='Escape'){hideTip();closeInsp();closePal();closeSheet();if(chat&&chat.st.editing&&!chatBusy){chat.st.editing=null;comp=null;drawChat();}setNav(false);return}
|
|
304
|
-
if(inField||mod||e.altKey)return;
|
|
324
|
+
if(e.key==='Escape'){hideTip();closeInsp();closePal();closeSheet();closeNewTask();if(chat&&chat.st.editing&&!chatBusy){chat.st.editing=null;comp=null;drawChat();}setNav(false);return}
|
|
325
|
+
if(inField||mod||e.altKey||taskVeil.classList.contains('open'))return;
|
|
305
326
|
if(e.key==='h'&&TOKEN&&!openVeil.classList.contains('open')){go('home');return;}
|
|
306
327
|
if(/^[1-9]$/.test(e.key)){const n=NAV[+e.key-1];if(n)go(n[0],false,n[1]);}
|
|
307
328
|
if((e.key==='j'||e.key==='k')&&curView==='board'){const rows=$$((mode==='board'?'#boardMode':'#listMode')+' .row[data-col]');if(!rows.length)return;let i=rows.findIndex(r=>r.dataset.col+':'+r.dataset.i===selected);i=e.key==='j'?Math.min(rows.length-1,i+1):Math.max(0,i-1);if(i<0)i=0;openTask(rows[i].dataset.col,+rows[i].dataset.i);rows[i].scrollIntoView({block:'nearest'});rows[i].focus();}
|
|
@@ -362,6 +383,47 @@ async function move(col,i,toSection,toIndex,isUndo){
|
|
|
362
383
|
}else toast(body.error||`The move was not made (HTTP ${r.status}).`);
|
|
363
384
|
}
|
|
364
385
|
|
|
386
|
+
/* ---------------- new task (BL-PM-005) ----------------
|
|
387
|
+
The server appends one row, `| <ID> | <description> |`, to the chosen section and picks the ID.
|
|
388
|
+
The description goes as typed; a refusal is shown in the form with what was typed kept. */
|
|
389
|
+
const taskVeil=$('#taskVeil'),taskIn=$('#taskIn');
|
|
390
|
+
let taskSection='backlog',adding=false;
|
|
391
|
+
function setTaskSection(s){taskSection=s;$$('#taskSec button').forEach(b=>{const on=b.dataset.s===s;b.classList.toggle('on',on);b.setAttribute('aria-pressed',on);});}
|
|
392
|
+
function taskError(m){const e=$('#taskErr');e.textContent=m||'';e.hidden=!m;}
|
|
393
|
+
function openNewTask(){if(!TOKEN||!DATA||!DATA.tasks)return;hideTip();taskIn.value='';taskError('');setTaskSection('backlog');taskVeil.classList.add('open');setTimeout(()=>taskIn.focus(),50);}
|
|
394
|
+
function closeNewTask(){if(!taskVeil.classList.contains('open')||adding)return;taskVeil.classList.remove('open');$('#newTask').focus();}
|
|
395
|
+
async function addTask(){
|
|
396
|
+
if(adding)return;
|
|
397
|
+
if(!taskIn.value.trim()){taskError('Type a description for the task.');taskIn.focus();return;}
|
|
398
|
+
const p=PROJECT,section=taskSection;
|
|
399
|
+
adding=true;$('#taskGo').disabled=true;taskError('');
|
|
400
|
+
let r,body={};
|
|
401
|
+
try{
|
|
402
|
+
r=await fetch('/api/tasks/new?'+pq(),{method:'POST',cache:'no-store',headers:{'Content-Type':'application/json','X-SpecPilot-Token':TOKEN,'If-Match':DATA.tasks.sha256},body:JSON.stringify({description:taskIn.value,section})});
|
|
403
|
+
body=await r.json().catch(()=>({}));
|
|
404
|
+
}catch(e){r=null;}
|
|
405
|
+
adding=false;$('#taskGo').disabled=false;
|
|
406
|
+
if(!r){taskError('The server did not answer. Nothing was added.');return;}
|
|
407
|
+
if(p!==PROJECT)return;
|
|
408
|
+
if(r.status===200){
|
|
409
|
+
if(section==='backlog'&&body.index>=6)showAllBacklog=true;
|
|
410
|
+
taskVeil.classList.remove('open');
|
|
411
|
+
await apply(body.specs,['.specs/planning/tasks.md']);
|
|
412
|
+
$('#newTask').focus(); // what closing the inspector returns to
|
|
413
|
+
openTask(section,body.index);
|
|
414
|
+
const el=$(`${mode==='board'?'#boardMode':'#listMode'} .row[data-col="${section}"][data-i="${body.index}"]`);if(el)el.scrollIntoView({block:'nearest'});
|
|
415
|
+
toast(`${body.id} added to ## ${COLS[section]} in planning/tasks.md`);
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
if(r.status===409&&body.specs)await apply(body.specs,null);
|
|
419
|
+
taskError(body.error||`The task was not added (HTTP ${r.status}).`);taskIn.focus();
|
|
420
|
+
}
|
|
421
|
+
$('#newTask').onclick=openNewTask;
|
|
422
|
+
$$('#taskSec button').forEach(b=>b.onclick=()=>setTaskSection(b.dataset.s));
|
|
423
|
+
$('#taskCancel').onclick=closeNewTask;
|
|
424
|
+
taskVeil.onclick=e=>{if(e.target===taskVeil)closeNewTask();};
|
|
425
|
+
$('#taskForm').onsubmit=e=>{e.preventDefault();addTask();};
|
|
426
|
+
|
|
365
427
|
/* ---------------- setup chat (BL-055, BL-PM-004) ----------------
|
|
366
428
|
The init.specpilot.dev chat over the CLI's own questions: for a new project (#new) and for a named
|
|
367
429
|
folder with no .specs/ yet (its setup view). The questions, their chat lines, choices, steps and file
|
|
@@ -760,7 +822,7 @@ async function switchProject(n,keepRoute){
|
|
|
760
822
|
/* Draw project PROJECT from payload d: the tail of a switch, also used with the payload an open returns (BL-067). */
|
|
761
823
|
function showProject(d,keepRoute){
|
|
762
824
|
Object.keys(fileCache).forEach(k=>{delete fileCache[k];});secShown.clear();
|
|
763
|
-
DATA=d;selected=null;
|
|
825
|
+
DATA=d;selected=null;setRegenNote([]);
|
|
764
826
|
renderProject();renderTasks();renderIde();renderAgentFiles();listen();
|
|
765
827
|
if(keepRoute)route();else go('board');
|
|
766
828
|
}
|
|
@@ -776,8 +838,8 @@ $('#projList').addEventListener('click',e=>{const b=e.target.closest('[data-proj
|
|
|
776
838
|
file content; the strings are the ones REQ-002.H.21, H.24 and H.26 list. */
|
|
777
839
|
const openVeil=$('#openVeil'),addBtn=$('#addBtn'),pathIn=$('#pathIn');
|
|
778
840
|
const TABS=['folder','clone'],GO={folder:'Open',clone:'Clone Repository'};
|
|
779
|
-
let openBusy=false,sheetFrom
|
|
780
|
-
if(TOKEN){addBtn.hidden=false;homeBtn.hidden=false;$('#rail>.logo').remove();} // the Home tile takes the logo's place (BL-PM-001)
|
|
841
|
+
let openBusy=false,sheetFrom=$('#homeOpen'),sheetTab='folder',cloneCtl=null,cloneNamed=false,cloneTick=null;
|
|
842
|
+
if(TOKEN){addBtn.hidden=false;homeBtn.hidden=false;$('#cmdRegen').hidden=false;$('#rail>.logo').remove();} // the Home tile takes the logo's place (BL-PM-001)
|
|
781
843
|
function openSheet(from,tab){
|
|
782
844
|
hideTip();sheetFrom=from;openVeil.classList.add('open');
|
|
783
845
|
$$('#openForm .field input').forEach(el=>{el.value='';});cloneNamed=false;
|
|
@@ -792,7 +854,7 @@ function setTab(t){
|
|
|
792
854
|
}
|
|
793
855
|
function closeSheet(){if(!openVeil.classList.contains('open'))return;if(cloneCtl)cloneCtl.abort();openVeil.classList.remove('open');sheetFrom.focus();}
|
|
794
856
|
/* The registry as GET /api/projects sends it: in the sheet, or on Home (BL-PM-001), where a row opens
|
|
795
|
-
its folder at once
|
|
857
|
+
its folder at once and a served project also shows the branch the rail tooltip shows. */
|
|
796
858
|
function drawRecent(reg,home){
|
|
797
859
|
$(home?'#homePath':'#recentPath').textContent=reg.path||'';
|
|
798
860
|
$(home?'#homeBox':'#recentBox').innerHTML=recentHtml(reg,home,DATA?DATA.projects:[],chev);
|
|
@@ -858,7 +920,7 @@ async function removeRecent(path){
|
|
|
858
920
|
try{out=await postPath(path,'/api/projects/remove');}catch(e){toast('The server did not answer.');return;}
|
|
859
921
|
if(out.r.status===200){drawRecent(out.res);if(curView==='home')drawRecent(out.res,true);}else toast(out.res.error||`Nothing was removed (HTTP ${out.r.status}).`);
|
|
860
922
|
}
|
|
861
|
-
addBtn.onclick=()=>
|
|
923
|
+
addBtn.onclick=()=>{go('home');$('#homeOpen').focus();}; // every new project starts from Home (BL-PM-014); only Home's buttons open the sheet
|
|
862
924
|
homeBtn.onclick=()=>go('home');
|
|
863
925
|
$('#homeOpen').onclick=e=>openSheet(e.currentTarget);
|
|
864
926
|
$('#homeNew').onclick=()=>go('new');
|
|
@@ -872,7 +934,10 @@ $('#openTabs').addEventListener('keydown',e=>{
|
|
|
872
934
|
e.preventDefault();const n=TABS.length,i=TABS.indexOf(sheetTab),t=TABS[e.key==='Home'?0:e.key==='End'?n-1:(i+(e.key==='ArrowLeft'?n-1:1))%n];
|
|
873
935
|
setTab(t);$(`#openTabs [data-t="${t}"]`).focus();
|
|
874
936
|
});
|
|
875
|
-
$('#homeBox').addEventListener('click',e=>{
|
|
937
|
+
$('#homeBox').addEventListener('click',e=>{
|
|
938
|
+
const rm=e.target.closest('[data-remove]');if(rm){removeRecent(rm.dataset.remove);return;}
|
|
939
|
+
const row=e.target.closest('[data-path]');if(row)openPath(row.dataset.path);
|
|
940
|
+
});
|
|
876
941
|
$('#openCancel').onclick=closeSheet;
|
|
877
942
|
openVeil.onclick=e=>{if(e.target===openVeil)closeSheet();};
|
|
878
943
|
$('#openForm').onsubmit=e=>{e.preventDefault();if(sheetTab==='clone')cloneRepo();else openPath(pathIn.value.trim());};
|