oira666_pi-npm-token 0.1.1 → 0.1.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/README.md +4 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -81,11 +81,14 @@ This extension does not forward credentials to SSH hosts. Other extensions contr
|
|
|
81
81
|
```bash
|
|
82
82
|
npm install
|
|
83
83
|
npm test
|
|
84
|
-
npm
|
|
84
|
+
PI_EVERGREEN_PI_BIN=/absolute/path/to/global/pi npm run test:e2e
|
|
85
|
+
npm pack --dry-run --ignore-scripts
|
|
85
86
|
```
|
|
86
87
|
|
|
87
88
|
`npm test` first installs the latest stable Pi coding-agent development dependency from npm, runs strict TypeScript checking, and then runs the test suite. Registry access is required for the dependency refresh, which can update `package.json` and `package-lock.json`. Dependency lifecycle scripts are disabled during the refresh. If the update or typecheck fails, tests do not run. `npm run typecheck` checks the currently installed dependencies without refreshing them.
|
|
88
89
|
|
|
89
90
|
Tests use dummy credentials and local subprocesses. They cover configuration, project trust, private-file handling, npm environment inheritance, lifecycle behavior, and cleanup. They do not contact npm to authenticate or publish a package, and do not prove that a real token has publishing permission.
|
|
90
91
|
|
|
92
|
+
`npm run test:e2e` requires `PI_EVERGREEN_PI_BIN` pointing to the installed global Pi CLI; it never installs a runtime or skips coverage. It explicitly loads this extension into isolated RPC sessions and uses Pi's real OpenAI-compatible transport against a deterministic loopback SSE server, without model credentials or remote model calls. It verifies actual provider-bound requests and persisted sessions for sentinel-token leaks across tool turns, retries, compaction, credential reload, runtime reload, and session replacement. It also checks trusted/untrusted configuration, error recovery, environment restoration, and temporary-file cleanup. Negative controls exercise both the shell-auth probe and leak detector. Provider/model/reasoning labels honor `PI_EVERGREEN_E2E_PROVIDER`, `PI_EVERGREEN_E2E_MODEL`, and `PI_EVERGREEN_E2E_REASONING` (defaults: `openai`, `gpt-6-luna`, `medium`); these select the isolated test endpoint, not a live service.
|
|
93
|
+
|
|
91
94
|
Before every release, update the tested-against line at the top of this README to the actual Pi version that passed the checks. Keep the supported Pi peer range in `package.json` accurate, and inspect `npm pack --dry-run --ignore-scripts` to ensure no credentials or temporary files are packaged. The tracked root `AGENTS.md` contains the release instructions and code quality bar.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oira666_pi-npm-token",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Load npm publishing credentials from Pi settings for local shell commands.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"typecheck": "tsc --noEmit",
|
|
38
38
|
"pretest": "npm install --save-dev --ignore-scripts @earendil-works/pi-coding-agent@latest && npm run typecheck",
|
|
39
|
-
"test": "node --experimental-strip-types --test test/*.test.ts"
|
|
39
|
+
"test": "node --experimental-strip-types --test test/*.test.ts",
|
|
40
|
+
"test:e2e": "node --test test/*.e2e.mjs"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
43
|
"ini": "^7.0.0"
|