@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 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-template
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 don't need to modify it manually.
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;;;GAgChE"}
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"}
@@ -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 () => {
@@ -1 +1 @@
1
- {"version":3,"file":"startServer.js","sourceRoot":"","sources":["../src/startServer.ts"],"names":[],"mappings":";;;;;AAKA,sBAgCG;AAnCH,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,CA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1,6 @@
1
1
  {
2
2
  "name": "@cdp-forge/plugin-pipeline-sdk",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "SDK for pipeline plugins for CDP Forge platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",