@elevasis/core 0.12.0 → 0.13.0

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.
@@ -1,434 +1,434 @@
1
- /**
2
- * Execution Engine - Contract-based workflow and agent system
3
- *
4
- * @module @repo/core/execution-engine
5
- */
6
-
7
- // Note: ExecutionEngine class has been removed in favor of direct resource execution
8
- // Resources (workflows, agents) now execute themselves with ExecutionContext
9
-
10
- // Workflow exports (from workflow module)
11
- export {
12
- Workflow,
13
- type WorkflowStep,
14
- type WorkflowStepDefinition,
15
- type StepHandler,
16
- type WorkflowConfig,
17
- type WorkflowDefinition,
18
- type NextConfig,
19
- type LinearNext,
20
- type ConditionalNext,
21
- StepType,
22
- // Workflow step helper types (browser-safe - types only)
23
- // NOTE: llmCall implementation is server-only - import from @repo/core/server
24
- type LLMCallOptions
25
- } from './workflow'
26
-
27
- // Workflow logger exports
28
- export {
29
- type WorkflowLogContext,
30
- type WorkflowLogMessage,
31
- type WorkflowExecutionContext,
32
- type WorkflowFailureContext,
33
- type StepStartedContext,
34
- type StepCompletedContext,
35
- type StepFailedContext,
36
- type ConditionalRouteContext,
37
- type ExecutionPathContext,
38
- isWorkflowExecutionContext,
39
- isWorkflowFailureContext,
40
- isStepStartedContext,
41
- isStepCompletedContext,
42
- isStepFailedContext,
43
- isConditionalRouteContext,
44
- isExecutionPathContext,
45
- isStepContext,
46
- toWorkflowLogMessage,
47
- toWorkflowLogMessages
48
- } from './workflow/logging'
49
-
50
- // Workflow timeline types
51
- export {
52
- type StepState,
53
- type WorkflowNodeVisualizerData,
54
- type WorkflowNodeVisualizerData as TimelineData,
55
- type StepExecutionData,
56
- type ExecutionPathState
57
- } from './workflow/types'
58
-
59
- // Agent exports (from agent module)
60
- export {
61
- Agent,
62
- type AgentConfig,
63
- type AgentConstraints,
64
- type AgentMemory,
65
- type AgentDefinition,
66
- type Tool,
67
- type ToolDefinition,
68
- // Memory types
69
- type MemoryEntry,
70
- type MemoryEntryType,
71
- // Memory utilities
72
- loadSessionMemory,
73
- addToolError,
74
- // Action types
75
- type AgentAction,
76
- type ToolCallAction,
77
- type CompleteAction,
78
- type MessageAction,
79
- type NavigateKnowledgeAction,
80
- // Knowledge map types
81
- type KnowledgeMap,
82
- type KnowledgeNode,
83
- type KnowledgeContent,
84
- type KnowledgeMapState,
85
- reloadKnowledgeMapTools,
86
- // LLM types (generic interface - browser-safe)
87
- type LLMAdapter,
88
- type LLMGenerateRequest,
89
- type LLMGenerateResponse,
90
- type LLMMessage,
91
- type LLMModel,
92
- // LLM adapter types (browser-safe - types only)
93
- // NOTE: OpenAIAdapter and createLLMAdapter implementations are server-only - import from @repo/core/server
94
- type OpenAIAdapterConfig,
95
- // LLM adapter factory (dependency injection for environment-agnostic agent execution)
96
- type LLMAdapterFactory
97
- } from './agent'
98
-
99
- // Agent prompt system
100
- // Note: BASE_SYSTEM_PROMPT removed - now internal to modular prompt builder
101
- // Agents should provide only their agent-specific prompt
102
- // The runtime (buildReasoningRequest) handles system prompt composition automatically using modular sections
103
-
104
- // Base error exports
105
- export { ExecutionError as ExecutionError, UnknownExecutionError, type ExecutionErrorCategory } from './base/errors'
106
-
107
- // LLM error exports
108
- export {
109
- LLMError,
110
- InsufficientTokensError,
111
- TokenLimitExceededError,
112
- LLMInputBlockedError,
113
- ModelConfigError,
114
- validateModelConfig
115
- } from './llm/errors'
116
-
117
- // Input sanitizer exports
118
- export { sanitizeUserInput, type SanitizationResult } from './llm/input-sanitizer'
119
-
120
- // Tool error exports
121
- export {
122
- ToolingError,
123
- type ToolingErrorType,
124
- type ToolExecutionOptions,
125
- // Factory functions
126
- serviceUnavailable,
127
- permissionDenied,
128
- adapterNotFound,
129
- methodNotFound,
130
- toolNotFound,
131
- credentialsMissing,
132
- credentialsInvalid,
133
- rateLimitExceeded,
134
- serverUnavailable,
135
- authError,
136
- apiError,
137
- validationError,
138
- networkError,
139
- timeoutError,
140
- unknownError
141
- } from './tools/types'
142
-
143
- // Circuit breaker error exports
144
- export { CircuitBreakerOpenError } from './llm/adapters/circuit-breaker'
145
-
146
- // Workflow error exports
147
- export { WorkflowStepError, WorkflowValidationError } from './workflow/errors'
148
-
149
- // Agent error exports
150
- export {
151
- AgentInitializationError,
152
- AgentIterationError,
153
- AgentCancellationError,
154
- AgentCompletionError,
155
- AgentOutputValidationError,
156
- AgentMaxIterationsError,
157
- AgentTimeoutError,
158
- AgentStalledError
159
- } from './agent/errors'
160
-
161
- // LLM model info and configuration exports
162
- export {
163
- getModelInfo,
164
- type ModelInfo,
165
- type ModelConfig,
166
- type ModelSpecificOptions,
167
- type GPT5Options,
168
- type MockOptions,
169
- GPT5ConfigSchema,
170
- MockConfigSchema,
171
- MODEL_INFO,
172
- calculateCost
173
- } from './llm/model-info'
174
-
175
- // Agent logger exports (2-event model)
176
- export {
177
- type AgentLogContext,
178
- type AgentLogMessage,
179
- type AgentLifecycle,
180
- type LifecycleStage,
181
- type IterationEventType,
182
- type AgentLifecycleEvent,
183
- type AgentIterationEvent,
184
- type AgentToolCallEvent,
185
- type ActionPlaceholderData,
186
- isLifecycleEvent,
187
- isIterationEvent,
188
- isReasoningEvent,
189
- isActionEvent,
190
- isToolCallEvent,
191
- isInitialization,
192
- isIteration,
193
- isCompletion,
194
- isToolUseAction,
195
- isIterationContext
196
- } from './agent/observability/logging'
197
-
198
- // Agent timeline types
199
- export {
200
- type SubActivity,
201
- type AgentIteration,
202
- type AgentLifecycleNode,
203
- type AgentIterationData
204
- } from './agent/observability/types'
205
-
206
- // Base type exports
207
- export type {
208
- ExecutionContext,
209
- ExecutionMetadata,
210
- MessageEvent,
211
- AssistantAction,
212
- Contract,
213
- ResourceType,
214
- ResourceStatus,
215
- ExecutableResourceType,
216
- AIResourceDefinition
217
- } from './base/types'
218
-
219
- // Base color exports
220
- export { ResourceStatusColors } from './base/types'
221
-
222
- // Utility exports
223
- export {
224
- type ExecutionLogLevel,
225
- type ExecutionLoggerConfig,
226
- type ExecutionLogMessage,
227
- type LogContext,
228
- type IExecutionLogger
229
- } from './base/logging'
230
-
231
- // Structure utility exports
232
- // Removed deprecated structure-utils exports - use serializeDefinition() directly
233
-
234
- // Serialization utility exports
235
- export { serializeDefinition, type SerializationOptions } from './base/serialization'
236
-
237
- // Tool Services Registry (server-side only)
238
- export {
239
- toolServicesRegistry,
240
- getToolServices,
241
- type ToolServices,
242
- type ICommandQueueService,
243
- type ITaskSchedulerService,
244
- type INotificationsService,
245
- type ICredentialsService,
246
- type IIntegrationService,
247
- type ICrmService,
248
- type IProjectsService,
249
- // Email Service types
250
- type IEmailService,
251
- type SendPlatformEmailParams,
252
- type EmailResult,
253
- // Storage Service types
254
- type IStorageService,
255
- type StorageUploadParams,
256
- type StorageDownloadParams,
257
- type StorageSignedUrlParams,
258
- type StorageUploadResult,
259
- type StorageSignedUrlResult,
260
- // Lead Service types
261
- type ILeadService,
262
- type AcqList,
263
- type AcqCompany,
264
- type AcqContact,
265
- // Note: PaginationParams already exported from @repo/core (platform/utils/validation)
266
- type PaginatedResult,
267
- type CreateListParams,
268
- type UpdateListParams,
269
- type CreateCompanyParams,
270
- type UpdateCompanyParams,
271
- type UpsertCompanyParams,
272
- type CompanyFilters,
273
- type CreateContactParams,
274
- type UpdateContactParams,
275
- type UpsertContactParams,
276
- type ContactFilters,
277
- type AddContactsToListParams,
278
- type AddContactsToListResult,
279
- type BulkImportParams,
280
- type BulkImportResult,
281
- type BulkImportCompanyEntry,
282
- type BulkImportCompaniesParams,
283
- type BulkImportCompaniesResult,
284
- type DeactivateContactsByCompanyParams,
285
- type DeactivateContactsByCompanyResult,
286
- // Deal types (acq_deals table)
287
- type UpsertDealParams,
288
- type AcqDeal,
289
- type DealActivityEntry,
290
- // Deal analytics types
291
- type DealStageSummary,
292
- type StaleDeal,
293
- type DealPipelineAnalytics,
294
- type DealAnalyticsParams,
295
- // Deal-sync param types
296
- type UpdateDiscoveryDataParams,
297
- type UpdateProposalDataParams,
298
- type MarkProposalSentParams,
299
- type MarkProposalReviewedParams,
300
- type UpdateCloseLostReasonParams,
301
- type UpdateFeesParams,
302
- type SyncDealStageParams,
303
- type SetContactNurtureParams,
304
- type CancelSchedulesAndHitlByEmailParams,
305
- type CancelHitlByDealIdParams,
306
- type ClearDealFieldsParams,
307
- type DeleteDealParams,
308
- // Deal note types
309
- type AcqDealNote,
310
- type CreateDealNoteParams,
311
- type ListDealNotesParams,
312
- // Deal task types
313
- type CreateDealTaskParams,
314
- type ListDealTasksParams,
315
- type ListDealTasksDueParams,
316
- type CompleteDealTaskParams,
317
- type RecordDealActivityParams,
318
- type GetDealByIdParams,
319
- type GetContactByIdParams,
320
- type GetCompanyByIdParams,
321
- // List-oriented lead gen params (Step 3 of list-oriented migration)
322
- type UpdateListConfigParams,
323
- type UpdateCompanyStageParams,
324
- type UpdateContactStageParams,
325
- type AddCompaniesToListParams,
326
- type AddCompaniesToListResult,
327
- type RemoveCompaniesFromListParams,
328
- type RemoveCompaniesFromListResult,
329
- type RecordListExecutionParams,
330
- type ListExecutionSummary
331
- } from './tools/registry'
332
-
333
- // Platform Tools (server-side only)
334
- // Retained internal/compatibility surface. Deployed SDK workers use platform.call() -> dispatcher.
335
- export {
336
- // Storage Tools
337
- createStorageUploadTool,
338
- createStorageSignedUrlTool,
339
- createStorageDownloadTool,
340
- createStorageDeleteTool,
341
- createStorageListTool,
342
- type StorageUploadInput,
343
- type StorageUploadOutput,
344
- type StorageSignedUrlInput,
345
- type StorageSignedUrlOutput,
346
- type StorageDownloadInput,
347
- type StorageDownloadOutput,
348
- type StorageDeleteInput,
349
- type StorageDeleteOutput,
350
- type StorageListInput,
351
- type StorageListOutput,
352
- type StorageToolConfig,
353
- StorageUploadInputSchema,
354
- StorageUploadOutputSchema,
355
- StorageSignedUrlInputSchema,
356
- StorageSignedUrlOutputSchema,
357
- StorageDownloadInputSchema,
358
- StorageDownloadOutputSchema,
359
- StorageDeleteInputSchema,
360
- StorageDeleteOutputSchema,
361
- StorageListInputSchema,
362
- StorageListOutputSchema,
363
- // Schedule Management Tools
364
- createScheduleListTool,
365
- createScheduleCancelByMetadataTool,
366
- createScheduleCancelByKeyTool,
367
- createScheduleDeleteByKeyTool,
368
- type ListSchedulesInput,
369
- type ListSchedulesOutput,
370
- type CancelSchedulesByMetadataInput,
371
- type CancelSchedulesByMetadataOutput,
372
- type CancelScheduleByKeyInput,
373
- type CancelScheduleByKeyOutput,
374
- type DeleteScheduleByKeyInput,
375
- type DeleteScheduleByKeyOutput,
376
- ListSchedulesInputSchema,
377
- ListSchedulesOutputSchema,
378
- CancelSchedulesByMetadataInputSchema,
379
- CancelSchedulesByMetadataOutputSchema,
380
- CancelScheduleByKeyInputSchema,
381
- CancelScheduleByKeyOutputSchema,
382
- DeleteScheduleByKeyInputSchema,
383
- DeleteScheduleByKeyOutputSchema,
384
- type HitlCancelByMetadataInput,
385
- type HitlCancelByMetadataOutput,
386
- HitlCancelByMetadataInputSchema,
387
- HitlCancelByMetadataOutputSchema
388
- } from './tools/platform'
389
-
390
- // Integration Tools
391
- // NOTE: createIntegrationTool and types are browser-safe (can be used for type definitions)
392
- // Tool factory functions (createGmailSendEmailTool, etc.) are server-only - import from @repo/core/server
393
- // ALL adapters (mock or production) are server-only exports from @repo/core/server
394
- export { createIntegrationTool, type IntegrationToolConfig, type IntegrationType } from './tools/integration'
395
-
396
- // LLM Tools (for agent tool use - types only, browser-safe)
397
- // NOTE: createLLMCallTool implementation is server-only - import from @repo/core/server
398
- export { type LLMCallToolConfig } from './tools/llm'
399
-
400
- // Integration Tools (exports from integration module)
401
- export { IntegrationService } from './tools/integration'
402
-
403
- // Tool Method Maps (SDK adapter type maps - browser-safe)
404
- export type {
405
- MethodEntry,
406
- ToolMethodMap,
407
- AttioToolMap,
408
- StripeToolMap,
409
- GoogleSheetsToolMap,
410
- ResendToolMap,
411
- ApifyToolMap,
412
- GmailToolMap,
413
- DropboxToolMap,
414
- SignatureApiToolMap,
415
- InstantlyToolMap,
416
- AnymailfinderToolMap,
417
- TombaToolMap,
418
- MillionVerifierToolMap,
419
- SchedulerToolMap,
420
- StorageToolMap,
421
- NotificationToolMap,
422
- NotificationSDKInput,
423
- ProjectsToolMap,
424
- CrmToolMap,
425
- LeadToolMap,
426
- ListToolMap,
427
- PdfToolMap,
428
- ApprovalToolMap,
429
- ExecutionToolMap,
430
- EmailToolMap
431
- } from './tools/tool-maps'
432
-
433
- // Execution Interface (UI configuration for resource execution)
434
- export { type ExecutionInterface, type ExecutionFormSchema, type ScheduleConfig, type WebhookConfig } from './interface'
1
+ /**
2
+ * Execution Engine - Contract-based workflow and agent system
3
+ *
4
+ * @module @repo/core/execution-engine
5
+ */
6
+
7
+ // Note: ExecutionEngine class has been removed in favor of direct resource execution
8
+ // Resources (workflows, agents) now execute themselves with ExecutionContext
9
+
10
+ // Workflow exports (from workflow module)
11
+ export {
12
+ Workflow,
13
+ type WorkflowStep,
14
+ type WorkflowStepDefinition,
15
+ type StepHandler,
16
+ type WorkflowConfig,
17
+ type WorkflowDefinition,
18
+ type NextConfig,
19
+ type LinearNext,
20
+ type ConditionalNext,
21
+ StepType,
22
+ // Workflow step helper types (browser-safe - types only)
23
+ // NOTE: llmCall implementation is server-only - import from @repo/core/server
24
+ type LLMCallOptions
25
+ } from './workflow'
26
+
27
+ // Workflow logger exports
28
+ export {
29
+ type WorkflowLogContext,
30
+ type WorkflowLogMessage,
31
+ type WorkflowExecutionContext,
32
+ type WorkflowFailureContext,
33
+ type StepStartedContext,
34
+ type StepCompletedContext,
35
+ type StepFailedContext,
36
+ type ConditionalRouteContext,
37
+ type ExecutionPathContext,
38
+ isWorkflowExecutionContext,
39
+ isWorkflowFailureContext,
40
+ isStepStartedContext,
41
+ isStepCompletedContext,
42
+ isStepFailedContext,
43
+ isConditionalRouteContext,
44
+ isExecutionPathContext,
45
+ isStepContext,
46
+ toWorkflowLogMessage,
47
+ toWorkflowLogMessages
48
+ } from './workflow/logging'
49
+
50
+ // Workflow timeline types
51
+ export {
52
+ type StepState,
53
+ type WorkflowNodeVisualizerData,
54
+ type WorkflowNodeVisualizerData as TimelineData,
55
+ type StepExecutionData,
56
+ type ExecutionPathState
57
+ } from './workflow/types'
58
+
59
+ // Agent exports (from agent module)
60
+ export {
61
+ Agent,
62
+ type AgentConfig,
63
+ type AgentConstraints,
64
+ type AgentMemory,
65
+ type AgentDefinition,
66
+ type Tool,
67
+ type ToolDefinition,
68
+ // Memory types
69
+ type MemoryEntry,
70
+ type MemoryEntryType,
71
+ // Memory utilities
72
+ loadSessionMemory,
73
+ addToolError,
74
+ // Action types
75
+ type AgentAction,
76
+ type ToolCallAction,
77
+ type CompleteAction,
78
+ type MessageAction,
79
+ type NavigateKnowledgeAction,
80
+ // Knowledge map types
81
+ type KnowledgeMap,
82
+ type KnowledgeNode,
83
+ type KnowledgeContent,
84
+ type KnowledgeMapState,
85
+ reloadKnowledgeMapTools,
86
+ // LLM types (generic interface - browser-safe)
87
+ type LLMAdapter,
88
+ type LLMGenerateRequest,
89
+ type LLMGenerateResponse,
90
+ type LLMMessage,
91
+ type LLMModel,
92
+ // LLM adapter types (browser-safe - types only)
93
+ // NOTE: OpenAIAdapter and createLLMAdapter implementations are server-only - import from @repo/core/server
94
+ type OpenAIAdapterConfig,
95
+ // LLM adapter factory (dependency injection for environment-agnostic agent execution)
96
+ type LLMAdapterFactory
97
+ } from './agent'
98
+
99
+ // Agent prompt system
100
+ // Note: BASE_SYSTEM_PROMPT removed - now internal to modular prompt builder
101
+ // Agents should provide only their agent-specific prompt
102
+ // The runtime (buildReasoningRequest) handles system prompt composition automatically using modular sections
103
+
104
+ // Base error exports
105
+ export { ExecutionError as ExecutionError, UnknownExecutionError, type ExecutionErrorCategory } from './base/errors'
106
+
107
+ // LLM error exports
108
+ export {
109
+ LLMError,
110
+ InsufficientTokensError,
111
+ TokenLimitExceededError,
112
+ LLMInputBlockedError,
113
+ ModelConfigError,
114
+ validateModelConfig
115
+ } from './llm/errors'
116
+
117
+ // Input sanitizer exports
118
+ export { sanitizeUserInput, type SanitizationResult } from './llm/input-sanitizer'
119
+
120
+ // Tool error exports
121
+ export {
122
+ ToolingError,
123
+ type ToolingErrorType,
124
+ type ToolExecutionOptions,
125
+ // Factory functions
126
+ serviceUnavailable,
127
+ permissionDenied,
128
+ adapterNotFound,
129
+ methodNotFound,
130
+ toolNotFound,
131
+ credentialsMissing,
132
+ credentialsInvalid,
133
+ rateLimitExceeded,
134
+ serverUnavailable,
135
+ authError,
136
+ apiError,
137
+ validationError,
138
+ networkError,
139
+ timeoutError,
140
+ unknownError
141
+ } from './tools/types'
142
+
143
+ // Circuit breaker error exports
144
+ export { CircuitBreakerOpenError } from './llm/adapters/circuit-breaker'
145
+
146
+ // Workflow error exports
147
+ export { WorkflowStepError, WorkflowValidationError } from './workflow/errors'
148
+
149
+ // Agent error exports
150
+ export {
151
+ AgentInitializationError,
152
+ AgentIterationError,
153
+ AgentCancellationError,
154
+ AgentCompletionError,
155
+ AgentOutputValidationError,
156
+ AgentMaxIterationsError,
157
+ AgentTimeoutError,
158
+ AgentStalledError
159
+ } from './agent/errors'
160
+
161
+ // LLM model info and configuration exports
162
+ export {
163
+ getModelInfo,
164
+ type ModelInfo,
165
+ type ModelConfig,
166
+ type ModelSpecificOptions,
167
+ type GPT5Options,
168
+ type MockOptions,
169
+ GPT5ConfigSchema,
170
+ MockConfigSchema,
171
+ MODEL_INFO,
172
+ calculateCost
173
+ } from './llm/model-info'
174
+
175
+ // Agent logger exports (2-event model)
176
+ export {
177
+ type AgentLogContext,
178
+ type AgentLogMessage,
179
+ type AgentLifecycle,
180
+ type LifecycleStage,
181
+ type IterationEventType,
182
+ type AgentLifecycleEvent,
183
+ type AgentIterationEvent,
184
+ type AgentToolCallEvent,
185
+ type ActionPlaceholderData,
186
+ isLifecycleEvent,
187
+ isIterationEvent,
188
+ isReasoningEvent,
189
+ isActionEvent,
190
+ isToolCallEvent,
191
+ isInitialization,
192
+ isIteration,
193
+ isCompletion,
194
+ isToolUseAction,
195
+ isIterationContext
196
+ } from './agent/observability/logging'
197
+
198
+ // Agent timeline types
199
+ export {
200
+ type SubActivity,
201
+ type AgentIteration,
202
+ type AgentLifecycleNode,
203
+ type AgentIterationData
204
+ } from './agent/observability/types'
205
+
206
+ // Base type exports
207
+ export type {
208
+ ExecutionContext,
209
+ ExecutionMetadata,
210
+ MessageEvent,
211
+ AssistantAction,
212
+ Contract,
213
+ ResourceType,
214
+ ResourceStatus,
215
+ ExecutableResourceType,
216
+ AIResourceDefinition
217
+ } from './base/types'
218
+
219
+ // Base color exports
220
+ export { ResourceStatusColors } from './base/types'
221
+
222
+ // Utility exports
223
+ export {
224
+ type ExecutionLogLevel,
225
+ type ExecutionLoggerConfig,
226
+ type ExecutionLogMessage,
227
+ type LogContext,
228
+ type IExecutionLogger
229
+ } from './base/logging'
230
+
231
+ // Structure utility exports
232
+ // Removed deprecated structure-utils exports - use serializeDefinition() directly
233
+
234
+ // Serialization utility exports
235
+ export { serializeDefinition, type SerializationOptions } from './base/serialization'
236
+
237
+ // Tool Services Registry (server-side only)
238
+ export {
239
+ toolServicesRegistry,
240
+ getToolServices,
241
+ type ToolServices,
242
+ type ICommandQueueService,
243
+ type ITaskSchedulerService,
244
+ type INotificationsService,
245
+ type ICredentialsService,
246
+ type IIntegrationService,
247
+ type ICrmService,
248
+ type IProjectsService,
249
+ // Email Service types
250
+ type IEmailService,
251
+ type SendPlatformEmailParams,
252
+ type EmailResult,
253
+ // Storage Service types
254
+ type IStorageService,
255
+ type StorageUploadParams,
256
+ type StorageDownloadParams,
257
+ type StorageSignedUrlParams,
258
+ type StorageUploadResult,
259
+ type StorageSignedUrlResult,
260
+ // Lead Service types
261
+ type ILeadService,
262
+ type AcqList,
263
+ type AcqCompany,
264
+ type AcqContact,
265
+ // Note: PaginationParams already exported from @repo/core (platform/utils/validation)
266
+ type PaginatedResult,
267
+ type CreateListParams,
268
+ type UpdateListParams,
269
+ type CreateCompanyParams,
270
+ type UpdateCompanyParams,
271
+ type UpsertCompanyParams,
272
+ type CompanyFilters,
273
+ type CreateContactParams,
274
+ type UpdateContactParams,
275
+ type UpsertContactParams,
276
+ type ContactFilters,
277
+ type AddContactsToListParams,
278
+ type AddContactsToListResult,
279
+ type BulkImportParams,
280
+ type BulkImportResult,
281
+ type BulkImportCompanyEntry,
282
+ type BulkImportCompaniesParams,
283
+ type BulkImportCompaniesResult,
284
+ type DeactivateContactsByCompanyParams,
285
+ type DeactivateContactsByCompanyResult,
286
+ // Deal types (acq_deals table)
287
+ type UpsertDealParams,
288
+ type AcqDeal,
289
+ type DealActivityEntry,
290
+ // Deal analytics types
291
+ type DealStageSummary,
292
+ type StaleDeal,
293
+ type DealPipelineAnalytics,
294
+ type DealAnalyticsParams,
295
+ // Deal-sync param types
296
+ type UpdateDiscoveryDataParams,
297
+ type UpdateProposalDataParams,
298
+ type MarkProposalSentParams,
299
+ type MarkProposalReviewedParams,
300
+ type UpdateCloseLostReasonParams,
301
+ type UpdateFeesParams,
302
+ type TransitionItemParams,
303
+ type SetContactNurtureParams,
304
+ type CancelSchedulesAndHitlByEmailParams,
305
+ type CancelHitlByDealIdParams,
306
+ type ClearDealFieldsParams,
307
+ type DeleteDealParams,
308
+ // Deal note types
309
+ type AcqDealNote,
310
+ type CreateDealNoteParams,
311
+ type ListDealNotesParams,
312
+ // Deal task types
313
+ type CreateDealTaskParams,
314
+ type ListDealTasksParams,
315
+ type ListDealTasksDueParams,
316
+ type CompleteDealTaskParams,
317
+ type RecordDealActivityParams,
318
+ type GetDealByIdParams,
319
+ type GetContactByIdParams,
320
+ type GetCompanyByIdParams,
321
+ // List-oriented lead gen params (Step 3 of list-oriented migration)
322
+ type UpdateListConfigParams,
323
+ type UpdateCompanyStageParams,
324
+ type UpdateContactStageParams,
325
+ type AddCompaniesToListParams,
326
+ type AddCompaniesToListResult,
327
+ type RemoveCompaniesFromListParams,
328
+ type RemoveCompaniesFromListResult,
329
+ type RecordListExecutionParams,
330
+ type ListExecutionSummary
331
+ } from './tools/registry'
332
+
333
+ // Platform Tools (server-side only)
334
+ // Retained internal/compatibility surface. Deployed SDK workers use platform.call() -> dispatcher.
335
+ export {
336
+ // Storage Tools
337
+ createStorageUploadTool,
338
+ createStorageSignedUrlTool,
339
+ createStorageDownloadTool,
340
+ createStorageDeleteTool,
341
+ createStorageListTool,
342
+ type StorageUploadInput,
343
+ type StorageUploadOutput,
344
+ type StorageSignedUrlInput,
345
+ type StorageSignedUrlOutput,
346
+ type StorageDownloadInput,
347
+ type StorageDownloadOutput,
348
+ type StorageDeleteInput,
349
+ type StorageDeleteOutput,
350
+ type StorageListInput,
351
+ type StorageListOutput,
352
+ type StorageToolConfig,
353
+ StorageUploadInputSchema,
354
+ StorageUploadOutputSchema,
355
+ StorageSignedUrlInputSchema,
356
+ StorageSignedUrlOutputSchema,
357
+ StorageDownloadInputSchema,
358
+ StorageDownloadOutputSchema,
359
+ StorageDeleteInputSchema,
360
+ StorageDeleteOutputSchema,
361
+ StorageListInputSchema,
362
+ StorageListOutputSchema,
363
+ // Schedule Management Tools
364
+ createScheduleListTool,
365
+ createScheduleCancelByMetadataTool,
366
+ createScheduleCancelByKeyTool,
367
+ createScheduleDeleteByKeyTool,
368
+ type ListSchedulesInput,
369
+ type ListSchedulesOutput,
370
+ type CancelSchedulesByMetadataInput,
371
+ type CancelSchedulesByMetadataOutput,
372
+ type CancelScheduleByKeyInput,
373
+ type CancelScheduleByKeyOutput,
374
+ type DeleteScheduleByKeyInput,
375
+ type DeleteScheduleByKeyOutput,
376
+ ListSchedulesInputSchema,
377
+ ListSchedulesOutputSchema,
378
+ CancelSchedulesByMetadataInputSchema,
379
+ CancelSchedulesByMetadataOutputSchema,
380
+ CancelScheduleByKeyInputSchema,
381
+ CancelScheduleByKeyOutputSchema,
382
+ DeleteScheduleByKeyInputSchema,
383
+ DeleteScheduleByKeyOutputSchema,
384
+ type HitlCancelByMetadataInput,
385
+ type HitlCancelByMetadataOutput,
386
+ HitlCancelByMetadataInputSchema,
387
+ HitlCancelByMetadataOutputSchema
388
+ } from './tools/platform'
389
+
390
+ // Integration Tools
391
+ // NOTE: createIntegrationTool and types are browser-safe (can be used for type definitions)
392
+ // Tool factory functions (createGmailSendEmailTool, etc.) are server-only - import from @repo/core/server
393
+ // ALL adapters (mock or production) are server-only exports from @repo/core/server
394
+ export { createIntegrationTool, type IntegrationToolConfig, type IntegrationType } from './tools/integration'
395
+
396
+ // LLM Tools (for agent tool use - types only, browser-safe)
397
+ // NOTE: createLLMCallTool implementation is server-only - import from @repo/core/server
398
+ export { type LLMCallToolConfig } from './tools/llm'
399
+
400
+ // Integration Tools (exports from integration module)
401
+ export { IntegrationService } from './tools/integration'
402
+
403
+ // Tool Method Maps (SDK adapter type maps - browser-safe)
404
+ export type {
405
+ MethodEntry,
406
+ ToolMethodMap,
407
+ AttioToolMap,
408
+ StripeToolMap,
409
+ GoogleSheetsToolMap,
410
+ ResendToolMap,
411
+ ApifyToolMap,
412
+ GmailToolMap,
413
+ DropboxToolMap,
414
+ SignatureApiToolMap,
415
+ InstantlyToolMap,
416
+ AnymailfinderToolMap,
417
+ TombaToolMap,
418
+ MillionVerifierToolMap,
419
+ SchedulerToolMap,
420
+ StorageToolMap,
421
+ NotificationToolMap,
422
+ NotificationSDKInput,
423
+ ProjectsToolMap,
424
+ CrmToolMap,
425
+ LeadToolMap,
426
+ ListToolMap,
427
+ PdfToolMap,
428
+ ApprovalToolMap,
429
+ ExecutionToolMap,
430
+ EmailToolMap
431
+ } from './tools/tool-maps'
432
+
433
+ // Execution Interface (UI configuration for resource execution)
434
+ export { type ExecutionInterface, type ExecutionFormSchema, type ScheduleConfig, type WebhookConfig } from './interface'