@equinor/roma-nx-plugin 6.2.0 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/CHANGELOG.md +116 -247
  2. package/README.md +5 -0
  3. package/biome-baseline.json +95 -0
  4. package/executors.json +5 -0
  5. package/generators.json +5 -0
  6. package/migrations.json +151 -0
  7. package/package.json +18 -17
  8. package/src/executors/build/build.d.ts +1 -1
  9. package/src/executors/build/build.js +3 -3
  10. package/src/executors/build/build.js.map +1 -1
  11. package/src/executors/build/executor.d.ts +1 -1
  12. package/src/executors/build/executor.js.map +1 -1
  13. package/src/executors/build/minify.d.ts +1 -1
  14. package/src/executors/build/minify.js.map +1 -1
  15. package/src/executors/build/normalizeRootForFusion.d.ts +1 -1
  16. package/src/executors/build/normalizeRootForFusion.js.map +1 -1
  17. package/src/executors/build/schema.d.ts +1 -1
  18. package/src/executors/build/schema.json +1 -2
  19. package/src/executors/component-test/executor.d.ts +2 -2
  20. package/src/executors/component-test/executor.js +1 -1
  21. package/src/executors/component-test/executor.js.map +1 -1
  22. package/src/executors/create-vite-config.d.ts +1 -1
  23. package/src/executors/create-vite-config.js +8 -11
  24. package/src/executors/create-vite-config.js.map +1 -1
  25. package/src/executors/executor-context.d.ts +1 -1
  26. package/src/executors/lint/biome.d.ts +3 -0
  27. package/src/executors/lint/biome.js +18 -0
  28. package/src/executors/lint/biome.js.map +1 -0
  29. package/src/executors/lint/boundaries.d.ts +14 -0
  30. package/src/executors/lint/boundaries.js +41 -0
  31. package/src/executors/lint/boundaries.js.map +1 -0
  32. package/src/executors/lint/executor.d.ts +5 -0
  33. package/src/executors/lint/executor.js +65 -0
  34. package/src/executors/lint/executor.js.map +1 -0
  35. package/src/executors/lint/schema.d.ts +7 -0
  36. package/src/executors/lint/schema.json +37 -0
  37. package/src/executors/publish/environment.d.ts +0 -1
  38. package/src/executors/publish/executor.d.ts +2 -2
  39. package/src/executors/publish/manifest-model.d.ts +3 -1
  40. package/src/executors/publish/publish-script.js +3 -3
  41. package/src/executors/publish/publish-script.js.map +1 -1
  42. package/src/executors/publish/readme.md +5 -5
  43. package/src/executors/publish/schema.d.ts +1 -1
  44. package/src/executors/serve/executor.d.ts +2 -2
  45. package/src/executors/serve/get-manifest.d.ts +1 -1
  46. package/src/executors/serve/get-manifest.js +1 -1
  47. package/src/executors/serve/get-manifest.js.map +1 -1
  48. package/src/executors/serve/readme.md +1 -1
  49. package/src/executors/serve/schema.json +1 -1
  50. package/src/executors/serve/server.d.ts +1 -1
  51. package/src/executors/serve/server.js +22 -15
  52. package/src/executors/serve/server.js.map +1 -1
  53. package/src/executors/utils/csp/csp-check-plugin.js.map +1 -1
  54. package/src/executors/utils/csp/data/generated-csp.json +1 -1
  55. package/src/executors/utils/csp/extract-urls.js +4 -6
  56. package/src/executors/utils/csp/extract-urls.js.map +1 -1
  57. package/src/executors/utils/load-services.js.map +1 -1
  58. package/src/executors/utils/logger.d.ts +2 -2
  59. package/src/executors/utils/logger.js +6 -2
  60. package/src/executors/utils/logger.js.map +1 -1
  61. package/src/executors/utils/read-manifest.d.ts +1 -1
  62. package/src/executors/utils/read-manifest.js.map +1 -1
  63. package/src/executors/utils/verify-manifest.d.ts +1 -1
  64. package/src/generators/app/data/generated-dependencies.json +17 -17
  65. package/src/generators/app/files/src/App.tsx.template +1 -1
  66. package/src/generators/app/files/src/config.ts.template +1 -2
  67. package/src/generators/app/files/src/index.ts.template +3 -5
  68. package/src/generators/app/files/vite.config.mts.template +1 -1
  69. package/src/generators/app/files/vite.config.ts.template +1 -1
  70. package/src/generators/app/files-routing/src/routes.ts.template +1 -1
  71. package/src/generators/app/generator.d.ts +3 -3
  72. package/src/generators/app/generator.js +5 -3
  73. package/src/generators/app/generator.js.map +1 -1
  74. package/src/generators/app/readme.md +1 -1
  75. package/src/generators/app/schema.json +5 -35
  76. package/src/generators/component-test/generator.d.ts +2 -2
  77. package/src/generators/lint-setup/generator.d.ts +6 -0
  78. package/src/generators/lint-setup/generator.js +115 -0
  79. package/src/generators/lint-setup/generator.js.map +1 -0
  80. package/src/generators/lint-setup/schema.d.ts +5 -0
  81. package/src/generators/lint-setup/schema.json +27 -0
  82. package/src/generators/preset/generator.d.ts +2 -2
  83. package/src/generators/preset/schema.json +4 -32
  84. package/src/generators/skill/files/creating-dashboard-descriptors/SKILL.md +149 -0
  85. package/src/generators/skill/files/roma-app-development/SKILL.md +34 -1
  86. package/src/generators/skill/files/roma-app-development/generators.md +19 -9
  87. package/src/generators/skill/files/roma-dashboard-mcp/SKILL.md +74 -0
  88. package/src/generators/skill/files/roma-dashboard-mcp/scripts/roma-mcp-bridge.mjs +227 -0
  89. package/src/generators/skill/generator.d.ts +2 -2
  90. package/src/generators/skill/generator.js.map +1 -1
  91. package/src/migrations/add-publish-target/add-publish-target.d.ts +1 -1
  92. package/src/migrations/add-publish-target/add-publish-target.js.map +1 -1
  93. package/src/migrations/migrate-fusion-manifest/migrate-fusion-manifest.d.ts +1 -1
  94. package/src/migrations/migrate-fusion-manifest/migrate-fusion-manifest.js.map +1 -1
  95. package/src/migrations/migrate-fusion-manifest/old-format.json +1 -3
  96. package/src/migrations/migrate-fusion-manifest/update-manifest.d.ts +3 -3
  97. package/src/migrations/migrate-fusion-manifest/update-manifest.js.map +1 -1
  98. package/src/migrations/migrate-fusion-router/detect.d.ts +1 -1
  99. package/src/migrations/migrate-fusion-router/detect.js.map +1 -1
  100. package/src/migrations/migrate-fusion-router/ensure-default-exports.d.ts +1 -1
  101. package/src/migrations/migrate-fusion-router/ensure-default-exports.js.map +1 -1
  102. package/src/migrations/migrate-fusion-router/generate-routes-file.d.ts +1 -1
  103. package/src/migrations/migrate-fusion-router/generate-routes-file.js +12 -4
  104. package/src/migrations/migrate-fusion-router/generate-routes-file.js.map +1 -1
  105. package/src/migrations/migrate-fusion-router/migrate-fusion-router.d.ts +1 -1
  106. package/src/migrations/migrate-fusion-router/migrate-fusion-router.js +9 -4
  107. package/src/migrations/migrate-fusion-router/migrate-fusion-router.js.map +1 -1
  108. package/src/migrations/migrate-fusion-router/transform-app.js +27 -13
  109. package/src/migrations/migrate-fusion-router/transform-app.js.map +1 -1
  110. package/src/migrations/migrate-fusion-router/update-vite-config.js.map +1 -1
  111. package/src/migrations/migrate-global-navigation/migrate-global-navigation.d.ts +1 -1
  112. package/src/migrations/migrate-global-navigation/migrate-global-navigation.js.map +1 -1
  113. package/src/migrations/migrate-to-biome/migrate-to-biome.d.ts +2 -0
  114. package/src/migrations/migrate-to-biome/migrate-to-biome.js +19 -0
  115. package/src/migrations/migrate-to-biome/migrate-to-biome.js.map +1 -0
  116. package/src/migrations/move-fusion-manifest/move-fusion-manifest.d.ts +1 -1
  117. package/src/migrations/move-fusion-manifest/move-fusion-manifest.js +0 -1
  118. package/src/migrations/move-fusion-manifest/move-fusion-manifest.js.map +1 -1
  119. package/src/migrations/remove-fusion-cli/remove-fusion-cli.d.ts +1 -1
  120. package/src/migrations/remove-fusion-cli/remove-fusion-cli.js +0 -1
  121. package/src/migrations/remove-fusion-cli/remove-fusion-cli.js.map +1 -1
  122. package/src/migrations/swap-eds-to-roma-ui/swap-eds-to-roma-ui.d.ts +10 -0
  123. package/src/migrations/swap-eds-to-roma-ui/swap-eds-to-roma-ui.js +86 -0
  124. package/src/migrations/swap-eds-to-roma-ui/swap-eds-to-roma-ui.js.map +1 -0
  125. package/src/migrations/update-acquire-access-token/README.md +2 -1
  126. package/src/migrations/update-acquire-access-token/update-acquire-access-token.d.ts +1 -1
  127. package/src/generators/app/files/eslint.config.js.template +0 -105
