Add premium My Case MVP

This commit is contained in:
2026-05-23 10:17:34 +02:00
parent e0aeefc73e
commit 83fc71414f
33 changed files with 1275 additions and 148 deletions
+1
View File
@@ -391,6 +391,7 @@
language: lang,
controls: getControls(),
advocate_role: advocateRole,
use_my_case: (typeof window.dbnGetUseMyCase === 'function') ? window.dbnGetUseMyCase() : false,
};
if (branchContext) {
payload.prior_context = branchContext;
+1
View File
@@ -408,6 +408,7 @@
slices,
controls: getControls(),
additional_notes: additionalNotes,
use_my_case: (typeof window.dbnGetUseMyCase === 'function') ? window.dbnGetUseMyCase() : false,
};
if (branchContext) {
+4 -1
View File
@@ -202,7 +202,10 @@
const stepState = STEP_LABELS.map((label) => ({ label, detail: 'Queued', status: 'idle' }));
renderTrace(stepState);
const payload = { engine, language: lang, slices };
const payload = {
engine, language: lang, slices,
use_my_case: (typeof window.dbnGetUseMyCase === 'function') ? window.dbnGetUseMyCase() : false,
};
const form = new FormData();
form.append('payload', JSON.stringify(payload));
form.append('file_a', fileA);
+1
View File
@@ -274,6 +274,7 @@
goal: els.goal.value.trim(),
clarifications: pendingClarifications,
force_draft: !!forceDraft,
use_my_case: (typeof window.dbnGetUseMyCase === 'function') ? window.dbnGetUseMyCase() : false,
};
}
+1
View File
@@ -1103,6 +1103,7 @@ async function runTool(event) {
payload.include_relative = currentIncludeRelative();
payload.include_background = currentIncludeBackground();
payload.user_notes = (document.getElementById('timelineNotes')?.value || '').trim();
payload.use_my_case = (typeof window.dbnGetUseMyCase === 'function') ? window.dbnGetUseMyCase() : false;
}
setBusy(true);