mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-28 08:49:38 +02:00
feat(ingest): default local ingest to isolated diffs
This commit is contained in:
parent
adb5c4488e
commit
9335efd421
2 changed files with 6 additions and 11 deletions
|
|
@ -32,6 +32,7 @@ type RuntimeWithSlValidationDeps = {
|
||||||
type RuntimeWithSettingsDeps = {
|
type RuntimeWithSettingsDeps = {
|
||||||
deps: {
|
deps: {
|
||||||
settings: {
|
settings: {
|
||||||
|
sharedWorktreeSourceKeys?: string[];
|
||||||
isolatedDiffSourceKeys?: string[];
|
isolatedDiffSourceKeys?: string[];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -266,7 +267,7 @@ describe('createLocalBundleIngestRuntime', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('enables isolated-diff routing for direct durable-write connectors', () => {
|
it('defaults local bundle ingest to isolated diffs without an allowlist', () => {
|
||||||
const runtime = createLocalBundleIngestRuntime({
|
const runtime = createLocalBundleIngestRuntime({
|
||||||
project,
|
project,
|
||||||
adapters: [new FakeSourceAdapter()],
|
adapters: [new FakeSourceAdapter()],
|
||||||
|
|
@ -275,14 +276,8 @@ describe('createLocalBundleIngestRuntime', () => {
|
||||||
|
|
||||||
const settings = (runtime.runner as unknown as RuntimeWithSettingsDeps).deps.settings;
|
const settings = (runtime.runner as unknown as RuntimeWithSettingsDeps).deps.settings;
|
||||||
|
|
||||||
expect(settings.isolatedDiffSourceKeys).toEqual([
|
expect(settings.sharedWorktreeSourceKeys).toEqual([]);
|
||||||
'metabase',
|
expect('isolatedDiffSourceKeys' in settings).toBe(false);
|
||||||
'notion',
|
|
||||||
'lookml',
|
|
||||||
'looker',
|
|
||||||
'dbt',
|
|
||||||
'metricflow',
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('accepts a debug LLM request file when constructing the default agent runner', async () => {
|
it('accepts a debug LLM request file when constructing the default agent runner', async () => {
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ import { ContextEvidenceIndexService, SqliteContextEvidenceStore } from './conte
|
||||||
import { DiffSetService } from './diff-set.service.js';
|
import { DiffSetService } from './diff-set.service.js';
|
||||||
import { ingestTracePathForJob, type IngestTraceLevel } from './ingest-trace.js';
|
import { ingestTracePathForJob, type IngestTraceLevel } from './ingest-trace.js';
|
||||||
import { IngestBundleRunner } from './ingest-bundle.runner.js';
|
import { IngestBundleRunner } from './ingest-bundle.runner.js';
|
||||||
import { defaultIsolatedDiffSourceKeys } from './isolated-diff/source-routing.js';
|
import { defaultSharedWorktreeSourceKeys } from './isolated-diff/source-routing.js';
|
||||||
import { PageTriageService } from './page-triage/index.js';
|
import { PageTriageService } from './page-triage/index.js';
|
||||||
import { createWarehouseVerificationTools } from './tools/warehouse-verification/index.js';
|
import { createWarehouseVerificationTools } from './tools/warehouse-verification/index.js';
|
||||||
import type {
|
import type {
|
||||||
|
|
@ -723,7 +723,7 @@ export function createLocalBundleIngestRuntime(
|
||||||
workUnitMaxConcurrency: options.project.config.ingest.workUnits.maxConcurrency,
|
workUnitMaxConcurrency: options.project.config.ingest.workUnits.maxConcurrency,
|
||||||
workUnitStepBudget: options.project.config.ingest.workUnits.stepBudget,
|
workUnitStepBudget: options.project.config.ingest.workUnits.stepBudget,
|
||||||
workUnitFailureMode: options.project.config.ingest.workUnits.failureMode,
|
workUnitFailureMode: options.project.config.ingest.workUnits.failureMode,
|
||||||
isolatedDiffSourceKeys: defaultIsolatedDiffSourceKeys(),
|
sharedWorktreeSourceKeys: defaultSharedWorktreeSourceKeys(),
|
||||||
ingestTraceLevel: ingestTraceLevelFromEnv(),
|
ingestTraceLevel: ingestTraceLevelFromEnv(),
|
||||||
},
|
},
|
||||||
skillsRegistry: new SkillsRegistryService({ skillsDir, logger }),
|
skillsRegistry: new SkillsRegistryService({ skillsDir, logger }),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue