@opengeni/core 0.20.6 → 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.
|
|
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": {
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
37
37
|
"@opengeni/codex": "^0.2.10",
|
|
38
|
-
"@opengeni/config": "^0.10.
|
|
39
|
-
"@opengeni/contracts": "^0.
|
|
40
|
-
"@opengeni/db": "^0.27.
|
|
41
|
-
"@opengeni/documents": "^0.4
|
|
42
|
-
"@opengeni/events": "^0.3.
|
|
43
|
-
"@opengeni/observability": "^0.4.
|
|
44
|
-
"@opengeni/runtime": "^0.18.
|
|
45
|
-
"@opengeni/storage": "^0.2.
|
|
38
|
+
"@opengeni/config": "^0.10.11",
|
|
39
|
+
"@opengeni/contracts": "^0.38.1",
|
|
40
|
+
"@opengeni/db": "^0.27.8",
|
|
41
|
+
"@opengeni/documents": "^0.5.4",
|
|
42
|
+
"@opengeni/events": "^0.3.74",
|
|
43
|
+
"@opengeni/observability": "^0.4.14",
|
|
44
|
+
"@opengeni/runtime": "^0.18.10",
|
|
45
|
+
"@opengeni/storage": "^0.2.64",
|
|
46
46
|
"hono": "^4.12.18"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
@@ -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
|
|
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;
|
package/src/dependencies.ts
CHANGED
|
@@ -117,6 +117,10 @@ export type AppDependencies = {
|
|
|
117
117
|
slackFetch?: typeof fetch;
|
|
118
118
|
/** Injectable Google OAuth/Drive transport for deterministic connector tests. */
|
|
119
119
|
googleDriveFetch?: typeof fetch;
|
|
120
|
+
/** Injectable MCP OAuth setup deadline for deterministic stalled-provider tests. */
|
|
121
|
+
oauthStartDeadlineMs?: number;
|
|
122
|
+
/** Injectable MCP OAuth callback deadline for deterministic stalled-provider tests. */
|
|
123
|
+
oauthCallbackDeadlineMs?: number;
|
|
120
124
|
/** Optional host-owned voice-input transcription service. */
|
|
121
125
|
transcription?: TranscriptionService | null;
|
|
122
126
|
// The API process's OWN agent-loop-free sandbox client (constructed from
|
package/src/domain/sessions.ts
CHANGED
|
@@ -1099,7 +1099,9 @@ export async function postUserMessageTurn(input: {
|
|
|
1099
1099
|
sessionId,
|
|
1100
1100
|
workflowId: turn.temporalWorkflowId,
|
|
1101
1101
|
wakeRevision: result.wakeRevision,
|
|
1102
|
-
...(
|
|
1102
|
+
...((input.delivery ?? "send") === "steer" || result.interruptionCount > 0
|
|
1103
|
+
? { interruptionRequested: true }
|
|
1104
|
+
: {}),
|
|
1103
1105
|
});
|
|
1104
1106
|
} catch (error) {
|
|
1105
1107
|
console.warn(
|