@juicesharp/rpiv-ask-user-question 1.17.0 → 1.18.0
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/ask-user-question.ts +4 -1
- package/package.json +2 -2
package/ask-user-question.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
|
2
2
|
import { loadConfig, validateGuidanceFields } from "./config.js";
|
|
3
3
|
import { ASK_USER_PROMPT_EVENT, type AskUserPromptEventPayload } from "./events.js";
|
|
4
4
|
import { displayLabel } from "./state/i18n-bridge.js";
|
|
5
|
-
import { QuestionnaireSession } from "./state/questionnaire-session.js";
|
|
6
5
|
import { sentinelsToAppend } from "./state/row-intent.js";
|
|
7
6
|
import { buildQuestionnaireResponse, buildToolResult } from "./tool/response-envelope.js";
|
|
8
7
|
import {
|
|
@@ -102,6 +101,10 @@ Preview content is rendered as markdown in a monospace box. Multi-line text with
|
|
|
102
101
|
|
|
103
102
|
const itemsByTab: WrappingSelectItem[][] = typed.questions.map((q) => buildItemsForQuestion(q));
|
|
104
103
|
|
|
104
|
+
// Lazy — QuestionnaireSession pulls the ~560ms view/TUI render graph;
|
|
105
|
+
// load it only when the tool runs, not at extension registration.
|
|
106
|
+
const { QuestionnaireSession } = await import("./state/questionnaire-session.js");
|
|
107
|
+
|
|
105
108
|
const result = await ctx.ui.custom<QuestionnaireResult>(
|
|
106
109
|
(tui, theme, _kb, done) => {
|
|
107
110
|
const session = new QuestionnaireSession({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-ask-user-question",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "Pi extension. A structured questionnaire the model can put to you when it would otherwise guess, with typed options instead of free-form replies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -87,6 +87,6 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@juicesharp/rpiv-config": "^1.
|
|
90
|
+
"@juicesharp/rpiv-config": "^1.18.0"
|
|
91
91
|
}
|
|
92
92
|
}
|