@cdp-forge/plugin-pipeline-sdk 1.1.4 → 1.1.5
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 +5 -6
- package/dist/startServer.d.ts.map +1 -1
- package/dist/startServer.js +0 -6
- package/dist/startServer.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This project serves as an SDK for building plugins that can be integrated into t
|
|
|
9
9
|
You can install this library as a dependency in other projects:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install plugin-pipeline-sdk
|
|
12
|
+
npm install @cdp-forge/plugin-pipeline-sdk
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
### Usage as Library
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ConfigReader,
|
|
23
23
|
Log,
|
|
24
24
|
start
|
|
25
|
-
} from 'plugin-pipeline-sdk';
|
|
25
|
+
} from '@cdp-forge/plugin-pipeline-sdk';
|
|
26
26
|
|
|
27
27
|
// Create a custom plugin
|
|
28
28
|
class MyCustomPlugin implements PipelinePluginI {
|
|
@@ -70,7 +70,7 @@ start(customPlugin, config).then(({ stage, configListener }) => {
|
|
|
70
70
|
1. **Clone the repository:**
|
|
71
71
|
```bash
|
|
72
72
|
git clone <repository-url>
|
|
73
|
-
cd plugin-pipeline-
|
|
73
|
+
cd plugin-pipeline-sdk
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
2. **Install dependencies:**
|
|
@@ -103,8 +103,7 @@ mysql:
|
|
|
103
103
|
uri: 'mysql://user:password@my-server-ip:3306'
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
**Important**: If you're using the **Helm installer** provided by the CDP Forge platform, this file is **automatically generated** and you
|
|
107
|
-
|
|
106
|
+
**Important**: If you're using the **Helm installer** provided by the CDP Forge platform, this file is **automatically generated** and you should use thia one on your plugin.
|
|
108
107
|
#### `config/plugin.yml` - Plugin-Specific Configuration
|
|
109
108
|
This file contains **plugin-specific settings** that define how your individual plugin behaves within the pipeline.
|
|
110
109
|
|
|
@@ -349,4 +348,4 @@ This project is distributed under the GPL-3.0 license. See the `LICENSE` file fo
|
|
|
349
348
|
|
|
350
349
|
## 📞 Support
|
|
351
350
|
|
|
352
|
-
For support and questions, please open an issue on the GitHub repository.
|
|
351
|
+
For support and questions, please open an issue on the GitHub repository.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startServer.d.ts","sourceRoot":"","sources":["../src/startServer.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,wBAAsB,KAAK,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM;;;
|
|
1
|
+
{"version":3,"file":"startServer.d.ts","sourceRoot":"","sources":["../src/startServer.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,wBAAsB,KAAK,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM;;;GA0BhE"}
|
package/dist/startServer.js
CHANGED
|
@@ -20,12 +20,6 @@ async function start(plugin, config) {
|
|
|
20
20
|
if (!res.ok) {
|
|
21
21
|
throw new Error(`Failed to register plugin with Template Manager: ${res.statusText}`);
|
|
22
22
|
}
|
|
23
|
-
return res.json();
|
|
24
|
-
}).then(json => {
|
|
25
|
-
if (!json || !json.inputTopic || !json.outputTopic) {
|
|
26
|
-
throw new Error('Failed to fetch plugin configuration from Template Manager.');
|
|
27
|
-
}
|
|
28
|
-
stage.start(json.inputTopic, json.outputTopic);
|
|
29
23
|
});
|
|
30
24
|
});
|
|
31
25
|
const handleExit = async () => {
|
package/dist/startServer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startServer.js","sourceRoot":"","sources":["../src/startServer.ts"],"names":[],"mappings":";;;;;AAKA,
|
|
1
|
+
{"version":3,"file":"startServer.js","sourceRoot":"","sources":["../src/startServer.ts"],"names":[],"mappings":";;;;;AAKA,sBA0BG;AA7BH,oEAA4C;AAC5C,sEAA8C;AAEvC,KAAK,UAAU,KAAK,CAAC,MAAuB,EAAE,MAAc;IAC/D,MAAM,KAAK,GAAG,IAAI,uBAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,MAAM,cAAc,GAAG,IAAI,wBAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACzD,cAAc,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;QAC/B,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,WAAW,EAAE;YACtC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;SACpC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YACZ,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;gBACZ,MAAM,IAAI,KAAK,CAAC,oDAAoD,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;YACxF,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,MAAM,UAAU,GAAG,KAAK,IAAI,EAAE;QAC5B,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;QAC9C,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC;IACF,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAElC,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;IACrE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;AACnC,CAAC"}
|