@astrofoundry/pi-astro 0.40.61 → 0.40.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrofoundry/pi-astro",
3
- "version": "0.40.61",
3
+ "version": "0.40.62",
4
4
  "description": "Personal pi customizations (extensions, subagents, skills, prompts, themes) for the pi coding agent.",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -147,9 +147,9 @@ export function publishedSha256(checksums: string): string {
147
147
  return sum;
148
148
  }
149
149
 
150
- /** `0.34.0+3b6f4c1d` (since Pomerium 0.34) or `pomerium: 0.33.1+01af7466f` as `v0.34.0` or `v0.33.1`. */
150
+ /** `0.34.0+98fca09dc` (since Pomerium 0.34) or `pomerium version pomerium: 0.33.6+6d2d78cec` as `v0.34.0` or `v0.33.6`. */
151
151
  export function installedRelease(output: string): string | null {
152
- const m = /^(?:pomerium:\s*)?v?(\d+\.\d+\.\d+)/.exec(output.trim());
152
+ const m = /(?:^|pomerium:\s*)v?(\d+\.\d+\.\d+)/m.exec(output);
153
153
  return m ? `v${m[1]}` : null;
154
154
  }
155
155
 
@@ -101,7 +101,8 @@ describe("identity wrapper", () => {
101
101
  expect(publishedSha256(`${"0".repeat(64)} pomerium-darwin-arm64.tar.gz\n${sum} pomerium-linux-amd64.tar.gz\n`)).toBe(sum);
102
102
  expect(() => publishedSha256(`${"0".repeat(64)} pomerium-darwin-arm64.tar.gz\n`)).toThrow(/no sha256/);
103
103
  expect(installedRelease("pomerium: 0.33.1+01af7466f\nenvoy: 20260618180819-16ede7a56f2f\n")).toBe("v0.33.1");
104
- expect(installedRelease("0.34.0+3b6f4c1d\nenvoy version 1.36.2 (Apache-2.0)\nLicensed under the terms of the Apache License 2.0\n")).toBe("v0.34.0");
104
+ expect(installedRelease("pomerium version pomerium: 0.33.6+6d2d78cec\nenvoy: 20261026222654-30d955cf07bd\n")).toBe("v0.33.6");
105
+ expect(installedRelease("0.34.0+98fca09dc\nenvoy version 20261102191522-e7b75c3a606d (LicenseRef-Pomerium-Community-Edition-1.0)\nLicensed under the terms of the Pomerium Community Edition License 1.0: https://github.com/pomerium/pomerium\n")).toBe("v0.34.0");
105
106
  expect(installedRelease("command not found")).toBeNull();
106
107
  });
107
108