bpmnlint-plugin-camunda-compat 2.58.1 → 2.58.2

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": "bpmnlint-plugin-camunda-compat",
3
- "version": "2.58.1",
3
+ "version": "2.58.2",
4
4
  "description": "A bpmnlint plug-in for Camunda compatibility",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -524,10 +524,9 @@ module.exports.findAncestorAdHocSubProcess = findAncestorAdHocSubProcess;
524
524
  // detached tools ad-hoc sub-process as a tool container to lint. This is
525
525
  // read-only and has no execution effect; it parses on the current moddle with
526
526
  // no schema change. The marker is an independent boolean, not a single-valued
527
- // role enum, because a Camunda agent element can carry both the
528
- // `toolContainer` role (hosts tools) and the `agent` role at once; a
529
- // single-valued `io.camunda.agenticai.role` property could not represent
530
- // both roles on the same element.
527
+ // role enum: the original design paired it with an `io.camunda.agenticai.agent`
528
+ // value so a single element could in principle declare both, but no template
529
+ // ever shipped that value, so this plugin only checks for `toolContainer`.
531
530
  const TOOL_CONTAINER_PROPERTY = 'io.camunda.agenticai.toolContainer';
532
531
 
533
532
  // The AI Agent job-worker template applied to an ad-hoc sub-process. Its id is
@@ -537,7 +536,7 @@ const TOOL_CONTAINER_PROPERTY = 'io.camunda.agenticai.toolContainer';
537
536
  // their AHSPs are agentic but carry no marker; the template id identifies them.
538
537
  const LEGACY_AI_AGENT_TEMPLATE = 'io.camunda.connectors.agenticai.aiagent.jobworker.v1';
539
538
 
540
- function hasToolContainerRoleProperty(node) {
539
+ function hasToolContainerProperty(node) {
541
540
  const properties = findExtensionElement(node, 'zeebe:Properties');
542
541
 
543
542
  if (!properties) {
@@ -550,7 +549,7 @@ function hasToolContainerRoleProperty(node) {
550
549
  );
551
550
  }
552
551
 
553
- module.exports.hasToolContainerRoleProperty = hasToolContainerRoleProperty;
552
+ module.exports.hasToolContainerProperty = hasToolContainerProperty;
554
553
 
555
554
  // Whether an ad-hoc sub-process should have agent tool contracts linted.
556
555
  //
@@ -568,7 +567,7 @@ module.exports.hasToolContainerRoleProperty = hasToolContainerRoleProperty;
568
567
  // still agentic and are recognized by their (version-agnostic) element template
569
568
  // id (see LEGACY_AI_AGENT_TEMPLATE).
570
569
  function isAgenticAdHocSubProcess(ahsp, version) {
571
- if (hasToolContainerRoleProperty(ahsp)) {
570
+ if (hasToolContainerProperty(ahsp)) {
572
571
  return true;
573
572
  }
574
573