@adea-ai/app-framework 0.31.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/README.md +26 -11
  2. package/dist/app/create-application.js +4 -3
  3. package/dist/app/serial-queue.d.ts +5 -0
  4. package/dist/app/serial-queue.js +14 -0
  5. package/dist/app/value-guards.d.ts +15 -0
  6. package/dist/app/value-guards.js +29 -0
  7. package/dist/ci/toolchain-identity.js +1 -1
  8. package/dist/desktop/channel-proof.js +2 -1
  9. package/dist/desktop/client-asset-stream.js +6 -12
  10. package/dist/desktop/desktop-host.d.ts +25 -5
  11. package/dist/desktop/desktop-host.js +75 -20
  12. package/dist/framework-source.json +1 -1
  13. package/dist/installer/command-artifact.js +4 -3
  14. package/dist/installer/command-qualification-command.js +6 -5
  15. package/dist/installer/hosted-runner.d.ts +9 -2
  16. package/dist/installer/hosted-runner.js +18 -5
  17. package/dist/installer/installed-payload.js +20 -46
  18. package/dist/installer/installer-archive.d.ts +33 -0
  19. package/dist/installer/installer-archive.js +116 -0
  20. package/dist/installer/installer-ci-bootstrap.js +10 -6
  21. package/dist/installer/installer-extraction.js +54 -120
  22. package/dist/installer/installer-identity.js +33 -111
  23. package/dist/installer/installer-observation.js +3 -2
  24. package/dist/installer/installer-process-cleanup.js +7 -46
  25. package/dist/installer/installer-qualification-command.js +6 -5
  26. package/dist/installer/installer-upgrade-command.js +5 -5
  27. package/dist/installer/installer-worker-guard.js +2 -1
  28. package/dist/native/canonical-path.d.ts +5 -0
  29. package/dist/native/canonical-path.js +10 -0
  30. package/dist/native/cef-helper.js +5 -4
  31. package/dist/native/electrobun-source-patch.js +3 -2
  32. package/dist/native/{directory-exchange.d.ts → native-rename.d.ts} +2 -0
  33. package/dist/native/native-rename.js +126 -0
  34. package/dist/native/native-secret-store.js +2 -6
  35. package/dist/native/native-utilities.js +4 -4
  36. package/dist/native/posix-launcher-build.js +1 -1
  37. package/dist/native/posix-tree-removal.js +2 -2
  38. package/dist/native/windows-process.d.ts +9 -0
  39. package/dist/native/windows-process.js +60 -0
  40. package/dist/release/feed-release-cut.js +2 -1
  41. package/dist/release/framework-package-publish.js +1 -1
  42. package/dist/release/framework-update-lock.js +2 -1
  43. package/dist/release/github-cli.d.ts +18 -0
  44. package/dist/release/github-cli.js +13 -1
  45. package/dist/release/github-release-cut.js +3 -2
  46. package/dist/release/github-release-provenance.js +2 -1
  47. package/dist/release/github-release-publisher.js +2 -1
  48. package/dist/release/local-provenance.js +3 -2
  49. package/dist/release/local-release.js +6 -6
  50. package/dist/release/qualification-run.d.ts +25 -0
  51. package/dist/release/qualification-run.js +43 -0
  52. package/dist/release/release-artifact.js +3 -11
  53. package/dist/release/release-assets-plan.js +16 -6
  54. package/dist/release/release-config.js +14 -14
  55. package/dist/release/release-cut-command.js +14 -4
  56. package/dist/release/release-cut.js +3 -2
  57. package/dist/release/release-descriptor-staging.js +13 -27
  58. package/dist/release/release-finalize.js +2 -1
  59. package/dist/release/release-publication.js +3 -11
  60. package/dist/release/release-publish-command.js +15 -6
  61. package/dist/release/release-qualification.js +3 -2
  62. package/dist/release/retained-release-build.js +12 -12
  63. package/dist/update-helper.bundle.js +250 -190
  64. package/dist/updates/desktop-updater.js +53 -58
  65. package/dist/updates/packaged-launch-admission.js +3 -2
  66. package/dist/updates/packaged-release-config.js +6 -5
  67. package/dist/updates/release-feed.js +9 -9
  68. package/dist/updates/signed-release.js +5 -5
  69. package/dist/updates/stable-file.d.ts +18 -0
  70. package/dist/updates/stable-file.js +54 -1
  71. package/dist/updates/update-adapter.d.ts +2 -13
  72. package/dist/updates/update-arm.js +7 -5
  73. package/dist/updates/update-channel-store.js +7 -9
  74. package/dist/updates/update-discovery.js +30 -34
  75. package/dist/updates/update-download-cleanup.js +2 -1
  76. package/dist/updates/update-download.js +2 -4
  77. package/dist/updates/update-extraction.js +1 -1
  78. package/dist/updates/update-generation-lease.js +4 -3
  79. package/dist/updates/update-handoff-plan.js +3 -2
  80. package/dist/updates/update-helper.js +8 -6
  81. package/dist/updates/update-instance-lease.js +3 -2
  82. package/dist/updates/update-launch-gate.js +12 -25
  83. package/dist/updates/update-launch.js +3 -2
  84. package/dist/updates/update-lock.js +3 -2
  85. package/dist/updates/update-marker.js +3 -2
  86. package/dist/updates/update-process-fence.js +10 -39
  87. package/dist/updates/update-process-liveness.js +2 -1
  88. package/dist/updates/update-resume.js +26 -22
  89. package/dist/updates/update-retention-marker.js +7 -5
  90. package/dist/updates/update-retention-plan.js +2 -2
  91. package/dist/updates/update-retirement.js +40 -39
  92. package/dist/updates/update-state-store.js +29 -37
  93. package/dist/updates/update-state.d.ts +8 -3
  94. package/dist/updates/update-swap-stage.js +6 -5
  95. package/dist/updates/update-swap.d.ts +1 -1
  96. package/dist/updates/update-swap.js +8 -6
  97. package/package.json +4 -12
  98. package/src/desktop/client-asset-stream.ts +6 -12
  99. package/src/updates/update-adapter.ts +2 -14
  100. package/src/updates/update-state.ts +11 -2
  101. package/dist/native/directory-exchange.js +0 -90
  102. package/dist/native/exclusive-rename.d.ts +0 -2
  103. package/dist/native/exclusive-rename.js +0 -52
  104. package/dist/release/retention-dry-run.d.ts +0 -46
  105. package/dist/release/retention-dry-run.js +0 -94
  106. package/dist/updates/update-exclusive-rename.d.ts +0 -3
  107. package/dist/updates/update-exclusive-rename.js +0 -5
