@hasna/skills 0.10.76 → 0.10.78

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/sdk/index.js CHANGED
@@ -24586,7 +24586,7 @@ var require_httpAuthSchemes = __commonJS((exports) => {
24586
24586
  });
24587
24587
 
24588
24588
  // node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
24589
- var import_client8, import_config10, ENV_KEY = "AWS_ACCESS_KEY_ID", ENV_SECRET = "AWS_SECRET_ACCESS_KEY", ENV_SESSION = "AWS_SESSION_TOKEN", ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION", ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE", ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID", fromEnv = (init) => async () => {
24589
+ var import_client9, import_config10, ENV_KEY = "AWS_ACCESS_KEY_ID", ENV_SECRET = "AWS_SECRET_ACCESS_KEY", ENV_SESSION = "AWS_SESSION_TOKEN", ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION", ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE", ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID", fromEnv = (init) => async () => {
24590
24590
  init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
24591
24591
  const accessKeyId = process.env[ENV_KEY];
24592
24592
  const secretAccessKey = process.env[ENV_SECRET];
@@ -24603,13 +24603,13 @@ var import_client8, import_config10, ENV_KEY = "AWS_ACCESS_KEY_ID", ENV_SECRET =
24603
24603
  ...credentialScope && { credentialScope },
24604
24604
  ...accountId && { accountId }
24605
24605
  };
24606
- import_client8.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
24606
+ import_client9.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
24607
24607
  return credentials;
24608
24608
  }
24609
24609
  throw new import_config10.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
24610
24610
  };
24611
24611
  var init_fromEnv = __esm(() => {
24612
- import_client8 = __toESM(require_client2(), 1);
24612
+ import_client9 = __toESM(require_client2(), 1);
24613
24613
  import_config10 = __toESM(require_config(), 1);
24614
24614
  });
24615
24615
 
@@ -25951,7 +25951,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
25951
25951
 
25952
25952
  // node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
25953
25953
  import fs from "fs/promises";
25954
- var import_client9, import_config18, import_node_http_handler, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2", AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromHttp = (options = {}) => {
25954
+ var import_client10, import_config18, import_node_http_handler, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2", AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromHttp = (options = {}) => {
25955
25955
  options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
25956
25956
  let host;
25957
25957
  const relative12 = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
@@ -25988,7 +25988,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
25988
25988
  }
