@llm-newsletter-kit/core 1.0.0 → 1.0.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/README.md +1 -32
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -158,38 +158,7 @@ For detailed field descriptions, see `src/generate-newsletter/models/interfaces.
|
|
|
158
158
|
|
|
159
159
|
All chains are composed as a single pipeline using `@langchain/core/runnables` sequence.
|
|
160
160
|
|
|
161
|
-
|
|
162
|
-
sequenceDiagram
|
|
163
|
-
autonumber
|
|
164
|
-
actor Operator as Operator/CI
|
|
165
|
-
participant GN as GenerateNewsletter
|
|
166
|
-
participant TS as TaskService
|
|
167
|
-
participant CR as CrawlingChain (CrawlingProvider)
|
|
168
|
-
participant AN as AnalysisChain (AnalysisProvider)
|
|
169
|
-
participant CG as ContentGenerateChain (ContentGenerateProvider)
|
|
170
|
-
participant ES as EmailService (optional)
|
|
171
|
-
|
|
172
|
-
Operator->>GN: generate()
|
|
173
|
-
GN->>TS: start()
|
|
174
|
-
TS-->>GN: taskId
|
|
175
|
-
|
|
176
|
-
GN->>CR: run(crawlingTargetGroups)
|
|
177
|
-
CR-->>GN: saved count / urls
|
|
178
|
-
|
|
179
|
-
GN->>AN: run(unscored articles)
|
|
180
|
-
AN-->>GN: tags/scores updated
|
|
181
|
-
|
|
182
|
-
GN->>CG: run(candidates)
|
|
183
|
-
CG-->>GN: newsletter(id, html)
|
|
184
|
-
|
|
185
|
-
alt previewNewsletter enabled
|
|
186
|
-
GN->>ES: send(emailMessage, preview)
|
|
187
|
-
ES-->>GN: ok
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
GN->>TS: end()
|
|
191
|
-
GN-->>Operator: id | null
|
|
192
|
-
```
|
|
161
|
+

|
|
193
162
|
|
|
194
163
|
## Crawling & Parsing Philosophy: "Bring Your Own Scraper"
|
|
195
164
|
|
package/dist/index.cjs
CHANGED
|
@@ -1007,22 +1007,22 @@ Output Format & Requirements:
|
|
|
1007
1007
|
5. Detailed Content Writing Guidelines (Importance-Based Length Control):
|
|
1008
1008
|
**ABSOLUTE RULE: The writing length limits below are MAXIMUM constraints. DO NOT EXCEED these limits under any circumstances.**
|
|
1009
1009
|
|
|
1010
|
-
- **
|
|
1010
|
+
- **Full Detail Allowed: 9-10 points**
|
|
1011
1011
|
- Key Facts: 1-2 sentences in **bold** with source link [original title](URL).
|
|
1012
1012
|
- Related Targets & Scope: Bullet points for different target groups.
|
|
1013
1013
|
- Important Dates & Procedures: Deadlines, methods, required documents by step.
|
|
1014
1014
|
- Related Facts: Budget/scale/participants/scope as factual data.
|
|
1015
1015
|
- Use tables when comparing multiple items.
|
|
1016
1016
|
|
|
1017
|
-
- **
|
|
1017
|
+
- **ABSOLUTE MAXIMUM 3 SENTENCES: 6-8 points**
|
|
1018
1018
|
- Format: ONE sentence with **bold** key fact + [original title](URL) link. OPTIONALLY add ONE more sentence with critical detail (deadline/budget/target). NEVER EXCEED 3 SENTENCES TOTAL.
|
|
1019
1019
|
- DO NOT write bullet points, DO NOT write multiple paragraphs, DO NOT add subsections.
|
|
1020
1020
|
|
|
1021
|
-
- **
|
|
1021
|
+
- **ABSOLUTE MAXIMUM 1 SENTENCE: 1-5 points**
|
|
1022
1022
|
- Format: ONE single sentence with core fact + [original title](URL) link. PERIOD. NO ADDITIONAL SENTENCES.
|
|
1023
1023
|
- Multiple low-priority items can be grouped into a single bullet list.
|
|
1024
1024
|
|
|
1025
|
-
**VIOLATION WARNING: If you write more than the maximum sentences allowed
|
|
1025
|
+
**VIOLATION WARNING: If you write more than the maximum sentences allowed, the output will be rejected and you must regenerate.**
|
|
1026
1026
|
|
|
1027
1027
|
- **Structured Lists (Permits/Reports/Notices):** Create tables listing every item in individual rows without abbreviation, regardless of importance score.
|
|
1028
1028
|
- Use professional but friendly tone that's easy to understand. (Ex: Use "is notable" instead of "is", "is recommended" instead of "must", "needs to" etc.)
|
package/dist/index.js
CHANGED
|
@@ -1005,22 +1005,22 @@ Output Format & Requirements:
|
|
|
1005
1005
|
5. Detailed Content Writing Guidelines (Importance-Based Length Control):
|
|
1006
1006
|
**ABSOLUTE RULE: The writing length limits below are MAXIMUM constraints. DO NOT EXCEED these limits under any circumstances.**
|
|
1007
1007
|
|
|
1008
|
-
- **
|
|
1008
|
+
- **Full Detail Allowed: 9-10 points**
|
|
1009
1009
|
- Key Facts: 1-2 sentences in **bold** with source link [original title](URL).
|
|
1010
1010
|
- Related Targets & Scope: Bullet points for different target groups.
|
|
1011
1011
|
- Important Dates & Procedures: Deadlines, methods, required documents by step.
|
|
1012
1012
|
- Related Facts: Budget/scale/participants/scope as factual data.
|
|
1013
1013
|
- Use tables when comparing multiple items.
|
|
1014
1014
|
|
|
1015
|
-
- **
|
|
1015
|
+
- **ABSOLUTE MAXIMUM 3 SENTENCES: 6-8 points**
|
|
1016
1016
|
- Format: ONE sentence with **bold** key fact + [original title](URL) link. OPTIONALLY add ONE more sentence with critical detail (deadline/budget/target). NEVER EXCEED 3 SENTENCES TOTAL.
|
|
1017
1017
|
- DO NOT write bullet points, DO NOT write multiple paragraphs, DO NOT add subsections.
|
|
1018
1018
|
|
|
1019
|
-
- **
|
|
1019
|
+
- **ABSOLUTE MAXIMUM 1 SENTENCE: 1-5 points**
|
|
1020
1020
|
- Format: ONE single sentence with core fact + [original title](URL) link. PERIOD. NO ADDITIONAL SENTENCES.
|
|
1021
1021
|
- Multiple low-priority items can be grouped into a single bullet list.
|
|
1022
1022
|
|
|
1023
|
-
**VIOLATION WARNING: If you write more than the maximum sentences allowed
|
|
1023
|
+
**VIOLATION WARNING: If you write more than the maximum sentences allowed, the output will be rejected and you must regenerate.**
|
|
1024
1024
|
|
|
1025
1025
|
- **Structured Lists (Permits/Reports/Notices):** Create tables listing every item in individual rows without abbreviation, regardless of importance score.
|
|
1026
1026
|
- Use professional but friendly tone that's easy to understand. (Ex: Use "is notable" instead of "is", "is recommended" instead of "must", "needs to" etc.)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@llm-newsletter-kit/core",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.2",
|
|
6
6
|
"description": "An extensible framework to automate your entire newsletter workflow. Handles data collection, LLM-based content analysis, and email generation, letting you focus on your unique domain logic.",
|
|
7
7
|
"main": "dist/index.cjs",
|
|
8
8
|
"module": "dist/index.js",
|