@xynogen/pix-welcome 0.1.5 → 0.1.7

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 @@ Renders a coloured ASCII π logo above the editor on session start and runs star
12
12
  pi install npm:@xynogen/pix-welcome
13
13
  ```
14
14
 
15
- > Also included in [`@xynogen/pix-core`](https://github.com/xynogen/pix-mono/tree/main/packages/pix-core):
15
+ > Also included in [`@xynogen/pix-core`](https://www.npmjs.com/package/@xynogen/pix-core):
16
16
  >
17
17
  > ```bash
18
18
  > pi install npm:@xynogen/pix-core
@@ -20,6 +20,8 @@ pi install npm:@xynogen/pix-welcome
20
20
 
21
21
  ## Full distro
22
22
 
23
+ Source: [github.com/xynogen/pix-mono](https://github.com/xynogen/pix-mono)
24
+
23
25
  To install the complete pix suite (all packages + Pi itself):
24
26
 
25
27
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-welcome",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Pi extension — welcome banner with startup health checks",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -107,18 +107,13 @@ describe("summariseTools", () => {
107
107
  expect(r.detail).toBe("2 loaded");
108
108
  });
109
109
 
110
- it("breaks out extension tools in the detail", () => {
110
+ it("counts total without source breakdown", () => {
111
111
  const r = summariseTools([
112
112
  { sourceInfo: { source: "builtin" } },
113
113
  { sourceInfo: { source: "my-extension" } },
114
114
  { sourceInfo: { source: "sdk" } },
115
115
  ]);
116
- expect(r.detail).toBe("3 loaded (+2 ext)");
117
- });
118
-
119
- it("treats missing sourceInfo as non-builtin", () => {
120
- const r = summariseTools([{}, { sourceInfo: {} }]);
121
- expect(r.detail).toBe("2 loaded (+2 ext)");
116
+ expect(r.detail).toBe("3 loaded");
122
117
  });
123
118
  });
124
119
 
package/src/welcome.ts CHANGED
@@ -296,13 +296,7 @@ export function summariseTools(tools: ToolInfo[]): CheckResult {
296
296
  if (total === 0) {
297
297
  return { label: "Tools", status: "warn", detail: "none active" };
298
298
  }
299
- const builtin = tools.filter(
300
- (t) => t.sourceInfo?.source === "builtin",
301
- ).length;
302
- const extra = total - builtin;
303
- const detail =
304
- extra > 0 ? `${total} loaded (+${extra} ext)` : `${total} loaded`;
305
- return { label: "Tools", status: "ok", detail };
299
+ return { label: "Tools", status: "ok", detail: `${total} loaded` };
306
300
  }
307
301
 
308
302
  function checkTools(pi: { getActiveTools?: () => ToolInfo[] }): CheckResult {