@squidcloud/cli 1.0.467 → 1.0.469

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 +46 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -31701,6 +31701,7 @@ exports.AI_PROVIDER_TYPES = [
31701
31701
  'anthropic',
31702
31702
  'bedrock',
31703
31703
  'claude-code',
31704
+ 'codex',
31704
31705
  'cohere',
31705
31706
  'flux',
31706
31707
  'gemini',
@@ -31717,12 +31718,12 @@ exports.AI_PROVIDER_TYPES = [
31717
31718
  * Public OpenAI chat model names (active models only).
31718
31719
  * @category AI
31719
31720
  */
31720
- exports.OPENAI_CHAT_MODEL_NAMES = ['gpt-5.4', 'gpt-5.4-mini', 'gpt-5.4-nano'];
31721
+ exports.OPENAI_CHAT_MODEL_NAMES = ['gpt-5.4-mini', 'gpt-5.4-nano', 'gpt-5.5', 'gpt-5.5-pro'];
31721
31722
  /**
31722
31723
  * Public Gemini chat model names (active models only).
31723
31724
  * @category AI
31724
31725
  */
31725
- exports.GEMINI_CHAT_MODEL_NAMES = ['gemini-3.1-pro', 'gemini-3.5-flash'];
31726
+ exports.GEMINI_CHAT_MODEL_NAMES = ['gemini-3.1-pro', 'gemini-3.5-flash', 'gemini-3.1-flash-lite'];
31726
31727
  /**
31727
31728
  * Public Grok chat model names (active models only).
31728
31729
  * @category AI
@@ -32442,6 +32443,7 @@ function getLogPrefixString() {
32442
32443
 
32443
32444
  Object.defineProperty(exports, "__esModule", ({ value: true }));
32444
32445
  exports.KOTLIN_CONTROLLERS = void 0;
32446
+ exports.isKotlinPath = isKotlinPath;
32445
32447
  exports.getEnvironmentPrefix = getEnvironmentPrefix;
32446
32448
  exports.getApplicationUrl = getApplicationUrl;
32447
32449
  exports.KOTLIN_CONTROLLERS = [
@@ -32453,9 +32455,25 @@ exports.KOTLIN_CONTROLLERS = [
32453
32455
  'query',
32454
32456
  'queue',
32455
32457
  'secret',
32456
- 'ws',
32457
32458
  'notification',
32459
+ // Note: WebSocket routing is path-specific and handled separately in `isKotlinPath` below.
32460
+ // /ws/general, /ws/localdev → TypeScript core (port 8000)
32461
+ // /ws/squidlet → Kotlin core (port 8001) — internal RPC for SquidletService
32458
32462
  ];
32463
+ /**
32464
+ * Returns true if the given path is served by Kotlin core in local dev (port 8001).
32465
+ * Encodes the WebSocket split: `/ws/squidlet` stays on Kotlin while other `/ws/*` paths
32466
+ * (general, localdev) are owned by the TypeScript core after the migration.
32467
+ */
32468
+ function isKotlinPath(path) {
32469
+ const cleaned = path.replace(/^\/+/, '');
32470
+ const segments = cleaned.split('/');
32471
+ const first = segments[0] || '';
32472
+ if (first === 'ws') {
32473
+ return segments[1] === 'squidlet';
32474
+ }
32475
+ return exports.KOTLIN_CONTROLLERS.includes(first);
32476
+ }
32459
32477
  function getEnvironmentPrefix(shard, region, cloudId, stage) {
32460
32478
  if (region === 'local') {
32461
32479
  return 'local';
@@ -32479,7 +32497,17 @@ function getApplicationUrl(environmentPrefix, appId, path, appIdPlaceholder, env
32479
32497
  let port = '';
32480
32498
  if (isLocal(environmentPrefix)) {
32481
32499
  protocol = 'http';
32482
- port = exports.KOTLIN_CONTROLLERS.includes(path.replace(/^\//, '').split('/')[0] || '') || forceKotlin ? '8001' : '8000';
32500
+ port = forceKotlin || isKotlinPath(path) ? '8001' : '8000';
32501
+ // Test-only override for `/ws/general` during the WS migration. Lets e2e specs run the same
32502
+ // test body against both the Kotlin (8001) and TS (8000) WS servers via describe.each (see
32503
+ // squid-e2e WS_TARGETS pattern). Scoped to `/ws/general` so it cannot accidentally reroute
32504
+ // `/ws/squidlet` (Kotlin-only) or `/ws/localdev` (TS-only) during a test run.
32505
+ if (typeof process !== 'undefined') {
32506
+ const wsForcePort = forceKotlin ? undefined : process.env['SQUID_LOCAL_WS_FORCE_PORT'];
32507
+ if (wsForcePort && path.replace(/^\/+/, '').startsWith('ws/general')) {
32508
+ port = wsForcePort;
32509
+ }
32510
+ }
32483
32511
  if (isAndroid(environmentPrefix)) {
32484
32512
  host = '10.0.2.2';
32485
32513
  }
@@ -33845,8 +33873,14 @@ function run() {
33845
33873
  yargs_1.default.parse();
33846
33874
  }
33847
33875
  function setupStartCommand(yargs) {
33848
- yargs.command('start', 'Starts the local development server', () => void 0, async () => {
33849
- await (0, start_1.start)();
33876
+ yargs.command('start', 'Starts the local development server', yargs => {
33877
+ yargs.option('printBundle', {
33878
+ type: 'boolean',
33879
+ description: 'Print the full application bundle data on startup, not just the webhooks',
33880
+ default: false,
33881
+ });
33882
+ }, async (argv) => {
33883
+ await (0, start_1.start)({ printBundle: !!argv.printBundle });
33850
33884
  });
33851
33885
  }
33852
33886
  function setupDeployCommand(yargs) {
@@ -34325,9 +34359,13 @@ const logging_1 = __webpack_require__(443);
34325
34359
  const process_utils_1 = __webpack_require__(8251);
34326
34360
  const validate_1 = __webpack_require__(2246);
34327
34361
  const version_check_1 = __webpack_require__(4827);
34328
- async function start() {
34362
+ async function start(options = {}) {
34329
34363
  const projectInfo = await (0, validate_1.validateSquidProject)();
34330
34364
  const versionCheckPromise = (0, version_check_1.checkCliVersion)(cliPackageJson.version);
34365
+ // Propagate to the spawned local-backend process, which inherits process.env.
34366
+ if (options.printBundle) {
34367
+ process.env['SQUID_PRINT_BUNDLE'] = 'true';
34368
+ }
34331
34369
  console.log((0, logging_1.primary)('Please note:'), 'to debug your application, you need to run the "start" npm script in your IDE in debug mode');
34332
34370
  await (0, version_check_1.displayVersionWarningIfOutdated)(versionCheckPromise);
34333
34371
  (0, update_skills_1.displaySkillsWarningIfOutdated)();
@@ -39366,7 +39404,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"seek-bzip","version":"1.0.6",
39366
39404
  (module) {
39367
39405
 
39368
39406
  "use strict";
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"}}');
39407
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.469","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.469","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"}}');
39370
39408
 
39371
39409
  /***/ }
39372
39410
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/cli",
3
- "version": "1.0.467",
3
+ "version": "1.0.469",
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.467",
31
+ "@squidcloud/local-backend": "^1.0.469",
32
32
  "adm-zip": "^0.5.16",
33
33
  "copy-webpack-plugin": "^14.0.0",
34
34
  "decompress": "^4.2.1",