SchemaDecl confused authoring with Catalog/ToolSpec delivery. Authors now declare ContractDecl (nested contract.* types) on Spec/LeafSpec/Shortcut; AttachContract registers only through cli.RegisterRuntimeContractFinal, and description provenance stamps cobra_help when Long wins. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
482 B
Go
13 lines
482 B
Go
// Copyright 2026 Alibaba Group
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
package cli
|
|
|
|
// Enable the Catalog↔typed content equality gate for package tests. Production
|
|
// binaries keep validateSchemaSnapshotTypedRoundTrip=false so cold start does
|
|
// not pay ~845 JSON equality comparisons; generation already proves delivery
|
|
// invariants, and tests below cover loader drift through this flag.
|
|
func init() {
|
|
validateSchemaSnapshotTypedRoundTrip = true
|
|
}
|