@@ -0,0 +1,149 @@
1
+ ---
2
+ name: creating-dashboard-descriptors
3
+ description: Use when adding or extending a Roma dashboard data source (datasource) descriptor (libs/data-engine/core/src/sources/descriptors/*.json) from an OpenAPI or Swagger spec, e.g. "create a descriptor for endpoint X", "add fields from the swagger file", or "expose this API on dashboards".
4
+ ---
5
+
6
+ # Creating dashboard descriptors from an OpenAPI spec
7
+
8
+ ## Overview
9
+
10
+ A descriptor maps one paged list endpoint to typed rows. The OpenAPI spec is the contract and
11
+ `roma-workbench/apps/roma-docs/docs/Features/DataSources/` is the reference. Read its
12
+ `DescriptorReference.md` (including "Units"), `AddingADataSource.md` and `JsonataRules.md`
13
+ before writing anything. The shipped descriptors are the templates to copy.
14
+
15
+ **The shared test suites and validators are the guardrails. A new source conforms to them; they
16
+ never bend to fit it.**
17
+
18
+ ## Outside tops-roma
19
+
20
+ The guardrails live only in the tops-roma repository. If `roma-workbench/libs/data-engine/core/src/sources`
21
+ doesn't exist in the current workspace, still run the intake below so the user leaves with settled
22
+ decisions; for the service key (#5), ask the user, since the shipped descriptors aren't here.
23
+ Then explain that the descriptor must be written, verified and published from a tops-roma
24
+ checkout, and stop. Write no files, not even a draft, and publish nothing: the API accepts any JSON object,
25
+ so an unverified descriptor breaks dashboards at run time.
26
+
27
+ ## Intake: settle five things before writing any file
28
+
29
+ Every descriptor rests on five decisions. A decision is settled only when the user's own messages state it,
30
+ **for that decision**. Naming the endpoint settles #1 only. "All the fields" settles the field list in #2,
31
+ but not the filters, roles, units or date binding. A service key settles #5 only.
32
+
33
+ For each unsettled decision, read the spec, propose an answer, and ask. Send all the questions in **one**
34
+ message and write no files until the user replies. If the user says "just pick defaults", that does not
35
+ settle anything. Send your proposals anyway, so they can confirm them with a single "yes".
36
+
37
+ | # | Decision | What to propose from the spec |
38
+ | --- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
39
+ | 1 | **Endpoint** | List each list endpoint in the spec with its method, path and paging envelope (`content`/`last`, `items`/`hasNext`, or none). Recommend one. An endpoint with no paging, or with a path parameter, can't be a source on its own; say so. |
40
+ | 2 | **Fields and filters** | Fields: the row properties, grouped as identifiers, people, dates, statuses and amounts. Say which you'd leave out and why (internal ids, nested arrays). Filters: the query params or body properties, apart from paging. |
41
+ | 3 | **Aggregation** | A descriptor has no aggregation setting of its own; widgets choose sum, count and so on. Propose each field's `role` (`measure` or `dimension`). Pair every quantity or price with its unit or currency field via `unitField`. For each repeating path, propose `multi` (`first`, `join`, `distinctJoin`) or an `expr` that sums. Name the `rowKey` and any `identity` (person) field. If a row has its own page in a Roma app, propose a `link` on the field users recognise, e.g. `"link": "/apps/deal/deal/{dealId}"` on `dealKey`. |
42
+ | 4 | **Global time** | List every date filter pair, e.g. departure from/to and arrival from/to. Recommend the pair to mark `globalTimeRole: 'from'`/`'to'` for the dashboard's date range, and say what that range would then mean, e.g. "voyages departing in the range". If that filter selects a parent record while each row is a child (cargos vs. their movements), also propose `globalTimeField` naming the row's own date, so rows outside the range are dropped on the client. If there is no date pair, say the source won't follow the dashboard dates. |
43
+ | 5 | **Roma service key** | The Fusion service key the Roma API registers for this service. Look up the `serviceKey`s used by the shipped descriptors. Propose an existing one only if it serves the same API. A new key means a host app must register a transport, which is outside this task. |
44
+
45
+ Format the message as five numbered items, in the order of the table. Each item gives your proposal and
46
+ then the question. Leave out any item the user has already settled.
47
+
48
+ **Red flags: you are about to skip the intake.**
49
+
50
+ - "The request clearly implies the rest."
51
+ - "Only one endpoint matches, so the date binding is obvious too."
52
+ - You have written your proposals as decisions ("Global time: bind fromDate/toDate") rather than as
53
+ questions.
54
+
55
+ In any of these cases, send the intake message.
56
+
57
+ ## Also stop and ask when
58
+
59
+ Put these questions in the intake message, after the five numbered items. If they come up later, ask them
60
+ in one message and wait.
61
+
62
+ - The user hasn't provided the OpenAPI spec as a file path or URL. Ask for it first, on its own.
63
+ - The endpoint covers the same rows as an existing source, even if it adds a field or two. Those
64
+ might be better as fields on the existing source than as a new one.
65
+ - A shared test cannot pass for this source. Examples: there is no person-bearing field for
66
+ `identity`, or the page envelope isn't `content`. Ask; never add an exemption, flag or skip.
67
+ - You would change a convention the existing descriptors follow. For example, ids are strings via
68
+ `$string(id)`, so they are never thousands-grouped.
69
+
70
+ ## Reading the spec
71
+
72
+ Use the spec the user gave you, whether a file path or a URL. If they didn't give one, ask for it
73
+ before doing anything else. Don't search the repo or the web and don't reconstruct the contract from
74
+ code; an older copy or a guessed shape gives wrong paths and descriptions. Once you have it, read
75
+ four things:
76
+
77
+ 1. The path. Write it **service-relative**: drop the prefix the Fusion client adds (for example
78
+ `/ratscore`).
79
+ 2. The request: query params, or the body schema.
80
+ 3. The 200 envelope. It gives you `rows`, `hasMore`, `totalPages` and `totalRows`.
81
+ 4. The row schema. Your field `path`s navigate it.
82
+
83
+ To follow a property, resolve `$ref`, `allOf` and array `items` step by step along the field's
84
+ path. A body request needs its property names vendored into a committed fixture named after the
85
+ request schema, e.g. `fixtures/deal-search-request.properties.json`. That way the "sends only spec
86
+ properties" test runs without the spec. Reuse the fixture when another endpoint takes the same body.
87
+
88
+ ## Field descriptions
89
+
90
+ Every field needs a `description` of at least 20 characters. Build it like this:
91
+
92
+ 1. Start from the spec description of the property at the field's `path`. For an `expr` field,
93
+ use the properties it reads. When the leaf property has no description, use its parent's.
94
+ 2. Drop sentences that only matter when writing through the API: create/update rules, "read
95
+ only", validation errors.
96
+ 3. Add enum values as "One of A, B or C." When there are more than about eight, give a few as
97
+ "e.g. A, B or C".
98
+ 4. Append what the spec doesn't say: how Roma derives the value (summed, comma-joined, first
99
+ leg), whether users recognise it ("internal id; prefer Deal key"), and pitfalls ("never add
100
+ across units", "not unique on its own").
101
+
102
+ ## Files to touch
103
+
104
+ All paths are under `roma-workbench/libs/data-engine/core/src/sources/`.
105
+
106
+ | File | Change |
107
+ | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
108
+ | `descriptors/<id>.json` | The descriptor. Both the source and each field put `description` right after `label`. A concept that another source already exposes keeps that source's key and type, e.g. `dealId` as a string. |
109
+ | `fixtures/<id>.page.json` | A spec-shaped page. Every field must be non-null on at least one row. |
110
+ | `lib/conformance.spec.ts` | Add a `cases` entry with `page` and a `morePages` that flips `hasMore`. Add source-specific tests next to the existing ones. |
111
+ | `lib/field-ids.snapshot.json` | Add every field key, sorted. Never remove a key. |
112
+
113
+ When extending an existing source, also add the new field to its fixture.
114
+
115
+ Also update any `dashboards.md` table that lists per-source facts, such as the `unitField` pairs.
116
+ Run prettier only on files you create. On existing files it reformats them wholesale.
117
+
118
+ ## Publish
119
+
120
+ Dashboards read descriptors from the Roma API, not from the bundle. After the files above pass
121
+ verification, publish the descriptor on its service in each environment:
122
+
123
+ - Admin app: Administration → Services → ⋮ → **Data sources** → paste or load the JSON → **Upload**.
124
+ - Or `PUT /api/apps/services/key/{serviceKey}/datasources/{id}` with the descriptor as the body
125
+ (`Roma.App` or `Roma.Administrator`).
126
+
127
+ The server sets `id` and `serviceKey` from the path and returns `409` if another service already
128
+ publishes the id. Do not add the descriptor to `BUNDLED_DESCRIPTORS`; that list only serves tests.
129
+
130
+ To confirm it is live, call `list_datasources` on the `roma-dashboards` MCP server (set it up with
131
+ the roma-dashboard-mcp skill) and check that the new id appears.
132
+
133
+ ## Verify
134
+
135
+ ```sh
136
+ cd roma-workbench && bunx nx run-many -t test,build,lint -p roma-data-engine,roma-dashboard-core,roma-dashboard-sources,roma-dashboard-react --skip-nx-cache
137
+ ```
138
+
139
+ ## Common mistakes
140
+
141
+ | Mistake | Fix |
142
+ | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- |
143
+ | A repeating path without `multi` | Add `multi`, or an `expr` that collapses it. |
144
+ | A hand-written `expr` over a numeric column | Inline the coercion (see "Coercion" in the docs). |
145
+ | A quantity or price without `unitField` | Give each measure its own unit or currency dimension. Copy `effectiveQuantity`'s null-when-no-unit `expr`. |
146
+ | Writing `path[0]` | Write `[path][0]`. |
147
+ | A person field without `identity: true` | Mark string dimensions that hold users' short names. |
148
+ | A new field missing from the snapshot or fixture | Two tests fail. Add it to both. |
149
+ | A fixture invented from memory | Copy the schema's property names exactly. |
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: roma-app-development
3
- description: Skill for developing Roma applications and widgets. Covers app scaffolding via the Roma NX plugin generators, service configuration, data fetching with React Query + Fusion HTTP clients, and the patterns used across the Roma workbench.
3
+ description: Skill for developing Roma applications and widgets. Covers app scaffolding via the Roma NX plugin generators, service configuration, data fetching with React Query + Fusion HTTP clients, UI components (@equinor/roma-ui / EDS), Roma documentation lookup, and the patterns used across the Roma workbench.
4
4
  ---
5
5
 
6
6
  # Roma App Development
@@ -16,6 +16,39 @@ Use this skill when you need to:
16
16
  - Understand how the Roma framework, Fusion, and React Query work together
17
17
  - Use Fusion Framework modules (event system, auth, navigation, service discovery, feature flags, telemetry)
18
18
  - Use Roma custom modules (page titles, real-time SSE events)
19
+ - Build UI with Roma / EDS components
20
+
21
+ ## Roma Documentation
22
+
23
+ Before implementing, load the Roma docs index: **https://docs.roma.equinor.com/llms.txt**.
24
+ It lists every docs page (framework, modules, components, guides, design guidelines) with links —
25
+ fetch the pages relevant to your task instead of guessing APIs.
26
+
27
+ - The site is behind Equinor GitHub SSO. If the fetch redirects to a GitHub login page, ask the user
28
+ to paste the relevant content, or read the source markdown in `equinor/tops-roma` under
29
+ `roma-workbench/apps/roma-docs/docs/` (e.g. `gh api repos/equinor/tops-roma/contents/roma-workbench/apps/roma-docs/docs`).
30
+ - Prefer the docs over the files in this skill when they disagree — the docs are kept current.
31
+
32
+ ## UI Components — always `@equinor/roma-ui`
33
+
34
+ Import **all** UI components from `@equinor/roma-ui`. Never import from `@equinor/eds-core-react`.
35
+
36
+ ```tsx
37
+ // ✅
38
+ import { Button, Card, Typography, DatePicker } from '@equinor/roma-ui';
39
+ // ❌
40
+ import { Button, Card, Typography } from '@equinor/eds-core-react';
41
+ ```
42
+
43
+ - `roma-ui` re-exports all of EDS (`export * from '@equinor/eds-core-react'`) and layers Roma overrides on
44
+ top (e.g. `DatePicker`, `DateRangePicker`, `Switch`, `Badge`) plus Roma-only components (`Select`,
45
+ `NumberField`, `Calendar`, formatters). Importing EDS directly silently bypasses those overrides.
46
+ - This applies even when a component is "just EDS" and works identically today — overrides can be added
47
+ at any time.
48
+ - Icons and tokens still come from `@equinor/eds-icons` and `@equinor/eds-tokens`.
49
+ - `@equinor/roma-ui` must be a dependency; remove `@equinor/eds-core-react` from the app's `package.json`.
50
+ - Existing apps: run `nx migrate @equinor/roma-nx-plugin` — the `swap-eds-to-roma-ui` migration rewrites
51
+ imports and dependencies. Code generated by older templates may still import EDS directly; swap it.
19
52
 
20
53
  ## Installation
21
54
 
@@ -40,7 +40,6 @@ nx g @equinor/roma:app my-app --minimal # minimal scaffolding
40
40
  "routing": "boolean (default: false) — Include React Router",
41
41
  "unitTestRunner": "jest | vitest | none (default: vitest)",
42
42
  "e2eTestRunner": "cypress | playwright | none (default: none)",
43
- "linter": "eslint | none (default: eslint)",
44
43
  "minimal": "boolean (default: false) — Minimal scaffolding",
45
44
  "tags": "string — Comma-separated NX tags"
46
45
  }
@@ -72,6 +71,7 @@ nx g @equinor/roma:app my-app --minimal # minimal scaffolding
72
71
 
73
72
  ```json
74
73
  {
74
+ "lint": { "executor": "@equinor/roma-nx-plugin:lint" },
75
75
  "build": { "executor": "@equinor/roma-nx-plugin:build" },
76
76
  "serve": { "executor": "@equinor/roma-nx-plugin:serve", "options": { "port": 3000 } },
77
77
  "portal": { "executor": "@equinor/roma-nx-plugin:portal" },
@@ -192,7 +192,8 @@ export default configure;
192
192
 
193
193
  #### `src/App.tsx` — Root Component
194
194
 
195
- The default template (non-minimal, no routing) uses EDS components:
195
+ The default template (non-minimal, no routing) uses EDS components. When writing or editing app code,
196
+ import these from `@equinor/roma-ui` instead of `@equinor/eds-core-react` (see `SKILL.md`):
196
197
 
197
198
  ```tsx
198
199
  import { Card, Typography, Button, Icon } from '@equinor/eds-core-react';
@@ -230,14 +231,10 @@ export default App;
230
231
 
231
232
  With `--routing`, uses `useAppModule<NavigationModule>('navigation')` and `RouterProvider`.
232
233
 
233
- #### `eslint.config.js`
234
+ #### `biome.json`
234
235
 
235
- Full flat ESLint config with:
236
- - `@nx/eslint-plugin` base, typescript, javascript, react configs
237
- - React version pinned to `18`
238
- - Prettier integration
239
- - Rules: `type` over `interface`, generic array syntax, PascalCase JSX, destructure props, no array index keys
240
- - Module boundary enforcement
236
+ Extends the Roma Biome baseline (`@equinor/roma-nx-plugin/biome-baseline.json`). Put project-specific rule
237
+ overrides here. Linting and formatting both run through `nx lint <app>` (`--fix` to apply).
241
238
 
242
239
  ---
243
240
 
@@ -347,6 +344,19 @@ Re-running the generator overwrites existing files, which is the intended way to
347
344
 
348
345
  ---
349
346
 
347
+ ## Lint Setup Generator
348
+
349
+ Switches existing projects from ESLint to the Roma Biome `lint` executor:
350
+
351
+ ```sh
352
+ nx g @equinor/roma-nx-plugin:lint-setup --all # or: lint-setup <project>
353
+ nx run-many -t lint --fix # then commit the reformat separately
354
+ ```
355
+
356
+ Safe to re-run. It runs automatically as the `migrate-to-biome` migration when upgrading the plugin to v7.
357
+
358
+ ---
359
+
350
360
  ## Post-Generation Steps
351
361
 
352
362
  After generating a new app:
@@ -0,0 +1,74 @@
1
+ ---
2
+ name: roma-dashboard-mcp
3
+ description: Use when connecting GitHub Copilot CLI (or another MCP client) to the Roma dashboards MCP server, e.g. "set up the Roma dashboard tools", "add roma-dashboards to my MCP config", or when roma-dashboards calls fail with 401, 403, expired token or "az login" errors.
4
+ ---
5
+
6
+ # Connecting to the Roma dashboards MCP server
7
+
8
+ ## Overview
9
+
10
+ The Roma API serves its dashboard tools over MCP, but it doesn't publish OAuth metadata. A client
11
+ therefore can't sign in by itself, and a pasted token dies after about an hour. Instead, register
12
+ the bundled **bridge**: a local stdio server that fetches tokens from the Azure CLI, renews them,
13
+ and forwards each message to the right environment. No token is ever written to a config file.
14
+
15
+ ## Environments
16
+
17
+ | `--env` | Endpoint | Token resource |
18
+ | ------- | --------------------------------------------- | ------------------------------- |
19
+ | `dev` | `https://romadev.equinor.com/eventstream/mcp` | `api://RomaWorkbenchApiNonProd` |
20
+ | `qa` | `https://romaqa.equinor.com/eventstream/mcp` | `api://RomaWorkbenchApiNonProd` |
21
+ | `prod` | `https://roma.equinor.com/eventstream/mcp` | `api://RomaWorkbenchApi` |
22
+
23
+ The bridge knows these; pass `--env`. `--url` and `--resource` override them, e.g. for a local API.
24
+
25
+ ## Setup (Copilot CLI)
26
+
27
+ 1. **Check prerequisites.** `node --version` must be 18 or later. `az account show` must succeed.
28
+ If it doesn't, ask the user to run `az login --tenant 3aa4a235-b6e2-48d5-9195-7fcf05b459b0`
29
+ themselves (it is interactive) and wait.
30
+ 2. **Settle the environment.** If the user didn't name one, ask, proposing `dev`.
31
+ 3. **Install the bridge** at a stable path. Copy `scripts/roma-mcp-bridge.mjs` from this skill's
32
+ directory to `~/.copilot/roma-mcp-bridge.mjs`. Never point the config at a temp dir or a
33
+ checkout that changes branch. To update the bridge later, copy it again.
34
+ 4. **Merge** this entry into `mcpServers` in `~/.copilot/mcp-config.json`. Read the file first and
35
+ keep every other server; create the file only if it is missing. If it isn't valid JSON, stop and
36
+ ask. Replace an existing `roma-dashboards` entry. Use the absolute path from
37
+ `node -p "require('os').homedir()"`, never `~`.
38
+ ```json
39
+ "roma-dashboards": {
40
+ "type": "local",
41
+ "command": "node",
42
+ "args": ["/Users/me/.copilot/roma-mcp-bridge.mjs", "--env", "dev"],
43
+ "tools": ["*"]
44
+ }
45
+ ```
46
+ For a second environment, add another entry such as `roma-dashboards-qa`.
47
+ 5. **Smoke-test** the bridge directly:
48
+ ```sh
49
+ echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node ~/.copilot/roma-mcp-bridge.mjs --env dev
50
+ ```
51
+ The bridge exits when its input closes and never prints the token, so this is safe to run
52
+ as is. Success is one JSON line whose `result.tools` lists `list_datasources`,
53
+ `list_dashboards` and the rest. A line with `error`, or no output at all, is a
54
+ failure: see Troubleshooting. Leave the config in place and report the error to the user.
55
+ 6. Tell the user to restart Copilot CLI (or run `/mcp`) to load `roma-dashboards`.
56
+
57
+ Other clients take the same command and args as a stdio server, e.g. VS Code `.vscode/mcp.json`:
58
+ `"servers": { "roma-dashboards": { "type": "stdio", "command": "node", "args": [...] } }`.
59
+
60
+ ## Troubleshooting
61
+
62
+ | Symptom | Cause and fix |
63
+ | ------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
64
+ | Error mentioning `az login` | az missing, or the login expired. The user runs `az login`; no restart needed. |
65
+ | `HTTP 401` after a retry | Wrong token resource, e.g. the non-prod resource against prod. Use `--env`, not a hand-picked URL. |
66
+ | `HTTP 403` | The user lacks `Roma.User`/`Roma.Administrator` in that environment. Request access; don't retry. |
67
+ | Server missing after setup | Relative or `~` path in `args`, or the client wasn't restarted. |
68
+ | A data source is missing from `list_datasources` | It hasn't been published. **REQUIRED SUB-SKILL:** use creating-dashboard-descriptors. |
69
+
70
+ ## Common mistakes
71
+
72
+ - Pasting a token into `headers`. It expires within the hour; always use the bridge.
73
+ - Overwriting `mcp-config.json` and losing the user's other servers.
74
+ - Running `az account get-access-token` yourself to "test" auth and printing the token.
@@ -0,0 +1,227 @@
1
+ #!/usr/bin/env node
2
+ // Bridges a local MCP client (stdio, newline-delimited JSON-RPC) to the Roma
3
+ // dashboards MCP endpoint (stateless Streamable HTTP). Bearer tokens come from
4
+ // the Azure CLI and are renewed automatically, so nothing secret is stored in
5
+ // the client config. Logs go to stderr; stdout carries JSON-RPC only.
6
+ import { execFile } from 'node:child_process';
7
+ import { realpathSync } from 'node:fs';
8
+ import { createInterface } from 'node:readline';
9
+ import { pathToFileURL } from 'node:url';
10
+
11
+ export const ENVIRONMENTS = {
12
+ dev: {
13
+ url: 'https://romadev.equinor.com/eventstream/mcp',
14
+ resource: 'api://RomaWorkbenchApiNonProd',
15
+ },
16
+ qa: {
17
+ url: 'https://romaqa.equinor.com/eventstream/mcp',
18
+ resource: 'api://RomaWorkbenchApiNonProd',
19
+ },
20
+ prod: {
21
+ url: 'https://roma.equinor.com/eventstream/mcp',
22
+ resource: 'api://RomaWorkbenchApi',
23
+ },
24
+ };
25
+
26
+ const REFRESH_MARGIN_MS = 5 * 60 * 1000;
27
+
28
+ export function parseArgs(argv) {
29
+ const opts = {};
30
+ for (let i = 0; i < argv.length; i += 2) {
31
+ const key = argv[i];
32
+ const value = argv[i + 1];
33
+ if (
34
+ !['--env', '--url', '--resource'].includes(key) ||
35
+ value === undefined
36
+ ) {
37
+ throw new Error(
38
+ 'Usage: roma-mcp-bridge.mjs [--env dev|qa|prod] [--url <endpoint>] [--resource <api://...>]'
39
+ );
40
+ }
41
+ opts[key.slice(2)] = value;
42
+ }
43
+ const env = opts.env ?? 'dev';
44
+ const target = ENVIRONMENTS[env];
45
+ if (!target) {
46
+ throw new Error(
47
+ `Unknown environment "${env}". Use one of: ${Object.keys(ENVIRONMENTS).join(', ')}`
48
+ );
49
+ }
50
+ return {
51
+ url: opts.url ?? target.url,
52
+ resource: opts.resource ?? target.resource,
53
+ };
54
+ }
55
+
56
+ function runAz(args) {
57
+ // az is a .cmd shim on Windows, which execFile can only start through cmd.exe.
58
+ const [cmd, cmdArgs] =
59
+ process.platform === 'win32'
60
+ ? ['cmd.exe', ['/d', '/c', 'az', ...args]]
61
+ : ['az', args];
62
+ return new Promise((resolve, reject) => {
63
+ execFile(
64
+ cmd,
65
+ cmdArgs,
66
+ { timeout: 60_000, windowsHide: true },
67
+ (err, stdout, stderr) => {
68
+ if (err) reject(new Error((stderr || err.message).trim()));
69
+ else resolve(stdout);
70
+ }
71
+ );
72
+ });
73
+ }
74
+
75
+ export async function readAzToken(resource, exec = runAz) {
76
+ let raw;
77
+ try {
78
+ raw = await exec([
79
+ 'account',
80
+ 'get-access-token',
81
+ '--resource',
82
+ resource,
83
+ '-o',
84
+ 'json',
85
+ ]);
86
+ } catch (err) {
87
+ throw new Error(
88
+ `Could not get a token from the Azure CLI for ${resource}. Install az and run "az login" ` +
89
+ `(tenant 3aa4a235-b6e2-48d5-9195-7fcf05b459b0), then retry. Details: ${err.message}`
90
+ );
91
+ }
92
+ const parsed = JSON.parse(raw);
93
+ const expiresAt =
94
+ typeof parsed.expires_on === 'number'
95
+ ? parsed.expires_on * 1000
96
+ : new Date(String(parsed.expiresOn).replace(' ', 'T')).getTime();
97
+ return { token: parsed.accessToken, expiresAt };
98
+ }
99
+
100
+ function sseMessages(text) {
101
+ return text
102
+ .split(/\r?\n\r?\n/)
103
+ .map((event) =>
104
+ event
105
+ .split(/\r?\n/)
106
+ .filter((line) => line.startsWith('data:'))
107
+ .map((line) => line.slice(5).trimStart())
108
+ .join('\n')
109
+ )
110
+ .filter((data) => data.trim());
111
+ }
112
+
113
+ export function createBridge({
114
+ url,
115
+ getToken,
116
+ fetchImpl = fetch,
117
+ write,
118
+ log,
119
+ now = Date.now,
120
+ }) {
121
+ let cached;
122
+ let pending;
123
+
124
+ function token(force) {
125
+ if (!force && cached && now() < cached.expiresAt - REFRESH_MARGIN_MS)
126
+ return Promise.resolve(cached.token);
127
+ pending ??= getToken()
128
+ .then((fresh) => {
129
+ cached = fresh;
130
+ return fresh.token;
131
+ })
132
+ .finally(() => {
133
+ pending = undefined;
134
+ });
135
+ return pending;
136
+ }
137
+
138
+ async function post(body, force) {
139
+ return fetchImpl(url, {
140
+ method: 'POST',
141
+ headers: {
142
+ Authorization: `Bearer ${await token(force)}`,
143
+ 'Content-Type': 'application/json',
144
+ Accept: 'application/json, text/event-stream',
145
+ },
146
+ body,
147
+ });
148
+ }
149
+
150
+ async function handleLine(line) {
151
+ if (!line.trim()) return;
152
+ let id;
153
+ try {
154
+ id = JSON.parse(line).id;
155
+ } catch {
156
+ log(`Ignoring non-JSON input: ${line.slice(0, 200)}`);
157
+ return;
158
+ }
159
+ try {
160
+ let res = await post(line, false);
161
+ if (res.status === 401) {
162
+ log(
163
+ 'Server answered 401; refreshing the Azure CLI token and retrying once.'
164
+ );
165
+ res = await post(line, true);
166
+ }
167
+ const text = await res.text();
168
+ if (!res.ok)
169
+ throw new Error(
170
+ `Roma MCP endpoint answered HTTP ${res.status}: ${text.slice(0, 300)}`
171
+ );
172
+ if (!text.trim()) return;
173
+ const contentType = res.headers.get('content-type') ?? '';
174
+ const messages = contentType.includes('text/event-stream')
175
+ ? sseMessages(text)
176
+ : [text];
177
+ for (const message of messages)
178
+ write(JSON.stringify(JSON.parse(message)));
179
+ } catch (err) {
180
+ log(err.message);
181
+ if (id !== undefined && id !== null) {
182
+ write(
183
+ JSON.stringify({
184
+ jsonrpc: '2.0',
185
+ id,
186
+ error: { code: -32000, message: err.message },
187
+ })
188
+ );
189
+ }
190
+ }
191
+ }
192
+
193
+ return { handleLine };
194
+ }
195
+
196
+ function main() {
197
+ const log = (msg) => process.stderr.write(`[roma-mcp-bridge] ${msg}\n`);
198
+ let target;
199
+ try {
200
+ target = parseArgs(process.argv.slice(2));
201
+ } catch (err) {
202
+ log(err.message);
203
+ process.exit(2);
204
+ }
205
+ log(`Forwarding to ${target.url}`);
206
+ const bridge = createBridge({
207
+ url: target.url,
208
+ getToken: () => readAzToken(target.resource),
209
+ write: (line) => process.stdout.write(`${line}\n`),
210
+ log,
211
+ });
212
+ const inFlight = new Set();
213
+ const rl = createInterface({ input: process.stdin });
214
+ rl.on('line', (line) => {
215
+ const p = bridge.handleLine(line).finally(() => inFlight.delete(p));
216
+ inFlight.add(p);
217
+ });
218
+ rl.on('close', () => Promise.all(inFlight).then(() => process.exit(0)));
219
+ }
220
+
221
+ // Node resolves symlinks in import.meta.url but not in argv, e.g. /tmp -> /private/tmp on macOS.
222
+ if (
223
+ process.argv[1] &&
224
+ import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href
225
+ ) {
226
+ main();
227
+ }
@@ -1,4 +1,4 @@
1
- import { Tree } from '@nx/devkit';
2
- import { SkillGeneratorSchema } from './schema';
1
+ import { type Tree } from '@nx/devkit';
2
+ import type { SkillGeneratorSchema } from './schema';
3
3
  export declare function skillGenerator(tree: Tree, options: SkillGeneratorSchema): Promise<void>;
4
4
  export default skillGenerator;
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/generators/skill/generator.ts"],"names":[],"mappings":";;AAIA,wCAQC;;AAZD,uCAA8D;AAC9D,mDAA6B;AAGtB,KAAK,UAAU,cAAc,CAClC,IAAU,EACV,OAA6B;;IAE7B,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,gBAAgB,CAAC;IAExD,IAAA,sBAAa,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/generators/skill/generator.ts"],"names":[],"mappings":";;AAIA,wCAQC;;AAZD,uCAAmE;AACnE,mDAA6B;AAGtB,KAAK,UAAU,cAAc,CAClC,IAAU,EACV,OAA6B;;IAE7B,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,gBAAgB,CAAC;IAExD,IAAA,sBAAa,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,kBAAe,cAAc,CAAC"}
@@ -1,2 +1,2 @@
1
- import { Tree } from '@nx/devkit';
1
+ import { type Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): void;
@@ -1 +1 @@
1
- {"version":3,"file":"add-publish-target.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/add-publish-target/add-publish-target.ts"],"names":[],"mappings":";;AAGA,yBAwBC;AA1BD,uCAA2E;AAE3E,SAAwB,MAAM,CAAC,IAAU;;IACvC,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAEnC,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,QAAQ,EAAE,CAAC;QACvC,IAAI,OAAO,CAAC,WAAW,KAAK,aAAa;YAAE,SAAS;QACpD,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,MAAM,CAAA,EAAE,CAAC;YAC7B,OAAO,CAAC,OAAO,CAAC,OAAO,GAAG;gBACxB,QAAQ,EAAE,iCAAiC;gBAC3C,cAAc,EAAE;oBACd,UAAU,EAAE;wBACV,WAAW,EAAE,YAAY;qBAC1B;oBACD,EAAE,EAAE;wBACF,WAAW,EAAE,IAAI;qBAClB;oBACD,GAAG,EAAE;wBACH,WAAW,EAAE,KAAK;qBACnB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B,CAAC;YACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"add-publish-target.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/add-publish-target/add-publish-target.ts"],"names":[],"mappings":";;AAEA,yBAwBC;AA1BD,uCAAgF;AAEhF,SAAwB,MAAM,CAAC,IAAU;;IACvC,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAEnC,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,QAAQ,EAAE,CAAC;QACvC,IAAI,OAAO,CAAC,WAAW,KAAK,aAAa;YAAE,SAAS;QACpD,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,MAAM,CAAA,EAAE,CAAC;YAC7B,OAAO,CAAC,OAAO,CAAC,OAAO,GAAG;gBACxB,QAAQ,EAAE,iCAAiC;gBAC3C,cAAc,EAAE;oBACd,UAAU,EAAE;wBACV,WAAW,EAAE,YAAY;qBAC1B;oBACD,EAAE,EAAE;wBACF,WAAW,EAAE,IAAI;qBAClB;oBACD,GAAG,EAAE;wBACH,WAAW,EAAE,KAAK;qBACnB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B,CAAC;YACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,2 +1,2 @@
1
- import { Tree } from '@nx/devkit';
1
+ import { type Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): void;
@@ -1 +1 @@
1
- {"version":3,"file":"migrate-fusion-manifest.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/migrate-fusion-manifest/migrate-fusion-manifest.ts"],"names":[],"mappings":";;AAIA,yBAWC;AAdD,uCAAyD;AACzD,uDAAmD;AAEnD,SAAwB,MAAM,CAAC,IAAU;IACvC,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAEnC,KAAK,MAAM,CAAC,EAAE,OAAO,CAAC,IAAI,QAAQ,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,eAAe,CAAC,CAAC;QACnE,MAAM,OAAO,GAAG,IAAA,gCAAc,EAAC,WAAW,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,CACR,GAAG,OAAO,CAAC,IAAI,eAAe,EAC9B,IAAI,CAAC,SAAS,iCAAM,WAAW,KAAE,IAAI,EAAE,OAAO,KAAI,IAAI,EAAE,CAAC,CAAC,CAC3D,CAAC;IACJ,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"migrate-fusion-manifest.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/migrate-fusion-manifest/migrate-fusion-manifest.ts"],"names":[],"mappings":";;AAGA,yBAWC;AAdD,uCAA8D;AAC9D,uDAAmD;AAEnD,SAAwB,MAAM,CAAC,IAAU;IACvC,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAEnC,KAAK,MAAM,CAAC,EAAE,OAAO,CAAC,IAAI,QAAQ,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,eAAe,CAAC,CAAC;QACnE,MAAM,OAAO,GAAG,IAAA,gCAAc,EAAC,WAAW,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,CACR,GAAG,OAAO,CAAC,IAAI,eAAe,EAC9B,IAAI,CAAC,SAAS,iCAAM,WAAW,KAAE,IAAI,EAAE,OAAO,KAAI,IAAI,EAAE,CAAC,CAAC,CAC3D,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -8,9 +8,7 @@
8
8
  "shortName": "homepage",
9
9
  "name": "homepage",
10
10
  "description": "",
11
- "tags": [
12
- "widget"
13
- ],
11
+ "tags": ["widget"],
14
12
  "hide": true,
15
13
  "order": 1,
16
14
  "type": "widget",
@@ -1,6 +1,6 @@
1
- import { AppDto } from '@equinor/roma-framework';
2
- import { AppManifest } from '@equinor/fusion-framework-module-app';
3
- import { PackageJson } from 'nx/src/utils/package-json';
1
+ import type { AppManifest } from '@equinor/fusion-framework-module-app';
2
+ import type { AppDto } from '@equinor/roma-framework';
3
+ import type { PackageJson } from 'nx/src/utils/package-json';
4
4
  export declare const updateManifest: ({ roma: manifest, version, }: PackageJson & {
5
5
  roma: Omit<AppDto, "version">;
6
6
  }) => AppManifest;
@@ -1 +1 @@
1
- {"version":3,"file":"update-manifest.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/migrate-fusion-manifest/update-manifest.ts"],"names":[],"mappings":";;;AAEA,gFAAuF;AAGhF,MAAM,cAAc,GAAG,CAAC,EAC7B,IAAI,EAAE,QAAQ,EACd,OAAO,GACyC,EAAe,EAAE;IACjE,MAAM,eAAe,GAAG,kBACnB,QAAQ,CACgC,CAAC;IAC9C,eAAe,CAAC,KAAK,GAAG;QACtB,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,GAAG;QACd,OAAO;KACR,CAAC;IACF,OAAO,eAAe,CAAC,KAAK,CAAC;IAC7B,OAAO,eAAe,CAAC,OAAO,CAAC;IAC/B,eAAe,CAAC,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC;IACzC,eAAe,CAAC,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC;IACtC,eAAe,CAAC,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC5C,eAAe,CAAC,aAAa,GAAG;QAC9B,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,QAAQ,CAAC,KAAK;KAC1B,CAAC;IACF,OAAO,eAAe,CAAC,KAAK,CAAC;IAC7B,OAAO,eAAe,CAAC,IAAI,CAAC;IAC5B,OAAoB,iCAAoB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAClE,CAAC,CAAC;AAxBW,QAAA,cAAc,kBAwBzB"}
1
+ {"version":3,"file":"update-manifest.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/migrate-fusion-manifest/update-manifest.ts"],"names":[],"mappings":";;;AACA,gFAAuF;AAIhF,MAAM,cAAc,GAAG,CAAC,EAC7B,IAAI,EAAE,QAAQ,EACd,OAAO,GACyC,EAAe,EAAE;IACjE,MAAM,eAAe,GAAG,kBACnB,QAAQ,CACgC,CAAC;IAC9C,eAAe,CAAC,KAAK,GAAG;QACtB,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,GAAG;QACd,OAAO;KACR,CAAC;IACF,OAAO,eAAe,CAAC,KAAK,CAAC;IAC7B,OAAO,eAAe,CAAC,OAAO,CAAC;IAC/B,eAAe,CAAC,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC;IACzC,eAAe,CAAC,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC;IACtC,eAAe,CAAC,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC5C,eAAe,CAAC,aAAa,GAAG;QAC9B,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,QAAQ,CAAC,KAAK;KAC1B,CAAC;IACF,OAAO,eAAe,CAAC,KAAK,CAAC;IAC7B,OAAO,eAAe,CAAC,IAAI,CAAC;IAC5B,OAAoB,iCAAoB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAClE,CAAC,CAAC;AAxBW,QAAA,cAAc,kBAwBzB"}
@@ -1,4 +1,4 @@
1
- import { Tree } from '@nx/devkit';
1
+ import { type Tree } from '@nx/devkit';
2
2
  export interface DetectedApp {
3
3
  projectName: string;
4
4
  projectRoot: string;
@@ -1 +1 @@
1
- {"version":3,"file":"detect.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/migrate-fusion-router/detect.ts"],"names":[],"mappings":";;AAQA,kDAwBC;AAhCD,uCAA+C;AAQ/C,SAAgB,mBAAmB,CAAC,IAAU;IAC5C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAkB,EAAE,CAAC;IAEnC,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,QAAQ,EAAE,CAAC;QACvC,IAAI,OAAO,CAAC,WAAW,KAAK,aAAa;YAAE,SAAS;QAEpD,MAAM,WAAW,GAAG,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW;YAAE,SAAS;QAE3B,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO;YAAE,SAAS;QAEvB,IAAI,iBAAiB,CAAC,OAAO,CAAC;YAAE,SAAS;QACzC,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;YAAE,SAAS;QAE7C,QAAQ,CAAC,IAAI,CAAC;YACZ,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,OAAO,CAAC,IAAI;YACzB,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,WAAW,CAAC,IAAU,EAAE,WAAmB;;IAClD,MAAM,UAAU,GAAG;QACjB,GAAG,WAAW,cAAc;QAC5B,GAAG,WAAW,cAAc;QAC5B,GAAG,WAAW,kBAAkB;QAChC,GAAG,WAAW,kBAAkB;KACjC,CAAC;IACF,OAAO,MAAA,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,mCAAI,IAAI,CAAC;AAC9D,CAAC;AAED,SAAS,iBAAiB,CAAC,OAAe;IACxC,OAAO,CACL,OAAO,CAAC,QAAQ,CAAC,+CAA+C,CAAC;QACjE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAC3B,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAe;IAC3C,MAAM,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAC7D,MAAM,eAAe,GAAG,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACzD,OAAO,iBAAiB,IAAI,eAAe,CAAC;AAC9C,CAAC"}
1
+ {"version":3,"file":"detect.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/migrate-fusion-router/detect.ts"],"names":[],"mappings":";;AAQA,kDAwBC;AAhCD,uCAAoD;AAQpD,SAAgB,mBAAmB,CAAC,IAAU;IAC5C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAkB,EAAE,CAAC;IAEnC,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,QAAQ,EAAE,CAAC;QACvC,IAAI,OAAO,CAAC,WAAW,KAAK,aAAa;YAAE,SAAS;QAEpD,MAAM,WAAW,GAAG,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW;YAAE,SAAS;QAE3B,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO;YAAE,SAAS;QAEvB,IAAI,iBAAiB,CAAC,OAAO,CAAC;YAAE,SAAS;QACzC,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;YAAE,SAAS;QAE7C,QAAQ,CAAC,IAAI,CAAC;YACZ,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,OAAO,CAAC,IAAI;YACzB,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,WAAW,CAAC,IAAU,EAAE,WAAmB;;IAClD,MAAM,UAAU,GAAG;QACjB,GAAG,WAAW,cAAc;QAC5B,GAAG,WAAW,cAAc;QAC5B,GAAG,WAAW,kBAAkB;QAChC,GAAG,WAAW,kBAAkB;KACjC,CAAC;IACF,OAAO,MAAA,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,mCAAI,IAAI,CAAC;AAC9D,CAAC;AAED,SAAS,iBAAiB,CAAC,OAAe;IACxC,OAAO,CACL,OAAO,CAAC,QAAQ,CAAC,+CAA+C,CAAC;QACjE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAC3B,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAe;IAC3C,MAAM,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAC7D,MAAM,eAAe,GAAG,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACzD,OAAO,iBAAiB,IAAI,eAAe,CAAC;AAC9C,CAAC"}