@opengeni/worker-bundle 0.20.0 → 0.20.3
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/activities/agent-turn.d.ts +25 -2
- package/dist/activities/google-drive-publication.d.ts +53 -0
- package/dist/activities/image-generation-references.d.ts +2 -0
- package/dist/activities/knowledge-source-sync-driver.d.ts +21 -0
- package/dist/activities/knowledge-source-sync.d.ts +29 -1
- package/dist/activities/run-input.d.ts +20 -2
- package/dist/activities/session-state.d.ts +5 -3
- package/dist/activities/types.d.ts +27 -0
- package/dist/{activities-control-XURE4VKN.js → activities-control-BJSDRSIP.js} +369 -20
- package/dist/activities-control-BJSDRSIP.js.map +1 -0
- package/dist/activities-control.d.ts +2 -2
- package/dist/{activities-turn-6EBXGGLS.js → activities-turn-J5YO7XXX.js} +2281 -1074
- package/dist/activities-turn-J5YO7XXX.js.map +1 -0
- package/dist/activities.d.ts +3 -3
- package/dist/{chunk-TYNPCG4U.js → chunk-N5TJIFCE.js} +69 -1
- package/dist/chunk-N5TJIFCE.js.map +1 -0
- package/dist/{chunk-5GRJIP5H.js → chunk-P6Z2SLAA.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/observability-metrics.d.ts +37 -0
- package/dist/workflow-bundle.js +174 -4
- package/dist/workflows/session.d.ts +17 -1
- package/package.json +13 -13
- package/src/activities/agent-turn.ts +1801 -1175
- package/src/activities/documents.ts +6 -4
- package/src/activities/google-drive-publication.ts +840 -0
- package/src/activities/image-generation-references.ts +11 -2
- package/src/activities/knowledge-source-sync-driver.ts +23 -0
- package/src/activities/knowledge-source-sync.ts +384 -9
- package/src/activities/run-input.ts +175 -51
- package/src/activities/session-state.ts +69 -5
- package/src/activities/types.ts +27 -0
- package/src/activities.ts +2 -0
- package/src/observability-metrics.ts +184 -3
- package/src/workflows/session.ts +199 -8
- package/dist/activities-control-XURE4VKN.js.map +0 -1
- package/dist/activities-turn-6EBXGGLS.js.map +0 -1
- package/dist/chunk-TYNPCG4U.js.map +0 -1
- /package/dist/{chunk-5GRJIP5H.js.map → chunk-P6Z2SLAA.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as activities from "../activities.js";
|
|
2
|
-
import { type EscapedMcpTimeoutRecoveryDetail } from "../activities/types.js";
|
|
2
|
+
import { type EscapedMcpTimeoutRecoveryDetail, type PreClaimFailureDisposition } from "../activities/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* How long the continuation loop must hold before re-admitting the next turn. 0 ⇒ no
|
|
5
5
|
* hold (re-dispatch immediately — a rotation candidate is ready, or no idle delay was
|
|
@@ -21,6 +21,20 @@ export declare function continuationHoldMs(result: {
|
|
|
21
21
|
* signal-version and interruption paths in `sessionWorkflow`.
|
|
22
22
|
*/
|
|
23
23
|
export declare function deferredResultMayContinue(entryWakeups: number, currentWakeups: number): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Bound repeated failures that happen before an attempt row exists. The
|
|
26
|
+
* activity mirrors this deterministic delay into the durable wake outbox, so
|
|
27
|
+
* a live workflow and a replacement workflow observe the same retry floor.
|
|
28
|
+
*/
|
|
29
|
+
export declare function unclaimedAttemptRetryDelayMs(consecutiveFailures: number): number;
|
|
30
|
+
export type SessionWakeCounters = {
|
|
31
|
+
wakeups: number;
|
|
32
|
+
interruptionWakeups: number;
|
|
33
|
+
approvalWakeups: number;
|
|
34
|
+
capacityWakeups: number;
|
|
35
|
+
};
|
|
36
|
+
/** Any signal that can make the failed admission runnable interrupts backoff. */
|
|
37
|
+
export declare function unclaimedAttemptWakeChanged(baseline: SessionWakeCounters, current: SessionWakeCounters): boolean;
|
|
24
38
|
/** Deterministic Temporal timer delay for a persisted structured-input deadline. */
|
|
25
39
|
export declare function humanInputDeadlineWaitMs(expiresAt: string, nowMs?: number): number;
|
|
26
40
|
/**
|
|
@@ -31,6 +45,8 @@ export declare function humanInputDeadlineWaitMs(expiresAt: string, nowMs?: numb
|
|
|
31
45
|
* with immutable turn identity in payload-converted details.
|
|
32
46
|
*/
|
|
33
47
|
export declare function escapedMcpTimeoutRecoveryDetail(error: unknown): EscapedMcpTimeoutRecoveryDetail | null;
|
|
48
|
+
/** Read only the upgraded turn worker's explicit pre-claim wire contract. */
|
|
49
|
+
export declare function preClaimFailureDisposition(error: unknown): PreClaimFailureDisposition | undefined;
|
|
34
50
|
/**
|
|
35
51
|
* Classify only the exact turn-fence cancellation protocol used to arbitrate a
|
|
36
52
|
* database control commit that reaches the activity just before its Temporal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/worker-bundle",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.3",
|
|
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": {
|
|
@@ -56,19 +56,19 @@
|
|
|
56
56
|
"@llamaindex/liteparse": "^1.5.3",
|
|
57
57
|
"@opengeni/agent-proto": "^0.5.0",
|
|
58
58
|
"@opengeni/capabilities": "^0.2.0",
|
|
59
|
-
"@opengeni/codemode": "^0.4.
|
|
60
|
-
"@opengeni/codex": "^0.2.
|
|
61
|
-
"@opengeni/config": "^0.16.
|
|
62
|
-
"@opengeni/contracts": "^0.
|
|
63
|
-
"@opengeni/core": "^0.
|
|
64
|
-
"@opengeni/db": "^0.
|
|
65
|
-
"@opengeni/documents": "^0.5.
|
|
66
|
-
"@opengeni/events": "^0.3.
|
|
67
|
-
"@opengeni/github": "^0.4.
|
|
59
|
+
"@opengeni/codemode": "^0.4.4",
|
|
60
|
+
"@opengeni/codex": "^0.2.17",
|
|
61
|
+
"@opengeni/config": "^0.16.4",
|
|
62
|
+
"@opengeni/contracts": "^1.0.1",
|
|
63
|
+
"@opengeni/core": "^1.0.1",
|
|
64
|
+
"@opengeni/db": "^1.0.1",
|
|
65
|
+
"@opengeni/documents": "^0.5.41",
|
|
66
|
+
"@opengeni/events": "^0.3.112",
|
|
67
|
+
"@opengeni/github": "^0.4.59",
|
|
68
68
|
"@opengeni/network": "^0.2.2",
|
|
69
|
-
"@opengeni/observability": "^0.7.
|
|
70
|
-
"@opengeni/runtime": "^0.
|
|
71
|
-
"@opengeni/storage": "^0.2.
|
|
69
|
+
"@opengeni/observability": "^0.7.7",
|
|
70
|
+
"@opengeni/runtime": "^1.0.1",
|
|
71
|
+
"@opengeni/storage": "^0.2.96",
|
|
72
72
|
"@opengeni/xai-subscription": "^0.1.0",
|
|
73
73
|
"@temporalio/activity": "^1.17.0",
|
|
74
74
|
"@temporalio/client": "^1.17.0",
|