Repository navigation
Add databases component (Valkey) - #77
Merged
Merged
Conversation
Local Valkey bound to 127.0.0.1 with a ccdb wrapper for init/start/stop/ status/cli and a temp-instance selftest. PostgreSQL is deliberately not included: the base libicu 78.3 does not match the packaged postgresql 18.6 (libicu 79.1), and both bionic and glibc PostgreSQL fail to start. Co-Authored-By: Claude Code <noreply@anthropic.com>
组件审计报告底座 🟡 databases 9.1.3-r1下载 1.7 MB · 装后 4.4 MB · 33 个文件 · 1 个包 (第一次发布)
人要看的:
和别的组件共用的包:无 包清单
CI 实跑 selftest(arm64 + termux-docker)
环境同 App 里 Claude 的 Bash 工具(PREFIX / HOME / TMPDIR / termux-exec),没有 GPU、屏幕、Shizuku。通过只说明「装得上、跑得起来」,安卓特有的问题仍要真机。 |
ccdb start daemonizes valkey-server with the caller's environment, so it inherited CCAPP_RUN / CCAPP_RUN_ID from the Claude turn that started it. cccodroid then treats it as a leftover of that turn: it is killed when the turn is stopped (0.6.17) or when the gateway restarts. Drop the run marks before starting, like openai-bridge's start-bridge.sh does. 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.
组件 / Component
databasesWhat
A local Valkey (Redis-compatible) server with a non-interactive wrapper:
ccdb init/start/stop/status/info— data in~/.cccodroid/databases/valkeyccdb cli <command>— runsvalkey-cliagainst127.0.0.1:6380127.0.0.1only; no password and no external exposure (the skill warns against changing that)CCDB_VALKEY_PORT/CCDB_HOMEThis version ships Valkey only. PostgreSQL is deliberately not included: the base has libicu 78.3 while the packaged postgresql 18.6 needs libicu 79.1, so both the bionic and glibc PostgreSQL packages fail to start (the glibc one also lacks
libxml2.so.2). The description, skill and recipe notes say this explicitly; PostgreSQL is deferred until a toolkit update.体积与共用包 / Size and sharing
Tested
ccdb selfteststarts a temporary Valkey on a free port under$TMPDIR, runs SET/GET and stops it:Local audit against
devkit-2026.10.28: 0 errors; 🟡 because the component ships its own wrapper (usr/bin/ccdb).检查 / Checklist
node tools/check-recipes.mjs通过 / passesci-build.mjs --dry依赖都能解 / resolves (also built fordevkit-2026.10.28)needs如实填写 / filled honestly (shizuku,display,gpuall false)真机测试 / Device test
node tools/verify-device.mjs全过,记录另开 PR 进verified.json/ not run yet; can follow up🤖 Generated with Claude Code
合并前补的 / Added before merge
ccdb start起 Valkey 前去掉CCAPP_RUN、CCAPP_RUN_ID、CLAUDECODE、CLAUDE_CODE_ENTRYPOINT:否则网关重启或停止那一轮对话时,Valkey 会被当成那一轮留下的进程清掉(同 openai-bridge 的start-bridge.sh)。/ccdb startnow drops cccodroid's run marks so the daemon survives stopping the turn or a gateway restart.