@opengeni/worker-bundle 0.11.2 → 0.12.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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Settings } from '@opengeni/config';
2
2
  import * as _opengeni_db from '@opengeni/db';
3
- import { Database } from '@opengeni/db';
3
+ import { Database, RuntimeDatabasePostureOptions } from '@opengeni/db';
4
4
  import { EventBus } from '@opengeni/events';
5
5
  import { Observability } from '@opengeni/observability';
6
6
  import { Worker, NativeConnection, WorkflowBundleOption } from '@temporalio/worker';
@@ -77,10 +77,7 @@ type ReconcileCodexCapacityWaitInput = {
77
77
  type ReconcileCodexCapacityWaitResult = ({
78
78
  action: "waiting";
79
79
  } & CodexCapacityWaitRef) | {
80
- action: "resumed";
81
- updateId: string;
82
- } | {
83
- action: "superseded" | "stale";
80
+ action: "resumed" | "paused" | "superseded" | "stale";
84
81
  };
85
82
  type ActivityDependencies = Partial<ActivityServices>;
86
83
  type RunAgentTurnInput = {
@@ -187,7 +184,7 @@ type IndexDocumentInput = {
187
184
  documentId: string;
188
185
  };
189
186
  type ClaimedRunAgentTurnResult = {
190
- status: "idle" | "requires_action" | "failed" | "cancelled" | "recovering";
187
+ status: "idle" | "requires_action" | "failed" | "cancelled" | "recovering" | "waiting_capacity";
191
188
  turnId: string;
192
189
  attemptId: string;
193
190
  continueDelayMs?: number;
@@ -314,6 +311,20 @@ declare function createControlActivities(dependencies?: ActivityDependencies): {
314
311
  sourceUpdatedAt: string | null;
315
312
  sourceVersion: string | null;
316
313
  aclTags: string[];
314
+ visibility: "workspace" | "private";
315
+ createdBy: string | null;
316
+ agentAccess: boolean;
317
+ summary: string | null;
318
+ topics: string[];
319
+ curationStatus: "none" | "failed" | "pending" | "suggested" | "auto_filed";
320
+ curation: {
321
+ suggestedBaseId: string | null;
322
+ suggestedBaseName: string | null;
323
+ confidence: number;
324
+ reason: string | null;
325
+ originalTitle: string | null;
326
+ model: string | null;
327
+ } | null;
317
328
  createdAt: string;
318
329
  updatedAt: string;
319
330
  }>;
@@ -403,6 +414,11 @@ type OpenGeniWorkerServiceOptions = Omit<WorkerOptions, "activityDependencies">
403
414
  db: Database;
404
415
  bus: EventBus;
405
416
  };
417
+ /**
418
+ * Exact catalog posture required by the standalone runtime. Embedded hosts
419
+ * may omit this when they own an equivalent database isolation contract.
420
+ */
421
+ databasePosture?: RuntimeDatabasePostureOptions;
406
422
  /**
407
423
  * `role-default` registers OpenGeni's internal maintenance schedules on a
408
424
  * control worker only. These are engine maintenance schedules, not a host's