25989
25989
  try {
25990
25990
  const result = await requestHandler.handle(request2, { requestTimeout });
25991
- return getCredentials(result.response).then((creds) => import_client9.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
25991
+ return getCredentials(result.response).then((creds) => import_client10.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
25992
25992
  } catch (e3) {
25993
25993
  throw new import_config18.CredentialsProviderError(String(e3), { logger: options.logger });
25994
25994
  }
@@ -26010,7 +26010,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
26010
26010
  var init_fromHttp = __esm(() => {
26011
26011
  init_checkUrl();
26012
26012
  init_requestHelpers();
26013
- import_client9 = __toESM(require_client2(), 1);
26013
+ import_client10 = __toESM(require_client2(), 1);
26014
26014
  import_config18 = __toESM(require_config(), 1);
26015
26015
  import_node_http_handler = __toESM(require_dist_cjs6(), 1);
26016
26016
  });
@@ -27394,7 +27394,7 @@ var init_loadSso = __esm(() => {
27394
27394
  });
27395
27395
 
27396
27396
  // node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
27397
- var import_client10, import_config24, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
27397
+ var import_client11, import_config24, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
27398
27398
  let token;
27399
27399
  const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
27400
27400
  if (ssoSession) {
@@ -27470,15 +27470,15 @@ var import_client10, import_config24, SHOULD_FAIL_CREDENTIAL_CHAIN = false, reso
27470
27470
  ...accountId && { accountId }
27471
27471
  };
27472
27472
  if (ssoSession) {
27473
- import_client10.setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
27473
+ import_client11.setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
27474
27474
  } else {
27475
- import_client10.setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
27475
+ import_client11.setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
27476
27476
  }
27477
27477
  return credentials;
27478
27478
  };
27479
27479
  var init_resolveSSOCredentials = __esm(() => {
27480
27480
  init_dist_es4();
27481
- import_client10 = __toESM(require_client2(), 1);
27481
+ import_client11 = __toESM(require_client2(), 1);
27482
27482
  import_config24 = __toESM(require_config(), 1);
27483
27483
  });
27484
27484
 
@@ -27590,7 +27590,7 @@ var init_dist_es5 = __esm(() => {
27590
27590
  });
27591
27591
 
27592
27592
  // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
27593
- var import_client11, import_config27, resolveCredentialSource = (credentialSource, profileName, logger) => {
27593
+ var import_client12, import_config27, resolveCredentialSource = (credentialSource, profileName, logger) => {
27594
27594
  const sourceProvidersMap = {
27595
27595
  EcsContainer: async (options) => {
27596
27596
  const { fromHttp: fromHttp2 } = await Promise.resolve().then(() => (init_dist_es3(), exports_dist_es3));
@@ -27614,9 +27614,9 @@ var import_client11, import_config27, resolveCredentialSource = (credentialSourc
27614
27614
  } else {
27615
27615
  throw new import_config27.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
27616
27616
  }
27617
- }, setNamedProvider = (creds) => import_client11.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
27617
+ }, setNamedProvider = (creds) => import_client12.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
27618
27618
  var init_resolveCredentialSource = __esm(() => {
27619
- import_client11 = __toESM(require_client2(), 1);
27619
+ import_client12 = __toESM(require_client2(), 1);
27620
27620
  import_config27 = __toESM(require_config(), 1);
27621
27621
  });
27622
27622
 
@@ -28643,7 +28643,7 @@ var require_sts = __commonJS((exports) => {
28643
28643
  });
28644
28644
 
28645
28645
  // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
28646
- var import_client12, import_config28, isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
28646
+ var import_client13, import_config28, isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
28647
28647
  return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
28648
28648
  }, isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
28649
28649
  const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
@@ -28682,7 +28682,7 @@ var import_client12, import_config28, isAssumeRoleProfile = (arg, { profile = "d
28682
28682
  [source_profile]: true
28683
28683
  }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
28684
28684
  if (isCredentialSourceWithoutRoleArn(profileData)) {
28685
- return sourceCredsProvider.then((creds) => import_client12.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
28685
+ return sourceCredsProvider.then((creds) => import_client13.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
28686
28686
  } else {
28687
28687
  const params = {
28688
28688
  RoleArn: profileData.role_arn,
@@ -28699,14 +28699,14 @@ var import_client12, import_config28, isAssumeRoleProfile = (arg, { profile = "d
28699
28699
  params.TokenCode = await options.mfaCodeProvider(mfa_serial);
28700
28700
  }
28701
28701
  const sourceCreds = await sourceCredsProvider;
28702
- return options.roleAssumer(sourceCreds, params).then((creds) => import_client12.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
28702
+ return options.roleAssumer(sourceCreds, params).then((creds) => import_client13.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
28703
28703
  }
28704
28704
  }, isCredentialSourceWithoutRoleArn = (section) => {
28705
28705
  return !section.role_arn && !!section.credential_source;
28706
28706
  };
28707
28707
  var init_resolveAssumeRoleCredentials = __esm(() => {
28708
28708
  init_resolveCredentialSource();
28709
- import_client12 = __toESM(require_client2(), 1);
28709
+ import_client13 = __toESM(require_client2(), 1);
28710
28710
  import_config28 = __toESM(require_config(), 1);
28711
28711
  });
28712
28712
 
@@ -29707,7 +29707,7 @@ var init_LoginCredentialsFetcher = __esm(() => {
29707
29707
  });
29708
29708
 
29709
29709
  // node_modules/@aws-sdk/credential-provider-ini/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
29710
- var import_client13, import_config30, fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
29710
+ var import_client14, import_config30, fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
29711
29711
  init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
29712
29712
  const profiles = await import_config30.parseKnownFiles(init || {});
29713
29713
  const profileName = import_config30.getProfileName({
@@ -29722,11 +29722,11 @@ var import_client13, import_config30, fromLoginCredentials = (init) => async ({
29722
29722
  }
29723
29723
  const fetcher = new LoginCredentialsFetcher(profile, init, callerClientConfig);
29724
29724
  const credentials = await fetcher.loadCredentials();
29725
- return import_client13.setCredentialFeature(credentials, "CREDENTIALS_LOGIN", "AD");
29725
+ return import_client14.setCredentialFeature(credentials, "CREDENTIALS_LOGIN", "AD");
29726
29726
  };
29727
29727
  var init_fromLoginCredentials = __esm(() => {
29728
29728
  init_LoginCredentialsFetcher();
29729
- import_client13 = __toESM(require_client2(), 1);
29729
+ import_client14 = __toESM(require_client2(), 1);
29730
29730
  import_config30 = __toESM(require_config(), 1);
29731
29731
  });
29732
29732
 
@@ -29740,7 +29740,7 @@ var init_dist_es6 = __esm(() => {
29740
29740
  });
29741
29741
 
29742
29742
  // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
29743
- var import_client14, isLoginProfile = (data) => {
29743
+ var import_client15, isLoginProfile = (data) => {
29744
29744
  return Boolean(data && data.login_session);
29745
29745
  }, resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
29746
29746
  const { fromLoginCredentials: fromLoginCredentials2 } = await Promise.resolve().then(() => (init_dist_es6(), exports_dist_es5));
@@ -29748,14 +29748,14 @@ var import_client14, isLoginProfile = (data) => {
29748
29748
  ...options,
29749
29749
  profile: profileName
29750
29750
  })({ callerClientConfig });
29751
- return import_client14.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
29751
+ return import_client15.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
29752
29752
  };
29753
29753
  var init_resolveLoginCredentials = __esm(() => {
29754
- import_client14 = __toESM(require_client2(), 1);
29754
+ import_client15 = __toESM(require_client2(), 1);
29755
29755
  });
29756
29756
 
29757
29757
  // node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
29758
- var import_client15, getValidatedProcessCredentials = (profileName, data, profiles) => {
29758
+ var import_client16, getValidatedProcessCredentials = (profileName, data, profiles) => {
29759
29759
  if (data.Version !== 1) {
29760
29760
  throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
29761
29761
  }
@@ -29781,11 +29781,11 @@ var import_client15, getValidatedProcessCredentials = (profileName, data, profil
29781
29781
  ...data.CredentialScope && { credentialScope: data.CredentialScope },
29782
29782
  ...accountId && { accountId }
29783
29783
  };
29784
- import_client15.setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
29784
+ import_client16.setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
29785
29785
  return credentials;
29786
29786
  };
29787
29787
  var init_getValidatedProcessCredentials = __esm(() => {
29788
- import_client15 = __toESM(require_client2(), 1);
29788
+ import_client16 = __toESM(require_client2(), 1);
29789
29789
  });
29790
29790
 
29791
29791
  // node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
@@ -29846,20 +29846,20 @@ var init_dist_es7 = __esm(() => {
29846
29846
  });
29847
29847
 
29848
29848
  // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
29849
- var import_client16, isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", resolveProcessCredentials2 = async (options, profile) => {
29849
+ var import_client17, isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", resolveProcessCredentials2 = async (options, profile) => {
29850
29850
  const { fromProcess: fromProcess2 } = await Promise.resolve().then(() => (init_dist_es7(), exports_dist_es6));
29851
29851
  const credentials = await fromProcess2({
29852
29852
  ...options,
29853
29853
  profile
29854
29854
  })();
29855
- return import_client16.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_PROCESS", "v");
29855
+ return import_client17.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_PROCESS", "v");
29856
29856
  };
29857
29857
  var init_resolveProcessCredentials2 = __esm(() => {
29858
- import_client16 = __toESM(require_client2(), 1);
29858
+ import_client17 = __toESM(require_client2(), 1);
29859
29859
  });
29860
29860
 
29861
29861
  // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
29862
- var import_client17, resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
29862
+ var import_client18, resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
29863
29863
  const { fromSSO: fromSSO2 } = await Promise.resolve().then(() => (init_dist_es5(), exports_dist_es4));
29864
29864
  return fromSSO2({
29865
29865
  profile,
@@ -29870,18 +29870,18 @@ var import_client17, resolveSsoCredentials = async (profile, profileData, option
29870
29870
  callerClientConfig
29871
29871
  }).then((creds) => {
29872
29872
  if (profileData.sso_session) {
29873
- return import_client17.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
29873
+ return import_client18.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
29874
29874
  } else {
29875
- return import_client17.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
29875
+ return import_client18.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
29876
29876
  }
29877
29877
  });
29878
29878
  }, isSsoProfile2 = (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");
29879
29879
  var init_resolveSsoCredentials = __esm(() => {
29880
- import_client17 = __toESM(require_client2(), 1);
29880
+ import_client18 = __toESM(require_client2(), 1);
29881
29881
  });
29882
29882
 
29883
29883
  // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
29884
- var import_client18, isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, resolveStaticCredentials = async (profile, options) => {
29884
+ var import_client19, isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, resolveStaticCredentials = async (profile, options) => {
29885
29885
  options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
29886
29886
  const credentials = {
29887
29887
  accessKeyId: profile.aws_access_key_id,
@@ -29890,10 +29890,10 @@ var import_client18, isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg
29890
29890
  ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
29891
29891
  ...profile.aws_account_id && { accountId: profile.aws_account_id }
29892
29892
  };
29893
- return import_client18.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
29893
+ return import_client19.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
29894
29894
  };
29895
29895
  var init_resolveStaticCredentials = __esm(() => {
29896
- import_client18 = __toESM(require_client2(), 1);
29896
+ import_client19 = __toESM(require_client2(), 1);
29897
29897
  });
29898
29898
 
29899
29899
  // node_modules/@aws-sdk/credential-provider-web-identity/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
@@ -30947,7 +30947,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
30947
30947
 
30948
30948
  // node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
30949
30949
  import { readFileSync as readFileSync29 } from "fs";
30950
- var import_client19, import_config33, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME", fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
30950
+ var import_client20, import_config33, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME", fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
30951
30951
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
30952
30952
  const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
30953
30953
  const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
@@ -30964,12 +30964,12 @@ var import_client19, import_config33, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_F
30964
30964
  roleSessionName
30965
30965
  })(awsIdentityProperties);
30966
30966
  if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
30967
- import_client19.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
30967
+ import_client20.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
30968
30968
  }
30969
30969
  return credentials;
30970
30970
  };
30971
30971
  var init_fromTokenFile = __esm(() => {
30972
- import_client19 = __toESM(require_client2(), 1);
30972
+ import_client20 = __toESM(require_client2(), 1);
30973
30973
  import_config33 = __toESM(require_config(), 1);
30974
30974
  });
30975
30975
 
@@ -30984,7 +30984,7 @@ var init_dist_es8 = __esm(() => {
30984
30984
  });
30985
30985
 
30986
30986
  // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
30987
- var import_client20, isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
30987
+ var import_client21, isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
30988
30988
  const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => (init_dist_es8(), exports_dist_es7));
30989
30989
  const credentials = await fromTokenFile2({
30990
30990
  webIdentityTokenFile: profile.web_identity_token_file,
@@ -30996,10 +30996,10 @@ var import_client20, isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg
30996
30996
  })({
30997
30997
  callerClientConfig
30998
30998
  });
30999
- return import_client20.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
30999
+ return import_client21.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
31000
31000
  };
31001
31001
  var init_resolveWebIdentityCredentials = __esm(() => {
31002
- import_client20 = __toESM(require_client2(), 1);
31002
+ import_client21 = __toESM(require_client2(), 1);
31003
31003
  });
31004
31004
 
31005
31005
  // node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
@@ -32371,7 +32371,7 @@ var init_event_sink = __esm(() => {
32371
32371
  init_dist();
32372
32372
  });
32373
32373
  // package.json
32374
- var version = "0.10.76";
32374
+ var version = "0.10.78";
32375
32375
  var package_default = {
32376
32376
  name: "@hasna/skills",
32377
32377
  version,
@@ -33526,6 +33526,9 @@ function selectsSkillsLocalMode(env = process.env) {
33526
33526
  return !hasSkillsEnvAuthorityIntent(env) && isSkillsLocalOptIn(env);
33527
33527
  }
33528
33528
 
33529
+ // src/lib/credential-profile-command.ts
33530
+ var urlKeys = clientTransportEnvKeys("skills").apiUrlKeys;
33531
+
33529
33532
  // src/lib/fleet-credentials.ts
33530
33533
  var SKILLS_APP = "skills";
33531
33534
  var ENV_KEYS = clientTransportEnvKeys(SKILLS_APP);
@@ -39100,7 +39103,8 @@ var MEASURED_CODEX_CAPABILITIES = {
39100
39103
  "codex-cli 0.160.1": ["hooks", "qualified-skill-catalog", "installed-plugin-review"],
39101
39104
  "codex-cli 0.161.0": ["hooks", "qualified-skill-catalog", "installed-plugin-review"],
39102
39105
  "codex-cli 0.162.0": ["hooks", "qualified-skill-catalog", "installed-plugin-review"],
39103
- "codex-cli 0.162.1": ["hooks", "qualified-skill-catalog", "installed-plugin-review"]
39106
+ "codex-cli 0.162.1": ["hooks", "qualified-skill-catalog", "installed-plugin-review"],
39107
+ "codex-cli 0.163.0": ["hooks", "qualified-skill-catalog", "installed-plugin-review"]
39104
39108
  };
39105
39109
  function supportsCodexNativeCapability(version2, capability) {
39106
39110
  return typeof version2 === "string" && Object.hasOwn(MEASURED_CODEX_CAPABILITIES, version2) && MEASURED_CODEX_CAPABILITIES[version2].includes(capability);
@@ -41361,6 +41365,37 @@ function hashRawDiscoveryFile(path, budget2, changes) {
41361
41365
  }
41362
41366
  }
41363
41367
 
41368
+ // src/lib/codex-plugin-capability-paths.ts
41369
+ var CODEX_PLUGIN_MANIFEST_LOCATIONS = Object.freeze([
41370
+ "plugin.json",
41371
+ ".codex-plugin/plugin.json",
41372
+ ".claude-plugin/plugin.json",
41373
+ ".cursor-plugin/plugin.json"
41374
+ ]);
41375
+ var CODEX_PLUGIN_MANIFEST_DIRECTORIES = Object.freeze([".codex-plugin", ".claude-plugin", ".cursor-plugin"]);
41376
+ var CODEX_PLUGIN_ROOT_CAPABILITY_ENTRIES = Object.freeze([
41377
+ "plugin.json",
41378
+ ".codex-plugin",
41379
+ ".claude-plugin",
41380
+ ".cursor-plugin",
41381
+ "hooks",
41382
+ "hooks.json",
41383
+ ".mcp.json",
41384
+ ".app.json",
41385
+ "commands",
41386
+ "agents"
41387
+ ]);
41388
+ function foldCodexPluginEntryName(name) {
41389
+ return name.toUpperCase().toLowerCase();
41390
+ }
41391
+ function codexPluginRootCapabilityEntry(name) {
41392
+ const folded = foldCodexPluginEntryName(name);
41393
+ return CODEX_PLUGIN_ROOT_CAPABILITY_ENTRIES.includes(folded) ? folded : null;
41394
+ }
41395
+ function isCodexSkillDocumentName(name) {
41396
+ return foldCodexPluginEntryName(name) === "skill.md";
41397
+ }
41398
+
41364
41399
  // src/lib/codex-hook-mcp-dependencies.ts
41365
41400
  var need5 = (value) => {
41366
41401
  if (!value)
@@ -41510,15 +41545,13 @@ function captureCodexHookMcpDependencies(configPath, reviewed, configText, chang
41510
41545
  }
41511
41546
  };
41512
41547
  const root = join17(cacheRoot, identity3, selectCodexPluginVersion(versions, selectionBudget));
41513
- const agent = read(join17(root, "plugin.json"));
41548
+ const [agentPluginManifest, ...legacyManifests] = CODEX_PLUGIN_MANIFEST_LOCATIONS;
41549
+ const agent = read(join17(root, agentPluginManifest));
41514
41550
  if (agent !== null) {
41515
41551
  const schema = JSON.parse(agent).$schema;
41516
41552
  need5(typeof schema !== "string" || !schema.startsWith("https://agent-plugins.org/schemas/"));
41517
41553
  }
41518
- const codex = read(join17(root, ".codex-plugin/plugin.json"));
41519
- const claude = read(join17(root, ".claude-plugin/plugin.json"));
41520
- const cursor = read(join17(root, ".cursor-plugin/plugin.json"));
41521
- const text2 = codex ?? claude ?? cursor;
41554
+ const text2 = legacyManifests.map((location) => read(join17(root, location))).find((value) => value !== null) ?? null;
41522
41555
  if (text2 === null)
41523
41556
  continue;
41524
41557
  const manifest = JSON.parse(text2);
@@ -42215,6 +42248,7 @@ import { createHash as createHash18 } from "crypto";
42215
42248
  import { constants as constants12, closeSync as closeSync15, fstatSync as fstatSync15, lstatSync as lstatSync14, openSync as openSync15, readSync as readSync8, readdirSync as readdirSync5, realpathSync as realpathSync9 } from "fs";
42216
42249
  import { basename as basename9, dirname as dirname14, isAbsolute as isAbsolute15, join as join18, relative as relative6, resolve as resolve14, sep as sep8 } from "path";
42217
42250
  var CODEX_SEMANTIC_CACHE_WITNESS_SCHEMA = "hasna.codex-semantic-cache-witness.v1";
42251
+ var SEMANTIC_BOUND_ROOT_ENTRIES = Object.freeze([".codex-plugin", ".app.json", ".mcp.json", "hooks"]);
42218
42252
  var identifier5 = (value) => typeof value === "string" && /^[A-Za-z0-9_-]{1,64}$/.test(value);
42219
42253
  var digest2 = (value) => typeof value === "string" && /^[a-f0-9]{64}$/.test(value);
42220
42254
  var refuse5 = () => {
@@ -42724,14 +42758,23 @@ function assertParents(cacheRoot, controls, appOnlyParents, hookParents, files,
42724
42758
  continue;
42725
42759
  const parent = join18(cacheRoot, parts[0], parts[1]);
42726
42760
  const root = join18(parent, parts[2]);
42727
- const base = parts[parts.length - 1];
42728
- if (parts.includes(".codex-plugin") && (parts.length < 4 || parts[3] !== ".codex-plugin" || (parts.length === 4 ? base !== ".codex-plugin" : parts.length !== 5 || base !== "plugin.json")))
42761
+ const base = parts[parts.length - 1], folded = foldCodexPluginEntryName(base);
42762
+ if (parts.length === 3 && (codexPluginRootCapabilityEntry(base) !== null || isCodexSkillDocumentName(base)))
42763
+ refuse5();
42764
+ const rootEntry = parts.length >= 4 ? codexPluginRootCapabilityEntry(parts[3]) : null;
42765
+ if (rootEntry !== null && rootEntry !== parts[3])
42766
+ refuse5();
42767
+ if (rootEntry !== null && !SEMANTIC_BOUND_ROOT_ENTRIES.includes(rootEntry))
42768
+ refuse5();
42769
+ if (isCodexSkillDocumentName(base) && base !== "SKILL.md")
42729
42770
  refuse5();
42730
- if ([".app.json", ".mcp.json"].includes(base) && (parts.length !== 4 || dirname14(member) !== root))
42771
+ if (parts.some((part) => CODEX_PLUGIN_MANIFEST_DIRECTORIES.includes(foldCodexPluginEntryName(part))) && (parts.length < 4 || parts[3] !== ".codex-plugin" || (parts.length === 4 ? base !== ".codex-plugin" : parts.length !== 5 || base !== "plugin.json")))
42731
42772
  refuse5();
42732
- if ([".app.json", ".mcp.json"].includes(base) && hookParents.some((reviewed) => reviewed.pluginParent === parent))
42773
+ if ([".app.json", ".mcp.json"].includes(folded) && (parts.length !== 4 || dirname14(member) !== root))
42733
42774
  refuse5();
42734
- if ((parts[3] === "hooks" || base === "hooks.json") && (![4, 5].includes(parts.length) || parts[3] !== "hooks" || (parts.length === 4 ? base !== "hooks" : base !== "hooks.json") || !hookParents.some((reviewed) => reviewed.pluginParent === join18(cacheRoot, parts[0], parts[1]))))
42775
+ if ([".app.json", ".mcp.json"].includes(folded) && hookParents.some((reviewed) => reviewed.pluginParent === parent))
42776
+ refuse5();
42777
+ if ((rootEntry === "hooks" || folded === "hooks.json") && (![4, 5].includes(parts.length) || parts[3] !== "hooks" || (parts.length === 4 ? base !== "hooks" : base !== "hooks.json") || !hookParents.some((reviewed) => reviewed.pluginParent === join18(cacheRoot, parts[0], parts[1]))))
42735
42778
  refuse5();
42736
42779
  }
42737
42780
  }
@@ -42998,16 +43041,16 @@ function codexVendorMarketplace(cache, path) {
42998
43041
  return null;
42999
43042
  return CODEX_VENDOR_MARKETPLACES.includes(parts[0]) ? parts[0] : null;
43000
43043
  }
43001
- var OTHER_PLUGIN_CONTROLS = Object.freeze(["plugin.json", ".claude-plugin", ".cursor-plugin", "hooks", "hooks.json", ".mcp.json", "commands", "agents"]);
43044
+ var OTHER_PLUGIN_CONTROLS = Object.freeze(CODEX_PLUGIN_ROOT_CAPABILITY_ENTRIES.filter((entry) => entry !== ".codex-plugin" && entry !== ".app.json"));
43002
43045
  var VENDOR_MANIFEST_KEYS = Object.freeze(["name", "version", "description", "author", "homepage", "repository", "license", "keywords", "interface", "skills", "apps"]);
43003
43046
  var DEFAULT_SKILLS_PATHS = Object.freeze(["./skills", "./skills/"]);
43004
43047
  var VENDOR_APP_DECLARATION = "./.app.json";
43005
43048
  var MAX_SUBTREE_ENTRIES = 20000;
43006
43049
  var MAX_SUBTREE_DEPTH = 32;
43007
43050
  var hiddenName = (name) => name.startsWith(".") || name === "node_modules";
43008
- var isSkillDocument = (name) => name.toLowerCase() === "skill.md";
43051
+ var isSkillDocument = isCodexSkillDocumentName;
43009
43052
  var present = (path) => lstatSync15(path, { throwIfNoEntry: false }) !== undefined;
43010
- var holdsOtherControl = (path) => readdirSync6(path).some((name) => OTHER_PLUGIN_CONTROLS.includes(name.toLowerCase()));
43053
+ var holdsOtherControl = (path) => readdirSync6(path).some((name) => OTHER_PLUGIN_CONTROLS.includes(codexPluginRootCapabilityEntry(name) ?? ""));
43011
43054
  function pluginTreeVisible(path, hidden, insideSkill, depth, budget2) {
43012
43055
  if (depth > MAX_SUBTREE_DEPTH)
43013
43056
  return false;
@@ -53953,7 +53996,7 @@ var $getFlexibleChecksumsPlugin = getFlexibleChecksumsPlugin;
53953
53996
  var $resolveFlexibleChecksumsConfig = resolveFlexibleChecksumsConfig;
53954
53997
 
53955
53998
  // node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
53956
- var import_client26 = __toESM(require_client2(), 1);
53999
+ var import_client27 = __toESM(require_client2(), 1);
53957
54000
 
53958
54001
  // node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js
53959
54002
  var { NoOpLogger, getSmithyContext } = require_client();
@@ -54562,7 +54605,7 @@ var $resolveS3Config = resolveS3Config;
54562
54605
 
54563
54606
  // node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
54564
54607
  var import_core = __toESM(require_dist_cjs2(), 1);
54565
- var import_client27 = __toESM(require_client(), 1);
54608
+ var import_client28 = __toESM(require_client(), 1);
54566
54609
  var import_config38 = __toESM(require_config(), 1);
54567
54610
  var import_endpoints5 = __toESM(require_endpoints(), 1);
54568
54611
  var import_event_streams2 = __toESM(require_event_streams(), 1);
@@ -54573,11 +54616,11 @@ var import_schema2 = __toESM(require_schema4(), 1);
54573
54616
  // node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
54574
54617
  var import_httpAuthSchemes = __toESM(require_httpAuthSchemes(), 1);
54575
54618
  var import_signature_v4_multi_region = __toESM(require_dist_cjs4(), 1);
54576
- var import_client5 = __toESM(require_client(), 1);
54619
+ var import_client6 = __toESM(require_client(), 1);
54577
54620
  var import_endpoints3 = __toESM(require_endpoints(), 1);
54578
54621
 
54579
54622
  // node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
54580
- var import_client4 = __toESM(require_client2(), 1);
54623
+ var import_client5 = __toESM(require_client2(), 1);
54581
54624
  var import_endpoints2 = __toESM(require_endpoints(), 1);
54582
54625
 
54583
54626
  // node_modules/@aws-sdk/client-s3/dist-es/endpoint/bdd.js
@@ -56550,7 +56593,7 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
56550
56593
  logger: context.logger
56551
56594
  }));
56552
56595
  };
56553
- import_endpoints2.customEndpointFunctions.aws = import_client4.awsEndpointFunctions;
56596
+ import_endpoints2.customEndpointFunctions.aws = import_client5.awsEndpointFunctions;
56554
56597
 
56555
56598
  // node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
56556
56599
  var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
@@ -56558,7 +56601,7 @@ var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSche
56558
56601
  throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
56559
56602
  }
56560
56603
  const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
56561
- const instructionsFn = import_client5.getSmithyContext(context)?.commandInstance?.constructor?.getEndpointParameterInstructions;
56604
+ const instructionsFn = import_client6.getSmithyContext(context)?.commandInstance?.constructor?.getEndpointParameterInstructions;
56562
56605
  if (!instructionsFn) {
56563
56606
  throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
56564
56607
  }
@@ -56567,8 +56610,8 @@ var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSche
56567
56610
  };
56568
56611
  var _defaultS3HttpAuthSchemeParametersProvider = async (config, context, input) => {
56569
56612
  return {
56570
- operation: import_client5.getSmithyContext(context).operation,
56571
- region: await import_client5.normalizeProvider(config.region)() || (() => {
56613
+ operation: import_client6.getSmithyContext(context).operation,
56614
+ region: await import_client6.normalizeProvider(config.region)() || (() => {
56572
56615
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
56573
56616
  })()
56574
56617
  };
@@ -56664,12 +56707,12 @@ var resolveHttpAuthSchemeConfig = (config) => {
56664
56707
  const config_0 = import_httpAuthSchemes.resolveAwsSdkSigV4Config(config);
56665
56708
  const config_1 = import_httpAuthSchemes.resolveAwsSdkSigV4AConfig(config_0);
56666
56709
  return Object.assign(config_1, {
56667
- authSchemePreference: import_client5.normalizeProvider(config.authSchemePreference ?? [])
56710
+ authSchemePreference: import_client6.normalizeProvider(config.authSchemePreference ?? [])
56668
56711
  });
56669
56712
  };
56670
56713
 
56671
56714
  // node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
56672
- var import_client6 = __toESM(require_client(), 1);
56715
+ var import_client7 = __toESM(require_client(), 1);
56673
56716
  var import_endpoints4 = __toESM(require_endpoints(), 1);
56674
56717
 
56675
56718
  // node_modules/@aws-sdk/client-s3/dist-es/endpoint/EndpointParameters.js
@@ -56699,7 +56742,7 @@ var commonParams = {
56699
56742
  };
56700
56743
 
56701
56744
  // node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
56702
- var command = import_client6.makeBuilder(commonParams, "AmazonS3", "S3Client", import_endpoints4.getEndpointPlugin);
56745
+ var command = import_client7.makeBuilder(commonParams, "AmazonS3", "S3Client", import_endpoints4.getEndpointPlugin);
56703
56746
  var _ep0 = {
56704
56747
  Bucket: { type: "contextParams", name: "Bucket" },
56705
56748
  Key: { type: "contextParams", name: "Key" }
@@ -56734,8 +56777,8 @@ var _mw11 = (Command, cs, config, o3) => [
56734
56777
  var import_schema = __toESM(require_schema4(), 1);
56735
56778
 
56736
56779
  // node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js
56737
- var import_client7 = __toESM(require_client(), 1);
56738
- class S3ServiceException extends import_client7.ServiceException {
56780
+ var import_client8 = __toESM(require_client(), 1);
56781
+ class S3ServiceException extends import_client8.ServiceException {
56739
56782
  constructor(options) {
56740
56783
  super(options);
56741
56784
  Object.setPrototypeOf(this, S3ServiceException.prototype);
@@ -62561,7 +62604,7 @@ var package_default2 = {
62561
62604
  };
62562
62605
 
62563
62606
  // node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
62564
- var import_client22 = __toESM(require_client2(), 1);
62607
+ var import_client23 = __toESM(require_client2(), 1);
62565
62608
  var import_httpAuthSchemes3 = __toESM(require_httpAuthSchemes(), 1);
62566
62609
 
62567
62610
  // node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
@@ -62719,7 +62762,7 @@ var defaultProvider = (init = {}) => memoizeChain([
62719
62762
  var credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
62720
62763
  // node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
62721
62764
  var import_checksum2 = __toESM(require_checksum(), 1);
62722
- var import_client23 = __toESM(require_client(), 1);
62765
+ var import_client24 = __toESM(require_client(), 1);
62723
62766
  var import_config37 = __toESM(require_config(), 1);
62724
62767
  var import_event_streams = __toESM(require_event_streams(), 1);
62725
62768
  var import_retry3 = __toESM(require_retry(), 1);
@@ -62959,7 +63002,7 @@ var $Sha1 = Sha1Node;
62959
63002
  var import_httpAuthSchemes2 = __toESM(require_httpAuthSchemes(), 1);
62960
63003
  var import_signature_v4_multi_region2 = __toESM(require_dist_cjs4(), 1);
62961
63004
  var import_checksum = __toESM(require_checksum(), 1);
62962
- var import_client21 = __toESM(require_client(), 1);
63005
+ var import_client22 = __toESM(require_client(), 1);
62963
63006
  var import_protocols4 = __toESM(require_protocols(), 1);
62964
63007
  var import_serde3 = __toESM(require_serde(), 1);
62965
63008
  var getRuntimeConfig2 = (config) => {
@@ -62984,7 +63027,7 @@ var getRuntimeConfig2 = (config) => {
62984
63027
  signer: new import_httpAuthSchemes2.AwsSdkSigV4ASigner
62985
63028
  }
62986
63029
  ],
62987
- logger: config?.logger ?? new import_client21.NoOpLogger,
63030
+ logger: config?.logger ?? new import_client22.NoOpLogger,
62988
63031
  md5: config?.md5 ?? import_checksum.Md5,
62989
63032
  protocol: config?.protocol ?? $S3RestXmlProtocol,
62990
63033
  protocolSettings: config?.protocolSettings ?? {
@@ -63009,11 +63052,11 @@ var getRuntimeConfig2 = (config) => {
63009
63052
 
63010
63053
  // node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
63011
63054
  var getRuntimeConfig3 = (config) => {
63012
- import_client23.emitWarningIfUnsupportedVersion(process.version);
63055
+ import_client24.emitWarningIfUnsupportedVersion(process.version);
63013
63056
  const defaultsMode = import_config37.resolveDefaultsModeConfig(config);
63014
- const defaultConfigProvider = () => defaultsMode().then(import_client23.loadConfigsForDefaultMode);
63057
+ const defaultConfigProvider = () => defaultsMode().then(import_client24.loadConfigsForDefaultMode);
63015
63058
  const clientSharedValues = getRuntimeConfig2(config);
63016
- import_client22.emitWarningIfUnsupportedVersion(process.version);
63059
+ import_client23.emitWarningIfUnsupportedVersion(process.version);
63017
63060
  const loaderConfig = {
63018
63061
  profile: config?.profile,
63019
63062
  logger: clientSharedValues.logger
@@ -63026,7 +63069,7 @@ var getRuntimeConfig3 = (config) => {
63026
63069
  authSchemePreference: config?.authSchemePreference ?? import_config37.loadConfig(import_httpAuthSchemes3.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
63027
63070
  bodyLengthChecker: config?.bodyLengthChecker ?? import_serde4.calculateBodyLength,
63028
63071
  credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
63029
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? import_client22.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default2.version }),
63072
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? import_client23.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default2.version }),
63030
63073
  disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? import_config37.loadConfig($NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, loaderConfig),
63031
63074
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? import_event_streams.eventStreamSerdeProvider,
63032
63075
  maxAttempts: config?.maxAttempts ?? import_config37.loadConfig(import_retry3.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
@@ -63044,13 +63087,13 @@ var getRuntimeConfig3 = (config) => {
63044
63087
  useArnRegion: config?.useArnRegion ?? import_config37.loadConfig($NODE_USE_ARN_REGION_CONFIG_OPTIONS, loaderConfig),
63045
63088
  useDualstackEndpoint: config?.useDualstackEndpoint ?? import_config37.loadConfig(import_config37.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
63046
63089
  useFipsEndpoint: config?.useFipsEndpoint ?? import_config37.loadConfig(import_config37.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
63047
- userAgentAppId: config?.userAgentAppId ?? import_config37.loadConfig(import_client22.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
63090
+ userAgentAppId: config?.userAgentAppId ?? import_config37.loadConfig(import_client23.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
63048
63091
  };
63049
63092
  };
63050
63093
 
63051
63094
  // node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
63052
- var import_client24 = __toESM(require_client2(), 1);
63053
- var import_client25 = __toESM(require_client(), 1);
63095
+ var import_client25 = __toESM(require_client2(), 1);
63096
+ var import_client26 = __toESM(require_client(), 1);
63054
63097
  var import_protocols5 = __toESM(require_protocols(), 1);
63055
63098
 
63056
63099
  // node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthExtensionConfiguration.js
@@ -63094,24 +63137,24 @@ var resolveHttpAuthRuntimeConfig2 = (config) => {
63094
63137
 
63095
63138
  // node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
63096
63139
  var resolveRuntimeExtensions2 = (runtimeConfig, extensions) => {
63097
- const extensionConfiguration = Object.assign(import_client24.getAwsRegionExtensionConfiguration(runtimeConfig), import_client25.getDefaultExtensionConfiguration(runtimeConfig), import_protocols5.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig));
63140
+ const extensionConfiguration = Object.assign(import_client25.getAwsRegionExtensionConfiguration(runtimeConfig), import_client26.getDefaultExtensionConfiguration(runtimeConfig), import_protocols5.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig));
63098
63141
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
63099
- return Object.assign(runtimeConfig, import_client24.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client25.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols5.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration));
63142
+ return Object.assign(runtimeConfig, import_client25.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client26.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols5.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration));
63100
63143
  };
63101
63144
 
63102
63145
  // node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
63103
- class S3Client extends import_client27.Client {
63146
+ class S3Client extends import_client28.Client {
63104
63147
  config;
63105
63148
  constructor(...[configuration]) {
63106
63149
  const _config_0 = getRuntimeConfig3(configuration || {});
63107
63150
  super(_config_0);
63108
63151
  this.initConfig = _config_0;
63109
63152
  const _config_1 = resolveClientEndpointParameters(_config_0);
63110
- const _config_2 = import_client26.resolveUserAgentConfig(_config_1);
63153
+ const _config_2 = import_client27.resolveUserAgentConfig(_config_1);
63111
63154
  const _config_3 = $resolveFlexibleChecksumsConfig(_config_2);
63112
63155
  const _config_4 = import_retry4.resolveRetryConfig(_config_3);
63113
63156
  const _config_5 = import_config38.resolveRegionConfig(_config_4);
63114
- const _config_6 = import_client26.resolveHostHeaderConfig(_config_5);
63157
+ const _config_6 = import_client27.resolveHostHeaderConfig(_config_5);
63115
63158
  const _config_7 = import_endpoints5.resolveEndpointConfig(_config_6);
63116
63159
  const _config_8 = import_event_streams2.resolveEventStreamSerdeConfig(_config_7);
63117
63160
  const _config_9 = resolveHttpAuthSchemeConfig(_config_8);
@@ -63119,12 +63162,12 @@ class S3Client extends import_client27.Client {
63119
63162
  const _config_11 = resolveRuntimeExtensions2(_config_10, configuration?.extensions || []);
63120
63163
  this.config = _config_11;
63121
63164
  this.middlewareStack.use(import_schema2.getSchemaSerdePlugin(this.config));
63122
- this.middlewareStack.use(import_client26.getUserAgentPlugin(this.config));
63165
+ this.middlewareStack.use(import_client27.getUserAgentPlugin(this.config));
63123
63166
  this.middlewareStack.use(import_retry4.getRetryPlugin(this.config));
63124
63167
  this.middlewareStack.use(import_protocols6.getContentLengthPlugin(this.config));
63125
- this.middlewareStack.use(import_client26.getHostHeaderPlugin(this.config));
63126
- this.middlewareStack.use(import_client26.getLoggerPlugin(this.config));
63127
- this.middlewareStack.use(import_client26.getRecursionDetectionPlugin(this.config));
63168
+ this.middlewareStack.use(import_client27.getHostHeaderPlugin(this.config));
63169
+ this.middlewareStack.use(import_client27.getLoggerPlugin(this.config));
63170
+ this.middlewareStack.use(import_client27.getRecursionDetectionPlugin(this.config));
63128
63171
  this.middlewareStack.use(import_core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
63129
63172
  httpAuthSchemeParametersProvider: defaultS3HttpAuthSchemeParametersProvider,
63130
63173
  identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
@@ -67187,9 +67230,9 @@ function createReceiptService(store) {
67187
67230
  }
67188
67231
 
67189
67232
  // node_modules/@aws-sdk/client-ecs/dist-es/ECSClient.js
67190
- var import_client36 = __toESM(require_client2(), 1);
67233
+ var import_client37 = __toESM(require_client2(), 1);
67191
67234
  var import_core2 = __toESM(require_dist_cjs2(), 1);
67192
- var import_client37 = __toESM(require_client(), 1);
67235
+ var import_client38 = __toESM(require_client(), 1);
67193
67236
  var import_config41 = __toESM(require_config(), 1);
67194
67237
  var import_endpoints8 = __toESM(require_endpoints(), 1);
67195
67238
  var import_protocols10 = __toESM(require_protocols(), 1);
@@ -67198,11 +67241,11 @@ var import_schema4 = __toESM(require_schema4(), 1);
67198
67241
 
67199
67242
  // node_modules/@aws-sdk/client-ecs/dist-es/auth/httpAuthSchemeProvider.js
67200
67243
  var import_httpAuthSchemes4 = __toESM(require_httpAuthSchemes(), 1);
67201
- var import_client28 = __toESM(require_client(), 1);
67244
+ var import_client29 = __toESM(require_client(), 1);
67202
67245
  var defaultECSHttpAuthSchemeParametersProvider = async (config, context, input) => {
67203
67246
  return {
67204
- operation: import_client28.getSmithyContext(context).operation,
67205
- region: await import_client28.normalizeProvider(config.region)() || (() => {
67247
+ operation: import_client29.getSmithyContext(context).operation,
67248
+ region: await import_client29.normalizeProvider(config.region)() || (() => {
67206
67249
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
67207
67250
  })()
67208
67251
  };
@@ -67234,7 +67277,7 @@ var defaultECSHttpAuthSchemeProvider = (authParameters) => {
67234
67277
  var resolveHttpAuthSchemeConfig3 = (config) => {
67235
67278
  const config_0 = import_httpAuthSchemes4.resolveAwsSdkSigV4Config(config);
67236
67279
  return Object.assign(config_0, {
67237
- authSchemePreference: import_client28.normalizeProvider(config.authSchemePreference ?? [])
67280
+ authSchemePreference: import_client29.normalizeProvider(config.authSchemePreference ?? [])
67238
67281
  });
67239
67282
  };
67240
67283
 
@@ -67326,9 +67369,9 @@ var package_default3 = {
67326
67369
  };
67327
67370
 
67328
67371
  // node_modules/@aws-sdk/client-ecs/dist-es/runtimeConfig.js
67329
- var import_client32 = __toESM(require_client2(), 1);
67372
+ var import_client33 = __toESM(require_client2(), 1);
67330
67373
  var import_httpAuthSchemes6 = __toESM(require_httpAuthSchemes(), 1);
67331
- var import_client33 = __toESM(require_client(), 1);
67374
+ var import_client34 = __toESM(require_client(), 1);
67332
67375
  var import_config40 = __toESM(require_config(), 1);
67333
67376
  var import_retry5 = __toESM(require_retry(), 1);
67334
67377
  var import_serde6 = __toESM(require_serde(), 1);
@@ -67338,12 +67381,12 @@ var import_node_http_handler3 = __toESM(require_dist_cjs6(), 1);
67338
67381
  var import_httpAuthSchemes5 = __toESM(require_httpAuthSchemes(), 1);
67339
67382
  var import_protocols7 = __toESM(require_protocols2(), 1);
67340
67383
  var import_checksum3 = __toESM(require_checksum(), 1);
67341
- var import_client31 = __toESM(require_client(), 1);
67384
+ var import_client32 = __toESM(require_client(), 1);
67342
67385
  var import_protocols8 = __toESM(require_protocols(), 1);
67343
67386
  var import_serde5 = __toESM(require_serde(), 1);
67344
67387
 
67345
67388
  // node_modules/@aws-sdk/client-ecs/dist-es/endpoint/endpointResolver.js
67346
- var import_client29 = __toESM(require_client2(), 1);
67389
+ var import_client30 = __toESM(require_client2(), 1);
67347
67390
  var import_endpoints7 = __toESM(require_endpoints(), 1);
67348
67391
 
67349
67392
  // node_modules/@aws-sdk/client-ecs/dist-es/endpoint/bdd.js
@@ -67440,14 +67483,14 @@ var defaultEndpointResolver3 = (endpointParams, context = {}) => {
67440
67483
  logger: context.logger
67441
67484
  }));
67442
67485
  };
67443
- import_endpoints7.customEndpointFunctions.aws = import_client29.awsEndpointFunctions;
67486
+ import_endpoints7.customEndpointFunctions.aws = import_client30.awsEndpointFunctions;
67444
67487
 
67445
67488
  // node_modules/@aws-sdk/client-ecs/dist-es/schemas/schemas_0.js
67446
67489
  var import_schema3 = __toESM(require_schema4(), 1);
67447
67490
 
67448
67491
  // node_modules/@aws-sdk/client-ecs/dist-es/models/ECSServiceException.js
67449
- var import_client30 = __toESM(require_client(), 1);
67450
- class ECSServiceException extends import_client30.ServiceException {
67492
+ var import_client31 = __toESM(require_client(), 1);
67493
+ class ECSServiceException extends import_client31.ServiceException {
67451
67494
  constructor(options) {
67452
67495
  super(options);
67453
67496
  Object.setPrototypeOf(this, ECSServiceException.prototype);
@@ -70251,7 +70294,7 @@ var getRuntimeConfig4 = (config) => {
70251
70294
  signer: new import_httpAuthSchemes5.AwsSdkSigV4Signer
70252
70295
  }
70253
70296
  ],
70254
- logger: config?.logger ?? new import_client31.NoOpLogger,
70297
+ logger: config?.logger ?? new import_client32.NoOpLogger,
70255
70298
  protocol: config?.protocol ?? import_protocols7.AwsJson1_1Protocol,
70256
70299
  protocolSettings: config?.protocolSettings ?? {
70257
70300
  defaultNamespace: "com.amazonaws.ecs",
@@ -70270,11 +70313,11 @@ var getRuntimeConfig4 = (config) => {
70270
70313
 
70271
70314
  // node_modules/@aws-sdk/client-ecs/dist-es/runtimeConfig.js
70272
70315
  var getRuntimeConfig5 = (config) => {
70273
- import_client33.emitWarningIfUnsupportedVersion(process.version);
70316
+ import_client34.emitWarningIfUnsupportedVersion(process.version);
70274
70317
  const defaultsMode = import_config40.resolveDefaultsModeConfig(config);
70275
- const defaultConfigProvider = () => defaultsMode().then(import_client33.loadConfigsForDefaultMode);
70318
+ const defaultConfigProvider = () => defaultsMode().then(import_client34.loadConfigsForDefaultMode);
70276
70319
  const clientSharedValues = getRuntimeConfig4(config);
70277
- import_client32.emitWarningIfUnsupportedVersion(process.version);
70320
+ import_client33.emitWarningIfUnsupportedVersion(process.version);
70278
70321
  const loaderConfig = {
70279
70322
  profile: config?.profile,
70280
70323
  logger: clientSharedValues.logger
@@ -70287,7 +70330,7 @@ var getRuntimeConfig5 = (config) => {
70287
70330
  authSchemePreference: config?.authSchemePreference ?? import_config40.loadConfig(import_httpAuthSchemes6.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
70288
70331
  bodyLengthChecker: config?.bodyLengthChecker ?? import_serde6.calculateBodyLength,
70289
70332
  credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
70290
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? import_client32.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default3.version }),
70333
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? import_client33.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default3.version }),
70291
70334
  maxAttempts: config?.maxAttempts ?? import_config40.loadConfig(import_retry5.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
70292
70335
  region: config?.region ?? import_config40.loadConfig(import_config40.NODE_REGION_CONFIG_OPTIONS, { ...import_config40.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
70293
70336
  requestHandler: import_node_http_handler3.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -70298,13 +70341,13 @@ var getRuntimeConfig5 = (config) => {
70298
70341
  streamCollector: config?.streamCollector ?? import_node_http_handler3.streamCollector,
70299
70342
  useDualstackEndpoint: config?.useDualstackEndpoint ?? import_config40.loadConfig(import_config40.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
70300
70343
  useFipsEndpoint: config?.useFipsEndpoint ?? import_config40.loadConfig(import_config40.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
70301
- userAgentAppId: config?.userAgentAppId ?? import_config40.loadConfig(import_client32.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
70344
+ userAgentAppId: config?.userAgentAppId ?? import_config40.loadConfig(import_client33.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
70302
70345
  };
70303
70346
  };
70304
70347
 
70305
70348
  // node_modules/@aws-sdk/client-ecs/dist-es/runtimeExtensions.js
70306
- var import_client34 = __toESM(require_client2(), 1);
70307
- var import_client35 = __toESM(require_client(), 1);
70349
+ var import_client35 = __toESM(require_client2(), 1);
70350
+ var import_client36 = __toESM(require_client(), 1);
70308
70351
  var import_protocols9 = __toESM(require_protocols(), 1);
70309
70352
 
70310
70353
  // node_modules/@aws-sdk/client-ecs/dist-es/auth/httpAuthExtensionConfiguration.js
@@ -70348,34 +70391,34 @@ var resolveHttpAuthRuntimeConfig3 = (config) => {
70348
70391
 
70349
70392
  // node_modules/@aws-sdk/client-ecs/dist-es/runtimeExtensions.js
70350
70393
  var resolveRuntimeExtensions3 = (runtimeConfig, extensions) => {
70351
- const extensionConfiguration = Object.assign(import_client34.getAwsRegionExtensionConfiguration(runtimeConfig), import_client35.getDefaultExtensionConfiguration(runtimeConfig), import_protocols9.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration3(runtimeConfig));
70394
+ const extensionConfiguration = Object.assign(import_client35.getAwsRegionExtensionConfiguration(runtimeConfig), import_client36.getDefaultExtensionConfiguration(runtimeConfig), import_protocols9.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration3(runtimeConfig));
70352
70395
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
70353
- return Object.assign(runtimeConfig, import_client34.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client35.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols9.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig3(extensionConfiguration));
70396
+ return Object.assign(runtimeConfig, import_client35.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client36.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols9.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig3(extensionConfiguration));
70354
70397
  };
70355
70398
 
70356
70399
  // node_modules/@aws-sdk/client-ecs/dist-es/ECSClient.js
70357
- class ECSClient extends import_client37.Client {
70400
+ class ECSClient extends import_client38.Client {
70358
70401
  config;
70359
70402
  constructor(...[configuration]) {
70360
70403
  const _config_0 = getRuntimeConfig5(configuration || {});
70361
70404
  super(_config_0);
70362
70405
  this.initConfig = _config_0;
70363
70406
  const _config_1 = resolveClientEndpointParameters3(_config_0);
70364
- const _config_2 = import_client36.resolveUserAgentConfig(_config_1);
70407
+ const _config_2 = import_client37.resolveUserAgentConfig(_config_1);
70365
70408
  const _config_3 = import_retry6.resolveRetryConfig(_config_2);
70366
70409
  const _config_4 = import_config41.resolveRegionConfig(_config_3);
70367
- const _config_5 = import_client36.resolveHostHeaderConfig(_config_4);
70410
+ const _config_5 = import_client37.resolveHostHeaderConfig(_config_4);
70368
70411
  const _config_6 = import_endpoints8.resolveEndpointConfig(_config_5);
70369
70412
  const _config_7 = resolveHttpAuthSchemeConfig3(_config_6);
70370
70413
  const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
70371
70414
  this.config = _config_8;
70372
70415
  this.middlewareStack.use(import_schema4.getSchemaSerdePlugin(this.config));
70373
- this.middlewareStack.use(import_client36.getUserAgentPlugin(this.config));
70416
+ this.middlewareStack.use(import_client37.getUserAgentPlugin(this.config));
70374
70417
  this.middlewareStack.use(import_retry6.getRetryPlugin(this.config));
70375
70418
  this.middlewareStack.use(import_protocols10.getContentLengthPlugin(this.config));
70376
- this.middlewareStack.use(import_client36.getHostHeaderPlugin(this.config));
70377
- this.middlewareStack.use(import_client36.getLoggerPlugin(this.config));
70378
- this.middlewareStack.use(import_client36.getRecursionDetectionPlugin(this.config));
70419
+ this.middlewareStack.use(import_client37.getHostHeaderPlugin(this.config));
70420
+ this.middlewareStack.use(import_client37.getLoggerPlugin(this.config));
70421
+ this.middlewareStack.use(import_client37.getRecursionDetectionPlugin(this.config));
70379
70422
  this.middlewareStack.use(import_core2.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
70380
70423
  httpAuthSchemeParametersProvider: defaultECSHttpAuthSchemeParametersProvider,
70381
70424
  identityProviderConfigProvider: async (config) => new import_core2.DefaultIdentityProviderConfig({
@@ -70390,9 +70433,9 @@ class ECSClient extends import_client37.Client {
70390
70433
  }
70391
70434
 
70392
70435
  // node_modules/@aws-sdk/client-ecs/dist-es/commandBuilder.js
70393
- var import_client38 = __toESM(require_client(), 1);
70436
+ var import_client39 = __toESM(require_client(), 1);
70394
70437
  var import_endpoints9 = __toESM(require_endpoints(), 1);
70395
- var command3 = import_client38.makeBuilder(commonParams3, "AmazonEC2ContainerServiceV20141113", "ECSClient", import_endpoints9.getEndpointPlugin);
70438
+ var command3 = import_client39.makeBuilder(commonParams3, "AmazonEC2ContainerServiceV20141113", "ECSClient", import_endpoints9.getEndpointPlugin);
70396
70439
  var _ep03 = {};
70397
70440
  var _mw03 = (Command, cs, config, o3) => [];
70398
70441
 
@@ -98330,6 +98373,16 @@ async function requestInvitationEmail(origin, action, input2) {
98330
98373
  // src/lib/remote-private-publications.ts
98331
98374
  import { createHash as createHash45 } from "crypto";
98332
98375
  var PRIVATE_PUBLICATION_MAX_BYTES = 16 * 1024 * 1024;
98376
+ var skillCreateFailures = {
98377
+ INVALID_SLUG: [400, "Provide a lowercase kebab-case skill slug."],
98378
+ INVALID_DISPLAY_NAME: [400, "Provide a nonempty skill display name."],
98379
+ INVALID_VISIBILITY: [400, "Use private or team visibility for source publication."],
98380
+ SESSION_EXPIRED: [401, "Sign in again before creating a private skill."],
98381
+ INTERACTIVE_SESSION_REQUIRED: [403, "An interactive account session is required to create a private skill."],
98382
+ ACCOUNT_UNAVAILABLE: [403, "The current account membership cannot create a private skill."],
98383
+ PLAN_REQUIRED: [403, "Private and team skills require the Pro plan."],
98384
+ SLUG_CONFLICT: [409, "This skill slug already exists. Inspect the existing skill before publishing."]
98385
+ };
98333
98386
  var failures2 = {
98334
98387
  INVALID_REQUEST: [400, "The publication request is invalid."],
98335
98388
  SESSION_EXPIRED: [401, "Sign in again to manage this publication."],
@@ -98376,6 +98429,24 @@ var record12 = (v2) => !!v2 && typeof v2 === "object" && !Array.isArray(v2);
98376
98429
  var exact = (v2, keys4) => record12(v2) && Object.keys(v2).sort().join(",") === keys4.sort().join(",");
98377
98430
  var date5 = (v2) => typeof v2 === "string" && /^\d{4}-\d\d-\d\dT[0-9:.]+(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/.test(v2) && Number.isFinite(Date.parse(v2));
98378
98431
  var publicationSha256 = (bytes) => createHash45("sha256").update(bytes).digest("hex");
98432
+ function checkedPrivateSkillCreate(value) {
98433
+ const refuse8 = (field3, accepted) => {
98434
+ throw new PrivatePublicationError("INVALID_SKILL_CREATE_INPUT", `Invalid ${field3}. ${accepted}`);
98435
+ };
98436
+ if (!record12(value) || !Object.keys(value).every((key2) => ["slug", "displayName", "description", "visibility", "confirm"].includes(key2)))
98437
+ return refuse8("create input", "Provide only slug, displayName, description, visibility and confirm.");
98438
+ if (value.confirm !== true)
98439
+ throw new PrivatePublicationError("SKILL_CREATE_CONFIRM_REQUIRED", "Explicit confirmation is required to create this skill.");
98440
+ if (typeof value.slug !== "string" || value.slug.length > 128 || !/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(value.slug))
98441
+ return refuse8("slug", "Use lowercase kebab-case, at most 128 characters.");
98442
+ if (typeof value.displayName !== "string" || !value.displayName.trim() || value.displayName.length > 256 || /[\p{Cc}\p{Cs}\u2028\u2029]/u.test(value.displayName))
98443
+ return refuse8("displayName", "Use nonempty text, at most 256 characters, without control characters.");
98444
+ if (value.description !== undefined && (typeof value.description !== "string" || Buffer.byteLength(value.description) > 8192 || /[\p{Cc}\p{Cs}]/u.test(value.description.replace(/[\r\n\t]/g, ""))))
98445
+ return refuse8("description", "Use text of at most 8192 UTF-8 bytes, without control characters other than tabs and newlines.");
98446
+ if (value.visibility !== undefined && value.visibility !== "private" && value.visibility !== "team")
98447
+ return refuse8("visibility", "Use private or team.");
98448
+ return Object.freeze({ slug: value.slug, displayName: value.displayName.trim(), description: value.description ?? "", visibility: value.visibility ?? "private" });
98449
+ }
98379
98450
  function checkedPublicationDeclaration(value) {
98380
98451
  if (!exact(value, ["idempotencyKey", "version", "expectedCurrentVersionId", "manifestText", "archiveSha256", "archiveByteSize"]) || !publicationUuid(value.idempotencyKey) || !(value.expectedCurrentVersionId === null || publicationUuid(value.expectedCurrentVersionId)) || typeof value.version !== "string" || !value.version || value.version.length > 128 || /[\p{Cc}\p{Cs}]/u.test(value.version) || typeof value.manifestText !== "string" || Buffer.byteLength(value.manifestText) > 16384 || !hash5(value.archiveSha256) || !Number.isSafeInteger(value.archiveByteSize) || Number(value.archiveByteSize) < 1 || Number(value.archiveByteSize) > PRIVATE_PUBLICATION_MAX_BYTES)
98381
98452
  return bad();
@@ -98395,11 +98466,11 @@ function checkedPublicationView(value, skillId, intentId, declaration) {
98395
98466
  return invalid7();
98396
98467
  return Object.freeze({ ...value });
98397
98468
  }
98398
- async function boundedJson(url2, init, token, mutation, budget3 = 15000, signal) {
98469
+ async function boundedJson(url2, init, token, mutation, budget3 = 15000, signal, create = false) {
98399
98470
  const controller = new AbortController;
98400
98471
  let reader;
98401
98472
  let response;
98402
- const timeout2 = new PrivatePublicationError("PUBLICATION_UNCONFIRMED", "No confirmed publication result. Inspect the saved intent before retrying.", mutation);
98473
+ const timeout2 = new PrivatePublicationError(create ? "SKILL_CREATE_UNCONFIRMED" : "PUBLICATION_UNCONFIRMED", create ? "Skill creation could not be confirmed. Inspect the workspace for this slug before another create; do not retry automatically." : "No confirmed publication result. Inspect the saved intent before retrying.", mutation);
98403
98474
  let timer;
98404
98475
  let abort;
98405
98476
  try {
@@ -98439,11 +98510,19 @@ async function boundedJson(url2, init, token, mutation, budget3 = 15000, signal)
98439
98510
  return invalid7();
98440
98511
  }
98441
98512
  if (!response.ok) {
98442
- const code = record12(body4) && typeof body4.code === "string" && Object.hasOwn(failures2, body4.code) ? body4.code : null;
98443
- if (code && failures2[code][0] === response.status)
98444
- throw new PrivatePublicationError(code, failures2[code][1], mutation && code === "PUBLICATION_UNCERTAIN", response.status);
98513
+ const known = create ? skillCreateFailures : failures2;
98514
+ const code = record12(body4) && typeof body4.code === "string" && Object.hasOwn(known, body4.code) ? body4.code : null;
98515
+ if (code && known[code][0] === response.status)
98516
+ throw new PrivatePublicationError(code, known[code][1], mutation && code === "PUBLICATION_UNCERTAIN", response.status);
98517
+ if (create) {
98518
+ if (response.status >= 500)
98519
+ throw timeout2;
98520
+ throw new PrivatePublicationError("SKILL_CREATE_REQUEST_FAILED", "The server refused skill creation.", false, response.status);
98521
+ }
98445
98522
  throw new PrivatePublicationError("PUBLICATION_REQUEST_FAILED", "The publication request was refused. Inspect its status before retrying.", mutation && response.status >= 500, response.status);
98446
98523
  }
98524
+ if (create && response.status !== 201)
98525
+ return invalid7();
98447
98526
  return body4;
98448
98527
  })(), new Promise((_, reject) => {
98449
98528
  abort = () => {
@@ -98490,6 +98569,15 @@ class RemotePrivatePublicationsClient {
98490
98569
  this.membershipId = checked.user.membershipId;
98491
98570
  Object.freeze(this);
98492
98571
  }
98572
+ async createSkill(input2, options = {}) {
98573
+ const body4 = checkedPrivateSkillCreate(input2);
98574
+ if (options.timeoutMs !== undefined && (!Number.isSafeInteger(options.timeoutMs) || options.timeoutMs < 1 || options.timeoutMs > 15000))
98575
+ throw new PrivatePublicationError("INVALID_SKILL_CREATE_INPUT", "Invalid timeoutMs. Use an integer from 1 to 15000.");
98576
+ const value = await boundedJson(skillsApiRequestUrl(this.apiOrigin, "/api/v1/skills"), { method: "POST", body: JSON.stringify(body4) }, this.#token, true, options.timeoutMs, options.signal, true);
98577
+ if (!record12(value) || !publicationUuid(value.id) || value.slug !== body4.slug || value.displayName !== body4.displayName || value.description !== body4.description || value.visibility !== body4.visibility || value.sourceType !== "private_hosted" || !record12(value.metadata) || value.metadata.ownerOrganizationId !== this.organizationId)
98578
+ throw new PrivatePublicationError("SKILL_CREATE_UNCONFIRMED", "Skill creation returned an unbound result. Inspect the workspace for this slug before another create; do not retry automatically.", true);
98579
+ return Object.freeze({ id: value.id, slug: body4.slug, visibility: body4.visibility, sourceType: "private_hosted", ownerOrganizationId: this.organizationId });
98580
+ }
98493
98581
  async getCapability(options = {}) {
98494
98582
  if (options.timeoutMs !== undefined && (!Number.isSafeInteger(options.timeoutMs) || options.timeoutMs < 1 || options.timeoutMs > 15000))
98495
98583
  return bad();