create-pmos 0.264.0 → 0.266.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 +1 -1
- 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/briefing-premium-board-test.js +1 -1
- package/workspace/briefing-premium-test.js +31 -0
- package/workspace/guide/briefing-premium.md +6 -1
- package/workspace/lib/board-premium.js +29 -3
- package/workspace/lib/initiative-premium.js +8 -0
- package/workspace/lib/routes-board-premium.js +15 -4
- package/workspace/lib/routes-initiative-premium.js +1 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +209 -0
- package/workspace/public/pm/premium-acts.js +281 -0
- package/workspace/public/pm/premium-board.js +36 -7
- package/workspace/public/pm/premium-initiative.js +9 -2
- package/workspace/public/pm/premium-shell.js +59 -0
- package/workspace/public/pm/premium.css +42 -0
- package/workspace/public/premium-board.html +4 -2
- package/workspace/public/premium-initiative.html +2 -1
- package/workspace/public/premium-insights.html +1 -0
- package/workspace/public/premium-work.html +1 -0
- package/workspace/public/premium.html +1 -0
- package/workspace/server.js +2 -0
- package/workspace/test-lists/premium-board-actions.json +9 -0
|
@@ -35,12 +35,13 @@
|
|
|
35
35
|
<h1 class="vh" id="iH1">Initiative</h1><div id="crumbHost"></div>
|
|
36
36
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the initiative</span>
|
|
37
37
|
<a class="glass round" id="toConsole" href="/c3.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
38
|
+
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
38
39
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
39
40
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
40
41
|
</header>
|
|
41
42
|
<section class="hero hero-slim"><p class="brief rise" style="--d:2" id="brief" aria-live="polite"></p></section>
|
|
42
43
|
<div id="iMain"><p class="empty3 plain" id="iRead">The initiative is read from its records. This page shows nothing until it has read, rather than guess.</p></div>
|
|
43
|
-
<p class="foot" id="foot">This page reads the initiative's own records, the same ones the Initiatives sheet reads. Its presses are Draft it on a core document, which starts the existing read-only run that writes a draft and sends nothing, Add a task,
|
|
44
|
+
<p class="foot" id="foot">This page reads the initiative's own records, the same ones the Initiatives sheet reads. Its presses are Draft it on a core document, which starts the existing read-only run that writes a draft and sends nothing, Add a task, Add a document, which saves a document on the initiative's record, and the bar under the stages: move it, put it on hold, cancel or archive it, each through the console's route and each with Undo. Opening a document only reads it. Issue and Drop are not built on this page.</p>
|
|
44
45
|
</main>
|
|
45
46
|
<noscript>This page needs JavaScript.</noscript>
|
|
46
47
|
<script type="module" src="/pm/premium-initiative.js"></script>
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
<h1 class="vh">Insights</h1><div id="crumbHost"></div>
|
|
37
37
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the records</span>
|
|
38
38
|
<a class="glass round" id="toConsole" href="/c3.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
39
|
+
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
39
40
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
40
41
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
41
42
|
</header>
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
<h1 class="vh">My work</h1><span class="glass name" aria-hidden="true">My work</span>
|
|
36
36
|
<div class="tools tools-top"><span class="snap" id="snap">Reading your list</span>
|
|
37
37
|
<a class="glass round" id="toConsole" href="/c3.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
38
|
+
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
38
39
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
39
40
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
40
41
|
</header>
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the repository</span>
|
|
38
38
|
<span class="pkw" id="pkw" hidden><button class="fchip" id="pick" aria-haspopup="menu" aria-expanded="false" aria-controls="pickMenu">Products<em id="pickN"></em></button><div class="crmenu pkmenu" id="pickMenu" role="menu" hidden></div></span>
|
|
39
39
|
<a class="glass round" id="toConsole" href="/c3.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
40
|
+
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
40
41
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
41
42
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
42
43
|
</header>
|
package/workspace/server.js
CHANGED
|
@@ -6326,6 +6326,8 @@ async function handleRequest(req, res) {
|
|
|
6326
6326
|
if (p === '/api/session/remove' && req.method === 'POST') {
|
|
6327
6327
|
let body = {};
|
|
6328
6328
|
try { body = JSON.parse((await readBody(req)) || '{}'); } catch { return json(res, { ok: false, error: 'invalid JSON body' }, 400); }
|
|
6329
|
+
const g = pmGuard.requirePagePress(req, body); // premium-sessions: Stop is a page press, so an agent session gets 403
|
|
6330
|
+
if (!g.ok) return json(res, { ok: false, error: g.error }, g.status);
|
|
6329
6331
|
const sess = sessions.get(String(body.id || ''));
|
|
6330
6332
|
if (!sess) {
|
|
6331
6333
|
// an ended session the server no longer holds (only its record on disk is left) is still listed in Past; removing it deletes that record
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Initiative premium-board-actions: the Board's own presses (new asks, New initiative, move, hold, cancel, archive, each with Undo) against the real server on a scratch team repo.",
|
|
3
|
+
"panels": [
|
|
4
|
+
"premium-board-actions-test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"premium-board-actions-test.js": 150
|
|
8
|
+
}
|
|
9
|
+
}
|