πŸ“„ File detail

utils/memory/types.ts

🧩 .tsπŸ“ 13 linesπŸ’Ύ 264 bytesπŸ“ text
← Back to All Files

🎯 Use case

This file lives under β€œutils/”, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, …). On the API surface it exposes MEMORY_TYPE_VALUES and MemoryType β€” mainly types, interfaces, or factory objects. Dependencies touch bun:bundle.

Generated from folder role, exports, dependency roots, and inline comments β€” not hand-reviewed for every path.

🧠 Inline summary

import { feature } from 'bun:bundle' export const MEMORY_TYPE_VALUES = [ 'User', 'Project',

πŸ“€ Exports (heuristic)

  • MEMORY_TYPE_VALUES
  • MemoryType

πŸ“š External import roots

Package roots from from "…" (relative paths omitted).

  • bun:bundle

πŸ–₯️ Source preview

import { feature } from 'bun:bundle'

export const MEMORY_TYPE_VALUES = [
  'User',
  'Project',
  'Local',
  'Managed',
  'AutoMem',
  ...(feature('TEAMMEM') ? (['TeamMem'] as const) : []),
] as const

export type MemoryType = (typeof MEMORY_TYPE_VALUES)[number]