@nanobpm/nano-workforce 0.69.0 → 0.70.0

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.
@@ -21,6 +21,7 @@ import { Terminal } from "@xterm/xterm";
21
21
 
22
22
  const DEFAULT_REFRESH_MS = 2000;
23
23
  const DEFAULT_STALE_AFTER_MS = 15_000;
24
+ const DEFAULT_PAST_FETCH_TIMEOUT_MS = 15_000;
24
25
 
25
26
  function isPosInt(value) {
26
27
  return Number.isSafeInteger(value) && value > 0;
@@ -181,6 +182,113 @@ function renderSupply(host, doc, view, onDrill) {
181
182
  host.appendChild(root);
182
183
  }
183
184
 
185
+ // ── past-sessions projection + render (mirrors app/agentic/cockpit/transcript-view.ts + -render.ts) ──
186
+
187
+ function humanBytes(bytes) {
188
+ if (!Number.isFinite(bytes) || bytes < 0) return "0 B";
189
+ if (bytes < 1024) return `${bytes} B`;
190
+ if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
191
+ return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
192
+ }
193
+
194
+ function humanDuration(ms) {
195
+ if (ms == null || !Number.isFinite(ms) || ms <= 0) return undefined;
196
+ const s = Math.round(ms / 1000);
197
+ if (s < 60) return `${s}s`;
198
+ const m = Math.round(s / 60);
199
+ if (m < 60) return `${m}m`;
200
+ const h = Math.round(m / 60);
201
+ if (h < 48) return `${h}h`;
202
+ return `${Math.round(h / 24)}d`;
203
+ }
204
+
205
+ function sessionLabel(t) {
206
+ const parts = [];
207
+ if (t.bpmnProcessId != null) parts.push(t.bpmnProcessId);
208
+ if (t.elementId != null) parts.push(t.elementId);
209
+ if (t.processInstanceKey != null) parts.push(`inst ${t.processInstanceKey}`);
210
+ if (t.planKey != null) parts.push(t.planKey);
211
+ if (parts.length > 0) return parts.join(" \u00b7 ");
212
+ if (t.jobKey != null) return `job ${t.jobKey}`;
213
+ return t.stream;
214
+ }
215
+
216
+ function transcriptsView(report) {
217
+ const sessions = (report.transcripts ?? [])
218
+ .map((t) => ({
219
+ stream: t.stream,
220
+ label: sessionLabel(t),
221
+ jobKey: t.jobKey,
222
+ status: t.status,
223
+ lifecycle: t.lifecycle,
224
+ size: humanBytes(t.byteLength),
225
+ byteLength: t.byteLength,
226
+ capturedAt: t.completedAt ?? t.createdAt,
227
+ }))
228
+ .sort((a, b) => {
229
+ const byTime = String(b.capturedAt).localeCompare(String(a.capturedAt));
230
+ return byTime !== 0 ? byTime : a.stream.localeCompare(b.stream);
231
+ });
232
+ return { sessions, count: sessions.length, retention: humanDuration(report.retentionMs) };
233
+ }
234
+
235
+ function sessionRow(doc, session, onReplay, activeStream) {
236
+ const row = el(doc, "tr", "cockpit-past-session");
237
+ row.setAttribute("data-stream", session.stream);
238
+ row.setAttribute("data-status", session.status);
239
+ if (session.jobKey != null) row.setAttribute("data-job-key", session.jobKey);
240
+ if (activeStream === session.stream) row.setAttribute("data-active", "true");
241
+ const nameCell = el(doc, "td", "cockpit-td cockpit-past-name");
242
+ const button = el(doc, "button", "cockpit-past-replay", session.label);
243
+ button.setAttribute("type", "button");
244
+ button.setAttribute("data-stream", session.stream);
245
+ if (onReplay) button.addEventListener("click", () => onReplay(session.stream));
246
+ nameCell.appendChild(button);
247
+ row.appendChild(nameCell);
248
+ row.appendChild(el(doc, "td", "cockpit-td cockpit-past-status", session.status));
249
+ row.appendChild(el(doc, "td", "cockpit-td cockpit-past-size", session.size));
250
+ row.appendChild(el(doc, "td", "cockpit-td cockpit-past-captured", session.capturedAt));
251
+ return row;
252
+ }
253
+
254
+ function renderTranscripts(host, doc, view, onReplay, activeStream) {
255
+ host.replaceChildren();
256
+ const root = el(doc, "div", "cockpit-past");
257
+ root.setAttribute("data-session-count", String(view.count));
258
+ const header = el(doc, "header", "cockpit-past-header");
259
+ header.appendChild(el(doc, "h2", "cockpit-past-title", "Past sessions"));
260
+ const summary = el(doc, "span", "cockpit-past-summary", view.retention != null ? `${view.count} \u00b7 kept ${view.retention}` : `${view.count}`);
261
+ summary.setAttribute("data-summary", "past");
262
+ header.appendChild(summary);
263
+ root.appendChild(header);
264
+ if (view.count === 0) {
265
+ const empty = el(doc, "div", "cockpit-past-empty", "No captured sessions yet.");
266
+ empty.setAttribute("data-empty", "true");
267
+ root.appendChild(empty);
268
+ host.appendChild(root);
269
+ return;
270
+ }
271
+ const table = el(doc, "table", "cockpit-past-table");
272
+ const thead = el(doc, "thead", "cockpit-past-thead");
273
+ const head = el(doc, "tr", "cockpit-past-head");
274
+ for (const label of ["session", "status", "size", "captured"]) head.appendChild(el(doc, "th", "cockpit-th", label));
275
+ thead.appendChild(head);
276
+ table.appendChild(thead);
277
+ const tbody = el(doc, "tbody", "cockpit-past-tbody");
278
+ for (const session of view.sessions) tbody.appendChild(sessionRow(doc, session, onReplay, activeStream));
279
+ table.appendChild(tbody);
280
+ root.appendChild(table);
281
+ host.appendChild(root);
282
+ }
283
+
284
+ /** Feed a fetched transcript's stored chunks through a resume-from-offset TerminalSession (static playback). */
285
+ function replayTranscript(session, data) {
286
+ session.handle({ op: "subscribed", stream: data.stream, gap: data.gap, nextOffset: data.nextOffset });
287
+ for (const entry of data.entries ?? []) {
288
+ session.handle({ stream: data.stream, offset: entry.offset, chunk: entry.chunk });
289
+ }
290
+ }
291
+
184
292
  // ── boot orchestration (mirrors app/agentic/cockpit/supply-boot.ts) ────────────────────────────
185
293
 
186
294
  /** An xterm.js-backed terminal sink mounted into `host`. */
@@ -219,6 +327,10 @@ function relaySocketFactory(url) {
219
327
  * @param {number} [opts.refreshMs] — poll interval (default 2000).
220
328
  * @param {number} [opts.staleAfterMs] — a worker is rendered "stale" once its last heartbeat is at
221
329
  * least this many ms old (default 15000).
330
+ * @param {number} [opts.pastFetchTimeoutMs] — upper bound (ms) on a single past-sessions transcripts
331
+ * fetch; the fetch is aborted past this so a hung endpoint can't wedge the past panel (default 15000).
332
+ * @param {string} [opts.transcriptsUrl] — the captured-session list endpoint (default
333
+ * /app/api/agentic/transcripts) backing the always-on "past sessions" history + replay.
222
334
  * @returns a handle with `.dispose()`.
223
335
  */
224
336
  export function mountCockpit(host, opts = {}) {
@@ -229,6 +341,7 @@ export function mountCockpit(host, opts = {}) {
229
341
  }
230
342
  const doc = document;
231
343
  const reportUrl = opts.reportUrl ?? "/app/api/agentic/supply";
344
+ const transcriptsUrl = opts.transcriptsUrl ?? "/app/api/agentic/transcripts";
232
345
  const hookSecret = opts.hookSecret;
233
346
  const relayUrl = opts.relayUrl ?? defaultRelayUrl(opts.relayToken, opts.relayCapability);
234
347
  const refreshMs = opts.refreshMs ?? DEFAULT_REFRESH_MS;
@@ -239,20 +352,40 @@ export function mountCockpit(host, opts = {}) {
239
352
  throw new RangeError(`mountCockpit(opts.refreshMs): must be a positive safe integer, got ${refreshMs}.`);
240
353
  }
241
354
  const staleAfterMs = opts.staleAfterMs ?? DEFAULT_STALE_AFTER_MS;
355
+ // Upper bound on a single "past sessions" transcripts fetch. refreshPast() is single-flight, so a
356
+ // fetch that HANGS (never settles) would otherwise leave `pastRefreshing` stuck true forever and
357
+ // permanently disable the past panel; a bounded (aborting) fetch clears the flag so the next poll retries.
358
+ const pastFetchTimeoutMs = opts.pastFetchTimeoutMs ?? DEFAULT_PAST_FETCH_TIMEOUT_MS;
359
+ if (!isPosInt(pastFetchTimeoutMs)) {
360
+ throw new RangeError(
361
+ `mountCockpit(opts.pastFetchTimeoutMs): must be a positive safe integer, got ${pastFetchTimeoutMs}.`,
362
+ );
363
+ }
242
364
  const connectRelay = relaySocketFactory(relayUrl);
243
365
  const onError = (err) => console.error("[cockpit]", err);
244
366
 
245
- // Stable skeleton: a volatile list region the poll re-renders + a PERSISTENT terminal region a
246
- // refresh never touches (so a drilled-in terminal survives a list refresh).
367
+ const jsonHeaders = () => {
368
+ const headers = { accept: "application/json" };
369
+ if (hookSecret) headers["x-hook-secret"] = hookSecret;
370
+ return headers;
371
+ };
372
+
373
+ // Stable skeleton: a volatile supply-list region + a volatile "past sessions" region the poll
374
+ // re-renders, and a PERSISTENT terminal region a refresh never touches (so a drilled-in/replayed
375
+ // terminal survives a list refresh). The terminal panel title distinguishes live vs replayed.
247
376
  host.replaceChildren();
248
377
  const shell = el(doc, "div", "cockpit-shell");
249
378
  const listRegion = el(doc, "div", "cockpit-supply-region");
379
+ const pastRegion = el(doc, "div", "cockpit-past-region");
250
380
  const terminalPanel = el(doc, "section", "cockpit-terminal");
251
- terminalPanel.appendChild(el(doc, "h2", "cockpit-panel-title", "Worker terminal"));
381
+ terminalPanel.setAttribute("data-terminal-mode", "idle");
382
+ const terminalTitle = el(doc, "h2", "cockpit-panel-title", "Worker terminal");
383
+ terminalPanel.appendChild(terminalTitle);
252
384
  const terminalHost = el(doc, "div", "cockpit-terminal-host");
253
385
  terminalHost.setAttribute("data-terminal", "host");
254
386
  terminalPanel.appendChild(terminalHost);
255
387
  shell.appendChild(listRegion);
388
+ shell.appendChild(pastRegion);
256
389
  shell.appendChild(terminalPanel);
257
390
  host.appendChild(shell);
258
391
 
@@ -262,13 +395,36 @@ export function mountCockpit(host, opts = {}) {
262
395
  let generation = 0;
263
396
  let drill; // { stream, client }
264
397
  let terminal; // the current xterm sink
398
+ let mode; // "live" | "replay" | undefined
399
+ let shownStream;
400
+ // Bumped by every drillInto()/replayInto()/dispose() that claims the terminal region, so a slow
401
+ // replay fetch that resolves after a newer selection drops its result instead of clobbering it.
402
+ let opToken = 0;
403
+ // True while a refreshPast() fetch is outstanding, so the supply poll never stacks past-fetches
404
+ // against a slow/hung transcripts endpoint.
405
+ let pastRefreshing = false;
265
406
 
266
- function drillInto(stream) {
267
- if (disposed || drill?.stream === stream) return;
407
+ function setMode(next, stream) {
408
+ mode = next;
409
+ shownStream = stream;
410
+ terminalPanel.setAttribute("data-terminal-mode", next ?? "idle");
411
+ if (next === "live") terminalTitle.textContent = "Worker terminal — live";
412
+ else if (next === "replay") terminalTitle.textContent = "Worker terminal — replay (past session)";
413
+ else terminalTitle.textContent = "Worker terminal";
414
+ }
415
+
416
+ function teardownTerminal() {
268
417
  drill?.client.close();
269
418
  drill = undefined;
270
419
  terminal?.dispose?.();
271
420
  terminal = undefined;
421
+ }
422
+
423
+ function drillInto(stream) {
424
+ if (disposed || (mode === "live" && drill?.stream === stream)) return;
425
+ // Claim the terminal region: bump the op token so an in-flight replay drops its stale result.
426
+ opToken++;
427
+ teardownTerminal();
272
428
  try {
273
429
  terminalHost.replaceChildren();
274
430
  const sink = xtermSink(terminalHost);
@@ -283,18 +439,102 @@ export function mountCockpit(host, opts = {}) {
283
439
  session = new TerminalSession({ stream, sink, send: (message) => client.sendRelay(message) });
284
440
  client.open();
285
441
  drill = { stream, client };
442
+ setMode("live", stream);
443
+ } catch (err) {
444
+ // The new terminal failed to build after the prior one was torn down: reset the region to idle
445
+ // (and drop any partially-built terminal) so the UI never shows a stale "live"/"replay"
446
+ // indicator with nothing behind it — symmetric with replayInto(), which clears mode up-front.
447
+ teardownTerminal();
448
+ setMode(undefined, undefined);
449
+ onError(err);
450
+ }
451
+ }
452
+
453
+ async function replayInto(stream) {
454
+ if (disposed) return;
455
+ // Claim the terminal region under a fresh op token, captured for the post-fetch re-check below.
456
+ const token = ++opToken;
457
+ // Drop any live drill + prior terminal before fetching so replay never overlaps a live stream.
458
+ teardownTerminal();
459
+ setMode(undefined, undefined);
460
+ let data;
461
+ try {
462
+ // Bound the fetch: a transcript endpoint that never responds would otherwise leave replay() pending
463
+ // forever with an in-flight request and the terminal wedged out of live mode. Abort after
464
+ // pastFetchTimeoutMs so the fetch always settles (here, rejects) and this catch leaves mode idle.
465
+ const controller = new AbortController();
466
+ const abortTimer = setTimeout(() => controller.abort(), pastFetchTimeoutMs);
467
+ abortTimer.unref?.();
468
+ let res;
469
+ try {
470
+ res = await fetch(`${transcriptsUrl}/${encodeURIComponent(stream)}`, { headers: jsonHeaders(), signal: controller.signal });
471
+ } finally {
472
+ clearTimeout(abortTimer);
473
+ }
474
+ if (!res.ok) throw new Error(`transcript fetch failed: ${res.status}`);
475
+ data = await res.json();
476
+ } catch (err) {
477
+ onError(err);
478
+ return;
479
+ }
480
+ // A newer drill/replay (or dispose) claimed the terminal while this fetch was outstanding — drop
481
+ // the stale result rather than overwrite the newer selection with an out-of-date replay.
482
+ if (disposed || token !== opToken) return;
483
+ try {
484
+ terminalHost.replaceChildren();
485
+ const sink = xtermSink(terminalHost);
486
+ terminal = sink;
487
+ const session = new TerminalSession({ stream, sink, send: () => {}, from: data.from ?? 0 });
488
+ replayTranscript(session, data);
489
+ setMode("replay", stream);
490
+ void refreshPast();
286
491
  } catch (err) {
287
492
  onError(err);
288
493
  }
289
494
  }
290
495
 
496
+ async function refreshPast() {
497
+ // Single-flight: while one past-fetch is outstanding (including a hung one), skip starting another
498
+ // so the supply poll can't stack pending fetches against a slow/unresponsive transcripts endpoint.
499
+ if (pastRefreshing) return;
500
+ pastRefreshing = true;
501
+ try {
502
+ let report;
503
+ try {
504
+ // Bound the fetch: refreshPast() is single-flight, so a transcripts endpoint that never responds
505
+ // would otherwise wedge `pastRefreshing` true forever. Abort after pastFetchTimeoutMs so the fetch
506
+ // always settles (here, rejects), the finally clears the flag, and the next poll can retry.
507
+ const controller = new AbortController();
508
+ const abortTimer = setTimeout(() => controller.abort(), pastFetchTimeoutMs);
509
+ abortTimer.unref?.();
510
+ let res;
511
+ try {
512
+ res = await fetch(transcriptsUrl, { headers: jsonHeaders(), signal: controller.signal });
513
+ } finally {
514
+ clearTimeout(abortTimer);
515
+ }
516
+ if (!res.ok) throw new Error(`transcripts fetch failed: ${res.status}`);
517
+ report = await res.json();
518
+ } catch (err) {
519
+ onError(err);
520
+ return;
521
+ }
522
+ if (disposed) return;
523
+ try {
524
+ renderTranscripts(pastRegion, doc, transcriptsView(report), replayInto, mode === "replay" ? shownStream : undefined);
525
+ } catch (err) {
526
+ onError(err);
527
+ }
528
+ } finally {
529
+ pastRefreshing = false;
530
+ }
531
+ }
532
+
291
533
  async function refresh() {
292
534
  if (disposed) return;
293
535
  let report;
294
536
  try {
295
- const headers = { accept: "application/json" };
296
- if (hookSecret) headers["x-hook-secret"] = hookSecret;
297
- const res = await fetch(reportUrl, { headers });
537
+ const res = await fetch(reportUrl, { headers: jsonHeaders() });
298
538
  if (!res.ok) throw new Error(`supply fetch failed: ${res.status}`);
299
539
  report = await res.json();
300
540
  } catch (err) {
@@ -307,6 +547,8 @@ export function mountCockpit(host, opts = {}) {
307
547
  } catch (err) {
308
548
  onError(err);
309
549
  }
550
+ // Fire-and-forget: a hung transcripts endpoint must never stall the supply poll's next tick.
551
+ void refreshPast();
310
552
  }
311
553
 
312
554
  function tick(gen) {
@@ -332,15 +574,14 @@ export function mountCockpit(host, opts = {}) {
332
574
  function dispose() {
333
575
  if (disposed) return;
334
576
  disposed = true;
577
+ opToken++;
335
578
  stop();
336
- drill?.client.close();
337
- drill = undefined;
338
- terminal?.dispose?.();
339
- terminal = undefined;
579
+ teardownTerminal();
580
+ setMode(undefined, undefined);
340
581
  }
341
582
 
342
583
  start();
343
- return { start, stop, dispose, refresh, drill: drillInto };
584
+ return { start, stop, dispose, refresh, drill: drillInto, replay: replayInto };
344
585
  }
345
586
 
346
587
  /**
@@ -30,7 +30,7 @@
30
30
  "type": "text",
31
31
  "id": "intro",
32
32
  "props": {
33
- "text": "The live worker/supply view: every connected worker grouped by leaf token, with family, host, current jobs, and liveness — sourced from the agentic presence registry. Drill into a worker to stream its terminal live over the relay; the terminal stays mounted across a list refresh and re-attaches (resume-from-offset) on reconnect. The same view renders embedded here (App View) and standalone on a phone. (The demand×supply matrix, missing-agent-type lights, and the diversity SLO are the enrolment epic's board — not shown here.)",
33
+ "text": "The live worker/supply view: every connected worker grouped by leaf token, with family, host, current jobs, and liveness — sourced from the agentic presence registry. Drill into a worker to stream its terminal live over the relay; the terminal stays mounted across a list refresh and re-attaches (resume-from-offset) on reconnect. Beside it, a \"past sessions\" history lists the durable transcripts agents flushed on completion — select one to replay its captured terminal statically into the same panel (the title distinguishes live vs replayed). The same view renders embedded here (App View) and standalone on a phone. (The demand×supply matrix, missing-agent-type lights, and the diversity SLO are the enrolment epic's board — not shown here.)",
34
34
  "variant": "sub"
35
35
  }
36
36
  },
@@ -78,7 +78,7 @@
78
78
  <bpmn:extensionElements>
79
79
  <zeebe:taskDefinition type="senior:pr-review" />
80
80
  <zeebe:linkedResources>
81
- <zeebe:linkedResource resourceId="review-round.md" bindingType="latest" linkName="prompt" />
81
+ <zeebe:linkedResource resourceId="review-round.md" bindingType="latest" resourceType="GenericScript" linkName="prompt" />
82
82
  </zeebe:linkedResources>
83
83
  <zeebe:properties>
84
84
  <zeebe:property name="io.nanobpm.dataEnvelope.in" value="PrReviewRoundIn" />
@@ -41,7 +41,7 @@
41
41
  <bpmn:extensionElements>
42
42
  <zeebe:taskDefinition type="senior:feature" />
43
43
  <zeebe:linkedResources>
44
- <zeebe:linkedResource resourceId="feature.md" bindingType="latest" linkName="prompt" />
44
+ <zeebe:linkedResource resourceId="feature.md" bindingType="latest" resourceType="GenericScript" linkName="prompt" />
45
45
  </zeebe:linkedResources>
46
46
  <zeebe:ioMapping>
47
47
  <zeebe:input source="=&#34;&#10;&#10;---&#10;&#10;&#34; + task.prompt + (if (baseBranchBrief = null) then &#34;&#34; else baseBranchBrief)" target="appendPrompt" />
@@ -219,7 +219,7 @@
219
219
  <bpmn:extensionElements>
220
220
  <zeebe:taskDefinition type="senior:fix-ci" />
221
221
  <zeebe:linkedResources>
222
- <zeebe:linkedResource resourceId="fix-ci.md" bindingType="latest" linkName="prompt" />
222
+ <zeebe:linkedResource resourceId="fix-ci.md" bindingType="latest" resourceType="GenericScript" linkName="prompt" />
223
223
  </zeebe:linkedResources>
224
224
  <zeebe:properties>
225
225
  <zeebe:property name="io.nanobpm.dataEnvelope.in" value="FixCiIn" />
@@ -249,7 +249,7 @@
249
249
  <bpmn:extensionElements>
250
250
  <zeebe:taskDefinition type="senior:rebase" />
251
251
  <zeebe:linkedResources>
252
- <zeebe:linkedResource resourceId="rebase.md" bindingType="latest" linkName="prompt" />
252
+ <zeebe:linkedResource resourceId="rebase.md" bindingType="latest" resourceType="GenericScript" linkName="prompt" />
253
253
  </zeebe:linkedResources>
254
254
  <zeebe:properties>
255
255
  <zeebe:property name="io.nanobpm.dataEnvelope.in" value="RebaseIn" />
@@ -102,7 +102,7 @@
102
102
  <bpmn:extensionElements>
103
103
  <zeebe:taskDefinition type="senior:plan" />
104
104
  <zeebe:linkedResources>
105
- <zeebe:linkedResource resourceId="plan.md" bindingType="latest" linkName="prompt" />
105
+ <zeebe:linkedResource resourceId="plan.md" bindingType="latest" resourceType="GenericScript" linkName="prompt" />
106
106
  </zeebe:linkedResources>
107
107
  <zeebe:ioMapping>
108
108
  <zeebe:input source="=(if (planFindings = null or planFindings = &#34;&#34;) then &#34;&#34; else &#34;&#10;&#10;---&#10;&#10;A prior review REJECTED your last plan. Address every point, then re-emit the full plan:&#10;&#10;&#34; + planFindings)" target="appendPrompt" />
@@ -128,7 +128,7 @@
128
128
  <bpmn:extensionElements>
129
129
  <zeebe:taskDefinition type="senior:plan-review" />
130
130
  <zeebe:linkedResources>
131
- <zeebe:linkedResource resourceId="plan-review.md" bindingType="latest" linkName="prompt" />
131
+ <zeebe:linkedResource resourceId="plan-review.md" bindingType="latest" resourceType="GenericScript" linkName="prompt" />
132
132
  </zeebe:linkedResources>
133
133
  </bpmn:extensionElements>
134
134
  <bpmn:incoming>f_toReviewPlan</bpmn:incoming>
@@ -209,7 +209,7 @@
209
209
  <bpmn:extensionElements>
210
210
  <zeebe:taskDefinition type="senior:feature" />
211
211
  <zeebe:linkedResources>
212
- <zeebe:linkedResource resourceId="feature.md" bindingType="latest" linkName="prompt" />
212
+ <zeebe:linkedResource resourceId="feature.md" bindingType="latest" resourceType="GenericScript" linkName="prompt" />
213
213
  </zeebe:linkedResources>
214
214
  <zeebe:ioMapping>
215
215
  <zeebe:input source="=&#34;&#10;&#10;---&#10;&#10;&#34; + task.prompt + (if (blackboardBrief = null) then &#34;&#34; else blackboardBrief) + (if (baseBranchBrief = null) then &#34;&#34; else baseBranchBrief)" target="appendPrompt" />
@@ -283,7 +283,7 @@
283
283
  <bpmn:extensionElements>
284
284
  <zeebe:taskDefinition type="senior:trial-merge" />
285
285
  <zeebe:linkedResources>
286
- <zeebe:linkedResource resourceId="trial-merge.md" bindingType="latest" linkName="prompt" />
286
+ <zeebe:linkedResource resourceId="trial-merge.md" bindingType="latest" resourceType="GenericScript" linkName="prompt" />
287
287
  </zeebe:linkedResources>
288
288
  <zeebe:ioMapping>
289
289
  <zeebe:input source="=null" target="result" />
@@ -32,7 +32,7 @@
32
32
  <bpmn:extensionElements>
33
33
  <zeebe:taskDefinition type="senior:retro" />
34
34
  <zeebe:linkedResources>
35
- <zeebe:linkedResource resourceId="retro.md" bindingType="latest" linkName="prompt" />
35
+ <zeebe:linkedResource resourceId="retro.md" bindingType="latest" resourceType="GenericScript" linkName="prompt" />
36
36
  </zeebe:linkedResources>
37
37
  <zeebe:ioMapping>
38
38
  <zeebe:input source="=retroDigest" target="appendPrompt" />