pi-export-notool 0.1.0 → 0.1.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # pi-export-notool
2
2
 
3
- A [Pi](https://pi.dev) extension that exports the current session to HTML while hiding tool-call and tool-output blocks with injected CSS.
3
+ A [Pi](https://pi.dev) extension that exports the current session to HTML while hiding tool-call, tool-output, and thinking blocks with injected CSS.
4
4
 
5
5
  ## Use
6
6
 
@@ -10,9 +10,9 @@ Start Pi with this extension, then run:
10
10
  /export-notool [output.html]
11
11
  ```
12
12
 
13
- Pi's built-in `/export` remains unchanged. `/export-notool` creates the no-tool HTML variant.
13
+ Pi's built-in `/export` remains unchanged. `/export-notool` creates an HTML variant without tool or thinking blocks.
14
14
 
15
- If no path is supplied, it writes `pi-no-tools-<session-id>.html` in the current working directory. The output is created with Pi's built-in HTML exporter, then gets an idempotent stylesheet that hides `.tool-execution` blocks. The sidebar remains unchanged, so Pi's built-in **No-tools** toggle continues to work. Session data remains embedded in the file; this is display-only hiding.
15
+ If no path is supplied, it writes `pi-no-tools-<session-id>.html` in the current working directory. The output is created with Pi's built-in HTML exporter, then gets an idempotent stylesheet that hides `.tool-execution` and `.thinking-block` elements. The sidebar remains unchanged, so Pi's built-in **No-tools** toggle continues to work. Session data remains embedded in the file; this is display-only hiding.
16
16
 
17
17
  ## Development
18
18
 
@@ -2,8 +2,11 @@ const START_MARKER = "/* pi-export-notool: start */";
2
2
  const END_MARKER = "/* pi-export-notool: end */";
3
3
 
4
4
  export const HIDE_TOOL_BLOCKS_CSS = `${START_MARKER}
5
- /* Keep the transcript readable while retaining Pi's original session data. */
6
- .tool-execution {
5
+ /* Hide internal blocks and their otherwise-empty timestamp rows. */
6
+ .tool-execution,
7
+ .thinking-block,
8
+ .assistant-message:not(:has(.assistant-text)):has(.thinking-block),
9
+ .assistant-message:not(:has(.assistant-text)):has(.tool-execution) {
7
10
  display: none !important;
8
11
  }
9
12
  ${END_MARKER}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-export-notool",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Export Pi sessions to HTML without visible tool-call blocks",
5
5
  "type": "module",
6
6
  "keywords": [