feat(schema): require Contract.Identity aligned with reviewed registry
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
633862d07a
commit
b3adfa8d26
138 files changed
+6267
-14
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user