Skip to content

Commit be7ded8

Browse files
committed
feat(memory): re-export typed-network primitives from memory barrel
Consumers can now import from '@framers/agentos/memory' directly: import { TypedNetworkStore, TypedNetworkObserver } from '@framers/agentos/memory'; The deep subpath '@framers/agentos/memory/retrieval/typed-network' still works (kept the package.json exports entry) but TS-bundler module resolution has cosmetic narrowing quirks for downstream tsconfigs that import via the deep subpath. Top-level re-export is the cleaner default.
1 parent b5da210 commit be7ded8

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

src/memory/index.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,3 +423,44 @@ export type {
423423
FactSupersessionInput,
424424
FactSupersessionResult,
425425
} from './retrieval/fact-supersession/index.js';
426+
427+
// Stage E: Hindsight 4-network typed observer module. Re-exported here so
428+
// consumers can `import { TypedNetworkStore } from '@framers/agentos/memory'`
429+
// instead of going through the deep subpath (which has TS-bundler resolution
430+
// quirks for downstream tsconfigs in some configurations).
431+
export {
432+
BANK_IDS,
433+
EDGE_KINDS,
434+
isBankId,
435+
TypedNetworkStore,
436+
TypedNetworkObserver,
437+
TypedSpreadingActivation,
438+
TypedNetworkRetriever,
439+
rankByTemporalOverlap,
440+
fourWayRrf,
441+
TYPED_EXTRACTION_SYSTEM_PROMPT,
442+
buildExtractionUserPrompt,
443+
TypedExtractionSchema,
444+
TypedExtractionFactSchema,
445+
DEFAULT_EDGE_MULTIPLIERS,
446+
extractQueryEntities,
447+
typedFactToScoredTrace,
448+
} from './retrieval/typed-network/index.js';
449+
export type {
450+
BankId,
451+
EdgeKind,
452+
TypedFact,
453+
TypedEdge,
454+
FactTemporal,
455+
Participant,
456+
ITypedExtractionLLM,
457+
TypedNetworkObserverOptions,
458+
TypedSpreadingActivationOptions,
459+
SpreadOptions,
460+
FourWayRrfInput,
461+
FourWayRrfOptions,
462+
TypedExtractionOutput,
463+
TypedExtractionFact,
464+
TypedNetworkRetrieverOptions,
465+
TypedNetworkRetrieveOptions,
466+
} from './retrieval/typed-network/index.js';

0 commit comments

Comments
 (0)