@flood-md/agent 0.2.11 → 0.2.13

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 (69) hide show
  1. package/DESIGN.md +10 -1
  2. package/README.md +9 -4
  3. package/SKILL.md +16 -5
  4. package/dist/catalog.json +816 -232
  5. package/dist/materials/component-alert-dialog.md +1 -0
  6. package/dist/materials/component-app-shell.md +3 -1
  7. package/dist/materials/component-bar-chart.md +52 -0
  8. package/dist/materials/component-bar-list.md +41 -0
  9. package/dist/materials/component-box-plot.md +46 -0
  10. package/dist/materials/component-bullet-chart.md +43 -0
  11. package/dist/materials/component-code-snippet.md +3 -1
  12. package/dist/materials/component-collection-toolbar.md +4 -1
  13. package/dist/materials/component-command-palette.md +1 -0
  14. package/dist/materials/component-copy-button.md +2 -0
  15. package/dist/materials/component-data-table.md +21 -3
  16. package/dist/materials/component-dialog.md +2 -0
  17. package/dist/materials/component-donut-chart.md +46 -0
  18. package/dist/materials/component-drawer.md +2 -0
  19. package/dist/materials/component-dumbbell-chart.md +46 -0
  20. package/dist/materials/component-editable.md +4 -0
  21. package/dist/materials/component-heading.md +1 -1
  22. package/dist/materials/component-heatmap.md +45 -0
  23. package/dist/materials/component-histogram.md +46 -0
  24. package/dist/materials/component-image-preview.md +1 -0
  25. package/dist/materials/component-line-chart.md +50 -0
  26. package/dist/materials/component-menu.md +2 -0
  27. package/dist/materials/component-range-chart.md +46 -0
  28. package/dist/materials/component-scatter-chart.md +48 -0
  29. package/dist/materials/component-section.md +1 -1
  30. package/dist/materials/component-sheet.md +50 -0
  31. package/dist/materials/component-sparkline.md +41 -0
  32. package/dist/materials/component-table.md +3 -1
  33. package/dist/materials/component-toolbar.md +1 -0
  34. package/dist/materials/component-waterfall-chart.md +47 -0
  35. package/dist/materials/guide-agent-knowledge.md +5 -5
  36. package/dist/materials/guide-agents.md +35 -2
  37. package/dist/materials/guide-charts.md +34 -0
  38. package/dist/materials/guide-foundations.md +2 -2
  39. package/dist/materials/guide-installation.md +6 -6
  40. package/dist/materials/guide-introduction.md +2 -1
  41. package/dist/materials/guide-motion.md +19 -10
  42. package/dist/materials/guide-skills.md +10 -0
  43. package/dist/materials/recipe-collection-views.md +72 -47
  44. package/dist/materials/recipe-navigation-workspace.md +3 -0
  45. package/dist/materials/recipe-record-management.md +109 -61
  46. package/knowledge.json +16 -0
  47. package/lib/inspect.d.ts +14 -2
  48. package/lib/inspect.mjs +65 -0
  49. package/manifest.json +11 -1
  50. package/package.json +1 -1
  51. package/references/component-families.md +14 -0
  52. package/references/composition.md +12 -0
  53. package/references/flood-composition/SKILL.md +7 -0
  54. package/references/flood-data-display/SKILL.md +114 -0
  55. package/references/flood-feedback/SKILL.md +12 -0
  56. package/references/flood-forms/SKILL.md +5 -0
  57. package/references/flood-hierarchy/SKILL.md +4 -0
  58. package/references/flood-interface-content/SKILL.md +7 -0
  59. package/references/flood-motion/SKILL.md +3 -0
  60. package/references/flood-overlays/SKILL.md +11 -0
  61. package/references/flood-records/SKILL.md +32 -0
  62. package/references/flood-screen-composition/SKILL.md +48 -0
  63. package/references/flood-spacing/SKILL.md +7 -0
  64. package/references/flood-verification/SKILL.md +32 -0
  65. package/references/flood-visual-review/SKILL.md +59 -0
  66. package/references/rendered-review.md +49 -3
  67. package/references/routing.md +2 -1
  68. package/rules.json +37 -1
  69. package/workflows.json +22 -0
