Repository navigation
VFG-84 手元のメモを題材の候補に加え、ニュースと面白さで比べて選ぶ - #54
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
手元の Obsidian の vault の
Inboxにある「調べたいこと」のメモを、題材の候補に加えます。メモの題と URL だけを暗号化してstateブランチの待ち行列に置き、選ぶ段で、ニュースの候補と並べて選びます。変更内容
vf inbox push --vault <path>:Inboxの.mdから、題 (# 見出し) と URL だけを取り出し、待ち行列に足す。同じファイル名のメモは足し直さない。本文のほかの文は読まず、持たない。出力は件数だけinbox/queue.enc.json) にしてstateブランチに置く。書くたびに nonce を作り直す。鍵はVF_INBOX_KEY(base64 の 32 バイト)<title>と説明) を取って候補にし、ニュースの候補と一緒に選ぶ。LLM に渡す候補にはメモの候補の枠を 2 件空けるが、無条件には優先しないcandidates.jsonに書かない。選ばれなかったメモの URL を含むログは、中身を伏せる。選ばれたメモは「使った」にし、二度は選ばないinbox.maxCandidates(既定 10)、.env.example、README (鍵の作り方・Secrets への登録・使い方)動作確認
pnpm lint、pnpm typecheck、pnpm test、pnpm format:checkが通るリスクの確認
.env*、キー、トークン) を含めていない.envだけに置く)人が確認すること
openssl rand -base64 32)、.envと GitHub の Secrets にVF_INBOX_KEYとして登録するgenerateの step の env にVF_INBOX_KEY: ${{ secrets.VF_INBOX_KEY }}を足す (.github/workflows/はこの PR では変えていない)。足すまでは、メモの候補なしで動くvf inbox pushを一度動かして、待ち行列に入ることを確かめる補足
<title>と説明だけです。深く解説する本文は、記事の本文の取得 (GitHub Blog・Qiita) の規則に従います。