@clubnet/seedclub 0.2.0 → 0.2.2

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/bin/cli.js +11 -2
  2. package/package.json +2 -2
package/bin/cli.js CHANGED
@@ -158,13 +158,22 @@ if (cmd !== "setup-auth") {
158
158
 
159
159
  let piBin;
160
160
  try {
161
- const piPkgPath = require.resolve(
162
- "@mariozechner/pi-coding-agent/package.json",
161
+ const piPkgPath = join(
162
+ __dirname,
163
+ "..",
164
+ "node_modules",
165
+ "@mariozechner",
166
+ "pi-coding-agent",
167
+ "package.json",
163
168
  );
169
+ if (!existsSync(piPkgPath)) {
170
+ throw new Error("pi package.json not found in package-local node_modules");
171
+ }
164
172
  const piPkg = JSON.parse(readFileSync(piPkgPath, "utf-8"));
165
173
  const binEntry = piPkg.bin && (piPkg.bin.pi || Object.values(piPkg.bin)[0]);
166
174
  if (!binEntry) throw new Error("No bin entry in pi package.json");
167
175
  piBin = join(dirname(piPkgPath), binEntry);
176
+ if (!existsSync(piBin)) throw new Error(`pi bin not found at ${piBin}`);
168
177
  } catch (err) {
169
178
  console.error("seedclub: could not locate pi runtime. Reinstall with:");
170
179
  console.error(" npm install -g @clubnet/seedclub");
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@clubnet/seedclub",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "The Human+ Venture Network — AI agent for deal sourcing, research, and signal tracking",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/seedclub/seedclub.git"
8
+ "url": "git+https://github.com/seedclub/seedclub.git"
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "restricted"