From 51f2761c2a71482f9a9cb4803994153ca90c9d60 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 20 Jun 2026 13:10:07 +0900 Subject: [PATCH 1/5] enhance: add url to readme in user agent --- src/utils/got.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/got.ts b/src/utils/got.ts index eaa9e55c..3fd2b407 100644 --- a/src/utils/got.ts +++ b/src/utils/got.ts @@ -29,7 +29,7 @@ export type GotOptions = { export const DEFAULT_RESPONSE_TIMEOUT = 20 * 1000; export const DEFAULT_OPERATION_TIMEOUT = 60 * 1000; export const DEFAULT_MAX_RESPONSE_SIZE = 10 * 1024 * 1024; -export const DEFAULT_BOT_UA = `SummalyBot/${_VERSION_}`; +export const DEFAULT_BOT_UA = `SummalyBot/${_VERSION_} (+https://github.com/misskey-dev/summaly/blob/master/README.md)`; export function getGotOptions(url: string, opts?: GeneralScrapingOptions): Omit { return { From 76ef3d3eb0d00f6c6d473b5e5711acca24581013 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 20 Jun 2026 13:10:17 +0900 Subject: [PATCH 2/5] enhance: expose version as a variable --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index e0f94950..14761ff7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -72,6 +72,8 @@ export const summalyDefaultOptions = { plugins: [], } as SummalyOptions; +export const version = _VERSION_; + /** * Summarize an web page */ From 414547cfe1459cdd9c457bba8283094e907a1810 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 20 Jun 2026 13:11:50 +0900 Subject: [PATCH 3/5] Update Changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63778f77..ba6ca8be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +5.5.0 / 2026/xx/xx +------------------ + +* デフォルトの User Agent に、summaly の readme へのリンクを含めるようにしました。 +* 現在お使いの summaly のバージョンを export するように + 5.4.0 / 2026/05/11 ------------------ * テキストのデコードに `TextDecoder` を使用するように From e2b72dbaff05108e8fda25588d751979ec05427b Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 20 Jun 2026 13:15:04 +0900 Subject: [PATCH 4/5] fix readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 129b1e27..bd323343 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ npm run serve | **followRedirects** | *boolean* | Whether follow redirects | `true` | | **plugins** | *plugin[]* (see below) | Custom plugins | `null` | | **agent** | *Got.Agents* | Custom HTTP agent (see below) | `null` | -| **userAgent** | *string* | User-Agent for the request | `SummalyBot/[version]` | +| **userAgent** | *string* | User-Agent for the request | `SummalyBot/[version] (+[Link to README file in GitHub])` | | **responseTimeout** | *number* | Set timeouts for each phase, such as host name resolution and socket communication. | `20000` | | **operationTimeout** | *number* | Set the timeout from the start to the end of the request. | `60000` | | **contentLengthLimit** | *number* | If set to true, an error will occur if the content-length value returned from the other server is larger than this parameter (or if the received body size exceeds this parameter). | `10485760` | From ee5b81960410152c706a7d40572dc25b24556d26 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 20 Jun 2026 13:15:43 +0900 Subject: [PATCH 5/5] fix readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bd323343..389738a8 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ summaly [![][himawari-badge]][himasaku] [![][sakurako-badge]][himasaku] +Get summary of web page. + Installation ---------------------------------------------------------------- ```