pi-critique-model 1.1.0 → 1.1.1
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/package.json +1 -1
- package/src/index.ts +8 -4
- package/src/prompt-critique.ts +2 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -112,10 +112,14 @@ function autoPromptCritiqueModelSourceLabel(source: AutoPromptCritiqueModelSourc
|
|
|
112
112
|
function updateCritiqueStatus(ctx: ExtensionContext): void {
|
|
113
113
|
if (!ctx.hasUI) return;
|
|
114
114
|
const config = loadConfig();
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
config.
|
|
118
|
-
|
|
115
|
+
const parts: string[] = [];
|
|
116
|
+
if (config.autoPromptCritique) {
|
|
117
|
+
parts.push(`critique:${autoPromptCritiqueLevelLabel(config.autoPromptCritiqueLevel)}`);
|
|
118
|
+
}
|
|
119
|
+
if (config.questions) {
|
|
120
|
+
parts.push(`questions:${questionsFrequencyLabel(config.questionsFrequency)}`);
|
|
121
|
+
}
|
|
122
|
+
ctx.ui.setStatus("critique", parts.length > 0 ? parts.join(" ") : undefined);
|
|
119
123
|
}
|
|
120
124
|
|
|
121
125
|
/**
|
package/src/prompt-critique.ts
CHANGED
|
@@ -63,7 +63,7 @@ const LEVEL_GUIDANCE: Record<AutoPromptCritiqueLevel, string> = {
|
|
|
63
63
|
const QUESTIONS_FREQUENCY_LABELS: Record<QuestionsFrequency, string> = {
|
|
64
64
|
essential: "Essential only",
|
|
65
65
|
normal: "Normal",
|
|
66
|
-
verbose: "
|
|
66
|
+
verbose: "Many questions",
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
export function autoPromptCritiqueLevelLabel(level: AutoPromptCritiqueLevel): string {
|
|
@@ -97,6 +97,7 @@ export function detectAmbiguity(
|
|
|
97
97
|
): { interpretationA: string; interpretationB: string } | null {
|
|
98
98
|
const trimmed = text.trim();
|
|
99
99
|
if (!trimmed) return null;
|
|
100
|
+
if (trimmed.includes("[Questions answer]")) return null;
|
|
100
101
|
|
|
101
102
|
const normalized = trimmed
|
|
102
103
|
.toLowerCase()
|