Repository navigation
feat(claude): メモリ更新時にNotion反映リマインダーを注入するhookを追加 #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
57a3d0c
7102ec2
c1aefa3
d9196ec
3df1eb1
a93c945
17db3ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| # Expose selected shared local secrets to CLI tools such as Codex MCP servers. | ||
| # NOTE: This list is duplicated in nix/home/zsh.nix (home.file). Keep both in sync. | ||
| # Clear previously exported tokens so removed entries in ~/.devcontainer.env don't linger. | ||
| unset SUPABASE_ACCESS_TOKEN VERCEL_TOKEN LINEAR_API_KEY DOPPLER_TOKEN | ||
| unset SUPABASE_ACCESS_TOKEN VERCEL_TOKEN LINEAR_API_KEY DOPPLER_TOKEN ELU_SENTRY_TOKEN GEMINI_API_KEY ELU_NOTION_API_KEY OYKOT_NOTION_API_KEY GITHUB_TOKEN NODE_AUTH_TOKEN | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a devcontainer, Codespace, or parent shell already injects Useful? React with 👍 / 👎. |
||
| if [[ -r "$HOME/.devcontainer.env" ]]; then | ||
| while IFS='=' read -r _codex_env_key _codex_env_value || [[ -n $_codex_env_key ]]; do | ||
| # Strip trailing CR so Windows-style CRLF files work correctly. | ||
| _codex_env_value="${_codex_env_value%$'\r'}" | ||
| case "$_codex_env_key" in | ||
| # Allowed keys: SUPABASE_ACCESS_TOKEN | VERCEL_TOKEN | LINEAR_API_KEY | DOPPLER_TOKEN | ||
| SUPABASE_ACCESS_TOKEN|VERCEL_TOKEN|LINEAR_API_KEY|DOPPLER_TOKEN) | ||
| # Allowed keys: SUPABASE_ACCESS_TOKEN | VERCEL_TOKEN | LINEAR_API_KEY | DOPPLER_TOKEN | ELU_SENTRY_TOKEN | GEMINI_API_KEY | ELU_NOTION_API_KEY | OYKOT_NOTION_API_KEY | GITHUB_TOKEN | NODE_AUTH_TOKEN | ||
| SUPABASE_ACCESS_TOKEN|VERCEL_TOKEN|LINEAR_API_KEY|DOPPLER_TOKEN|ELU_SENTRY_TOKEN|GEMINI_API_KEY|ELU_NOTION_API_KEY|OYKOT_NOTION_API_KEY|GITHUB_TOKEN|NODE_AUTH_TOKEN) | ||
| export "$_codex_env_key=$_codex_env_value" | ||
| ;; | ||
| esac | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a Claude Code version exposes
MultiEdit(as the adjacent post-edit hook already accounts for), memory files changed via that tool skip this reminder entirely because the Claude Code hooks reference treatsWrite|Editas an exact list of tool names, not a substring regex. Batched updates under~/.claude/projects/*/memory/therefore won't inject the Notion sync context even though they are the same memory-update scenario.Useful? React with 👍 / 👎.