@equinor/fusion-framework-cli 10.7.4 → 11.0.0-next.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 (513) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +144 -17
  3. package/bin/cli.mjs +4 -1
  4. package/dist/esm/bin/app-build.js +34 -0
  5. package/dist/esm/bin/app-build.js.map +1 -0
  6. package/dist/esm/bin/app-check.js +63 -0
  7. package/dist/esm/bin/app-check.js.map +1 -0
  8. package/dist/esm/bin/app-config-publish.js +89 -0
  9. package/dist/esm/bin/app-config-publish.js.map +1 -0
  10. package/dist/esm/bin/app-config.js +48 -0
  11. package/dist/esm/bin/app-config.js.map +1 -0
  12. package/dist/esm/bin/app-dev.js +92 -0
  13. package/dist/esm/bin/app-dev.js.map +1 -0
  14. package/dist/esm/bin/app-manifest.js +38 -0
  15. package/dist/esm/bin/app-manifest.js.map +1 -0
  16. package/dist/esm/bin/app-pack.js +51 -0
  17. package/dist/esm/bin/app-pack.js.map +1 -0
  18. package/dist/esm/bin/app-tag.js +89 -0
  19. package/dist/esm/bin/app-tag.js.map +1 -0
  20. package/dist/esm/bin/app-upload.js +109 -0
  21. package/dist/esm/bin/app-upload.js.map +1 -0
  22. package/dist/esm/bin/helpers/load-bundle-metadata.js +32 -0
  23. package/dist/esm/bin/helpers/load-bundle-metadata.js.map +1 -0
  24. package/dist/esm/bin/helpers/load-vite-config.js +55 -0
  25. package/dist/esm/bin/helpers/load-vite-config.js.map +1 -0
  26. package/dist/esm/bin/helpers/resolve-app-config.js +46 -0
  27. package/dist/esm/bin/helpers/resolve-app-config.js.map +1 -0
  28. package/dist/esm/bin/helpers/resolve-app-manifest.js +55 -0
  29. package/dist/esm/bin/helpers/resolve-app-manifest.js.map +1 -0
  30. package/dist/esm/bin/helpers/resolve-portal-manifest.js +55 -0
  31. package/dist/esm/bin/helpers/resolve-portal-manifest.js.map +1 -0
  32. package/dist/esm/bin/helpers/resolve-project-package.js +32 -0
  33. package/dist/esm/bin/helpers/resolve-project-package.js.map +1 -0
  34. package/dist/esm/bin/index.js +10 -0
  35. package/dist/esm/bin/index.js.map +1 -0
  36. package/dist/esm/bin/pack.js +70 -0
  37. package/dist/esm/bin/pack.js.map +1 -0
  38. package/dist/esm/bin/portal-build.js +40 -0
  39. package/dist/esm/bin/portal-build.js.map +1 -0
  40. package/dist/esm/bin/portal-dev.js +69 -0
  41. package/dist/esm/bin/portal-dev.js.map +1 -0
  42. package/dist/esm/bin/portal-manifest.js +38 -0
  43. package/dist/esm/bin/portal-manifest.js.map +1 -0
  44. package/dist/esm/bin/portal-pack.js +60 -0
  45. package/dist/esm/bin/portal-pack.js.map +1 -0
  46. package/dist/esm/bin/portal-tag.js +96 -0
  47. package/dist/esm/bin/portal-tag.js.map +1 -0
  48. package/dist/esm/bin/portal-upload.js +99 -0
  49. package/dist/esm/bin/portal-upload.js.map +1 -0
  50. package/dist/esm/bin/utils/ConsoleLogger.js +112 -0
  51. package/dist/esm/bin/utils/ConsoleLogger.js.map +1 -0
  52. package/dist/esm/bin/utils/create-dev-server.js +167 -0
  53. package/dist/esm/bin/utils/create-dev-server.js.map +1 -0
  54. package/dist/esm/bin/utils/format.js +47 -0
  55. package/dist/esm/bin/utils/format.js.map +1 -0
  56. package/dist/esm/bin/utils/index.js +5 -0
  57. package/dist/esm/bin/utils/index.js.map +1 -0
  58. package/dist/esm/bin/utils/spinner.js +142 -0
  59. package/dist/esm/bin/utils/spinner.js.map +1 -0
  60. package/dist/esm/cli/commands/app/alias.js +42 -0
  61. package/dist/esm/cli/commands/app/alias.js.map +1 -0
  62. package/dist/esm/cli/commands/app/build.js +46 -0
  63. package/dist/esm/cli/commands/app/build.js.map +1 -0
  64. package/dist/esm/cli/commands/app/check.js +47 -0
  65. package/dist/esm/cli/commands/app/check.js.map +1 -0
  66. package/dist/esm/cli/commands/app/config.js +91 -0
  67. package/dist/esm/cli/commands/app/config.js.map +1 -0
  68. package/dist/esm/cli/commands/app/dev.js +61 -0
  69. package/dist/esm/cli/commands/app/dev.js.map +1 -0
  70. package/dist/esm/cli/commands/app/index.js +25 -0
  71. package/dist/esm/cli/commands/app/index.js.map +1 -0
  72. package/dist/esm/cli/commands/app/manifest.js +73 -0
  73. package/dist/esm/cli/commands/app/manifest.js.map +1 -0
  74. package/dist/esm/cli/commands/app/pack.js +64 -0
  75. package/dist/esm/cli/commands/app/pack.js.map +1 -0
  76. package/dist/esm/cli/commands/app/publish.js +119 -0
  77. package/dist/esm/cli/commands/app/publish.js.map +1 -0
  78. package/dist/esm/cli/commands/app/tag.js +101 -0
  79. package/dist/esm/cli/commands/app/tag.js.map +1 -0
  80. package/dist/esm/cli/commands/app/upload.js +80 -0
  81. package/dist/esm/cli/commands/app/upload.js.map +1 -0
  82. package/dist/esm/cli/commands/auth/index.js +10 -0
  83. package/dist/esm/cli/commands/auth/index.js.map +1 -0
  84. package/dist/esm/cli/commands/auth/login.js +68 -0
  85. package/dist/esm/cli/commands/auth/login.js.map +1 -0
  86. package/dist/esm/cli/commands/auth/logout.js +55 -0
  87. package/dist/esm/cli/commands/auth/logout.js.map +1 -0
  88. package/dist/esm/cli/commands/auth/token.js +74 -0
  89. package/dist/esm/cli/commands/auth/token.js.map +1 -0
  90. package/dist/esm/cli/commands/disco/index.js +6 -0
  91. package/dist/esm/cli/commands/disco/index.js.map +1 -0
  92. package/dist/esm/cli/commands/disco/resolve.js +61 -0
  93. package/dist/esm/cli/commands/disco/resolve.js.map +1 -0
  94. package/dist/esm/cli/commands/index.js +11 -0
  95. package/dist/esm/cli/commands/index.js.map +1 -0
  96. package/dist/esm/cli/commands/portal/build.js +22 -0
  97. package/dist/esm/cli/commands/portal/build.js.map +1 -0
  98. package/dist/esm/cli/commands/portal/dev.js +24 -0
  99. package/dist/esm/cli/commands/portal/dev.js.map +1 -0
  100. package/dist/esm/cli/commands/portal/index.js +21 -0
  101. package/dist/esm/cli/commands/portal/index.js.map +1 -0
  102. package/dist/esm/cli/commands/portal/manifest.js +45 -0
  103. package/dist/esm/cli/commands/portal/manifest.js.map +1 -0
  104. package/dist/esm/cli/commands/portal/pack.js +35 -0
  105. package/dist/esm/cli/commands/portal/pack.js.map +1 -0
  106. package/dist/esm/cli/commands/portal/publish.js +73 -0
  107. package/dist/esm/cli/commands/portal/publish.js.map +1 -0
  108. package/dist/esm/cli/commands/portal/schema.js +68 -0
  109. package/dist/esm/cli/commands/portal/schema.js.map +1 -0
  110. package/dist/esm/cli/commands/portal/tag.js +69 -0
  111. package/dist/esm/cli/commands/portal/tag.js.map +1 -0
  112. package/dist/esm/cli/commands/portal/upload.js +40 -0
  113. package/dist/esm/cli/commands/portal/upload.js.map +1 -0
  114. package/dist/esm/cli/main.js +52 -0
  115. package/dist/esm/cli/main.js.map +1 -0
  116. package/dist/esm/cli/options/auth.js +96 -0
  117. package/dist/esm/cli/options/auth.js.map +1 -0
  118. package/dist/esm/cli/options/env.js +30 -0
  119. package/dist/esm/cli/options/env.js.map +1 -0
  120. package/dist/esm/lib/app/app-config.js +12 -0
  121. package/dist/esm/lib/app/app-config.js.map +1 -0
  122. package/dist/esm/lib/app/app-manifest.js +15 -0
  123. package/dist/esm/lib/app/app-manifest.js.map +1 -0
  124. package/dist/{lib → esm/lib/app}/app-package.js +30 -10
  125. package/dist/esm/lib/app/app-package.js.map +1 -0
  126. package/dist/esm/lib/app/create-app-manifest.js +72 -0
  127. package/dist/esm/lib/app/create-app-manifest.js.map +1 -0
  128. package/dist/esm/lib/app/index.js +9 -0
  129. package/dist/esm/lib/app/index.js.map +1 -0
  130. package/dist/esm/lib/app/load-app-config.js +47 -0
  131. package/dist/esm/lib/app/load-app-config.js.map +1 -0
  132. package/dist/esm/lib/app/load-app-manifest.js +61 -0
  133. package/dist/esm/lib/app/load-app-manifest.js.map +1 -0
  134. package/dist/esm/lib/app/merge-app-config.js +21 -0
  135. package/dist/esm/lib/app/merge-app-config.js.map +1 -0
  136. package/dist/esm/lib/app/merge-app-manifest.js +31 -0
  137. package/dist/esm/lib/app/merge-app-manifest.js.map +1 -0
  138. package/dist/esm/lib/app/schemas.js +28 -0
  139. package/dist/esm/lib/app/schemas.js.map +1 -0
  140. package/dist/esm/lib/dev-server.js +3 -0
  141. package/dist/esm/lib/dev-server.js.map +1 -0
  142. package/dist/esm/lib/framework.node.js +104 -0
  143. package/dist/esm/lib/framework.node.js.map +1 -0
  144. package/dist/esm/lib/index.js +5 -0
  145. package/dist/esm/lib/index.js.map +1 -0
  146. package/dist/esm/lib/legacy.js +38 -0
  147. package/dist/esm/lib/legacy.js.map +1 -0
  148. package/dist/esm/lib/load-dev-server-config.js +43 -0
  149. package/dist/esm/lib/load-dev-server-config.js.map +1 -0
  150. package/dist/esm/lib/merge-dev-server-config.js +37 -0
  151. package/dist/esm/lib/merge-dev-server-config.js.map +1 -0
  152. package/dist/esm/lib/portal/create-portal-manifest.js +93 -0
  153. package/dist/esm/lib/portal/create-portal-manifest.js.map +1 -0
  154. package/dist/esm/lib/portal/index.js +3 -0
  155. package/dist/esm/lib/portal/index.js.map +1 -0
  156. package/dist/esm/lib/portal/load-portal-manifest.js +54 -0
  157. package/dist/esm/lib/portal/load-portal-manifest.js.map +1 -0
  158. package/dist/esm/lib/portal/load-portal-schema.js +49 -0
  159. package/dist/esm/lib/portal/load-portal-schema.js.map +1 -0
  160. package/dist/esm/lib/portal/portal-manifest.js +21 -0
  161. package/dist/esm/lib/portal/portal-manifest.js.map +1 -0
  162. package/dist/esm/lib/portal/portal-manifest.schema.js +134 -0
  163. package/dist/esm/lib/portal/portal-manifest.schema.js.map +1 -0
  164. package/dist/esm/lib/static.js +20 -0
  165. package/dist/esm/lib/static.js.map +1 -0
  166. package/dist/{lib/utils → esm/lib}/types.js.map +1 -1
  167. package/dist/esm/lib/utils/assert.js +87 -0
  168. package/dist/esm/lib/utils/assert.js.map +1 -0
  169. package/dist/esm/lib/utils/expect.js.map +1 -0
  170. package/dist/{lib/plugins/app-assets/extension-filter-pattern.js → esm/lib/utils/extension-filter.js} +1 -1
  171. package/dist/esm/lib/utils/extension-filter.js.map +1 -0
  172. package/dist/esm/lib/utils/file-exists.js.map +1 -0
  173. package/dist/esm/lib/utils/index.js +6 -0
  174. package/dist/esm/lib/utils/index.js.map +1 -0
  175. package/dist/{lib → esm/lib}/utils/parse-json-request.js +3 -1
  176. package/dist/esm/lib/utils/parse-json-request.js.map +1 -0
  177. package/dist/esm/lib/utils/resolve-annotations.js +28 -0
  178. package/dist/esm/lib/utils/resolve-annotations.js.map +1 -0
  179. package/dist/esm/lib/utils/resolve-devops-annotations.js +59 -0
  180. package/dist/esm/lib/utils/resolve-devops-annotations.js.map +1 -0
  181. package/dist/esm/lib/utils/resolve-git-commit-sha.js +23 -0
  182. package/dist/esm/lib/utils/resolve-git-commit-sha.js.map +1 -0
  183. package/dist/esm/lib/utils/resolve-git-remote-url.js +24 -0
  184. package/dist/esm/lib/utils/resolve-git-remote-url.js.map +1 -0
  185. package/dist/esm/lib/utils/resolve-github-annotations.js +127 -0
  186. package/dist/esm/lib/utils/resolve-github-annotations.js.map +1 -0
  187. package/dist/esm/lib/utils/resolve-package-repo.js +14 -0
  188. package/dist/esm/lib/utils/resolve-package-repo.js.map +1 -0
  189. package/dist/esm/lib/utils/resolve-package.js +18 -0
  190. package/dist/esm/lib/utils/resolve-package.js.map +1 -0
  191. package/dist/esm/lib/utils/resolve-source-entry-point.js +39 -0
  192. package/dist/esm/lib/utils/resolve-source-entry-point.js.map +1 -0
  193. package/dist/esm/lib/utils/types.js.map +1 -0
  194. package/dist/esm/lib/utils/write-file.js +25 -0
  195. package/dist/esm/lib/utils/write-file.js.map +1 -0
  196. package/dist/esm/version.js +3 -0
  197. package/dist/esm/version.js.map +1 -0
  198. package/dist/tsconfig.tsbuildinfo +1 -0
  199. package/dist/types/bin/app-build.d.ts +52 -0
  200. package/dist/types/bin/app-check.d.ts +31 -0
  201. package/dist/types/bin/app-config-publish.d.ts +23 -0
  202. package/dist/types/bin/app-config.d.ts +52 -0
  203. package/dist/types/bin/app-dev.d.ts +45 -0
  204. package/dist/types/bin/app-manifest.d.ts +42 -0
  205. package/dist/types/bin/app-pack.d.ts +38 -0
  206. package/dist/types/bin/app-tag.d.ts +51 -0
  207. package/dist/types/bin/app-upload.d.ts +40 -0
  208. package/dist/types/bin/helpers/load-bundle-metadata.d.ts +15 -0
  209. package/dist/types/bin/helpers/load-vite-config.d.ts +12 -0
  210. package/dist/types/bin/helpers/resolve-app-config.d.ts +18 -0
  211. package/dist/types/bin/helpers/resolve-app-manifest.d.ts +17 -0
  212. package/dist/types/bin/helpers/resolve-portal-manifest.d.ts +27 -0
  213. package/dist/types/bin/helpers/resolve-project-package.d.ts +13 -0
  214. package/dist/types/bin/index.d.ts +9 -0
  215. package/dist/types/bin/pack.d.ts +36 -0
  216. package/dist/types/bin/portal-build.d.ts +54 -0
  217. package/dist/types/bin/portal-dev.d.ts +37 -0
  218. package/dist/types/bin/portal-manifest.d.ts +60 -0
  219. package/dist/types/bin/portal-pack.d.ts +54 -0
  220. package/dist/types/bin/portal-tag.d.ts +51 -0
  221. package/dist/types/bin/portal-upload.d.ts +37 -0
  222. package/dist/types/bin/utils/ConsoleLogger.d.ts +84 -0
  223. package/dist/types/bin/utils/create-dev-server.d.ts +49 -0
  224. package/dist/types/bin/utils/format.d.ts +27 -0
  225. package/dist/types/bin/utils/index.d.ts +3 -13
  226. package/dist/types/bin/utils/spinner.d.ts +75 -0
  227. package/dist/types/cli/commands/app/alias.d.ts +6 -0
  228. package/dist/types/cli/commands/app/build.d.ts +27 -0
  229. package/dist/types/cli/commands/app/check.d.ts +26 -0
  230. package/dist/types/cli/commands/app/config.d.ts +34 -0
  231. package/dist/types/cli/commands/app/dev.d.ts +29 -0
  232. package/dist/types/cli/commands/app/index.d.ts +3 -0
  233. package/dist/types/cli/commands/app/manifest.d.ts +30 -0
  234. package/dist/types/cli/commands/app/pack.d.ts +31 -0
  235. package/dist/types/cli/commands/app/publish.d.ts +31 -0
  236. package/dist/types/cli/commands/app/tag.d.ts +33 -0
  237. package/dist/types/cli/commands/app/upload.d.ts +29 -0
  238. package/dist/types/cli/commands/auth/index.d.ts +3 -0
  239. package/dist/types/cli/commands/auth/login.d.ts +2 -0
  240. package/dist/types/cli/commands/auth/logout.d.ts +12 -0
  241. package/dist/types/cli/commands/auth/token.d.ts +13 -0
  242. package/dist/types/cli/commands/disco/index.d.ts +2 -0
  243. package/dist/types/cli/commands/disco/resolve.d.ts +25 -0
  244. package/dist/types/cli/commands/portal/build.d.ts +2 -0
  245. package/dist/types/cli/commands/portal/dev.d.ts +2 -0
  246. package/dist/types/cli/commands/portal/index.d.ts +2 -0
  247. package/dist/types/cli/commands/portal/manifest.d.ts +2 -0
  248. package/dist/types/cli/commands/portal/pack.d.ts +2 -0
  249. package/dist/types/cli/commands/portal/publish.d.ts +2 -0
  250. package/dist/types/cli/commands/portal/schema.d.ts +2 -0
  251. package/dist/types/cli/commands/portal/tag.d.ts +2 -0
  252. package/dist/types/cli/commands/portal/upload.d.ts +2 -0
  253. package/dist/types/cli/main.d.ts +21 -0
  254. package/dist/types/cli/options/auth.d.ts +37 -0
  255. package/dist/types/cli/options/env.d.ts +19 -0
  256. package/dist/types/lib/app/app-config.d.ts +31 -0
  257. package/dist/types/lib/app/app-manifest.d.ts +39 -0
  258. package/dist/types/lib/{app-package.d.ts → app/app-package.d.ts} +27 -10
  259. package/dist/types/lib/app/create-app-manifest.d.ts +17 -0
  260. package/dist/types/lib/app/index.d.ts +8 -0
  261. package/dist/types/lib/app/load-app-config.d.ts +54 -0
  262. package/dist/types/lib/app/load-app-manifest.d.ts +57 -0
  263. package/dist/types/lib/app/merge-app-config.d.ts +13 -0
  264. package/dist/types/lib/app/merge-app-manifest.d.ts +25 -0
  265. package/dist/types/{schemas.d.ts → lib/app/schemas.d.ts} +10 -1
  266. package/dist/types/lib/dev-server.d.ts +2 -0
  267. package/dist/types/lib/framework.node.d.ts +77 -0
  268. package/dist/types/lib/index.d.ts +4 -3
  269. package/dist/types/lib/legacy.d.ts +24 -0
  270. package/dist/types/lib/load-dev-server-config.d.ts +40 -0
  271. package/dist/types/lib/merge-dev-server-config.d.ts +16 -0
  272. package/dist/types/lib/portal/create-portal-manifest.d.ts +22 -0
  273. package/dist/types/lib/portal/index.d.ts +2 -0
  274. package/dist/types/lib/portal/load-portal-manifest.d.ts +65 -0
  275. package/dist/types/lib/portal/load-portal-schema.d.ts +43 -0
  276. package/dist/types/lib/portal/portal-manifest.d.ts +16 -0
  277. package/dist/types/lib/portal/portal-manifest.schema.d.ts +154 -0
  278. package/dist/types/lib/static.d.ts +10 -0
  279. package/dist/types/lib/types.d.ts +34 -0
  280. package/dist/types/lib/utils/assert.d.ts +48 -0
  281. package/dist/types/lib/utils/index.d.ts +5 -0
  282. package/dist/types/lib/utils/resolve-annotations.d.ts +11 -0
  283. package/dist/types/lib/utils/resolve-devops-annotations.d.ts +30 -0
  284. package/dist/types/lib/utils/resolve-git-commit-sha.d.ts +13 -0
  285. package/dist/types/lib/utils/resolve-git-remote-url.d.ts +13 -0
  286. package/dist/types/lib/utils/resolve-github-annotations.d.ts +65 -0
  287. package/dist/types/lib/utils/resolve-package-repo.d.ts +9 -0
  288. package/dist/types/lib/utils/resolve-package.d.ts +15 -0
  289. package/dist/types/lib/utils/resolve-source-entry-point.d.ts +17 -0
  290. package/dist/types/lib/utils/types.d.ts +1 -1
  291. package/dist/types/lib/utils/write-file.d.ts +14 -0
  292. package/dist/types/version.d.ts +1 -1
  293. package/package.json +47 -68
  294. package/dist/bin/build-application.js +0 -55
  295. package/dist/bin/build-application.js.map +0 -1
  296. package/dist/bin/bundle-application.js +0 -41
  297. package/dist/bin/bundle-application.js.map +0 -1
  298. package/dist/bin/create-dev-serve.js +0 -127
  299. package/dist/bin/create-dev-serve.js.map +0 -1
  300. package/dist/bin/create-export-config.js +0 -40
  301. package/dist/bin/create-export-config.js.map +0 -1
  302. package/dist/bin/create-export-manifest.js +0 -67
  303. package/dist/bin/create-export-manifest.js.map +0 -1
  304. package/dist/bin/dev-portal/AppLoader.js +0 -80
  305. package/dist/bin/dev-portal/AppLoader.js.map +0 -1
  306. package/dist/bin/dev-portal/BookMarkSideSheet.js +0 -13
  307. package/dist/bin/dev-portal/BookMarkSideSheet.js.map +0 -1
  308. package/dist/bin/dev-portal/ContextSelector/ContextSelector.js +0 -40
  309. package/dist/bin/dev-portal/ContextSelector/ContextSelector.js.map +0 -1
  310. package/dist/bin/dev-portal/ContextSelector/index.js +0 -2
  311. package/dist/bin/dev-portal/ContextSelector/index.js.map +0 -1
  312. package/dist/bin/dev-portal/ContextSelector/useContextResolver.js +0 -216
  313. package/dist/bin/dev-portal/ContextSelector/useContextResolver.js.map +0 -1
  314. package/dist/bin/dev-portal/EquinorLoader.js +0 -14
  315. package/dist/bin/dev-portal/EquinorLoader.js.map +0 -1
  316. package/dist/bin/dev-portal/ErrorViewer.js +0 -7
  317. package/dist/bin/dev-portal/ErrorViewer.js.map +0 -1
  318. package/dist/bin/dev-portal/FusionLogo.js +0 -4
  319. package/dist/bin/dev-portal/FusionLogo.js.map +0 -1
  320. package/dist/bin/dev-portal/Header.Actions.js +0 -12
  321. package/dist/bin/dev-portal/Header.Actions.js.map +0 -1
  322. package/dist/bin/dev-portal/Header.js +0 -41
  323. package/dist/bin/dev-portal/Header.js.map +0 -1
  324. package/dist/bin/dev-portal/PersonSideSheet/index.js +0 -32
  325. package/dist/bin/dev-portal/PersonSideSheet/index.js.map +0 -1
  326. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js +0 -16
  327. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js.map +0 -1
  328. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js +0 -15
  329. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js.map +0 -1
  330. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js +0 -13
  331. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js.map +0 -1
  332. package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js +0 -19
  333. package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js.map +0 -1
  334. package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js +0 -30
  335. package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js.map +0 -1
  336. package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js +0 -3
  337. package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js.map +0 -1
  338. package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js.map +0 -1
  339. package/dist/bin/dev-portal/Router.js +0 -59
  340. package/dist/bin/dev-portal/Router.js.map +0 -1
  341. package/dist/bin/dev-portal/config.js +0 -79
  342. package/dist/bin/dev-portal/config.js.map +0 -1
  343. package/dist/bin/dev-portal/main.js +0 -13
  344. package/dist/bin/dev-portal/main.js.map +0 -1
  345. package/dist/bin/dev-portal/resources/fallback-photo.svg.js +0 -3
  346. package/dist/bin/dev-portal/resources/fallback-photo.svg.js.map +0 -1
  347. package/dist/bin/dev-portal/useAppContextNavigation.js +0 -87
  348. package/dist/bin/dev-portal/useAppContextNavigation.js.map +0 -1
  349. package/dist/bin/main.app.js +0 -172
  350. package/dist/bin/main.app.js.map +0 -1
  351. package/dist/bin/main.js +0 -20
  352. package/dist/bin/main.js.map +0 -1
  353. package/dist/bin/public/assets/index-Cyqq53lr.js +0 -3686
  354. package/dist/bin/public/index.html +0 -37
  355. package/dist/bin/publish-application.js +0 -96
  356. package/dist/bin/publish-application.js.map +0 -1
  357. package/dist/bin/tag-application.js +0 -73
  358. package/dist/bin/tag-application.js.map +0 -1
  359. package/dist/bin/upload-application.js +0 -63
  360. package/dist/bin/upload-application.js.map +0 -1
  361. package/dist/bin/upload-export-config.js +0 -78
  362. package/dist/bin/upload-export-config.js.map +0 -1
  363. package/dist/bin/utils/execute-command.js +0 -14
  364. package/dist/bin/utils/execute-command.js.map +0 -1
  365. package/dist/bin/utils/format.js +0 -16
  366. package/dist/bin/utils/format.js.map +0 -1
  367. package/dist/bin/utils/getEndpointUrl.js +0 -40
  368. package/dist/bin/utils/getEndpointUrl.js.map +0 -1
  369. package/dist/bin/utils/index.js +0 -14
  370. package/dist/bin/utils/index.js.map +0 -1
  371. package/dist/bin/utils/isAppRegistered.js +0 -26
  372. package/dist/bin/utils/isAppRegistered.js.map +0 -1
  373. package/dist/bin/utils/load-app-config.js +0 -26
  374. package/dist/bin/utils/load-app-config.js.map +0 -1
  375. package/dist/bin/utils/load-manifest.js +0 -31
  376. package/dist/bin/utils/load-manifest.js.map +0 -1
  377. package/dist/bin/utils/load-package.js +0 -18
  378. package/dist/bin/utils/load-package.js.map +0 -1
  379. package/dist/bin/utils/load-vite-config.js +0 -45
  380. package/dist/bin/utils/load-vite-config.js.map +0 -1
  381. package/dist/bin/utils/proxy-request-logger.js +0 -33
  382. package/dist/bin/utils/proxy-request-logger.js.map +0 -1
  383. package/dist/bin/utils/publishAppConfig.js +0 -29
  384. package/dist/bin/utils/publishAppConfig.js.map +0 -1
  385. package/dist/bin/utils/requireToken.js +0 -9
  386. package/dist/bin/utils/requireToken.js.map +0 -1
  387. package/dist/bin/utils/spinner.js +0 -65
  388. package/dist/bin/utils/spinner.js.map +0 -1
  389. package/dist/bin/utils/tagAppBundle.js +0 -26
  390. package/dist/bin/utils/tagAppBundle.js.map +0 -1
  391. package/dist/bin/utils/uploadAppBundle.js +0 -45
  392. package/dist/bin/utils/uploadAppBundle.js.map +0 -1
  393. package/dist/lib/app-config.js +0 -32
  394. package/dist/lib/app-config.js.map +0 -1
  395. package/dist/lib/app-manifest.js +0 -142
  396. package/dist/lib/app-manifest.js.map +0 -1
  397. package/dist/lib/app-package.js.map +0 -1
  398. package/dist/lib/index.js +0 -4
  399. package/dist/lib/index.js.map +0 -1
  400. package/dist/lib/plugins/app-assets/app-asset-plugin.js +0 -96
  401. package/dist/lib/plugins/app-assets/app-asset-plugin.js.map +0 -1
  402. package/dist/lib/plugins/app-assets/emit-asset.js +0 -46
  403. package/dist/lib/plugins/app-assets/emit-asset.js.map +0 -1
  404. package/dist/lib/plugins/app-assets/extension-filter-pattern.js.map +0 -1
  405. package/dist/lib/plugins/app-assets/index.js +0 -4
  406. package/dist/lib/plugins/app-assets/index.js.map +0 -1
  407. package/dist/lib/plugins/app-assets/read-asset-content.js +0 -34
  408. package/dist/lib/plugins/app-assets/read-asset-content.js.map +0 -1
  409. package/dist/lib/plugins/app-assets/resolve-asset-id.js +0 -54
  410. package/dist/lib/plugins/app-assets/resolve-asset-id.js.map +0 -1
  411. package/dist/lib/plugins/app-assets/static.js +0 -15
  412. package/dist/lib/plugins/app-assets/static.js.map +0 -1
  413. package/dist/lib/plugins/app-proxy/app-proxy-plugin.js +0 -125
  414. package/dist/lib/plugins/app-proxy/app-proxy-plugin.js.map +0 -1
  415. package/dist/lib/plugins/app-proxy/index.js +0 -2
  416. package/dist/lib/plugins/app-proxy/index.js.map +0 -1
  417. package/dist/lib/plugins/app-settings/index.js +0 -36
  418. package/dist/lib/plugins/app-settings/index.js.map +0 -1
  419. package/dist/lib/plugins/external-public/external-public-plugin.js +0 -101
  420. package/dist/lib/plugins/external-public/external-public-plugin.js.map +0 -1
  421. package/dist/lib/plugins/external-public/index.js +0 -2
  422. package/dist/lib/plugins/external-public/index.js.map +0 -1
  423. package/dist/lib/plugins/help-proxy/help-proxy-plugin.js +0 -78
  424. package/dist/lib/plugins/help-proxy/help-proxy-plugin.js.map +0 -1
  425. package/dist/lib/plugins/help-proxy/index.js +0 -2
  426. package/dist/lib/plugins/help-proxy/index.js.map +0 -1
  427. package/dist/lib/utils/assert.js +0 -28
  428. package/dist/lib/utils/assert.js.map +0 -1
  429. package/dist/lib/utils/config.js +0 -67
  430. package/dist/lib/utils/config.js.map +0 -1
  431. package/dist/lib/utils/expect.js.map +0 -1
  432. package/dist/lib/utils/file-exists.js.map +0 -1
  433. package/dist/lib/utils/parse-json-request.js.map +0 -1
  434. package/dist/lib/utils/ts-transpile.js +0 -45
  435. package/dist/lib/utils/ts-transpile.js.map +0 -1
  436. package/dist/lib/vite-config.js +0 -76
  437. package/dist/lib/vite-config.js.map +0 -1
  438. package/dist/lib/vite-logger.js +0 -21
  439. package/dist/lib/vite-logger.js.map +0 -1
  440. package/dist/schemas.js +0 -14
  441. package/dist/schemas.js.map +0 -1
  442. package/dist/types/bin/build-application.d.ts +0 -13
  443. package/dist/types/bin/bundle-application.d.ts +0 -4
  444. package/dist/types/bin/create-dev-serve.d.ts +0 -12
  445. package/dist/types/bin/create-export-config.d.ts +0 -13
  446. package/dist/types/bin/create-export-manifest.d.ts +0 -16
  447. package/dist/types/bin/dev-portal/AppLoader.d.ts +0 -11
  448. package/dist/types/bin/dev-portal/BookMarkSideSheet.d.ts +0 -6
  449. package/dist/types/bin/dev-portal/ContextSelector/ContextSelector.d.ts +0 -8
  450. package/dist/types/bin/dev-portal/ContextSelector/index.d.ts +0 -1
  451. package/dist/types/bin/dev-portal/ContextSelector/useContextResolver.d.ts +0 -15
  452. package/dist/types/bin/dev-portal/EquinorLoader.d.ts +0 -5
  453. package/dist/types/bin/dev-portal/ErrorViewer.d.ts +0 -4
  454. package/dist/types/bin/dev-portal/FusionLogo.d.ts +0 -6
  455. package/dist/types/bin/dev-portal/Header.Actions.d.ts +0 -7
  456. package/dist/types/bin/dev-portal/Header.d.ts +0 -2
  457. package/dist/types/bin/dev-portal/PersonSideSheet/index.d.ts +0 -11
  458. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.d.ts +0 -6
  459. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.d.ts +0 -5
  460. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.d.ts +0 -5
  461. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.d.ts +0 -5
  462. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/Styled.d.ts +0 -6
  463. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/index.d.ts +0 -2
  464. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/types.d.ts +0 -5
  465. package/dist/types/bin/dev-portal/Router.d.ts +0 -1
  466. package/dist/types/bin/dev-portal/config.d.ts +0 -3
  467. package/dist/types/bin/dev-portal/main.d.ts +0 -1
  468. package/dist/types/bin/dev-portal/resources/fallback-photo.svg.d.ts +0 -2
  469. package/dist/types/bin/dev-portal/useAppContextNavigation.d.ts +0 -5
  470. package/dist/types/bin/main.d.ts +0 -1
  471. package/dist/types/bin/publish-application.d.ts +0 -6
  472. package/dist/types/bin/tag-application.d.ts +0 -12
  473. package/dist/types/bin/upload-application.d.ts +0 -6
  474. package/dist/types/bin/upload-export-config.d.ts +0 -10
  475. package/dist/types/bin/utils/execute-command.d.ts +0 -8
  476. package/dist/types/bin/utils/getEndpointUrl.d.ts +0 -10
  477. package/dist/types/bin/utils/isAppRegistered.d.ts +0 -5
  478. package/dist/types/bin/utils/load-app-config.d.ts +0 -10
  479. package/dist/types/bin/utils/load-manifest.d.ts +0 -10
  480. package/dist/types/bin/utils/load-package.d.ts +0 -5
  481. package/dist/types/bin/utils/load-vite-config.d.ts +0 -10
  482. package/dist/types/bin/utils/proxy-request-logger.d.ts +0 -15
  483. package/dist/types/bin/utils/publishAppConfig.d.ts +0 -9
  484. package/dist/types/bin/utils/requireToken.d.ts +0 -4
  485. package/dist/types/bin/utils/tagAppBundle.d.ts +0 -7
  486. package/dist/types/bin/utils/uploadAppBundle.d.ts +0 -7
  487. package/dist/types/lib/app-config.d.ts +0 -27
  488. package/dist/types/lib/app-manifest.d.ts +0 -52
  489. package/dist/types/lib/plugins/app-assets/app-asset-plugin.d.ts +0 -36
  490. package/dist/types/lib/plugins/app-assets/emit-asset.d.ts +0 -18
  491. package/dist/types/lib/plugins/app-assets/index.d.ts +0 -3
  492. package/dist/types/lib/plugins/app-assets/read-asset-content.d.ts +0 -14
  493. package/dist/types/lib/plugins/app-assets/resolve-asset-id.d.ts +0 -16
  494. package/dist/types/lib/plugins/app-assets/static.d.ts +0 -5
  495. package/dist/types/lib/plugins/app-proxy/app-proxy-plugin.d.ts +0 -89
  496. package/dist/types/lib/plugins/app-proxy/index.d.ts +0 -1
  497. package/dist/types/lib/plugins/app-settings/index.d.ts +0 -32
  498. package/dist/types/lib/plugins/external-public/external-public-plugin.d.ts +0 -30
  499. package/dist/types/lib/plugins/external-public/index.d.ts +0 -1
  500. package/dist/types/lib/plugins/help-proxy/help-proxy-plugin.d.ts +0 -42
  501. package/dist/types/lib/plugins/help-proxy/index.d.ts +0 -1
  502. package/dist/types/lib/utils/config.d.ts +0 -32
  503. package/dist/types/lib/utils/ts-transpile.d.ts +0 -2
  504. package/dist/types/lib/vite-config.d.ts +0 -17
  505. package/dist/types/lib/vite-logger.d.ts +0 -2
  506. package/dist/version.js +0 -3
  507. package/dist/version.js.map +0 -1
  508. /package/dist/{bin/dev-portal/PersonSideSheet/sheets → esm/lib}/types.js +0 -0
  509. /package/dist/{lib → esm/lib}/utils/expect.js +0 -0
  510. /package/dist/{lib → esm/lib}/utils/file-exists.js +0 -0
  511. /package/dist/{lib → esm/lib}/utils/types.js +0 -0
  512. /package/dist/types/{bin/main.app.d.ts → cli/commands/index.d.ts} +0 -0
  513. /package/dist/types/lib/{plugins/app-assets/extension-filter-pattern.d.ts → utils/extension-filter.d.ts} +0 -0
