pi-permission-system 0.1.4 → 0.1.5
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 +53 -53
- package/LICENSE +21 -21
- package/README.md +387 -387
- package/config/config.example.json +27 -27
- package/index.ts +3 -3
- package/package.json +9 -1
- package/schemas/permissions.schema.json +86 -86
- package/src/bash-filter.ts +77 -77
- package/src/index.ts +1299 -1299
- package/src/permission-manager.ts +651 -651
- package/src/test.ts +297 -297
- package/src/tool-registry.ts +148 -148
- package/src/types.ts +43 -43
package/CHANGELOG.md
CHANGED
|
@@ -1,53 +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
|
-
## [0.1.4] - 2026-03-07
|
|
11
|
-
|
|
12
|
-
### Added
|
|
13
|
-
- Added permission request forwarding so non-UI subagent sessions can surface `ask` confirmations back to the main interactive session.
|
|
14
|
-
- Added filesystem-based request/response handling for both primary and legacy permission-forwarding directories.
|
|
15
|
-
|
|
16
|
-
### Changed
|
|
17
|
-
- Updated README documentation to describe subagent permission forwarding behavior and current architecture responsibilities.
|
|
18
|
-
- Added `package-lock.json` to the repository for reproducible local installs.
|
|
19
|
-
|
|
20
|
-
### Fixed
|
|
21
|
-
- Preserved interactive `ask` permission flows for delegated subagents that would otherwise fail without direct UI access.
|
|
22
|
-
- Improved cleanup and compatibility handling around legacy permission-forwarding directories.
|
|
23
|
-
|
|
24
|
-
## [0.1.3] - 2026-03-04
|
|
25
|
-
|
|
26
|
-
### Fixed
|
|
27
|
-
- Use absolute GitHub raw URL for README image to fix npm display
|
|
28
|
-
|
|
29
|
-
## [0.1.2] - 2026-03-04
|
|
30
|
-
|
|
31
|
-
### Changed
|
|
32
|
-
- Rewrote README.md with professional documentation standards
|
|
33
|
-
- Added comprehensive feature documentation, configuration reference, and usage examples
|
|
34
|
-
|
|
35
|
-
## [0.1.1] - 2026-03-02
|
|
36
|
-
|
|
37
|
-
### Changed
|
|
38
|
-
- Added `asset/` to the npm package `files` whitelist so README image assets are included in tarballs.
|
|
39
|
-
|
|
40
|
-
## [0.1.0] - 2026-03-02
|
|
41
|
-
|
|
42
|
-
### Changed
|
|
43
|
-
- Reorganized repository structure to match standard extension layout:
|
|
44
|
-
- moved implementation and tests into `src/`
|
|
45
|
-
- added root `index.ts` shim for Pi auto-discovery
|
|
46
|
-
- standardized TypeScript project settings with Bundler module resolution
|
|
47
|
-
- Added package distribution metadata and scripts, including `pi.extensions` and publish file whitelist.
|
|
48
|
-
- Added repository scaffolding files (`README.md`, `CHANGELOG.md`, `LICENSE`, `.gitignore`, `.npmignore`) and config starter template.
|
|
49
|
-
|
|
50
|
-
### Preserved
|
|
51
|
-
- Global permission config path semantics remained `~/.pi/agent/pi-permissions.jsonc`.
|
|
52
|
-
- Permission schema location remained `schemas/permissions.schema.json`.
|
|
53
|
-
- Permission enforcement behavior remained intact.
|
|
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.4] - 2026-03-07
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Added permission request forwarding so non-UI subagent sessions can surface `ask` confirmations back to the main interactive session.
|
|
14
|
+
- Added filesystem-based request/response handling for both primary and legacy permission-forwarding directories.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Updated README documentation to describe subagent permission forwarding behavior and current architecture responsibilities.
|
|
18
|
+
- Added `package-lock.json` to the repository for reproducible local installs.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- Preserved interactive `ask` permission flows for delegated subagents that would otherwise fail without direct UI access.
|
|
22
|
+
- Improved cleanup and compatibility handling around legacy permission-forwarding directories.
|
|
23
|
+
|
|
24
|
+
## [0.1.3] - 2026-03-04
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- Use absolute GitHub raw URL for README image to fix npm display
|
|
28
|
+
|
|
29
|
+
## [0.1.2] - 2026-03-04
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
- Rewrote README.md with professional documentation standards
|
|
33
|
+
- Added comprehensive feature documentation, configuration reference, and usage examples
|
|
34
|
+
|
|
35
|
+
## [0.1.1] - 2026-03-02
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
- Added `asset/` to the npm package `files` whitelist so README image assets are included in tarballs.
|
|
39
|
+
|
|
40
|
+
## [0.1.0] - 2026-03-02
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
- Reorganized repository structure to match standard extension layout:
|
|
44
|
+
- moved implementation and tests into `src/`
|
|
45
|
+
- added root `index.ts` shim for Pi auto-discovery
|
|
46
|
+
- standardized TypeScript project settings with Bundler module resolution
|
|
47
|
+
- Added package distribution metadata and scripts, including `pi.extensions` and publish file whitelist.
|
|
48
|
+
- Added repository scaffolding files (`README.md`, `CHANGELOG.md`, `LICENSE`, `.gitignore`, `.npmignore`) and config starter template.
|
|
49
|
+
|
|
50
|
+
### Preserved
|
|
51
|
+
- Global permission config path semantics remained `~/.pi/agent/pi-permissions.jsonc`.
|
|
52
|
+
- Permission schema location remained `schemas/permissions.schema.json`.
|
|
53
|
+
- Permission enforcement behavior remained intact.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 MasuRii
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MasuRii
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|