@larkup/cli 0.3.21 → 0.3.24

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 (36) hide show
  1. package/dist/{analytics-store-UU5MX3JA.js → analytics-store-6SZQ7JBE.js} +1 -1
  2. package/dist/{chunk-RV756WXU.js → chunk-52FEKTCQ.js} +1079 -1033
  3. package/dist/{chunk-2PEO3NCV.js → chunk-5VCEWBIF.js} +4 -4
  4. package/dist/{chunk-5YXDD2GC.js → chunk-7MWCEBXG.js} +139 -139
  5. package/dist/{chunk-4SOSQVIA.js → chunk-D4V74FXY.js} +4 -4
  6. package/dist/{chunk-2QOWBHZK.js → chunk-IYRX2FOU.js} +10 -10
  7. package/dist/{chunk-FDCIUBLI.js → chunk-MA7PMBAQ.js} +18 -18
  8. package/dist/{chunk-EFPXIMED.js → chunk-MSJ5HF3C.js} +3 -3
  9. package/dist/{chunk-G5BURVQB.js → chunk-MXXWLVUQ.js} +3 -3
  10. package/dist/{chunk-JAIHHTKN.js → chunk-OMUGJ6MM.js} +62 -61
  11. package/dist/{chunk-HTNZPVID.js → chunk-RAMGCJ3D.js} +38 -35
  12. package/dist/{chunk-OXX5AQPP.js → chunk-TBMEIDA5.js} +39 -2
  13. package/dist/{chunk-PTQR3VCA.js → chunk-TPHCE6EK.js} +44 -45
  14. package/dist/{chunk-D3H2VEHZ.js → chunk-VFPIXPQD.js} +9 -9
  15. package/dist/{chunk-6B7OTI2Y.js → chunk-VV5N6AER.js} +2 -2
  16. package/dist/{chunk-RUMUOFC7.js → chunk-WXYQJAMD.js} +2 -2
  17. package/dist/{chunk-WSDGBXA3.js → chunk-WZJD24FL.js} +71 -71
  18. package/dist/{dist-es-DXUGAPLS.js → dist-es-3EVRA57P.js} +8 -8
  19. package/dist/{dist-es-OOS7VNC3.js → dist-es-6NUJXRYS.js} +10 -10
  20. package/dist/{dist-es-2OQPXBWH.js → dist-es-A6GXGSOI.js} +8 -8
  21. package/dist/{dist-es-ZM2PC6Y7.js → dist-es-BNVRZPYQ.js} +22 -22
  22. package/dist/{dist-es-MNMQ7EY7.js → dist-es-FBYK33UR.js} +2 -2
  23. package/dist/{dist-es-27PHRDP5.js → dist-es-JD3OKSCB.js} +11 -9
  24. package/dist/{dist-es-I2CSW44W.js → dist-es-O2QZUQ4K.js} +219 -219
  25. package/dist/{dist-es-YACWQ6TD.js → dist-es-XSLSUFFE.js} +18 -18
  26. package/dist/{dist-es-P55SOOJS.js → dist-es-YYRJPI37.js} +5 -5
  27. package/dist/{dist-es-TVPOX7SI.js → dist-es-ZZIU2OSM.js} +9 -9
  28. package/dist/{event-streams-7VYAXCGO.js → event-streams-5YVZPWZL.js} +3 -3
  29. package/dist/index.js +22 -27
  30. package/dist/{loadSso-MPKJCJHV.js → loadSso-HQ4CEKJL.js} +25 -23
  31. package/dist/{signin-WY5DIZ6I.js → signin-EGXTPMOE.js} +28 -26
  32. package/dist/{sso-oidc-6P6INS3W.js → sso-oidc-XLG4JOZS.js} +27 -25
  33. package/dist/{sts-2EDS5GKI.js → sts-643ZZLFZ.js} +30 -28
  34. package/dist/{tool-loader-LURY25XY.js → tool-loader-BOX7F5OA.js} +2 -2
  35. package/dist/{tool-registry-I7553RRN.js → tool-registry-X2BVIZJS.js} +1 -1
  36. package/package.json +14 -14
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  setCredentialFeature
3
- } from "./chunk-RV756WXU.js";
4
- import "./chunk-JAIHHTKN.js";
3
+ } from "./chunk-52FEKTCQ.js";
4
+ import "./chunk-OMUGJ6MM.js";
5
5
  import {
6
6
  CredentialsProviderError,
7
7
  TokenProviderError,
@@ -10,20 +10,20 @@ import {
10
10
  getSSOTokenFromFile,
11
11
  loadSsoSessionData,
12
12
  parseKnownFiles
13
- } from "./chunk-WSDGBXA3.js";
14
- import "./chunk-5YXDD2GC.js";
13
+ } from "./chunk-WZJD24FL.js";
14
+ import "./chunk-7MWCEBXG.js";
15
15
  import "./chunk-QGM4M3NI.js";
