add customUi.aiFlowInputs to stop the AI from adding flow inputs (#12192)

* feat: add customUi.aiFlowInputs to stop the AI from adding flow inputs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: let test files escape the package root in the packaging guard

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: pin the flow input lock's schema-change check and new-input detection

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-11-04 18:11:00 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 7850bd213d
commit ef36bbac43
12 changed files with 143 additions and 30 deletions
@@ -112,7 +112,13 @@ for (const file of walk(packageDir)) {
return `${prefix}${quote}${relativeSpecifier(file, join(chatSdkDest, 'index.js'))}${quote}`
}
const target = resolve(dirname(file), specifier)
if (target !== packageDir && !target.startsWith(packageDir + sep)) {
// Test files ride along in the output but no consumer imports them, so an escaping
// import there (e.g. `../app.html?raw`) breaks nothing.
if (
target !== packageDir &&
!target.startsWith(packageDir + sep) &&
!/\.test\.js$/.test(file)
) {
unresolvable.push(`${relative(packageDir, file)}: ${specifier}`)
return match
}