pi-ui-extend 0.1.9 → 0.1.13
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/README.md +23 -2
- package/dist/app/app.d.ts +4 -0
- package/dist/app/app.js +76 -7
- package/dist/app/cli/install.d.ts +16 -0
- package/dist/app/cli/install.js +34 -7
- package/dist/app/cli/startup-info.js +5 -2
- package/dist/app/cli/update.d.ts +7 -0
- package/dist/app/cli/update.js +11 -3
- package/dist/app/commands/command-controller.js +4 -0
- package/dist/app/commands/command-host.d.ts +4 -0
- package/dist/app/commands/command-model-actions.d.ts +5 -0
- package/dist/app/commands/command-model-actions.js +104 -0
- package/dist/app/commands/command-navigation-actions.d.ts +6 -1
- package/dist/app/commands/command-navigation-actions.js +37 -14
- package/dist/app/commands/command-registry.d.ts +4 -0
- package/dist/app/commands/command-registry.js +32 -0
- package/dist/app/commands/command-session-actions.d.ts +1 -0
- package/dist/app/commands/command-session-actions.js +15 -5
- package/dist/app/commands/shell-command.d.ts +7 -0
- package/dist/app/commands/shell-command.js +12 -4
- package/dist/app/commands/shell-controller.d.ts +1 -0
- package/dist/app/commands/shell-controller.js +1 -1
- package/dist/app/constants.d.ts +1 -1
- package/dist/app/constants.js +1 -1
- package/dist/app/icons.d.ts +1 -0
- package/dist/app/icons.js +3 -1
- package/dist/app/input/autocomplete-controller.d.ts +52 -0
- package/dist/app/input/autocomplete-controller.js +352 -0
- package/dist/app/input/input-action-controller.d.ts +1 -0
- package/dist/app/input/input-action-controller.js +21 -0
- package/dist/app/input/input-controller.d.ts +1 -0
- package/dist/app/input/input-controller.js +2 -0
- package/dist/app/input/input-paste-handler.d.ts +1 -0
- package/dist/app/input/input-paste-handler.js +22 -18
- package/dist/app/input/prompt-enhancer-controller.d.ts +7 -1
- package/dist/app/input/prompt-enhancer-controller.js +12 -3
- package/dist/app/input/voice-controller.d.ts +51 -1
- package/dist/app/input/voice-controller.js +42 -19
- package/dist/app/model/model-usage-status.d.ts +9 -0
- package/dist/app/model/model-usage-status.js +124 -34
- package/dist/app/popup/popup-action-controller.js +1 -1
- package/dist/app/process.d.ts +17 -0
- package/dist/app/process.js +68 -0
- package/dist/app/rendering/conversation-entry-renderer.js +8 -6
- package/dist/app/rendering/conversation-tool-renderer.js +3 -2
- package/dist/app/rendering/editor-layout-renderer.d.ts +1 -0
- package/dist/app/rendering/editor-layout-renderer.js +11 -1
- package/dist/app/rendering/message-content.js +65 -7
- package/dist/app/rendering/render-controller.js +6 -1
- package/dist/app/rendering/render-text.d.ts +3 -0
- package/dist/app/rendering/render-text.js +51 -3
- package/dist/app/rendering/status-line-renderer.d.ts +5 -1
- package/dist/app/rendering/status-line-renderer.js +61 -25
- package/dist/app/rendering/toast-renderer.js +10 -13
- package/dist/app/rendering/tool-block-renderer.d.ts +1 -0
- package/dist/app/rendering/tool-block-renderer.js +16 -33
- package/dist/app/runtime.d.ts +6 -1
- package/dist/app/runtime.js +35 -2
- package/dist/app/screen/clipboard.d.ts +11 -2
- package/dist/app/screen/clipboard.js +29 -21
- package/dist/app/screen/file-link-opener.d.ts +8 -0
- package/dist/app/screen/file-link-opener.js +11 -3
- package/dist/app/screen/file-links.js +3 -3
- package/dist/app/screen/image-opener.d.ts +12 -0
- package/dist/app/screen/image-opener.js +13 -5
- package/dist/app/screen/mouse-controller.d.ts +5 -2
- package/dist/app/screen/mouse-controller.js +16 -1
- package/dist/app/screen/screen-styler.d.ts +4 -1
- package/dist/app/screen/screen-styler.js +3 -2
- package/dist/app/screen/status-controller.d.ts +3 -0
- package/dist/app/screen/status-controller.js +23 -8
- package/dist/app/session/queued-message-controller.d.ts +7 -1
- package/dist/app/session/queued-message-controller.js +36 -21
- package/dist/app/session/resume-session-loader.d.ts +15 -0
- package/dist/app/session/resume-session-loader.js +204 -0
- package/dist/app/session/session-event-controller.d.ts +5 -1
- package/dist/app/session/session-event-controller.js +72 -5
- package/dist/app/session/session-history.js +4 -3
- package/dist/app/session/session-lifecycle-controller.d.ts +5 -0
- package/dist/app/session/session-lifecycle-controller.js +9 -1
- package/dist/app/session/tabs-controller.d.ts +10 -1
- package/dist/app/session/tabs-controller.js +101 -5
- package/dist/app/terminal/nerd-font-controller.d.ts +16 -0
- package/dist/app/terminal/nerd-font-controller.js +30 -23
- package/dist/app/terminal/terminal-controller.d.ts +1 -0
- package/dist/app/terminal/terminal-controller.js +1 -0
- package/dist/app/types.d.ts +14 -0
- package/dist/app/workspace/workspace-actions-controller.d.ts +1 -1
- package/dist/app/workspace/workspace-actions-controller.js +3 -3
- package/dist/app/workspace/workspace-undo.d.ts +1 -1
- package/dist/app/workspace/workspace-undo.js +22 -20
- package/dist/config.d.ts +27 -0
- package/dist/config.js +174 -1
- package/dist/default-pix-config.js +39 -353
- package/dist/input-editor.d.ts +7 -1
- package/dist/input-editor.js +47 -6
- package/dist/markdown-format.d.ts +1 -0
- package/dist/markdown-format.js +26 -1
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.js +5 -0
- package/dist/schemas/pi-tools-suite-schema.d.ts +177 -0
- package/dist/schemas/pi-tools-suite-schema.js +218 -0
- package/dist/schemas/pix-schema.d.ts +65 -0
- package/dist/schemas/pix-schema.js +91 -0
- package/dist/terminal-width.js +73 -56
- package/external/pi-tools-suite/src/async-subagents/async-subagents.sample.jsonc +3 -0
- package/external/pi-tools-suite/src/dcp/compression-blocks.ts +1 -0
- package/external/pi-tools-suite/src/dcp/prompts.ts +1 -0
- package/external/pi-tools-suite/src/default-pi-tools-suite-config.ts +46 -195
- package/external/pi-tools-suite/src/lib/lsp.ts +2 -1
- package/external/pi-tools-suite/src/lsp/_shared/output.ts +8 -7
- package/external/pi-tools-suite/src/lsp/manager.ts +4 -4
- package/external/pi-tools-suite/src/repo-discovery/index.ts +49 -2
- package/external/pi-tools-suite/src/todo/index.ts +4 -2
- package/external/pi-tools-suite/src/todo/state/selectors.ts +4 -0
- package/external/pi-tools-suite/src/todo/todo.ts +2 -6
- package/external/pi-tools-suite/src/todo/tool/response-envelope.ts +9 -1
- package/external/pi-tools-suite/src/tool-descriptions.ts +1 -1
- package/package.json +12 -3
- package/schemas/pi-tools-suite.json +881 -0
- package/schemas/pix.json +298 -0
package/schemas/pix.json
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"$schema": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"description": "JSON Schema URL used by editors for validation and autocomplete."
|
|
7
|
+
},
|
|
8
|
+
"defaultModel": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"modelRef": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Provider/model identifier, e.g. 'openai-codex/gpt-5.4'."
|
|
14
|
+
},
|
|
15
|
+
"thinking": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "off"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "string",
|
|
23
|
+
"const": "minimal"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "low"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "string",
|
|
31
|
+
"const": "medium"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "string",
|
|
35
|
+
"const": "high"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "string",
|
|
39
|
+
"const": "xhigh"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"description": "Model thinking budget level."
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"description": "Default model selection for new sessions."
|
|
46
|
+
},
|
|
47
|
+
"toolRenderer": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"default": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"previewLines": {
|
|
54
|
+
"type": "number",
|
|
55
|
+
"description": "Lines to show in the tool preview.",
|
|
56
|
+
"minimum": 0
|
|
57
|
+
},
|
|
58
|
+
"direction": {
|
|
59
|
+
"anyOf": [
|
|
60
|
+
{
|
|
61
|
+
"type": "string",
|
|
62
|
+
"const": "head"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "string",
|
|
66
|
+
"const": "tail"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"description": "Show preview from head or tail of output."
|
|
70
|
+
},
|
|
71
|
+
"color": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "Theme color name (e.g. 'warning', 'success', 'muted') or hex color."
|
|
74
|
+
},
|
|
75
|
+
"defaultExpanded": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "Whether the tool output is expanded by default."
|
|
78
|
+
},
|
|
79
|
+
"compactHidden": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"description": "Hide tool output but keep a compact one-line placeholder."
|
|
82
|
+
},
|
|
83
|
+
"hidden": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"description": "Completely hide the tool output."
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"description": "Rendering rule for a specific tool or glob pattern."
|
|
89
|
+
},
|
|
90
|
+
"tools": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"patternProperties": {
|
|
93
|
+
"^.*$": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"previewLines": {
|
|
97
|
+
"type": "number",
|
|
98
|
+
"description": "Lines to show in the tool preview.",
|
|
99
|
+
"minimum": 0
|
|
100
|
+
},
|
|
101
|
+
"direction": {
|
|
102
|
+
"anyOf": [
|
|
103
|
+
{
|
|
104
|
+
"type": "string",
|
|
105
|
+
"const": "head"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "string",
|
|
109
|
+
"const": "tail"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"description": "Show preview from head or tail of output."
|
|
113
|
+
},
|
|
114
|
+
"color": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"description": "Theme color name (e.g. 'warning', 'success', 'muted') or hex color."
|
|
117
|
+
},
|
|
118
|
+
"defaultExpanded": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"description": "Whether the tool output is expanded by default."
|
|
121
|
+
},
|
|
122
|
+
"compactHidden": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"description": "Hide tool output but keep a compact one-line placeholder."
|
|
125
|
+
},
|
|
126
|
+
"hidden": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"description": "Completely hide the tool output."
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"description": "Rendering rule for a specific tool or glob pattern."
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"description": "Tool-specific rendering rules keyed by tool name or glob pattern, e.g. 'bash' or 'repo_*'."
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"description": "Per-tool rendering configuration. Keys in 'tools' support glob patterns like 'repo_*'."
|
|
138
|
+
},
|
|
139
|
+
"outputFilters": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"patterns": {
|
|
143
|
+
"type": "array",
|
|
144
|
+
"items": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"description": "Glob or /regex/ patterns to strip from tool output."
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"description": "Output filter patterns."
|
|
151
|
+
},
|
|
152
|
+
"promptEnhancer": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"properties": {
|
|
155
|
+
"modelRef": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "Model used for prompt enhancement."
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"description": "Prompt enhancer configuration."
|
|
161
|
+
},
|
|
162
|
+
"autocomplete": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"modelRef": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"description": "Model for inline autocomplete. Empty string disables LLM autocomplete."
|
|
168
|
+
},
|
|
169
|
+
"debounceMs": {
|
|
170
|
+
"type": "number",
|
|
171
|
+
"description": "Delay after typing before requesting completion.",
|
|
172
|
+
"minimum": 100,
|
|
173
|
+
"maximum": 2000
|
|
174
|
+
},
|
|
175
|
+
"timeoutMs": {
|
|
176
|
+
"type": "number",
|
|
177
|
+
"description": "Hard timeout for completion request.",
|
|
178
|
+
"minimum": 250,
|
|
179
|
+
"maximum": 10000
|
|
180
|
+
},
|
|
181
|
+
"maxTokens": {
|
|
182
|
+
"type": "number",
|
|
183
|
+
"description": "Maximum output tokens.",
|
|
184
|
+
"minimum": 8,
|
|
185
|
+
"maximum": 256
|
|
186
|
+
},
|
|
187
|
+
"maxPromptTokens": {
|
|
188
|
+
"type": "number",
|
|
189
|
+
"description": "Maximum input prompt tokens.",
|
|
190
|
+
"minimum": 256,
|
|
191
|
+
"maximum": 16000
|
|
192
|
+
},
|
|
193
|
+
"includeRecentMessages": {
|
|
194
|
+
"type": "number",
|
|
195
|
+
"description": "Recent messages to include as context.",
|
|
196
|
+
"minimum": 0,
|
|
197
|
+
"maximum": 20
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"description": "Inline autocomplete configuration."
|
|
201
|
+
},
|
|
202
|
+
"sessionTitle": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"properties": {
|
|
205
|
+
"modelRef": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"description": "Model used to generate compact session titles."
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"description": "Automatic session title generation configuration."
|
|
211
|
+
},
|
|
212
|
+
"modelColors": {
|
|
213
|
+
"anyOf": [
|
|
214
|
+
{
|
|
215
|
+
"type": "object",
|
|
216
|
+
"patternProperties": {
|
|
217
|
+
"^.*$": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "Theme color name for matching model references, e.g. 'success', 'warning', or 'modelOpenAI'."
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"description": "Model reference glob pattern → theme color name mapping, e.g. 'zai/*': 'success'."
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"rules": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"patternProperties": {
|
|
230
|
+
"^.*$": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"description": "Theme color name for matching model references, e.g. 'success', 'warning', or 'modelOpenAI'."
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"description": "Model reference glob pattern → theme color name mapping, e.g. 'zai/*': 'success'."
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"description": "Alternative nested form for model color rules."
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"description": "Model color rules. Keys are glob patterns matching model refs; values are pix theme color names."
|
|
242
|
+
},
|
|
243
|
+
"iconTheme": {
|
|
244
|
+
"type": "object",
|
|
245
|
+
"properties": {
|
|
246
|
+
"name": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"description": "Icon theme name, e.g. 'nerdFont' or 'fallback'."
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"description": "Icon theme configuration."
|
|
252
|
+
},
|
|
253
|
+
"dictation": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"properties": {
|
|
256
|
+
"language": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"description": "Selected language code, e.g. 'en' or 'ru'."
|
|
259
|
+
},
|
|
260
|
+
"languages": {
|
|
261
|
+
"type": "object",
|
|
262
|
+
"patternProperties": {
|
|
263
|
+
"^.*$": {
|
|
264
|
+
"type": "object",
|
|
265
|
+
"required": [
|
|
266
|
+
"dirName",
|
|
267
|
+
"url",
|
|
268
|
+
"label"
|
|
269
|
+
],
|
|
270
|
+
"properties": {
|
|
271
|
+
"dirName": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "Vosk model directory name."
|
|
274
|
+
},
|
|
275
|
+
"url": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"description": "Download URL for the Vosk model zip."
|
|
278
|
+
},
|
|
279
|
+
"label": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "Human-readable language label."
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"description": "Vosk voice dictation model definition."
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"description": "Available language models keyed by language code."
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"description": "Voice dictation (Vosk) configuration."
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"$id": "https://unpkg.com/pi-ui-extend/schemas/pix.json",
|
|
294
|
+
"$schema": "https://json-schema.org/draft-07/schema#",
|
|
295
|
+
"title": "Pix Configuration",
|
|
296
|
+
"description": "Configuration for the pix terminal renderer (~/.config/pi/pix.jsonc).",
|
|
297
|
+
"additionalProperties": true
|
|
298
|
+
}
|