@opengeni/worker-bundle 0.7.1 → 0.7.2

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 (45) hide show
  1. package/dist/index.d.ts +182 -67
  2. package/dist/index.js +7113 -1652
  3. package/dist/index.js.map +1 -1
  4. package/package.json +18 -18
  5. package/src/activities/agent-turn.ts +4337 -1052
  6. package/src/activities/capabilities.ts +43 -8
  7. package/src/activities/codex-capacity.ts +223 -0
  8. package/src/activities/codex-rotation.ts +550 -54
  9. package/src/activities/common.ts +7 -1
  10. package/src/activities/context-compaction.ts +152 -118
  11. package/src/activities/documents.ts +32 -27
  12. package/src/activities/environment.ts +318 -75
  13. package/src/activities/file-upload-reaper.ts +79 -0
  14. package/src/activities/git-credential-renewal.ts +183 -0
  15. package/src/activities/goals.ts +142 -123
  16. package/src/activities/packs.ts +55 -5
  17. package/src/activities/parent-wake.ts +228 -41
  18. package/src/activities/recording.ts +154 -122
  19. package/src/activities/redaction.ts +3 -1
  20. package/src/activities/rig-verification.ts +441 -0
  21. package/src/activities/run-input.ts +110 -122
  22. package/src/activities/sandbox-lease.ts +186 -51
  23. package/src/activities/scheduled-tasks.ts +287 -171
  24. package/src/activities/session-state.ts +168 -157
  25. package/src/activities/streaming.ts +143 -19
  26. package/src/activities/turn-attempt-fenced.ts +14 -0
  27. package/src/activities/types.ts +102 -32
  28. package/src/activities/workflow-wake.ts +44 -0
  29. package/src/activities/workspace-capture.ts +964 -0
  30. package/src/activities.ts +75 -35
  31. package/src/concurrency.ts +11 -0
  32. package/src/http.ts +16 -6
  33. package/src/index.ts +322 -49
  34. package/src/observability-metrics.ts +441 -8
  35. package/src/op-journal.ts +46 -0
  36. package/src/sandbox-resume.ts +431 -201
  37. package/src/sandbox-routing.ts +209 -22
  38. package/src/workflow-wake-contract.ts +5 -0
  39. package/src/workflows/activities.ts +58 -7
  40. package/src/workflows/file-upload-reaper.ts +12 -0
  41. package/src/workflows/rig-verification.ts +28 -0
  42. package/src/workflows/scheduled-tasks.ts +12 -26
  43. package/src/workflows/session.ts +330 -173
  44. package/src/workflows/workflow-wake.ts +12 -0
  45. package/src/workflows.ts +9 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/worker-bundle",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
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.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,6 +8,10 @@
8
8
  "url": "git+https://github.com/Cloudgeni-ai/opengeni.git",
9
9
  "directory": "apps/worker"
10
10
  },
11
+ "files": [
12
+ "dist",
13
+ "src"
14
+ ],
11
15
  "type": "module",
12
16
  "main": "./dist/index.js",
13
17
  "module": "./dist/index.js",
@@ -18,13 +22,6 @@
18
22
  "import": "./dist/index.js"
19
23
  }
20
24
  },
21
- "files": [
22
- "dist",
23
- "src"
24
- ],
25
- "engines": {
26
- "node": ">=18"
27
- },
28
25
  "publishConfig": {
29
26
  "access": "public",
30
27
  "provenance": true
@@ -33,24 +30,27 @@
33
30
  "dev": "bun src/index.ts",
34
31
  "dev:watch": "bun --watch src/index.ts",
35
32
  "start": "bun src/index.ts",
36
- "typecheck": "tsc --noEmit",
33
+ "typecheck": "tsgo --noEmit",
37
34
  "build": "tsup",
38
35
  "prepublishOnly": "bash ../../scripts/prepublish-guard"
39
36
  },
40
37
  "dependencies": {
41
- "@opengeni/codex": "^0.2.1",
42
- "@opengeni/config": "^0.4.0",
43
- "@opengeni/contracts": "^0.9.0",
44
- "@opengeni/core": "^0.4.6",
45
- "@opengeni/db": "^0.6.1",
46
- "@opengeni/documents": "^0.2.8",
47
- "@opengeni/events": "^0.2.8",
38
+ "@opengeni/codex": "^0.2.2",
39
+ "@opengeni/config": "^0.5.0",
40
+ "@opengeni/contracts": "^0.10.0",
41
+ "@opengeni/core": "^0.4.7",
42
+ "@opengeni/db": "^0.7.0",
43
+ "@opengeni/documents": "^0.2.9",
44
+ "@opengeni/events": "^0.3.0",
48
45
  "@opengeni/observability": "^0.3.0",
49
- "@opengeni/runtime": "^0.6.1",
50
- "@opengeni/storage": "^0.2.8",
46
+ "@opengeni/runtime": "^0.7.0",
47
+ "@opengeni/storage": "^0.2.9",
51
48
  "@temporalio/activity": "^1.17.0",
52
49
  "@temporalio/client": "^1.17.0",
53
50
  "@temporalio/worker": "^1.17.0",
54
51
  "@temporalio/workflow": "^1.17.0"
52
+ },
53
+ "engines": {
54
+ "node": ">=18"
55
55
  }
56
56
  }