gestalt-mobile 0.70.0 → 0.70.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/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-BKHQ4DeL.js"></script>
|
|
20
20
|
<link rel="stylesheet" crossorigin href="/assets/index-Bzd358yL.css">
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
|
@@ -38,6 +38,9 @@ export function registerStartSession(app, deps) {
|
|
|
38
38
|
.type('application/problem+json')
|
|
39
39
|
.send(problem(failure.code, failure.status, failure.detail, failure.retryable));
|
|
40
40
|
}
|
|
41
|
+
const knownFailure = error instanceof Error ? sessionStartProblem(error.message) : null;
|
|
42
|
+
if (knownFailure)
|
|
43
|
+
return reply.code(knownFailure.status).type('application/problem+json').send(knownFailure);
|
|
41
44
|
if (error instanceof Error && error.message === 'CODEX_EXECUTOR_MODEL_UNAVAILABLE')
|
|
42
45
|
return reply
|
|
43
46
|
.code(400)
|
|
@@ -70,3 +73,19 @@ export function registerStartSession(app, deps) {
|
|
|
70
73
|
return reply.code(202).send(started);
|
|
71
74
|
});
|
|
72
75
|
}
|
|
76
|
+
/** Public guidance is allowlisted; runtime messages can contain private paths or credentials. */
|
|
77
|
+
function sessionStartProblem(code) {
|
|
78
|
+
switch (code) {
|
|
79
|
+
case 'CODEX_MODEL_UNAVAILABLE':
|
|
80
|
+
case 'KIMI_MODEL_UNAVAILABLE':
|
|
81
|
+
return problem(code, 400, 'The selected model is unavailable. Choose an available model in New session settings and retry.', true);
|
|
82
|
+
case 'WORKSPACE_NOT_FOUND':
|
|
83
|
+
return problem(code, 404, 'The selected workspace is no longer available. Select an existing workspace and retry.', true);
|
|
84
|
+
case 'PROFILE_NOT_FOUND':
|
|
85
|
+
return problem(code, 400, 'The selected launcher profile is unavailable. Refresh New session settings and retry.', true);
|
|
86
|
+
case 'LLM_RUNTIME_UNAVAILABLE':
|
|
87
|
+
return problem(code, 503, 'The selected provider runtime is unavailable. Check the provider installation and authentication, then retry.', true);
|
|
88
|
+
default:
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
}
|