@imfusion/web-ui 0.5.1-dev.53.gb710322e → 0.5.1-dev.6.g9d275fa8

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 (97) hide show
  1. package/README.md +20 -59
  2. package/bin/install-skill.js +180 -0
  3. package/dist/code-qBbqAHK-.js +190 -0
  4. package/dist/components/callout/callout.d.ts +1 -1
  5. package/dist/components/chip-link/chip-link.d.ts +1 -1
  6. package/dist/components/code/code.d.ts +18 -10
  7. package/dist/components/input/input.d.ts +1 -3
  8. package/dist/components/typo/typo.d.ts +2 -2
  9. package/dist/hooks/index.d.ts +0 -1
  10. package/dist/index.d.ts +0 -3
  11. package/dist/index.js +5140 -5746
  12. package/dist/integrations/code-highlight/code-highlight.d.ts +6 -8
  13. package/dist/integrations/code-highlight/highlighter.d.ts +3 -32
  14. package/dist/integrations/code-highlight.js +59 -198
  15. package/dist/integrations/image-display-options.js +56 -56
  16. package/dist/meta-B8C51eyL.js +74 -0
  17. package/dist/provider/web-ui-provider.d.ts +1 -4
  18. package/dist/style.css +1 -1
  19. package/dist/{tabs-CYqtw1q9.js → tabs-DqBFSqq6.js} +2 -3
  20. package/package.json +26 -46
  21. package/src/docgen/doc.gen.json +38 -381
  22. package/src/llms/llms.gen.txt +0 -17
  23. package/src/llms/skills/imf-web-ui/SKILL.md +12 -13
  24. package/src/llms/skills/imf-web-ui-components/SKILL.md +3 -56
  25. package/src/llms/skills/imf-web-ui-frontend-patterns/SKILL.md +93 -0
  26. package/src/llms/skills/imf-web-ui-frontend-patterns/references/code-conventions.md +133 -0
  27. package/src/llms/skills/imf-web-ui-frontend-patterns/references/react-patterns.md +94 -0
  28. package/src/llms/skills/imf-web-ui-imfusion-frontend-setup/SKILL.md +201 -0
  29. package/src/llms/skills/imf-web-ui-setup/SKILL.md +37 -67
  30. package/src/llms/skills/imf-web-ui-ux/SKILL.md +4 -4
  31. package/src/llms/skills/imf-web-ui-ux/references/forms.md +2 -2
  32. package/bin/install.js +0 -428
  33. package/bin/install.test.ts +0 -329
  34. package/dist/build/vite-css-module-names/index.d.ts +0 -20
  35. package/dist/build/vite-css-module-names.js +0 -17
  36. package/dist/chunk-DA_OvQe2.js +0 -11
  37. package/dist/code-BRy_lg-h.js +0 -135
  38. package/dist/codegen/gen-icons.d.ts +0 -24
  39. package/dist/components/field/field.d.ts +0 -104
  40. package/dist/components/field/field.meta.d.ts +0 -2
  41. package/dist/components/field/index.d.ts +0 -2
  42. package/dist/components/fieldset/fieldset.d.ts +0 -29
  43. package/dist/components/fieldset/fieldset.meta.d.ts +0 -2
  44. package/dist/components/fieldset/index.d.ts +0 -2
  45. package/dist/components/icon/icon.d.ts +0 -16
  46. package/dist/components/icon/icon.meta.d.ts +0 -2
  47. package/dist/components/icon/index.d.ts +0 -4
  48. package/dist/components/icon/types.d.ts +0 -2
  49. package/dist/docgen/component-sources.d.ts +0 -7
  50. package/dist/hooks/use-resize-observer.d.ts +0 -2
  51. package/dist/icons/catalog.gen.d.ts +0 -8357
  52. package/dist/icons/icon-config-provider.d.ts +0 -8
  53. package/dist/icons/icon-context.d.ts +0 -4
  54. package/dist/icons/icons.gen.d.ts +0 -1672
  55. package/dist/icons/index.d.ts +0 -3
  56. package/dist/icons-BhogvWBV.js +0 -77
  57. package/dist/icons.js +0 -2
  58. package/dist/integrations/code-highlight/language-patterns.d.ts +0 -7
  59. package/dist/integrations/code-highlight/languages/cmake.d.ts +0 -1
  60. package/dist/integrations/code-highlight/languages/cpp.d.ts +0 -1
  61. package/dist/integrations/code-highlight/languages/python.d.ts +0 -1
  62. package/dist/llms/gen-tokens.d.ts +0 -7
  63. package/dist/meta-BwCupYyq.js +0 -64
  64. package/src/llms/icon-catalog.gen.json +0 -11203
  65. package/src/llms/install-templates/AGENTS.md +0 -34
  66. package/src/llms/install-templates/codex-hooks.json +0 -44
  67. package/src/llms/install-templates/hooks/baseline-staleness.sh +0 -17
  68. package/src/llms/install-templates/hooks/session-start.sh +0 -5
  69. package/src/llms/install-templates/hooks/stop.sh +0 -18
  70. package/src/llms/install-templates/hooks/subagent-start.sh +0 -5
  71. package/src/llms/install-templates/hooks/user-prompt-submit.sh +0 -5
  72. package/src/llms/install-templates/settings.json +0 -45
  73. package/src/llms/skills/imf-web-ui-audit/SKILL.md +0 -119
  74. package/src/llms/skills/imf-web-ui-conventions/SKILL.md +0 -57
  75. package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +0 -141
  76. package/src/llms/skills/imf-web-ui-conventions/templates/REPORT.md +0 -45
  77. package/src/llms/skills/imf-web-ui-conventions/topics/agent-tooling.md +0 -82
  78. package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +0 -27
  79. package/src/llms/skills/imf-web-ui-conventions/topics/authentication.md +0 -65
  80. package/src/llms/skills/imf-web-ui-conventions/topics/class-names.md +0 -50
  81. package/src/llms/skills/imf-web-ui-conventions/topics/components.md +0 -101
  82. package/src/llms/skills/imf-web-ui-conventions/topics/data.md +0 -221
  83. package/src/llms/skills/imf-web-ui-conventions/topics/docs-structure.md +0 -40
  84. package/src/llms/skills/imf-web-ui-conventions/topics/git.md +0 -34
  85. package/src/llms/skills/imf-web-ui-conventions/topics/library-boundary.md +0 -35
  86. package/src/llms/skills/imf-web-ui-conventions/topics/library-setup.md +0 -26
  87. package/src/llms/skills/imf-web-ui-conventions/topics/npm-project.md +0 -53
  88. package/src/llms/skills/imf-web-ui-conventions/topics/project-structure.md +0 -44
  89. package/src/llms/skills/imf-web-ui-conventions/topics/react.md +0 -109
  90. package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +0 -88
  91. package/src/llms/skills/imf-web-ui-conventions/topics/testing.md +0 -25
  92. package/src/llms/skills/imf-web-ui-conventions/topics/tokens.md +0 -7
  93. package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +0 -116
  94. package/src/llms/skills/imf-web-ui-conventions/topics/typescript.md +0 -73
  95. package/src/llms/skills/imf-web-ui-conventions/topics/validation.md +0 -62
  96. package/src/llms/skills/imf-web-ui-update/SKILL.md +0 -157
  97. package/src/llms/tokens.gen.json +0 -887
