defineContext syncs a local folder of markdown/MDX into the workspace’s context repository as code.
Define context
context/context.ts
dir is synced on deploy:
.md/.mdx file and it’s picked up automatically; edit one and it re-syncs.
The sync is additive — files added in the UI are left in place. Your code
is the source of truth for the files it manages, not for the whole repo.
Inline files
Alongside (or instead of) a localdir, 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 dir, so they can add to or override it:
context/context.ts
defineContext is a singleton.