@@ -0,0 +1,60 @@
1
+ import type { RuntimeEnv } from '../lib';
2
+ import type { ConsoleLogger } from './utils';
3
+ /**
4
+ * Options for resolving the portal manifest.
5
+ *
6
+ * This type defines the shape of the options object accepted by
7
+ * {@link loadPortalManifest}. It allows for optional logging, environment overrides,
8
+ * and a custom manifest file path.
9
+ *
10
+ * @public
11
+ */
12
+ export type ResolvePortalManifestOptions = {
13
+ /**
14
+ * Logger instance for outputting progress and debug information (optional).
15
+ */
16
+ log?: ConsoleLogger | null;
17
+ /**
18
+ * Path to a specific manifest file to resolve (optional).
19
+ */
20
+ manifest?: string;
21
+ /**
22
+ * Partial runtime environment overrides (optional).
23
+ */
24
+ env?: Partial<RuntimeEnv>;
25
+ };
26
+ /**
27
+ * Loads and resolves the portal manifest based on the provided options.
28
+ *
29
+ * This function resolves the app package, sets up the runtime environment, and loads the portal manifest.
30
+ * Logging is supported for debugging and progress tracking. Returns the manifest, package, and environment.
31
+ *
32
+ * @param options - The options for resolving the portal manifest.
33
+ * @returns An object containing the resolved manifest, package, and runtime environment.
34
+ * @throws Will throw an error if resolving the application package or manifest fails.
35
+ * @public
36
+ */
37
+ export declare const loadPortalManifest: (options: ResolvePortalManifestOptions) => Promise<{
38
+ manifest: {
39
+ build: {
40
+ version: string;
41
+ timestamp: string;
42
+ commitSha: string;
43
+ allowedExtensions: string[];
44
+ templateEntry: string;
45
+ schemaEntry: string;
46
+ config?: Record<string, unknown> | undefined;
47
+ githubRepo?: string | undefined;
48
+ projectPage?: string | undefined;
49
+ assetPath?: string | undefined;
50
+ annotations?: Record<string, string> | undefined;
51
+ schema?: Record<string, unknown> | undefined;
52
+ };
53
+ name: string;
54
+ displayName?: string | undefined;
55
+ description?: string | undefined;
56
+ };
57
+ pkg: import("../lib").ResolvedPackage;
58
+ env: RuntimeEnv;
59
+ }>;
60
+ export default loadPortalManifest;
@@ -0,0 +1,54 @@
1
+ import type { ConsoleLogger } from './utils/ConsoleLogger';
2
+ /**
3
+ * Options for bundling a portal into an archive for distribution or deployment.
4
+ *
5
+ * This type defines the optional parameters for the {@link bundlePortal} function, including
6
+ * logger, manifest path, schema path, and archive name.
7
+ *
8
+ * @property log - Logger instance for outputting progress and debug information (optional).
9
+ * @property manifest - Path to the portal manifest file (optional).
10
+ * @property schema - Path to the portal schema file (optional).
11
+ * @property archive - Name or path of the output archive file (optional).
12
+ *
13
+ * @public
14
+ */
15
+ export type BundlePortalOptions = {
16
+ log?: ConsoleLogger | null;
17
+ manifest?: string;
18
+ schema?: string;
19
+ archive?: string;
20
+ };
21
+ /**
22
+ * Bundles the portal into an archive for distribution or deployment.
23
+ *
24
+ * This function builds the portal, validates the manifest, loads the schema, and creates an archive containing
25
+ * the portal manifest, schema, and metadata. Handles errors and logs progress for maintainability and debugging.
26
+ *
27
+ * @param options - Options for logger, manifest path, schema path, and archive name.
28
+ * @returns An object containing the archive path, portal manifest, and schema.
29
+ * @throws If the manifest build config is missing or packaging fails.
30
+ * @public
31
+ */
32
+ export declare const bundlePortal: (options: BundlePortalOptions) => Promise<{
33
+ archive: import("adm-zip");
34
+ manifest: {
35
+ build: {
36
+ version: string;
37
+ timestamp: string;
38
+ commitSha: string;
39
+ allowedExtensions: string[];
40
+ templateEntry: string;
41
+ schemaEntry: string;
42
+ config?: Record<string, unknown> | undefined;
43
+ githubRepo?: string | undefined;
44
+ projectPage?: string | undefined;
45
+ assetPath?: string | undefined;
46
+ annotations?: Record<string, string> | undefined;
47
+ schema?: Record<string, unknown> | undefined;
48
+ };
49
+ name: string;
50
+ displayName?: string | undefined;
51
+ description?: string | undefined;
52
+ };
53
+ schema: import("../lib/portal").PortalSchema;
54
+ }>;
@@ -0,0 +1,51 @@
1
+ import { type ConsoleLogger } from './utils';
2
+ import type { FusionFramework } from '../lib/framework.node.js';
3
+ /**
4
+ * Allowed tags for portal versions in the portal service.
5
+ *
6
+ * - `latest`: Marks the most recent stable version of the portal template.
7
+ * - `preview`: Marks a pre-release or preview version for testing or review.
8
+ *
9
+ * Used by {@link tagPortal} to validate and apply version tags.
10
+ *
11
+ * @public
12
+ */
13
+ export declare enum AllowedTags {
14
+ Latest = "latest",
15
+ Preview = "preview"
16
+ }
17
+ /**
18
+ * Options for tagging a portal template version in the portal service.
19
+ *
20
+ * This type defines the required and optional parameters for the
21
+ * {@link tagPortal} function, including the tag type, portal name,
22
+ * version, framework instance, and logger.
23
+ *
24
+ * @property tag - The tag to apply to the portal version (e.g., 'latest' or 'preview').
25
+ * @property name - The unique name identifying the portal template.
26
+ * @property version - The version of the portal template to tag.
27
+ * @property framework - The FusionFramework instance used for service discovery and requests.
28
+ * @property log - Optional logger for outputting progress and debug information.
29
+ *
30
+ * @public
31
+ */
32
+ export type TagPortalOptions = {
33
+ tag: AllowedTags;
34
+ name: string;
35
+ version: string;
36
+ framework: FusionFramework;
37
+ log?: ConsoleLogger | null;
38
+ };
39
+ /**
40
+ * Tags a portal template version in the portal service with a specified tag (e.g., 'latest' or 'preview').
41
+ *
42
+ * This function validates input, creates a client for the portal service, and sends a tag request.
43
+ * It provides detailed logging and error handling for common failure scenarios.
44
+ *
45
+ * @param options - Tag, portal name, version, framework instance, and logger.
46
+ * @returns The result of the tag operation from the portal service.
47
+ * @throws If the tag, name, or version is invalid, or if the tag operation fails.
48
+ * @public
49
+ */
50
+ export declare const tagPortal: (options: TagPortalOptions) => Promise<void>;
51
+ export default tagPortal;
@@ -0,0 +1,37 @@
1
+ import AdmZip from 'adm-zip';
2
+ import { type ConsoleLogger } from './utils';
3
+ import type { FusionFramework } from '../lib/framework.node.js';
4
+ /**
5
+ * Options for uploading a portal bundle to the portal service.
6
+ *
7
+ * This type defines the required and optional parameters for the
8
+ * {@link uploadPortalBundle} function, including the bundle file or AdmZip instance,
9
+ * portal name, framework instance, and logger.
10
+ *
11
+ * @property fileOrBundle - Path to the bundle file or an AdmZip instance.
12
+ * @property name - Optional portal name to override bundle metadata.
13
+ * @property framework - The FusionFramework instance used for service discovery and requests.
14
+ * @property log - Optional logger for outputting progress and debug information.
15
+ *
16
+ * @public
17
+ */
18
+ export type UploadPortalOptions = {
19
+ fileOrBundle: string | AdmZip;
20
+ name?: string;
21
+ framework: FusionFramework;
22
+ log?: ConsoleLogger;
23
+ };
24
+ /**
25
+ * Uploads a portal bundle to the portal service for publishing or updating a portal template.
26
+ *
27
+ * This function loads the bundle, resolves the portal name (from argument or metadata),
28
+ * reads the bundle content, and uploads it to the portal service. Handles and logs errors
29
+ * for common failure scenarios, including HTTP status codes and bundle reading issues.
30
+ *
31
+ * @param opt - Options for bundle file, portal name, framework, and logger.
32
+ * @returns A promise that resolves when the upload is complete.
33
+ * @throws If bundle reading or upload fails, or if the portal service returns an error status.
34
+ * @public
35
+ */
36
+ export declare const uploadPortalBundle: (opt: UploadPortalOptions) => Promise<void>;
37
+ export default uploadPortalBundle;
@@ -0,0 +1,84 @@
1
+ import { Spinner } from './spinner.js';
2
+ /**
3
+ * ConsoleLogger is a utility class for logging progress, status, and debug information in CLI applications.
4
+ * It uses a spinner for visual feedback and supports debug mode for verbose output.
5
+ *
6
+ * @remarks
7
+ * This class is designed for CLI tools that require both spinner-based progress indication and
8
+ * structured logging at various levels (info, warn, error, debug).
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const logger = new ConsoleLogger('My CLI', { debug: true });
13
+ * logger.start('Starting task...');
14
+ * logger.succeed('Task complete!');
15
+ * logger.debug('Debug info');
16
+ * ```
17
+ */
18
+ export declare class ConsoleLogger {
19
+ /**
20
+ * The spinner instance used for progress and status messages.
21
+ */
22
+ readonly spinner: Spinner;
23
+ /**
24
+ * Indicates if debug mode is enabled for verbose output.
25
+ */
26
+ readonly debugMode: boolean;
27
+ /**
28
+ * Creates a new ConsoleLogger.
29
+ * @param title - Prefix for spinner/log messages.
30
+ * @param options - Optional debug flag.
31
+ */
32
+ constructor(title: string, options?: {
33
+ debug?: boolean;
34
+ });
35
+ /**
36
+ * Start the spinner with a message.
37
+ * @param args - Message parts to display.
38
+ */
39
+ start(...args: string[]): void;
40
+ /**
41
+ * Mark spinner as succeeded with a message.
42
+ * @param args - Message parts to display.
43
+ */
44
+ succeed(...args: string[]): void;
45
+ /**
46
+ * Mark spinner as failed with a message.
47
+ * @param args - Message parts to display.
48
+ */
49
+ fail(...args: string[]): void;
50
+ /**
51
+ * Log an error message to the console.
52
+ * @param args - Error message parts.
53
+ */
54
+ error(...args: any[]): void;
55
+ /**
56
+ * Log a warning message.
57
+ * @param args - Warning message parts.
58
+ */
59
+ warn(...args: string[]): void;
60
+ /**
61
+ * Log an informational message.
62
+ * @param args - Info message parts.
63
+ */
64
+ info(...args: string[]): void;
65
+ /**
66
+ * Alias for info.
67
+ * @param args - Info message parts.
68
+ */
69
+ log(...args: string[]): void;
70
+ /**
71
+ * Log debug messages if debugMode is enabled.
72
+ * @param args - Debug message parts.
73
+ */
74
+ debug(...args: any[]): void;
75
+ /**
76
+ * Attach spinner to native console output.
77
+ */
78
+ startNativeConsoleCapture(): void;
79
+ /**
80
+ * Detach spinner from native console output.
81
+ */
82
+ stopNativeConsoleCapture(): void;
83
+ }
84
+ export default ConsoleLogger;
@@ -0,0 +1,49 @@
1
+ import type { AppManifest } from '@equinor/fusion-framework-module-app';
2
+ import type { ApiAppConfig } from '@equinor/fusion-framework-module-app/schemas.js';
3
+ import type { RuntimeEnv } from '../../lib';
4
+ import { type UserConfig, type DevServerOptions, type FusionTemplateEnv } from '@equinor/fusion-framework-dev-server';
5
+ /**
6
+ * PortalManifest describes the minimal structure required for a portal manifest.
7
+ * Used for dev server portal routing and config.
8
+ */
9
+ type PortalManifest = {
10
+ id: string;
11
+ build: {
12
+ entrypoint: string;
13
+ };
14
+ };
15
+ /**
16
+ * PortalConfig is a placeholder for portal-specific configuration.
17
+ * Replace 'any' with a more specific type as needed.
18
+ */
19
+ type PortalConfig = Record<string, unknown>;
20
+ /**
21
+ * Options for creating a dev server configuration.
22
+ *
23
+ * @property template - Optional template environment overrides.
24
+ * @property portal - Optional portal manifest and config.
25
+ * @property app - Optional app manifest and config.
26
+ * @property server - Optional server options for the dev server.
27
+ */
28
+ export type CreateDevServerOptions = {
29
+ template?: Partial<FusionTemplateEnv>;
30
+ portal?: {
31
+ manifest: PortalManifest;
32
+ config: PortalConfig;
33
+ };
34
+ app?: {
35
+ manifest: AppManifest;
36
+ config?: ApiAppConfig;
37
+ };
38
+ server?: DevServerOptions['server'];
39
+ };
40
+ /**
41
+ * Creates the full dev server configuration for Fusion CLI.
42
+ * Applies app and portal routing as needed.
43
+ *
44
+ * @param options - Options for dev server config, including app/portal manifests and overrides.
45
+ * @returns The complete dev server options object.
46
+ */
47
+ export declare const createDevServerConfig: (options: CreateDevServerOptions) => DevServerOptions;
48
+ export declare const createDevServer: (env: RuntimeEnv, options: CreateDevServerOptions, overrides?: UserConfig) => Promise<import("vite").ViteDevServer>;
49
+ export {};
@@ -1,8 +1,35 @@
1
1
  import chalk from 'chalk';
