pi-permission-system 0.1.4 → 0.1.6
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 +69 -53
- package/README.md +389 -387
- package/package.json +59 -51
- package/src/index.ts +1301 -1299
- package/src/permission-manager.ts +651 -651
- package/src/system-prompt-sanitizer.ts +130 -0
- package/src/test.ts +297 -297
- package/src/types.ts +43 -43
package/CHANGELOG.md
CHANGED
|
@@ -1,53 +1,69 @@
|
|
|
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.1.
|
|
11
|
-
|
|
12
|
-
### Added
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
## [0.1.
|
|
41
|
-
|
|
42
|
-
###
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
+
## [0.1.6] - 2026-03-09
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Sanitized the `Available tools:` system prompt section so denied tools are removed before the agent starts.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Updated README documentation to describe system-prompt tool sanitization and refreshed the displayed package version.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- Prevented hidden tools from remaining advertised in the startup system prompt after runtime tool filtering.
|
|
20
|
+
|
|
21
|
+
## [0.1.5] - 2026-03-09
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- Added `repository`, `homepage`, and `bugs` package metadata so npm links back to the public GitHub repository and issue tracker.
|
|
25
|
+
|
|
26
|
+
## [0.1.4] - 2026-03-07
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
- Added permission request forwarding so non-UI subagent sessions can surface `ask` confirmations back to the main interactive session.
|
|
30
|
+
- Added filesystem-based request/response handling for both primary and legacy permission-forwarding directories.
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- Updated README documentation to describe subagent permission forwarding behavior and current architecture responsibilities.
|
|
34
|
+
- Added `package-lock.json` to the repository for reproducible local installs.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
- Preserved interactive `ask` permission flows for delegated subagents that would otherwise fail without direct UI access.
|
|
38
|
+
- Improved cleanup and compatibility handling around legacy permission-forwarding directories.
|
|
39
|
+
|
|
40
|
+
## [0.1.3] - 2026-03-04
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
- Use absolute GitHub raw URL for README image to fix npm display
|
|
44
|
+
|
|
45
|
+
## [0.1.2] - 2026-03-04
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
- Rewrote README.md with professional documentation standards
|
|
49
|
+
- Added comprehensive feature documentation, configuration reference, and usage examples
|
|
50
|
+
|
|
51
|
+
## [0.1.1] - 2026-03-02
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
- Added `asset/` to the npm package `files` whitelist so README image assets are included in tarballs.
|
|
55
|
+
|
|
56
|
+
## [0.1.0] - 2026-03-02
|
|
57
|
+
|
|
58
|
+
### Changed
|
|
59
|
+
- Reorganized repository structure to match standard extension layout:
|
|
60
|
+
- moved implementation and tests into `src/`
|
|
61
|
+
- added root `index.ts` shim for Pi auto-discovery
|
|
62
|
+
- standardized TypeScript project settings with Bundler module resolution
|
|
63
|
+
- Added package distribution metadata and scripts, including `pi.extensions` and publish file whitelist.
|
|
64
|
+
- Added repository scaffolding files (`README.md`, `CHANGELOG.md`, `LICENSE`, `.gitignore`, `.npmignore`) and config starter template.
|
|
65
|
+
|
|
66
|
+
### Preserved
|
|
67
|
+
- Global permission config path semantics remained `~/.pi/agent/pi-permissions.jsonc`.
|
|
68
|
+
- Permission schema location remained `schemas/permissions.schema.json`.
|
|
69
|
+
- Permission enforcement behavior remained intact.
|