euparliamentmonitor 0.8.32 → 0.8.33
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 -1
- package/package.json +1 -1
- package/scripts/constants/analysis-constants.d.ts +1 -1
- package/scripts/constants/analysis-constants.js +1 -1
- package/scripts/constants/language-articles.js +1 -1
- package/scripts/generators/news-enhanced.d.ts +2 -2
- package/scripts/generators/news-enhanced.js +3 -3
- package/scripts/generators/pipeline/generate-stage.js +2 -2
package/README.md
CHANGED
|
@@ -984,7 +984,7 @@ Projected workflow counts below include all CI/CD workflow definitions, agentic
|
|
|
984
984
|
|
|
985
985
|
| Year | Projected Workflow Definitions | AI Model | Key Capability |
|
|
986
986
|
|------|-------------------------------|----------|----------------|
|
|
987
|
-
| **2026** | 44–50 | Opus 4.
|
|
987
|
+
| **2026** | 44–50 | Opus 4.7–4.9 | 🟢 Agentic news generation |
|
|
988
988
|
| **2027** | 50–55 | Opus 5.x | 🔵 Predictive analytics |
|
|
989
989
|
| **2028** | 55–65 | Opus 6.x | 🟣 Multi-modal content |
|
|
990
990
|
| **2029** | 65–75 | Opus 7.x | 🟠 Autonomous pipeline |
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Any narrative or interpretive analysis text (for example: why, outlook,
|
|
16
16
|
* impact assessments, stakeholder reasoning, or mistake/consequence
|
|
17
17
|
* explanations) that is LEFT AS THIS MARKER is expected to be generated by
|
|
18
|
-
* the AI agent
|
|
18
|
+
* the AI agent in the agentic workflow, not by code.
|
|
19
19
|
*/
|
|
20
20
|
export declare const AI_MARKER = "[AI_ANALYSIS_REQUIRED]";
|
|
21
21
|
/**
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* Any narrative or interpretive analysis text (for example: why, outlook,
|
|
18
18
|
* impact assessments, stakeholder reasoning, or mistake/consequence
|
|
19
19
|
* explanations) that is LEFT AS THIS MARKER is expected to be generated by
|
|
20
|
-
* the AI agent
|
|
20
|
+
* the AI agent in the agentic workflow, not by code.
|
|
21
21
|
*/
|
|
22
22
|
export const AI_MARKER = '[AI_ANALYSIS_REQUIRED]';
|
|
23
23
|
/**
|
|
@@ -3140,7 +3140,7 @@ export const WEEK_AHEAD_STAKEHOLDER_STRINGS = {
|
|
|
3140
3140
|
reasonInstitutionsCoordination: '需要机构间协调',
|
|
3141
3141
|
},
|
|
3142
3142
|
};
|
|
3143
|
-
// ─── AI analysis marker — all analysis text is produced by the AI agent
|
|
3143
|
+
// ─── AI analysis marker — all analysis text is produced by the AI agent ───
|
|
3144
3144
|
const AI_ANALYSIS_MARKER = '[AI_ANALYSIS_REQUIRED]';
|
|
3145
3145
|
const BRK_WHY_ANOMALIES = AI_ANALYSIS_MARKER;
|
|
3146
3146
|
const BRK_WHY_NORMAL = AI_ANALYSIS_MARKER;
|
|
@@ -26,13 +26,13 @@ export declare const runId: string;
|
|
|
26
26
|
/**
|
|
27
27
|
* AI-generated article title passed by the agentic workflow.
|
|
28
28
|
* When provided, this OVERRIDES any script-generated title.
|
|
29
|
-
* The AI agent
|
|
29
|
+
* The AI agent must analyse the content and produce this.
|
|
30
30
|
*/
|
|
31
31
|
export declare const aiTitle: string;
|
|
32
32
|
/**
|
|
33
33
|
* AI-generated article description/subtitle passed by the agentic workflow.
|
|
34
34
|
* When provided, this OVERRIDES any script-generated description.
|
|
35
|
-
* The AI agent
|
|
35
|
+
* The AI agent must analyse the content and produce this.
|
|
36
36
|
*/
|
|
37
37
|
export declare const aiDescription: string;
|
|
38
38
|
/**
|
|
@@ -96,13 +96,13 @@ export const runId = (runIdArg?.slice('--run-id='.length).trim() ||
|
|
|
96
96
|
/**
|
|
97
97
|
* AI-generated article title passed by the agentic workflow.
|
|
98
98
|
* When provided, this OVERRIDES any script-generated title.
|
|
99
|
-
* The AI agent
|
|
99
|
+
* The AI agent must analyse the content and produce this.
|
|
100
100
|
*/
|
|
101
101
|
export const aiTitle = titleArg ? titleArg.slice('--title='.length).trim() : '';
|
|
102
102
|
/**
|
|
103
103
|
* AI-generated article description/subtitle passed by the agentic workflow.
|
|
104
104
|
* When provided, this OVERRIDES any script-generated description.
|
|
105
|
-
* The AI agent
|
|
105
|
+
* The AI agent must analyse the content and produce this.
|
|
106
106
|
*/
|
|
107
107
|
export const aiDescription = descriptionArg
|
|
108
108
|
? descriptionArg.slice('--description='.length).trim()
|
|
@@ -378,7 +378,7 @@ async function runAnalysisWithGuard(date, client) {
|
|
|
378
378
|
}
|
|
379
379
|
/**
|
|
380
380
|
* Wire AI-provided title/description from CLI `--title` and `--description` flags.
|
|
381
|
-
* The AI agent
|
|
381
|
+
* The AI agent passes these after analysing the content.
|
|
382
382
|
* They override ALL script-generated metadata for the English version.
|
|
383
383
|
*/
|
|
384
384
|
function wireAIMetadata() {
|
|
@@ -19,7 +19,7 @@ import { writeSingleArticle } from './output-stage.js';
|
|
|
19
19
|
/**
|
|
20
20
|
* AI-generated article title provided by the agentic workflow.
|
|
21
21
|
* When non-empty, this OVERRIDES any script-generated title for the
|
|
22
|
-
* English version. The AI agent
|
|
22
|
+
* English version. The AI agent must analyse the article
|
|
23
23
|
* content and produce this — titles must NEVER be generated by code.
|
|
24
24
|
*/
|
|
25
25
|
let _aiTitle = '';
|
|
@@ -130,7 +130,7 @@ function generateSingleLanguageArticle(strategy, data, lang, dateStr, slug, outp
|
|
|
130
130
|
// preserved, but title and description enrichment is now subordinate
|
|
131
131
|
// to AI-provided values from --title and --description CLI flags.
|
|
132
132
|
//
|
|
133
|
-
// Architecture: The AI agent
|
|
133
|
+
// Architecture: The AI agent analyses the content and
|
|
134
134
|
// provides titles/descriptions via CLI flags. Script code NEVER
|
|
135
135
|
// generates final titles or descriptions — it only provides fallbacks.
|
|
136
136
|
const enrichedMetadata = enrichMetadataFromContent(content, baseMetadata);
|