@@ -303,31 +303,25 @@ export function createClientAssetStream(
303
303
  if (cancelled) return
304
304
  const current = file
305
305
  if (!current) return
306
- if (offset === expected.size) {
306
+ // Verify the file is unchanged once fully read, then release it before ending.
307
+ const finish = async (last?: Uint8Array) => {
307
308
  const actual = await current.stat()
308
309
  if (cancelled) return
309
310
  if (!sameFile(expected, actual))
310
311
  throw new Error('Client asset changed during request')
311
312
  await close()
312
313
  if (cancelled) return
314
+ if (last) controller.enqueue(last)
313
315
  controller.close()
314
- return
315
316
  }
317
+ if (offset === expected.size) return await finish()
316
318
  const buffer = Buffer.allocUnsafe(Math.min(FILE_CHUNK_BYTES, expected.size - offset))
317
319
  const { bytesRead } = await current.read(buffer, 0, buffer.length, offset)
318
320
  if (cancelled) return
319
321
  if (!bytesRead) throw new Error('Client asset changed during request')
320
322
  offset += bytesRead
321
- if (offset === expected.size) {
322
- const actual = await current.stat()
323
- if (cancelled) return
324
- if (!sameFile(expected, actual))
325
- throw new Error('Client asset changed during request')
326
- await close()
327
- if (cancelled) return
328
- controller.enqueue(buffer.subarray(0, bytesRead))
329
- controller.close()
330
- } else controller.enqueue(buffer.subarray(0, bytesRead))
323
+ if (offset === expected.size) await finish(buffer.subarray(0, bytesRead))
324
+ else controller.enqueue(buffer.subarray(0, bytesRead))
331
325
  } catch (error) {
332
326
  await close().catch(() => {})
333
327
  if (!cancelled) controller.error(error)
@@ -3,7 +3,7 @@ import type {
3
3
  UpdateChannel,
4
4
  UpdateState,
5
5
  } from '@adea-ai/ui/components/composites/update-dialog'
6
- import { toUpdateState } from './update-state'
6
+ import { toUpdateState, type NativeUpdateSnapshotOf } from './update-state'
7
7
 
8
8
  export type { UpdateAdapter, UpdateChannel, UpdateState }
9
9
 
@@ -90,19 +90,7 @@ export function mirrorUpdateState(
90
90
  }
91
91
 
92
92
  /** A native updater snapshot in snake_case, as Rust and older desktop hosts report it. */
93
- export type NativeUpdateSnapshot = Readonly<{
94
- available_version: string | null
95
- changelog: string
96
- current_version: string
97
- downloaded_bytes: number
98
- error: string | null
99
- github_url: string | null
100
- phase: UpdateState['phase']
101
- release_date: string | null
102
- release_notes?: string | null
103
- restart_required: boolean
104
- total_bytes: number | null
105
- }>
93
+ export type NativeUpdateSnapshot = NativeUpdateSnapshotOf<UpdateState['phase'], string | null>
106
94
 
107
95
  /** A native updater that answers with snake_case snapshots. */
108
96
  export type NativeUpdateAdapter = Readonly<{
@@ -13,10 +13,19 @@ export type NativeUpdateState<Phase extends string = string> = Readonly<{
13
13
  restart_required: boolean
14
14
  }>
15
15
 
16
+ /**
17
+ * A native updater snapshot: the service fields, with a release URL that may be
18
+ * absent (`Url`) and release notes that older hosts omit.
19
+ */
20
+ export type NativeUpdateSnapshotOf<
21
+ Phase extends string = string,
22
+ Url extends string | null = string,
23
+ > = Omit<NativeUpdateState<Phase>, 'github_url' | 'release_notes'> &
24
+ Readonly<{ github_url: Url; release_notes?: string | null }>
25
+
16
26
  /** Project a native snapshot into the shared UI update dialog contract. */
17
27
  export function toUpdateState<Phase extends string, Url extends string | null = string>(
18
- update: Omit<NativeUpdateState<Phase>, 'github_url' | 'release_notes'> &
19
- Readonly<{ github_url: Url; release_notes?: string | null }>,
28
+ update: NativeUpdateSnapshotOf<Phase, Url>,
20
29
  options: { includeReleaseNotes?: boolean } = {}
21
30
  ) {
22
31
  return {
@@ -1,90 +0,0 @@
1
- import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
2
- import { isAbsolute, join, resolve } from "node:path";
3
- import { FFIType, dlopen, ptr } from "bun:ffi";
4
- import { randomUUID } from "node:crypto";
5
- // src/native/directory-exchange.ts
6
- var RENAME_EXCHANGE = 2;
7
- /** Atomically exchange two existing paths on supported Darwin and Linux filesystems. */
8
- function exchangeDirectories(source, destination) {
9
- if (typeof source !== "string" || typeof destination !== "string" || !isAbsolute(source) || !isAbsolute(destination) || resolve(source) !== source || resolve(destination) !== destination || source === destination || source.includes("\0") || destination.includes("\0")) throw new Error("Invalid atomic directory exchange paths");
10
- if (process.platform === "darwin") {
11
- const library = dlopen("libSystem.B.dylib", { renamex_np: {
12
- args: [
13
- FFIType.ptr,
14
- FFIType.ptr,
15
- FFIType.u32
16
- ],
17
- returns: FFIType.i32
18
- } });
19
- try {
20
- const from = Buffer.from(source + "\0"), to = Buffer.from(destination + "\0");
21
- if (library.symbols.renamex_np(ptr(from), ptr(to), RENAME_EXCHANGE) !== 0) throw new Error("Atomic directory exchange is unsupported or failed");
22
- } finally {
23
- library.close();
24
- }
25
- } else if (process.platform === "linux") {
26
- const library = dlopen("libc.so.6", { renameat2: {
27
- args: [
28
- FFIType.i32,
29
- FFIType.ptr,
30
- FFIType.i32,
31
- FFIType.ptr,
32
- FFIType.u32
33
- ],
34
- returns: FFIType.i32
35
- } });
36
- try {
37
- const from = Buffer.from(source + "\0"), to = Buffer.from(destination + "\0");
38
- if (library.symbols.renameat2(-100, ptr(from), -100, ptr(to), RENAME_EXCHANGE) !== 0) throw new Error("Atomic directory exchange is unsupported or failed");
39
- } finally {
40
- library.close();
41
- }
42
- } else throw new Error("Atomic directory exchange is unsupported on this platform");
43
- }
44
- /**
45
- * Exercise the actual volume using two disposable directories before exchanging
46
- * an install tree. This qualifies only that same-volume probe pair; it cannot
47
- * prove a provider will behave identically for every later object or survive a
48
- * power failure. The caller also verifies the real trees' versions and inode
49
- * identities immediately after the exchange.
50
- */
51
- async function probeDirectoryExchange(parent, exchange = exchangeDirectories) {
52
- if (typeof parent !== "string" || !isAbsolute(parent) || resolve(parent) !== parent || parent.includes("\0")) throw new Error("Invalid directory exchange probe parent");
53
- const id = randomUUID();
54
- const first = join(parent, `.framework-exchange-probe-${id}-a`);
55
- const second = join(parent, `.framework-exchange-probe-${id}-b`);
56
- const marker = "exchange-probe";
57
- const firstValue = `${id}:first`;
58
- const secondValue = `${id}:second`;
59
- let firstCreated = false;
60
- let secondCreated = false;
61
- try {
62
- await mkdir(first, { mode: 448 });
63
- firstCreated = true;
64
- await mkdir(second, { mode: 448 });
65
- secondCreated = true;
66
- await writeFile(join(first, marker), firstValue, {
67
- flag: "wx",
68
- mode: 384
69
- });
70
- await writeFile(join(second, marker), secondValue, {
71
- flag: "wx",
72
- mode: 384
73
- });
74
- exchange(first, second);
75
- const [firstAfter, secondAfter] = await Promise.all([readFile(join(first, marker), "utf8"), readFile(join(second, marker), "utf8")]);
76
- if (firstAfter !== secondValue || secondAfter !== firstValue) throw new Error("Directory exchange did not exchange both probe trees");
77
- } finally {
78
- const cleanup = [];
79
- if (firstCreated) cleanup.push(rm(first, {
80
- recursive: true,
81
- force: true
82
- }));
83
- if (secondCreated) cleanup.push(rm(second, {
84
- recursive: true,
85
- force: true
86
- }));
87
- await Promise.all(cleanup);
88
- }
89
- }
90
- export { exchangeDirectories, probeDirectoryExchange };
@@ -1,2 +0,0 @@
1
- /** Rename without replacing an existing destination on supported desktop platforms. */
2
- export declare function renameExclusive(source: string, destination: string): void;
@@ -1,52 +0,0 @@
1
- import { isAbsolute, resolve } from "node:path";
2
- import { FFIType, dlopen, ptr } from "bun:ffi";
3
- // src/native/exclusive-rename.ts
4
- /** Rename without replacing an existing destination on supported desktop platforms. */
5
- function renameExclusive(source, destination) {
6
- if (typeof source !== "string" || typeof destination !== "string" || !isAbsolute(source) || !isAbsolute(destination) || resolve(source) !== source || resolve(destination) !== destination || source === destination || source.includes("\0") || destination.includes("\0")) throw new Error("Invalid exclusive rename paths");
7
- if (process.platform === "darwin") {
8
- const library = dlopen("libSystem.B.dylib", { renamex_np: {
9
- args: [
10
- FFIType.ptr,
11
- FFIType.ptr,
12
- FFIType.u32
13
- ],
14
- returns: FFIType.i32
15
- } });
16
- try {
17
- const from = Buffer.from(source + "\0"), to = Buffer.from(destination + "\0");
18
- if (library.symbols.renamex_np(ptr(from), ptr(to), 4) !== 0) throw new Error("Exclusive rename failed");
19
- } finally {
20
- library.close();
21
- }
22
- } else if (process.platform === "linux") {
23
- const library = dlopen("libc.so.6", { renameat2: {
24
- args: [
25
- FFIType.i32,
26
- FFIType.ptr,
27
- FFIType.i32,
28
- FFIType.ptr,
29
- FFIType.u32
30
- ],
31
- returns: FFIType.i32
32
- } });
33
- try {
34
- const from = Buffer.from(source + "\0"), to = Buffer.from(destination + "\0");
35
- if (library.symbols.renameat2(-100, ptr(from), -100, ptr(to), 1) !== 0) throw new Error("Exclusive rename failed");
36
- } finally {
37
- library.close();
38
- }
39
- } else if (process.platform === "win32") {
40
- const library = dlopen("kernel32.dll", { MoveFileW: {
41
- args: [FFIType.ptr, FFIType.ptr],
42
- returns: FFIType.i32
43
- } });
44
- try {
45
- const from = Buffer.from(source + "\0", "utf16le"), to = Buffer.from(destination + "\0", "utf16le");
46
- if (library.symbols.MoveFileW(ptr(from), ptr(to)) === 0) throw new Error("Exclusive rename failed");
47
- } finally {
48
- library.close();
49
- }
50
- } else throw new Error("Unsupported exclusive rename platform");
51
- }
52
- export { renameExclusive };
@@ -1,46 +0,0 @@
1
- import { type FeedChannel } from '../updates/release-feed';
2
- /** An inventory item from an independent, complete object listing. */
3
- export type RetentionObject = Readonly<{
4
- key: string;
5
- version: string;
6
- size: number;
7
- sha256: string;
8
- modifiedAt: string;
9
- role: 'payload' | 'provenance';
10
- }>;
11
- /**
12
- * Offline evidence for an advisory report. Completeness must be established by the
13
- * caller; this module does not fetch, authenticate, lock, or delete any object.
14
- */
15
- export type RetentionEvidence = Readonly<{
16
- feed: unknown;
17
- ledger: unknown;
18
- releases: readonly unknown[];
19
- pointers: Readonly<Record<FeedChannel, unknown | null>>;
20
- objects: readonly RetentionObject[];
21
- protectedTags: Readonly<{
22
- rollback: readonly string[];
23
- qualification: readonly string[];
24
- promotion: readonly string[];
25
- inFlight: readonly string[];
26
- }>;
27
- /** Latest time each unprotected release could have been exposed to a reader. */
28
- lastExposedAt: Readonly<Record<string, string>>;
29
- /** All sources must cover the complete namespace and all reference classes. */
30
- complete: boolean;
31
- now: string;
32
- discoveryGraceMs: number;
33
- }>;
34
- /** Advisory only: returned object identities are not a deletion authorization. */
35
- export declare function planRetentionDryRun(input: RetentionEvidence): {
36
- mode: 'advisory-only';
37
- review: Readonly<{
38
- key: string;
39
- version: string;
40
- size: number;
41
- sha256: string;
42
- modifiedAt: string;
43
- role: 'payload' | 'provenance';
44
- }>[];
45
- protectedTags: string[];
46
- };
@@ -1,94 +0,0 @@
1
- import { feedAssetKey, parseFeedRelease, parseReleaseFeed, parseReleaseLedger } from "../updates/release-feed.js";
2
- import { versionLessThan } from "../updates/release-version.js";
3
- // src/release/retention-dry-run.ts
4
- var DAY = 864e5;
5
- var channels = [
6
- "dev",
7
- "daily",
8
- "stable"
9
- ];
10
- function time(value) {
11
- const parsed = Date.parse(value);
12
- if (!Number.isFinite(parsed) || new Date(parsed).toISOString().replace(".000Z", "Z") !== value.replace(".000Z", "Z")) throw new Error("Invalid retention timestamp");
13
- return parsed;
14
- }
15
- /** Advisory only: returned object identities are not a deletion authorization. */
16
- function planRetentionDryRun(input) {
17
- if (input.complete !== true) throw new Error("Incomplete retention evidence");
18
- const feed = parseReleaseFeed(input.feed);
19
- const ledger = parseReleaseLedger(input.ledger, feed.app);
20
- const now = time(input.now);
21
- if (!Number.isSafeInteger(input.discoveryGraceMs) || input.discoveryGraceMs < DAY || input.discoveryGraceMs > 7 * DAY) throw new Error("Invalid discovery grace");
22
- const releases = new Map(input.releases.map((value) => {
23
- const release = parseFeedRelease(value);
24
- return [release.tag, release];
25
- }));
26
- if (releases.size !== input.releases.length || releases.size !== ledger.releases.length) throw new Error("Release inventory does not match ledger");
27
- const protectedTags = /* @__PURE__ */ new Set();
28
- for (const key of [
29
- "rollback",
30
- "qualification",
31
- "promotion",
32
- "inFlight"
33
- ]) {
34
- const list = input.protectedTags?.[key];
35
- if (!Array.isArray(list)) throw new Error("Incomplete protection references");
36
- for (const tag of list) protectedTags.add(tag);
37
- }
38
- for (const channel of channels) {
39
- if (!Object.hasOwn(input.pointers, channel)) throw new Error("Missing channel pointer");
40
- const value = input.pointers[channel];
41
- const kinds = channel === "dev" ? ["dev"] : channel === "stable" ? ["stable"] : ["daily", "stable"];
42
- if (value === null) {
43
- if (ledger.releases.some((entry) => kinds.includes(entry.kind))) throw new Error("Missing active channel");
44
- continue;
45
- }
46
- const pointer = parseFeedRelease(value);
47
- const newest = ledger.releases.filter((item) => kinds.includes(item.kind)).reduce((best, item) => !best || versionLessThan(best.tag, item.tag) ? item : best, void 0);
48
- const release = releases.get(pointer.tag);
49
- const entry = ledger.releases.find((item) => item.tag === pointer.tag);
50
- if (!release || !entry || newest?.tag !== pointer.tag || pointer.channel !== channel || !kinds.includes(entry.kind) || pointer.publishedAt !== release.publishedAt || JSON.stringify(pointer.assets) !== JSON.stringify(release.assets) || channel === "stable" && JSON.stringify(pointer.missingPlatforms) !== JSON.stringify(release.missingPlatforms)) throw new Error("Inconsistent channel pointer");
51
- protectedTags.add(pointer.tag);
52
- }
53
- for (const tag of protectedTags) if (!releases.has(tag)) throw new Error("Missing protected release");
54
- const objects = /* @__PURE__ */ new Map();
55
- for (const item of input.objects) {
56
- if (objects.has(item.key) || !["payload", "provenance"].includes(item.role) || typeof item.version !== "string" || !item.version || !Number.isSafeInteger(item.size) || item.size < 1 || !/^[a-f0-9]{64}$/.test(item.sha256) || time(item.modifiedAt) > now) throw new Error("Invalid object identity");
57
- objects.set(item.key, item);
58
- }
59
- const review = [];
60
- let unprotectedDailyCount = 0;
61
- for (const entry of ledger.releases) {
62
- const release = releases.get(entry.tag);
63
- if (!release || release.channel !== entry.kind || release.publishedAt !== entry.publishedAt) throw new Error("Inconsistent release ledger");
64
- if (entry.kind === "dev" || entry.kind === "stable") protectedTags.add(entry.tag);
65
- const releaseTime = Math.max(time(entry.publishedAt), entry.promotedAt ? time(entry.promotedAt) : 0);
66
- if (releaseTime > now) throw new Error("Future release");
67
- const releaseObjects = [];
68
- for (const asset of release.assets) {
69
- const key = feedAssetKey(feed, entry.tag, asset.name);
70
- const item = objects.get(key);
71
- if (!item || item.size !== asset.size || item.sha256 !== asset.sha256) throw new Error("Missing or inconsistent asset identity");
72
- objects.delete(key);
73
- releaseObjects.push(item);
74
- }
75
- if (!protectedTags.has(entry.tag)) {
76
- unprotectedDailyCount++;
77
- const lastChange = Math.max(releaseTime, ...releaseObjects.map((item) => time(item.modifiedAt)));
78
- if (!input.lastExposedAt || !Object.hasOwn(input.lastExposedAt, entry.tag)) throw new Error("Missing last-exposure evidence");
79
- const exposure = input.lastExposedAt[entry.tag];
80
- if (typeof exposure !== "string") throw new Error("Missing last-exposure evidence");
81
- const lastExposed = time(exposure);
82
- if (lastExposed < releaseTime || lastExposed > now) throw new Error("Invalid last-exposure evidence");
83
- const age = now - lastChange;
84
- if (age >= input.discoveryGraceMs && now - lastExposed >= input.discoveryGraceMs && (age >= 7 * DAY || unprotectedDailyCount > 20)) review.push(...releaseObjects.filter((item) => item.role === "payload").map((item) => ({ ...item })));
85
- }
86
- }
87
- if (objects.size) throw new Error("Unaccounted release asset");
88
- return {
89
- mode: "advisory-only",
90
- review,
91
- protectedTags: [...protectedTags].toSorted()
92
- };
93
- }
94
- export { planRetentionDryRun };
@@ -1,3 +0,0 @@
1
- import { renameExclusive } from '../native/exclusive-rename';
2
- /** Rename an updater payload without replacing an existing destination. */
3
- export declare const renameUpdateExclusive: typeof renameExclusive;
@@ -1,5 +0,0 @@
1
- import { renameExclusive } from "../native/exclusive-rename.js";
2
- // src/updates/update-exclusive-rename.ts
3
- /** Rename an updater payload without replacing an existing destination. */
4
- var renameUpdateExclusive = renameExclusive;
5
- export { renameUpdateExclusive };