create-pmos 0.424.0 → 0.426.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.
Files changed (110) hide show
  1. package/package.json +25 -25
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/board-deliveries-test.js +153 -0
  7. package/workspace/board-programs-test.js +60 -36
  8. package/workspace/board-shot.js +4 -3
  9. package/workspace/briefing-premium-board-test.js +9 -6
  10. package/workspace/briefing-premium-insights-test.js +31 -15
  11. package/workspace/briefing-premium-products-test.js +46 -43
  12. package/workspace/calm-timeline-test.js +190 -0
  13. package/workspace/changelog.json +24 -0
  14. package/workspace/ev-everywhere-test.js +3 -1
  15. package/workspace/guide/briefing-premium.md +3 -2
  16. package/workspace/guide/claude-proposes.md +16 -1
  17. package/workspace/guide/home.md +2 -2
  18. package/workspace/guide/index.md +1 -0
  19. package/workspace/guide/notes.md +39 -1
  20. package/workspace/guide/present-in-a-meeting.md +57 -0
  21. package/workspace/guide/programs.md +4 -3
  22. package/workspace/lib/board-premium.js +3 -1
  23. package/workspace/lib/briefing-premium-products.js +18 -4
  24. package/workspace/lib/chat-file-locate.js +40 -2
  25. package/workspace/lib/engine/boards.js +8 -2
  26. package/workspace/lib/idle-close.js +60 -0
  27. package/workspace/lib/loose-proposals.js +302 -0
  28. package/workspace/lib/meeting-focus.js +64 -14
  29. package/workspace/lib/my-work-premium.js +1 -1
  30. package/workspace/lib/proposal-runs.js +77 -2
  31. package/workspace/lib/propose-cli.js +42 -1
  32. package/workspace/lib/route-modules.js +1 -0
  33. package/workspace/lib/routes-boards.js +16 -4
  34. package/workspace/lib/routes-brief-page.js +9 -1
  35. package/workspace/lib/routes-briefing-premium.js +19 -0
  36. package/workspace/lib/routes-loose.js +210 -0
  37. package/workspace/lib/routes-meeting-focus.js +28 -6
  38. package/workspace/lib/routes-pm-items.js +27 -17
  39. package/workspace/lib/settings-store.js +2 -1
  40. package/workspace/lib/task-cli.js +18 -11
  41. package/workspace/milestone-pins-test.js +170 -0
  42. package/workspace/package-lock.json +2 -2
  43. package/workspace/package.json +1 -1
  44. package/workspace/premium-board-actions-test.js +2 -1
  45. package/workspace/premium-briefing-depth-test.js +2 -2
  46. package/workspace/premium-chat-term-test.js +13 -2
  47. package/workspace/premium-core-doc-issue-test.js +1 -1
  48. package/workspace/premium-rec-now-test.js +153 -0
  49. package/workspace/premium-rec-tab-test.js +167 -0
  50. package/workspace/product-lane-test.js +30 -17
  51. package/workspace/public/pm/bd-acts.js +6 -3
  52. package/workspace/public/pm/bd-deliveries.js +218 -0
  53. package/workspace/public/pm/bd-pin-card.css +16 -0
  54. package/workspace/public/pm/bd-pin-card.js +80 -0
  55. package/workspace/public/pm/bd-pins.js +33 -0
  56. package/workspace/public/pm/bd-pop.js +2 -0
  57. package/workspace/public/pm/bd-prog.js +5 -4
  58. package/workspace/public/pm/bd-span.js +140 -102
  59. package/workspace/public/pm/cozy-aud.css +9 -0
  60. package/workspace/public/pm/cozy-aud.js +80 -0
  61. package/workspace/public/pm/cozy-board.css +73 -11
  62. package/workspace/public/pm/cozy-home.css +16 -1
  63. package/workspace/public/pm/cozy-live-pill.js +3 -0
  64. package/workspace/public/pm/cozy-pick.css +41 -0
  65. package/workspace/public/pm/cozy-pick.js +134 -0
  66. package/workspace/public/pm/cozy-rec-bridge.js +32 -0
  67. package/workspace/public/pm/cozy-rec-now.css +104 -0
  68. package/workspace/public/pm/cozy-rec-now.js +330 -0
  69. package/workspace/public/pm/cozy-rec-present.css +69 -0
  70. package/workspace/public/pm/cozy-rec-present.js +467 -0
  71. package/workspace/public/pm/cozy-rec-tab.css +90 -0
  72. package/workspace/public/pm/cozy-rec-tab.js +219 -0
  73. package/workspace/public/pm/cozy-settings.js +8 -2
  74. package/workspace/public/pm/cozy-today.css +4 -0
  75. package/workspace/public/pm/home-app.js +51 -22
  76. package/workspace/public/pm/home-data.js +5 -3
  77. package/workspace/public/pm/home-list.js +63 -15
  78. package/workspace/public/pm/home-more.js +2 -31
  79. package/workspace/public/pm/home-today.js +19 -9
  80. package/workspace/public/pm/ini-tasks.js +4 -1
  81. package/workspace/public/pm/live-model.js +1 -1
  82. package/workspace/public/pm/loose-props.css +54 -0
  83. package/workspace/public/pm/loose-props.js +262 -0
  84. package/workspace/public/pm/premium-board.js +65 -30
  85. package/workspace/public/pm/premium-insights.js +42 -24
  86. package/workspace/public/pm/premium-meeting.js +17 -4
  87. package/workspace/public/pm/premium-mtg-present.js +4 -3
  88. package/workspace/public/pm/premium-report-read.js +2 -0
  89. package/workspace/public/pm/premium-vw-mtg.js +15 -7
  90. package/workspace/public/pm/rec-state.js +13 -5
  91. package/workspace/public/pm/rec-tab-core.js +92 -0
  92. package/workspace/public/pm/term-view.js +81 -10
  93. package/workspace/public/pm/view-notes.js +9 -0
  94. package/workspace/public/premium-aud.html +22 -0
  95. package/workspace/public/premium-board.html +2 -0
  96. package/workspace/public/premium-insights.html +2 -1
  97. package/workspace/public/premium-rec.html +30 -0
  98. package/workspace/public/premium.html +1 -0
  99. package/workspace/rec-present-test.js +229 -0
  100. package/workspace/server.js +116 -7
  101. package/workspace/skills/loose-propose.skill +39 -0
  102. package/workspace/task-milestones-test.js +15 -6
  103. package/workspace/test-lists/board-deliveries.json +13 -0
  104. package/workspace/test-lists/calm-timeline.json +5 -0
  105. package/workspace/test-lists/loose-props.json +9 -0
  106. package/workspace/test-lists/milestone-pins.json +6 -0
  107. package/workspace/test-lists/rec-now.json +6 -0
  108. package/workspace/test-lists/rec-present.json +13 -0
  109. package/workspace/test-lists/recording-tab.json +13 -0
  110. package/workspace/timeline-holds-test.js +44 -42
