pi-ui-extend 1.0.35 → 1.0.37
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 +21 -0
- package/dist/app/rendering/conversation-entry-renderer.js +25 -3
- package/dist/markdown-format.d.ts +8 -0
- package/dist/markdown-format.js +262 -6
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +4 -0
- package/external/pi-tools-suite/README.md +14 -1
- package/external/pi-tools-suite/docs/session-recovery.md +84 -0
- package/external/pi-tools-suite/src/index.ts +1 -0
- package/external/pi-tools-suite/src/session-recovery/index.ts +674 -0
- package/external/pi-tools-suite/src/tool-descriptions.ts +40 -0
- package/package.json +5 -2
- package/skills/skill-creator/scripts/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/aggregate_benchmark.cpython-314.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/generate_report.cpython-314.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/improve_description.cpython-314.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/package_skill.cpython-314.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/run_eval.cpython-314.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/run_loop.cpython-314.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/utils.cpython-314.pyc +0 -0
|
@@ -250,6 +250,46 @@ export const SESSION_NAME_TOOL_DESCRIPTION: ToolDescription = {
|
|
|
250
250
|
],
|
|
251
251
|
};
|
|
252
252
|
|
|
253
|
+
export const SESSION_RECOVERY_TOOL_DESCRIPTIONS = {
|
|
254
|
+
overview: {
|
|
255
|
+
name: "session_overview",
|
|
256
|
+
label: "Session Overview",
|
|
257
|
+
description: "Map raw persisted session history into stable, bounded sections. Defaults to the active branch and can include abandoned branches without applying context compaction.",
|
|
258
|
+
promptSnippet: "Map raw session history into stable sections before drilling into context lost to compaction.",
|
|
259
|
+
promptGuidelines: [
|
|
260
|
+
"Use session_overview first when task context was lost or compressed and no reliable search phrase is known; then inspect relevant section IDs.",
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
readSection: {
|
|
264
|
+
name: "session_read_section",
|
|
265
|
+
label: "Session Read Section",
|
|
266
|
+
description: "Read a bounded raw-history section returned by session_overview or session_search, including messages, tool calls/results, and compaction summaries.",
|
|
267
|
+
promptSnippet: "Read one stable raw-session section by ID after session_overview or session_search.",
|
|
268
|
+
promptGuidelines: [
|
|
269
|
+
"Pass a section ID produced with the same active/all scope; keep entry and body limits small unless more detail is necessary.",
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
search: {
|
|
273
|
+
name: "session_search",
|
|
274
|
+
label: "Session Search",
|
|
275
|
+
description: "Search raw session messages, summaries, tool results, and serialized tool arguments with a bounded literal substring query.",
|
|
276
|
+
promptSnippet: "Search raw session history lexically when a concrete phrase, path, symbol, tool, or error is known.",
|
|
277
|
+
promptGuidelines: [
|
|
278
|
+
"Use session_search after overview when a concrete query is known; it is lexical rather than semantic, and scope defaults to the active branch.",
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
recoveryContext: {
|
|
282
|
+
name: "session_recovery_context",
|
|
283
|
+
label: "Session Recovery Context (after overview)",
|
|
284
|
+
description: "Post-overview convenience tool for summarizing deterministic task signals: user requests, file activity, recent errors, pending tool calls, last action, and compaction references. When the task and search terms are unknown, call session_overview first instead of this tool.",
|
|
285
|
+
promptSnippet: "Use only after session_overview has mapped the raw history; verify details through section reads or search.",
|
|
286
|
+
promptGuidelines: [
|
|
287
|
+
"Do not use session_recovery_context as the first tool when the task and useful search terms are unknown; start with session_overview.",
|
|
288
|
+
"Use it as a convenience after the overview, but treat recentErrors as historical evidence and verify ambiguous state with session_read_section.",
|
|
289
|
+
],
|
|
290
|
+
},
|
|
291
|
+
} satisfies Record<string, ToolDescription>;
|
|
292
|
+
|
|
253
293
|
export const WEB_SEARCH_TOOL_DESCRIPTIONS = {
|
|
254
294
|
webSearch: {
|
|
255
295
|
name: "web_search",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-ui-extend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
4
4
|
"description": "Pix: a workspace-first terminal UI for Pi with tabs, readable tool activity, voice input, and bundled agent tools.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -41,7 +41,9 @@
|
|
|
41
41
|
"external/pi-tools-suite/src",
|
|
42
42
|
"external/pi-tools-suite/docs",
|
|
43
43
|
"external/pi-tools-suite/licenses",
|
|
44
|
-
"README.md"
|
|
44
|
+
"README.md",
|
|
45
|
+
"!**/__pycache__",
|
|
46
|
+
"!**/*.pyc"
|
|
45
47
|
],
|
|
46
48
|
"scripts": {
|
|
47
49
|
"predev": "npm run link:pix --silent",
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
"@earendil-works/pi-coding-agent": "0.84.4",
|
|
81
83
|
"@earendil-works/pi-tui": "0.84.4",
|
|
82
84
|
"@mariozechner/clipboard": "^0.3.9",
|
|
85
|
+
"grok-mermaid": "0.2.2",
|
|
83
86
|
"jsonc-parser": "3.3.1",
|
|
84
87
|
"typebox": "1.1.38",
|
|
85
88
|
"vscode-jsonrpc": "^8.2.1",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|