mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-03 16:11:17 +08:00
BREAKING CHANGE: Policy YAML and public policy APIs now use the protobuf-shaped openshell.policy.v1.PolicyDocument contract. Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Repo-level buf module. Declares proto/ as the single module so buf generate,
|
|
# buf lint, buf breaking, and the editor LSP all resolve imports the same way.
|
|
# Code generation lives with each consumer (see sdk/go/buf.gen.yaml,
|
|
# sdk/typescript/buf.gen.yaml); this file owns the module boundary and proto
|
|
# validation policy.
|
|
version: v2
|
|
modules:
|
|
- path: proto
|
|
- path: crates/openshell-server/proto
|
|
lint:
|
|
use:
|
|
- STANDARD
|
|
# This file is a vendored upstream dependency, not an OpenShell API.
|
|
ignore:
|
|
- proto/buf/validate/validate.proto
|
|
except:
|
|
# Flat proto/ layout: all files live in one directory with nested
|
|
# packages (openshell.v1, openshell.sandbox.v1, ...). Adopting these
|
|
# would require restructuring the tree into openshell/<svc>/v1/ and
|
|
# updating every Rust/Python/TS codegen path and import.
|
|
- DIRECTORY_SAME_PACKAGE
|
|
- PACKAGE_DIRECTORY_MATCH
|
|
# Established API shape: services are unsuffixed (OpenShell, not
|
|
# OpenShellService) and RPCs reuse shared request/response messages with
|
|
# short names. Renaming these is a breaking change across the codebase.
|
|
- RPC_REQUEST_RESPONSE_UNIQUE
|
|
- RPC_REQUEST_STANDARD_NAME
|
|
- RPC_RESPONSE_STANDARD_NAME
|
|
- SERVICE_SUFFIX
|
|
breaking:
|
|
use:
|
|
- FILE
|
|
ignore:
|
|
- proto/buf/validate/validate.proto
|