gestalt-mobile 0.65.0 → 0.65.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/dist/client/assets/index-BPykjYhf.js +128 -0
- package/dist/client/index.html +1 -1
- package/dist/server/server/features/sessions/get-history/endpoint.js +1 -1
- package/dist/server/server/platform/retrieval/xerj-index-diagnostic.js +6 -0
- package/dist/server/server/platform/retrieval/xerj-indexer.js +21 -7
- package/dist/server/shared/contracts/autopilot-recovery.js +5 -2
- package/package.json +1 -1
- package/dist/client/assets/index-BGdM2y_5.js +0 -128
package/dist/client/index.html
CHANGED
|
@@ -16,7 +16,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
16
16
|
<link rel="icon" href="/icons/gestalt-mobile-192.png" />
|
|
17
17
|
<link rel="apple-touch-icon" href="/icons/gestalt-mobile-180.png" />
|
|
18
18
|
<title>Gestalt Mobile</title>
|
|
19
|
-
<script type="module" crossorigin src="/assets/index-
|
|
19
|
+
<script type="module" crossorigin src="/assets/index-BPykjYhf.js"></script>
|
|
20
20
|
<link rel="stylesheet" crossorigin href="/assets/index-tqrTVa26.css">
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
|
@@ -35,7 +35,7 @@ export function registerGetHistory(app, deps) {
|
|
|
35
35
|
type: 'urn:gestalt-mobile:error:session-history-read-failed',
|
|
36
36
|
title: 'Session history read failed',
|
|
37
37
|
status: 502,
|
|
38
|
-
detail: 'GET /api/sessions/:id/history reached the relay, but
|
|
38
|
+
detail: 'GET /api/sessions/:id/history reached the relay, but the provider could not return session history. Retry shortly; reopen the session if this persists.',
|
|
39
39
|
code: 'SESSION_HISTORY_READ_FAILED',
|
|
40
40
|
retryable: true,
|
|
41
41
|
});
|
|
@@ -9,6 +9,9 @@ import { join } from 'node:path';
|
|
|
9
9
|
/** Classify bounded native prose; never retain it or copy arbitrary native fields. */
|
|
10
10
|
export function xerjIndexDiagnostic(message) {
|
|
11
11
|
const text = typeof message === 'string' ? message.slice(0, 16_384) : '';
|
|
12
|
+
const pass = /^watch: pass (\d+) FAILED after (\d+(?:\.\d+)?)s:/.exec(text);
|
|
13
|
+
const number = pass ? Number(pass[1]) : Number.NaN;
|
|
14
|
+
const durationSeconds = pass ? Number(pass[2]) : Number.NaN;
|
|
12
15
|
const code = text.includes('refusing ambiguous assignment')
|
|
13
16
|
? 'ambiguous-assignment'
|
|
14
17
|
: /\b(timeout|timed out)\b/i.test(text)
|
|
@@ -32,6 +35,9 @@ export function xerjIndexDiagnostic(message) {
|
|
|
32
35
|
occurredAt: new Date().toISOString(),
|
|
33
36
|
code,
|
|
34
37
|
messageDigest: text ? createHash('sha256').update(text).digest('hex') : null,
|
|
38
|
+
...(Number.isSafeInteger(number) && Number.isFinite(durationSeconds)
|
|
39
|
+
? { watchPass: { number, durationSeconds } }
|
|
40
|
+
: {}),
|
|
35
41
|
};
|
|
36
42
|
}
|
|
37
43
|
/** One private atomic record per root; repeated warnings cannot grow a log. */
|
|
@@ -218,7 +218,13 @@ export class XerjIndexer {
|
|
|
218
218
|
const percent = typeof event.pct === 'number' && event.pct >= 0 && event.pct <= 100
|
|
219
219
|
? event.pct
|
|
220
220
|
: undefined;
|
|
221
|
-
this.value = {
|
|
221
|
+
this.value = {
|
|
222
|
+
...this.value,
|
|
223
|
+
state: 'indexing',
|
|
224
|
+
phase,
|
|
225
|
+
percent,
|
|
226
|
+
message: 'XERJ indexing is in progress. Index coverage is unverified until this pass succeeds.',
|
|
227
|
+
};
|
|
222
228
|
}
|
|
223
229
|
else if (event.event === 'done') {
|
|
224
230
|
if (event.ok !== true) {
|
|
@@ -270,17 +276,25 @@ export class XerjIndexer {
|
|
|
270
276
|
reference);
|
|
271
277
|
return;
|
|
272
278
|
}
|
|
273
|
-
if (diagnostic.code === 'watch-pass-failed') {
|
|
274
|
-
this.fail('XERJ index update failed. The watcher is still running and will retry after a source change; existing index coverage is unverified until an update succeeds.' +
|
|
275
|
-
reference);
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
279
|
if (diagnostic.code === 'ambiguous-assignment') {
|
|
279
280
|
this.fail('XERJ incremental dataset assignment failed; the index is stale. See the XERJ recovery guide for this upstream limitation.' +
|
|
280
281
|
reference);
|
|
281
282
|
return;
|
|
282
283
|
}
|
|
283
|
-
|
|
284
|
+
const cause = {
|
|
285
|
+
timeout: 'An indexing operation timed out.',
|
|
286
|
+
authentication: 'The indexing backend rejected authentication or access.',
|
|
287
|
+
connection: 'The indexing backend connection failed.',
|
|
288
|
+
capacity: 'Indexing ran out of memory or disk space.',
|
|
289
|
+
'watch-pass-failed': 'The underlying cause could not be classified.',
|
|
290
|
+
'unknown-warning': 'The warning could not be classified.',
|
|
291
|
+
}[diagnostic.code];
|
|
292
|
+
const pass = diagnostic.watchPass;
|
|
293
|
+
this.fail((pass
|
|
294
|
+
? `XERJ watch pass ${pass.number} failed after ${pass.durationSeconds}s. `
|
|
295
|
+
: 'XERJ indexing reported a warning. ') +
|
|
296
|
+
cause +
|
|
297
|
+
' The watcher is still running and is waiting for a source change to retry; index coverage is unverified until an update succeeds.' +
|
|
284
298
|
reference);
|
|
285
299
|
}
|
|
286
300
|
}
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
/** Safe, shared UI copy for the bounded checkpoint transport recovery path. */
|
|
7
7
|
export const checkpointHandoffRecoveryMessage = 'Checkpoint handoff failed. Autopilot is reconnecting this session automatically. If it cannot recover, restore or reopen the session.';
|
|
8
8
|
/** Reconciliation can fail while the coordinator remains enabled for recovery. */
|
|
9
|
-
export const reconciliationRecoveryMessage = 'Autopilot
|
|
9
|
+
export const reconciliationRecoveryMessage = 'Autopilot is recovering after a continuation or agent status check failed. It will retry automatically. If recovery persists, retry Autopilot or restore the session.';
|
|
10
10
|
export function isReconciliationRecovery(snapshot) {
|
|
11
|
-
return Boolean(snapshot?.enabled &&
|
|
11
|
+
return Boolean(snapshot?.enabled &&
|
|
12
|
+
snapshot.state === 'monitoring' &&
|
|
13
|
+
snapshot.reason === 'reconcileFailed' &&
|
|
14
|
+
snapshot.health?.healthy !== true);
|
|
12
15
|
}
|