@clubnet/seedclub 0.2.14 → 0.2.15

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.
@@ -6,10 +6,12 @@
6
6
  import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
7
7
  import editorExtension from "./editor.js";
8
8
  import footerExtension from "./footer.js";
9
+ import updateExtension from "./update.js";
9
10
  import welcomeExtension from "./welcome.js";
10
11
 
11
12
  export default function (pi: ExtensionAPI) {
12
13
  editorExtension(pi);
13
14
  footerExtension(pi);
15
+ updateExtension(pi);
14
16
  welcomeExtension(pi, { enableFrame: false });
15
17
  }
@@ -49,5 +49,23 @@ function getLatestVersion(): Promise<string | null> {
49
49
  }
50
50
 
51
51
  export default function (pi: ExtensionAPI) {
52
- void pi;
52
+ let checked = false;
53
+
54
+ pi.on("session_start", async (_event, ctx) => {
55
+ if (!ctx.hasUI || checked) return;
56
+ checked = true;
57
+
58
+ const installed = getInstalledVersion();
59
+ if (!installed?.seedclubVersion) return;
60
+
61
+ const latest = await getLatestVersion();
62
+ if (!latest) return;
63
+
64
+ if (compareSemver(latest, installed.seedclubVersion) <= 0) return;
65
+
66
+ ctx.ui.notify(
67
+ `Update available: seedclub v${latest} is out (installed: v${installed.seedclubVersion}). Run \`seedclub update\`.`,
68
+ "info",
69
+ );
70
+ });
53
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clubnet/seedclub",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "The Human+ Venture Network — AI agent for deal sourcing, research, and signal tracking",
5
5
  "license": "MIT",
6
6
  "repository": {