Add Youmu AI-generated pet#28
Conversation
📝 WalkthroughWalkthrough新增魂魄妖梦宠物条目,包含宠物定义 JSON、精灵资源配置,以及提交元数据和安装资源映射。 Changes妖梦宠物条目
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pets/youmu--ai-generated/submission.json`:
- Around line 18-20: 更新 submission.json 中的 source_url,使其指向无需登录即可公开审阅、且能验证 CC BY
4.0 再分发授权的来源;若无法提供公开分享链接,则补充可审计的授权证明,并确保 description 中的授权声明与该证据一致。
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: bc909c8b-1c41-4b0e-959c-dfc8d5b3ddf4
📒 Files selected for processing (3)
pets/youmu--ai-generated/pet.jsonpets/youmu--ai-generated/spritesheet.webppets/youmu--ai-generated/submission.json
| "source_url": "https://gemini.google.com/app/c70f532f3f96cf0b", | ||
| "license": "CC BY 4.0", | ||
| "description": "基于用户提供且获 CC BY 4.0 再分发授权的 Gemini AI 生成参考图制作的魂魄妖梦 Codex 宠物;保留银发、绿色制服、佩刀与半灵特征。", |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
file='pets/youmu--ai-generated/submission.json'
echo '--- file excerpt ---'
cat -n "$file" | sed -n '1,80p'
echo
echo '--- source_url reachability ---'
url=$(python3 - <<'PY'
import json
from pathlib import Path
data = json.loads(Path('pets/youmu--ai-generated/submission.json').read_text())
print(data.get('source_url',''))
PY
)
python3 - <<'PY' "$url"
import sys, urllib.request, urllib.error
url = sys.argv[1]
req = urllib.request.Request(url, headers={"User-Agent":"Mozilla/5.0"})
try:
with urllib.request.urlopen(req, timeout=20) as resp:
print("status:", resp.status)
print("final_url:", resp.geturl())
print("content_type:", resp.headers.get_content_type())
body = resp.read(5000)
print("body_prefix:", body.decode("utf-8", "replace")[:1000])
except Exception as e:
print(type(e).__name__ + ":", e)
PYRepository: legeling/awesome-codex-pet
Length of output: 1285
🌐 Web query:
site:gemini.google.com/app/c70f532f3f96cf0b Gemini app session login page
💡 Result:
The URL points to the Gemini web app, and the page shows a Login / Sign in prompt for Gemini. The Gemini app homepage also lists Login in its navigation. [1][2]
If you want, I can help verify whether that exact session ID URL is still valid or what it redirects to.
🏁 Script executed:
#!/bin/bash
set -euo pipefail
url='https://gemini.google.com/app/c70f532f3f96cf0b'
echo '--- headers ---'
curl -k -L -sS -D - -o /tmp/gemini_body.txt "$url" | sed -n '1,40p'
echo
echo '--- body prefix ---'
python3 - <<'PY'
from pathlib import Path
data = Path('/tmp/gemini_body.txt').read_bytes()
text = data.decode('utf-8', 'replace')
print(text[:2000])
PYRepository: legeling/awesome-codex-pet
Length of output: 8774
提供可公开审阅的来源与授权证明。 source_url 目前只会打开 Gemini 登录页,无法支撑第 20 行所述的 CC BY 4.0 再分发授权;请改成无需登录的公开分享链接,或补充可审计的授权证明。
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pets/youmu--ai-generated/submission.json` around lines 18 - 20, 更新
submission.json 中的 source_url,使其指向无需登录即可公开审阅、且能验证 CC BY 4.0
再分发授权的来源;若无法提供公开分享链接,则补充可审计的授权证明,并确保 description 中的授权声明与该证据一致。
内容
验证
npm run previewsnpm run readmesnpm run validateyoumu--ai-generatednpm run lint已执行;仓库基线存在既有格式问题,本次新增 JSON 已单独通过格式检查。Summary by CodeRabbit