Remove Codex plugin feature and mention residue
This commit is contained in:
parent
585ffb9eca
commit
1933d8c175
29 changed files with 61 additions and 212 deletions
28
vendor/codex/codex-rs/app-server/README.md
vendored
28
vendor/codex/codex-rs/app-server/README.md
vendored
|
|
@ -604,16 +604,16 @@ Invoke a skill explicitly by including `$<skill-name>` in the text input and add
|
|||
} } }
|
||||
```
|
||||
|
||||
### Example: Start a turn (invoke an app)
|
||||
### Example: Start a turn (invoke an MCP server)
|
||||
|
||||
Invoke an app by including `$<app-slug>` in the text input and adding a `mention` input item with the app id in `app://<connector-id>` form.
|
||||
Invoke an MCP server by including a linked mention in the text input and adding a `mention` input item with the server name in `mcp://<server-name>` form.
|
||||
|
||||
```json
|
||||
{ "method": "turn/start", "id": 34, "params": {
|
||||
"threadId": "thr_123",
|
||||
"input": [
|
||||
{ "type": "text", "text": "$demo-app Summarize the latest updates." },
|
||||
{ "type": "mention", "name": "Demo App", "path": "app://demo-app" }
|
||||
{ "type": "text", "text": "Use [$docs](mcp://docs) to summarize the latest updates." },
|
||||
{ "type": "mention", "name": "Docs MCP", "path": "mcp://docs" }
|
||||
]
|
||||
} }
|
||||
{ "id": 34, "result": { "turn": {
|
||||
|
|
@ -624,26 +624,6 @@ Invoke an app by including `$<app-slug>` in the text input and adding a `mention
|
|||
} } }
|
||||
```
|
||||
|
||||
### Example: Start a turn (invoke a plugin)
|
||||
|
||||
Invoke a plugin by including a UI mention token such as `@sample` in the text input and adding a `mention` input item with the exact `plugin://<plugin-name>@<marketplace-name>` path returned by `plugin/list`.
|
||||
|
||||
```json
|
||||
{ "method": "turn/start", "id": 35, "params": {
|
||||
"threadId": "thr_123",
|
||||
"input": [
|
||||
{ "type": "text", "text": "@sample Summarize the latest updates." },
|
||||
{ "type": "mention", "name": "Sample Plugin", "path": "plugin://sample@test" }
|
||||
]
|
||||
} }
|
||||
{ "id": 35, "result": { "turn": {
|
||||
"id": "turn_459",
|
||||
"status": "inProgress",
|
||||
"items": [],
|
||||
"error": null
|
||||
} } }
|
||||
```
|
||||
|
||||
### Example: Inject raw history items
|
||||
|
||||
Use `thread/inject_items` to append prebuilt Responses API items to a loaded thread’s prompt history without starting a user turn. These items are persisted to the rollout and included in subsequent model requests.
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ async fn mcp_server_elicitation_round_trip() -> Result<()> {
|
|||
.send_turn_start_request(TurnStartParams {
|
||||
thread_id: thread.id.clone(),
|
||||
input: vec to run the calendar tool.".to_string(),
|
||||
text: "Use [$calendar](mcp://calendar) to run the calendar tool.".to_string(),
|
||||
text_elements: Vec::new(),
|
||||
}],
|
||||
model: Some("mock-model".to_string()),
|
||||
|
|
|
|||
|
|
@ -644,8 +644,8 @@ async fn turn_start_accepts_text_at_limit_with_mention_item() -> Result<()> {
|
|||
text_elements: Vec::new(),
|
||||
},
|
||||
V2UserInput::Mention {
|
||||
name: "Demo App".to_string(),
|
||||
path: "app://demo-app".to_string(),
|
||||
name: "Docs MCP".to_string(),
|
||||
path: "mcp://docs".to_string(),
|
||||
},
|
||||
],
|
||||
..Default::default()
|
||||
|
|
@ -2282,7 +2282,6 @@ async fn turn_start_streams_apply_patch_change_updates_v2() -> Result<()> {
|
|||
&BTreeMap::from([
|
||||
(Feature::ApplyPatchFreeform, true),
|
||||
(Feature::ApplyPatchStreamingEvents, true),
|
||||
(Feature::Plugins, false),
|
||||
(Feature::RemoteModels, false),
|
||||
(Feature::ShellSnapshot, false),
|
||||
]),
|
||||
|
|
|
|||
Reference in a new issue