16
16
 
17
- // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.24/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
17
+ // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.28/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
18
18
  var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
19
19
 
20
- // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1161.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
20
+ // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1166.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
21
21
  var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
22
22
  var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
23
23
 
24
- // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1161.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
24
+ // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1166.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
25
25
  var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
26
- const { SSOOIDCClient } = await import("./sso-oidc-6P6INS3W.js");
26
+ const { SSOOIDCClient } = await import("./sso-oidc-XLG4JOZS.js");
27
27
  const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
28
28
  const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
29
29
  region: ssoRegion ?? init.clientConfig?.region,
@@ -33,9 +33,9 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
33
33
  return ssoOidcClient;
34
34
  };
35
35
 
36
- // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1161.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
36
+ // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1166.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
37
37
  var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
38
- const { CreateTokenCommand } = await import("./sso-oidc-6P6INS3W.js");
38
+ const { CreateTokenCommand } = await import("./sso-oidc-XLG4JOZS.js");
39
39
  const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
40
40
  return ssoOidcClient.send(new CreateTokenCommand({
41
41
  clientId: ssoToken.clientId,
@@ -45,21 +45,21 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConf
45
45
  }));
46
46
  };
47
47
 
48
- // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1161.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
48
+ // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1166.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
49
49
  var validateTokenExpiry = (token) => {
50
50
  if (token.expiration && token.expiration.getTime() < Date.now()) {
51
51
  throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
52
52
  }
53
53
  };
54
54
 
55
- // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1161.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
55
+ // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1166.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
56
56
  var validateTokenKey = (key, value, forRefresh = false) => {
57
57
  if (typeof value === "undefined") {
58
58
  throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
59
59
  }
60
60
  };
61
61
 
62
- // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1161.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
62
+ // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1166.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
63
63
  import { promises as fsPromises } from "fs";
64
64
  var { writeFile } = fsPromises;
65
65
  var writeSSOTokenToFile = (id, ssoToken) => {
@@ -68,7 +68,7 @@ var writeSSOTokenToFile = (id, ssoToken) => {
68
68
  return writeFile(tokenFilepath, tokenString);
69
69
  };
70
70
 
71
- // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1161.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
71
+ // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1166.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
72
72
  var lastRefreshAttemptTimes = /* @__PURE__ */ new Map();
73
73
  var inFlightRefreshes = /* @__PURE__ */ new Map();
74
74
  var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
@@ -161,7 +161,7 @@ var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
161
161
  }
162
162
  };
163
163
 
164
- // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.24/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
164
+ // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.28/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
165
165
  var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
166
166
  var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
167
167
  let token;
@@ -204,7 +204,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
204
204
  });
205
205
  }
206
206
  const { accessToken } = token;
207
- const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-MPKJCJHV.js");
207
+ const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-HQ4CEKJL.js");
208
208
  const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
209
209
  logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
210
210
  region: clientConfig?.region ?? ssoRegion,
@@ -246,7 +246,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
246
246
  return credentials;
247
247
  };
248
248
 
249
- // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.24/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
249
+ // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.28/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
250
250
  var validateSsoProfile = (profile, logger) => {
251
251
  const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
252
252
  if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
@@ -256,7 +256,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
256
256
  return profile;
257
257
  };
258
258
 
259
- // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.24/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
259
+ // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.28/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
260
260
  var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
261
261
  init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
262
262
  const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
@@ -6,11 +6,11 @@ import {
6
6
  ENV_SECRET,
7
7
  ENV_SESSION,
8
8
  fromEnv
9
- } from "./chunk-EFPXIMED.js";
10
- import "./chunk-RV756WXU.js";
11
- import "./chunk-JAIHHTKN.js";
12
- import "./chunk-WSDGBXA3.js";
13
- import "./chunk-5YXDD2GC.js";
9
+ } from "./chunk-MSJ5HF3C.js";
10
+ import "./chunk-52FEKTCQ.js";
11
+ import "./chunk-OMUGJ6MM.js";
12
+ import "./chunk-WZJD24FL.js";
13
+ import "./chunk-7MWCEBXG.js";
14
14
  import "./chunk-QGM4M3NI.js";
