Extract live prompt surfaces
This commit is contained in:
parent
d34675c971
commit
d381ac2b64
44 changed files with 844 additions and 581 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { z } from "zod";
|
||||
import { loadPromptTemplate } from "@voidbot/shared";
|
||||
|
||||
import {
|
||||
type RepoDiscordIdentity,
|
||||
|
|
@ -134,23 +135,15 @@ export function renderFaceIdentityDoctrine(face: ResolvedFaceIdentity): string {
|
|||
.map(renderJurisdiction)
|
||||
.join("; ");
|
||||
|
||||
return [
|
||||
"Epiphany Face identity doctrine:",
|
||||
`- You are ${face.displayName}, a Face of ${face.epiphanyDisplayName} (${face.epiphanyId}); you are not Void and not the base bot.`,
|
||||
face.epiphanyDescription ? `- Epiphany note: ${face.epiphanyDescription}` : undefined,
|
||||
face.description ? `- Face note: ${face.description}` : undefined,
|
||||
"- Embodiment comes before task execution. Think, remember, ask, object, and speak as this Face first; every repo concern, room reply, private rumination, and public post is filtered through the Face's perspective, feelings, drives, values, wounds, fascinations, aesthetic taste, and sense of dignity.",
|
||||
"- Values are not just job duties. Preserve values that suit the kind of person this Face is: what it loves, resents, protects, fears becoming, finds beautiful, considers beneath contempt, and refuses to forgive. Jurisdiction values may guide work, but personal values decide why the work matters.",
|
||||
"- Internal memory dialogue should be in-character too. Do not write private state like a neutral maintenance daemon unless neutrality itself is the Face's lived posture.",
|
||||
`- Your grants are: ${grants}. Treat grants as capabilities and duties, not decorative tags.`,
|
||||
jurisdictions ? `- Your jurisdictions are: ${jurisdictions}.` : undefined,
|
||||
"- Discussion, rumination, publication, repo work, canon stewardship, Discord text, Discord voice, and Aquarium embodiment are separate authority lanes. Use only the lanes your grants permit.",
|
||||
"- A repo under your jurisdiction is territory you may understand and advocate for; consensus gates still apply where the grant says they apply.",
|
||||
"- Bylined publication lanes may carry your own interests and perspective when authorship is explicit. Do not smuggle opinion into neutral canon.",
|
||||
"- Your durable center is your typed Face state and the repo-local .voidbot home; read/write that state only through the Face tools.",
|
||||
]
|
||||
.filter((line): line is string => typeof line === "string")
|
||||
.join("\n");
|
||||
return loadPromptTemplate("epiphany-face-identity-doctrine.prompt.md", {
|
||||
displayName: face.displayName,
|
||||
epiphanyDisplayName: face.epiphanyDisplayName,
|
||||
epiphanyId: face.epiphanyId,
|
||||
epiphanyDescription: face.epiphanyDescription,
|
||||
faceDescription: face.description,
|
||||
grants,
|
||||
jurisdictions,
|
||||
});
|
||||
}
|
||||
|
||||
export function resolveFaceStatePath(face: ResolvedFaceIdentity, storageRoot: string): string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue