@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.
Files changed (116) hide show
  1. package/dist/access/index.d.ts +1 -1
  2. package/dist/application/new-session-drafts.d.ts +1 -1
  3. package/dist/application/session-commands.d.ts +2 -2
  4. package/dist/billing/limits.d.ts +1 -1
  5. package/dist/chunk-6WKPWE5S.js +2380 -0
  6. package/dist/chunk-6WKPWE5S.js.map +1 -0
  7. package/dist/chunk-JJU6I5XD.js +2713 -0
  8. package/dist/chunk-JJU6I5XD.js.map +1 -0
  9. package/dist/chunk-NYPMQ7NO.js +2270 -0
  10. package/dist/chunk-NYPMQ7NO.js.map +1 -0
  11. package/dist/dependencies.d.ts +26 -6
  12. package/dist/domain/capabilities.d.ts +28 -3
  13. package/dist/domain/company-profile-durable-learning-adapter.d.ts +39 -0
  14. package/dist/domain/durable-learning-slack-publication.d.ts +72 -0
  15. package/dist/domain/editable-artifacts/agent-application.d.ts +192 -0
  16. package/dist/domain/editable-artifacts/durable-export-postgres.d.ts +4 -0
  17. package/dist/domain/editable-artifacts/durable-export.d.ts +212 -0
  18. package/dist/domain/editable-artifacts/errors.d.ts +47 -0
  19. package/dist/domain/editable-artifacts/hash.d.ts +11 -0
  20. package/dist/domain/editable-artifacts/in-memory.d.ts +99 -0
  21. package/dist/domain/editable-artifacts/index.d.ts +14 -0
  22. package/dist/domain/editable-artifacts/ports.d.ts +341 -0
  23. package/dist/domain/editable-artifacts/postgres-adapters.d.ts +13 -0
  24. package/dist/domain/editable-artifacts/service.d.ts +105 -0
  25. package/dist/domain/editable-artifacts/snapshot-compaction.d.ts +44 -0
  26. package/dist/domain/editable-artifacts/snapshot-verifier-genesis.d.ts +50 -0
  27. package/dist/domain/editable-artifacts/snapshot-verifier-materialization.d.ts +21 -0
  28. package/dist/domain/editable-artifacts/snapshot-verifier.d.ts +118 -0
  29. package/dist/domain/editable-artifacts/types.d.ts +410 -0
  30. package/dist/domain/memory-slack-delivery.d.ts +19 -0
  31. package/dist/domain/packs.d.ts +29 -1
  32. package/dist/domain/personal-connection-delegations.d.ts +9 -1
  33. package/dist/domain/scheduled-tasks.d.ts +2 -2
  34. package/dist/domain/session-tool-policy.d.ts +2 -2
  35. package/dist/domain/sessions.d.ts +14 -6
  36. package/dist/domain/skill-imports.d.ts +32 -0
  37. package/dist/domain/slack-publication-secret-safety.d.ts +8 -0
  38. package/dist/domain/timeline-annotations.d.ts +5 -0
  39. package/dist/domain/video-generation-capabilities.d.ts +9 -0
  40. package/dist/domain/video-generation.d.ts +47 -0
  41. package/dist/editable-artifact-live/application.d.ts +69 -0
  42. package/dist/editable-artifact-live/errors.d.ts +1 -0
  43. package/dist/editable-artifact-live/index.d.ts +8 -0
  44. package/dist/editable-artifact-live/outbox-dispatcher.d.ts +162 -0
  45. package/dist/editable-artifact-live/ports.d.ts +100 -0
  46. package/dist/editable-artifact-live/server.d.ts +71 -0
  47. package/dist/editable-artifact-live/ticket.d.ts +40 -0
  48. package/dist/editable-artifact-live/types.d.ts +213 -0
  49. package/dist/editable-artifact-live/wire.d.ts +34 -0
  50. package/dist/editable-artifact-live.d.ts +2 -0
  51. package/dist/editable-artifact-live.js +58 -0
  52. package/dist/editable-artifact-live.js.map +1 -0
  53. package/dist/editable-artifacts.d.ts +2 -0
  54. package/dist/editable-artifacts.js +179 -0
  55. package/dist/editable-artifacts.js.map +1 -0
  56. package/dist/index.d.ts +35 -26
  57. package/dist/index.js +2792 -609
  58. package/dist/index.js.map +1 -1
  59. package/dist/managed-session.d.ts +1 -1
  60. package/dist/rigs/index.d.ts +1 -1
  61. package/dist/rigs/provider-images.d.ts +31 -0
  62. package/dist/sandbox/routing.d.ts +1 -0
  63. package/dist/session-authorization.d.ts +1 -1
  64. package/dist/workflow-wake-contract.d.ts +7 -0
  65. package/package.json +18 -10
  66. package/src/application/new-session-drafts.ts +2 -0
  67. package/src/application/session-commands.ts +188 -107
  68. package/src/dependencies.ts +30 -2
  69. package/src/domain/capabilities.ts +604 -220
  70. package/src/domain/company-profile-durable-learning-adapter.ts +221 -0
  71. package/src/domain/durable-learning-slack-publication.ts +202 -0
  72. package/src/domain/editable-artifacts/agent-application.ts +687 -0
  73. package/src/domain/editable-artifacts/durable-export-postgres.ts +139 -0
  74. package/src/domain/editable-artifacts/durable-export.ts +734 -0
  75. package/src/domain/editable-artifacts/errors.ts +115 -0
  76. package/src/domain/editable-artifacts/hash.ts +131 -0
  77. package/src/domain/editable-artifacts/in-memory.ts +1662 -0
  78. package/src/domain/editable-artifacts/index.ts +14 -0
  79. package/src/domain/editable-artifacts/ports.ts +462 -0
  80. package/src/domain/editable-artifacts/postgres-adapters.ts +49 -0
  81. package/src/domain/editable-artifacts/service.ts +2402 -0
  82. package/src/domain/editable-artifacts/snapshot-compaction.ts +246 -0
  83. package/src/domain/editable-artifacts/snapshot-verifier-genesis.ts +235 -0
  84. package/src/domain/editable-artifacts/snapshot-verifier-materialization.ts +74 -0
  85. package/src/domain/editable-artifacts/snapshot-verifier.ts +687 -0
  86. package/src/domain/editable-artifacts/types.ts +835 -0
  87. package/src/domain/insights.ts +136 -33
  88. package/src/domain/memory-slack-delivery.ts +204 -0
  89. package/src/domain/memory-slack-publication.ts +5 -2
  90. package/src/domain/packs.ts +266 -5
  91. package/src/domain/personal-connection-delegations.ts +97 -6
  92. package/src/domain/scheduled-tasks.ts +155 -29
  93. package/src/domain/session-tool-policy.ts +8 -2
  94. package/src/domain/sessions.ts +274 -131
  95. package/src/domain/skill-imports.ts +350 -0
  96. package/src/domain/slack-publication-secret-safety.ts +42 -0
  97. package/src/domain/timeline-annotations.ts +204 -0
  98. package/src/domain/video-generation-capabilities.ts +69 -0
  99. package/src/domain/video-generation.ts +249 -0
  100. package/src/editable-artifact-live/application.ts +182 -0
  101. package/src/editable-artifact-live/errors.ts +4 -0
  102. package/src/editable-artifact-live/index.ts +8 -0
  103. package/src/editable-artifact-live/outbox-dispatcher.ts +916 -0
  104. package/src/editable-artifact-live/ports.ts +139 -0
  105. package/src/editable-artifact-live/server.ts +1707 -0
  106. package/src/editable-artifact-live/ticket.ts +217 -0
  107. package/src/editable-artifact-live/types.ts +286 -0
  108. package/src/editable-artifact-live/wire.ts +95 -0
  109. package/src/editable-artifact-live.ts +2 -0
  110. package/src/editable-artifacts.ts +2 -0
  111. package/src/index.ts +13 -0
  112. package/src/rigs/index.ts +26 -19
  113. package/src/rigs/provider-images.ts +110 -0
  114. package/src/sandbox/routing.ts +6 -3
  115. package/src/session-authorization.ts +3 -0
  116. package/src/workflow-wake-contract.ts +8 -0
@@ -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 Toolspace/Code Mode; worker consumers bind the same port
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;