@pokit/tabs-opentui 0.0.20 → 0.0.22

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 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAwB,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK/E;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,CAyG/C;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,QAAQ,EACb,OAAO,GAAE,mBAAwB,GAChC;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAuGzB"}
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAwB,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK/E;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,CA2G/C;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,QAAQ,EACb,OAAO,GAAE,mBAAwB,GAChC;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAyGzB"}
package/dist/adapter.js CHANGED
@@ -53,6 +53,7 @@ export function createTabsAdapter() {
53
53
  return;
54
54
  resolved = true;
55
55
  // Remove signal handlers
56
+ process.removeListener('SIGINT', handleSignal);
56
57
  process.removeListener('SIGTERM', handleSignal);
57
58
  process.removeListener('SIGQUIT', handleSignal);
58
59
  process.removeListener('uncaughtException', handleUncaughtException);
@@ -79,6 +80,7 @@ export function createTabsAdapter() {
79
80
  process.exit(1);
80
81
  };
81
82
  // Register signal handlers
83
+ process.on('SIGINT', handleSignal);
82
84
  process.on('SIGTERM', handleSignal);
83
85
  process.on('SIGQUIT', handleSignal);
84
86
  process.on('uncaughtException', handleUncaughtException);
@@ -120,6 +122,7 @@ export function createEventAdapter(bus, options = {}) {
120
122
  return;
121
123
  isCleanedUp = true;
122
124
  // Remove signal handlers
125
+ process.removeListener('SIGINT', handleSignal);
123
126
  process.removeListener('SIGTERM', handleSignal);
124
127
  process.removeListener('SIGQUIT', handleSignal);
125
128
  process.removeListener('uncaughtException', handleUncaughtException);
@@ -145,6 +148,7 @@ export function createEventAdapter(bus, options = {}) {
145
148
  process.exit(1);
146
149
  };
147
150
  // Register signal handlers
151
+ process.on('SIGINT', handleSignal);
148
152
  process.on('SIGTERM', handleSignal);
149
153
  process.on('SIGQUIT', handleSignal);
150
154
  process.on('uncaughtException', handleUncaughtException);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pokit/tabs-opentui",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "OpenTUI-based tab renderer for pok CLI applications",
5
5
  "keywords": [
6
6
  "cli",
@@ -53,12 +53,12 @@
53
53
  "devDependencies": {
54
54
  "@types/bun": "latest",
55
55
  "@types/react": "^19.2.0",
56
- "@pokit/core": "0.0.20",
57
- "@pokit/tabs-core": "0.0.20"
56
+ "@pokit/core": "0.0.22",
57
+ "@pokit/tabs-core": "0.0.22"
58
58
  },
59
59
  "peerDependencies": {
60
- "@pokit/core": "0.0.20",
61
- "@pokit/tabs-core": "0.0.20"
60
+ "@pokit/core": "0.0.22",
61
+ "@pokit/tabs-core": "0.0.22"
62
62
  },
63
63
  "engines": {
64
64
  "bun": ">=1.0.0"
package/src/adapter.tsx CHANGED
@@ -66,6 +66,7 @@ export function createTabsAdapter(): TabsAdapter {
66
66
  resolved = true;
67
67
 
68
68
  // Remove signal handlers
69
+ process.removeListener('SIGINT', handleSignal);
69
70
  process.removeListener('SIGTERM', handleSignal);
70
71
  process.removeListener('SIGQUIT', handleSignal);
71
72
  process.removeListener('uncaughtException', handleUncaughtException);
@@ -96,6 +97,7 @@ export function createTabsAdapter(): TabsAdapter {
96
97
  };
97
98
 
98
99
  // Register signal handlers
100
+ process.on('SIGINT', handleSignal);
99
101
  process.on('SIGTERM', handleSignal);
100
102
  process.on('SIGQUIT', handleSignal);
101
103
  process.on('uncaughtException', handleUncaughtException);
@@ -157,6 +159,7 @@ export function createEventAdapter(
157
159
  isCleanedUp = true;
158
160
 
159
161
  // Remove signal handlers
162
+ process.removeListener('SIGINT', handleSignal);
160
163
  process.removeListener('SIGTERM', handleSignal);
161
164
  process.removeListener('SIGQUIT', handleSignal);
162
165
  process.removeListener('uncaughtException', handleUncaughtException);
@@ -186,6 +189,7 @@ export function createEventAdapter(
186
189
  };
187
190
 
188
191
  // Register signal handlers
192
+ process.on('SIGINT', handleSignal);
189
193
  process.on('SIGTERM', handleSignal);
190
194
  process.on('SIGQUIT', handleSignal);
191
195
  process.on('uncaughtException', handleUncaughtException);