15
15
  export {
16
16
  ENV_ACCOUNT_ID,
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  formatUrl
3
- } from "./chunk-G5BURVQB.js";
3
+ } from "./chunk-MXXWLVUQ.js";
4
4
  import {
5
5
  SignatureV4MultiRegion
6
- } from "./chunk-4SOSQVIA.js";
7
- import "./chunk-RUMUOFC7.js";
6
+ } from "./chunk-D4V74FXY.js";
7
+ import "./chunk-WXYQJAMD.js";
8
8
  import {
9
9
  getEndpointFromInstructions
10
- } from "./chunk-JAIHHTKN.js";
11
- import "./chunk-WSDGBXA3.js";
10
+ } from "./chunk-OMUGJ6MM.js";
11
+ import "./chunk-WZJD24FL.js";
12
12
  import {
13
13
  HttpRequest
14
- } from "./chunk-5YXDD2GC.js";
14
+ } from "./chunk-7MWCEBXG.js";
15
15
  import "./chunk-QGM4M3NI.js";
16
16
 
17
- // ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1161.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/constants.js
17
+ // ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1168.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/constants.js
18
18
  var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
19
19
  var SHA256_HEADER = "X-Amz-Content-Sha256";
20
20
 
21
- // ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1161.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/presigner.js
21
+ // ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1168.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/presigner.js
22
22
  var S3RequestPresigner = class {
23
23
  signer;
24
24
  constructor(options) {
@@ -73,7 +73,7 @@ var S3RequestPresigner = class {
73
73
  }
74
74
  };
75
75
 
76
- // ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1161.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/getSignedUrl.js
76
+ // ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1168.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/getSignedUrl.js
77
77
  var getSignedUrl = async (client, command, options = {}) => {
78
78
  let s3Presigner;
79
79
  let region;
@@ -17,9 +17,9 @@ import {
17
17
  iterableToReadableStream,
18
18
  readableStreamToIterable,
19
19
  resolveEventStreamSerdeConfig
20
- } from "./chunk-FDCIUBLI.js";
21
- import "./chunk-2QOWBHZK.js";
22
- import "./chunk-5YXDD2GC.js";
20
+ } from "./chunk-MA7PMBAQ.js";
21
+ import "./chunk-IYRX2FOU.js";
22
+ import "./chunk-7MWCEBXG.js";
23
23
  import "./chunk-QGM4M3NI.js";
24
24
  export {
25
25
  EventStreamCodec,
package/dist/index.js CHANGED
@@ -6,13 +6,13 @@ import {
6
6
  isToolInstalled,
7
7
  loadTool,
8
8
  uninstallTool
9
- } from "./chunk-2PEO3NCV.js";
9
+ } from "./chunk-5VCEWBIF.js";
10
10
  import {
11
- ALL_MODELS,
12
11
  DEFAULT_CONFIG,
13
12
  createProject,
14
13
  estimateCost,
15
14
  getActiveProject,
15
+ getAllModels,
16
16
  getLarkupDataDir,
17
17
  getProjectDataDir,
18
18
  getProjectWorkspace,
@@ -21,14 +21,14 @@ import {
21
21
  runWithProject,
22
22
  setActiveProject,
23
23
  trackUsageEvent
24
- } from "./chunk-OXX5AQPP.js";
24
+ } from "./chunk-TBMEIDA5.js";
25
25
  import {
26
26
  workspaceHost
27
27
  } from "./chunk-MEYK3O6D.js";
28
28
  import {
29
29
  getAllTools,
30
30
  getToolById
31
- } from "./chunk-6B7OTI2Y.js";
31
+ } from "./chunk-VV5N6AER.js";
32
32
  import {
33
33
  __require
34
34
  } from "./chunk-QGM4M3NI.js";
@@ -39,7 +39,7 @@ import { Command } from "commander";
39
39
  // package.json
