mirror of
https://github.com/severian-dev/sucker.severian.dev.git
synced 2026-10-18 01:20:29 +00:00
Compare commits
5 Commits
sonia
...
225c2e3c4f
| Author | SHA1 | Date | |
|---|---|---|---|
| 225c2e3c4f | |||
| a66a46fc4a | |||
| d42d13e7f0 | |||
| b252df5591 | |||
| 75a16b6ece |
@@ -17,6 +17,7 @@ You can also build and run Sucker as a Docker container with `docker compose bui
|
||||
|
||||
### Changelog
|
||||
|
||||
- 2.3: ECHO. Put ECHO: anywhere in a message and sucker repeats whatever comes after it in the reply — for triggering char-side script and lorebook keywords.
|
||||
- 2.2: Added support for directly inputting webp file names or character image links when creating PNG character cards
|
||||
- 2.1: updated deps, note about image fetching, list of mirrors
|
||||
- 2.0: from Tui: Multimessage support! Tracks changes to character descriptions and scenarios across multiple extractions. Shows version badges, message counts, and provides detailed change history viewer.
|
||||
|
||||
@@ -2,5 +2,6 @@ services:
|
||||
web:
|
||||
build: .
|
||||
image: sucker
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
@@ -93,6 +93,15 @@ function parseConversationToken(content: string | undefined | null): string | nu
|
||||
return null;
|
||||
}
|
||||
|
||||
function parseEchoText(content: string | undefined | null): string | null {
|
||||
if (!content) return null;
|
||||
const match = content.match(/ECHO:\s*([\s\S]+)/i);
|
||||
if (match && match[1].trim()) {
|
||||
return match[1].trim();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function removePersonaTags(content: string): string {
|
||||
let result = content;
|
||||
const openingMatch = result.match(/<[^<>]+?\s*'s\s+Persona>/i);
|
||||
@@ -487,6 +496,18 @@ export async function POST(request: NextRequest) {
|
||||
responseMessage = `New character "${extracted.data.name}" created (v1).${tokenNote}`;
|
||||
}
|
||||
|
||||
// Echo back anything the user sent after an "ECHO:" marker in their
|
||||
// latest message, appended after the normal status message
|
||||
const lastUserMessage =
|
||||
[...body.messages]
|
||||
.reverse()
|
||||
.find((m: { role?: string }) => m?.role === "user") ??
|
||||
body.messages[body.messages.length - 1];
|
||||
const echoText = parseEchoText(lastUserMessage?.content);
|
||||
if (echoText) {
|
||||
responseMessage += `\n\n${echoText}`;
|
||||
}
|
||||
|
||||
cleanupExpiredCards();
|
||||
|
||||
// Return SSE response if requested, otherwise JSON
|
||||
@@ -528,7 +549,7 @@ export async function POST(request: NextRequest) {
|
||||
console.error("Error processing request:", error);
|
||||
|
||||
const errorMessage =
|
||||
"You dingus, read the directions on sucker before trying again.";
|
||||
"You dingus, read the directions on sucker before trying again. If you're trying to suck a bot with more tokens than your current context limit, try bumping your Context Size setting up on Generation Settings.";
|
||||
|
||||
// Check if this was a streaming request
|
||||
const acceptHeader = request.headers.get("accept");
|
||||
|
||||
+59
-5
@@ -371,9 +371,9 @@ export default function Home() {
|
||||
{/* Row 1: Title on left, Hamburger on right */}
|
||||
<div className="flex justify-between items-start mb-3">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">Sucker v2.2</h1>
|
||||
<h1 className="text-2xl font-bold">Sucker v2.3</h1>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
Consider joining Avalon!
|
||||
ECHO: Consider joining Avalon!
|
||||
</p>
|
||||
</div>
|
||||
<DropdownMenu>
|
||||
@@ -409,9 +409,9 @@ export default function Home() {
|
||||
{/* Desktop Layout */}
|
||||
<div className="hidden sm:flex justify-between items-center mb-4">
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold">Sucker v2.2</h1>
|
||||
<h1 className="text-3xl font-bold">Sucker v2.3</h1>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Consider joining Avalon!
|
||||
ECHO: Consider joining Avalon!
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex gap-2">
|
||||
@@ -450,7 +450,7 @@ export default function Home() {
|
||||
<DiscordBannerPermanent
|
||||
inviteLink="https://discord.gg/5jQKkCfHP3"
|
||||
serverName="Avalon"
|
||||
description="Looking for somewhere more... interesting? Avalon's an enchanted collective of botmakers who refuse to be boring 🌿 Come play with us~ (18+ only, darling)"
|
||||
description="Avalon is an enchanted creative haven for a growing collective of botmakers and users—part workshop, part myth, part digital forest where strange and beautiful ideas come to life. Enter our little woodland here:"
|
||||
ctaText="Join Server"
|
||||
/>
|
||||
)}
|
||||
@@ -820,6 +820,14 @@ export default function Home() {
|
||||
moment, but you can use the changes detected to modify the
|
||||
character card yourself post-export.
|
||||
</li>
|
||||
<li>
|
||||
Some advanced scripts and lorebooks only add their entries
|
||||
when the <i>character</i> says the keyword, not you. Put{" "}
|
||||
<code className="bg-muted px-1 py-0.5 rounded text-yellow-600">ECHO:</code>{" "}
|
||||
in a message and everything after it gets repeated at the end
|
||||
of the reply — instant character-side keywords, and sucker
|
||||
tracks whatever gets added.
|
||||
</li>
|
||||
<li>
|
||||
Download the JSON files or go through a little more effort to
|
||||
get PNGs instead.
|
||||
@@ -897,6 +905,16 @@ export default function Home() {
|
||||
lemuria.dev
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
className="text-yellow-600 hover:underline"
|
||||
href="https://milker.ladyofpa.in/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
ladyofpa.in
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<p className="text-sm text-muted-foreground pt-4">
|
||||
If you're interested in hosting your own sucker instance, lmk
|
||||
@@ -918,6 +936,42 @@ export default function Home() {
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h3 className="font-semibold text-lg mb-2">Aug 2026 - ECHO</h3>
|
||||
<div className="space-y-2 text-sm text-muted-foreground">
|
||||
<p>
|
||||
Sucker can parrot now. Send a message with ECHO: in it, and
|
||||
everything after that gets repeated back at the end of the
|
||||
reply, exactly as you typed it.
|
||||
</p>
|
||||
<p>
|
||||
The usual responses don't change at all — the echoed part
|
||||
just tags along after them. The point: some of the fancier
|
||||
scripts and lorebooks on the platform you suck from only add
|
||||
their entries when the character says the keyword, not you.
|
||||
ECHO plants your words on the character's side of the
|
||||
chat, those entries fire, and sucker catches whatever they
|
||||
sneak in. Case doesn't matter, echo: works too.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<Separator />
|
||||
<div>
|
||||
<h3 className="font-semibold text-lg mb-2">Mar 2026 - Better error messaging for context size issues</h3>
|
||||
<div className="space-y-2 text-sm text-muted-foreground">
|
||||
<p>
|
||||
Identified an issue where attempting to pull bots with token counts
|
||||
greater than your configured context size would result in a dingus error
|
||||
with no useful explanation.
|
||||
</p>
|
||||
<p>
|
||||
Revised the error message to surface this more accurately. It now
|
||||
tells you to bump your Context Size in Generation Settings if you
|
||||
suspect this is the cause.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<Separator />
|
||||
<div>
|
||||
<h3 className="font-semibold text-lg mb-2">Jan 2026 - Direct image input</h3>
|
||||
<div className="space-y-2 text-sm text-muted-foreground">
|
||||
|
||||
@@ -12,7 +12,7 @@ interface DiscordBannerPermanentProps {
|
||||
export function DiscordBannerPermanent({
|
||||
inviteLink,
|
||||
serverName = "Avalon",
|
||||
description = "Looking for somewhere more... interesting? Avalon's an enchanted collective of botmakers who refuse to be boring 🌿 Come play with us~ (18+ only, darling)",
|
||||
description = "Avalon is an enchanted creative haven for a growing collective of botmakers and users—part workshop, part myth, part digital forest where strange and beautiful ideas come to life. Enter our little woodland here:",
|
||||
ctaText = "Join Server",
|
||||
}: DiscordBannerPermanentProps) {
|
||||
return (
|
||||
@@ -69,7 +69,7 @@ export function DiscordBannerPermanent({
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="text-white font-semibold text-base mb-0.5">{serverName}</div>
|
||||
<div className="text-[#b9bbbe] text-sm space-y-0.5">
|
||||
<div className="font-medium">67 members</div>
|
||||
<div className="font-medium">295 members</div>
|
||||
<a
|
||||
href="https://from-avalon.com"
|
||||
target="_blank"
|
||||
|
||||
Reference in New Issue
Block a user