@@ -14,7 +14,8 @@ Home is the page at `/premium.html`. It follows the Agreed design and the "Uncov
14
14
  - The top line has **Good morning**, the product picker, the filter icon (on a desktop) and **New**. The line under it says how many items are yours, for example "4 are yours".
15
15
  - Press **Good morning** to open **Your day**. Your day shows the date, the meetings of the day, **Your move** (the items that wait on you, with their count) and **This week** (the Weekly review). Your move shows only in Your day, not in the list.
16
16
  - A **program** comes first, above the products. Its header shows the program icon, its name, the next milestone (◆ and the date) and how many of its initiatives are ready for that milestone. Inside it, the program's own tasks come first, then its initiatives under a small heading for each product. Each initiative shows once. Press the program's name to open the program in the Viewer. The chat then talks about the program. Press the chevron to close or open the group.
17
- - A program with no open initiative yet still shows, with "No initiatives yet" or "No open initiatives". With one product picked, it shows under its own product. Home reads again when you come back to its tab, so a program made on the Board shows at once.
17
+ - The **product picker** is the chip on the top line. It shows the tiles of the ticked products, overlapped, with **+N** after 3, or **All** when every product is ticked. It shows even with one product. Hold the pointer on it to read the names. Press it to open the list: **All products**, then each product with its tile, its name and one line (for example "3 initiatives · 1 of 2 goals"), then **Add a product**. Press a product to tick or untick it; the list stays open, and the last ticked product stays ticked. The pick applies when the list closes (Escape, a press outside, or the chip again). On a phone the list is a sheet at the bottom. The pick is one saved setting (`ws.briefing.include`) that Home, the Board and Insights share, so a product that you untick on one page goes from all three. With **All** ticked, a product that you add later is ticked too. The **Product** row in Settings opens the same list.
18
+ - A program with no open initiative yet still shows, with "No initiatives yet" or "No open initiatives". A program shows only when it holds work of a ticked product. Home reads again when you come back to its tab, so a program made on the Board shows at once.
18
19
  - Then the list is grouped by **product**. A product header shows a tile with the product's short name, the product name, one dot for each goal (green on track, amber off track) and a chevron. You set the short name in Settings. Press the product's name to open the product in the Viewer, with its goals and this week's update and metrics review. The chat then talks about the product. This is the same for every product in the list: Home stays on the workspace you opened it on. For another product, the weekly update and the metrics review open that product's own Home in a new tab. An initiative of another product opens from that product's own board, and its chat works in that product's workspace. This is also true for a new initiative that an agent made with `pmos initiative new` and that is not on the board's Now list yet: it opens with its title, stage and tasks.
19
20
  - Each row is one line. A dot is a session: blue when it waits on you, a ring while it runs. A check box is a task: amber when it is late. The stage track on the right shows where the initiative is. A session that runs under an initiative shows indented under it. An initiative shows its 3 most urgent tasks, and **N more** shows the rest.
20
21
  - **Not in an initiative** is one line at the end, with a blue dot, an amber square and a count. Press it to open the items that have no initiative.
