orquesta-cli 0.2.20 → 0.2.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.
@@ -66,6 +66,28 @@ export const CustomTextInput = ({ value, onChange, onSubmit, onHistoryPrev, onHi
66
66
  setCursorPosition(newPos);
67
67
  }
68
68
  };
69
+ if (str.includes('\x1b[200~')) {
70
+ const startIdx = str.indexOf('\x1b[200~');
71
+ const endIdx = str.indexOf('\x1b[201~');
72
+ const before = str.slice(0, startIdx);
73
+ const body = endIdx !== -1 ? str.slice(startIdx + 6, endIdx) : str.slice(startIdx + 6);
74
+ const after = endIdx !== -1 ? str.slice(endIdx + 6) : '';
75
+ const pasteText = (before + body).replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, '');
76
+ let valueAfterPaste = currentValue;
77
+ if (pasteText.length > 0) {
78
+ valueAfterPaste = currentValue.slice(0, currentCursor) + pasteText + currentValue.slice(currentCursor);
79
+ isInternalChangeRef.current = true;
80
+ onChangeRef.current(valueAfterPaste);
81
+ setCursorPosition(currentCursor + pasteText.length);
82
+ if (pasteText.split('\n').length > MULTILINE_COLLAPSE_THRESHOLD) {
83
+ setIsCollapsedViewRef.current(true);
84
+ }
85
+ }
86
+ if (/[\r\n]/.test(after) && onSubmitRef.current) {
87
+ onSubmitRef.current(valueAfterPaste);
88
+ }
89
+ return;
90
+ }
69
91
  if (str.startsWith('\x1b')) {
70
92
  if (str === '\x1b\r' || str === '\x1b\n' || str === '\x1b[13;2u' || str === '\x1b[27;2;13~') {
71
93
  const newValue = currentValue.slice(0, currentCursor) + '\n' + currentValue.slice(currentCursor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orquesta-cli",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "Orquesta CLI - AI-powered coding assistant with team collaboration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",