@opengeni/worker-bundle 0.26.0-canary.1 → 0.26.0-canary.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/dist/index.js CHANGED
@@ -781,7 +781,7 @@ function temporalWorkflowExecutionNotFound(error) {
781
781
  return isGrpcServiceError(error) && error.code === 5;
782
782
  }
783
783
  async function createDefaultWorkerActivities(role, dependencies = {}) {
784
- return role === "control" ? (await import("./activities-control-KS3ZPQVY.js")).createControlActivities(dependencies) : (await import("./activities-turn-GHSFZB64.js")).createTurnActivities(dependencies);
784
+ return role === "control" ? (await import("./activities-control-3SKLDTXQ.js")).createControlActivities(dependencies) : (await import("./activities-turn-GHSFZB64.js")).createTurnActivities(dependencies);
785
785
  }
786
786
  function resolveOpenGeniWorkflowDefinition(moduleUrl = import.meta.url) {
787
787
  const modulePath = fileURLToPath(moduleUrl).replaceAll("\\", "/");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/worker-bundle",
3
- "version": "0.26.0-canary.1",
3
+ "version": "0.26.0-canary.2",
4
4
  "description": "OpenGeni worker entry and reusable embedded lifecycle, shipped with a release-coherent pre-bundled Temporal workflow artifact.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -54,22 +54,22 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@llamaindex/liteparse": "2.14.2",
57
- "@opengeni/agent-proto": "^0.5.1-canary.10",
58
- "@opengeni/capabilities": "^0.3.2-canary.1",
59
- "@opengeni/codemode": "^0.4.27-canary.1",
60
- "@opengeni/codex": "^0.2.21-canary.1",
61
- "@opengeni/config": "^1.0.0-canary.1",
62
- "@opengeni/contracts": "^2.13.0-canary.1",
63
- "@opengeni/core": "^2.7.5-canary.1",
64
- "@opengeni/db": "^4.0.0-canary.1",
65
- "@opengeni/documents": "^0.8.19-canary.1",
66
- "@opengeni/events": "^0.4.17-canary.1",
67
- "@opengeni/github": "^0.7.3-canary.1",
68
- "@opengeni/network": "^0.3.0-canary.1",
69
- "@opengeni/observability": "^0.8.19-canary.1",
70
- "@opengeni/runtime": "^2.3.0-canary.1",
71
- "@opengeni/storage": "^0.2.120-canary.1",
72
- "@opengeni/xai-subscription": "^0.1.3-canary.1",
57
+ "@opengeni/agent-proto": "^0.5.1-canary.11",
58
+ "@opengeni/capabilities": "^0.3.2-canary.2",
59
+ "@opengeni/codemode": "^0.4.27-canary.2",
60
+ "@opengeni/codex": "^0.2.21-canary.2",
61
+ "@opengeni/config": "^1.0.0-canary.2",
62
+ "@opengeni/contracts": "^2.13.0-canary.2",
63
+ "@opengeni/core": "^2.7.5-canary.2",
64
+ "@opengeni/db": "^4.0.0-canary.2",
65
+ "@opengeni/documents": "^0.8.19-canary.2",
66
+ "@opengeni/events": "^0.4.17-canary.2",
67
+ "@opengeni/github": "^0.7.3-canary.2",
68
+ "@opengeni/network": "^0.3.0-canary.2",
69
+ "@opengeni/observability": "^0.8.19-canary.2",
70
+ "@opengeni/runtime": "^2.3.0-canary.2",
71
+ "@opengeni/storage": "^0.2.120-canary.2",
72
+ "@opengeni/xai-subscription": "^0.1.3-canary.2",
73
73
  "@temporalio/activity": "^1.17.0",
74
74
  "@temporalio/client": "^1.17.0",
75
75
  "@temporalio/worker": "^1.17.0",
@@ -160,6 +160,7 @@ export function createSessionStateActivities(
160
160
  workflowId,
161
161
  trigger: input.trigger,
162
162
  error: input.error ?? "Agent turn admission failed before attempt claim.",
163
+ ...(input.preClaimFailure ? { admissionFailure: input.preClaimFailure } : {}),
163
164
  });
164
165
  if (failed.action === "terminal") return { action: "terminal" };
165
166
  if (failed.action === "stale") return { action: "stale" };
@@ -540,14 +541,12 @@ export function createSessionStateActivities(
540
541
  await publishDurableSessionEventsFn(bus, input.workspaceId, input.sessionId, settled.events);
541
542
  }
542
543
  await refreshQueuedTurnsGauge(db, observability, countQueuedTurnsFn, recordTurnsQueuedGaugeFn);
543
- if (settled.action === "stale") {
544
+ if (settled.action === "stale" || !settled.notifyParent) {
544
545
  return;
545
546
  }
546
- // The workflow reaches markSessionIdle exactly when it has decided to stop
547
- // for now (no queued turn, no goal continuation): the terminal-for-now
548
- // point for a spawned worker, whatever the cause (goal completed, agent or
549
- // system paused goal, goalless work finished, idle control settlement). Wake
550
- // the parent here, deduped per idle episode so the manager is nudged once.
547
+ // The idle transaction distinguishes parked wait/goal obligations from
548
+ // completed work. Only a terminal idle boundary may notify the parent;
549
+ // workflow closure while waiting retains its durable wake without a result.
551
550
  await notifyParentOfChildIdleFn(
552
551
  { db, bus, settings, observability, wakeSessionWorkflow },
553
552
  input.workspaceId,