core-agent-ide/codex-rs/app-server-protocol/src
Celia Chen d622bff384
chore: Nest skill and protocol network permissions under network.enabled (#13427)
## Summary

Changes the permission profile shape from a bare network boolean to a
nested object.

Before:

```yaml
permissions:
  network: true
```

After:

```yaml
permissions:
  network:
    enabled: true
```

This also updates the shared Rust and app-server protocol types so
`PermissionProfile.network` is no longer `Option<bool>`, but
`Option<NetworkPermissions>` with `enabled: Option<bool>`.

## What Changed

- Updated `PermissionProfile` in `codex-rs/protocol/src/models.rs`:
- `pub network: Option<bool>` -> `pub network:
Option<NetworkPermissions>`
- Added `NetworkPermissions` with:
  - `pub enabled: Option<bool>`
- Changed emptiness semantics so `network` is only considered empty when
`enabled` is `None`
- Updated skill metadata parsing to accept `permissions.network.enabled`
- Updated core permission consumers to read
`network.enabled.unwrap_or(false)` where a concrete boolean is needed
- Updated app-server v2 protocol types and regenerated schema/TypeScript
outputs
- Updated docs to mention `additionalPermissions.network.enabled`
2026-03-03 20:57:29 -08:00
..
bin app-server-protocol: export flat v2 schema bundle (#13324) 2026-03-03 10:25:51 -08:00
protocol chore: Nest skill and protocol network permissions under network.enabled (#13427) 2026-03-03 20:57:29 -08:00
experimental_api.rs feat: experimental flags (#10231) 2026-02-02 11:06:50 +00:00
export.rs chore(app-server): restore EventMsg TS types (#13397) 2026-03-03 13:37:40 -08:00
jsonrpc_lite.rs feat(app-server): add tracing to all app-server APIs (#13285) 2026-03-02 16:01:41 -08:00
lib.rs feat: add --experimental to generate-ts (#10402) 2026-02-02 20:30:01 +00:00
schema_fixtures.rs feat: replace custom mcp-types crate with equivalents from rmcp (#10349) 2026-02-02 17:41:55 -08:00