@ha-bits/cortex 1.0.0 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ha-bits/cortex",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Cortex - Habits Workflow Executor CLI",
5
5
  "main": "./server/main.cjs",
6
6
  "bin": {
@@ -32,6 +32,10 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
+ "@activepieces/piece-http": "^0.9.5",
36
+ "@activepieces/pieces-common": "^0.10.1",
37
+ "@activepieces/pieces-framework": "^0.22.2",
38
+ "@activepieces/shared": "^0.29.0",
35
39
  "axios": "^1.6.2",
36
40
  "dotenv": "^16.3.1",
37
41
  "express": "^4.18.2",
@@ -48,29 +52,6 @@
48
52
  "@types/yargs": "^17.0.32",
49
53
  "esbuild": "^0.20.0",
50
54
  "typescript": "^5.3.3"
51
- },
52
- "peerDependencies": {
53
- "@activepieces/piece-http": "^0.9.5",
54
- "@activepieces/pieces-common": "^0.10.1",
55
- "@activepieces/pieces-framework": "^0.22.2",
56
- "@activepieces/shared": "^0.29.0",
57
- "n8n-workflow": "^1.19.0"
58
- },
59
- "peerDependenciesMeta": {
60
- "@activepieces/piece-http": {
61
- "optional": true
62
- },
63
- "@activepieces/pieces-common": {
64
- "optional": true
65
- },
66
- "@activepieces/pieces-framework": {
67
- "optional": true
68
- },
69
- "@activepieces/shared": {
70
- "optional": true
71
- },
72
- "n8n-workflow": {
73
- "optional": true
74
- }
75
55
  }
56
+
76
57
  }
package/server/main.cjs CHANGED
@@ -4994,6 +4994,19 @@ Health: /health`);
4994
4994
  }
4995
4995
  resolve5();
4996
4996
  });
4997
+ this.server.on("error", (error) => {
4998
+ if (error.code === "EADDRINUSE") {
4999
+ console.error(`
5000
+ \u274C Port ${port} is already in use!`);
5001
+ console.error(` Please stop the process using port ${port} or use a different port.`);
5002
+ console.error(` Try: lsof -ti:${port} | xargs kill -9`);
5003
+ reject(new Error(`Port ${port} is already in use`));
5004
+ } else {
5005
+ console.error(`
5006
+ \u274C Server error:`, error.message);
5007
+ reject(error);
5008
+ }
5009
+ });
4997
5010
  } catch (error) {
4998
5011
  reject(error);
4999
5012
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ha-bits/cortex",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Cortex - Habits Workflow Executor CLI",
5
5
  "main": "./server/main.cjs",
6
6
  "bin": {
@@ -32,6 +32,10 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
+ "@activepieces/piece-http": "^0.9.5",
36
+ "@activepieces/pieces-common": "^0.10.1",
37
+ "@activepieces/pieces-framework": "^0.22.2",
38
+ "@activepieces/shared": "^0.29.0",
35
39
  "axios": "^1.6.2",
36
40
  "dotenv": "^16.3.1",
37
41
  "express": "^4.18.2",
@@ -48,29 +52,6 @@
48
52
  "@types/yargs": "^17.0.32",
49
53
  "esbuild": "^0.20.0",
50
54
  "typescript": "^5.3.3"
51
- },
52
- "peerDependencies": {
53
- "@activepieces/piece-http": "^0.9.5",
54
- "@activepieces/pieces-common": "^0.10.1",
55
- "@activepieces/pieces-framework": "^0.22.2",
56
- "@activepieces/shared": "^0.29.0",
57
- "n8n-workflow": "^1.19.0"
58
- },
59
- "peerDependenciesMeta": {
60
- "@activepieces/piece-http": {
61
- "optional": true
62
- },
63
- "@activepieces/pieces-common": {
64
- "optional": true
65
- },
66
- "@activepieces/pieces-framework": {
67
- "optional": true
68
- },
69
- "@activepieces/shared": {
70
- "optional": true
71
- },
72
- "n8n-workflow": {
73
- "optional": true
74
- }
75
55
  }
56
+
76
57
  }