@alignfirst/pi-background 0.0.0 → 0.1.1

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 CHANGED
@@ -12,7 +12,7 @@ pi install npm:@alignfirst/pi-background
12
12
 
13
13
  Requires Node.js 22.19.0 or later. Tested with **Pi 1.3.0**, **Node 26.8.1 / 22.23.3**, and **Linux**. The exact Node 22.19.0 floor has not been exercised. 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
- Loading the extension starts no process or timer. Installation and loading do not install profiles, skills, or the other extension.
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
 
17
17
  ## Actions
18
18
 
@@ -117,13 +117,14 @@ Linux cleanup verifies process-start identities before signalling. macOS uses pr
117
117
 
118
118
  ```sh
119
119
  npm test --workspace @alignfirst/pi-background
120
+ npm run test:integration --workspace @alignfirst/pi-background
120
121
  npm run typecheck --workspace @alignfirst/pi-background
121
122
  npm run build --workspace @alignfirst/pi-background
122
123
  npm run lint --workspace @alignfirst/pi-background
123
124
  npm pack --workspace @alignfirst/pi-background --dry-run --json
124
125
  ```
125
126
 
126
- `test/process-tree.test.ts` exercises real descendants, TERM resistance, separate groups, retained pipes, actual Pi/bash cleanup, parent shutdown, query failure/retry, and reaping. `test/lifecycle.test.ts` uses Pi's public session runtime and a local scripted provider to exercise scheduling and replacement. `test/tool.test.ts` covers public actions, startup/cancellation races, capacity, cleanup failures, and output limits. Deterministic tests require no external model or network request. `test/aligndev-integration.test.ts` adds real CLI subprocess tests through the packed extension; this is a test dependency only. Repository `npm run release:smoke` verifies standalone packed installs without either CLI. Opt-in Terra and real terminal lifecycle checks are documented in [Pi Extensions](../../docs/pi-extensions.md#checks).
127
+ `test/process-tree.test.ts` exercises real descendants, TERM resistance, separate groups, retained pipes, actual Pi/bash cleanup, parent shutdown, query failure/retry, and reaping. `test/lifecycle.test.ts` uses Pi's public session runtime and a local scripted provider to exercise scheduling and replacement. `test/tool.test.ts` covers public actions, startup/cancellation races, capacity, cleanup failures, and output limits. Deterministic tests require no external model or network request. `test/integration/aligndev-integration.test.ts` runs through `test:integration` and adds real CLI subprocess tests through the packed extension; this is a test dependency only. Repository `npm run release:smoke` verifies standalone packed installs without either CLI. Opt-in Terra and real terminal lifecycle checks are documented in [Pi Extensions](../../docs/pi-extensions.md#checks).
127
128
 
128
129
  The package-local `src/process-tree.ts` deliberately duplicates the small cleanup leaf from `pi-subagent`; propagate generic cleanup fixes and their conformance cases to both packages. Neither package imports the other at runtime.
129
130
 
@@ -166,7 +166,9 @@ function linuxIdentity(pid) {
166
166
  return identity;
167
167
  }
168
168
  catch (error) {
169
- if (error instanceof Error && "code" in error && error.code === "ENOENT")
169
+ if (error instanceof Error &&
170
+ "code" in error &&
171
+ (error.code === "ENOENT" || error.code === "ESRCH"))
170
172
  return;
171
173
  throw error;
172
174
  }
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export { default } from "./dist/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alignfirst/pi-background",
3
- "version": "0.0.0",
3
+ "version": "0.1.1",
4
4
  "description": "Session-owned background shell jobs with bounded output and native Pi completion.",
5
5
  "license": "MIT",
6
6
  "author": "Thomas MUR",
@@ -19,6 +19,7 @@
19
19
  "node": ">=22.19.0"
20
20
  },
21
21
  "files": [
22
+ "index.js",
22
23
  "dist",
23
24
  "README.md",
24
25
  "LICENSE",
@@ -29,7 +30,7 @@
29
30
  },
30
31
  "pi": {
31
32
  "extensions": [
32
- "./dist/index.js"
33
+ "./index.js"
33
34
  ]
34
35
  },
35
36
  "peerDependencies": {