@ankhorage/studio 6.0.2 → 7.0.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 (479) hide show
  1. package/README.md +23 -7
  2. package/apm/update.json +2 -2
  3. package/dist/authSettings.d.ts +3 -3
  4. package/dist/authSettings.js +3 -3
  5. package/dist/bindingDiagnosticsModel.d.ts +1 -1
  6. package/dist/bindingDiagnosticsModel.d.ts.map +1 -1
  7. package/dist/bindingDiagnosticsModel.js +10 -10
  8. package/dist/bindingDiagnosticsModel.js.map +1 -1
  9. package/dist/bindingMetadataModel.d.ts +0 -2
  10. package/dist/bindingMetadataModel.d.ts.map +1 -1
  11. package/dist/bindingMetadataModel.js +3 -4
  12. package/dist/bindingMetadataModel.js.map +1 -1
  13. package/dist/bindingMutationModel.d.ts +4 -4
  14. package/dist/bindingMutationModel.d.ts.map +1 -1
  15. package/dist/bindingMutationModel.js +7 -8
  16. package/dist/bindingMutationModel.js.map +1 -1
  17. package/dist/bindingOperationModel.d.ts +2 -2
  18. package/dist/bindingOperationModel.js +7 -7
  19. package/dist/bindingSchemaModel.d.ts +3 -3
  20. package/dist/bindingSchemaModel.js +5 -5
  21. package/dist/canExecuteProjectDeployRelease.d.ts +1 -1
  22. package/dist/canExecuteProjectDeployRelease.js +1 -1
  23. package/dist/canvasDragModel.d.ts +5 -7
  24. package/dist/canvasDragModel.d.ts.map +1 -1
  25. package/dist/canvasDragModel.js +9 -16
  26. package/dist/canvasDragModel.js.map +1 -1
  27. package/dist/canvasDropZones.d.ts +1 -2
  28. package/dist/canvasDropZones.d.ts.map +1 -1
  29. package/dist/canvasDropZones.js +1 -2
  30. package/dist/canvasDropZones.js.map +1 -1
  31. package/dist/cli/index.js +1 -1
  32. package/dist/contractGuards.d.ts +2 -2
  33. package/dist/contractGuards.js +2 -2
  34. package/dist/core/StudioContext.d.ts +1 -1
  35. package/dist/core/StudioContext.js +1 -1
  36. package/dist/core/StudioProvider.js +5 -5
  37. package/dist/core/mediaAuthoringHostClient.d.ts +2 -2
  38. package/dist/core/mediaAuthoringHostClient.js +2 -2
  39. package/dist/core/mediaRemovalCoordinator.d.ts +1 -1
  40. package/dist/core/mediaRemovalCoordinator.d.ts.map +1 -1
  41. package/dist/core/mediaRemovalCoordinator.js +9 -10
  42. package/dist/core/mediaRemovalCoordinator.js.map +1 -1
  43. package/dist/core/studioManifestDraftModel.d.ts +7 -7
  44. package/dist/core/studioManifestDraftModel.js +7 -7
  45. package/dist/core/studioManifestPersistenceModel.d.ts +1 -1
  46. package/dist/core/studioManifestPersistenceModel.js +1 -1
  47. package/dist/createProjectDeployRequest.d.ts +0 -1
  48. package/dist/createProjectDeployRequest.d.ts.map +1 -1
  49. package/dist/createProjectDeployRequest.js +0 -1
  50. package/dist/createProjectDeployRequest.js.map +1 -1
  51. package/dist/externalApiApi.d.ts +3 -3
  52. package/dist/externalApiApi.d.ts.map +1 -1
  53. package/dist/externalApiApi.js +24 -40
  54. package/dist/externalApiApi.js.map +1 -1
  55. package/dist/features/project-updates/adapters/inbound/ProjectUpdateDashboardPanel.d.ts.map +1 -1
  56. package/dist/features/project-updates/adapters/inbound/ProjectUpdateDashboardPanel.js +12 -4
  57. package/dist/features/project-updates/adapters/inbound/ProjectUpdateDashboardPanel.js.map +1 -1
  58. package/dist/features/project-updates/adapters/outbound/createStudioGeneratedPackagePolicyProjectReadPort.d.ts +4 -0
  59. package/dist/features/project-updates/adapters/outbound/createStudioGeneratedPackagePolicyProjectReadPort.d.ts.map +1 -0
  60. package/dist/features/project-updates/adapters/outbound/createStudioGeneratedPackagePolicyProjectReadPort.js +30 -0
  61. package/dist/features/project-updates/adapters/outbound/createStudioGeneratedPackagePolicyProjectReadPort.js.map +1 -0
  62. package/dist/features/project-updates/adapters/outbound/getGeneratedPackagePolicy.js +0 -8
  63. package/dist/features/project-updates/adapters/outbound/getGeneratedPackagePolicy.js.map +1 -1
  64. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyDescriptor.d.ts +4 -0
  65. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyDescriptor.d.ts.map +1 -0
  66. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyDescriptor.js +21 -0
  67. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyDescriptor.js.map +1 -0
  68. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyHandler.d.ts +4 -0
  69. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyHandler.d.ts.map +1 -0
  70. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyHandler.js +11 -0
  71. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyHandler.js.map +1 -0
  72. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyProjectionDescriptor.d.ts +4 -0
  73. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyProjectionDescriptor.d.ts.map +1 -0
  74. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyProjectionDescriptor.js +10 -0
  75. package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyProjectionDescriptor.js.map +1 -0
  76. package/dist/features/project-updates/application/resolveProjectUpdateDashboardPresentation.d.ts +11 -0
  77. package/dist/features/project-updates/application/resolveProjectUpdateDashboardPresentation.d.ts.map +1 -1
  78. package/dist/features/project-updates/application/resolveProjectUpdateDashboardPresentation.js +23 -8
  79. package/dist/features/project-updates/application/resolveProjectUpdateDashboardPresentation.js.map +1 -1
  80. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyApplyOwnerStepPort.d.ts +4 -0
  81. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyApplyOwnerStepPort.d.ts.map +1 -0
  82. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyApplyOwnerStepPort.js +176 -0
  83. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyApplyOwnerStepPort.js.map +1 -0
  84. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.d.ts +5 -0
  85. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.d.ts.map +1 -0
  86. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.js +148 -0
  87. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.js.map +1 -0
  88. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyProtocolPort.d.ts +5 -0
  89. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyProtocolPort.d.ts.map +1 -0
  90. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyProtocolPort.js +219 -0
  91. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyProtocolPort.js.map +1 -0
  92. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyUpdatePorts.d.ts +9 -0
  93. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyUpdatePorts.d.ts.map +1 -0
  94. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyUpdatePorts.js +17 -0
  95. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyUpdatePorts.js.map +1 -0
  96. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyVerifyOwnerStepPort.d.ts +4 -0
  97. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyVerifyOwnerStepPort.d.ts.map +1 -0
  98. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyVerifyOwnerStepPort.js +80 -0
  99. package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyVerifyOwnerStepPort.js.map +1 -0
  100. package/dist/features/project-updates/composition/createStudioProjectUpdateService.d.ts.map +1 -1
  101. package/dist/features/project-updates/composition/createStudioProjectUpdateService.js +11 -9
  102. package/dist/features/project-updates/composition/createStudioProjectUpdateService.js.map +1 -1
  103. package/dist/features/project-updates/constants.d.ts +2 -0
  104. package/dist/features/project-updates/constants.d.ts.map +1 -1
  105. package/dist/features/project-updates/constants.js +2 -0
  106. package/dist/features/project-updates/constants.js.map +1 -1
  107. package/dist/features/project-updates/domain/applyGeneratedPackagePolicy.d.ts.map +1 -1
  108. package/dist/features/project-updates/domain/applyGeneratedPackagePolicy.js +6 -3
  109. package/dist/features/project-updates/domain/applyGeneratedPackagePolicy.js.map +1 -1
  110. package/dist/features/project-updates/domain/createStudioGeneratedPackagePolicyExecutionContext.d.ts +4 -0
  111. package/dist/features/project-updates/domain/createStudioGeneratedPackagePolicyExecutionContext.d.ts.map +1 -0
  112. package/dist/features/project-updates/domain/createStudioGeneratedPackagePolicyExecutionContext.js +11 -0
  113. package/dist/features/project-updates/domain/createStudioGeneratedPackagePolicyExecutionContext.js.map +1 -0
  114. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyInventorySource.d.ts +5 -0
  115. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyInventorySource.d.ts.map +1 -0
  116. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyInventorySource.js +22 -0
  117. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyInventorySource.js.map +1 -0
  118. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyMutationTarget.d.ts +10 -0
  119. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyMutationTarget.d.ts.map +1 -0
  120. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyMutationTarget.js +21 -0
  121. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyMutationTarget.js.map +1 -0
  122. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyStatusSource.d.ts +5 -0
  123. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyStatusSource.d.ts.map +1 -0
  124. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyStatusSource.js +18 -0
  125. package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyStatusSource.js.map +1 -0
  126. package/dist/host/apis/createProjectEndpointCredentialResolver.d.ts +1 -1
  127. package/dist/host/apis/createProjectEndpointCredentialResolver.js +1 -1
  128. package/dist/host/apis/createTrustedEndpointTestFetch.d.ts +1 -1
  129. package/dist/host/apis/createTrustedEndpointTestFetch.js +1 -1
  130. package/dist/host/apis/createTrustedExternalApiFetch.d.ts +1 -1
  131. package/dist/host/apis/createTrustedExternalApiFetch.js +1 -1
  132. package/dist/host/apis/requestTrustedExternalApi.d.ts +3 -12
  133. package/dist/host/apis/requestTrustedExternalApi.d.ts.map +1 -1
  134. package/dist/host/apis/requestTrustedExternalApi.js +3 -53
  135. package/dist/host/apis/requestTrustedExternalApi.js.map +1 -1
  136. package/dist/host/apis/sanitizeExternalApiOperationTestResult.d.ts +1 -1
  137. package/dist/host/apis/sanitizeExternalApiOperationTestResult.js +1 -1
  138. package/dist/host/apis/studioExternalApiService.d.ts +1 -1
  139. package/dist/host/apis/studioExternalApiService.d.ts.map +1 -1
  140. package/dist/host/apis/studioExternalApiService.js +10 -17
  141. package/dist/host/apis/studioExternalApiService.js.map +1 -1
  142. package/dist/host/auth/projectAuthHealthService.d.ts +1 -1
  143. package/dist/host/auth/projectAuthHealthService.js +1 -1
  144. package/dist/host/createStudioHost.d.ts +1 -1
  145. package/dist/host/createStudioHost.js +1 -1
  146. package/dist/host/deploy/serializeProjectDeploySecret.d.ts.map +1 -1
  147. package/dist/host/deploy/serializeProjectDeploySecret.js +2 -9
  148. package/dist/host/deploy/serializeProjectDeploySecret.js.map +1 -1
  149. package/dist/host/http/apiRoutes.d.ts +1 -1
  150. package/dist/host/http/apiRoutes.d.ts.map +1 -1
  151. package/dist/host/http/apiRoutes.js +19 -29
  152. package/dist/host/http/apiRoutes.js.map +1 -1
  153. package/dist/host/http/authRoutes.js +1 -1
  154. package/dist/host/http/deployRoutes.d.ts.map +1 -1
  155. package/dist/host/http/deployRoutes.js +5 -11
  156. package/dist/host/http/deployRoutes.js.map +1 -1
  157. package/dist/host/http/mediaRoutes.d.ts.map +1 -1
  158. package/dist/host/http/mediaRoutes.js +10 -16
  159. package/dist/host/http/mediaRoutes.js.map +1 -1
  160. package/dist/host/http/moduleRoutes.d.ts.map +1 -1
  161. package/dist/host/http/moduleRoutes.js +8 -20
  162. package/dist/host/http/moduleRoutes.js.map +1 -1
  163. package/dist/host/http/secretRoutes.d.ts.map +1 -1
  164. package/dist/host/http/secretRoutes.js +10 -20
  165. package/dist/host/http/secretRoutes.js.map +1 -1
  166. package/dist/host/http/security.d.ts +1 -1
  167. package/dist/host/http/security.js +1 -1
  168. package/dist/host/http/server.d.ts +1 -1
  169. package/dist/host/http/server.js +1 -1
  170. package/dist/host/http/serverWithSecrets.d.ts +1 -1
  171. package/dist/host/http/serverWithSecrets.js +1 -1
  172. package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts +1 -1
  173. package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts.map +1 -1
  174. package/dist/host/layout/auth/resolveAuthLayoutPlan.js +7 -13
  175. package/dist/host/layout/auth/resolveAuthLayoutPlan.js.map +1 -1
  176. package/dist/host/layout/generatedImportComposer.d.ts +1 -1
  177. package/dist/host/layout/generatedImportComposer.js +3 -1
  178. package/dist/host/layout/generatedImportComposer.js.map +1 -1
  179. package/dist/host/layout/layoutGenerator.d.ts +2 -1
  180. package/dist/host/layout/layoutGenerator.d.ts.map +1 -1
  181. package/dist/host/layout/layoutGenerator.js +117 -69
  182. package/dist/host/layout/layoutGenerator.js.map +1 -1
  183. package/dist/host/layout/templates/auth/navigation.d.ts.map +1 -1
  184. package/dist/host/layout/templates/auth/navigation.js +2 -2
  185. package/dist/host/layout/templates/auth/navigation.js.map +1 -1
  186. package/dist/host/layout/templates/auth/oauth.d.ts.map +1 -1
  187. package/dist/host/layout/templates/auth/oauth.js +2 -8
  188. package/dist/host/layout/templates/auth/oauth.js.map +1 -1
  189. package/dist/host/layout/templates/auth/oauthCompletion.d.ts.map +1 -1
  190. package/dist/host/layout/templates/auth/oauthCompletion.js +2 -2
  191. package/dist/host/layout/templates/auth/oauthCompletion.js.map +1 -1
  192. package/dist/host/layout/templates/auth/screen.d.ts +1 -1
  193. package/dist/host/layout/templates/auth/screen.d.ts.map +1 -1
  194. package/dist/host/layout/templates/auth/screen.js +19 -137
  195. package/dist/host/layout/templates/auth/screen.js.map +1 -1
  196. package/dist/host/layout/templates/auth/screenController.d.ts.map +1 -1
  197. package/dist/host/layout/templates/auth/screenController.js +4 -6
  198. package/dist/host/layout/templates/auth/screenController.js.map +1 -1
  199. package/dist/host/layout/templates/rootLayout.d.ts +1 -1
  200. package/dist/host/layout/templates/rootLayout.js +4 -4
  201. package/dist/host/layout/templates/screen.d.ts +1 -1
  202. package/dist/host/layout/templates/screen.js +1 -1
  203. package/dist/host/layout/templates/utils/routes.d.ts +2 -2
  204. package/dist/host/layout/templates/utils/routes.js +2 -2
  205. package/dist/host/layout/templates/utils/strings.d.ts +1 -1
  206. package/dist/host/layout/templates/utils/strings.js +1 -1
  207. package/dist/host/layout/utils/escapeStringLiteral.d.ts +0 -1
  208. package/dist/host/layout/utils/escapeStringLiteral.d.ts.map +1 -1
  209. package/dist/host/layout/utils/escapeStringLiteral.js +2 -6
  210. package/dist/host/layout/utils/escapeStringLiteral.js.map +1 -1
  211. package/dist/host/manifestSystem/index.d.ts +1 -1
  212. package/dist/host/manifestSystem/index.js +1 -1
  213. package/dist/host/media/projectAuthoringAssetWriter.d.ts +0 -1
  214. package/dist/host/media/projectAuthoringAssetWriter.d.ts.map +1 -1
  215. package/dist/host/media/projectAuthoringAssetWriter.js +8 -4
  216. package/dist/host/media/projectAuthoringAssetWriter.js.map +1 -1
  217. package/dist/host/media/removeProjectAuthoringAsset.d.ts +0 -1
  218. package/dist/host/media/removeProjectAuthoringAsset.d.ts.map +1 -1
  219. package/dist/host/media/removeProjectAuthoringAsset.js +6 -8
  220. package/dist/host/media/removeProjectAuthoringAsset.js.map +1 -1
  221. package/dist/host/modules/runtime/LocalFsTargetAdapter.d.ts +1 -1
  222. package/dist/host/modules/runtime/LocalFsTargetAdapter.js +2 -2
  223. package/dist/host/orchestrator/GeneratedRouteFileOwnership.d.ts +1 -1
  224. package/dist/host/orchestrator/GeneratedRouteFileOwnership.d.ts.map +1 -1
  225. package/dist/host/orchestrator/GeneratedRouteFileOwnership.js +8 -21
  226. package/dist/host/orchestrator/GeneratedRouteFileOwnership.js.map +1 -1
  227. package/dist/host/orchestrator/generatedAppFiles.d.ts +1 -4
  228. package/dist/host/orchestrator/generatedAppFiles.d.ts.map +1 -1
  229. package/dist/host/orchestrator/generatedAppFiles.js +4 -16
  230. package/dist/host/orchestrator/generatedAppFiles.js.map +1 -1
  231. package/dist/host/orchestrator/moduleManager.d.ts +1 -1
  232. package/dist/host/orchestrator/moduleManager.d.ts.map +1 -1
  233. package/dist/host/orchestrator/moduleManager.js +2 -8
  234. package/dist/host/orchestrator/moduleManager.js.map +1 -1
  235. package/dist/host/orchestrator/projectManager.d.ts +2 -2
  236. package/dist/host/orchestrator/projectManager.d.ts.map +1 -1
  237. package/dist/host/orchestrator/projectManager.js +9 -24
  238. package/dist/host/orchestrator/projectManager.js.map +1 -1
  239. package/dist/host/orchestrator/projectPaths.d.ts +3 -3
  240. package/dist/host/orchestrator/projectPaths.js +3 -3
  241. package/dist/host/orchestrator/projectStore.d.ts +1 -1
  242. package/dist/host/orchestrator/projectStore.js +1 -1
  243. package/dist/host/orchestrator/projectTargets.d.ts +1 -1
  244. package/dist/host/orchestrator/projectTargets.js +2 -2
  245. package/dist/host/orchestrator/reconcileProjectPackageRootAsync.d.ts +1 -1
  246. package/dist/host/orchestrator/reconcileProjectPackageRootAsync.js +1 -1
  247. package/dist/host/orchestrator/resolveMutations.d.ts +1 -1
  248. package/dist/host/orchestrator/resolveMutations.js +1 -1
  249. package/dist/host/orchestrator/scaffolder.d.ts +2 -4
  250. package/dist/host/orchestrator/scaffolder.d.ts.map +1 -1
  251. package/dist/host/orchestrator/scaffolder.js +12 -31
  252. package/dist/host/orchestrator/scaffolder.js.map +1 -1
  253. package/dist/host/orchestrator/studioInfraUp.d.ts +1 -1
  254. package/dist/host/orchestrator/studioInfraUp.js +1 -1
  255. package/dist/host/secrets/bunSupabaseVaultClient.d.ts +1 -1
  256. package/dist/host/secrets/bunSupabaseVaultClient.d.ts.map +1 -1
  257. package/dist/host/secrets/bunSupabaseVaultClient.js +6 -4
  258. package/dist/host/secrets/bunSupabaseVaultClient.js.map +1 -1
  259. package/dist/host/secrets/projectSecretService.d.ts +2 -2
  260. package/dist/host/secrets/projectSecretService.d.ts.map +1 -1
  261. package/dist/host/secrets/projectSecretService.js +9 -24
  262. package/dist/host/secrets/projectSecretService.js.map +1 -1
  263. package/dist/host/secrets/trustedOAuthInfraEnvironment.d.ts +2 -2
  264. package/dist/host/secrets/trustedOAuthInfraEnvironment.js +3 -3
  265. package/dist/host/templates/index.d.ts +2 -2
  266. package/dist/host/templates/index.js +2 -2
  267. package/dist/host/utils/requirementsInference.d.ts +2 -2
  268. package/dist/host/utils/requirementsInference.js +2 -2
  269. package/dist/host/utils/workspaceRoot.d.ts +1 -1
  270. package/dist/host/utils/workspaceRoot.d.ts.map +1 -1
  271. package/dist/host/utils/workspaceRoot.js +6 -10
  272. package/dist/host/utils/workspaceRoot.js.map +1 -1
  273. package/dist/index.d.ts +19 -23
  274. package/dist/index.d.ts.map +1 -1
  275. package/dist/index.js +29 -76
  276. package/dist/index.js.map +1 -1
  277. package/dist/insertModalModel.d.ts +2 -4
  278. package/dist/insertModalModel.d.ts.map +1 -1
  279. package/dist/insertModalModel.js +2 -4
  280. package/dist/insertModalModel.js.map +1 -1
  281. package/dist/manifestState.d.ts +45 -45
  282. package/dist/manifestState.js +58 -58
  283. package/dist/manifestSync.d.ts +3 -3
  284. package/dist/manifestSync.d.ts.map +1 -1
  285. package/dist/manifestSync.js +5 -4
  286. package/dist/manifestSync.js.map +1 -1
  287. package/dist/mediaAuthoringModel.d.ts +6 -8
  288. package/dist/mediaAuthoringModel.d.ts.map +1 -1
  289. package/dist/mediaAuthoringModel.js +17 -36
  290. package/dist/mediaAuthoringModel.js.map +1 -1
  291. package/dist/moduleAdminApi.d.ts +7 -9
  292. package/dist/moduleAdminApi.d.ts.map +1 -1
  293. package/dist/moduleAdminApi.js +15 -22
  294. package/dist/moduleAdminApi.js.map +1 -1
  295. package/dist/normalizeExternalApiId.d.ts +0 -1
  296. package/dist/normalizeExternalApiId.d.ts.map +1 -1
  297. package/dist/normalizeExternalApiId.js +2 -7
  298. package/dist/normalizeExternalApiId.js.map +1 -1
  299. package/dist/projectAuthApi.d.ts +1 -1
  300. package/dist/projectAuthApi.js +8 -9
  301. package/dist/projectAuthApi.js.map +1 -1
  302. package/dist/projectAuthHealth.d.ts +1 -1
  303. package/dist/projectAuthHealth.d.ts.map +1 -1
  304. package/dist/projectAuthHealth.js +10 -11
  305. package/dist/projectAuthHealth.js.map +1 -1
  306. package/dist/projectAuthRuntimeDiagnostics.d.ts +1 -1
  307. package/dist/projectAuthRuntimeDiagnostics.js +16 -24
  308. package/dist/projectAuthRuntimeDiagnostics.js.map +1 -1
  309. package/dist/projectDeployApi.d.ts +17 -17
  310. package/dist/projectDeployApi.js +18 -18
  311. package/dist/projectDeployApiError.d.ts +1 -1
  312. package/dist/projectDeployApiError.js +1 -1
  313. package/dist/projectDeployAssetPicker.d.ts +1 -1
  314. package/dist/projectDeployAssetPicker.d.ts.map +1 -1
  315. package/dist/projectDeployAssetPicker.js +10 -9
  316. package/dist/projectDeployAssetPicker.js.map +1 -1
  317. package/dist/projectDeployClient.d.ts +3 -3
  318. package/dist/projectDeployClient.d.ts.map +1 -1
  319. package/dist/projectDeployClient.js +42 -95
  320. package/dist/projectDeployClient.js.map +1 -1
  321. package/dist/projectIdentity.d.ts +1 -2
  322. package/dist/projectIdentity.d.ts.map +1 -1
  323. package/dist/projectIdentity.js +3 -4
  324. package/dist/projectIdentity.js.map +1 -1
  325. package/dist/projectOAuthSetup.d.ts +3 -3
  326. package/dist/projectOAuthSetup.js +3 -3
  327. package/dist/projectSecretApi.d.ts +6 -6
  328. package/dist/projectSecretApi.js +14 -14
  329. package/dist/projectSecretUsage.d.ts +1 -1
  330. package/dist/projectSecretUsage.js +1 -2
  331. package/dist/projectSecretUsage.js.map +1 -1
  332. package/dist/routeUtils.d.ts +1 -1
  333. package/dist/routeUtils.js +1 -1
  334. package/dist/runtime/actionSuppression.d.ts +0 -1
  335. package/dist/runtime/actionSuppression.d.ts.map +1 -1
  336. package/dist/runtime/actionSuppression.js +0 -1
  337. package/dist/runtime/actionSuppression.js.map +1 -1
  338. package/dist/runtime/index.d.ts +0 -2
  339. package/dist/runtime/index.d.ts.map +1 -1
  340. package/dist/runtime/index.js +0 -2
  341. package/dist/runtime/index.js.map +1 -1
  342. package/dist/runtime/interactionPolicy.d.ts +1 -1
  343. package/dist/runtime/interactionPolicy.js +1 -1
  344. package/dist/runtime/interactionPolicyCore.d.ts +0 -2
  345. package/dist/runtime/interactionPolicyCore.d.ts.map +1 -1
  346. package/dist/runtime/interactionPolicyCore.js +13 -28
  347. package/dist/runtime/interactionPolicyCore.js.map +1 -1
  348. package/dist/runtime/runtimeActions.d.ts +1 -1
  349. package/dist/runtime/runtimeActions.js +1 -1
  350. package/dist/runtime/runtimeNodeMeasurement.d.ts +2 -13
  351. package/dist/runtime/runtimeNodeMeasurement.d.ts.map +1 -1
  352. package/dist/runtime/runtimeNodeMeasurement.js +17 -86
  353. package/dist/runtime/runtimeNodeMeasurement.js.map +1 -1
  354. package/dist/runtime/stationarySelection.d.ts +3 -3
  355. package/dist/runtime/stationarySelection.d.ts.map +1 -1
  356. package/dist/runtime/stationarySelection.js +15 -54
  357. package/dist/runtime/stationarySelection.js.map +1 -1
  358. package/dist/runtime/studioMediaResolver.d.ts +1 -1
  359. package/dist/runtime/studioMediaResolver.js +2 -2
  360. package/dist/runtime/useRuntimeAction.d.ts +1 -1
  361. package/dist/runtime/useRuntimeAction.js +1 -1
  362. package/dist/runtimeDiagnosticsModel.d.ts +1 -4
  363. package/dist/runtimeDiagnosticsModel.d.ts.map +1 -1
  364. package/dist/runtimeDiagnosticsModel.js +1 -4
  365. package/dist/runtimeDiagnosticsModel.js.map +1 -1
  366. package/dist/secretResponseGuard.d.ts +2 -6
  367. package/dist/secretResponseGuard.d.ts.map +1 -1
  368. package/dist/secretResponseGuard.js +3 -37
  369. package/dist/secretResponseGuard.js.map +1 -1
  370. package/dist/studioAdminRouteModel.d.ts +7 -14
  371. package/dist/studioAdminRouteModel.d.ts.map +1 -1
  372. package/dist/studioAdminRouteModel.js +17 -28
  373. package/dist/studioAdminRouteModel.js.map +1 -1
  374. package/dist/studioRuntimeApi.d.ts +1 -1
  375. package/dist/studioRuntimeApi.js +3 -3
  376. package/dist/studioSelectionModel.d.ts +0 -4
  377. package/dist/studioSelectionModel.d.ts.map +1 -1
  378. package/dist/studioSelectionModel.js +0 -5
  379. package/dist/studioSelectionModel.js.map +1 -1
  380. package/dist/types/project-updates.d.ts +7 -1
  381. package/dist/types/project-updates.d.ts.map +1 -1
  382. package/dist/ui/admin/AnkhAdminPage.js +1 -1
  383. package/dist/ui/admin/AuthAdminSession.d.ts +1 -1
  384. package/dist/ui/admin/AuthAdminSession.js +1 -1
  385. package/dist/ui/admin/ModuleAdminViewBoundary.d.ts +0 -1
  386. package/dist/ui/admin/ModuleAdminViewBoundary.d.ts.map +1 -1
  387. package/dist/ui/admin/ModuleAdminViewBoundary.js +2 -2
  388. package/dist/ui/admin/ModuleAdminViewBoundary.js.map +1 -1
  389. package/dist/ui/admin/ModuleAdminViewHost.d.ts +1 -1
  390. package/dist/ui/admin/ModuleAdminViewHost.js +1 -1
  391. package/dist/ui/admin/adminPagePrimitives.d.ts +5 -5
  392. package/dist/ui/admin/adminPagePrimitives.js +5 -5
  393. package/dist/ui/admin/moduleAdminViewRegistry.d.ts +1 -1
  394. package/dist/ui/admin/moduleAdminViewRegistry.js +1 -1
  395. package/dist/ui/admin/pages/ApiOperationsCard.d.ts.map +1 -1
  396. package/dist/ui/admin/pages/ApiOperationsCard.js +4 -7
  397. package/dist/ui/admin/pages/ApiOperationsCard.js.map +1 -1
  398. package/dist/ui/admin/pages/AuthAdminPage.d.ts +1 -1
  399. package/dist/ui/admin/pages/AuthAdminPage.d.ts.map +1 -1
  400. package/dist/ui/admin/pages/AuthAdminPage.js +26 -35
  401. package/dist/ui/admin/pages/AuthAdminPage.js.map +1 -1
  402. package/dist/ui/admin/pages/BindingsAdminPage.d.ts +1 -1
  403. package/dist/ui/admin/pages/BindingsAdminPage.js +1 -1
  404. package/dist/ui/admin/pages/ModuleDetailAdminPage.d.ts.map +1 -1
  405. package/dist/ui/admin/pages/ModuleDetailAdminPage.js +4 -10
  406. package/dist/ui/admin/pages/ModuleDetailAdminPage.js.map +1 -1
  407. package/dist/ui/admin/pages/ModulesAdminPage.d.ts.map +1 -1
  408. package/dist/ui/admin/pages/ModulesAdminPage.js +3 -9
  409. package/dist/ui/admin/pages/ModulesAdminPage.js.map +1 -1
  410. package/dist/ui/admin/pages/ScreenDetailAdminPage.js +1 -1
  411. package/dist/ui/admin/pages/ScreensAdminPage.js +1 -1
  412. package/dist/ui/admin/pages/SecretsAdminPage.d.ts +1 -1
  413. package/dist/ui/admin/pages/SecretsAdminPage.d.ts.map +1 -1
  414. package/dist/ui/admin/pages/SecretsAdminPage.js +30 -137
  415. package/dist/ui/admin/pages/SecretsAdminPage.js.map +1 -1
  416. package/dist/ui/admin/pages/ThemeModeEditorSelector.d.ts +1 -1
  417. package/dist/ui/admin/pages/ThemeModeEditorSelector.js +1 -1
  418. package/dist/ui/admin/pages/adminApiOperations.d.ts +1 -1
  419. package/dist/ui/admin/pages/adminApiOperations.js +1 -1
  420. package/dist/ui/admin/pages/adminAuthCredentialFlow.d.ts +1 -1
  421. package/dist/ui/admin/pages/adminAuthCredentialFlow.d.ts.map +1 -1
  422. package/dist/ui/admin/pages/adminAuthCredentialFlow.js +5 -14
  423. package/dist/ui/admin/pages/adminAuthCredentialFlow.js.map +1 -1
  424. package/dist/ui/admin/pages/adminAuthSessionModel.d.ts +5 -66
  425. package/dist/ui/admin/pages/adminAuthSessionModel.d.ts.map +1 -1
  426. package/dist/ui/admin/pages/adminAuthSessionModel.js +37 -132
  427. package/dist/ui/admin/pages/adminAuthSessionModel.js.map +1 -1
  428. package/dist/ui/admin/pages/adminThemeModel.d.ts +2 -2
  429. package/dist/ui/admin/pages/adminThemeModel.js +2 -2
  430. package/dist/ui/admin/pages/bindings/bindingEditorModel.d.ts +0 -3
  431. package/dist/ui/admin/pages/bindings/bindingEditorModel.d.ts.map +1 -1
  432. package/dist/ui/admin/pages/bindings/bindingEditorModel.js +7 -8
  433. package/dist/ui/admin/pages/bindings/bindingEditorModel.js.map +1 -1
  434. package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.d.ts +1 -1
  435. package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.d.ts.map +1 -1
  436. package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.js +8 -19
  437. package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.js.map +1 -1
  438. package/dist/ui/admin/pages/screens/screensAdminActions.d.ts +1 -1
  439. package/dist/ui/admin/pages/screens/screensAdminActions.js +1 -1
  440. package/dist/ui/admin/pages/themeRecipeAuthoringModel.d.ts.map +1 -1
  441. package/dist/ui/admin/pages/themeRecipeAuthoringModel.js +3 -8
  442. package/dist/ui/admin/pages/themeRecipeAuthoringModel.js.map +1 -1
  443. package/dist/ui/admin/pages/themeRecipeTokenOptions.d.ts +1 -1
  444. package/dist/ui/admin/pages/themeRecipeTokenOptions.js +1 -1
  445. package/dist/ui/admin/pages/useActiveThemeAdmin.d.ts +1 -1
  446. package/dist/ui/admin/pages/useActiveThemeAdmin.js +1 -1
  447. package/dist/ui/canvas/StudioCanvasDndOverlay.d.ts +1 -1
  448. package/dist/ui/canvas/StudioCanvasDndOverlay.js +2 -2
  449. package/dist/ui/canvas/canvasDndInteraction.d.ts +3 -4
  450. package/dist/ui/canvas/canvasDndInteraction.d.ts.map +1 -1
  451. package/dist/ui/canvas/canvasDndInteraction.js +5 -5
  452. package/dist/ui/canvas/canvasDndInteraction.js.map +1 -1
  453. package/dist/utils/treeUtils.d.ts +1 -1
  454. package/dist/utils/treeUtils.js +1 -1
  455. package/dist/workspacePlatform.d.ts +0 -3
  456. package/dist/workspacePlatform.d.ts.map +1 -1
  457. package/dist/workspacePlatform.js +0 -3
  458. package/dist/workspacePlatform.js.map +1 -1
  459. package/package.json +51 -50
  460. package/dist/constants.d.ts +0 -1636
  461. package/dist/constants.d.ts.map +0 -1
  462. package/dist/constants.js +0 -10
  463. package/dist/constants.js.map +0 -1
  464. package/dist/host/zoraExtensions/index.d.ts +0 -22
  465. package/dist/host/zoraExtensions/index.d.ts.map +0 -1
  466. package/dist/host/zoraExtensions/index.js +0 -61
  467. package/dist/host/zoraExtensions/index.js.map +0 -1
  468. package/dist/runtime/appExtensionRegistry.d.ts +0 -3
  469. package/dist/runtime/appExtensionRegistry.d.ts.map +0 -1
  470. package/dist/runtime/appExtensionRegistry.js +0 -12
  471. package/dist/runtime/appExtensionRegistry.js.map +0 -1
  472. package/dist/runtime/registry.d.ts +0 -6
  473. package/dist/runtime/registry.d.ts.map +0 -1
  474. package/dist/runtime/registry.js +0 -5
  475. package/dist/runtime/registry.js.map +0 -1
  476. package/dist/ui/admin/pages/adminAuthHealthFlow.d.ts +0 -26
  477. package/dist/ui/admin/pages/adminAuthHealthFlow.d.ts.map +0 -1
  478. package/dist/ui/admin/pages/adminAuthHealthFlow.js +0 -32
  479. package/dist/ui/admin/pages/adminAuthHealthFlow.js.map +0 -1
