mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
## Summary Move `codex marketplace add` onto a shared core implementation so the CLI and app-server path can use one source of truth. This change: - adds shared marketplace-add orchestration in `codex-core` - switches the CLI command to call that shared implementation - removes duplicated CLI-only marketplace add helpers - preserves focused parser and add-path coverage while moving the shared behavior into core tests ## Why The new `marketplace/add` RPC should reuse the same underlying marketplace-add flow as the CLI. This refactor lands that consolidation first so the follow-up app-server PR can be mostly protocol and handler wiring. ## Validation - `cargo test -p codex-core marketplace_add` - `cargo test -p codex-cli marketplace_cmd` - `just fix -p codex-core` - `just fix -p codex-cli` - `just fmt`
27 lines
865 B
JSON
27 lines
865 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"AbsolutePathBuf": {
|
|
"description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"properties": {
|
|
"alreadyAdded": {
|
|
"type": "boolean"
|
|
},
|
|
"installedRoot": {
|
|
"$ref": "#/definitions/AbsolutePathBuf"
|
|
},
|
|
"marketplaceName": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"alreadyAdded",
|
|
"installedRoot",
|
|
"marketplaceName"
|
|
],
|
|
"title": "MarketplaceAddResponse",
|
|
"type": "object"
|
|
} |