On this page
Overview
Normalizes memory content and detects meaningful stored memory.
- Artifact
MemoryRecords.js· esm - Classification
public first party - Availability
Cross-host - Normalization
Fully normalized string/boolean results.
Import and lifecycle
import * as module from '/arcane/modules/MemoryRecords.js';
Pure normalization; unwraps at most three JSON-string layers and never mutates input.
Application-facing behavior: normalizeMemoryContent(), hasMemoryContent().
Protocol and host implementation
In-process only This detail does not widen the application-facing API or grant authority.
Exports, signatures, parameters, and results
| Binding | Form | Declaration or signature | Parameter syntax |
|---|---|---|---|
hasMemoryContent | function | function hasMemoryContent(memory={}) | memory={} |
normalizeMemoryContent | function | function normalizeMemoryContent(content='') | content='' |
| Callable | Kind | Exact public signature | Parameter syntax |
|---|---|---|---|
normalizeMemoryContent | exported-function | function normalizeMemoryContent(content='') | content='' |
hasMemoryContent | exported-function | function hasMemoryContent(memory={}) | memory={} |
Parameter meanings and results
normalizeMemoryContent(content='') returns a trimmed string or ''. hasMemoryContent(memory object|string|array) returns whether a string entry or record.memory contains meaningful normalized content.
Events, side effects, and errors
Source-literal CustomEvent dispatches
No source-literal CustomEvent dispatch is part of this artifact.
Lifecycle and event flow
This artifact has no additional documented lifecycle event flow.
Direct coded failures
This artifact directly assigns no stable coded failure.
Exported Error subclasses
This artifact exports no Error subclass.
Documented failure behavior
No additional module-specific rejection behavior is documented.
Availability and capabilities
Cross-host. Fully normalized string/boolean results.
None.
Contract example
import {normalizeMemoryContent,hasMemoryContent} from '/arcane/modules/MemoryRecords.js';
console.log(
normalizeMemoryContent('"remember this"'),
hasMemoryContent({memory:'remember this'})
);
Related reference
No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.