test-bridge
Skill1.1k starsChanged 10 months agoMITView on GitHub
Bridge Server (TypeScript) のテスト実行・型チェック・テスト記述ガイド
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about K9i-0/ccpocket
- A Hacker News story“Show HN: CC Pocket – Control Claude Code/Codex from Your Phone”Hacker News · Mar 7, 2026 · 2 points
- @android.activitypub.awakari.com.ap.brid.gy“Show HN: CC Pocket – Control Claude Code/Codex from Your Phone CC Pocket is a mobile app (iOS/Android) for …”Bluesky · Mar 7, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.k9i-0.ccpocket: 1.136.1+258 → 0-unstable-2026-09-30”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.k9i-0.ccpocket: init at 1.136.1+258”GitHub · Sep 28, 2026
- @munawwar.bsky.social“Guys, CC Pocket! One of few projects that shows local (linux) Codex sessions on a native (android) app …”Bluesky · May 5, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub, Bluesky and Hacker News (8 times).
On GitHub · 5
- Oct 3, 2026agent-skills.github.k9i-0.ccpocket: 1.136.1+258 → 0-unstable-2026-09-30 — sudosubin/agents.nix0 reactions
- Sep 28, 2026agent-skills.github.k9i-0.ccpocket: init at 1.136.1+258 — sudosubin/agents.nix0 reactions
- Apr 18, 2026Audit candidate: K9i-0/ccpocket — xiaolai/nlpm0 reactions · 1 comment
- Apr 13, 2026Not support custom model in the claude code and OAuth — getpaseo/paseo0 reactions · 1 comment
- Mar 15, 2026feat: Claude Code 承認UI の改善(ネイティブ PermissionSheet) — dashi296/remocoder0 reactions
On Bluesky · 2
- Mar 7, 2026Show HN: CC Pocket – Control Claude Code/Codex from Your Phone CC Pocket is a mobile app (iOS/Android) for remotely controlling Claude Code… — @android.activitypub.awakari.com.ap.brid.gy1 likes and repost
- May 5, 2026Guys, CC Pocket! One of few projects that shows local (linux) Codex sessions on a native (android) app github.com/K9i-0/ccpocket — @munawwar.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Mar 7, 2026Show HN: CC Pocket – Control Claude Code/Codex from Your Phone2 points
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- codex-guideSkill
- flutter-ui-designSkill
- flutter-upgradeSkill
- mergeSkill
- mobile-automationSkill
- playwright-cliSkill
- release-appSkill
- release-bridgeSkill
- release-cardSkill
- self-reviewSkill
- shorebird-patchSkill
- sim-previewSkill
- submit-store-reviewSkill
- test-flutterSkill
- triageSkill
- update-storeSkill
- web-previewSkill
The file
Files
Bridge Server テスト
実行手順
変更した挙動に対応するテストと静的検証を選ぶ。全体テストは、共通基盤・依存関係への変更や回帰懸念がある場合、または全体検証を依頼された場合に実行する。成功済みの検証を理由なく繰り返さない。以下はコマンドの選択肢。
1. ユニットテスト
npm run test:bridge特定ファイルのみ:
cd packages/bridge && npx vitest run src/<filename>.test.tsウォッチモード (開発中):
cd packages/bridge && npx vitest src/<filename>.test.ts2. TypeScript 型チェック
npx tsc --noEmit -p packages/bridge/tsconfig.jsonテストファイル (*.test.ts) と vitest.config.ts は tsconfig.json の exclude に入っているため、型チェック対象外。
3. カバレッジ (任意)
npm run test:bridge:coverageテスト記述規約
ファイル配置・命名
- テストファイルはソースと同じディレクトリに
<module>.test.tsとして配置- 例:
src/parser.ts→src/parser.test.ts
- 例:
- vitest.config.ts の include パターン:
src/**/*.test.ts
import
import { describe, it, expect } from "vitest";- vitest からのみ import する (jest の互換 API は使わない)
- テスト対象モジュールは
.js拡張子で import する (NodeNext moduleResolution)- 例:
import { parseRule } from "./claude-process.js";
- 例:
テスト構造
describe("関数名 or クラス名", () => {
it("動作の説明 (英語)", () => {
expect(actual).toBe(expected);
});
});describeでテスト対象の関数/クラス単位にグルーピングitの説明は英語で、三人称現在形 ("returns null for empty string")- 1つの
itで1つの振る舞いを検証する
テスト対象の方針
- 純粋関数・ロジック中心にテストする (高ROI)
- プロセスspawn, ファイルシステム, WebSocket等の外部依存は対象外
- 現在テスト対象のモジュール:
parser.ts— parseClaudeEvent, claudeEventToServerMessage, parseClientMessage, normalizeToolResultContentclaude-process.ts— parseRule, matchesSessionRule, buildSessionRule, toolNeedsApproval, ACCEPT_EDITS_AUTO_APPROVEimage-store.ts— ImageStore.extractImagePaths
新しいテスト追加時
- export されている純粋関数があればテスト追加を検討
- internal関数をテストしたい場合は
exportに変更する (テスト可能性のための export は OK) - テスト追加後は型チェックが通ること (
npx tsc --noEmit) も確認
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

