Repository navigation
Conversation
BitFun (OpenBitFun) keeps three storage families apart: sessions under the product home, user configuration under the platform user root, and project assets under .openbitfun. Issue QoderAI#204 asked for a first slice that reads that evidence through the existing contracts instead of building a parallel path. Add a configured-asset provider over the user and project roots, including app.json MCP servers and the shared .agents/skills root, and a session analyzer over projects/<runtime-key>/sessions. The analyzer trusts each session's metadata.json workspace fields because the runtime key is a host-owned hash, skips non-local hosts, and keeps unknown item shapes as metadata events instead of dropping them. Both slices register through the shared host descriptor with only session analysis, configured assets, and portable HTML rendering, so lifecycle, checkup, and evidence-bundle targets keep rejecting bitfun with UNKNOWN_HOST. Help snapshots and the frozen CLI hashes move with the new --bitfun-home option. Spec: docs/specs/2026-11-23-bitfun-host-adapter.md (issue QoderAI#204). Test: npm test - 1799 passed, 7 skipped. Two unrelated failures remain: the Antigravity artifact build trips over local dependency drift (yaml 2.9.1 declared, 2.9.0 installed) and the DSH skill-watcher timing test passes when run alone. npm run pack:verify passed; the doc-link graph resolves 39 files and 56 links. Co-authored-by: Qoder <noreply@qoder.com>
This branch has not been deployed
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.
Summary
Adds BitFun (OpenBitFun) as a partial, source-local host. The adapter covers two slices of #204: configured-asset inventory and workspace-matched session evidence, both emitted through the existing contracts and the existing portable HTML + Markdown report path. There is no install shell, plugin manifest, or lifecycle profile.
Why
session-analysisandagent-customize inventorycan read OpenBitFun state directly instead of maintaining a second reader for the same evidence.Traceability and Scope
docs/specs/2026-11-23-bitfun-host-adapter.mdscripts/agent-customize/providers/bitfun.mjs,scripts/session-analysis/platforms/bitfun.mjs,scripts/host-support/index.mjs, the agent-customize CLI and its help text, the adapter matrix (English + zh-Hans), and the platform reference notesBitFun stores three things in three places, and the adapter keeps them apart: the product home (
~/.openbitfunorOPENBITFUN_HOME) for sessions, the platform user root forconfig/,agents/, and skills, and<workspace>/.openbitfunfor project assets. Session discovery scansprojects/<runtime-key>/sessions/*/metadata.jsonand trusts the workspace fields recorded there, because the runtime key is a host-owned hash; sessions with a non-localhosthostname are skipped, and item shapes the adapter does not recognize stay visible as metadata events.Only session analysis, configured assets, and portable HTML rendering are claimed in the host descriptor, so lifecycle, checkup, and evidence-bundle targets keep rejecting
bitfunwithUNKNOWN_HOST, the same way Kimi Code, Grok, and DSH behave.Change Type
Test and Review Evidence
npx vitest run test/sessions/session-analysis-providers.test.mjsnpx vitest run test/agents/agent-customize.test.mjsnpx vitest run test/skills-docs test/governancenpm testnpm run pack:verifynode scripts/doc-link-graph/cli.mjs skills/better-harnessgit diff --checkThe two failures in the full run are unrelated to this change:
test/plugins/antigravity-plugin-artifact.test.mjsfails on local dependency drift (yaml2.9.1 declared inpackage.json, 2.9.0 installed), and the DSH skill-watcher timing test fails under full-suite load but passes when run on its own.Manual or visual evidence: none. I did not smoke-test a native BitFun install, so the adapter is verified against synthetic fixtures that follow the v1.0.12 layout only, and the matrix lists BitFun as a partial adapter with no install, lifecycle, or Quickstart claim. The tests pass explicit
--bitfun-homeand--bitfun-user-rootoverrides so a real OpenBitFun home is never read.Refs #204