Add premium My Case MVP
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -408,6 +408,7 @@
|
||||
slices,
|
||||
controls: getControls(),
|
||||
additional_notes: additionalNotes,
|
||||
use_my_case: (typeof window.dbnGetUseMyCase === 'function') ? window.dbnGetUseMyCase() : false,
|
||||
};
|
||||
|
||||
if (branchContext) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -274,6 +274,7 @@
|
||||
goal: els.goal.value.trim(),
|
||||
clarifications: pendingClarifications,
|
||||
force_draft: !!forceDraft,
|
||||
use_my_case: (typeof window.dbnGetUseMyCase === 'function') ? window.dbnGetUseMyCase() : false,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user