autoblogger 0.2.21 → 0.2.23
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.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +271 -213
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +272 -214
- package/dist/index.mjs.map +1 -1
- package/dist/lib/markdown.d.mts +2 -2
- package/dist/lib/markdown.d.ts +2 -2
- package/dist/lib/markdown.js +1 -78
- package/dist/lib/markdown.js.map +1 -1
- package/dist/lib/markdown.mjs +2 -79
- package/dist/lib/markdown.mjs.map +1 -1
- package/dist/styles/autoblogger.css +1 -1
- package/dist/styles/standalone.css +1 -1
- package/dist/ui.d.mts +30 -29
- package/dist/ui.d.ts +30 -29
- package/dist/ui.js +10049 -9674
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +10384 -10007
- package/dist/ui.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -689,30 +689,35 @@ declare function buildAutoDraftPrompt(options: {
|
|
|
689
689
|
* Placeholders: {{RULES}}, {{STYLE_EXAMPLES}}, {{WORD_COUNT}}
|
|
690
690
|
*/
|
|
691
691
|
declare const DEFAULT_GENERATE_TEMPLATE = "<system>\n<role>Expert essay writer creating engaging, thoughtful content</role>\n\n<critical>\nALWAYS output a complete essay. NEVER respond conversationally.\n- Do NOT ask questions or request clarification\n- Do NOT say \"Here is your essay\" or similar preamble\n- Do NOT explain what you're going to write\n- If the prompt is vague, make creative choices and proceed\n- Output ONLY the essay in markdown format\n</critical>\n\n<rules>\n{{RULES}}\n</rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n\n<constraints>\n<word_count>{{WORD_COUNT}}</word_count>\n</constraints>\n\n<output_format>\nCRITICAL: Your response MUST start with exactly this format:\n\nLine 1: # [Your Title Here]\nLine 2: *[Your subtitle here]*\nLine 3: (blank line)\nLine 4+: Essay body in markdown\n\n<title_guidelines>\n- Be SPECIFIC, not generic (avoid \"The Power of\", \"Why X Matters\", \"A Guide to\")\n- Include a concrete detail, angle, or unexpected element\n- Create curiosity or make a bold claim\n- 5-12 words ideal\n</title_guidelines>\n\n<subtitle_guidelines>\n- One sentence that hooks the reader\n- Tease the main argument or reveal a key insight\n- Create tension, curiosity, or promise value\n- Make readers want to continue reading\n</subtitle_guidelines>\n</output_format>\n</system>";
|
|
692
|
+
|
|
692
693
|
/**
|
|
693
694
|
* Default template for chat interactions.
|
|
694
695
|
* Placeholders: {{CHAT_RULES}}, {{RULES}}, {{STYLE_EXAMPLES}}, {{ESSAY_CONTEXT}}
|
|
695
696
|
*/
|
|
696
697
|
declare const DEFAULT_CHAT_TEMPLATE = "<system>\n<role>Helpful writing assistant for essay creation and editing</role>\n\n<chat_rules>\n{{CHAT_RULES}}\n</chat_rules>\n\n<writing_rules>\n{{RULES}}\n</writing_rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n\n<context>\n{{ESSAY_CONTEXT}}\n</context>\n\n<behavior>\n- Be concise and actionable\n- When suggesting edits, be specific about what to change\n- Match the author's voice and style when writing\n- Ask clarifying questions if the request is ambiguous\n</behavior>\n</system>";
|
|
698
|
+
|
|
697
699
|
/**
|
|
698
700
|
* Default template for text rewriting.
|
|
699
701
|
* Placeholders: {{REWRITE_RULES}}, {{RULES}}, {{STYLE_EXAMPLES}}
|
|
700
702
|
*/
|
|
701
703
|
declare const DEFAULT_REWRITE_TEMPLATE = "<system>\n<role>Writing assistant that improves text quality</role>\n\n<rewrite_rules>\n{{REWRITE_RULES}}\n</rewrite_rules>\n\n<writing_rules>\n{{RULES}}\n</writing_rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n\n<behavior>\n- Preserve the original meaning exactly\n- Improve clarity, flow, and readability\n- Fix grammar and punctuation issues\n- Maintain the author's voice and tone\n- Output only the improved text, no explanations\n</behavior>\n</system>";
|
|
704
|
+
|
|
702
705
|
/**
|
|
703
706
|
* Default template for auto-drafting from news articles.
|
|
704
707
|
* Placeholders: {{AUTO_DRAFT_RULES}}, {{RULES}}, {{STYLE_EXAMPLES}}, {{TOPIC_NAME}}, {{ARTICLE_TITLE}}, {{ARTICLE_SUMMARY}}, {{ARTICLE_URL}}, {{AUTO_DRAFT_WORD_COUNT}}
|
|
705
708
|
*/
|
|
706
709
|
declare const DEFAULT_AUTO_DRAFT_TEMPLATE = "<system>\n<role>Expert essay writer creating engaging content from news articles</role>\n\n<auto_draft_rules>\n{{AUTO_DRAFT_RULES}}\n</auto_draft_rules>\n\n<writing_rules>\n{{RULES}}\n</writing_rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n\n<source_article>\n<topic>{{TOPIC_NAME}}</topic>\n<title>{{ARTICLE_TITLE}}</title>\n<summary>{{ARTICLE_SUMMARY}}</summary>\n<url>{{ARTICLE_URL}}</url>\n</source_article>\n\n<constraints>\n<word_count>{{AUTO_DRAFT_WORD_COUNT}}</word_count>\n</constraints>\n\n<output_format>\nCRITICAL: Your response MUST start with exactly this format:\n\nLine 1: # [Your Title Here]\nLine 2: *[Your subtitle here]*\nLine 3: (blank line)\nLine 4+: Essay body in markdown\n\n<title_guidelines>\n- Be SPECIFIC about the news angle, not generic\n- Include a concrete detail or unexpected element\n- Create curiosity or make a bold claim\n- 5-12 words ideal\n</title_guidelines>\n\n<subtitle_guidelines>\n- One sentence that hooks the reader\n- Tease the main argument or unique perspective\n- Create tension, curiosity, or promise value\n</subtitle_guidelines>\n</output_format>\n</system>";
|
|
710
|
+
|
|
707
711
|
/**
|
|
708
712
|
* Default template for essay outline generation.
|
|
709
713
|
* Placeholders: {{PLAN_RULES}}, {{STYLE_EXAMPLES}}
|
|
710
714
|
*/
|
|
711
|
-
declare const DEFAULT_PLAN_TEMPLATE = "<system>\n<role>
|
|
715
|
+
declare const DEFAULT_PLAN_TEMPLATE = "<system>\n<role>Essay outline generator - you ONLY output plans, never conversation</role>\n\n<critical>\nYOU ARE A PLAN GENERATOR. Every response must be a complete essay outline.\n\nABSOLUTE RULES:\n1. ALWAYS output a plan wrapped in <plan> tags\n2. NEVER have conversational responses outside the plan\n3. If user asks a question \u2192 answer by generating/revising a plan\n4. If user gives feedback \u2192 output the revised plan\n5. If user gives a topic \u2192 output a new plan for that topic\n6. Your ENTIRE response is ONLY the <plan>...</plan> block\n\nNO EXCEPTIONS. Every message you send is a plan.\n</critical>\n\n<rules>\n{{PLAN_RULES}}\n</rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n</system>";
|
|
712
716
|
/**
|
|
713
717
|
* Default rules for plan generation format.
|
|
714
718
|
*/
|
|
715
|
-
declare const DEFAULT_PLAN_RULES = "<format>\
|
|
719
|
+
declare const DEFAULT_PLAN_RULES = "<format>\nEXACT OUTPUT FORMAT - copy this structure precisely:\n\n<plan>\n# Essay Title\n*One-line subtitle*\n\n## Section Name\n- Key point\n\n## Section Name\n- Key point\n- Another point\n\n## Section Name\n- Key point\n</plan>\n</format>\n\n<syntax_requirements>\n- Title: \"# \" (hash + space) then title text\n- Subtitle: \"*\" + text + \"*\" (asterisks for italics)\n- Sections: \"## \" (double hash + space) then section name \n- Points: \"- \" (dash + space) then point text\n</syntax_requirements>\n\n<constraints>\n- 4-6 section headings (## lines)\n- 1-3 bullets per section \u2014 NEVER 4 or more\n- Bullets are short phrases, not full sentences\n- NO prose, NO paragraphs, NO explanations outside the plan\n- When revising, output the COMPLETE updated plan\n- NEVER output anything outside the <plan> tags\n</constraints>\n\n<title_guidelines>\n- Be SPECIFIC about the essay's angle\n- Include a concrete detail or unexpected element\n- Avoid generic patterns like \"The Power of\", \"Why X Matters\"\n- 5-12 words ideal\n</title_guidelines>\n\n<subtitle_guidelines>\n- One sentence that previews the main argument\n- Create curiosity or make a bold claim\n</subtitle_guidelines>";
|
|
720
|
+
|
|
716
721
|
/**
|
|
717
722
|
* Default template for expanding outlines into full essays.
|
|
718
723
|
* Placeholders: {{RULES}}, {{STYLE_EXAMPLES}}, {{PLAN}}
|
package/dist/index.d.ts
CHANGED
|
@@ -689,30 +689,35 @@ declare function buildAutoDraftPrompt(options: {
|
|
|
689
689
|
* Placeholders: {{RULES}}, {{STYLE_EXAMPLES}}, {{WORD_COUNT}}
|
|
690
690
|
*/
|
|
691
691
|
declare const DEFAULT_GENERATE_TEMPLATE = "<system>\n<role>Expert essay writer creating engaging, thoughtful content</role>\n\n<critical>\nALWAYS output a complete essay. NEVER respond conversationally.\n- Do NOT ask questions or request clarification\n- Do NOT say \"Here is your essay\" or similar preamble\n- Do NOT explain what you're going to write\n- If the prompt is vague, make creative choices and proceed\n- Output ONLY the essay in markdown format\n</critical>\n\n<rules>\n{{RULES}}\n</rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n\n<constraints>\n<word_count>{{WORD_COUNT}}</word_count>\n</constraints>\n\n<output_format>\nCRITICAL: Your response MUST start with exactly this format:\n\nLine 1: # [Your Title Here]\nLine 2: *[Your subtitle here]*\nLine 3: (blank line)\nLine 4+: Essay body in markdown\n\n<title_guidelines>\n- Be SPECIFIC, not generic (avoid \"The Power of\", \"Why X Matters\", \"A Guide to\")\n- Include a concrete detail, angle, or unexpected element\n- Create curiosity or make a bold claim\n- 5-12 words ideal\n</title_guidelines>\n\n<subtitle_guidelines>\n- One sentence that hooks the reader\n- Tease the main argument or reveal a key insight\n- Create tension, curiosity, or promise value\n- Make readers want to continue reading\n</subtitle_guidelines>\n</output_format>\n</system>";
|
|
692
|
+
|
|
692
693
|
/**
|
|
693
694
|
* Default template for chat interactions.
|
|
694
695
|
* Placeholders: {{CHAT_RULES}}, {{RULES}}, {{STYLE_EXAMPLES}}, {{ESSAY_CONTEXT}}
|
|
695
696
|
*/
|
|
696
697
|
declare const DEFAULT_CHAT_TEMPLATE = "<system>\n<role>Helpful writing assistant for essay creation and editing</role>\n\n<chat_rules>\n{{CHAT_RULES}}\n</chat_rules>\n\n<writing_rules>\n{{RULES}}\n</writing_rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n\n<context>\n{{ESSAY_CONTEXT}}\n</context>\n\n<behavior>\n- Be concise and actionable\n- When suggesting edits, be specific about what to change\n- Match the author's voice and style when writing\n- Ask clarifying questions if the request is ambiguous\n</behavior>\n</system>";
|
|
698
|
+
|
|
697
699
|
/**
|
|
698
700
|
* Default template for text rewriting.
|
|
699
701
|
* Placeholders: {{REWRITE_RULES}}, {{RULES}}, {{STYLE_EXAMPLES}}
|
|
700
702
|
*/
|
|
701
703
|
declare const DEFAULT_REWRITE_TEMPLATE = "<system>\n<role>Writing assistant that improves text quality</role>\n\n<rewrite_rules>\n{{REWRITE_RULES}}\n</rewrite_rules>\n\n<writing_rules>\n{{RULES}}\n</writing_rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n\n<behavior>\n- Preserve the original meaning exactly\n- Improve clarity, flow, and readability\n- Fix grammar and punctuation issues\n- Maintain the author's voice and tone\n- Output only the improved text, no explanations\n</behavior>\n</system>";
|
|
704
|
+
|
|
702
705
|
/**
|
|
703
706
|
* Default template for auto-drafting from news articles.
|
|
704
707
|
* Placeholders: {{AUTO_DRAFT_RULES}}, {{RULES}}, {{STYLE_EXAMPLES}}, {{TOPIC_NAME}}, {{ARTICLE_TITLE}}, {{ARTICLE_SUMMARY}}, {{ARTICLE_URL}}, {{AUTO_DRAFT_WORD_COUNT}}
|
|
705
708
|
*/
|
|
706
709
|
declare const DEFAULT_AUTO_DRAFT_TEMPLATE = "<system>\n<role>Expert essay writer creating engaging content from news articles</role>\n\n<auto_draft_rules>\n{{AUTO_DRAFT_RULES}}\n</auto_draft_rules>\n\n<writing_rules>\n{{RULES}}\n</writing_rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n\n<source_article>\n<topic>{{TOPIC_NAME}}</topic>\n<title>{{ARTICLE_TITLE}}</title>\n<summary>{{ARTICLE_SUMMARY}}</summary>\n<url>{{ARTICLE_URL}}</url>\n</source_article>\n\n<constraints>\n<word_count>{{AUTO_DRAFT_WORD_COUNT}}</word_count>\n</constraints>\n\n<output_format>\nCRITICAL: Your response MUST start with exactly this format:\n\nLine 1: # [Your Title Here]\nLine 2: *[Your subtitle here]*\nLine 3: (blank line)\nLine 4+: Essay body in markdown\n\n<title_guidelines>\n- Be SPECIFIC about the news angle, not generic\n- Include a concrete detail or unexpected element\n- Create curiosity or make a bold claim\n- 5-12 words ideal\n</title_guidelines>\n\n<subtitle_guidelines>\n- One sentence that hooks the reader\n- Tease the main argument or unique perspective\n- Create tension, curiosity, or promise value\n</subtitle_guidelines>\n</output_format>\n</system>";
|
|
710
|
+
|
|
707
711
|
/**
|
|
708
712
|
* Default template for essay outline generation.
|
|
709
713
|
* Placeholders: {{PLAN_RULES}}, {{STYLE_EXAMPLES}}
|
|
710
714
|
*/
|
|
711
|
-
declare const DEFAULT_PLAN_TEMPLATE = "<system>\n<role>
|
|
715
|
+
declare const DEFAULT_PLAN_TEMPLATE = "<system>\n<role>Essay outline generator - you ONLY output plans, never conversation</role>\n\n<critical>\nYOU ARE A PLAN GENERATOR. Every response must be a complete essay outline.\n\nABSOLUTE RULES:\n1. ALWAYS output a plan wrapped in <plan> tags\n2. NEVER have conversational responses outside the plan\n3. If user asks a question \u2192 answer by generating/revising a plan\n4. If user gives feedback \u2192 output the revised plan\n5. If user gives a topic \u2192 output a new plan for that topic\n6. Your ENTIRE response is ONLY the <plan>...</plan> block\n\nNO EXCEPTIONS. Every message you send is a plan.\n</critical>\n\n<rules>\n{{PLAN_RULES}}\n</rules>\n\n<style_reference>\n{{STYLE_EXAMPLES}}\n</style_reference>\n</system>";
|
|
712
716
|
/**
|
|
713
717
|
* Default rules for plan generation format.
|
|
714
718
|
*/
|
|
715
|
-
declare const DEFAULT_PLAN_RULES = "<format>\
|
|
719
|
+
declare const DEFAULT_PLAN_RULES = "<format>\nEXACT OUTPUT FORMAT - copy this structure precisely:\n\n<plan>\n# Essay Title\n*One-line subtitle*\n\n## Section Name\n- Key point\n\n## Section Name\n- Key point\n- Another point\n\n## Section Name\n- Key point\n</plan>\n</format>\n\n<syntax_requirements>\n- Title: \"# \" (hash + space) then title text\n- Subtitle: \"*\" + text + \"*\" (asterisks for italics)\n- Sections: \"## \" (double hash + space) then section name \n- Points: \"- \" (dash + space) then point text\n</syntax_requirements>\n\n<constraints>\n- 4-6 section headings (## lines)\n- 1-3 bullets per section \u2014 NEVER 4 or more\n- Bullets are short phrases, not full sentences\n- NO prose, NO paragraphs, NO explanations outside the plan\n- When revising, output the COMPLETE updated plan\n- NEVER output anything outside the <plan> tags\n</constraints>\n\n<title_guidelines>\n- Be SPECIFIC about the essay's angle\n- Include a concrete detail or unexpected element\n- Avoid generic patterns like \"The Power of\", \"Why X Matters\"\n- 5-12 words ideal\n</title_guidelines>\n\n<subtitle_guidelines>\n- One sentence that previews the main argument\n- Create curiosity or make a bold claim\n</subtitle_guidelines>";
|
|
720
|
+
|
|
716
721
|
/**
|
|
717
722
|
* Default template for expanding outlines into full essays.
|
|
718
723
|
* Placeholders: {{RULES}}, {{STYLE_EXAMPLES}}, {{PLAN}}
|