package/DESIGN.md CHANGED
@@ -1,4 +1,4 @@
1
- # Flood design system · 0.2.11
1
+ # Flood design system · 0.2.13
2
2
 
3
3
  ListBox owns native required validation for accepted selection. Use its
4
4
  description/message/status props rather than duplicating feedback markup. Visual
@@ -156,6 +156,10 @@ supplementary APCA guidance. Do not apply text thresholds to decorative lines or
156
156
  claim full WCAG/APCA certification from a color-pair calculation. Small helper
157
157
  text is supporting content, not the sole presentation of required instructions.
158
158
 
159
+ For a full-window application with changing content, use AppShell's content
160
+ scroll mode. Choose `scrollContentInset="none"` when the workspace already has
161
+ clearance for the overlay rail. Use page scrolling for documents.
162
+
159
163
  ## Verify
160
164
 
161
165
  Check keyboard, labels, focus/invalid combinations, required fields, native form
@@ -163,6 +167,11 @@ submission, loading/disabled/readonly, root scaling, text-spacing overrides,
163
167
  narrow screens, long content, forced colors and reduced motion. Keep application
164
168
  data and side effects in the host project. Flood owns UI only.
165
169
 
170
+ For a visible change, use `.agents/skills/flood-ui/references/flood-visual-review/SKILL.md`
171
+ from the project root. Exercise the affected states in the running UI, inspect
172
+ the screenshots and compare the same state after a fix. Record which state,
173
+ viewport and browser the evidence covers.
174
+
166
175
  Read flood.json and use the matching CLI when running doctor. Doctor checks
167
176
  versions/instruction files, not CSS imports or completed UI behavior. Do not
168
177
  overwrite host instructions or fabricate installation/publication success.
package/README.md CHANGED
@@ -15,6 +15,9 @@ The same optional entry exports inspectSourceUI for bounded text observations
15
15
  of host-owned JSX/CSS. It suggests owner review for native dialogs/controls and
16
16
  custom layouts without reading files or executing source. Text matches can be
17
17
  false positives or miss indirect code; see the rendered-review reference.
