devwing 0.1.20 → 0.1.21
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 +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2679,6 +2679,20 @@ var TOOL_ICONS = {
|
|
|
2679
2679
|
http_request: "\u{1F310}",
|
|
2680
2680
|
cve_lookup: "\u{1F512}"
|
|
2681
2681
|
};
|
|
2682
|
+
function resetStdinState() {
|
|
2683
|
+
try {
|
|
2684
|
+
if (typeof process.stdin.setRawMode === "function") {
|
|
2685
|
+
try {
|
|
2686
|
+
process.stdin.setRawMode(false);
|
|
2687
|
+
} catch {
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
process.stdin.removeAllListeners("keypress");
|
|
2691
|
+
process.stdin.removeAllListeners("data");
|
|
2692
|
+
if (process.stdin.isPaused()) process.stdin.resume();
|
|
2693
|
+
} catch {
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2682
2696
|
async function showToolCall(tool, args) {
|
|
2683
2697
|
await sleep(PAUSE_SHORT);
|
|
2684
2698
|
console.log();
|
|
@@ -2697,6 +2711,8 @@ async function showToolCall(tool, args) {
|
|
|
2697
2711
|
default: true
|
|
2698
2712
|
}
|
|
2699
2713
|
]);
|
|
2714
|
+
resetStdinState();
|
|
2715
|
+
await sleep(60);
|
|
2700
2716
|
if (!allowed) {
|
|
2701
2717
|
console.log(chalk7.dim(" \u2717 Skipped"));
|
|
2702
2718
|
throw Object.assign(new Error("TOOL_SKIPPED"), { skipped: true });
|
|
@@ -2771,7 +2787,7 @@ function getVersion() {
|
|
|
2771
2787
|
continue;
|
|
2772
2788
|
}
|
|
2773
2789
|
}
|
|
2774
|
-
return "0.1.
|
|
2790
|
+
return "0.1.21";
|
|
2775
2791
|
}
|
|
2776
2792
|
var DEMO_USER2 = {
|
|
2777
2793
|
id: "usr_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|