mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-02 07:34:45 +08:00
* refactor(proto): isolate gateway storage messages Move persistence-only protobufs into a server-private versioned package, remove them from generated public SDKs, and gate durable/public schema compatibility with legacy database fixtures. Closes #3053 Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com> * docs(gateway): sync protobuf schema inventory Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com> --------- Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
33 lines
1.3 KiB
YAML
33 lines
1.3 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
|
|
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
|