@@ -107,7 +108,6 @@ Press the round button at the bottom of the page (bottom left on a desktop, bott
107
108
 
108
109
  - **End of the day.** What finished today, as counts: tasks done, decisions you confirmed, drafts finished, and notes still to confirm. Then tomorrow's meetings.
109
110
  - **Calendar** and **Record a note.**
110
- - **Products.** The products that Home reads. A switch turns one product on or off. **Back to the default** goes back to the default list. With `?ws=` in the address, **All picked products** goes back to the full list.
111
111
 
112
112
  ## The list, and what it does not show
113
113
 
@@ -60,6 +60,7 @@ On a desktop the workspace is one frame. [Layout](layout.md) explains each part.
60
60
  - [Validate a repository](validate-with-typesafe.md): what each kind of document is compared with, how to read the verdict, and what leaves your machine.
61
61
  - [Today and the proactive engine](proactive-engine.md): what Today finds, what you can do with an item, the settings, the commands and the limits.
62
62
  - [Live notes](live-notes.md): take notes in a meeting, confirm each talking point, and what goes to Jev when you turn it on.
63
+ - [Present while a meeting records](present-in-a-meeting.md): Present in the recording tab, the audience tab, the presenter view, and presenting a window.
63
64
  - [Notes](notes.md): listen to a meeting on this machine, see decisions, actions and questions caught and checked against the repository, and get a summary.
64
65
  - [Find knowledge without reading whole files](knowledge-graph.md): what `pmos kg` finds, its commands, how to read its numbers, and its limits.
65
66
  - [Initiatives: the Roadmap, the List and the initiative sheet](initiatives-screen.md): how to read and order the initiatives of a repository, open the sheet, make a new initiative, and review the cycle.
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "Guide: notes"
4
4
  description: "How to take notes in a meeting: one note top to bottom, typed notes as timed lines, key points written each minute and labelled by Jev, delete a note; final notes written after Stop from the whole recording, with speakers and a quote for each item, decisions with their why and who, next steps with an open question, a discussion paragraph, and Wispr Flow's notes merged in and fetched by hand when the fetch fails; listen to your microphone and the meeting on this machine, see decisions, actions and questions caught as they are said, check them against the repository for conflicts, capture highlights during the meeting, create tasks from next steps, correct and tag lines, see what changed in your notes, replay the meeting, see screenshots of the shared screen beside the transcript, link a note to its meeting and its initiative, and get a summary."
5
- timestamp: 2026-10-23
5
+ timestamp: 2026-10-26
6
6
  ---
7
7
 
8
8
  # Guide: notes
@@ -48,6 +48,25 @@ The live transcript keeps each sentence once:
48
48
 
49
49
  If you start a note by mistake and stop it before anything was heard, and you typed nothing, PMOS deletes the note. A short note with speech in it is kept. The meeting you paused before it can be resumed again.
50
50
 
51
+ ## The recording tab
52
+
53
+ A meeting records in its own browser tab, the recording tab. When you press **Record**, **Resume** or **New meeting** on any page, PMOS opens the recording tab, or brings it forward when it is already open. The browser asks for the share there, with one press in that tab.
54
+
55
+ The recording tab holds the recording and stays on the meeting. When you open Home, Board, Insights or a chat in your other PMOS tab, the meeting does not pause. A link in the recording tab opens in your other PMOS tab.
56
+
57
+ - **With a shared screen**, the tab shows the shared picture live on a dark stage.
58
+ - **In the room** (microphone only), the tab is a light page.
59
+ - **The header** shows the red dot, the meeting clock and the title. The browser tab's title is the clock. After the calendar end, the clock turns amber and says **Past 10:30 end**.
60
+ - **The line under the stage** is the meeting so far. Each highlight is a star on it. Hold the pointer on a star, or move the focus to it, to see the time, the line said and the screenshot.
61
+ - **The bar** has icons only: **Highlight**, **Pause**, **Pause the screenshots** (only with a shared screen; the sound goes on) and the red **Stop**. **Stop** asks first, then the tab shows the meeting's notes.
62
+ - **Sharing stopped**: the stage turns grey with **Share again**. The sound goes on.
63
+ - **Not hearing the meeting**: an amber line with **Share again** shows when the microphone is heard and the meeting is not. The snippet on other pages says it too.
64
+ - **The next meeting**: if you press **Record** on another meeting while one records, the recording tab asks once: **Stop Viewer sync and record Design review?**
65
+
66
+ Only the recording tab controls the meeting. Every other page shows a snippet: the first row of the Live pill, the pinned row on Home, and the live meeting in the Viewer. A snippet shows the dot, the clock and the title. Press it to bring the recording tab forward. A snippet has no **Pause**, **Stop** or **Highlight**.
67
+
68
+ If you close the recording tab, the browser asks first. If you leave, the meeting pauses. Press the snippet to open the tab again, then press **Resume**. On a phone, the recording view opens in the same tab.
69
+
51
70
  ## While the meeting is held
52
71
 
53
72
  While a meeting is recording or paused, the note shows a live block under the context: the status, **Your notes** (type a line and press Enter) and the live transcript. The block stays steady while it listens. New lines are added at the end. Your place, the line you are typing and its cursor do not move. If the transcript is scrolled to its end, it follows the new lines. The note shows **Stop** while recording, and **Resume** and **Stop** while paused. **Highlight** and **Pause** are in the top bar only.
@@ -253,6 +272,25 @@ When you press **Listen**, a sheet asks **Where is the meeting?** The choice is
253
272
 
254
273
  To stop taking screenshots, clear **Capture the shared screen** in the settings. The sound of the shared screen is still used. To stop sharing only the picture during a meeting, stop the share in the browser's sharing bar; the screenshots stop. To delete one note's screenshots, press **Delete this note's screenshots** in the settings, or **Delete screenshots** in the note's **More** menu. The notes, the transcript and the audio stay. Deleting a note, or marking it private, deletes its screenshots.
255
274
 
275
+ ## The Now panel in the recording tab
276
+
277
+ While a meeting records, the recording tab shows the Now panel. With a shared screen, it is the card at the right. In the room (microphone only), it fills the page. The panel has no tabs. A part with nothing to show is not shown.
278
+
279
+ - **To cover** lists the topics from the prep. A check mark shows a topic that is done, with its time. The blue dot shows the topic now. The header shows the minutes left until the meeting ends. In the room, the topic now is large, with "4 min on it · 22 min left", and chips show the done topics and the next one.
280
+ - **Raise now** shows at most 2 prompts from Claude:
281
+ - **Check**: the shared screen and the talk do not agree, for example a date on a slide.
282
+ - **Follow-up**: an action from the last meeting is still open, and nobody raised it.
283
+ - **No owner yet**: the room agreed on something, and nobody owns it.
284
+
285
+ Press ✓ when you raised it, or ✗ for not now. The prompt goes away and does not come back.
286
+
287
+ - **The counts line** shows the decisions, next steps and highlights so far, for example "1 decision · 1 next step · 1 highlight".
288
+ - **The note box**: type a line and press Enter. A line that ends with "?" goes to Claude as a question. Any other line is added to your notes. The answer shows above the box, with where it came from (the talk, the screen, the prep or last time). Press + to add the answer to your notes.
289
+
290
+ To read what was said, press the transcript icon in the bar. The live transcript opens as a card beside the panel. A star shows a highlight and a diamond shows a decision. The card is closed when the recording starts.
291
+
292
+ Claude reads the text of the latest screenshots of the shared screen, if your machine reads text from them (tesseract). Claude never reads the screen of a private note.
293
+
256
294
  ## Capture highlights during the meeting
257
295
 
258
296
  While listening, press the highlighter in the top bar to capture the last 30 seconds of conversation. A pop-up opens just below the Record control and shows the highlight's progress. Its icons keep the highlight, discard it, or close the pop-up (the highlight keeps working):
@@ -0,0 +1,57 @@
1
+ ---
2
+ type: Guide
3
+ title: "Guide: present while a meeting records"
4
+ description: "How Present in the recording tab shows material to the call in an audience tab, and gives you a presenter view with the next page, your notes and the time."
5
+ timestamp: 2026-10-26
6
+ ---
7
+
8
+ # Guide: present while a meeting records
9
+
10
+ While a meeting records, the recording tab is also your presenter view. The call sees a clean audience tab, or the window you pick. You see what they see, the next page, your notes, and the Now panel beside it. PMOS never joins the call and never drives the call app: you share the audience tab in Meet, Zoom or Teams as you share any tab.
11
+
12
+ ## Pick what to present
13
+
14
+ 1. In the recording tab, press **Present** (the screen icon in the bar at the bottom).
15
+ 2. Pick one of these:
16
+ - **From the prep**: the material of this meeting, with its kind and size, for example "Slides · 6 slides, with your notes".
17
+ - **Find in PMOS**: type two letters or more to find a PMOS document, report or deck.
18
+ - **File or link**: paste an https link and press Enter, or press the upload icon to send a file (PDF, image, HTML or PowerPoint). The link or file is added to the material of this meeting.
19
+ - **A tab, a window or your screen**: the browser asks which one.
20
+ 3. Press Escape to close the list without a choice.
21
+
22
+ ## Material that PMOS can open
23
+
24
+ A PMOS deck, a PMOS document or report, an image and an uploaded PDF open in the **audience tab**. Share that tab in the call. In the room, drag it to the projector.
25
+
26
+ The recording tab then shows:
27
+
28
+ - **They see this**: the page in the audience tab now.
29
+ - **Next**: the next slide, drawn small, or the name of the next section.
30
+ - **Notes**: the speaker notes of the slide. When a slide has no notes, the card is **From the prep**: Claude's points from the meeting's prep and the open actions from last time.
31
+ - **Previous** and **Next** (the arrow icons), with "3 of 6", and the time on this slide. The left and right arrow keys and Page Up and Page Down also move.
32
+
33
+ A document moves by section. A PDF moves by page. Each move goes to the audience tab at once.
34
+
35
+ If the browser did not open the audience tab, or you closed it, press the icon at the top right of **They see this** to open it again.
36
+
37
+ A Google Doc, Google Slides, a Google Sheet, a website or an HTML file opens **live** in the audience tab. PMOS cannot read its pages, so you move through it in that tab. The recording tab keeps the time and Claude's points from the prep. The icon brings the audience tab forward.
38
+
39
+ PMOS cannot draw a PowerPoint file. Open it in PowerPoint or Keynote, then pick its window under **A tab, a window or your screen**.
40
+
41
+ ## A tab, a window or your screen
42
+
43
+ The recording tab shows the window that you picked, live, as **They see this · your Jira window**. Beside it, **For this screen** has Claude's points from the prep about it, when there are any. Under it are the last shots kept (a shot is kept when the picture changes) and the time on this screen. There is no Previous or Next: you move through it in that window. When you stop sharing it, presenting stops.
44
+
45
+ ## Present a deck from another page
46
+
47
+ While a meeting records, **Present** on a PMOS deck or report, or on the meeting's material in the Viewer, opens the audience tab and shows the same presenter view in the recording tab. With no recording, Present works as before.
48
+
49
+ ## Stop presenting
50
+
51
+ Press **Present** again, then **Stop presenting**. The audience tab closes and the recording tab shows the meeting again.
52
+
53
+ ## Limits
54
+
55
+ - PMOS does not read Google Docs, Slides or Sheets. They open live, with no page count, no Next and no speaker notes.
56
+ - The page count of a PDF comes from the file itself. When PMOS cannot find it, the count says "page 3" with no total.
57
+ - Claude's points come from the prep, the brief and last time's actions. They are not read from the screen.
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "Programs on the Board: All products, groupings and the program panel"
4
4
  description: "A program groups initiatives across products. How it shows on the Board (stage track, Kanban, timeline and List), the All products mode, the By product grouping, the program panel and the side panel width."
5
- timestamp: 2026-10-26
5
+ timestamp: 2026-10-27
6
6
  ---
7
7
 
8
8
  # Programs on the Board
@@ -13,13 +13,14 @@ Programs do not change how Insights, the weekly update or sprints count initiati
13
13
 
14
14
  ## The Board
15
15
 
16
- - The product picker has **All products** when you have more than one product. All products shows the initiatives of every product on one Board (`/premium-board.html?all=1`).
17
- - The product picker takes several products. Press a product to tick or untick it; the menu stays open. **All products** ticks every product, and shows a dash when only some are ticked. The last ticked product stays ticked. When the menu closes, the Board shows the ticked products, merged as on All products. The button shows the first product and "+N" (for example "pmos-idpf +1"). The pick is in the address (`?pick=<workspace>|<board>` for each product), so a reload keeps it.
16
+ - The product picker is the same chip and list as on Home (see [Home](home.md)). It shows the tiles of the ticked products, or **All**. When the list closes, the Board shows the ticked products, merged as on All products. The pick is the saved setting that Home and Insights share, so a reload keeps it, and a product that you untick here goes from Home too.
17
+ - An address with `?ws=`, `?board=`, `?all=1` or `?pick=` is a one-off view: the Board shows what the address names and does not change the saved pick. A change in the list saves the pick and opens the Board without those parts.
18
18
  - A program comes first. Its band shows the stage spread of its initiatives, the next milestone and how many initiatives are ready for it. Under the band, the initiatives sit under a small heading for each product. Then each product has its own group.
19
19
  - To group by product only, open **Filter** and choose **By product**. A program member then shows a small layers icon and stays under its product in every view, the timeline included. A chip shows while By product is on.
20
20
  - **Kanban** shows programs as swimlanes, then products. Press a column header to fold the column to a strip with its count. An empty column starts folded. The Board remembers each fold.
21
21
  - The **timeline** draws a program row that brackets its initiatives' bars, on every span. Program milestones are diamonds. Milestones that are close together merge into one diamond with a count.
22
22
  - On the timeline, a **product's head row** also shows milestones. Nothing is added by hand: the row shows every milestone of the product's initiatives, which are each milestone task and each initiative's end diamond (its Deliver or Evaluate date). The diamonds are the same as on the initiative rows: open, filled when done, orange when late. Diamonds that are close together merge into one diamond with a count and the date range under it. Press it to see a list with the milestone, its initiative and the date. Press a line to open that initiative. Hold the pointer on a single diamond to see its milestone and initiative. A thin line goes from the first start to the last end of the product's initiatives. When the product is folded, the row stays the same, so it is a summary of the product. On a phone the diamonds have no dates; tap the row to see all the milestones in date order. A product inside a program has no such row, because the program row shows its milestones.
23
+ - On the timeline, an initiative row shows only its **pinned** milestones. By default that is its last milestone. Press a diamond to see every milestone of the initiative, with how many are on the timeline. Press the pin beside a milestone to show it or to hide it. To see every milestone or none, open **Filter** and pick **Milestones on the timeline: Pinned**, **All** or **None**. The Board keeps your pick. From a terminal: `pmos task set <task> --pin`, `--no-pin`, or `--pin-default` to go back to the default.
23
24
  - **List** has a Product column and a Program column. Press a column header to sort by it.
24
25
  - **New** opens a menu: **New initiative** or **New program**.
25
26
  - A new program shows at once, before any initiative joins it. A program with no open initiative shows on its own product's Board and on All products, with "No initiatives yet" or "No open initiatives". Press its name, then **⋯** and **Move an initiative in**. That menu lists open initiatives only, grouped by product, with the program's own product first, wherever you open the program (Home, another product's Board or All products). An initiative joins in its own product.
@@ -324,7 +324,9 @@ function build(f) {
324
324
  for (const w of f.items || []) {
325
325
  if (!w || !w.milestone || w.kind === 'Epic' || !w.ini || !w.uid || w.status === "Won't do" || w.status === 'Archived' || !isoDay(w.end)) continue;
326
326
  if (!msBy.has(w.ini)) msBy.set(w.ini, []);
327
- msBy.get(w.ini).push({ id: w.uid, name: clip(w.title || w.uid, 120), date: String(w.end).slice(0, 10), done: w.status === 'Done', ...(typeof w.section === 'string' && w.section ? { sec: w.section } : w.from && w.from.stage ? { sec: w.from.stage } : {}), ...(w.src === 'jira' ? { jira: true } : {}) });
327
+ msBy.get(w.ini).push({ id: w.uid, name: clip(w.title || w.uid, 120), date: String(w.end).slice(0, 10), done: w.status === 'Done', ...(typeof w.section === 'string' && w.section ? { sec: w.section } : w.from && w.from.stage ? { sec: w.from.stage } : {}), ...(w.src === 'jira' ? { jira: true } : {}),
328
+ // the PM's pin (batch 13 item 4): only when set; unset follows pm/bd-pins.js's rule (the last milestone shows)
329
+ ...(typeof w.pinned === 'boolean' ? { pinned: w.pinned } : {}) });
328
330
  }
329
331
  // every task, not the first 60: the Board's panel and Home count the same tasks (feedback batch 6 item 1: Board said 56 done, Home 61)
330
332
  for (const r of rows.concat(stageRows, gone.cancelled, gone.archived)) if (!r.tasks) r.tasks = (taskBy.get(r.id) || []).slice(0, TASK_MAX);
@@ -10,6 +10,8 @@
10
10
  * THE SELECTION RULE. With nothing chosen, every registered workspace except the home one (PMOS itself) is read. With a choice (the setting
11
11
  * ws.briefing.include, a list of workspace ids), exactly those are read, the home workspace included when it is listed. A workspace that is not
12
12
  * selected is not read at all: no file of it is opened and no git command runs in it. An id in the choice that is no longer registered is ignored and returned.
13
+ * The choice ['*'] is every registered workspace, the home one included, so a workspace registered later is read too (the product picker's All,
14
+ * batch 12 item 5). pickFor(available, on) turns the picker's ticks into the setting: every one '*', the default ones null, else the list.
13
15
  *
14
16
  * Each workspace keeps its own answer (memory and a file under the state folder), so one slow or broken repository costs only its own part:
15
17
  * the others show, and the header names the one that is still being read or could not be. */
@@ -26,9 +28,21 @@ const RETRY_AFTER_ERROR_MS = 2 * 60 * 1000;
26
28
  function choose({ workspaces, include, only }) {
27
29
  const list = (workspaces || []).filter((w) => w && w.id && w.root);
28
30
  const ids = new Set(list.map((w) => w.id));
29
- const pick = Array.isArray(include) ? new Set(include) : null;
30
- const available = list.map((w) => ({ ws: w.id, name: w.name || w.id, root: w.root, home: !!w.home, ...(w.initials ? { initials: String(w.initials) } : {}), on: only ? w.id === only : pick ? pick.has(w.id) : !w.home }));
31
- return { available, ignored: Array.isArray(include) ? include.filter((x) => !ids.has(x)) : [] };
31
+ const every = Array.isArray(include) && include.includes(ALL);
32
+ const pick = Array.isArray(include) && !every ? new Set(include) : null;
33
+ const available = list.map((w) => ({ ws: w.id, name: w.name || w.id, root: w.root, home: !!w.home, ...(w.initials ? { initials: String(w.initials) } : {}), on: only ? w.id === only : every ? true : pick ? pick.has(w.id) : !w.home }));
34
+ return { available, all: every, ignored: Array.isArray(include) && !every ? include.filter((x) => !ids.has(x)) : [] };
35
+ }
36
+ const ALL = '*';
37
+ /** The setting for the picker's ticks (ws ids): '*' when every registered workspace is ticked (a later one joins), null when the ticks are the
38
+ * default (every one but the home workspace), else the ticked ids in the list's order. Null when no registered workspace is ticked. */
39
+ function pickFor(available, on) {
40
+ const ticked = new Set((on || []).map(String)), list = (available || []).filter((a) => ticked.has(a.ws));
41
+ if (!list.length) return { error: 'tick at least one product' };
42
+ if (list.length === available.length) return { value: [ALL] };
43
+ const def = available.filter((a) => !a.home);
44
+ if (def.length === list.length && def.every((a) => ticked.has(a.ws))) return { value: null };
45
+ return { value: list.map((a) => a.ws) };
32
46
  }
33
47
 
34
48
  /** A merged row's key is kind:id:ws. A key of the one-workspace page (kind:id) has no workspace and returns null. */
@@ -130,4 +144,4 @@ const peekModel = () => last;
130
144
  const settle = () => Promise.all([...states.values()].map((s) => s.inflight).filter(Boolean));
131
145
  const forget = () => { states.clear(); last = null; };
132
146
 
133
- module.exports = { choose, splitKey, modelOfMany, refreshNow, rebuildOne, peekModel, settle, forget, refreshOne, STALE_MS };
147
+ module.exports = { pickFor, ALL, choose, splitKey, modelOfMany, refreshNow, rebuildOne, peekModel, settle, forget, refreshOne, STALE_MS };
@@ -7,7 +7,11 @@
7
7
  * path what Claude wrote: absolute, ~/…, or relative to the session's folder. A trailing :line or :line:col is dropped.
8
8
  * roots [{ id, root }] the workspaces the server serves. Nothing outside them is read.
9
9
  * base the session's own workspace id: a relative path resolves against its root.
10
+ * cwd the folder the session runs in (may be a subfolder or a worktree): a relative path is tried there first.
11
+ * named full paths Claude wrote elsewhere in the session. A relative path that is missing where it was tried is looked up among the ones
12
+ * that end with it (PM, 2026-10-27: "scarlet-leadership-pack.md" written as a bare name answered "No such file").
10
13
  * home the user's home folder, for ~/.
14
+ * A bare file name still missing after that is looked for by name inside the base workspace (findByName): one match opens, more do not.
11
15
  * reason: 'outside' (no served workspace holds the path), 'missing' (no such file), 'not-file' (a folder), 'bad' (no path).
12
16
  * Both the path and each root are resolved to their real paths, so a symlink inside a workspace cannot lead out of it.
13
17
  *
@@ -30,7 +34,41 @@ function cleanPath(p) {
30
34
  return s;
31
35
  }
32
36
 
33
- function locate({ path: raw, roots = [], base = null, home = null } = {}) {
37
+ function locate(o = {}) {
38
+ const first = locateOne(o);
39
+ const p = cleanPath(o.path);
40
+ if (first.ok || first.reason === 'bad' || !p || p === '~' || p.startsWith('~/') || path.isAbsolute(p)) return first;
41
+ const tries = [];
42
+ if (o.cwd && path.isAbsolute(o.cwd)) tries.push(path.resolve(o.cwd, p));
43
+ const tail = '/' + p.replace(/^\.\//, '');
44
+ for (const n of [...(o.named || [])].reverse()) { const c = cleanPath(n); if ((path.isAbsolute(c) || c.startsWith('~/')) && c.endsWith(tail)) tries.push(c); }
45
+ if (!p.includes('/')) {
46
+ const list = (o.roots || []).filter((r) => r && r.id && r.root);
47
+ const b = list.find((r) => r.id === o.base) || list[0];
48
+ if (b) tries.push(...findByName(b.root, p));
49
+ }
50
+ for (const t of tries) { const r = locateOne({ ...o, path: t }); if (r.ok) return r; }
51
+ return first;
52
+ }
53
+
54
+ const SKIP_DIRS = new Set(['node_modules', '.git', '.next', 'dist', 'build', '.cache', 'vendor']);
55
+ /** A bare file name inside one root: its path when exactly one file has that name (a bounded walk), else []. */
56
+ function findByName(root, name, { maxDirs = 4000, maxDepth = 8 } = {}) {
57
+ const hits = [];
58
+ const queue = [[path.resolve(root), 0]];
59
+ let seen = 0;
60
+ while (queue.length && seen < maxDirs && hits.length < 2) {
61
+ const [dir, depth] = queue.shift(); seen++;
62
+ let ents; try { ents = fs.readdirSync(dir, { withFileTypes: true }); } catch { continue; }
63
+ for (const e of ents) {
64
+ if (e.isFile() && e.name === name) hits.push(path.join(dir, e.name));
65
+ else if (e.isDirectory() && depth < maxDepth && !SKIP_DIRS.has(e.name) && !e.name.startsWith('.')) queue.push([path.join(dir, e.name), depth + 1]);
66
+ }
67
+ }
68
+ return hits.length === 1 ? hits : [];
69
+ }
70
+
71
+ function locateOne({ path: raw, roots = [], base = null, home = null } = {}) {
34
72
  const p = cleanPath(raw);
35
73
  if (!p || p.length > 4096 || p.includes('\0')) return { ok: false, reason: 'bad', why: 'There is no file path to open.' };
36
74
  const list = roots.filter((r) => r && r.id && r.root).map((r) => ({ id: r.id, root: path.resolve(r.root), real: real(r.root) || path.resolve(r.root) }));
@@ -72,4 +110,4 @@ function extraRoots({ workspaces = [], worktreesOf = () => [], sessionDirs = [],
72
110
  return out;
73
111
  }
74
112
 
75
- module.exports = { locate, cleanPath, extraRoots, extraId };
113
+ module.exports = { locate, findByName, cleanPath, extraRoots, extraId };
@@ -43,6 +43,9 @@
43
43
  * never moves the initiative. `task` is a Board task or a breakdown item; the last line wins.
44
44
  * task-milestone { task, milestone } a task flagged as a milestone (feedback batch 11 item 3): its due
45
45
  * date is the milestone's date and Done is its done. `task` is a Board task, a breakdown item or a Jira key; the last line wins.
46
+ * task-pin { task, pinned } the PM's pin on a milestone (feedback batch 13 item 4, XcalmA5Milestones):
47
+ * true draws it on the Board timeline, false hides it, null goes back to the rule (only the initiative's last milestone).
48
+ * `task` is a Board task, a breakdown item or a Jira key; the last line wins.
46
49
  * ticket-dates { ref, start, due } the PM's own start and due days for a Jira ticket (feedback batch 11
47
50
  * item 23): kept in PMOS only, never written to Jira; '' clears one. They win over Jira's dates on the timeline; the last line wins.
48
51
  * Nothing is deleted. A line that is not an object with a known kind is skipped.
@@ -165,7 +168,7 @@ function foundOf(f) {
165
168
  const sources = Array.isArray(f.sources) ? f.sources.filter((x) => x && typeof x.ref === 'string').slice(0, 8).map((x) => ({ label: String(x.label || ''), ref: x.ref })) : [];
166
169
  return { why: typeof f.why === 'string' ? f.why : '', sources, match: typeof f.match === 'string' && f.match ? f.match : null, scan: typeof f.scan === 'string' ? f.scan : null, run: typeof f.run === 'string' ? f.run : null };
167
170
  }
168
- const KINDS = new Set(['board', 'workflow', 'move', 'assign', 'ask', 'ask-accept', 'ask-decline', 'ask-more', 'ini-workflow', 'task', 'task-update', 'task-remove', 'task-restore', 'ticket-note', 'ini-epics', 'ini-archive', 'ini-notdup', 'ini-wf', 'ini-end', 'stage-judge', 'ini-auto', 'task-section', 'task-milestone', 'ticket-dates',
171
+ const KINDS = new Set(['board', 'workflow', 'move', 'assign', 'ask', 'ask-accept', 'ask-decline', 'ask-more', 'ini-workflow', 'task', 'task-update', 'task-remove', 'task-restore', 'ticket-note', 'ini-epics', 'ini-archive', 'ini-notdup', 'ini-wf', 'ini-end', 'stage-judge', 'ini-auto', 'task-section', 'task-milestone', 'task-pin', 'ticket-dates',
169
172
  // split or merge initiatives (feedback batch 11 item 14): a Jira ticket moved to another initiative, the split and merge records with their Undo, Claude's suggestion dismissed
170
173
  'ticket-move', 'ini-split', 'ini-merge', 'ini-sm-undo', 'ini-suggest']);
171
174
  // A task's state is its only stage (Wawan, 2026-10-25): the same five every workflow ends in. An old 'In review' reads as In progress (taskState).
@@ -198,6 +201,7 @@ function fold(events) {
198
201
  const tasks = new Map(); // task id → { id, board, initiative, title, epic, owner, state, start, due, at, by, history }
199
202
  const sections = new Map(); // task id → the stage key its breakdown section is ('' = Not in a stage); the last task-section line wins
200
203
  const milestones = new Map(); // task id (or Jira key) → true | false: the PM's milestone flag; the last task-milestone line wins
204
+ const pins = new Map(); // task id (or Jira key) → true | false: the PM's pin on a milestone; a null line takes it out (the rule again)
201
205
  const removed = new Map(); // task id → the task a task-remove took out, so a task-restore (Delete's Undo) puts it back
202
206
  const ticketNotes = new Map(); // key(board, Jira key) → the PM's notes on that ticket (the last ticket-note line wins)
203
207
  const ticketDates = new Map(); // key(board, Jira key) → { start, due } the PM keeps in PMOS for that ticket (the last ticket-dates line wins)
@@ -291,6 +295,8 @@ function fold(events) {
291
295
  sections.set(e.task, e.section);
292
296
  } else if (e.kind === 'task-milestone' && typeof e.task === 'string' && e.task && typeof e.milestone === 'boolean') {
293
297
  milestones.set(e.task, e.milestone);
298
+ } else if (e.kind === 'task-pin' && typeof e.task === 'string' && e.task && (typeof e.pinned === 'boolean' || e.pinned === null)) {
299
+ if (e.pinned === null) pins.delete(e.task); else pins.set(e.task, e.pinned);
294
300
  } else if (e.kind === 'ticket-dates' && b && typeof e.ref === 'string' && JIRA_KEY_RE.test(e.ref)) {
295
301
  const d = (v) => (typeof v === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(v) ? v : '');
296
302
  const v = { start: d(e.start), due: d(e.due) };
@@ -349,7 +355,7 @@ function fold(events) {
349
355
  suggestNo.set(e.id, { kind: e.of === 'merge' ? 'merge' : 'split', fp: e.fp, at: e.at || null });
350
356
  }
351
357
  }
352
- return { boards, moves, assigns, asks, stages, iniWorkflows, tasks, sections, milestones, ticketNotes, ticketDates, epics, archives, notDup, iniWf, ends, judged, autoOver, ticketMoves, smOps, smUndone, suggestNo, events: list };
358
+ return { boards, moves, assigns, asks, stages, iniWorkflows, tasks, sections, milestones, pins, ticketNotes, ticketDates, epics, archives, notDup, iniWf, ends, judged, autoOver, ticketMoves, smOps, smUndone, suggestNo, events: list };
353
359
  }
354
360
 
355
361
  /** The stages an initiative runs on a board: its own workflow when one is recorded, else the board's. */
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+ /* idle-close — is a session idle and safe to close? (batch 13 item 7, canvas XcsA1Pill)
3
+ *
4
+ * Idle: the session is live, its last turn ended, nothing runs and nothing waits on the PM, for IDLE_MS. Safe: closing it loses nothing.
5
+ * Its folder has no uncommitted change and no commit that is on no remote, and it has no open goal step. A session the workspace started
6
+ * itself is never proposed: the automatic sweep in server.js ends those.
7
+ *
8
+ * The folder is read with git in the background (refresh), never on the 2-second session list: check() reads only the cache. A folder
9
+ * that git could not read is not safe, and the line says so. A folder that is not a repository holds no work to lose.
10
+ */
11
+ const { execFile } = require('child_process');
12
+
13
+ const IDLE_MS = 30 * 60 * 1000;
14
+ const TTL_MS = 60 * 1000;
15
+ const cache = new Map(); // cwd → { at, v: { repo, dirty, ahead } | { error } }
16
+ const pending = new Set();
17
+
18
+ const plural = (n, one, many) => n + ' ' + (n === 1 ? one : many);
19
+ const mins = (ms) => { const m = Math.round(ms / 60000); return m < 60 ? m + ' min' : Math.round(m / 60) + ' h'; };
20
+
21
+ function git(cwd, args) {
22
+ return new Promise((resolve) => {
23
+ execFile('git', args, { cwd, timeout: 5000, maxBuffer: 1 << 20, env: { ...process.env, GIT_OPTIONAL_LOCKS: '0' } }, (err, out) => resolve(err ? { err } : { out: String(out || '') }));
24
+ });
25
+ }
26
+ /** Reads one folder: { repo:false } | { repo:true, dirty, ahead } | { error }. */
27
+ async function readFolder(cwd) {
28
+ const st = await git(cwd, ['status', '--porcelain=v1']);
29
+ if (st.err) return /not a git repository/i.test(String(st.err.message || '')) ? { repo: false } : { error: true };
30
+ const dirty = st.out.split('\n').filter((l) => l.trim()).length;
31
+ // commits on no remote: a branch never pushed counts all of its own commits
32
+ const ah = await git(cwd, ['rev-list', '--count', 'HEAD', '--not', '--remotes']);
33
+ const ahead = ah.err ? (/unknown revision|ambiguous argument 'HEAD'/i.test(String(ah.err.message || '')) ? 0 : null) : Number(ah.out.trim()) || 0;
34
+ return ahead == null ? { error: true } : { repo: true, dirty, ahead };
35
+ }
36
+ /** Starts a background read of each folder whose cached answer is older than TTL_MS. */
37
+ function refresh(cwds, now = Date.now(), read = readFolder) {
38
+ for (const cwd of new Set((cwds || []).filter(Boolean))) {
39
+ const c = cache.get(cwd);
40
+ if ((c && now - c.at < TTL_MS) || pending.has(cwd)) continue;
41
+ pending.add(cwd);
42
+ Promise.resolve(read(cwd)).catch(() => ({ error: true })).then((v) => { cache.set(cwd, { at: Date.now(), v }); pending.delete(cwd); });
43
+ }
44
+ }
45
+ const folderOf = (cwd) => { const c = cache.get(cwd); return c ? c.v : null; };
46
+
47
+ /** x: { live, automatic, shown, quietMs, folder (folderOf), goalOpen }. → null (not idle, or not ours to propose) | { safe, say }. */
48
+ function check(x) {
49
+ if (!x || !x.live || x.automatic || x.shown !== 'quiet' || !(x.quietMs >= IDLE_MS)) return null;
50
+ const idle = 'Idle ' + mins(x.quietMs);
51
+ const f = x.folder;
52
+ if (x.goalOpen) return { safe: false, say: idle + ' · a goal step is open' };
53
+ if (!f) return null; // not read yet: no word until git has answered
54
+ if (f.error) return { safe: false, say: idle + ' · its folder could not be read' };
55
+ if (f.repo && f.dirty) return { safe: false, say: idle + ' · ' + plural(f.dirty, 'file', 'files') + ' not committed' };
56
+ if (f.repo && f.ahead) return { safe: false, say: idle + ' · ' + plural(f.ahead, 'commit', 'commits') + ' not pushed' };
57
+ return { safe: true, say: idle + '. Safe to close: ' + (f.repo ? 'pushed, ' : '') + 'nothing waits on you' };
58
+ }
59
+
60
+ module.exports = { IDLE_MS, TTL_MS, check, refresh, folderOf, readFolder, _cache: cache };