@bismawy/pi-arnative 0.18.3 → 0.19.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/extensions/index.ts +2 -0
- package/lib/ask-user.ts +596 -0
- package/lib/features/arnative.ts +246 -4
- package/lib/features/ask-user.ts +1036 -0
- package/lib/preset-store.ts +7 -1
- package/package.json +3 -2
package/lib/preset-store.ts
CHANGED
|
@@ -32,6 +32,12 @@ export const PAYLOAD_LIMIT_KEY = "payloadLimit";
|
|
|
32
32
|
export const EDIT_DIFF_KEY = "editDiff";
|
|
33
33
|
/** Tool transcript layout: `"Grouped"` (ADE phase progress box) or `"Classic"` (per-tool boxes). */
|
|
34
34
|
export const TOOL_LAYOUT_KEY = "toolLayout";
|
|
35
|
+
/** Smart `ask_user_question` custom model (`""` = active session model, or `"provider/modelId"`). */
|
|
36
|
+
export const ASK_MODEL_KEY = "askModel";
|
|
37
|
+
/** Smart `ask_user_question` delegation mode: `"Hybrid"` (default), `"Refine"`, or `"Off"`. */
|
|
38
|
+
export const ASK_MODE_KEY = "askMode";
|
|
39
|
+
/** Smart `ask_user_question` reasoning level: `"off"`, `"low"` (default), `"medium"`, `"high"`. */
|
|
40
|
+
export const ASK_THINKING_KEY = "askThinking";
|
|
35
41
|
|
|
36
42
|
// Resolved per call, not at import: the self-check points getAgentDir() at a fixture dir.
|
|
37
43
|
// Everything pi-arnative writes lives in one folder (agent dir/arnative); the config moved
|
|
@@ -104,7 +110,7 @@ export function loadNumber(key: string, range: { min: number; max: number }): nu
|
|
|
104
110
|
/** Reading order of `config.json`: the presets in the order the settings menu shows them,
|
|
105
111
|
* then `layoutVersion`, then anything else (a key from another module or a newer version).
|
|
106
112
|
* Times a user edits the file by hand or reads it back. */
|
|
107
|
-
const KEY_ORDER = ["headerPreset", "footerPreset", "footerCost", "chatboxPreset", "chatboxPrompt", "chatboxDialog", "budgetDay", "budgetMonth", "budgetEnforce", "spinnerPreset", "spinnerGradient", "layoutVersion", "autoCompact", "payloadLimit", "modelHeal", "renderCache", "editDiff", "toolLayout"];
|
|
113
|
+
const KEY_ORDER = ["headerPreset", "footerPreset", "footerCost", "chatboxPreset", "chatboxPrompt", "chatboxDialog", "budgetDay", "budgetMonth", "budgetEnforce", "spinnerPreset", "spinnerGradient", "layoutVersion", "autoCompact", "payloadLimit", "modelHeal", "renderCache", "editDiff", "toolLayout", "askModel", "askMode", "askThinking"];
|
|
108
114
|
|
|
109
115
|
/** The record in {@link KEY_ORDER}; unknown keys keep the order they were written in. */
|
|
110
116
|
function ordered(record: Record<string, unknown>): Record<string, unknown> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bismawy/pi-arnative",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Refined aesthetics. Cohesive tools. Built for Pi. Warm themes, rounded tool boxes, tabbed header, compact footer and a /usage dashboard.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@earendil-works/pi-ai": "*",
|
|
38
38
|
"@earendil-works/pi-coding-agent": "*",
|
|
39
|
-
"@earendil-works/pi-tui": "*"
|
|
39
|
+
"@earendil-works/pi-tui": "*",
|
|
40
|
+
"typebox": "*"
|
|
40
41
|
},
|
|
41
42
|
"scripts": {
|
|
42
43
|
"dev": "pi --extension ./extensions/index.ts",
|