create-pmos 0.380.0 → 0.381.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/package.json +13 -13
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +12 -0
- package/workspace/guide/briefing-premium.md +2 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/chat-md.js +2 -10
- package/workspace/public/pm/md-table.js +53 -0
- package/workspace/public/pm/premium-doc-edit.js +5 -7
- package/workspace/public/pm/premium-vw-doc-model.js +3 -9
- package/workspace/public/pm/premium-vw-doc.css +5 -0
- package/workspace/public/pm/premium-vw-doc.js +1 -1
- package/workspace/public/pm/premium.css +9 -1
- package/workspace/test-files.json +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.381.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -32,6 +32,18 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.381.0",
|
|
37
|
+
"at": "2026-10-21T12:15:37.889Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 990,
|
|
42
|
+
"t": "Markdown tables draw as tables in the viewer, the Read tab and chat",
|
|
43
|
+
"s": "Markdown tables draw as tables in the viewer, the Read tab and chat"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.380.0",
|
|
37
49
|
"at": "2026-10-21T09:18:41.886Z",
|
|
@@ -309,18 +321,6 @@
|
|
|
309
321
|
"s": "Premium Sprint tab folds past sprints, shows the goal from the tickets, opens every ticket"
|
|
310
322
|
}
|
|
311
323
|
]
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"v": "0.361.0",
|
|
315
|
-
"at": "2026-10-21T00:14:19.012Z",
|
|
316
|
-
"f": 2,
|
|
317
|
-
"prs": [
|
|
318
|
-
{
|
|
319
|
-
"n": 960,
|
|
320
|
-
"t": "The morning brief runs on fresh sources; Sources says whether background work runs",
|
|
321
|
-
"s": "PMOS reads the pane after it presses Enter."
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
324
|
}
|
|
325
325
|
]
|
|
326
326
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-21T12:15:35Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-21T12:15:35Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-21T12:15:35Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.381.0",
|
|
4
|
+
"at": "2026-10-21T12:15:37.889Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 990,
|
|
9
|
+
"t": "Markdown tables draw as tables in the viewer, the Read tab and chat",
|
|
10
|
+
"s": "Markdown tables draw as tables in the viewer, the Read tab and chat"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.380.0",
|
|
4
16
|
"at": "2026-10-21T09:18:41.886Z",
|
|
@@ -224,6 +224,8 @@ Every markdown document opens as one page in a tab: a report, a PRD, a new docum
|
|
|
224
224
|
|
|
225
225
|
A Confluence page or Google Doc opens as a tab too. From a document's **Copies**, press **Preview** on a copy. If the last check found the same text in both, the PMOS file is shown as the page, with **Same as PMOS** and the check time. If the copy changed, the tab says so and shows the PMOS version dimmed. **Use the … version** writes the copy's text into the PMOS file after five seconds; press **Undo** to stop it. From a meeting's **Material**, press the page icon on a Google Doc or Confluence link. PMOS holds only the address of such a page, so the tab says so. **Read it now** starts one session that reads the page with your connector and keeps the text in PMOS; it changes nothing in Google Docs or Confluence. The tab then shows the text with when it was read. Press **Read again** for later edits.
|
|
226
226
|
|
|
227
|
+
A table in any Markdown page (a document, a copy's text, a chat answer) shows as a table. This includes a table exported from Google Docs whose first row is empty and whose header is on the next row: that row becomes the header. Each column keeps its alignment, and cells keep their bold, code and links. A wide table keeps short cells on one line and scrolls sideways, and its first column stays in view.
|
|
228
|
+
|
|
227
229
|
A decision opens with no option chosen, because no recommendation is on record. Its card shows the evidence as label and value rows, the options, and one **Why** field. One bar at the bottom holds a quiet **Later ▾** and the only main button, named after your choice (for example **Record: Extend the date**). Choose one and the draft entry on the right changes. Nothing is written. The main button, "Not yet" and "Return this run to the agent" are off in this version, and each says why.
|
|
228
230
|
|
|
229
231
|
## The conversation
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.381.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.381.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Claude's turns are markdown: headings, **bold**, lists, `code`, fences, links, tables and quotes are drawn, not printed as their marks.
|
|
3
3
|
* Everything is escaped first and the marks are read from the escaped text, so no HTML in a message reaches the page. Links open only
|
|
4
4
|
* http(s). The PM's own turns lose the <pasted_content> wrapper Claude Code puts around a paste, and keep their line breaks. */
|
|
5
|
+
import { tableStarts, readTable, tableHtml } from './md-table.js';
|
|
5
6
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
6
7
|
|
|
7
8
|
/* A file path Claude wrote (PM, 2026-10-20: "Why can't I click the file and see it on the right panel?"): a `code` span, a [name](path) link or a bare
|
|
@@ -45,8 +46,6 @@ function inline(t) {
|
|
|
45
46
|
.replace(/~~(?=\S)([\s\S]*?\S)~~/g, '<del>$1</del>');
|
|
46
47
|
return s.replace(/\u0000(\d+)\u0000/g, (_, i) => keep[+i]);
|
|
47
48
|
}
|
|
48
|
-
const cells = (l) => l.trim().replace(/^\|/, '').replace(/\|$/, '').split('|').map((c) => c.trim());
|
|
49
|
-
const isRule = (l) => l.includes('|') && /^\s*\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)*\|?\s*$/.test(l);
|
|
50
49
|
const LI = /^(\s*)([-*+]|\d+[.)])\s+(.*)$/;
|
|
51
50
|
|
|
52
51
|
/** A list's items ({ ind, ord, html }) as nested <ul>/<ol>: a deeper item opens a list inside the item above it. */
|
|
@@ -85,14 +84,7 @@ function blocks(lines) {
|
|
|
85
84
|
const h = /^\s*(#{1,6})\s+(.*?)\s*#*\s*$/.exec(l);
|
|
86
85
|
if (h) { flush(); out.push(`<h${h[1].length > 3 ? 6 : h[1].length + 3}>${inline(h[2])}</h${h[1].length > 3 ? 6 : h[1].length + 3}>`); continue; }
|
|
87
86
|
if (/^\s*([-*_])(\s*\1){2,}\s*$/.test(l)) { flush(); out.push('<hr>'); continue; }
|
|
88
|
-
if (
|
|
89
|
-
flush();
|
|
90
|
-
const head = cells(l), rows = [];
|
|
91
|
-
for (i += 2; i < lines.length && lines[i].includes('|') && lines[i].trim(); i++) rows.push(cells(lines[i]));
|
|
92
|
-
i--;
|
|
93
|
-
out.push(`<div class="mdtab"><table><thead><tr>${head.map((c) => `<th>${inline(c)}</th>`).join('')}</tr></thead><tbody>${rows.map((r) => `<tr>${head.map((_, c) => `<td>${inline(r[c] || '')}</td>`).join('')}</tr>`).join('')}</tbody></table></div>`);
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
87
|
+
if (tableStarts(lines, i)) { flush(); const t = readTable(lines, i); i = t.end; out.push(tableHtml(t, inline, 'mdtab')); continue; }
|
|
96
88
|
if (/^\s*>/.test(l)) {
|
|
97
89
|
flush();
|
|
98
90
|
const q = [];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* md-table.js — one GitHub-style markdown table reader for every place PMOS draws markdown (the viewer's document page, the Read tab of the document
|
|
2
|
+
* sheet, a tool copy such as a Google Doc read, and chat answers). Pure: no DOM, so Node tests it.
|
|
3
|
+
* PM, 2026-10-21 ("Bad formatting on View panel"): a Google Doc read came back with an empty first row, a `:-:` rule and the real header on the
|
|
4
|
+
* row after it. The old readers wanted two dashes in the rule and printed the whole table as a grey code block. This reader takes any GitHub rule
|
|
5
|
+
* (one dash or more, with or without colons), keeps each column's alignment, splits only on pipes that are not escaped (`\|`), and when the header
|
|
6
|
+
* row is empty it uses the first body row as the header, as the Google Docs export means it. */
|
|
7
|
+
|
|
8
|
+
/** True when the line is a table's rule row: `| --- | :-: | --: |`, with or without outer pipes. One column needs a pipe so a plain `---` stays a rule. */
|
|
9
|
+
export function isTableRule(l) {
|
|
10
|
+
const s = String(l || '');
|
|
11
|
+
return s.includes('|') && /^\s{0,3}\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)*\|?\s*$/.test(s);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** The cells of one table row, trimmed. Outer pipes are optional; an escaped pipe `\|` stays in its cell as `|`. */
|
|
15
|
+
export function tableCells(l) {
|
|
16
|
+
const s = String(l || '').trim().replace(/^\|/, '').replace(/(^|[^\\])\|$/, '$1');
|
|
17
|
+
const out = [];
|
|
18
|
+
let cur = '';
|
|
19
|
+
for (let k = 0; k < s.length; k++) {
|
|
20
|
+
if (s[k] === '\\' && s[k + 1] === '|') { cur += '|'; k++; } else if (s[k] === '|') { out.push(cur.trim()); cur = ''; } else cur += s[k];
|
|
21
|
+
}
|
|
22
|
+
out.push(cur.trim());
|
|
23
|
+
return out;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** True when line `i` starts a table: it has a pipe and the next line is a rule row. */
|
|
27
|
+
export function tableStarts(lines, i) {
|
|
28
|
+
return i + 1 < lines.length && String(lines[i]).includes('|') && !isTableRule(lines[i]) && isTableRule(lines[i + 1]);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Reads the table that starts at line `i` (see tableStarts). Returns { head, align, rows, end } where `end` is the last line the table uses.
|
|
32
|
+
* `align` holds 'left', 'center', 'right' or '' per column. Body rows run while a line has a pipe and is not blank. An empty header row is
|
|
33
|
+
* replaced by the first body row. Every row has as many cells as the widest of the header and the rule. */
|
|
34
|
+
export function readTable(lines, i) {
|
|
35
|
+
let head = tableCells(lines[i]);
|
|
36
|
+
const rule = tableCells(lines[i + 1]);
|
|
37
|
+
const align = rule.map((c) => (/^:-+:$/.test(c) ? 'center' : /-:$/.test(c) ? 'right' : /^:-/.test(c) ? 'left' : ''));
|
|
38
|
+
let rows = [], j = i + 2;
|
|
39
|
+
for (; j < lines.length && String(lines[j]).includes('|') && String(lines[j]).trim(); j++) rows.push(tableCells(lines[j]));
|
|
40
|
+
if (head.every((c) => !c) && rows.length) head = rows.shift();
|
|
41
|
+
rows = rows.filter((r) => r.some((c) => c));
|
|
42
|
+
const n = Math.max(head.length, rule.length);
|
|
43
|
+
const fit = (r) => Array.from({ length: n }, (_, k) => r[k] || '');
|
|
44
|
+
return { head: fit(head), align: fit(align), rows: rows.map(fit), end: j - 1 };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** The table as html. `inline` turns one cell's text into html (it escapes, or the text is escaped already); `cls` is the wrapper's class,
|
|
48
|
+
* which scrolls the table sideways on a narrow screen. */
|
|
49
|
+
export function tableHtml(t, inline, cls) {
|
|
50
|
+
const al = (k) => (t.align[k] ? ` class="al-${t.align[k][0]}"` : ''); // al-l, al-c, al-r: the stylesheets align them
|
|
51
|
+
return `<div class="${cls}"><table><thead><tr>${t.head.map((c, k) => `<th${al(k)}>${inline(c)}</th>`).join('')}</tr></thead>`
|
|
52
|
+
+ `<tbody>${t.rows.map((r) => `<tr>${r.map((c, k) => `<td${al(k)}>${inline(c)}</td>`).join('')}</tr>`).join('')}</tbody></table></div>`;
|
|
53
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* premium-doc-edit.js — the pure half of the premium document sheet's Edit and Proposals tabs (initiative briefing-premium-doc-edit).
|
|
2
2
|
* No DOM and no fetch: it turns the answers of /api/doc-sheet/* into what the tabs draw, and builds the bodies of the presses. Every figure here is a
|
|
3
3
|
* field of a route's answer; a proposal's section is stale only because the route says it is. */
|
|
4
|
+
import { tableStarts, readTable, tableHtml } from './md-table.js';
|
|
4
5
|
const esc = (s) => String(s == null ? '' : s).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
5
6
|
const clip = (s, n) => { const t = String(s == null ? '' : s).replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1).trimEnd() + '…' : t; };
|
|
6
7
|
|
|
@@ -85,7 +86,6 @@ export function inlineHtml(t) {
|
|
|
85
86
|
h = h.replace(/\[([^\]]+)\]\((https?:\/\/[^)\s]+)\)/g, '<a href="$2" target="_blank" rel="noopener">$1</a>');
|
|
86
87
|
return h;
|
|
87
88
|
}
|
|
88
|
-
const cells = (l) => l.trim().replace(/^\||\|$/g, '').split('|').map((c) => c.trim());
|
|
89
89
|
|
|
90
90
|
/** The Read tab's text as html with its outline and front matter. Pure: the page puts the html in the sheet. `outline` holds the heading texts, `levels` their depth (1 to 4). */
|
|
91
91
|
export function mdHtml(text, opts) {
|
|
@@ -102,12 +102,10 @@ export function mdHtml(text, opts) {
|
|
|
102
102
|
if (h) { flushP(); flushL(); const n = outline.length; outline.push(h[2].replace(/[*`]/g, '')); levels.push(h[1].length); out.push(`<h3 class="d2" id="ds-h${n}">${inlineHtml(h[2])}</h3>`); const at = opts && opts.attr && opts.attr[n]; if (at) out.push(`<p class="dsat"><i>${esc(at.initial)}</i>${esc(at.who)} · ${esc(at.rev)}${at.date ? ' · ' + esc(at.date) : ''}</p>`); continue; }
|
|
103
103
|
const ul = /^\s*[-*]\s+(.*)$/.exec(l), ol = /^\s*\d+[.)]\s+(.*)$/.exec(l);
|
|
104
104
|
if (ul || ol) { flushP(); if (list.length && ord !== !!ol) flushL(); ord = !!ol; list.push((ul || ol)[1]); continue; }
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
out.push(`<div class="mdt"><table><thead><tr>${head.map((c) => `<th>${inlineHtml(c)}</th>`).join('')}</tr></thead><tbody>${rows.map((r) => `<tr>${head.map((_, k) => `<td>${inlineHtml(r[k] || '')}</td>`).join('')}</tr>`).join('')}</tbody></table></div>`);
|
|
110
|
-
} else out.push(`<pre class="mdp">${esc(buf.join('\n'))}</pre>`);
|
|
105
|
+
if (tableStarts(lines, i)) { flushP(); flushL(); const t = readTable(lines, i); i = t.end; out.push(tableHtml(t, inlineHtml, 'mdt')); continue; }
|
|
106
|
+
if (/^\s{0,3}\|/.test(l)) {
|
|
107
|
+
flushP(); flushL(); const buf = [l]; while (i + 1 < lines.length && /^\s{0,3}\|/.test(lines[i + 1])) buf.push(lines[++i]);
|
|
108
|
+
out.push(`<pre class="mdp">${esc(buf.join('\n'))}</pre>`);
|
|
111
109
|
continue;
|
|
112
110
|
}
|
|
113
111
|
if (!l.trim()) { flushP(); flushL(); continue; }
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* No DOM and no fetch. It draws a markdown file as a page (title, byline, properties from the front matter, panels, tables, task lists, status labels,
|
|
3
3
|
* expand blocks, code blocks), lays an open proposal from GET /api/doc-sheet/proposals over the current text with each changed section marked, and
|
|
4
4
|
* merges an edited page back into the file so that sections nobody touched keep their exact text. Every value comes from the file, its log or the route. */
|
|
5
|
+
import { tableStarts, readTable, tableHtml } from './md-table.js';
|
|
5
6
|
const esc = (s) => String(s == null ? '' : s).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
6
7
|
const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
7
8
|
|
|
@@ -61,15 +62,8 @@ export function bodyHtml(src, o = {}) {
|
|
|
61
62
|
else out.push(`<blockquote><p>${inl(buf.join(' '))}</p></blockquote>`);
|
|
62
63
|
continue;
|
|
63
64
|
}
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
const cells = (r) => r.trim().replace(/^\||\|$/g, '').split('|').map((c) => c.trim());
|
|
67
|
-
if (rows.length >= 2 && /^\s*\|?\s*:?-{2,}/.test(rows[1])) {
|
|
68
|
-
const hd = cells(rows[0]);
|
|
69
|
-
out.push(`<div class="tw"><table><thead><tr>${hd.map((c) => `<th>${inl(c)}</th>`).join('')}</tr></thead><tbody>${rows.slice(2).map((r) => { const c = cells(r); return `<tr>${hd.map((_, k) => `<td>${inl(c[k] || '')}</td>`).join('')}</tr>`; }).join('')}</tbody></table></div>`);
|
|
70
|
-
} else out.push(`<p>${inl(rows.join(' '))}</p>`);
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
65
|
+
if (tableStarts(L, i)) { const t = readTable(L, i); i = t.end + 1; out.push(tableHtml(t, inl, 'tw')); continue; }
|
|
66
|
+
if (/^\s*\|/.test(l)) { const rows = []; while (i < L.length && /^\s*\|/.test(L[i])) rows.push(L[i++]); out.push(`<p>${inl(rows.join(' '))}</p>`); continue; }
|
|
73
67
|
if (isList(l)) {
|
|
74
68
|
const ord = /^\s*\d+[.)]/.test(l), items = [];
|
|
75
69
|
while (i < L.length && (isList(L[i]) || (/^\s{2,}\S/.test(L[i]) && items.length))) { if (isList(L[i])) items.push(L[i].replace(/^\s*([-*+]|\d+[.)])\s+/, '')); else items[items.length - 1] += ' ' + L[i].trim(); i++; }
|
|
@@ -74,6 +74,11 @@
|
|
|
74
74
|
.cfb table{border-collapse:collapse;min-width:60%;font-size:var(--fs-2)}
|
|
75
75
|
.cfb th,.cfb td{border:1px solid var(--hair);padding:6px 11px;text-align:left;vertical-align:top;min-width:60px}
|
|
76
76
|
.cfb thead th{background:var(--well);font-weight:500}
|
|
77
|
+
.cfb .tw table{width:max-content;min-width:60%}
|
|
78
|
+
.cfb .tw th,.cfb .tw td{max-width:32ch;overflow-wrap:break-word}
|
|
79
|
+
.cfb .al-l{text-align:left}
|
|
80
|
+
.cfb .al-c{text-align:center}
|
|
81
|
+
.cfb .al-r{text-align:right}
|
|
77
82
|
.pnl{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;padding:11px 14px;border-radius:6px;margin:0 0 14px;background:var(--pb,var(--well))}
|
|
78
83
|
.pnl .pidot{width:14px;height:14px;margin-top:4px;border-radius:50%;border:2px solid var(--pc,var(--ink-3));box-sizing:border-box;user-select:none}
|
|
79
84
|
.pnl .pc>:last-child{margin-bottom:0}
|
|
@@ -50,7 +50,7 @@ function mdOf(root) {
|
|
|
50
50
|
if (cl.contains('pnl')) B.push(`> [!${String(c.dataset.k || 'note').toUpperCase()}]\n` + [...$('.pc', c).children].map((x) => '> ' + inlineMd(x).trim()).join('\n>\n'));
|
|
51
51
|
else if (cl.contains('tw') || t === 'TABLE') {
|
|
52
52
|
const rows = [...c.querySelectorAll('tr')].map((r) => '| ' + [...r.children].map((x) => inlineMd(x).trim().replace(/\|/g, '\\|')).join(' | ') + ' |');
|
|
53
|
-
if (rows.length) { const
|
|
53
|
+
if (rows.length) { const rule = [...c.querySelector('tr').children].map((x) => ({ 'al-c': ':-:', 'al-r': '--:', 'al-l': ':--' }[x.className] || '---')); rows.splice(1, 0, '|' + rule.join('|') + '|'); B.push(rows.join('\n')); }
|
|
54
54
|
} else if (cl.contains('cb')) B.push('```' + (c.dataset.lang || '') + '\n' + ($('pre', c) || c).textContent.replace(/\n$/, '') + '\n```');
|
|
55
55
|
else if (/^H[1-6]$/.test(t)) B.push('#'.repeat(+(c.dataset.md || Math.max(2, +t[1]))) + ' ' + inlineMd(c).trim());
|
|
56
56
|
else if (t === 'UL' && cl.contains('tasks')) B.push([...c.children].map((li) => `- [${li.dataset.done === 'true' ? 'x' : ' '}] ${inlineMd(li).trim()}`).join('\n'));
|
|
@@ -1981,7 +1981,15 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
|
|
|
1981
1981
|
.dso{max-height:62vh;overflow:auto}
|
|
1982
1982
|
.dso .l2{padding-left:20px}
|
|
1983
1983
|
.dso .l3{padding-left:30px;color:var(--ink-3)}
|
|
1984
|
-
.dsbody .mdt{overflow-x:auto;margin:0 0 14px;border-radius:12px;
|
|
1984
|
+
.dsbody .mdt{overflow-x:auto;margin:0 0 14px;border-radius:12px;border:1px solid var(--hair)}
|
|
1985
|
+
/* a wide table keeps short cells on one line and scrolls sideways; its first column stays in view (PM, 2026-10-21) */
|
|
1986
|
+
.dsbody .mdt table,.mdtab table{width:max-content;min-width:100%}
|
|
1987
|
+
.dsbody .mdt th,.dsbody .mdt td,.mdtab th,.mdtab td{max-width:32ch;overflow-wrap:break-word}
|
|
1988
|
+
.dsbody .mdt th:first-child,.dsbody .mdt td:first-child,.mdtab th:first-child,.mdtab td:first-child{position:sticky;left:0;z-index:1;background:var(--card-solid)}
|
|
1989
|
+
.dsbody .mdt th:first-child,.mdtab th:first-child{background:var(--well)}
|
|
1990
|
+
.mdt .al-l,.mdtab .al-l{text-align:left}
|
|
1991
|
+
.mdt .al-c,.mdtab .al-c{text-align:center}
|
|
1992
|
+
.mdt .al-r,.mdtab .al-r{text-align:right}
|
|
1985
1993
|
.dsbody table{border-collapse:collapse;width:100%;font-size:var(--fs-3)}
|
|
1986
1994
|
.dsbody th{font:600 var(--fs-1) var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);text-align:left;padding:8px 12px;background:var(--well)}
|
|
1987
1995
|
.dsbody td{padding:8px 12px;border-top:1px solid var(--hair);vertical-align:top;line-height:1.5}
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"briefing-premium-agent.test.js",
|
|
41
41
|
"goal-chat.test.js",
|
|
42
42
|
"chat-md.test.js",
|
|
43
|
+
"md-table.test.js",
|
|
43
44
|
"chat-file-locate.test.js",
|
|
44
45
|
"briefing-premium-work.test.js",
|
|
45
46
|
"briefing-premium-board.test.js",
|
|
@@ -217,6 +218,7 @@
|
|
|
217
218
|
"briefing-premium-agent.test.js": 1,
|
|
218
219
|
"goal-chat.test.js": 1,
|
|
219
220
|
"chat-md.test.js": 1,
|
|
221
|
+
"md-table.test.js": 1,
|
|
220
222
|
"chat-file-locate.test.js": 1,
|
|
221
223
|
"briefing-premium-work.test.js": 1,
|
|
222
224
|
"briefing-premium-board.test.js": 1,
|