@fadhelhaidar/pi-ask-user 1.0.3 → 1.0.4
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.
|
@@ -343,7 +343,7 @@ function perTabBinding(spec) {
|
|
|
343
343
|
import { truncateToWidth as truncateToWidth2, visibleWidth, wrapTextWithAnsi as wrapTextWithAnsi2 } from "@earendil-works/pi-tui";
|
|
344
344
|
|
|
345
345
|
// view/components/inline-input.ts
|
|
346
|
-
import { CURSOR_MARKER, wrapTextWithAnsi } from "@earendil-works/pi-tui";
|
|
346
|
+
import { CURSOR_MARKER, renderFakeCursor, wrapTextWithAnsi } from "@earendil-works/pi-tui";
|
|
347
347
|
var graphemeSegmenter = new Intl.Segmenter(undefined, { granularity: "grapheme" });
|
|
348
348
|
function resolveCursorOffset(buffer, requested) {
|
|
349
349
|
if (requested !== undefined && requested >= 0 && requested <= buffer.length)
|
|
@@ -358,7 +358,7 @@ function buildCursorRaw(buffer, offset) {
|
|
|
358
358
|
`;
|
|
359
359
|
const atCursor = rawAt === "" || rawAt === " " || cursorAtLineEnd ? " " : rawAt;
|
|
360
360
|
const after = buffer.slice(offset + (cursorAtLineEnd ? 0 : rawAt.length));
|
|
361
|
-
return `${before}${CURSOR_MARKER}
|
|
361
|
+
return `${before}${CURSOR_MARKER}${renderFakeCursor(atCursor)}${after}`;
|
|
362
362
|
}
|
|
363
363
|
function renderInlineInputRow(opts) {
|
|
364
364
|
const { buffer, cursorOffset, rowPrefix, continuationPrefix, contentWidth, selectedText } = opts;
|
package/dist/index.js
CHANGED
|
@@ -314,7 +314,7 @@ var PREWARM_DELAY_MS = 2000;
|
|
|
314
314
|
async function loadQuestionnaireSession() {
|
|
315
315
|
let mod;
|
|
316
316
|
try {
|
|
317
|
-
mod = await import("./chunks/questionnaire-session-
|
|
317
|
+
mod = await import("./chunks/questionnaire-session-j2wmt696.js");
|
|
318
318
|
} catch (e) {
|
|
319
319
|
const cause = e instanceof Error ? e.message : String(e);
|
|
320
320
|
return { ok: false, error: "session_load_failed", message: `${ERROR_SESSION_LOAD_FAILED} (cause: ${cause})` };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fadhelhaidar/pi-ask-user",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Standalone Pi questionnaire with combined multi-select and custom answers, Enter-only toggling, and preserved drafts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@earendil-works/pi-coding-agent": "1.0
|
|
61
|
-
"@earendil-works/pi-tui": "1.0
|
|
60
|
+
"@earendil-works/pi-coding-agent": "1.2.0",
|
|
61
|
+
"@earendil-works/pi-tui": "1.2.0",
|
|
62
62
|
"@juicesharp/rpiv-i18n": "2.12.0",
|
|
63
63
|
"typescript": "5.9.3",
|
|
64
64
|
"vitest": "4.1.10"
|