@squidcloud/cli 1.0.465 → 1.0.467

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 +4 -33
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -31734,7 +31734,7 @@ exports.GROK_CHAT_MODEL_NAMES = ['grok-4', 'grok-4-1-fast-reasoning', 'grok-4-1-
31734
31734
  */
31735
31735
  exports.ANTHROPIC_CHAT_MODEL_NAMES = [
31736
31736
  'claude-haiku-4-5-20251001',
31737
- 'claude-opus-4-7',
31737
+ 'claude-opus-4-8',
31738
31738
  'claude-sonnet-4-6',
31739
31739
  ];
31740
31740
  /**
@@ -32442,39 +32442,20 @@ function getLogPrefixString() {
32442
32442
 
32443
32443
  Object.defineProperty(exports, "__esModule", ({ value: true }));
32444
32444
  exports.KOTLIN_CONTROLLERS = void 0;
32445
- exports.isKotlinPath = isKotlinPath;
32446
32445
  exports.getEnvironmentPrefix = getEnvironmentPrefix;
32447
32446
  exports.getApplicationUrl = getApplicationUrl;
32448
32447
  exports.KOTLIN_CONTROLLERS = [
32449
32448
  'api',
32450
32449
  'application',
32451
32450
  'auth',
32452
- 'management-secret',
32453
32451
  'mutation',
32454
32452
  'native-query',
32455
32453
  'query',
32456
32454
  'queue',
32457
- 'scheduler',
32458
32455
  'secret',
32456
+ 'ws',
32459
32457
  'notification',
32460
- // Note: WebSocket routing is path-specific and handled separately in `isKotlinPath` below.
32461
- // /ws/general, /ws/localdev → TypeScript core (port 8000)
32462
- // /ws/squidlet → Kotlin core (port 8001) — internal RPC for SquidletService
32463
32458
  ];
32464
- /**
32465
- * Returns true if the given path is served by Kotlin core in local dev (port 8001).
32466
- * Encodes the WebSocket split: `/ws/squidlet` stays on Kotlin while other `/ws/*` paths
32467
- * (general, localdev) are owned by the TypeScript core after the migration.
32468
- */
32469
- function isKotlinPath(path) {
32470
- const cleaned = path.replace(/^\/+/, '');
32471
- const segments = cleaned.split('/');
32472
- const first = segments[0] || '';
32473
- if (first === 'ws') {
32474
- return segments[1] === 'squidlet';
32475
- }
32476
- return exports.KOTLIN_CONTROLLERS.includes(first);
32477
- }
32478
32459
  function getEnvironmentPrefix(shard, region, cloudId, stage) {
32479
32460
  if (region === 'local') {
32480
32461
  return 'local';
@@ -32498,17 +32479,7 @@ function getApplicationUrl(environmentPrefix, appId, path, appIdPlaceholder, env
32498
32479
  let port = '';
32499
32480
  if (isLocal(environmentPrefix)) {
32500
32481
  protocol = 'http';
32501
- port = forceKotlin || isKotlinPath(path) ? '8001' : '8000';
32502
- // Test-only override for `/ws/general` during the WS migration. Lets e2e specs run the same
32503
- // test body against both the Kotlin (8001) and TS (8000) WS servers via describe.each (see
32504
- // squid-e2e WS_TARGETS pattern). Scoped to `/ws/general` so it cannot accidentally reroute
32505
- // `/ws/squidlet` (Kotlin-only) or `/ws/localdev` (TS-only) during a test run.
32506
- if (typeof process !== 'undefined') {
32507
- const wsForcePort = forceKotlin ? undefined : process.env['SQUID_LOCAL_WS_FORCE_PORT'];
32508
- if (wsForcePort && path.replace(/^\/+/, '').startsWith('ws/general')) {
32509
- port = wsForcePort;
32510
- }
32511
- }
32482
+ port = exports.KOTLIN_CONTROLLERS.includes(path.replace(/^\//, '').split('/')[0] || '') || forceKotlin ? '8001' : '8000';
32512
32483
  if (isAndroid(environmentPrefix)) {
32513
32484
  host = '10.0.2.2';
32514
32485
  }
@@ -39395,7 +39366,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"seek-bzip","version":"1.0.6",
39395
39366
  (module) {
39396
39367
 
39397
39368
  "use strict";
39398
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.465","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.465","adm-zip":"^0.5.16","copy-webpack-plugin":"^14.0.0","decompress":"^4.2.1","logpipes":"^1.11.0","nodemon":"^3.1.9","terser-webpack-plugin":"^5.5.0","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.1.0","webpack":"^5.106.2","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"}}');
39369
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.467","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.467","adm-zip":"^0.5.16","copy-webpack-plugin":"^14.0.0","decompress":"^4.2.1","logpipes":"^1.11.0","nodemon":"^3.1.9","terser-webpack-plugin":"^5.5.0","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.1.0","webpack":"^5.106.2","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"}}');
39399
39370
 
39400
39371
  /***/ }
39401
39372
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/cli",
3
- "version": "1.0.465",
3
+ "version": "1.0.467",
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.465",
31
+ "@squidcloud/local-backend": "^1.0.467",
32
32
  "adm-zip": "^0.5.16",
33
33
  "copy-webpack-plugin": "^14.0.0",
34
34
  "decompress": "^4.2.1",