Files
dingtalk-workspace-cli/internal/cli/gen.go
玉澜andCursor ba72358f78 retire pinned schema_mcp_metadata.json from Schema assembly
Schema Catalog now assembles from Contract/ParamDecl/Interface and Cobra only.
Keep fetch-mcp-metadata as an optional diagnostic dump and ban the retired pin path.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 17:24:32 +08:00

42 lines
2.1 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.
//
// Inputs consumed by runtime assembly:
// 1. leaf ContractFinal.Identity identity (canonical/aliases/navigation),
// collected from the live Cobra tree
// 2. contract.ProductDecl + leaf ContractFinal Agent routing / selection prose
// (Interface / ParamDecl own interface facts)
// 3. schema_parameter_mapping_ledger.go mapping exclusions / removals (Go)
// (active bindings retired; ParamDecl.Property owns delivery)
// 4. param_concepts.json + schema reviewed parameter synonym policy
// 5. cobra command tree (Go runtime) flags/usage/required (reflected)
//
// schema_hints/, schema_agent_metadata/, schema_command_registry/,
// schema_mcp_metadata.json, and schema_mcp_service_review(.json|/ledger) 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