@@ -1,157 +0,0 @@
1
- ---
2
- name: imf-web-ui-update
3
- description:
4
- "Update @imfusion/web-ui in a consumer repository: refresh the package, vendored skills, and lifecycle hooks, verify the
5
- base update, then audit and optionally migrate affected or custom consumer components in a separate approved commit."
6
- argument-hint: "[--dry-run] [optional version or reason]"
7
- allowed-tools: Bash Read Grep
8
- ---
9
-
10
- # imf-web-ui-update
11
-
12
- Update a repository that consumes `@imfusion/web-ui`. Preserve existing project choices and user work. The workflow has two
13
- commits: the dependency/tooling update first, then an optional consumer migration. Never commit without a fresh explicit
14
- approval.
15
-
16
- ## Rules
17
-
18
- - Work from the frontend package root. In a monorepo, inspect package manifests and `git worktree list` first, then choose
19
- the frontend package in the active worktree that uses web-ui. Read repository and component instructions before changing
20
- files.
21
- - This workflow uses npm. `package-lock.json` is the expected lockfile. Another lockfile is a conflict: stop and ask.
22
- - A dry run is read-only. Do not install, run the installer, format, stage, commit, reset, or clean. Report what would run.
23
- - Record the initial `git status --short`. Existing changes are held back, never staged or overwritten.
24
- - A dirty file that the workflow needs to modify is a conflict. Stop and report it. This includes package files, installed
25
- skill directories, the `AGENTS.md` installer fence, hook files, and hook settings.
26
- - Do not hand-edit installer-owned skills, the `AGENTS.md` fenced block, or installer-owned hook files.
27
- - Keep the base update and consumer migration in separate commits. Do not begin the migration audit until the base update
28
- commit is complete.
29
- - Treat the installed package version before the update as the comparison baseline. There is no assumed changelog.
30
- - A migration candidate is a custom consumer implementation whose behavior overlaps with a current web-ui component, or an
31
- existing web-ui usage affected by changed types or documented API. Do not infer a replacement from a name alone; inspect
32
- the implementation and the current component documentation/types.
33
-
34
- ## Preflight
35
-
36
- 1. Select the frontend package in the active worktree and read its instructions, `package.json`, and `package-lock.json`.
37
- 2. Check whether `@imfusion/web-ui` is already declared and record its installed/version-marker version.
38
- 3. Record the worktree status and identify files the update would touch.
39
- 4. Inspect `.agents/skills/`, `.claude/skills/`, the `AGENTS.md` fence, `.claude/settings.json`, and `.agents/hooks/`.
40
- 5. Check for another npm process. Stop on any conflict or ambiguous target.
41
-
42
- ## Base update
43
-
44
- In a non-dry run, update the dependency:
45
-
46
- ```sh
47
- npm install @imfusion/web-ui
48
- ```
49
-
50
- Pass an explicit version only when the user supplied one. Do not use `--force` or `--legacy-peer-deps` to make installation
51
- pass. Stop on install failure.
52
-
53
- Then refresh the existing web-ui skill target and lifecycle hooks:
54
-
55
- ```sh
56
- npx web-ui-install
57
- npx web-ui-install --hooks
58
- ```
59
-
60
- Run these from the consumer package root, the directory holding the `node_modules` that the dependency install just wrote.
61
- `npx` resolves `web-ui-install` from the installed `@imfusion/web-ui` there; from any other directory it cannot find the
62
- binary. Preserve the existing target (`.agents`, `.claude`, or both); do not silently choose a new one.
63
-
64
- Always run both installer commands after the package update. Skills and installer-owned hook scripts may have changed even
65
- when their existing registrations already cover session start, subagent start, prompt submit, and the stop gate. The hook
66
- installer refreshes those scripts wholesale, prunes retired scripts and their registrations, and merges registrations
67
- idempotently into both host files (`.claude/settings.json` and `.codex/hooks.json`). Stop on malformed settings or installer
68
- conflicts.
69
-
70
- ## Verification
71
-
72
- After each mutating command, compare `git status --short` with the preflight snapshot.
73
-
74
- Classify paths as:
75
-
76
- - **Update-owned:** package files and installer-owned files changed by this workflow.
77
- - **Held back:** pre-existing user changes, excluded from the commit.
78
- - **Conflict:** an overlapping pre-existing change, ambiguous target, or unexpected changed path.
79
-
80
- On conflict, stop. Never use `git restore`, `git reset`, `git clean`, or broad staging to hide it.
81
-
82
- Run the frontend package's documented full verification after the base update. Read its `package.json` scripts and choose
83
- commands that cover typechecking, linting, tests, and building. Prefer one documented aggregate `verify`/`check` script when
84
- it covers those responsibilities; otherwise run the documented non-watch scripts for the responsibilities that exist. Do not
85
- invent script names or run watch/dev scripts. A type or build failure is a base-update conflict to resolve before the base
86
- commit, not a migration finding to defer.
87
-
88
- Verify the dependency/lockfile, current skill markers, the `AGENTS.md` fence, hook coverage, and the final path list. In
89
- dry-run mode, say that mutation-dependent checks were skipped.
90
-
91
- ## Base update report and approval
92
-
93
- Before the base commit, show this concise report:
94
-
95
- ```text
96
- @imfusion/web-ui update report
97
- Package : <old> -> <new> / would update
98
- Skills : <status>
99
- Hooks : <status>
100
- Verification : <status>
101
- Update files : <paths>
102
- Held back : <paths or none>
103
- Conflicts : <paths or none>
104
- Commit : <imperative message or not proposed>
105
- ```
106
-
107
- Normal mode: ask exactly, **“Approve these update-owned changes and commit them?”** Do not commit without an affirmative
108
- answer. If denied, leave the changes uncommitted.
109
-
110
- Dry-run mode: state **“Dry run complete; no changes or commit were made.”** Do not mutate or ask for commit approval.
111
-
112
- ## Consumer migration audit
113
-
114
- Begin this phase only after the approved base update has been committed. Record the old and new package versions from the
115
- pre-update and current manifests/lockfile. Use the current package's exported types, generated documentation, and component
116
- examples as the source of truth. Use the old version's package metadata or repository history when available to identify what
117
- changed; do not pretend a changelog exists.
118
-
119
- Run the same documented full verification again after the base commit. Separate findings into:
120
-
121
- - **Compatibility fixes:** existing web-ui imports, props, or usage patterns that no longer typecheck, build, lint, or pass
122
- tests.
123
- - **Changed component usages:** existing components whose current API, behavior, or documented contract changed between the
124
- two versions and may need a consumer update, even when the typecheck passes.
125
- - **Replacement candidates:** custom consumer components, wrappers, or field implementations that overlap with a component
126
- now exported by `@imfusion/web-ui`. Inspect their code, styles, and call sites before suggesting a replacement. Include the
127
- current custom implementation, the proposed web-ui component, the relevant API/type evidence, and any behavior or styling
128
- that still needs to be preserved.
129
-
130
- Report these findings separately from the base update. Ask whether to apply the proposed migration. If the user declines,
131
- leave the consumer code unchanged. If accepted, make only the approved migration changes, run the documented full
132
- verification again, and show a second report with the migration paths, held-back paths, conflicts, and verification result.
133
-
134
- If no findings exist, report that the installed update has no detected compatibility fixes, changed usages, or replacement
135
- candidates. Do not create an empty migration commit.
136
-
137
- Whatever the migration outcome, close the phase by asking whether to run `imf-web-ui-audit full`: an update can shift the
138
- baseline (new components, hooks, conventions), and the audit shows where the project now stands against it. Run it only on an
139
- explicit yes.
140
-
141
- ## Migration approval
142
-
143
- Ask exactly, **“Approve these consumer migration changes and commit them separately?”** Do not commit without an affirmative
144
- answer. The migration approval is not implied by approval of the base update.
145
-
146
- ## Commit
147
-
148
- For the base update, after approval:
149
-
150
- 1. Recheck status and exclude held-back paths.
151
- 2. Stage base update-owned paths selectively. Never use `git add .` or `git add -A`.
152
- 3. Run the repository's commit workflow if it has one, including its required verification and documentation audit. Otherwise
153
- run documented verification and follow the repository's commit convention.
154
- 4. Commit with a concise imperative message and confirm the commit and final status.
155
-
156
- For an approved migration, repeat the same selective staging and documented commit workflow with a separate imperative
157
- message. Never bypass hooks or amend an unrelated commit after a hook failure.