devwing 0.1.18 → 0.1.19
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/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2775,7 +2775,7 @@ function getVersion() {
|
|
|
2775
2775
|
continue;
|
|
2776
2776
|
}
|
|
2777
2777
|
}
|
|
2778
|
-
return "0.1.
|
|
2778
|
+
return "0.1.19";
|
|
2779
2779
|
}
|
|
2780
2780
|
var DEMO_USER2 = {
|
|
2781
2781
|
id: "usr_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
@@ -2905,6 +2905,22 @@ var InteractiveSession = class {
|
|
|
2905
2905
|
}
|
|
2906
2906
|
});
|
|
2907
2907
|
}
|
|
2908
|
+
resetStdin() {
|
|
2909
|
+
try {
|
|
2910
|
+
if (process.stdin.isPaused()) {
|
|
2911
|
+
process.stdin.resume();
|
|
2912
|
+
}
|
|
2913
|
+
process.stdin.removeAllListeners("keypress");
|
|
2914
|
+
process.stdin.removeAllListeners("data");
|
|
2915
|
+
if (typeof process.stdin.setRawMode === "function") {
|
|
2916
|
+
try {
|
|
2917
|
+
process.stdin.setRawMode(false);
|
|
2918
|
+
} catch {
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
} catch {
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2908
2924
|
recreateReadline() {
|
|
2909
2925
|
this.createReadline();
|
|
2910
2926
|
this.rl.prompt();
|
|
@@ -3056,6 +3072,7 @@ var InteractiveSession = class {
|
|
|
3056
3072
|
} catch (error) {
|
|
3057
3073
|
logger.error(error.message || "Command failed");
|
|
3058
3074
|
}
|
|
3075
|
+
this.resetStdin();
|
|
3059
3076
|
this.recreateReadline();
|
|
3060
3077
|
}
|
|
3061
3078
|
// ============================================================
|
|
@@ -3080,6 +3097,7 @@ var InteractiveSession = class {
|
|
|
3080
3097
|
} catch (error) {
|
|
3081
3098
|
logger.error(error.message || "Command failed");
|
|
3082
3099
|
}
|
|
3100
|
+
this.resetStdin();
|
|
3083
3101
|
this.recreateReadline();
|
|
3084
3102
|
return;
|
|
3085
3103
|
}
|