feat(page-data): add validation suggestions, repair path, and thinking fixes
Memind CI / Test, build, and release guards (push) Failing after 3m18s

Map Page Data failure codes to Chinese remediation hints, trigger one-shot
goosed repair for remediable cases, and recover poisoned thinking sessions.
Route local DeepSeek through the no-think proxy via host.docker.internal so
tool rounds no longer hit reasoning_content 400; document gate and case-study
scenarios for event registration repair.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-25 23:01:55 +08:00
parent 6b6f9ed01c
commit 8ccf2db05c
28 changed files with 1652 additions and 154 deletions
+5 -5
View File
@@ -45,8 +45,8 @@ export function resolveDeepseekNoThinkProxyBaseUrl(env = process.env) {
const host = String(
env.MEMIND_DEEPSEEK_NO_THINK_HOST
?? env.MEMIND_GOOSED_HOST_GATEWAY
?? 'host.lima.internal',
).trim() || 'host.lima.internal';
?? 'host.docker.internal',
).trim() || 'host.docker.internal';
const port = resolveDeepseekNoThinkListenPort(env);
return `http://${host}:${port}/v1`;
}
@@ -57,8 +57,8 @@ export function resolveMoonshotCompatProxyBaseUrl(env = process.env) {
const host = String(
env.MEMIND_DEEPSEEK_NO_THINK_HOST
?? env.MEMIND_GOOSED_HOST_GATEWAY
?? 'host.lima.internal',
).trim() || 'host.lima.internal';
?? 'host.docker.internal',
).trim() || 'host.docker.internal';
const port = resolveDeepseekNoThinkListenPort(env);
return `http://${host}:${port}/moonshot/v1`;
}
@@ -98,7 +98,7 @@ export function injectDeepseekThinkingDisabled(body) {
if (!body || typeof body !== 'object' || Array.isArray(body)) {
return { body, injected: false };
}
if (body.thinking && typeof body.thinking === 'object') {
if (body.thinking?.type === 'disabled') {
return { body, injected: false };
}
return {