@clubnet/seedclub 0.2.5 → 0.2.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/postinstall.js +8 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clubnet/seedclub",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "The Human+ Venture Network — AI agent for deal sourcing, research, and signal tracking",
5
5
  "license": "MIT",
6
6
  "repository": {
package/postinstall.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const { existsSync, mkdirSync, readFileSync, writeFileSync, cpSync, rmSync } = require("fs");
4
- const { join, dirname } = require("path");
4
+ const { join } = require("path");
5
5
  const { homedir } = require("os");
6
6
  const { execFileSync } = require("child_process");
7
7
 
@@ -103,15 +103,18 @@ if (!existsSync(settingsFile)) {
103
103
 
104
104
  info("Downloading tools...");
105
105
  try {
106
- const piPkgPath = require.resolve(
107
- "@mariozechner/pi-coding-agent/package.json",
108
- );
109
106
  const toolsManagerPath = join(
110
- dirname(piPkgPath),
107
+ PKG_ROOT,
108
+ "node_modules",
109
+ "@mariozechner",
110
+ "pi-coding-agent",
111
111
  "dist",
112
112
  "utils",
113
113
  "tools-manager.js",
114
114
  );
115
+ if (!existsSync(toolsManagerPath)) {
116
+ throw new Error("tools-manager.js not found");
117
+ }
115
118
 
116
119
  execFileSync(
117
120
  process.execPath,