@coda-console/protocol 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coda-console/protocol",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Coda 的协议:插件清单的类型(JSON Schema)、通用校验器、流程方言与 Agent 接入协议",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -81,7 +81,10 @@
81
81
  "Input": {
82
82
  "type": "object",
83
83
  "properties": {
84
- "name": {"type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "description": "name 不合法:须为字母开头的字母、数字、「_」"},
84
+ "name": {"type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
85
+ "not": {"enum": ["__defineGetter__", "__defineSetter__", "__lookupGetter__", "__lookupSetter__", "__proto__", "constructor", "hasOwnProperty", "isPrototypeOf",
86
+ "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"]},
87
+ "description": "name 不合法:须为字母开头的字母、数字、「_」,且不是 JavaScript 对象自带的名字(如 constructor、toString、__proto__):运行按名字记和取输入"},
85
88
  "type": {"enum": ["string", "boolean", "number", "branch"], "description": "type 只能是 string、boolean、number、branch"},
86
89
  "label": {"type": "string", "pattern": "\\S", "maxLength": 40, "description": "label 须为 1–40 个字"},
87
90
  "defaultFrom": {"enum": ["session.branch"], "description": "defaultFrom 只能是 session.branch"}