create-pmos 0.465.0 → 0.467.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 +27 -27
- 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 +26 -0
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/published-board.md +51 -0
- package/workspace/lib/board-pack-route.js +59 -0
- package/workspace/lib/board-pack.js +143 -0
- package/workspace/lib/routes-board-premium.js +2 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-board.css +10 -0
- package/workspace/public/pm/premium-board.js +1 -0
- package/workspace/public/pm/readonly-boot.js +38 -0
- package/workspace/public/pm/readonly.js +97 -0
- package/workspace/public/premium-board.html +1 -0
- package/workspace/test-lists/board-publish-a.json +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.467.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,32 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.467.0",
|
|
37
|
+
"at": "2026-10-31T08:49:40.991Z",
|
|
38
|
+
"f": 3,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1119,
|
|
42
|
+
"t": "Ratify the central board-publish host as D103; log board-publish run 1",
|
|
43
|
+
"s": "Ratify the central board-publish host as D103; log board-publish run 1",
|
|
44
|
+
"k": "x"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"v": "0.466.0",
|
|
50
|
+
"at": "2026-10-31T06:47:06.602Z",
|
|
51
|
+
"f": 3,
|
|
52
|
+
"prs": [
|
|
53
|
+
{
|
|
54
|
+
"n": 1118,
|
|
55
|
+
"t": "Board-publish slice 1 — the data pack and the Board's read-only mode",
|
|
56
|
+
"s": "Board-publish slice 1 — the data pack and the Board's read-only mode",
|
|
57
|
+
"k": "new"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
35
61
|
{
|
|
36
62
|
"v": "0.465.0",
|
|
37
63
|
"at": "2026-10-31T03:26:05.595Z",
|
|
@@ -271,32 +297,6 @@
|
|
|
271
297
|
"k": "new"
|
|
272
298
|
}
|
|
273
299
|
]
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"v": "0.447.0",
|
|
277
|
-
"at": "2026-10-29T07:29:44.667Z",
|
|
278
|
-
"f": 3,
|
|
279
|
-
"prs": [
|
|
280
|
-
{
|
|
281
|
-
"n": 1093,
|
|
282
|
-
"t": "Grill and Forecast backend",
|
|
283
|
-
"s": "Grill and Forecast backend",
|
|
284
|
-
"k": "new"
|
|
285
|
-
}
|
|
286
|
-
]
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"v": "0.446.0",
|
|
290
|
-
"at": "2026-10-29T05:32:26.109Z",
|
|
291
|
-
"f": 3,
|
|
292
|
-
"prs": [
|
|
293
|
-
{
|
|
294
|
-
"n": 1091,
|
|
295
|
-
"t": "D101, the PMOS server may call outside services",
|
|
296
|
-
"s": "D101, the PMOS server may call outside services",
|
|
297
|
-
"k": "new"
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
300
|
}
|
|
301
301
|
]
|
|
302
302
|
}
|
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-31T08:49:37Z"}
|
|
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-31T08:49:37Z"}
|
|
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-31T08:49:37Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.467.0",
|
|
4
|
+
"at": "2026-10-31T08:49:40.991Z",
|
|
5
|
+
"f": 3,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1119,
|
|
9
|
+
"t": "Ratify the central board-publish host as D103; log board-publish run 1",
|
|
10
|
+
"s": "Ratify the central board-publish host as D103; log board-publish run 1",
|
|
11
|
+
"k": "x"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.466.0",
|
|
17
|
+
"at": "2026-10-31T06:47:06.602Z",
|
|
18
|
+
"f": 3,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1118,
|
|
22
|
+
"t": "Board-publish slice 1 — the data pack and the Board's read-only mode",
|
|
23
|
+
"s": "Board-publish slice 1 — the data pack and the Board's read-only mode",
|
|
24
|
+
"k": "new"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
2
28
|
{
|
|
3
29
|
"v": "0.465.0",
|
|
4
30
|
"at": "2026-10-31T03:26:05.595Z",
|
package/workspace/guide/index.md
CHANGED
|
@@ -81,6 +81,7 @@ On a desktop the workspace is one frame. [Layout](layout.md) explains each part.
|
|
|
81
81
|
- [Forecasts](forecast.md): how a goal, a delivery, a program and a health budget are forecast, the states, the kept baseline, and `pmos forecast`.
|
|
82
82
|
- [Programs on the Board](programs.md): All products, programs first then products, By product, the program panel and its milestones, and the 60 % side panels.
|
|
83
83
|
- [Board](board.md): one Kanban for the items of every initiative, its filters, Release, and `pmos board`.
|
|
84
|
+
- [Published board](published-board.md): a read-only copy of a Board for a teammate, what a reader sees and cannot do, the data pack and how to preview one.
|
|
84
85
|
- [The lifecycle](lifecycle.md): the six stages and two milestones of an initiative, what each makes, which steps each lane uses, and how the step is read from the records.
|
|
85
86
|
- [Integrated work](integrated-work.md): how `pmos verify-work` turns a merged commit into Done, and what "Done · your call · not merged" means.
|
|
86
87
|
- [Report slides](report-slides.md): how the Reports page shows a report as the PM-OS biweekly slides, Present and Print / PDF, and how your notes become the words on the slides.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Guide
|
|
3
|
+
title: "Published board: a read-only copy of a Board"
|
|
4
|
+
description: "What a published board is, what a reader sees and cannot do, and how to preview one today."
|
|
5
|
+
timestamp: 2026-10-31
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Published board: a read-only copy of a Board
|
|
9
|
+
|
|
10
|
+
A **published board** is a copy of the Board that a teammate can read. It shows the Timeline of the products, programs or initiatives that you pick. It is a snapshot. It does not change after it is taken.
|
|
11
|
+
|
|
12
|
+
This version has the read-only Board and the **data pack** that feeds it. The Publish button, the shared host and the team hub come in a later version. Until then, you can build a pack and preview it in your own workspace.
|
|
13
|
+
|
|
14
|
+
## What a reader sees
|
|
15
|
+
|
|
16
|
+
- The Timeline, as you see it in the workspace. It opens on today.
|
|
17
|
+
- The span picker, the Deliveries lane, and the folds of a program and a product.
|
|
18
|
+
- One line above the Board. It names the selection, the date of the copy, who shared it and when the link ends. It links back to the team hub.
|
|
19
|
+
- A viewer for each initiative. Press the name of an initiative to open it. The viewer shows the stage card, About and Tasks. Tasks show as a List or as a Timeline, grouped by stage, owner or status.
|
|
20
|
+
- The panel divider and the panel layout: full screen, split or slide over.
|
|
21
|
+
|
|
22
|
+
While a viewer is open, the Timeline shows only the name of each initiative. The Stage, Status, Start and Next milestone columns are not shown.
|
|
23
|
+
|
|
24
|
+
## What a reader cannot do
|
|
25
|
+
|
|
26
|
+
A reader can only look. Nothing that a reader presses or types changes anything.
|
|
27
|
+
|
|
28
|
+
- The Board has no toolbar, no board picker, no filters and no **New initiative**.
|
|
29
|
+
- A viewer has no rename, no **More**, no **Discuss in chat**, and no **+** to add a task or a person.
|
|
30
|
+
- A task has no tick, no status and no date to change.
|
|
31
|
+
- A viewer lists no documents and no links. It has no offer of Claude's help.
|
|
32
|
+
- The Tasks view menu offers List and Timeline. It has no Kanban and no choice of columns.
|
|
33
|
+
- A page that is a copy makes no request to the workspace. A write is refused.
|
|
34
|
+
|
|
35
|
+
## Build a pack
|
|
36
|
+
|
|
37
|
+
The pack of a selection comes from `GET /api/board-pack`. It holds only what the Timeline and the viewer draw, for the selection. It holds nothing about any other initiative.
|
|
38
|
+
|
|
39
|
+
- `ws` and `board` name the board. A board is a product.
|
|
40
|
+
- `select` names what to publish. Write `product:<id>`, `program:<id>` or `initiative:<id>`. Separate several with a comma. The pack holds all of them.
|
|
41
|
+
- `by`, `at` and `ends` are shown on the line above the Board. `hub` is the address of the team hub.
|
|
42
|
+
|
|
43
|
+
A pack can be at most 2 MB. A selection that the board does not hold gets a message that names it.
|
|
44
|
+
|
|
45
|
+
## Preview a pack
|
|
46
|
+
|
|
47
|
+
To see what a teammate will see, open the Board with `pack` set to the route. Write the route address in encoded form:
|
|
48
|
+
|
|
49
|
+
`/premium-board.html?pack=%2Fapi%2Fboard-pack%3Fws%3D<id>%26board%3D<id>%26select%3Dprogram%3A<id>`
|
|
50
|
+
|
|
51
|
+
The page reads the pack once and draws the Board from it. It makes no other request to the workspace. Without `pack`, the Board is the Board that you use every day.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* board-pack-route.js — GET /api/board-pack?ws=<id>&board=<id>&select=<kind>:<id>[,<kind>:<id>…][&by=&at=&ends=&hub=&viewer=]
|
|
3
|
+
* (initiative board-publish, planning/prd/board-publish-prd.md R1; slice 1). Answered by routes-board-premium.js, which lists the prefix and hands the request here:
|
|
4
|
+
* the pack is made from that route's own answer (the Board's model), so it is the Board's route that serves it.
|
|
5
|
+
*
|
|
6
|
+
* 200 { ok, pack } | 202 { ok, state: 'reading' } | 400 { ok: false, error } (a selection the board does not hold, or too big)
|
|
7
|
+
* The data pack of a selection (lib/board-pack.js): the Board's own GET answers, read from the routes the Board reads, whitelisted and swept for what the
|
|
8
|
+
* selection does not hold. Read-only: it writes nothing and publishes nothing. Publishing is a page press that comes with slice 2, after D103. The
|
|
9
|
+
* read-only Board opens a pack with ?pack=<url>. */
|
|
10
|
+
const Pack = require('./board-pack.js');
|
|
11
|
+
const BoardPremium = require('./routes-board-premium.js');
|
|
12
|
+
const Programs = require('./routes-programs.js');
|
|
13
|
+
const Trail = require('./routes-board-trail.js');
|
|
14
|
+
const Layout = require('./routes-initiative-layout.js');
|
|
15
|
+
|
|
16
|
+
/** GET `pathAndQuery` from a route module's own handler and return { status, body } (the same helper routes-board-premium.js uses). */
|
|
17
|
+
async function via(mod, pathAndQuery, req, ctx) {
|
|
18
|
+
let out = { status: 500, body: null };
|
|
19
|
+
const c = Object.assign({}, ctx, { json: (res, obj, code) => { out = { status: code || 200, body: obj }; } });
|
|
20
|
+
const u = new URL('http://local' + pathAndQuery);
|
|
21
|
+
const handled = await mod.handle({ method: 'GET', headers: (req && req.headers) || {} }, {}, u, c);
|
|
22
|
+
return handled === false ? { status: 404, body: null } : out;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const KINDS = new Set(Pack.KINDS);
|
|
26
|
+
function parseSelect(raw) {
|
|
27
|
+
return String(raw || '').split(',').map((s) => s.trim()).filter(Boolean).map((s) => { const i = s.indexOf(':'); return { kind: s.slice(0, i), id: s.slice(i + 1) }; });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports = {
|
|
31
|
+
prefixes: ['/api/board-pack'],
|
|
32
|
+
handle: async (req, res, url, ctx) => {
|
|
33
|
+
if (url.pathname !== '/api/board-pack') return false;
|
|
34
|
+
if (req.method !== 'GET') { ctx.json(res, { ok: false, error: 'GET only' }, 405); return true; }
|
|
35
|
+
const q = url.searchParams; const bad = (error, code) => { ctx.json(res, { ok: false, error }, code || 400); return true; };
|
|
36
|
+
try {
|
|
37
|
+
const selection = parseSelect(q.get('select'));
|
|
38
|
+
if (!selection.length) return bad('Pick at least one product, program or initiative to publish.');
|
|
39
|
+
if (selection.some((s) => !KINDS.has(s.kind))) return bad('Each item is a product, a program or an initiative.');
|
|
40
|
+
const ws = q.get('ws'); const board = q.get('board') || ws;
|
|
41
|
+
if (!ws) return bad('Say which workspace the board is in (ws=).');
|
|
42
|
+
const key = '/api/board-premium?ws=' + encodeURIComponent(ws) + '&board=' + encodeURIComponent(board);
|
|
43
|
+
const b = await via(BoardPremium, key, req, ctx);
|
|
44
|
+
if (b.status === 202) { ctx.json(res, { ok: true, state: 'reading' }, 202); return true; }
|
|
45
|
+
if (!b.body || b.body.ok === false) return bad((b.body && b.body.error) || 'The board could not be read.', 502);
|
|
46
|
+
const answers = { [key]: b.body };
|
|
47
|
+
const pg = await via(Programs, '/api/programs', req, ctx); if (pg.body && pg.body.ok) answers['/api/programs'] = pg.body;
|
|
48
|
+
const rows = ((b.body.model && b.body.model.rows) || []).filter((r) => r && r.id).map((r) => r.id);
|
|
49
|
+
if (rows.length) {
|
|
50
|
+
const tk = '/api/board-trail?ws=' + encodeURIComponent(ws) + '&board=' + encodeURIComponent(board) + '&ids=' + rows.join(',');
|
|
51
|
+
const t = await via(Trail, tk, req, ctx); if (t.body && t.body.ok) answers[tk] = t.body;
|
|
52
|
+
for (const id of rows) { const lk = '/api/initiative-layout?initiative=' + encodeURIComponent(id) + '&ws=' + encodeURIComponent(ws); const l = await via(Layout, lk, req, ctx); if (l.body && l.body.ok) answers[lk] = l.body; }
|
|
53
|
+
}
|
|
54
|
+
const meta = { by: q.get('by') || '', at: q.get('at') || '', ends: q.get('ends') || '', viewer: q.get('viewer') || '', hub: q.get('hub') || '' };
|
|
55
|
+
ctx.json(res, { ok: true, pack: Pack.buildPack({ ws, board, selection, answers, meta }) });
|
|
56
|
+
} catch (e) { return bad(String((e && e.message) || e).slice(0, 240), /not on this board|Pick at least|at most 2 MB|product, a program/.test(String(e && e.message)) ? 400 : 500); }
|
|
57
|
+
return true;
|
|
58
|
+
},
|
|
59
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* board-pack.js — the DATA PACK of a published board (initiative board-publish, planning/prd/board-publish-prd.md R1 to R3, H5; D103).
|
|
3
|
+
*
|
|
4
|
+
* A pack is a recorded set of the Board's GET answers for ONE selection, plus who shared it and when. The Board's own code, in its read-only mode
|
|
5
|
+
* (pm/readonly-boot.js), answers every GET /api/… from it. A share carries data and no code.
|
|
6
|
+
*
|
|
7
|
+
* buildPack({ ws, board, selection, answers, meta }) → { schema, viewer, scope, by, at, ends, hub?, responses }
|
|
8
|
+
* ws, board the board the answers are from (a product is a board)
|
|
9
|
+
* selection [{ kind: 'product' | 'program' | 'initiative', id }], one or more; the pack holds the union
|
|
10
|
+
* answers { '/api/…?query': body } — the Board's GET answers, as the workspace's own routes gave them. Pure: nothing is read here
|
|
11
|
+
* meta { by, at, ends, viewer, hub? } — shown on the one line above the Board, and the version of the Board's code that reads the pack
|
|
12
|
+
* assertSize(pack) throws the host's limit (2 MB, H5)
|
|
13
|
+
*
|
|
14
|
+
* It WHITELISTS, it never copies a model and subtracts. A path the builder does not know is not carried (an inbox, a setting). A model key the Timeline
|
|
15
|
+
* and the viewer do not draw is not carried (the dock, the asks, the sprint, the release, the Jira reading, the chips). Then a sweep drops any value
|
|
16
|
+
* that still names an initiative outside the selection, by id or by title, wherever it sits: a plain-text field that names one (the prototype's dock.next
|
|
17
|
+
* did) cannot get through. The publisher's own viewpoint goes too: "Your turn", the actions only the publisher can take. */
|
|
18
|
+
|
|
19
|
+
const SCHEMA = 'board-pack/1';
|
|
20
|
+
const MAX_BYTES = 2 * 1024 * 1024;
|
|
21
|
+
const KINDS = ['product', 'program', 'initiative'];
|
|
22
|
+
|
|
23
|
+
// the parts of the Board's model that the Timeline and the viewer draw
|
|
24
|
+
const MODEL_KEYS = ['pending', 'workflows', 'today', 'header', 'board', 'initiatives', 'steps', 'rows'];
|
|
25
|
+
// a key that is the publisher's own, wherever it sits: what only they can do, and what is theirs to answer
|
|
26
|
+
const OWN_KEYS = new Set(['acts', 'dialog', 'you']);
|
|
27
|
+
|
|
28
|
+
const pathOf = (k) => String(k).split('?')[0];
|
|
29
|
+
const queryOf = (k) => { const i = String(k).indexOf('?'); return new URLSearchParams(i < 0 ? '' : String(k).slice(i + 1)); };
|
|
30
|
+
const clone = (v) => JSON.parse(JSON.stringify(v));
|
|
31
|
+
const plain = (m) => { throw new Error(m); };
|
|
32
|
+
|
|
33
|
+
function assertSize(pack) {
|
|
34
|
+
const bytes = Buffer.byteLength(JSON.stringify(pack));
|
|
35
|
+
if (bytes > MAX_BYTES) plain('A board pack can be at most 2 MB. This one is ' + (bytes / 1048576).toFixed(1) + ' MB. Pick less to publish.');
|
|
36
|
+
return bytes;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** The initiative ids a selection holds, the label of each item, and what is known about the board, from the answers. */
|
|
40
|
+
function resolve(ws, board, selection, boardModel, programs) {
|
|
41
|
+
const rows = (boardModel.rows || []).filter((r) => r && r.id);
|
|
42
|
+
const titleOf = new Map(rows.map((r) => [r.id, r.title || r.id]));
|
|
43
|
+
const progs = (programs || []).filter(Boolean);
|
|
44
|
+
const members = (p) => ((p && p.members) || []).filter((m) => m && m.ws === ws).map((m) => m.initiative);
|
|
45
|
+
const keep = new Set(); const labels = []; const keptPrograms = [];
|
|
46
|
+
for (const it of selection) {
|
|
47
|
+
if (!it || !KINDS.includes(it.kind)) plain('Each item is a product, a program or an initiative.');
|
|
48
|
+
const id = String(it.id || '');
|
|
49
|
+
if (it.kind === 'product') {
|
|
50
|
+
if (id !== board && id !== ws) plain('"' + id + '" is not on this board.');
|
|
51
|
+
rows.forEach((r) => keep.add(r.id)); labels.push((boardModel.board && boardModel.board.name) || board);
|
|
52
|
+
} else if (it.kind === 'program') {
|
|
53
|
+
const p = progs.find((x) => x.id === id); const ids = members(p).filter((x) => titleOf.has(x));
|
|
54
|
+
if (!p || !ids.length) plain('"' + id + '" is not on this board.');
|
|
55
|
+
ids.forEach((x) => keep.add(x)); keptPrograms.push(p); labels.push(p.title || id);
|
|
56
|
+
} else {
|
|
57
|
+
if (!titleOf.has(id)) plain('"' + id + '" is not on this board.');
|
|
58
|
+
keep.add(id); labels.push(titleOf.get(id));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return { keep, labels, titleOf, keptPrograms, progs, wholeBoard: selection.some((i) => i.kind === 'product') };
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** Everything that names an initiative outside the selection: its id, and its title when the board holds it. */
|
|
65
|
+
function needlesOf(R, ws) {
|
|
66
|
+
const out = new Set();
|
|
67
|
+
for (const [id, title] of R.titleOf) if (!R.keep.has(id)) { out.add(id); if (title && title.length >= 4) out.add(title); }
|
|
68
|
+
for (const p of R.progs) for (const m of (p && p.members) || []) if (m && m.initiative && !(m.ws === ws && R.keep.has(m.initiative))) out.add(m.initiative);
|
|
69
|
+
return [...out].filter(Boolean);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** Drop what the publisher owns and every value that names an outside initiative. Returns undefined for a value that must go. */
|
|
73
|
+
function sweep(v, needles) {
|
|
74
|
+
if (typeof v === 'string') return needles.some((x) => v.includes(x)) ? undefined : v;
|
|
75
|
+
if (Array.isArray(v)) return v.map((x) => sweep(x, needles)).filter((x) => x !== undefined);
|
|
76
|
+
if (v && typeof v === 'object') {
|
|
77
|
+
const o = {};
|
|
78
|
+
for (const k of Object.keys(v)) {
|
|
79
|
+
if (OWN_KEYS.has(k) || needles.some((x) => k.includes(x))) continue;
|
|
80
|
+
const s = sweep(v[k], needles); if (s !== undefined) o[k] = s;
|
|
81
|
+
}
|
|
82
|
+
return o;
|
|
83
|
+
}
|
|
84
|
+
return v;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Drop every record of an initiative outside the selection from the lists of a model, wherever it sits (rows, bars, List rows, stages). */
|
|
88
|
+
function pruneRecords(v, outside) {
|
|
89
|
+
if (Array.isArray(v)) return v.filter((x) => !(x && typeof x === 'object' && outside.has(x.id))).map((x) => pruneRecords(x, outside));
|
|
90
|
+
if (v && typeof v === 'object') { const o = {}; for (const k of Object.keys(v)) o[k] = pruneRecords(v[k], outside); return o; }
|
|
91
|
+
return v;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function boardModelOf(answer) { return answer && answer.model ? clone(answer.model) : null; }
|
|
95
|
+
|
|
96
|
+
function buildPack({ ws, board, selection, answers, meta }) {
|
|
97
|
+
if (!Array.isArray(selection) || !selection.length) plain('Pick at least one product, program or initiative to publish.');
|
|
98
|
+
const boardKey = Object.keys(answers || {}).find((k) => pathOf(k) === '/api/board-premium' && queryOf(k).get('ws') === ws);
|
|
99
|
+
const model0 = boardKey && boardModelOf(answers[boardKey]);
|
|
100
|
+
if (!model0) plain('The board is not in the answers.');
|
|
101
|
+
const programsAnswer = answers['/api/programs'] && answers['/api/programs'].programs;
|
|
102
|
+
const R = resolve(ws, board, selection, model0, programsAnswer);
|
|
103
|
+
const needles = needlesOf(R, ws);
|
|
104
|
+
const outside = new Set([...R.titleOf.keys()].filter((id) => !R.keep.has(id)));
|
|
105
|
+
|
|
106
|
+
// the model: only the keys that are drawn, only the selection's records, then the sweep
|
|
107
|
+
const model = {};
|
|
108
|
+
for (const k of MODEL_KEYS) if (k in model0) model[k] = model0[k];
|
|
109
|
+
const swept = sweep(pruneRecords(model, outside), needles);
|
|
110
|
+
|
|
111
|
+
// programs: a program selection keeps that program, a product keeps the programs that hold something of it, an initiative keeps none
|
|
112
|
+
const kept = R.wholeBoard ? R.progs.filter((p) => ((p && p.members) || []).some((m) => m && m.ws === ws)) : R.keptPrograms;
|
|
113
|
+
const programs = sweep(kept.map((p) => Object.assign({}, p, { members: ((p && p.members) || []).filter((m) => m && m.ws === ws && R.keep.has(m.initiative)) })), needles.filter((x) => !R.keep.has(x)));
|
|
114
|
+
|
|
115
|
+
const responses = {};
|
|
116
|
+
responses[boardKey] = { ok: true, state: 'ready', model: swept, as_of: answers[boardKey].as_of };
|
|
117
|
+
responses['/api/programs'] = { ok: true, programs };
|
|
118
|
+
for (const k of Object.keys(answers)) {
|
|
119
|
+
const p = pathOf(k); const q = queryOf(k);
|
|
120
|
+
if (p === '/api/board-trail' || p === '/api/board-grill') {
|
|
121
|
+
const ids = (q.get('ids') || '').split(',').filter((x) => R.keep.has(x));
|
|
122
|
+
if (!ids.length) continue;
|
|
123
|
+
const qs = new URLSearchParams(q); qs.set('ids', ids.join(','));
|
|
124
|
+
const body = clone(answers[k]); const pick = (o) => { if (!o || typeof o !== 'object') return o; const r = {}; for (const id of Object.keys(o)) if (R.keep.has(id)) r[id] = o[id]; return r; };
|
|
125
|
+
if (body.items) body.items = pick(body.items);
|
|
126
|
+
responses[p + '?' + qs.toString().replace(/%2C/g, ',')] = sweep(body, needles) || {};
|
|
127
|
+
} else if (p === '/api/initiative-layout') {
|
|
128
|
+
if (R.keep.has(q.get('initiative'))) responses[k] = sweep(clone(answers[k]), needles) || {};
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const sorted = {}; for (const k of Object.keys(responses).sort()) sorted[k] = responses[k];
|
|
132
|
+
|
|
133
|
+
const only = selection.length === 1;
|
|
134
|
+
const scope = only ? { kind: selection[0].kind, id: selection[0].id, label: R.labels[0] } : { kind: 'multi', id: selection.map((i) => i.kind + ':' + i.id).join(','), label: R.labels.join(' + ') };
|
|
135
|
+
const m = meta || {};
|
|
136
|
+
const pack = { schema: SCHEMA, viewer: m.viewer || '', scope, by: m.by || '', at: m.at || '', ends: m.ends || '' };
|
|
137
|
+
if (m.hub) pack.hub = m.hub;
|
|
138
|
+
pack.responses = sorted;
|
|
139
|
+
assertSize(pack);
|
|
140
|
+
return pack;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
module.exports = { SCHEMA, MAX_BYTES, KINDS, MODEL_KEYS, buildPack, assertSize };
|
|
@@ -60,9 +60,10 @@ const programMemberIds = (programs, ws) => {
|
|
|
60
60
|
|
|
61
61
|
module.exports = {
|
|
62
62
|
programMemberIds,
|
|
63
|
-
prefixes: ['/api/board-premium', '/api/board-metrics-premium'],
|
|
63
|
+
prefixes: ['/api/board-premium', '/api/board-metrics-premium', '/api/board-pack'],
|
|
64
64
|
handle: async (req, res, url, ctx) => {
|
|
65
65
|
if (url.pathname === '/api/board-metrics-premium') return metrics(req, res, url, ctx);
|
|
66
|
+
if (url.pathname === '/api/board-pack') return require('./board-pack-route.js').handle(req, res, url, ctx); // the data pack of a published board (board-publish), made from this route's own answer
|
|
66
67
|
if (url.pathname !== '/api/board-premium') return false;
|
|
67
68
|
if (req.method !== 'GET') { ctx.json(res, { ok: false, error: 'GET only' }, 405); return true; }
|
|
68
69
|
const fail = (error) => { ctx.json(res, { ok: false, state: 'error', error: String(error).slice(0, 240) }, 500); return true; };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.467.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.467.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -1462,3 +1462,13 @@ span.tg-ng { cursor: default; }
|
|
|
1462
1462
|
.tg-chd svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
|
|
1463
1463
|
.tg-chd:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 6px; }
|
|
1464
1464
|
}
|
|
1465
|
+
|
|
1466
|
+
/* the read-only copy of a published board (pm/readonly.js, initiative board-publish): hidden means gone, the line above the Board, and the Timeline with a viewer open */
|
|
1467
|
+
.ro [hidden] { display: none !important; }
|
|
1468
|
+
.ro-by { margin: 14px 18px 0; font-size: var(--fs-1); color: var(--cz-ink3); }
|
|
1469
|
+
.ro-by b { color: var(--cz-ink); font-weight: 700; }
|
|
1470
|
+
.ro-back { color: inherit; font-weight: 700; text-decoration: none; }
|
|
1471
|
+
.ro-back:hover { text-decoration: underline; }
|
|
1472
|
+
/* with a viewer open the Timeline keeps the initiative's name: no Stage, Status, Start or Next milestone */
|
|
1473
|
+
.ro-vw .tg { --nw: 300px !important; --cg: minmax(0, 1fr) !important; }
|
|
1474
|
+
.ro-vw .tg-h .tg-n > :nth-child(n+2), .ro-vw .tg-n.ini2 > :nth-child(n+2) { display: none !important; }
|
|
@@ -27,6 +27,7 @@ import { stepsHelpHtml } from './bd-stages.js';
|
|
|
27
27
|
import { msMode } from './bd-pins.js';
|
|
28
28
|
import { timelineHtml, legendHtml, hasHold, planKeys, gapKeys, plainGaps, skipsOf, skipWords, gapWords, SPANS, md } from './bd-span.js';
|
|
29
29
|
import * as TL from './bd-scroll.js';
|
|
30
|
+
import './readonly.js'; // the read-only mode of a published board: nothing happens unless the page was opened with ?pack= (board-publish)
|
|
30
31
|
import * as Acts from './bd-acts.js';
|
|
31
32
|
import * as V from './bd-views.js';
|
|
32
33
|
import * as WF from './bd-wf.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* pm/readonly-boot.js — the first script of the Board page. When the page is opened with ?pack=<file>, it is a PUBLISHED board: this loads the pack and
|
|
2
|
+
* starts the read-only mode (initiative board-publish, planning/prd/board-publish-prd.md R4). Without ?pack= it does nothing at all.
|
|
3
|
+
* A classic script, not a module: the Board's modules read window.PMOS_READONLY when they load, so it must be set before them.
|
|
4
|
+
* · the pack is a file of the page's own server (a path that starts with one /), read once, here, before any module runs. It may be the answer of
|
|
5
|
+
* GET /api/board-pack itself: ?pack=%2Fapi%2Fboard-pack%3Fws%3D…%26select%3Dproduct%3A… previews what a teammate will see;
|
|
6
|
+
* · every GET /api/… is answered from the pack, and every other call is refused with 403, and none of them reach the network;
|
|
7
|
+
* · the pack's board is put in the page address when the address names none, so a share's link needs no ?ws=. */
|
|
8
|
+
(function () {
|
|
9
|
+
var q = new URLSearchParams(location.search); var file = q.get('pack');
|
|
10
|
+
if (!file || file.charAt(0) !== '/' || file.charAt(1) === '/') return;
|
|
11
|
+
var pack = null;
|
|
12
|
+
try { var x = new XMLHttpRequest(); x.open('GET', file, false); x.send(); if (x.status === 200) pack = JSON.parse(x.responseText); } catch (e) { pack = null; }
|
|
13
|
+
if (pack && pack.ok && pack.pack) pack = pack.pack; // the pack as GET /api/board-pack answers it: { ok, pack }
|
|
14
|
+
if (!pack || pack.schema !== 'board-pack/1' || !pack.responses) return;
|
|
15
|
+
window.PMOS_READONLY = pack;
|
|
16
|
+
var R = pack.responses;
|
|
17
|
+
if (!q.get('ws')) {
|
|
18
|
+
var bk = Object.keys(R).filter(function (k) { return /^\/api\/board-premium\?/.test(k); })[0]; var bm = bk && /ws=([^&]+)&board=([^&]+)/.exec(bk);
|
|
19
|
+
if (bm) { try { history.replaceState(null, '', location.pathname + '?ws=' + bm[1] + '&board=' + bm[2] + '&pack=' + encodeURIComponent(file)); } catch (e) { /* none */ } }
|
|
20
|
+
}
|
|
21
|
+
var norm = function (a) { var l = []; new URLSearchParams(a.search).forEach(function (v, k) { l.push(k + '=' + v); }); l.sort(); return a.pathname + '?' + l.join('&'); };
|
|
22
|
+
var byNorm = {}; Object.keys(R).forEach(function (k) { byNorm[norm(new URL(k, location.href))] = R[k]; });
|
|
23
|
+
var json = function (o, status) { return new Response(JSON.stringify(o), { status: status || 200, headers: { 'Content-Type': 'application/json' } }); };
|
|
24
|
+
var realFetch = window.fetch.bind(window);
|
|
25
|
+
window.fetch = function (input, init) {
|
|
26
|
+
var url = typeof input === 'string' ? input : (input && input.url) || String(input);
|
|
27
|
+
var method = String((init && init.method) || (input && input.method) || 'GET').toUpperCase();
|
|
28
|
+
var a = new URL(url, location.href);
|
|
29
|
+
if (a.origin === location.origin && a.pathname.indexOf('/api/') === 0) {
|
|
30
|
+
if (method !== 'GET') return Promise.resolve(json({ ok: false, error: 'This board is a read-only copy.' }, 403));
|
|
31
|
+
var hit = R[a.pathname + a.search]; if (hit === undefined) hit = byNorm[norm(a)];
|
|
32
|
+
return Promise.resolve(hit !== undefined ? json(hit) : json({ ok: false, error: 'Not part of this copy.' }, 404));
|
|
33
|
+
}
|
|
34
|
+
return realFetch(input, init);
|
|
35
|
+
};
|
|
36
|
+
// a page that is a copy never posts from the side either
|
|
37
|
+
if (navigator.sendBeacon) navigator.sendBeacon = function () { return false; };
|
|
38
|
+
})();
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* pm/readonly.js — the Board's READ-ONLY MODE, for a published board (initiative board-publish, planning/prd/board-publish-prd.md R4 to R8).
|
|
2
|
+
* pm/readonly-boot.js has set window.PMOS_READONLY (the pack) when the page was opened with ?pack=; without it nothing here runs.
|
|
3
|
+
*
|
|
4
|
+
* A teammate can only look. This holds in three layers, so that one miss does not let a press change anything:
|
|
5
|
+
* 1. the pack answers every read and refuses every write (pm/readonly-boot.js, before any module runs);
|
|
6
|
+
* 2. a control that writes is not drawn: the Board's static toolbar is hidden, and every control the code draws is removed (or, where its words are
|
|
7
|
+
* the content, a title or a date, set as plain text) the moment it is drawn, before it is painted. Every field is disabled;
|
|
8
|
+
* 3. DEFAULT DENY: a press, a key or a drag on anything pressable that is not a VIEW CONTROL is refused before the Board's code sees it.
|
|
9
|
+
* A view control is what a reader does to look: open an initiative, fold, switch a view, change the span, the panel's layout and divider.
|
|
10
|
+
* VIEW_CONTROLS is the whole list of what a reader can do. board-readonly.test.js lists every pressable thing the page draws and fails on one that is not
|
|
11
|
+
* in it, so a new control added to the Board shows up there before it can reach a share.
|
|
12
|
+
*
|
|
13
|
+
* RO · PACK · VIEW_CONTROLS */
|
|
14
|
+
|
|
15
|
+
export const PACK = (typeof window !== 'undefined' && window.PMOS_READONLY) || null;
|
|
16
|
+
export const RO = !!PACK;
|
|
17
|
+
|
|
18
|
+
/** What a reader can do. Each is a selector; a press inside a match is let through. */
|
|
19
|
+
export const VIEW_CONTROLS = [
|
|
20
|
+
// the Timeline: the span, a column's sort, back to today, the Deliveries lane, the folds, an initiative's name (opens its viewer)
|
|
21
|
+
'#bdSpans button', '.tg-chd', '.tg-tback', '.dl-fb', '.dl-dn', '.dl-e[aria-label*="press to open"]', '.bd-fold', '.bd-prdb', 'label.tg-n', 'button.tg-n.ini2',
|
|
22
|
+
// the viewer: the layout, the close, the folds, the Tasks view menu, a stage's fold and its done tasks
|
|
23
|
+
'.cz-vw-ib[aria-label="Arrange"]', '.cz-vw-ib[aria-label="Close the viewer"]', '.cz-pn-menu', '[class*="cz-dv"]',
|
|
24
|
+
'.iv-mctg', '.iv-gx-t', '.iv-ws', '.iv-grp', '.iv-ab-h', '.iv-fr', '.ivx-vb', '.tkc-pop [data-ivs-view]', '.tkc-pop [data-ivs-by]', '.tkc-pop [data-ivs-zoom]',
|
|
25
|
+
// the line above the Board
|
|
26
|
+
'.ro-back',
|
|
27
|
+
].join(',');
|
|
28
|
+
|
|
29
|
+
/** The Board's static toolbar and chips: hidden, so the page's own script keeps the elements it holds. */
|
|
30
|
+
const HIDE = ['.bd-hd', '.bd-tabs', '#crumbHost', '#ibTabs', '#bdFind', '#bdView', '#bdColsw', '#bdSort', '#bdFilter', '#bdBell', '#newIni', '.tools-top', '#bdGrpw', '#czFab'];
|
|
31
|
+
/** Controls the code draws that write, or lead to something a share does not hold: removed. */
|
|
32
|
+
const REMOVE = [
|
|
33
|
+
'#bdChipset > :not(.tg-lgd)', '#askDates', '.tg-ft',
|
|
34
|
+
'.cz-vw-ib[aria-label="Discuss in chat"]', '.cz-vw-ib[aria-label="More"]', '.iv-addp', '.iv-prog', '.iv-plus', '.iv-car', '.iv-scgn', '.iv-gx-a',
|
|
35
|
+
'.ab-lk', '[data-ivs-view="kanban"]', '.ivs-cols', '.ivs-h:has(+ .ivs-cols)', '[data-ivs-more]', '.iv-tasks:has(.iv-q)', '.iv-th .iv-ib', '.iv-th .iv-plus',
|
|
36
|
+
];
|
|
37
|
+
/** Controls whose words are the content (a title, a date, a name, a program's milestone in the Deliveries lane): set as plain text, same look. A program's
|
|
38
|
+
* milestone opens the program's charter in the workspace; a share does not hold the charter. */
|
|
39
|
+
const PLAIN = ['button.dl-e[aria-label*="Program milestone"]:not([aria-label*="press to open"])', 'button.cz-vw-rn', 'button.iv-tt', 'button.iv-dc', 'button.iv-stc', 'button.iv-dtc', 'button.iv-wf', 'button.iv-cb', 'button.tg-pgo', 'button.tg-end'];
|
|
40
|
+
/** A fold whose body goes with it: Documents and Linked are not listed. */
|
|
41
|
+
const WITH_BODY = ['[data-iv-fold="docs"]', '[data-iv-docs]', '[data-iv-fold="linked"]'];
|
|
42
|
+
|
|
43
|
+
function plain(el) {
|
|
44
|
+
const s = document.createElement('span'); s.className = el.className;
|
|
45
|
+
for (const a of ['title', 'aria-label']) if (el.getAttribute(a) && !/^Mark done|^Change the status/.test(el.getAttribute(a))) s.setAttribute(a, el.getAttribute(a));
|
|
46
|
+
s.innerHTML = el.innerHTML; el.replaceWith(s);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Make a subtree read-only: remove what writes, set plain what is content, disable every field. */
|
|
50
|
+
export function sanitize(root) {
|
|
51
|
+
if (!RO || !root || !root.querySelectorAll) return;
|
|
52
|
+
const all = (sel) => (root.matches && root.matches(sel) ? [root] : []).concat([...root.querySelectorAll(sel)]);
|
|
53
|
+
for (const sel of WITH_BODY) for (const e of all(sel)) { const b = e.nextElementSibling; if (b && b.tagName === 'DIV' && !/\biv-fr\b/.test(b.className)) b.remove(); e.remove(); }
|
|
54
|
+
for (const sel of REMOVE) for (const e of all(sel)) e.remove();
|
|
55
|
+
for (const sel of PLAIN) for (const e of all(sel)) plain(e);
|
|
56
|
+
for (const f of all('input, textarea, select')) f.disabled = true;
|
|
57
|
+
for (const e of all('[contenteditable]')) e.removeAttribute('contenteditable');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** Default deny: a press, a key or a drag on a thing that can be pressed, and is not a view control, goes nowhere. */
|
|
61
|
+
const PRESSABLE = 'button, a[href], input, textarea, select, label, summary, [role="button"], [role="menuitem"], [role="menuitemradio"], [role="checkbox"], [contenteditable], [draggable="true"], [data-key], [data-row], .tg-bar';
|
|
62
|
+
function refuse(e) {
|
|
63
|
+
const t = e.target; if (!t || !t.closest) return;
|
|
64
|
+
if (e.type === 'keydown' && !/^(Enter| |Delete|Backspace)$/.test(e.key)) return;
|
|
65
|
+
if (!t.closest(PRESSABLE) || t.closest(VIEW_CONTROLS)) return;
|
|
66
|
+
e.stopImmediatePropagation(); e.preventDefault();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const esc = (t) => String(t == null ? '' : t).replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));
|
|
70
|
+
const KIND = { product: 'Product', program: 'Program', initiative: 'Initiative', multi: 'Selection' };
|
|
71
|
+
|
|
72
|
+
/** The one line that says what this copy is, and the way back to the team's hub (R8). */
|
|
73
|
+
function banner() {
|
|
74
|
+
const main = document.getElementById('stage'); if (!main || !PACK || document.querySelector('.ro-by')) return;
|
|
75
|
+
const s = PACK.scope || {}; const d = document.createElement('div'); d.className = 'ro-by';
|
|
76
|
+
d.innerHTML = (PACK.hub ? '<a class="ro-back" href="' + esc(PACK.hub) + '">← Shared boards</a> · ' : '') + '<b>' + esc(s.label) + '</b> · ' + esc(KIND[s.kind] || '') + ' · a read-only copy of ' + esc(PACK.at)
|
|
77
|
+
+ ' · shared by ' + esc(PACK.by) + ' · the link ends ' + esc(PACK.ends);
|
|
78
|
+
main.insertBefore(d, main.firstChild);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function start() {
|
|
82
|
+
document.documentElement.classList.add('ro'); // the look of a copy is in cozy-board.css, under .ro
|
|
83
|
+
for (const sel of HIDE) for (const e of document.querySelectorAll(sel)) e.hidden = true;
|
|
84
|
+
banner(); sanitize(document.body);
|
|
85
|
+
const pending = new Set(); let queued = false;
|
|
86
|
+
const flush = () => { queued = false; for (const n of pending) if (n.isConnected) sanitize(n); pending.clear(); document.body.classList.toggle('ro-vw', !!document.querySelector('#czViewer:not([hidden]) .iv-ws, #czViewer:not([hidden]) .iv-gx-t, #czViewer:not([hidden]) .iv-ab-h')); };
|
|
87
|
+
new MutationObserver((muts) => {
|
|
88
|
+
for (const m of muts) for (const n of m.addedNodes) if (n.nodeType === 1) pending.add(n);
|
|
89
|
+
for (const e of document.querySelectorAll(HIDE.join(','))) if (!e.hidden) e.hidden = true;
|
|
90
|
+
if (!queued) { queued = true; queueMicrotask(flush); }
|
|
91
|
+
}).observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['hidden'] });
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (RO) {
|
|
95
|
+
for (const n of ['click', 'dblclick', 'auxclick', 'mousedown', 'pointerdown', 'dragstart', 'contextmenu', 'keydown', 'submit', 'change', 'input']) window.addEventListener(n, refuse, true);
|
|
96
|
+
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', start); else start();
|
|
97
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Initiative board-publish, slice 1 (planning/prd/board-publish-prd.md R1 to R8): the data pack of a published board (lib/board-pack.js, a pure builder with a path and field whitelist) and the Board's read-only mode (pm/readonly-boot.js, pm/readonly.js, and the draw sites that hold back a control that writes).",
|
|
3
|
+
"modules": [
|
|
4
|
+
"board-pack.test.js",
|
|
5
|
+
"board-readonly.test.js"
|
|
6
|
+
],
|
|
7
|
+
"seconds": {
|
|
8
|
+
"board-pack.test.js": 1,
|
|
9
|
+
"board-readonly.test.js": 40
|
|
10
|
+
}
|
|
11
|
+
}
|