pi-usereq 0.41.0 → 0.43.0
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 +18 -0
- package/README.md +9 -3
- package/package.json +8 -5
- package/pi-usereq/docs/REFERENCES.md +264 -247
- package/pi-usereq/docs/REQUIREMENTS.md +16 -4
- package/pi-usereq/docs/WORKFLOW.md +43 -9
- package/scripts/install-static-checkers.ts +125 -0
- package/src/core/config.ts +2 -2
- package/src/core/static-check.ts +61 -4
- package/src/index.ts +8 -0
- package/tests/extension-registration.test.ts +1 -1
- package/tests/static-check-bundled.test.ts +100 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.43.0](https://github.com/Ogekuri/PI-useReq/compare/v0.42.0..v0.43.0) - 2026-07-10
|
|
4
|
+
### 🚜 Changes
|
|
5
|
+
- make tsx a runtime dependency so postinstall resolves [useReq] *(packaging)*
|
|
6
|
+
- Move tsx from devDependencies to dependencies in package.json and the root entry of package-lock.json. The package ships .ts source with noEmit and no dist build, so node --import tsx is required for package scripts, the postinstall checker installer, and the .ts extension entry. tsx was only a devDependency, hence absent on consumer installs, causing ERR_MODULE_NOT_FOUND during pi update --extensions.
|
|
7
|
+
- Requirements: add CTN-020; update Section 5.2 note; bump front-matter to 0.0.75
|
|
8
|
+
- Verified: npm install --legacy-peer-deps runs postinstall with exit 0
|
|
9
|
+
|
|
10
|
+
## [0.42.0](https://github.com/Ogekuri/PI-useReq/compare/v0.41.0..v0.42.0) - 2026-07-10
|
|
11
|
+
### 🚜 Changes
|
|
12
|
+
- bundle pyright/ruff/eslint and add bundled-bin resolution [useReq] *(static-check)*
|
|
13
|
+
- Add pyright, ruff, and eslint as pinned npm dependencies with a best-effort postinstall installer (scripts/install-static-checkers.ts) that probes bundled node_modules/.bin, attempts npm install on miss, prints native-checker guidance, and always returns 0.
|
|
14
|
+
- Add resolveCheckerExecutable bundled-bin-plus-PATH resolver and checkDefaultCheckersAvailability session_start helper. Change TypeScript default static-check entry from npx+eslint to eslint. Emit one warning notification during session_start for missing enabled checkers without aborting.
|
|
15
|
+
- Add tests/static-check-bundled.test.ts covering resolveCheckerExecutable precedence, postinstall exit-code-0 invariant, and session_start missing-checker reporting. Update REQUIREMENTS.md (REQ-339..REQ-344, DES-017/018, TST-123..125), WORKFLOW.md, README.md, and REFERENCES.md.
|
|
16
|
+
|
|
3
17
|
## [0.41.0](https://github.com/Ogekuri/PI-useReq/compare/v0.40.0..v0.41.0) - 2026-07-10
|
|
4
18
|
### 🐛 Bug Fixes
|
|
5
19
|
- await and suppress summary sendMessage to prevent unhandled rejection breaking worktree merge [useReq] *(prompt-delivery)*
|
|
@@ -585,6 +599,8 @@
|
|
|
585
599
|
- \[0.39.0\]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.39.0
|
|
586
600
|
- \[0.40.0\]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.40.0
|
|
587
601
|
- \[0.41.0\]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.41.0
|
|
602
|
+
- \[0.42.0\]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.42.0
|
|
603
|
+
- \[0.43.0\]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.43.0
|
|
588
604
|
|
|
589
605
|
[0.1.0]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.1.0
|
|
590
606
|
[0.2.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.1.0..v0.2.0
|
|
@@ -625,3 +641,5 @@
|
|
|
625
641
|
[0.39.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.38.0..v0.39.0
|
|
626
642
|
[0.40.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.39.0..v0.40.0
|
|
627
643
|
[0.41.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.40.0..v0.41.0
|
|
644
|
+
[0.42.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.41.0..v0.42.0
|
|
645
|
+
[0.43.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.42.0..v0.43.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# PI-useReq/pi-usereq (0.
|
|
1
|
+
# PI-useReq/pi-usereq (0.43.0)
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
|
|
@@ -100,8 +100,6 @@ TODO: update/rewrite the project tree
|
|
|
100
100
|
|
|
101
101
|
### Install
|
|
102
102
|
|
|
103
|
-
TODO: complete installation istructions
|
|
104
|
-
|
|
105
103
|
Install:
|
|
106
104
|
```bash
|
|
107
105
|
pi install npm:pi-usereq
|
|
@@ -114,6 +112,14 @@ pi install git:github.com/Ogekuri/PI-useReq
|
|
|
114
112
|
|
|
115
113
|
Reload Pi.
|
|
116
114
|
|
|
115
|
+
Bundled static checkers (`pyright`, `ruff`, `eslint`) install automatically via the
|
|
116
|
+
`postinstall` script. Native checkers (`cppcheck`, `clang-format`) require a one-line
|
|
117
|
+
system install:
|
|
118
|
+
|
|
119
|
+
- Debian/Ubuntu: `sudo apt install cppcheck clang-format`
|
|
120
|
+
- macOS: `brew install cppcheck clang-format`
|
|
121
|
+
- Arch: `sudo pacman -S cppcheck clang`
|
|
122
|
+
- Windows: `choco install cppcheck llvm` or `scoop install cppcheck llvm`
|
|
117
123
|
|
|
118
124
|
### Uninstall
|
|
119
125
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-usereq",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Ogekuri/PI-useReq.git"
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"debug:ext:session": "node --import tsx ./scripts/debug-extension.ts session-start",
|
|
20
20
|
"debug:ext:command": "node --import tsx ./scripts/debug-extension.ts command",
|
|
21
21
|
"debug:ext:tool": "node --import tsx ./scripts/debug-extension.ts tool",
|
|
22
|
-
"debug:ext:sdk": "node --import tsx ./scripts/debug-extension.ts sdk-smoke"
|
|
22
|
+
"debug:ext:sdk": "node --import tsx ./scripts/debug-extension.ts sdk-smoke",
|
|
23
|
+
"postinstall": "node --import tsx ./scripts/install-static-checkers.ts"
|
|
23
24
|
},
|
|
24
25
|
"pi": {
|
|
25
26
|
"extensions": [
|
|
@@ -33,13 +34,15 @@
|
|
|
33
34
|
"@sinclair/typebox": "^0.34.49"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
37
|
+
"eslint": "^10.2.0",
|
|
36
38
|
"fast-glob": "^3.3.3",
|
|
37
|
-
"js-tiktoken": "^1.0.21"
|
|
39
|
+
"js-tiktoken": "^1.0.21",
|
|
40
|
+
"pyright": "^1.1.411",
|
|
41
|
+
"ruff": "^1.5.4",
|
|
42
|
+
"tsx": "^4.21.0"
|
|
38
43
|
},
|
|
39
44
|
"devDependencies": {
|
|
40
45
|
"@eslint/js": "^10.0.1",
|
|
41
|
-
"eslint": "^10.2.0",
|
|
42
|
-
"tsx": "^4.21.0",
|
|
43
46
|
"typescript": "^5.9.3",
|
|
44
47
|
"typescript-eslint": "^8.58.2"
|
|
45
48
|
}
|