actrone-memory 0.1.2
TypeScriptFramework compatibility fixes, found by type-checking every adapter against the real framework at the oldest and newest release of its supported range, and fact extraction that works on small local models.
Fixed7
- Fact extraction returned nothing on small models. With
qwen2.5:3bon Ollama, extraction came back empty on 12 of 15 real exchanges, because the model read the assistant's reply as part of what to mine. Extraction spec 1.1 frames the conversation, says whose facts to record, asks for a JSON-schema structured output and gives two worked examples (one with facts, one with none). On the same model it found 14 of 14 expected facts and stored nothing for small talk.OpenAIFactExtractorfalls back to JSON mode, for good, only when a server rejects the schema.EXTRACTION_SPEC_VERSIONis now"1.1";EXTRACTION_RESPONSE_SCHEMAandformatExtractionInputare exported for custom extractors. - Passing a real
openaiclient toOpenAIFactExtractorfailed to compile.ChatCompleterLiketyped each message's role as a plainstring, which theopenaiSDK's message types reject, sonew OpenAIFactExtractor(new OpenAI(...))only worked with a cast. The roles are now the literal ones the extractor sends, and a docs example type-checks the real client in CI. npm install actrone-memoryfailed next to current framework releases. The optional peer ranges stopped below the versions most projects now run, and npm refuses such installs (ERESOLVE) rather than warning. For example, a project on the Vercel AI SDK 7 could not install 0.1.1. The ranges now cover the current majors:ai >=5 <8,@mastra/core >=0.10 <2and@voltagent/core >=0.1.14 <3.langgraphMemory().loadMemories()did not type-check as a LangGraph message. Its return type was an interface, which TypeScript does not treat as the index-signature record LangGraph'smessagesStateReduceraccepts. It is now a type alias with the same shape, so it merges intostate.messageswithout a cast.- Floors that pointed at unrelated packages. npm's
genkit1.0.0 to 1.0.3 andagents0.0.1 and 0.0.2 were published by other projects before Firebase and Cloudflare took the names. The floors are nowgenkit >=1.0.4andagents >=0.0.37, the first real releases. - VoltAgent floor.
@voltagent/corebelow 0.1.14 has noinstructionsoption, whichvoltagentMemory().withInstructions()fills. The floor is now 0.1.14. - Mastra and LlamaIndex.TS recipes showed calls that do not exist. Mastra's memory goes in
agent.generate(input, { context: [{ role: 'system', content }] }), and LlamaIndex.TS chat engines take it as the leading message ofchatHistory;chat()has nosystemPromptparameter. The recipes,npx actrone-memory addoutput and adapter docs now show these calls.