@adea-ai/app-framework 0.0.0-stage → 0.24.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.
- package/LICENSE +201 -0
- package/NOTICE +30 -0
- package/README.md +967 -2
- package/dist/app/application.d.ts +47 -0
- package/dist/app/application.js +115 -0
- package/dist/app/create-application.d.ts +13 -0
- package/dist/app/create-application.js +178 -0
- package/dist/app/service-registry.d.ts +44 -0
- package/dist/app/service-registry.js +116 -0
- package/dist/appearance/appearance-host.d.ts +62 -0
- package/dist/appearance/appearance-host.js +115 -0
- package/dist/appearance/appearance-preferences.d.ts +106 -0
- package/dist/appearance/appearance-preferences.js +175 -0
- package/dist/appearance/composition.d.ts +11 -0
- package/dist/appearance/composition.js +16 -0
- package/dist/appearance/custom-theme-import.d.ts +14 -0
- package/dist/appearance/custom-theme-import.js +315 -0
- package/dist/appearance/custom-theme-library.d.ts +146 -0
- package/dist/appearance/custom-theme-library.js +378 -0
- package/dist/appearance/editor.d.ts +20 -0
- package/dist/appearance/editor.js +47 -0
- package/dist/appearance/theme-file-importer.d.ts +23 -0
- package/dist/appearance/theme-file-importer.js +66 -0
- package/dist/appearance/theme-record-adapter.d.ts +26 -0
- package/dist/appearance/theme-record-adapter.js +64 -0
- package/dist/appearance/theme-registry.d.ts +10 -0
- package/dist/appearance/theme-registry.js +16 -0
- package/dist/appearance/window-surface.d.ts +5 -0
- package/dist/appearance/window-surface.js +9 -0
- package/dist/ci/toolchain-identity.d.ts +39 -0
- package/dist/ci/toolchain-identity.js +196 -0
- package/dist/cli/cef-helper-cli.d.ts +2 -0
- package/dist/cli/cef-helper-cli.js +18 -0
- package/dist/cli/cli-runner.d.ts +8 -0
- package/dist/cli/cli-runner.js +23 -0
- package/dist/cli/create-application-cli.d.ts +2 -0
- package/dist/cli/create-application-cli.js +40 -0
- package/dist/cli/electrobun-shortcut-patch-cli.d.ts +2 -0
- package/dist/cli/electrobun-shortcut-patch-cli.js +17 -0
- package/dist/cli/framework-update-cli.d.ts +2 -0
- package/dist/cli/framework-update-cli.js +40 -0
- package/dist/cli/release-assets-plan-cli.d.ts +2 -0
- package/dist/cli/release-assets-plan-cli.js +14 -0
- package/dist/cli/release-cut-cli.d.ts +2 -0
- package/dist/cli/release-cut-cli.js +27 -0
- package/dist/cli/release-descriptor-staging-cli.d.ts +2 -0
- package/dist/cli/release-descriptor-staging-cli.js +45 -0
- package/dist/cli/release-finalize-cli.d.ts +1 -0
- package/dist/cli/release-finalize-cli.js +30 -0
- package/dist/cli/release-promote-cli.d.ts +2 -0
- package/dist/cli/release-promote-cli.js +32 -0
- package/dist/cli/release-publish-cli.d.ts +2 -0
- package/dist/cli/release-publish-cli.js +48 -0
- package/dist/cli/release-sign-cli.d.ts +2 -0
- package/dist/cli/release-sign-cli.js +13 -0
- package/dist/cli/release-step-cli.d.ts +2 -0
- package/dist/cli/release-step-cli.js +44 -0
- package/dist/cli/toolchain-identity-cli.d.ts +2 -0
- package/dist/cli/toolchain-identity-cli.js +10 -0
- package/dist/cli/update-helper-cli.d.ts +1 -0
- package/dist/cli/update-helper-cli.js +10 -0
- package/dist/cli/windows-runtime-patch-cli.d.ts +2 -0
- package/dist/cli/windows-runtime-patch-cli.js +17 -0
- package/dist/desktop/application-command-client.d.ts +15 -0
- package/dist/desktop/application-command-client.js +21 -0
- package/dist/desktop/channel-handshake.d.ts +32 -0
- package/dist/desktop/channel-handshake.js +111 -0
- package/dist/desktop/channel-proof.d.ts +43 -0
- package/dist/desktop/channel-proof.js +85 -0
- package/dist/desktop/client-assets.d.ts +7 -0
- package/dist/desktop/client-assets.js +59 -0
- package/dist/desktop/desktop-client.d.ts +23 -0
- package/dist/desktop/desktop-client.js +231 -0
- package/dist/desktop/desktop-gateway.d.ts +18 -0
- package/dist/desktop/desktop-gateway.js +146 -0
- package/dist/desktop/desktop-host.d.ts +48 -0
- package/dist/desktop/desktop-host.js +208 -0
- package/dist/desktop/desktop-stream.d.ts +36 -0
- package/dist/desktop/desktop-stream.js +231 -0
- package/dist/desktop/loopback-policy.d.ts +19 -0
- package/dist/desktop/loopback-policy.js +23 -0
- package/dist/desktop/open-url-channel.d.ts +15 -0
- package/dist/desktop/open-url-channel.js +55 -0
- package/dist/desktop/string-policy.d.ts +2 -0
- package/dist/desktop/string-policy.js +11 -0
- package/dist/framework-source.json +1 -0
- package/dist/installer/archive-entry.d.ts +6 -0
- package/dist/installer/archive-entry.js +14 -0
- package/dist/installer/command-artifact.d.ts +47 -0
- package/dist/installer/command-artifact.js +261 -0
- package/dist/installer/command-qualification-command.d.ts +12 -0
- package/dist/installer/command-qualification-command.js +71 -0
- package/dist/installer/hosted-runner.d.ts +4 -0
- package/dist/installer/hosted-runner.js +10 -0
- package/dist/installer/installed-payload.d.ts +29 -0
- package/dist/installer/installed-payload.js +312 -0
- package/dist/installer/installer-ci-bootstrap.d.ts +26 -0
- package/dist/installer/installer-ci-bootstrap.js +160 -0
- package/dist/installer/installer-ci-preflight.d.ts +1 -0
- package/dist/installer/installer-ci-preflight.js +49 -0
- package/dist/installer/installer-ci-worker.d.ts +1 -0
- package/dist/installer/installer-ci-worker.js +105 -0
- package/dist/installer/installer-extraction.d.ts +14 -0
- package/dist/installer/installer-extraction.js +289 -0
- package/dist/installer/installer-fetch-guard.d.ts +15 -0
- package/dist/installer/installer-fetch-guard.js +50 -0
- package/dist/installer/installer-identity.d.ts +23 -0
- package/dist/installer/installer-identity.js +286 -0
- package/dist/installer/installer-layout.d.ts +21 -0
- package/dist/installer/installer-layout.js +89 -0
- package/dist/installer/installer-observation.d.ts +64 -0
- package/dist/installer/installer-observation.js +473 -0
- package/dist/installer/installer-process-cleanup.d.ts +18 -0
- package/dist/installer/installer-process-cleanup.js +158 -0
- package/dist/installer/installer-qualification-command.d.ts +11 -0
- package/dist/installer/installer-qualification-command.js +71 -0
- package/dist/installer/installer-renderer-evidence.d.ts +43 -0
- package/dist/installer/installer-renderer-evidence.js +136 -0
- package/dist/installer/installer-upgrade-command.d.ts +37 -0
- package/dist/installer/installer-upgrade-command.js +172 -0
- package/dist/installer/installer-worker-guard.d.ts +21 -0
- package/dist/installer/installer-worker-guard.js +72 -0
- package/dist/installer/native-executable.d.ts +5 -0
- package/dist/installer/native-executable.js +21 -0
- package/dist/installer/upgrade-asset-download.d.ts +13 -0
- package/dist/installer/upgrade-asset-download.js +41 -0
- package/dist/installer/write-all.d.ts +6 -0
- package/dist/installer/write-all.js +11 -0
- package/dist/native/app-bundle.d.ts +28 -0
- package/dist/native/app-bundle.js +60 -0
- package/dist/native/cef-helper.d.ts +28 -0
- package/dist/native/cef-helper.js +402 -0
- package/dist/native/desktop-build-hook.d.ts +7 -0
- package/dist/native/desktop-build-hook.js +20 -0
- package/dist/native/electrobun-source-patch.d.ts +25 -0
- package/dist/native/electrobun-source-patch.js +93 -0
- package/dist/native/linux-cef-links.d.ts +2 -0
- package/dist/native/linux-cef-links.js +15 -0
- package/dist/native/native-secret-store.d.ts +27 -0
- package/dist/native/native-secret-store.js +70 -0
- package/dist/native/native-utilities.d.ts +24 -0
- package/dist/native/native-utilities.js +85 -0
- package/dist/native/partitioned-window.d.ts +34 -0
- package/dist/native/partitioned-window.js +44 -0
- package/dist/native/renderer-profile.d.ts +53 -0
- package/dist/native/renderer-profile.js +30 -0
- package/dist/native/secure-window.d.ts +38 -0
- package/dist/native/secure-window.js +77 -0
- package/dist/native/sidecar-services.d.ts +23 -0
- package/dist/native/sidecar-services.js +46 -0
- package/dist/native/sidecar.d.ts +81 -0
- package/dist/native/sidecar.js +250 -0
- package/dist/native/window-bootstrap.d.ts +24 -0
- package/dist/native/window-bootstrap.js +63 -0
- package/dist/native/window-options.d.ts +32 -0
- package/dist/native/window-options.js +23 -0
- package/dist/native/windows-build-hook-internal.d.ts +2 -0
- package/dist/native/windows-build-hook-internal.js +32 -0
- package/dist/native/windows-build-hook.d.ts +2 -0
- package/dist/native/windows-build-hook.js +12 -0
- package/dist/native/windows-runtime-patch-internal.d.ts +3 -0
- package/dist/native/windows-runtime-patch-internal.js +20 -0
- package/dist/native/windows-runtime-patch.d.ts +4 -0
- package/dist/native/windows-runtime-patch.js +12 -0
- package/dist/release/feed-release-cut.d.ts +23 -0
- package/dist/release/feed-release-cut.js +93 -0
- package/dist/release/feed-state.d.ts +25 -0
- package/dist/release/feed-state.js +81 -0
- package/dist/release/framework-package-publish.d.ts +21 -0
- package/dist/release/framework-package-publish.js +125 -0
- package/dist/release/framework-update.d.ts +30 -0
- package/dist/release/framework-update.js +139 -0
- package/dist/release/github-cli.d.ts +6 -0
- package/dist/release/github-cli.js +16 -0
- package/dist/release/github-release-assets.d.ts +3 -0
- package/dist/release/github-release-assets.js +24 -0
- package/dist/release/github-release-cut.d.ts +14 -0
- package/dist/release/github-release-cut.js +174 -0
- package/dist/release/github-release-lookup.d.ts +7 -0
- package/dist/release/github-release-lookup.js +29 -0
- package/dist/release/github-release-promotion.d.ts +10 -0
- package/dist/release/github-release-promotion.js +78 -0
- package/dist/release/github-release-provenance.d.ts +9 -0
- package/dist/release/github-release-provenance.js +27 -0
- package/dist/release/github-release-publisher.d.ts +9 -0
- package/dist/release/github-release-publisher.js +63 -0
- package/dist/release/github-release-qualification.d.ts +12 -0
- package/dist/release/github-release-qualification.js +80 -0
- package/dist/release/local-provenance.d.ts +24 -0
- package/dist/release/local-provenance.js +72 -0
- package/dist/release/local-release.d.ts +133 -0
- package/dist/release/local-release.js +387 -0
- package/dist/release/macos-dmg.d.ts +22 -0
- package/dist/release/macos-dmg.js +91 -0
- package/dist/release/release-artifact.d.ts +6 -0
- package/dist/release/release-artifact.js +38 -0
- package/dist/release/release-assets-plan.d.ts +14 -0
- package/dist/release/release-assets-plan.js +65 -0
- package/dist/release/release-config.d.ts +76 -0
- package/dist/release/release-config.js +180 -0
- package/dist/release/release-cut-command.d.ts +13 -0
- package/dist/release/release-cut-command.js +39 -0
- package/dist/release/release-cut.d.ts +54 -0
- package/dist/release/release-cut.js +76 -0
- package/dist/release/release-descriptor-staging.d.ts +34 -0
- package/dist/release/release-descriptor-staging.js +147 -0
- package/dist/release/release-finalize.d.ts +16 -0
- package/dist/release/release-finalize.js +104 -0
- package/dist/release/release-promotion-command.d.ts +12 -0
- package/dist/release/release-promotion-command.js +28 -0
- package/dist/release/release-promotion.d.ts +29 -0
- package/dist/release/release-promotion.js +57 -0
- package/dist/release/release-publication.d.ts +33 -0
- package/dist/release/release-publication.js +138 -0
- package/dist/release/release-publish-command.d.ts +7 -0
- package/dist/release/release-publish-command.js +91 -0
- package/dist/release/release-qualification.d.ts +106 -0
- package/dist/release/release-qualification.js +135 -0
- package/dist/release/release-staging.d.ts +9 -0
- package/dist/release/release-staging.js +61 -0
- package/dist/release/release-steps.d.ts +38 -0
- package/dist/release/release-steps.js +147 -0
- package/dist/release/retained-release-build.d.ts +19 -0
- package/dist/release/retained-release-build.js +122 -0
- package/dist/shell/app-shell.d.ts +61 -0
- package/dist/shell/app-shell.js +318 -0
- package/dist/shell/app-utilities.d.ts +122 -0
- package/dist/shell/app-utilities.js +334 -0
- package/dist/shell/application-menu-commands.d.ts +5 -0
- package/dist/shell/application-menu-commands.js +11 -0
- package/dist/shell/application-menu.d.ts +61 -0
- package/dist/shell/application-menu.js +208 -0
- package/dist/shell/help-shortcuts.d.ts +12 -0
- package/dist/shell/help-shortcuts.js +22 -0
- package/dist/shell/settings-sections.d.ts +31 -0
- package/dist/shell/settings-sections.js +50 -0
- package/dist/shell/shortcut-platform.d.ts +17 -0
- package/dist/shell/shortcut-platform.js +25 -0
- package/dist/update-helper.bundle.js +260 -0
- package/dist/updates/channel-update-manager.d.ts +46 -0
- package/dist/updates/channel-update-manager.js +114 -0
- package/dist/updates/desktop-updater.d.ts +104 -0
- package/dist/updates/desktop-updater.js +345 -0
- package/dist/updates/release-feed.d.ts +61 -0
- package/dist/updates/release-feed.js +111 -0
- package/dist/updates/release-location.d.ts +9 -0
- package/dist/updates/release-location.js +80 -0
- package/dist/updates/release-version.d.ts +12 -0
- package/dist/updates/release-version.js +43 -0
- package/dist/updates/signed-release.d.ts +63 -0
- package/dist/updates/signed-release.js +162 -0
- package/dist/updates/stable-file.d.ts +10 -0
- package/dist/updates/stable-file.js +22 -0
- package/dist/updates/update-adapter.d.ts +57 -0
- package/dist/updates/update-adapter.js +72 -0
- package/dist/updates/update-arm.d.ts +24 -0
- package/dist/updates/update-arm.js +95 -0
- package/dist/updates/update-channel-store.d.ts +8 -0
- package/dist/updates/update-channel-store.js +72 -0
- package/dist/updates/update-discovery.d.ts +13 -0
- package/dist/updates/update-discovery.js +56 -0
- package/dist/updates/update-download.d.ts +14 -0
- package/dist/updates/update-download.js +67 -0
- package/dist/updates/update-exclusive-rename.d.ts +2 -0
- package/dist/updates/update-exclusive-rename.js +52 -0
- package/dist/updates/update-extraction.d.ts +18 -0
- package/dist/updates/update-extraction.js +183 -0
- package/dist/updates/update-handoff-plan.d.ts +22 -0
- package/dist/updates/update-handoff-plan.js +28 -0
- package/dist/updates/update-helper.d.ts +24 -0
- package/dist/updates/update-helper.js +56 -0
- package/dist/updates/update-launch.d.ts +5 -0
- package/dist/updates/update-launch.js +27 -0
- package/dist/updates/update-manager.d.ts +40 -0
- package/dist/updates/update-manager.js +83 -0
- package/dist/updates/update-process-fence.d.ts +10 -0
- package/dist/updates/update-process-fence.js +114 -0
- package/dist/updates/update-resume.d.ts +13 -0
- package/dist/updates/update-resume.js +34 -0
- package/dist/updates/update-shutdown.d.ts +15 -0
- package/dist/updates/update-shutdown.js +29 -0
- package/dist/updates/update-state.d.ts +30 -0
- package/dist/updates/update-state.js +18 -0
- package/dist/updates/update-swap-stage.d.ts +27 -0
- package/dist/updates/update-swap-stage.js +58 -0
- package/dist/updates/update-swap.d.ts +10 -0
- package/dist/updates/update-swap.js +30 -0
- package/dist/views/app-about.d.ts +22 -0
- package/dist/views/app-about.js +43 -0
- package/dist/views/app-appearance.d.ts +11 -0
- package/dist/views/app-appearance.js +42 -0
- package/dist/views/app-help.d.ts +17 -0
- package/dist/views/app-help.js +42 -0
- package/dist/views/app-settings.d.ts +26 -0
- package/dist/views/app-settings.js +97 -0
- package/dist/views/appearance-surface.d.ts +9 -0
- package/dist/views/appearance-surface.js +334 -0
- package/dist/views/update-surface.d.ts +34 -0
- package/dist/views/update-surface.js +64 -0
- package/package.json +363 -4
- package/src/app/application.tsx +138 -0
- package/src/app/create-application.ts +245 -0
- package/src/app/service-registry.ts +124 -0
- package/src/appearance/appearance-host.tsx +205 -0
- package/src/appearance/appearance-preferences.ts +287 -0
- package/src/appearance/composition.ts +29 -0
- package/src/appearance/custom-theme-import.ts +424 -0
- package/src/appearance/custom-theme-library.ts +600 -0
- package/src/appearance/editor.ts +94 -0
- package/src/appearance/theme-file-importer.ts +103 -0
- package/src/appearance/theme-record-adapter.ts +106 -0
- package/src/appearance/theme-registry.ts +20 -0
- package/src/appearance/window-surface.ts +18 -0
- package/src/ci/toolchain-identity.ts +244 -0
- package/src/cli/cef-helper-cli.ts +21 -0
- package/src/cli/cli-runner.ts +29 -0
- package/src/cli/create-application-cli.ts +62 -0
- package/src/cli/electrobun-shortcut-patch-cli.ts +24 -0
- package/src/cli/framework-update-cli.ts +41 -0
- package/src/cli/release-assets-plan-cli.ts +14 -0
- package/src/cli/release-cut-cli.ts +41 -0
- package/src/cli/release-descriptor-staging-cli.ts +57 -0
- package/src/cli/release-finalize-cli.ts +34 -0
- package/src/cli/release-promote-cli.ts +31 -0
- package/src/cli/release-publish-cli.ts +46 -0
- package/src/cli/release-sign-cli.ts +24 -0
- package/src/cli/release-step-cli.ts +71 -0
- package/src/cli/toolchain-identity-cli.ts +12 -0
- package/src/cli/update-helper-cli.ts +12 -0
- package/src/cli/windows-runtime-patch-cli.ts +17 -0
- package/src/desktop/application-command-client.ts +43 -0
- package/src/desktop/channel-handshake.ts +136 -0
- package/src/desktop/channel-proof.ts +122 -0
- package/src/desktop/client-assets.ts +75 -0
- package/src/desktop/desktop-client.ts +303 -0
- package/src/desktop/desktop-gateway.ts +189 -0
- package/src/desktop/desktop-host.ts +335 -0
- package/src/desktop/desktop-stream.ts +324 -0
- package/src/desktop/loopback-policy.ts +41 -0
- package/src/desktop/open-url-channel.ts +79 -0
- package/src/desktop/string-policy.ts +9 -0
- package/src/installer/archive-entry.ts +32 -0
- package/src/installer/command-artifact.ts +307 -0
- package/src/installer/command-qualification-command.ts +75 -0
- package/src/installer/hosted-runner.ts +11 -0
- package/src/installer/installed-payload.ts +408 -0
- package/src/installer/installer-ci-bootstrap.ts +199 -0
- package/src/installer/installer-ci-preflight.ts +61 -0
- package/src/installer/installer-ci-worker.ts +105 -0
- package/src/installer/installer-extraction.ts +367 -0
- package/src/installer/installer-fetch-guard.ts +75 -0
- package/src/installer/installer-identity.ts +331 -0
- package/src/installer/installer-layout.ts +167 -0
- package/src/installer/installer-observation.ts +671 -0
- package/src/installer/installer-process-cleanup.ts +167 -0
- package/src/installer/installer-qualification-command.ts +81 -0
- package/src/installer/installer-renderer-evidence.ts +268 -0
- package/src/installer/installer-upgrade-command.ts +226 -0
- package/src/installer/installer-worker-guard.ts +112 -0
- package/src/installer/native-executable.ts +37 -0
- package/src/installer/upgrade-asset-download.ts +72 -0
- package/src/installer/write-all.ts +19 -0
- package/src/native/app-bundle.ts +86 -0
- package/src/native/cef-helper.ts +471 -0
- package/src/native/desktop-build-hook.ts +21 -0
- package/src/native/electrobun-cef-main-frame-bridges.patch +63 -0
- package/src/native/electrobun-source-patch.ts +107 -0
- package/src/native/electrobun-windows-shortcut-com.patch +923 -0
- package/src/native/linux-cef-links.ts +14 -0
- package/src/native/native-secret-store.ts +99 -0
- package/src/native/native-utilities.ts +166 -0
- package/src/native/partitioned-window.ts +62 -0
- package/src/native/renderer-profile.ts +27 -0
- package/src/native/secure-window.ts +115 -0
- package/src/native/sidecar-services.ts +71 -0
- package/src/native/sidecar.ts +387 -0
- package/src/native/window-bootstrap.ts +77 -0
- package/src/native/window-options.ts +24 -0
- package/src/native/windows-build-hook-internal.ts +49 -0
- package/src/native/windows-build-hook.ts +12 -0
- package/src/native/windows-runtime-patch-internal.ts +48 -0
- package/src/native/windows-runtime-patch.ts +15 -0
- package/src/release/feed-release-cut.ts +110 -0
- package/src/release/feed-state.ts +135 -0
- package/src/release/framework-package-publish.ts +163 -0
- package/src/release/framework-update.ts +196 -0
- package/src/release/github-cli.ts +27 -0
- package/src/release/github-release-assets.ts +36 -0
- package/src/release/github-release-cut.ts +237 -0
- package/src/release/github-release-lookup.ts +39 -0
- package/src/release/github-release-promotion.ts +112 -0
- package/src/release/github-release-provenance.ts +65 -0
- package/src/release/github-release-publisher.ts +90 -0
- package/src/release/github-release-qualification.ts +144 -0
- package/src/release/local-provenance.ts +92 -0
- package/src/release/local-release.ts +525 -0
- package/src/release/macos-dmg.ts +113 -0
- package/src/release/release-artifact.ts +53 -0
- package/src/release/release-assets-plan.ts +118 -0
- package/src/release/release-config.ts +420 -0
- package/src/release/release-cut-command.ts +80 -0
- package/src/release/release-cut.ts +133 -0
- package/src/release/release-descriptor-staging.ts +242 -0
- package/src/release/release-finalize.ts +191 -0
- package/src/release/release-promotion-command.ts +36 -0
- package/src/release/release-promotion.ts +132 -0
- package/src/release/release-publication.ts +213 -0
- package/src/release/release-publish-command.ts +163 -0
- package/src/release/release-qualification.ts +397 -0
- package/src/release/release-staging.ts +87 -0
- package/src/release/release-steps.ts +173 -0
- package/src/release/retained-release-build.ts +217 -0
- package/src/shell/app-shell.tsx +285 -0
- package/src/shell/app-utilities.tsx +437 -0
- package/src/shell/application-menu-commands.ts +6 -0
- package/src/shell/application-menu.ts +250 -0
- package/src/shell/help-shortcuts.ts +24 -0
- package/src/shell/settings-sections.ts +74 -0
- package/src/shell/shortcut-platform.ts +35 -0
- package/src/updates/channel-update-manager.ts +127 -0
- package/src/updates/desktop-updater.ts +440 -0
- package/src/updates/release-feed.ts +187 -0
- package/src/updates/release-location.ts +101 -0
- package/src/updates/release-version.ts +57 -0
- package/src/updates/signed-release.ts +311 -0
- package/src/updates/stable-file.ts +32 -0
- package/src/updates/update-adapter.ts +129 -0
- package/src/updates/update-arm.ts +107 -0
- package/src/updates/update-channel-store.ts +86 -0
- package/src/updates/update-discovery.ts +113 -0
- package/src/updates/update-download.ts +82 -0
- package/src/updates/update-exclusive-rename.ts +58 -0
- package/src/updates/update-extraction.ts +261 -0
- package/src/updates/update-handoff-plan.ts +75 -0
- package/src/updates/update-helper.ts +87 -0
- package/src/updates/update-launch.ts +33 -0
- package/src/updates/update-manager.ts +130 -0
- package/src/updates/update-process-fence.ts +125 -0
- package/src/updates/update-resume.ts +34 -0
- package/src/updates/update-shutdown.ts +37 -0
- package/src/updates/update-state.ts +34 -0
- package/src/updates/update-swap-stage.ts +75 -0
- package/src/updates/update-swap.ts +30 -0
- package/src/views/app-about.tsx +44 -0
- package/src/views/app-appearance.tsx +32 -0
- package/src/views/app-help.tsx +43 -0
- package/src/views/app-settings.tsx +88 -0
- package/src/views/appearance-surface.tsx +427 -0
- package/src/views/update-surface.tsx +85 -0
- package/templates/application/.gitattributes +1 -0
- package/templates/application/.github/workflows/release-assets.yml +29 -0
- package/templates/application/.github/workflows/release-finalize.yml +29 -0
- package/templates/application/.github/workflows/release-please.yml +19 -0
- package/templates/application/.github/workflows/release.yml +29 -0
- package/templates/application/.github/workflows/validation.yml +28 -0
- package/templates/application/.oxfmtrc.json +6 -0
- package/templates/application/.oxlintrc.json +48 -0
- package/templates/application/.release-please-manifest.json +3 -0
- package/templates/application/README.md +47 -0
- package/templates/application/electrobun.config.ts +22 -0
- package/templates/application/release-please-config.json +12 -0
- package/templates/application/scripts/app-version.ts +9 -0
- package/templates/application/scripts/build-desktop.ts +34 -0
- package/templates/application/scripts/secure-build.ts +1 -0
- package/templates/application/scripts/stage-release.ts +21 -0
- package/templates/application/src/bun/index.ts +80 -0
- package/templates/application/src/electrobun.d.ts +27 -0
- package/templates/application/src/web/index.html +12 -0
- package/templates/application/src/web/main.tsx +97 -0
- package/templates/application/src/web/public/icon.svg +1 -0
- package/templates/application/src/web/style.css +3 -0
- package/templates/application/tests/app-config.test.ts +9 -0
- package/templates/application/tsconfig.json +15 -0
- package/templates/application/vite.config.ts +10 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto'
|
|
2
|
+
import { lstat, mkdtemp, open, rm, writeFile } from 'node:fs/promises'
|
|
3
|
+
import { tmpdir } from 'node:os'
|
|
4
|
+
import { join, resolve } from 'node:path'
|
|
5
|
+
import { openUnchangedFile, sameFile } from '../updates/stable-file'
|
|
6
|
+
import { verifyReleaseDescriptor, type ReleaseTrust } from '../updates/signed-release'
|
|
7
|
+
import { releaseAssetNames } from './release-config'
|
|
8
|
+
import {
|
|
9
|
+
validateReleaseQualification,
|
|
10
|
+
type Artifact,
|
|
11
|
+
type CommandReceipt,
|
|
12
|
+
type InstallerReceipt,
|
|
13
|
+
type Qualification,
|
|
14
|
+
type ReleaseIdentity,
|
|
15
|
+
type Requirements,
|
|
16
|
+
} from './release-qualification'
|
|
17
|
+
|
|
18
|
+
export type RemoteReleaseState = {
|
|
19
|
+
tag: string
|
|
20
|
+
sourceSha: string
|
|
21
|
+
sourceOnMain: boolean
|
|
22
|
+
workflowOnMain: boolean
|
|
23
|
+
draft: boolean
|
|
24
|
+
assets: Artifact[]
|
|
25
|
+
}
|
|
26
|
+
export type ReleasePublisher = {
|
|
27
|
+
/** Read tag target, release status, current assets and ancestry from the trusted provider. */
|
|
28
|
+
inspect(identity: ReleaseIdentity): Promise<RemoteReleaseState>
|
|
29
|
+
/** Upload without replacing an existing asset; reject name collisions. */
|
|
30
|
+
upload(path: string, artifact: Artifact): Promise<void>
|
|
31
|
+
}
|
|
32
|
+
function same(left: Artifact, right: Artifact) {
|
|
33
|
+
return left.name === right.name && left.size === right.size && left.digest === right.digest
|
|
34
|
+
}
|
|
35
|
+
/** Hash one staged regular file without following links, refusing a change while reading. */
|
|
36
|
+
export async function fileIdentity(path: string, name: string): Promise<Artifact> {
|
|
37
|
+
const info = await lstat(path)
|
|
38
|
+
if (!info.isFile() || info.isSymbolicLink()) throw new Error('Invalid staged artifact')
|
|
39
|
+
const { file, before } = await openUnchangedFile(path, info, 'Invalid staged artifact')
|
|
40
|
+
try {
|
|
41
|
+
if (!Number.isSafeInteger(before.size) || before.size < 1)
|
|
42
|
+
throw new Error('Invalid staged artifact')
|
|
43
|
+
const hash = createHash('sha256')
|
|
44
|
+
let size = 0
|
|
45
|
+
for await (const chunk of file.createReadStream({ autoClose: false })) {
|
|
46
|
+
size += chunk.length
|
|
47
|
+
if (size > before.size) throw new Error('Staged artifact changed')
|
|
48
|
+
hash.update(chunk)
|
|
49
|
+
}
|
|
50
|
+
const after = await file.stat()
|
|
51
|
+
if (size !== before.size || !sameFile(before, after)) throw new Error('Staged artifact changed')
|
|
52
|
+
return { name, size, digest: 'sha256:' + hash.digest('hex') }
|
|
53
|
+
} finally {
|
|
54
|
+
await file.close()
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Publish a qualified attempt with immutable payloads and discovery assets last. */
|
|
59
|
+
export async function publishQualifiedRelease(options: {
|
|
60
|
+
directory: string
|
|
61
|
+
identity: ReleaseIdentity
|
|
62
|
+
requirements: Requirements
|
|
63
|
+
installerReceipts: InstallerReceipt[]
|
|
64
|
+
/** Required exactly when the requirements name command artifacts. */
|
|
65
|
+
commandReceipts?: CommandReceipt[]
|
|
66
|
+
discoveryTrust: Record<string, { trust: ReleaseTrust; allowedPayloads: readonly string[] }>
|
|
67
|
+
remote: ReleasePublisher
|
|
68
|
+
allowDraft?: boolean
|
|
69
|
+
}): Promise<Qualification> {
|
|
70
|
+
const { identity, requirements, remote } = options
|
|
71
|
+
const directory = resolve(options.directory)
|
|
72
|
+
const names = releaseAssetNames(requirements)
|
|
73
|
+
if (
|
|
74
|
+
!names.length ||
|
|
75
|
+
new Set(names).size !== names.length ||
|
|
76
|
+
names.some((name) => !/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(name))
|
|
77
|
+
)
|
|
78
|
+
throw new Error('Invalid release asset names')
|
|
79
|
+
const discoveryAssets = Object.keys(options.discoveryTrust)
|
|
80
|
+
if (
|
|
81
|
+
!discoveryAssets.length ||
|
|
82
|
+
new Set(discoveryAssets).size !== discoveryAssets.length ||
|
|
83
|
+
discoveryAssets.some((name) => !requirements.releaseAssets.includes(name))
|
|
84
|
+
)
|
|
85
|
+
throw new Error('Invalid discovery assets')
|
|
86
|
+
for (const config of Object.values(options.discoveryTrust)) {
|
|
87
|
+
if (
|
|
88
|
+
!config.allowedPayloads.length ||
|
|
89
|
+
new Set(config.allowedPayloads).size !== config.allowedPayloads.length ||
|
|
90
|
+
config.allowedPayloads.some((name) => !names.includes(name) || discoveryAssets.includes(name))
|
|
91
|
+
)
|
|
92
|
+
throw new Error('Invalid discovery payload policy')
|
|
93
|
+
}
|
|
94
|
+
const staged = await Promise.all(names.map((name) => fileIdentity(join(directory, name), name)))
|
|
95
|
+
const platforms = Object.keys(requirements.platforms)
|
|
96
|
+
const receipt: Qualification = {
|
|
97
|
+
schema: 2,
|
|
98
|
+
...identity,
|
|
99
|
+
platforms,
|
|
100
|
+
installerTests: platforms,
|
|
101
|
+
installerReceipts: options.installerReceipts,
|
|
102
|
+
...(options.commandReceipts ? { commandReceipts: options.commandReceipts } : {}),
|
|
103
|
+
assets: staged,
|
|
104
|
+
}
|
|
105
|
+
validateReleaseQualification(
|
|
106
|
+
{ tag_name: identity.tag, draft: false, assets: staged },
|
|
107
|
+
receipt,
|
|
108
|
+
identity.sourceSha,
|
|
109
|
+
requirements
|
|
110
|
+
)
|
|
111
|
+
for (const name of discoveryAssets) {
|
|
112
|
+
const expected = staged.find((asset) => asset.name === name)!
|
|
113
|
+
if (expected.size > 65536) throw new Error('Discovery asset is too large')
|
|
114
|
+
const handle = await open(join(directory, name), 'r')
|
|
115
|
+
let bytes: Buffer
|
|
116
|
+
try {
|
|
117
|
+
const buffer = Buffer.alloc(65537)
|
|
118
|
+
let offset = 0
|
|
119
|
+
while (offset < buffer.length) {
|
|
120
|
+
const result = await handle.read(buffer, offset, buffer.length - offset, offset)
|
|
121
|
+
if (!result.bytesRead) break
|
|
122
|
+
offset += result.bytesRead
|
|
123
|
+
}
|
|
124
|
+
bytes = buffer.subarray(0, offset)
|
|
125
|
+
} finally {
|
|
126
|
+
await handle.close()
|
|
127
|
+
}
|
|
128
|
+
if (
|
|
129
|
+
bytes.length !== expected.size ||
|
|
130
|
+
'sha256:' + createHash('sha256').update(bytes).digest('hex') !== expected.digest
|
|
131
|
+
)
|
|
132
|
+
throw new Error('Discovery asset changed')
|
|
133
|
+
let parsed: unknown
|
|
134
|
+
try {
|
|
135
|
+
parsed = JSON.parse(bytes.toString('utf8'))
|
|
136
|
+
} catch {
|
|
137
|
+
throw new Error('Invalid discovery asset')
|
|
138
|
+
}
|
|
139
|
+
const verified = verifyReleaseDescriptor(parsed, options.discoveryTrust[name]!.trust)
|
|
140
|
+
if (!verified.ok) throw new Error('Untrusted discovery asset')
|
|
141
|
+
const descriptor = verified.descriptor
|
|
142
|
+
if (
|
|
143
|
+
descriptor.tag !== identity.tag ||
|
|
144
|
+
descriptor.sourceSha !== identity.sourceSha ||
|
|
145
|
+
descriptor.workflowSha !== identity.workflowSha ||
|
|
146
|
+
descriptor.runId !== identity.runId ||
|
|
147
|
+
descriptor.runAttempt !== identity.runAttempt
|
|
148
|
+
)
|
|
149
|
+
throw new Error('Discovery provenance mismatch')
|
|
150
|
+
const payload = staged.find((asset) => asset.name === descriptor.asset.name)
|
|
151
|
+
if (
|
|
152
|
+
!payload ||
|
|
153
|
+
!options.discoveryTrust[name]!.allowedPayloads.includes(payload.name) ||
|
|
154
|
+
payload.size !== descriptor.asset.size ||
|
|
155
|
+
payload.digest !== 'sha256:' + descriptor.asset.sha256
|
|
156
|
+
)
|
|
157
|
+
throw new Error('Discovery payload mismatch')
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const receiptName = `qualification-${identity.runId}-${identity.runAttempt}.json`
|
|
161
|
+
if (names.includes(receiptName)) throw new Error('Qualification asset collides with payload')
|
|
162
|
+
const bytes = Buffer.from(JSON.stringify(receipt, null, 2) + '\n')
|
|
163
|
+
const receiptArtifact = {
|
|
164
|
+
name: receiptName,
|
|
165
|
+
size: bytes.length,
|
|
166
|
+
digest: 'sha256:' + createHash('sha256').update(bytes).digest('hex'),
|
|
167
|
+
}
|
|
168
|
+
const ordered = [
|
|
169
|
+
...staged.filter((asset) => !discoveryAssets.includes(asset.name)),
|
|
170
|
+
receiptArtifact,
|
|
171
|
+
...staged.filter((asset) => discoveryAssets.includes(asset.name)),
|
|
172
|
+
]
|
|
173
|
+
let expectedDraft: boolean | undefined
|
|
174
|
+
const check = async () => {
|
|
175
|
+
const state = await remote.inspect(identity)
|
|
176
|
+
if (
|
|
177
|
+
state.tag !== identity.tag ||
|
|
178
|
+
state.sourceSha !== identity.sourceSha ||
|
|
179
|
+
!state.sourceOnMain ||
|
|
180
|
+
!state.workflowOnMain ||
|
|
181
|
+
(state.draft && options.allowDraft !== true) ||
|
|
182
|
+
(expectedDraft !== undefined && state.draft !== expectedDraft)
|
|
183
|
+
)
|
|
184
|
+
throw new Error('Untrusted release identity')
|
|
185
|
+
expectedDraft = state.draft
|
|
186
|
+
for (const expected of ordered) {
|
|
187
|
+
const existing = state.assets.filter((asset) => asset.name === expected.name)
|
|
188
|
+
if (existing.length > 1 || (existing.length && !same(existing[0]!, expected)))
|
|
189
|
+
throw new Error(`Immutable asset conflict: ${expected.name}`)
|
|
190
|
+
}
|
|
191
|
+
return state
|
|
192
|
+
}
|
|
193
|
+
await check() // No public writes before all receipts, source and existing payloads pass.
|
|
194
|
+
const temp = await mkdtemp(join(tmpdir(), 'framework-qualification-'))
|
|
195
|
+
try {
|
|
196
|
+
const receiptPath = join(temp, receiptName)
|
|
197
|
+
await writeFile(receiptPath, bytes, { flag: 'wx' })
|
|
198
|
+
for (const artifact of ordered) {
|
|
199
|
+
const state = await check()
|
|
200
|
+
if (state.assets.some((asset) => asset.name === artifact.name)) continue
|
|
201
|
+
const path = artifact.name === receiptName ? receiptPath : join(directory, artifact.name)
|
|
202
|
+
if (!same(await fileIdentity(path, artifact.name), artifact))
|
|
203
|
+
throw new Error('Staged artifact changed before upload')
|
|
204
|
+
await remote.upload(path, artifact)
|
|
205
|
+
const published = await check()
|
|
206
|
+
if (!published.assets.some((asset) => same(asset, artifact)))
|
|
207
|
+
throw new Error('Published artifact differs from staging')
|
|
208
|
+
}
|
|
209
|
+
return receipt
|
|
210
|
+
} finally {
|
|
211
|
+
await rm(temp, { recursive: true, force: true })
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { githubCli } from './github-cli'
|
|
2
|
+
import { open } from 'node:fs/promises'
|
|
3
|
+
import { join, resolve } from 'node:path'
|
|
4
|
+
import { createGitHubReleasePublisher } from './github-release-publisher'
|
|
5
|
+
import { publishQualifiedRelease } from './release-publication'
|
|
6
|
+
import { discoveryPolicies, parseReleaseConfig } from './release-config'
|
|
7
|
+
import { commandReceiptName } from '../installer/command-qualification-command'
|
|
8
|
+
import type { CommandReceipt, InstallerReceipt } from './release-qualification'
|
|
9
|
+
import { feedUrl } from '../updates/release-feed'
|
|
10
|
+
import { assertRepositorySlug, type ReleaseTrust } from '../updates/signed-release'
|
|
11
|
+
|
|
12
|
+
const record = (value: unknown): value is Record<string, unknown> =>
|
|
13
|
+
typeof value === 'object' && value !== null && !Array.isArray(value)
|
|
14
|
+
async function boundedJson(path: string): Promise<unknown> {
|
|
15
|
+
const handle = await open(path, 'r')
|
|
16
|
+
try {
|
|
17
|
+
const stat = await handle.stat()
|
|
18
|
+
if (!stat.isFile() || stat.size < 1 || stat.size > 262144) throw new Error('Invalid receipt')
|
|
19
|
+
const buffer = Buffer.alloc(stat.size + 1)
|
|
20
|
+
let offset = 0
|
|
21
|
+
while (offset < buffer.length) {
|
|
22
|
+
const result = await handle.read(buffer, offset, buffer.length - offset, offset)
|
|
23
|
+
if (!result.bytesRead) break
|
|
24
|
+
offset += result.bytesRead
|
|
25
|
+
}
|
|
26
|
+
if (offset !== stat.size) throw new Error('Receipt changed')
|
|
27
|
+
return JSON.parse(buffer.subarray(0, offset).toString('utf8'))
|
|
28
|
+
} finally {
|
|
29
|
+
await handle.close()
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Publish only the current trusted release-assets attempt and its staged receipts. */
|
|
34
|
+
export async function runReleasePublishCommand(options: {
|
|
35
|
+
env: Record<string, string | undefined>
|
|
36
|
+
config: unknown
|
|
37
|
+
directory: string
|
|
38
|
+
run?: (args: string[], input?: string) => Promise<string>
|
|
39
|
+
}) {
|
|
40
|
+
const { env, config } = options
|
|
41
|
+
if (
|
|
42
|
+
env.GITHUB_ACTIONS !== 'true' ||
|
|
43
|
+
env.GITHUB_REF !== 'refs/heads/main' ||
|
|
44
|
+
env.GITHUB_EVENT_NAME !== 'workflow_dispatch' ||
|
|
45
|
+
!env.GITHUB_REPOSITORY ||
|
|
46
|
+
!/^[a-f0-9]{40}$/.test(env.GITHUB_SHA ?? '') ||
|
|
47
|
+
!/^[a-f0-9]{40}$/.test(env.SOURCE_SHA ?? '') ||
|
|
48
|
+
!/^[1-9]\d{0,19}$/.test(env.GITHUB_RUN_ID ?? '') ||
|
|
49
|
+
!/^[1-9]\d{0,8}$/.test(env.GITHUB_RUN_ATTEMPT ?? '') ||
|
|
50
|
+
!/^v\d+\.\d+\.\d+(?:-dev\.\d+)?$/.test(env.RELEASE_TAG ?? '')
|
|
51
|
+
)
|
|
52
|
+
throw new Error('Publication requires a trusted release-assets workflow')
|
|
53
|
+
assertRepositorySlug(env.GITHUB_REPOSITORY)
|
|
54
|
+
const { requirements, releasePleaseManifestPath, releaseWorkflows, feed } =
|
|
55
|
+
parseReleaseConfig(config)
|
|
56
|
+
if (
|
|
57
|
+
!record(config) ||
|
|
58
|
+
typeof config.appId !== 'string' ||
|
|
59
|
+
!/^[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+$/.test(config.appId) ||
|
|
60
|
+
config.appId.length > 255 ||
|
|
61
|
+
!record(config.releaseSigningKeys) ||
|
|
62
|
+
!record(config.descriptors)
|
|
63
|
+
)
|
|
64
|
+
throw new Error('Invalid release signing configuration')
|
|
65
|
+
const keyEntries = Object.entries(config.releaseSigningKeys)
|
|
66
|
+
if (!keyEntries.length || keyEntries.length > 16)
|
|
67
|
+
throw new Error('Missing release verification keys')
|
|
68
|
+
const keys = new Map<string, string>()
|
|
69
|
+
for (const [id, encoded] of keyEntries) {
|
|
70
|
+
if (!/^[a-z0-9][a-z0-9._-]{0,63}$/.test(id) || typeof encoded !== 'string')
|
|
71
|
+
throw new Error('Invalid release verification key')
|
|
72
|
+
const raw = Buffer.from(encoded, 'base64')
|
|
73
|
+
if (raw.length !== 32 || raw.toString('base64') !== encoded)
|
|
74
|
+
throw new Error('Invalid release verification key')
|
|
75
|
+
keys.set(id, encoded)
|
|
76
|
+
}
|
|
77
|
+
const tag = env.RELEASE_TAG!,
|
|
78
|
+
repository = env.GITHUB_REPOSITORY,
|
|
79
|
+
releaseRequirements = requirements(tag)
|
|
80
|
+
const isDev = tag.includes('-dev.')
|
|
81
|
+
const discoveryTrust: Record<
|
|
82
|
+
string,
|
|
83
|
+
{ trust: ReleaseTrust; allowedPayloads: readonly string[] }
|
|
84
|
+
> = {}
|
|
85
|
+
for (const policy of discoveryPolicies(config, tag))
|
|
86
|
+
discoveryTrust[policy.name] = {
|
|
87
|
+
trust: {
|
|
88
|
+
appId: policy.appId,
|
|
89
|
+
repository,
|
|
90
|
+
channel: policy.channel,
|
|
91
|
+
platform: policy.os,
|
|
92
|
+
arch: policy.arch,
|
|
93
|
+
feed: feedUrl(feed),
|
|
94
|
+
keys,
|
|
95
|
+
},
|
|
96
|
+
allowedPayloads: [policy.payload],
|
|
97
|
+
}
|
|
98
|
+
const run = options.run ?? githubCli()
|
|
99
|
+
const workflow = JSON.parse(
|
|
100
|
+
await run([
|
|
101
|
+
'api',
|
|
102
|
+
`repos/${repository}/actions/runs/${env.GITHUB_RUN_ID}/attempts/${env.GITHUB_RUN_ATTEMPT}`,
|
|
103
|
+
])
|
|
104
|
+
) as {
|
|
105
|
+
id?: unknown
|
|
106
|
+
run_attempt?: unknown
|
|
107
|
+
head_sha?: unknown
|
|
108
|
+
event?: unknown
|
|
109
|
+
path?: unknown
|
|
110
|
+
repository?: { full_name?: unknown }
|
|
111
|
+
}
|
|
112
|
+
if (
|
|
113
|
+
String(workflow?.id) !== env.GITHUB_RUN_ID ||
|
|
114
|
+
String(workflow?.run_attempt) !== env.GITHUB_RUN_ATTEMPT ||
|
|
115
|
+
workflow?.head_sha !== env.GITHUB_SHA ||
|
|
116
|
+
workflow?.event !== 'workflow_dispatch' ||
|
|
117
|
+
workflow?.path !== releaseWorkflows.assets ||
|
|
118
|
+
workflow?.repository?.full_name !== repository
|
|
119
|
+
)
|
|
120
|
+
throw new Error('Release-assets workflow provenance mismatch')
|
|
121
|
+
const directory = resolve(options.directory)
|
|
122
|
+
const installerReceipts = await Promise.all(
|
|
123
|
+
Object.keys(releaseRequirements.platforms).map(
|
|
124
|
+
async (platform) =>
|
|
125
|
+
(await boundedJson(join(directory, `installer-test-${platform}.json`))) as InstallerReceipt
|
|
126
|
+
)
|
|
127
|
+
)
|
|
128
|
+
const commandReceipts = releaseRequirements.commandArtifacts
|
|
129
|
+
? await Promise.all(
|
|
130
|
+
Object.entries(releaseRequirements.commandArtifacts).flatMap(([kind, byPlatform]) =>
|
|
131
|
+
Object.keys(byPlatform).map(
|
|
132
|
+
async (platform) =>
|
|
133
|
+
(await boundedJson(
|
|
134
|
+
join(directory, commandReceiptName(kind, platform))
|
|
135
|
+
)) as CommandReceipt
|
|
136
|
+
)
|
|
137
|
+
)
|
|
138
|
+
)
|
|
139
|
+
: undefined
|
|
140
|
+
const identity = {
|
|
141
|
+
tag,
|
|
142
|
+
sourceSha: env.SOURCE_SHA!,
|
|
143
|
+
workflowSha: env.GITHUB_SHA!,
|
|
144
|
+
runId: env.GITHUB_RUN_ID!,
|
|
145
|
+
runAttempt: Number(env.GITHUB_RUN_ATTEMPT),
|
|
146
|
+
}
|
|
147
|
+
const remote = createGitHubReleasePublisher({
|
|
148
|
+
repository,
|
|
149
|
+
identity,
|
|
150
|
+
releasePleaseManifestPath,
|
|
151
|
+
run,
|
|
152
|
+
})
|
|
153
|
+
return publishQualifiedRelease({
|
|
154
|
+
directory,
|
|
155
|
+
identity,
|
|
156
|
+
requirements: releaseRequirements,
|
|
157
|
+
installerReceipts,
|
|
158
|
+
...(commandReceipts ? { commandReceipts } : {}),
|
|
159
|
+
discoveryTrust,
|
|
160
|
+
remote,
|
|
161
|
+
allowDraft: !isDev,
|
|
162
|
+
})
|
|
163
|
+
}
|