@linxiraos/pi-utils 1.4.1 → 1.4.3

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.4.3] - 2026-10-25
4
+
5
+ - Released as part of Zeta 1.4.3; no package-specific user-visible changes.
6
+
7
+ ## [1.4.2] - 2026-10-24
8
+
9
+ - Added `ZETA_WEB_PORT` (43141), `ZETA_GATEWAY_PORT` (43143) and `ZETA_STATS_PORT` (43147) as the single source for Zeta's local service defaults
10
+
3
11
  ## [1.4.1] - 2026-10-23
4
12
 
5
13
  - Version alignment with the 1.4.1 release line (no behavioral changes).
@@ -22,6 +22,7 @@ export * from "./mermaid-ascii.js";
22
22
  export * from "./mime.js";
23
23
  export * from "./path.js";
24
24
  export * from "./path-tree.js";
25
+ export * from "./ports.js";
25
26
  export * from "./peek-file.js";
26
27
  export * as postmortem from "./postmortem.js";
27
28
  export * from "./process-name.js";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Default loopback ports for Zeta's local services.
3
+ *
4
+ * OMP installs on the same machine use 30141/30142/3847, and common developer
5
+ * tools squat on 3000/8080/8787/3847. Zeta therefore owns a dedicated block:
6
+ * three uncommon ports, at least two apart, so a side-by-side OMP install and
7
+ * unrelated services cannot take the gateway or the stats dashboard away.
8
+ *
9
+ * Every default in the repository derives from these constants. The standalone
10
+ * Electron shell (`desktop/src/main.ts`, not a Bun workspace package) carries
11
+ * literals that must match; its serve-discovery test asserts the values.
12
+ */
13
+ export declare const ZETA_WEB_PORT = 43141;
14
+ export declare const ZETA_GATEWAY_PORT = 43143;
15
+ export declare const ZETA_STATS_PORT = 43147;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linxiraos/pi-utils",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "Shared utilities for pi packages",
5
5
  "keywords": [
6
6
  "utilities",
@@ -54,7 +54,7 @@
54
54
  "fmt": "oxfmt --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts'"
55
55
  },
56
56
  "dependencies": {
57
- "@linxiraos/pi-natives": "1.4.1"
57
+ "@linxiraos/pi-natives": "1.4.3"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/bun": "1.4.3"
package/src/index.ts CHANGED
@@ -22,6 +22,7 @@ export * from "./mermaid-ascii";
22
22
  export * from "./mime";
23
23
  export * from "./path";
24
24
  export * from "./path-tree";
25
+ export * from "./ports";
25
26
  export * from "./peek-file";
26
27
  export * as postmortem from "./postmortem";
27
28
  export * from "./process-name";
package/src/ports.ts ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Default loopback ports for Zeta's local services.
3
+ *
4
+ * OMP installs on the same machine use 30141/30142/3847, and common developer
5
+ * tools squat on 3000/8080/8787/3847. Zeta therefore owns a dedicated block:
6
+ * three uncommon ports, at least two apart, so a side-by-side OMP install and
7
+ * unrelated services cannot take the gateway or the stats dashboard away.
8
+ *
9
+ * Every default in the repository derives from these constants. The standalone
10
+ * Electron shell (`desktop/src/main.ts`, not a Bun workspace package) carries
11
+ * literals that must match; its serve-discovery test asserts the values.
12
+ */
13
+ export const ZETA_WEB_PORT = 43141;
14
+ export const ZETA_GATEWAY_PORT = 43143;
15
+ export const ZETA_STATS_PORT = 43147;