@lenne.tech/cli 1.6.3 → 1.6.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/bin/lt +13 -0
- package/build/commands/claude/plugins.js +78 -426
- package/build/commands/claude/shortcuts.js +117 -0
- package/build/lib/claude-cli.js +94 -0
- package/build/lib/json-utils.js +20 -0
- package/build/lib/marketplace.js +160 -0
- package/build/lib/plugin-utils.js +453 -0
- package/build/lib/shell-config.js +175 -0
- package/docs/commands.md +33 -0
- package/package.json +1 -1
package/bin/lt
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
|
|
4
4
|
/* tslint:disable */
|
|
5
5
|
|
|
6
|
+
// Handle CTRL+C gracefully (enquirer throws ERR_USE_AFTER_CLOSE when readline is closed)
|
|
7
|
+
function handleCtrlCError(e) {
|
|
8
|
+
if (!e || (e && e.code === 'ERR_USE_AFTER_CLOSE')) {
|
|
9
|
+
console.log('Goodbye ✌️');
|
|
10
|
+
process.exit(0);
|
|
11
|
+
} else {
|
|
12
|
+
console.error(e);
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
process.on('unhandledRejection', handleCtrlCError);
|
|
17
|
+
process.on('uncaughtException', handleCtrlCError);
|
|
18
|
+
|
|
6
19
|
// Handle case where current working directory no longer exists
|
|
7
20
|
try {
|
|
8
21
|
process.cwd();
|