@heripo/research-radar 6.2.0 → 6.2.1
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 +33 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4748,6 +4748,13 @@ class AnalysisProvider {
|
|
|
4748
4748
|
targetUrl: 'https://www.seamuse.go.kr/resources/academicreport/list/1#tab4',
|
|
4749
4749
|
minScore: 6,
|
|
4750
4750
|
},
|
|
4751
|
+
// Injected journal issues: the prompt asks for the same floor that
|
|
4752
|
+
// `update()` enforces, so the model is not asked for scores it cannot
|
|
4753
|
+
// keep.
|
|
4754
|
+
{
|
|
4755
|
+
targetUrl: JOURNAL_ISSUE_LIST_URL,
|
|
4756
|
+
minScore: JOURNAL_ISSUE_MINIMUM_SCORE,
|
|
4757
|
+
},
|
|
4751
4758
|
// Excavation report news: minimum score 2
|
|
4752
4759
|
{
|
|
4753
4760
|
targetUrl: 'https://www.e-minwon.go.kr/ge/ee/getListEcexmPrmsnAply.do',
|
|
@@ -4785,10 +4792,35 @@ class AnalysisProvider {
|
|
|
4785
4792
|
async update(article) {
|
|
4786
4793
|
await this.articleRepository.updateAnalysis({
|
|
4787
4794
|
...article,
|
|
4788
|
-
importanceScore: capScoreByHeritageDomain(
|
|
4795
|
+
importanceScore: capScoreByHeritageDomain({
|
|
4796
|
+
...article,
|
|
4797
|
+
importanceScore: raiseJournalIssueScore(article),
|
|
4798
|
+
}),
|
|
4789
4799
|
});
|
|
4790
4800
|
}
|
|
4791
4801
|
}
|
|
4802
|
+
/**
|
|
4803
|
+
* Lowest score an injected journal issue article is saved with.
|
|
4804
|
+
*
|
|
4805
|
+
* The application only injects issues of journals it chose for the
|
|
4806
|
+
* newsletter, and their papers are filtered for the readers when rendered, so
|
|
4807
|
+
* a low score must not drop a whole issue before then: the application leaves
|
|
4808
|
+
* articles scored 1 out of the candidates.
|
|
4809
|
+
*/
|
|
4810
|
+
const JOURNAL_ISSUE_MINIMUM_SCORE = 6;
|
|
4811
|
+
/**
|
|
4812
|
+
* Enforces the journal issue floor on the saved score.
|
|
4813
|
+
*
|
|
4814
|
+
* Core only states `minimumImportanceScoreRules` in the prompt; it keeps the
|
|
4815
|
+
* model's score as returned and falls back to 1 when scoring fails. The floor
|
|
4816
|
+
* is applied here so neither can drop an issue. The per-domain ceiling still
|
|
4817
|
+
* applies afterwards.
|
|
4818
|
+
*/
|
|
4819
|
+
function raiseJournalIssueScore(article) {
|
|
4820
|
+
return article.targetUrl === JOURNAL_ISSUE_LIST_URL
|
|
4821
|
+
? Math.max(article.importanceScore, JOURNAL_ISSUE_MINIMUM_SCORE)
|
|
4822
|
+
: article.importanceScore;
|
|
4823
|
+
}
|
|
4792
4824
|
/**
|
|
4793
4825
|
* Applies the per-domain score ceiling from `maximumImportanceScoreByDomain`.
|
|
4794
4826
|
*
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@heripo/research-radar",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "6.2.
|
|
5
|
+
"version": "6.2.1",
|
|
6
6
|
"description": "AI-driven intelligence for Korean cultural heritage. This package serves as both a ready-to-use newsletter service and a practical implementation example for the LLM-Newsletter-Kit.",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|