mirror of
https://github.com/openai/codex.git
synced 2026-04-28 18:32:04 +03:00
Add the v2 app-server protocol and implementation for filesystem reads, writes, directory operations, metadata, copying, and removal. This also updates the schema fixtures, app-server documentation, and the v2 integration coverage for the filesystem API surface.
30 lines
970 B
JSON
30 lines
970 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"
|
|
}
|
|
},
|
|
"description": "Write a file on the host filesystem.",
|
|
"properties": {
|
|
"dataBase64": {
|
|
"description": "File contents encoded as base64.",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/AbsolutePathBuf"
|
|
}
|
|
],
|
|
"description": "Absolute path to write."
|
|
}
|
|
},
|
|
"required": [
|
|
"dataBase64",
|
|
"path"
|
|
],
|
|
"title": "FsWriteFileParams",
|
|
"type": "object"
|
|
} |