@optimizely/ocp-local-env 1.0.0-beta.10
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 +51 -0
- package/dist/package.json +112 -0
- package/dist/public/bundle.82dc5d29fffb9f205051.js +3 -0
- package/dist/public/bundle.82dc5d29fffb9f205051.js.LICENSE.txt +92 -0
- package/dist/public/bundle.82dc5d29fffb9f205051.js.map +1 -0
- package/dist/public/index.html +1 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +115 -0
- package/dist/src/cli.js.map +1 -0
- package/dist/src/executor/DestinationExecutor.d.ts +19 -0
- package/dist/src/executor/DestinationExecutor.js +72 -0
- package/dist/src/executor/DestinationExecutor.js.map +1 -0
- package/dist/src/executor/FunctionExecutor.d.ts +67 -0
- package/dist/src/executor/FunctionExecutor.js +189 -0
- package/dist/src/executor/FunctionExecutor.js.map +1 -0
- package/dist/src/executor/JobExecutor.d.ts +79 -0
- package/dist/src/executor/JobExecutor.js +215 -0
- package/dist/src/executor/JobExecutor.js.map +1 -0
- package/dist/src/executor/LifecycleExecutor.d.ts +64 -0
- package/dist/src/executor/LifecycleExecutor.js +167 -0
- package/dist/src/executor/LifecycleExecutor.js.map +1 -0
- package/dist/src/executor/SourceExecutor.d.ts +32 -0
- package/dist/src/executor/SourceExecutor.js +163 -0
- package/dist/src/executor/SourceExecutor.js.map +1 -0
- package/dist/src/executor/watcher.d.ts +62 -0
- package/dist/src/executor/watcher.js +213 -0
- package/dist/src/executor/watcher.js.map +1 -0
- package/dist/src/functions/hello.d.ts +4 -0
- package/dist/src/functions/hello.js +8 -0
- package/dist/src/functions/hello.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/jobs/dailyJob.d.ts +4 -0
- package/dist/src/jobs/dailyJob.js +8 -0
- package/dist/src/jobs/dailyJob.js.map +1 -0
- package/dist/src/local_engine/LocalFunctionApi.d.ts +17 -0
- package/dist/src/local_engine/LocalFunctionApi.js +54 -0
- package/dist/src/local_engine/LocalFunctionApi.js.map +1 -0
- package/dist/src/local_engine/LocalJobApi.d.ts +67 -0
- package/dist/src/local_engine/LocalJobApi.js +205 -0
- package/dist/src/local_engine/LocalJobApi.js.map +1 -0
- package/dist/src/local_engine/LocalNotifier.d.ts +9 -0
- package/dist/src/local_engine/LocalNotifier.js +26 -0
- package/dist/src/local_engine/LocalNotifier.js.map +1 -0
- package/dist/src/local_engine/local-engine-child-base.d.ts +110 -0
- package/dist/src/local_engine/local-engine-child-base.js +607 -0
- package/dist/src/local_engine/local-engine-child-base.js.map +1 -0
- package/dist/src/local_engine/local-engine-client.d.ts +161 -0
- package/dist/src/local_engine/local-engine-client.js +888 -0
- package/dist/src/local_engine/local-engine-client.js.map +1 -0
- package/dist/src/local_engine/local-engine-types.d.ts +245 -0
- package/dist/src/local_engine/local-engine-types.js +6 -0
- package/dist/src/local_engine/local-engine-types.js.map +1 -0
- package/dist/src/local_engine/local-engine-unified.d.ts +71 -0
- package/dist/src/local_engine/local-engine-unified.js +723 -0
- package/dist/src/local_engine/local-engine-unified.js.map +1 -0
- package/dist/src/local_engine/local-engine-utils.d.ts +68 -0
- package/dist/src/local_engine/local-engine-utils.js +219 -0
- package/dist/src/local_engine/local-engine-utils.js.map +1 -0
- package/dist/src/local_engine/localSDKConfig.d.ts +40 -0
- package/dist/src/local_engine/localSDKConfig.js +247 -0
- package/dist/src/local_engine/localSDKConfig.js.map +1 -0
- package/dist/src/local_engine/storage/BaseKVStoreWrapper.d.ts +37 -0
- package/dist/src/local_engine/storage/BaseKVStoreWrapper.js +110 -0
- package/dist/src/local_engine/storage/BaseKVStoreWrapper.js.map +1 -0
- package/dist/src/local_engine/storage/LocalConfigStore.d.ts +74 -0
- package/dist/src/local_engine/storage/LocalConfigStore.js +178 -0
- package/dist/src/local_engine/storage/LocalConfigStore.js.map +1 -0
- package/dist/src/local_engine/storage/LocalJobStore.d.ts +111 -0
- package/dist/src/local_engine/storage/LocalJobStore.js +249 -0
- package/dist/src/local_engine/storage/LocalJobStore.js.map +1 -0
- package/dist/src/local_engine/storage/LocalKVStore.d.ts +106 -0
- package/dist/src/local_engine/storage/LocalKVStore.js +1061 -0
- package/dist/src/local_engine/storage/LocalKVStore.js.map +1 -0
- package/dist/src/local_engine/storage/LocalNotificationStore.d.ts +28 -0
- package/dist/src/local_engine/storage/LocalNotificationStore.js +149 -0
- package/dist/src/local_engine/storage/LocalNotificationStore.js.map +1 -0
- package/dist/src/local_engine/storage/LocalSecretsStore.d.ts +115 -0
- package/dist/src/local_engine/storage/LocalSecretsStore.js +350 -0
- package/dist/src/local_engine/storage/LocalSecretsStore.js.map +1 -0
- package/dist/src/local_engine/storage/LocalSecretsStoreWrapper.d.ts +19 -0
- package/dist/src/local_engine/storage/LocalSecretsStoreWrapper.js +52 -0
- package/dist/src/local_engine/storage/LocalSecretsStoreWrapper.js.map +1 -0
- package/dist/src/local_engine/storage/LocalSettingsStore.d.ts +168 -0
- package/dist/src/local_engine/storage/LocalSettingsStore.js +509 -0
- package/dist/src/local_engine/storage/LocalSettingsStore.js.map +1 -0
- package/dist/src/local_engine/storage/LocalSettingsStoreWrapper.d.ts +15 -0
- package/dist/src/local_engine/storage/LocalSettingsStoreWrapper.js +28 -0
- package/dist/src/local_engine/storage/LocalSettingsStoreWrapper.js.map +1 -0
- package/dist/src/local_engine/storage/NumberSet.d.ts +21 -0
- package/dist/src/local_engine/storage/NumberSet.js +32 -0
- package/dist/src/local_engine/storage/NumberSet.js.map +1 -0
- package/dist/src/local_engine/storage/SourceDataStore.d.ts +23 -0
- package/dist/src/local_engine/storage/SourceDataStore.js +83 -0
- package/dist/src/local_engine/storage/SourceDataStore.js.map +1 -0
- package/dist/src/local_engine/storage/SourceJobExecutionStore.d.ts +25 -0
- package/dist/src/local_engine/storage/SourceJobExecutionStore.js +61 -0
- package/dist/src/local_engine/storage/SourceJobExecutionStore.js.map +1 -0
- package/dist/src/local_engine/storage/StringSet.d.ts +21 -0
- package/dist/src/local_engine/storage/StringSet.js +32 -0
- package/dist/src/local_engine/storage/StringSet.js.map +1 -0
- package/dist/src/local_engine/types.d.ts +53 -0
- package/dist/src/local_engine/types.js +6 -0
- package/dist/src/local_engine/types.js.map +1 -0
- package/dist/src/local_engine/utils.d.ts +33 -0
- package/dist/src/local_engine/utils.js +143 -0
- package/dist/src/local_engine/utils.js.map +1 -0
- package/dist/src/logging/LogManager.d.ts +246 -0
- package/dist/src/logging/LogManager.js +343 -0
- package/dist/src/logging/LogManager.js.map +1 -0
- package/dist/src/server/api/destinations.d.ts +7 -0
- package/dist/src/server/api/destinations.js +170 -0
- package/dist/src/server/api/destinations.js.map +1 -0
- package/dist/src/server/api/functions.d.ts +7 -0
- package/dist/src/server/api/functions.js +80 -0
- package/dist/src/server/api/functions.js.map +1 -0
- package/dist/src/server/api/jobs.d.ts +10 -0
- package/dist/src/server/api/jobs.js +244 -0
- package/dist/src/server/api/jobs.js.map +1 -0
- package/dist/src/server/api/settings.d.ts +6 -0
- package/dist/src/server/api/settings.js +116 -0
- package/dist/src/server/api/settings.js.map +1 -0
- package/dist/src/server/api/sources.d.ts +7 -0
- package/dist/src/server/api/sources.js +382 -0
- package/dist/src/server/api/sources.js.map +1 -0
- package/dist/src/server/api/stores.d.ts +2 -0
- package/dist/src/server/api/stores.js +341 -0
- package/dist/src/server/api/stores.js.map +1 -0
- package/dist/src/server/api/v1.d.ts +10 -0
- package/dist/src/server/api/v1.js +718 -0
- package/dist/src/server/api/v1.js.map +1 -0
- package/dist/src/server/api.d.ts +8 -0
- package/dist/src/server/api.js +217 -0
- package/dist/src/server/api.js.map +1 -0
- package/dist/src/server/app-discovery.d.ts +5 -0
- package/dist/src/server/app-discovery.js +113 -0
- package/dist/src/server/app-discovery.js.map +1 -0
- package/dist/src/server/config.d.ts +26 -0
- package/dist/src/server/config.js +112 -0
- package/dist/src/server/config.js.map +1 -0
- package/dist/src/server/mockDataGenerator.d.ts +1 -0
- package/dist/src/server/mockDataGenerator.js +154 -0
- package/dist/src/server/mockDataGenerator.js.map +1 -0
- package/dist/src/server/websocket.d.ts +0 -0
- package/dist/src/server/websocket.js +2 -0
- package/dist/src/server/websocket.js.map +1 -0
- package/dist/src/server.d.ts +2 -0
- package/dist/src/server.js +735 -0
- package/dist/src/server.js.map +1 -0
- package/dist/src/types/app.d.ts +154 -0
- package/dist/src/types/app.js +24 -0
- package/dist/src/types/app.js.map +1 -0
- package/dist/src/types/kvstore.d.ts +320 -0
- package/dist/src/types/kvstore.js +5 -0
- package/dist/src/types/kvstore.js.map +1 -0
- package/dist/src/ui/components/App.d.ts +6 -0
- package/dist/src/ui/components/App.js +432 -0
- package/dist/src/ui/components/App.js.map +1 -0
- package/dist/src/ui/components/DestinationBatchEditor.d.ts +7 -0
- package/dist/src/ui/components/DestinationBatchEditor.js +160 -0
- package/dist/src/ui/components/DestinationBatchEditor.js.map +1 -0
- package/dist/src/ui/components/DestinationSchemaViewer.d.ts +7 -0
- package/dist/src/ui/components/DestinationSchemaViewer.js +61 -0
- package/dist/src/ui/components/DestinationSchemaViewer.js.map +1 -0
- package/dist/src/ui/components/DestinationsView.d.ts +14 -0
- package/dist/src/ui/components/DestinationsView.js +68 -0
- package/dist/src/ui/components/DestinationsView.js.map +1 -0
- package/dist/src/ui/components/FunctionsView.d.ts +13 -0
- package/dist/src/ui/components/FunctionsView.js +288 -0
- package/dist/src/ui/components/FunctionsView.js.map +1 -0
- package/dist/src/ui/components/JobsView.d.ts +13 -0
- package/dist/src/ui/components/JobsView.js +320 -0
- package/dist/src/ui/components/JobsView.js.map +1 -0
- package/dist/src/ui/components/KVStoreViewer.d.ts +11 -0
- package/dist/src/ui/components/KVStoreViewer.js +168 -0
- package/dist/src/ui/components/KVStoreViewer.js.map +1 -0
- package/dist/src/ui/components/MetadataModal.d.ts +14 -0
- package/dist/src/ui/components/MetadataModal.js +28 -0
- package/dist/src/ui/components/MetadataModal.js.map +1 -0
- package/dist/src/ui/components/MetadataModal.test.d.ts +1 -0
- package/dist/src/ui/components/MetadataModal.test.js +143 -0
- package/dist/src/ui/components/MetadataModal.test.js.map +1 -0
- package/dist/src/ui/components/NotificationViewer.d.ts +16 -0
- package/dist/src/ui/components/NotificationViewer.js +69 -0
- package/dist/src/ui/components/NotificationViewer.js.map +1 -0
- package/dist/src/ui/components/SecretsStoreViewer.d.ts +11 -0
- package/dist/src/ui/components/SecretsStoreViewer.js +179 -0
- package/dist/src/ui/components/SecretsStoreViewer.js.map +1 -0
- package/dist/src/ui/components/SettingsStoreViewer.d.ts +24 -0
- package/dist/src/ui/components/SettingsStoreViewer.js +132 -0
- package/dist/src/ui/components/SettingsStoreViewer.js.map +1 -0
- package/dist/src/ui/components/SourceDataViewer.d.ts +8 -0
- package/dist/src/ui/components/SourceDataViewer.js +84 -0
- package/dist/src/ui/components/SourceDataViewer.js.map +1 -0
- package/dist/src/ui/components/SourceJobsSection.d.ts +8 -0
- package/dist/src/ui/components/SourceJobsSection.js +99 -0
- package/dist/src/ui/components/SourceJobsSection.js.map +1 -0
- package/dist/src/ui/components/SourceLifecycleSection.d.ts +7 -0
- package/dist/src/ui/components/SourceLifecycleSection.js +58 -0
- package/dist/src/ui/components/SourceLifecycleSection.js.map +1 -0
- package/dist/src/ui/components/SourceSchemaViewer.d.ts +7 -0
- package/dist/src/ui/components/SourceSchemaViewer.js +65 -0
- package/dist/src/ui/components/SourceSchemaViewer.js.map +1 -0
- package/dist/src/ui/components/SourceWebhookEditor.d.ts +8 -0
- package/dist/src/ui/components/SourceWebhookEditor.js +181 -0
- package/dist/src/ui/components/SourceWebhookEditor.js.map +1 -0
- package/dist/src/ui/components/SourcesView.d.ts +14 -0
- package/dist/src/ui/components/SourcesView.js +74 -0
- package/dist/src/ui/components/SourcesView.js.map +1 -0
- package/dist/src/ui/components/StoreViewer.d.ts +16 -0
- package/dist/src/ui/components/StoreViewer.js +86 -0
- package/dist/src/ui/components/StoreViewer.js.map +1 -0
- package/dist/src/ui/components/TabbedConsole.d.ts +17 -0
- package/dist/src/ui/components/TabbedConsole.js +163 -0
- package/dist/src/ui/components/TabbedConsole.js.map +1 -0
- package/dist/src/ui/components/common/DataTree.d.ts +15 -0
- package/dist/src/ui/components/common/DataTree.js +95 -0
- package/dist/src/ui/components/common/DataTree.js.map +1 -0
- package/dist/src/ui/components/common/EyeIcon.d.ts +11 -0
- package/dist/src/ui/components/common/EyeIcon.js +11 -0
- package/dist/src/ui/components/common/EyeIcon.js.map +1 -0
- package/dist/src/ui/hooks/useEntityNavigation.d.ts +72 -0
- package/dist/src/ui/hooks/useEntityNavigation.js +150 -0
- package/dist/src/ui/hooks/useEntityNavigation.js.map +1 -0
- package/dist/src/ui/hooks/useQueryParams.d.ts +6 -0
- package/dist/src/ui/hooks/useQueryParams.js +39 -0
- package/dist/src/ui/hooks/useQueryParams.js.map +1 -0
- package/dist/src/ui/index.d.ts +1 -0
- package/dist/src/ui/index.js +23 -0
- package/dist/src/ui/index.js.map +1 -0
- package/dist/src/ui/store/formStateSlice.d.ts +54 -0
- package/dist/src/ui/store/formStateSlice.js +94 -0
- package/dist/src/ui/store/formStateSlice.js.map +1 -0
- package/dist/src/ui/store/hooks.d.ts +6 -0
- package/dist/src/ui/store/hooks.js +8 -0
- package/dist/src/ui/store/hooks.js.map +1 -0
- package/dist/src/ui/store/index.d.ts +11 -0
- package/dist/src/ui/store/index.js +107 -0
- package/dist/src/ui/store/index.js.map +1 -0
- package/dist/src/utils/functionEndpoints.d.ts +24 -0
- package/dist/src/utils/functionEndpoints.js +45 -0
- package/dist/src/utils/functionEndpoints.js.map +1 -0
- package/package.json +112 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Local type definitions matching @zaiusinc/app-sdk interfaces
|
|
4
|
+
* These are defined locally to avoid compile-time dependency on app-sdk
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.LocalJobApi = exports.JobNotFoundError = exports.JobApiError = exports.JobRunStatus = void 0;
|
|
8
|
+
var JobRunStatus;
|
|
9
|
+
(function (JobRunStatus) {
|
|
10
|
+
JobRunStatus["Pending"] = "pending";
|
|
11
|
+
JobRunStatus["Running"] = "running";
|
|
12
|
+
JobRunStatus["Complete"] = "complete";
|
|
13
|
+
JobRunStatus["Error"] = "error";
|
|
14
|
+
JobRunStatus["Terminated"] = "terminated";
|
|
15
|
+
})(JobRunStatus || (exports.JobRunStatus = JobRunStatus = {}));
|
|
16
|
+
class JobApiError extends Error {
|
|
17
|
+
constructor(message) {
|
|
18
|
+
super(message);
|
|
19
|
+
this.name = 'JobApiError';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.JobApiError = JobApiError;
|
|
23
|
+
class JobNotFoundError extends Error {
|
|
24
|
+
constructor(message) {
|
|
25
|
+
super(message);
|
|
26
|
+
this.name = 'JobNotFoundError';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.JobNotFoundError = JobNotFoundError;
|
|
30
|
+
/**
|
|
31
|
+
* Local implementation of JobApi for ocp-local-env
|
|
32
|
+
* Sends IPC messages to parent process to trigger jobs
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This runs in the child process (app context), not the parent process.
|
|
35
|
+
* It communicates with the parent via IPC to request job execution.
|
|
36
|
+
*/
|
|
37
|
+
class LocalJobApi {
|
|
38
|
+
/**
|
|
39
|
+
* Trigger a job execution via IPC
|
|
40
|
+
* @throws {JobNotFoundError} if job not found in manifest
|
|
41
|
+
* @throws {JobApiError} if job is already running or other failure
|
|
42
|
+
*/
|
|
43
|
+
async trigger(jobName, parameters) {
|
|
44
|
+
return new Promise((resolve, reject) => {
|
|
45
|
+
if (!process.send) {
|
|
46
|
+
reject(new JobApiError('IPC not available - not running in child process'));
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
// Generate request ID for correlation
|
|
50
|
+
const requestId = this.generateRequestId();
|
|
51
|
+
// Set up response handler
|
|
52
|
+
const responseHandler = (message) => {
|
|
53
|
+
if (message.type === 'success' && message.data?.requestId === requestId) {
|
|
54
|
+
process.off('message', responseHandler);
|
|
55
|
+
clearTimeout(timeout);
|
|
56
|
+
const result = message.data.result;
|
|
57
|
+
// Transform to JobDetail format
|
|
58
|
+
const jobDetail = {
|
|
59
|
+
jobId: result.jobId,
|
|
60
|
+
status: this.transformStatus(result.status),
|
|
61
|
+
definition: {
|
|
62
|
+
name: result.jobName,
|
|
63
|
+
parameters: result.parameters
|
|
64
|
+
},
|
|
65
|
+
errors: '',
|
|
66
|
+
startedAt: result.startedAt,
|
|
67
|
+
completedAt: result.completedAt,
|
|
68
|
+
terminatedAt: undefined
|
|
69
|
+
};
|
|
70
|
+
resolve(jobDetail);
|
|
71
|
+
}
|
|
72
|
+
else if (message.type === 'error' && message.data?.requestId === requestId) {
|
|
73
|
+
process.off('message', responseHandler);
|
|
74
|
+
clearTimeout(timeout);
|
|
75
|
+
const errorMsg = message.data.error;
|
|
76
|
+
// Determine error type
|
|
77
|
+
if (errorMsg.includes('not found')) {
|
|
78
|
+
reject(new JobNotFoundError(errorMsg));
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
reject(new JobApiError(errorMsg));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
// Set up timeout
|
|
86
|
+
const timeout = setTimeout(() => {
|
|
87
|
+
process.off('message', responseHandler);
|
|
88
|
+
reject(new JobApiError(`Job trigger request timed out after 30 seconds`));
|
|
89
|
+
}, 30000);
|
|
90
|
+
// Register response handler
|
|
91
|
+
process.on('message', responseHandler);
|
|
92
|
+
// Send IPC message to parent
|
|
93
|
+
const triggerMessage = {
|
|
94
|
+
id: requestId,
|
|
95
|
+
type: 'trigger_job',
|
|
96
|
+
timestamp: Date.now(),
|
|
97
|
+
data: {
|
|
98
|
+
jobName,
|
|
99
|
+
parameters: parameters || {}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
process.send(triggerMessage);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Get details of a specific job execution via IPC
|
|
107
|
+
* @throws {JobNotFoundError} if execution not found
|
|
108
|
+
*/
|
|
109
|
+
async getDetail(executionId) {
|
|
110
|
+
return this.sendIPCRequest('get_job_detail', { executionId }, (result) => ({
|
|
111
|
+
jobId: result.jobId,
|
|
112
|
+
status: this.transformStatus(result.status),
|
|
113
|
+
definition: {
|
|
114
|
+
name: result.jobName,
|
|
115
|
+
parameters: result.parameters
|
|
116
|
+
},
|
|
117
|
+
errors: '',
|
|
118
|
+
startedAt: result.startedAt,
|
|
119
|
+
completedAt: result.completedAt,
|
|
120
|
+
terminatedAt: undefined
|
|
121
|
+
}));
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Get status of a specific job execution via IPC
|
|
125
|
+
* @throws {JobNotFoundError} if execution not found
|
|
126
|
+
*/
|
|
127
|
+
async getStatus(executionId) {
|
|
128
|
+
return this.sendIPCRequest('get_job_status', { executionId }, (result) => this.transformStatus(result.status));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Generic IPC request helper
|
|
132
|
+
*/
|
|
133
|
+
sendIPCRequest(messageType, data, transform) {
|
|
134
|
+
return new Promise((resolve, reject) => {
|
|
135
|
+
if (!process.send) {
|
|
136
|
+
reject(new JobApiError('IPC not available - not running in child process'));
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
const requestId = this.generateRequestId();
|
|
140
|
+
const responseHandler = (message) => {
|
|
141
|
+
if (message.type === 'success' && message.data?.requestId === requestId) {
|
|
142
|
+
process.off('message', responseHandler);
|
|
143
|
+
clearTimeout(timeout);
|
|
144
|
+
try {
|
|
145
|
+
const transformed = transform(message.data.result);
|
|
146
|
+
resolve(transformed);
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
reject(new JobApiError(`Failed to transform response: ${error.message}`));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
else if (message.type === 'error' && message.data?.requestId === requestId) {
|
|
153
|
+
process.off('message', responseHandler);
|
|
154
|
+
clearTimeout(timeout);
|
|
155
|
+
const errorMsg = message.data.error;
|
|
156
|
+
if (errorMsg.includes('not found')) {
|
|
157
|
+
reject(new JobNotFoundError(errorMsg));
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
reject(new JobApiError(errorMsg));
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
const timeout = setTimeout(() => {
|
|
165
|
+
process.off('message', responseHandler);
|
|
166
|
+
reject(new JobApiError(`${messageType} request timed out after 30 seconds`));
|
|
167
|
+
}, 30000);
|
|
168
|
+
process.on('message', responseHandler);
|
|
169
|
+
const ipcMessage = {
|
|
170
|
+
id: requestId,
|
|
171
|
+
type: messageType,
|
|
172
|
+
timestamp: Date.now(),
|
|
173
|
+
data
|
|
174
|
+
};
|
|
175
|
+
process.send(ipcMessage);
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Generate a unique request ID for IPC correlation
|
|
180
|
+
*/
|
|
181
|
+
generateRequestId() {
|
|
182
|
+
return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Transform status string to JobRunStatus enum
|
|
186
|
+
*/
|
|
187
|
+
transformStatus(status) {
|
|
188
|
+
switch (status) {
|
|
189
|
+
case 'pending':
|
|
190
|
+
return JobRunStatus.Pending;
|
|
191
|
+
case 'running':
|
|
192
|
+
return JobRunStatus.Running;
|
|
193
|
+
case 'completed':
|
|
194
|
+
return JobRunStatus.Complete;
|
|
195
|
+
case 'failed':
|
|
196
|
+
return JobRunStatus.Error;
|
|
197
|
+
case 'interrupted':
|
|
198
|
+
return JobRunStatus.Terminated;
|
|
199
|
+
default:
|
|
200
|
+
return JobRunStatus.Error;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
exports.LocalJobApi = LocalJobApi;
|
|
205
|
+
//# sourceMappingURL=LocalJobApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalJobApi.js","sourceRoot":"","sources":["../../../src/local_engine/LocalJobApi.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,yCAAyB,CAAA;AAC3B,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAeD,MAAa,WAAY,SAAQ,KAAK;IACpC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;CACF;AALD,kCAKC;AAED,MAAa,gBAAiB,SAAQ,KAAK;IACzC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AALD,4CAKC;AAED;;;;;;GAMG;AACH,MAAa,WAAW;IACtB;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,UAAqB;QAClD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;gBAClB,MAAM,CAAC,IAAI,WAAW,CAAC,kDAAkD,CAAC,CAAC,CAAC;gBAC5E,OAAO;YACT,CAAC;YAED,sCAAsC;YACtC,MAAM,SAAS,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAE3C,0BAA0B;YAC1B,MAAM,eAAe,GAAG,CAAC,OAAY,EAAE,EAAE;gBACvC,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,EAAE,SA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;gBAChB,OAAO,YAAY,CAAC,UAAU,CAAC;YACjC;gBACE,OAAO,YAAY,CAAC,KAAK,CAAC;QAC9B,CAAC;IACH,CAAC;CACF;AAhMD,kCAgMC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class LocalNotifier {
|
|
2
|
+
private notificationStore;
|
|
3
|
+
constructor(appRootDir?: string);
|
|
4
|
+
setInstallationId(installationId: string): void;
|
|
5
|
+
info(activity: string, title: string, summary: string, details?: string): Promise<void>;
|
|
6
|
+
success(activity: string, title: string, summary: string, details?: string): Promise<void>;
|
|
7
|
+
warn(activity: string, title: string, summary: string, details?: string): Promise<void>;
|
|
8
|
+
error(activity: string, title: string, summary: string, details?: string): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocalNotifier = void 0;
|
|
4
|
+
const LocalNotificationStore_1 = require("./storage/LocalNotificationStore");
|
|
5
|
+
class LocalNotifier {
|
|
6
|
+
constructor(appRootDir) {
|
|
7
|
+
this.notificationStore = LocalNotificationStore_1.LocalNotificationStore.getInstance(appRootDir);
|
|
8
|
+
}
|
|
9
|
+
setInstallationId(installationId) {
|
|
10
|
+
this.notificationStore.setInstallationId(installationId);
|
|
11
|
+
}
|
|
12
|
+
async info(activity, title, summary, details) {
|
|
13
|
+
this.notificationStore.addNotification("info", activity, title, summary, details);
|
|
14
|
+
}
|
|
15
|
+
async success(activity, title, summary, details) {
|
|
16
|
+
this.notificationStore.addNotification("success", activity, title, summary, details);
|
|
17
|
+
}
|
|
18
|
+
async warn(activity, title, summary, details) {
|
|
19
|
+
this.notificationStore.addNotification("warn", activity, title, summary, details);
|
|
20
|
+
}
|
|
21
|
+
async error(activity, title, summary, details) {
|
|
22
|
+
this.notificationStore.addNotification("error", activity, title, summary, details);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.LocalNotifier = LocalNotifier;
|
|
26
|
+
//# sourceMappingURL=LocalNotifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalNotifier.js","sourceRoot":"","sources":["../../../src/local_engine/LocalNotifier.ts"],"names":[],"mappings":";;;AAAA,6EAA0E;AAE1E,MAAa,aAAa;IAGxB,YAAY,UAAmB;QAC7B,IAAI,CAAC,iBAAiB,GAAG,+CAAsB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1E,CAAC;IAEM,iBAAiB,CAAC,cAAsB;QAC7C,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,IAAI,CACR,QAAgB,EAChB,KAAa,EACb,OAAe,EACf,OAAgB;QAEhB,IAAI,CAAC,iBAAiB,CAAC,eAAe,CACpC,MAAM,EACN,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CACX,QAAgB,EAChB,KAAa,EACb,OAAe,EACf,OAAgB;QAEhB,IAAI,CAAC,iBAAiB,CAAC,eAAe,CACpC,SAAS,EACT,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CACR,QAAgB,EAChB,KAAa,EACb,OAAe,EACf,OAAgB;QAEhB,IAAI,CAAC,iBAAiB,CAAC,eAAe,CACpC,MAAM,EACN,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CACT,QAAgB,EAChB,KAAa,EACb,OAAe,EACf,OAAgB;QAEhB,IAAI,CAAC,iBAAiB,CAAC,eAAe,CACpC,OAAO,EACP,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAtED,sCAsEC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base class for IPC-enabled child processes
|
|
3
|
+
*/
|
|
4
|
+
import { ChildMessage, AppConfig } from './local-engine-types';
|
|
5
|
+
export declare abstract class LocalEngineChildBase {
|
|
6
|
+
protected appConfig?: AppConfig;
|
|
7
|
+
protected appDir?: string;
|
|
8
|
+
protected initialized: boolean;
|
|
9
|
+
protected currentRequestId?: string;
|
|
10
|
+
constructor();
|
|
11
|
+
/**
|
|
12
|
+
* Initialize the child process and start listening for messages
|
|
13
|
+
*/
|
|
14
|
+
start(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Abstract methods to be implemented by specific wrapper types
|
|
17
|
+
*/
|
|
18
|
+
protected abstract initialize(appConfig: AppConfig, appDir: string): Promise<void>;
|
|
19
|
+
protected abstract executeFunction(request: any): Promise<any>;
|
|
20
|
+
protected abstract executeLifecycle(request: any): Promise<any>;
|
|
21
|
+
protected abstract executeJob(request: any): Promise<any>;
|
|
22
|
+
protected abstract executeDestinationReady(data: any): Promise<any>;
|
|
23
|
+
protected abstract executeDestinationDeliver(data: any): Promise<any>;
|
|
24
|
+
protected abstract executeDestinationSchema(data: any): Promise<any>;
|
|
25
|
+
protected abstract cleanup(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Set up message handlers for parent communication
|
|
28
|
+
*/
|
|
29
|
+
private setupMessageHandlers;
|
|
30
|
+
/**
|
|
31
|
+
* Set up global error handlers
|
|
32
|
+
*/
|
|
33
|
+
private setupErrorHandlers;
|
|
34
|
+
/**
|
|
35
|
+
* Handle incoming messages from parent
|
|
36
|
+
*/
|
|
37
|
+
private handleMessage;
|
|
38
|
+
/**
|
|
39
|
+
* Handle initialization request
|
|
40
|
+
*/
|
|
41
|
+
private handleInitialize;
|
|
42
|
+
/**
|
|
43
|
+
* Handle function execution request
|
|
44
|
+
*/
|
|
45
|
+
private handleExecuteFunction;
|
|
46
|
+
/**
|
|
47
|
+
* Handle lifecycle execution request
|
|
48
|
+
*/
|
|
49
|
+
private handleExecuteLifecycle;
|
|
50
|
+
/**
|
|
51
|
+
* Handle job execution request
|
|
52
|
+
*/
|
|
53
|
+
private handleExecuteJob;
|
|
54
|
+
/**
|
|
55
|
+
* Handle destination ready execution request
|
|
56
|
+
*/
|
|
57
|
+
private handleExecuteDestinationReady;
|
|
58
|
+
/**
|
|
59
|
+
* Handle destination deliver execution request
|
|
60
|
+
*/
|
|
61
|
+
private handleExecuteDestinationDeliver;
|
|
62
|
+
/**
|
|
63
|
+
* Handle destination schema execution request
|
|
64
|
+
*/
|
|
65
|
+
private handleExecuteDestinationSchema;
|
|
66
|
+
/**
|
|
67
|
+
* Handle source webhook execution request
|
|
68
|
+
*/
|
|
69
|
+
private handleExecuteSourceWebhook;
|
|
70
|
+
/**
|
|
71
|
+
* Handle source lifecycle execution request
|
|
72
|
+
*/
|
|
73
|
+
private handleExecuteSourceLifecycle;
|
|
74
|
+
/**
|
|
75
|
+
* Handle source job execution request
|
|
76
|
+
*/
|
|
77
|
+
private handleExecuteSourceJob;
|
|
78
|
+
/**
|
|
79
|
+
* Handle source schema execution request
|
|
80
|
+
*/
|
|
81
|
+
private handleExecuteSourceSchema;
|
|
82
|
+
/**
|
|
83
|
+
* Handle shutdown request
|
|
84
|
+
*/
|
|
85
|
+
private handleShutdown;
|
|
86
|
+
/**
|
|
87
|
+
* Handle cancellation request
|
|
88
|
+
*/
|
|
89
|
+
private handleCancel;
|
|
90
|
+
/**
|
|
91
|
+
* Send ready message to parent
|
|
92
|
+
*/
|
|
93
|
+
protected sendReady(): void;
|
|
94
|
+
/**
|
|
95
|
+
* Send progress update to parent
|
|
96
|
+
*/
|
|
97
|
+
protected sendProgress(requestId: string, message: string, progress?: number): void;
|
|
98
|
+
/**
|
|
99
|
+
* Send log message to parent
|
|
100
|
+
*/
|
|
101
|
+
protected sendLog(level: 'debug' | 'info' | 'warn' | 'error', message: string, requestId?: string): void;
|
|
102
|
+
/**
|
|
103
|
+
* Send error message to parent
|
|
104
|
+
*/
|
|
105
|
+
protected sendError(requestId: string, message: string, error: any, executionTime?: number): void;
|
|
106
|
+
/**
|
|
107
|
+
* Send a message to the parent process
|
|
108
|
+
*/
|
|
109
|
+
protected sendMessage(message: ChildMessage): void;
|
|
110
|
+
}
|