@squidcloud/cli 1.0.423 → 1.0.425
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
|
/***/ }),
|
|
@@ -11434,6 +11462,7 @@ exports.CONNECTOR_IDS = [
|
|
|
11434
11462
|
'google_drive',
|
|
11435
11463
|
'hubspot',
|
|
11436
11464
|
'jira',
|
|
11465
|
+
'linear',
|
|
11437
11466
|
'mail',
|
|
11438
11467
|
'salesforce',
|
|
11439
11468
|
'servicenow',
|
|
@@ -23505,6 +23534,7 @@ exports.DATA_INTEGRATION_TYPES = [
|
|
|
23505
23534
|
'built_in_db',
|
|
23506
23535
|
'clickhouse',
|
|
23507
23536
|
'cockroach',
|
|
23537
|
+
'dynamodb',
|
|
23508
23538
|
'mongo',
|
|
23509
23539
|
'mssql',
|
|
23510
23540
|
'databricks',
|
|
@@ -23530,7 +23560,7 @@ exports.AUTH_INTEGRATION_TYPES = [
|
|
|
23530
23560
|
'firebase_auth',
|
|
23531
23561
|
];
|
|
23532
23562
|
/** Supported integration types for GraphQL-based services. */
|
|
23533
|
-
exports.GRAPHQL_INTEGRATION_TYPES = ['graphql'
|
|
23563
|
+
exports.GRAPHQL_INTEGRATION_TYPES = ['graphql'];
|
|
23534
23564
|
/** Supported integration types for HTTP-based services. */
|
|
23535
23565
|
exports.HTTP_INTEGRATION_TYPES = ['api'];
|
|
23536
23566
|
/** Supported schema types for integrations */
|
|
@@ -25127,56 +25157,27 @@ exports.AI_PROVIDER_TYPES = [
|
|
|
25127
25157
|
'external',
|
|
25128
25158
|
];
|
|
25129
25159
|
/**
|
|
25160
|
+
* Public OpenAI chat model names (active models only).
|
|
25130
25161
|
* @category AI
|
|
25131
25162
|
*/
|
|
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
|
-
];
|
|
25163
|
+
exports.OPENAI_CHAT_MODEL_NAMES = ['gpt-5-mini', 'gpt-5-nano', 'gpt-5.2', 'gpt-5.2-pro'];
|
|
25147
25164
|
/**
|
|
25165
|
+
* Public Gemini chat model names (active models only).
|
|
25148
25166
|
* @category AI
|
|
25149
25167
|
*/
|
|
25150
|
-
exports.GEMINI_CHAT_MODEL_NAMES = ['gemini-
|
|
25168
|
+
exports.GEMINI_CHAT_MODEL_NAMES = ['gemini-3-pro', 'gemini-3-flash', 'gemini-2.5-flash-lite'];
|
|
25151
25169
|
/**
|
|
25152
|
-
*
|
|
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
|
-
*
|
|
25170
|
+
* Public Grok chat model names (active models only).
|
|
25157
25171
|
* @category AI
|
|
25158
25172
|
*/
|
|
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
|
-
];
|
|
25173
|
+
exports.GROK_CHAT_MODEL_NAMES = ['grok-4', 'grok-4-1-fast-reasoning', 'grok-4-1-fast-non-reasoning'];
|
|
25170
25174
|
/**
|
|
25175
|
+
* Public Anthropic chat model names (active models only).
|
|
25171
25176
|
* @category AI
|
|
25172
25177
|
*/
|
|
25173
25178
|
exports.ANTHROPIC_CHAT_MODEL_NAMES = [
|
|
25174
|
-
'claude-3-7-sonnet-latest',
|
|
25175
25179
|
'claude-haiku-4-5-20251001',
|
|
25176
|
-
'claude-opus-4-20250514',
|
|
25177
|
-
'claude-opus-4-1-20250805',
|
|
25178
25180
|
'claude-opus-4-5-20251101',
|
|
25179
|
-
'claude-sonnet-4-20250514',
|
|
25180
25181
|
'claude-sonnet-4-5-20250929',
|
|
25181
25182
|
];
|
|
25182
25183
|
/**
|
|
@@ -25189,9 +25190,7 @@ exports.VENDOR_AI_CHAT_MODEL_NAMES = [
|
|
|
25189
25190
|
...exports.GEMINI_CHAT_MODEL_NAMES,
|
|
25190
25191
|
...exports.GROK_CHAT_MODEL_NAMES,
|
|
25191
25192
|
];
|
|
25192
|
-
/**
|
|
25193
|
-
* Check if the given model name is a global AI chat model name.
|
|
25194
|
-
*/
|
|
25193
|
+
/** Checks if the given model name is a global AI chat model name. */
|
|
25195
25194
|
function isVendorAiChatModelName(modelName) {
|
|
25196
25195
|
return exports.VENDOR_AI_CHAT_MODEL_NAMES.includes(modelName);
|
|
25197
25196
|
}
|
|
@@ -30624,7 +30623,7 @@ function exitWithError(...messages) {
|
|
|
30624
30623
|
/***/ ((module) => {
|
|
30625
30624
|
|
|
30626
30625
|
"use strict";
|
|
30627
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.
|
|
30626
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.425","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.425","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
30627
|
|
|
30629
30628
|
/***/ }),
|
|
30630
30629
|
|
|
@@ -959,7 +959,7 @@ Squid supports multiple AI providers and models for different use cases:
|
|
|
959
959
|
- `claude-sonnet-4-20250514`, `claude-sonnet-4-5-20250929`
|
|
960
960
|
|
|
961
961
|
*Google (Gemini):*
|
|
962
|
-
- `gemini-
|
|
962
|
+
- `gemini-3-pro`, `gemini-3-flash`, `gemini-2.5-flash-lite`
|
|
963
963
|
|
|
964
964
|
*xAI (Grok):*
|
|
965
965
|
- `grok-3`, `grok-3-fast`, `grok-3-mini`, `grok-3-mini-fast`
|
|
@@ -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-
|
|
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.
|
|
3
|
+
"version": "1.0.425",
|
|
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.
|
|
31
|
+
"@squidcloud/local-backend": "^1.0.425",
|
|
32
32
|
"adm-zip": "^0.5.16",
|
|
33
33
|
"copy-webpack-plugin": "^12.0.2",
|
|
34
34
|
"decompress": "^4.2.1",
|