@opengeni/core 0.4.0 → 0.4.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.
- package/README.md +9 -0
- package/dist/index.d.ts +2 -0
- package/package.json +8 -8
- package/src/dependencies.ts +2 -0
package/README.md
CHANGED
|
@@ -12,3 +12,12 @@ It owns code that is not intrinsically HTTP or Temporal process bootstrapping:
|
|
|
12
12
|
`@opengeni/api-router` owns the Hono app, middleware, HTTP route adapters, MCP HTTP transport, and API-direct sandbox endpoints. `@opengeni/worker-bundle` owns Temporal worker construction, workflows, activities, and process lifecycle. Both consume `@opengeni/core`; core does not import either app.
|
|
13
13
|
|
|
14
14
|
The package is used by standalone OpenGeni through those app runners and by embedded hosts that call core directly or mount the API router.
|
|
15
|
+
|
|
16
|
+
## Scope honesty: engine-core, not domain-core
|
|
17
|
+
|
|
18
|
+
This package is the **engine core** — the transport-mostly-neutral heart of the
|
|
19
|
+
server, extracted so embedders can mount it. It still carries server-flavored
|
|
20
|
+
dependencies (notably Hono's `HTTPException` as the domain error type and the
|
|
21
|
+
full persistence/runtime closure). It is NOT a pure domain library and does not
|
|
22
|
+
try to be one; if you need OpenGeni without any server runtime, you want the
|
|
23
|
+
REST API + `@opengeni/sdk` instead.
|
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ type SessionWorkflowClient = {
|
|
|
100
100
|
agentRunUsageIdempotencyKey?: string;
|
|
101
101
|
triggerWorkflowId?: string;
|
|
102
102
|
}) => Promise<void>;
|
|
103
|
+
check?: () => Promise<void>;
|
|
103
104
|
};
|
|
104
105
|
type DocumentIndexClient = {
|
|
105
106
|
indexDocument: (input: {
|
|
@@ -116,6 +117,7 @@ type AppDependencies = {
|
|
|
116
117
|
documentIndexer?: DocumentIndexClient;
|
|
117
118
|
documentServices?: DocumentServices;
|
|
118
119
|
observability?: Observability;
|
|
120
|
+
readinessChecks?: Partial<Record<"db" | "nats" | "temporal", () => Promise<void> | void>>;
|
|
119
121
|
githubStateSecret?: string;
|
|
120
122
|
managedAuth?: ManagedAuth | null;
|
|
121
123
|
sandboxClient?: ApiSandboxClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "OpenGeni framework-agnostic core: the domain, access, and billing layers (neutral access, off-HTTP V2 surface). Behavior-preserving extraction from apps/api — keeps Hono's HTTPException for error throwing (typed-errors cleanup deferred).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
39
39
|
"@opengeni/codex": "^0.2.1",
|
|
40
|
-
"@opengeni/config": "^0.2.
|
|
41
|
-
"@opengeni/contracts": "^0.
|
|
42
|
-
"@opengeni/db": "^0.4.
|
|
43
|
-
"@opengeni/documents": "^0.2.
|
|
44
|
-
"@opengeni/events": "^0.2.
|
|
40
|
+
"@opengeni/config": "^0.2.5",
|
|
41
|
+
"@opengeni/contracts": "^0.7.0",
|
|
42
|
+
"@opengeni/db": "^0.4.1",
|
|
43
|
+
"@opengeni/documents": "^0.2.5",
|
|
44
|
+
"@opengeni/events": "^0.2.5",
|
|
45
45
|
"@opengeni/observability": "^0.2.1",
|
|
46
|
-
"@opengeni/runtime": "^0.3.
|
|
47
|
-
"@opengeni/storage": "^0.2.
|
|
46
|
+
"@opengeni/runtime": "^0.3.1",
|
|
47
|
+
"@opengeni/storage": "^0.2.5",
|
|
48
48
|
"hono": "^4.12.18"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
package/src/dependencies.ts
CHANGED
|
@@ -24,6 +24,7 @@ export type SessionWorkflowClient = {
|
|
|
24
24
|
syncScheduledTask: (input: { task: ScheduledTask }) => Promise<void>;
|
|
25
25
|
deleteScheduledTaskSchedule: (input: { temporalScheduleId: string }) => Promise<void>;
|
|
26
26
|
triggerScheduledTask: (input: { task: ScheduledTask; agentRunUsageIdempotencyKey?: string; triggerWorkflowId?: string }) => Promise<void>;
|
|
27
|
+
check?: () => Promise<void>;
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
export type DocumentIndexClient = {
|
|
@@ -38,6 +39,7 @@ export type AppDependencies = {
|
|
|
38
39
|
documentIndexer?: DocumentIndexClient;
|
|
39
40
|
documentServices?: DocumentServices;
|
|
40
41
|
observability?: Observability;
|
|
42
|
+
readinessChecks?: Partial<Record<"db" | "nats" | "temporal", () => Promise<void> | void>>;
|
|
41
43
|
githubStateSecret?: string;
|
|
42
44
|
managedAuth?: ManagedAuth | null;
|
|
43
45
|
// The API process's OWN agent-loop-free sandbox client (constructed from
|