mirror of
https://github.com/bitbaum/solon.git
synced 2026-12-05 18:48:41 +01:00
* feat(chat): the reader chooses which model answers: a free one, or their own key Both chats (the law, governance) get chatkit's model button and sheet through useModelOptions; /api/law/ask and /api/chat choose the chain with ai-kit/choice. A reader's own key replaces Solon's models for their questions and is never stored here. Under a long answer a free model wrote, one line leads to the sheet. Needs @bitbaum/ai-kit 1.33.0 and @bitbaum/chatkit 0.48.0 (kits#20); the lockfile follows once they are published. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz * feat(pricing): what Solon offers, at what price, with a waitlist until it can be sold /pricing shows four tiers (Free, Plus, Professional, Organization) as sitekit's PlanTable, in five languages. The paid ones are not on sale: the price is what we plan to charge and the button takes an address (plan_waitlist, migration 0038, additive) through paykit's joinWaitlist. The model sheet's third way and the Hire page lead there. Prices live in lib/config/plans.ts only and are a proposal, not yet confirmed by the owner. Needs @bitbaum/paykit 0.5.0 and @bitbaum/sitekit 0.9.0 (kits#21) and kits#20; the lockfile follows once they are published. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz * chore: lockfile for ai-kit 1.33.0, chatkit 0.48.0, paykit 0.5.0, sitekit 0.9.0 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz --------- Co-authored-by: Claude <noreply@anthropic.com>
12 lines
491 B
SQL
12 lines
491 B
SQL
-- People who asked to be told when a paid tier can be bought (/pricing).
|
|
-- Additive: a new table, nothing existing is touched.
|
|
CREATE TABLE "plan_waitlist" (
|
|
"email" text NOT NULL,
|
|
"tier" text NOT NULL,
|
|
"locale" text,
|
|
"source" text,
|
|
"created_at" timestamp (3) DEFAULT now() NOT NULL,
|
|
CONSTRAINT "plan_waitlist_email_tier_pk" PRIMARY KEY("email","tier")
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE INDEX "plan_waitlist_tier_created_at_idx" ON "plan_waitlist" USING btree ("tier","created_at"); |