@squidcloud/cli 1.0.424 → 1.0.426

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.
package/dist/index.js CHANGED
@@ -4426,9 +4426,30 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
4426
4426
 
4427
4427
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4428
4428
  exports.parseSquidRegion = parseSquidRegion;
4429
+ exports.isDefaultOrLocalRegion = isDefaultOrLocalRegion;
4430
+ /**
4431
+ * Checks if a string is a valid stage name.
4432
+ *
4433
+ * @param possibleStage - The string to check
4434
+ * @returns true if the string is a valid stage name
4435
+ */
4429
4436
  function isStage(possibleStage) {
4430
4437
  return ['local', 'sandbox', 'staging'].includes(possibleStage);
4431
4438
  }
4439
+ /**
4440
+ * Parses a Squid region string into its component parts.
4441
+ *
4442
+ * Possible forms:
4443
+ * - [region, cloudId] (prod, no shard)
4444
+ * - [region, cloudId, stage] (non-prod, no shard)
4445
+ * - [shard, region, cloudId] (prod, with shard)
4446
+ * - [shard, region, cloudId, stage] (non-prod, with shard)
4447
+ * - "local" (special case)
4448
+ *
4449
+ * @param input - The region string to parse (e.g., "us-east-1.aws", "ntt.us-east-1.aws", "local")
4450
+ * @returns SquidRegionParts containing parsed components
4451
+ * @throws Error if the format is invalid
4452
+ */
4432
4453
  function parseSquidRegion(input) {
4433
4454
  if (input === 'local') {
4434
4455
  return {
@@ -4474,6 +4495,13 @@ function parseSquidRegion(input) {
4474
4495
  }
4475
4496
  return { cloudId: cloudId, region, shard, stage: stage };
4476
4497
  }
4498
+ function isDefaultOrLocalRegion(region) {
4499
+ if (!region) {
4500
+ return true;
4501
+ }
4502
+ const { shard } = parseSquidRegion(region);
4503
+ return !shard || shard === 'default' || shard === 'local';
4504
+ }
4477
4505
 
4478
4506
 
4479
4507
  /***/ }),
