defineContext syncs a local folder of markdown/MDX into the workspace’s context repository as code.
Define context
context/context.ts
path is synced on deploy:
.md/.mdx file and it’s picked up automatically; edit one and it re-syncs.
Your code is the source of truth for the files it manages, not for the whole
repo. Delete or rename a file in code and the next deploy removes it from the
repo; files added in the UI, or by anything other than a deploy, are left in
place.
Inline files
Alongside (or instead of) a localpath, pass files to generate context entries in code — each key is a path in the repo, each value its contents. Inline files are merged over anything synced from path, so they can add to or override it:
context/context.ts
defineContext is a singleton.

