fromFlatSignals function exported ✓ 100.0%

Last updated: 2026-02-24T21:07:57.585Z

Metrics

LOC: 7 Complexity: 2 Params: 1 Coverage: 100.0% (1/1 lines, 4841x executed)

Signature

fromFlatSignals(signals: string): : StructuredSignals

Summary

Wraps a flat signal string into a {@link StructuredSignals} with only primary tokens.

Source Code

export function fromFlatSignals(signals: string): StructuredSignals {
  return {
    primary: signals ? [signals] : [],
    secondary: [],
    structural: [],
  };
}

No outgoing dependencies.

Impact (Incoming)

graph LR fromFlatSignals["fromFlatSignals"] TrainingProgress["TrainingProgress"] buildKeywordsFromDictionary["buildKeywordsFromDictionary"] PretrainedState["PretrainedState"] TrainingProgress -->|uses| fromFlatSignals buildKeywordsFromDictionary -->|uses| fromFlatSignals PretrainedState -->|uses| fromFlatSignals style fromFlatSignals fill:#dbeafe,stroke:#2563eb,stroke-width:2px click fromFlatSignals "de70361bba9181a6.html" click TrainingProgress "d4b62d289bd259d5.html" click buildKeywordsFromDictionary "dfb7d9bfef2aba38.html" click PretrainedState "5cefc72e50bf5399.html"