GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — Chore(deps-dev): Bump electron from 41.3.0 to 42.0.0 in the electron group across 1 directory by dependabot[bot] · Pull Request #7 · ymnao/scripta Conversation
|
|
@dependabot rebase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry! If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@dependabot recreate |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Bumps the electron group with 1 update in the / directory: [electron](https://github.com/electron/electron). Updates `electron` from 41.3.0 to 42.0.0 - [Release notes](https://github.com/electron/electron/releases) - [Commits](electron/electron@v41.3.0...v42.0.0) --- updated-dependencies: - dependency-name: electron dependency-version: 41.5.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: electron ... Signed-off-by: dependabot[bot] <[email protected]>
e261291 to
9cc6c59
Compare
There was an error while loading. Please reload this page.
/code-review で検出した 7 件全てに対応。最重要は self-counting 解消 (scripts/check-tauri-residue.sh → scripts/check-legacy-residue.sh)。 Fix #1: self-counting で Phase 5 green 化が原理的に不可能だった問題: - scripts/check-tauri-residue.sh → check-legacy-residue.sh にリネーム - ci.yml job tauri-residue → legacy-residue にリネーム - package.json check:tauri-residue → check:legacy-residue にリネーム - ci.yml コメントから "Tauri" / "WKWebView" verbatim を排除 - 結果: 88 行 (うち 4 行 self-reference) → 84 行 baseline と一致 Fix #2: pnpm verify が CI と divergence していた問題: - verify chain に typecheck:e2e + build を追加 - check:legacy-residue は意図 fail のため verify には含めない (CLAUDE.md で「補助」として別行案内) Fix #3: PATHS の coverage gap: - pnpm-workspace.yaml (CLAUDE.md 上 canonical config) 追加 - vite.config.e2e.ts 追加 - tsconfig.json (root) 追加 - docs/tauri-purge-inventory.md §2.1 にも追従 Fix #4: WebKit 扱いの inventory との非整合: - script ヘッダで WebKit 除外の意図を明記 (-webkit- prefix FP 回避) - inventory §2.1 / §2.5 / §2.6 で CI ガードとの差分を明記 (ime.ts:4 等 WebKit 系コメントは CI 非対象 → Phase 3 で手動チェック) Fix #5: git grep exit ≥2 (pathspec error / 非 git repo 等) を silently success として扱っていた問題: - if RESULT=$(...) を捨て、明示的に EXIT=$? を捕捉 - case 0 / 1 / *) で 3 分岐 (match / no-match / error) - error 時は stderr 出力 + exit 2 Fix #6: continue-on-error は workflow 成否にのみ作用し job の check-run は failure のまま残るため、branch protection の required status checks に追加すると merge blocking される: - workflow コメントに caveat を追記 - 「Phase 5 完了まで required 化しない」運用を明示 Fix #7: :(exclude)scripts/check-tauri-residue.sh の dead code 化: - 新ファイル名 :(exclude)scripts/check-legacy-residue.sh に更新 - 「PATHS に scripts/ を含めないため現状 no-op、defensive 配置」コメント 追記 検証: - bash scripts/check-legacy-residue.sh → 84 行検出 (PR 直前と一致) - pnpm verify (format / lint / typecheck / typecheck:e2e / test / test:e2e / build) 全 pass Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
* chore: Tauri 残骸検出 CI ガードを追加 (#82 Phase 1 PR-2) Issue #82 サブタスク D。Phase 2-5 の削除・置換進捗を質的に追跡する CI ガードを設置する。 変更: - scripts/check-tauri-residue.sh: 13 種の FORBIDDEN keyword (tauri / wkwebview / __TAURI / webviewWindow / @tauri-apps / src-tauri / tauri:// / tauri-plugin / data-tauri- / convertFileSrc / WebviewWindow / appWindow / tauri.conf) を git grep で検出。1 hit でも exit 1。対象スコープは docs/tauri-purge-inventory.md §2.1 と同期。-webkit- prefix CSS の false positive は keyword に WebKit を含めないことで除外 - package.json: check:tauri-residue script + verify script を追加 (verify = format && lint && typecheck && test && test:e2e の chain を codify。check:tauri-residue は Phase 5 完了時に verify へ合流予定) - .github/workflows/ci.yml: tauri-residue job を追加。Phase 1 時点 では既存残骸 84 行が検出され意図 fail するため continue-on-error: true で merge を blocking しない運用。Phase 5 完了 PR で除去 - CLAUDE.md: 「コミット前の検証」を pnpm verify に集約 ローカル実行: 84 行検出で exit 1 (期待動作)。inventory §2.2 の 集計 (B 14 行 + 残り A/C/D) と整合。 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * chore: PR #103 code-review 7 件反映 (CI ガード設計欠陥修正) /code-review で検出した 7 件全てに対応。最重要は self-counting 解消 (scripts/check-tauri-residue.sh → scripts/check-legacy-residue.sh)。 Fix #1: self-counting で Phase 5 green 化が原理的に不可能だった問題: - scripts/check-tauri-residue.sh → check-legacy-residue.sh にリネーム - ci.yml job tauri-residue → legacy-residue にリネーム - package.json check:tauri-residue → check:legacy-residue にリネーム - ci.yml コメントから "Tauri" / "WKWebView" verbatim を排除 - 結果: 88 行 (うち 4 行 self-reference) → 84 行 baseline と一致 Fix #2: pnpm verify が CI と divergence していた問題: - verify chain に typecheck:e2e + build を追加 - check:legacy-residue は意図 fail のため verify には含めない (CLAUDE.md で「補助」として別行案内) Fix #3: PATHS の coverage gap: - pnpm-workspace.yaml (CLAUDE.md 上 canonical config) 追加 - vite.config.e2e.ts 追加 - tsconfig.json (root) 追加 - docs/tauri-purge-inventory.md §2.1 にも追従 Fix #4: WebKit 扱いの inventory との非整合: - script ヘッダで WebKit 除外の意図を明記 (-webkit- prefix FP 回避) - inventory §2.1 / §2.5 / §2.6 で CI ガードとの差分を明記 (ime.ts:4 等 WebKit 系コメントは CI 非対象 → Phase 3 で手動チェック) Fix #5: git grep exit ≥2 (pathspec error / 非 git repo 等) を silently success として扱っていた問題: - if RESULT=$(...) を捨て、明示的に EXIT=$? を捕捉 - case 0 / 1 / *) で 3 分岐 (match / no-match / error) - error 時は stderr 出力 + exit 2 Fix #6: continue-on-error は workflow 成否にのみ作用し job の check-run は failure のまま残るため、branch protection の required status checks に追加すると merge blocking される: - workflow コメントに caveat を追記 - 「Phase 5 完了まで required 化しない」運用を明示 Fix #7: :(exclude)scripts/check-tauri-residue.sh の dead code 化: - 新ファイル名 :(exclude)scripts/check-legacy-residue.sh に更新 - 「PATHS に scripts/ を含めないため現状 no-op、defensive 配置」コメント 追記 検証: - bash scripts/check-legacy-residue.sh → 84 行検出 (PR 直前と一致) - pnpm verify (format / lint / typecheck / typecheck:e2e / test / test:e2e / build) 全 pass Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
* fix(deps): [email protected] の Path Traversal 脆弱性を override で解消(Dep #7) tmp-promise → [email protected](GHSA 対象)を >=0.2.6 に強制。 ビルド時のみ使用される transitive dep のため、ランタイム影響なし。 Co-Authored-By: Claude Opus 4.6 <[email protected]> * feat: PDF/HTML export の KaTeX CSS/font を完全オフライン化(#121) - scripts/generate-katex-css.js でビルド時に katex.min.css の woff2 font を data: URI に inline 化し src/generated/katex-inline-css.ts に書き出す - export.ts の CDN <link> を <style> による inline 埋め込みに置換 - woff/ttf fallback を除去(woff2 は全モダンブラウザ対応済み) - postinstall / dev / build の scripts に生成スクリプトを chain Co-Authored-By: Claude Opus 4.6 <[email protected]> * refactor: /simplify 指摘対応 — buildFence 切り出し・生成スクリプト改善 - buildFence を code-fence.ts へ移動し、MarkdownEditor が export.ts を eager import しなくなった(katexInlineCss ~368KB の起動時ロード回避) - generate-katex-css.js に mtime チェック追加(up-to-date なら即終了) - woff/ttf 除去 regex を 1 つに統合 - dist / test:e2e:electron の scripts に generate chain を追加(漏れ修正) Co-Authored-By: Claude Opus 4.6 <[email protected]> * fix: クリーン checkout で typecheck/test が壊れる問題を修正 src/generated/ は gitignore のため、postinstall 未実行の状態で typecheck / test / dev:e2e 等を単独実行すると TS2307 で失敗していた。 生成スクリプトの mtime チェックにより up-to-date 時は即終了するため、 全コマンドに chain しても実行コストは無視可能。 Co-Authored-By: Claude Opus 4.6 <[email protected]> * fix: プロンプト export のデフォルトテンプレートから CDN 記述を除去 HTML/PDF export は inline CSS 化済みだが、プロンプト export の 指示文に CDN 利用の記述が残っていた。オフライン化の方針に合わせて インライン CSS + data URL font の埋め込み指示に変更。 Co-Authored-By: Claude Opus 4.6 <[email protected]> * fix: 生成スクリプトの stale mtime キャッシュ撤去 + テスト強化 - mtime 比較による早期終了を削除。pnpm は package files に元の mtime を保持する場合があり、katex 更新時に再生成されない恐れがあった - 生成スクリプトに変換後の self-check を追加(url(fonts/) や https?:// が CSS に残っていたら即エラー) - テストに data:font/woff2;base64 の存在確認と url(fonts/) 不在、 外部 stylesheet link 不在の assertion を追加 Co-Authored-By: Claude Opus 4.6 <[email protected]> * docs: exploratory-qa の KaTeX CDN 既知バグ記述を更新 #79 は #121 で解消済み、#93 も修正済みであることを反映。 Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
…A) (#395) * feat: search/scan IPC の FileListCache + watcher hook を導入 (#394 Phase A) - canonical workspace root ごとに `.md` パス集合を持つ FileListCache を新設 - 派生物 (sorted / fileMap / existingStems) は lazy 構築 + batch 適用で dirty 化 - watcher.ts の flush から canonical batch を tap して cache を先に更新 - watcher:start で acquire / stopWatcherForWindow で release (refcount) - collectMdFilesForWorkspace を cache 経路 + populate + 直接 walk の 3 分岐に整理 - walkMdFiles に isStale を追加 (#7 の cancel 穴の暫定手当) - scanBacklinksImpl の self-reference / fileMap 判定を canonical ベースに統一 - search-cache.test.ts で refcount / batch / populate epoch guard / in-flight dedup を検証 Co-Authored-By: Claude Opus 4.7 <[email protected]> * refactor: /simplify 指摘を反映 (#394 Phase A round 1) - collectMdFilesForWorkspace の cached pre-check を落として 2 分岐に整理 (populate 側が同じ判定を持つため重複) - populateFileListCache の `?? result` fallback を削除 (setCacheFiles 後は getSortedFiles が必ず非 null で unreachable な defensive path だった) - processMdFilesParallel の skipFile を (ioFile) 単一引数に戻す (scanBacklinksImpl は ioFile しか使わない) - MdFiles.input を mutable にして searchFilenamesImpl の `[...input]` spread を除去 (canonicalToInputPaths の返り値は毎回新規確保で安全) - 未使用の getCachedMdFiles import を削除 Co-Authored-By: Claude Opus 4.7 <[email protected]> * fix: code-reviewer round 1 指摘の Warning を修正 (#394 Phase A) - Warning 1: populateFileListCache の epoch guard 失敗時に walk 生の unsorted 配列が返っていたのを sortWalkResult で byteCmp 済みにして返す。 「collectMdFilesForWorkspace は常に sort 済み」不変条件を維持 - Warning 2: scanBacklinksImpl の fileMap / self-reference 判定を canonical 比較から旧仕様の input 比較に戻す。canonical だと workspace 内 symlink ノート (`alias.md -> actual.md`) で walk 側 `.../alias.md` と realpath 済み target `.../actual.md` が食い違い backlink が空になる regression - 上記に伴い getCachedFileMap の import と processMdFilesParallel の skipFile 引数を revert (input inFile 単一引数) - search-cache.test.ts: epoch guard 失敗時テストを 3 要素に増やして 「返り値も byteCmp 済み」を lock Co-Authored-By: Claude Opus 4.7 <[email protected]> --------- Co-authored-by: Claude Opus 4.7 <[email protected]>
…#7 クローズ) (#409) * feat: #394 Phase D 本配線 (searchFilesImpl を L3 candidates 経由化 + #399 消化 + #7 クローズ) - searchFilesImpl を L3 InvertedIndex 候補経由に本配線 - buildScanList 純関数 (inverted-index.ts) で候補 ∪ (allIoFiles \ indexedValid) に絞る - caseSensitive / disabled / query.length<2 / 改行含 query は全走査 fallback - #399 Finding 2 (symlink 認可境界) - walkMdFiles で symlink dir 再帰を除外 (loop 防御 + 主要経路 potential 露出遮断) - piggyback / idle-fill の indexFile 直前で realpath → isRealPathInsideRoot 再確認 - #399 Finding 1 (valid-skip x dark assert regression) - verifyIndexSuperset を violation 内訳返却の collectViolations に分解 - dark assert を dual-run 化 (candidates 経路 vs 全走査 で hit file 集合を突合) - violation → 該当 file を disk から再 index → 再検証。解消なら warn、未解消なら throw - #7 (walk 直列 await) クローズ準備 - populate 経路にも entry-alive baseline の isStale を渡し、workspace close で walk 早期 return - 実 Electron e2e safety net: chokidar → L3 end-to-end + dual-run 突合 (search-l3.electron.spec.ts) unit test 2796 passed。 * refactor: Phase D round 1 /simplify 対応 (allowed 公式統合 / idle-fill order / isRealPathAllowed 必須化) /simplify 4 agents 並列 → 主要 finding を fix: - inverted-index.ts の buildScanList と collectViolations の allowed 集合公式が独立実装 → isScanEligible 純関数に集約 (公式ズレの再発防止) - collectViolations の JSDoc に「reindex callback を持つ」旨の dead 記述が残っていたので削除 (実装では callback を持たず、reindex は呼び手責務) - idle-fill: readFile → realpath 認可の順を realpath → readFile に反転 (workspace 外 symlink に対する全文読み込みコストを 0 に落とす) - IdleFillDeps.isRealPathAllowed を optional → required に変更 (fail-open 事故を型で防ぐ。test の fake deps は `async () => true` で境界通過を明示) - e2e safety net から `fill("")` → `fill(query)` の 2 段 debounce を除去 (単発切替) Skip 記録: - collectIndexedValid 毎回 O(N) / indexFile 内容同一性チェックなし / pathToId 無制限成長: 既存問題、Phase D scope 外 (follow-up 起票候補) - runDarkAssert の別 module 切り出し: wikilink/backlink への横展開計画未確定 - walkMdFiles symlink 除外の引数化: followSymlinks 設定導入時に判断 (YAGNI) - populate isStale の JSDoc 追加: round 2 或は dismiss - e2e fixture 統合: 個別 spec の独立性、統一は別 PR - L2 hit/miss の realpath ガード共通化: 型/意味論の差 (epoch capture の pre/post) で明快さが落ちるため見送り * fix: Phase D round 1 code-reviewer (Fable) 対応 (dark assert epoch 逆順 + walk dead code + e2e detection) Fable code-reviewer 主要 finding を fix: - W1 (Critical race): runDarkAssert の re-index で epoch capture が readFile より後 → bump 後の epoch を capture して stale text を新 epoch で valid 化する race。piggyback / idle-fill と同順序 (capture-before-read) に修正 - W2 (dead code): walkMdFiles の `if (ent.isSymbolicLink()) continue;` は `if (ent.isDirectory())` の内側で到達不能 (Node の readdir は symlink→dir に対して isDirectory=false / isSymbolicLink=true を返すため)。dead check を削除し、コメントを実挙動 (symlink dir は if/else どちらの分岐にも入らず自然に skip) に合わせる - W3 (comment error): `isRealPathInsideRoot` の「realpath 失敗 (dangling symlink 等) は false を返す (fail-closed)」は不正確 — realpathBestEffort は「祖先 realpath + suffix」に fall-through するため dangling でも true を返し得る。コメントを実挙動 + 下流 (readFile ENOENT skip) との multi-layer defense に修正 - W4 (e2e detection): dark assert throw は IPC の reject に化けて SearchPanel の catch で「結果なし」表示に化ける → step (3) が assert 違反時も green で通る。pageerror 監視 + 正方向 post-step で throw を検出 - W7 (test 欠如): collectViolations の null / eligible / violation / invalidate 分岐 4 test + idle-fill isRealPathAllowed=false path の skip 記録 test を追加 Suggestions 対応: - S1: L2 hit path の「await 境界が無い」コメント + 認可 await 後の shouldStop 再チェック - S2: runDarkAssert throw 前に「reindex 自体が届いていない」ケース (workspace close の handle no-op) を isIndexedAndValid で切り分けて warn に落とす - S6: truth pass の「行単位」コメントを whole-content includes 実装に合わせて修正 Skip (round 2 or follow-up): - W5 (indexRoot fail-open 型改善): 現 4 caller は全て indexRoot 明示、follow-up issue 候補 - W6 (populate 部分 list): renderer 側 requestId で破棄される緩和層あり、design 契約補強は別 PR - S3 (realpathCache staleness): 既存設計、コメント補強のみで大幅変更しない - S4 (runDarkAssert 後の shouldStop 再チェック): 結果は既に確定、renderer は requestId で捨てるため実害なし - S5 (verify() dead code): test で契約維持 unit test 217 passed。 * fix: Phase D round 2 (a) fix (e2e polling + dark-assert dead code 除去) /pr fix-or-issue-or-dismiss 分類の (a) fix 3 件: - Fable round 2 Critical: e2e safety net が SearchPanel の fs-change 再検索不在で構造的に fail → pollSearchUntil helper で query を toggle (empty ↔ target) して debounce を再発火、 watcher batch (500ms) 反映後の再検索を確実に踏む - Fable round 2 W1: runDarkAssert の stillUnindexed 切り分けが dead code (collectViolations が返す violation の定義自体が indexedValid=true なので、 isIndexedAndValid=false が真になる分岐は成立しない) → 除去 - Fable round 2 W4: pageerror 監視は SearchPanel の catch で吸収されて無効 → console.error 監視 + main stderr 監視を追加し `[dark-assert]` 系メッセージ 0 件を assert unit test 217 passed / typecheck 3 tsconfig green。 * fix: e2e pollSearchUntil の toggle ロジックバグ修正 (CI PR #409 electron-e2e fail) CI で pollSearchUntil が 15s timeout していた原因: - toggle=false で開始 → 最初の iter で fill(query) → toggle=true → check スキップ - 次 iter で fill("") → toggle=false → check 実行 → 但し input は "" なので当然結果なし - 全 check が「入力が空の時」に走り、target query の結果を一度も評価しない fix: iteration ごとに「fill("") → fill(query) → 500ms wait → check」の直列パターンに変更。 SearchPanel useEffect は query 変更で cleanup + 新 timer 開始のため、直後の fill(query) で timer が reset される。1 iteration ~500ms、15s timeout で ~30 iter = batch 反映まで十分待てる。
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.