@opengeni/worker-bundle 2.2.1-canary.36927100590001 → 2.2.1

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.
Files changed (36) hide show
  1. package/dist/activities/agent-turn/run-credentials.d.ts +0 -2
  2. package/dist/activities/scheduled-tasks.d.ts +35 -4
  3. package/dist/activities/types.d.ts +0 -3
  4. package/dist/activities/workspace-capture.d.ts +0 -2
  5. package/dist/{activities-control-4F2A734B.js → activities-control-55ECL47G.js} +20 -102
  6. package/dist/activities-control-55ECL47G.js.map +1 -0
  7. package/dist/{activities-turn-TESOIOEX.js → activities-turn-T7Y3BWYO.js} +7 -20
  8. package/dist/activities-turn-T7Y3BWYO.js.map +1 -0
  9. package/dist/{chunk-YG27NEMX.js → chunk-IJZU752L.js} +1 -34
  10. package/dist/chunk-IJZU752L.js.map +1 -0
  11. package/dist/{chunk-4PJTUBWQ.js → chunk-OWNLATJL.js} +11 -34
  12. package/dist/chunk-OWNLATJL.js.map +1 -0
  13. package/dist/index.js +2 -2
  14. package/dist/observability-metrics.d.ts +1 -16
  15. package/dist/workflow-bundle.js +12 -18
  16. package/dist/workflows/scheduled-tasks.d.ts +0 -4
  17. package/package.json +21 -21
  18. package/src/activities/agent-turn/claim.ts +1 -13
  19. package/src/activities/agent-turn/run-credentials.ts +0 -5
  20. package/src/activities/agent-turn/run.ts +0 -1
  21. package/src/activities/agent-turn/tool-environment.ts +0 -4
  22. package/src/activities/automations.ts +1 -23
  23. package/src/activities/goals.ts +8 -33
  24. package/src/activities/sandbox-lease.ts +0 -22
  25. package/src/activities/scheduled-tasks.ts +25 -89
  26. package/src/activities/site-auth-maintenance.ts +0 -1
  27. package/src/activities/types.ts +0 -3
  28. package/src/activities/workspace-capture.ts +2 -13
  29. package/src/observability-metrics.ts +1 -55
  30. package/src/workflows/scheduled-tasks.ts +13 -26
  31. package/dist/activities/agent-turn/credential-restriction.d.ts +0 -3
  32. package/dist/activities-control-4F2A734B.js.map +0 -1
  33. package/dist/activities-turn-TESOIOEX.js.map +0 -1
  34. package/dist/chunk-4PJTUBWQ.js.map +0 -1
  35. package/dist/chunk-YG27NEMX.js.map +0 -1
  36. package/src/activities/agent-turn/credential-restriction.ts +0 -14
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  startContextCompactionPendingMonitor,
20
20
  startSessionRecoveryMonitor,
21
21
  startTurnCapacityMonitor
22
- } from "./chunk-YG27NEMX.js";
22
+ } from "./chunk-IJZU752L.js";
23
23
  import "./chunk-PZ5AY32C.js";
24
24
 
25
25
  // src/index.ts
@@ -797,7 +797,7 @@ function temporalWorkflowExecutionNotFound(error) {
797
797
  return isGrpcServiceError(error) && error.code === 5;
798
798
  }
799
799
  async function createDefaultWorkerActivities(role, dependencies = {}) {
800
- return role === "control" ? (await import("./activities-control-4F2A734B.js")).createControlActivities(dependencies) : (await import("./activities-turn-TESOIOEX.js")).createTurnActivities(dependencies);
800
+ return role === "control" ? (await import("./activities-control-55ECL47G.js")).createControlActivities(dependencies) : (await import("./activities-turn-T7Y3BWYO.js")).createTurnActivities(dependencies);
801
801
  }
802
802
  function resolveOpenGeniWorkflowDefinition(moduleUrl = import.meta.url) {
803
803
  const modulePath = fileURLToPath(moduleUrl).replaceAll("\\", "/");
@@ -1,5 +1,5 @@
1
1
  import { type SessionEventType, type SkillReadKind, type SkillUseSource } from "@opengeni/contracts";
2
- import { type ActiveUserWindow, type CreditGrantTotals, type SessionEventAppendPhaseObservation } from "@opengeni/db";
2
+ import type { SessionEventAppendPhaseObservation } from "@opengeni/db";
3
3
  import { type EventBusOptions, type EventLogger } from "@opengeni/events";
4
4
  import type { Observability } from "@opengeni/observability";
5
5
  import type { CompanyBrainContributionReceipt } from "./model-context-contributions.js";
@@ -181,21 +181,6 @@ export type SandboxInventoryProjectionDomain = (typeof SANDBOX_INVENTORY_PROJECT
181
181
  export declare function recordSandboxInventoryProjectionSuccess(observability: Observability, domain: SandboxInventoryProjectionDomain, timestampSeconds?: number): void;
182
182
  export declare function recordSandboxInventoryProjectionFailure(observability: Observability, domain: SandboxInventoryProjectionDomain): void;
183
183
  export declare function recordCreditBalanceGauges(observability: Observability, balances: CreditBalanceGauge[]): void;
184
- /**
185
- * Distinct managed people with authenticated browser activity in each fixed
186
- * window (migration 0565 presence). Every control worker publishes the same
187
- * global value, so dashboards must aggregate with `max()` across pods, never
188
- * `sum()`. API keys, services and embedded hosts are never counted.
189
- */
190
- export declare function recordActiveUserGauges(observability: Observability, counts: Record<ActiveUserWindow, number>): void;
191
- /**
192
- * Positive credit grants observed by the ledger trigger since migration 0565,
193
- * by closed class. These are cumulative database totals published as gauges by
194
- * every control worker: aggregate with `max()` across pods, then `increase()`.
195
- * Counting in the database covers the grants no application process writes:
196
- * the verified-signup trial grant (a setup trigger) and operator grants.
197
- */
198
- export declare function recordCreditGrantGauges(observability: Observability, totals: CreditGrantTotals): void;
199
184
  /**
200
185
  * The deployment-level runtime switch for the one-time verified signup trial
201
186
  * credit (migration 0521): 1 while it allows grants, 0 when an operator has