CI / build (push) Successful in 4m26s
Adds a Postgres-backed quotes domain (poems/quotes/favorites) exposed as five agent-native actions (list-quotes, get-random-quote, create-quote, toggle-favorite, list-favorites) callable from both chat and the React UI via useActionQuery/useActionMutation. Moves the primary UI from chat to a mobile-first Quotes/Favorites experience (chat moves to /chat), adds manual OpenTelemetry instrumentation exporting traces/metrics/logs over OTLP, and wires a local Docker Postgres for shared state.
13 lines
245 B
TypeScript
13 lines
245 B
TypeScript
import { createGetDb } from "@agent-native/core/db";
|
|
|
|
import * as schema from "./schema.js";
|
|
|
|
export const getDb = createGetDb(schema);
|
|
|
|
// Convenience: callable as db().select()...
|
|
export function db() {
|
|
return getDb();
|
|
}
|
|
|
|
export { schema };
|