@squidcloud/cli 1.0.442 → 1.0.444

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
@@ -29629,6 +29629,7 @@ exports.AI_PROVIDER_TYPES = [
29629
29629
  'anthropic',
29630
29630
  'bedrock',
29631
29631
  'claude-code',
29632
+ 'cohere',
29632
29633
  'flux',
29633
29634
  'gemini',
29634
29635
  'openai',
@@ -36710,7 +36711,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"seek-bzip","version":"1.0.6",
36710
36711
  (module) {
36711
36712
 
36712
36713
  "use strict";
36713
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.442","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.442","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"}}');
36714
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.444","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.444","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"}}');
36714
36715
 
36715
36716
  /***/ }
36716
36717
 
@@ -231,16 +231,15 @@ const { organizationId } = await client.createOrganization({
231
231
  console.log('Created org:', organizationId);
232
232
 
233
233
  // Create an application in the organization
234
- const { appId, apiKey } = await client.createApplication({
234
+ const { appId, devApiKey, prodApiKey } = await client.createApplication({
235
235
  organizationId,
236
236
  name: 'My Application',
237
- cloudId: 'aws', // 'aws' | 'gcp' | 'azure'
238
- region: 'us-east-1' // Cloud region (e.g., 'us-east-1', 'us-central1')
237
+ region: 'us-east-1.aws' // SquidRegion (e.g., 'us-east-1.aws', 'us-central1.gcp')
239
238
  });
240
- console.log('Created app:', appId, 'with apiKey', apiKey);
239
+ console.log('Created app:', appId);
241
240
 
242
241
  // Delete an application
243
- await client.deleteApplication({ appId });
242
+ await client.deleteApplication(appId);
244
243
  ```
245
244
 
246
245
  **Available Methods:**
@@ -248,8 +247,8 @@ await client.deleteApplication({ appId });
248
247
  | Method | Description |
249
248
  |--------|-------------|
250
249
  | `createOrganization({ name })` | Creates a new organization. User becomes admin. |
251
- | `createApplication({ organizationId, name, cloudId, region })` | Creates an application in an organization. |
252
- | `deleteApplication({ appId })` | Deletes an application. Requires admin role. |
250
+ | `createApplication({ organizationId, name, region })` | Creates an application in an organization. Returns `{ appId, devApiKey, prodApiKey }`. |
251
+ | `deleteApplication(appId)` | Deletes an application. Requires admin role. |
253
252
 
254
253
  **TypeScript Types:**
255
254
 
@@ -257,12 +256,10 @@ await client.deleteApplication({ appId });
257
256
  import {
258
257
  ManagementClient,
259
258
  ManagementClientOptions,
260
- ManagementCloudId, // 'aws' | 'gcp' | 'azure'
261
259
  ManagementCreateOrganizationRequest,
262
260
  ManagementCreateOrganizationResponse,
263
261
  ManagementCreateApplicationRequest,
264
262
  ManagementCreateApplicationResponse,
265
- ManagementDeleteApplicationRequest
266
263
  } from '@squidcloud/client';
267
264
  ```
268
265
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/cli",
3
- "version": "1.0.442",
3
+ "version": "1.0.444",
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.442",
31
+ "@squidcloud/local-backend": "^1.0.444",
32
32
  "adm-zip": "^0.5.16",
33
33
  "copy-webpack-plugin": "^12.0.2",
34
34
  "decompress": "^4.2.1",