create-pmos 0.834.0 → 0.836.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 +80 -63
- 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 +79 -12
- package/workspace/guide/breakdown.md +1 -1
- package/workspace/guide/cli.md +1 -0
- package/workspace/guide/layout.md +1 -1
- package/workspace/guide/programs.md +1 -1
- package/workspace/lib/first-hour.js +219 -0
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-first-hour.js +37 -0
- package/workspace/lib/team-cli.js +24 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-popup.css +1 -1
- package/workspace/public/pm/cozy-popup.js +7 -5
- package/workspace/public/pm/first-hour.js +78 -0
- package/workspace/public/pm/pop-split.js +17 -0
- package/workspace/public/pm/premium-board.js +2 -0
- package/workspace/public/pm/readonly.js +2 -0
- package/workspace/public/premium-board.html +1 -0
- package/workspace/test-lists/first-hour.json +9 -0
- package/workspace/test-lists/pop-split.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.836.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,82 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.836.0",
|
|
38
|
+
"at": "2026-11-25T15:53:32.838Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 2047,
|
|
43
|
+
"t": "Breakdown says \"let go\", not the reserved word \"release\"",
|
|
44
|
+
"s": "Breakdown says \"let go\", not the reserved word \"release\"",
|
|
45
|
+
"k": "fix",
|
|
46
|
+
"h": "Breakdown says \"let go\", not the reserved word \"release\"",
|
|
47
|
+
"try": {
|
|
48
|
+
"steps": [
|
|
49
|
+
"Open Work, open an initiative, choose Gantt under ⋯ and drag a bar's right end"
|
|
50
|
+
],
|
|
51
|
+
"see": "Unchanged behaviour; only the guide wording changed."
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"n": 2035,
|
|
56
|
+
"t": "First hour for a new engineer on Work (A55)",
|
|
57
|
+
"s": "First hour for a new engineer on Work (A55)",
|
|
58
|
+
"k": "new",
|
|
59
|
+
"h": "First hour for a new engineer on Work (A55)",
|
|
60
|
+
"try": {
|
|
61
|
+
"steps": [
|
|
62
|
+
"Open Work on one product. When ✦ says a person is new here, press ✓ to start their first hour",
|
|
63
|
+
"Press each of the steps under Welcome, <name> to open it",
|
|
64
|
+
"When every step is open, the block becomes one line: <name> finished the welcome. Press ✕ to clear it"
|
|
65
|
+
],
|
|
66
|
+
"see": "Up to four steps from your own records: the product from its strategy lines, the current bets, a real first task in a tested part of the code map, and who changed those parts last. A step marks done…",
|
|
67
|
+
"open": "/premium-board.html"
|
|
68
|
+
},
|
|
69
|
+
"i": "first-hour"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"v": "0.835.0",
|
|
75
|
+
"at": "2026-11-25T15:25:47.605Z",
|
|
76
|
+
"f": 4,
|
|
77
|
+
"prs": [
|
|
78
|
+
{
|
|
79
|
+
"n": 2043,
|
|
80
|
+
"t": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
81
|
+
"s": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
82
|
+
"k": "new",
|
|
83
|
+
"i": "tb-chat-split-handle",
|
|
84
|
+
"h": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
85
|
+
"try": {
|
|
86
|
+
"steps": [
|
|
87
|
+
"From Work, open an initiative",
|
|
88
|
+
"Show the chat with the round chat button at the top right of the popup, then drag the handle between the work and the chat",
|
|
89
|
+
"Close and open the initiative again: the split stays; double-click the handle to put it back"
|
|
90
|
+
],
|
|
91
|
+
"see": "The handle moves the split, the work never gets narrower than 640 px and the chat never narrower than 320 px, the split comes back the same next time, and a double-click returns it to the default",
|
|
92
|
+
"open": "/premium-board.html"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"n": 2040,
|
|
97
|
+
"t": "Work's Print or PDF is a view control on the read-only copy",
|
|
98
|
+
"s": "Work's Print or PDF is a view control on the read-only copy",
|
|
99
|
+
"k": "fix",
|
|
100
|
+
"i": "print-pdf",
|
|
101
|
+
"h": "Work's Print or PDF is a view control on the read-only copy",
|
|
102
|
+
"try": {
|
|
103
|
+
"steps": [
|
|
104
|
+
"Open a shared read-only copy of Work and press the print icon beside Choose columns"
|
|
105
|
+
],
|
|
106
|
+
"see": "The roadmap prints as a clean page, and the read-only copy still shows no write control",
|
|
107
|
+
"open": "/premium-board.html"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
36
112
|
{
|
|
37
113
|
"v": "0.834.0",
|
|
38
114
|
"at": "2026-11-25T15:04:32.499Z",
|
|
@@ -43,6 +119,7 @@
|
|
|
43
119
|
"t": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
44
120
|
"s": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
45
121
|
"k": "new",
|
|
122
|
+
"i": "story-map",
|
|
46
123
|
"h": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
47
124
|
"try": {
|
|
48
125
|
"steps": [
|
|
@@ -52,24 +129,14 @@
|
|
|
52
129
|
],
|
|
53
130
|
"see": "Steps of the user's journey run left to right with tasks under each. The dashed line marks Release 1, and its count follows each move. After Keep, the tasks show in the initiative's Work breakdown,…",
|
|
54
131
|
"open": "/premium-board.html"
|
|
55
|
-
}
|
|
56
|
-
"i": "story-map"
|
|
132
|
+
}
|
|
57
133
|
},
|
|
58
134
|
{
|
|
59
135
|
"n": 2034,
|
|
60
136
|
"t": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
61
137
|
"s": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
62
138
|
"k": "new",
|
|
63
|
-
"i": "timeline-bar-drag"
|
|
64
|
-
"try": {
|
|
65
|
-
"steps": [
|
|
66
|
-
"Open Work, open an initiative and choose Gantt under ⋯; point at a task bar: grips show at both ends",
|
|
67
|
-
"Drag its right end two days later and read the tip, then let go",
|
|
68
|
-
"Press Undo in the toast"
|
|
69
|
-
],
|
|
70
|
-
"see": "Dragging the right end moves only the due day, the tip names the new dates, the toast says Dates saved with Undo, and Undo puts the old due day back",
|
|
71
|
-
"open": "/premium-board.html"
|
|
72
|
-
}
|
|
139
|
+
"i": "timeline-bar-drag"
|
|
73
140
|
}
|
|
74
141
|
]
|
|
75
142
|
},
|
|
@@ -943,56 +1010,6 @@
|
|
|
943
1010
|
"i": "try-answers-as-evidence"
|
|
944
1011
|
}
|
|
945
1012
|
]
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"v": "0.809.0",
|
|
949
|
-
"at": "2026-11-25T05:38:37.920Z",
|
|
950
|
-
"f": 4,
|
|
951
|
-
"prs": [
|
|
952
|
-
{
|
|
953
|
-
"n": 1849,
|
|
954
|
-
"t": "Warn when an experiment cannot conclude by its check date (job #1840, A404)",
|
|
955
|
-
"s": "Warn when an experiment cannot conclude by its check date (job #1840, A404)",
|
|
956
|
-
"k": "new"
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
"n": 1848,
|
|
960
|
-
"t": "Rows no longer show below Today's capture box on a phone",
|
|
961
|
-
"s": "Rows no longer show below Today's capture box on a phone",
|
|
962
|
-
"k": "fix"
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
"n": 1851,
|
|
966
|
-
"t": "The capture line reads the words — kind, date, time and owner as chips with Undo (job #1845, A535, A538)",
|
|
967
|
-
"s": "The capture line reads the words — kind, date, time and owner as chips with Undo (job #1845, A535, A538)",
|
|
968
|
-
"k": "new"
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
"n": 1850,
|
|
972
|
-
"t": "Kill lines are read like outcome checks (job #1843, A530)",
|
|
973
|
-
"s": "Kill lines are read like outcome checks (job #1843, A530)",
|
|
974
|
-
"k": "new"
|
|
975
|
-
}
|
|
976
|
-
]
|
|
977
|
-
},
|
|
978
|
-
{
|
|
979
|
-
"v": "0.806.0",
|
|
980
|
-
"at": "2026-11-25T05:20:35.133Z",
|
|
981
|
-
"f": 4,
|
|
982
|
-
"prs": [
|
|
983
|
-
{
|
|
984
|
-
"n": 1846,
|
|
985
|
-
"t": "No merge without a done test, and the Checker hands back the missing assert (A531, A532)",
|
|
986
|
-
"s": "No merge without a done test, and the Checker hands back the missing assert (A531, A532)",
|
|
987
|
-
"k": "new"
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
"n": 1847,
|
|
991
|
-
"t": "Steering pack — one page per program, decisions marked into the journal (job #1842, A108)",
|
|
992
|
-
"s": "Steering pack — one page per program, decisions marked into the journal (job #1842, A108)",
|
|
993
|
-
"k": "new"
|
|
994
|
-
}
|
|
995
|
-
]
|
|
996
1013
|
}
|
|
997
1014
|
]
|
|
998
1015
|
}
|
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-25T15:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T15:53:28Z"}
|
|
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-25T15:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T15:53:28Z"}
|
|
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-25T15:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T15:53:28Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,80 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.836.0",
|
|
4
|
+
"at": "2026-11-25T15:53:32.838Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 2047,
|
|
9
|
+
"t": "Breakdown says \"let go\", not the reserved word \"release\"",
|
|
10
|
+
"s": "Breakdown says \"let go\", not the reserved word \"release\"",
|
|
11
|
+
"k": "fix",
|
|
12
|
+
"h": "Breakdown says \"let go\", not the reserved word \"release\"",
|
|
13
|
+
"try": {
|
|
14
|
+
"steps": [
|
|
15
|
+
"Open Work, open an initiative, choose Gantt under ⋯ and drag a bar's right end"
|
|
16
|
+
],
|
|
17
|
+
"see": "Unchanged behaviour; only the guide wording changed."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"n": 2035,
|
|
22
|
+
"t": "First hour for a new engineer on Work (A55)",
|
|
23
|
+
"s": "First hour for a new engineer on Work (A55)",
|
|
24
|
+
"k": "new",
|
|
25
|
+
"h": "First hour for a new engineer on Work (A55)",
|
|
26
|
+
"try": {
|
|
27
|
+
"steps": [
|
|
28
|
+
"Open Work on one product. When ✦ says a person is new here, press ✓ to start their first hour",
|
|
29
|
+
"Press each of the steps under Welcome, <name> to open it",
|
|
30
|
+
"When every step is open, the block becomes one line: <name> finished the welcome. Press ✕ to clear it"
|
|
31
|
+
],
|
|
32
|
+
"see": "Up to four steps from your own records: the product from its strategy lines, the current bets, a real first task in a tested part of the code map, and who changed those parts last. A step marks done…",
|
|
33
|
+
"open": "/premium-board.html"
|
|
34
|
+
},
|
|
35
|
+
"i": "first-hour"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"v": "0.835.0",
|
|
41
|
+
"at": "2026-11-25T15:25:47.605Z",
|
|
42
|
+
"f": 4,
|
|
43
|
+
"prs": [
|
|
44
|
+
{
|
|
45
|
+
"n": 2043,
|
|
46
|
+
"t": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
47
|
+
"s": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
48
|
+
"k": "new",
|
|
49
|
+
"i": "tb-chat-split-handle",
|
|
50
|
+
"h": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
51
|
+
"try": {
|
|
52
|
+
"steps": [
|
|
53
|
+
"From Work, open an initiative",
|
|
54
|
+
"Show the chat with the round chat button at the top right of the popup, then drag the handle between the work and the chat",
|
|
55
|
+
"Close and open the initiative again: the split stays; double-click the handle to put it back"
|
|
56
|
+
],
|
|
57
|
+
"see": "The handle moves the split, the work never gets narrower than 640 px and the chat never narrower than 320 px, the split comes back the same next time, and a double-click returns it to the default",
|
|
58
|
+
"open": "/premium-board.html"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"n": 2040,
|
|
63
|
+
"t": "Work's Print or PDF is a view control on the read-only copy",
|
|
64
|
+
"s": "Work's Print or PDF is a view control on the read-only copy",
|
|
65
|
+
"k": "fix",
|
|
66
|
+
"i": "print-pdf",
|
|
67
|
+
"h": "Work's Print or PDF is a view control on the read-only copy",
|
|
68
|
+
"try": {
|
|
69
|
+
"steps": [
|
|
70
|
+
"Open a shared read-only copy of Work and press the print icon beside Choose columns"
|
|
71
|
+
],
|
|
72
|
+
"see": "The roadmap prints as a clean page, and the read-only copy still shows no write control",
|
|
73
|
+
"open": "/premium-board.html"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
2
78
|
{
|
|
3
79
|
"v": "0.834.0",
|
|
4
80
|
"at": "2026-11-25T15:04:32.499Z",
|
|
@@ -9,6 +85,7 @@
|
|
|
9
85
|
"t": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
10
86
|
"s": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
11
87
|
"k": "new",
|
|
88
|
+
"i": "story-map",
|
|
12
89
|
"h": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
13
90
|
"try": {
|
|
14
91
|
"steps": [
|
|
@@ -18,24 +95,14 @@
|
|
|
18
95
|
],
|
|
19
96
|
"see": "Steps of the user's journey run left to right with tasks under each. The dashed line marks Release 1, and its count follows each move. After Keep, the tasks show in the initiative's Work breakdown,…",
|
|
20
97
|
"open": "/premium-board.html"
|
|
21
|
-
}
|
|
22
|
-
"i": "story-map"
|
|
98
|
+
}
|
|
23
99
|
},
|
|
24
100
|
{
|
|
25
101
|
"n": 2034,
|
|
26
102
|
"t": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
27
103
|
"s": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
28
104
|
"k": "new",
|
|
29
|
-
"i": "timeline-bar-drag"
|
|
30
|
-
"try": {
|
|
31
|
-
"steps": [
|
|
32
|
-
"Open Work, open an initiative and choose Gantt under ⋯; point at a task bar: grips show at both ends",
|
|
33
|
-
"Drag its right end two days later and read the tip, then let go",
|
|
34
|
-
"Press Undo in the toast"
|
|
35
|
-
],
|
|
36
|
-
"see": "Dragging the right end moves only the due day, the tip names the new dates, the toast says Dates saved with Undo, and Undo puts the old due day back",
|
|
37
|
-
"open": "/premium-board.html"
|
|
38
|
-
}
|
|
105
|
+
"i": "timeline-bar-drag"
|
|
39
106
|
}
|
|
40
107
|
]
|
|
41
108
|
},
|
|
@@ -62,7 +62,7 @@ A bar you can change says "Drag to change dates" and shows a grip at each end wh
|
|
|
62
62
|
- Drag the middle of the bar to move the start and the due day together.
|
|
63
63
|
- Drag the left grip to change only the start. Drag the right grip to change only the due day. An end does not go past the other end.
|
|
64
64
|
- Drag a milestone's ◇ to move its date.
|
|
65
|
-
- While you drag, a tip shows the new dates, for example "24 Nov to 9 Dec". When you
|
|
65
|
+
- While you drag, a tip shows the new dates, for example "24 Nov to 9 Dec". When you let go, the toast says "Dates saved" and has Undo.
|
|
66
66
|
- With a pen or a finger, move sideways to drag. A short tap still opens the task.
|
|
67
67
|
- With the keyboard, press Tab until a bar is selected. Then press ← or → to move it one day. Press Shift with ← or → to change the due day, or Alt with ← or → to change the start.
|
|
68
68
|
|
package/workspace/guide/cli.md
CHANGED
|
@@ -294,6 +294,7 @@ PMOS looks for problems that repeat in a product (your Undos and ✕ reasons, re
|
|
|
294
294
|
- `pmos team pause <role|all>` and `pmos team resume <role|all>`: stop or restart a role's runs. `pmos ai off team` stops the whole team.
|
|
295
295
|
- `pmos team dispatch --unit <unit>`: dispatch the roles for the unit's first open initiative in Roadmap order. `pmos team pause --unit <unit>` and `pmos team resume --unit <unit>` stop or restart every role run on that unit's initiatives.
|
|
296
296
|
- `pmos team skills`: the team skill map for the last 90 days. Each person has what they are strong at and what they are often corrected on, from sign-offs and decisions, with no scores and no ranking, and one ✦ pairing. `--as <name>` shows only that person's row. `pmos team skills skip <key>` skips the pairing for the next one, and `pmos team skills undo <key>` brings it back. The same map is the Team skills block on Work. It is only for the person and their lead, so it is never in a report or on a published page.
|
|
297
|
+
- `pmos team welcome <name>`: starts the first hour for a new engineer. It has up to four steps from your records: the product from its strategy lines, the current bets, a first task (open, with no owner, in a part of the code map that has tests and is not risky), and who changed those parts last. A step with no data does not show. `pmos team welcome` shows the open welcomes and the ✦ suggestion. `pmos team welcome open <name> <step>` marks a step done (product, bets, task or ask), `end` closes a welcome, `seen` clears the line "<name> finished the welcome.", and `skip` stops a suggestion. The same welcome is the Welcome block on Work. Nothing is sent to the person.
|
|
297
298
|
- Inside a role run only: `pmos team wrote <path>`, `pmos team done "<summary>" [--propose <path> "<what>"]` and `pmos team verdict <path> pass|fail "<why>"`.
|
|
298
299
|
|
|
299
300
|
[What PMOS does behind the scenes](agent-capabilities.md) lists each role, what it may write and its rules.
|
|
@@ -172,7 +172,7 @@ Every task opens in the same task detail, from every place: Work and its Backlog
|
|
|
172
172
|
|
|
173
173
|
On a computer, an initiative you open from Today, Work or Intelligence opens in one popup over the page. The work is on the left and the chat about the same work is on the right. A thin dimmed edge of the page shows around it. Escape, × or a press on the edge closes it.
|
|
174
174
|
|
|
175
|
-
- Drag the
|
|
175
|
+
- Drag the handle between the two sides to change their widths. The work keeps at least 640 px and the chat at least 320 px. PMOS keeps the split on this computer; double-click the handle (or press Home on it) to put it back.
|
|
176
176
|
- The hide icon in the chat's top bar hides the chat, and the work takes the full width. **Ask PMOS** brings the chat back.
|
|
177
177
|
- While the chat shows, the work's side column folds into one-line rows on top: on an initiative, **Where it stands**, **The case** and **Details** each show their name and first line. Press a row to open it. Nothing is hidden, and when you hide the chat the parts go back side by side. A page's side column follows the same rule.
|
|
178
178
|
- When you open one thing from another inside the popup, the path and ← show at the top of the work.
|
|
@@ -202,7 +202,7 @@ The tab is not in the read-only Work. A reader sees no Shared tab.
|
|
|
202
202
|
|
|
203
203
|
**On a computer, a copy published from this version draws Work, one view:** Initiative, Stage, Next milestone, Date and the bar. The top line shows the board's name, a **Read-only copy** pill, "Shared by" with the first name of the person who shared it, the date of the copy and when the link ends. Then come find, tune, **Get PMOS** and **Open in my PMOS**.
|
|
204
204
|
|
|
205
|
-
- A reader can sort, change the span, hide the timeline, fold a group, open the closed rows, search, and use the tune panel (Filter and Sort only, for this visit only). Press a bar to see its stage card.
|
|
205
|
+
- A reader can sort, change the span, hide the timeline, fold a group, open the closed rows, search, and use the tune panel (Filter and Sort only, for this visit only). Press a bar to see its stage card. The print icon beside tune prints the list as one clean page or saves it as a PDF. It changes nothing.
|
|
206
206
|
- Press a row to open the popup, read-only: Overview (Details shows only the facts the copy holds), Work breakdown, and Artefacts by name, kind and version. There is no chat, no ✦ proposal, no ✓ ✕, no menu and no Undo.
|
|
207
207
|
- People show by first name only. An agent shows as PMOS.
|
|
208
208
|
- A copy holds only the keys on a written list (`lib/board-pack-keys.json`). It never holds emails, paths, web addresses, other products' names, PMOS's working state (asks, proposals, who set a stage, tickets, averages) or the computer's account name. In a task's name, another project's ticket key reads "a ticket".
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* first-hour.js — the first hour for a new engineer: four steps built from the code map and PMOS records (bet A55, initiative first-hour,
|
|
3
|
+
* board BatchMoreBDS panel 29, Team › Welcome).
|
|
4
|
+
*
|
|
5
|
+
* steps({ root, dir, now, tasks?, ini?, card?, map? }) → [{ key, n, title, what, detail, part? }] at most 4, the steps that have real data
|
|
6
|
+
* newcomers({ tasks, now }) → [name] PURE: people first named as a task owner in the last NEW_DAYS days, in a ledger older than OLD_DAYS
|
|
7
|
+
* fold(lines) → { [nameKey]: { who, opened: Set, ended, seen, skipped } } PURE
|
|
8
|
+
* view(root, { dir, now }) → { ok, welcomes: [{ who, steps: [{ ...step, done }], finished }], finished: [who], suggest: who | null }
|
|
9
|
+
* act(dir, act, { who, step, by, now }) → { ok, line } | { ok: false, error } act ∈ start · open · end · seen · skip
|
|
10
|
+
* lines(v) · count(root) the CLI's text, and the health number (welcomes started)
|
|
11
|
+
*
|
|
12
|
+
* THE FOUR STEPS (each one only when it has real data; zero is silence):
|
|
13
|
+
* 1 product "The product in 5 minutes" the strategy card's lines (lib/strategy-card.js): who it is for, the problem, the bet
|
|
14
|
+
* 2 bets "Current bets" the initiatives with a task In progress now, most recent first, at most MAX_BETS
|
|
15
|
+
* 3 task "Your first task: <title>" an open task with no owner, not a milestone, whose title names a part of the code map
|
|
16
|
+
* that has tests and is not risky (lib/code-map.js); the part with the most test files wins
|
|
17
|
+
* 4 ask "Who to ask" the last person to change each tested part, at most MAX_ASK people, "Sam (payments)"
|
|
18
|
+
* A step is done when it is opened. The PM sees one line when all of a welcome's steps are open: "Riley finished the welcome."
|
|
19
|
+
*
|
|
20
|
+
* WHO IS NEW. A name first seen as a task owner in the last NEW_DAYS days, when the task ledger holds lines older than OLD_DAYS (a new
|
|
21
|
+
* workspace makes everyone look new, so it suggests no one). PMOS suggests one at a time with ✦; the PM starts it, or skips the name.
|
|
22
|
+
*
|
|
23
|
+
* WHERE. <records>/first-hour.jsonl, append-only. Nothing is sent to the person: sending a welcome outside PMOS is an outward send and waits
|
|
24
|
+
* for the PM (strict guardrail). */
|
|
25
|
+
const fs = require('fs');
|
|
26
|
+
const path = require('path');
|
|
27
|
+
|
|
28
|
+
const FILE = 'first-hour.jsonl';
|
|
29
|
+
const TAG = '[first-hour]';
|
|
30
|
+
const ACTS = ['start', 'open', 'end', 'seen', 'skip'];
|
|
31
|
+
const KEYS = ['product', 'bets', 'task', 'ask'];
|
|
32
|
+
const NEW_DAYS = 14;
|
|
33
|
+
const OLD_DAYS = 30;
|
|
34
|
+
const MAX_BETS = 3;
|
|
35
|
+
const MAX_ASK = 3;
|
|
36
|
+
const DAY = 86400000;
|
|
37
|
+
const CLOSED = new Set(['Done', 'Archived', 'Cancelled', "Won't do"]);
|
|
38
|
+
|
|
39
|
+
const oneLine = (s, n = 160) => { const t = String(s == null ? '' : s).replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1).trimEnd() + '…' : t; };
|
|
40
|
+
const nameOf = (s) => oneLine(String(s || '').replace(/^person:/i, ''), 60);
|
|
41
|
+
const keyOf = (s) => nameOf(s).toLowerCase();
|
|
42
|
+
const wordsOf = (s) => new Set(String(s || '').toLowerCase().split(/[^a-z0-9]+/).filter((w) => w.length >= 3));
|
|
43
|
+
|
|
44
|
+
function recordsDirOf(root) {
|
|
45
|
+
try { const { repoScript } = require('./repo-script.js'); return require(repoScript('signals/layout-paths.js')).pathsFor(root).recordsDir; } catch { return path.join(root, 'planning', 'records'); }
|
|
46
|
+
}
|
|
47
|
+
function tasksOf(root) {
|
|
48
|
+
try {
|
|
49
|
+
const Facts = require('./drift-facts.js');
|
|
50
|
+
const stateDir = require('./driver.js').stateDirOf(root);
|
|
51
|
+
let storeFile = null; try { const s = require('./task-store.js').storeFor(root); storeFile = s && s.file; } catch { storeFile = null; }
|
|
52
|
+
return Facts.tasksOf(root, stateDir ? path.join(stateDir, 'boards.jsonl') : null, storeFile, []).tasks;
|
|
53
|
+
} catch { return []; }
|
|
54
|
+
}
|
|
55
|
+
function initiativesOf(root) {
|
|
56
|
+
try { return require('./live-notes.js').loadInitiatives(root).open; } catch { return []; }
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** A task's state now: { state, owner, removed, last } from its lines in time order. PURE. */
|
|
60
|
+
function stateOf(t) {
|
|
61
|
+
let state = 'To do', owner = '', removed = false, last = 0, first = Infinity;
|
|
62
|
+
for (const l of (t.lines || []).slice().sort((a, b) => a.at - b.at)) {
|
|
63
|
+
if (l.at < first) first = l.at;
|
|
64
|
+
if (l.at > last) last = l.at;
|
|
65
|
+
if (l.state) state = l.state;
|
|
66
|
+
if (l.owner !== undefined) owner = nameOf(l.owner);
|
|
67
|
+
if (l.kind === 'task-remove') removed = true;
|
|
68
|
+
if (l.kind === 'task-restore') removed = false;
|
|
69
|
+
}
|
|
70
|
+
return { state, owner, removed, last, first };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** People first named as a task owner in the last NEW_DAYS days. PURE. */
|
|
74
|
+
function newcomers({ tasks = [], now = Date.now() } = {}) {
|
|
75
|
+
let oldest = Infinity;
|
|
76
|
+
const firstSeen = new Map();
|
|
77
|
+
for (const t of tasks) for (const l of t.lines || []) {
|
|
78
|
+
if (l.at < oldest) oldest = l.at;
|
|
79
|
+
if (!l.owner) continue;
|
|
80
|
+
const k = keyOf(l.owner);
|
|
81
|
+
if (!k) continue;
|
|
82
|
+
const f = firstSeen.get(k);
|
|
83
|
+
if (!f || l.at < f.at) firstSeen.set(k, { who: nameOf(l.owner), at: l.at });
|
|
84
|
+
}
|
|
85
|
+
if (!(oldest <= now - OLD_DAYS * DAY)) return [];
|
|
86
|
+
return [...firstSeen.values()].filter((f) => f.at >= now - NEW_DAYS * DAY).sort((a, b) => a.at - b.at || a.who.localeCompare(b.who)).map((f) => f.who);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** The steps, from real data only. PURE when tasks, ini, card and map are given. */
|
|
90
|
+
function steps({ root = null, dir = null, now = Date.now(), tasks, ini, card, map } = {}) {
|
|
91
|
+
if (tasks === undefined) tasks = root ? tasksOf(root) : [];
|
|
92
|
+
if (ini === undefined) ini = root ? initiativesOf(root) : [];
|
|
93
|
+
if (card === undefined) { try { card = dir ? require('./strategy-card.js').read(dir) : null; } catch { card = null; } }
|
|
94
|
+
if (map === undefined) { try { map = dir ? require('./code-map.js').view(dir) : null; } catch { map = null; } }
|
|
95
|
+
const out = [];
|
|
96
|
+
|
|
97
|
+
const c = card || {};
|
|
98
|
+
const said = [['Who it is for', c.for], ['The problem', c.problem], ['The bet', c.bet]].filter(([, v]) => v && String(v).trim());
|
|
99
|
+
if (said.length) {
|
|
100
|
+
out.push({ key: 'product', title: 'The product in 5 minutes', what: oneLine(c.for || c.problem || c.bet, 80),
|
|
101
|
+
detail: said.map(([k, v]) => `${k}: ${oneLine(v)}`).join(' · ') });
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const titles = new Map((ini || []).map((i) => [i.id, i.title || i.id]));
|
|
105
|
+
const open = (tasks || []).map((t) => Object.assign({}, t, stateOf(t))).filter((t) => !t.removed);
|
|
106
|
+
const lastBy = new Map();
|
|
107
|
+
for (const t of open) if (t.state === 'In progress' || t.state === 'In review') lastBy.set(t.initiative, Math.max(lastBy.get(t.initiative) || 0, t.last));
|
|
108
|
+
const bets = [...lastBy.entries()].sort((a, b) => b[1] - a[1] || String(a[0]).localeCompare(String(b[0]))).slice(0, MAX_BETS).map(([id]) => titles.get(id) || id);
|
|
109
|
+
if (bets.length) out.push({ key: 'bets', title: 'Current bets', what: bets.join(', '), detail: `Work on now: ${bets.join(' · ')}.` });
|
|
110
|
+
|
|
111
|
+
const parts = (map && Array.isArray(map.parts) ? map.parts : []).filter((p) => p.tests > 0 && !p.risky);
|
|
112
|
+
const names = (p) => wordsOf([p.name, (p.dir || '').split('/').pop()].join(' '));
|
|
113
|
+
let pick = null;
|
|
114
|
+
for (const t of open) {
|
|
115
|
+
if (CLOSED.has(t.state) || t.state !== 'To do' || t.owner || t.milestone) continue;
|
|
116
|
+
const w = wordsOf(t.title);
|
|
117
|
+
for (const p of parts) {
|
|
118
|
+
if (![...names(p)].some((n) => w.has(n))) continue;
|
|
119
|
+
if (!pick || p.tests > pick.part.tests || (p.tests === pick.part.tests && t.title.localeCompare(pick.task.title) < 0)) pick = { task: t, part: p };
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (pick) {
|
|
123
|
+
out.push({ key: 'task', title: `Your first task: ${oneLine(pick.task.title, 70)}`, what: `small, tested area (${pick.part.name}, ${pick.part.tested})`,
|
|
124
|
+
detail: `${oneLine(pick.task.title)} · in ${titles.get(pick.task.initiative) || pick.task.initiative} · part ${pick.part.name}: ${pick.part.tested}`, task: pick.task.id, part: pick.part.name });
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const seen = new Set(), ask = [];
|
|
128
|
+
for (const p of parts.slice().sort((a, b) => b.code - a.code || a.name.localeCompare(b.name))) {
|
|
129
|
+
const by = p.last && nameOf(p.last.by);
|
|
130
|
+
if (!by || seen.has(by.toLowerCase())) continue;
|
|
131
|
+
seen.add(by.toLowerCase());
|
|
132
|
+
ask.push(`${by} (${p.name})`);
|
|
133
|
+
if (ask.length >= MAX_ASK) break;
|
|
134
|
+
}
|
|
135
|
+
if (ask.length) out.push({ key: 'ask', title: 'Who to ask', what: ask.join(', '), detail: `They changed these parts last: ${ask.join(' · ')}.` });
|
|
136
|
+
|
|
137
|
+
return out.map((s, i) => Object.assign({ n: i + 1 }, s));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function readLines(dir) {
|
|
141
|
+
let text = '';
|
|
142
|
+
try { text = fs.readFileSync(path.join(dir, FILE), 'utf8'); } catch { return []; }
|
|
143
|
+
const out = [];
|
|
144
|
+
for (const l of text.split('\n')) { if (!l.trim()) continue; try { const o = JSON.parse(l); if (o && ACTS.includes(o.act) && typeof o.who === 'string') out.push(o); } catch { /* torn */ } }
|
|
145
|
+
return out;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** Each person's welcome. A later start begins it again. PURE. */
|
|
149
|
+
function fold(lines) {
|
|
150
|
+
const by = {};
|
|
151
|
+
for (const o of lines || []) {
|
|
152
|
+
const k = keyOf(o.who);
|
|
153
|
+
if (!k) continue;
|
|
154
|
+
if (o.act === 'skip') { by[k] = Object.assign(by[k] || { who: nameOf(o.who), opened: new Set() }, { skipped: true }); continue; }
|
|
155
|
+
if (o.act === 'start') { by[k] = { who: nameOf(o.who), opened: new Set(), started: o.at, ended: false, seen: false, skipped: false }; continue; }
|
|
156
|
+
const w = by[k];
|
|
157
|
+
if (!w || !w.started) continue;
|
|
158
|
+
if (o.act === 'open' && KEYS.includes(o.step)) w.opened.add(o.step);
|
|
159
|
+
if (o.act === 'end') w.ended = true;
|
|
160
|
+
if (o.act === 'seen') w.seen = true;
|
|
161
|
+
}
|
|
162
|
+
return by;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function view(root, { dir = null, now = Date.now(), tasks, ini, card, map, log = null } = {}) {
|
|
166
|
+
dir = dir || (root ? recordsDirOf(path.resolve(root)) : null);
|
|
167
|
+
if (tasks === undefined) tasks = root ? tasksOf(root) : [];
|
|
168
|
+
const by = fold(dir ? readLines(dir) : []);
|
|
169
|
+
const list = Object.values(by).filter((w) => w.started && !w.ended);
|
|
170
|
+
const s = list.length ? steps({ root, dir, now, tasks, ini, card, map }) : [];
|
|
171
|
+
const welcomes = [], finished = [];
|
|
172
|
+
for (const w of list.sort((a, b) => a.who.localeCompare(b.who))) {
|
|
173
|
+
const done = s.length > 0 && s.every((x) => w.opened.has(x.key));
|
|
174
|
+
if (done) { if (!w.seen) finished.push(w.who); continue; }
|
|
175
|
+
welcomes.push({ who: w.who, steps: s.map((x) => Object.assign({}, x, { done: w.opened.has(x.key) })) });
|
|
176
|
+
}
|
|
177
|
+
const suggest = newcomers({ tasks, now }).find((who) => !by[keyOf(who)]) || null;
|
|
178
|
+
if (log) log(`${TAG} ${welcomes.length} open · ${finished.length} finished${suggest ? ' · a suggestion' : ''}`);
|
|
179
|
+
return { ok: true, welcomes, finished, suggest };
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function act(dir, a, { who, step = null, by = 'pm', now = Date.now() } = {}) {
|
|
183
|
+
if (!ACTS.includes(a)) return { ok: false, error: `act must be one of ${ACTS.join(', ')}` };
|
|
184
|
+
const name = nameOf(who);
|
|
185
|
+
if (!name) return { ok: false, error: 'name the person' };
|
|
186
|
+
if (!dir) return { ok: false, error: 'this product has no records folder' };
|
|
187
|
+
const w = fold(readLines(dir))[keyOf(name)];
|
|
188
|
+
if (a === 'open' && !KEYS.includes(step)) return { ok: false, error: `step must be one of ${KEYS.join(', ')}` };
|
|
189
|
+
if (['open', 'end', 'seen'].includes(a) && !(w && w.started)) return { ok: false, error: `${name} has no welcome yet: pmos team welcome ${name}` };
|
|
190
|
+
const line = { at: new Date(now).toISOString(), act: a, who: name, by };
|
|
191
|
+
if (a === 'open') line.step = step;
|
|
192
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
193
|
+
fs.appendFileSync(path.join(dir, FILE), JSON.stringify(line) + '\n');
|
|
194
|
+
return { ok: true, line };
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function lines(v) {
|
|
198
|
+
const out = [];
|
|
199
|
+
for (const w of v.welcomes) {
|
|
200
|
+
out.push(`Welcome, ${w.who} · ${w.steps.length} steps`);
|
|
201
|
+
for (const s of w.steps) out.push(` ${s.done ? '✓' : '·'} ${s.n} · ${s.title} — ${s.what} (open: pmos team welcome open ${w.who} ${s.key})`);
|
|
202
|
+
}
|
|
203
|
+
for (const who of v.finished) out.push(`${who} finished the welcome.`);
|
|
204
|
+
if (v.suggest) out.push(`✦ ${v.suggest} is new here. Start their first hour: pmos team welcome ${v.suggest}`);
|
|
205
|
+
if (!out.length) out.push('No welcome is open.');
|
|
206
|
+
return out;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function count(root) { const dir = recordsDirOf(path.resolve(root)); return Object.values(fold(readLines(dir))).filter((w) => w.started).length; }
|
|
210
|
+
|
|
211
|
+
module.exports = { FILE, TAG, ACTS, KEYS, NEW_DAYS, OLD_DAYS, MAX_BETS, MAX_ASK, stateOf, newcomers, steps, fold, readLines, view, act, lines, count, recordsDirOf };
|
|
212
|
+
|
|
213
|
+
if (require.main === module) {
|
|
214
|
+
const a = process.argv.slice(2);
|
|
215
|
+
if (a[0] !== 'count') { console.error('usage: node lib/first-hour.js count <root>'); process.exit(2); }
|
|
216
|
+
const n = count(path.resolve(a[1] || '.'));
|
|
217
|
+
console.log(`${TAG} ${n} welcomes started`);
|
|
218
|
+
console.log(String(n));
|
|
219
|
+
}
|
|
@@ -155,6 +155,7 @@ const MODULES = Object.freeze([
|
|
|
155
155
|
'routes-switches', // idea A263: who has which switch, per customer, on Work; turning one waits for the PM's own press (records switches.jsonl; page-press POST)
|
|
156
156
|
'routes-prefs', // bet A461: view preferences that follow the person to the phone and other browsers (runtime view-prefs.json; page-press POST)
|
|
157
157
|
'routes-skill-map', // bet A208: the team skill map on Work, for the person and their lead only (records skill-map.jsonl; page-press POST)
|
|
158
|
+
'routes-first-hour', // bet A55: the first hour for a new engineer on Work (records first-hour.jsonl; page-press POST)
|
|
158
159
|
'routes-stakeholders', // bet A371: an initiative's stakeholder map, decides / must agree / needs to know, in the Work popup (records stakeholders.jsonl; page-press POST)
|
|
159
160
|
'routes-code-map', // idea A176: the product's code map on Work, redrawn when the default branch moves (records code-map.json; read-only)
|
|
160
161
|
'routes-arch-warns', // idea A54: one warning when an initiative names a risky part of the code (reads code-map.json; read-only)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* routes-first-hour.js — the first hour for a new engineer over HTTP (bet A55, initiative first-hour). The core is lib/first-hour.js; the
|
|
3
|
+
* verb is `pmos team welcome`.
|
|
4
|
+
*
|
|
5
|
+
* GET /api/team/welcome?ws=<id> → { ok, welcomes, finished, suggest }
|
|
6
|
+
* POST /api/team/welcome { ws, act, who, step? } → { ok, line } | 400 act ∈ start · open · end · seen · skip (a page press only)
|
|
7
|
+
*
|
|
8
|
+
* WHO SEES IT. The PM and the new person, on Work; never a published page: a GET that carries `pack=` is refused with 403.
|
|
9
|
+
* Nothing here is sent anywhere. */
|
|
10
|
+
const guard = require('./pm-guard.js');
|
|
11
|
+
const FH = require('./first-hour.js');
|
|
12
|
+
const { recordsDirFor } = require('./records-dir.js');
|
|
13
|
+
|
|
14
|
+
const CHECKOUT = require('path').join(__dirname, '..', '..');
|
|
15
|
+
function wsOf(ctx, ws) { try { return ctx && typeof ctx.getWs === 'function' ? ctx.getWs(ws || null) : null; } catch { return null; } }
|
|
16
|
+
const rootFor = (ctx, w) => (ctx && ctx.repoRoot) || (w && w.root) || CHECKOUT;
|
|
17
|
+
|
|
18
|
+
async function handle(req, res, url, ctx) {
|
|
19
|
+
if (url.pathname !== '/api/team/welcome') return false;
|
|
20
|
+
const send = (status, body) => { ctx.json(res, body, status); return true; };
|
|
21
|
+
if (req.method === 'GET') {
|
|
22
|
+
if (url.searchParams.has('pack')) return send(403, { ok: false, error: 'the welcome is only for the PM and the new person; it is never on a published page' });
|
|
23
|
+
const wsId = url.searchParams.get('ws') || null;
|
|
24
|
+
const v = FH.view(rootFor(ctx, wsOf(ctx, wsId)), { dir: recordsDirFor(ctx, wsId), now: ctx.now ? ctx.now() : Date.now(), log: ctx.log || ((s) => console.log(s)) });
|
|
25
|
+
return send(200, v);
|
|
26
|
+
}
|
|
27
|
+
if (req.method !== 'POST') return send(405, { ok: false, error: 'GET or POST' });
|
|
28
|
+
const rd = await ctx.readJson(req);
|
|
29
|
+
if (!rd.ok) return send(400, { ok: false, error: 'the body is not JSON' });
|
|
30
|
+
const body = rd.body || {};
|
|
31
|
+
const g = guard.requirePagePress(req, body);
|
|
32
|
+
if (!g.ok) return send(g.status, { ok: false, error: g.error });
|
|
33
|
+
const r = FH.act(recordsDirFor(ctx, body.ws || null), String(body.act || ''), { who: body.who, step: body.step || null, by: (g.actor && g.actor.by) || 'pm', now: ctx.now ? ctx.now() : Date.now() });
|
|
34
|
+
return r.ok ? send(200, { ok: true, line: r.line }) : send(400, { ok: false, error: r.error });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
module.exports = { prefixes: ['/api/team/welcome'], handle };
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* pmos team dispatch --unit <unit> [--roles a,b] · pmos team pause|resume --unit <unit> the same for a whole unit (chief-unit-owners ✦3)
|
|
10
10
|
* pmos team skills [--as <name>] [--json] the team skill map: strong at, often corrected on, one pairing (bet A208)
|
|
11
11
|
* pmos team skills skip|undo <pairing key> skip the ✦ pairing for the next one, or bring it back
|
|
12
|
+
* pmos team welcome [<name>] [--json] the first hour for a new engineer: start one, or show the open ones (bet A55)
|
|
13
|
+
* pmos team welcome open|end|seen|skip <name> [<step>] open a step, close a welcome, clear the finished line, or skip a ✦ suggestion
|
|
12
14
|
* common: [--root <dir>]
|
|
13
15
|
*
|
|
14
16
|
* INSIDE A ROLE RUN only (the server pins PMOS_TEAM_RUN, _ROLE, _FILE, _ROOT, _INI, _MODE; nothing here takes them as arguments):
|
|
@@ -23,7 +25,7 @@ const { execFileSync } = require('child_process');
|
|
|
23
25
|
const T = require('./agent-team.js');
|
|
24
26
|
const R = require('./team-runs.js');
|
|
25
27
|
|
|
26
|
-
const COMMANDS = { team: ['roles', 'dispatch', 'status', 'pause', 'resume', 'wrote', 'done', 'verdict', 'skills'] };
|
|
28
|
+
const COMMANDS = { team: ['roles', 'dispatch', 'status', 'pause', 'resume', 'wrote', 'done', 'verdict', 'skills', 'welcome'] };
|
|
27
29
|
const USAGE = [
|
|
28
30
|
'usage: pmos team roles|dispatch|status|pause|resume — the role agents under the chief of staff',
|
|
29
31
|
' pmos team roles what each role owns, what wakes it, its action class and daily budget',
|
|
@@ -34,6 +36,8 @@ const USAGE = [
|
|
|
34
36
|
' pmos team dispatch --unit <unit> · pmos team pause|resume --unit <unit> the same for a whole program, product or project (pmos units)',
|
|
35
37
|
' pmos team skills [--as <name>] the team skill map (last 90 days): strong at, often corrected on, one ✦ pairing',
|
|
36
38
|
' pmos team skills skip|undo <key> skip the ✦ pairing for the next one, or bring it back',
|
|
39
|
+
' pmos team welcome [<name>] start a new person\'s first hour, or show the open welcomes',
|
|
40
|
+
' pmos team welcome open|end|seen|skip <name> [<step>] open a step (product, bets, task, ask), close it, clear the finished line, or skip a suggestion',
|
|
37
41
|
'Inside a role run: pmos team wrote <path> · pmos team done "<summary>" [--propose <path> "<what>"] · pmos team verdict <path> pass|fail "<why>"',
|
|
38
42
|
'every command: [--json] [--root <dir>]',
|
|
39
43
|
];
|
|
@@ -88,6 +92,25 @@ async function run(argv, { say = (s) => console.log(s), env = process.env, cwd =
|
|
|
88
92
|
for (const l of SM.lines(v)) say(l);
|
|
89
93
|
return 0;
|
|
90
94
|
}
|
|
95
|
+
if (verb === 'welcome') { // bet A55: the first hour for a new engineer (lib/first-hour.js), the same view the Work block reads
|
|
96
|
+
if (inRun) return fail('a role run cannot read or write a welcome');
|
|
97
|
+
const FH = require('./first-hour.js');
|
|
98
|
+
const fdir = FH.recordsDirOf(root);
|
|
99
|
+
const sub = pos[0];
|
|
100
|
+
if (['open', 'end', 'seen', 'skip'].includes(sub)) {
|
|
101
|
+
const r = FH.act(fdir, sub, { who: pos[1], step: pos[2] || null, by: 'cli', now });
|
|
102
|
+
return r.ok ? ok({ line: r.line }, `✓ ${sub} recorded for ${r.line.who}${r.line.step ? ' (' + r.line.step + ')' : ''}`) : fail(r.error);
|
|
103
|
+
}
|
|
104
|
+
if (sub) {
|
|
105
|
+
const r = FH.act(fdir, 'start', { who: pos.join(' '), by: 'cli', now });
|
|
106
|
+
return r.ok ? ok({ line: r.line }, `✓ welcome started for ${r.line.who}; it shows on Work`) : fail(r.error);
|
|
107
|
+
}
|
|
108
|
+
const v = FH.view(root, { dir: fdir, now });
|
|
109
|
+
console.error(`${FH.TAG} ${v.welcomes.length} open · ${v.finished.length} finished${v.suggest ? ' · a suggestion' : ''}`);
|
|
110
|
+
if (json) return ok({ welcomes: v.welcomes, finished: v.finished, suggest: v.suggest });
|
|
111
|
+
for (const l of FH.lines(v)) say(l);
|
|
112
|
+
return 0;
|
|
113
|
+
}
|
|
91
114
|
if (verb === 'roles') {
|
|
92
115
|
const t = T.tableForPage();
|
|
93
116
|
// launch simulation W3: say whether the Builder can run here, from the files on disk (lib/work-kind.js factoryRuns)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.836.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.836.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
background: var(--cz-card); box-shadow: 0 40px 100px -30px rgba(20, 24, 32, .6), 0 0 0 1px var(--cz-hair); }
|
|
7
7
|
.cz-pop-card:focus { outline: none; }
|
|
8
8
|
/* the left side: the page's Viewer, lifted in (cozy-viewer.js popInst) */
|
|
9
|
-
.cz-pop-l { flex: 1 1 auto; min-width:
|
|
9
|
+
.cz-pop-l { flex: 1 1 auto; min-width: 640px; display: flex; min-height: 0; }
|
|
10
10
|
.cz-pop .cz-vw.cz-vw-pop { position: static !important; flex: 1 1 auto !important; width: auto !important; max-width: none !important; height: auto !important;
|
|
11
11
|
margin: 0 !important; transform: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
|
|
12
12
|
.cz-pop .cz-vw.cz-vw-pop > .cz-vw-grip { display: none; }
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* One way to open work: a popup that covers almost the whole page, with a thin dimmed edge of the page around it. The thing is on the left, in
|
|
5
5
|
* the page's own Viewer (cozy-viewer.js lifts #czViewer into the popup, so every page's selectors still find it). Ask PMOS is on the right,
|
|
6
6
|
* already about that thing. Esc, × or a press on the edge closes it. The phone keeps today's layout (cozy-viewer.js never pops on a phone).
|
|
7
|
-
* The grip between the two sides resizes them: each side keeps a smallest width (the work
|
|
7
|
+
* The grip between the two sides resizes them: each side keeps a smallest width (the work 640 px, the chat 320 px; pop-split.js), and PMOS remembers the
|
|
8
8
|
* chat's width (localStorage 'cz-pop-chat'). Double-click or Home resets it; ← and → move it 24 px. The chat's top bar hides the chat, and the
|
|
9
9
|
* work takes the full width; "Ask PMOS" at the top right brings it back.
|
|
10
10
|
* Ask PMOS is hidden by default (popup round 3 point 11): the thing takes the whole popup. The chat shows by itself only when it was open on
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
* openChat() the chat icon. openCos(target) the chief-of-staff chat (search's "Ask PMOS: …"). chatTo(target) changes the chat.
|
|
29
29
|
* Reads GET /api/sessions while it shows (every 6 s). Writes only on a press: End (after its Undo moment). The look is cozy-popup.css. */
|
|
30
30
|
import * as VW from './cozy-viewer.js';
|
|
31
|
+
import { MIN_WORK, MIN_CHAT, DEF_CHAT, chatWidth, remembered } from './pop-split.js';
|
|
32
|
+
import { noteUse as noteSplit } from './use-log.js'; // tb-chat-split-handle (job 2019): the work keeps 640 px, the chat 320 px
|
|
31
33
|
import { pmGet, pmPost } from './http.js';
|
|
32
34
|
import { sessionRows, pickSession, recent, nextKey } from './pop-sessions.js';
|
|
33
35
|
|
|
@@ -40,7 +42,7 @@ const I = {
|
|
|
40
42
|
side: 'M3.5 5h17v14h-17zM12 5v14', more: 'M5 12h.01M12 12h.01M19 12h.01', pen: 'M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4',
|
|
41
43
|
};
|
|
42
44
|
const CLAUDE = { key: 'claude', name: 'PMOS', initial: 'P' };
|
|
43
|
-
const
|
|
45
|
+
const DAY_MS = 864e5, POLL = 6000, UNDO = 6000, CHOOSER = 5;
|
|
44
46
|
const store = {
|
|
45
47
|
get(k) { try { return localStorage.getItem(k); } catch { return null; } },
|
|
46
48
|
set(k, v) { try { if (v == null) localStorage.removeItem(k); else localStorage.setItem(k, String(v)); } catch { /* a private window */ } },
|
|
@@ -108,7 +110,7 @@ function frame() {
|
|
|
108
110
|
function width(px) {
|
|
109
111
|
if (!S.card) return;
|
|
110
112
|
const room = innerWidth - 40; // the card's inset is 20 px a side (cozy-popup.css), so its width is known before its sheet has loaded
|
|
111
|
-
const w =
|
|
113
|
+
const w = chatWidth(px, room);
|
|
112
114
|
S.w = w; S.card.style.setProperty('--pop-chat', w + 'px');
|
|
113
115
|
const g = S.el.querySelector('.cz-pop-grip'); g.setAttribute('aria-valuenow', String(w)); g.setAttribute('aria-valuemin', String(MIN_CHAT)); g.setAttribute('aria-valuemax', String(Math.max(MIN_CHAT, room - MIN_WORK - 1)));
|
|
114
116
|
}
|
|
@@ -118,7 +120,7 @@ function grip(g) {
|
|
|
118
120
|
e.preventDefault(); g.setPointerCapture(e.pointerId); document.body.classList.add('cz-pop-drag');
|
|
119
121
|
const right = S.card.getBoundingClientRect().right;
|
|
120
122
|
const mv = (ev) => width(right - ev.clientX);
|
|
121
|
-
const up = () => { g.removeEventListener('pointermove', mv); g.removeEventListener('pointerup', up); g.removeEventListener('pointercancel', up); document.body.classList.remove('cz-pop-drag'); store.set('cz-pop-chat', S.w); };
|
|
123
|
+
const up = () => { g.removeEventListener('pointermove', mv); g.removeEventListener('pointerup', up); g.removeEventListener('pointercancel', up); document.body.classList.remove('cz-pop-drag'); store.set('cz-pop-chat', S.w); noteSplit('popSplit'); console.info('[pop-split] chat ' + S.w + ' px'); };
|
|
122
124
|
g.addEventListener('pointermove', mv); g.addEventListener('pointerup', up); g.addEventListener('pointercancel', up);
|
|
123
125
|
});
|
|
124
126
|
g.addEventListener('dblclick', () => { store.set('cz-pop-chat', null); width(DEF_CHAT); });
|
|
@@ -185,7 +187,7 @@ function show(pop) {
|
|
|
185
187
|
const p = pop && typeof pop === 'object' ? pop : {};
|
|
186
188
|
S.about = p.session ? (p.session.ini ? { id: p.session.ini, kind: 'initiative', title: p.session.work, ws: p.session.ws } : null) : p.id ? { id: p.id, kind: p.kind || 'initiative', title: p.title || '', ws: p.ws, ...(p.path ? { path: p.path } : {}) } : null;
|
|
187
189
|
S.base = S.about; S.views = new Map(); S.bind = S.base;
|
|
188
|
-
width(
|
|
190
|
+
width(remembered(store.get('cz-pop-chat')));
|
|
189
191
|
// the chat shows when it was asked for (the rail's chat icon, a session row, search's Ask PMOS), else when it was recently open on this item
|
|
190
192
|
S.userSet = false;
|
|
191
193
|
chatOn(!!(p.session || p.target || p.chat || !S.about || recentOn(S.about)));
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* pm/first-hour.js — the first hour for a new engineer on Work, below Team skills (bet A55, initiative first-hour; board BatchMoreBDS panel 29,
|
|
2
|
+
* Team › Welcome).
|
|
3
|
+
*
|
|
4
|
+
* mount(host, { ws, single, say }) → draws the block into `host`; a Work page that shows several products at once shows none
|
|
5
|
+
*
|
|
6
|
+
* Built only from Komorebi parts: a list block (pm-block list, its head), one pm-li row per step with its state glyph (Done when opened, Needs
|
|
7
|
+
* you for the next one, No signal for the rest), a pm-said line with the opened step's detail, a ✦ pm-said suggestion with icon-only ✓ and ✕,
|
|
8
|
+
* and a pm-said line "<name> finished the welcome." with an icon-only ✕. It reads and writes GET and POST /api/team/welcome
|
|
9
|
+
* (lib/routes-first-hour.js) and nothing else. Every row carries data-ask, so Ask anywhere can answer about any step.
|
|
10
|
+
* · No welcome, no suggestion and no finished line: no block (zero is silence). A published page (?pack=) never draws it.
|
|
11
|
+
* Each step press notes firstHourOpen in the local use log (the bet's kill line). */
|
|
12
|
+
import { pmGet, pmPost } from './http.js';
|
|
13
|
+
import { noteUse } from './use-log.js';
|
|
14
|
+
import { stateGlyph } from './state-glyph.js';
|
|
15
|
+
|
|
16
|
+
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
17
|
+
const SV = (d, cls = 'pm-ic') => `<svg class="${cls}" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
18
|
+
const I = { star: 'M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z', x: 'M6 6l12 12M18 6L6 18', ok: 'M5 12.5l4.5 4.5L19 7.5' };
|
|
19
|
+
const btn = (name, value, label, icon) => `<button type="button" class="pm-btn outline" name="${name}" value="${esc(value)}" aria-label="${esc(label)}" title="${esc(label)}">${SV(icon)}</button>`;
|
|
20
|
+
|
|
21
|
+
/** The block's markup. v = { welcomes, finished, suggest }, open = { who, step } (the step whose detail shows). Pure, so the test reads it. */
|
|
22
|
+
export function blockHtml(v, open = null) {
|
|
23
|
+
const welcomes = Array.isArray(v && v.welcomes) ? v.welcomes : [];
|
|
24
|
+
const finished = Array.isArray(v && v.finished) ? v.finished : [];
|
|
25
|
+
const suggest = v && v.suggest ? String(v.suggest) : '';
|
|
26
|
+
if (!welcomes.length && !finished.length && !suggest) return '';
|
|
27
|
+
const parts = [];
|
|
28
|
+
for (const w of welcomes) {
|
|
29
|
+
const next = (w.steps.find((s) => !s.done) || {}).key;
|
|
30
|
+
const rows = w.steps.map((s) => {
|
|
31
|
+
const state = s.done ? 'done' : s.key === next ? 'you' : 'none';
|
|
32
|
+
return `<button type="button" class="pm-li" name="firstHourOpen" value="${esc(s.key)}" data-who="${esc(w.who)}" data-ask="welcome:${esc(w.who)}:${esc(s.key)}">`
|
|
33
|
+
+ `${stateGlyph(state)}<span class="txt"><span class="t">${esc(s.n)} · ${esc(s.title)}</span><span class="w">${esc(s.what)}</span></span></button>`;
|
|
34
|
+
}).join('');
|
|
35
|
+
const shown = open && open.who === w.who ? w.steps.find((s) => s.key === open.step) : null;
|
|
36
|
+
const detail = shown ? `<p class="pm-said" data-welcome-detail="${esc(shown.key)}"><span>${esc(shown.detail)}</span></p>` : '';
|
|
37
|
+
parts.push(`<section class="pm-block list" aria-label="Welcome, ${esc(w.who)}"><div class="head"><h3 class="pm-h-sm">Welcome, ${esc(w.who)}</h3><span class="sp"></span>`
|
|
38
|
+
+ `<span class="pm-meta">${w.steps.length} steps</span></div><div class="rows">${rows}</div>${detail}</section>`);
|
|
39
|
+
}
|
|
40
|
+
for (const who of finished) {
|
|
41
|
+
parts.push(`<p class="pm-said" data-welcome-finished="${esc(who)}"><span>${esc(who)} finished the welcome.</span>${btn('firstHourSeen', who, 'Clear this line', I.x)}</p>`);
|
|
42
|
+
}
|
|
43
|
+
if (suggest) {
|
|
44
|
+
parts.push(`<p class="pm-said" data-welcome-suggest="${esc(suggest)}">${SV(I.star, 'pm-ic pm-star')}<span>${esc(suggest)} is new here. Start their first hour?</span>`
|
|
45
|
+
+ `${btn('firstHourStart', suggest, 'Start the welcome', I.ok)}${btn('firstHourSkip', suggest, 'Not now', I.x)}</p>`);
|
|
46
|
+
}
|
|
47
|
+
return parts.join('');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const published = () => typeof location !== 'undefined' && /[?&]pack=/.test(location.search || '');
|
|
51
|
+
|
|
52
|
+
/** Draw the block into `host` and wire its presses. */
|
|
53
|
+
export async function mount(host, opts = {}) {
|
|
54
|
+
if (!host) return;
|
|
55
|
+
const { ws = null, single = true, say = null } = opts;
|
|
56
|
+
if (!single || published()) { host.hidden = true; host.innerHTML = ''; return; }
|
|
57
|
+
const r = await pmGet('/api/team/welcome' + (ws ? '?ws=' + encodeURIComponent(ws) : '')).catch(() => null);
|
|
58
|
+
if (!r || !r.ok) { host.hidden = true; return; } // the block is an extra: a failed read leaves Work as it was
|
|
59
|
+
const html = blockHtml(r, host._open || null);
|
|
60
|
+
host.hidden = !html; host.innerHTML = html;
|
|
61
|
+
const post = (act, who, step) => pmPost('/api/team/welcome', { ws, act, who, step }).catch(() => null);
|
|
62
|
+
host.onclick = async (e) => {
|
|
63
|
+
const b = e.target.closest('button[name^="firstHour"]'); if (!b) return;
|
|
64
|
+
noteUse(b.name);
|
|
65
|
+
b.disabled = true;
|
|
66
|
+
const who = b.name === 'firstHourOpen' ? b.dataset.who : b.value;
|
|
67
|
+
const act = { firstHourOpen: 'open', firstHourSeen: 'seen', firstHourStart: 'start', firstHourSkip: 'skip' }[b.name];
|
|
68
|
+
const res = await post(act, who, act === 'open' ? b.value : null);
|
|
69
|
+
if (!res || !res.ok) { b.disabled = false; if (say) say((res && res.error) || 'Not saved.'); return; }
|
|
70
|
+
if (act === 'open') host._open = { who, step: b.value };
|
|
71
|
+
if (act === 'start' && say) say(`Welcome started for ${who}.`, async () => { await post('end', who); mount(host, opts); });
|
|
72
|
+
if (act === 'skip' && say) say('Suggestion skipped.');
|
|
73
|
+
mount(host, opts);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Draw the block again after a read of Work. */
|
|
78
|
+
export const refresh = (host, opts) => mount(host, opts);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* pm/pop-split.js — how the popup shares its width between the work and the chat (job #2019, tb-chat-split-handle; board TbChatOpen on
|
|
2
|
+
* Exploring 3, page balanced: "can resize to the comfortable width for both chat and the panel on the left").
|
|
3
|
+
*
|
|
4
|
+
* The grip between the two sides (cozy-popup.js) moves the split. The work keeps at least 640 px and the chat at least 320 px. PMOS remembers
|
|
5
|
+
* the chat's width on this computer (localStorage 'cz-pop-chat'); a double-click or Home resets it to 460 px.
|
|
6
|
+
* chatWidth(px, room) PURE → the chat's width for a wanted px in a popup room px wide (the room less the work's least width, never under
|
|
7
|
+
* the chat's least width: when the window is too narrow for both, the chat keeps its 320 px).
|
|
8
|
+
* remembered(v) PURE → the stored width as a number, or the default when nothing usable is stored. */
|
|
9
|
+
export const MIN_WORK = 640, MIN_CHAT = 320, DEF_CHAT = 460;
|
|
10
|
+
export function chatWidth(px, room) {
|
|
11
|
+
const want = Math.round(Number(px) || DEF_CHAT), most = Math.round(Number(room) || 0) - MIN_WORK - 1;
|
|
12
|
+
return Math.max(MIN_CHAT, Math.min(want, most));
|
|
13
|
+
}
|
|
14
|
+
export function remembered(v) {
|
|
15
|
+
const n = parseInt(String(v == null ? '' : v), 10);
|
|
16
|
+
return n > 0 ? n : DEF_CHAT;
|
|
17
|
+
}
|
|
@@ -76,6 +76,7 @@ import * as STRAT from './bd-strategy.js'; // the product's strategy in five l
|
|
|
76
76
|
import * as PRIN from './bd-principles.js'; // the product's principles drafted from its decisions, below the strategy (bet A352)
|
|
77
77
|
import * as SWO from './switch-owners.js'; // who has which switch, per customer, below the principles (idea A263)
|
|
78
78
|
import * as SKM from './skill-map.js'; // the team skill map below the principles (bet A208)
|
|
79
|
+
import * as FHR from './first-hour.js'; // the first hour for a new engineer, below Team skills (bet A55)
|
|
79
80
|
import * as CMAP from './code-map.js'; // the product's code map, one box per main part (idea A176)
|
|
80
81
|
import * as SWN from './cozy-status-when.js'; // the day a status move really happened, in the toast (round 3 point 18)
|
|
81
82
|
import { pressHold } from './state-glyph.js';
|
|
@@ -1533,6 +1534,7 @@ async function load() {
|
|
|
1533
1534
|
PRIN.refresh($('#cPrin'), { ws: M.board.ws || null, single: !ALL, say });
|
|
1534
1535
|
SWO.refresh($('#cSw'), { ws: M.board.ws || null, single: !ALL, say });
|
|
1535
1536
|
SKM.refresh($('#cSkills'), { ws: M.board.ws || null, single: !ALL, say });
|
|
1537
|
+
FHR.refresh($('#cWelcome'), { ws: M.board.ws || null, single: !ALL, say });
|
|
1536
1538
|
CMAP.mount($('#cCode'), { ws: M.board.ws || null, single: !ALL });
|
|
1537
1539
|
focusOnce(); taskOnce(); programOnce(); newOnce(); loadOthers(); loadWorkflows();
|
|
1538
1540
|
if (r.stale) setTimeout(load, 2000); // a press is still being derived: ask again
|
|
@@ -39,6 +39,8 @@ export const VIEW_CONTROLS = [
|
|
|
39
39
|
// Choose columns (the copy's filter and sort), the timeline switch in it, the Next milestones line's +N marks
|
|
40
40
|
'[data-wkopen]', '[data-wknav]', '[data-wkmenu]', '.wk-menu [data-wktlsw]', '[data-wkdl="on"]', '[data-wkdl="back"]', '[data-wkdl="fit"]',
|
|
41
41
|
'#bdFind', '#roFind', '#bdFilter', '.wk-menu [data-wkf]', '.wk-menu [data-wkmore]', '.wk-menu [data-wksortp]', '.wk-menu [data-wksortx]', '.wk-menu [data-wkreset]',
|
|
42
|
+
// Print or PDF on Work's list (print-pdf, A379): it prints what the reader already sees and writes nothing
|
|
43
|
+
'[data-wkprint]',
|
|
42
44
|
// the popup of a row, read only (Part A 4): its close and its edge, Details, a stage's fold, the done and far folds
|
|
43
45
|
// its path and ← back to the page it came from (the design-system popup, #1432: "Work ›" and "Back to Work") only navigate
|
|
44
46
|
'.cz-pop [data-pop="close"]', '.cz-pop [data-cz-vw-path]', '.cz-pop [data-cz-vw="back"]', '.pw [data-pw-details]', '.pw [data-pw-fold]', '.pw [data-pw-more]', '.pw [data-pw-grip]', '.pw [data-pw-done]', '.pw [data-pw-far]', '.pw [data-pw-tl]', '.pw [data-pw-span]', '.hi-pop [data-sp]',
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
<section class="bd-sec" id="cSw" aria-label="Switches" hidden></section>
|
|
70
70
|
<!-- the team skill map (pm/skill-map.js, bet A208): below the principles, one product only, for the person and their lead -->
|
|
71
71
|
<section class="bd-sec" id="cSkills" aria-label="Team skills" hidden></section>
|
|
72
|
+
<section class="bd-sec" id="cWelcome" aria-label="Welcome" hidden></section>
|
|
72
73
|
<!-- the product's code map (pm/code-map.js, idea A176): one box per main part of its repository, one product only -->
|
|
73
74
|
<section class="bd-sec" id="cCode" aria-label="Code" hidden></section>
|
|
74
75
|
<section class="bd-sec" id="cIni" aria-labelledby="hIni">
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The first hour for a new engineer (initiative first-hour, job #1979, idea A55; done test F1-F6, N1-N4): the four steps from the strategy card, tasks and code map, done when opened, the finished line, the ✦ newcomer suggestion, pmos team welcome, the route and the Work block's markup. No server, browser, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"first-hour.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"first-hour.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|