2
2
  export { chalk };
3
+ /**
4
+ * Formats a file path for CLI output, with optional relative path and styling.
5
+ *
6
+ * @param path - The file path to format.
7
+ * @param opt - Optional formatting options.
8
+ * @param opt.relative - If true, formats as a relative path from cwd or opt.cwd.
9
+ * @param opt.cwd - The base directory for relative path calculation. Defaults to process.cwd().
10
+ * @returns The formatted file path, styled with chalk.blueBright.
11
+ *
12
+ * @example
13
+ * formatPath('/foo/bar/baz.txt', { relative: true });
14
+ */
3
15
  export declare const formatPath: (path: string, opt?: {
4
16
  relative?: boolean;
5
17
  cwd?: string;
6
18
  }) => string;
19
+ /**
20
+ * Formats a byte size value or file path into a human-readable string for CLI output.
21
+ *
22
+ * If the input is a string, it is treated as a file path and the file size is used.
23
+ * If the input is a number, it is formatted directly.
24
+ *
25
+ * @param input - File path (string) or byte size (number).
26
+ * @returns A formatted string representing the byte size, styled with chalk.yellowBright.
27
+ *
28
+ * @throws If the input is a string and the file does not exist.
29
+ *
30
+ * @example
31
+ * formatByteSize(1024); // '1 kB'
32
+ * formatByteSize('/path/to/file.zip'); // '2.3 MB'
33
+ */
7
34
  export declare const formatByteSize: (input: string | number) => string;
