create-pmos 0.635.0 → 0.637.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/bin/create-pmos.js +15 -0
- package/package.json +27 -33
- package/payload/KIT-VERSION +2 -2
- package/payload/README.md +37 -113
- package/payload/design-system/README.md +45 -0
- package/payload/design-system/brand/README.md +46 -0
- package/payload/design-system/brand/tokens.css +4 -0
- package/payload/design-system/brand/tokens.json +191 -0
- package/payload/design-system/charts/README.md +75 -0
- package/payload/design-system/charts/components/Bar/README.md +48 -0
- package/payload/design-system/charts/components/Bar/preview.html +11 -0
- package/payload/design-system/charts/components/BarGoal/README.md +45 -0
- package/payload/design-system/charts/components/BarGoal/preview.html +11 -0
- package/payload/design-system/charts/components/Controls/README.md +12 -0
- package/payload/design-system/charts/components/Controls/preview.html +11 -0
- package/payload/design-system/charts/components/DateRanges/README.md +61 -0
- package/payload/design-system/charts/components/DateRanges/preview.html +11 -0
- package/payload/design-system/charts/components/Flow/README.md +50 -0
- package/payload/design-system/charts/components/Flow/preview.html +11 -0
- package/payload/design-system/charts/components/HorizontalBar/README.md +43 -0
- package/payload/design-system/charts/components/HorizontalBar/preview.html +11 -0
- package/payload/design-system/charts/components/InBlock/README.md +10 -0
- package/payload/design-system/charts/components/InBlock/preview.html +11 -0
- package/payload/design-system/charts/components/Labels/README.md +13 -0
- package/payload/design-system/charts/components/Labels/preview.html +11 -0
- package/payload/design-system/charts/components/Line/README.md +114 -0
- package/payload/design-system/charts/components/Line/preview.html +11 -0
- package/payload/design-system/charts/components/Marks/README.md +12 -0
- package/payload/design-system/charts/components/Marks/preview.html +11 -0
- package/payload/design-system/charts/components/Media/README.md +20 -0
- package/payload/design-system/charts/components/Media/preview.html +11 -0
- package/payload/design-system/charts/components/Meter/README.md +32 -0
- package/payload/design-system/charts/components/Meter/preview.html +11 -0
- package/payload/design-system/charts/components/OnPage/README.md +12 -0
- package/payload/design-system/charts/components/OnPage/preview.html +11 -0
- package/payload/design-system/charts/components/OnSlide/README.md +11 -0
- package/payload/design-system/charts/components/OnSlide/preview.html +11 -0
- package/payload/design-system/charts/components/Roles/README.md +21 -0
- package/payload/design-system/charts/components/Roles/preview.html +11 -0
- package/payload/design-system/charts/components/Sparkline/README.md +43 -0
- package/payload/design-system/charts/components/Sparkline/preview.html +11 -0
- package/payload/design-system/charts/components/StackedBar/README.md +60 -0
- package/payload/design-system/charts/components/StackedBar/preview.html +11 -0
- package/payload/design-system/charts/components/Swimlane/README.md +81 -0
- package/payload/design-system/charts/components/Swimlane/preview.html +11 -0
- package/payload/design-system/charts/components/Timeline/README.md +50 -0
- package/payload/design-system/charts/components/Timeline/preview.html +11 -0
- package/payload/design-system/charts/components/bundle.css +116 -0
- package/payload/design-system/charts/components/bundle.js +225 -0
- package/payload/design-system/charts/interaction.md +38 -0
- package/payload/design-system/charts/spec.md +30 -0
- package/payload/design-system/charts/tokens.css +4 -0
- package/payload/design-system/charts/tokens.json +248 -0
- package/payload/design-system/documents/README.md +79 -0
- package/payload/design-system/documents/components/Asks/README.md +7 -0
- package/payload/design-system/documents/components/Asks/preview.html +11 -0
- package/payload/design-system/documents/components/Brief/README.md +19 -0
- package/payload/design-system/documents/components/Brief/preview.html +11 -0
- package/payload/design-system/documents/components/Callout/README.md +16 -0
- package/payload/design-system/documents/components/Callout/preview.html +11 -0
- package/payload/design-system/documents/components/Changes/README.md +7 -0
- package/payload/design-system/documents/components/Changes/preview.html +11 -0
- package/payload/design-system/documents/components/Checklist/README.md +7 -0
- package/payload/design-system/documents/components/Checklist/preview.html +11 -0
- package/payload/design-system/documents/components/Contents/README.md +7 -0
- package/payload/design-system/documents/components/Contents/preview.html +11 -0
- package/payload/design-system/documents/components/Decision/README.md +10 -0
- package/payload/design-system/documents/components/Decision/preview.html +11 -0
- package/payload/design-system/documents/components/Email/README.md +13 -0
- package/payload/design-system/documents/components/Email/preview.html +12 -0
- package/payload/design-system/documents/components/Figure/README.md +11 -0
- package/payload/design-system/documents/components/Figure/preview.html +11 -0
- package/payload/design-system/documents/components/Headings/README.md +10 -0
- package/payload/design-system/documents/components/Headings/preview.html +11 -0
- package/payload/design-system/documents/components/LongRead/README.md +7 -0
- package/payload/design-system/documents/components/LongRead/preview.html +11 -0
- package/payload/design-system/documents/components/Marks/README.md +10 -0
- package/payload/design-system/documents/components/Marks/preview.html +11 -0
- package/payload/design-system/documents/components/MeetingNotes/README.md +17 -0
- package/payload/design-system/documents/components/MeetingNotes/preview.html +11 -0
- package/payload/design-system/documents/components/MetaStrip/README.md +7 -0
- package/payload/design-system/documents/components/MetaStrip/preview.html +11 -0
- package/payload/design-system/documents/components/Notification/README.md +12 -0
- package/payload/design-system/documents/components/Notification/preview.html +12 -0
- package/payload/design-system/documents/components/OnePager/README.md +7 -0
- package/payload/design-system/documents/components/OnePager/preview.html +11 -0
- package/payload/design-system/documents/components/PRD/README.md +22 -0
- package/payload/design-system/documents/components/PRD/preview.html +11 -0
- package/payload/design-system/documents/components/Page/README.md +14 -0
- package/payload/design-system/documents/components/Page/preview.html +11 -0
- package/payload/design-system/documents/components/Quote/README.md +7 -0
- package/payload/design-system/documents/components/Quote/preview.html +11 -0
- package/payload/design-system/documents/components/Reading/README.md +11 -0
- package/payload/design-system/documents/components/Reading/preview.html +11 -0
- package/payload/design-system/documents/components/Report/README.md +18 -0
- package/payload/design-system/documents/components/Report/preview.html +11 -0
- package/payload/design-system/documents/components/SamplePRD/README.md +7 -0
- package/payload/design-system/documents/components/SamplePRD/preview.html +11 -0
- package/payload/design-system/documents/components/SampleWeeklyUpdate/README.md +7 -0
- package/payload/design-system/documents/components/SampleWeeklyUpdate/preview.html +11 -0
- package/payload/design-system/documents/components/SharedLink/README.md +11 -0
- package/payload/design-system/documents/components/SharedLink/preview.html +11 -0
- package/payload/design-system/documents/components/SlackPost/README.md +12 -0
- package/payload/design-system/documents/components/SlackPost/preview.html +13 -0
- package/payload/design-system/documents/components/Summary/README.md +11 -0
- package/payload/design-system/documents/components/Summary/preview.html +11 -0
- package/payload/design-system/documents/components/Table/README.md +12 -0
- package/payload/design-system/documents/components/Table/preview.html +11 -0
- package/payload/design-system/documents/components/Text/README.md +12 -0
- package/payload/design-system/documents/components/Text/preview.html +11 -0
- package/payload/design-system/documents/components/TypeScale/README.md +20 -0
- package/payload/design-system/documents/components/TypeScale/preview.html +11 -0
- package/payload/design-system/documents/components/WeeklyUpdate/README.md +19 -0
- package/payload/design-system/documents/components/WeeklyUpdate/preview.html +11 -0
- package/payload/design-system/documents/components/bundle.css +152 -0
- package/payload/design-system/documents/components/bundle.js +36 -0
- package/payload/design-system/documents/messages.md +25 -0
- package/payload/design-system/documents/print.md +20 -0
- package/payload/design-system/documents/tokens.css +4 -0
- package/payload/design-system/documents/tokens.json +221 -0
- package/payload/design-system/slides/README.md +84 -0
- package/payload/design-system/slides/built-pmos.md +45 -0
- package/payload/design-system/slides/components/Answer/README.md +11 -0
- package/payload/design-system/slides/components/Answer/preview.html +8 -0
- package/payload/design-system/slides/components/AppendixLayout/README.md +9 -0
- package/payload/design-system/slides/components/AppendixLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Asks/README.md +11 -0
- package/payload/design-system/slides/components/Asks/preview.html +8 -0
- package/payload/design-system/slides/components/BigNumber/README.md +12 -0
- package/payload/design-system/slides/components/BigNumber/preview.html +8 -0
- package/payload/design-system/slides/components/Callout/README.md +10 -0
- package/payload/design-system/slides/components/Callout/preview.html +8 -0
- package/payload/design-system/slides/components/Chart/README.md +15 -0
- package/payload/design-system/slides/components/Chart/preview.html +8 -0
- package/payload/design-system/slides/components/Checklist/README.md +11 -0
- package/payload/design-system/slides/components/Checklist/preview.html +8 -0
- package/payload/design-system/slides/components/Compare/README.md +11 -0
- package/payload/design-system/slides/components/Compare/preview.html +8 -0
- package/payload/design-system/slides/components/DecideDeck/README.md +15 -0
- package/payload/design-system/slides/components/DecideDeck/preview.html +13 -0
- package/payload/design-system/slides/components/Diagram/README.md +12 -0
- package/payload/design-system/slides/components/Diagram/preview.html +8 -0
- package/payload/design-system/slides/components/Evidence/README.md +11 -0
- package/payload/design-system/slides/components/Evidence/preview.html +8 -0
- package/payload/design-system/slides/components/Flow/README.md +11 -0
- package/payload/design-system/slides/components/Flow/preview.html +8 -0
- package/payload/design-system/slides/components/Footer/README.md +11 -0
- package/payload/design-system/slides/components/Footer/preview.html +8 -0
- package/payload/design-system/slides/components/FullLayout/README.md +9 -0
- package/payload/design-system/slides/components/FullLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Grid/README.md +12 -0
- package/payload/design-system/slides/components/Grid/preview.html +8 -0
- package/payload/design-system/slides/components/HalvesLayout/README.md +9 -0
- package/payload/design-system/slides/components/HalvesLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Headline/README.md +11 -0
- package/payload/design-system/slides/components/Headline/preview.html +8 -0
- package/payload/design-system/slides/components/Icon/README.md +11 -0
- package/payload/design-system/slides/components/Icon/preview.html +8 -0
- package/payload/design-system/slides/components/ImageFrame/README.md +11 -0
- package/payload/design-system/slides/components/ImageFrame/preview.html +16 -0
- package/payload/design-system/slides/components/ImageLayout/README.md +9 -0
- package/payload/design-system/slides/components/ImageLayout/preview.html +18 -0
- package/payload/design-system/slides/components/LearnDeck/README.md +15 -0
- package/payload/design-system/slides/components/LearnDeck/preview.html +13 -0
- package/payload/design-system/slides/components/LineChart/README.md +11 -0
- package/payload/design-system/slides/components/LineChart/preview.html +13 -0
- package/payload/design-system/slides/components/List/README.md +11 -0
- package/payload/design-system/slides/components/List/preview.html +8 -0
- package/payload/design-system/slides/components/Log/README.md +11 -0
- package/payload/design-system/slides/components/Log/preview.html +8 -0
- package/payload/design-system/slides/components/Mark/README.md +10 -0
- package/payload/design-system/slides/components/Mark/preview.html +8 -0
- package/payload/design-system/slides/components/NumberRow/README.md +10 -0
- package/payload/design-system/slides/components/NumberRow/preview.html +8 -0
- package/payload/design-system/slides/components/Numbers/README.md +11 -0
- package/payload/design-system/slides/components/Numbers/preview.html +8 -0
- package/payload/design-system/slides/components/Plan/README.md +11 -0
- package/payload/design-system/slides/components/Plan/preview.html +8 -0
- package/payload/design-system/slides/components/Quote/README.md +10 -0
- package/payload/design-system/slides/components/Quote/preview.html +8 -0
- package/payload/design-system/slides/components/Risks/README.md +11 -0
- package/payload/design-system/slides/components/Risks/preview.html +8 -0
- package/payload/design-system/slides/components/SampleDeck/README.md +10 -0
- package/payload/design-system/slides/components/SampleDeck/preview.html +27 -0
- package/payload/design-system/slides/components/SectionLayout/README.md +9 -0
- package/payload/design-system/slides/components/SectionLayout/preview.html +10 -0
- package/payload/design-system/slides/components/SourceLine/README.md +11 -0
- package/payload/design-system/slides/components/SourceLine/preview.html +8 -0
- package/payload/design-system/slides/components/SplitLayout/README.md +9 -0
- package/payload/design-system/slides/components/SplitLayout/preview.html +8 -0
- package/payload/design-system/slides/components/StackAndMeter/README.md +11 -0
- package/payload/design-system/slides/components/StackAndMeter/preview.html +8 -0
- package/payload/design-system/slides/components/StartDeck/README.md +15 -0
- package/payload/design-system/slides/components/StartDeck/preview.html +13 -0
- package/payload/design-system/slides/components/StatementLayout/README.md +9 -0
- package/payload/design-system/slides/components/StatementLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Status/README.md +11 -0
- package/payload/design-system/slides/components/Status/preview.html +8 -0
- package/payload/design-system/slides/components/Table/README.md +12 -0
- package/payload/design-system/slides/components/Table/preview.html +10 -0
- package/payload/design-system/slides/components/TimelineStrip/README.md +11 -0
- package/payload/design-system/slides/components/TimelineStrip/preview.html +9 -0
- package/payload/design-system/slides/components/TitleLayout/README.md +9 -0
- package/payload/design-system/slides/components/TitleLayout/preview.html +13 -0
- package/payload/design-system/slides/components/TypeScale/README.md +11 -0
- package/payload/design-system/slides/components/TypeScale/preview.html +8 -0
- package/payload/design-system/slides/components/UpdateDeck/README.md +15 -0
- package/payload/design-system/slides/components/UpdateDeck/preview.html +13 -0
- package/payload/design-system/slides/components/Voices/README.md +11 -0
- package/payload/design-system/slides/components/Voices/preview.html +8 -0
- package/payload/design-system/slides/components/bundle.css +167 -0
- package/payload/design-system/slides/components/bundle.js +48 -0
- package/payload/design-system/slides/research.md +71 -0
- package/payload/design-system/slides/tokens.css +4 -0
- package/payload/design-system/slides/tokens.json +172 -0
- package/payload/design-system/ui/README.md +98 -0
- package/payload/design-system/ui/components/Badge/README.md +16 -0
- package/payload/design-system/ui/components/Badge/preview.html +8 -0
- package/payload/design-system/ui/components/Button/README.md +20 -0
- package/payload/design-system/ui/components/Button/preview.html +8 -0
- package/payload/design-system/ui/components/Calendar/README.md +14 -0
- package/payload/design-system/ui/components/Calendar/preview.html +11 -0
- package/payload/design-system/ui/components/Chart/README.md +24 -0
- package/payload/design-system/ui/components/Chart/preview.html +50 -0
- package/payload/design-system/ui/components/Conversation/README.md +14 -0
- package/payload/design-system/ui/components/Conversation/preview.html +8 -0
- package/payload/design-system/ui/components/Detail/README.md +17 -0
- package/payload/design-system/ui/components/Detail/preview.html +8 -0
- package/payload/design-system/ui/components/Document/README.md +15 -0
- package/payload/design-system/ui/components/Document/preview.html +8 -0
- package/payload/design-system/ui/components/Event/README.md +13 -0
- package/payload/design-system/ui/components/Event/preview.html +8 -0
- package/payload/design-system/ui/components/Field/README.md +13 -0
- package/payload/design-system/ui/components/Field/preview.html +8 -0
- package/payload/design-system/ui/components/Icon/README.md +12 -0
- package/payload/design-system/ui/components/Icon/preview.html +8 -0
- package/payload/design-system/ui/components/Input/README.md +17 -0
- package/payload/design-system/ui/components/Input/preview.html +8 -0
- package/payload/design-system/ui/components/List/README.md +21 -0
- package/payload/design-system/ui/components/List/preview.html +15 -0
- package/payload/design-system/ui/components/ListRow/README.md +19 -0
- package/payload/design-system/ui/components/ListRow/preview.html +8 -0
- package/payload/design-system/ui/components/MainItem/README.md +13 -0
- package/payload/design-system/ui/components/MainItem/preview.html +8 -0
- package/payload/design-system/ui/components/MainSide/README.md +12 -0
- package/payload/design-system/ui/components/MainSide/preview.html +8 -0
- package/payload/design-system/ui/components/Menu/README.md +13 -0
- package/payload/design-system/ui/components/Menu/preview.html +8 -0
- package/payload/design-system/ui/components/Navigation/README.md +14 -0
- package/payload/design-system/ui/components/Navigation/preview.html +8 -0
- package/payload/design-system/ui/components/Number/README.md +17 -0
- package/payload/design-system/ui/components/Number/preview.html +8 -0
- package/payload/design-system/ui/components/Settings/README.md +13 -0
- package/payload/design-system/ui/components/Settings/preview.html +10 -0
- package/payload/design-system/ui/components/SingleColumn/README.md +12 -0
- package/payload/design-system/ui/components/SingleColumn/preview.html +8 -0
- package/payload/design-system/ui/components/Stage/README.md +13 -0
- package/payload/design-system/ui/components/Stage/preview.html +8 -0
- package/payload/design-system/ui/components/Suggestion/README.md +14 -0
- package/payload/design-system/ui/components/Suggestion/preview.html +10 -0
- package/payload/design-system/ui/components/Summary/README.md +19 -0
- package/payload/design-system/ui/components/Summary/preview.html +10 -0
- package/payload/design-system/ui/components/Switch/README.md +13 -0
- package/payload/design-system/ui/components/Switch/preview.html +10 -0
- package/payload/design-system/ui/components/Table/README.md +18 -0
- package/payload/design-system/ui/components/Table/preview.html +23 -0
- package/payload/design-system/ui/components/Tabs/README.md +13 -0
- package/payload/design-system/ui/components/Tabs/preview.html +11 -0
- package/payload/design-system/ui/components/Timeline/README.md +15 -0
- package/payload/design-system/ui/components/Timeline/preview.html +8 -0
- package/payload/design-system/ui/components/Toast/README.md +14 -0
- package/payload/design-system/ui/components/Toast/preview.html +8 -0
- package/payload/design-system/ui/components/TodayPage/README.md +12 -0
- package/payload/design-system/ui/components/TodayPage/preview.html +8 -0
- package/payload/design-system/ui/components/bundle.css +126 -0
- package/payload/design-system/ui/interactions.md +48 -0
- package/payload/design-system/ui/pages.md +34 -0
- package/payload/design-system/ui/tokens.css +9 -0
- package/payload/design-system/ui/tokens.json +159 -0
- 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/payload/state/log.md +1 -1
- package/workspace/changelog.json +26 -0
- package/workspace/ci-checks.sh +5 -0
- package/workspace/design-system/README.md +45 -0
- package/workspace/design-system/brand/README.md +46 -0
- package/workspace/design-system/brand/tokens.css +4 -0
- package/workspace/design-system/brand/tokens.json +191 -0
- package/workspace/design-system/charts/README.md +75 -0
- package/workspace/design-system/charts/components/Bar/README.md +48 -0
- package/workspace/design-system/charts/components/Bar/preview.html +11 -0
- package/workspace/design-system/charts/components/BarGoal/README.md +45 -0
- package/workspace/design-system/charts/components/BarGoal/preview.html +11 -0
- package/workspace/design-system/charts/components/Controls/README.md +12 -0
- package/workspace/design-system/charts/components/Controls/preview.html +11 -0
- package/workspace/design-system/charts/components/DateRanges/README.md +61 -0
- package/workspace/design-system/charts/components/DateRanges/preview.html +11 -0
- package/workspace/design-system/charts/components/Flow/README.md +50 -0
- package/workspace/design-system/charts/components/Flow/preview.html +11 -0
- package/workspace/design-system/charts/components/HorizontalBar/README.md +43 -0
- package/workspace/design-system/charts/components/HorizontalBar/preview.html +11 -0
- package/workspace/design-system/charts/components/InBlock/README.md +10 -0
- package/workspace/design-system/charts/components/InBlock/preview.html +11 -0
- package/workspace/design-system/charts/components/Labels/README.md +13 -0
- package/workspace/design-system/charts/components/Labels/preview.html +11 -0
- package/workspace/design-system/charts/components/Line/README.md +114 -0
- package/workspace/design-system/charts/components/Line/preview.html +11 -0
- package/workspace/design-system/charts/components/Marks/README.md +12 -0
- package/workspace/design-system/charts/components/Marks/preview.html +11 -0
- package/workspace/design-system/charts/components/Media/README.md +20 -0
- package/workspace/design-system/charts/components/Media/preview.html +11 -0
- package/workspace/design-system/charts/components/Meter/README.md +32 -0
- package/workspace/design-system/charts/components/Meter/preview.html +11 -0
- package/workspace/design-system/charts/components/OnPage/README.md +12 -0
- package/workspace/design-system/charts/components/OnPage/preview.html +11 -0
- package/workspace/design-system/charts/components/OnSlide/README.md +11 -0
- package/workspace/design-system/charts/components/OnSlide/preview.html +11 -0
- package/workspace/design-system/charts/components/Roles/README.md +21 -0
- package/workspace/design-system/charts/components/Roles/preview.html +11 -0
- package/workspace/design-system/charts/components/Sparkline/README.md +43 -0
- package/workspace/design-system/charts/components/Sparkline/preview.html +11 -0
- package/workspace/design-system/charts/components/StackedBar/README.md +60 -0
- package/workspace/design-system/charts/components/StackedBar/preview.html +11 -0
- package/workspace/design-system/charts/components/Swimlane/README.md +81 -0
- package/workspace/design-system/charts/components/Swimlane/preview.html +11 -0
- package/workspace/design-system/charts/components/Timeline/README.md +50 -0
- package/workspace/design-system/charts/components/Timeline/preview.html +11 -0
- package/workspace/design-system/charts/components/bundle.css +116 -0
- package/workspace/design-system/charts/components/bundle.js +225 -0
- package/workspace/design-system/charts/interaction.md +38 -0
- package/workspace/design-system/charts/spec.md +30 -0
- package/workspace/design-system/charts/tokens.css +4 -0
- package/workspace/design-system/charts/tokens.json +248 -0
- package/workspace/design-system/documents/README.md +79 -0
- package/workspace/design-system/documents/components/Asks/README.md +7 -0
- package/workspace/design-system/documents/components/Asks/preview.html +11 -0
- package/workspace/design-system/documents/components/Brief/README.md +19 -0
- package/workspace/design-system/documents/components/Brief/preview.html +11 -0
- package/workspace/design-system/documents/components/Callout/README.md +16 -0
- package/workspace/design-system/documents/components/Callout/preview.html +11 -0
- package/workspace/design-system/documents/components/Changes/README.md +7 -0
- package/workspace/design-system/documents/components/Changes/preview.html +11 -0
- package/workspace/design-system/documents/components/Checklist/README.md +7 -0
- package/workspace/design-system/documents/components/Checklist/preview.html +11 -0
- package/workspace/design-system/documents/components/Contents/README.md +7 -0
- package/workspace/design-system/documents/components/Contents/preview.html +11 -0
- package/workspace/design-system/documents/components/Decision/README.md +10 -0
- package/workspace/design-system/documents/components/Decision/preview.html +11 -0
- package/workspace/design-system/documents/components/Email/README.md +13 -0
- package/workspace/design-system/documents/components/Email/preview.html +12 -0
- package/workspace/design-system/documents/components/Figure/README.md +11 -0
- package/workspace/design-system/documents/components/Figure/preview.html +11 -0
- package/workspace/design-system/documents/components/Headings/README.md +10 -0
- package/workspace/design-system/documents/components/Headings/preview.html +11 -0
- package/workspace/design-system/documents/components/LongRead/README.md +7 -0
- package/workspace/design-system/documents/components/LongRead/preview.html +11 -0
- package/workspace/design-system/documents/components/Marks/README.md +10 -0
- package/workspace/design-system/documents/components/Marks/preview.html +11 -0
- package/workspace/design-system/documents/components/MeetingNotes/README.md +17 -0
- package/workspace/design-system/documents/components/MeetingNotes/preview.html +11 -0
- package/workspace/design-system/documents/components/MetaStrip/README.md +7 -0
- package/workspace/design-system/documents/components/MetaStrip/preview.html +11 -0
- package/workspace/design-system/documents/components/Notification/README.md +12 -0
- package/workspace/design-system/documents/components/Notification/preview.html +12 -0
- package/workspace/design-system/documents/components/OnePager/README.md +7 -0
- package/workspace/design-system/documents/components/OnePager/preview.html +11 -0
- package/workspace/design-system/documents/components/PRD/README.md +22 -0
- package/workspace/design-system/documents/components/PRD/preview.html +11 -0
- package/workspace/design-system/documents/components/Page/README.md +14 -0
- package/workspace/design-system/documents/components/Page/preview.html +11 -0
- package/workspace/design-system/documents/components/Quote/README.md +7 -0
- package/workspace/design-system/documents/components/Quote/preview.html +11 -0
- package/workspace/design-system/documents/components/Reading/README.md +11 -0
- package/workspace/design-system/documents/components/Reading/preview.html +11 -0
- package/workspace/design-system/documents/components/Report/README.md +18 -0
- package/workspace/design-system/documents/components/Report/preview.html +11 -0
- package/workspace/design-system/documents/components/SamplePRD/README.md +7 -0
- package/workspace/design-system/documents/components/SamplePRD/preview.html +11 -0
- package/workspace/design-system/documents/components/SampleWeeklyUpdate/README.md +7 -0
- package/workspace/design-system/documents/components/SampleWeeklyUpdate/preview.html +11 -0
- package/workspace/design-system/documents/components/SharedLink/README.md +11 -0
- package/workspace/design-system/documents/components/SharedLink/preview.html +11 -0
- package/workspace/design-system/documents/components/SlackPost/README.md +12 -0
- package/workspace/design-system/documents/components/SlackPost/preview.html +13 -0
- package/workspace/design-system/documents/components/Summary/README.md +11 -0
- package/workspace/design-system/documents/components/Summary/preview.html +11 -0
- package/workspace/design-system/documents/components/Table/README.md +12 -0
- package/workspace/design-system/documents/components/Table/preview.html +11 -0
- package/workspace/design-system/documents/components/Text/README.md +12 -0
- package/workspace/design-system/documents/components/Text/preview.html +11 -0
- package/workspace/design-system/documents/components/TypeScale/README.md +20 -0
- package/workspace/design-system/documents/components/TypeScale/preview.html +11 -0
- package/workspace/design-system/documents/components/WeeklyUpdate/README.md +19 -0
- package/workspace/design-system/documents/components/WeeklyUpdate/preview.html +11 -0
- package/workspace/design-system/documents/components/bundle.css +152 -0
- package/workspace/design-system/documents/components/bundle.js +36 -0
- package/workspace/design-system/documents/messages.md +25 -0
- package/workspace/design-system/documents/print.md +20 -0
- package/workspace/design-system/documents/tokens.css +4 -0
- package/workspace/design-system/documents/tokens.json +221 -0
- package/workspace/design-system/slides/README.md +84 -0
- package/workspace/design-system/slides/built-pmos.md +45 -0
- package/workspace/design-system/slides/components/Answer/README.md +11 -0
- package/workspace/design-system/slides/components/Answer/preview.html +8 -0
- package/workspace/design-system/slides/components/AppendixLayout/README.md +9 -0
- package/workspace/design-system/slides/components/AppendixLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Asks/README.md +11 -0
- package/workspace/design-system/slides/components/Asks/preview.html +8 -0
- package/workspace/design-system/slides/components/BigNumber/README.md +12 -0
- package/workspace/design-system/slides/components/BigNumber/preview.html +8 -0
- package/workspace/design-system/slides/components/Callout/README.md +10 -0
- package/workspace/design-system/slides/components/Callout/preview.html +8 -0
- package/workspace/design-system/slides/components/Chart/README.md +15 -0
- package/workspace/design-system/slides/components/Chart/preview.html +8 -0
- package/workspace/design-system/slides/components/Checklist/README.md +11 -0
- package/workspace/design-system/slides/components/Checklist/preview.html +8 -0
- package/workspace/design-system/slides/components/Compare/README.md +11 -0
- package/workspace/design-system/slides/components/Compare/preview.html +8 -0
- package/workspace/design-system/slides/components/DecideDeck/README.md +15 -0
- package/workspace/design-system/slides/components/DecideDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/Diagram/README.md +12 -0
- package/workspace/design-system/slides/components/Diagram/preview.html +8 -0
- package/workspace/design-system/slides/components/Evidence/README.md +11 -0
- package/workspace/design-system/slides/components/Evidence/preview.html +8 -0
- package/workspace/design-system/slides/components/Flow/README.md +11 -0
- package/workspace/design-system/slides/components/Flow/preview.html +8 -0
- package/workspace/design-system/slides/components/Footer/README.md +11 -0
- package/workspace/design-system/slides/components/Footer/preview.html +8 -0
- package/workspace/design-system/slides/components/FullLayout/README.md +9 -0
- package/workspace/design-system/slides/components/FullLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Grid/README.md +12 -0
- package/workspace/design-system/slides/components/Grid/preview.html +8 -0
- package/workspace/design-system/slides/components/HalvesLayout/README.md +9 -0
- package/workspace/design-system/slides/components/HalvesLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Headline/README.md +11 -0
- package/workspace/design-system/slides/components/Headline/preview.html +8 -0
- package/workspace/design-system/slides/components/Icon/README.md +11 -0
- package/workspace/design-system/slides/components/Icon/preview.html +8 -0
- package/workspace/design-system/slides/components/ImageFrame/README.md +11 -0
- package/workspace/design-system/slides/components/ImageFrame/preview.html +16 -0
- package/workspace/design-system/slides/components/ImageLayout/README.md +9 -0
- package/workspace/design-system/slides/components/ImageLayout/preview.html +18 -0
- package/workspace/design-system/slides/components/LearnDeck/README.md +15 -0
- package/workspace/design-system/slides/components/LearnDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/LineChart/README.md +11 -0
- package/workspace/design-system/slides/components/LineChart/preview.html +13 -0
- package/workspace/design-system/slides/components/List/README.md +11 -0
- package/workspace/design-system/slides/components/List/preview.html +8 -0
- package/workspace/design-system/slides/components/Log/README.md +11 -0
- package/workspace/design-system/slides/components/Log/preview.html +8 -0
- package/workspace/design-system/slides/components/Mark/README.md +10 -0
- package/workspace/design-system/slides/components/Mark/preview.html +8 -0
- package/workspace/design-system/slides/components/NumberRow/README.md +10 -0
- package/workspace/design-system/slides/components/NumberRow/preview.html +8 -0
- package/workspace/design-system/slides/components/Numbers/README.md +11 -0
- package/workspace/design-system/slides/components/Numbers/preview.html +8 -0
- package/workspace/design-system/slides/components/Plan/README.md +11 -0
- package/workspace/design-system/slides/components/Plan/preview.html +8 -0
- package/workspace/design-system/slides/components/Quote/README.md +10 -0
- package/workspace/design-system/slides/components/Quote/preview.html +8 -0
- package/workspace/design-system/slides/components/Risks/README.md +11 -0
- package/workspace/design-system/slides/components/Risks/preview.html +8 -0
- package/workspace/design-system/slides/components/SampleDeck/README.md +10 -0
- package/workspace/design-system/slides/components/SampleDeck/preview.html +27 -0
- package/workspace/design-system/slides/components/SectionLayout/README.md +9 -0
- package/workspace/design-system/slides/components/SectionLayout/preview.html +10 -0
- package/workspace/design-system/slides/components/SourceLine/README.md +11 -0
- package/workspace/design-system/slides/components/SourceLine/preview.html +8 -0
- package/workspace/design-system/slides/components/SplitLayout/README.md +9 -0
- package/workspace/design-system/slides/components/SplitLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/StackAndMeter/README.md +11 -0
- package/workspace/design-system/slides/components/StackAndMeter/preview.html +8 -0
- package/workspace/design-system/slides/components/StartDeck/README.md +15 -0
- package/workspace/design-system/slides/components/StartDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/StatementLayout/README.md +9 -0
- package/workspace/design-system/slides/components/StatementLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Status/README.md +11 -0
- package/workspace/design-system/slides/components/Status/preview.html +8 -0
- package/workspace/design-system/slides/components/Table/README.md +12 -0
- package/workspace/design-system/slides/components/Table/preview.html +10 -0
- package/workspace/design-system/slides/components/TimelineStrip/README.md +11 -0
- package/workspace/design-system/slides/components/TimelineStrip/preview.html +9 -0
- package/workspace/design-system/slides/components/TitleLayout/README.md +9 -0
- package/workspace/design-system/slides/components/TitleLayout/preview.html +13 -0
- package/workspace/design-system/slides/components/TypeScale/README.md +11 -0
- package/workspace/design-system/slides/components/TypeScale/preview.html +8 -0
- package/workspace/design-system/slides/components/UpdateDeck/README.md +15 -0
- package/workspace/design-system/slides/components/UpdateDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/Voices/README.md +11 -0
- package/workspace/design-system/slides/components/Voices/preview.html +8 -0
- package/workspace/design-system/slides/components/bundle.css +167 -0
- package/workspace/design-system/slides/components/bundle.js +48 -0
- package/workspace/design-system/slides/research.md +71 -0
- package/workspace/design-system/slides/tokens.css +4 -0
- package/workspace/design-system/slides/tokens.json +172 -0
- package/workspace/design-system/ui/README.md +98 -0
- package/workspace/design-system/ui/components/Badge/README.md +16 -0
- package/workspace/design-system/ui/components/Badge/preview.html +8 -0
- package/workspace/design-system/ui/components/Button/README.md +20 -0
- package/workspace/design-system/ui/components/Button/preview.html +8 -0
- package/workspace/design-system/ui/components/Calendar/README.md +14 -0
- package/workspace/design-system/ui/components/Calendar/preview.html +11 -0
- package/workspace/design-system/ui/components/Chart/README.md +24 -0
- package/workspace/design-system/ui/components/Chart/preview.html +50 -0
- package/workspace/design-system/ui/components/Conversation/README.md +14 -0
- package/workspace/design-system/ui/components/Conversation/preview.html +8 -0
- package/workspace/design-system/ui/components/Detail/README.md +17 -0
- package/workspace/design-system/ui/components/Detail/preview.html +8 -0
- package/workspace/design-system/ui/components/Document/README.md +15 -0
- package/workspace/design-system/ui/components/Document/preview.html +8 -0
- package/workspace/design-system/ui/components/Event/README.md +13 -0
- package/workspace/design-system/ui/components/Event/preview.html +8 -0
- package/workspace/design-system/ui/components/Field/README.md +13 -0
- package/workspace/design-system/ui/components/Field/preview.html +8 -0
- package/workspace/design-system/ui/components/Icon/README.md +12 -0
- package/workspace/design-system/ui/components/Icon/preview.html +8 -0
- package/workspace/design-system/ui/components/Input/README.md +17 -0
- package/workspace/design-system/ui/components/Input/preview.html +8 -0
- package/workspace/design-system/ui/components/List/README.md +21 -0
- package/workspace/design-system/ui/components/List/preview.html +15 -0
- package/workspace/design-system/ui/components/ListRow/README.md +19 -0
- package/workspace/design-system/ui/components/ListRow/preview.html +8 -0
- package/workspace/design-system/ui/components/MainItem/README.md +13 -0
- package/workspace/design-system/ui/components/MainItem/preview.html +8 -0
- package/workspace/design-system/ui/components/MainSide/README.md +12 -0
- package/workspace/design-system/ui/components/MainSide/preview.html +8 -0
- package/workspace/design-system/ui/components/Menu/README.md +13 -0
- package/workspace/design-system/ui/components/Menu/preview.html +8 -0
- package/workspace/design-system/ui/components/Navigation/README.md +14 -0
- package/workspace/design-system/ui/components/Navigation/preview.html +8 -0
- package/workspace/design-system/ui/components/Number/README.md +17 -0
- package/workspace/design-system/ui/components/Number/preview.html +8 -0
- package/workspace/design-system/ui/components/Settings/README.md +13 -0
- package/workspace/design-system/ui/components/Settings/preview.html +10 -0
- package/workspace/design-system/ui/components/SingleColumn/README.md +12 -0
- package/workspace/design-system/ui/components/SingleColumn/preview.html +8 -0
- package/workspace/design-system/ui/components/Stage/README.md +13 -0
- package/workspace/design-system/ui/components/Stage/preview.html +8 -0
- package/workspace/design-system/ui/components/Suggestion/README.md +14 -0
- package/workspace/design-system/ui/components/Suggestion/preview.html +10 -0
- package/workspace/design-system/ui/components/Summary/README.md +19 -0
- package/workspace/design-system/ui/components/Summary/preview.html +10 -0
- package/workspace/design-system/ui/components/Switch/README.md +13 -0
- package/workspace/design-system/ui/components/Switch/preview.html +10 -0
- package/workspace/design-system/ui/components/Table/README.md +18 -0
- package/workspace/design-system/ui/components/Table/preview.html +23 -0
- package/workspace/design-system/ui/components/Tabs/README.md +13 -0
- package/workspace/design-system/ui/components/Tabs/preview.html +11 -0
- package/workspace/design-system/ui/components/Timeline/README.md +15 -0
- package/workspace/design-system/ui/components/Timeline/preview.html +8 -0
- package/workspace/design-system/ui/components/Toast/README.md +14 -0
- package/workspace/design-system/ui/components/Toast/preview.html +8 -0
- package/workspace/design-system/ui/components/TodayPage/README.md +12 -0
- package/workspace/design-system/ui/components/TodayPage/preview.html +8 -0
- package/workspace/design-system/ui/components/bundle.css +126 -0
- package/workspace/design-system/ui/interactions.md +48 -0
- package/workspace/design-system/ui/pages.md +34 -0
- package/workspace/design-system/ui/tokens.css +9 -0
- package/workspace/design-system/ui/tokens.json +159 -0
- package/workspace/guide/agent-capabilities.md +2 -2
- package/workspace/guide/layout.md +14 -0
- package/workspace/guide/reports.md +1 -1
- package/workspace/lib/core-docs.js +9 -0
- package/workspace/lib/design-system.js +304 -0
- package/workspace/lib/idle-lab-engine.js +5 -1
- package/workspace/lib/live-round.js +15 -1
- package/workspace/lib/routes-report-design.js +9 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/brand.css +8 -0
- package/workspace/public/pm/charts.css +130 -0
- package/workspace/public/pm/documents.css +170 -0
- package/workspace/public/pm/komorebi.css +142 -0
- package/workspace/public/pm/komorebi.js +240 -0
- package/workspace/public/pm/slides.css +169 -0
- package/workspace/run-tests.js +6 -1
- package/workspace/test-lists/design-system.json +9 -0
- package/workspace/test-lists/komorebi.json +9 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "PMOS Komorebi",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"meta": {
|
|
5
|
+
"source": "PMOS Komorebi v5, the UI system. Imports colour, fonts and motion from brand/ and chart roles from charts/; defines type sizes, space, corners, shadow and its parts."
|
|
6
|
+
},
|
|
7
|
+
"type": {
|
|
8
|
+
"groups": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Workspace",
|
|
11
|
+
"family": "sans",
|
|
12
|
+
"styles": [
|
|
13
|
+
{
|
|
14
|
+
"name": "title",
|
|
15
|
+
"fontSize": "26px",
|
|
16
|
+
"lineHeight": "32px",
|
|
17
|
+
"fontWeight": 600,
|
|
18
|
+
"usage": "One per page: the greeting or page name.",
|
|
19
|
+
"sample": "Good evening"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "heading",
|
|
23
|
+
"fontSize": "18px",
|
|
24
|
+
"lineHeight": "24px",
|
|
25
|
+
"fontWeight": 600,
|
|
26
|
+
"usage": "Block headings: Today’s log, This sprint.",
|
|
27
|
+
"sample": "Today’s log"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "body",
|
|
31
|
+
"fontSize": "15px",
|
|
32
|
+
"lineHeight": "24px",
|
|
33
|
+
"fontWeight": 400,
|
|
34
|
+
"usage": "Row titles (600), sentences, PMOS summaries.",
|
|
35
|
+
"sample": "Start with Admin APIs for Commerce and Jarvis."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "small",
|
|
39
|
+
"fontSize": "13px",
|
|
40
|
+
"lineHeight": "20px",
|
|
41
|
+
"fontWeight": 400,
|
|
42
|
+
"usage": "Why lines, meta, badges, tabs, counts. Never smaller.",
|
|
43
|
+
"sample": "for Tender new CIAM · 21 days late"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "code",
|
|
47
|
+
"family": "mono",
|
|
48
|
+
"fontSize": "13px",
|
|
49
|
+
"lineHeight": "20px",
|
|
50
|
+
"fontWeight": 400,
|
|
51
|
+
"usage": "Keys, ids, token names.",
|
|
52
|
+
"sample": "CONHUB-233"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"spacing": {
|
|
59
|
+
"tokens": [
|
|
60
|
+
{
|
|
61
|
+
"name": "space-4",
|
|
62
|
+
"value": "4px",
|
|
63
|
+
"usage": "Icon to text inside a chip."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "space-8",
|
|
67
|
+
"value": "8px",
|
|
68
|
+
"usage": "Between buttons; row inner gap."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "space-12",
|
|
72
|
+
"value": "12px",
|
|
73
|
+
"usage": "Between panels; row padding."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "space-16",
|
|
77
|
+
"value": "16px",
|
|
78
|
+
"usage": "Between blocks; card padding."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "space-24",
|
|
82
|
+
"value": "24px",
|
|
83
|
+
"usage": "Between groups inside a panel."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "space-32",
|
|
87
|
+
"value": "32px",
|
|
88
|
+
"usage": "Panel padding."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "space-48",
|
|
92
|
+
"value": "48px",
|
|
93
|
+
"usage": "Space above a page title on wide screens."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "space-64",
|
|
97
|
+
"value": "64px",
|
|
98
|
+
"usage": "Empty-state breathing room."
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"radius": {
|
|
103
|
+
"tokens": [
|
|
104
|
+
{
|
|
105
|
+
"name": "radius-sm",
|
|
106
|
+
"value": "6px",
|
|
107
|
+
"usage": "Buttons, badges, tab items."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "radius-md",
|
|
111
|
+
"value": "10px",
|
|
112
|
+
"usage": "Rows, inputs, events, toasts."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "radius-card",
|
|
116
|
+
"value": "16px",
|
|
117
|
+
"usage": "Blocks and cards."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "radius-panel",
|
|
121
|
+
"value": "24px",
|
|
122
|
+
"usage": "Panels and the rail."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "radius-pill",
|
|
126
|
+
"value": "999px",
|
|
127
|
+
"usage": "Counts, chips, switches."
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"shadow": {
|
|
132
|
+
"tokens": [
|
|
133
|
+
{
|
|
134
|
+
"name": "raise",
|
|
135
|
+
"value": {
|
|
136
|
+
"light": "0 1px 2px rgba(42,46,53,.08), 0 4px 14px -6px rgba(70,80,50,.14)",
|
|
137
|
+
"dark": "0 1px 2px rgba(0,0,0,.4), 0 4px 14px -6px rgba(169,196,140,.08)"
|
|
138
|
+
},
|
|
139
|
+
"usage": "Now: cards, panels, the chosen tab, the next event."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "lift",
|
|
143
|
+
"value": {
|
|
144
|
+
"light": "0 10px 28px -10px rgba(42,46,53,.28)",
|
|
145
|
+
"dark": "0 10px 28px -10px rgba(0,0,0,.6)"
|
|
146
|
+
},
|
|
147
|
+
"usage": "Things over things: toast, sheet, menu, slide-over."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "glow",
|
|
151
|
+
"value": {
|
|
152
|
+
"light": "0 0 0 2px #5F7A45, 0 0 0 5px rgba(95,122,69,.10)",
|
|
153
|
+
"dark": "0 0 0 2px #A9C48C, 0 0 0 5px rgba(169,196,140,.12)"
|
|
154
|
+
},
|
|
155
|
+
"usage": "The leaf ring: keyboard focus and the one thing that is now."
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -100,7 +100,7 @@ A loop never sends a message, moves a Jira ticket, merges into a product reposit
|
|
|
100
100
|
| [Expected outcomes](claude-proposes.md) | Once a day. At most 3 drafts a day for each product. | The PRD's success criteria, or the anchored key result | "Expected outcome" under the initiative's ✦. Today when a check is due. | `pmos ai off outcomes`. `PMOS_OUTCOMES=off` |
|
|
101
101
|
| [Metric drafts](claude-proposes.md) | A product with no North Star, the first 14 days of a quarter, a program with no goal, and an initiative that gets a PRD | The last 8 weeks of real readings | The page of that product, program or initiative | `PMOS_METRIC_DRAFT=off` |
|
|
102
102
|
| [Horizon scan](intelligence-okr-goals.md) | Daily by default, at most once a day, the first time you step away after 09:00. Scan now: at most 3 a day. | The public web for your kept watch list, and your repository | Report documents and proposals you approve | Cadence: Off. `PMOS_SCAN=off` |
|
|
103
|
-
| Live round | When you press ✓ on its ✦ ask, or run `pmos lab round`. Three runs at once. No time limit: you see its progress and can stop it. | The initiative's name, the product's Intent and
|
|
103
|
+
| Live round | When you press ✓ on its ✦ ask, or run `pmos lab round`. Three runs at once. No time limit: you see its progress and can stop it. | The initiative's name, the product's Intent and the PMOS design system; a feedback round also reads the last version. | "PMOS prototyped it" or "PMOS improved it" under the initiative's ✦, each version as soon as it renders. | ✕ on its ✦ ask; Undo after ✓ |
|
|
104
104
|
| Idle lab | When you have not used PMOS for 30 minutes. One run at a time, at most 3 results each time you step away. | Prototypes: the initiative's record, PRD and earlier specimens. Scans: public pages only, read through `pmos lab page`, and no repository. | "PMOS prototyped it", "PMOS improved it" and "PMOS scanned for it" under the initiative's ✦. A finding that fits no initiative: Intelligence › Lab. | `pmos ai off idle-lab` |
|
|
105
105
|
| [Prototypes before a meeting](notes.md) | A meeting starts in the next 60 minutes, and its title, agenda or material names an initiative in Triage or Discover with no prototype. One round at a time. An initiative is tried once a week at most, and never while a round waits for you. | The initiative, as a live round reads it | Round 1 under the initiative's ✦ at minute 0. In the meeting, ✓ on **✦ Show it?** starts the next round. | `pmos ai off meeting-prewarm` |
|
|
106
106
|
| [What you might have missed](claude-proposes.md) | Each Monday, for the week before. It uses no model. | Records only: tasks, dates, initiatives and Jira status | One ✦ in Home's chat, at most 3 items | `pmos ai off drift`. `PMOS_DRIFT=off` |
|
|
@@ -213,7 +213,7 @@ What each part does:
|
|
|
213
213
|
|
|
214
214
|
- **The design sprint runs silently.** Each run works out from the initiative who the prototype is for and the one question it must answer, uses real content from the initiative, and keeps the fidelity just real enough to react to. None of that is a step you fill in. PMOS only recommends, as one ✦ on the canvas, for example "Try it on 3 to 5 people it is for", with a test link to copy.
|
|
215
215
|
- **What the run makes.** One run makes the prototype first, then the flow (`flow.json`), who does what (`lanes.json`) and the sliders (`tweaks.json`). PMOS reads the page copy (`copy.json`) from the prototype's own words, so the two always agree. A file that is not well formed is "not made" with the reason, and the prototype still shows.
|
|
216
|
-
- **What the run gets.** Each run gets the
|
|
216
|
+
- **What the run gets.** Each run gets the PMOS design system for pages and its charts: the stylesheet and the rules (one lit thing per screen, icon-only buttons, the assistant is PMOS). A product that keeps its own copy of the system in `pmos/design-system/` gets its own brand (colours and fonts) with PMOS's parts. A product with only its own token sheet keeps its own look. The idle lab's prototypes get the same. The run also gets the initiative's name and the product's Intent, the files you attached, the element you pointed at, and your copy edits and sliders. A prototype must fit a 390 px phone screen.
|
|
217
217
|
- **What the run can do.** A run can only read and write in its own folder in the runtime folder, plus the last version and the files you attached. It has no shell, no web and nothing that sends. Nothing goes into a product repository before your ✓.
|
|
218
218
|
- **What the canvas can do.** The prototype runs in a sandboxed frame. It cannot reach PMOS. The canvas talks to it only to show a screen, point, pin, play and apply your edits.
|
|
219
219
|
- **Your prototype rules.** After a version renders and before it opens, PMOS checks it against your prototype rules: no device or browser frame, no instructions on the screen, no sample copy, and each rule PMOS learns from your corrections. When a correction is true of every prototype (for example "no device frame"), the chat adds it as a rule (`pmos lab rule add`). PMOS keeps a rule only when it fails a bad example and passes a good one, so a button such as "See the week" is never read as an instruction. A change to one version ("make the alert orange") or a taste ("calmer") never becomes a rule. A version that breaks a rule gets one fix run, given only the lines that broke it. You see only the fixed version, with one quiet line: "PMOS fixed 3 things before showing you this." When the fix does not reach a rule, the version still opens and the line names the rule it breaks. When nothing was fixed, there is no line. Settings › PMOS › Prototype rules lists the rules with Undo.
|
|
@@ -9,6 +9,20 @@ timestamp: 2026-11-19
|
|
|
9
9
|
|
|
10
10
|
PMOS has four places: **Today**, **Work**, **Goals** and **Events**. PMOS opens on Today. Until each place gets its new page, Work is the Board and Goals is Intelligence. Home is still there for the links that open it, and a phone uses Home as Today. **Library** and **Routine** join the navigation when their pages ship. The console and its three columns were removed; their old addresses open Today.
|
|
11
11
|
|
|
12
|
+
## The design system
|
|
13
|
+
|
|
14
|
+
PMOS has one family of design systems, agreed on 2026-11-20. Its files are in the workspace's `design-system/` folder, in five parts:
|
|
15
|
+
|
|
16
|
+
- `brand/`: the colours, the fonts, the motion, the voice and the icons. Every other part uses them.
|
|
17
|
+
- `charts/`: every chart and diagram, on screen, on a slide and on paper.
|
|
18
|
+
- `ui/`: the pages and the prototypes (Komorebi).
|
|
19
|
+
- `documents/`: PRDs, briefs, reports, notes and shared links, and the rules for emails, Slack messages and notifications.
|
|
20
|
+
- `slides/`: decks.
|
|
21
|
+
|
|
22
|
+
Read `design-system/README.md` first. Each kit gets a copy in `pmos/design-system/`, so another project or session can use it. A product may change `brand/` only. The other parts follow it.
|
|
23
|
+
|
|
24
|
+
The workspace has one stylesheet for each part: `pm/brand.css`, `pm/charts.css`, `pm/komorebi.css`, `pm/documents.css` and `pm/slides.css`. They are made from those files. A page moves to the UI system when it loads brand, charts and komorebi, in that order, and puts `pm-ds` on its root. Pages move one at a time, and a page that has not moved looks as it did.
|
|
25
|
+
|
|
12
26
|
## The navigation
|
|
13
27
|
|
|
14
28
|
On a computer, one thin panel at the left edge of every page holds the places. It is the same on every page. Press a place to go there.
|
|
@@ -158,7 +158,7 @@ See also **Design how a report looks**, **Set up a report by asking** and **Read
|
|
|
158
158
|
|
|
159
159
|
A report that you set up has a design. The design tells PMOS how the report looks: a slide deck or a document, the order of the slides, and the style. PMOS reads the design each cycle and draws the draft to match it. The data comes from the cycle. The design does not change the data.
|
|
160
160
|
|
|
161
|
-
There is no template to fill in. You describe the report, add samples, and refine it until it looks right.
|
|
161
|
+
There is no template to fill in. You describe the report, add samples, and refine it until it looks right. When your words and samples say nothing about the look, PMOS draws a deck in the PMOS slide design and a document in the PMOS document design, with the PMOS chart design for charts.
|
|
162
162
|
|
|
163
163
|
### Open the design studio
|
|
164
164
|
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
*/
|
|
34
34
|
const fs = require('fs');
|
|
35
35
|
const path = require('path');
|
|
36
|
+
const DS = require('./design-system.js');
|
|
36
37
|
|
|
37
38
|
const LEDGER = 'core-docs.jsonl';
|
|
38
39
|
const DIR = 'core-docs';
|
|
@@ -567,6 +568,12 @@ function stageGuide(entry) {
|
|
|
567
568
|
};
|
|
568
569
|
}
|
|
569
570
|
|
|
571
|
+
/** A core document is a PMOS document: the content rules of PMOS Documents (design-system-family), as rule 6. */
|
|
572
|
+
function docRules() {
|
|
573
|
+
const r = DS.writingRulesFor('prd');
|
|
574
|
+
return r ? ['6. ' + r.split('\n')[0], ...r.split('\n').slice(1).map((l) => ' ' + l)] : [];
|
|
575
|
+
}
|
|
576
|
+
|
|
570
577
|
/** The prompt of one core-doc run (origin core-doc:<scope>:<key>). */
|
|
571
578
|
function runPrompt(entry, scope, { today, label } = {}) {
|
|
572
579
|
const g = (entry.stage ? stageGuide(entry) : GUIDE[entry.key]) || { sources: ['The repository files that hold this level\'s work'], sections: ['A short summary'] };
|
|
@@ -594,6 +601,7 @@ function runPrompt(entry, scope, { today, label } = {}) {
|
|
|
594
601
|
' PMOS_DOC',
|
|
595
602
|
' If it refuses, read the reason, fix the document and write it once more. Do not work around a refusal.',
|
|
596
603
|
'5. Short sentences. Dates in full (14 October 2026). No more than about 600 words.',
|
|
604
|
+
...docRules(),
|
|
597
605
|
'',
|
|
598
606
|
'Finish with one line: the path the command printed, or why you wrote nothing.',
|
|
599
607
|
];
|
|
@@ -633,6 +641,7 @@ function batchPrompt(entries, scope, { today, label } = {}) {
|
|
|
633
641
|
' PMOS_DOC',
|
|
634
642
|
' If it refuses, read the reason, fix the document and write it once more. Do not work around a refusal. If the command cannot run at all, stop and say why.',
|
|
635
643
|
'5. Short sentences. Dates in full (14 October 2026). No more than about 600 words per document.',
|
|
644
|
+
...docRules(),
|
|
636
645
|
'',
|
|
637
646
|
'Finish with one line per document: the path the command printed, or why you wrote nothing.',
|
|
638
647
|
);
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* design-system.js — the PMOS design system family as code can use it (agreed 2026-11-20, /mnt/project-files/design-system/family-build-spec.md).
|
|
3
|
+
*
|
|
4
|
+
* workspace/design-system/ holds five systems and an index README:
|
|
5
|
+
* brand/ the root: colour (light, dark, ground by time of day), font families, motion speeds and easing, voice and icon rules
|
|
6
|
+
* charts/ PMOS Charts, under brand: the ONLY owner of the chart-* and diagram-* tokens
|
|
7
|
+
* ui/ PMOS Komorebi, the UI system: type sizes, space, corners, shadow and its 29 parts
|
|
8
|
+
* documents/ PMOS Documents: reading and print sizes, the page, the parts, and the Messages rules (messages.md)
|
|
9
|
+
* slides/ PMOS Slides: the 1920 x 1080 grid, slide sizes, blocks and deck patterns
|
|
10
|
+
* ui, documents and slides import brand and charts by name and never redefine their tokens. A token two systems share (a shadow, a corner)
|
|
11
|
+
* has one value. design-system.test.js holds all of this (the drift check).
|
|
12
|
+
*
|
|
13
|
+
* Each system's tokens.json makes its tokens.css (written here, never by hand). Each system makes one workspace sheet in public/pm:
|
|
14
|
+
* brand.css, charts.css, komorebi.css (ui), documents.css, slides.css — loaded in that order: brand, charts, then the system's own.
|
|
15
|
+
* Every rule is scoped: ui to .pm-ds, documents to .pmd-ds, slides to .pms-ds; brand and charts to any of them (charts alone: .pmc-ds).
|
|
16
|
+
* A page changes only when it puts the class on its root. The fonts are the self-hosted ones in public/vendor (no network).
|
|
17
|
+
*
|
|
18
|
+
* The family travels three ways, all from that one folder:
|
|
19
|
+
* 1. the workspace: the generated sheets (above), and public/pm/komorebi.js for the UI parts' behaviour.
|
|
20
|
+
* 2. PMOS makers: designSystemFor(kind, roots) gives a maker the sheets and rules for what it makes (prototype runs, the report design job,
|
|
21
|
+
* the document drafts). A product's own brand/ wins; the other four come from PMOS's own copy when there is one.
|
|
22
|
+
* 3. other projects: kit/build-kit.sh copies the folder into every kit as pmos/design-system/ (create-pmos KERNEL).
|
|
23
|
+
*
|
|
24
|
+
* node lib/design-system.js --write regenerate every tokens.css and public/pm sheet after a change to the system's files
|
|
25
|
+
* node lib/design-system.js --check exit 1 when any of them is not what the files make (design-system.test.js)
|
|
26
|
+
*
|
|
27
|
+
* KINDS · SYSTEMS · designSystemFor(kind, roots) → { kind, systems, css, rules, from, ds } · writingRulesFor(kind, roots) → the content rules only
|
|
28
|
+
* dirOf(roots) → the first <root>/{pmos/design-system, design-system, workspace/design-system} that holds the family, or null
|
|
29
|
+
* scaffoldOf(roots) → designSystemFor('prototype') from roots only (no fallback to PMOS's own): empty when no root has the family
|
|
30
|
+
* tokensCss(json, name) PURE · sheetOf(system, tokensBySystem, bundle) PURE · generated(dir) → { path: text }
|
|
31
|
+
*/
|
|
32
|
+
const fs = require('fs');
|
|
33
|
+
const path = require('path');
|
|
34
|
+
|
|
35
|
+
const OWN = path.join(__dirname, '..', 'design-system');
|
|
36
|
+
const PUBLIC = path.join(__dirname, '..', 'public', 'pm');
|
|
37
|
+
const SHEET = path.join(PUBLIC, 'komorebi.css');
|
|
38
|
+
const SCOPE = '.pm-ds';
|
|
39
|
+
// where a product keeps the family: the kit's copy first (create-pmos), then a folder of its own, then PMOS-self's
|
|
40
|
+
const PLACES = ['pmos/design-system', 'design-system', 'workspace/design-system'];
|
|
41
|
+
const FAMILY = ':is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds)';
|
|
42
|
+
|
|
43
|
+
/** The five systems. scope: the class a page puts on its root. roots: the selectors the system's own files use for the page root (they
|
|
44
|
+
* become the scope). sheet: the generated file in public/pm. use: how a maker wraps its output in the unscoped sheet. */
|
|
45
|
+
const SYSTEMS = Object.freeze({
|
|
46
|
+
brand: { title: 'PMOS Brand', sheet: 'brand.css', scope: FAMILY, roots: [] },
|
|
47
|
+
charts: { title: 'PMOS Charts', sheet: 'charts.css', scope: FAMILY, roots: ['.pcx'], use: 'Charts and diagrams are PMOS Charts parts (pc-* classes; the roles chart-read, chart-done, chart-plan, chart-risk, chart-rest).' },
|
|
48
|
+
ui: { title: 'PMOS Komorebi', sheet: 'komorebi.css', scope: SCOPE, roots: ['.pm'], types: true, use: 'Wrap the page in <body class="pm">.' },
|
|
49
|
+
documents: { title: 'PMOS Documents', sheet: 'documents.css', scope: '.pmd-ds', roots: ['.pd'], use: 'Wrap the document in <body class="pd"> and put it in <article class="pd-doc">; build only from the pd-* classes.' },
|
|
50
|
+
slides: { title: 'PMOS Slides', sheet: 'slides.css', scope: '.pms-ds', roots: ['.ps'], use: 'Wrap the deck in <body class="ps">; one <section class="ps-slide"> per slide, drawn at 1920 x 1080 and scaled; build only from the ps-* classes.' },
|
|
51
|
+
});
|
|
52
|
+
const ORDER = ['brand', 'charts', 'ui', 'documents', 'slides'];
|
|
53
|
+
|
|
54
|
+
/** What each kind of output is made with (family-build-spec.md, "Picking the system"). messages: the rules only, no sheet. */
|
|
55
|
+
const KINDS = Object.freeze({
|
|
56
|
+
page: ['ui', 'charts'], prototype: ['ui', 'charts'],
|
|
57
|
+
prd: ['documents', 'charts'], brief: ['documents', 'charts'], report: ['documents', 'charts'], notes: ['documents', 'charts'], 'shared-link': ['documents', 'charts'],
|
|
58
|
+
deck: ['slides', 'charts'],
|
|
59
|
+
email: ['messages'], slack: ['messages'], notification: ['messages'],
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** The short form of ui/README.md that a prototype run follows (the whole README is in the folder for a person or a long session). */
|
|
63
|
+
const RULES = [
|
|
64
|
+
'Follow the PMOS design system (the stylesheet below is its tokens and parts):',
|
|
65
|
+
'- Wrap the page in <body class="pm">. Build only from the system\'s classes: pm-btn, pm-input, pm-badge, pm-li, pm-tabs, pm-field, pm-toast, pm-menu, pm-sug, pm-ev, pm-block, pm-table, pm-num, pm-cal, pm-chart, pm-leg, pm-tip, pm-pick, pm-doc, pm-stage, pm-rail; type classes title, heading, body, small. If you need something no part does, add an option to a part, not a new look.',
|
|
66
|
+
'- Colour has a meaning: blue is PMOS speaking (the ✦, the primary button, links); leaf is now (one lit thing per screen, never text); alert is late, at risk or blocked (never decoration). Text is ink, why lines and meta are muted. No other colours.',
|
|
67
|
+
'- Type: four sizes only (title 26, heading 18, body 15, small 13), bold only on what you act on. Nothing under 13 px.',
|
|
68
|
+
'- Every row says why it is there. Now is raised; later is flat and folded. Zero is silence: no "0 items", no empty charts.',
|
|
69
|
+
'- Buttons are icon-only (a 24 px stroke icon) with aria-label and a title tooltip. PMOS recommends, the person approves (Yes / No); safe actions happen at once with Undo, never "are you sure". No emoji.',
|
|
70
|
+
'- Write from the person\'s side in short plain sentences ("Moved to tomorrow", not "Success"). The assistant is PMOS, never "Claude".',
|
|
71
|
+
].join('\n');
|
|
72
|
+
|
|
73
|
+
const read = (f) => { try { return fs.readFileSync(f, 'utf8'); } catch { return ''; } };
|
|
74
|
+
const readJson = (f) => { try { return JSON.parse(fs.readFileSync(f, 'utf8')); } catch { return null; } };
|
|
75
|
+
const stripComments = (css) => String(css || '').replace(/\/\*[\s\S]*?\*\//g, '').replace(/\n\s*\n+/g, '\n').trim();
|
|
76
|
+
// the systems load their fonts from Google Fonts; a maker is sandboxed with no network and the workspace self-hosts them
|
|
77
|
+
const dropImports = (css) => String(css || '').replace(/^@import\b.*$\n?/gm, ''); // the whole line: a font URL can hold a ';'
|
|
78
|
+
const has = (d, sys) => !!d && fs.existsSync(path.join(d, sys, 'tokens.json'));
|
|
79
|
+
|
|
80
|
+
/** The first folder under roots that holds the family (its ui system and brand), or null. */
|
|
81
|
+
function dirOf(roots) {
|
|
82
|
+
for (const r of roots || []) {
|
|
83
|
+
if (!r) continue;
|
|
84
|
+
for (const p of PLACES) { const d = path.join(r, p); if (has(d, 'brand') && fs.existsSync(path.join(d, 'ui', 'components', 'bundle.css'))) return d; }
|
|
85
|
+
}
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
const dirsOf = (roots) => (roots || []).filter(Boolean).flatMap((r) => PLACES.map((p) => path.join(r, p))).filter((d) => has(d, 'brand') || has(d, 'ui'));
|
|
89
|
+
|
|
90
|
+
/* ── tokens ── */
|
|
91
|
+
|
|
92
|
+
const SECTIONS = ['color', 'shadow', 'spacing', 'radius', 'duration', 'easing'];
|
|
93
|
+
/** Every token a system's tokens.json defines: name → value (a string, or { light, dark }). The font families become font-sans / font-mono. */
|
|
94
|
+
function tokensOf(json) {
|
|
95
|
+
const out = new Map();
|
|
96
|
+
for (const s of SECTIONS) for (const t of ((json && json[s]) || {}).tokens || []) out.set(t.name, t.value);
|
|
97
|
+
const fam = json && json.type && json.type.families;
|
|
98
|
+
if (fam) for (const [k, v] of Object.entries(fam)) out.set('font-' + k, v);
|
|
99
|
+
return out;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// a token can name another one: "{blue}" is the brand's blue, so the chart role follows the brand in both themes
|
|
103
|
+
const valueOf = (v) => String(v).replace(/\{([a-z0-9-]+)\}/g, 'var(--$1)');
|
|
104
|
+
/** PURE. A system's tokens.json → its tokens.css: the themed tokens (light, then dark), the rest, and (ui only) the type classes. */
|
|
105
|
+
function tokensCss(json, name) {
|
|
106
|
+
const light = [], dark = [], rest = [];
|
|
107
|
+
const themed = new Set(['color', 'shadow']);
|
|
108
|
+
for (const s of SECTIONS) {
|
|
109
|
+
for (const t of ((json && json[s]) || {}).tokens || []) {
|
|
110
|
+
const v = t.value;
|
|
111
|
+
if (v && typeof v === 'object') { light.push(`--${t.name}:${valueOf(v.light)}`); dark.push(`--${t.name}:${valueOf(v.dark)}`); }
|
|
112
|
+
else (themed.has(s) ? light : rest).push(`--${t.name}:${valueOf(v)}`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const fam = json && json.type && json.type.families;
|
|
116
|
+
if (fam) for (const [k, v] of Object.entries(fam)) rest.push(`--font-${k}:${v}`);
|
|
117
|
+
const L = [`/* ${(SYSTEMS[name] || {}).title || name} tokens. GENERATED from tokens.json by lib/design-system.js: do not edit; run \`node lib/design-system.js --write\`. */`];
|
|
118
|
+
if (light.length) L.push(`:root, [data-theme="light"] {${light.join(';')}}`);
|
|
119
|
+
if (dark.length) L.push(`[data-theme="dark"] {${dark.join(';')}}`);
|
|
120
|
+
if (rest.length) L.push(`:root {${rest.join(';')}}`);
|
|
121
|
+
if ((SYSTEMS[name] || {}).types) {
|
|
122
|
+
for (const g of ((json && json.type) || {}).groups || []) {
|
|
123
|
+
for (const st of g.styles || []) L.push(`.${st.name}{font-family:var(--font-${st.family || g.family || 'sans'});font-size:${st.fontSize};line-height:${st.lineHeight};font-weight:${st.fontWeight}}`);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return L.join('\n') + '\n';
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* ── the workspace sheets ── */
|
|
130
|
+
|
|
131
|
+
/** Split CSS into top-level pieces: { sel, body } for a rule or a block at-rule, { raw } for a statement. */
|
|
132
|
+
function pieces(css) {
|
|
133
|
+
const out = [], s = stripComments(css);
|
|
134
|
+
let i = 0;
|
|
135
|
+
while (i < s.length) {
|
|
136
|
+
while (i < s.length && /\s/.test(s[i])) i++;
|
|
137
|
+
if (i >= s.length) break;
|
|
138
|
+
const brace = s.indexOf('{', i), semi = s.indexOf(';', i);
|
|
139
|
+
if (s[i] === '@' && semi !== -1 && (brace === -1 || semi < brace)) { out.push({ raw: s.slice(i, semi + 1).trim() }); i = semi + 1; continue; }
|
|
140
|
+
if (brace === -1) break;
|
|
141
|
+
let depth = 0, j = brace;
|
|
142
|
+
for (; j < s.length; j++) { if (s[j] === '{') depth++; else if (s[j] === '}' && --depth === 0) break; }
|
|
143
|
+
out.push({ sel: s.slice(i, brace).trim(), body: s.slice(brace + 1, j).trim() });
|
|
144
|
+
i = j + 1;
|
|
145
|
+
}
|
|
146
|
+
return out;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const darkOf = (S) => `${S}.dark, html.dark ${S}, :root[data-theme="dark"] ${S}`;
|
|
150
|
+
/** One selector, scoped: the page-root selectors become the scope, everything else sits inside it. */
|
|
151
|
+
function scopeSel(sel, sys) {
|
|
152
|
+
const S = sys.scope, t = sel.trim();
|
|
153
|
+
if (t === ':root' || t === '[data-theme="light"]' || t === 'body') return S;
|
|
154
|
+
if (t === '[data-theme="dark"]') return darkOf(S);
|
|
155
|
+
if (t === '*') return `${S} *`;
|
|
156
|
+
for (const r of sys.roots || []) {
|
|
157
|
+
if (t === r) return S;
|
|
158
|
+
const m = new RegExp('^' + r.replace(/\./g, '\\.') + '(?=[\\s:>+~\\[.])').exec(t);
|
|
159
|
+
if (m) return S + t.slice(r.length);
|
|
160
|
+
}
|
|
161
|
+
return `${S} ${t}`;
|
|
162
|
+
}
|
|
163
|
+
const splitSel = (s) => s.split(/,\s*(?![^()]*\))/); // a comma inside :is(…) or :not(…) does not split
|
|
164
|
+
const scopeList = (sels, sys) => [...new Set(splitSel(splitSel(sels).map((x) => scopeSel(x, sys)).join(', ')))].join(', ');
|
|
165
|
+
|
|
166
|
+
const FONTS = [
|
|
167
|
+
"@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/plus-jakarta-sans-var.woff2) format('woff2'); }",
|
|
168
|
+
"@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/ibm-plex-mono-400.woff2) format('woff2'); }",
|
|
169
|
+
];
|
|
170
|
+
// the workspace's own glue for pm/komorebi.js (the UI parts' behaviour): the tooltip is placed through two custom properties, never an
|
|
171
|
+
// inline style, and a legend swatch takes its colour from its role class
|
|
172
|
+
const UI_GLUE = [
|
|
173
|
+
`${SCOPE} .pm-tip{left:var(--pm-tip-x,0);top:var(--pm-tip-y,0)}`,
|
|
174
|
+
...['blue', 'leaf', 'muted', 'alert'].map((r) => `${SCOPE} .pm-leg i.pm-sw-${r}{background:var(--${r})}`),
|
|
175
|
+
`${SCOPE} .pm-chart-head:empty{display:none}`,
|
|
176
|
+
];
|
|
177
|
+
|
|
178
|
+
/** PURE. One system's workspace sheet from its tokens.css and components/bundle.css. */
|
|
179
|
+
function sheetOf(name, tokens, bundle) {
|
|
180
|
+
const sys = SYSTEMS[name];
|
|
181
|
+
const L = [
|
|
182
|
+
`/* ${sys.sheet}: ${sys.title}, from the PMOS design system family, for the workspace. GENERATED from workspace/design-system/${name}/ by`,
|
|
183
|
+
` * lib/design-system.js: do not edit; change the system's files and run \`node lib/design-system.js --write\`. Every rule is scoped to ${sys.scope},`,
|
|
184
|
+
' * so the sheet changes nothing until a page puts the class on its root. Load brand.css, then charts.css, then the system\'s own sheet. */',
|
|
185
|
+
];
|
|
186
|
+
if (name === 'brand') L.push(...FONTS);
|
|
187
|
+
// brand and charts sit inside another system's page: their own page-level rules (body, the preview root) are that system's job
|
|
188
|
+
const shared = sys.scope === FAMILY;
|
|
189
|
+
const pageLevel = (x) => { const t = x.trim(); return t === 'body' || t === ':root' || t === '*' || (sys.roots || []).some((r) => t === r || t === r + ' *'); };
|
|
190
|
+
const emit = (list, indent, bundled) => {
|
|
191
|
+
for (const p0 of list) {
|
|
192
|
+
let p = p0;
|
|
193
|
+
if (shared && bundled && p.sel && !/^@/.test(p.sel)) {
|
|
194
|
+
const keep = splitSel(p.sel).filter((x) => !pageLevel(x));
|
|
195
|
+
if (!keep.length) continue;
|
|
196
|
+
p = { sel: keep.join(','), body: p.body };
|
|
197
|
+
}
|
|
198
|
+
if (p.raw) continue; // @import (the network fonts): brand.css's @font-face lines stand in for it
|
|
199
|
+
if (/^@page/.test(p.sel)) continue; // print pages belong to a printed document, not to a workspace page
|
|
200
|
+
if (/^@media|^@supports/.test(p.sel)) { L.push(`${indent}${p.sel} {`); emit(pieces(p.body), indent + ' ', bundled); L.push(`${indent}}`); continue; }
|
|
201
|
+
if (/^@keyframes/.test(p.sel)) { L.push(`${indent}${p.sel}{${p.body.replace(/\s+/g, ' ')}}`); continue; }
|
|
202
|
+
// a preview wrapper's own layout (padding, a column of cards) is for the system's previews, not for a workspace page
|
|
203
|
+
if ((sys.roots || []).includes(p.sel) && /padding/.test(p.body)) continue;
|
|
204
|
+
L.push(`${indent}${scopeList(p.sel, sys)}{${p.body}}`);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
emit(pieces(dropImports(tokens)), '', false);
|
|
208
|
+
emit(pieces(dropImports(bundle)), '', true);
|
|
209
|
+
if (name === 'ui') L.push(...UI_GLUE);
|
|
210
|
+
return L.join('\n') + '\n';
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** Every file the family generates: <sys>/tokens.css in the folder, and (for PMOS's own folder) the public/pm sheets. → { abs path: text } */
|
|
214
|
+
function generated(dir = OWN, pub = PUBLIC) {
|
|
215
|
+
const out = {};
|
|
216
|
+
for (const name of ORDER) {
|
|
217
|
+
const d = path.join(dir, name);
|
|
218
|
+
const json = readJson(path.join(d, 'tokens.json'));
|
|
219
|
+
if (!json) continue;
|
|
220
|
+
const tokens = tokensCss(json, name);
|
|
221
|
+
out[path.join(d, 'tokens.css')] = tokens;
|
|
222
|
+
if (pub) out[path.join(pub, SYSTEMS[name].sheet)] = sheetOf(name, tokens, read(path.join(d, 'components', 'bundle.css')));
|
|
223
|
+
}
|
|
224
|
+
return out;
|
|
225
|
+
}
|
|
226
|
+
/** The workspace's UI sheet (public/pm/komorebi.css), as the files make it. */
|
|
227
|
+
const sheetFromDir = (dir = OWN) => generated(dir)[SHEET];
|
|
228
|
+
|
|
229
|
+
/* ── picking the system ── */
|
|
230
|
+
|
|
231
|
+
/** One ## section of a markdown file, without its heading. */
|
|
232
|
+
function sectionOf(md, heading) {
|
|
233
|
+
const lines = String(md || '').split('\n');
|
|
234
|
+
const at = lines.findIndex((l) => l.trim() === '## ' + heading);
|
|
235
|
+
if (at < 0) return '';
|
|
236
|
+
const end = lines.findIndex((l, i) => i > at && /^#{1,2} /.test(l));
|
|
237
|
+
return lines.slice(at + 1, end < 0 ? lines.length : end).join('\n').trim();
|
|
238
|
+
}
|
|
239
|
+
const bodyOf = (md) => String(md || '').replace(/^---\n[\s\S]*?\n---\n/, '').trim();
|
|
240
|
+
|
|
241
|
+
/** The rules a maker follows for one system: the content rules of its README, after how to use its classes. */
|
|
242
|
+
function rulesOf(name, dir) {
|
|
243
|
+
if (name === 'ui') return RULES;
|
|
244
|
+
if (name === 'messages') return `Follow the PMOS Messages rules (PMOS Documents):\n${bodyOf(read(path.join(dir, 'documents', 'messages.md'))).replace(/^# .*\n+/, '')}`;
|
|
245
|
+
const sys = SYSTEMS[name];
|
|
246
|
+
const rules = sectionOf(read(path.join(dir, name, 'README.md')), 'Content rules');
|
|
247
|
+
return [`Follow ${sys.title} (the stylesheet below is its tokens and parts):`, `- ${sys.use}`, rules].filter(Boolean).join('\n');
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/** The sheet a maker pastes: brand, charts, then the system's own tokens and parts, comments and the font @import removed. */
|
|
251
|
+
function cssOf(dirs, systems) {
|
|
252
|
+
return stripComments(dropImports(systems.map((s) => read(path.join(dirs[s], s, 'tokens.css')) + '\n' + read(path.join(dirs[s], s, 'components', 'bundle.css'))).join('\n')));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/** The family for one kind of output. roots: folders to look in, the product's first. A product's brand/ wins; every other system comes
|
|
256
|
+
* from the LAST root that has it (PMOS's own copy, when the caller passes it), so a product overrides brand only.
|
|
257
|
+
* opts.fallback (default true): PMOS's own folder is the last root. → { kind, systems, css, rules, from, ds } (empty css and rules when
|
|
258
|
+
* nothing has the family). */
|
|
259
|
+
function designSystemFor(kind, roots, { fallback = true } = {}) {
|
|
260
|
+
const want = KINDS[kind];
|
|
261
|
+
if (!want) throw new Error(`designSystemFor: unknown kind "${kind}" (one of ${Object.keys(KINDS).join(', ')})`);
|
|
262
|
+
const found = dirsOf(roots);
|
|
263
|
+
if (fallback && fs.existsSync(path.join(OWN, 'brand', 'tokens.json')) && !found.includes(OWN)) found.push(OWN);
|
|
264
|
+
const empty = { kind, systems: [], css: '', rules: '', from: [] };
|
|
265
|
+
if (!found.length) return empty;
|
|
266
|
+
const msg = want[0] === 'messages';
|
|
267
|
+
const systems = msg ? ['documents'] : ['brand', 'charts', ...want.filter((s) => s !== 'charts')];
|
|
268
|
+
const dirs = {};
|
|
269
|
+
for (const s of systems) dirs[s] = s === 'brand' ? found.find((d) => has(d, s)) : [...found].reverse().find((d) => has(d, s));
|
|
270
|
+
if (systems.some((s) => !dirs[s])) return empty;
|
|
271
|
+
const main = msg ? 'messages' : want[0];
|
|
272
|
+
const rules = [rulesOf(main, dirs[msg ? 'documents' : main]), ...(!msg && main !== 'charts' ? [rulesOf('charts', dirs.charts).replace(/^Follow PMOS Charts \(the stylesheet below is its tokens and parts\):/, 'Charts and diagrams follow PMOS Charts:')] : [])].join('\n');
|
|
273
|
+
if (msg) return { kind, systems: ['documents'], css: '', rules, from: [path.join(dirs.documents, 'documents', 'messages.md')], ds: dirs.documents };
|
|
274
|
+
const from = systems.flatMap((s) => [path.join(dirs[s], s, 'tokens.css'), ...(s === 'brand' ? [] : [path.join(dirs[s], s, 'components', 'bundle.css')])]);
|
|
275
|
+
return { kind, systems, css: cssOf(dirs, systems), rules, from, ds: dirs[main] };
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** The content rules alone (the system's README section), for a maker that writes markdown and so needs no sheet: a core document. */
|
|
279
|
+
function writingRulesFor(kind, roots) {
|
|
280
|
+
const want = KINDS[kind];
|
|
281
|
+
if (!want) throw new Error(`writingRulesFor: unknown kind "${kind}"`);
|
|
282
|
+
const main = want[0] === 'messages' ? 'documents' : want[0];
|
|
283
|
+
const dir = [...dirsOf(roots), OWN].find((d) => has(d, main));
|
|
284
|
+
if (!dir) return '';
|
|
285
|
+
if (want[0] === 'messages') return rulesOf('messages', dir);
|
|
286
|
+
const rules = sectionOf(read(path.join(dir, main, 'README.md')), 'Content rules');
|
|
287
|
+
return rules ? `Follow the content rules of ${SYSTEMS[main].title}:\n${rules}` : '';
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** The scaffold a prototype run gets from roots only (no fallback): { css, rules, from, ds }, empty when no root has the family. */
|
|
291
|
+
const scaffoldOf = (roots) => designSystemFor('prototype', roots, { fallback: false });
|
|
292
|
+
|
|
293
|
+
if (require.main === module) {
|
|
294
|
+
const want = generated();
|
|
295
|
+
if (process.argv.includes('--write')) {
|
|
296
|
+
for (const [f, t] of Object.entries(want)) { fs.writeFileSync(f, t); console.log('✓ wrote ' + path.relative(process.cwd(), f)); }
|
|
297
|
+
} else if (process.argv.includes('--check')) {
|
|
298
|
+
const stale = Object.entries(want).filter(([f, t]) => read(f) !== t).map(([f]) => path.relative(process.cwd(), f));
|
|
299
|
+
if (stale.length) { console.error(`✗ not what workspace/design-system/ makes: ${stale.join(', ')}. Run: node lib/design-system.js --write`); process.exit(1); }
|
|
300
|
+
console.log(`✓ ${Object.keys(want).length} generated files match workspace/design-system/`);
|
|
301
|
+
} else { console.log('usage: node lib/design-system.js --write | --check'); process.exit(2); }
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
module.exports = { OWN, PUBLIC, SHEET, SCOPE, FAMILY, PLACES, SYSTEMS, ORDER, KINDS, RULES, dirOf, tokensOf, tokensCss, pieces, sheetOf, generated, sheetFromDir, sectionOf, rulesOf, designSystemFor, writingRulesFor, scaffoldOf };
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
* create(deps) → { tick(turn), finish(run, r), active(), status(), products(now) }
|
|
45
45
|
*/
|
|
46
46
|
const fs = require('fs');
|
|
47
|
+
const DS = require('./design-system.js');
|
|
47
48
|
const path = require('path');
|
|
48
49
|
const crypto = require('crypto');
|
|
49
50
|
const LAB = require('./idle-lab.js');
|
|
@@ -228,6 +229,7 @@ function promptOf(skill, c, o = {}) {
|
|
|
228
229
|
L.push('- File only what is NEW since then, with "refreshed" saying how much is new. Nothing new: file nothing.');
|
|
229
230
|
}
|
|
230
231
|
if (c.kind.startsWith('scan')) L.push(`- Read pages ONLY with \`pmos lab page <url>\` (at most ${MAX_PAGES}). File with \`pmos lab file ${c.ini ? 'scanned' : 'scan'} --json -\`.`);
|
|
232
|
+
if (o.design && o.design.css) L.push('', o.design.rules, 'Paste this stylesheet in each specimen\'s <style> tag and add only the layout you need:', '```css', o.design.css, '```');
|
|
231
233
|
L.push('', 'File with `pmos lab file` only. Send nothing.');
|
|
232
234
|
return L.join('\n');
|
|
233
235
|
}
|
|
@@ -392,7 +394,9 @@ function create(deps) {
|
|
|
392
394
|
if (proto) fs.mkdirSync(spec, { recursive: true }); else fs.mkdirSync(pagesDir(r, run), { recursive: true });
|
|
393
395
|
} catch (e) { warn('idle lab folders', e); return { ok: false }; }
|
|
394
396
|
const day = new Date(now); const today = day.getFullYear() + '-' + String(day.getMonth() + 1).padStart(2, '0') + '-' + String(day.getDate()).padStart(2, '0');
|
|
395
|
-
|
|
397
|
+
// a prototype is drawn in the PMOS design system: the product's copy of it (pmos/design-system/), else PMOS's own (lib/design-system.js)
|
|
398
|
+
const design = proto ? DS.scaffoldOf([pr.w.root, path.join(__dirname, '..')]) : null;
|
|
399
|
+
const prompt = promptOf(skill, c, { run, today, budget, specimens: spec, specimenRoot: LAB.specimenDir(r), design });
|
|
396
400
|
const env = { PMOS_LAB_RUN: run, PMOS_LAB_KIND: c.kind, PMOS_LAB_PENDING: pendingFile(r, run), PMOS_LAB_INI: c.ini || '', PMOS_LAB_BUDGET: String(budget),
|
|
397
401
|
...(proto ? { PMOS_LAB_SPECIMENS: spec } : { PMOS_LAB_PAGES: pagesDir(r, run) }) };
|
|
398
402
|
active = { run, c, start: now, session: null, dir: pr.dir, root: pr.w.root };
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* new THREE headless runs in parallel, one specimen each (origin `live-round:<ws>:<ini>:<run>:<A|B|C>`, headless kind `live-round`:
|
|
23
23
|
* Read and Glob, and Write only in the run's own folder <runtime>/idle-lab/specimens/<round>/<key>/). Files group `prototyped`.
|
|
24
24
|
* feedback ONE run on the base specimen (it reads the earlier file). Files group `improved`, `changed` = the PM's sentence.
|
|
25
|
-
* Each run gets a per-product scaffold (scaffoldOf: the product's tokens.css and the head of its components.css
|
|
25
|
+
* Each run gets a per-product scaffold (scaffoldOf: the PMOS design system, lib/design-system.js, the product's copy first; else the product's tokens.css and the head of its components.css), the
|
|
26
26
|
* initiative's name, description and Intent, and the viewport pin (dry run finding a: 2 of 9 ran wider than the phone and were cut off).
|
|
27
27
|
* NO TIME LIMIT (Wawan 2026-11-18: "No need limit, but need a visual guidance of the progression"). The run writes progress.json
|
|
28
28
|
* ({ now, done, total }) at each step; the Viewer shows it with the time so far and a Stop press (stop()). Only a run that writes
|
|
@@ -62,6 +62,7 @@ const PR = require('./proposals.js');
|
|
|
62
62
|
const LAB = require('./idle-lab.js');
|
|
63
63
|
const E = require('./idle-lab-engine.js');
|
|
64
64
|
const RULES = require('./prototype-rules.js');
|
|
65
|
+
const DS = require('./design-system.js');
|
|
65
66
|
|
|
66
67
|
const JOB = 'live-round';
|
|
67
68
|
const ORIGIN = 'live-round';
|
|
@@ -223,6 +224,18 @@ const stripComments = (css) => String(css || '').replace(/\/\*[\s\S]*?\*\//g, ''
|
|
|
223
224
|
/** The product's token sheet and the head of its component sheet, the first folder that has them (dry run finding b: assemble from what
|
|
224
225
|
* exists). roots: folders to look in, the product's first, PMOS's own last. → { css, from: [paths] } */
|
|
225
226
|
function scaffoldOf(roots) {
|
|
227
|
+
// the PMOS design system first (Wawan 2026-11-19: "when a user create a prototype on PMOS, it also use a proper design system that is
|
|
228
|
+
// provided by the PMOS"): the product's copy of it (pmos/design-system/ from the kit), then the product's own token sheet, then PMOS's own
|
|
229
|
+
// the product's copy may change brand only: its brand/ wins, the other systems come from PMOS's own copy when the roots include it
|
|
230
|
+
const [prod, ...rest] = (roots || []).filter(Boolean);
|
|
231
|
+
if (DS.dirOf([prod])) { const own = DS.scaffoldOf([prod, ...rest]); if (own.css) return own; }
|
|
232
|
+
const theirs = tokensOf([prod]);
|
|
233
|
+
if (theirs.css) return theirs;
|
|
234
|
+
const ds = DS.scaffoldOf(rest);
|
|
235
|
+
return ds.css ? ds : tokensOf(rest);
|
|
236
|
+
}
|
|
237
|
+
/** The product's token sheet and the head of its component sheet (the scaffold before the design system). */
|
|
238
|
+
function tokensOf(roots) {
|
|
226
239
|
const rel = ['public/pm', 'workspace/public/pm', 'src/styles', 'styles', 'public/css', 'css'];
|
|
227
240
|
for (const r of roots || []) {
|
|
228
241
|
if (!r) continue;
|
|
@@ -292,6 +305,7 @@ function promptOf(o) {
|
|
|
292
305
|
`4. ${path.join(dir, 'tweaks.json')} (optional): { "tweaks": [{ "var": "--gap", "label": "Spacing", "min": 4, "max": 32, "step": 1, "unit": "px", "value": 16, "el"? }] }, at most 6, for the custom properties the prototype reads. "el" is the data-el a tweak belongs to; without it, it is for the whole screen.`,
|
|
293
306
|
`5. ${path.join(dir, 'notes.json')} (optional): { "notes": [{ "text", "screen"?, "el"? }] }, at most 8: what the PM should know that is not part of the design (the format and its size, that the data is sample data, what a placeholder stands for, the other option to compare). PMOS shows them as annotations beside the design. "screen" is the data-screen a note is about, "el" the data-el it points at; without them, it is for the whole prototype.`,
|
|
294
307
|
'Write nothing else and do not read anything else' + (o.base || (o.refs || []).length ? ' but what is named above.' : '.'));
|
|
308
|
+
if (o.scaffold && o.scaffold.rules) L.push('', o.scaffold.rules);
|
|
295
309
|
if (o.scaffold && o.scaffold.css) L.push('', 'The stylesheet:', '```css', o.scaffold.css, '```');
|
|
296
310
|
return L.join('\n');
|
|
297
311
|
}
|