@atolis-hq/wake 0.4.20 → 0.4.21
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.
|
@@ -232,16 +232,26 @@ function createSystemApplications(root, now) {
|
|
|
232
232
|
provider: instance.provider,
|
|
233
233
|
...check,
|
|
234
234
|
})));
|
|
235
|
+
const failedAdapters = (root.providerFailures ?? []).map((failure) => ({
|
|
236
|
+
adapter: failure.adapter,
|
|
237
|
+
provider: failure.provider,
|
|
238
|
+
scope: 'configuration',
|
|
239
|
+
channel: 'initialization',
|
|
240
|
+
status: 'degraded',
|
|
241
|
+
detail: sanitizeHealthErrorText(failure.error, maximumHealthErrorMessageLength),
|
|
242
|
+
successCount: 0,
|
|
243
|
+
failureCount: 1,
|
|
244
|
+
}));
|
|
235
245
|
return {
|
|
236
246
|
data: {
|
|
237
247
|
status: checks.some((check) => check.status === 'degraded') ||
|
|
238
|
-
adapters.some((check) => check.status === 'degraded')
|
|
248
|
+
[...adapters, ...failedAdapters].some((check) => check.status === 'degraded')
|
|
239
249
|
? 'degraded'
|
|
240
250
|
: 'ok',
|
|
241
251
|
version: wakeVersion,
|
|
242
252
|
checkedAt,
|
|
243
253
|
checks,
|
|
244
|
-
adapters,
|
|
254
|
+
adapters: [...adapters, ...failedAdapters],
|
|
245
255
|
},
|
|
246
256
|
meta: sampledMeta(checkedAt),
|
|
247
257
|
};
|
|
@@ -127,7 +127,10 @@ async function withLeaseLock(path, operation) {
|
|
|
127
127
|
while (true) {
|
|
128
128
|
let lock;
|
|
129
129
|
try {
|
|
130
|
-
lock = await acquireFileLock(lockPath, {
|
|
130
|
+
lock = await acquireFileLock(lockPath, {
|
|
131
|
+
staleAfterMs: 60_000,
|
|
132
|
+
staleRequiresDeadProcess: true,
|
|
133
|
+
});
|
|
131
134
|
}
|
|
132
135
|
catch (error) {
|
|
133
136
|
if (error.code !== 'EPERM')
|
|
@@ -124,6 +124,6 @@ export function resolveWakeVersion(options = {}) {
|
|
|
124
124
|
return `g${headHash.slice(0, 7)}`;
|
|
125
125
|
return '0.1.0-dev';
|
|
126
126
|
}
|
|
127
|
-
export const wakeVersion = "v0.4.
|
|
127
|
+
export const wakeVersion = "v0.4.21";
|
|
128
128
|
/** The registry-installable version used by packaged sandbox images. */
|
|
129
129
|
export const wakePackageVersion = packageVersion(defaultRepoRoot) ?? wakeVersion;
|