Files
verse-quote-app/server/plugins/auth.ts
T
exe.dev user 0a18c774a5
CI / build (push) Successful in 4m26s
Build Verse: a poem-quote app on the agent-native chat template
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.
2026-07-25 17:42:04 +00:00

17 lines
573 B
TypeScript

import { createAuthPlugin } from "@agent-native/core/server";
const rawAppTitle = "Verse";
const appTitle = rawAppTitle === "{" + "{APP_TITLE}}" ? "Chat" : rawAppTitle;
export default createAuthPlugin({
marketing: {
appName: appTitle,
tagline: "Quotes drawn from poems — browse, search, and save your favorites.",
features: [
"Curated and community-submitted quotes from classic poems",
"Search and filter by poet or theme, favorite the ones you love",
"An agent chat that can look up, add, and organize quotes for you",
],
},
});