@adea-ai/app-framework 0.37.1 → 0.38.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/README.md +5 -1
- package/dist/app/create-application.js +1 -1
- package/dist/appearance/appearance-host.js +2 -2
- package/dist/appearance/custom-theme-import.js +2 -2
- package/dist/appearance/custom-theme-library.js +1 -1
- package/dist/cli/framework-update-cli.js +1 -1
- package/dist/cli/macos-signing-cli.js +1 -1
- package/dist/cli/release-assets-plan-cli.js +1 -1
- package/dist/cli/release-cut-cli.js +2 -2
- package/dist/cli/release-descriptor-staging-cli.js +2 -2
- package/dist/cli/release-promote-cli.js +2 -1
- package/dist/cli/release-publish-cli.js +1 -1
- package/dist/cli/release-sign-cli.js +1 -1
- package/dist/cli/release-step-cli.js +1 -1
- package/dist/cli/windows-installer-build-cli.js +1 -1
- package/dist/cli/windows-runtime-patch-cli.js +1 -1
- package/dist/desktop/client-assets.js +1 -1
- package/dist/desktop/desktop-gateway.js +2 -2
- package/dist/desktop/desktop-host.js +6 -6
- package/dist/desktop/desktop-stream.js +1 -1
- package/dist/framework-source.json +1 -1
- package/dist/installer/command-qualification-command.js +2 -2
- package/dist/installer/installed-payload.js +3 -3
- package/dist/installer/installer-archive-members.js +1 -1
- package/dist/installer/installer-ci-worker.js +2 -2
- package/dist/installer/installer-extraction.js +3 -3
- package/dist/installer/installer-identity.js +2 -2
- package/dist/installer/installer-observation.js +4 -4
- package/dist/installer/installer-process-cleanup.js +1 -1
- package/dist/installer/installer-qualification-command.js +3 -3
- package/dist/installer/installer-renderer-evidence.js +1 -1
- package/dist/installer/installer-upgrade-command.js +5 -5
- package/dist/installer/upgrade-asset-download.js +1 -1
- package/dist/native/desktop-build.js +1 -1
- package/dist/native/secure-window.js +1 -1
- package/dist/native/windows-build-hook.js +1 -1
- package/dist/native/windows-extractor-build.js +1 -1
- package/dist/release/feed-state.js +3 -3
- package/dist/release/github-release-cut.js +3 -3
- package/dist/release/github-release-promotion.js +1 -1
- package/dist/release/local-release.d.ts +2 -0
- package/dist/release/local-release.js +77 -75
- package/dist/release/qualification-run.js +1 -1
- package/dist/release/release-artifact.js +1 -1
- package/dist/release/release-assets-plan.js +2 -2
- package/dist/release/release-config.js +2 -2
- package/dist/release/release-cut-command.js +1 -1
- package/dist/release/release-descriptor-staging.js +5 -5
- package/dist/release/release-finalize.js +3 -3
- package/dist/release/release-promotion-command.d.ts +1 -0
- package/dist/release/release-promotion-command.js +3 -2
- package/dist/release/release-promotion.d.ts +11 -1
- package/dist/release/release-promotion.js +26 -1
- package/dist/release/release-publication.js +2 -2
- package/dist/release/release-publish-command.js +4 -4
- package/dist/release/release-steps.js +2 -2
- package/dist/release/retained-release-build.js +2 -2
- package/dist/shell/app-utilities.js +2 -2
- package/dist/updates/channel-update-manager.js +2 -2
- package/dist/updates/desktop-updater.js +8 -8
- package/dist/updates/feed/packaged-release-config.js +2 -2
- package/dist/updates/feed/update-discovery.js +2 -2
- package/dist/updates/helper/launch-gate-recovery.js +3 -3
- package/dist/updates/helper/resume-staging.js +3 -3
- package/dist/updates/helper/update-helper.js +3 -3
- package/dist/updates/helper/update-resume.js +3 -3
- package/dist/updates/install/update-arm.js +5 -5
- package/dist/updates/install/update-extraction.js +2 -2
- package/dist/updates/install/update-handoff-plan.js +2 -2
- package/dist/updates/install/update-swap-stage.js +3 -3
- package/dist/updates/install/update-swap.js +1 -1
- package/dist/updates/launch/packaged-update-startup.js +4 -4
- package/dist/updates/launch/update-launch-gate.js +3 -3
- package/dist/updates/launch/update-launch.js +1 -1
- package/dist/updates/locks/update-generation-lease.js +1 -1
- package/dist/updates/locks/update-inherited-launch-lease.js +1 -1
- package/dist/updates/locks/update-instance-lease.js +1 -1
- package/dist/updates/locks/update-lock.js +1 -1
- package/dist/updates/locks/update-process-fence.js +1 -1
- package/dist/updates/retained-client-assets.js +2 -2
- package/dist/updates/retention/retention-cleanup.js +6 -6
- package/dist/updates/retention/retention-prune-progress.js +3 -3
- package/dist/updates/retention/retirement-inventory.js +6 -6
- package/dist/updates/retention/retirement-records.js +2 -2
- package/dist/updates/retention/update-retention-sync.js +1 -1
- package/dist/updates/update-channel-store.js +2 -2
- package/dist/updates/update-manager.js +2 -2
- package/dist/updates/update-services.js +1 -1
- package/dist/updates/update-state-store.js +1 -1
- package/dist/views/appearance-surface.js +1 -1
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -849,7 +849,11 @@ since the last stable, so stable moves about every four days. The caller's cron
|
|
|
849
849
|
is the daily cadence: nothing assumes one run per day, so it can run every few
|
|
850
850
|
hours. A manual dispatch runs one `operation`: `dev`, `daily` or `stable`.
|
|
851
851
|
`CI_BILLING_PAUSED=true` skips the push and schedule cuts;
|
|
852
|
-
`STABLE_PROMOTION_HELD=true` holds promotion.
|
|
852
|
+
`STABLE_PROMOTION_HELD=true` holds promotion. To replace a bad stable without
|
|
853
|
+
the soak, set the protected variable `STABLE_SOAK_BYPASS_TAG=<tag>` to one pending
|
|
854
|
+
daily (newer than stable): the next promotion promotes exactly that tag if it
|
|
855
|
+
qualifies, refuses a tag that is not a pending daily, and still yields to a hold.
|
|
856
|
+
Clear it after the release. Keep the caller's `push`,
|
|
853
857
|
`schedule` and `workflow_dispatch` triggers; only the cron expression is the
|
|
854
858
|
app's choice. Generated apps include a Release Please workflow and config.
|
|
855
859
|
`desktop-release-finalize.yml` runs `release:finalize` from the
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { errorCode } from "./value-guards.js";
|
|
2
2
|
import { createRendererProfile } from "../native/renderer-profile.js";
|
|
3
3
|
import { renameExclusive } from "../native/native-rename.js";
|
|
4
|
-
import { containsAsciiControl } from "../desktop/string-policy.js";
|
|
5
4
|
import { assertPortableAppName } from "../installer/installer-layout.js";
|
|
5
|
+
import { containsAsciiControl } from "../desktop/string-policy.js";
|
|
6
6
|
import { isPrivateGroup, readAccountDatabase } from "./private-group.js";
|
|
7
7
|
import { cp, lstat, mkdtemp, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
|
|
8
8
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LEGACY_IMPORTED_THEME_TOKEN_PROJECTION } from "./legacy-imported-theme-token-projection.js";
|
|
2
1
|
import { appearanceThemeScript, createAppearancePersistence, selectionFromPreferences } from "./appearance-preferences.js";
|
|
3
|
-
import { customUiVariants, readCustomThemeLibrary, subscribeCustomThemes } from "./theme-library-store.js";
|
|
4
2
|
import "./custom-theme-library.js";
|
|
3
|
+
import { customUiVariants, readCustomThemeLibrary, subscribeCustomThemes } from "./theme-library-store.js";
|
|
4
|
+
import { LEGACY_IMPORTED_THEME_TOKEN_PROJECTION } from "./legacy-imported-theme-token-projection.js";
|
|
5
5
|
import { createComponent, effect, mergeProps, template } from "solid-js/web";
|
|
6
6
|
import { createContext, createEffect, createSignal, useContext } from "solid-js";
|
|
7
7
|
import { ThemeProvider as ThemeProvider$1, useOptionalTheme } from "@adea-ai/ui/components/theme/lazy";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./custom-theme-library.js";
|
|
2
2
|
import { flatVariantTokens, validateThemeRegistry } from "./theme-library-schema.js";
|
|
3
3
|
import { mutateCustomThemeLibrary } from "./theme-library-mutation.js";
|
|
4
|
-
import "./
|
|
4
|
+
import { LEGACY_IMPORTED_THEME_TOKEN_PROJECTION } from "./legacy-imported-theme-token-projection.js";
|
|
5
5
|
import { projectThemeTokens } from "@adea-ai/ui/components/theme/token-projection";
|
|
6
6
|
import { colorToHex, contrastRatio, ensureContrast, parseColor } from "@adea-ai/ui/lib/accent-roles";
|
|
7
7
|
import { defaultThemeRecord, editorRolesHex, oklchToHex, parseOklchColor, shadcnDestructiveProjection, shadcnVariables, syntaxRolesHex, toXtermTheme } from "@adea-ai/ui/lib/theme-projection";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { CUSTOM_THEME_ATOMIC_STORAGE_UNAVAILABLE, CUSTOM_THEME_LIBRARY_LOCK_NAME, CUSTOM_THEME_LIBRARY_MUTATION_FAILED, mutateCustomThemeLibrary, removeCustomThemeAtomically } from "./theme-library-mutation.js";
|
|
1
2
|
import { flatVariantTokens, storedVariantRecord, toUiVariant, validateThemeRegistry } from "./theme-library-schema.js";
|
|
2
3
|
import { CUSTOM_THEME_LIBRARY_RECOVERY_KEY, CUSTOM_THEME_LIBRARY_STORAGE_KEY, customThemeVariantById, customThemeVariants, customUiVariants, readCustomThemeLibrary, removeCustomTheme, setCustomThemes, subscribeCustomThemes } from "./theme-library-store.js";
|
|
3
|
-
import { CUSTOM_THEME_ATOMIC_STORAGE_UNAVAILABLE, CUSTOM_THEME_LIBRARY_LOCK_NAME, CUSTOM_THEME_LIBRARY_MUTATION_FAILED, mutateCustomThemeLibrary, removeCustomThemeAtomically } from "./theme-library-mutation.js";
|
|
4
4
|
export { CUSTOM_THEME_ATOMIC_STORAGE_UNAVAILABLE, CUSTOM_THEME_LIBRARY_LOCK_NAME, CUSTOM_THEME_LIBRARY_MUTATION_FAILED, CUSTOM_THEME_LIBRARY_RECOVERY_KEY, CUSTOM_THEME_LIBRARY_STORAGE_KEY, customThemeVariantById, customThemeVariants, customUiVariants, flatVariantTokens, mutateCustomThemeLibrary, readCustomThemeLibrary, removeCustomTheme, removeCustomThemeAtomically, setCustomThemes, storedVariantRecord, subscribeCustomThemes, toUiVariant, validateThemeRegistry };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { runCli } from "./cli-runner.js";
|
|
3
2
|
import { applyFrameworkUpdate, resolveFrameworkRelease } from "../release/framework-update.js";
|
|
4
3
|
import { withFrameworkUpdateLock } from "../release/framework-update-lock.js";
|
|
4
|
+
import { runCli } from "./cli-runner.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
// src/cli/framework-update-cli.ts
|
|
7
7
|
await runCli((error) => `App-framework update failed. ${error.message}`, async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { runCli } from "./cli-runner.js";
|
|
3
2
|
import { verifyMacosBundleSigning } from "../release/macos-signing.js";
|
|
3
|
+
import { runCli } from "./cli-runner.js";
|
|
4
4
|
// src/cli/macos-signing-cli.ts
|
|
5
5
|
await runCli("Unable to check the app signing; run it on macOS with codesign.", async () => {
|
|
6
6
|
const [app, flag, ...extra] = process.argv.slice(2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
3
2
|
import { planReleaseAssets } from "../release/release-assets-plan.js";
|
|
3
|
+
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
4
4
|
// src/cli/release-assets-plan-cli.ts
|
|
5
5
|
await runCli("Unable to plan release assets; check release provenance and the trusted workflow.", async () => {
|
|
6
6
|
const [tag, path, ...extra] = process.argv.slice(2);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { readJsonFile, redactedErrorMessage, runCli } from "./cli-runner.js";
|
|
3
|
-
import { gitCli } from "../release/local-provenance.js";
|
|
4
2
|
import { runReleaseCutCommand } from "../release/release-cut-command.js";
|
|
3
|
+
import { gitCli } from "../release/local-provenance.js";
|
|
5
4
|
import { hostReleasePlatform, runLocalReleaseCut } from "../release/local-release.js";
|
|
5
|
+
import { readJsonFile, redactedErrorMessage, runCli } from "./cli-runner.js";
|
|
6
6
|
// src/cli/release-cut-cli.ts
|
|
7
7
|
var local = process.argv[2] === "--local";
|
|
8
8
|
await runCli((error) => `Unable to cut the release: ${redactedErrorMessage(error)}. Check the trusted workflow or local checkout and release configuration.`, async () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
3
2
|
import { gitCli } from "../release/local-provenance.js";
|
|
4
|
-
import { stageReleaseDescriptors } from "../release/release-descriptor-staging.js";
|
|
5
3
|
import { hostReleasePlatform, localTagProvenance, stageLocalDescriptors } from "../release/local-release.js";
|
|
4
|
+
import { stageReleaseDescriptors } from "../release/release-descriptor-staging.js";
|
|
5
|
+
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
6
6
|
import { createPrivateKey } from "node:crypto";
|
|
7
7
|
// src/cli/release-descriptor-staging-cli.ts
|
|
8
8
|
var local = process.argv[2] === "--local";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
3
2
|
import { gitCli, originRepository } from "../release/local-provenance.js";
|
|
4
3
|
import { runLocalPromotion } from "../release/local-release.js";
|
|
5
4
|
import { runPromotionCommand } from "../release/release-promotion-command.js";
|
|
5
|
+
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
6
6
|
// src/cli/release-promote-cli.ts
|
|
7
7
|
var local = process.argv[2] === "--local";
|
|
8
8
|
await runCli("Unable to promote the release; check the trusted workflow or feed and release configuration.", async () => {
|
|
@@ -19,6 +19,7 @@ await runCli("Unable to promote the release; check the trusted workflow or feed
|
|
|
19
19
|
out,
|
|
20
20
|
now: (/* @__PURE__ */ new Date()).toISOString(),
|
|
21
21
|
held: held === "true",
|
|
22
|
+
...process.env.STABLE_SOAK_BYPASS_TAG ? { soakBypassTag: process.env.STABLE_SOAK_BYPASS_TAG } : {},
|
|
22
23
|
repository: await originRepository(gitCli()),
|
|
23
24
|
fetch
|
|
24
25
|
}) : await runPromotionCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
3
2
|
import { gitCli } from "../release/local-provenance.js";
|
|
4
3
|
import { hostReleasePlatform, localTagProvenance, stageLocalRelease } from "../release/local-release.js";
|
|
5
4
|
import { runReleasePublishCommand } from "../release/release-publish-command.js";
|
|
5
|
+
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
6
6
|
// src/cli/release-publish-cli.ts
|
|
7
7
|
var local = process.argv[2] === "--local";
|
|
8
8
|
await runCli("Unable to publish release artifacts; check the trusted workflow or local checkout, receipts, signing configuration and staged bytes.", async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
3
2
|
import { signReleaseArtifact } from "../release/release-artifact.js";
|
|
3
|
+
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
4
4
|
import { createPrivateKey } from "node:crypto";
|
|
5
5
|
// src/cli/release-sign-cli.ts
|
|
6
6
|
await runCli("Unable to sign release artifact; check the identity, archive and signing key.", async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
3
2
|
import { inspectStagedStep, qualifyStep, qualifyUpgradeStep, releasePlatform, selectRetainedStep, stageBuildStep } from "../release/release-steps.js";
|
|
3
|
+
import { readJsonFile, runCli } from "./cli-runner.js";
|
|
4
4
|
// src/cli/release-step-cli.ts
|
|
5
5
|
await runCli((error) => `Release step failed: ${error instanceof Error ? error.message : String(error)}`, async () => {
|
|
6
6
|
const args = process.argv.slice(2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { redactedErrorMessage, runCli } from "./cli-runner.js";
|
|
3
2
|
import { buildPatchedWindowsInstaller } from "../native/windows-extractor-build.js";
|
|
3
|
+
import { redactedErrorMessage, runCli } from "./cli-runner.js";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
// src/cli/windows-installer-build-cli.ts
|
|
6
6
|
await runCli((error) => `Unable to build the patched Windows installer: ${redactedErrorMessage(error)}`, async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { runCli } from "./cli-runner.js";
|
|
3
2
|
import { SECURE_WINDOWS_WRAPPER_SHA256, patchPinnedWindowsRuntime } from "../native/windows-runtime-patch.js";
|
|
3
|
+
import { runCli } from "./cli-runner.js";
|
|
4
4
|
import { readFile, stat, writeFile } from "node:fs/promises";
|
|
5
5
|
// src/cli/windows-runtime-patch-cli.ts
|
|
6
6
|
await runCli("Unable to patch the pinned unsigned Windows runtime.", async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLIENT_ASSET_ASSET_PATTERN, CLIENT_ASSET_CHUNK_PATTERN, CLIENT_ASSET_MANIFEST_FILE, clientAssetAssetEvidenceKey, clientAssetChunkEvidenceKey, createClientAssetManifest, parseClientAssetManifest, snapshotClientAssetAllowlist } from "./client-asset-manifest.js";
|
|
2
1
|
import { createClientAssetFileLimit, createClientAssetStream, createClientAssetVerificationCache, verifyClientAssetCached, verifyClientAssetDigest } from "./client-asset-stream.js";
|
|
2
|
+
import { CLIENT_ASSET_ASSET_PATTERN, CLIENT_ASSET_CHUNK_PATTERN, CLIENT_ASSET_MANIFEST_FILE, clientAssetAssetEvidenceKey, clientAssetChunkEvidenceKey, createClientAssetManifest, parseClientAssetManifest, snapshotClientAssetAllowlist } from "./client-asset-manifest.js";
|
|
3
3
|
import { open, readFile, realpath, stat } from "node:fs/promises";
|
|
4
4
|
import { extname, join, posix, relative, resolve, sep } from "node:path";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MAX_SERVICE_BODY_BYTES } from "../app/service-registry.js";
|
|
2
|
-
import { createChannelProofVerifier } from "./channel-proof.js";
|
|
3
1
|
import { createLoopbackPolicy, matchesLoopbackOrigin } from "./loopback-policy.js";
|
|
2
|
+
import { createChannelProofVerifier } from "./channel-proof.js";
|
|
3
|
+
import { MAX_SERVICE_BODY_BYTES } from "../app/service-registry.js";
|
|
4
4
|
import { isValidGatewayTimeoutMs } from "./gateway-limits.js";
|
|
5
5
|
// src/desktop/desktop-gateway.ts
|
|
6
6
|
var response = (status) => new Response(null, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { errorCode } from "../app/value-guards.js";
|
|
2
|
-
import {
|
|
2
|
+
import { publishDesktopPort } from "./desktop-port-file.js";
|
|
3
3
|
import { createClientAssetFileLimit, createClientAssetVerificationCache } from "./client-asset-stream.js";
|
|
4
4
|
import { createClientAssetResolver } from "./client-assets.js";
|
|
5
|
-
import {
|
|
6
|
-
import { createLoopbackPolicy, matchesLoopbackOrigin } from "./loopback-policy.js";
|
|
7
|
-
import { isValidGatewayTimeoutMs } from "./gateway-limits.js";
|
|
5
|
+
import { createChannelAuthority } from "./channel-handshake.js";
|
|
8
6
|
import { createDesktopGateway } from "./desktop-gateway.js";
|
|
9
|
-
import { DESKTOP_STREAM_BACKPRESSURE_LIMIT, sendDesktopStreamPayload } from "./desktop-host-websocket.js";
|
|
10
|
-
import { publishDesktopPort } from "./desktop-port-file.js";
|
|
11
7
|
import { createNativeWindowGrant } from "../native/window-bootstrap.js";
|
|
12
8
|
import { createSecureWindow } from "../native/secure-window.js";
|
|
13
9
|
import { createDesktopStreams } from "./desktop-stream.js";
|
|
10
|
+
import { DESKTOP_STREAM_BACKPRESSURE_LIMIT, sendDesktopStreamPayload } from "./desktop-host-websocket.js";
|
|
11
|
+
import { createLoopbackPolicy, matchesLoopbackOrigin } from "./loopback-policy.js";
|
|
12
|
+
import { isValidGatewayTimeoutMs } from "./gateway-limits.js";
|
|
13
|
+
import { ClientResponseLifecycleClosedError, createClientResponseLifecycleTracker } from "./client-response-lifecycle.js";
|
|
14
14
|
import { lstatSync, readFileSync } from "node:fs";
|
|
15
15
|
// src/desktop/desktop-host.ts
|
|
16
16
|
var DesktopPortInUseError = class extends Error {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createChannelProofVerifier } from "./channel-proof.js";
|
|
2
1
|
import { typedArrayBuffer, typedArrayByteLength, typedArrayByteOffset } from "./typed-array-intrinsics.js";
|
|
2
|
+
import { createChannelProofVerifier } from "./channel-proof.js";
|
|
3
3
|
import { types } from "node:util";
|
|
4
4
|
import { Buffer } from "node:buffer";
|
|
5
5
|
// src/desktop/desktop-stream.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.
|
|
1
|
+
{"version":"0.38.0","commit":"53f877e75ef6345dd53f4a80b06d85244cdcace6"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { errorCode } from "../app/value-guards.js";
|
|
2
2
|
import { assertInstallerContext } from "./installer-layout.js";
|
|
3
|
-
import { validateCommandReceipt } from "../release/release-qualification.js";
|
|
4
|
-
import { parseReleaseConfig } from "../release/release-config.js";
|
|
5
3
|
import { qualifyCommandArtifact } from "./command-artifact.js";
|
|
6
4
|
import { planQualificationRun } from "../release/qualification-run.js";
|
|
5
|
+
import { parseReleaseConfig } from "../release/release-config.js";
|
|
6
|
+
import { validateCommandReceipt } from "../release/release-qualification.js";
|
|
7
7
|
import { fileIdentity } from "../release/release-publication.js";
|
|
8
8
|
import { lstat, writeFile } from "node:fs/promises";
|
|
9
9
|
import { join, resolve } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { assertArchiveUnchanged, findArchiveMember, isWithin } from "./installer-archive-members.js";
|
|
2
2
|
import { runnerTemp } from "./hosted-runner.js";
|
|
3
|
-
import { assertBuildMetadata, assertInstallerContext, assertPayloadLayout, assertPortableAppName } from "./installer-layout.js";
|
|
4
3
|
import { hashFileAt } from "../updates/locks/stable-file.js";
|
|
5
4
|
import { assertNativeExecutable } from "./native-executable.js";
|
|
6
|
-
import {
|
|
5
|
+
import { assertBuildMetadata, assertInstallerContext, assertPayloadLayout, assertPortableAppName } from "./installer-layout.js";
|
|
6
|
+
import { assertSidecarNames, sidecarBundlePath } from "../native/app-bundle.js";
|
|
7
7
|
import { lstat, open, realpath, rm } from "node:fs/promises";
|
|
8
8
|
import { join, resolve } from "node:path";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sameFile } from "../updates/locks/stable-file.js";
|
|
2
1
|
import { assertNativeExecutable } from "./native-executable.js";
|
|
2
|
+
import { sameFile } from "../updates/locks/stable-file.js";
|
|
3
3
|
import { lstat, open } from "node:fs/promises";
|
|
4
4
|
import { isAbsolute, relative, sep } from "node:path";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { parseOfflinePolicy } from "../release/release-qualification.js";
|
|
2
|
-
import { installInstallerRendererProbe } from "./installer-renderer-evidence.js";
|
|
3
1
|
import { installInstallerFetchGuard } from "./installer-fetch-guard.js";
|
|
2
|
+
import { installInstallerRendererProbe } from "./installer-renderer-evidence.js";
|
|
3
|
+
import { parseOfflinePolicy } from "../release/release-qualification.js";
|
|
4
4
|
import { awaitInstallerWorkerPermit, interceptInstallerWorker } from "./installer-worker-guard.js";
|
|
5
5
|
import { isAbsolute } from "node:path";
|
|
6
6
|
import { writeFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { assertEmbeddedArchive, assertInstallerExecutable, extractArchiveMember, findArchiveMember, isWithin } from "./installer-archive-members.js";
|
|
1
2
|
import { runnerTemp } from "./hosted-runner.js";
|
|
2
|
-
import { assertInstallerContext, assertInstallerLayout, assertPortableAppName } from "./installer-layout.js";
|
|
3
3
|
import { hashFileAt } from "../updates/locks/stable-file.js";
|
|
4
|
-
import {
|
|
4
|
+
import { assertInstallerContext, assertInstallerLayout, assertPortableAppName } from "./installer-layout.js";
|
|
5
|
+
import { verifyInstallerPayload } from "./installer-identity.js";
|
|
5
6
|
import { cleanupInstallerDirectoryAfterFailure, defaultInstallerImageMountIo, withInstallerImageRetries } from "./installer-image-mount.js";
|
|
6
7
|
import { runInstallerCommand } from "./installer-command.js";
|
|
7
|
-
import { verifyInstallerPayload } from "./installer-identity.js";
|
|
8
8
|
import { chmod, lstat, mkdir, mkdtemp, readdir, realpath } from "node:fs/promises";
|
|
9
9
|
import { join, resolve, win32 } from "node:path";
|
|
10
10
|
// src/installer/installer-extraction.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { assertInstallerContext, assertInstallerHost, assertInstallerLayout, assertPortableAppName } from "./installer-layout.js";
|
|
2
|
-
import { hashFileAt } from "../updates/locks/stable-file.js";
|
|
3
1
|
import { assertEmbeddedArchive, assertInstallerExecutable, extractArchiveMember, findArchiveMember, isWithin, normalizeArchiveMember } from "./installer-archive-members.js";
|
|
2
|
+
import { hashFileAt } from "../updates/locks/stable-file.js";
|
|
3
|
+
import { assertInstallerContext, assertInstallerHost, assertInstallerLayout, assertPortableAppName } from "./installer-layout.js";
|
|
4
4
|
import { InstallerImageLifecycleError, cleanupInstallerDirectoryAfterFailure, defaultInstallerImageMountIo, installerImageMountState, withInstallerImageRetries } from "./installer-image-mount.js";
|
|
5
5
|
import { runInstallerCommand } from "./installer-command.js";
|
|
6
6
|
import { lstat, mkdtemp, readdir, realpath } from "node:fs/promises";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { errorCode } from "../app/value-guards.js";
|
|
2
|
-
import { assertInstallerContext, assertPortableAppName } from "./installer-layout.js";
|
|
3
|
-
import { parseOfflinePolicy } from "../release/release-qualification.js";
|
|
4
|
-
import { verifyInstallerPayload } from "./installer-identity.js";
|
|
5
2
|
import { preflightInstallerRuntime, prepareInstallerCiBootstrap } from "./installer-ci-bootstrap.js";
|
|
6
3
|
import { prepareInstallerExecution } from "./installer-extraction.js";
|
|
4
|
+
import { verifyInstallerPayload } from "./installer-identity.js";
|
|
5
|
+
import { assertInstallerContext, assertPortableAppName } from "./installer-layout.js";
|
|
7
6
|
import { assertInstallerRendererObservation } from "./installer-renderer-evidence.js";
|
|
8
7
|
import { extractCandidateRuntime, verifyInstalledPayload } from "./installed-payload.js";
|
|
8
|
+
import { parseOfflinePolicy } from "../release/release-qualification.js";
|
|
9
9
|
import { terminateGuardedWorker } from "./installer-process-cleanup.js";
|
|
10
|
-
import { swapUpdateTree } from "../updates/install/update-swap.js";
|
|
11
10
|
import { stageUpdateSwap } from "../updates/install/update-swap-stage.js";
|
|
11
|
+
import { swapUpdateTree } from "../updates/install/update-swap.js";
|
|
12
12
|
import { chmod, lstat, mkdir, readFile, realpath, writeFile } from "node:fs/promises";
|
|
13
13
|
import { delimiter, dirname, join } from "node:path";
|
|
14
14
|
import { randomBytes } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { assertInstallerContext } from "./installer-layout.js";
|
|
2
1
|
import { windowsProcessImage } from "../native/windows-process.js";
|
|
2
|
+
import { assertInstallerContext } from "./installer-layout.js";
|
|
3
3
|
import { realpath } from "node:fs/promises";
|
|
4
4
|
import { execFile } from "node:child_process";
|
|
5
5
|
import { promisify } from "node:util";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { errorCode } from "../app/value-guards.js";
|
|
2
|
-
import { validateInstallerReceipt } from "../release/release-qualification.js";
|
|
3
|
-
import { parseReleaseConfig } from "../release/release-config.js";
|
|
4
|
-
import { planQualificationRun } from "../release/qualification-run.js";
|
|
5
2
|
import { observeInstalledApp } from "./installer-observation.js";
|
|
3
|
+
import { planQualificationRun } from "../release/qualification-run.js";
|
|
4
|
+
import { parseReleaseConfig } from "../release/release-config.js";
|
|
5
|
+
import { validateInstallerReceipt } from "../release/release-qualification.js";
|
|
6
6
|
import { lstat, writeFile } from "node:fs/promises";
|
|
7
7
|
import { join, resolve } from "node:path";
|
|
8
8
|
// src/installer/installer-qualification-command.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { assertHostedRunner } from "./hosted-runner.js";
|
|
2
1
|
import { parseOfflinePolicy } from "../release/release-qualification.js";
|
|
3
2
|
import { discardStream } from "../shared/discard-stream.js";
|
|
3
|
+
import { assertHostedRunner } from "./hosted-runner.js";
|
|
4
4
|
// src/installer/installer-renderer-evidence.ts
|
|
5
5
|
function safeScriptString(value) {
|
|
6
6
|
return JSON.stringify(value).replaceAll("<", "\\u003c").replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { versionLessThan } from "../updates/feed/release-version.js";
|
|
2
1
|
import { errorCode, isRecord } from "../app/value-guards.js";
|
|
3
|
-
import { verifyReleaseDescriptor } from "../updates/feed/signed-release.js";
|
|
4
|
-
import { feedUrl } from "../updates/feed/release-feed.js";
|
|
5
|
-
import { parseReleaseConfig } from "../release/release-config.js";
|
|
6
|
-
import { planReleaseAssets } from "../release/release-assets-plan.js";
|
|
7
2
|
import { observeInstalledApp } from "./installer-observation.js";
|
|
8
3
|
import { downloadAsset } from "./upgrade-asset-download.js";
|
|
4
|
+
import { planReleaseAssets } from "../release/release-assets-plan.js";
|
|
5
|
+
import { parseReleaseConfig } from "../release/release-config.js";
|
|
6
|
+
import { feedUrl } from "../updates/feed/release-feed.js";
|
|
7
|
+
import { versionLessThan } from "../updates/feed/release-version.js";
|
|
9
8
|
import { discoverSignedRelease } from "../updates/feed/update-discovery.js";
|
|
10
9
|
import { downloadVerifiedRelease } from "../updates/install/update-download.js";
|
|
10
|
+
import { verifyReleaseDescriptor } from "../updates/feed/signed-release.js";
|
|
11
11
|
import { lstat, mkdir, open, rename, writeFile } from "node:fs/promises";
|
|
12
12
|
import { join, resolve } from "node:path";
|
|
13
13
|
// src/installer/installer-upgrade-command.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isFeedAssetName, isFeedTag, parseFeedRelease } from "../updates/feed/release-feed.js";
|
|
2
1
|
import { discardStream } from "../shared/discard-stream.js";
|
|
2
|
+
import { isFeedAssetName, isFeedTag, parseFeedRelease } from "../updates/feed/release-feed.js";
|
|
3
3
|
import { fetchReleaseLocation, readReleaseJson } from "../updates/feed/release-location.js";
|
|
4
4
|
import { writeAll } from "./write-all.js";
|
|
5
5
|
import { open, unlink } from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./posix-launcher-build.js";
|
|
2
1
|
import { createMacosDmg } from "../release/macos-dmg.js";
|
|
2
|
+
import "./posix-launcher-build.js";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { copyFileSync, mkdirSync } from "node:fs";
|
|
5
5
|
import { spawn, spawnSync } from "node:child_process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRendererProfile } from "./renderer-profile.js";
|
|
2
1
|
import { createLoopbackPolicy } from "../desktop/loopback-policy.js";
|
|
2
|
+
import { createRendererProfile } from "./renderer-profile.js";
|
|
3
3
|
import { createWindowOptions } from "./window-options.js";
|
|
4
4
|
// src/native/secure-window.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { patchPinnedWindowsRuntime } from "./windows-runtime-patch.js";
|
|
2
1
|
import { patchWindowsBuildForTest } from "./windows-build-hook-internal.js";
|
|
2
|
+
import { patchPinnedWindowsRuntime } from "./windows-runtime-patch.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
// src/native/windows-build-hook.ts
|
|
5
5
|
/** Electrobun postBuild hook; runs before release hashing, packaging and signing. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ELECTROBUN_COMMIT, PINNED_SHORTCUT_PATCH, SHORTCUT_PATCH_PATH, applyElectrobunPatch } from "./electrobun-source-patch.js";
|
|
2
1
|
import { electrobunArtifacts } from "../release/release-steps.js";
|
|
2
|
+
import { ELECTROBUN_COMMIT, PINNED_SHORTCUT_PATCH, SHORTCUT_PATCH_PATH, applyElectrobunPatch } from "./electrobun-source-patch.js";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { copyFileSync, createReadStream, createWriteStream, existsSync, linkSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, unlinkSync } from "node:fs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { verifyReleaseDescriptor, verifyReleaseStream } from "../updates/feed/signed-release.js";
|
|
2
|
-
import { feedUrl, parseFeedRelease, parseReleaseLedger } from "../updates/feed/release-feed.js";
|
|
3
|
-
import { discoveryPolicies } from "./release-config.js";
|
|
4
1
|
import { discardStream } from "../shared/discard-stream.js";
|
|
2
|
+
import { feedUrl, parseFeedRelease, parseReleaseLedger } from "../updates/feed/release-feed.js";
|
|
5
3
|
import { fetchReleaseLocation, readReleaseBytes } from "../updates/feed/release-location.js";
|
|
4
|
+
import { verifyReleaseDescriptor, verifyReleaseStream } from "../updates/feed/signed-release.js";
|
|
5
|
+
import { discoveryPolicies } from "./release-config.js";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
// src/release/feed-state.ts
|
|
8
8
|
var MAX_LEDGER_BYTES = 1048576;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isGitSha } from "../app/value-guards.js";
|
|
2
|
-
import { containsAsciiControl } from "../desktop/string-policy.js";
|
|
3
2
|
import { githubCli } from "./github-cli.js";
|
|
3
|
+
import { qualifyGitHubRelease } from "./github-release-qualification.js";
|
|
4
4
|
import { verifyReleaseProvenance } from "./github-release-provenance.js";
|
|
5
5
|
import { lookupRelease } from "./github-release-lookup.js";
|
|
6
|
-
import { isRepositorySlug } from "../updates/feed/signed-release.js";
|
|
7
|
-
import { qualifyGitHubRelease } from "./github-release-qualification.js";
|
|
8
6
|
import { workflowFile } from "./release-config.js";
|
|
7
|
+
import { containsAsciiControl } from "../desktop/string-policy.js";
|
|
8
|
+
import { isRepositorySlug } from "../updates/feed/signed-release.js";
|
|
9
9
|
// src/release/github-release-cut.ts
|
|
10
10
|
/** GitHub adapter for immutable release cuts from a trusted main workflow. */
|
|
11
11
|
function createGitHubReleaseCutProvider(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { qualifyGitHubRelease } from "./github-release-qualification.js";
|
|
1
2
|
import { githubCli } from "./github-cli.js";
|
|
2
3
|
import { assertRepositorySlug } from "../updates/feed/signed-release.js";
|
|
3
|
-
import { qualifyGitHubRelease } from "./github-release-qualification.js";
|
|
4
4
|
// src/release/github-release-promotion.ts
|
|
5
5
|
function normalizePromotionRelease(value) {
|
|
6
6
|
if (typeof value !== "object" || value === null) throw new Error("Invalid GitHub release");
|
|
@@ -112,6 +112,7 @@ export declare function runLocalPromotion(options: {
|
|
|
112
112
|
out: string;
|
|
113
113
|
now: string;
|
|
114
114
|
held: boolean;
|
|
115
|
+
soakBypassTag?: string;
|
|
115
116
|
repository: string;
|
|
116
117
|
fetch: FetchFunction;
|
|
117
118
|
}): Promise<{
|
|
@@ -125,6 +126,7 @@ export declare function runLocalPromotion(options: {
|
|
|
125
126
|
} | {
|
|
126
127
|
status: 'stable';
|
|
127
128
|
tag: string;
|
|
129
|
+
soakBypassed?: true;
|
|
128
130
|
reasons?: string[] | undefined;
|
|
129
131
|
plan?: Readonly<{
|
|
130
132
|
schema: 1;
|