pi-compact-tools 0.10.0 → 0.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-compact-tools",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Compact, expandable UI for pi's built-in and custom tools, bundled with a polished GitHub Dark theme.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  "themes": [
44
44
  "./themes/github-dark-pro.json"
45
45
  ],
46
- "image": "https://raw.githubusercontent.com/nedleeds/pi-compact-tools/main/assets/compact-workflow.gif"
46
+ "image": "https://raw.githubusercontent.com/nedleeds/pi-compact-tools/main/assets/overview.gif"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@earendil-works/pi-coding-agent": ">=0.85.1",
@@ -1,4 +1,11 @@
1
1
  {
2
+ "0.11.0": [
3
+ "Claude style: set \"style\": \"claude\" to see tool calls the way Claude Code shows them",
4
+ "Reads, searches, and listings fold into one line; Bash, Update, and Write keep their own rows",
5
+ "\"style\": \"off\" leaves Pi's own tool rows; silent mode stays \"mode\": \"silent\"",
6
+ "Edit diffs no longer show a gap marker twice"
7
+ ],
8
+ "0.10.1": [],
2
9
  "0.10.0": [
3
10
  "Silent mode shows only prompts and final answers (Ctrl+' or /silent)",
4
11
  "Tools from other packages get the same compact rows as the built-ins",
@@ -8,8 +8,14 @@
8
8
  "$schema": {
9
9
  "type": "string"
10
10
  },
11
+ "style": {
12
+ "description": "How tool rows are drawn. compact draws each call as a compact, expandable row. claude draws them the way Claude Code does: runs of reads, searches, listings, and commands that only look around fold into one summary line, while other commands, edits, writes, and custom tools keep rows of their own with Bash(…), Update(…), and similar titles; click a group or press Ctrl+O to open it. off leaves every tool with Pi's own renderer.",
13
+ "type": "string",
14
+ "enum": ["compact", "claude", "off"],
15
+ "default": "compact"
16
+ },
11
17
  "mode": {
12
- "description": "normal shows every tool row. silent leaves only your prompts and the final answers: tool rows, in-between assistant turns, thinking, error and abort notices, extension notices, and Pi's own status lines are hidden while a light animates beneath the prompt. Ctrl+' or /silent toggles it for the current session.",
18
+ "description": "normal shows every tool row. silent leaves only your prompts and the final answers: tool rows, in-between assistant turns, thinking, error and abort notices, extension notices, and Pi's own status lines are hidden while a light animates beneath the prompt. Ctrl+' or /silent toggles it for the current session, in either style.",
13
19
  "type": "string",
14
20
  "enum": ["normal", "silent"],
15
21
  "default": "normal"
@@ -73,9 +73,10 @@ if (schema.properties?.previewLines?.default !== 10) {
73
73
 
74
74
  const manifest = JSON.parse(await readFile(new URL("../package.json", import.meta.url), "utf8"));
75
75
  const releaseNotes = JSON.parse(await readFile(new URL("../release-notes.json", import.meta.url), "utf8"));
76
- if (!Array.isArray(releaseNotes[manifest.version]) || releaseNotes[manifest.version].length === 0 ||
76
+ // Every published version needs an entry. An empty list is a quiet release that shows no notice.
77
+ if (!Array.isArray(releaseNotes[manifest.version]) ||
77
78
  releaseNotes[manifest.version].some((note) => typeof note !== "string" || !note.trim())) {
78
- throw new Error(`release-notes.json must describe v${manifest.version} before publishing`);
79
+ throw new Error(`release-notes.json must have an entry for v${manifest.version} before publishing; use [] for no notice`);
79
80
  }
80
81
 
81
82
  console.log("Resource checks passed");