const require_logger = require('./logger-DXu5t4bD.cjs');
const require_types = require('./types-ykSCHP0x.cjs');
let path = require("path");
path = require_logger.__toESM(path);
let drizzle_orm = require("drizzle-orm");
let better_sqlite3 = require("better-sqlite3");
better_sqlite3 = require_logger.__toESM(better_sqlite3);
let drizzle_orm_better_sqlite3 = require("drizzle-orm/better-sqlite3");
let drizzle_orm_logger = require("drizzle-orm/logger");
let drizzle_orm_sqlite_core = require("drizzle-orm/sqlite-core");

//#region src/database/index.ts
var DrizzleLogWriter = class {
	write(message) {
		if (require_logger.getEnvBool("PROMPTFOO_ENABLE_DATABASE_LOGS", false)) require_logger.logger_default.debug(`Drizzle: ${message}`);
	}
};
let dbInstance = null;
let sqliteInstance = null;
function getDbPath() {
	return path.resolve(require_logger.getConfigDirectoryPath(true), "promptfoo.db");
}
function getDbSignalPath() {
	return path.resolve(require_logger.getConfigDirectoryPath(true), "evalLastWritten");
}
function getDb() {
	if (!dbInstance) {
		const isMemoryDb = require_logger.getEnvBool("IS_TESTING");
		sqliteInstance = new better_sqlite3.default(isMemoryDb ? ":memory:" : getDbPath());
		sqliteInstance.pragma("foreign_keys = ON");
		if (!isMemoryDb && !require_logger.getEnvBool("PROMPTFOO_DISABLE_WAL_MODE", false)) try {
			sqliteInstance.pragma("journal_mode = WAL");
			const result = sqliteInstance.prepare("PRAGMA journal_mode").get();
			if (result.journal_mode.toLowerCase() === "wal") require_logger.logger_default.debug("Successfully enabled SQLite WAL mode");
			else require_logger.logger_default.warn(`Failed to enable WAL mode (got '${result.journal_mode}'). Database performance may be reduced. This can happen on network filesystems. Set PROMPTFOO_DISABLE_WAL_MODE=true to suppress this warning.`);
			sqliteInstance.pragma("wal_autocheckpoint = 1000");
			sqliteInstance.pragma("synchronous = NORMAL");
		} catch (err) {
			require_logger.logger_default.warn(`Error configuring SQLite WAL mode: ${err}. Database will use default journal mode. Performance may be reduced. This can happen on network filesystems or certain containerized environments. Set PROMPTFOO_DISABLE_WAL_MODE=true to suppress this warning.`);
		}
		const drizzleLogger = new drizzle_orm_logger.DefaultLogger({ writer: new DrizzleLogWriter() });
		dbInstance = (0, drizzle_orm_better_sqlite3.drizzle)(sqliteInstance, { logger: drizzleLogger });
	}
	return dbInstance;
}

