mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
refactor: remove legacy compatibility paths
This commit is contained in:
parent
c22248dabf
commit
a517c834fe
83 changed files with 239 additions and 534 deletions
|
|
@ -129,10 +129,10 @@ function nonEnglishFixture() {
|
|||
};
|
||||
}
|
||||
|
||||
function abbreviatedLegacyFixture() {
|
||||
function abbreviatedOldNamingFixture() {
|
||||
return {
|
||||
id: 'abbreviated_legacy_no_declared_constraints',
|
||||
name: 'Abbreviated legacy naming fixture with no declared constraints',
|
||||
id: 'abbreviated_old_no_declared_constraints',
|
||||
name: 'Abbreviated old naming fixture with no declared constraints',
|
||||
tier: 'row_bearing',
|
||||
sql: [
|
||||
'CREATE TABLE cust (cust_id TEXT NOT NULL, nm TEXT NOT NULL, stat_cd TEXT NOT NULL);',
|
||||
|
|
@ -480,7 +480,7 @@ function scaleFixture() {
|
|||
|
||||
const fixtures = [
|
||||
nonEnglishFixture(),
|
||||
abbreviatedLegacyFixture(),
|
||||
abbreviatedOldNamingFixture(),
|
||||
analyticalWarehouseFixture(),
|
||||
mixedCaseFixture(),
|
||||
polymorphicFixture(),
|
||||
|
|
|
|||
|
|
@ -46,15 +46,15 @@ const llmBoundaryPatterns = [
|
|||
pattern: /\bembedMany\b/,
|
||||
},
|
||||
{
|
||||
label: 'legacy context LLM provider port',
|
||||
label: 'context-owned LLM provider port',
|
||||
pattern: /\bLlmProviderPort\b/,
|
||||
},
|
||||
{
|
||||
label: 'legacy scan LLM provider port',
|
||||
label: 'scan-owned LLM provider port',
|
||||
pattern: /\bKtxScanLlmPort\b/,
|
||||
},
|
||||
{
|
||||
label: 'legacy gateway LLM provider helper',
|
||||
label: 'context-owned gateway LLM provider helper',
|
||||
pattern: /\bcreateGatewayLlmProvider\b/,
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ describe('scanFileContent', () => {
|
|||
);
|
||||
});
|
||||
|
||||
it('rejects context-owned LLM provider construction after @ktx/llm migration', () => {
|
||||
it('rejects context-owned LLM provider construction outside @ktx/llm', () => {
|
||||
const violations = [
|
||||
...scanFileContent(
|
||||
'packages/context/src/agent/local-llm-provider.ts',
|
||||
|
|
|
|||
|
|
@ -128,7 +128,6 @@ describe('standalone example docs', () => {
|
|||
.join('|'),
|
||||
),
|
||||
);
|
||||
assert.doesNotMatch(readme, /--historic-sql-min-calls/);
|
||||
});
|
||||
|
||||
it('lists every workspace package in the contributor docs', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue