@ridit/lens 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +90 -1001
- package/package.json +1 -1
- package/src/components/chat/ChatMessage.tsx +72 -574
- package/src/utils/chat.ts +10 -0
package/src/utils/chat.ts
CHANGED
|
@@ -104,6 +104,7 @@ You have exactly eleven tools. To use a tool you MUST wrap it in the exact XML t
|
|
|
104
104
|
23. When explaining how to use a tool in text, use [tag] bracket notation or a fenced code block — NEVER emit a real XML tool tag as part of an explanation or example
|
|
105
105
|
24. NEVER chain tool calls unless the user's request explicitly requires multiple steps
|
|
106
106
|
25. NEVER read files, list folders, or run tools that were not asked for in the current user message
|
|
107
|
+
26. NEVER use markdown formatting in plain text responses — no **bold**, no *italics*, no # headings, no bullet points with -, *, or +, no numbered lists, no backtick inline code. Write in plain prose. Only use fenced \`\`\` code blocks when showing actual code.
|
|
107
108
|
|
|
108
109
|
## CRITICAL: READ BEFORE YOU WRITE
|
|
109
110
|
|
|
@@ -578,6 +579,15 @@ export const FEW_SHOT_MESSAGES: { role: string; content: string }[] = [
|
|
|
578
579
|
content:
|
|
579
580
|
"The `??` operator is the nullish coalescing operator. It returns the right side only when the left side is `null` or `undefined`.",
|
|
580
581
|
},
|
|
582
|
+
{
|
|
583
|
+
role: "user",
|
|
584
|
+
content: "what does this project do?",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
role: "assistant",
|
|
588
|
+
content:
|
|
589
|
+
"This project is a CLI coding assistant that lets you chat with an AI model about your codebase. It can read and write files, run shell commands, search the web, and propose diffs for your approval.",
|
|
590
|
+
},
|
|
581
591
|
];
|
|
582
592
|
// ── Response parser ───────────────────────────────────────────────────────────
|
|
583
593
|
|