18
+ For full-window AppShell routes, `assertWorkspaceScroll` fails a browser test
19
+ when the document scrolls or the workspace loses its Flood scroll viewport.
20
+ See the [Playwright example](references/rendered-review.md#require-workspace-scroll-in-browser-tests).
18
21
 
19
22
  The package also exposes a Node-only, read-only knowledge API with TypeScript
20
23
  declarations. No model provider, network service or MCP runtime is required.
@@ -36,10 +39,12 @@ the website. Do not hand-edit generated hashes or duplicate component contracts.
36
39
  See [Agent knowledge](../../docs/agent-knowledge.md) for groups, capabilities,
37
40
  prerequisites, read budgets, compatibility and customization behavior.
38
41
 
39
- The source bundle also includes thirteen routed workflows for the existing dark base:
40
- composition, hierarchy, spacing, foundations, accessibility, forms, overlays, navigation,
41
- data display, records, feedback, interface content and verification. The lightweight flood-ui entry selects
42
- relevant skills; nested folders do not imply independent automatic discovery.
42
+ The source bundle includes routed workflows for the existing dark base, including
43
+ screen composition, component composition, hierarchy, spacing, motion,
44
+ foundations, accessibility, forms, overlays, navigation, data display, records,
45
+ feedback, interface content, visual review and verification. The lightweight
46
+ flood-ui entry selects relevant skills; nested folders do not imply independent
47
+ automatic discovery.
43
48
  workflows.json describes applicability. rules.json describes observable checks;
44
49
  neither is a completed component-audit report or executable enforcement engine.
45
50
 
package/SKILL.md CHANGED
@@ -23,6 +23,11 @@ invented as a package API. No external component library or parallel token syste
23
23
 
24
24
  ## Read only the relevant reference
25
25
 
26
+ Use the requested task to choose the workflow. A critique produces prioritized
27
+ findings. An implementation or fix includes the affected states and browser
28
+ evidence for visible changes. A copy pass checks wording in context. When
29
+ stabilizing a shared component, check the same contract in another consumer.
30
+
26
31
  Before composing a screen, write a short task trace in the development notes:
27
32
  what the user arrives with, the next meaningful action, what changes when it
28
33
  succeeds, and how the user recovers if it fails. Name which inputs, filters,
@@ -43,15 +48,19 @@ Before delivery, review the actual screen against those choices and the content
43
48
  workflow. Optional subtitle, description and hint slots start empty; fill one
44
49
  only for information the user needs beyond the title or control itself.
45
50
 
46
- For a new screen or composed form, read the hierarchy workflow to choose visual
51
+ For a new screen or an unclear page structure, choose the reading order and task
52
+ regions with the screen-composition workflow. For a new screen or composed
53
+ form, read the hierarchy workflow to choose visual
47
54
  roles, shared tracks and relationship spacing. For a composed form, also read the forms workflow's grouping section; independent
48
55
  per-row grids do not establish a coherent hierarchy. For icon-bearing controls,
49
- use the foundations workflow. During browser verification use the optional
50
- [rendered review observer](references/rendered-review.md) and review its findings.
51
- It cannot replace the separate copy and grouping decisions.
56
+ use the foundations workflow.
52
57
  For record lists or details, read the records workflow before assigning metadata
53
58
  to slots. Record each field's recognition/comparison/action purpose and list/detail
54
59
  placement outside the interface; an available slot is not a reason to fill it.
60
+ For full-window workspaces, use AppShell content scrolling. Add the
61
+ [workspace scroll assertion](references/rendered-review.md#require-workspace-scroll-in-browser-tests)
62
+ to the host's browser tests and run it with overflowing and filtered content
63
+ before reporting completion.
55
64
  For save, upload or other fallible operations, read the feedback workflow too:
56
65
  message lifetime belongs to the operation/record, not merely the page's Alert.
57
66
 
@@ -59,7 +68,8 @@ message lifetime belongs to the operation/record, not merely the page's Alert.
59
68
  | --- | --- | --- |
60
69
  | Introducing or editing interface copy, labels, hierarchy or adapting a reference | [Interface content skill](references/flood-interface-content/SKILL.md) | Necessary, accurate content with a clear job; no invented capabilities or redundant narration |
61
70
  | Component, composite, website or playground UI | [Composition skill](references/flood-composition/SKILL.md) | Reused primitives; missing small capabilities implemented before composites |
62
- | New screen, layout or form | [Composition](references/composition.md) | Existing primitives, correct host width and form ownership |
71
+ | New screen, hard-to-scan page or unclear next action | [Screen composition skill](references/flood-screen-composition/SKILL.md) | Task-led layout, meaningful reading order and reachable actions |
72
+ | Implementing a screen layout or form | [Composition](references/composition.md) | Existing primitives, correct host width and form ownership |
63
73
  | Task/group/field hierarchy, flat forms or inconsistent row tracks | [Hierarchy skill](references/flood-hierarchy/SKILL.md) | Distinct roles, shared control edges and deliberate vertical rhythm |
64
74
  | Spacing, density, nested geometry or shifting previews | [Spacing skill](references/flood-spacing/SKILL.md) | Measured visual relationships and nonoverlapping interactive areas |
65
75
  | Animation, transitions or reduced motion | [Motion skill](references/flood-motion/SKILL.md) | Motion roles, immediate semantics and reduced-motion behavior |
@@ -72,6 +82,7 @@ message lifetime belongs to the operation/record, not merely the page's Alert.
72
82
  | Tables, lists, cards, files and long content | [Data display skill](references/flood-data-display/SKILL.md) | Meaningful structures and reachable overflow |
73
83
  | Status, progress, alerts, loading or empty content | [Feedback skill](references/flood-feedback/SKILL.md) | Honest operation state with one announcement owner |
74
84
  | Brand or deliberate semantic overrides | [Customization](references/customization.md) | Scoped semantic overrides; unchanged behavior |
85
+ | Visible UI change, screenshot feedback or visual bug | [Visual review skill](references/flood-visual-review/SKILL.md) | Browser interaction, inspected screenshots and a matched recheck after fixes |
75
86
  | Completion, stabilization or regression review | [Verification skill](references/flood-verification/SKILL.md) | Checks and limits reported against the actual host |
76
87
  | Decide which document governs a change | [Routing and sources](references/routing.md) | Source of truth and prerequisites identified |
77
88