@opengeni/core 0.21.10 → 0.24.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/dist/access/index.d.ts +1 -1
- package/dist/application/new-session-drafts.d.ts +1 -1
- package/dist/application/session-commands.d.ts +2 -2
- package/dist/billing/limits.d.ts +1 -1
- package/dist/chunk-6WKPWE5S.js +2380 -0
- package/dist/chunk-6WKPWE5S.js.map +1 -0
- package/dist/chunk-JJU6I5XD.js +2713 -0
- package/dist/chunk-JJU6I5XD.js.map +1 -0
- package/dist/chunk-NYPMQ7NO.js +2270 -0
- package/dist/chunk-NYPMQ7NO.js.map +1 -0
- package/dist/dependencies.d.ts +26 -6
- package/dist/domain/capabilities.d.ts +28 -3
- package/dist/domain/company-profile-durable-learning-adapter.d.ts +39 -0
- package/dist/domain/durable-learning-slack-publication.d.ts +72 -0
- package/dist/domain/editable-artifacts/agent-application.d.ts +192 -0
- package/dist/domain/editable-artifacts/durable-export-postgres.d.ts +4 -0
- package/dist/domain/editable-artifacts/durable-export.d.ts +212 -0
- package/dist/domain/editable-artifacts/errors.d.ts +47 -0
- package/dist/domain/editable-artifacts/hash.d.ts +11 -0
- package/dist/domain/editable-artifacts/in-memory.d.ts +99 -0
- package/dist/domain/editable-artifacts/index.d.ts +14 -0
- package/dist/domain/editable-artifacts/ports.d.ts +341 -0
- package/dist/domain/editable-artifacts/postgres-adapters.d.ts +13 -0
- package/dist/domain/editable-artifacts/service.d.ts +105 -0
- package/dist/domain/editable-artifacts/snapshot-compaction.d.ts +44 -0
- package/dist/domain/editable-artifacts/snapshot-verifier-genesis.d.ts +50 -0
- package/dist/domain/editable-artifacts/snapshot-verifier-materialization.d.ts +21 -0
- package/dist/domain/editable-artifacts/snapshot-verifier.d.ts +118 -0
- package/dist/domain/editable-artifacts/types.d.ts +410 -0
- package/dist/domain/memory-slack-delivery.d.ts +19 -0
- package/dist/domain/packs.d.ts +29 -1
- package/dist/domain/personal-connection-delegations.d.ts +9 -1
- package/dist/domain/scheduled-tasks.d.ts +2 -2
- package/dist/domain/session-tool-policy.d.ts +2 -2
- package/dist/domain/sessions.d.ts +14 -6
- package/dist/domain/skill-imports.d.ts +32 -0
- package/dist/domain/slack-publication-secret-safety.d.ts +8 -0
- package/dist/domain/timeline-annotations.d.ts +5 -0
- package/dist/domain/video-generation-capabilities.d.ts +9 -0
- package/dist/domain/video-generation.d.ts +47 -0
- package/dist/editable-artifact-live/application.d.ts +69 -0
- package/dist/editable-artifact-live/errors.d.ts +1 -0
- package/dist/editable-artifact-live/index.d.ts +8 -0
- package/dist/editable-artifact-live/outbox-dispatcher.d.ts +162 -0
- package/dist/editable-artifact-live/ports.d.ts +100 -0
- package/dist/editable-artifact-live/server.d.ts +71 -0
- package/dist/editable-artifact-live/ticket.d.ts +40 -0
- package/dist/editable-artifact-live/types.d.ts +213 -0
- package/dist/editable-artifact-live/wire.d.ts +34 -0
- package/dist/editable-artifact-live.d.ts +2 -0
- package/dist/editable-artifact-live.js +58 -0
- package/dist/editable-artifact-live.js.map +1 -0
- package/dist/editable-artifacts.d.ts +2 -0
- package/dist/editable-artifacts.js +179 -0
- package/dist/editable-artifacts.js.map +1 -0
- package/dist/index.d.ts +35 -26
- package/dist/index.js +2792 -609
- package/dist/index.js.map +1 -1
- package/dist/managed-session.d.ts +1 -1
- package/dist/rigs/index.d.ts +1 -1
- package/dist/rigs/provider-images.d.ts +31 -0
- package/dist/sandbox/routing.d.ts +1 -0
- package/dist/session-authorization.d.ts +1 -1
- package/dist/workflow-wake-contract.d.ts +7 -0
- package/package.json +18 -10
- package/src/application/new-session-drafts.ts +2 -0
- package/src/application/session-commands.ts +188 -107
- package/src/dependencies.ts +30 -2
- package/src/domain/capabilities.ts +604 -220
- package/src/domain/company-profile-durable-learning-adapter.ts +221 -0
- package/src/domain/durable-learning-slack-publication.ts +202 -0
- package/src/domain/editable-artifacts/agent-application.ts +687 -0
- package/src/domain/editable-artifacts/durable-export-postgres.ts +139 -0
- package/src/domain/editable-artifacts/durable-export.ts +734 -0
- package/src/domain/editable-artifacts/errors.ts +115 -0
- package/src/domain/editable-artifacts/hash.ts +131 -0
- package/src/domain/editable-artifacts/in-memory.ts +1662 -0
- package/src/domain/editable-artifacts/index.ts +14 -0
- package/src/domain/editable-artifacts/ports.ts +462 -0
- package/src/domain/editable-artifacts/postgres-adapters.ts +49 -0
- package/src/domain/editable-artifacts/service.ts +2402 -0
- package/src/domain/editable-artifacts/snapshot-compaction.ts +246 -0
- package/src/domain/editable-artifacts/snapshot-verifier-genesis.ts +235 -0
- package/src/domain/editable-artifacts/snapshot-verifier-materialization.ts +74 -0
- package/src/domain/editable-artifacts/snapshot-verifier.ts +687 -0
- package/src/domain/editable-artifacts/types.ts +835 -0
- package/src/domain/insights.ts +136 -33
- package/src/domain/memory-slack-delivery.ts +204 -0
- package/src/domain/memory-slack-publication.ts +5 -2
- package/src/domain/packs.ts +266 -5
- package/src/domain/personal-connection-delegations.ts +97 -6
- package/src/domain/scheduled-tasks.ts +155 -29
- package/src/domain/session-tool-policy.ts +8 -2
- package/src/domain/sessions.ts +274 -131
- package/src/domain/skill-imports.ts +350 -0
- package/src/domain/slack-publication-secret-safety.ts +42 -0
- package/src/domain/timeline-annotations.ts +204 -0
- package/src/domain/video-generation-capabilities.ts +69 -0
- package/src/domain/video-generation.ts +249 -0
- package/src/editable-artifact-live/application.ts +182 -0
- package/src/editable-artifact-live/errors.ts +4 -0
- package/src/editable-artifact-live/index.ts +8 -0
- package/src/editable-artifact-live/outbox-dispatcher.ts +916 -0
- package/src/editable-artifact-live/ports.ts +139 -0
- package/src/editable-artifact-live/server.ts +1707 -0
- package/src/editable-artifact-live/ticket.ts +217 -0
- package/src/editable-artifact-live/types.ts +286 -0
- package/src/editable-artifact-live/wire.ts +95 -0
- package/src/editable-artifact-live.ts +2 -0
- package/src/editable-artifacts.ts +2 -0
- package/src/index.ts +13 -0
- package/src/rigs/index.ts +26 -19
- package/src/rigs/provider-images.ts +110 -0
- package/src/sandbox/routing.ts +6 -3
- package/src/session-authorization.ts +3 -0
- package/src/workflow-wake-contract.ts +8 -0
package/src/dependencies.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
DocumentAuthorityKind,
|
|
6
6
|
GitHubAppApiPort,
|
|
7
7
|
ScheduledTask,
|
|
8
|
+
ScheduledTaskTriggerType,
|
|
8
9
|
SessionAuthorizationPort,
|
|
9
10
|
TurnInitiator,
|
|
10
11
|
} from "@opengeni/contracts";
|
|
@@ -16,6 +17,12 @@ import type { createObjectStorage } from "@opengeni/storage";
|
|
|
16
17
|
import type { ManagedAuth } from "./managed-auth-type";
|
|
17
18
|
import type { ApiSandboxClient, ResumeBoxByIdInput, ResumedSandboxSession } from "./sandbox-types";
|
|
18
19
|
import type { TranscriptionSegmenter, TranscriptionService } from "./transcription";
|
|
20
|
+
import type { EditableArtifactApplicationPort } from "./editable-artifact-live";
|
|
21
|
+
import type {
|
|
22
|
+
EditableArtifactAgentApplication,
|
|
23
|
+
EditableArtifactDurableExportService,
|
|
24
|
+
EditableArtifactOfficeImportPort,
|
|
25
|
+
} from "./editable-artifacts";
|
|
19
26
|
|
|
20
27
|
export type SessionWorkflowClient = {
|
|
21
28
|
signalUserMessage: (input: {
|
|
@@ -59,6 +66,10 @@ export type SessionWorkflowClient = {
|
|
|
59
66
|
agentRunUsageIdempotencyKey: string;
|
|
60
67
|
triggerWorkflowId: string;
|
|
61
68
|
initiator: TurnInitiator;
|
|
69
|
+
triggerType?: Extract<
|
|
70
|
+
ScheduledTaskTriggerType,
|
|
71
|
+
"manual" | "initial" | "provider_event" | "retry" | "repair"
|
|
72
|
+
>;
|
|
62
73
|
}) => Promise<void>;
|
|
63
74
|
startRigVerification: (input: {
|
|
64
75
|
workspaceId: string;
|
|
@@ -83,8 +94,22 @@ export type DocumentIndexClient = {
|
|
|
83
94
|
export type AppDependencies = {
|
|
84
95
|
settings: Settings;
|
|
85
96
|
db: Database;
|
|
97
|
+
/**
|
|
98
|
+
* Host-composed editable artifact engine. Standalone startup binds the same
|
|
99
|
+
* native kernel/DB/object-store implementation; embedded hosts may inject an
|
|
100
|
+
* equivalent deployment-scoped composition.
|
|
101
|
+
*/
|
|
102
|
+
editableArtifacts?: EditableArtifactApplicationPort;
|
|
103
|
+
/** Durable immutable version/materialization API paired with editableArtifacts. */
|
|
104
|
+
editableArtifactExports?: EditableArtifactDurableExportService;
|
|
105
|
+
/** Canonical agent-facing artifact use cases shared by MCP and Codemode. */
|
|
106
|
+
editableArtifactAgent?: EditableArtifactAgentApplication;
|
|
107
|
+
/** Trusted Office-file to canonical sequence-zero import boundary. */
|
|
108
|
+
editableArtifactOfficeImports?: EditableArtifactOfficeImportPort;
|
|
86
109
|
bus: EventBus;
|
|
87
110
|
workflowClient: SessionWorkflowClient;
|
|
111
|
+
/** Injectable structural seam for replayable prompt fanout and wake work. */
|
|
112
|
+
schedulePromptPostCommit?: (task: () => Promise<void>) => void;
|
|
88
113
|
/** Optional provider override for deterministic API/object-storage tests. */
|
|
89
114
|
objectStorage?: ObjectStorageDependency;
|
|
90
115
|
documentIndexer?: DocumentIndexClient;
|
|
@@ -100,7 +125,7 @@ export type AppDependencies = {
|
|
|
100
125
|
githubAppApi?: GitHubAppApiPort;
|
|
101
126
|
/**
|
|
102
127
|
* Optional host-owned connection credential seam. API-side consumers use
|
|
103
|
-
* the MCP leg for
|
|
128
|
+
* the MCP leg for Codemode/Code Mode; worker consumers bind the same port
|
|
104
129
|
* for model MCP, Git, and sandbox-secret resolution.
|
|
105
130
|
*/
|
|
106
131
|
connectionCredentials?: ConnectionCredentialsPort | null;
|
|
@@ -117,6 +142,9 @@ export type AppDependencies = {
|
|
|
117
142
|
slackFetch?: typeof fetch;
|
|
118
143
|
/** Injectable Google OAuth/Drive transport for deterministic connector tests. */
|
|
119
144
|
googleDriveFetch?: typeof fetch;
|
|
145
|
+
/** Injectable provider-preset OAuth/API transport for deterministic integration tests. */
|
|
146
|
+
apiIntegrationOAuthFetch?: typeof fetch;
|
|
147
|
+
atlassianFetch?: typeof fetch;
|
|
120
148
|
/** Injectable MCP OAuth setup deadline for deterministic stalled-provider tests. */
|
|
121
149
|
oauthStartDeadlineMs?: number;
|
|
122
150
|
/** Injectable MCP OAuth callback deadline for deterministic stalled-provider tests. */
|
|
@@ -163,7 +191,7 @@ export type ApiRouteDeps = AppDependencies & {
|
|
|
163
191
|
*/
|
|
164
192
|
export type AcceptSessionUserMessageDependencies = Pick<
|
|
165
193
|
AppDependencies,
|
|
166
|
-
"settings" | "db" | "bus" | "sessionAuthorization"
|
|
194
|
+
"settings" | "db" | "bus" | "sessionAuthorization" | "schedulePromptPostCommit"
|
|
167
195
|
> & {
|
|
168
196
|
workflowClient: Pick<SessionWorkflowClient, "wakeSessionWorkflow">;
|
|
169
197
|
objectStorage: ObjectStorageDependency;
|