40
40
  var package_default = {
41
41
  name: "@larkup/cli",
42
- version: "0.3.21",
42
+ version: "0.3.24",
43
43
  engines: {
44
44
  node: ">=22"
45
45
  },
@@ -60,21 +60,21 @@ var package_default = {
60
60
  "type-check": "tsc --noEmit"
61
61
  },
62
62
  dependencies: {
63
- "@ai-sdk/cohere": "^4.0.71",
64
- "@ai-sdk/deepseek": "^3.0.75",
65
- "@ai-sdk/gateway": "^4.0.129",
66
- "@ai-sdk/google": "^4.0.107",
67
- "@ai-sdk/mistral": "^4.0.74",
68
- "@ai-sdk/openai": "^4.0.104",
69
- "@ai-sdk/openai-compatible": "^3.0.80",
63
+ "@ai-sdk/cohere": "^4.0.81",
64
+ "@ai-sdk/deepseek": "^3.0.84",
65
+ "@ai-sdk/gateway": "^4.0.143",
66
+ "@ai-sdk/google": "^4.0.118",
67
+ "@ai-sdk/mistral": "^4.0.84",
68
+ "@ai-sdk/openai": "^4.0.115",
69
+ "@ai-sdk/openai-compatible": "^3.0.90",
70
70
  "@clack/prompts": "^1.7.0",
71
- "@lancedb/lancedb": "^0.40.0",
71
+ "@lancedb/lancedb": "^0.41.0",
72
72
  "@larkup/core": "workspace:*",
73
73
  "@larkup/marketplace": "workspace:*",
74
74
  "@larkup/vector-stores": "workspace:*",
75
- "@napi-rs/canvas": "1.0.13",
75
+ "@napi-rs/canvas": "1.1.0",
76
76
  "@pinecone-database/pinecone": "^9.0.0",
77
- ai: "^7.0.156",
77
+ ai: "^7.0.170",
78
78
  "apache-arrow": "18.1.0",
79
79
  chalk: "^6.0.0",
80
80
  chromadb: "^3.5.0",
@@ -4316,7 +4316,7 @@ async function embedTexts(config, texts, abortSignal) {
4316
4316
  ...abortSignal ? { abortSignal } : {}
4317
4317
  });
4318
4318
  const totalTokens = texts.reduce((acc, t) => acc + Math.ceil(t.length / 4), 0);
4319
- const { trackUsageEvent: trackUsageEvent2, estimateCost: estimateCost2 } = await import("./analytics-store-UU5MX3JA.js");
4319
+ const { trackUsageEvent: trackUsageEvent2, estimateCost: estimateCost2 } = await import("./analytics-store-6SZQ7JBE.js");
4320
4320
  await trackUsageEvent2({
4321
4321
  type: "embedding",
4322
4322
  embeddingModelId: config.embeddingModelId,
@@ -5089,7 +5089,7 @@ var S3StorageProvider = class {
5089
5089
  }
5090
5090
  async client() {
5091
5091
  if (!this._client) {
5092
- const { S3Client } = await import("./dist-es-I2CSW44W.js");
5092
+ const { S3Client } = await import("./dist-es-O2QZUQ4K.js");
5093
5093
  this._client = new S3Client({
5094
5094
  region: this.region,
5095
5095
  ...this._credentials ? { credentials: this._credentials } : {}
@@ -5108,7 +5108,7 @@ var S3StorageProvider = class {
5108
5108
  return { bucket: withoutScheme.slice(0, slashIndex), key: withoutScheme.slice(slashIndex + 1) };
5109
5109
  }
5110
5110
  async store(key, data, mimeType) {
5111
- const { PutObjectCommand } = await import("./dist-es-I2CSW44W.js");
5111
+ const { PutObjectCommand } = await import("./dist-es-O2QZUQ4K.js");
5112
5112
  const client = await this.client();
5113
5113
  const objectKey = this.objectKey(key);
5114
5114
  await client.send(
@@ -5126,7 +5126,7 @@ var S3StorageProvider = class {
5126
5126
  return this.store(key, await fs9.readFile(sourcePath), mimeType);
5127
5127
  }
5128
5128
  async retrieve(uri) {
5129
- const { GetObjectCommand } = await import("./dist-es-I2CSW44W.js");
5129
+ const { GetObjectCommand } = await import("./dist-es-O2QZUQ4K.js");
5130
5130
  const { bucket, key } = this.parseUri(uri);
5131
5131
  const client = await this.client();
5132
5132
  const response = await client.send(new GetObjectCommand({ Bucket: bucket, Key: key }));
@@ -5142,8 +5142,8 @@ var S3StorageProvider = class {
5142
5142
  return void 0;
5143
5143
  }
5144
5144
  async getReadUrl(uri, expiresInSecs) {
5145
- const { GetObjectCommand } = await import("./dist-es-I2CSW44W.js");
5146
- const { getSignedUrl } = await import("./dist-es-TVPOX7SI.js");
5145
+ const { GetObjectCommand } = await import("./dist-es-O2QZUQ4K.js");
5146
+ const { getSignedUrl } = await import("./dist-es-ZZIU2OSM.js");
5147
5147
  const { bucket, key } = this.parseUri(uri);
5148
5148
  const client = await this.client();
5149
5149
  return getSignedUrl(client, new GetObjectCommand({ Bucket: bucket, Key: key }), {
@@ -5151,7 +5151,7 @@ var S3StorageProvider = class {
5151
5151
  });
5152
5152
  }
5153
5153
  async delete(uri) {
5154
- const { DeleteObjectCommand } = await import("./dist-es-I2CSW44W.js");
5154
+ const { DeleteObjectCommand } = await import("./dist-es-O2QZUQ4K.js");
5155
5155
  const { bucket, key } = this.parseUri(uri);
5156
5156
  const client = await this.client();
5157
5157
  try {
@@ -6389,11 +6389,6 @@ function getDefaultChatModel(models, provider) {
6389
6389
  return forProvider.find((m) => m.id === defaultId) ?? forProvider[0];
6390
6390
  }
6391
6391
 
6392
- // ../../packages/core/src/models-cache.ts
6393
- async function getAllModels() {
6394
- return ALL_MODELS;
6395
- }
6396
-
6397
6392
  // src/commands/chat.ts
6398
6393
  import { createOpenAI as createOpenAI2 } from "@ai-sdk/openai";
6399
6394
  import { createGoogleGenerativeAI as createGoogleGenerativeAI2 } from "@ai-sdk/google";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  package_default
3
- } from "./chunk-D3H2VEHZ.js";
3
+ } from "./chunk-VFPIXPQD.js";
4
4
  import {
5
5
  AwsRestJsonProtocol,
6
6
  AwsSdkSigV4Signer,
7
7
  NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
8
8
  resolveAwsSdkSigV4Config
9
- } from "./chunk-HTNZPVID.js";
10
- import "./chunk-RUMUOFC7.js";
9
+ } from "./chunk-RAMGCJ3D.js";
10
+ import "./chunk-WXYQJAMD.js";
11
11
  import {
12
12
  Sha256Node
13
- } from "./chunk-2QOWBHZK.js";
13
+ } from "./chunk-IYRX2FOU.js";
14
14
  import {
15
15
  NodeHttpHandler
16
- } from "./chunk-PTQR3VCA.js";
16
+ } from "./chunk-TPHCE6EK.js";
17
17
  import {
18
18
  DEFAULT_RETRY_MODE,
19
19
  DefaultIdentityProviderConfig,
@@ -25,6 +25,7 @@ import {
25
25
  createDefaultUserAgentProvider,
26
26
  emitWarningIfUnsupportedVersion,
27
27
  getAwsRegionExtensionConfiguration,
28
+ getDefaultSocketTimeout,
28
29
  getHostHeaderPlugin,
29
30
  getHttpAuthSchemeEndpointRuleSetPlugin,
30
31
  getHttpSigningPlugin,
@@ -36,7 +37,7 @@ import {
36
37
  resolveHostHeaderConfig,
37
38
  resolveRetryConfig,
38
39
  resolveUserAgentConfig
39
- } from "./chunk-RV756WXU.js";
40
+ } from "./chunk-52FEKTCQ.js";
40
41
  import {
41
42
  BinaryDecisionDiagram,
42
43
  Client,
@@ -52,7 +53,7 @@ import {
52
53
  makeBuilder,
53
54
  resolveDefaultRuntimeConfig,
54
55
  resolveEndpointConfig
55
- } from "./chunk-JAIHHTKN.js";
56
+ } from "./chunk-OMUGJ6MM.js";
56
57
  import {
57
58
  NODE_REGION_CONFIG_FILE_OPTIONS,
58
59
  NODE_REGION_CONFIG_OPTIONS,
@@ -64,7 +65,7 @@ import {
64
65
  resolveDefaultsModeConfig,
65
66
  resolveHttpHandlerRuntimeConfig,
66
67
  resolveRegionConfig
67
- } from "./chunk-WSDGBXA3.js";
68
+ } from "./chunk-WZJD24FL.js";
68
69
  import {
69
70
  TypeRegistry,
70
71
  calculateBodyLength,
@@ -77,10 +78,10 @@ import {
77
78
  streamCollector,
78
79
  toBase64,
79
80
  toUtf8
80
- } from "./chunk-5YXDD2GC.js";
81
+ } from "./chunk-7MWCEBXG.js";
81
82
  import "./chunk-QGM4M3NI.js";
82
83
 
83
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
84
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
84
85
  var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
85
86
  return {
86
87
  operation: getSmithyContext(context).operation,
@@ -131,7 +132,7 @@ var resolveHttpAuthSchemeConfig = (config) => {
131
132
  });
132
133
  };
133
134
 
134
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
135
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
135
136
  var resolveClientEndpointParameters = (options) => {
136
137
  return Object.assign(options, {
137
138
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
@@ -146,7 +147,7 @@ var commonParams = {
146
147
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
147
148
  };
148
149
 
149
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js
150
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js
150
151
  var k = "ref";
151
152
  var a = -1;
152
153
  var b = true;
@@ -233,7 +234,7 @@ var nodes = new Int32Array([
233
234
  ]);
234
235
  var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
235
236
 
236
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
237
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
237
238
  var cache = new EndpointCache({
238
239
  size: 50,
239
240
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
@@ -246,7 +247,7 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
246
247
  };
247
248
  customEndpointFunctions.aws = awsEndpointFunctions;
248
249
 
249
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
250
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
250
251
  var SSOServiceException = class _SSOServiceException extends ServiceException {
251
252
  static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";
252
253
  constructor(options) {
@@ -255,7 +256,7 @@ var SSOServiceException = class _SSOServiceException extends ServiceException {
255
256
  }
256
257
  };
257
258
 
258
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
259
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
259
260
  var InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
260
261
  static shapeId = "com.amazonaws.sso#InvalidRequestException";
261
262
  name = "InvalidRequestException";
@@ -309,7 +310,7 @@ var UnauthorizedException = class _UnauthorizedException extends SSOServiceExcep
309
310
  }
310
311
  };
311
312
 
312
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
313
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
313
314
  var _ATT = "AccessTokenType";
314
315
  var _GRC = "GetRoleCredentials";
315
316
  var _GRCR = "GetRoleCredentialsRequest";
@@ -422,7 +423,7 @@ var GetRoleCredentials$ = [
422
423
  () => GetRoleCredentialsResponse$
423
424
  ];
424
425
 
425
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
426
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
426
427
  var getRuntimeConfig = (config) => {
427
428
  return {
428
429
  apiVersion: "2019-06-10",
@@ -460,7 +461,7 @@ var getRuntimeConfig = (config) => {
460
461
  };
461
462
  };
462
463
 
463
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
464
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
464
465
  var getRuntimeConfig2 = (config) => {
465
466
  emitWarningIfUnsupportedVersion2(process.version);
466
467
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -478,6 +479,7 @@ var getRuntimeConfig2 = (config) => {
478
479
  defaultsMode,
479
480
  authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
480
481
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
482
+ defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 3e5),
481
483
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
482
484
  maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
483
485
  region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
@@ -493,7 +495,7 @@ var getRuntimeConfig2 = (config) => {
493
495
  };
494
496
  };
495
497
 
496
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
498
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
497
499
  var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
498
500
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
499
501
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -532,14 +534,14 @@ var resolveHttpAuthRuntimeConfig = (config) => {
532
534
  };
533
535
  };
534
536
 
535
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
537
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
536
538
  var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
537
539
  const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
538
540
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
539
541
  return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
540
542
  };
541
543
 
542
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
544
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
543
545
  var SSOClient = class extends Client {
544
546
  config;
545
547
  constructor(...[configuration]) {
@@ -575,12 +577,12 @@ var SSOClient = class extends Client {
575
577
  }
576
578
  };
577
579
 
578
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js
580
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js
579
581
  var command = makeBuilder(commonParams, "SWBPortalService", "SSOClient", getEndpointPlugin);
580
582
  var _ep0 = {};
581
583
  var _mw0 = (Command, cs, config, o) => [];
582
584
 
583
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.54/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
585
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
584
586
  var GetRoleCredentialsCommand = class extends command(_ep0, _mw0, "GetRoleCredentials", GetRoleCredentials$) {
585
587
  };
586
588
  export {