@zhongqian97-code/ecode 0.5.66 → 0.5.67
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
CHANGED
|
@@ -907,7 +907,7 @@ Node.js 16/18 \u8BF7\u4F7F\u7528 --web \u6216 --pipe \u6A21\u5F0F\u3002
|
|
|
907
907
|
);
|
|
908
908
|
process.exit(1);
|
|
909
909
|
}
|
|
910
|
-
const { App, React, render, createStdinFilter } = await import("./ui-
|
|
910
|
+
const { App, React, render, createStdinFilter } = await import("./ui-GQ6DSF7S.js");
|
|
911
911
|
const stdinFilter = process.stdin.isTTY ? createStdinFilter(process.stdin) : process.stdin;
|
|
912
912
|
render(
|
|
913
913
|
React.createElement(App, { config: finalConfig, version: VERSION, autoMode, registry, trustedSkillDirs, initialMessages, stdinFilter }),
|
|
@@ -663,9 +663,10 @@ var Input = forwardRef(function Input2({ isActive, onSubmit, onChange, placehold
|
|
|
663
663
|
return;
|
|
664
664
|
}
|
|
665
665
|
if (input.length > 0) {
|
|
666
|
-
const
|
|
666
|
+
const text = input.replace(/\r\n?/g, "\n");
|
|
667
|
+
const newValue = v.slice(0, pos) + text + v.slice(pos);
|
|
667
668
|
setValueSync(newValue);
|
|
668
|
-
setCursorPosSync(pos +
|
|
669
|
+
setCursorPosSync(pos + text.length);
|
|
669
670
|
(_h = onChangeRef.current) == null ? void 0 : _h.call(onChangeRef, newValue);
|
|
670
671
|
}
|
|
671
672
|
},
|