Files
dingtalk-workspace-cli/internal/cli/gen.go
T
玉澜andCursor 2a1fe47c50 refactor(schema): retire JSON Catalog delivery for runtime assembly
Move schema authority to declare-time ParamDecl/ContractFinal and
ResolveSchemaBuild so CI/runtime assemble instead of shipping JSON
exclusions/meta-index as delivery sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 09:08:17 +08:00

39 lines
1.9 KiB
Go

// Copyright 2026 Alibaba Group
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// gen.go isolates //go:generate pragmas from business code.
//
// Schema Catalog delivery is NOT generated here. Production assembles Catalog
// at runtime via ResolveSchemaBuild (声明即 Catalog); see schema_source_root.go
// and internal/app/schema_source_register.go. cmd_schema_catalog remains a
// CI/determinism tool (make generate-schema / check-generated-drift) and must
// not be a committed delivery step.
//
// Reviewed inputs consumed by runtime assembly:
// 1. schema_command_registry/ identity (canonical/aliases/navigation)
// 2. contract.ProductDecl + leaf ContractFinal Agent routing / selection prose
// 3. schema_mcp_metadata.json MCP server tool definitions
// 4. schema_parameter_bindings.json mapping exclusions / removals audit
// (active bindings empty; ParamDecl.Property owns delivery)
// 5. param_concepts.json + schema reviewed parameter synonym policy
// 6. cobra command tree (Go runtime) flags/usage/required (reflected)
//
// schema_hints/ and schema_agent_metadata/ are retired.
//
// Remaining generated output from this file:
// - param_aliases_generated.go per-command parameter normalization
package cli
//go:generate go run ../generator/cmd_param_aliases -root ../.. -output param_aliases_generated.go