feat(anolisa): add cosh, codex, claude-code adapter drivers#1331
Draft
kongche-jbw wants to merge 1 commit into
Draft
feat(anolisa): add cosh, codex, claude-code adapter drivers#1331kongche-jbw wants to merge 1 commit into
kongche-jbw wants to merge 1 commit into
Conversation
- Add built-in cosh, Codex, and Claude Code framework drivers. - Validate adapter receipts, symlinks, ownership, and cleanup state. - Declare tokenless adapters and cover enable/status/disable flows. Signed-off-by: 空澈 <kongche.jbw@alibaba-inc.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.
Description
Adds first-class ANOLISA adapter support for cosh (copilot-shell), Codex, and
Claude Code, implemented entirely as built-in Rust
FrameworkDrivers — nodelegation to component-side install/uninstall shell scripts. Extends the
receipt security boundary with two new claim-resource kinds (
Symlink,FrameworkMarketplace), two controlled IO ops (write_file,create_symlink),and the
extensionadapter type. Cosh uses a filesystem extension model with anownership marker so it never destroys user-installed extensions; Codex/Claude
Code drive their official marketplace CLIs and keep the receipt as
cleanup_failedwhen deregistration cannot complete.Related Issue
no-issue: internal adapter roadmap (design in ANOLISA-design/docs/anolisa/cli)
Type of Change
Scope
tokenless(tokenless)anolisa(anolisa-cli)Checklist
anolisa:cargo clippy --all-targets --locked -- -D warnings,cargo fmt --all --check, andcargo test --lockedpassTesting
cargo test --workspace --locked— all 11 test binaries passcargo clippy --workspace --all-targets --locked -- -D warnings— cleancargo fmt --all -- --check— cleancargo doc --workspace --no-deps— cleantests/adapter_frameworks.rsintegration suite(fake codex/claude CLIs asserting exact argv; cosh copy/remove-only-own-dir;
dry-run writes nothing; forged symlink target / resource_root rejected;
CLI-removal-failure and ownership-marker-missing keep the receipt)