create-pmos 0.631.0 → 0.632.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 +14 -20
- 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 +13 -0
- package/workspace/guide/notes.md +7 -3
- package/workspace/lib/extension-cli.js +4 -1
- package/workspace/lib/extension-setup.js +93 -0
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-extension.js +23 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-buddy.js +2 -0
- package/workspace/public/pm/cozy-ext.js +76 -0
- package/workspace/public/pm/cozy-settings.js +6 -2
- package/workspace/test-lists/meeting-buddy.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.632.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": {
|
|
@@ -33,6 +33,19 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.632.0",
|
|
38
|
+
"at": "2026-11-19T11:23:46.354Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1414,
|
|
43
|
+
"t": "Set up the Meet panel from Settings › Connectors › Google Meet",
|
|
44
|
+
"s": "Set up the Meet panel from Settings › Connectors › Google Meet",
|
|
45
|
+
"k": "new"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.631.0",
|
|
38
51
|
"at": "2026-11-19T11:03:25.147Z",
|
|
@@ -435,25 +448,6 @@
|
|
|
435
448
|
"k": "new"
|
|
436
449
|
}
|
|
437
450
|
]
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"v": "0.610.0",
|
|
441
|
-
"at": "2026-11-18T19:58:43.558Z",
|
|
442
|
-
"f": 4,
|
|
443
|
-
"prs": [
|
|
444
|
-
{
|
|
445
|
-
"n": 1359,
|
|
446
|
-
"t": "The navigation of six places, one thin rail on every page (slice 1)",
|
|
447
|
-
"s": "The navigation of six places, one thin rail on every page (slice 1)",
|
|
448
|
-
"k": "new"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"n": 1360,
|
|
452
|
-
"t": "One popup with the chat",
|
|
453
|
-
"s": "One popup with the chat",
|
|
454
|
-
"k": "new"
|
|
455
|
-
}
|
|
456
|
-
]
|
|
457
451
|
}
|
|
458
452
|
]
|
|
459
453
|
}
|
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-11-19T11:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T11:23:43Z"}
|
|
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-11-19T11:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T11:23:43Z"}
|
|
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-11-19T11:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T11:23:43Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.632.0",
|
|
4
|
+
"at": "2026-11-19T11:23:46.354Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1414,
|
|
9
|
+
"t": "Set up the Meet panel from Settings › Connectors › Google Meet",
|
|
10
|
+
"s": "Set up the Meet panel from Settings › Connectors › Google Meet",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.631.0",
|
|
4
17
|
"at": "2026-11-19T11:03:25.147Z",
|
package/workspace/guide/notes.md
CHANGED
|
@@ -476,9 +476,13 @@ The PMOS Chrome extension shows a small panel over a Google Meet call, so you do
|
|
|
476
476
|
|
|
477
477
|
To add the extension:
|
|
478
478
|
|
|
479
|
-
1.
|
|
480
|
-
2. In Chrome
|
|
481
|
-
3. Press **Load unpacked** and pick the folder
|
|
479
|
+
1. In PMOS, open **Settings › Connectors**. Under **Google Meet**, press the set-up icon. PMOS copies the extension to the folder **PMOS Chrome extension** in your home folder, shows that folder in Finder, and opens Chrome's extensions page.
|
|
480
|
+
2. In Chrome's extensions page, turn on **Developer mode** (top right).
|
|
481
|
+
3. Press **Load unpacked** and pick the folder **PMOS Chrome extension**.
|
|
482
|
+
|
|
483
|
+
The steps also show under the Google Meet row, with the folder's path and a copy button. Chrome keeps these three presses for you: no page can add an extension. If **Load unpacked** is greyed out, your company's Chrome blocks extensions that are not in the Web Store.
|
|
484
|
+
|
|
485
|
+
After an update, PMOS copies the new version to the same folder when you open Settings › Connectors, and the row says so. Press the reload arrow on the PMOS card in Chrome's extensions page. When the panel has loaded in a call, the row says **Working** and the time it was seen. `pmos extension` in a terminal still prints the steps.
|
|
482
486
|
|
|
483
487
|
PMOS must run while you use the panel. The extension looks for PMOS at `http://localhost:7433`. If `pmos` started on another port, open the extension's **Options**, type that address and press **Save**, then reload the Meet tab.
|
|
484
488
|
|
|
@@ -16,7 +16,10 @@ const USAGE = ['usage: pmos extension — the Chrome extension: the meeting comp
|
|
|
16
16
|
function lines(folder, exists = true) {
|
|
17
17
|
const out = [];
|
|
18
18
|
if (!exists) { out.push(`✗ the extension folder is not here: ${folder}`, ' Reinstall the workspace with `pmos upgrade`.'); return out; }
|
|
19
|
-
out.push('PMOS for Chrome', '',
|
|
19
|
+
out.push('PMOS for Chrome', '',
|
|
20
|
+
'Easiest: in PMOS open Settings › Connectors › Google Meet and press Set up. It puts the extension in a folder you can see',
|
|
21
|
+
'("PMOS Chrome extension" in your home folder) and opens Chrome\'s extensions page.', '',
|
|
22
|
+
` folder ${folder}`, '',
|
|
20
23
|
'Load it in three steps:',
|
|
21
24
|
' 1. In Chrome, open chrome://extensions',
|
|
22
25
|
' 2. Turn on Developer mode (top right)',
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* extension-setup.js — set up the PMOS Chrome extension from the workspace (initiative meeting-buddy, follow-up; Wawan 2026-11-19:
|
|
3
|
+
* "I can't find the file. Make it easy, make the setup can be done on the workspace").
|
|
4
|
+
*
|
|
5
|
+
* The extension ships inside the workspace package, which npm puts under a hidden folder (for example ~/.nvm/…/pmos-workspace/extension).
|
|
6
|
+
* Chrome's Load unpacked window does not show hidden folders. So one press copies the extension to a folder the PM can see,
|
|
7
|
+
* ~/PMOS Chrome extension, shows that folder in Finder, and opens Chrome's extensions page. Chrome keeps the last step for the
|
|
8
|
+
* person (Developer mode, Load unpacked, pick the folder): no page or program can load an extension for them.
|
|
9
|
+
*
|
|
10
|
+
* status({ home, seenAt }) -> { ok, folder, copied, version, shipped, current, seen } pure apart from reading the two manifests
|
|
11
|
+
* copyTo(src, dest) copies the extension folder (files only, no links), replacing what is there
|
|
12
|
+
* setup({ home, open, platform }) -> { ok, folder, opened } copy, then show the folder and open chrome://extensions (macOS; else the folder only)
|
|
13
|
+
* refresh({ home }) -> bool on start: when the copy exists and is older than the shipped one, copy again (Chrome still needs the reload arrow)
|
|
14
|
+
* markSeen(now) / seenAt() the buddy page reports itself when it loads inside the Meet panel (GET /api/extension/seen)
|
|
15
|
+
* Nothing here touches Chrome's own files or settings. */
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
const os = require('os');
|
|
18
|
+
const path = require('path');
|
|
19
|
+
|
|
20
|
+
const SHIPPED = path.resolve(__dirname, '..', 'extension');
|
|
21
|
+
const NAME = 'PMOS Chrome extension';
|
|
22
|
+
const folderOf = (home) => path.join(home || os.homedir(), NAME);
|
|
23
|
+
|
|
24
|
+
function versionOf(dir) {
|
|
25
|
+
try { return String(JSON.parse(fs.readFileSync(path.join(dir, 'manifest.json'), 'utf8')).version || ''); } catch { return ''; }
|
|
26
|
+
}
|
|
27
|
+
/** The extension's files as relative paths (plain files only; a link is skipped). */
|
|
28
|
+
function filesOf(dir, rel = '') {
|
|
29
|
+
const out = [];
|
|
30
|
+
let ents = [];
|
|
31
|
+
try { ents = fs.readdirSync(path.join(dir, rel), { withFileTypes: true }); } catch { return out; }
|
|
32
|
+
for (const e of ents) {
|
|
33
|
+
if (e.name.startsWith('.')) continue;
|
|
34
|
+
const r = path.join(rel, e.name);
|
|
35
|
+
if (e.isDirectory()) out.push(...filesOf(dir, r));
|
|
36
|
+
else if (e.isFile()) out.push(r);
|
|
37
|
+
}
|
|
38
|
+
return out;
|
|
39
|
+
}
|
|
40
|
+
/** Same content in both folders (every shipped file present and equal). */
|
|
41
|
+
function same(src, dest) {
|
|
42
|
+
for (const r of filesOf(src)) {
|
|
43
|
+
let a, b; try { a = fs.readFileSync(path.join(src, r)); b = fs.readFileSync(path.join(dest, r)); } catch { return false; }
|
|
44
|
+
if (!a.equals(b)) return false;
|
|
45
|
+
}
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function copyTo(src, dest) {
|
|
50
|
+
const files = filesOf(src);
|
|
51
|
+
if (!files.includes('manifest.json')) throw new Error('the shipped extension has no manifest.json');
|
|
52
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
53
|
+
// a file the new version dropped would stay and confuse Chrome: take out what the shipped folder no longer has
|
|
54
|
+
for (const r of filesOf(dest)) if (!files.includes(r)) { try { fs.unlinkSync(path.join(dest, r)); } catch {} }
|
|
55
|
+
for (const r of files) { fs.mkdirSync(path.dirname(path.join(dest, r)), { recursive: true }); fs.copyFileSync(path.join(src, r), path.join(dest, r)); }
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
let lastSeen = 0;
|
|
59
|
+
function markSeen(now = Date.now()) { lastSeen = now; }
|
|
60
|
+
function seenAt() { return lastSeen; }
|
|
61
|
+
|
|
62
|
+
function status({ home, src = SHIPPED, seenAt: seen = lastSeen } = {}) {
|
|
63
|
+
const folder = folderOf(home);
|
|
64
|
+
const copied = fs.existsSync(path.join(folder, 'manifest.json'));
|
|
65
|
+
const shipped = versionOf(src);
|
|
66
|
+
return { ok: true, folder, copied, version: copied ? versionOf(folder) : '', shipped, current: copied && same(src, folder), seen: seen ? new Date(seen).toISOString() : null };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function opener(platform) {
|
|
70
|
+
if (platform !== 'darwin') return null;
|
|
71
|
+
return (args) => { try { require('child_process').spawn('open', args, { detached: true, stdio: 'ignore' }).unref(); return true; } catch { return false; } };
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function setup({ home, src = SHIPPED, platform = process.platform, open = opener(platform) } = {}) {
|
|
75
|
+
const folder = folderOf(home);
|
|
76
|
+
try { copyTo(src, folder); } catch (e) { return { ok: false, error: 'PMOS could not copy the extension: ' + String((e && e.message) || e).slice(0, 160) }; }
|
|
77
|
+
let opened = false;
|
|
78
|
+
if (open) {
|
|
79
|
+
// show the folder in Finder, then Chrome's extensions page (a page cannot open chrome:// links; this computer can)
|
|
80
|
+
opened = !!open(['-R', path.join(folder, 'manifest.json')]);
|
|
81
|
+
open(['-a', 'Google Chrome', 'chrome://extensions']);
|
|
82
|
+
}
|
|
83
|
+
return { ok: true, folder, opened };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function refresh({ home, src = SHIPPED } = {}) {
|
|
87
|
+
const folder = folderOf(home);
|
|
88
|
+
if (!fs.existsSync(path.join(folder, 'manifest.json'))) return false;
|
|
89
|
+
if (same(src, folder)) return false;
|
|
90
|
+
try { copyTo(src, folder); return true; } catch { return false; }
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
module.exports = { status, setup, refresh, copyTo, markSeen, seenAt, folderOf, SHIPPED, NAME };
|
|
@@ -69,6 +69,7 @@ const MODULES = Object.freeze([
|
|
|
69
69
|
'routes-initiative-premium', // briefing-premium-initiative: the premium initiative page's model from the Initiatives sheet's own routes (read-only)
|
|
70
70
|
'routes-initiative-layout', // premium-uncovered-features (Initiative): Moves on by itself, held stages, task groups and saved group sets (page press; file mode)
|
|
71
71
|
'routes-board-publish', // board-publish slice 2 (D103): publish a board to the central host, republish, turn off (page press; the host is never given a way in)
|
|
72
|
+
'routes-extension', // meeting-buddy: Settings › Connectors › Google Meet: copy the Chrome extension to a folder you can see, open Chrome's extensions page (page press)
|
|
72
73
|
'routes-relay', // event-relay (D110): Settings › Connectors › Listening: set up, show steps, stop, pull now (page press; an event only starts a read)
|
|
73
74
|
'routes-programs', // program-hierarchy: programs above initiatives across products, their members, tasks and milestones (page press; file mode)
|
|
74
75
|
'routes-brief-page', // console3 Briefing as the brief: Today agenda, Needs you and Mentions (read-only; writes go through routes-pm-items)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* routes-extension.js — Settings › Connectors › Google Meet: set up the PMOS Chrome extension from the workspace (lib/extension-setup.js).
|
|
3
|
+
*
|
|
4
|
+
* GET /api/extension -> { ok, folder, copied, version, shipped, current, seen, refreshed } refreshes an existing copy after an update
|
|
5
|
+
* POST /api/extension/setup -> { ok, folder, opened } page press: copy the extension to ~/PMOS Chrome extension, show it, open Chrome's extensions page
|
|
6
|
+
* GET /api/extension/seen -> { ok } the buddy page says it loaded inside the Meet panel
|
|
7
|
+
* Nothing here changes Chrome; the PM still presses Load unpacked once. */
|
|
8
|
+
const X = require('./extension-setup.js');
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
prefixes: ['/api/extension'],
|
|
12
|
+
handle: async (req, res, url, ctx) => {
|
|
13
|
+
const p = url.pathname;
|
|
14
|
+
// an update ships a new extension: keep the copy the PM loaded current (Chrome still needs the reload arrow on its card)
|
|
15
|
+
if (p === '/api/extension' && req.method === 'GET') { const refreshed = X.refresh(); ctx.json(res, { ...X.status(), refreshed }); return true; }
|
|
16
|
+
if (p === '/api/extension/seen' && req.method === 'GET') { X.markSeen(); ctx.json(res, { ok: true }); return true; }
|
|
17
|
+
if (p !== '/api/extension/setup') return false;
|
|
18
|
+
if (req.method !== 'POST') { ctx.json(res, { ok: false, error: 'POST only' }, 405); return true; }
|
|
19
|
+
const r = X.setup();
|
|
20
|
+
ctx.json(res, r, r.ok ? 200 : 500);
|
|
21
|
+
return true;
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.632.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.632.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -54,6 +54,8 @@ async function read() {
|
|
|
54
54
|
|
|
55
55
|
/** Which meeting this call is. With none that fits, today's meetings to pick from. */
|
|
56
56
|
async function find() {
|
|
57
|
+
// inside the Meet panel (the extension passes ?meet): tell Settings › Connectors › Google Meet that the panel works
|
|
58
|
+
if (q.has('meet') && window.top !== window) pmGet('/api/extension/seen').catch(() => {});
|
|
57
59
|
if (q.get('event')) { S.ev = { id: q.get('event') }; S.date = q.get('date') || ''; return read(); }
|
|
58
60
|
const r = await pmGet('/api/meeting-focus/now?meet=' + encodeURIComponent(q.get('meet') || '') + '&title=' + encodeURIComponent(q.get('mtitle') || ''));
|
|
59
61
|
if (r && r.ok) { S.ev = r.event; S.date = r.date; return read(); }
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* cozy-ext.js — Settings › Connectors › Google Meet: set up the PMOS panel over a Meet call from the workspace (initiative meeting-buddy;
|
|
2
|
+
* Wawan 2026-11-19: "I can't find the file. Make it easy, make the setup can be done on the workspace").
|
|
3
|
+
*
|
|
4
|
+
* One row: the panel over Google Meet, what it does now, and icon buttons. Set up copies the extension to ~/PMOS Chrome extension, shows
|
|
5
|
+
* it in Finder and opens Chrome's extensions page; the steps left for the PM (Developer mode, Load unpacked, pick the folder) show under
|
|
6
|
+
* the row. Chrome keeps that last press for the person: no page can load an extension.
|
|
7
|
+
*
|
|
8
|
+
* extState() -> a fresh state object for one Settings dialog
|
|
9
|
+
* extLoad(X) GET /api/extension
|
|
10
|
+
* extHtml(X) -> the Google Meet block
|
|
11
|
+
* extClick(e, X, redraw, toast) -> true when the press was this block's; runs it
|
|
12
|
+
* Routes: lib/routes-extension.js. UI copy says PMOS. */
|
|
13
|
+
import { pmGet, pmPost } from './http.js';
|
|
14
|
+
import { esc, svg } from './cozy-evui.js';
|
|
15
|
+
|
|
16
|
+
const SETUP = 'M12 4v11M7 10l5 5 5-5M5 20h14';
|
|
17
|
+
const COPY = 'M9 9h11v11H9zM5 15V5a1 1 0 0 1 1-1h10';
|
|
18
|
+
const STEPS = 'M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01';
|
|
19
|
+
const hm = (iso) => { const d = new Date(iso); return Number.isFinite(d.getTime()) ? String(d.getHours()).padStart(2, '0') + ':' + String(d.getMinutes()).padStart(2, '0') : ''; };
|
|
20
|
+
|
|
21
|
+
export function extState() { return { st: null, open: false, busy: false }; }
|
|
22
|
+
|
|
23
|
+
export async function extLoad(X) {
|
|
24
|
+
const r = await pmGet('/api/extension').catch(() => null);
|
|
25
|
+
X.st = r && r.ok ? r : { ok: false };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const ib = (act, icon, label) => `<button type="button" class="ev-ib" data-ext="${act}" aria-label="${esc(label)}" title="${esc(label)}">${svg(icon, 18)}</button>`;
|
|
29
|
+
|
|
30
|
+
/** What the row says now. Pure. */
|
|
31
|
+
export function extLine(st) {
|
|
32
|
+
if (!st || !st.ok) return 'PMOS could not read the extension’s state.';
|
|
33
|
+
if (st.seen) return 'Working · seen in a call at ' + hm(st.seen);
|
|
34
|
+
if (st.refreshed) return 'Updated. Press the reload arrow on the PMOS card in Chrome’s extensions page.';
|
|
35
|
+
if (st.copied) return 'Copied to the folder “PMOS Chrome extension” in your home folder. Load it once in Chrome.';
|
|
36
|
+
return 'Not set up. One press puts it in a folder you can find and opens Chrome’s extensions page.';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function extHtml(X) {
|
|
40
|
+
const st = X.st;
|
|
41
|
+
if (st === null) return '';
|
|
42
|
+
const head = '<h4 id="evMeet">Google Meet</h4>';
|
|
43
|
+
const on = !!(st.ok && st.seen);
|
|
44
|
+
const acts = st.ok ? (st.copied
|
|
45
|
+
? ib('steps', STEPS, X.open ? 'Hide the steps' : 'Show the steps') + ib('setup', SETUP, 'Open the folder and Chrome’s extensions page again')
|
|
46
|
+
: ib('setup', SETUP, 'Set up the PMOS panel for Google Meet')) : '';
|
|
47
|
+
const panel = X.open && st.ok ? `<div class="ev-rl-steps ev-small" data-ext-panel><ol>`
|
|
48
|
+
+ '<li>In Chrome’s extensions page, turn on Developer mode (top right).</li>'
|
|
49
|
+
+ '<li>Press Load unpacked.</li>'
|
|
50
|
+
+ '<li>Pick the folder “PMOS Chrome extension” in your home folder. Finder shows it.</li>'
|
|
51
|
+
+ '<li>Open a Google Meet call. The PMOS panel shows at the bottom right.</li></ol>'
|
|
52
|
+
+ `<div class="ev-rl-kv"><b>Folder</b><code>${esc(st.folder || '')}</code>${ib('copy', COPY, 'Copy the folder’s path')}</div>`
|
|
53
|
+
+ '<p class="ev-small ev-mut">If Load unpacked is greyed out, your company’s Chrome blocks extensions that are not in the Web Store.</p></div>' : '';
|
|
54
|
+
return `<div data-ext>${head}<p class="ev-small ev-mut">The PMOS panel shows over a Google Meet call. Only you see it.</p>`
|
|
55
|
+
+ `<div class="ev-trow ev-fr" data-ext-row><span class="ev-gut">${on ? '<i class="ev-dot ok" aria-hidden="true"></i>' : ''}</span><div class="ev-tx ev-grow"><span>PMOS in Google Meet</span><p class="ev-small ev-mut">${esc(extLine(st))}</p></div><span class="ev-rl-acts">${acts}</span></div>${panel}</div>`;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export async function extClick(e, X, redraw, toast) {
|
|
59
|
+
const b = e.target.closest('[data-ext]'); if (!b) return false;
|
|
60
|
+
if (X.busy) return true;
|
|
61
|
+
const act = b.dataset.ext;
|
|
62
|
+
const say = (t) => { if (toast) toast(t); };
|
|
63
|
+
if (act === 'copy') {
|
|
64
|
+
try { await navigator.clipboard.writeText((X.st && X.st.folder) || ''); say('Path copied.'); } catch { say('Select the path and copy it by hand.'); }
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
if (act === 'steps') { X.open = !X.open; redraw(); return true; }
|
|
68
|
+
X.busy = true;
|
|
69
|
+
const r = await pmPost('/api/extension/setup', {}).catch(() => null);
|
|
70
|
+
X.busy = false;
|
|
71
|
+
if (!r || r.ok === false) { say((r && r.error) || 'Not done. Nothing changed.'); return true; }
|
|
72
|
+
X.open = true;
|
|
73
|
+
say(r.opened ? 'Finder shows the folder, and Chrome’s extensions page is open. Three presses left, listed under the row.' : 'The folder is ready. Open chrome://extensions in Chrome and follow the steps under the row.');
|
|
74
|
+
await extLoad(X); redraw();
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* › Dress for the day (adler.dress.*, canvas AsSet1, batch 18 item 8): the master switch, where you are, one switch per group,
|
|
20
20
|
* "More festivals" with one switch per day, big sports and your colours, exam season, your days, Wear now (pm/cozy-seasons.js).
|
|
21
21
|
* openSettings('dress') opens it straight away (the › in Adler's tap popover, AsSet2Tap).
|
|
22
|
-
* Connectors Listening at the end (event-relay, D110, pm/cozy-relay.js): GitHub and Jira can ring PMOS's doorbell. design A (batch 28 item 1, canvas CnA): one list, trouble first (GET /api/sources, pm/cozy-evmodel.js connectorRows). Each
|
|
22
|
+
* Connectors Google Meet above Listening (meeting-buddy, pm/cozy-ext.js): set up the Chrome extension from here. Listening at the end (event-relay, D110, pm/cozy-relay.js): GitHub and Jira can ring PMOS's doorbell. design A (batch 28 item 1, canvas CnA): one list, trouble first (GET /api/sources, pm/cozy-evmodel.js connectorRows). Each
|
|
23
23
|
* source says its status once, on its own row: a trouble row has the amber dot, one reason and one icon action (↻ POST
|
|
24
24
|
* /api/sources/refresh, or the place to fix it); a quiet row has its name and time, and "Checked 10:42 · same since 09:15"
|
|
25
25
|
* where a measured read applies (SrSee R3). Claude's failed background work and the Git sync failure are rows too. ↻ in the
|
|
@@ -59,7 +59,9 @@ import * as AD from './cozy-adler.js';
|
|
|
59
59
|
import * as SE from './cozy-seasons.js';
|
|
60
60
|
import { weeksOf, lineOf, storiesOf } from './upd-weeks.js';
|
|
61
61
|
import { relayState, relayLoad, relayHtml, relayClick } from './cozy-relay.js'; // event-relay (D110): Connectors › Listening
|
|
62
|
+
import { extState, extLoad, extHtml, extClick } from './cozy-ext.js'; // meeting-buddy: Connectors › Google Meet, the Chrome extension set up from here
|
|
62
63
|
const RL = relayState();
|
|
64
|
+
const XT = extState();
|
|
63
65
|
|
|
64
66
|
/** PUT or DELETE with the page's launch nonce (pressFetch). Only the key row needs them. */
|
|
65
67
|
async function pmSend(method, path, body) {
|
|
@@ -276,7 +278,7 @@ function connectors() {
|
|
|
276
278
|
const chips = `<div class="ev-cn-chips" role="group" aria-label="Category">${CD.CATS.map(([k, l]) => `<button type="button" class="ev-chip${T.cat === k ? ' on' : ''}" data-ev-ccat="${k}" aria-pressed="${T.cat === k}">${esc(l)}</button>`).join('')}</div>`;
|
|
277
279
|
return info + readsHtml() + propCards() + `<div class="ev-cn">${search}${chips}<div id="evConList">${connList()}</div>`
|
|
278
280
|
+ `<p class="ev-small ev-mut ev-cn-foot">PMOS keeps no passwords or keys. A connector is added in your Claude account: + opens that page, and PMOS notices when it is there.</p></div>`
|
|
279
|
-
+ relayHtml(RL);
|
|
281
|
+
+ extHtml(XT) + relayHtml(RL);
|
|
280
282
|
}
|
|
281
283
|
/** The directory's read; after a +, again every 5 s with the probe until the connector shows or 2 minutes pass. */
|
|
282
284
|
async function readDir(probe) {
|
|
@@ -590,6 +592,7 @@ async function press(e) {
|
|
|
590
592
|
if (t.dataset.evSec) { e.preventDefault(); const m = MOVED[t.dataset.evSec]; T.sec = m ? m[0] : t.dataset.evSec; T.sub = m ? m[1] : ''; T.msg = ''; T.dress = false; draw(); const f = T.el.querySelector(`[data-ev-sec="${T.sec}"]`); if (f) f.focus(); openCheck(); return; }
|
|
591
593
|
if ('evClose' in t.dataset) { closeSettings(); return; }
|
|
592
594
|
if (await relayClick(e, RL, draw, toast)) return;
|
|
595
|
+
if (await extClick(e, XT, draw, toast)) return;
|
|
593
596
|
if (t.dataset.evWk) { const k = t.dataset.evWk; if (T.wkOpen.has(k)) T.wkOpen.delete(k); else T.wkOpen.add(k); draw(); return; }
|
|
594
597
|
if ('evArc' in t.dataset) { T.arc = !T.arc; draw(); return; }
|
|
595
598
|
if ('evInfo' in t.dataset) { T.info = !T.info; draw(); return; }
|
|
@@ -728,6 +731,7 @@ async function readAgain(id) {
|
|
|
728
731
|
async function load() {
|
|
729
732
|
readFresh();
|
|
730
733
|
RL.st = null; RL.open = null; RL.steps = null; relayLoad(RL).then(draw).catch(() => {});
|
|
734
|
+
XT.st = null; XT.open = false; extLoad(XT).then(draw).catch(() => {});
|
|
731
735
|
SW.swLoad(draw);
|
|
732
736
|
pmGet('/api/autonomy/kinds').then((k) => { T.ck = k && k.ok ? k : { ok: false, error: (k && k.error) || '' }; draw(); }).catch(() => { T.ck = { ok: false }; draw(); });
|
|
733
737
|
pmGet('/api/artefacts/lessons').then((l) => { T.ls = l && l.ok ? l : null; draw(); }).catch(() => { T.ls = null; });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_comment": "The meeting buddy and the one-press start (initiative meeting-buddy, done test T1-T6): lib/meeting-focus.js callLinkOf and the caught bullet ids, pm/buddy-core.js, the Meet panel's address, Today's play icon. Pure, node.",
|
|
2
|
+
"_comment": "The meeting buddy and the one-press start (initiative meeting-buddy, done test T1-T6): lib/meeting-focus.js callLinkOf and the caught bullet ids, pm/buddy-core.js, the Meet panel's address, Today's play icon; T7 the extension set up from Settings › Connectors › Google Meet (lib/extension-setup.js, pm/cozy-ext.js). Pure, node.",
|
|
3
3
|
"modules": [
|
|
4
4
|
"meeting-buddy.test.js"
|
|
5
5
|
],
|