fix: allow agent setup without context (#139)

* fix: allow agent setup without context

* docs: align readme command examples
This commit is contained in:
Andrey Avtomonov 2026-05-19 12:18:52 +02:00 committed by GitHub
parent eb41d084af
commit b42f418adc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 56 additions and 80 deletions

View file

@ -8,7 +8,6 @@ import type { KtxRuntimeFeature } from './managed-python-runtime.js';
import type { KtxPublicIngestPlan } from './public-ingest.js';
type KtxRuntimeRequirementReason =
| 'agent-mcp'
| 'query-history'
| 'looker-source'
| 'database-introspection'
@ -26,7 +25,6 @@ export interface KtxRuntimeRequirements {
}
export interface KtxProjectRuntimeRequirementOptions {
agents?: boolean;
databaseIntrospectionFallback?: boolean;
env?: NodeJS.ProcessEnv | Record<string, string | undefined>;
}
@ -92,14 +90,6 @@ export function resolveProjectRuntimeRequirements(
const env = options.env ?? process.env;
const requirements: KtxRuntimeRequirement[] = [];
if (options.agents === true) {
requirements.push({
feature: 'core',
reason: 'agent-mcp',
detail: 'Agent MCP setup uses semantic-layer query tools and SQL validation.',
});
}
if (options.databaseIntrospectionFallback === true && !hasDaemonOverride(env)) {
requirements.push({
feature: 'core',