@alignfirst/pi-background 0.1.2 → 0.1.4
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 -2
- package/dist/process-tree.js +5 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ This package works independently of any project tooling and of the subagent exte
|
|
|
10
10
|
pi install npm:@alignfirst/pi-background
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Requires Node.js
|
|
13
|
+
Requires the Node.js runtime declared in `engines.node`. See the [supported and tested baseline](https://github.com/paleo/alignfirst/blob/main/docs/pi-extensions.md#supported-and-tested-baseline) for Pi compatibility and checks not rerun after the dependency upgrade. macOS and Windows through WSL are supported targets but have not been exercised here. Native Windows is refused before process launch. Host peer ranges are `*` under Pi's package rules; they do not certify future Pi versions.
|
|
14
14
|
|
|
15
15
|
The package declares root `index.js` as its sole Pi extension entry. It forwards the default factory from compiled `dist/index.js`, so Pi displays the npm package label without `:dist`. Loading starts no process or timer. Installation and loading do not install profiles, skills, or the other extension.
|
|
16
16
|
|
|
@@ -115,11 +115,13 @@ Linux cleanup verifies process-start identities before signalling. macOS uses pr
|
|
|
115
115
|
|
|
116
116
|
## Maintainer checks
|
|
117
117
|
|
|
118
|
+
From the repository root, complete `npm run build` before integration, including filtered files. Preflight checks provisioning only; rebuild after source changes.
|
|
119
|
+
|
|
118
120
|
```sh
|
|
121
|
+
npm run build
|
|
119
122
|
npm test --workspace @alignfirst/pi-background
|
|
120
123
|
npm run test:integration --workspace @alignfirst/pi-background
|
|
121
124
|
npm run typecheck --workspace @alignfirst/pi-background
|
|
122
|
-
npm run build --workspace @alignfirst/pi-background
|
|
123
125
|
npm run lint --workspace @alignfirst/pi-background
|
|
124
126
|
npm pack --workspace @alignfirst/pi-background --dry-run --json
|
|
125
127
|
```
|
package/dist/process-tree.js
CHANGED
|
@@ -143,9 +143,13 @@ function linuxProcessTable() {
|
|
|
143
143
|
.flatMap((name) => {
|
|
144
144
|
const pid = Number(name);
|
|
145
145
|
const fields = readStatFields(pid, HIDDEN_CODES);
|
|
146
|
-
return fields ? [linuxTarget(pid, fields)] : [];
|
|
146
|
+
return fields && !isReaping(fields) ? [linuxTarget(pid, fields)] : [];
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
+
// A task being reaped reports state X, then pgid -1 once its signal handlers are released.
|
|
150
|
+
function isReaping([state, , group]) {
|
|
151
|
+
return state === "X" || group === "-1";
|
|
152
|
+
}
|
|
149
153
|
// The fields after the command name, or undefined when the read fails with a skipped code.
|
|
150
154
|
function readStatFields(pid, skippedCodes) {
|
|
151
155
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alignfirst/pi-background",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Session-owned background shell jobs with bounded output and native Pi completion.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Thomas MUR",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"typebox": "*"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@earendil-works/pi-ai": "1.
|
|
42
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
43
|
-
"@types/node": "~26.6.
|
|
41
|
+
"@earendil-works/pi-ai": "1.4.0",
|
|
42
|
+
"@earendil-works/pi-coding-agent": "1.4.0",
|
|
43
|
+
"@types/node": "~26.6.6",
|
|
44
44
|
"rimraf": "~6.1.3",
|
|
45
|
-
"typebox": "~1.4.
|
|
45
|
+
"typebox": "~1.4.3",
|
|
46
46
|
"typescript": "~7.0.2",
|
|
47
47
|
"vitest": "~5.0.5"
|
|
48
48
|
}
|