Repository navigation
feat: 規約の本文と同意の版の比較を @lumorphia/legal に足す - #17
Merged
Merged
Conversation
lumorphia/prismtone の docs/legal の読み取りと表示 (frontmatter、marked で生の HTML を通さない)、 改定日の表記、同意した版と今の版の比較 (メジャー番号が違えば再同意) を移す。同意した版は組で 受け取り、記録の形はサービスが決める。画面でも動くよう Node API を使わない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
lumorphia/scenote の ADR-0006 の順番の 5 番目 (ADR-0008)。
parseLegalDocument: 本文の frontmatter から版 (メジャー.マイナー) と改定日を読むrenderLegalMarkdown: Markdown を HTML に (marked、生の HTML はエスケープ)formatUpdatedAt: 改定日を「2026 年 10 月 9 日」にneedsReconsent(accepted, current): 同意した版と今の版のメジャー番号が違えば再同意。同意した版は組 ({ terms, privacy }かnull) で受け取る。accounts のように 2 列で持つサービスでも使えるformatConsentVersion/parseConsentVersion: prismtone の 1 列の形 ("terms=1.0;privacy=1.0")中身は prismtone の
packages/shared/src/constants/legal-version.tsとapps/app/web/lib/legal.tsから移した。prismtone の載せ替えは公開後に別の PR で。accounts は、再同意を作るときに載せ替える。テスト 17 件 (版の比較・本文・tooling) を先に書いて落ちるのを確かめた。lint・format・typecheck・test:coverage (241 passed)・build。
パッケージを足したので、develop → main で manifest がコンフリクトする (AGENTS.md の release ブランチの手順で解く)。
🤖 Generated with Claude Code