@@ -11430,10 +11458,12 @@ exports.CONNECTOR_IDS = [
11430
11458
  'confluence',
11431
11459
  'cotomi',
11432
11460
  'essentials',
11461
+ 'github',
11433
11462
  'google_calendar',
11434
11463
  'google_drive',
11435
11464
  'hubspot',
11436
11465
  'jira',
11466
+ 'linear',
11437
11467
  'mail',
11438
11468
  'salesforce',
11439
11469
  'servicenow',
@@ -23456,6 +23486,7 @@ exports.INTEGRATION_TYPES = [
23456
23486
  'firebase_auth',
23457
23487
  'firestore',
23458
23488
  'gcs',
23489
+ 'github',
23459
23490
  'google_calendar',
23460
23491
  'google_docs',
23461
23492
  'google_drive',
@@ -23505,6 +23536,7 @@ exports.DATA_INTEGRATION_TYPES = [
23505
23536
  'built_in_db',
23506
23537
  'clickhouse',
23507
23538
  'cockroach',
23539
+ 'dynamodb',
23508
23540
  'mongo',
23509
23541
  'mssql',
23510
23542
  'databricks',
@@ -23530,7 +23562,7 @@ exports.AUTH_INTEGRATION_TYPES = [
23530
23562
  'firebase_auth',
23531
23563
  ];
23532
23564
  /** Supported integration types for GraphQL-based services. */
23533
- exports.GRAPHQL_INTEGRATION_TYPES = ['graphql', 'linear'];
23565
+ exports.GRAPHQL_INTEGRATION_TYPES = ['graphql'];
23534
23566
  /** Supported integration types for HTTP-based services. */
23535
23567
  exports.HTTP_INTEGRATION_TYPES = ['api'];
23536
23568
  /** Supported schema types for integrations */
@@ -25127,56 +25159,27 @@ exports.AI_PROVIDER_TYPES = [
25127
25159
  'external',
25128
25160
  ];
25129
25161
  /**
25162
+ * Public OpenAI chat model names (active models only).
25130
25163
  * @category AI
25131
25164
  */
25132
- exports.OPENAI_CHAT_MODEL_NAMES = [
25133
- 'o1',
25134
- 'o3',
25135
- 'o3-mini',
25136
- 'o4-mini',
25137
- 'gpt-5',
25138
- 'gpt-5-mini',
25139
- 'gpt-5-nano',
25140
- 'gpt-5.1',
25141
- 'gpt-4.1',
25142
- 'gpt-4.1-mini',
25143
- 'gpt-4.1-nano',
25144
- 'gpt-4o',
25145
- 'gpt-4o-mini',
25146
- ];
25165
+ exports.OPENAI_CHAT_MODEL_NAMES = ['gpt-5-mini', 'gpt-5-nano', 'gpt-5.2', 'gpt-5.2-pro'];
25147
25166
  /**
25167
+ * Public Gemini chat model names (active models only).
25148
25168
  * @category AI
25149
25169
  */
25150
- exports.GEMINI_CHAT_MODEL_NAMES = ['gemini-2.5-pro', 'gemini-2.5-flash', 'gemini-2.5-flash-lite'];
25170
+ exports.GEMINI_CHAT_MODEL_NAMES = ['gemini-3-pro', 'gemini-3-flash', 'gemini-2.5-flash-lite'];
25151
25171
  /**
25152
- * Notes:
25153
- * - 'grok-3-mini' model os ~10x less expensive than 'grok-3'.
25154
- * - '*-fast' models are ~2x more expensive than non-fast variants and only marginally faster.
25155
- * - 'grok-4' cost is comparable to 'grok-3-fast'.
25156
- *
25172
+ * Public Grok chat model names (active models only).
25157
25173
  * @category AI
25158
25174
  */
25159
- exports.GROK_CHAT_MODEL_NAMES = [
25160
- 'grok-3',
25161
- 'grok-3-fast',
25162
- 'grok-3-mini',
25163
- 'grok-3-mini-fast',
25164
- 'grok-4',
25165
- 'grok-4-fast-reasoning',
25166
- 'grok-4-fast-non-reasoning',
25167
- 'grok-4-1-fast-reasoning',
25168
- 'grok-4-1-fast-non-reasoning',
25169
- ];
25175
+ exports.GROK_CHAT_MODEL_NAMES = ['grok-4', 'grok-4-1-fast-reasoning', 'grok-4-1-fast-non-reasoning'];
25170
25176
  /**
25177
+ * Public Anthropic chat model names (active models only).
25171
25178
  * @category AI
25172
25179
  */
25173
25180
  exports.ANTHROPIC_CHAT_MODEL_NAMES = [
25174
- 'claude-3-7-sonnet-latest',
25175
25181
  'claude-haiku-4-5-20251001',
25176
- 'claude-opus-4-20250514',
25177
- 'claude-opus-4-1-20250805',
25178
25182
  'claude-opus-4-5-20251101',
25179
- 'claude-sonnet-4-20250514',
25180
25183
  'claude-sonnet-4-5-20250929',
25181
25184
  ];
25182
25185
  /**
@@ -25189,9 +25192,7 @@ exports.VENDOR_AI_CHAT_MODEL_NAMES = [
25189
25192
  ...exports.GEMINI_CHAT_MODEL_NAMES,
25190
25193
  ...exports.GROK_CHAT_MODEL_NAMES,
25191
25194
  ];
25192
- /**
25193
- * Check if the given model name is a global AI chat model name.
25194
- */
25195
+ /** Checks if the given model name is a global AI chat model name. */
25195
25196
  function isVendorAiChatModelName(modelName) {
25196
25197
  return exports.VENDOR_AI_CHAT_MODEL_NAMES.includes(modelName);
25197
25198
  }
@@ -30624,7 +30625,7 @@ function exitWithError(...messages) {
30624
30625
  /***/ ((module) => {
30625
30626
 
30626
30627
  "use strict";
30627
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.424","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.424","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"}}');
30628
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.426","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.426","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"}}');
30628
30629
 
30629
30630
  /***/ }),
30630
30631
 
@@ -942,48 +942,48 @@ const result = await squid.executeWebhook<Response>('github-events', {
942
942
 
943
943
  ### AI - Supported Models
944
944
 
945
- Squid supports multiple AI providers and models for different use cases:
945
+ Squid supports multiple AI providers and models. The available models are defined as TypeScript constants in the SDK and can be imported from `@squidcloud/client`:
946
946
 
947
- **Chat Models** (for AI Agents, AI Query, etc.):
948
-
949
- *OpenAI:*
950
- - `o1`, `o3`, `o3-mini`, `o4-mini`
951
- - `gpt-5`, `gpt-5-mini`, `gpt-5-nano`
952
- - `gpt-4.1` (default), `gpt-4.1-mini`, `gpt-4.1-nano`
953
- - `gpt-4o`, `gpt-4o-mini`
954
-
955
- *Anthropic (Claude):*
956
- - `claude-3-7-sonnet-latest`
957
- - `claude-haiku-4-5-20251001`
958
- - `claude-opus-4-20250514`, `claude-opus-4-1-20250805`, `claude-opus-4-5-20251101`
959
- - `claude-sonnet-4-20250514`, `claude-sonnet-4-5-20250929`
960
-
961
- *Google (Gemini):*
962
- - `gemini-2.5-pro`, `gemini-2.5-flash`, `gemini-2.5-flash-lite`
947
+ ```typescript
948
+ import {
949
+ // Chat model constants (by provider)
950
+ OPENAI_CHAT_MODEL_NAMES,
951
+ ANTHROPIC_CHAT_MODEL_NAMES,
952
+ GEMINI_CHAT_MODEL_NAMES,
953
+ GROK_CHAT_MODEL_NAMES,
954
+ VENDOR_AI_CHAT_MODEL_NAMES, // All chat models combined
963
955
 
964
- *xAI (Grok):*
965
- - `grok-3`, `grok-3-fast`, `grok-3-mini`, `grok-3-mini-fast`
966
- - `grok-4`, `grok-4-fast-reasoning`, `grok-4-fast-non-reasoning`
967
- - Note: `grok-3-mini` is ~10x less expensive than `grok-3`
968
- - Note: `*-fast` models are ~2x more expensive and only marginally faster
956
+ // Embedding model constants
957
+ AI_EMBEDDINGS_MODEL_NAMES,
958
+ OPENAI_EMBEDDINGS_MODEL_NAMES,
959
+ VOYAGE_EMBEDDING_MODEL_NAMES,
969
960
 
970
- **Embedding Models** (for Knowledge Bases):
971
- - `text-embedding-3-small` (OpenAI, default) - 8,192 token limit
972
- - `voyage-3-large` (Voyage) - 32,000 token limit
961
+ // Image generation model constants
962
+ AI_IMAGE_MODEL_NAMES,
963
+ OPENAI_IMAGE_MODEL_NAMES,
964
+ STABLE_DIFFUSION_MODEL_NAMES,
965
+ FLUX_MODEL_NAMES,
973
966
 
974
- **Image Generation Models:**
975
- - `dall-e-3` (OpenAI)
976
- - `stable-diffusion-core` (Stability)
977
- - `flux-pro-1.1`, `flux-kontext-pro` (Flux)
967
+ // Audio model constants
968
+ AI_AUDIO_TRANSCRIPTION_MODEL_NAMES,
969
+ OPENAI_AUDIO_CREATE_SPEECH_MODEL_NAMES,
978
970
 
979
- **Audio Models:**
971
+ // Type definitions
972
+ AiChatModelName,
973
+ AiEmbeddingsModelName,
974
+ AiImageModelName,
975
+ AiAudioTranscriptionModelName,
976
+ AiAudioCreateSpeechModelName,
977
+ } from '@squidcloud/client';
978
+ ```
980
979
 
981
- *Transcription:*
982
- - `whisper-1`
983
- - `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`
980
+ These constants are the source of truth for available models. Check your installed SDK version for the current list of supported models.
984
981
 
985
- *Text-to-Speech:*
986
- - `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`
982
+ **Model Categories:**
983
+ - **Chat Models**: Used for AI Agents, AI Query, etc. (OpenAI, Anthropic, Gemini, Grok)
984
+ - **Embedding Models**: Used for Knowledge Bases (OpenAI, Voyage)
985
+ - **Image Generation Models**: Used for image creation (DALL-E, Stable Diffusion, Flux)
986
+ - **Audio Models**: Transcription (Whisper, GPT-4o) and Text-to-Speech (TTS-1, GPT-4o-mini-tts)
987
987
 
988
988
  ### AI - Agents
989
989
 
@@ -1020,7 +1020,7 @@ await myAgent.upsert({
1020
1020
  isPublic: false, // Whether the agent is publicly accessible
1021
1021
  auditLog: true, // Enable audit logging for compliance
1022
1022
  options: {
1023
- model: 'gpt-4o', // or 'claude-sonnet-4-5-20250929', 'gemini-2.5-flash'
1023
+ model: 'gpt-4o', // or 'claude-sonnet-4-5-20250929', 'gemini-3-flash'
1024
1024
  instructions: 'You are a helpful customer support assistant. Be concise and professional.',
1025
1025
  temperature: 0.7
1026
1026
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/cli",
3
- "version": "1.0.424",
3
+ "version": "1.0.426",
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.424",
31
+ "@squidcloud/local-backend": "^1.0.426",
32
32
  "adm-zip": "^0.5.16",
33
33
  "copy-webpack-plugin": "^12.0.2",
34
34
  "decompress": "^4.2.1",