@ankhorage/studio 7.0.3 → 8.0.1
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.
- package/README.md +3 -2
- package/apm/update.json +14 -4
- package/dist/app/CreateProjectFromTemplateScreen.js +1 -1
- package/dist/app/CreateProjectFromTemplateScreen.js.map +1 -1
- package/dist/app/ProjectDetailScreen.js +1 -1
- package/dist/app/ProjectDetailScreen.js.map +1 -1
- package/dist/app/StudioApp.d.ts.map +1 -1
- package/dist/app/StudioApp.js +1 -1
- package/dist/app/StudioApp.js.map +1 -1
- package/dist/app/workspace/WorkspacePrimitives.d.ts +1 -1
- package/dist/app/workspace/WorkspacePrimitives.d.ts.map +1 -1
- package/dist/app/workspace/WorkspacePrimitives.js +1 -1
- package/dist/app/workspace/WorkspacePrimitives.js.map +1 -1
- package/dist/authSettings.d.ts.map +1 -1
- package/dist/authSettings.js +2 -2
- package/dist/authSettings.js.map +1 -1
- package/dist/bindingAuthoringContracts.d.ts +5 -4
- package/dist/bindingAuthoringContracts.d.ts.map +1 -1
- package/dist/bindingDiagnosticsModel.d.ts +2 -3
- package/dist/bindingDiagnosticsModel.d.ts.map +1 -1
- package/dist/bindingDiagnosticsModel.js +69 -33
- package/dist/bindingDiagnosticsModel.js.map +1 -1
- package/dist/bindingOperationModel.d.ts +5 -13
- package/dist/bindingOperationModel.d.ts.map +1 -1
- package/dist/bindingOperationModel.js +50 -36
- package/dist/bindingOperationModel.js.map +1 -1
- package/dist/capabilities/index.d.ts +43 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +36 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/cli/index.d.ts +41 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +6 -11
- package/dist/cli/index.js.map +1 -1
- package/dist/core/StudioProvider.js +2 -2
- package/dist/core/StudioProvider.js.map +1 -1
- package/dist/externalApiAuthoring/index.d.ts +7 -0
- package/dist/externalApiAuthoring/index.d.ts.map +1 -0
- package/dist/externalApiAuthoring/index.js +3 -0
- package/dist/externalApiAuthoring/index.js.map +1 -0
- package/dist/features/authoring-engine/adapters/inbound/AuthoringEditor.js +1 -1
- package/dist/features/authoring-engine/adapters/inbound/AuthoringEditor.js.map +1 -1
- package/dist/features/infrastructure/adapters/outbound/createStudioInfraAdapterPackageResolver.d.ts +1 -1
- package/dist/features/infrastructure/adapters/outbound/createStudioInfraAdapterPackageResolver.d.ts.map +1 -1
- package/dist/features/infrastructure/adapters/outbound/createStudioInfraAdapterPackageResolver.js +2 -2
- package/dist/features/infrastructure/adapters/outbound/createStudioInfraAdapterPackageResolver.js.map +1 -1
- package/dist/features/infrastructure/composition/createStudioProjectInfraLifecycle.d.ts +1 -1
- package/dist/features/infrastructure/composition/createStudioProjectInfraLifecycle.d.ts.map +1 -1
- package/dist/features/project-updates/adapters/inbound/ProjectUpdateDashboardPanel.js +1 -1
- package/dist/features/project-updates/adapters/inbound/ProjectUpdateDashboardPanel.js.map +1 -1
- package/dist/features/project-updates/adapters/outbound/getGeneratedPackagePolicy.js +4 -2
- package/dist/features/project-updates/adapters/outbound/getGeneratedPackagePolicy.js.map +1 -1
- package/dist/features/project-updates/adapters/outbound/readPendingModuleLifecycleStateAsync.d.ts +1 -18
- package/dist/features/project-updates/adapters/outbound/readPendingModuleLifecycleStateAsync.d.ts.map +1 -1
- package/dist/features/project-updates/adapters/outbound/readPendingModuleLifecycleStateAsync.js +3 -11
- package/dist/features/project-updates/adapters/outbound/readPendingModuleLifecycleStateAsync.js.map +1 -1
- package/dist/features/project-updates/adapters/outbound/readStudioManifestDigestAsync.js +1 -1
- package/dist/features/project-updates/adapters/outbound/readStudioManifestDigestAsync.js.map +1 -1
- package/dist/features/project-updates/application/planPendingModuleLifecycleAsync.d.ts +2 -0
- package/dist/features/project-updates/application/planPendingModuleLifecycleAsync.d.ts.map +1 -1
- package/dist/features/project-updates/application/planPendingModuleLifecycleAsync.js +2 -2
- package/dist/features/project-updates/application/planPendingModuleLifecycleAsync.js.map +1 -1
- package/dist/features/project-updates/application/ports/outbound/PendingModuleLifecycleStatePort.d.ts +21 -0
- package/dist/features/project-updates/application/ports/outbound/PendingModuleLifecycleStatePort.d.ts.map +1 -0
- package/dist/features/project-updates/application/ports/outbound/PendingModuleLifecycleStatePort.js +2 -0
- package/dist/features/project-updates/application/ports/outbound/PendingModuleLifecycleStatePort.js.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.d.ts.map +1 -1
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.js +6 -38
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.js.map +1 -1
- package/dist/features/project-updates/composition/createStudioProjectUpdateProtocolPort.d.ts.map +1 -1
- package/dist/features/project-updates/composition/createStudioProjectUpdateProtocolPort.js +2 -0
- package/dist/features/project-updates/composition/createStudioProjectUpdateProtocolPort.js.map +1 -1
- package/dist/features/project-updates/domain/applyGeneratedPackagePolicy.d.ts.map +1 -1
- package/dist/features/project-updates/domain/applyGeneratedPackagePolicy.js +8 -12
- package/dist/features/project-updates/domain/applyGeneratedPackagePolicy.js.map +1 -1
- package/dist/features/project-updates/utils/digestProjectUpdateText.d.ts +3 -0
- package/dist/features/project-updates/utils/digestProjectUpdateText.d.ts.map +1 -0
- package/dist/features/project-updates/utils/digestProjectUpdateText.js +6 -0
- package/dist/features/project-updates/utils/digestProjectUpdateText.js.map +1 -0
- package/dist/features/screen-administration/domain/updateStudioScreenMetadata.d.ts.map +1 -0
- package/dist/features/screen-administration/domain/updateStudioScreenMetadata.js.map +1 -0
- package/dist/features/screen-administration/domain/updateStudioScreenRequirements.d.ts.map +1 -0
- package/dist/features/screen-administration/domain/updateStudioScreenRequirements.js.map +1 -0
- package/dist/host/apis/createProjectEndpointCredentialResolver.d.ts.map +1 -1
- package/dist/host/deploy/ProjectDeploySecretStore.d.ts +1 -1
- package/dist/host/deploy/ProjectDeploySecretStore.d.ts.map +1 -1
- package/dist/host/deploy/createProjectDeployAccess.d.ts.map +1 -1
- package/dist/host/deploy/serializeProjectDeploySecret.d.ts +1 -1
- package/dist/host/deploy/serializeProjectDeploySecret.d.ts.map +1 -1
- package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts.map +1 -1
- package/dist/host/layout/auth/resolveAuthLayoutPlan.js +1 -1
- package/dist/host/layout/auth/resolveAuthLayoutPlan.js.map +1 -1
- package/dist/host/layout/layoutGenerator.d.ts.map +1 -1
- package/dist/host/layout/layoutGenerator.js +234 -38
- package/dist/host/layout/layoutGenerator.js.map +1 -1
- package/dist/host/layout/navigator/createNavigatorGenerationBindings.js +33 -3
- package/dist/host/layout/navigator/createNavigatorGenerationBindings.js.map +1 -1
- package/dist/host/layout/templates/auth/adapter.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/adapter.js +36 -11
- package/dist/host/layout/templates/auth/adapter.js.map +1 -1
- package/dist/host/layout/templates/auth/callback.d.ts +1 -0
- package/dist/host/layout/templates/auth/callback.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/callback.js +1 -1
- package/dist/host/layout/templates/auth/callback.js.map +1 -1
- package/dist/host/layout/templates/auth/form.d.ts +3 -1
- package/dist/host/layout/templates/auth/form.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/form.js +7 -2
- package/dist/host/layout/templates/auth/form.js.map +1 -1
- package/dist/host/layout/templates/auth/oauth.d.ts +1 -0
- package/dist/host/layout/templates/auth/oauth.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/oauth.js +10 -27
- package/dist/host/layout/templates/auth/oauth.js.map +1 -1
- package/dist/host/layout/templates/auth/oauthCompletion.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/oauthCompletion.js +1 -11
- package/dist/host/layout/templates/auth/oauthCompletion.js.map +1 -1
- package/dist/host/layout/templates/auth/screen.d.ts +1 -0
- package/dist/host/layout/templates/auth/screen.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/screen.js +2 -1
- package/dist/host/layout/templates/auth/screen.js.map +1 -1
- package/dist/host/layout/templates/auth/screenController.d.ts +1 -0
- package/dist/host/layout/templates/auth/screenController.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/screenController.js +2 -1
- package/dist/host/layout/templates/auth/screenController.js.map +1 -1
- package/dist/host/layout/templates/auth/session.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/session.js +4 -7
- package/dist/host/layout/templates/auth/session.js.map +1 -1
- package/dist/host/layout/templates/auth/signOut.d.ts +3 -1
- package/dist/host/layout/templates/auth/signOut.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/signOut.js +2 -2
- package/dist/host/layout/templates/auth/signOut.js.map +1 -1
- package/dist/host/layout/templates/rootLayout.d.ts +1 -1
- package/dist/host/layout/templates/rootLayout.d.ts.map +1 -1
- package/dist/host/layout/templates/rootLayout.js +50 -32
- package/dist/host/layout/templates/rootLayout.js.map +1 -1
- package/dist/host/layout/templates/screen.d.ts +1 -0
- package/dist/host/layout/templates/screen.d.ts.map +1 -1
- package/dist/host/layout/templates/screen.js +2 -2
- package/dist/host/layout/templates/screen.js.map +1 -1
- package/dist/host/manifestSystem/auth/index.d.ts +1 -1
- package/dist/host/manifestSystem/auth/index.d.ts.map +1 -1
- package/dist/host/manifestSystem/auth/index.js +1 -1
- package/dist/host/manifestSystem/auth/index.js.map +1 -1
- package/dist/host/manifestSystem/auth/templates/global.auth.system.tpl.d.ts.map +1 -0
- package/dist/host/manifestSystem/auth/templates/global.auth.system.tpl.js.map +1 -0
- package/dist/host/manifestSystem/auth/templates/index.d.ts.map +1 -0
- package/dist/host/manifestSystem/auth/templates/index.js.map +1 -0
- package/dist/host/media/projectMediaStorage.d.ts +2 -2
- package/dist/host/media/projectMediaStorage.d.ts.map +1 -1
- package/dist/host/media/projectMediaStorage.js +2 -2
- package/dist/host/media/projectMediaStorage.js.map +1 -1
- package/dist/host/orchestrator/GeneratedRuntimeArtifactOwnership.d.ts +10 -0
- package/dist/host/orchestrator/GeneratedRuntimeArtifactOwnership.d.ts.map +1 -0
- package/dist/host/orchestrator/GeneratedRuntimeArtifactOwnership.js +121 -0
- package/dist/host/orchestrator/GeneratedRuntimeArtifactOwnership.js.map +1 -0
- package/dist/host/orchestrator/generatedAppFiles.d.ts +0 -1
- package/dist/host/orchestrator/generatedAppFiles.d.ts.map +1 -1
- package/dist/host/orchestrator/generatedAppFiles.js +1 -14
- package/dist/host/orchestrator/generatedAppFiles.js.map +1 -1
- package/dist/host/orchestrator/projectManager.d.ts +2 -1
- package/dist/host/orchestrator/projectManager.d.ts.map +1 -1
- package/dist/host/orchestrator/projectManager.js +10 -3
- package/dist/host/orchestrator/projectManager.js.map +1 -1
- package/dist/host/orchestrator/scaffolder.d.ts +2 -0
- package/dist/host/orchestrator/scaffolder.d.ts.map +1 -1
- package/dist/host/orchestrator/scaffolder.js +10 -2
- package/dist/host/orchestrator/scaffolder.js.map +1 -1
- package/dist/host/orchestrator/templateSources.d.ts +6 -2
- package/dist/host/orchestrator/templateSources.d.ts.map +1 -1
- package/dist/host/orchestrator/templateSources.js +93 -5
- package/dist/host/orchestrator/templateSources.js.map +1 -1
- package/dist/host/orchestrator/templates.d.ts +5 -3
- package/dist/host/orchestrator/templates.d.ts.map +1 -1
- package/dist/host/orchestrator/templates.js +1 -1
- package/dist/host/orchestrator/templates.js.map +1 -1
- package/dist/host/secrets/bunSupabaseVaultClient.d.ts +1 -1
- package/dist/host/secrets/bunSupabaseVaultClient.d.ts.map +1 -1
- package/dist/host/secrets/createScopedBunSupabaseVaultClient.d.ts +1 -1
- package/dist/host/secrets/createScopedBunSupabaseVaultClient.d.ts.map +1 -1
- package/dist/host/secrets/projectSecretService.d.ts +1 -1
- package/dist/host/secrets/projectSecretService.d.ts.map +1 -1
- package/dist/host/secrets/projectSecretService.js +3 -3
- package/dist/host/secrets/projectSecretService.js.map +1 -1
- package/dist/host/secrets/trustedOAuthInfraEnvironment.d.ts +1 -1
- package/dist/host/secrets/trustedOAuthInfraEnvironment.d.ts.map +1 -1
- package/dist/index.d.ts +2 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -94
- package/dist/index.js.map +1 -1
- package/dist/projectAuthHealth.d.ts +1 -1
- package/dist/projectAuthHealth.d.ts.map +1 -1
- package/dist/projectAuthHealth.js +1 -1
- package/dist/projectAuthHealth.js.map +1 -1
- package/dist/projectOAuthSetup.d.ts.map +1 -1
- package/dist/projectOAuthSetup.js +1 -1
- package/dist/projectOAuthSetup.js.map +1 -1
- package/dist/projectSecretApi.d.ts +1 -1
- package/dist/projectSecretApi.d.ts.map +1 -1
- package/dist/runtime/executeStudioRuntimeCapabilityAsync.d.ts +13 -0
- package/dist/runtime/executeStudioRuntimeCapabilityAsync.d.ts.map +1 -0
- package/dist/runtime/executeStudioRuntimeCapabilityAsync.js +110 -0
- package/dist/runtime/executeStudioRuntimeCapabilityAsync.js.map +1 -0
- package/dist/runtime/index.d.ts +2 -2
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/interactionPolicy.d.ts +3 -2
- package/dist/runtime/interactionPolicy.d.ts.map +1 -1
- package/dist/runtime/interactionPolicy.js +4 -5
- package/dist/runtime/interactionPolicy.js.map +1 -1
- package/dist/runtime/stationarySelection.d.ts +4 -1
- package/dist/runtime/stationarySelection.d.ts.map +1 -1
- package/dist/runtime/stationarySelection.js +3 -5
- package/dist/runtime/stationarySelection.js.map +1 -1
- package/dist/runtime/useStudioRuntimeCapabilityExecutor.d.ts +13 -0
- package/dist/runtime/useStudioRuntimeCapabilityExecutor.d.ts.map +1 -0
- package/dist/runtime/useStudioRuntimeCapabilityExecutor.js +21 -0
- package/dist/runtime/useStudioRuntimeCapabilityExecutor.js.map +1 -0
- package/dist/types/project-updates.d.ts +4 -2
- package/dist/types/project-updates.d.ts.map +1 -1
- package/dist/ui/StudioDeleteDialog.js +1 -1
- package/dist/ui/StudioDeleteDialog.js.map +1 -1
- package/dist/ui/StudioInsertDialog.d.ts.map +1 -1
- package/dist/ui/StudioInsertDialog.js +1 -1
- package/dist/ui/StudioInsertDialog.js.map +1 -1
- package/dist/ui/admin/ModuleAdminViewBoundary.js +1 -1
- package/dist/ui/admin/ModuleAdminViewBoundary.js.map +1 -1
- package/dist/ui/admin/adminPagePrimitives.js +1 -1
- package/dist/ui/admin/adminPagePrimitives.js.map +1 -1
- package/dist/ui/admin/pages/ApiCatalogCard.d.ts.map +1 -1
- package/dist/ui/admin/pages/ApiCatalogCard.js +1 -1
- package/dist/ui/admin/pages/ApiCatalogCard.js.map +1 -1
- package/dist/ui/admin/pages/ApiOperationsCard.js +1 -1
- package/dist/ui/admin/pages/ApiOperationsCard.js.map +1 -1
- package/dist/ui/admin/pages/ApisAdminPage.js +1 -1
- package/dist/ui/admin/pages/ApisAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/AuthAdminPage.js +2 -2
- package/dist/ui/admin/pages/AuthAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/BindingsAdminPage.d.ts.map +1 -1
- package/dist/ui/admin/pages/BindingsAdminPage.js +5 -7
- package/dist/ui/admin/pages/BindingsAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/DeployAdminPage.js +1 -1
- package/dist/ui/admin/pages/DeployAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ExternalApiAdminPrimitives.js +1 -1
- package/dist/ui/admin/pages/ExternalApiAdminPrimitives.js.map +1 -1
- package/dist/ui/admin/pages/ExternalApiConnectCard.js +1 -1
- package/dist/ui/admin/pages/ExternalApiConnectCard.js.map +1 -1
- package/dist/ui/admin/pages/ExternalApiEditCard.d.ts.map +1 -1
- package/dist/ui/admin/pages/ExternalApiEditCard.js +1 -1
- package/dist/ui/admin/pages/ExternalApiEditCard.js.map +1 -1
- package/dist/ui/admin/pages/ManualRestApiCard.d.ts.map +1 -1
- package/dist/ui/admin/pages/ManualRestApiCard.js +1 -1
- package/dist/ui/admin/pages/ManualRestApiCard.js.map +1 -1
- package/dist/ui/admin/pages/MediaAdminPage.js +1 -1
- package/dist/ui/admin/pages/MediaAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/MediaDeviceImportCard.js +1 -1
- package/dist/ui/admin/pages/MediaDeviceImportCard.js.map +1 -1
- package/dist/ui/admin/pages/MediaPropertyInput.js +1 -1
- package/dist/ui/admin/pages/MediaPropertyInput.js.map +1 -1
- package/dist/ui/admin/pages/ModuleDetailAdminPage.js +1 -1
- package/dist/ui/admin/pages/ModuleDetailAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ModulesAdminPage.js +1 -1
- package/dist/ui/admin/pages/ModulesAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/OverviewAdminPage.js +1 -1
- package/dist/ui/admin/pages/OverviewAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/PropertiesAdminPage.js +1 -1
- package/dist/ui/admin/pages/PropertiesAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ScreenDetailAdminPage.d.ts.map +1 -1
- package/dist/ui/admin/pages/ScreenDetailAdminPage.js +1 -1
- package/dist/ui/admin/pages/ScreenDetailAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ScreensAdminPage.js +1 -1
- package/dist/ui/admin/pages/ScreensAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/SecretsAdminPage.d.ts.map +1 -1
- package/dist/ui/admin/pages/SecretsAdminPage.js +1 -1
- package/dist/ui/admin/pages/SecretsAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ThemeAdminPage.js +1 -1
- package/dist/ui/admin/pages/ThemeAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ThemeColorsAdminPage.js +1 -1
- package/dist/ui/admin/pages/ThemeColorsAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ThemeModeEditorSelector.js +1 -1
- package/dist/ui/admin/pages/ThemeModeEditorSelector.js.map +1 -1
- package/dist/ui/admin/pages/ThemeNumericTokensAdminPage.js +1 -1
- package/dist/ui/admin/pages/ThemeNumericTokensAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ThemeRecipeAdminPage.js +1 -1
- package/dist/ui/admin/pages/ThemeRecipeAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ThemeRecipeCatalog.js +1 -1
- package/dist/ui/admin/pages/ThemeRecipeCatalog.js.map +1 -1
- package/dist/ui/admin/pages/ThemeTypographyAdminPage.js +1 -1
- package/dist/ui/admin/pages/ThemeTypographyAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/bindings/BindingDiagnosticsCard.js +1 -1
- package/dist/ui/admin/pages/bindings/BindingDiagnosticsCard.js.map +1 -1
- package/dist/ui/admin/pages/bindings/EventBindingComposer.d.ts +3 -3
- package/dist/ui/admin/pages/bindings/EventBindingComposer.d.ts.map +1 -1
- package/dist/ui/admin/pages/bindings/EventBindingComposer.js +23 -32
- package/dist/ui/admin/pages/bindings/EventBindingComposer.js.map +1 -1
- package/dist/ui/admin/pages/bindings/EventBindingsCard.d.ts +2 -2
- package/dist/ui/admin/pages/bindings/EventBindingsCard.d.ts.map +1 -1
- package/dist/ui/admin/pages/bindings/EventBindingsCard.js +3 -6
- package/dist/ui/admin/pages/bindings/EventBindingsCard.js.map +1 -1
- package/dist/ui/admin/pages/bindings/PropertyBindingEditor.d.ts +2 -2
- package/dist/ui/admin/pages/bindings/PropertyBindingEditor.d.ts.map +1 -1
- package/dist/ui/admin/pages/bindings/PropertyBindingEditor.js +57 -28
- package/dist/ui/admin/pages/bindings/PropertyBindingEditor.js.map +1 -1
- package/dist/ui/admin/pages/bindings/PropertyBindingsCard.d.ts +2 -2
- package/dist/ui/admin/pages/bindings/PropertyBindingsCard.d.ts.map +1 -1
- package/dist/ui/admin/pages/bindings/PropertyBindingsCard.js +2 -2
- package/dist/ui/admin/pages/bindings/PropertyBindingsCard.js.map +1 -1
- package/dist/ui/admin/pages/bindings/bindingEditorModel.d.ts +9 -17
- package/dist/ui/admin/pages/bindings/bindingEditorModel.d.ts.map +1 -1
- package/dist/ui/admin/pages/bindings/bindingEditorModel.js +30 -27
- package/dist/ui/admin/pages/bindings/bindingEditorModel.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployAuthoredStateCard.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployAuthoredStateCard.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployControlResultView.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployControlResultView.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployExecutionResultView.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployExecutionResultView.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployHistoryCard.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployHistoryCard.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployLifecycleControls.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployLifecycleControls.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployListingLocaleAuthoringCard.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployListingLocaleAuthoringCard.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployMonetizationAuthoringCard.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployMonetizationAuthoringCard.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployMonetizationExecutionView.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployMonetizationExecutionView.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployMonetizationPlanView.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployMonetizationPlanView.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployMonetizationSyncCard.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployMonetizationSyncCard.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployOwnerAuthoringEditor.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployOwnerAuthoringEditor.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployPlanPreview.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployPlanPreview.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployPreparedReleaseAuthoringCard.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployPreparedReleaseAuthoringCard.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployReleaseOperationsCard.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployReleaseOperationsCard.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployResumeActions.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployResumeActions.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployStoreAssetAuthoringCard.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployStoreAssetAuthoringCard.js.map +1 -1
- package/dist/ui/admin/pages/deploy/DeployTargetsCard.js +1 -1
- package/dist/ui/admin/pages/deploy/DeployTargetsCard.js.map +1 -1
- package/dist/ui/admin/pages/themeRecipeTokenOptions.d.ts +1 -1
- package/dist/ui/admin/pages/themeRecipeTokenOptions.d.ts.map +1 -1
- package/dist/ui/admin/pages/useActiveThemeAdmin.js +1 -1
- package/dist/ui/admin/pages/useActiveThemeAdmin.js.map +1 -1
- package/dist/ui/canvas/StudioCanvasDndOverlay.js +1 -1
- package/dist/ui/canvas/StudioCanvasDndOverlay.js.map +1 -1
- package/dist/ui/createStudioAppBarActions.js +1 -1
- package/dist/ui/createStudioAppBarActions.js.map +1 -1
- package/package.json +90 -25
- package/dist/features/screen-administration/application/use-cases/updateStudioScreenMetadata.d.ts.map +0 -1
- package/dist/features/screen-administration/application/use-cases/updateStudioScreenMetadata.js.map +0 -1
- package/dist/features/screen-administration/application/use-cases/updateStudioScreenRequirements.d.ts.map +0 -1
- package/dist/features/screen-administration/application/use-cases/updateStudioScreenRequirements.js.map +0 -1
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.d.ts.map +0 -1
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.js.map +0 -1
- package/dist/host/manifestSystem/auth/shared/index.d.ts.map +0 -1
- package/dist/host/manifestSystem/auth/shared/index.js.map +0 -1
- package/dist/runtime/runtimeActions.d.ts +0 -23
- package/dist/runtime/runtimeActions.d.ts.map +0 -1
- package/dist/runtime/runtimeActions.js +0 -9
- package/dist/runtime/runtimeActions.js.map +0 -1
- package/dist/runtime/useRuntimeAction.d.ts +0 -14
- package/dist/runtime/useRuntimeAction.d.ts.map +0 -1
- package/dist/runtime/useRuntimeAction.js +0 -34
- package/dist/runtime/useRuntimeAction.js.map +0 -1
- /package/dist/features/screen-administration/{application/use-cases → domain}/updateStudioScreenMetadata.d.ts +0 -0
- /package/dist/features/screen-administration/{application/use-cases → domain}/updateStudioScreenMetadata.js +0 -0
- /package/dist/features/screen-administration/{application/use-cases → domain}/updateStudioScreenRequirements.d.ts +0 -0
- /package/dist/features/screen-administration/{application/use-cases → domain}/updateStudioScreenRequirements.js +0 -0
- /package/dist/host/manifestSystem/auth/{shared → templates}/global.auth.system.tpl.d.ts +0 -0
- /package/dist/host/manifestSystem/auth/{shared → templates}/global.auth.system.tpl.js +0 -0
- /package/dist/host/manifestSystem/auth/{shared → templates}/index.d.ts +0 -0
- /package/dist/host/manifestSystem/auth/{shared → templates}/index.js +0 -0
|
@@ -5,20 +5,12 @@ export function getRootLayoutImportRequirements(includeStudio) {
|
|
|
5
5
|
return [
|
|
6
6
|
{
|
|
7
7
|
source: 'react',
|
|
8
|
-
namedImports: [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
],
|
|
8
|
+
namedImports: [{ imported: 'ReactNode', typeOnly: true }, { imported: 'useEffect' }],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
source: 'react-native',
|
|
12
|
+
namedImports: !includeStudio ? [{ imported: 'Alert' }] : [],
|
|
13
13
|
},
|
|
14
|
-
...(includeStudio
|
|
15
|
-
? [
|
|
16
|
-
{
|
|
17
|
-
source: 'react-native',
|
|
18
|
-
namedImports: [],
|
|
19
|
-
},
|
|
20
|
-
]
|
|
21
|
-
: []),
|
|
22
14
|
{
|
|
23
15
|
source: '@ankhorage/expo-runtime/bundled-media',
|
|
24
16
|
namedImports: [{ imported: 'createExpoBundledMediaResolver' }],
|
|
@@ -77,10 +69,14 @@ function indentGeneratedBlock(content, indent = ' ') {
|
|
|
77
69
|
* TODO: Move generated application-shell template ownership out of the generic host/layout bucket into the project/template generation domain.
|
|
78
70
|
*/
|
|
79
71
|
export function getRootLayoutTsx(args) {
|
|
80
|
-
const { manifest, mutations, allImports, allHooks, innerNavigation, includeStudio, authRuntime, initialRouteNameOverride, runtimeModuleDeclarations,
|
|
72
|
+
const { manifest, mutations, allImports, allHooks, innerNavigation, includeStudio, authRuntime, initialRouteNameOverride, runtimeModuleDeclarations, runtimeCapabilityExecutorHookName, runtimeProviderEnd = [], runtimeProviderStart = [], useStoredAuthSessionCredentialResolver = false, } = args;
|
|
81
73
|
const moduleProvidersStart = mutations.flatMap((m) => m.providerStart);
|
|
82
74
|
const moduleProvidersEnd = mutations.flatMap((m) => m.providerEnd).reverse();
|
|
83
75
|
const innerThemeHook = innerNavigation.usesTheme ? ' const { theme } = useZoraTheme();\n' : '';
|
|
76
|
+
const resolvedRuntimeCapabilityExecutorHookName = runtimeCapabilityExecutorHookName ??
|
|
77
|
+
(includeStudio
|
|
78
|
+
? 'useStudioRuntimeCapabilityExecutor'
|
|
79
|
+
: 'useGeneratedRuntimeCapabilityExecutor');
|
|
84
80
|
const providersStart = [...runtimeProviderStart, ...moduleProvidersStart].join('\n ');
|
|
85
81
|
const providersEnd = [...moduleProvidersEnd, ...runtimeProviderEnd].join('\n ');
|
|
86
82
|
const finalJsx = providersStart ? `{${providersStart}{output}${providersEnd}}` : '{output}';
|
|
@@ -188,6 +184,9 @@ const { authState, handleInnerContentReady } = useGeneratedAuthNavigation();
|
|
|
188
184
|
}
|
|
189
185
|
`
|
|
190
186
|
: '';
|
|
187
|
+
const runtimeCredentialResolver = useStoredAuthSessionCredentialResolver
|
|
188
|
+
? '\n credentialResolver: resolveRuntimeOperationCredential,'
|
|
189
|
+
: '';
|
|
191
190
|
const runtimeOperationHelpers = `
|
|
192
191
|
async function runtimeApiFetch(
|
|
193
192
|
url: string,
|
|
@@ -226,24 +225,48 @@ function resolveRuntimeOperationCredential(credential: { readonly kind?: string
|
|
|
226
225
|
`
|
|
227
226
|
: ''}
|
|
228
227
|
`;
|
|
229
|
-
const runtimeContentDeclaration = `const
|
|
228
|
+
const runtimeContentDeclaration = `const runtimeContent = (
|
|
229
|
+
<GeneratedRuntimeContent runtimeManifest={runtimeManifest}>
|
|
230
|
+
{appContent}
|
|
231
|
+
</GeneratedRuntimeContent>
|
|
232
|
+
);`;
|
|
233
|
+
const generatedRuntimeContent = `function GeneratedRuntimeContent({
|
|
234
|
+
children,
|
|
235
|
+
runtimeManifest,
|
|
236
|
+
}: {
|
|
237
|
+
children: ReactNode;
|
|
238
|
+
runtimeManifest: AppManifest;
|
|
239
|
+
}) {${includeStudio ? '\n const { setMode } = useZoraTheme();' : ''}
|
|
240
|
+
const { executeCapability: executeApplicationCapability } =
|
|
241
|
+
${resolvedRuntimeCapabilityExecutorHookName}(${includeStudio ? '{ setThemeMode: setMode }' : ''});
|
|
242
|
+
const executeCapability = useMemo(
|
|
243
|
+
() =>
|
|
244
|
+
composeRuntimeCapabilityExecutor({
|
|
245
|
+
apiCapabilityExecutor: createRuntimeApiCapabilityExecutor({
|
|
246
|
+
apis: runtimeManifest.infra.apis ?? {},
|
|
247
|
+
fetch: runtimeApiFetch,${runtimeCredentialResolver}
|
|
248
|
+
}),
|
|
249
|
+
capabilityExecutor: executeApplicationCapability,
|
|
250
|
+
}),
|
|
251
|
+
[executeApplicationCapability, runtimeManifest.infra.apis],
|
|
252
|
+
);
|
|
230
253
|
|
|
231
254
|
const generatedRuntimeConfig = useMemo(
|
|
232
255
|
() => ({
|
|
233
|
-
|
|
256
|
+
executeCapability,
|
|
234
257
|
registry: runtimeComponentRegistry,
|
|
235
|
-
executeOperation,
|
|
236
258
|
mediaAssets: runtimeManifest.media?.assets,
|
|
237
259
|
resolveMediaAsset: bundledMediaResolver,
|
|
238
260
|
}),
|
|
239
|
-
[
|
|
261
|
+
[executeCapability, runtimeManifest.media?.assets],
|
|
240
262
|
);
|
|
241
263
|
|
|
242
|
-
|
|
264
|
+
return (
|
|
243
265
|
<RuntimeRendererConfigProvider value={generatedRuntimeConfig}>
|
|
244
|
-
{
|
|
266
|
+
{children}
|
|
245
267
|
</RuntimeRendererConfigProvider>
|
|
246
|
-
)
|
|
268
|
+
);
|
|
269
|
+
}`;
|
|
247
270
|
const outputDeclaration = includeStudio
|
|
248
271
|
? `${runtimeContentDeclaration}
|
|
249
272
|
const output = __DEV__ ? (
|
|
@@ -252,7 +275,6 @@ function resolveRuntimeOperationCredential(credential: { readonly kind?: string
|
|
|
252
275
|
) : (
|
|
253
276
|
<AnkhStudio
|
|
254
277
|
runtimeRegistry={runtimeComponentRegistry}
|
|
255
|
-
runtimeConfig={generatedRuntimeConfig}
|
|
256
278
|
bundledMediaRegistry={bundledMediaRegistry}
|
|
257
279
|
>
|
|
258
280
|
{runtimeContent}
|
|
@@ -324,9 +346,6 @@ const shouldMountAppHeader =
|
|
|
324
346
|
: `<AppShell>
|
|
325
347
|
${finalJsx}
|
|
326
348
|
</AppShell>`;
|
|
327
|
-
const runtimeCredentialResolver = useStoredAuthSessionCredentialResolver
|
|
328
|
-
? '\n credentialResolver: resolveRuntimeOperationCredential,'
|
|
329
|
-
: '';
|
|
330
349
|
const runtimeComponentRegistryDeclaration = 'const runtimeComponentRegistry = APP_COMPONENT_REGISTRY;';
|
|
331
350
|
return `
|
|
332
351
|
${allImports}
|
|
@@ -383,13 +402,6 @@ ${indentedRootHookBlock} const manifestContext = useOptionalManifestContext();
|
|
|
383
402
|
const runtimeManifest = manifestContext?.manifest ?? fallbackManifest;${indentedStudioRuntimeLines}
|
|
384
403
|
const activeTheme = resolveManifestActiveTheme(runtimeManifest);
|
|
385
404
|
const activeThemeMode = resolveThemeMode(runtimeManifest.activeThemeMode, 'light');
|
|
386
|
-
const executeOperation = useMemo(
|
|
387
|
-
() =>
|
|
388
|
-
createRuntimeApiOperationExecutor({
|
|
389
|
-
fetch: runtimeApiFetch,${runtimeCredentialResolver}
|
|
390
|
-
}),
|
|
391
|
-
[],
|
|
392
|
-
);
|
|
393
405
|
${indentedHandleInnerContentReadyDeclaration} const appContent = ${innerContentNode};
|
|
394
406
|
|
|
395
407
|
${outputDeclaration}
|
|
@@ -433,6 +445,7 @@ function StudioShell({
|
|
|
433
445
|
setActiveCanvasDragNodeId,
|
|
434
446
|
setLastNonAdminLocation,
|
|
435
447
|
} = useStudio();
|
|
448
|
+
const { theme } = useZoraTheme();
|
|
436
449
|
useEffect(() => {
|
|
437
450
|
const nextAppLocation = resolveStudioLastNonAdminLocation({
|
|
438
451
|
pathname: appPathname,
|
|
@@ -444,6 +457,7 @@ function StudioShell({
|
|
|
444
457
|
const studioWrapNode = useMemo(
|
|
445
458
|
() =>
|
|
446
459
|
createStudioStationarySelectionWrapNode({
|
|
460
|
+
builtInComponentRegistry: studioInteractionPolicyComponentRegistry,
|
|
447
461
|
previewMode,
|
|
448
462
|
thirdPartySupport: APP_EXTENSION_INTERACTION_POLICY_SUPPORT,
|
|
449
463
|
}),
|
|
@@ -452,6 +466,7 @@ function StudioShell({
|
|
|
452
466
|
const studioResolveNodeProps = useMemo(
|
|
453
467
|
() =>
|
|
454
468
|
createStudioInteractionPolicyResolver({
|
|
469
|
+
builtInComponentRegistry: studioInteractionPolicyComponentRegistry,
|
|
455
470
|
previewMode,
|
|
456
471
|
thirdPartySupport: APP_EXTENSION_INTERACTION_POLICY_SUPPORT,
|
|
457
472
|
}),
|
|
@@ -493,6 +508,7 @@ function StudioShell({
|
|
|
493
508
|
setActiveDragNodeId: setActiveCanvasDragNodeId,
|
|
494
509
|
}}
|
|
495
510
|
isEditMode={!previewMode}
|
|
511
|
+
selectionColor={theme.semantics.action.primary.base}
|
|
496
512
|
selectedNodeId={selectedNodeId}
|
|
497
513
|
selectNode={selectNode}
|
|
498
514
|
>
|
|
@@ -526,6 +542,8 @@ function StudioAppHeader({ appHeaderTitle }: { appHeaderTitle: string }) {
|
|
|
526
542
|
}`
|
|
527
543
|
: ''}
|
|
528
544
|
|
|
545
|
+
${generatedRuntimeContent}
|
|
546
|
+
|
|
529
547
|
function GeneratedZoraProvider({
|
|
530
548
|
children,
|
|
531
549
|
theme,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootLayout.js","sourceRoot":"","sources":["../../../../src/host/layout/templates/rootLayout.ts"],"names":[],"mappings":"AAoCA;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAC7C,aAAsB;IAEtB,OAAO;QACL;YACE,MAAM,EAAE,OAAO;YACf,YAAY,EAAE
|
|
1
|
+
{"version":3,"file":"rootLayout.js","sourceRoot":"","sources":["../../../../src/host/layout/templates/rootLayout.ts"],"names":[],"mappings":"AAoCA;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAC7C,aAAsB;IAEtB,OAAO;QACL;YACE,MAAM,EAAE,OAAO;YACf,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;SACrF;QACD;YACE,MAAM,EAAE,cAAc;YACtB,YAAY,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;SAC5D;QACD;YACE,MAAM,EAAE,uCAAuC;YAC/C,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,gCAAgC,EAAE,CAAC;SAC/D;QACD;YACE,MAAM,EAAE,2BAA2B;YACnC,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC;SAChD;QACD;YACE,MAAM,EAAE,oCAAoC;YAC5C,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,0BAA0B,EAAE,CAAC;SACzD;QACD;YACE,MAAM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ora' | '@ankhorage/zora/reader-free';
|
|
9
10
|
}): string;
|
|
10
11
|
//# sourceMappingURL=screen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../../src/host/layout/templates/screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../../src/host/layout/templates/screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,UAAU,CAAC;IACtB,cAAc,CAAC,EAAE,iBAAiB,GAAG,6BAA6B,CAAC;CACpE,UAkHA"}
|
|
@@ -5,7 +5,7 @@ import { toSafeComponentName } from './utils/strings';
|
|
|
5
5
|
* TODO: Keep generated screen-module policy with the routes/project-generation owner rather than a generic host layout bucket.
|
|
6
6
|
*/
|
|
7
7
|
export function getScreenTsx(args) {
|
|
8
|
-
const { screenId, screenDef } = args;
|
|
8
|
+
const { screenId, screenDef, zoraEntrypoint = '@ankhorage/zora' } = args;
|
|
9
9
|
const safeName = toSafeComponentName(screenDef.name);
|
|
10
10
|
return `import type { AppManifest } from '@ankhorage/contracts';
|
|
11
11
|
import {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
useOptionalManifestContext,
|
|
16
16
|
useRuntimeRendererConfig,
|
|
17
17
|
} from '@ankhorage/runtime';
|
|
18
|
-
import { Text, useZoraTheme } from '
|
|
18
|
+
import { Text, useZoraTheme } from '${zoraEntrypoint}';
|
|
19
19
|
import ankhConfig from '@root/ankh.config.json';
|
|
20
20
|
import { useGlobalSearchParams, useLocalSearchParams } from 'expo-router';
|
|
21
21
|
import { useMemo } from 'react';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.js","sourceRoot":"","sources":["../../../../src/host/layout/templates/screen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"screen.js","sourceRoot":"","sources":["../../../../src/host/layout/templates/screen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,IAI5B;IACC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,GAAG,iBAAiB,EAAE,GAAG,IAAI,CAAC;IACzE,MAAM,QAAQ,GAAG,mBAAmB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAErD,OAAO;;;;;;;;sCAQ6B,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAuC1B,QAAQ;;;;;;;;;;;gEAW8B,mBAAmB,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD5F,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/host/manifestSystem/auth/index.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/host/manifestSystem/auth/index.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/host/manifestSystem/auth/index.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/host/manifestSystem/auth/index.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global.auth.system.tpl.d.ts","sourceRoot":"","sources":["../../../../../src/host/manifestSystem/auth/templates/global.auth.system.tpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,gFAAgF;AAChF,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAE/E;AAED,qGAAqG;AACrG,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,WAAW,GAAG,WAAW,CAEhF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global.auth.system.tpl.js","sourceRoot":"","sources":["../../../../../src/host/manifestSystem/auth/templates/global.auth.system.tpl.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,MAAM,UAAU,gCAAgC,CAAC,QAAqB;IACpE,OAAO,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,KAAK,QAAQ,CAAC;AACpE,CAAC;AAED,qGAAqG;AACrG,MAAM,UAAU,6BAA6B,CAAC,QAAqB;IACjE,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/host/manifestSystem/auth/templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAM1D,eAAO,MAAM,mCAAmC,EAAE,sBAKjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/host/manifestSystem/auth/templates/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,0BAA0B,CAAC;AAElC,MAAM,CAAC,MAAM,mCAAmC,GAA2B;IACzE,EAAE,EAAE,qBAAqB;IACzB,WAAW,EAAE,sEAAsE;IACnF,OAAO,EAAE,gCAAgC;IACzC,KAAK,EAAE,6BAA6B;CACrC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StoragePort } from '@ankhorage/storage';
|
|
2
2
|
import type { ProjectManager } from '../orchestrator/projectManager';
|
|
3
3
|
export interface ProjectMediaStorageContext {
|
|
4
|
-
readonly adapter:
|
|
4
|
+
readonly adapter: StoragePort;
|
|
5
5
|
readonly bucket: string;
|
|
6
6
|
}
|
|
7
7
|
/*** Resolve the active project's canonical authoring-media storage adapter from manifest and Infra outputs. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectMediaStorage.d.ts","sourceRoot":"","sources":["../../../src/host/media/projectMediaStorage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"projectMediaStorage.d.ts","sourceRoot":"","sources":["../../../src/host/media/projectMediaStorage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,+GAA+G;AAC/G,wBAAsB,0BAA0B,CAAC,IAAI,EAAE;IACrD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAwBtC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createSupabaseStorageAdapter } from '@ankhorage/storage-supabase';
|
|
2
2
|
/*** Resolve the active project's canonical authoring-media storage adapter from manifest and Infra outputs. */
|
|
3
3
|
export async function resolveProjectMediaStorage(args) {
|
|
4
4
|
const manifest = await args.projectManager.getProjectManifest(args.projectId);
|
|
@@ -18,7 +18,7 @@ export async function resolveProjectMediaStorage(args) {
|
|
|
18
18
|
const anonKey = readPublicEnvironmentOutput(outputs.outputs, 'EXPO_PUBLIC_SUPABASE_ANON_KEY');
|
|
19
19
|
if (!url || !anonKey)
|
|
20
20
|
throw new Error('Run Infra Up before importing media.');
|
|
21
|
-
return { adapter:
|
|
21
|
+
return { adapter: createSupabaseStorageAdapter({ url, anonKey, bucket }), bucket };
|
|
22
22
|
}
|
|
23
23
|
/*** Read one non-empty public Infra output by its application environment-variable name. */
|
|
24
24
|
function readPublicEnvironmentOutput(outputs, environmentVariable) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectMediaStorage.js","sourceRoot":"","sources":["../../../src/host/media/projectMediaStorage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"projectMediaStorage.js","sourceRoot":"","sources":["../../../src/host/media/projectMediaStorage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAS3E,+GAA+G;AAC/G,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,IAIhD;IACC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC9E,MAAM,EAAE,aAAa,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,YAAY,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,CAC7F,CAAC;IACF,IAAI,MAAM,EAAE,UAAU,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACtD,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1C,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*** Own the generated Runtime executor separately from route generation, so its lifecycle cannot widen route ownership. */
|
|
2
|
+
export declare class GeneratedRuntimeArtifactOwnership {
|
|
3
|
+
/*** Identify the sole Runtime artifact owned by this generator lifecycle. */
|
|
4
|
+
static isGeneratedRuntimeArtifactPath(relativePath: string): boolean;
|
|
5
|
+
/*** Initialize Runtime artifact ownership for a newly generated project. */
|
|
6
|
+
initialize(projectPath: string, generatedPaths: readonly string[]): Promise<void>;
|
|
7
|
+
/*** Reconcile generated Runtime artifacts by deleting only stale executor files recorded in this owner ledger. */
|
|
8
|
+
reconcile(projectPath: string, generatedPaths: readonly string[]): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=GeneratedRuntimeArtifactOwnership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneratedRuntimeArtifactOwnership.d.ts","sourceRoot":"","sources":["../../../src/host/orchestrator/GeneratedRuntimeArtifactOwnership.ts"],"names":[],"mappings":"AAcA,2HAA2H;AAC3H,qBAAa,iCAAiC;IAC5C,6EAA6E;IAC7E,MAAM,CAAC,8BAA8B,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAIpE,4EAA4E;IACtE,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAQvF,kHAAkH;IAC5G,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAYvF"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { isMissingPathError, writeJsonFileAtomic } from '@ankhorage/utility/node/fs';
|
|
2
|
+
import { normalizePortablePath, resolvePathWithinRoot } from '@ankhorage/utility/node/path';
|
|
3
|
+
import { isRecord } from '@ankhorage/utility/object';
|
|
4
|
+
import { promises as fs } from 'fs';
|
|
5
|
+
const RUNTIME_ARTIFACT_LEDGER_REL_PATH = '.ankh/runtime-artifact-ledger.json';
|
|
6
|
+
const RUNTIME_CAPABILITY_EXECUTOR_PATH = 'src/generated/runtimeCapabilityExecutor.ts';
|
|
7
|
+
/*** Own the generated Runtime executor separately from route generation, so its lifecycle cannot widen route ownership. */
|
|
8
|
+
export class GeneratedRuntimeArtifactOwnership {
|
|
9
|
+
/*** Identify the sole Runtime artifact owned by this generator lifecycle. */
|
|
10
|
+
static isGeneratedRuntimeArtifactPath(relativePath) {
|
|
11
|
+
return normalizePortablePath(relativePath) === RUNTIME_CAPABILITY_EXECUTOR_PATH;
|
|
12
|
+
}
|
|
13
|
+
/*** Initialize Runtime artifact ownership for a newly generated project. */
|
|
14
|
+
async initialize(projectPath, generatedPaths) {
|
|
15
|
+
await assertRuntimeArtifactLedgerMissing(projectPath);
|
|
16
|
+
await writeRuntimeArtifactLedger(projectPath, createRuntimeArtifactLedger(projectPath, generatedPaths));
|
|
17
|
+
}
|
|
18
|
+
/*** Reconcile generated Runtime artifacts by deleting only stale executor files recorded in this owner ledger. */
|
|
19
|
+
async reconcile(projectPath, generatedPaths) {
|
|
20
|
+
const nextLedger = createRuntimeArtifactLedger(projectPath, generatedPaths);
|
|
21
|
+
const previousLedger = await readRuntimeArtifactLedgerOrInitialize(projectPath, nextLedger);
|
|
22
|
+
const nextFiles = new Set(nextLedger.files);
|
|
23
|
+
for (const relativePath of previousLedger.files) {
|
|
24
|
+
if (nextFiles.has(relativePath))
|
|
25
|
+
continue;
|
|
26
|
+
await fs.rm(resolveRuntimeArtifactFile(projectPath, relativePath), { force: true });
|
|
27
|
+
}
|
|
28
|
+
await writeRuntimeArtifactLedger(projectPath, nextLedger);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/*** Require the Runtime artifact ledger to be absent before first ownership initialization. */
|
|
32
|
+
async function assertRuntimeArtifactLedgerMissing(projectPath) {
|
|
33
|
+
const ledgerPath = resolveProjectFile(projectPath, RUNTIME_ARTIFACT_LEDGER_REL_PATH);
|
|
34
|
+
try {
|
|
35
|
+
await fs.access(ledgerPath);
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
if (isMissingPathError(error))
|
|
39
|
+
return;
|
|
40
|
+
throw error;
|
|
41
|
+
}
|
|
42
|
+
throw new Error(`Project Runtime artifact ownership state already exists at '${ledgerPath}'.`);
|
|
43
|
+
}
|
|
44
|
+
/*** Create canonical Runtime artifact ownership state after validating the exact generated executor path. */
|
|
45
|
+
function createRuntimeArtifactLedger(projectPath, generatedPaths) {
|
|
46
|
+
const files = [...new Set(generatedPaths.map(normalizePortablePath))].sort();
|
|
47
|
+
for (const filePath of files)
|
|
48
|
+
resolveRuntimeArtifactFile(projectPath, filePath);
|
|
49
|
+
return {
|
|
50
|
+
schemaVersion: 1,
|
|
51
|
+
generatedAt: new Date().toISOString(),
|
|
52
|
+
files,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/*** Validate the persisted Runtime artifact ledger contract before cleanup. */
|
|
56
|
+
function isRuntimeArtifactLedger(value) {
|
|
57
|
+
return (isRecord(value) &&
|
|
58
|
+
value.schemaVersion === 1 &&
|
|
59
|
+
typeof value.generatedAt === 'string' &&
|
|
60
|
+
value.generatedAt.length > 0 &&
|
|
61
|
+
Array.isArray(value.files) &&
|
|
62
|
+
value.files.every((filePath) => typeof filePath === 'string'));
|
|
63
|
+
}
|
|
64
|
+
/*** Read the Runtime artifact ledger, initializing it from the current generated output for pre-ledger projects. */
|
|
65
|
+
async function readRuntimeArtifactLedgerOrInitialize(projectPath, initialLedger) {
|
|
66
|
+
const ledgerPath = resolveProjectFile(projectPath, RUNTIME_ARTIFACT_LEDGER_REL_PATH);
|
|
67
|
+
let source;
|
|
68
|
+
try {
|
|
69
|
+
source = await fs.readFile(ledgerPath, 'utf8');
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
if (isMissingPathError(error))
|
|
73
|
+
return initialLedger;
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
let parsed;
|
|
77
|
+
try {
|
|
78
|
+
parsed = JSON.parse(source);
|
|
79
|
+
}
|
|
80
|
+
catch (error) {
|
|
81
|
+
throw new Error(`Project Runtime artifact ownership state is invalid at '${ledgerPath}'.`, {
|
|
82
|
+
cause: error,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
if (!isRuntimeArtifactLedger(parsed)) {
|
|
86
|
+
throw new Error(`Project Runtime artifact ownership state is invalid at '${ledgerPath}'.`);
|
|
87
|
+
}
|
|
88
|
+
const files = parsed.files.map(normalizePortablePath);
|
|
89
|
+
try {
|
|
90
|
+
for (const filePath of files)
|
|
91
|
+
resolveRuntimeArtifactFile(projectPath, filePath);
|
|
92
|
+
}
|
|
93
|
+
catch (error) {
|
|
94
|
+
throw new Error(`Project Runtime artifact ownership state is invalid at '${ledgerPath}'.`, {
|
|
95
|
+
cause: error,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return { ...parsed, files };
|
|
99
|
+
}
|
|
100
|
+
/*** Resolve the exact generated Runtime executor and reject every other generated path. */
|
|
101
|
+
function resolveRuntimeArtifactFile(projectPath, relativePath) {
|
|
102
|
+
const target = resolveProjectFile(projectPath, relativePath);
|
|
103
|
+
if (!GeneratedRuntimeArtifactOwnership.isGeneratedRuntimeArtifactPath(relativePath)) {
|
|
104
|
+
throw new Error(`Path is outside current Runtime artifact ownership: ${relativePath}`);
|
|
105
|
+
}
|
|
106
|
+
return target;
|
|
107
|
+
}
|
|
108
|
+
/*** Resolve a relative Runtime artifact path beneath its project root. */
|
|
109
|
+
function resolveProjectFile(projectPath, relativePath) {
|
|
110
|
+
try {
|
|
111
|
+
return resolvePathWithinRoot(projectPath, relativePath);
|
|
112
|
+
}
|
|
113
|
+
catch {
|
|
114
|
+
throw new Error(`Invalid generated Runtime artifact ownership path: ${relativePath}`);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/*** Persist Runtime artifact ownership atomically. */
|
|
118
|
+
async function writeRuntimeArtifactLedger(projectPath, ledger) {
|
|
119
|
+
await writeJsonFileAtomic(resolveProjectFile(projectPath, RUNTIME_ARTIFACT_LEDGER_REL_PATH), ledger);
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=GeneratedRuntimeArtifactOwnership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneratedRuntimeArtifactOwnership.js","sourceRoot":"","sources":["../../../src/host/orchestrator/GeneratedRuntimeArtifactOwnership.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,gCAAgC,GAAG,oCAAoC,CAAC;AAC9E,MAAM,gCAAgC,GAAG,4CAA4C,CAAC;AAQtF,2HAA2H;AAC3H,MAAM,OAAO,iCAAiC;IAC5C,6EAA6E;IAC7E,MAAM,CAAC,8BAA8B,CAAC,YAAoB;QACxD,OAAO,qBAAqB,CAAC,YAAY,CAAC,KAAK,gCAAgC,CAAC;IAClF,CAAC;IAED,4EAA4E;IAC5E,KAAK,CAAC,UAAU,CAAC,WAAmB,EAAE,cAAiC;QACrE,MAAM,kCAAkC,CA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;AACtD,KAAK,UAAU,0BAA0B,CACvC,WAAmB,EACnB,MAA6B;IAE7B,MAAM,mBAAmB,CACvB,kBAAkB,CAAC,WAAW,EAAE,gCAAgC,CAAC,EACjE,MAAM,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -10,6 +10,5 @@ export declare function syncGeneratedAppFiles(targetProjectPath: string, options
|
|
|
10
10
|
/*** Generate the standalone app-extension component registry and interaction-policy support source. */
|
|
11
11
|
export declare function createGeneratedAppExtensionRegistrySource(args: {
|
|
12
12
|
usesExpoBarcodeScannerAdapter: boolean;
|
|
13
|
-
usesExpoReaderSurfaceAdapter: boolean;
|
|
14
13
|
}): string;
|
|
15
14
|
//# sourceMappingURL=generatedAppFiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatedAppFiles.d.ts","sourceRoot":"","sources":["../../../src/host/orchestrator/generatedAppFiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"generatedAppFiles.d.ts","sourceRoot":"","sources":["../../../src/host/orchestrator/generatedAppFiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AASxE,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAKD;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,wBAA6B,iBA+BvC;AAED,uGAAuG;AACvG,wBAAgB,yCAAyC,CAAC,IAAI,EAAE;IAC9D,6BAA6B,EAAE,OAAO,CAAC;CACxC,GAAG,MAAM,CAoCT"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getExpoBarcodeScannerViewSource
|
|
1
|
+
import { getExpoBarcodeScannerViewSource } from '@ankhorage/expo-runtime/planning';
|
|
2
2
|
import { isMissingPathError, listFilesRecursive, removePath } from '@ankhorage/utility/node/fs';
|
|
3
3
|
import { formatJavaScriptObjectKey } from '@ankhorage/utility/string';
|
|
4
4
|
import { promises as fs } from 'fs';
|
|
@@ -17,7 +17,6 @@ export async function syncGeneratedAppFiles(targetProjectPath, options = {}) {
|
|
|
17
17
|
const expoBarcodeScannerDest = path.join(generatedDest, 'expo/ExpoBarcodeScannerView.tsx');
|
|
18
18
|
const expoReaderSurfaceDest = path.join(generatedDest, 'expo/ExpoReaderSurfaceView.tsx');
|
|
19
19
|
const usesExpoBarcodeScannerAdapter = runtimePlan?.runtimeAdapters.includes('ExpoBarcodeScannerAdapter') ?? false;
|
|
20
|
-
const usesExpoReaderSurfaceAdapter = runtimePlan?.runtimeAdapters.includes('ExpoReaderSurfaceAdapter') ?? false;
|
|
21
20
|
await Promise.all([
|
|
22
21
|
removePath(appExtensionRegistryDest),
|
|
23
22
|
removePath(expoBarcodeScannerDest),
|
|
@@ -28,13 +27,8 @@ export async function syncGeneratedAppFiles(targetProjectPath, options = {}) {
|
|
|
28
27
|
await fs.mkdir(path.dirname(expoBarcodeScannerDest), { recursive: true });
|
|
29
28
|
await fs.writeFile(expoBarcodeScannerDest, getExpoBarcodeScannerViewSource(), 'utf8');
|
|
30
29
|
}
|
|
31
|
-
if (usesExpoReaderSurfaceAdapter) {
|
|
32
|
-
await fs.mkdir(path.dirname(expoReaderSurfaceDest), { recursive: true });
|
|
33
|
-
await fs.writeFile(expoReaderSurfaceDest, getExpoReaderSurfaceViewSource(), 'utf8');
|
|
34
|
-
}
|
|
35
30
|
await fs.writeFile(appExtensionRegistryDest, createGeneratedAppExtensionRegistrySource({
|
|
36
31
|
usesExpoBarcodeScannerAdapter,
|
|
37
|
-
usesExpoReaderSurfaceAdapter,
|
|
38
32
|
}), 'utf8');
|
|
39
33
|
await syncProjectBundledMediaRegistry(targetProjectPath);
|
|
40
34
|
await assertNoForbiddenSpecifiers(targetProjectPath);
|
|
@@ -50,13 +44,6 @@ export function createGeneratedAppExtensionRegistrySource(args) {
|
|
|
50
44
|
exportName: 'ExpoBarcodeScannerView',
|
|
51
45
|
});
|
|
52
46
|
}
|
|
53
|
-
if (args.usesExpoReaderSurfaceAdapter) {
|
|
54
|
-
relativeImportLines.add("import { ExpoReaderSurfaceView } from './expo/ExpoReaderSurfaceView';");
|
|
55
|
-
entries.unshift({
|
|
56
|
-
componentName: 'ReaderSurface',
|
|
57
|
-
exportName: 'ExpoReaderSurfaceView',
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
47
|
const registryEntries = entries
|
|
61
48
|
.map(({ componentName, exportName }) => ` ${formatJavaScriptObjectKey(componentName)}: ${exportName},`)
|
|
62
49
|
.join('\n');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatedAppFiles.js","sourceRoot":"","sources":["../../../src/host/orchestrator/generatedAppFiles.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"generatedAppFiles.js","sourceRoot":"","sources":["../../../src/host/orchestrator/generatedAppFiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAMvF,MAAM,2BAA2B,GAAG,aAAa,CAAC;AAClD,MAAM,wBAAwB,GAAG,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;AAEpF;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,iBAAyB,EACzB,UAAoC,EAAE;IAEtC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CA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AI,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC;IAChG,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnF,KAAK,MAAM,QAAQ,IAAI,YAAY,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC;QACX,IAAI,CAAC;YACH,MAAM,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,kBAAkB,CAAC,KAAK,CAAC;gBAAE,SAAS;YACxC,MAAM,KAAK,CAAC;QACd,CAAC;QAED,IAAI,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC7C,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,qCAAqC,CAAC,CAAC;QACvF,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,KAAK,UAAU,eAAe,CAAC,QAAgB;IAC7C,OAAO,CAAC,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC9D,0BAA0B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare class ProjectManager {
|
|
|
20
20
|
private readonly scaffolder;
|
|
21
21
|
private readonly appFiles;
|
|
22
22
|
private readonly generatedRouteFiles;
|
|
23
|
+
private readonly generatedRuntimeArtifacts;
|
|
23
24
|
private readonly bundledMedia;
|
|
24
25
|
private readonly dependencies;
|
|
25
26
|
private readonly generationState;
|
|
@@ -93,7 +94,7 @@ export declare class ProjectManager {
|
|
|
93
94
|
private materializeCreationAssets;
|
|
94
95
|
/*** Execute a complete runtime projection and persist success or failure evidence for the attempted runtime signature. */
|
|
95
96
|
private synchronizeRuntimeProjectionAsync;
|
|
96
|
-
/*** Generate current app files, write them to disk and
|
|
97
|
+
/*** Generate current app files, write them to disk and reconcile route and Runtime artifact ownership independently. */
|
|
97
98
|
private writeGeneratedFiles;
|
|
98
99
|
/***
|
|
99
100
|
* Ensure a text file's parent directory exists and write UTF-8 content.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectManager.d.ts","sourceRoot":"","sources":["../../../src/host/orchestrator/projectManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAM5E,OAAO,EAAE,iCAAiC,EAAE,MAAM,6EAA6E,CAAC;AAWhI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"projectManager.d.ts","sourceRoot":"","sources":["../../../src/host/orchestrator/projectManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAM5E,OAAO,EAAE,iCAAiC,EAAE,MAAM,6EAA6E,CAAC;AAWhI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAItF,UAAU,0BAA0B;IAClC,QAAQ,CAAC,4BAA4B,EAAE,OAAO,4BAA4B,CAAC;IAC3E,QAAQ,CAAC,gCAAgC,EAAE,OAAO,gCAAgC,CAAC;IACnF,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC,OAAO,iCAAiC,CAAC,CA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