@@ -6,7 +6,7 @@ class TrustedOAuthSecretStoreUnavailableError extends Error {
6
6
  }
7
7
  }
8
8
  /***
9
- * @todo Keep the deferred Secret-store handling in the Secrets/Infra application boundary; it represents Studio OAuth rollout policy rather than a generic error wrapper.
9
+ * TODO: Keep the deferred Secret-store handling in the Secrets/Infra application boundary; it represents Studio OAuth rollout policy rather than a generic error wrapper.
10
10
  * Resolve trusted OAuth environment variables for Infra Up while turning secret-store unavailability into an explicit deferred result.
11
11
  */
12
12
  export async function resolveTrustedOAuthInfraEnvironmentForUp(args) {
@@ -28,7 +28,7 @@ export async function resolveTrustedOAuthInfraEnvironmentForUp(args) {
28
28
  }
29
29
  }
30
30
  /***
31
- * @todo Keep OAuth-provider credential resolution and GoTrue environment assembly in the Secrets/Auth boundary.
31
+ * TODO: Keep OAuth-provider credential resolution and GoTrue environment assembly in the Secrets/Auth boundary.
32
32
  * Resolve enabled OAuth provider credentials into the trusted GoTrue environment expected by generated Infra.
33
33
  */
34
34
  export async function resolveTrustedOAuthInfraEnvironment(args) {
@@ -75,7 +75,7 @@ export async function resolveTrustedOAuthInfraEnvironment(args) {
75
75
  return env;
76
76
  }
77
77
  /***
78
- * @todo This retry belongs to the project-manifest read policy; reassess whether a second identical read remains intentional during the Projects/Secrets migration.
78
+ * TODO: This retry belongs to the project-manifest read policy; reassess whether a second identical read remains intentional during the Projects/Secrets migration.
79
79
  * Read the current project manifest, retrying the same owner once when the first read rejects.
80
80
  */
81
81
  async function readCurrentManifest(projectId, projectManager) {
@@ -7,12 +7,12 @@ export interface ProjectTemplateSelection {
7
7
  }
8
8
  /***
9
9
  * List the published standalone templates grouped by their existing category metadata.
10
- * @todo Move Studio template catalog projection from host/templates to the top-level templates domain; host should only expose it through adapters.
10
+ * TODO: Move Studio template catalog projection from host/templates to the top-level templates domain; host should only expose it through adapters.
11
11
  */
12
12
  export declare function getTemplateCatalog(): TemplateCatalog;
13
13
  /***
14
14
  * Resolve one published portable template to the source-agnostic input used by project creation.
15
- * @todo Move portable-template source resolution beside the templates/projects application boundary rather than owning it under host.
15
+ * TODO: Move portable-template source resolution beside the templates/projects application boundary rather than owning it under host.
16
16
  */
17
17
  export declare function getProjectTemplateSource(selection: ProjectTemplateSelection): Promise<ProjectCreationSource>;
18
18
  /*** Extract the packaged file name used when materializing a template image into a generated project. */
@@ -6,7 +6,7 @@ const require = createRequire(import.meta.url);
6
6
  const TEMPLATES_PACKAGE_ROOT = dirname(require.resolve('@ankhorage/templates/package.json'));
7
7
  /***
8
8
  * List the published standalone templates grouped by their existing category metadata.
9
- * @todo Move Studio template catalog projection from host/templates to the top-level templates domain; host should only expose it through adapters.
9
+ * TODO: Move Studio template catalog projection from host/templates to the top-level templates domain; host should only expose it through adapters.
10
10
  */
11
11
  export function getTemplateCatalog() {
12
12
  const templates = listTemplates();
@@ -31,7 +31,7 @@ export function getTemplateCatalog() {
31
31
  }
32
32
  /***
33
33
  * Resolve one published portable template to the source-agnostic input used by project creation.
34
- * @todo Move portable-template source resolution beside the templates/projects application boundary rather than owning it under host.
34
+ * TODO: Move portable-template source resolution beside the templates/projects application boundary rather than owning it under host.
35
35
  */
36
36
  export async function getProjectTemplateSource(selection) {
37
37
  const artifact = createTemplateArtifact(selection);
@@ -2,14 +2,14 @@ import { type ScreenRequirements, type UiNode } from '@ankhorage/contracts';
2
2
  /***
3
3
  * Infer screen permission/capability requirements by walking authored UiNodes and collecting
4
4
  * membership declared by ZORA component metadata.
5
- * @todo Move this requirements-domain behavior out of generic `host/utils`; it depends directly
5
+ * TODO: Move this requirements-domain behavior out of generic `host/utils`; it depends directly
6
6
  * on shared ScreenRequirements contracts and ZORA metadata and should live with the owning
7
7
  * generation/requirements capability.
8
8
  */
9
9
  export declare function inferScreenRequirementsFromUi(root: UiNode): ScreenRequirements | undefined;
10
10
  /***
11
11
  * Merge inferred and explicit ScreenRequirements membership, with explicit membership retained.
12
- * @todo This is reusable requirements-domain behavior, but the correct owner is the
12
+ * TODO: This is reusable requirements-domain behavior, but the correct owner is the
13
13
  * ScreenRequirements/contracts capability rather than generic Utility.
14
14
  */
15
15
  export declare function mergeScreenRequirements(explicit?: ScreenRequirements, inferred?: ScreenRequirements): ScreenRequirements | undefined;
@@ -4,7 +4,7 @@ import { ZORA_COMPONENT_META } from '@ankhorage/zora/metadata';
4
4
  /***
5
5
  * Infer screen permission/capability requirements by walking authored UiNodes and collecting
6
6
  * membership declared by ZORA component metadata.
7
- * @todo Move this requirements-domain behavior out of generic `host/utils`; it depends directly
7
+ * TODO: Move this requirements-domain behavior out of generic `host/utils`; it depends directly
8
8
  * on shared ScreenRequirements contracts and ZORA metadata and should live with the owning
9
9
  * generation/requirements capability.
10
10
  */
@@ -33,7 +33,7 @@ export function inferScreenRequirementsFromUi(root) {
33
33
  }
34
34
  /***
35
35
  * Merge inferred and explicit ScreenRequirements membership, with explicit membership retained.
36
- * @todo This is reusable requirements-domain behavior, but the correct owner is the
36
+ * TODO: This is reusable requirements-domain behavior, but the correct owner is the
37
37
  * ScreenRequirements/contracts capability rather than generic Utility.
38
38
  */
39
39
  export function mergeScreenRequirements(explicit, inferred) {
@@ -1,6 +1,6 @@
1
1
  /***
2
2
  * Resolve the first matching workspace root from a preferred directory and cwd, failing with a descriptive message when none is found.
3
- * @utility @ankhorage/utility/node/workspace
3
+ * Utility candidate: @ankhorage/utility/node/workspace
4
4
  */
5
5
  export declare function resolveWorkspaceRoot(fromDir: string, cwd?: string): string;
6
6
  //# sourceMappingURL=workspaceRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workspaceRoot.d.ts","sourceRoot":"","sources":["../../../src/host/utils/workspaceRoot.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAgB,UASxE"}
1
+ {"version":3,"file":"workspaceRoot.d.ts","sourceRoot":"","sources":["../../../src/host/utils/workspaceRoot.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAgB,UASxE"}
@@ -1,9 +1,10 @@
1
1
  import { existsSync, readFileSync } from 'node:fs';
2
2
  import path from 'node:path';
3
+ import { findAncestorDirectory } from '@ankhorage/utility/node/path';
3
4
  const STUDIO_PACKAGE_NAME = '@ankhorage/studio';
4
5
  /***
5
6
  * Resolve the first matching workspace root from a preferred directory and cwd, failing with a descriptive message when none is found.
6
- * @utility @ankhorage/utility/node/workspace
7
+ * Utility candidate: @ankhorage/utility/node/workspace
7
8
  */
8
9
  export function resolveWorkspaceRoot(fromDir, cwd = process.cwd()) {
9
10
  const candidates = [fromDir, cwd];
@@ -16,26 +17,21 @@ export function resolveWorkspaceRoot(fromDir, cwd = process.cwd()) {
16
17
  }
17
18
  /***
18
19
  * Walk parent directories until a package root satisfies package-name and required-path markers, tolerating invalid intermediate package.json files.
19
- * @utility @ankhorage/utility/node/workspace
20
20
  */
21
21
  function findStudioWorkspaceRoot(startPath) {
22
- let current = path.resolve(startPath);
23
- for (;;) {
22
+ return (findAncestorDirectory(startPath, (current) => {
24
23
  const packageJsonPath = path.join(current, 'package.json');
25
24
  if (existsSync(packageJsonPath) && existsSync(path.join(current, 'apps'))) {
26
25
  try {
27
26
  const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
28
27
  if (packageJson.name === STUDIO_PACKAGE_NAME)
29
- return current;
28
+ return true;
30
29
  }
31
30
  catch {
32
31
  // Continue walking when a parent package.json is not valid JSON.
33
32
  }
34
33
  }
35
- const parent = path.dirname(current);
36
- if (parent === current)
37
- return null;
38
- current = parent;
39
- }
34
+ return false;
35
+ }) ?? null);
40
36
  }
41
37
  //# sourceMappingURL=workspaceRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workspaceRoot.js","sourceRoot":"","sources":["../../../src/host/utils/workspaceRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEhD;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE;IACvE,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IAClC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,QAA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ED
@@ -14,7 +14,7 @@ export * from './propertiesAuthoringModel';
14
14
  export type { TemplateCatalog, TemplateCatalogCategory, TemplateCatalogTemplate, TemplateEntry, } from './templateCatalogContracts';
15
15
  export type { StudioRuntimeProjectionReason, StudioRuntimeProjectionState, StudioRuntimeProjectionStatus, } from './types/project-generation';
16
16
  /***
17
- * @todo Make `src/index.ts` a public exports-only entrypoint. Package metadata, authoring contracts, tree editing, placement policy, templates and insert-catalog implementations need canonical owner modules and should only be re-exported here.
17
+ * Follow-up: Make `src/index.ts` a public exports-only entrypoint. Package metadata, authoring contracts, tree editing, placement policy, templates and insert-catalog implementations need canonical owner modules and should only be re-exported here.
18
18
  */
19
19
  export declare const STUDIO_PACKAGE_NAME: "@ankhorage/studio";
20
20
  export interface StudioPackageBoundary {
@@ -233,37 +233,33 @@ export declare const ACTION_REGISTRY: Record<ActionType, ActionDefinition>;
233
233
  export declare const TPL_SCREEN_EMPTY: UiNode;
234
234
  /***
235
235
  * Generate a compact time/random identifier with an optional lowercase prefix.
236
- * @utility @ankhorage/utility/id
237
- * @todo Move the Studio-facing wrapper out of `src/index.ts`; the reusable identifier primitive belongs in Utility.
236
+ * Follow-up: Move the Studio-facing wrapper out of `src/index.ts`; the reusable identifier primitive belongs in Utility.
238
237
  */
239
238
  export declare const generateStudioId: StudioIdGenerator;
240
239
  /***
241
240
  * Deep-clone a UiNode tree while assigning fresh identifiers and shallow-cloning node props.
242
- * @utility @ankhorage/utility/tree
243
- * @todo `cloneTreeWithNewIds` currently allocates child ids before the root; retain this public pre-order callback contract until Utility supports configurable traversal order.
241
+ * Utility candidate: @ankhorage/utility/tree
242
+ * Follow-up: `cloneTreeWithNewIds` currently allocates child ids before the root; retain this public pre-order callback contract until Utility supports configurable traversal order.
244
243
  */
245
244
  export declare const cloneWithNewIds: (node: UiNode, createId?: StudioIdGenerator) => UiNode;
246
245
  /***
247
246
  * Find the first node with a matching id in a depth-first tree traversal.
248
- * @utility @ankhorage/utility/tree
249
- * @todo Move the UiNode wrapper out of `src/index.ts`; parameterize id and child accessors for Utility.
247
+ * Follow-up: Move the UiNode wrapper out of `src/index.ts`; parameterize id and child accessors for Utility.
250
248
  */
251
249
  export declare const findNodeById: (root: UiNode, id: string) => UiNode | null;
252
250
  /***
253
251
  * Immutably update one UiNode by id while preserving Studio's alias/style versus props patch semantics.
254
- * @utility @ankhorage/utility/tree
255
- * @todo Keep Studio-specific patch projection in the canvas/properties owner and extract the generic immutable tree-update primitive to Utility.
252
+ * Follow-up: Keep Studio-specific patch projection in the canvas/properties owner and extract the generic immutable tree-update primitive to Utility.
256
253
  */
257
254
  export declare const updateNodeInTree: (root: UiNode, id: string, newProps: Record<string, unknown>) => UiNode;
258
255
  /***
259
256
  * Immutably remove a node by id from a UiNode tree and preserve unchanged branches by reference.
260
- * @utility @ankhorage/utility/tree
261
- * @todo Move the UiNode wrapper out of `src/index.ts` and parameterize tree accessors for Utility.
257
+ * Follow-up: Move the UiNode wrapper out of `src/index.ts` and parameterize tree accessors for Utility.
262
258
  */
263
259
  export declare const removeNodeFromTree: (root: UiNode, nodeId: string) => UiNode | null;
264
260
  /***
265
261
  * Return whether Studio component metadata permits one child type under a parent type.
266
- * @todo Move this component-placement policy from `src/index.ts` into the `canvas/` or insert-authoring domain.
262
+ * Follow-up: Move this component-placement policy from `src/index.ts` into the `canvas/` or insert-authoring domain.
267
263
  */
268
264
  export declare function canAcceptChild(args: {
269
265
  parentType: string;
@@ -272,7 +268,7 @@ export declare function canAcceptChild(args: {
272
268
  }): boolean;
273
269
  /***
274
270
  * Validate one resolved Studio placement against parent existence, child policy, index bounds and sibling-reference invariants.
275
- * @todo Move placement validation from the public entrypoint into the `canvas/` domain.
271
+ * Follow-up: Move placement validation from the public entrypoint into the `canvas/` domain.
276
272
  */
277
273
  export declare function validateNodePlacement(args: {
278
274
  root: UiNode;
@@ -282,7 +278,7 @@ export declare function validateNodePlacement(args: {
282
278
  }): PlacementValidationResult;
283
279
  /***
284
280
  * Resolve a requested inside/before/after insertion target to a validated Studio placement.
285
- * @todo Move insertion-placement policy from `src/index.ts` into the `canvas/`/insert domain.
281
+ * Follow-up: Move insertion-placement policy from `src/index.ts` into the `canvas/`/insert domain.
286
282
  */
287
283
  export declare function resolveInsertPlacement(args: {
288
284
  root: UiNode;
@@ -293,7 +289,7 @@ export declare function resolveInsertPlacement(args: {
293
289
  }): PlacementResolutionResult;
294
290
  /***
295
291
  * Resolve the preferred insertion placement by trying the selected node, its sibling position, then the screen root.
296
- * @todo Move Studio default insertion policy from `src/index.ts` into the insert/canvas domain.
292
+ * Follow-up: Move Studio default insertion policy from `src/index.ts` into the insert/canvas domain.
297
293
  */
298
294
  export declare function resolveDefaultInsertPlacement(args: {
299
295
  root: UiNode;
@@ -313,7 +309,7 @@ export interface InsertNodeAtPlacementResult {
313
309
  }
314
310
  /***
315
311
  * Create and insert one Studio node after validating its requested placement.
316
- * @todo Move Studio insertion orchestration from `src/index.ts` into the insert/canvas domain.
312
+ * Follow-up: Move Studio insertion orchestration from `src/index.ts` into the insert/canvas domain.
317
313
  */
318
314
  export declare function insertNodeAtPlacement(args: InsertNodeAtPlacementArgs): InsertNodeAtPlacementResult | null;
319
315
  export interface MoveNodeToPlacementArgs {
@@ -328,33 +324,33 @@ export interface MoveNodeToPlacementResult {
328
324
  }
329
325
  /***
330
326
  * Validate and resolve a requested Studio node move after accounting for source removal and descendant/no-op invariants.
331
- * @todo Move node-move policy from `src/index.ts` into the canvas domain.
327
+ * Follow-up: Move node-move policy from `src/index.ts` into the canvas domain.
332
328
  */
333
329
  export declare function resolveMoveNodePlacement(args: MoveNodeToPlacementArgs): PlacementResolutionResult;
334
330
  /***
335
331
  * Execute a validated Studio node move as immutable removal followed by insertion.
336
- * @todo Move node-move orchestration from `src/index.ts` into the canvas domain.
332
+ * Follow-up: Move node-move orchestration from `src/index.ts` into the canvas domain.
337
333
  */
338
334
  export declare function moveNodeToPlacement(args: MoveNodeToPlacementArgs): MoveNodeToPlacementResult | null;
339
335
  export declare const STUDIO_INSERT_RECIPES: readonly InsertRecipe[];
340
336
  /***
341
337
  * Resolve Studio's display label for an insert-catalog category, falling back to the raw category id.
342
- * @todo Move insert-catalog presentation metadata out of `src/index.ts` into the insert domain.
338
+ * Follow-up: Move insert-catalog presentation metadata out of `src/index.ts` into the insert domain.
343
339
  */
344
340
  export declare function getInsertCatalogCategoryLabel(category: string): string;
345
341
  /***
346
342
  * Validate an insert recipe recursively against Studio component metadata and allowed-child constraints.
347
- * @todo Move recipe validation from `src/index.ts` into the insert/templates domain.
343
+ * Follow-up: Move recipe validation from `src/index.ts` into the insert/templates domain.
348
344
  */
349
345
  export declare function validateInsertRecipe(recipe: InsertRecipe, componentMeta: StudioComponentMetaRegistry): InsertRecipeIssue | null;
350
346
  /***
351
347
  * Materialize one enabled component or recipe catalog entry into a fresh UiNode tree.
352
- * @todo Move insert-catalog node creation from `src/index.ts` into the insert domain.
348
+ * Follow-up: Move insert-catalog node creation from `src/index.ts` into the insert domain.
353
349
  */
354
350
  export declare function createNodeFromCatalogEntry(entry: InsertCatalogEntry, componentMeta: StudioComponentMetaRegistry, createId?: StudioIdGenerator): UiNode;
355
351
  /***
356
352
  * Build and deterministically sort Studio's component/recipe insert catalog from component metadata and recipes.
357
- * @todo Move insert-catalog construction from `src/index.ts` into the insert domain.
353
+ * Follow-up: Move insert-catalog construction from `src/index.ts` into the insert domain.
358
354
  */
359
355
  export declare function buildInsertCatalogEntries(args: {
360
356
  componentMeta: StudioComponentMetaRegistry;
@@ -362,7 +358,7 @@ export declare function buildInsertCatalogEntries(args: {
362
358
  }): InsertCatalogEntry[];
363
359
  /***
364
360
  * Resolve enabled/disabled insert-catalog state against the active screen and selected-node placement context.
365
- * @todo Move context-sensitive insert catalog projection from `src/index.ts` into the insert/canvas application domain.
361
+ * Follow-up: Move context-sensitive insert catalog projection from `src/index.ts` into the insert/canvas application domain.
366
362
  */
367
363
  export declare function resolveInsertCatalogEntries(args: {
368
364
  entries: readonly InsertCatalogEntry[];
@@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A2B,CAAC;IAC3C,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CACnC,GAAG,kBAAkB,EAAE,CAsBvB;AAmBD;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IAChD,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACvC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,2BAA2B,CAAC;CAC5C,GAAG,kBAAkB,EAAE,CA2CvB"}
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { createCompactId as createUtilityCompactId } from '@ankhorage/utility/id';
2
- import { findTreeNode, findTreeNodeWithParent, isTreeDescendant, removeTreeNode, updateTreeNode, } from '@ankhorage/utility/tree';
2
+ import { isRecordOf } from '@ankhorage/utility/object';
3
+ import { findTreeNode, findTreeNodeWithParent, isTreeDescendant, removeTreeNode, removeTreeNodeWithValue, updateTreeNode, } from '@ankhorage/utility/tree';
3
4
  const uiNodeTreeAdapter = {
4
5
  getId: (node) => node.id,
5
6
  getChildren: (node) => node.children,
@@ -15,7 +16,7 @@ export * from './mediaPickerAuthoring';
15
16
  export { deriveProjectId, ProjectCreationValidationError, validateProjectCreationInput, } from './projectIdentity';
16
17
  export * from './propertiesAuthoringModel';
17
18
  /***
18
- * @todo Make `src/index.ts` a public exports-only entrypoint. Package metadata, authoring contracts, tree editing, placement policy, templates and insert-catalog implementations need canonical owner modules and should only be re-exported here.
19
+ * Follow-up: Make `src/index.ts` a public exports-only entrypoint. Package metadata, authoring contracts, tree editing, placement policy, templates and insert-catalog implementations need canonical owner modules and should only be re-exported here.
19
20
  */
20
21
  export const STUDIO_PACKAGE_NAME = '@ankhorage/studio';
21
22
  export const STUDIO_PACKAGE_BOUNDARY = {
@@ -219,16 +220,15 @@ export const TPL_SCREEN_EMPTY = {
219
220
  };
220
221
  /***
221
222
  * Generate a compact time/random identifier with an optional lowercase prefix.
222
- * @utility @ankhorage/utility/id
223
- * @todo Move the Studio-facing wrapper out of `src/index.ts`; the reusable identifier primitive belongs in Utility.
223
+ * Follow-up: Move the Studio-facing wrapper out of `src/index.ts`; the reusable identifier primitive belongs in Utility.
224
224
  */
225
225
  export const generateStudioId = (prefix) => {
226
226
  return createUtilityCompactId(prefix?.toLowerCase() ?? '', { randomLength: 9 });
227
227
  };
228
228
  /***
229
229
  * Deep-clone a UiNode tree while assigning fresh identifiers and shallow-cloning node props.
230
- * @utility @ankhorage/utility/tree
231
- * @todo `cloneTreeWithNewIds` currently allocates child ids before the root; retain this public pre-order callback contract until Utility supports configurable traversal order.
230
+ * Utility candidate: @ankhorage/utility/tree
231
+ * Follow-up: `cloneTreeWithNewIds` currently allocates child ids before the root; retain this public pre-order callback contract until Utility supports configurable traversal order.
232
232
  */
233
233
  export const cloneWithNewIds = (node, createId = generateStudioId) => {
234
234
  const clonedNode = {
@@ -243,16 +243,14 @@ export const cloneWithNewIds = (node, createId = generateStudioId) => {
243
243
  };
244
244
  /***
245
245
  * Find the first node with a matching id in a depth-first tree traversal.
246
- * @utility @ankhorage/utility/tree
247
- * @todo Move the UiNode wrapper out of `src/index.ts`; parameterize id and child accessors for Utility.
246
+ * Follow-up: Move the UiNode wrapper out of `src/index.ts`; parameterize id and child accessors for Utility.
248
247
  */
249
248
  export const findNodeById = (root, id) => {
250
249
  return findTreeNode(root, id, uiNodeTreeAdapter) ?? null;
251
250
  };
252
251
  /***
253
252
  * Immutably update one UiNode by id while preserving Studio's alias/style versus props patch semantics.
254
- * @utility @ankhorage/utility/tree
255
- * @todo Keep Studio-specific patch projection in the canvas/properties owner and extract the generic immutable tree-update primitive to Utility.
253
+ * Follow-up: Keep Studio-specific patch projection in the canvas/properties owner and extract the generic immutable tree-update primitive to Utility.
256
254
  */
257
255
  export const updateNodeInTree = (root, id, newProps) => {
258
256
  return updateTreeNode(root, id, (node) => {
@@ -269,77 +267,35 @@ export const updateNodeInTree = (root, id, newProps) => {
269
267
  };
270
268
  /***
271
269
  * Immutably remove a node by id from a UiNode tree and preserve unchanged branches by reference.
272
- * @utility @ankhorage/utility/tree
273
- * @todo Move the UiNode wrapper out of `src/index.ts` and parameterize tree accessors for Utility.
270
+ * Follow-up: Move the UiNode wrapper out of `src/index.ts` and parameterize tree accessors for Utility.
274
271
  */
275
272
  export const removeNodeFromTree = (root, nodeId) => {
276
273
  return removeTreeNode(root, nodeId, uiNodeTreeAdapter) ?? null;
277
274
  };
278
275
  /***
279
276
  * Find a node together with its parent and sibling index in a depth-first traversal.
280
- * @utility @ankhorage/utility/tree
281
277
  */
282
278
  function findNodeWithParent(root, nodeId) {
283
279
  return findTreeNodeWithParent(root, nodeId, uiNodeTreeAdapter) ?? null;
284
280
  }
285
281
  /***
286
282
  * Return whether a node tree contains a descendant with the requested id.
287
- * @utility @ankhorage/utility/tree
288
283
  */
289
284
  function isDescendantNode(node, descendantId) {
290
285
  return isTreeDescendant(node, node.id, descendantId, uiNodeTreeAdapter);
291
286
  }
292
287
  /***
293
288
  * Immutably remove one node from a tree and return both the next tree and removed node for move operations.
294
- * @utility @ankhorage/utility/tree
295
289
  */
296
290
  function removeNodeForMove(args) {
297
- const { node, nodeId } = args;
298
- const children = node.children ?? [];
299
- const directIndex = children.findIndex((child) => child.id === nodeId);
300
- if (directIndex !== -1) {
301
- const removedNode = children.at(directIndex);
302
- if (!removedNode) {
303
- return { node, removedNode: null };
304
- }
305
- return {
306
- node: {
307
- ...node,
308
- children: children.filter((child) => child.id !== nodeId),
309
- },
310
- removedNode,
311
- };
312
- }
313
- const nextChildren = [];
314
- let removedNode = null;
315
- for (const child of children) {
316
- if (removedNode) {
317
- nextChildren.push(child);
318
- continue;
319
- }
320
- const { node: nextChild, removedNode: nextRemovedNode } = removeNodeForMove({
321
- node: child,
322
- nodeId,
323
- });
324
- if (nextRemovedNode) {
325
- removedNode = nextRemovedNode;
326
- }
327
- nextChildren.push(nextChild);
328
- }
329
- if (!removedNode) {
330
- return { node, removedNode: null };
331
- }
332
- return {
333
- node: {
334
- ...node,
335
- children: nextChildren,
336
- },
337
- removedNode,
338
- };
291
+ if (args.node.id === args.nodeId)
292
+ return { node: args.node, removedNode: null };
293
+ const result = removeTreeNodeWithValue(args.node, args.nodeId, uiNodeTreeAdapter);
294
+ return { node: result.root ?? args.node, removedNode: result.removed ?? null };
339
295
  }
340
296
  /***
341
297
  * Return whether Studio component metadata permits one child type under a parent type.
342
- * @todo Move this component-placement policy from `src/index.ts` into the `canvas/` or insert-authoring domain.
298
+ * Follow-up: Move this component-placement policy from `src/index.ts` into the `canvas/` or insert-authoring domain.
343
299
  */
344
300
  export function canAcceptChild(args) {
345
301
  const { parentType, childType, componentMeta } = args;
@@ -350,7 +306,7 @@ export function canAcceptChild(args) {
350
306
  }
351
307
  /***
352
308
  * Validate one resolved Studio placement against parent existence, child policy, index bounds and sibling-reference invariants.
353
- * @todo Move placement validation from the public entrypoint into the `canvas/` domain.
309
+ * Follow-up: Move placement validation from the public entrypoint into the `canvas/` domain.
354
310
  */
355
311
  export function validateNodePlacement(args) {
356
312
  const { root, placement, childType, componentMeta } = args;
@@ -428,7 +384,7 @@ export function validateNodePlacement(args) {
428
384
  }
429
385
  /***
430
386
  * Resolve a requested inside/before/after insertion target to a validated Studio placement.
431
- * @todo Move insertion-placement policy from `src/index.ts` into the `canvas/`/insert domain.
387
+ * Follow-up: Move insertion-placement policy from `src/index.ts` into the `canvas/`/insert domain.
432
388
  */
433
389
  export function resolveInsertPlacement(args) {
434
390
  const { root, targetNodeId, childType, componentMeta, kind } = args;
@@ -481,7 +437,7 @@ export function resolveInsertPlacement(args) {
481
437
  }
482
438
  /***
483
439
  * Resolve the preferred insertion placement by trying the selected node, its sibling position, then the screen root.
484
- * @todo Move Studio default insertion policy from `src/index.ts` into the insert/canvas domain.
440
+ * Follow-up: Move Studio default insertion policy from `src/index.ts` into the insert/canvas domain.
485
441
  */
486
442
  export function resolveDefaultInsertPlacement(args) {
487
443
  const { root, selectedNodeId, childType, componentMeta } = args;
@@ -524,7 +480,7 @@ export function resolveDefaultInsertPlacement(args) {
524
480
  }
525
481
  /***
526
482
  * Immutably insert a child at a requested parent/index anywhere in a tree and report whether insertion occurred.
527
- * @utility @ankhorage/utility/tree
483
+ * Utility candidate: @ankhorage/utility/tree
528
484
  */
529
485
  function insertChildAtIndex(args) {
530
486
  const { node, parentId, index, newNode } = args;
@@ -560,7 +516,7 @@ function insertChildAtIndex(args) {
560
516
  }
561
517
  /***
562
518
  * Create and insert one Studio node after validating its requested placement.
563
- * @todo Move Studio insertion orchestration from `src/index.ts` into the insert/canvas domain.
519
+ * Follow-up: Move Studio insertion orchestration from `src/index.ts` into the insert/canvas domain.
564
520
  */
565
521
  export function insertNodeAtPlacement(args) {
566
522
  const { root, placement, componentMeta, makeNode } = args;
@@ -586,7 +542,7 @@ export function insertNodeAtPlacement(args) {
586
542
  }
587
543
  /***
588
544
  * Adjust a target placement for removal-induced index shifts and reject no-op/self-reference moves.
589
- * @todo Keep this placement-specific policy in the canvas domain.
545
+ * Follow-up: Keep this placement-specific policy in the canvas domain.
590
546
  */
591
547
  function getAdjustedMovePlacement(args) {
592
548
  const { source, placement } = args;
@@ -611,7 +567,7 @@ function getAdjustedMovePlacement(args) {
611
567
  }
612
568
  /***
613
569
  * Validate and resolve a requested Studio node move after accounting for source removal and descendant/no-op invariants.
614
- * @todo Move node-move policy from `src/index.ts` into the canvas domain.
570
+ * Follow-up: Move node-move policy from `src/index.ts` into the canvas domain.
615
571
  */
616
572
  export function resolveMoveNodePlacement(args) {
617
573
  const { root, nodeId, placement, componentMeta } = args;
@@ -675,7 +631,7 @@ export function resolveMoveNodePlacement(args) {
675
631
  }
676
632
  /***
677
633
  * Execute a validated Studio node move as immutable removal followed by insertion.
678
- * @todo Move node-move orchestration from `src/index.ts` into the canvas domain.
634
+ * Follow-up: Move node-move orchestration from `src/index.ts` into the canvas domain.
679
635
  */
680
636
  export function moveNodeToPlacement(args) {
681
637
  const { root, nodeId, placement, componentMeta } = args;
@@ -742,7 +698,7 @@ export const STUDIO_INSERT_RECIPES = [
742
698
  ];
743
699
  /***
744
700
  * Resolve Studio's display label for an insert-catalog category, falling back to the raw category id.
745
- * @todo Move insert-catalog presentation metadata out of `src/index.ts` into the insert domain.
701
+ * Follow-up: Move insert-catalog presentation metadata out of `src/index.ts` into the insert domain.
746
702
  */
747
703
  export function getInsertCatalogCategoryLabel(category) {
748
704
  return Object.entries(CATEGORY_LABELS).find(([key]) => key === category)?.[1] ?? category;
@@ -761,7 +717,7 @@ function describeInsertRecipeIssue(issue) {
761
717
  }
762
718
  /***
763
719
  * Validate an insert recipe recursively against Studio component metadata and allowed-child constraints.
764
- * @todo Move recipe validation from `src/index.ts` into the insert/templates domain.
720
+ * Follow-up: Move recipe validation from `src/index.ts` into the insert/templates domain.
765
721
  */
766
722
  export function validateInsertRecipe(recipe, componentMeta) {
767
723
  /*** Visit one recipe node, validating metadata and child compatibility while retaining the recipe path. */
@@ -795,7 +751,7 @@ export function validateInsertRecipe(recipe, componentMeta) {
795
751
  }
796
752
  /***
797
753
  * Materialize a Studio insert-recipe tree into UiNodes using component blueprint defaults and an injected id generator.
798
- * @todo Move recipe-node creation from `src/index.ts` into the insert/templates domain.
754
+ * Follow-up: Move recipe-node creation from `src/index.ts` into the insert/templates domain.
799
755
  */
800
756
  function createNodeFromRecipe(recipe, componentMeta, createId) {
801
757
  /*** Build one recipe node and recursively materialize its children. */
@@ -813,7 +769,7 @@ function createNodeFromRecipe(recipe, componentMeta, createId) {
813
769
  }
814
770
  /***
815
771
  * Materialize one enabled component or recipe catalog entry into a fresh UiNode tree.
816
- * @todo Move insert-catalog node creation from `src/index.ts` into the insert domain.
772
+ * Follow-up: Move insert-catalog node creation from `src/index.ts` into the insert domain.
817
773
  */
818
774
  export function createNodeFromCatalogEntry(entry, componentMeta, createId = generateStudioId) {
819
775
  if (entry.kind === 'recipe') {
@@ -881,7 +837,7 @@ function createRecipeEntry(recipe, componentMeta) {
881
837
  }
882
838
  /***
883
839
  * Build and deterministically sort Studio's component/recipe insert catalog from component metadata and recipes.
884
- * @todo Move insert-catalog construction from `src/index.ts` into the insert domain.
840
+ * Follow-up: Move insert-catalog construction from `src/index.ts` into the insert domain.
885
841
  */
886
842
  export function buildInsertCatalogEntries(args) {
887
843
  const { componentMeta, recipes = STUDIO_INSERT_RECIPES } = args;
@@ -914,7 +870,7 @@ function resolvePlacementForEntry(args) {
914
870
  }
915
871
  /***
916
872
  * Resolve enabled/disabled insert-catalog state against the active screen and selected-node placement context.
917
- * @todo Move context-sensitive insert catalog projection from `src/index.ts` into the insert/canvas application domain.
873
+ * Follow-up: Move context-sensitive insert catalog projection from `src/index.ts` into the insert/canvas application domain.
918
874
  */
919
875
  export function resolveInsertCatalogEntries(args) {
920
876
  const { entries, root, selectedNodeId, componentMeta } = args;
@@ -958,11 +914,8 @@ export function resolveInsertCatalogEntries(args) {
958
914
  }
959
915
  /***
960
916
  * Return whether a value is a non-array record whose values are all strings or numbers.
961
- * @utility @ankhorage/utility/object
962
917
  */
963
918
  function isStyleRecord(value) {
964
- if (typeof value !== 'object' || value === null || Array.isArray(value))
965
- return false;
966
- return Object.values(value).every((entry) => typeof entry === 'string' || typeof entry === 'number');
919
+ return isRecordOf(value, (entry) => typeof entry === 'string' || typeof entry === 'number');
967
920
  }
968
921
  //# sourceMappingURL=index.js.map