feat(schema): require Contract.Identity aligned with reviewed registry

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
玉澜andCursor committed 2026-08-03 12:10:54 +08:00
1 parent 633862d07a
commit b3adfa8d26
138 files changed
+6267 -14

No files matched your search

+8
View File
@@ -530,6 +530,14 @@ func TestLiveMountExplicitSafetyDrivesRuntimeAndContractFinal(t *testing.T) {
Service: "chat", Command: "+send", Risk: RiskRead,
Safety: explicit,
Contract: corecmd.ContractDecl{
Identity: contract.ToolIdentitySpec{
ProductID: "dev",
Name: "create_thing",
CanonicalPath: "dev.create_thing",
CLIPath: "dev create",
PrimaryCLIPath: "dev create",
},
Description: "发送消息",
Interface: &contract.InterfaceSpec{
Mode: "mcp",