Skip to content

Interface: ImportMetadata

Makaio Framework


Makaio Framework / ai-adapters-core / ImportMetadata

Defined in: ../../../adapters/core/src/log-importer/types.ts:87

Provenance metadata for imported events.

Added to event payloads under _import key to distinguish imported events from live events and preserve original context.

This metadata enables:

  • Filtering imported vs live events in queries
  • Accurate timeline reconstruction with original timestamps
  • Debugging import issues by tracing back to source files

NormalizedEvent - Events containing this metadata

optional originalTimestamp?: string

Defined in: ../../../adapters/core/src/log-importer/types.ts:95

Original timestamp from the external tool’s log record (ISO 8601)


source: "external"

Defined in: ../../../adapters/core/src/log-importer/types.ts:89

Always ‘external’ to indicate imported (not live) event


streaming: false

Defined in: ../../../adapters/core/src/log-importer/types.ts:98

Always false for imported events (they are replayed, not streamed)


tool: ExternalToolIdentifier

Defined in: ../../../adapters/core/src/log-importer/types.ts:92

Adapter name that produced the original log (e.g., ‘claude-code-cli’)