Files
dingtalk-workspace-cli/internal/cli/schema_snapshot_roundtrip_test.go
玉澜andCursor 75bd1f1447 refactor(cmdcore): rename SchemaDecl to ContractDecl and unify register seam
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>
2026-08-01 20:33:45 +08:00

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
}