cicy-code 0.1.2 → 0.1.3

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/bin/cicy-code.js CHANGED
@@ -68,7 +68,8 @@ async function main() {
68
68
 
69
69
  // Install globally if not already
70
70
  try {
71
- execSync('which cicy-code', { stdio: 'ignore' });
71
+ const globalBin = execSync('npm prefix -g', { encoding: 'utf8' }).trim() + '/bin/cicy-code';
72
+ if (!fs.existsSync(globalBin)) throw new Error('not installed');
72
73
  } catch {
73
74
  console.log(' Installing cicy-code globally...');
74
75
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cicy-code",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "CiCy Code - AI-powered development environment",
5
5
  "bin": {
6
6
  "cicy-code": "bin/cicy-code.js"
@@ -2,7 +2,7 @@ const https = require('https');
2
2
  const fs = require('fs');
3
3
  const path = require('path');
4
4
 
5
- const VERSION = '0.1.2';
5
+ const VERSION = '0.1.3';
6
6
  const GH_URL = `https://github.com/cicy-ai/cicy-code/releases/download/v${VERSION}`;
7
7
  const CN_URL = `https://gh-proxy.com/https://github.com/cicy-ai/cicy-code/releases/download/v${VERSION}`;
8
8