feat(ai-psychosis): promote domain_context to array for multi-domain support
This commit is contained in:
parent
011634583b
commit
a5bc53cb42
6 changed files with 72 additions and 11 deletions
|
|
@ -39,7 +39,11 @@ const escFlags = Number(state.esc_flags) || 0;
|
|||
const fatFlags = Number(state.fatigue_flags) || 0;
|
||||
const valFlags = Number(state.val_flags) || 0;
|
||||
const pushbackCount = Number(state.pushback_count) || 0;
|
||||
const domainContext = state.domain_context || null;
|
||||
// v1.2: domain_context is always written as array. Coerce v1.1.0 string shape.
|
||||
const domainContextRaw = state.domain_context;
|
||||
const domainContextArray = Array.isArray(domainContextRaw)
|
||||
? domainContextRaw
|
||||
: (domainContextRaw ? [domainContextRaw] : []);
|
||||
const startIso = state.start_iso || '';
|
||||
|
||||
// Compute duration
|
||||
|
|
@ -56,7 +60,7 @@ appendJsonl(SESSIONS_LOG, {
|
|||
duration_min: durationMin,
|
||||
tool_count: toolCount,
|
||||
edit_count: editCount,
|
||||
domain_context: domainContext,
|
||||
domain_context: domainContextArray,
|
||||
flags: {
|
||||
dependency: depFlags,
|
||||
escalation: escFlags,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue