mirror of
https://github.com/block/buzz.git
synced 2026-11-02 23:41:08 +00:00
chore: remove LLM-slop comments across the codebase (#1277)
Signed-off-by: Tyler Longwell <tlongwell@block.xyz> Co-authored-by: npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Max <d8473ee32b973aa31a21a65adddcc4b69cc2a8a4dee8121ecd51926e0cddbc02@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Mari <95cae996907d7cab9f5dbf43c0f53edeac6ab0b032a6feae4abfd784e467b3f5@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Quinn <96f056ad5f2305c8ddf637dc65d048aa4c12d7daeb8867690e34fca46b0ef64c@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Sami <f4a42a97e594b77bdbd8ee35191c8b28a94a4cb871d96f32921558275421fb68@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Perci <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user