mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-07 07:55:13 +02:00
Merge pull request #19 from Kaelio/andreybavt/dbt-vertex-no-anthropic
fix(cli): honor configured LLM backends in setup
This commit is contained in:
commit
bb8868f238
6 changed files with 185 additions and 17 deletions
|
|
@ -95,7 +95,7 @@ function scansForContextProductionLlmBoundaries(relativePath) {
|
|||
}
|
||||
|
||||
function scansForForbiddenIdentifiers(relativePath) {
|
||||
return isCodeSource(relativePath) || isRuntimeAsset(relativePath);
|
||||
return (isCodeSource(relativePath) && !isTestSource(relativePath)) || isRuntimeAsset(relativePath);
|
||||
}
|
||||
|
||||
function skipsIdentifierScan(relativePath) {
|
||||
|
|
|
|||
|
|
@ -65,6 +65,13 @@ describe('scanFileContent', () => {
|
|||
assert.equal(scanFileContent('python/ktx-sl/openspec/specs/semantic-layer/spec.md', name).length, 0);
|
||||
});
|
||||
|
||||
it('allows product identifiers in test fixtures', () => {
|
||||
const name = lowerProductName();
|
||||
|
||||
assert.equal(scanFileContent('packages/cli/src/setup.test.ts', `project: ${name}-dev`).length, 0);
|
||||
assert.equal(scanFileContent('packages/context/src/ingest/importer.test.ts', `email: system@${name}.dev`).length, 0);
|
||||
});
|
||||
|
||||
it('allows public package identifiers in release packaging and managed runtime source', () => {
|
||||
const name = lowerProductName();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue