pi-model-profiles 0.3.0 → 0.3.2

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,41 +1,53 @@
1
- # Changelog
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
- No unreleased changes.
11
-
12
- ## [0.3.0] - 2026-04-30
13
-
14
- ### Changed
15
- - Refined the model profiles modal layout with wider sizing, a single bordered grid, and clearer model table columns.
16
- - Updated the public README screenshot and usage details.
17
- - Bumped Pi peer dependency ranges to `^0.70.6`.
18
-
19
- ## [0.2.0] - 2026-04-26
20
-
21
- ### Added
22
- - Phase 6: Git & publishing preparation.
23
- - NPM package metadata, README, CHANGELOG, LICENSE, and package ignore rules.
24
- - Profile update, removal, persisted sorting, configuration, and file-gated debug logging.
25
-
26
- ### Fixed
27
- - Confirmation prompts now accept typed input before update or removal actions run.
28
- - Sort menu keyboard handling now works consistently and closes without exiting the modal.
29
- - Profile update and removal command handlers now avoid duplicate scans and duplicate removal events.
30
-
31
- ## [0.1.0] - 2026-04-25
32
-
33
- ### Added
34
- - Initial extension structure
35
- - Core profile management functionality
36
- - Frontmatter parser implementation
37
- - Profile store with atomic writes
38
- - Import service for external profiles
39
- - Agent writer for profile application
40
- - Type definitions and error handling
41
- - Test suite for core functionality
1
+ # Changelog
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
+ ## [0.3.2] - 2026-05-26
11
+
12
+ ### Changed
13
+ - Widened peer dependency ranges to `^0.74.0 || ^0.75.0`.
14
+
15
+ ## [0.3.1] - 2026-05-22
16
+
17
+ ### Changed
18
+ - Reworked debug logging to redact sensitive values and use asynchronous buffered file writes with safe shutdown.
19
+ - Updated Pi peer dependencies and runtime imports to the `@earendil-works` scope.
20
+
21
+ ### Fixed
22
+ - Improved debug log writer lifecycle handling so buffered events flush reliably without opening logs when debug is disabled.
23
+
24
+ ## [0.3.0] - 2026-04-30
25
+
26
+ ### Changed
27
+ - Refined the model profiles modal layout with wider sizing, a single bordered grid, and clearer model table columns.
28
+ - Updated the public README screenshot and usage details.
29
+ - Bumped Pi peer dependency ranges to `^0.70.6`.
30
+
31
+ ## [0.2.0] - 2026-04-26
32
+
33
+ ### Added
34
+ - Phase 6: Git & publishing preparation.
35
+ - NPM package metadata, README, CHANGELOG, LICENSE, and package ignore rules.
36
+ - Profile update, removal, persisted sorting, configuration, and file-gated debug logging.
37
+
38
+ ### Fixed
39
+ - Confirmation prompts now accept typed input before update or removal actions run.
40
+ - Sort menu keyboard handling now works consistently and closes without exiting the modal.
41
+ - Profile update and removal command handlers now avoid duplicate scans and duplicate removal events.
42
+
43
+ ## [0.1.0] - 2026-04-25
44
+
45
+ ### Added
46
+ - Initial extension structure
47
+ - Core profile management functionality
48
+ - Frontmatter parser implementation
49
+ - Profile store with atomic writes
50
+ - Import service for external profiles
51
+ - Agent writer for profile application
52
+ - Type definitions and error handling
53
+ - Test suite for core functionality
package/package.json CHANGED
@@ -1,66 +1,66 @@
1
- {
2
- "name": "pi-model-profiles",
3
- "version": "0.3.0",
4
- "private": false,
5
- "description": "Pi extension for saving, importing, and applying agent model frontmatter profiles.",
6
- "type": "module",
7
- "main": "./index.ts",
8
- "exports": {
9
- ".": "./index.ts"
10
- },
11
- "files": [
12
- "index.ts",
13
- "src",
14
- "README.md",
15
- "CHANGELOG.md",
16
- "config/config.example.json",
17
- "LICENSE"
18
- ],
19
- "scripts": {
20
- "build": "npx --yes -p typescript@5.9.2 tsc -p tsconfig.json",
21
- "lint": "npm run build",
22
- "test:clean": "node -e \"require('node:fs').rmSync('.test-dist', { recursive: true, force: true })\"",
23
- "prepublishOnly": "npm run test",
24
- "pretest": "npm run test:clean",
25
- "test": "npx --yes -p typescript@5.9.2 tsc --strict --skipLibCheck --module nodenext --moduleResolution nodenext --target ES2022 --outDir .test-dist src/types-shims.d.ts src/errors.ts src/types.ts src/constants.ts src/atomic-write.ts src/profile-fields.ts src/frontmatter-parser.ts src/profile-store.ts src/agent-writer.ts src/import-service.ts test/frontmatter-parser.test.ts test/import-service.test.ts test/agent-writer.test.ts test/profile-store.test.ts && node --test .test-dist/test/frontmatter-parser.test.js .test-dist/test/import-service.test.js .test-dist/test/agent-writer.test.js .test-dist/test/profile-store.test.js",
26
- "posttest": "npm run test:clean",
27
- "check": "npm run build && npm run test",
28
- "package:dry-run": "npm pack --dry-run"
29
- },
30
- "keywords": [
31
- "pi-package",
32
- "pi",
33
- "pi-extension",
34
- "pi-coding-agent",
35
- "coding-agent",
36
- "model-profiles",
37
- "frontmatter",
38
- "agent-configuration",
39
- "profiles"
40
- ],
41
- "author": "MasuRii",
42
- "license": "MIT",
43
- "homepage": "https://github.com/MasuRii/pi-model-profiles#readme",
44
- "repository": {
45
- "type": "git",
46
- "url": "git+https://github.com/MasuRii/pi-model-profiles.git"
47
- },
48
- "bugs": {
49
- "url": "https://github.com/MasuRii/pi-model-profiles/issues"
50
- },
51
- "engines": {
52
- "node": ">=20"
53
- },
54
- "pi": {
55
- "extensions": [
56
- "./index.ts"
57
- ]
58
- },
59
- "peerDependencies": {
60
- "@mariozechner/pi-coding-agent": "^0.70.6",
61
- "@mariozechner/pi-tui": "^0.70.6"
62
- },
63
- "publishConfig": {
64
- "access": "public"
65
- }
66
- }
1
+ {
2
+ "name": "pi-model-profiles",
3
+ "version": "0.3.2",
4
+ "private": false,
5
+ "description": "Pi extension for saving, importing, and applying agent model frontmatter profiles.",
6
+ "type": "module",
7
+ "main": "./index.ts",
8
+ "exports": {
9
+ ".": "./index.ts"
10
+ },
11
+ "files": [
12
+ "index.ts",
13
+ "src",
14
+ "README.md",
15
+ "CHANGELOG.md",
16
+ "config/config.example.json",
17
+ "LICENSE"
18
+ ],
19
+ "scripts": {
20
+ "build": "npx --yes -p typescript@5.9.2 tsc -p tsconfig.json",
21
+ "lint": "npm run build",
22
+ "test:clean": "node -e \"require('node:fs').rmSync('.test-dist', { recursive: true, force: true })\"",
23
+ "prepublishOnly": "npm run test",
24
+ "pretest": "npm run test:clean",
25
+ "test": "npx --yes -p typescript@5.9.2 tsc --strict --skipLibCheck --module nodenext --moduleResolution nodenext --target ES2022 --outDir .test-dist src/types-shims.d.ts src/errors.ts src/types.ts src/constants.ts src/atomic-write.ts src/profile-fields.ts src/frontmatter-parser.ts src/profile-store.ts src/agent-writer.ts src/import-service.ts src/config.ts src/debug-logger.ts test/frontmatter-parser.test.ts test/import-service.test.ts test/agent-writer.test.ts test/profile-store.test.ts test/debug-logger.test.ts && node --test .test-dist/test/frontmatter-parser.test.js .test-dist/test/import-service.test.js .test-dist/test/agent-writer.test.js .test-dist/test/profile-store.test.js .test-dist/test/debug-logger.test.js",
26
+ "posttest": "npm run test:clean",
27
+ "check": "npm run build && npm run test",
28
+ "package:dry-run": "npm pack --dry-run"
29
+ },
30
+ "keywords": [
31
+ "pi-package",
32
+ "pi",
33
+ "pi-extension",
34
+ "pi-coding-agent",
35
+ "coding-agent",
36
+ "model-profiles",
37
+ "frontmatter",
38
+ "agent-configuration",
39
+ "profiles"
40
+ ],
41
+ "author": "MasuRii",
42
+ "license": "MIT",
43
+ "homepage": "https://github.com/MasuRii/pi-model-profiles#readme",
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git+https://github.com/MasuRii/pi-model-profiles.git"
47
+ },
48
+ "bugs": {
49
+ "url": "https://github.com/MasuRii/pi-model-profiles/issues"
50
+ },
51
+ "engines": {
52
+ "node": ">=20"
53
+ },
54
+ "pi": {
55
+ "extensions": [
56
+ "./index.ts"
57
+ ]
58
+ },
59
+ "peerDependencies": {
60
+ "@earendil-works/pi-coding-agent": "^0.74.0 || ^0.75.0",
61
+ "@earendil-works/pi-tui": "^0.74.0 || ^0.75.0"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ }
66
+ }
package/src/constants.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { getAgentDir } from "@mariozechner/pi-coding-agent";
1
+ import { getAgentDir } from "@earendil-works/pi-coding-agent";
2
2
  import { join } from "node:path";
3
3
  import { CONFIG_PATH, DEBUG_DIR, DEBUG_LOG_PATH, EXTENSION_ROOT } from "./config.js";
4
4