fix: update spike-orchestrator docs and exclude type-only exports from structural regex

Co-Authored-By: mantra <mantra@stack-auth.com>
This commit is contained in:
Devin AI 2026-06-25 22:03:04 +00:00
parent 0f743f93ff
commit 16a5fb763e
2 changed files with 5 additions and 3 deletions

View File

@ -6,8 +6,8 @@
* snapshot if STACK_CONFIG_AGENT_BASE_SNAPSHOT_ID is set, else cold-install the
* agent SDK), clone the repo, agent edits the config, COMMIT + PUSH to the branch.
*
* WARNING: this pushes a commit to `main` of the target repo. Point it at a
* throwaway repo (default: hexclave/stackframe-website-2026).
* WARNING: this pushes a commit to the target repo. Point SPIKE_OWNER,
* SPIKE_REPO, and SPIKE_BRANCH at a throwaway repo/branch.
*
* Run from apps/backend:
* pnpm dlx dotenv-cli -e .env.development.local -e .env.development -- \

View File

@ -190,7 +190,9 @@ function configFileExportsConfig(content: string, configFilePath: string): boole
// packages). For the structural sanity check we only need to know a runtime
// `config` binding still exists after the agent edited the file. Covers
// `export const config`, `export let config`, `export { config }`, etc.
return /\bexport\s+(?:const|let|var)\s+config\b/.test(content) || /\bexport\s*\{[^}]*\bconfig\b/.test(content);
// Excludes type-only exports (`export { type config }`) which have no
// runtime binding.
return /\bexport\s+(?:const|let|var)\s+config\b/.test(content) || /\bexport\s*\{[^}]*(?<!\btype\s)\bconfig\b/.test(content);
}
}