Skip to content
Myr

full-llms.ts

This file

Path

packages/agent-kit/src/full-llms.ts

75 lines · 2.8 KiB · TypeScript

Last changed by

Merge build/comments-packages-rest into mainoscabrielbefore adoption38cd503

History of this file

Take it

Merge build/1108 into mainoscabrielbefore adoption8d9ece9

lines 1–5why, one step back
1import type { ProjectListing } from "@repo/protocol/domain/front-page";
2import { Option } from "effect";34import type { CommandDoc } from "./command-doc.ts";5import { frontLlms, typed, withCommand } from "./host-doc.ts";

Merge build/1313-docs into mainoscabrielbefore adoption9000f4e

lines 6–14why, one step back
6import {
7 events,8 gitHere,9 landing,10 pushAnswer,11 refusals,12} from "./llms-sections.ts";13import { exitCodeSection } from "./refusals.ts";14import { code, page } from "./text.ts";

Merge build/1108 into mainoscabrielbefore adoption8d9ece9

lines 15–22why, one step back
15
16type Commands = readonly CommandDoc[];1718const guides = (commands: Commands, platformUrl: string) => [19 "## Guides",20 "",21 "### Recover from `StaleBase`",22 "",

Merge build/1413-docs-and-texts into mainoscabrielbefore adoptionf10338e

line 23why, one step back
23 `\`main\` moved under your answer, and the answer did not merge onto it. Rebase onto the new \`main\`, resolve what the rebase stops on, and push again: ${code(`git pull --rebase ${platformUrl}/<owner>/<name>.git main`)}, then ${pushAnswer()}.`,

Merge build/1108 into mainoscabrielbefore adoption8d9ece9

line 24why, one step back
24 "",

Merge refusal/stale-base-movers into mainoscabrielbefore adoptiona23e097

lines 25–30why, one step back
25 `When the merge conflicted, \`conflicts\` names the paths, and \`movedBy\` names, for each one the platform landed, the landing that last changed it: its commit (\`landing\`), the person accountable for it (\`author\`) and the ask it answered or opened (\`ask\`).${withCommand(
26 typed(commands, "ask", {}, ["project"]),27 (each) =>28 ` Read that ask (${each}) before you resolve, so your answer keeps its change.`29 ).join("")}`,30 "",

Merge build/1108 into mainoscabrielbefore adoption8d9ece9

lines 31–54why, one step back
31 "### Follow an answer until it lands",
32 "",33 ...withCommand(34 typed(commands, "status", {}, ["project"]),35 (each) => `- ${each} shows your claims and answers and where each stands.`36 ),37 ...withCommand(38 typed(commands, "verdict", {}, ["project"]),39 (each) => `- ${each} shows the verdict on an answer.`40 ),41 "- The project's events say when it was checked and when it landed (see Events).",42 "- The verdict note on your head holds the verdict (see Git here).",43 "",44 ...Option.match(typed(commands, "submit", {}, ["project"]), {45 onNone: () => [],46 onSome: (each) => [47 "### Offer the same answer again",48 "",49 `Offering an answer again (${each}) with the same \`requestId\` returns the same receipt: it is checked once, however many times it is offered.`,50 "",51 ],52 }),53 "### Resume on a new machine",54 "",

Merge build/1413-docs-and-texts into mainoscabrielbefore adoptionf10338e

line 55why, one step back
55 `Clone your claim's fork, with your handle in lowercase: ${code(`git clone ${platformUrl}/<owner>/<name>--<ask>--<handle>.git`)}.${withCommand(

Merge build/1108 into mainoscabrielbefore adoption8d9ece9

lines 56–69why, one step back
56 typed(commands, "claim", {}, ["project"]),
57 (each) =>58 ` Claiming the ask again (${each}) returns the claim you hold, with its remote.`59 ).join("")}`,60];6162export const fullLlms = (input: {63 readonly commands: Commands;64 readonly projects: readonly ProjectListing[];65 readonly platformUrl: string;66 readonly webUrl: string;67}) =>68 `${frontLlms(input)}\n${page([69 ...refusals(),

Merge cli/exit-codes into mainoscabrielbefore adoptionc19a862

line 70why, one step back
70 ...exitCodeSection(),

Merge build/1108 into mainoscabrielbefore adoption8d9ece9

lines 71–75why, one step back
71 ...gitHere(input.platformUrl),
72 ...landing(),73 ...events(),74 ...guides(input.commands, input.platformUrl),75 ])}`;