8
35
  export default chalk;
@@ -1,14 +1,4 @@
1
- export { getEndpointUrl } from './getEndpointUrl.js';
2
- export type { FusionEnv } from './getEndpointUrl.js';
3
- export { requireToken } from './requireToken.js';
4
- export { isAppRegistered } from './isAppRegistered.js';
5
- export { loadAppConfig } from './load-app-config.js';
6
- export { loadAppManifest } from './load-manifest.js';
7
- export { loadPackage } from './load-package.js';
8
- export { loadViteConfig } from './load-vite-config.js';
9
- export { formatPath, formatByteSize } from './format.js';
10
- export { executeCommand } from './execute-command.js';
11
- export { publishAppConfig } from './publishAppConfig.js';
12
- export { tagAppBundle } from './tagAppBundle.js';
13
- export { uploadAppBundle } from './uploadAppBundle.js';
1
+ export { formatPath, formatByteSize, chalk } from './format.js';
14
2
  export { Spinner } from './spinner.js';
3
+ export { ConsoleLogger } from './ConsoleLogger.js';
4
+ export { createDevServerConfig, createDevServer, type CreateDevServerOptions, } from './create-dev-server.js';
@@ -1,20 +1,95 @@
1
1
  import { type Options, type Ora } from 'ora';
2
+ /**
3
+ * Spinner utility class for CLI progress indication and logging.
4
+ * Wraps the `ora` spinner and provides additional features for console capture and global state.
5
+ *
6
+ * @remarks
7
+ * - Allows attaching/detaching spinner to native console output.
8
+ * - Supports global and cloneable spinner instances.
9
+ * - Provides info, success, warning, and failure logging methods.
10
+ *
11
+ * @example
12
+ * const spinner = new Spinner({ text: 'Loading...' });
13
+ * spinner.start('Processing');
14
+ * spinner.succeed('Done!');
15
+ */
2
16
  export declare class Spinner {
3
17
  #private;
18
+ /**
19
+ * Get the underlying ora instance for advanced usage.
20
+ */
4
21
  get ora(): Ora;
22
+ /**
23
+ * Attach or detach spinner to native console output.
24
+ * When enabled, console.log/info are redirected to spinner.info.
25
+ */
5
26
  set attachConsole(value: boolean);
27
+ /**
28
+ * Create and set a global spinner instance.
29
+ * @param options - Spinner options.
30
+ * @returns The global spinner instance.
31
+ */
6
32
  static Global(options?: Options): Spinner;
33
+ /**
34
+ * Clone a spinner instance, optionally from an existing spinner.
35
+ * @param spinner - Spinner to clone from, or use global spinner if omitted.
36
+ * @returns A new Spinner instance with the same prefixText.
37
+ */
7
38
  static Clone(spinner?: Spinner): Spinner;
39
+ /**
40
+ * Get the current global spinner instance.
41
+ */
8
42
  static get Current(): Spinner;
43
+ /**
44
+ * Set the current global spinner instance.
45
+ */
9
46
  static set Current(spinner: Spinner);
47
+ /**
48
+ * Create a new Spinner instance.
49
+ * @param options - Spinner options from ora.
50
+ */
10
51
  constructor(options?: Options);
52
+ /**
53
+ * Get the prefix text for the spinner.
54
+ */
11
55
  get prefixText(): string;
56
+ /**
57
+ * Log an informational message with the spinner.
58
+ * @param args - Message parts to display.
59
+ */
12
60
  info(...args: string[]): void;
61
+ /**
62
+ * Mark spinner as succeeded with a message.
63
+ * @param args - Message parts to display.
64
+ */
13
65
  succeed(...args: string[]): void;
66
+ /**
67
+ * Start the spinner with a message.
68
+ * @param args - Message parts to display.
69
+ */
14
70
  start(...args: string[]): void;
71
+ /**
72
+ * Mark spinner as failed with a message.
73
+ * @param args - Message parts to display.
74
+ */
15
75
  fail(...args: string[]): void;
76
+ /**
77
+ * Log a warning message with the spinner.
78
+ * @param args - Message parts to display.
79
+ */
16
80
  warn(...args: string[]): void;
81
+ /**
82
+ * Clear the spinner output.
83
+ */
17
84
  clear(): void;
85
+ /**
86
+ * Stop the spinner without marking as success or failure.
87
+ */
18
88
  stop(): void;
89
+ /**
90
+ * Stop the spinner and persist output with custom options.
91
+ * @param args - Arguments for ora's stopAndPersist.
92
+ */
19
93
  stopAndPersist(...args: Parameters<Ora['stopAndPersist']>): void;
20
94
  }
