@squidcloud/cli 1.0.421 → 1.0.422

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/dist/index.js +24 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -14519,19 +14519,19 @@ async function initSample(consoleRegion, isOnPremConsole, dirPath, appId, apiKey
14519
14519
  catch {
14520
14520
  (0, process_utils_1.exitWithError)(`Unable to download repository: ${templateRepoPath}`);
14521
14521
  }
14522
- // Copy the squid-development skill if it doesn't already exist.
14523
- const skillSourcePath = path_1.default.join(__dirname, 'resources', 'claude', 'skills', 'squid-development');
14522
+ // Copy the squid-development and squid-react-development skills if they do not already exist.
14524
14523
  const projectPath = path_1.default.resolve(dirPath);
14525
14524
  const skillsDir = path_1.default.join(projectPath, '.claude', 'skills');
14526
- const skillDestPath = path_1.default.join(skillsDir, 'squid-development');
14527
- if (await (0, utils_1.checkFileOrDirExists)(skillDestPath)) {
14525
+ const squidSkillSourcePath = path_1.default.join(__dirname, 'resources', 'claude', 'skills', 'squid-development');
14526
+ const squidSkillDestPath = path_1.default.join(skillsDir, 'squid-development');
14527
+ if (await (0, utils_1.checkFileOrDirExists)(squidSkillDestPath)) {
14528
14528
  console.debug('Squid development skill already exists, skipping...');
14529
14529
  }
14530
14530
  else {
14531
14531
  // Skill doesn't exist, copy it.
14532
14532
  try {
14533
14533
  await promises_1.default.mkdir(skillsDir, { recursive: true });
14534
- await promises_1.default.cp(skillSourcePath, skillDestPath, { recursive: true });
14534
+ await promises_1.default.cp(squidSkillSourcePath, squidSkillDestPath, { recursive: true });
14535
14535
  console.debug('Squid development skill copied successfully');
14536
14536
  }
14537
14537
  catch (error) {
@@ -14539,6 +14539,24 @@ async function initSample(consoleRegion, isOnPremConsole, dirPath, appId, apiKey
14539
14539
  console.debug(`Warning: Could not copy Squid development skill: ${(0, assertic_1.getMessageFromError)(error)}`);
14540
14540
  }
14541
14541
  }
14542
+ // Copy the squid-react-development skill if it doesn't already exist.
14543
+ const reactSkillSourcePath = path_1.default.join(__dirname, 'resources', 'claude', 'skills', 'squid-react-development');
14544
+ const reactSkillDestPath = path_1.default.join(skillsDir, 'squid-react-development');
14545
+ if (await (0, utils_1.checkFileOrDirExists)(reactSkillDestPath)) {
14546
+ console.debug('Squid React development skill already exists, skipping...');
14547
+ }
14548
+ else {
14549
+ // Skill doesn't exist, copy it.
14550
+ try {
14551
+ await promises_1.default.mkdir(skillsDir, { recursive: true });
14552
+ await promises_1.default.cp(reactSkillSourcePath, reactSkillDestPath, { recursive: true });
14553
+ console.debug('Squid React development skill copied successfully');
14554
+ }
14555
+ catch (error) {
14556
+ // Non-fatal: log the error but continue with initialization.
14557
+ console.debug(`Warning: Could not copy Squid React development skill: ${(0, assertic_1.getMessageFromError)(error)}`);
14558
+ }
14559
+ }
14542
14560
  console.log('Installing dependencies...');
14543
14561
  let monorepo = false;
14544
14562
  try {
@@ -30605,7 +30623,7 @@ function exitWithError(...messages) {
30605
30623
  /***/ ((module) => {
30606
30624
 
30607
30625
  "use strict";
30608
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.421","description":"The Squid CLI","main":"dist/index.js","scripts":{"start":"node dist/index.js","start-ts":"ts-node -r tsconfig-paths/register src/index.ts","prebuild":"rimraf dist","build":"webpack --mode=production","build:dev":"webpack --mode=development","lint":"eslint","link":"npm run build && chmod 755 dist/index.js && npm link","watch":"webpack --watch","deploy":"npm run build && npm pack --silent | xargs -I {} mv {} package.tgz && npm install -g package.tgz && rm -rf package.tgz","publish:public":"npm run build && npm publish --access public"},"files":["dist/**/*"],"bin":{"squid":"dist/index.js"},"keywords":[],"author":"","license":"ISC","engines":{"node":">=18.0.0"},"dependencies":{"@squidcloud/local-backend":"^1.0.421","adm-zip":"^0.5.16","copy-webpack-plugin":"^12.0.2","decompress":"^4.2.1","nodemon":"^3.1.9","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.1.0","webpack":"^5.101.3","zip-webpack-plugin":"^4.0.1"},"devDependencies":{"@types/adm-zip":"^0.5.7","@types/decompress":"^4.2.7","@types/node":"^20.19.9","terminal-link":"^3.0.0"}}');
30626
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.422","description":"The Squid CLI","main":"dist/index.js","scripts":{"start":"node dist/index.js","start-ts":"ts-node -r tsconfig-paths/register src/index.ts","prebuild":"rimraf dist","build":"webpack --mode=production","build:dev":"webpack --mode=development","lint":"eslint","link":"npm run build && chmod 755 dist/index.js && npm link","watch":"webpack --watch","deploy":"npm run build && npm pack --silent | xargs -I {} mv {} package.tgz && npm install -g package.tgz && rm -rf package.tgz","publish:public":"npm run build && npm publish --access public"},"files":["dist/**/*"],"bin":{"squid":"dist/index.js"},"keywords":[],"author":"","license":"ISC","engines":{"node":">=18.0.0"},"dependencies":{"@squidcloud/local-backend":"^1.0.422","adm-zip":"^0.5.16","copy-webpack-plugin":"^12.0.2","decompress":"^4.2.1","nodemon":"^3.1.9","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.1.0","webpack":"^5.101.3","zip-webpack-plugin":"^4.0.1"},"devDependencies":{"@types/adm-zip":"^0.5.7","@types/decompress":"^4.2.7","@types/node":"^20.19.9","terminal-link":"^3.0.0"}}');
30609
30627
 
30610
30628
  /***/ }),
30611
30629
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/cli",
3
- "version": "1.0.421",
3
+ "version": "1.0.422",
4
4
  "description": "The Squid CLI",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -28,7 +28,7 @@
28
28
  "node": ">=18.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@squidcloud/local-backend": "^1.0.421",
31
+ "@squidcloud/local-backend": "^1.0.422",
32
32
  "adm-zip": "^0.5.16",
33
33
  "copy-webpack-plugin": "^12.0.2",
34
34
  "decompress": "^4.2.1",