@squidcloud/cli 1.0.438 → 1.0.439

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 +7 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3018,8 +3018,11 @@ class TsoaUtils {
3018
3018
  console.log(`Original middlewareTemplate: ${config.routes.middlewareTemplate}`);
3019
3019
  }
3020
3020
  if (localBackendModule) {
3021
- // Check if the file is from the local-backend package (it would contain node_modules/@squidcloud/local-backend)
3022
- if (file.match(/@squidcloud[/\\]local-backend/) && file.includes('tsoa.json')) {
3021
+ // Check if the file is from the local-backend package
3022
+ // In published packages: path contains node_modules/@squidcloud/local-backend
3023
+ // In dev mode with symlinks: path contains local-backend/dist/local-backend (the real path after symlink resolution)
3024
+ const isFromLocalBackend = file.match(/@squidcloud[/\\]local-backend/) || file.match(/local-backend[/\\]dist[/\\]local-backend/);
3025
+ if (isFromLocalBackend && file.includes('tsoa.json')) {
3023
3026
  // Find package root (the module path points to index.js)
3024
3027
  // Example module path: .../node_modules/@squidcloud/local-backend/dist/local-backend/src/index.js
3025
3028
  // Next, we need to go up 4 levels (dist/local-backend/src/index.js) to reach: 'local-backend' root dir.
@@ -25174,6 +25177,7 @@ exports.RERANK_PROVIDERS = ['cohere', 'none'];
25174
25177
  exports.AI_PROVIDER_TYPES = [
25175
25178
  'anthropic',
25176
25179
  'bedrock',
25180
+ 'claude-code',
25177
25181
  'flux',
25178
25182
  'gemini',
25179
25183
  'openai',
@@ -30666,7 +30670,7 @@ function exitWithError(...messages) {
30666
30670
  (module) {
30667
30671
 
30668
30672
  "use strict";
30669
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.438","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.438","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"}}');
30673
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.439","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.439","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"}}');
30670
30674
 
30671
30675
  /***/ },
30672
30676
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/cli",
3
- "version": "1.0.438",
3
+ "version": "1.0.439",
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.438",
31
+ "@squidcloud/local-backend": "^1.0.439",
32
32
  "adm-zip": "^0.5.16",
33
33
  "copy-webpack-plugin": "^12.0.2",
34
34
  "decompress": "^4.2.1",