pi-image-tools 1.0.9 → 1.0.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [1.0.10] - 2026-04-22
11
+
12
+ ### Added
13
+ - Added preview width resolution from Pi terminal settings so inline and recent-image previews can honor `terminal.imageWidthCells`.
14
+
15
+ ### Changed
16
+ - Updated recent image selection previews to resolve terminal settings from the active session working directory before rendering.
17
+ - Windows Sixel fallback now activates only when native terminal image support is unavailable, with environment toggles to force or disable Sixel rendering.
18
+ - Clarified README global install and config paths when `PI_CODING_AGENT_DIR` is set.
19
+ - Updated `@mariozechner/pi-coding-agent` and `@mariozechner/pi-tui` peer dependencies to ^0.68.1.
20
+
21
+ ### Fixed
22
+ - Ensured generated Sixel output is emitted as a complete DCS sequence and preserved inline image protocol rows during preview width fitting.
23
+
3
24
  ## [1.0.9] - 2026-04-01
4
25
 
5
26
  ### Changed
@@ -53,11 +74,11 @@
53
74
  - Rewrote README.md with professional documentation standards
54
75
  - Added comprehensive feature documentation, configuration reference, and usage examples
55
76
 
56
- ## 1.0.1
77
+ ## [1.0.1] - 2026-03-04
57
78
 
58
79
  - Included `asset/` in the npm package whitelist so README image assets ship in the tarball.
59
80
 
60
- ## 1.0.0
81
+ ## [1.0.0] - 2026-03-02
61
82
 
62
83
  - Standardized repository layout to `src/` + root shim entrypoint.
63
84
  - Added TypeScript/Bundler project config, package metadata, and publish whitelist.
package/README.md CHANGED
@@ -36,7 +36,7 @@ Place this folder in one of these locations:
36
36
 
37
37
  | Scope | Path |
38
38
  |-------|------|
39
- | Global | `~/.pi/agent/extensions/pi-image-tools` |
39
+ | Global default | `~/.pi/agent/extensions/pi-image-tools` (respects `PI_CODING_AGENT_DIR`) |
40
40
  | Project | `.pi/extensions/pi-image-tools` |
41
41
 
42
42
  Pi auto-discovers extensions in those paths.
@@ -116,7 +116,8 @@ $env:PI_IMAGE_TOOLS_RECENT_DIRS = "C:\Users\me\Pictures\Screenshots;D:\Shares\Sc
116
116
  A config file can be placed at:
117
117
 
118
118
  ```text
119
- ~/.pi/agent/extensions/pi-image-tools/config.json
119
+ Default global path: ~/.pi/agent/extensions/pi-image-tools/config.json
120
+ Actual global path: $PI_CODING_AGENT_DIR/extensions/pi-image-tools/config.json when PI_CODING_AGENT_DIR is set
120
121
  ```
121
122
 
122
123
  Starter template:
package/package.json CHANGED
@@ -1,67 +1,67 @@
1
- {
2
- "name": "pi-image-tools",
3
- "version": "1.0.9",
4
- "description": "Image attachment and rendering extension for Pi TUI",
5
- "type": "module",
6
- "main": "./index.ts",
7
- "exports": {
8
- ".": "./index.ts"
9
- },
10
- "files": [
11
- "index.ts",
12
- "src",
13
- "config/config.example.json",
14
- "asset",
15
- "README.md",
16
- "CHANGELOG.md",
17
- "LICENSE"
18
- ],
19
- "scripts": {
20
- "build": "npx --yes -p typescript@5.7.3 tsc -p tsconfig.json --noCheck",
21
- "lint": "npm run build",
22
- "test": "node --test",
23
- "check": "npm run lint && npm run test"
24
- },
25
- "keywords": [
26
- "pi-package",
27
- "pi",
28
- "pi-extension",
29
- "pi-coding-agent",
30
- "pi-tui",
31
- "coding-agent",
32
- "image",
33
- "image-attachment",
34
- "image-preview",
35
- "clipboard",
36
- "preview",
37
- "windows"
38
- ],
39
- "author": "MasuRii",
40
- "license": "MIT",
41
- "repository": {
42
- "type": "git",
43
- "url": "git+https://github.com/MasuRii/pi-image-tools.git"
44
- },
45
- "homepage": "https://github.com/MasuRii/pi-image-tools#readme",
46
- "bugs": {
47
- "url": "https://github.com/MasuRii/pi-image-tools/issues"
48
- },
49
- "engines": {
50
- "node": ">=20"
51
- },
52
- "publishConfig": {
53
- "access": "public"
54
- },
55
- "pi": {
56
- "extensions": [
57
- "./index.ts"
58
- ]
59
- },
60
- "peerDependencies": {
61
- "@mariozechner/pi-coding-agent": "^0.64.0",
62
- "@mariozechner/pi-tui": "^0.64.0"
63
- },
64
- "optionalDependencies": {
65
- "@mariozechner/clipboard": "^0.3.2"
66
- }
67
- }
1
+ {
2
+ "name": "pi-image-tools",
3
+ "version": "1.0.10",
4
+ "description": "Image attachment and rendering extension for Pi TUI",
5
+ "type": "module",
6
+ "main": "./index.ts",
7
+ "exports": {
8
+ ".": "./index.ts"
9
+ },
10
+ "files": [
11
+ "index.ts",
12
+ "src",
13
+ "config/config.example.json",
14
+ "asset",
15
+ "README.md",
16
+ "CHANGELOG.md",
17
+ "LICENSE"
18
+ ],
19
+ "scripts": {
20
+ "build": "npx --yes -p typescript@5.7.3 tsc -p tsconfig.json --noCheck",
21
+ "lint": "npm run build",
22
+ "test": "node --test",
23
+ "check": "npm run lint && npm run test"
24
+ },
25
+ "keywords": [
26
+ "pi-package",
27
+ "pi",
28
+ "pi-extension",
29
+ "pi-coding-agent",
30
+ "pi-tui",
31
+ "coding-agent",
32
+ "image",
33
+ "image-attachment",
34
+ "image-preview",
35
+ "clipboard",
36
+ "preview",
37
+ "windows"
38
+ ],
39
+ "author": "MasuRii",
40
+ "license": "MIT",
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/MasuRii/pi-image-tools.git"
44
+ },
45
+ "homepage": "https://github.com/MasuRii/pi-image-tools#readme",
46
+ "bugs": {
47
+ "url": "https://github.com/MasuRii/pi-image-tools/issues"
48
+ },
49
+ "engines": {
50
+ "node": ">=20"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "pi": {
56
+ "extensions": [
57
+ "./index.ts"
58
+ ]
59
+ },
60
+ "peerDependencies": {
61
+ "@mariozechner/pi-coding-agent": "^0.68.1",
62
+ "@mariozechner/pi-tui": "^0.68.1"
63
+ },
64
+ "optionalDependencies": {
65
+ "@mariozechner/clipboard": "^0.3.2"
66
+ }
67
+ }