Tyler
2026-06-25 11:03:05 -04:00
committed by GitHub
parent 996a3f89d5
commit 73cc31cc52
212 changed files with 0 additions and 2902 deletions

View File

@@ -11,8 +11,6 @@ import {
const HEX = "a".repeat(64);
const HEX_UPPER = "A".repeat(64);
// --- parsePromptText: no section headers ---
test("parsePromptText returns the empty/Prompt fallback for whitespace-only input", () => {
// The early `sections.length === 0` branch only fires when there are no
// section bodies at all (e.g. empty/whitespace input).
@@ -40,8 +38,6 @@ test("parsePromptText wraps header-less free text in a single Prompt section", (
assert.equal(result.userPubkey, null);
});
// --- parsePromptText: Buzz event section ---
test("parsePromptText extracts content, hex pubkey, and a title-cased kind", () => {
const text = [
"[System]",
@@ -104,8 +100,6 @@ test("parsePromptText leading text before a header becomes a Prompt section", ()
);
});
// --- extractPromptText ---
test("extractPromptText joins text blocks from params.prompt", () => {
const payload = {
params: {
@@ -162,8 +156,6 @@ test("extractToolIdentity still recognizes explicit Buzz tool fields", () => {
});
});
// --- parseSystemPromptSections: deterministic Base/System split ---
test("parseSystemPromptSections splits both prompts into Base and System", () => {
const framed = "[Base]\nbase text\n\n[System]\npersona text";
const sections = parseSystemPromptSections(framed);