Capability first · transport second

MemoryRecords.js

Normalizes memory content and detects meaningful stored memory.

SDK 0.5.18Runtime 0.8.12Protocol arcane/1
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

JavaScript
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

BindingFormDeclaration or signatureParameter syntax
hasMemoryContentfunctionfunction hasMemoryContent(memory={})memory={}
normalizeMemoryContentfunctionfunction normalizeMemoryContent(content='')content=''
CallableKindExact public signatureParameter syntax
normalizeMemoryContentexported-functionfunction normalizeMemoryContent(content='')content=''
hasMemoryContentexported-functionfunction 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

JavaScript
import {normalizeMemoryContent,hasMemoryContent} from '/arcane/modules/MemoryRecords.js';

console.log(
    normalizeMemoryContent('"remember this"'),
    hasMemoryContent({memory:'remember this'})
);

No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.