@crossworks/client-types 0.232.225 → 0.232.230

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/client-types",
3
- "version": "0.232.225",
3
+ "version": "0.232.230",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/dto/agents.ts CHANGED
@@ -52,6 +52,10 @@ export interface AgentMemoryConfigDTO {
52
52
  chunk_limit?: number;
53
53
  inject_journal?: boolean;
54
54
  inject_working_notes?: boolean;
55
+ journal_tiers?: 'off' | 'shadow' | 'live';
56
+ journal_relevance_min?: number;
57
+ journal_relevant_chars?: number;
58
+ notes_target?: 'persona' | 'journal';
55
59
  summarize_threshold?: number;
56
60
  summarize_batch?: number;
57
61
  extract_types?: string[];
package/src/dto/rows.ts CHANGED
@@ -715,6 +715,58 @@ export type ContextSnapshot = {
715
715
  ms: number;
716
716
  cached: boolean;
717
717
  };
718
+ /** The decider's `history_recall` use, when it ran on this turn: every
719
+ * exchange older than history_limit (up to 50 messages back) with its
720
+ * score. `shadow`: `wouldAdd` says how many WOULD have rejoined the
721
+ * history; `live`: they did, before the recent part. */
722
+ historyRecall?: {
723
+ mode: 'shadow' | 'live';
724
+ threshold: number;
725
+ /** `back` = messages back from the newest; `score` null = unscored. */
726
+ exchanges: Array<{ back: number; score: number | null; chars: number }>;
727
+ wouldAdd: number;
728
+ chars: number;
729
+ calls: number;
730
+ failed: number;
731
+ ms: number;
732
+ cached: boolean;
733
+ };
734
+ /** Journal tiers 2 and 3 (memory_config.journal_tiers), when the lookup
735
+ * ran. `shadow`: what WOULD have joined the prompt; `live`: what did.
736
+ * Absent when the tiers are off, both lanes are off, or no embedding. */
737
+ journal?: {
738
+ mode: 'shadow' | 'live';
739
+ cutoff: number;
740
+ /** Set when the lookup was skipped on purpose (greetings, thanks). */
741
+ skipped: 'small_talk' | null;
742
+ picked: Array<{
743
+ nodeId: string;
744
+ kind: string;
745
+ similarity: number;
746
+ chars: number;
747
+ passage: boolean;
748
+ }>;
749
+ gap: { nodeId: string; similarity: number } | null;
750
+ nearMisses: Array<{ nodeId: string; kind: string; similarity: number }>;
751
+ chars: number;
752
+ /** Facts and passages the block made redundant (dropped in `live`). */
753
+ dedupe: { facts: number; chunkHits: number };
754
+ /** The decider's `journal_recall` use, when it ran: Jev's scores over
755
+ * the agent-lane rules. `shadow`: `picked` is what Jev WOULD send in
756
+ * place of the similarity pick; `live`: it did. */
757
+ recall?: {
758
+ mode: 'shadow' | 'live';
759
+ threshold: number;
760
+ /** Rules loaded / rules Jev answered for. */
761
+ rules: number;
762
+ scored: number;
763
+ picked: Array<{ nodeId: string; score: number; chars: number }>;
764
+ calls: number;
765
+ failed: number;
766
+ ms: number;
767
+ cached: boolean;
768
+ };
769
+ };
718
770
  };
719
771
 
720
772
  export type BackupFrequency = 'daily' | 'weekly';