@bpmnkit/engine 0.1.28 → 0.1.30

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/README.md CHANGED
@@ -117,10 +117,12 @@ const instance = engine.start("my-process", {}, {
117
117
  | [`@bpmnkit/plugins`](https://www.npmjs.com/package/@bpmnkit/plugins) | 22 composable canvas plugins |
118
118
  | [`@bpmnkit/api`](https://www.npmjs.com/package/@bpmnkit/api) | Camunda 8 REST API TypeScript client |
119
119
  | [`@bpmnkit/ascii`](https://www.npmjs.com/package/@bpmnkit/ascii) | Render BPMN diagrams as Unicode ASCII art |
120
+ | [`@bpmnkit/docspack`](https://www.npmjs.com/package/@bpmnkit/docspack) | BPMN Kit docs as an offline docspack package for AI agents |
120
121
  | [`@bpmnkit/ui`](https://www.npmjs.com/package/@bpmnkit/ui) | Shared design tokens and UI components |
121
122
  | [`@bpmnkit/profiles`](https://www.npmjs.com/package/@bpmnkit/profiles) | Shared auth, profile storage, and client factories for CLI & proxy |
122
123
  | [`@bpmnkit/operate`](https://www.npmjs.com/package/@bpmnkit/operate) | Monitoring & operations frontend for Camunda clusters |
123
124
  | [`@bpmnkit/connector-gen`](https://www.npmjs.com/package/@bpmnkit/connector-gen) | Generate connector templates from OpenAPI specs |
125
+ | [`@bpmnkit/connectors`](https://www.npmjs.com/package/@bpmnkit/connectors) | Camunda 8 OOTB connector catalog and deterministic template application |
124
126
  | [`@bpmnkit/cli`](https://www.npmjs.com/package/@bpmnkit/cli) | Camunda 8 command-line interface (casen) |
125
127
  | [`@bpmnkit/proxy`](https://www.npmjs.com/package/@bpmnkit/proxy) | Local AI bridge and Camunda API proxy server |
126
128
  | [`@bpmnkit/patterns`](https://www.npmjs.com/package/@bpmnkit/patterns) | Domain process patterns for BPMNKit AIKit |
package/dist/instance.js CHANGED
@@ -204,12 +204,16 @@ export class ProcessInstance {
204
204
  val = resolved;
205
205
  }
206
206
  }
207
- else {
207
+ else if (inp.source.trimStart().startsWith("=")) {
208
208
  val = this.evalFeel(inp.source, scopeId, {
209
209
  elementId: el.id,
210
210
  property: `input:${inp.target}`,
211
211
  });
212
212
  }
213
+ else {
214
+ // A zeebe:input source without a leading "=" is a literal value, not FEEL.
215
+ val = inp.source;
216
+ }
213
217
  this.variables.setLocal(scopeId, inp.target, val);
214
218
  this.emit({ type: "variable:set", name: inp.target, value: val, scopeId });
215
219
  }
@@ -262,8 +266,21 @@ export class ProcessInstance {
262
266
  case "transaction":
263
267
  await this.handleSubProcess(token, el, ctx);
264
268
  break;
269
+ case "adHocSubProcess":
270
+ if (ext.taskDefinition) {
271
+ // Job-worker implementation (e.g. the AI Agent Sub-process connector) —
272
+ // dispatch as a job so scenarios can mock it like any other task.
273
+ // The tools nested inside are not individually executed; see the
274
+ // scenario runner docs for scope.
275
+ await this.handleJobTask(token, el, ext, ctx);
276
+ }
277
+ else {
278
+ // BPMN-native ad-hoc sub-process — auto-complete (tools not executed).
279
+ await this.complete(token, ctx);
280
+ }
281
+ break;
265
282
  default:
266
- // eventSubProcess, adHocSubProcess, callActivity, etc. — auto-complete
283
+ // eventSubProcess, callActivity, etc. — auto-complete
267
284
  await this.complete(token, ctx);
268
285
  break;
269
286
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmnkit/engine",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,11 +21,11 @@
21
21
  "dist/**/*.d.ts"
22
22
  ],
23
23
  "dependencies": {
24
- "@bpmnkit/core": "0.1.0",
25
- "@bpmnkit/feel": "0.0.19"
24
+ "@bpmnkit/core": "0.1.2",
25
+ "@bpmnkit/feel": "0.0.20"
26
26
  },
27
27
  "optionalDependencies": {
28
- "@bpmnkit/reebe-wasm": "0.1.5"
28
+ "@bpmnkit/reebe-wasm": "0.1.6"
29
29
  },
30
30
  "description": "Lightweight BPMN 2.0 process execution engine for browsers and Node.js — zero dependencies",
31
31
  "keywords": [