sapper-iq 1.0.0 → 1.0.1

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/sapper.mjs +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sapper-iq",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "AI-powered development assistant that executes commands and builds projects",
5
5
  "main": "sapper.mjs",
6
6
  "bin": {
package/sapper.mjs CHANGED
@@ -37,7 +37,7 @@ async function safeQuestion(query) {
37
37
  // Helper function to check for updates
38
38
  async function checkForUpdates() {
39
39
  try {
40
- const response = await fetch('https://registry.npmjs.org/sapper/latest');
40
+ const response = await fetch('https://registry.npmjs.org/sapper-iq/latest');
41
41
  const data = await response.json();
42
42
  const latestVersion = data.version;
43
43
 
@@ -45,7 +45,7 @@ async function checkForUpdates() {
45
45
  console.log(chalk.yellow('šŸ”„ UPDATE AVAILABLE!'));
46
46
  console.log(chalk.gray(` Current: v${CURRENT_VERSION}`));
47
47
  console.log(chalk.green(` Latest: v${latestVersion}`));
48
- console.log(chalk.cyan(' Run: npm update -g sapper\n'));
48
+ console.log(chalk.cyan(' Run: npm update -g sapper-iq\n'));
49
49
  }
50
50
  } catch (error) {
51
51
  // Silently fail if update check fails
@@ -58,7 +58,7 @@ async function updateSapper() {
58
58
  const confirm = await safeQuestion(chalk.yellow('Continue with update? (y/n): '));
59
59
  if (confirm.toLowerCase() === 'y') {
60
60
  return new Promise((resolve) => {
61
- const proc = spawn('npm', ['update', '-g', 'sapper'], {
61
+ const proc = spawn('npm', ['update', '-g', 'sapper-iq'], {
62
62
  stdio: 'inherit'
63
63
  });
64
64
 
@@ -68,7 +68,7 @@ async function updateSapper() {
68
68
  console.log(chalk.green('\nāœ… Sapper updated successfully!'));
69
69
  console.log(chalk.gray('Please restart Sapper to use the new version.\n'));
70
70
  } else {
71
- console.log(chalk.red('\nāŒ Update failed. Try manually: npm update -g sapper\n'));
71
+ console.log(chalk.red('\nāŒ Update failed. Try manually: npm update -g sapper-iq\n'));
72
72
  }
73
73
  resolve();
74
74
  });