95
+ export type { Options as SpinnerOptions } from 'ora';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file defines deprecated command aliases to support a smoother transition to v11.
3
+ * Each alias maps an old "build-*" command to its new equivalent, providing warnings and guidance for users.
4
+ * These aliases help maintain backward compatibility and inform users about updated command usage.
5
+ */
6
+ export {};
@@ -0,0 +1,27 @@
1
+ /**
2
+ * CLI command: `build`
3
+ *
4
+ * Builds the application using a manifest file and environment-specific configuration.
5
+ *
6
+ * Features:
7
+ * - If no manifest is provided, searches for a default `app.manifest.[ts|js|json]` in the current directory.
8
+ * - Supports environment variables to customize the build process.
9
+ * - Provides a debug mode for verbose logging.
10
+ *
11
+ * Usage:
12
+ * $ fusion build
13
+ * $ fusion build app.manifest.dev.ts --debug
14
+ *
15
+ * Arguments:
16
+ * [manifest] Manifest file to use for building (e.g., app.manifest.ts)
17
+ *
18
+ * Options:
19
+ * -d, --debug Enable debug mode for verbose logging (default: false)
20
+ *
21
+ * Example:
22
+ * $ fusion build app.manifest.dev.ts --debug
23
+ *
24
+ * @see buildApplication for build implementation details
25
+ */
26
+ export declare const command: import("commander").Command;
27
+ export default command;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * CLI command: `check`
3
+ *
4
+ * Checks if the application is registered in the Fusion app store.
5
+ *
6
+ * Features:
7
+ * - Verifies the registration status of your application in the Fusion app store.
8
+ * - Helps identify issues with app registration or configuration.
9
+ * - Supports authentication and environment options.
10
+ * - Provides a debug mode for verbose logging.
11
+ *
12
+ * Usage:
13
+ * $ fusion check [options]
14
+ *
15
+ * Options:
16
+ * -d, --debug Enable debug mode for verbose logging (default: false)
17
+ * --environment <env> Specify the environment (see available environments)
18
+ * --token <token> Provide an authentication token (if required)
19
+ *
20
+ * Example:
21
+ * $ fusion check --environment prod --debug
22
+ *
23
+ * @see checkApp for implementation details
24
+ */
25
+ export declare const command: import("commander").Command;
26
+ export default command;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * CLI command: `config`
3
+ *
4
+ * Generates and/or publishes the application configuration for Fusion apps.
5
+ *
6
+ * Features:
7
+ * - Outputs the generated config to stdout or a file.
8
+ * - Use --publish to upload the config to the Fusion app registry.
9
+ * - Options [token, tenant, client, manifest] are only relevant when --publish is used.
10
+ * - Option [-e, --env] cannot be set to dev when --publish is used.
11
+ *
12
+ * Usage:
13
+ * $ fusion config [config] [options]
14
+ *
15
+ * Arguments:
16
+ * [config] Config build file to use (e.g., app.config[.env]?.[ts,js,json])
17
+ *
18
+ * Options:
19
+ * --debug Enable debug mode for verbose logging
20
+ * --silent Silent mode, suppresses output except errors
21
+ * --publish Publish config to Fusion app registry
22
+ * --manifest <path> Path to the app manifest file (required with --publish)
23
+ * -e, --env <env> Target environment
24
+ * -o, --output <stdout|path> Output to stdout or a file (default: stdout)
25
+ *
26
+ * Example:
27
+ * $ fusion config app.config.ts
28
+ * $ fusion config app.config.prod.ts --output ./dist/app.config.json
29
+ * $ fusion config --publish --manifest app.manifest.ts --env prod
30
+ *
31
+ * @see generateApplicationConfig, publishAppConfig for implementation details
32
+ */
33
+ export declare const command: import("commander").Command;
34
+ export default command;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * CLI command: `dev`
3
+ *
4
+ * Starts the application in development mode with a local dev server.
5
+ *
6
+ * Features:
7
+ * - Launches the development server for your application.
8
+ * - Supports custom manifest/config files, runtime environment, and port selection.
9
+ * - Debug mode available for verbose logging.
10
+ *
11
+ * Usage:
12
+ * $ fusion app dev [options]
13
+ *
14
+ * Options:
15
+ * --debug Enable debug mode
16
+ * --manifest <path> Path to the app manifest file (app.manifest[.env]?.[ts,js,json])
17
+ * --config <path> Path to the app config file (app.config[.env]?.[ts,js,json])
18
+ * --env <environment> Runtime environment for the dev server (default: local)
19
+ * --port <port> Port for the development server (default: 3000)
20
+ *
21
+ * Example:
22
+ * $ fusion app dev
23
+ * $ fusion app dev --port 4000
24
+ * $ fusion app dev --manifest ./app.manifest.local.ts --config ./app.config.ts
25
+ *
26
+ * @see startAppDevServer for implementation details
27
+ */
28
+ export declare const command: import("commander").Command;
29
+ export default command;
@@ -0,0 +1,3 @@
1
+ import './alias.js';
2
+ export declare const command: import("commander").Command;
3
+ export default command;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * CLI command: `manifest`
3
+ *
4
+ * Builds and outputs the application manifest for Fusion apps.
5
+ *
6
+ * Features:
7
+ * - Prints the manifest to stdout by default, or writes to a file with --output.
8
+ * - Supports custom manifest build files or defaults to app.manifest[.env]?.[ts,js,json].
9
+ * - Debug and silent modes for flexible output.
10
+ *
11
+ * Usage:
12
+ * $ fusion manifest [manifest] [options]
13
+ *
14
+ * Arguments:
15
+ * [manifest] Manifest build file to use (e.g., app.manifest[.env]?.[ts,js,json])
16
+ *
17
+ * Options:
18
+ * -d, --debug Enable debug mode for verbose logging
19
+ * -o, --output Write manifest to the specified file (default: stdout)
20
+ * -s, --silent Silent mode, suppresses output except errors
21
+ *
22
+ * Example:
23
+ * $ fusion manifest
24
+ * $ fusion manifest app.manifest.prod.ts --output ./dist/app.manifest.json
25
+ * $ fusion manifest --debug
26
+ *
27
+ * @see loadAppManifest for implementation details
28
+ */
29
+ export declare const command: import("commander").Command;
30
+ export default command;