@leing2021/super-pi 0.30.2 → 0.30.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.
|
@@ -408,11 +408,17 @@ export default function ceCoreExtension(pi: ExtensionAPI) {
|
|
|
408
408
|
medium: "medium",
|
|
409
409
|
high: "high",
|
|
410
410
|
xhigh: "xhigh",
|
|
411
|
+
max: "max",
|
|
411
412
|
"0": "low",
|
|
412
413
|
"1": "medium",
|
|
413
414
|
"2": "high",
|
|
414
415
|
}
|
|
415
|
-
const
|
|
416
|
+
const rawThinking = targetThinking.toLowerCase()
|
|
417
|
+
const knownLevel = levelMap[rawThinking]
|
|
418
|
+
const normalized = knownLevel ?? "medium"
|
|
419
|
+
if (!knownLevel && shouldNotify) {
|
|
420
|
+
ctx.ui.notify(`Unknown thinking level for ${stageKey}: ${targetThinking}, falling back to medium`, "warning")
|
|
421
|
+
}
|
|
416
422
|
const currentLevel = pi.getThinkingLevel()
|
|
417
423
|
if (currentLevel !== normalized) {
|
|
418
424
|
pi.setThinkingLevel(normalized)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leing2021/super-pi",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Pi-native Compound Engineering package for iterative development workflows",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"typebox": ">=1.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
44
|
-
"@earendil-works/pi-tui": "^0.
|
|
43
|
+
"@earendil-works/pi-coding-agent": "^0.84.1",
|
|
44
|
+
"@earendil-works/pi-tui": "^0.84.1",
|
|
45
45
|
"bun-types": "^1.3.12"
|
|
46
46
|
},
|
|
47
47
|
"pi": {
|
|
@@ -27,7 +27,7 @@ PREMISES:
|
|
|
27
27
|
|
|
28
28
|
Use `ask_user_question` to confirm each premise. **One question at a time** — asking multiple at once is bewildering. If the user disagrees, revise understanding and loop back.
|
|
29
29
|
|
|
30
|
-
## Interview discipline
|
|
30
|
+
## Interview discipline
|
|
31
31
|
|
|
32
32
|
- **Distinguish facts from decisions.** If a *fact* can be found by exploring the environment (filesystem, existing code, tools, docs), look it up rather than asking. The *decisions* are the user's — put each one to them and wait.
|
|
33
33
|
- **Walk the decision tree one branch at a time**, resolving dependencies between decisions one by one. For each question, provide your recommended answer so the user can confirm or correct efficiently.
|