<feed xmlns='http://www.w3.org/2005/Atom'>
<title>yasutakeyohei.com/scripts, branch main</title>
<subtitle>公式ウェブサイトのソースコード（Astro + Starlight）</subtitle>
<id>https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/atom/scripts?h=main</id>
<link rel='self' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/atom/scripts?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/'/>
<updated>2026-11-23T00:52:32Z</updated>
<entry>
<title>post-x-events.mjs: 投稿の冒頭に実施中のパブコメを載せる</title>
<updated>2026-11-23T00:52:32Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-23T00:52:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=906bebc41f97dfaa958738d8cf7dc162ca0a14ed'/>
<id>urn:sha1:906bebc41f97dfaa958738d8cf7dc162ca0a14ed</id>
<content type='text'>
- pubcomments.json から今日が受付期間内のものを抽出し、締切順に表示
- 題名は「小平市」「（素案）」などを省いて短くする
- 受付中のものがないときはブロックを出さない
</content>
</entry>
<entry>
<title>events.json: 図書館イベントの出典に図書館ページを併記</title>
<updated>2026-11-23T00:51:30Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-23T00:51:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=aa591b1fd65253f925138b3ad5d1b9688b2a9122'/>
<id>urn:sha1:aa591b1fd65253f925138b3ad5d1b9688b2a9122</id>
<content type='text'>
- 秋のおはなし工作会・図書館のスペシャルおはなし会の source に図書館のページを追加
- update-library-dates.mjs: 市報など他の出典を併記している行は自動同期しない
  （図書館カレンダーに誤りがある事例があるため）
</content>
</entry>
<entry>
<title>events.json: 図書館・小金井公園・ふるさと村の新着を反映</title>
<updated>2026-11-23T00:42:59Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-23T00:42:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=be3c9c978843453c46a599792450d9750d005630'/>
<id>urn:sha1:be3c9c978843453c46a599792450d9750d005630</id>
<content type='text'>
- 障害者週間特別展示（11/28〜12/16、市内全図書館）を追加
- 小金井公園 防災フェスタ2026（12/6）を追加
- 小平ふるさと村 お芝居ワークショップ「ひみつきち」（12/12・13）を追加
- update-library-dates.mjs を events.json 対応に修正（ページ移転で動かなくなっていた）
</content>
</entry>
<entry>
<title>verify-shihou.mjs: 市報PDFと抽出ドラフトの照合スクリプトを追加</title>
<updated>2026-11-20T05:23:23Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-20T05:23:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=8c1874e1fb967b507467f6218935d2f7fe65b5da'/>
<id>urn:sha1:8c1874e1fb967b507467f6218935d2f7fe65b5da</id>
<content type='text'>
- PDFの文字を内容ストリーム順に取り出し、ドラフトの日付・電話番号・市HP IDを照合する
- 抽出は scripts/extract-shihou-text.py、照合は npm run shihou:verify
- NGは「PDFに無い」と断定せず、目視確認を促す
</content>
</entry>
<entry>
<title>fetch-city-events.mjs: 市ホームページのイベント一覧を走査するスクリプトを追加</title>
<updated>2026-11-17T14:28:34Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-17T14:28:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=f7240a325c5647e2f3fb46a81ed51bef51b2730b'/>
<id>urn:sha1:f7240a325c5647e2f3fb46a81ed51bef51b2730b</id>
<content type='text'>
「/event/」の各イベントから開催日を取り出し、今日以降のものを一覧表示する。--missing を付けると予定データに無いものを抽出できる（題名の先頭6文字で照合するため、表記ゆれによる誤検出はある）。
</content>
</entry>
<entry>
<title>fetch-logoform-events.mjs: ブラウザ経由で一覧APIを傍受するフォールバックを追加</title>
<updated>2026-11-17T13:46:52Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-17T13:46:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=69e32f1f4a171b6575e2cf2565c87664fce583c8'/>
<id>urn:sha1:69e32f1f4a171b6575e2cf2565c87664fce583c8</id>
<content type='text'>
curl が自動アクセス防止の画面を受け取りJSONを取得できない場合に、Playwrightで手続きページを開いて一覧APIのレスポンスをそのまま使うようにした。
</content>
</entry>
<entry>
<title>post-x-events.mjs: 前回の投稿を削除してから投稿する--replaceを追加</title>
<updated>2026-11-10T15:43:27Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-10T15:43:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=7e146b1dd756589ea0863b8d1c3fc70894666cb1'/>
<id>urn:sha1:7e146b1dd756589ea0863b8d1c3fc70894666cb1</id>
<content type='text'>
認証情報の読み込みを共通化し、DELETE /2/tweets/:id で直近の前回投稿を削除できるようにした。削除対象は履歴に記録された自分の投稿IDのみで、削除に失敗しても投稿は続行する。
</content>
</entry>
<entry>
<title>post-x-events.mjs: 今日すでに終了した予定を投稿から除く</title>
<updated>2026-11-08T15:03:41Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-08T15:03:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=8da814de863f6f94e5baa5d3f1e364e7f2453ad1'/>
<id>urn:sha1:8da814de863f6f94e5baa5d3f1e364e7f2453ad1</id>
<content type='text'>
時間・会場セルから終了時刻を読み取り、今日の分は終了時刻を過ぎた予定を除外する。終了時刻の記載がない場合は開始の2時間後とみなし、未定・時刻なしの予定は残す。動作確認用に --at HH:MM を追加。
</content>
</entry>
<entry>
<title>parks: 周辺公園を一覧表に表示し、保存時の同名統合を修正</title>
<updated>2026-11-08T14:56:57Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-08T14:56:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=5e0dbb7535c03f9999da54083e9187a223690d61'/>
<id>urn:sha1:5e0dbb7535c03f9999da54083e9187a223690d61</id>
<content type='text'>
parks-rows.ts: 周辺の公園も市内公園と同じ設備項目を一覧表に出す
park-editor.mjs: 重複判定をOSM ID（なければ名前+住所）に変え、
同名の別公園が保存で消えないようにする
kodaira-nearby-parks.json: 水飲み場「？」と復元した萩山公園を反映
</content>
</entry>
<entry>
<title>post-x-events.mjs: 週1回分の予定投稿と認証確認に対応</title>
<updated>2026-11-08T14:54:04Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-08T14:54:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=27b5325f2d89b3a714059719e4c4cbe931b5b1a3'/>
<id>urn:sha1:27b5325f2d89b3a714059719e4c4cbe931b5b1a3</id>
<content type='text'>
既定を「今後1週間分」（--days 7）にし、日付ごとの見出しと「期間中」のまとめを追加した。前回から7日経っていなければ投稿しない間隔判定（X_POST_INTERVAL_DAYS）と1日3件の上限を設け、--check で認証を確認できるようにした。返信投稿（X_REPLY_TO_ID / --reply-to）と、掲載漏れがあり得る旨の注意書きも追加。
</content>
</entry>
</feed>