//#endregion
//#region src/database/tables.ts
const promptsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("prompts", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	createdAt: (0, drizzle_orm_sqlite_core.integer)("created_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`),
	prompt: (0, drizzle_orm_sqlite_core.text)("prompt").notNull()
}, (table) => ({ createdAtIdx: (0, drizzle_orm_sqlite_core.index)("prompts_created_at_idx").on(table.createdAt) }));
const tagsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("tags", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	name: (0, drizzle_orm_sqlite_core.text)("name").notNull(),
	value: (0, drizzle_orm_sqlite_core.text)("value").notNull()
}, (table) => ({
	nameIdx: (0, drizzle_orm_sqlite_core.index)("tags_name_idx").on(table.name),
	uniqueNameValue: (0, drizzle_orm_sqlite_core.uniqueIndex)("tags_name_value_unique").on(table.name, table.value)
}));
const evalsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("evals", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	createdAt: (0, drizzle_orm_sqlite_core.integer)("created_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`),
	author: (0, drizzle_orm_sqlite_core.text)("author"),
	description: (0, drizzle_orm_sqlite_core.text)("description"),
	results: (0, drizzle_orm_sqlite_core.text)("results", { mode: "json" }).$type().notNull(),
	config: (0, drizzle_orm_sqlite_core.text)("config", { mode: "json" }).$type().notNull(),
	prompts: (0, drizzle_orm_sqlite_core.text)("prompts", { mode: "json" }).$type(),
	vars: (0, drizzle_orm_sqlite_core.text)("vars", { mode: "json" }).$type(),
	runtimeOptions: (0, drizzle_orm_sqlite_core.text)("runtime_options", { mode: "json" }).$type(),
	isRedteam: (0, drizzle_orm_sqlite_core.integer)("is_redteam", { mode: "boolean" }).notNull().default(false)
}, (table) => ({
	createdAtIdx: (0, drizzle_orm_sqlite_core.index)("evals_created_at_idx").on(table.createdAt),
	authorIdx: (0, drizzle_orm_sqlite_core.index)("evals_author_idx").on(table.author),
	isRedteamIdx: (0, drizzle_orm_sqlite_core.index)("evals_is_redteam_idx").on(table.isRedteam)
}));
const evalResultsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("eval_results", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	createdAt: (0, drizzle_orm_sqlite_core.integer)("created_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`),
	updatedAt: (0, drizzle_orm_sqlite_core.integer)("updated_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`),
	evalId: (0, drizzle_orm_sqlite_core.text)("eval_id").notNull().references(() => evalsTable.id),
	promptIdx: (0, drizzle_orm_sqlite_core.integer)("prompt_idx").notNull(),
	testIdx: (0, drizzle_orm_sqlite_core.integer)("test_idx").notNull(),
	testCase: (0, drizzle_orm_sqlite_core.text)("test_case", { mode: "json" }).$type().notNull(),
	prompt: (0, drizzle_orm_sqlite_core.text)("prompt", { mode: "json" }).$type().notNull(),
	promptId: (0, drizzle_orm_sqlite_core.text)("prompt_id").references(() => promptsTable.id),
	provider: (0, drizzle_orm_sqlite_core.text)("provider", { mode: "json" }).$type().notNull(),
	latencyMs: (0, drizzle_orm_sqlite_core.integer)("latency_ms"),
	cost: (0, drizzle_orm_sqlite_core.real)("cost"),
	response: (0, drizzle_orm_sqlite_core.text)("response", { mode: "json" }).$type(),
	error: (0, drizzle_orm_sqlite_core.text)("error"),
	failureReason: (0, drizzle_orm_sqlite_core.integer)("failure_reason").default(require_types.ResultFailureReason.NONE).notNull(),
	success: (0, drizzle_orm_sqlite_core.integer)("success", { mode: "boolean" }).notNull(),
	score: (0, drizzle_orm_sqlite_core.real)("score").notNull(),
	gradingResult: (0, drizzle_orm_sqlite_core.text)("grading_result", { mode: "json" }).$type(),
	namedScores: (0, drizzle_orm_sqlite_core.text)("named_scores", { mode: "json" }).$type(),
	metadata: (0, drizzle_orm_sqlite_core.text)("metadata", { mode: "json" }).$type()
}, (table) => ({
	evalIdIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_eval_id_idx").on(table.evalId),
	testIdxIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_test_idx").on(table.testIdx),
	evalTestIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_eval_test_idx").on(table.evalId, table.testIdx),
	evalSuccessIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_eval_success_idx").on(table.evalId, table.success),
	evalFailureIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_eval_failure_idx").on(table.evalId, table.failureReason),
	evalTestSuccessIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_eval_test_success_idx").on(table.evalId, table.testIdx, table.success),
	responseIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_response_idx").on(table.response),
	gradingResultReasonIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_grading_result_reason_idx").on(drizzle_orm.sql`json_extract(${table.gradingResult}, '$.reason')`),
	gradingResultCommentIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_grading_result_comment_idx").on(drizzle_orm.sql`json_extract(${table.gradingResult}, '$.comment')`),
	testCaseVarsIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_test_case_vars_idx").on(drizzle_orm.sql`json_extract(${table.testCase}, '$.vars')`),
	testCaseMetadataIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_test_case_metadata_idx").on(drizzle_orm.sql`json_extract(${table.metadata}, '$')`),
	namedScoresIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_named_scores_idx").on(drizzle_orm.sql`json_extract(${table.namedScores}, '$')`),
	metadataIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_metadata_idx").on(drizzle_orm.sql`json_extract(${table.metadata}, '$')`),
	metadataPluginIdIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_metadata_plugin_id_idx").on(drizzle_orm.sql`json_extract(${table.metadata}, '$.pluginId')`),
	metadataStrategyIdIdx: (0, drizzle_orm_sqlite_core.index)("eval_result_metadata_strategy_id_idx").on(drizzle_orm.sql`json_extract(${table.metadata}, '$.strategyId')`)
}));
const evalsToPromptsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("evals_to_prompts", {
	evalId: (0, drizzle_orm_sqlite_core.text)("eval_id").notNull().references(() => evalsTable.id, { onDelete: "cascade" }),
	promptId: (0, drizzle_orm_sqlite_core.text)("prompt_id").notNull().references(() => promptsTable.id)
}, (t) => ({
	pk: (0, drizzle_orm_sqlite_core.primaryKey)({ columns: [t.evalId, t.promptId] }),
	evalIdIdx: (0, drizzle_orm_sqlite_core.index)("evals_to_prompts_eval_id_idx").on(t.evalId),
	promptIdIdx: (0, drizzle_orm_sqlite_core.index)("evals_to_prompts_prompt_id_idx").on(t.promptId)
}));
const promptsRelations = (0, drizzle_orm.relations)(promptsTable, ({ many }) => ({ evalsToPrompts: many(evalsToPromptsTable) }));
const evalsToTagsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("evals_to_tags", {
	evalId: (0, drizzle_orm_sqlite_core.text)("eval_id").notNull().references(() => evalsTable.id),
	tagId: (0, drizzle_orm_sqlite_core.text)("tag_id").notNull().references(() => tagsTable.id)
}, (t) => ({
	pk: (0, drizzle_orm_sqlite_core.primaryKey)({ columns: [t.evalId, t.tagId] }),
	evalIdIdx: (0, drizzle_orm_sqlite_core.index)("evals_to_tags_eval_id_idx").on(t.evalId),
	tagIdIdx: (0, drizzle_orm_sqlite_core.index)("evals_to_tags_tag_id_idx").on(t.tagId)
}));
const tagsRelations = (0, drizzle_orm.relations)(tagsTable, ({ many }) => ({ evalsToTags: many(evalsToTagsTable) }));
const evalsToTagsRelations = (0, drizzle_orm.relations)(evalsToTagsTable, ({ one }) => ({
	eval: one(evalsTable, {
		fields: [evalsToTagsTable.evalId],
		references: [evalsTable.id]
	}),
	tag: one(tagsTable, {
		fields: [evalsToTagsTable.tagId],
		references: [tagsTable.id]
	})
}));
const blobAssetsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("blob_assets", {
	hash: (0, drizzle_orm_sqlite_core.text)("hash").primaryKey(),
	sizeBytes: (0, drizzle_orm_sqlite_core.integer)("size_bytes").notNull(),
	mimeType: (0, drizzle_orm_sqlite_core.text)("mime_type").notNull(),
	provider: (0, drizzle_orm_sqlite_core.text)("provider").notNull(),
	createdAt: (0, drizzle_orm_sqlite_core.integer)("created_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`)
}, (table) => ({
	providerIdx: (0, drizzle_orm_sqlite_core.index)("blob_assets_provider_idx").on(table.provider),
	createdAtIdx: (0, drizzle_orm_sqlite_core.index)("blob_assets_created_at_idx").on(table.createdAt)
}));
const blobReferencesTable = (0, drizzle_orm_sqlite_core.sqliteTable)("blob_references", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	blobHash: (0, drizzle_orm_sqlite_core.text)("blob_hash").notNull().references(() => blobAssetsTable.hash, { onDelete: "cascade" }),
	evalId: (0, drizzle_orm_sqlite_core.text)("eval_id").notNull().references(() => evalsTable.id, { onDelete: "cascade" }),
	testIdx: (0, drizzle_orm_sqlite_core.integer)("test_idx"),
	promptIdx: (0, drizzle_orm_sqlite_core.integer)("prompt_idx"),
	location: (0, drizzle_orm_sqlite_core.text)("location"),
	kind: (0, drizzle_orm_sqlite_core.text)("kind"),
	createdAt: (0, drizzle_orm_sqlite_core.integer)("created_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`)
}, (table) => ({
	blobIdx: (0, drizzle_orm_sqlite_core.index)("blob_references_blob_idx").on(table.blobHash),
	evalIdx: (0, drizzle_orm_sqlite_core.index)("blob_references_eval_idx").on(table.evalId)
}));
const datasetsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("datasets", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	tests: (0, drizzle_orm_sqlite_core.text)("tests", { mode: "json" }).$type(),
	createdAt: (0, drizzle_orm_sqlite_core.integer)("created_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`)
}, (table) => ({ createdAtIdx: (0, drizzle_orm_sqlite_core.index)("datasets_created_at_idx").on(table.createdAt) }));
const evalsToDatasetsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("evals_to_datasets", {
	evalId: (0, drizzle_orm_sqlite_core.text)("eval_id").notNull().references(() => evalsTable.id),
	datasetId: (0, drizzle_orm_sqlite_core.text)("dataset_id").notNull().references(() => datasetsTable.id)
}, (t) => ({
	pk: (0, drizzle_orm_sqlite_core.primaryKey)({ columns: [t.evalId, t.datasetId] }),
	evalIdIdx: (0, drizzle_orm_sqlite_core.index)("evals_to_datasets_eval_id_idx").on(t.evalId),
	datasetIdIdx: (0, drizzle_orm_sqlite_core.index)("evals_to_datasets_dataset_id_idx").on(t.datasetId)
}));
const datasetsRelations = (0, drizzle_orm.relations)(datasetsTable, ({ many }) => ({ evalsToDatasets: many(evalsToDatasetsTable) }));
const evalsRelations = (0, drizzle_orm.relations)(evalsTable, ({ many }) => ({
	evalsToPrompts: many(evalsToPromptsTable),
	evalsToDatasets: many(evalsToDatasetsTable),
	evalsToTags: many(evalsToTagsTable)
}));
const evalsToPromptsRelations = (0, drizzle_orm.relations)(evalsToPromptsTable, ({ one }) => ({
	eval: one(evalsTable, {
		fields: [evalsToPromptsTable.evalId],
		references: [evalsTable.id]
	}),
	prompt: one(promptsTable, {
		fields: [evalsToPromptsTable.promptId],
		references: [promptsTable.id]
	})
}));
const evalsToDatasetsRelations = (0, drizzle_orm.relations)(evalsToDatasetsTable, ({ one }) => ({
	eval: one(evalsTable, {
		fields: [evalsToDatasetsTable.evalId],
		references: [evalsTable.id]
	}),
	dataset: one(datasetsTable, {
		fields: [evalsToDatasetsTable.datasetId],
		references: [datasetsTable.id]
	})
}));
const configsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("configs", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	createdAt: (0, drizzle_orm_sqlite_core.integer)("created_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`),
	updatedAt: (0, drizzle_orm_sqlite_core.integer)("updated_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`),
	name: (0, drizzle_orm_sqlite_core.text)("name").notNull(),
	type: (0, drizzle_orm_sqlite_core.text)("type").notNull(),
	config: (0, drizzle_orm_sqlite_core.text)("config", { mode: "json" }).notNull()
}, (table) => ({
	createdAtIdx: (0, drizzle_orm_sqlite_core.index)("configs_created_at_idx").on(table.createdAt),
	typeIdx: (0, drizzle_orm_sqlite_core.index)("configs_type_idx").on(table.type)
}));
const modelAuditsTable = (0, drizzle_orm_sqlite_core.sqliteTable)("model_audits", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	createdAt: (0, drizzle_orm_sqlite_core.integer)("created_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`),
	updatedAt: (0, drizzle_orm_sqlite_core.integer)("updated_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`),
	name: (0, drizzle_orm_sqlite_core.text)("name"),
	author: (0, drizzle_orm_sqlite_core.text)("author"),
	modelPath: (0, drizzle_orm_sqlite_core.text)("model_path").notNull(),
	modelType: (0, drizzle_orm_sqlite_core.text)("model_type"),
	results: (0, drizzle_orm_sqlite_core.text)("results", { mode: "json" }).$type().notNull(),
	checks: (0, drizzle_orm_sqlite_core.text)("checks", { mode: "json" }).$type(),
	issues: (0, drizzle_orm_sqlite_core.text)("issues", { mode: "json" }).$type(),
	hasErrors: (0, drizzle_orm_sqlite_core.integer)("has_errors", { mode: "boolean" }).notNull(),
	totalChecks: (0, drizzle_orm_sqlite_core.integer)("total_checks"),
	passedChecks: (0, drizzle_orm_sqlite_core.integer)("passed_checks"),
	failedChecks: (0, drizzle_orm_sqlite_core.integer)("failed_checks"),
	metadata: (0, drizzle_orm_sqlite_core.text)("metadata", { mode: "json" }).$type(),
	modelId: (0, drizzle_orm_sqlite_core.text)("model_id"),
	revisionSha: (0, drizzle_orm_sqlite_core.text)("revision_sha"),
	contentHash: (0, drizzle_orm_sqlite_core.text)("content_hash"),
	modelSource: (0, drizzle_orm_sqlite_core.text)("model_source"),
	sourceLastModified: (0, drizzle_orm_sqlite_core.integer)("source_last_modified"),
	scannerVersion: (0, drizzle_orm_sqlite_core.text)("scanner_version")
}, (table) => ({
	createdAtIdx: (0, drizzle_orm_sqlite_core.index)("model_audits_created_at_idx").on(table.createdAt),
	modelPathIdx: (0, drizzle_orm_sqlite_core.index)("model_audits_model_path_idx").on(table.modelPath),
	hasErrorsIdx: (0, drizzle_orm_sqlite_core.index)("model_audits_has_errors_idx").on(table.hasErrors),
	modelTypeIdx: (0, drizzle_orm_sqlite_core.index)("model_audits_model_type_idx").on(table.modelType),
	modelIdIdx: (0, drizzle_orm_sqlite_core.index)("model_audits_model_id_idx").on(table.modelId),
	revisionShaIdx: (0, drizzle_orm_sqlite_core.index)("model_audits_revision_sha_idx").on(table.revisionSha),
	contentHashIdx: (0, drizzle_orm_sqlite_core.index)("model_audits_content_hash_idx").on(table.contentHash),
	modelRevisionIdx: (0, drizzle_orm_sqlite_core.index)("model_audits_model_revision_idx").on(table.modelId, table.revisionSha),
	modelContentIdx: (0, drizzle_orm_sqlite_core.index)("model_audits_model_content_idx").on(table.modelId, table.contentHash)
}));
const tracesTable = (0, drizzle_orm_sqlite_core.sqliteTable)("traces", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	traceId: (0, drizzle_orm_sqlite_core.text)("trace_id").notNull().unique(),
	evaluationId: (0, drizzle_orm_sqlite_core.text)("evaluation_id").notNull().references(() => evalsTable.id),
	testCaseId: (0, drizzle_orm_sqlite_core.text)("test_case_id").notNull(),
	createdAt: (0, drizzle_orm_sqlite_core.integer)("created_at").notNull().default(drizzle_orm.sql`CURRENT_TIMESTAMP`),
	metadata: (0, drizzle_orm_sqlite_core.text)("metadata", { mode: "json" }).$type()
}, (table) => ({
	evaluationIdx: (0, drizzle_orm_sqlite_core.index)("traces_evaluation_idx").on(table.evaluationId),
	traceIdIdx: (0, drizzle_orm_sqlite_core.index)("traces_trace_id_idx").on(table.traceId)
}));
const spansTable = (0, drizzle_orm_sqlite_core.sqliteTable)("spans", {
	id: (0, drizzle_orm_sqlite_core.text)("id").primaryKey(),
	traceId: (0, drizzle_orm_sqlite_core.text)("trace_id").notNull().references(() => tracesTable.traceId),
	spanId: (0, drizzle_orm_sqlite_core.text)("span_id").notNull(),
	parentSpanId: (0, drizzle_orm_sqlite_core.text)("parent_span_id"),
	name: (0, drizzle_orm_sqlite_core.text)("name").notNull(),
	startTime: (0, drizzle_orm_sqlite_core.integer)("start_time").notNull(),
	endTime: (0, drizzle_orm_sqlite_core.integer)("end_time"),
	attributes: (0, drizzle_orm_sqlite_core.text)("attributes", { mode: "json" }).$type(),
	statusCode: (0, drizzle_orm_sqlite_core.integer)("status_code"),
	statusMessage: (0, drizzle_orm_sqlite_core.text)("status_message")
}, (table) => ({
	traceIdIdx: (0, drizzle_orm_sqlite_core.index)("spans_trace_id_idx").on(table.traceId),
	spanIdIdx: (0, drizzle_orm_sqlite_core.index)("spans_span_id_idx").on(table.spanId)
}));
const tracesRelations = (0, drizzle_orm.relations)(tracesTable, ({ one, many }) => ({
	eval: one(evalsTable, {
		fields: [tracesTable.evaluationId],
		references: [evalsTable.id]
	}),
	spans: many(spansTable)
}));
const spansRelations = (0, drizzle_orm.relations)(spansTable, ({ one }) => ({ trace: one(tracesTable, {
	fields: [spansTable.traceId],
	references: [tracesTable.traceId]
}) }));

//#endregion
Object.defineProperty(exports, 'blobAssetsTable', {
  enumerable: true,
  get: function () {
    return blobAssetsTable;
  }
});
Object.defineProperty(exports, 'blobReferencesTable', {
  enumerable: true,
  get: function () {
    return blobReferencesTable;
  }
});
Object.defineProperty(exports, 'datasetsTable', {
  enumerable: true,
  get: function () {
    return datasetsTable;
  }
});
Object.defineProperty(exports, 'evalResultsTable', {
  enumerable: true,
  get: function () {
    return evalResultsTable;
  }
});
Object.defineProperty(exports, 'evalsTable', {
  enumerable: true,
  get: function () {
    return evalsTable;
  }
});
Object.defineProperty(exports, 'evalsToDatasetsTable', {
  enumerable: true,
  get: function () {
    return evalsToDatasetsTable;
  }
});
Object.defineProperty(exports, 'evalsToPromptsTable', {
  enumerable: true,
  get: function () {
    return evalsToPromptsTable;
  }
});
Object.defineProperty(exports, 'evalsToTagsTable', {
  enumerable: true,
  get: function () {
    return evalsToTagsTable;
  }
});
Object.defineProperty(exports, 'getDb', {
  enumerable: true,
  get: function () {
    return getDb;
  }
});
Object.defineProperty(exports, 'getDbSignalPath', {
  enumerable: true,
  get: function () {
    return getDbSignalPath;
  }
});
Object.defineProperty(exports, 'promptsTable', {
  enumerable: true,
  get: function () {
    return promptsTable;
  }
});
Object.defineProperty(exports, 'spansTable', {
  enumerable: true,
  get: function () {
    return spansTable;
  }
});
Object.defineProperty(exports, 'tagsTable', {
  enumerable: true,
  get: function () {
    return tagsTable;
  }
});
Object.defineProperty(exports, 'tracesTable', {
  enumerable: true,
  get: function () {
    return tracesTable;
  }
});
//# sourceMappingURL=tables-HmCWjdx2.cjs.map