@adea-ai/app-framework 0.36.1 → 0.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/appearance/appearance-host.js +2 -1
- package/dist/appearance/custom-theme-import.js +3 -1
- package/dist/appearance/custom-theme-library.d.ts +6 -185
- package/dist/appearance/custom-theme-library.js +3 -621
- package/dist/appearance/theme-library-mutation.d.ts +42 -0
- package/dist/appearance/theme-library-mutation.js +172 -0
- package/dist/appearance/theme-library-schema.d.ts +108 -0
- package/dist/appearance/theme-library-schema.js +189 -0
- package/dist/appearance/theme-library-store.d.ts +61 -0
- package/dist/appearance/theme-library-store.js +268 -0
- package/dist/appearance/theme-record-adapter.js +3 -1
- package/dist/appearance/theme-registry.js +2 -1
- package/dist/appearance/window-surface.d.ts +19 -0
- package/dist/appearance/window-surface.js +68 -1
- package/dist/cli/update-helper-cli.js +1 -1
- package/dist/cli/windows-installer-build-cli.d.ts +2 -0
- package/dist/cli/windows-installer-build-cli.js +14 -0
- package/dist/desktop/desktop-client.d.ts +1 -1
- package/dist/framework-source.json +1 -1
- package/dist/installer/installed-payload.js +2 -2
- package/dist/installer/{installer-archive.js → installer-archive-members.js} +2 -2
- package/dist/installer/installer-extraction.js +2 -2
- package/dist/installer/installer-fetch-guard.d.ts +1 -1
- package/dist/installer/installer-identity.js +2 -2
- package/dist/installer/installer-observation.d.ts +1 -1
- package/dist/installer/installer-observation.js +2 -2
- package/dist/installer/installer-upgrade-command.d.ts +2 -2
- package/dist/installer/installer-upgrade-command.js +5 -5
- package/dist/installer/linux-process-group.js +1 -1
- package/dist/installer/upgrade-asset-download.d.ts +1 -1
- package/dist/installer/upgrade-asset-download.js +2 -2
- package/dist/native/installer-archive.d.ts +42 -0
- package/dist/native/installer-archive.js +172 -0
- package/dist/native/posix-tree-removal.d.ts +1 -1
- package/dist/native/window-surface-store.d.ts +16 -0
- package/dist/native/window-surface-store.js +69 -0
- package/dist/native/windows-extractor-build.d.ts +95 -0
- package/dist/native/windows-extractor-build.js +326 -0
- package/dist/release/feed-release-cut.d.ts +1 -1
- package/dist/release/feed-state.d.ts +2 -2
- package/dist/release/feed-state.js +3 -3
- package/dist/release/github-release-cut.js +1 -1
- package/dist/release/github-release-promotion.js +1 -1
- package/dist/release/github-release-publisher.js +1 -1
- package/dist/release/github-release-qualification.js +1 -1
- package/dist/release/local-release.d.ts +2 -2
- package/dist/release/local-release.js +3 -3
- package/dist/release/release-artifact.d.ts +1 -1
- package/dist/release/release-artifact.js +2 -2
- package/dist/release/release-assets-plan.js +1 -1
- package/dist/release/release-config.d.ts +1 -1
- package/dist/release/release-config.js +1 -1
- package/dist/release/release-descriptor-staging.js +3 -3
- package/dist/release/release-finalize.js +1 -1
- package/dist/release/release-promotion.js +1 -1
- package/dist/release/release-publication.d.ts +1 -1
- package/dist/release/release-publication.js +2 -2
- package/dist/release/release-publish-command.js +2 -2
- package/dist/update-helper.bundle.js +18 -18
- package/dist/updates/channel-update-manager.d.ts +3 -3
- package/dist/updates/channel-update-manager.js +2 -2
- package/dist/updates/desktop-updater.d.ts +10 -83
- package/dist/updates/desktop-updater.js +14 -217
- package/dist/updates/{packaged-release-config.js → feed/packaged-release-config.js} +5 -5
- package/dist/updates/{release-feed.js → feed/release-feed.js} +2 -2
- package/dist/updates/{release-location.js → feed/release-location.js} +2 -2
- package/dist/updates/{release-version.js → feed/release-version.js} +1 -1
- package/dist/updates/{signed-release.js → feed/signed-release.js} +2 -2
- package/dist/updates/{update-discovery.js → feed/update-discovery.js} +1 -1
- package/dist/updates/helper/launch-gate-recovery.d.ts +8 -0
- package/dist/updates/{update-resume.js → helper/launch-gate-recovery.js} +13 -423
- package/dist/updates/helper/resume-staging.d.ts +22 -0
- package/dist/updates/helper/resume-staging.js +180 -0
- package/dist/updates/{update-helper.d.ts → helper/update-helper.d.ts} +1 -1
- package/dist/updates/{update-helper.js → helper/update-helper.js} +9 -9
- package/dist/updates/{update-resume.d.ts → helper/update-resume.d.ts} +4 -10
- package/dist/updates/helper/update-resume.js +252 -0
- package/dist/updates/{update-shutdown.js → helper/update-shutdown.js} +2 -2
- package/dist/updates/{update-arm.d.ts → install/update-arm.d.ts} +2 -2
- package/dist/updates/{update-arm.js → install/update-arm.js} +9 -9
- package/dist/updates/{update-download-cleanup.d.ts → install/update-download-cleanup.d.ts} +1 -1
- package/dist/updates/{update-download-cleanup.js → install/update-download-cleanup.js} +3 -3
- package/dist/updates/{update-download.d.ts → install/update-download.d.ts} +2 -2
- package/dist/updates/{update-download.js → install/update-download.js} +3 -3
- package/dist/updates/{update-extraction.d.ts → install/update-extraction.d.ts} +2 -2
- package/dist/updates/{update-extraction.js → install/update-extraction.js} +6 -6
- package/dist/updates/{update-handoff-plan.d.ts → install/update-handoff-plan.d.ts} +2 -2
- package/dist/updates/{update-handoff-plan.js → install/update-handoff-plan.js} +5 -5
- package/dist/updates/{update-marker.js → install/update-marker.js} +2 -2
- package/dist/updates/{update-swap-stage.d.ts → install/update-swap-stage.d.ts} +2 -2
- package/dist/updates/{update-swap-stage.js → install/update-swap-stage.js} +7 -6
- package/dist/updates/{update-swap.d.ts → install/update-swap.d.ts} +1 -1
- package/dist/updates/{update-swap.js → install/update-swap.js} +5 -5
- package/dist/updates/install-target.d.ts +8 -0
- package/dist/updates/install-target.js +27 -0
- package/dist/updates/{launch-environment.js → launch/launch-environment.js} +1 -1
- package/dist/updates/{packaged-launch-admission.js → launch/packaged-launch-admission.js} +4 -4
- package/dist/updates/{packaged-update-startup.d.ts → launch/packaged-update-startup.d.ts} +3 -3
- package/dist/updates/{packaged-update-startup.js → launch/packaged-update-startup.js} +10 -7
- package/dist/updates/{update-launch-gate.d.ts → launch/update-launch-gate.d.ts} +1 -1
- package/dist/updates/{update-launch-gate.js → launch/update-launch-gate.js} +9 -9
- package/dist/updates/{update-launch.d.ts → launch/update-launch.d.ts} +1 -1
- package/dist/updates/{update-launch.js → launch/update-launch.js} +2 -2
- package/dist/updates/{linux-process-state.js → locks/linux-process-state.js} +1 -1
- package/dist/updates/{native-file-lock.js → locks/native-file-lock.js} +1 -1
- package/dist/updates/{stable-file.js → locks/stable-file.js} +2 -2
- package/dist/updates/{update-download-lock.js → locks/update-download-lock.js} +1 -1
- package/dist/updates/{update-generation-lease.js → locks/update-generation-lease.js} +3 -3
- package/dist/updates/{update-inherited-launch-lease.d.ts → locks/update-inherited-launch-lease.d.ts} +1 -1
- package/dist/updates/{update-inherited-launch-lease.js → locks/update-inherited-launch-lease.js} +2 -2
- package/dist/updates/{update-instance-lease.js → locks/update-instance-lease.js} +2 -2
- package/dist/updates/{update-lock.js → locks/update-lock.js} +2 -2
- package/dist/updates/{update-process-fence.js → locks/update-process-fence.js} +3 -3
- package/dist/updates/{update-process-liveness.js → locks/update-process-liveness.js} +2 -2
- package/dist/updates/retained-client-assets.d.ts +60 -0
- package/dist/updates/retained-client-assets.js +116 -0
- package/dist/updates/retention/retention-cleanup.d.ts +103 -0
- package/dist/updates/retention/retention-cleanup.js +439 -0
- package/dist/updates/retention/retention-prune-progress.d.ts +27 -0
- package/dist/updates/retention/retention-prune-progress.js +203 -0
- package/dist/updates/retention/retirement-inventory.d.ts +93 -0
- package/dist/updates/retention/retirement-inventory.js +373 -0
- package/dist/updates/retention/retirement-records.d.ts +75 -0
- package/dist/updates/retention/retirement-records.js +309 -0
- package/dist/updates/{update-retention-marker.d.ts → retention/update-retention-marker.d.ts} +1 -1
- package/dist/updates/{update-retention-marker.js → retention/update-retention-marker.js} +3 -3
- package/dist/updates/{update-retention-plan.d.ts → retention/update-retention-plan.d.ts} +1 -1
- package/dist/updates/{update-retention-plan.js → retention/update-retention-plan.js} +2 -2
- package/dist/updates/{update-retention-sync.d.ts → retention/update-retention-sync.d.ts} +1 -1
- package/dist/updates/{update-retention-sync.js → retention/update-retention-sync.js} +2 -2
- package/dist/updates/retention/update-retirement.d.ts +26 -0
- package/dist/updates/retention/update-retirement.js +205 -0
- package/dist/updates/update-adapter.js +1 -1
- package/dist/updates/update-channel-store.d.ts +1 -1
- package/dist/updates/update-channel-store.js +2 -2
- package/dist/updates/update-manager.d.ts +4 -4
- package/dist/updates/update-manager.js +5 -5
- package/dist/updates/update-services.d.ts +15 -0
- package/dist/updates/update-services.js +77 -0
- package/dist/updates/update-state-store.d.ts +2 -2
- package/dist/updates/update-state-store.js +2 -2
- package/dist/views/appearance-surface.js +3 -1
- package/package.json +42 -29
- package/src/appearance/custom-theme-library.ts +42 -956
- package/src/appearance/theme-library-mutation.ts +288 -0
- package/src/appearance/theme-library-schema.ts +347 -0
- package/src/appearance/theme-library-store.ts +379 -0
- package/src/appearance/window-surface.ts +91 -5
- package/src/updates/update-adapter.ts +1 -1
- package/templates/application/src/bun/index.ts +15 -0
- package/templates/application/src/web/main.tsx +13 -1
- package/dist/updates/update-retirement.d.ts +0 -205
- package/dist/updates/update-retirement.js +0 -1485
- /package/dist/installer/{installer-archive.d.ts → installer-archive-members.d.ts} +0 -0
- /package/dist/updates/{packaged-release-config.d.ts → feed/packaged-release-config.d.ts} +0 -0
- /package/dist/updates/{release-feed.d.ts → feed/release-feed.d.ts} +0 -0
- /package/dist/updates/{release-location.d.ts → feed/release-location.d.ts} +0 -0
- /package/dist/updates/{release-version.d.ts → feed/release-version.d.ts} +0 -0
- /package/dist/updates/{signed-release.d.ts → feed/signed-release.d.ts} +0 -0
- /package/dist/updates/{update-discovery.d.ts → feed/update-discovery.d.ts} +0 -0
- /package/dist/updates/{update-shutdown.d.ts → helper/update-shutdown.d.ts} +0 -0
- /package/dist/updates/{update-marker.d.ts → install/update-marker.d.ts} +0 -0
- /package/dist/updates/{launch-environment.d.ts → launch/launch-environment.d.ts} +0 -0
- /package/dist/updates/{packaged-launch-admission.d.ts → launch/packaged-launch-admission.d.ts} +0 -0
- /package/dist/updates/{linux-process-state.d.ts → locks/linux-process-state.d.ts} +0 -0
- /package/dist/updates/{native-file-lock.d.ts → locks/native-file-lock.d.ts} +0 -0
- /package/dist/updates/{stable-file.d.ts → locks/stable-file.d.ts} +0 -0
- /package/dist/updates/{update-download-lock.d.ts → locks/update-download-lock.d.ts} +0 -0
- /package/dist/updates/{update-generation-lease.d.ts → locks/update-generation-lease.d.ts} +0 -0
- /package/dist/updates/{update-instance-lease.d.ts → locks/update-instance-lease.d.ts} +0 -0
- /package/dist/updates/{update-lock.d.ts → locks/update-lock.d.ts} +0 -0
- /package/dist/updates/{update-process-fence.d.ts → locks/update-process-fence.d.ts} +0 -0
- /package/dist/updates/{update-process-liveness.d.ts → locks/update-process-liveness.d.ts} +0 -0
- /package/src/updates/{release-version.ts → feed/release-version.ts} +0 -0
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { type ReleaseTrust } from './signed-release';
|
|
2
|
-
import { type RetentionPlan } from './update-retention-plan';
|
|
3
|
-
import { type UpdateRetentionIntent, type UpdateRetentionPublicationResult } from './update-retention-marker';
|
|
4
|
-
import { type UpdateStageState } from './update-state-store';
|
|
5
|
-
import { type UpdateTreeIdentity } from './update-swap';
|
|
6
|
-
export type UpdateHealthAcknowledgement = Readonly<{
|
|
7
|
-
generation: string;
|
|
8
|
-
version: string;
|
|
9
|
-
}>;
|
|
10
|
-
export type UpdateRetentionPruneStep = Readonly<{
|
|
11
|
-
status: 'none' | 'busy' | 'more' | 'pruned' | 'recovery-required';
|
|
12
|
-
removed?: number;
|
|
13
|
-
}>;
|
|
14
|
-
export type UpdateRetentionReconciliationResult = Readonly<{
|
|
15
|
-
status: 'already-clean';
|
|
16
|
-
intent: UpdateRetentionIntent;
|
|
17
|
-
} | {
|
|
18
|
-
status: 'temporary-removed';
|
|
19
|
-
intent: UpdateRetentionIntent;
|
|
20
|
-
temporaryPath: string;
|
|
21
|
-
}>;
|
|
22
|
-
export type UpdateRetentionOrphanPromotionResult = Readonly<{
|
|
23
|
-
status: 'promoted';
|
|
24
|
-
intent: UpdateRetentionIntent;
|
|
25
|
-
temporaryPath: string;
|
|
26
|
-
finalPath: string;
|
|
27
|
-
}>;
|
|
28
|
-
/** A failed promotion may have left the final marker in place; inspect before retrying. */
|
|
29
|
-
export declare class UpdateRetentionOrphanPromotionError extends Error {
|
|
30
|
-
readonly temporaryPath: string;
|
|
31
|
-
readonly finalPath: string;
|
|
32
|
-
readonly publicationState: 'unknown' | 'linked';
|
|
33
|
-
constructor(temporaryPath: string, finalPath: string, publicationState: 'unknown' | 'linked', cause: unknown);
|
|
34
|
-
}
|
|
35
|
-
/** Generation-specific retirement paths, all beside the fixed staging path. */
|
|
36
|
-
export declare function updateRetirementPaths(target: string, generation: string): Readonly<{
|
|
37
|
-
container: string;
|
|
38
|
-
tree: string;
|
|
39
|
-
healthReceipt: string;
|
|
40
|
-
healthTemporaryPrefix: ".healthy-";
|
|
41
|
-
claim: string;
|
|
42
|
-
claimTemporaryPrefix: `${string}.claim-`;
|
|
43
|
-
cleanupMarker: string;
|
|
44
|
-
cleanupMarkerTemporaryPrefix: `.${string}.framework-update-cleanup-`;
|
|
45
|
-
}>;
|
|
46
|
-
export type RetainedUpdateTree = Readonly<{
|
|
47
|
-
generation: string;
|
|
48
|
-
version: string;
|
|
49
|
-
tree: string;
|
|
50
|
-
}>;
|
|
51
|
-
export type RetainedUpdateTrees = Readonly<{
|
|
52
|
-
status: 'none' | 'busy';
|
|
53
|
-
}> | Readonly<{
|
|
54
|
-
status: 'acquired';
|
|
55
|
-
trees: readonly RetainedUpdateTree[];
|
|
56
|
-
release(): Promise<void>;
|
|
57
|
-
}>;
|
|
58
|
-
/**
|
|
59
|
-
* Discover the exact unacknowledged installed generation after staging cleanup.
|
|
60
|
-
* The generation claim is persistent beside the retired tree, so discovery does
|
|
61
|
-
* not depend on a startup return value or log message.
|
|
62
|
-
*/
|
|
63
|
-
export declare function findPendingUpdateHealthAcknowledgement(options: {
|
|
64
|
-
target: string;
|
|
65
|
-
currentVersion: string;
|
|
66
|
-
}): Promise<UpdateHealthAcknowledgement | null>;
|
|
67
|
-
/**
|
|
68
|
-
* Fail closed before publishing a new stage while any retention-prune intent,
|
|
69
|
-
* progress marker, temporary, or unknown prune-shaped artifact is present.
|
|
70
|
-
* Uses the same artifact-name check as strict retention inventory and must be
|
|
71
|
-
* called while the per-install update lock is held. It deliberately does not
|
|
72
|
-
* require unrelated retirement history to be valid before a new stage.
|
|
73
|
-
*/
|
|
74
|
-
export declare function assertNoUpdateRetentionPruneArtifactsWhileLocked(target: string): Promise<void>;
|
|
75
|
-
/**
|
|
76
|
-
* Plan rollback-tree retention from a complete, read-only filesystem inventory.
|
|
77
|
-
* This does not delete or modify retirement records; callers must revalidate
|
|
78
|
-
* ownership and the returned plan before any future cleanup operation.
|
|
79
|
-
*/
|
|
80
|
-
export declare function planValidatedUpdateRetention(options: {
|
|
81
|
-
target: string;
|
|
82
|
-
currentVersion: string;
|
|
83
|
-
}): Promise<RetentionPlan>;
|
|
84
|
-
/**
|
|
85
|
-
* Acquire shared leases on every validated retained generation. Keep the
|
|
86
|
-
* returned leases until all readers and response bodies have finished. A future
|
|
87
|
-
* deletion implementation must hold the update lock and the same generation's
|
|
88
|
-
* exclusive lease while it revalidates and removes that generation.
|
|
89
|
-
*/
|
|
90
|
-
export declare function acquireRetainedUpdateTrees(options: {
|
|
91
|
-
target: string;
|
|
92
|
-
currentVersion: string;
|
|
93
|
-
}): Promise<RetainedUpdateTrees>;
|
|
94
|
-
/**
|
|
95
|
-
* Acquire retained generations while the caller holds the per-install update
|
|
96
|
-
* lock. A staged candidate is accepted only after its caller has run trusted
|
|
97
|
-
* resume validation; this function repeats the stage identity and descriptor
|
|
98
|
-
* checks before permitting the retention inventory.
|
|
99
|
-
*/
|
|
100
|
-
export declare function acquireRetainedUpdateTreesWhileLocked(options: {
|
|
101
|
-
target: string;
|
|
102
|
-
currentVersion: string;
|
|
103
|
-
validatedStagedVersion?: string;
|
|
104
|
-
stagedTrust?: ReleaseTrust;
|
|
105
|
-
}): Promise<RetainedUpdateTrees>;
|
|
106
|
-
/**
|
|
107
|
-
* Inspect one published retention intent against the current install while
|
|
108
|
-
* holding the update lock. This validates recovery data only; it never changes
|
|
109
|
-
* the filesystem or grants deletion authority.
|
|
110
|
-
*/
|
|
111
|
-
export declare function inspectUpdateRetentionCleanup(options: {
|
|
112
|
-
target: string;
|
|
113
|
-
currentVersion: string;
|
|
114
|
-
generation: string;
|
|
115
|
-
}): Promise<UpdateRetentionIntent | null>;
|
|
116
|
-
/**
|
|
117
|
-
* Request synchronization of a freshly validated marker under the update lock.
|
|
118
|
-
* This does not establish hardware-level durability or authorize deletion.
|
|
119
|
-
*/
|
|
120
|
-
export declare function syncValidatedUpdateRetentionCleanup(options: {
|
|
121
|
-
target: string;
|
|
122
|
-
currentVersion: string;
|
|
123
|
-
generation: string;
|
|
124
|
-
}): Promise<UpdateTreeIdentity>;
|
|
125
|
-
/**
|
|
126
|
-
* Promote one publisher temporary left by an interrupted intent publication.
|
|
127
|
-
* Under the update lock this requires exactly one canonical temporary, no
|
|
128
|
-
* final marker, and no other retention artifacts, then validates the bounded
|
|
129
|
-
* file and oldest eligible cleanup plan twice before a no-replace hard link.
|
|
130
|
-
* It leaves both names in place for reconcileUpdateRetentionCleanup. If the
|
|
131
|
-
* link call fails, whether a final name was created is treated as unknown; if
|
|
132
|
-
* post-link validation fails, the link is known to exist. Both failures
|
|
133
|
-
* preserve every path for inspection. This operation makes no power-loss
|
|
134
|
-
* durability claim and never removes a retirement tree or marker.
|
|
135
|
-
*/
|
|
136
|
-
export declare function promoteOrphanUpdateRetentionCleanup(options: {
|
|
137
|
-
target: string;
|
|
138
|
-
currentVersion: string;
|
|
139
|
-
generation: string;
|
|
140
|
-
}): Promise<UpdateRetentionOrphanPromotionResult>;
|
|
141
|
-
/**
|
|
142
|
-
* Reconcile only the publisher's extra hard link after validating the final
|
|
143
|
-
* intent against a fresh retention plan under the update lock. This never
|
|
144
|
-
* deletes a final marker, retirement tree, claim, or receipt, and makes no
|
|
145
|
-
* power-loss durability claim.
|
|
146
|
-
*/
|
|
147
|
-
export declare function reconcileUpdateRetentionCleanup(options: {
|
|
148
|
-
target: string;
|
|
149
|
-
currentVersion: string;
|
|
150
|
-
generation: string;
|
|
151
|
-
}): Promise<UpdateRetentionReconciliationResult>;
|
|
152
|
-
/**
|
|
153
|
-
* Record the oldest eligible cleanup candidate while holding the update lock.
|
|
154
|
-
* This WIP operation does not delete data or grant authority to a later caller.
|
|
155
|
-
* Intent publication is not yet power-loss durable.
|
|
156
|
-
*/
|
|
157
|
-
export declare function beginUpdateRetentionCleanup(options: {
|
|
158
|
-
target: string;
|
|
159
|
-
currentVersion: string;
|
|
160
|
-
}): Promise<Readonly<{
|
|
161
|
-
intent: UpdateRetentionIntent;
|
|
162
|
-
publication: UpdateRetentionPublicationResult;
|
|
163
|
-
}> | null>;
|
|
164
|
-
/**
|
|
165
|
-
* Make one explicit, bounded prune step for an already-published retention
|
|
166
|
-
* intent. Ordinary inventory readers fail closed while this progress record
|
|
167
|
-
* exists. Calls serialize under the install lock, then take the generation's
|
|
168
|
-
* exclusive lease before inspecting or changing its retired tree.
|
|
169
|
-
*
|
|
170
|
-
* This currently supports only the tested macOS ARM64 directory-relative
|
|
171
|
-
* remover. It requests file and directory synchronization before destructive
|
|
172
|
-
* transitions, but those calls do not prove hardware persistence or recovery
|
|
173
|
-
* after power loss. Callers must invoke this explicitly; startup and updater
|
|
174
|
-
* flows do not prune automatically.
|
|
175
|
-
*/
|
|
176
|
-
export declare function pruneUpdateRetentionStep(options: {
|
|
177
|
-
target: string;
|
|
178
|
-
currentVersion: string;
|
|
179
|
-
generation: string;
|
|
180
|
-
maxOperations?: number;
|
|
181
|
-
}): Promise<UpdateRetentionPruneStep>;
|
|
182
|
-
/** Explicitly acknowledge an exact installed generation after app-owned readiness checks. */
|
|
183
|
-
export declare function acknowledgeRetiredUpdateHealthy(options: {
|
|
184
|
-
target: string;
|
|
185
|
-
acknowledgement: UpdateHealthAcknowledgement;
|
|
186
|
-
}): Promise<void>;
|
|
187
|
-
/** Reconcile the exact unlink/rmdir completion boundary while holding the install lock. */
|
|
188
|
-
export declare function reconcileRetirementCleanupMarkerWhileLocked(options: {
|
|
189
|
-
target: string;
|
|
190
|
-
staging: string;
|
|
191
|
-
currentVersion: string;
|
|
192
|
-
}): Promise<'none' | 'updated' | 'recovery-required'>;
|
|
193
|
-
/**
|
|
194
|
-
* Reconcile a completed exchange while the stable per-install lock is held.
|
|
195
|
-
* The old app tree is moved without replacement into a UUID-owned container;
|
|
196
|
-
* it is never modified or deleted here. Atomic rename publication protects
|
|
197
|
-
* against process crashes, but this protocol makes no power-loss claim.
|
|
198
|
-
* Health is recorded only after an explicit host call; app-owned readiness
|
|
199
|
-
* criteria and quarantine retention/cleanup policy remain WIP.
|
|
200
|
-
*/
|
|
201
|
-
export declare function retireCompletedUpdateWhileLocked(options: {
|
|
202
|
-
target: string;
|
|
203
|
-
staging: string;
|
|
204
|
-
state: UpdateStageState;
|
|
205
|
-
}): Promise<boolean>;
|