oc-tweaks 0.4.1 → 0.4.2
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.js +12 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -323,10 +323,18 @@ ${VIOLATION_WARNING}`;
|
|
|
323
323
|
// src/plugins/compaction.ts
|
|
324
324
|
function buildCompactionPrompt(language, style) {
|
|
325
325
|
const lang = language || "the language the user used most in this session";
|
|
326
|
-
const
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
Write the compaction summary in ${lang}
|
|
326
|
+
const lines = [
|
|
327
|
+
"## MANDATORY: Language & Writing Style",
|
|
328
|
+
"",
|
|
329
|
+
`**Language**: Write the ENTIRE compaction summary in ${lang}. Keep technical terms (filenames, commands, code) in their original form.`
|
|
330
|
+
];
|
|
331
|
+
if (style) {
|
|
332
|
+
lines.push("", `**Writing Style**: ${style}`, "", "This is a NON-NEGOTIABLE requirement. Every section, every bullet point, every description in the summary MUST be written in this style. The structural format (numbered sections, bullet points) should be preserved, but the TONE, VOICE, and WORD CHOICE must unmistakably reflect the specified writing style throughout the entire output. Do NOT fall back to a neutral or generic tone.");
|
|
333
|
+
} else {
|
|
334
|
+
lines.push("", "**Writing Style**: concise and well-organized");
|
|
335
|
+
}
|
|
336
|
+
return lines.join(`
|
|
337
|
+
`);
|
|
330
338
|
}
|
|
331
339
|
var compactionPlugin = async () => {
|
|
332
340
|
return {
|