@opengeni/worker-bundle 0.7.4 → 0.8.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.
Files changed (42) hide show
  1. package/dist/chunk-BJUW5LCM.js +325 -0
  2. package/dist/chunk-BJUW5LCM.js.map +1 -0
  3. package/dist/host-export.d.ts +70 -0
  4. package/dist/host-export.js +7 -0
  5. package/dist/host-export.js.map +1 -0
  6. package/dist/index.d.ts +98 -6
  7. package/dist/index.js +2853 -834
  8. package/dist/index.js.map +1 -1
  9. package/dist/workflow-bundle.js +12358 -0
  10. package/package.json +18 -12
  11. package/src/activities/agent-turn.ts +2052 -554
  12. package/src/activities/capabilities.ts +9 -2
  13. package/src/activities/codex-capacity.ts +6 -11
  14. package/src/activities/codex-rotation.ts +75 -86
  15. package/src/activities/context-compaction.ts +104 -24
  16. package/src/activities/environment.ts +367 -92
  17. package/src/activities/expiring-material-renewal.ts +143 -0
  18. package/src/activities/goals.ts +4 -0
  19. package/src/activities/mcp-credentials.ts +38 -0
  20. package/src/activities/packs.ts +115 -2
  21. package/src/activities/parent-wake.ts +48 -38
  22. package/src/activities/run-credential-renewal.ts +70 -0
  23. package/src/activities/run-credentials.ts +132 -0
  24. package/src/activities/run-input.ts +23 -0
  25. package/src/activities/sandbox-lease.ts +1 -1
  26. package/src/activities/scheduled-tasks.ts +21 -0
  27. package/src/activities/session-state.ts +83 -12
  28. package/src/activities/streaming.ts +1 -0
  29. package/src/activities/toolspace-token-renewal.ts +57 -0
  30. package/src/activities/types.ts +44 -6
  31. package/src/activities/workspace-capture.ts +113 -93
  32. package/src/activities.ts +10 -2
  33. package/src/host-export-pump.ts +416 -0
  34. package/src/host-export.ts +22 -0
  35. package/src/http.ts +77 -28
  36. package/src/index.ts +360 -156
  37. package/src/sandbox-resume.ts +47 -1
  38. package/src/sandbox-routing.ts +1 -1
  39. package/src/worker-service-lifecycle.ts +104 -0
  40. package/src/workflows/activities.ts +13 -7
  41. package/src/workflows/session.ts +219 -23
  42. package/src/workflows.ts +1 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opengeni/worker-bundle",
3
- "version": "0.7.4",
4
- "description": "OpenGeni worker entry: runOpenGeniWorker/createOpenGeniWorker(deps) + the un-bundled Temporal workflow source tree. An engine-distribution surface — its runtime closure includes engine-internal packages and the workflow bundle ships as on-disk TS source.",
3
+ "version": "0.8.3",
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": {
7
7
  "type": "git",
@@ -20,6 +20,10 @@
20
20
  ".": {
21
21
  "types": "./dist/index.d.ts",
22
22
  "import": "./dist/index.js"
23
+ },
24
+ "./host-export": {
25
+ "types": "./dist/host-export.d.ts",
26
+ "import": "./dist/host-export.js"
23
27
  }
24
28
  },
25
29
  "publishConfig": {
@@ -31,20 +35,22 @@
31
35
  "dev:watch": "bun --watch src/index.ts",
32
36
  "start": "bun src/index.ts",
33
37
  "typecheck": "tsgo --noEmit",
34
- "build": "tsup",
38
+ "build": "tsup && bun scripts/build-workflow-bundle.ts",
35
39
  "prepublishOnly": "bash ../../scripts/prepublish-guard"
36
40
  },
37
41
  "dependencies": {
38
- "@opengeni/codex": "^0.2.3",
39
- "@opengeni/config": "^0.5.1",
40
- "@opengeni/contracts": "^0.10.0",
41
- "@opengeni/core": "^0.4.9",
42
- "@opengeni/db": "^0.7.2",
43
- "@opengeni/documents": "^0.2.11",
44
- "@opengeni/events": "^0.3.2",
42
+ "@opengeni/agent-proto": "^0.3.0",
43
+ "@opengeni/codex": "^0.2.5",
44
+ "@opengeni/config": "^0.6.2",
45
+ "@opengeni/contracts": "^0.15.0",
46
+ "@opengeni/core": "^0.8.0",
47
+ "@opengeni/db": "^0.9.3",
48
+ "@opengeni/documents": "^0.2.19",
49
+ "@opengeni/events": "^0.3.10",
50
+ "@opengeni/github": "^0.3.3",
45
51
  "@opengeni/observability": "^0.3.0",
46
- "@opengeni/runtime": "^0.7.1",
47
- "@opengeni/storage": "^0.2.10",
52
+ "@opengeni/runtime": "^0.11.0",
53
+ "@opengeni/storage": "^0.2.15",
48
54
  "@temporalio/activity": "^1.17.0",
49
55
  "@temporalio/client": "^1.17.0",
50
56
  "@temporalio/worker": "^1.17.0",