agenr 3.1.0 → 3.3.0

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.
@@ -334,54 +334,6 @@ interface Procedure extends ProcedureDefinition, ProcedureLifecycleMetadata {
334
334
  source_file?: string;
335
335
  embedding?: number[];
336
336
  }
337
- /**
338
- * Normalized transcript message emitted by transcript adapters.
339
- */
340
- interface TranscriptMessage {
341
- index: number;
342
- role: "user" | "assistant";
343
- text: string;
344
- timestamp?: string;
345
- }
346
- /**
347
- * Session-level metadata derived while parsing a transcript file.
348
- */
349
- interface SessionTranscriptMetadata {
350
- sessionId?: string;
351
- startedAt?: string;
352
- endedAt?: string;
353
- messageCount: number;
354
- transcriptHash: string;
355
- }
356
- /**
357
- * Parsed transcript metadata exposed to transcript consumers.
358
- */
359
- interface ParsedTranscriptMetadata extends SessionTranscriptMetadata {
360
- sessionLabel?: string;
361
- modelsUsed?: string[];
362
- /** Best-effort surface reconstructed from transcript content. */
363
- reconstructedSurface?: string | null;
364
- /** Provenance for the reconstructed surface value. */
365
- surfaceReconstructionSource?: "reconstructed" | "none";
366
- /** Stable source identity derived by the transcript adapter when available. */
367
- sourceIdentity?: string;
368
- /** Adapter-specific kind describing the stable source identity. */
369
- sourceIdentityKind?: string;
370
- /** Best-effort working-directory or workspace path for the session. */
371
- workingDirectory?: string;
372
- /** Explicit user identifier carried by the transcript source when available. */
373
- userId?: string;
374
- /** Explicit project identifier carried by the transcript source when available. */
375
- project?: string;
376
- }
377
- /**
378
- * Parsed transcript with normalized messages and source metadata.
379
- */
380
- interface ParsedTranscript {
381
- messages: TranscriptMessage[];
382
- metadata: ParsedTranscriptMetadata;
383
- warnings: string[];
384
- }
385
337
 
386
338
  /**
387
339
  * Aggregate active corpus counts for one entity prefix.
@@ -912,14 +864,17 @@ interface CrossEncoderPort {
912
864
  */
913
865
  rank(query: string, passages: readonly CrossEncoderPassage[]): Promise<CrossEncoderScore[]>;
914
866
  }
867
+
868
+ /**
869
+ * Runtime slot-policy classes used by claim-centric read surfaces.
870
+ */
871
+ type ClaimSlotPolicy = "exclusive" | "multivalued";
915
872
  /**
916
- * Transcript source contract for parsing external session files into core types.
873
+ * Data-driven slot-policy overrides keyed by canonical claim-key attribute head.
917
874
  */
918
- interface TranscriptPort {
919
- /** Parse a raw session file into a structured transcript. */
920
- parseFile(filePath: string, options?: {
921
- verbose?: boolean;
922
- }): Promise<ParsedTranscript>;
875
+ interface ClaimSlotPolicyConfig {
876
+ /** Optional attribute-head policy overrides such as `integration -> exclusive`. */
877
+ attributeHeads?: Readonly<Record<string, ClaimSlotPolicy>>;
923
878
  }
924
879
 
925
- export { type CrossEncoderPort as C, DEFAULT_NEIGHBORHOOD_BUDGET as D, type EntryType as E, type FtsCandidate as F, type LlmPort as L, type NeighborhoodFamily as N, type ParsedTranscript as P, type RecallInput as R, type SeededRerankCandidate as S, type TranscriptPort as T, type VectorCandidate as V, type Expiry as a, type RecallPorts as b, type RecallOutput as c, DEFAULT_SEEDED_RERANK_WEIGHT as d, DEFAULT_STRONG_SEED_SCORE_GAP as e, DEFAULT_STRONG_SEED_TOP_N as f, type EntityAttributeKind as g, type EntityAttributeQueryShape as h, type EntryFilters as i, type EntryNeighborhoodRequest as j, type RecallCandidateEntry as k, type RecallRankingProfile as l, type SeededRerankOptions as m, selectStrongSeeds as n, sharesEntryLineage as o, sharesEpisodeLineage as p, sharesProcedureLineage as q, type ProcedureDatabasePort as r, seededRerank as s, type Entry as t, type DatabasePort as u, type EpisodeDatabasePort as v, type EmbeddingPort as w };
880
+ export { type ClaimSlotPolicyConfig as C, DEFAULT_NEIGHBORHOOD_BUDGET as D, type EntryType as E, type FtsCandidate as F, type LlmPort as L, type NeighborhoodFamily as N, type ProcedureDatabasePort as P, type RecallInput as R, type SeededRerankCandidate as S, type VectorCandidate as V, type CrossEncoderPort as a, type Expiry as b, type RecallPorts as c, type RecallOutput as d, DEFAULT_SEEDED_RERANK_WEIGHT as e, DEFAULT_STRONG_SEED_SCORE_GAP as f, DEFAULT_STRONG_SEED_TOP_N as g, type EntityAttributeKind as h, type EntityAttributeQueryShape as i, type EntryFilters as j, type EntryNeighborhoodRequest as k, type RecallCandidateEntry as l, type RecallRankingProfile as m, type SeededRerankOptions as n, selectStrongSeeds as o, sharesEntryLineage as p, sharesEpisodeLineage as q, sharesProcedureLineage as r, seededRerank as s, type Entry as t, type ClaimSlotPolicy as u, type DatabasePort as v, type EpisodeDatabasePort as w, type EmbeddingPort as x };