mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 05:17:01 +01:00
* feat(kickoff): brief a new site's first build with the fleet packages it is built from A kickoff agent briefed only on the project wrote search boxes, booking pickers, mail senders and payment handling from scratch, although the fleet ships each as a package. The first build now gets a "BUILT FROM" block: the packages its brief calls for, each with the catalogue's install line, what to use it for and "do not write your own". - src/config/kit-plan.ts: the feature -> package table (trigger words keyed by catalogue name). A package the live catalogue no longer lists is never planned; a new one is one entry. - src/lib/kit-plan/: the pure planner (whole words, "no X" plans no X), the prompt block under a 1,800-char budget, coverage helpers, and the server half that reads the catalogue and the starter's own package.json. - Client work is also told to keep the starter's token structure and replace @bitbaum/design-tokens with the client's (templates/app globals.css and tailwind.config.mjs; fleet SHARED.md design-tokens row). - The plan is recorded on user_projects.kit_plan (additive migration 0100) and the kickoff run's payload.kitPlan — never in project_packages, which stays observations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf * feat(projects): show what a new site will be built from, and what is still planned - Kickoff screen: a text-only "Built from" note under the start button says in plain words which shared parts the site will use ("Your site will use sign-in, search, payments and email — parts already running on N other sites, kept up to date automatically"), and for client work that it gets the client's colours and fonts. No button and no gate: "Not right? Change the story" links to the Story tab, and the build starts either way. - Story tab: under Built from, a "Planned" line names the parts the first build was planned with that the repository does not have yet. It is its own line because project_packages rows are observations, never plans. - Reading those observations is also where the kickoff run's payload.kitPlan gets the packages observed after the first build (once, an hour after the run closed), so kit coverage can be computed later. - a-flag-can-be-raised-and-cleared: check the Flags panel sits on the Story tab by tab, not by an 800-character window the new line overflowed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf * fix(projects): the plan preview reads the dossier itself, with the cleaned description Lint: the raw description must go through cleanDescription, and ProjectWorkspaceView was past its function-length limit. KitPlanPreview now takes the dossier and builds its own inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf --------- Co-authored-by: Claude <noreply@anthropic.com>
8 lines
459 B
SQL
8 lines
459 B
SQL
-- Migration: the kickoff's "Built from" plan — which fleet packages a new site
|
|
-- was planned to be built from (src/lib/kit-plan, src/config/kit-plan.ts).
|
|
-- A plan, not an observation: project_packages stays the record of what the
|
|
-- repository actually depends on. Additive and nullable; old rows mean "no plan".
|
|
--
|
|
-- Generated by `pnpm run db:generate` from the 0099 snapshot; reviewed by hand.
|
|
ALTER TABLE "user_projects" ADD COLUMN "kit_plan" jsonb;
|