@opengeni/core 0.20.10 → 0.20.11

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": "@opengeni/core",
3
- "version": "0.20.10",
3
+ "version": "0.20.11",
4
4
  "description": "OpenGeni framework-agnostic core: the domain, access, and billing layers (neutral access, off-HTTP V2 surface). Behavior-preserving extraction from apps/api — keeps Hono's HTTPException for error throwing (typed-errors cleanup deferred).",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -37,9 +37,9 @@
37
37
  "@opengeni/codex": "^0.2.10",
38
38
  "@opengeni/config": "^0.10.11",
39
39
  "@opengeni/contracts": "^0.38.1",
40
- "@opengeni/db": "^0.27.7",
41
- "@opengeni/documents": "^0.5.3",
42
- "@opengeni/events": "^0.3.73",
40
+ "@opengeni/db": "^0.27.8",
41
+ "@opengeni/documents": "^0.5.4",
42
+ "@opengeni/events": "^0.3.74",
43
43
  "@opengeni/observability": "^0.4.14",
44
44
  "@opengeni/runtime": "^0.18.10",
45
45
  "@opengeni/storage": "^0.2.64",
@@ -184,6 +184,7 @@ async function publishAndWakeAgentCommand(
184
184
  wakeRevision: number | null;
185
185
  shouldSignal: boolean;
186
186
  interruptionCount: number;
187
+ controlRequested?: boolean;
187
188
  },
188
189
  ): Promise<void> {
189
190
  await publishSessionEventIds(deps, input.workspaceId, input.sessionId, input.eventIds);
@@ -195,7 +196,9 @@ async function publishAndWakeAgentCommand(
195
196
  sessionId: input.sessionId,
196
197
  workflowId: input.workflowId,
197
198
  wakeRevision: input.wakeRevision,
198
- ...(input.interruptionCount > 0 ? { interruptionRequested: true } : {}),
199
+ ...(input.controlRequested || input.interruptionCount > 0
200
+ ? { interruptionRequested: true }
201
+ : {}),
199
202
  });
200
203
  } catch (error) {
201
204
  console.warn(
@@ -329,6 +332,7 @@ export async function steerAgentSession(
329
332
  wakeRevision: result.wakeRevision,
330
333
  shouldSignal: result.shouldSignal,
331
334
  interruptionCount: result.interruptionCount,
335
+ controlRequested: true,
332
336
  });
333
337
  await publishWorkspaceControlEvent(deps, context.workspaceId, result.workspaceControlEventId);
334
338
  return result;
@@ -1099,7 +1099,9 @@ export async function postUserMessageTurn(input: {
1099
1099
  sessionId,
1100
1100
  workflowId: turn.temporalWorkflowId,
1101
1101
  wakeRevision: result.wakeRevision,
1102
- ...(result.interruptionCount > 0 ? { interruptionRequested: true } : {}),
1102
+ ...((input.delivery ?? "send") === "steer" || result.interruptionCount > 0
1103
+ ? { interruptionRequested: true }
1104
+ : {}),
1103
1105
  });
1104
1106
  } catch (error) {
1105
1107
  console.warn(