@principal-ai/principal-view-cli 0.1.17 → 0.1.19

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/dist/index.cjs CHANGED
@@ -15883,6 +15883,18 @@ var validNodeTypes = {
15883
15883
  }
15884
15884
  for (const [typeId, nodeType] of Object.entries(configuration.nodeTypes)) {
15885
15885
  const basePath = `nodeTypes.${typeId}`;
15886
+ if (!nodeType.description) {
15887
+ violations.push({
15888
+ ruleId: "valid-node-types",
15889
+ severity: "error",
15890
+ file: configPath,
15891
+ path: `${basePath}.description`,
15892
+ message: `Node type "${typeId}" is missing required "description" field`,
15893
+ impact: "Node type must have a description explaining its purpose",
15894
+ suggestion: "Add a description field explaining what this node type represents",
15895
+ fixable: false
15896
+ });
15897
+ }
15886
15898
  if (!nodeType.shape) {
15887
15899
  violations.push({
15888
15900
  ruleId: "valid-node-types",
@@ -16285,6 +16297,7 @@ var ALLOWED_FIELDS = {
16285
16297
  root: ["metadata", "nodeTypes", "edgeTypes", "allowedConnections", "validation", "display"],
16286
16298
  metadata: ["name", "version", "description"],
16287
16299
  nodeType: [
16300
+ "description",
16288
16301
  "shape",
16289
16302
  "icon",
16290
16303
  "color",