@karmaniverous/get-dotenv 7.0.6 → 7.0.7

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 (41) hide show
  1. package/dist/chunks/{AwsRestJsonProtocol-4m7HHwvS.mjs → AwsRestJsonProtocol-BWWvLZiw.mjs} +2 -2
  2. package/dist/chunks/{createCli-BkHLeYXL.mjs → createCli-DRgcaM2D.mjs} +9 -7
  3. package/dist/chunks/{externalDataInterceptor-DyDNbv-D.mjs → externalDataInterceptor-Bbvq4sdd.mjs} +2 -2
  4. package/dist/chunks/{getSSOTokenFromFile-CkYcEieD.mjs → getSSOTokenFromFile-ClTzvS3i.mjs} +1 -1
  5. package/dist/chunks/{index-BuxEK_Z4.mjs → index-4kbkrHS9.mjs} +8 -8
  6. package/dist/chunks/{index-B35hOhgq.mjs → index-B5GwHCSX.mjs} +4 -4
  7. package/dist/chunks/{index-Dd6S1nZ-.mjs → index-BzoCat8h.mjs} +2 -2
  8. package/dist/chunks/{index-D-a5vkZL.mjs → index-Cl6wXPYD.mjs} +5 -5
  9. package/dist/chunks/{index-B3fM_U6F.mjs → index-D7Lv-lxm.mjs} +7 -7
  10. package/dist/chunks/{index-CsI5JuIM.mjs → index-DFNP_Nrx.mjs} +3 -3
  11. package/dist/chunks/{index-CjWZ4uNg.mjs → index-DO68RbZ8.mjs} +5 -5
  12. package/dist/chunks/{index-QkVZTs6l.mjs → index-Db08BBL5.mjs} +12 -12
  13. package/dist/chunks/{index-B_yJRqty.mjs → index-De2jIOhi.mjs} +4 -4
  14. package/dist/chunks/{index-Dl8qC51H.mjs → index-IOQ1o3w3.mjs} +2 -2
  15. package/dist/chunks/{index-C58EanKv.mjs → index-Tm4WDj9R.mjs} +2 -2
  16. package/dist/chunks/{index-D6iVe1wh.mjs → index-fNrNPp4e.mjs} +2 -2
  17. package/dist/chunks/{index-FT37CtcF.mjs → index-w8gK2SKP.mjs} +3 -3
  18. package/dist/chunks/{loadSso-DF7GLUZf.mjs → loadSso-Ce3ChPPj.mjs} +4 -4
  19. package/dist/chunks/{parseKnownFiles-BZNrX_JE.mjs → parseKnownFiles-BCL0L7aP.mjs} +1 -1
  20. package/dist/chunks/{readMergedOptions-CraAnYdB.mjs → readMergedOptions-x80ltQO_.mjs} +22 -9
  21. package/dist/chunks/{resolveCliOptions-BMBkWDYJ.mjs → resolveCliOptions-CR-BEUmS.mjs} +1 -1
  22. package/dist/chunks/{sdk-stream-mixin-BL49AxZx.mjs → sdk-stream-mixin-B_ajKWho.mjs} +1 -1
  23. package/dist/chunks/{types-BthqmnDr.mjs → types-poB1VAs_.mjs} +1 -1
  24. package/dist/cli.d.ts +22 -5
  25. package/dist/cli.mjs +5 -5
  26. package/dist/cliHost.d.ts +22 -5
  27. package/dist/cliHost.mjs +3 -3
  28. package/dist/getdotenv.cli.mjs +5 -5
  29. package/dist/index.d.ts +22 -5
  30. package/dist/index.mjs +8 -8
  31. package/dist/plugins-aws.d.ts +11 -0
  32. package/dist/plugins-aws.mjs +5 -4
  33. package/dist/plugins-batch.d.ts +11 -0
  34. package/dist/plugins-batch.mjs +1 -1
  35. package/dist/plugins-cmd.d.ts +11 -0
  36. package/dist/plugins-cmd.mjs +3 -3
  37. package/dist/plugins-init.d.ts +11 -0
  38. package/dist/plugins-init.mjs +1 -1
  39. package/dist/plugins.d.ts +11 -0
  40. package/dist/plugins.mjs +4 -4
  41. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { m as HttpProtocol, z as NormalizedSchema, n as HttpRequest, aU as translateTraits, a3 as extendedEncodeURIComponent, X as collectBody, aP as splitHeader, S as SerdeContext, F as FromStringShapeDeserializer, aT as toUtf8, a8 as fromUtf8, a9 as generateIdempotencyToken, L as LazyJsonString, aR as toBase64, a0 as determineTimestampFormat, _ as dateToUtcString, G as NumericValue, K as SerdeContextConfig, U as UnionSerde, a6 as fromBase64, av as parseEpochTimestamp, az as parseRfc7231DateTime, ay as parseRfc3339DateTimeWithOffset, P as ProtocolLib } from './index-BuxEK_Z4.mjs';
1
+ import { m as HttpProtocol, z as NormalizedSchema, n as HttpRequest, aU as translateTraits, a3 as extendedEncodeURIComponent, X as collectBody, aP as splitHeader, S as SerdeContext, F as FromStringShapeDeserializer, aT as toUtf8, a8 as fromUtf8, a9 as generateIdempotencyToken, L as LazyJsonString, aR as toBase64, a0 as determineTimestampFormat, _ as dateToUtcString, G as NumericValue, K as SerdeContextConfig, U as UnionSerde, a6 as fromBase64, av as parseEpochTimestamp, az as parseRfc7231DateTime, ay as parseRfc3339DateTimeWithOffset, P as ProtocolLib } from './index-4kbkrHS9.mjs';
2
2
  import 'node:crypto';
3
- import { s as sdkStreamMixin } from './sdk-stream-mixin-BL49AxZx.mjs';
3
+ import { s as sdkStreamMixin } from './sdk-stream-mixin-B_ajKWho.mjs';
4
4
 
5
5
  function quoteHeader(part) {
6
6
  if (part.includes(",") || part.includes('"')) {
@@ -6,19 +6,19 @@ import 'fs-extra';
6
6
  import 'node:path';
7
7
  import 'radash';
8
8
  import 'node:buffer';
9
- import { d as defaultsDeep, h as getDotenvCliOptions2Options, c as baseRootOptionDefaults, G as GetDotenvCli, b as attachRootOptions } from './readMergedOptions-CraAnYdB.mjs';
9
+ import { d as defaultsDeep, h as getDotenvCliOptions2Options, c as baseRootOptionDefaults, G as GetDotenvCli, b as attachRootOptions } from './readMergedOptions-x80ltQO_.mjs';
10
10
  import 'crypto';
11
11
  import 'url';
12
12
  import '@commander-js/extra-typings';
13
13
  import 'dotenv';
14
14
  import 'execa';
15
15
  import { t as toHelpConfig } from './helpConfig-CGejgwWW.mjs';
16
- import { r as resolveCliOptions } from './resolveCliOptions-BMBkWDYJ.mjs';
16
+ import { r as resolveCliOptions } from './resolveCliOptions-CR-BEUmS.mjs';
17
17
  import { v as validateEnvAgainstSources } from './validate-CDl0rE6k.mjs';
18
18
  import { awsPlugin } from '../plugins-aws.mjs';
19
- import { R as awsWhoamiPlugin } from './index-BuxEK_Z4.mjs';
19
+ import { R as awsWhoamiPlugin } from './index-4kbkrHS9.mjs';
20
20
  import { batchPlugin } from '../plugins-batch.mjs';
21
- import { c as cmdPlugin } from './index-Dd6S1nZ-.mjs';
21
+ import { c as cmdPlugin } from './index-BzoCat8h.mjs';
22
22
  import { initPlugin } from '../plugins-init.mjs';
23
23
 
24
24
  const dbg = (...args) => {
@@ -66,7 +66,7 @@ function installRootHooks(program, defaults) {
66
66
  }
67
67
  };
68
68
  // Hook: preSubcommand — always runs for subcommand flows.
69
- program.hook('preSubcommand', async (thisCommand) => {
69
+ program.hook('preSubcommand', async (thisCommand, actionCommand) => {
70
70
  const sources = await resolveGetDotenvConfigSources(import.meta.url);
71
71
  const rawArgs = thisCommand.rawArgs ?? [];
72
72
  dbg('preSubcommand:rawArgs', rawArgs);
@@ -83,7 +83,9 @@ function installRootHooks(program, defaults) {
83
83
  program._setOptionsBag(merged);
84
84
  // Resolve context for this run via programmatic converter.
85
85
  const serviceOptions = getDotenvCliOptions2Options(merged);
86
- await program.resolveAndLoad(serviceOptions);
86
+ await program.resolveAndLoad(serviceOptions, {
87
+ invokedSubcommand: actionCommand.name(),
88
+ });
87
89
  propagateResolvedEnv(merged);
88
90
  // Refresh dynamic help text using the resolved config slices.
89
91
  try {
@@ -130,7 +132,7 @@ function installRootHooks(program, defaults) {
130
132
  program._setOptionsBag(merged);
131
133
  if (!program.hasCtx()) {
132
134
  const serviceOptions = getDotenvCliOptions2Options(merged);
133
- await program.resolveAndLoad(serviceOptions);
135
+ await program.resolveAndLoad(serviceOptions, { runAfterResolve: false });
134
136
  }
135
137
  // Always propagate resolved env into the merged bag — even when
136
138
  // preSubcommand already set the context. preAction unconditionally
@@ -1,5 +1,5 @@
1
- import { t as tokenIntercept } from './getSSOTokenFromFile-CkYcEieD.mjs';
2
- import { a4 as fileIntercept } from './index-BuxEK_Z4.mjs';
1
+ import { t as tokenIntercept } from './getSSOTokenFromFile-ClTzvS3i.mjs';
2
+ import { a4 as fileIntercept } from './index-4kbkrHS9.mjs';
3
3
 
4
4
  const externalDataInterceptor = {
5
5
  getFileRecord() {
@@ -1,7 +1,7 @@
1
1
  import { readFile } from 'node:fs/promises';
2
2
  import { createHash } from 'node:crypto';
3
3
  import { join } from 'node:path';
4
- import { af as getHomeDir } from './index-BuxEK_Z4.mjs';
4
+ import { af as getHomeDir } from './index-4kbkrHS9.mjs';
5
5
 
6
6
  const getSSOTokenFilepath = (id) => {
7
7
  const hasher = createHash("sha1");
@@ -1,4 +1,4 @@
1
- import { g as definePlugin } from './readMergedOptions-CraAnYdB.mjs';
1
+ import { g as definePlugin } from './readMergedOptions-x80ltQO_.mjs';
2
2
  import 'execa';
3
3
  import 'radash';
4
4
  import 'node:buffer';
@@ -2572,7 +2572,7 @@ class HttpProtocol extends SerdeContext {
2572
2572
  });
2573
2573
  }
2574
2574
  async loadEventStreamCapability() {
2575
- const { EventStreamSerde } = await import('./index-Dl8qC51H.mjs');
2575
+ const { EventStreamSerde } = await import('./index-IOQ1o3w3.mjs');
2576
2576
  return new EventStreamSerde({
2577
2577
  marshaller: this.getEventStreamMarshaller(),
2578
2578
  serializer: this.serializer,
@@ -6431,10 +6431,10 @@ const fromEnv = (init) => async () => {
6431
6431
 
6432
6432
  const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
6433
6433
  const remoteProvider = async (init) => {
6434
- const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('./index-C58EanKv.mjs');
6434
+ const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('./index-Tm4WDj9R.mjs');
6435
6435
  if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
6436
6436
  init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
6437
- const { fromHttp } = await import('./index-CsI5JuIM.mjs');
6437
+ const { fromHttp } = await import('./index-DFNP_Nrx.mjs');
6438
6438
  return chain(fromHttp(init), fromContainerMetadata(init));
6439
6439
  }
6440
6440
  if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
@@ -6544,22 +6544,22 @@ const defaultProvider = (init = {}) => memoizeChain([
6544
6544
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
6545
6545
  throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
6546
6546
  }
6547
- const { fromSSO } = await import('./index-B3fM_U6F.mjs');
6547
+ const { fromSSO } = await import('./index-D7Lv-lxm.mjs');
6548
6548
  return fromSSO(init)(awsIdentityProperties);
6549
6549
  },
6550
6550
  async (awsIdentityProperties) => {
6551
6551
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
6552
- const { fromIni } = await import('./index-QkVZTs6l.mjs');
6552
+ const { fromIni } = await import('./index-Db08BBL5.mjs');
6553
6553
  return fromIni(init)(awsIdentityProperties);
6554
6554
  },
6555
6555
  async (awsIdentityProperties) => {
6556
6556
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
6557
- const { fromProcess } = await import('./index-CjWZ4uNg.mjs');
6557
+ const { fromProcess } = await import('./index-DO68RbZ8.mjs');
6558
6558
  return fromProcess(init)(awsIdentityProperties);
6559
6559
  },
6560
6560
  async (awsIdentityProperties) => {
6561
6561
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
6562
- const { fromTokenFile } = await import('./index-D-a5vkZL.mjs');
6562
+ const { fromTokenFile } = await import('./index-Cl6wXPYD.mjs');
6563
6563
  return fromTokenFile(init)(awsIdentityProperties);
6564
6564
  },
6565
6565
  async () => {
@@ -1,8 +1,8 @@
1
- import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-BuxEK_Z4.mjs';
1
+ import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-4kbkrHS9.mjs';
2
2
  import { p as packageInfo } from './package-DbbYaehr.mjs';
3
3
  import 'node:crypto';
4
- import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-4m7HHwvS.mjs';
5
- import './readMergedOptions-CraAnYdB.mjs';
4
+ import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-BWWvLZiw.mjs';
5
+ import './readMergedOptions-x80ltQO_.mjs';
6
6
  import 'zod';
7
7
  import '@commander-js/extra-typings';
8
8
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -26,7 +26,7 @@ import 'node:stream';
26
26
  import 'node:fs';
27
27
  import 'node:https';
28
28
  import 'node:process';
29
- import './sdk-stream-mixin-BL49AxZx.mjs';
29
+ import './sdk-stream-mixin-B_ajKWho.mjs';
30
30
 
31
31
  const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
32
32
  return {
@@ -1,5 +1,5 @@
1
1
  import { camel } from 'radash';
2
- import { r as readMergedOptions, d as defaultsDeep, h as getDotenvCliOptions2Options, g as definePlugin } from './readMergedOptions-CraAnYdB.mjs';
2
+ import { r as readMergedOptions, d as defaultsDeep, h as getDotenvCliOptions2Options, g as definePlugin } from './readMergedOptions-x80ltQO_.mjs';
3
3
  import 'execa';
4
4
  import 'node:buffer';
5
5
  import 'fs-extra';
@@ -17,7 +17,7 @@ import { z } from 'zod';
17
17
  import { r as resolveCommand, a as resolveShell, t as tokenize, s as shouldCapture, c as runCommand, b as buildSpawnEnv } from './spawnEnv-CKgnHGpr.mjs';
18
18
  import { m as maybePreserveNodeEvalArgv, c as composeNestedEnv, s as stripOne } from './invoke-DuRPU1oC.mjs';
19
19
  import { f as dotenvExpandFromProcessEnv } from './readDotenvCascade-Dgx4SC1p.mjs';
20
- import { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './resolveCliOptions-BMBkWDYJ.mjs';
20
+ import { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './resolveCliOptions-CR-BEUmS.mjs';
21
21
 
22
22
  /** src/diagnostics/entropy.ts
23
23
  * Entropy diagnostics (presentation-only).
@@ -1,7 +1,7 @@
1
1
  import { readFileSync } from 'node:fs';
2
- import { e as CredentialsProviderError, aO as setCredentialFeature } from './index-BuxEK_Z4.mjs';
3
- import { e as externalDataInterceptor } from './externalDataInterceptor-DyDNbv-D.mjs';
4
- import './readMergedOptions-CraAnYdB.mjs';
2
+ import { e as CredentialsProviderError, aO as setCredentialFeature } from './index-4kbkrHS9.mjs';
3
+ import { e as externalDataInterceptor } from './externalDataInterceptor-Bbvq4sdd.mjs';
4
+ import './readMergedOptions-x80ltQO_.mjs';
5
5
  import 'zod';
6
6
  import '@commander-js/extra-typings';
7
7
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -25,14 +25,14 @@ import 'node:stream';
25
25
  import 'node:crypto';
26
26
  import 'node:https';
27
27
  import 'node:process';
28
- import './getSSOTokenFromFile-CkYcEieD.mjs';
28
+ import './getSSOTokenFromFile-ClTzvS3i.mjs';
29
29
 
30
30
  const fromWebToken = (init) => async (awsIdentityProperties) => {
31
31
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
32
32
  const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
33
33
  let { roleAssumerWithWebIdentity } = init;
34
34
  if (!roleAssumerWithWebIdentity) {
35
- const { getDefaultRoleAssumerWithWebIdentity } = await import('./index-D6iVe1wh.mjs');
35
+ const { getDefaultRoleAssumerWithWebIdentity } = await import('./index-fNrNPp4e.mjs');
36
36
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
37
37
  ...init.clientConfig,
38
38
  credentialProviderLogger: init.logger,
@@ -1,8 +1,8 @@
1
- import { J as ProviderError, I as IniSectionType, C as CONFIG_PREFIX_SEPARATOR, aB as readFile, ab as getConfigFilepath, aw as parseIni, al as getProfileName, e as CredentialsProviderError, aO as setCredentialFeature } from './index-BuxEK_Z4.mjs';
1
+ import { J as ProviderError, I as IniSectionType, C as CONFIG_PREFIX_SEPARATOR, aB as readFile, ab as getConfigFilepath, aw as parseIni, al as getProfileName, e as CredentialsProviderError, aO as setCredentialFeature } from './index-4kbkrHS9.mjs';
2
2
  import { promises } from 'node:fs';
3
- import { g as getSSOTokenFilepath, a as getSSOTokenFromFile } from './getSSOTokenFromFile-CkYcEieD.mjs';
4
- import { p as parseKnownFiles } from './parseKnownFiles-BZNrX_JE.mjs';
5
- import './readMergedOptions-CraAnYdB.mjs';
3
+ import { g as getSSOTokenFilepath, a as getSSOTokenFromFile } from './getSSOTokenFromFile-ClTzvS3i.mjs';
4
+ import { p as parseKnownFiles } from './parseKnownFiles-BCL0L7aP.mjs';
5
+ import './readMergedOptions-x80ltQO_.mjs';
6
6
  import 'zod';
7
7
  import '@commander-js/extra-typings';
8
8
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -56,7 +56,7 @@ const EXPIRE_WINDOW_MS = 5 * 60 * 1000;
56
56
  const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
57
57
 
58
58
  const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
59
- const { SSOOIDCClient } = await import('./index-B35hOhgq.mjs');
59
+ const { SSOOIDCClient } = await import('./index-B5GwHCSX.mjs');
60
60
  const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
61
61
  const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
62
62
  region: ssoRegion ?? init.clientConfig?.region,
@@ -67,7 +67,7 @@ const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
67
67
  };
68
68
 
69
69
  const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
70
- const { CreateTokenCommand } = await import('./index-B35hOhgq.mjs');
70
+ const { CreateTokenCommand } = await import('./index-B5GwHCSX.mjs');
71
71
  const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
72
72
  return ssoOidcClient.send(new CreateTokenCommand({
73
73
  clientId: ssoToken.clientId,
@@ -213,7 +213,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
213
213
  });
214
214
  }
215
215
  const { accessToken } = token;
216
- const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-DF7GLUZf.mjs');
216
+ const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-Ce3ChPPj.mjs');
217
217
  const sso = ssoClient ||
218
218
  new SSOClient(Object.assign({}, clientConfig ?? {}, {
219
219
  logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
@@ -1,7 +1,7 @@
1
1
  import fs from 'node:fs/promises';
2
- import { e as CredentialsProviderError, n as HttpRequest, ax as parseRfc3339DateTime, y as NodeHttpHandler, aO as setCredentialFeature } from './index-BuxEK_Z4.mjs';
3
- import { s as sdkStreamMixin } from './sdk-stream-mixin-BL49AxZx.mjs';
4
- import './readMergedOptions-CraAnYdB.mjs';
2
+ import { e as CredentialsProviderError, n as HttpRequest, ax as parseRfc3339DateTime, y as NodeHttpHandler, aO as setCredentialFeature } from './index-4kbkrHS9.mjs';
3
+ import { s as sdkStreamMixin } from './sdk-stream-mixin-B_ajKWho.mjs';
4
+ import './readMergedOptions-x80ltQO_.mjs';
5
5
  import 'zod';
6
6
  import '@commander-js/extra-typings';
7
7
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -1,9 +1,9 @@
1
1
  import { exec } from 'node:child_process';
2
2
  import { promisify } from 'node:util';
3
- import { aO as setCredentialFeature, e as CredentialsProviderError, al as getProfileName } from './index-BuxEK_Z4.mjs';
4
- import { e as externalDataInterceptor } from './externalDataInterceptor-DyDNbv-D.mjs';
5
- import { p as parseKnownFiles } from './parseKnownFiles-BZNrX_JE.mjs';
6
- import './readMergedOptions-CraAnYdB.mjs';
3
+ import { aO as setCredentialFeature, e as CredentialsProviderError, al as getProfileName } from './index-4kbkrHS9.mjs';
4
+ import { e as externalDataInterceptor } from './externalDataInterceptor-Bbvq4sdd.mjs';
5
+ import { p as parseKnownFiles } from './parseKnownFiles-BCL0L7aP.mjs';
6
+ import './readMergedOptions-x80ltQO_.mjs';
7
7
  import 'zod';
8
8
  import '@commander-js/extra-typings';
9
9
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -28,7 +28,7 @@ import 'node:crypto';
28
28
  import 'node:fs';
29
29
  import 'node:https';
30
30
  import 'node:process';
31
- import './getSSOTokenFromFile-CkYcEieD.mjs';
31
+ import './getSSOTokenFromFile-ClTzvS3i.mjs';
32
32
 
33
33
  const getValidatedProcessCredentials = (profileName, data, profiles) => {
34
34
  if (data.Version !== 1) {
@@ -1,10 +1,10 @@
1
- import { e as CredentialsProviderError, W as chain, aO as setCredentialFeature, al as getProfileName, aB as readFile, n as HttpRequest } from './index-BuxEK_Z4.mjs';
1
+ import { e as CredentialsProviderError, W as chain, aO as setCredentialFeature, al as getProfileName, aB as readFile, n as HttpRequest } from './index-4kbkrHS9.mjs';
2
2
  import { createHash, createPrivateKey, createPublicKey, sign } from 'node:crypto';
3
3
  import { promises } from 'node:fs';
4
4
  import { homedir } from 'node:os';
5
5
  import { dirname, join } from 'node:path';
6
- import { p as parseKnownFiles } from './parseKnownFiles-BZNrX_JE.mjs';
7
- import './readMergedOptions-CraAnYdB.mjs';
6
+ import { p as parseKnownFiles } from './parseKnownFiles-BCL0L7aP.mjs';
7
+ import './readMergedOptions-x80ltQO_.mjs';
8
8
  import 'zod';
9
9
  import '@commander-js/extra-typings';
10
10
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -29,19 +29,19 @@ import 'node:process';
29
29
  const resolveCredentialSource = (credentialSource, profileName, logger) => {
30
30
  const sourceProvidersMap = {
31
31
  EcsContainer: async (options) => {
32
- const { fromHttp } = await import('./index-CsI5JuIM.mjs');
33
- const { fromContainerMetadata } = await import('./index-C58EanKv.mjs');
32
+ const { fromHttp } = await import('./index-DFNP_Nrx.mjs');
33
+ const { fromContainerMetadata } = await import('./index-Tm4WDj9R.mjs');
34
34
  logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
35
35
  return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
36
36
  },
37
37
  Ec2InstanceMetadata: async (options) => {
38
38
  logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
39
- const { fromInstanceMetadata } = await import('./index-C58EanKv.mjs');
39
+ const { fromInstanceMetadata } = await import('./index-Tm4WDj9R.mjs');
40
40
  return async () => fromInstanceMetadata(options)().then(setNamedProvider);
41
41
  },
42
42
  Environment: async (options) => {
43
43
  logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
44
- const { fromEnv } = await import('./index-FT37CtcF.mjs');
44
+ const { fromEnv } = await import('./index-w8gK2SKP.mjs');
45
45
  return async () => fromEnv(options)().then(setNamedProvider);
46
46
  },
47
47
  };
@@ -83,7 +83,7 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, call
83
83
  const profileData = profiles[profileName];
84
84
  const { source_profile, region } = profileData;
85
85
  if (!options.roleAssumer) {
86
- const { getDefaultRoleAssumer } = await import('./index-D6iVe1wh.mjs');
86
+ const { getDefaultRoleAssumer } = await import('./index-fNrNPp4e.mjs');
87
87
  options.roleAssumer = getDefaultRoleAssumer({
88
88
  ...options.clientConfig,
89
89
  credentialProviderLogger: options.logger,
@@ -169,7 +169,7 @@ class LoginCredentialsFetcher {
169
169
  return this.profileData.login_session;
170
170
  }
171
171
  async refresh(token) {
172
- const { SigninClient, CreateOAuth2TokenCommand } = await import('./index-B_yJRqty.mjs');
172
+ const { SigninClient, CreateOAuth2TokenCommand } = await import('./index-De2jIOhi.mjs');
173
173
  const { logger, userAgentAppId } = this.callerClientConfig ?? {};
174
174
  const isH2 = (requestHandler) => {
175
175
  return requestHandler?.metadata?.handlerProtocol === "h2";
@@ -418,13 +418,13 @@ const resolveLoginCredentials = async (profileName, options, callerClientConfig)
418
418
  };
419
419
 
420
420
  const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
421
- const resolveProcessCredentials = async (options, profile) => import('./index-CjWZ4uNg.mjs').then(({ fromProcess }) => fromProcess({
421
+ const resolveProcessCredentials = async (options, profile) => import('./index-DO68RbZ8.mjs').then(({ fromProcess }) => fromProcess({
422
422
  ...options,
423
423
  profile,
424
424
  })().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
425
425
 
426
426
  const resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
427
- const { fromSSO } = await import('./index-B3fM_U6F.mjs');
427
+ const { fromSSO } = await import('./index-D7Lv-lxm.mjs');
428
428
  return fromSSO({
429
429
  profile,
430
430
  logger: options.logger,
@@ -471,7 +471,7 @@ const isWebIdentityProfile = (arg) => Boolean(arg) &&
471
471
  typeof arg.web_identity_token_file === "string" &&
472
472
  typeof arg.role_arn === "string" &&
473
473
  ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
474
- const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => import('./index-D-a5vkZL.mjs').then(({ fromTokenFile }) => fromTokenFile({
474
+ const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => import('./index-Cl6wXPYD.mjs').then(({ fromTokenFile }) => fromTokenFile({
475
475
  webIdentityTokenFile: profile.web_identity_token_file,
476
476
  roleArn: profile.role_arn,
477
477
  roleSessionName: profile.role_session_name,
@@ -1,8 +1,8 @@
1
- import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-BuxEK_Z4.mjs';
1
+ import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-4kbkrHS9.mjs';
2
2
  import { p as packageInfo } from './package-DbbYaehr.mjs';
3
3
  import 'node:crypto';
4
- import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-4m7HHwvS.mjs';
5
- import './readMergedOptions-CraAnYdB.mjs';
4
+ import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-BWWvLZiw.mjs';
5
+ import './readMergedOptions-x80ltQO_.mjs';
6
6
  import 'zod';
7
7
  import '@commander-js/extra-typings';
8
8
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -26,7 +26,7 @@ import 'node:stream';
26
26
  import 'node:fs';
27
27
  import 'node:https';
28
28
  import 'node:process';
29
- import './sdk-stream-mixin-BL49AxZx.mjs';
29
+ import './sdk-stream-mixin-B_ajKWho.mjs';
30
30
 
31
31
  const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
32
32
  return {
@@ -1,6 +1,6 @@
1
1
  import 'node:crypto';
2
- import { aT as toUtf8, a8 as fromUtf8 } from './index-BuxEK_Z4.mjs';
3
- import './readMergedOptions-CraAnYdB.mjs';
2
+ import { aT as toUtf8, a8 as fromUtf8 } from './index-4kbkrHS9.mjs';
3
+ import './readMergedOptions-x80ltQO_.mjs';
4
4
  import 'zod';
5
5
  import '@commander-js/extra-typings';
6
6
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -1,7 +1,7 @@
1
1
  import { parse } from 'node:url';
2
2
  import { request } from 'node:http';
3
- import { J as ProviderError, e as CredentialsProviderError, aA as parseUrl, ar as loadConfig } from './index-BuxEK_Z4.mjs';
4
- import './readMergedOptions-CraAnYdB.mjs';
3
+ import { J as ProviderError, e as CredentialsProviderError, aA as parseUrl, ar as loadConfig } from './index-4kbkrHS9.mjs';
4
+ import './readMergedOptions-x80ltQO_.mjs';
5
5
  import 'zod';
6
6
  import '@commander-js/extra-typings';
7
7
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -1,7 +1,7 @@
1
- import { ar as loadConfig, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, aE as resolveAwsSdkSigV4Config, aD as resolveAwsSdkSigV4AConfig, au as normalizeProvider, ap as getSmithyContext, aK as resolveParams, O as SignatureV4MultiRegion, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, A as AwsQueryProtocol, x as NoOpLogger, b as AwsSdkSigV4Signer, a as AwsSdkSigV4ASigner, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, t as NODE_SIGV4A_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin, aO as setCredentialFeature } from './index-BuxEK_Z4.mjs';
1
+ import { ar as loadConfig, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, aE as resolveAwsSdkSigV4Config, aD as resolveAwsSdkSigV4AConfig, au as normalizeProvider, ap as getSmithyContext, aK as resolveParams, O as SignatureV4MultiRegion, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, A as AwsQueryProtocol, x as NoOpLogger, b as AwsSdkSigV4Signer, a as AwsSdkSigV4ASigner, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, t as NODE_SIGV4A_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin, aO as setCredentialFeature } from './index-4kbkrHS9.mjs';
2
2
  import { p as packageInfo } from './package-DbbYaehr.mjs';
3
3
  import 'node:crypto';
4
- import './readMergedOptions-CraAnYdB.mjs';
4
+ import './readMergedOptions-x80ltQO_.mjs';
5
5
  import 'zod';
6
6
  import '@commander-js/extra-typings';
7
7
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -1,6 +1,6 @@
1
- import { a7 as fromEnv } from './index-BuxEK_Z4.mjs';
2
- export { E as ENV_ACCOUNT_ID, g as ENV_CREDENTIAL_SCOPE, h as ENV_EXPIRATION, i as ENV_KEY, j as ENV_SECRET, k as ENV_SESSION } from './index-BuxEK_Z4.mjs';
3
- import './readMergedOptions-CraAnYdB.mjs';
1
+ import { a7 as fromEnv } from './index-4kbkrHS9.mjs';
2
+ export { E as ENV_ACCOUNT_ID, g as ENV_CREDENTIAL_SCOPE, h as ENV_EXPIRATION, i as ENV_KEY, j as ENV_SECRET, k as ENV_SESSION } from './index-4kbkrHS9.mjs';
3
+ import './readMergedOptions-x80ltQO_.mjs';
4
4
  import 'zod';
5
5
  import '@commander-js/extra-typings';
6
6
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -1,8 +1,8 @@
1
- import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-BuxEK_Z4.mjs';
1
+ import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-4kbkrHS9.mjs';
2
2
  import { p as packageInfo } from './package-DbbYaehr.mjs';
3
3
  import 'node:crypto';
4
- import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-4m7HHwvS.mjs';
5
- import './readMergedOptions-CraAnYdB.mjs';
4
+ import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-BWWvLZiw.mjs';
5
+ import './readMergedOptions-x80ltQO_.mjs';
6
6
  import 'zod';
7
7
  import '@commander-js/extra-typings';
8
8
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -26,7 +26,7 @@ import 'node:stream';
26
26
  import 'node:fs';
27
27
  import 'node:https';
28
28
  import 'node:process';
29
- import './sdk-stream-mixin-BL49AxZx.mjs';
29
+ import './sdk-stream-mixin-B_ajKWho.mjs';
30
30
 
31
31
  const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
32
32
  return {
@@ -1,4 +1,4 @@
1
- import { at as loadSharedConfigFiles } from './index-BuxEK_Z4.mjs';
1
+ import { at as loadSharedConfigFiles } from './index-4kbkrHS9.mjs';
2
2
 
3
3
  const mergeConfigFiles = (...files) => {
4
4
  const merged = {};
@@ -1078,12 +1078,14 @@ function initializeInstance(cli, headerGetter) {
1078
1078
  cli.hook('preSubcommand', async () => {
1079
1079
  if (cli.hasCtx())
1080
1080
  return;
1081
- await cli.resolveAndLoad({ loadProcess: false });
1081
+ await cli.resolveAndLoad({ loadProcess: false }, { runAfterResolve: false });
1082
1082
  });
1083
1083
  }
1084
1084
 
1085
1085
  /**
1086
1086
  * Determine the effective namespace for a child plugin (override \> default).
1087
+ * Uses a structural parameter so any entry with `.override?.ns` and `.plugin.ns`
1088
+ * is accepted regardless of full generic variance.
1087
1089
  */
1088
1090
  const effectiveNs = (child) => {
1089
1091
  const o = child.override;
@@ -1258,10 +1260,14 @@ class GetDotenvCli extends Command {
1258
1260
  * Resolve options (strict) and compute dotenv context.
1259
1261
  * Stores the context on the instance under a symbol.
1260
1262
  *
1261
- * Options:
1262
- * - opts.runAfterResolve (default true): when false, skips running plugin
1263
- * afterResolve hooks. Useful for top-level help rendering to avoid
1264
- * long-running side-effects while still evaluating dynamic help text.
1263
+ * @param customOptions - Partial options to overlay for this invocation.
1264
+ * @param opts - Optional resolver behavior switches.
1265
+ * - `runAfterResolve` (default `true`): when false, skips running plugin
1266
+ * afterResolve hooks. Useful for top-level help rendering to avoid
1267
+ * long-running side-effects while still evaluating dynamic help text.
1268
+ * - `invokedSubcommand`: when provided, only the plugin subtree whose
1269
+ * namespace matches this name runs afterResolve hooks. When omitted,
1270
+ * all plugins run afterResolve (backward compatibility).
1265
1271
  */
1266
1272
  async resolveAndLoad(customOptions = {}, opts) {
1267
1273
  const ctx = await resolveAndComputeContext(customOptions,
@@ -1272,7 +1278,7 @@ class GetDotenvCli extends Command {
1272
1278
  // Ensure plugins are installed exactly once, then run afterResolve.
1273
1279
  await this.install();
1274
1280
  if (opts?.runAfterResolve ?? true) {
1275
- await this._runAfterResolve(ctx);
1281
+ await this._runAfterResolve(ctx, opts?.invokedSubcommand);
1276
1282
  }
1277
1283
  return ctx;
1278
1284
  }
@@ -1431,10 +1437,17 @@ class GetDotenvCli extends Command {
1431
1437
  }
1432
1438
  }
1433
1439
  /**
1434
- * Run afterResolve hooks for all plugins (parent → children).
1440
+ * Run afterResolve hooks for registered plugins (parent → children).
1441
+ * When {@link invokedSubcommand} is provided, only the matching plugin
1442
+ * subtree runs; otherwise all plugins run (backward compatibility).
1435
1443
  */
1436
- async _runAfterResolve(ctx) {
1437
- await runAfterResolveTree(this, this._plugins.map((e) => e.plugin), ctx);
1444
+ async _runAfterResolve(ctx, invokedSubcommand) {
1445
+ const plugins = invokedSubcommand
1446
+ ? this._plugins
1447
+ .filter((e) => effectiveNs(e) === invokedSubcommand)
1448
+ .map((e) => e.plugin)
1449
+ : this._plugins.map((e) => e.plugin);
1450
+ await runAfterResolveTree(this, plugins, ctx);
1438
1451
  }
1439
1452
  }
1440
1453
 
@@ -1,4 +1,4 @@
1
- import { c as baseRootOptionDefaults, d as defaultsDeep } from './readMergedOptions-CraAnYdB.mjs';
1
+ import { c as baseRootOptionDefaults, d as defaultsDeep } from './readMergedOptions-x80ltQO_.mjs';
2
2
  import 'radash';
3
3
  import 'node:buffer';
4
4
  import 'fs-extra';
@@ -1,5 +1,5 @@
1
1
  import { Writable, Readable } from 'node:stream';
2
- import { aS as toHex, a5 as fromArrayBuffer } from './index-BuxEK_Z4.mjs';
2
+ import { aS as toHex, a5 as fromArrayBuffer } from './index-4kbkrHS9.mjs';
3
3
 
4
4
  const isReadableStream = (stream) => typeof ReadableStream === "function" &&
5
5
  (stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream);
@@ -1,4 +1,4 @@
1
- import { g as definePlugin } from './readMergedOptions-CraAnYdB.mjs';
1
+ import { g as definePlugin } from './readMergedOptions-x80ltQO_.mjs';
2
2
 
3
3
  /**
4
4
  * Create a namespace-only parent plugin (a group command) for composing plugins
package/dist/cli.d.ts CHANGED
@@ -464,6 +464,12 @@ interface ResolveAndLoadOptions {
464
464
  * @default true
465
465
  */
466
466
  runAfterResolve?: boolean;
467
+ /**
468
+ * Name of the invoked subcommand (plugin namespace). When provided,
469
+ * only the matching plugin subtree runs afterResolve hooks.
470
+ * When omitted, all plugins run afterResolve (backward compatibility).
471
+ */
472
+ invokedSubcommand?: string;
467
473
  }
468
474
  /**
469
475
  * Structural public interface for the host exposed to plugins.
@@ -557,6 +563,11 @@ interface GetDotenvCliPlugin<TOptions extends GetDotenvOptions = GetDotenvOption
557
563
  * After the dotenv context is resolved, initialize any clients/secrets
558
564
  * or attach per-plugin state under ctx.plugins (by convention).
559
565
  * Runs parent → children (pre-order).
566
+ *
567
+ * **Scoping**: When the host provides an invoked subcommand filter,
568
+ * afterResolve only fires for plugins whose namespace matches the
569
+ * invoked command path. A plugin's afterResolve should never produce
570
+ * side effects for commands outside its subtree.
560
571
  */
561
572
  afterResolve?: (cli: GetDotenvCliPublic<TOptions, TArgs, TOpts, TGlobal>, ctx: GetDotenvCliCtx<TOptions>) => void | Promise<void>;
562
573
  /** Zod schema for this plugin's config slice (from config.plugins[…]). */
@@ -622,10 +633,14 @@ declare class GetDotenvCli<TOptions extends GetDotenvOptions = GetDotenvOptions,
622
633
  * Resolve options (strict) and compute dotenv context.
623
634
  * Stores the context on the instance under a symbol.
624
635
  *
625
- * Options:
626
- * - opts.runAfterResolve (default true): when false, skips running plugin
627
- * afterResolve hooks. Useful for top-level help rendering to avoid
628
- * long-running side-effects while still evaluating dynamic help text.
636
+ * @param customOptions - Partial options to overlay for this invocation.
637
+ * @param opts - Optional resolver behavior switches.
638
+ * - `runAfterResolve` (default `true`): when false, skips running plugin
639
+ * afterResolve hooks. Useful for top-level help rendering to avoid
640
+ * long-running side-effects while still evaluating dynamic help text.
641
+ * - `invokedSubcommand`: when provided, only the plugin subtree whose
642
+ * namespace matches this name runs afterResolve hooks. When omitted,
643
+ * all plugins run afterResolve (backward compatibility).
629
644
  */
630
645
  resolveAndLoad(customOptions?: Partial<TOptions>, opts?: ResolveAndLoadOptions): Promise<GetDotenvCliCtx<TOptions>>;
631
646
  /**
@@ -697,7 +712,9 @@ declare class GetDotenvCli<TOptions extends GetDotenvOptions = GetDotenvOptions,
697
712
  */
698
713
  install(): Promise<void>;
699
714
  /**
700
- * Run afterResolve hooks for all plugins (parent → children).
715
+ * Run afterResolve hooks for registered plugins (parent → children).
716
+ * When {@link invokedSubcommand} is provided, only the matching plugin
717
+ * subtree runs; otherwise all plugins run (backward compatibility).
701
718
  */
702
719
  private _runAfterResolve;
703
720
  }
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as createCli } from './chunks/createCli-BkHLeYXL.mjs';
1
+ export { c as createCli } from './chunks/createCli-DRgcaM2D.mjs';
2
2
  import 'zod';
3
3
  import 'path';
4
4
  import './chunks/loader-V1vbmtyw.mjs';
@@ -13,16 +13,16 @@ import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
13
13
  import 'crypto';
14
14
  import '@commander-js/extra-typings';
15
15
  import 'nanoid';
16
- import './chunks/readMergedOptions-CraAnYdB.mjs';
16
+ import './chunks/readMergedOptions-x80ltQO_.mjs';
17
17
  import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
18
18
  import 'dotenv';
19
19
  import 'execa';
20
20
  import './chunks/helpConfig-CGejgwWW.mjs';
21
- import './chunks/resolveCliOptions-BMBkWDYJ.mjs';
21
+ import './chunks/resolveCliOptions-CR-BEUmS.mjs';
22
22
  import './chunks/validate-CDl0rE6k.mjs';
23
23
  import './plugins-aws.mjs';
24
24
  import './chunks/spawnEnv-CKgnHGpr.mjs';
25
- import './chunks/index-BuxEK_Z4.mjs';
25
+ import './chunks/index-4kbkrHS9.mjs';
26
26
  import 'node:os';
27
27
  import 'node:fs/promises';
28
28
  import 'node:stream';
@@ -33,7 +33,7 @@ import 'node:process';
33
33
  import './plugins-batch.mjs';
34
34
  import './chunks/invoke-DuRPU1oC.mjs';
35
35
  import 'globby';
36
- import './chunks/index-Dd6S1nZ-.mjs';
36
+ import './chunks/index-BzoCat8h.mjs';
37
37
  import './plugins-init.mjs';
38
38
  import 'readline/promises';
39
39
  import 'node:url';
package/dist/cliHost.d.ts CHANGED
@@ -480,6 +480,12 @@ interface ResolveAndLoadOptions {
480
480
  * @default true
481
481
  */
482
482
  runAfterResolve?: boolean;
483
+ /**
484
+ * Name of the invoked subcommand (plugin namespace). When provided,
485
+ * only the matching plugin subtree runs afterResolve hooks.
486
+ * When omitted, all plugins run afterResolve (backward compatibility).
487
+ */
488
+ invokedSubcommand?: string;
483
489
  }
484
490
  /**
485
491
  * Structural public interface for the host exposed to plugins.
@@ -573,6 +579,11 @@ interface GetDotenvCliPlugin<TOptions extends GetDotenvOptions = GetDotenvOption
573
579
  * After the dotenv context is resolved, initialize any clients/secrets
574
580
  * or attach per-plugin state under ctx.plugins (by convention).
575
581
  * Runs parent → children (pre-order).
582
+ *
583
+ * **Scoping**: When the host provides an invoked subcommand filter,
584
+ * afterResolve only fires for plugins whose namespace matches the
585
+ * invoked command path. A plugin's afterResolve should never produce
586
+ * side effects for commands outside its subtree.
576
587
  */
577
588
  afterResolve?: (cli: GetDotenvCliPublic<TOptions, TArgs, TOpts, TGlobal>, ctx: GetDotenvCliCtx<TOptions>) => void | Promise<void>;
578
589
  /** Zod schema for this plugin's config slice (from config.plugins[…]). */
@@ -812,10 +823,14 @@ declare class GetDotenvCli<TOptions extends GetDotenvOptions = GetDotenvOptions,
812
823
  * Resolve options (strict) and compute dotenv context.
813
824
  * Stores the context on the instance under a symbol.
814
825
  *
815
- * Options:
816
- * - opts.runAfterResolve (default true): when false, skips running plugin
817
- * afterResolve hooks. Useful for top-level help rendering to avoid
818
- * long-running side-effects while still evaluating dynamic help text.
826
+ * @param customOptions - Partial options to overlay for this invocation.
827
+ * @param opts - Optional resolver behavior switches.
828
+ * - `runAfterResolve` (default `true`): when false, skips running plugin
829
+ * afterResolve hooks. Useful for top-level help rendering to avoid
830
+ * long-running side-effects while still evaluating dynamic help text.
831
+ * - `invokedSubcommand`: when provided, only the plugin subtree whose
832
+ * namespace matches this name runs afterResolve hooks. When omitted,
833
+ * all plugins run afterResolve (backward compatibility).
819
834
  */
820
835
  resolveAndLoad(customOptions?: Partial<TOptions>, opts?: ResolveAndLoadOptions): Promise<GetDotenvCliCtx<TOptions>>;
821
836
  /**
@@ -887,7 +902,9 @@ declare class GetDotenvCli<TOptions extends GetDotenvOptions = GetDotenvOptions,
887
902
  */
888
903
  install(): Promise<void>;
889
904
  /**
890
- * Run afterResolve hooks for all plugins (parent → children).
905
+ * Run afterResolve hooks for registered plugins (parent → children).
906
+ * When {@link invokedSubcommand} is provided, only the matching plugin
907
+ * subtree runs; otherwise all plugins run (backward compatibility).
891
908
  */
892
909
  private _runAfterResolve;
893
910
  }
package/dist/cliHost.mjs CHANGED
@@ -1,7 +1,7 @@
1
- export { G as GetDotenvCli, g as definePlugin, r as readMergedOptions } from './chunks/readMergedOptions-CraAnYdB.mjs';
1
+ export { G as GetDotenvCli, g as definePlugin, r as readMergedOptions } from './chunks/readMergedOptions-x80ltQO_.mjs';
2
2
  export { b as buildSpawnEnv, r as resolveCommand, a as resolveShell, c as runCommand, d as runCommandResult, s as shouldCapture } from './chunks/spawnEnv-CKgnHGpr.mjs';
3
- export { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './chunks/resolveCliOptions-BMBkWDYJ.mjs';
4
- export { d as defineScripts, g as groupPlugins } from './chunks/types-BthqmnDr.mjs';
3
+ export { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './chunks/resolveCliOptions-CR-BEUmS.mjs';
4
+ export { d as defineScripts, g as groupPlugins } from './chunks/types-poB1VAs_.mjs';
5
5
  export { t as toHelpConfig } from './chunks/helpConfig-CGejgwWW.mjs';
6
6
  export { c as composeNestedEnv, m as maybePreserveNodeEvalArgv, s as stripOne } from './chunks/invoke-DuRPU1oC.mjs';
7
7
  export { z } from 'zod';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as createCli } from './chunks/createCli-BkHLeYXL.mjs';
2
+ import { c as createCli } from './chunks/createCli-DRgcaM2D.mjs';
3
3
  import 'zod';
4
4
  import 'path';
5
5
  import './chunks/loader-V1vbmtyw.mjs';
@@ -14,16 +14,16 @@ import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
14
14
  import 'crypto';
15
15
  import '@commander-js/extra-typings';
16
16
  import 'nanoid';
17
- import './chunks/readMergedOptions-CraAnYdB.mjs';
17
+ import './chunks/readMergedOptions-x80ltQO_.mjs';
18
18
  import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
19
19
  import 'dotenv';
20
20
  import 'execa';
21
21
  import './chunks/helpConfig-CGejgwWW.mjs';
22
- import './chunks/resolveCliOptions-BMBkWDYJ.mjs';
22
+ import './chunks/resolveCliOptions-CR-BEUmS.mjs';
23
23
  import './chunks/validate-CDl0rE6k.mjs';
24
24
  import './plugins-aws.mjs';
25
25
  import './chunks/spawnEnv-CKgnHGpr.mjs';
26
- import './chunks/index-BuxEK_Z4.mjs';
26
+ import './chunks/index-4kbkrHS9.mjs';
27
27
  import 'node:os';
28
28
  import 'node:fs/promises';
29
29
  import 'node:stream';
@@ -34,7 +34,7 @@ import 'node:process';
34
34
  import './plugins-batch.mjs';
35
35
  import './chunks/invoke-DuRPU1oC.mjs';
36
36
  import 'globby';
37
- import './chunks/index-Dd6S1nZ-.mjs';
37
+ import './chunks/index-BzoCat8h.mjs';
38
38
  import './plugins-init.mjs';
39
39
  import 'readline/promises';
40
40
  import 'node:url';
package/dist/index.d.ts CHANGED
@@ -632,6 +632,12 @@ interface ResolveAndLoadOptions {
632
632
  * @default true
633
633
  */
634
634
  runAfterResolve?: boolean;
635
+ /**
636
+ * Name of the invoked subcommand (plugin namespace). When provided,
637
+ * only the matching plugin subtree runs afterResolve hooks.
638
+ * When omitted, all plugins run afterResolve (backward compatibility).
639
+ */
640
+ invokedSubcommand?: string;
635
641
  }
636
642
  /**
637
643
  * Structural public interface for the host exposed to plugins.
@@ -725,6 +731,11 @@ interface GetDotenvCliPlugin<TOptions extends GetDotenvOptions = GetDotenvOption
725
731
  * After the dotenv context is resolved, initialize any clients/secrets
726
732
  * or attach per-plugin state under ctx.plugins (by convention).
727
733
  * Runs parent → children (pre-order).
734
+ *
735
+ * **Scoping**: When the host provides an invoked subcommand filter,
736
+ * afterResolve only fires for plugins whose namespace matches the
737
+ * invoked command path. A plugin's afterResolve should never produce
738
+ * side effects for commands outside its subtree.
728
739
  */
729
740
  afterResolve?: (cli: GetDotenvCliPublic<TOptions, TArgs, TOpts, TGlobal>, ctx: GetDotenvCliCtx<TOptions>) => void | Promise<void>;
730
741
  /** Zod schema for this plugin's config slice (from config.plugins[…]). */
@@ -861,10 +872,14 @@ declare class GetDotenvCli<TOptions extends GetDotenvOptions = GetDotenvOptions,
861
872
  * Resolve options (strict) and compute dotenv context.
862
873
  * Stores the context on the instance under a symbol.
863
874
  *
864
- * Options:
865
- * - opts.runAfterResolve (default true): when false, skips running plugin
866
- * afterResolve hooks. Useful for top-level help rendering to avoid
867
- * long-running side-effects while still evaluating dynamic help text.
875
+ * @param customOptions - Partial options to overlay for this invocation.
876
+ * @param opts - Optional resolver behavior switches.
877
+ * - `runAfterResolve` (default `true`): when false, skips running plugin
878
+ * afterResolve hooks. Useful for top-level help rendering to avoid
879
+ * long-running side-effects while still evaluating dynamic help text.
880
+ * - `invokedSubcommand`: when provided, only the plugin subtree whose
881
+ * namespace matches this name runs afterResolve hooks. When omitted,
882
+ * all plugins run afterResolve (backward compatibility).
868
883
  */
869
884
  resolveAndLoad(customOptions?: Partial<TOptions>, opts?: ResolveAndLoadOptions): Promise<GetDotenvCliCtx<TOptions>>;
870
885
  /**
@@ -936,7 +951,9 @@ declare class GetDotenvCli<TOptions extends GetDotenvOptions = GetDotenvOptions,
936
951
  */
937
952
  install(): Promise<void>;
938
953
  /**
939
- * Run afterResolve hooks for all plugins (parent → children).
954
+ * Run afterResolve hooks for registered plugins (parent → children).
955
+ * When {@link invokedSubcommand} is provided, only the matching plugin
956
+ * subtree runs; otherwise all plugins run (backward compatibility).
940
957
  */
941
958
  private _runAfterResolve;
942
959
  }
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- export { c as createCli } from './chunks/createCli-BkHLeYXL.mjs';
2
- import { j as resolveGetDotenvOptions, w as writeDotenvFile } from './chunks/readMergedOptions-CraAnYdB.mjs';
3
- export { G as GetDotenvCli, a as assertLogger, c as baseRootOptionDefaults, d as defaultsDeep, e as defineDynamic, f as defineGetDotenvConfig, g as definePlugin, h as getDotenvCliOptions2Options, i as interpolateDeep, r as readMergedOptions } from './chunks/readMergedOptions-CraAnYdB.mjs';
1
+ export { c as createCli } from './chunks/createCli-DRgcaM2D.mjs';
2
+ import { j as resolveGetDotenvOptions, w as writeDotenvFile } from './chunks/readMergedOptions-x80ltQO_.mjs';
3
+ export { G as GetDotenvCli, a as assertLogger, c as baseRootOptionDefaults, d as defaultsDeep, e as defineDynamic, f as defineGetDotenvConfig, g as definePlugin, h as getDotenvCliOptions2Options, i as interpolateDeep, r as readMergedOptions } from './chunks/readMergedOptions-x80ltQO_.mjs';
4
4
  export { b as buildSpawnEnv, s as shouldCapture, t as tokenize } from './chunks/spawnEnv-CKgnHGpr.mjs';
5
- export { d as defineScripts, g as groupPlugins } from './chunks/types-BthqmnDr.mjs';
5
+ export { d as defineScripts, g as groupPlugins } from './chunks/types-poB1VAs_.mjs';
6
6
  import { omit, pick } from 'radash';
7
7
  import { Buffer } from 'node:buffer';
8
8
  export { l as loadModuleDefault } from './chunks/loadModuleDefault-Dj8B3Stt.mjs';
@@ -10,8 +10,8 @@ import { InvalidArgumentError } from '@commander-js/extra-typings';
10
10
  import 'zod';
11
11
  import { nanoid } from 'nanoid';
12
12
  import path$1 from 'path';
13
- import { a as redactObject, m as maybeWarnEntropy } from './chunks/index-Dd6S1nZ-.mjs';
14
- export { r as redactDisplay, t as traceChildEnv } from './chunks/index-Dd6S1nZ-.mjs';
13
+ import { a as redactObject, m as maybeWarnEntropy } from './chunks/index-BzoCat8h.mjs';
14
+ export { r as redactDisplay, t as traceChildEnv } from './chunks/index-BzoCat8h.mjs';
15
15
  import { r as readDotenv, e as dotenvExpandAll, a as applyDynamicMap, l as loadAndApplyDynamic } from './chunks/readDotenvCascade-Dgx4SC1p.mjs';
16
16
  export { d as dotenvExpand, f as dotenvExpandFromProcessEnv } from './chunks/readDotenvCascade-Dgx4SC1p.mjs';
17
17
  import fs from 'fs-extra';
@@ -24,10 +24,10 @@ import 'package-directory';
24
24
  import 'yaml';
25
25
  import 'execa';
26
26
  import './chunks/helpConfig-CGejgwWW.mjs';
27
- import './chunks/resolveCliOptions-BMBkWDYJ.mjs';
27
+ import './chunks/resolveCliOptions-CR-BEUmS.mjs';
28
28
  import './chunks/validate-CDl0rE6k.mjs';
29
29
  import './plugins-aws.mjs';
30
- import './chunks/index-BuxEK_Z4.mjs';
30
+ import './chunks/index-4kbkrHS9.mjs';
31
31
  import 'node:os';
32
32
  import 'node:fs/promises';
33
33
  import 'node:stream';
@@ -358,6 +358,12 @@ interface ResolveAndLoadOptions {
358
358
  * @default true
359
359
  */
360
360
  runAfterResolve?: boolean;
361
+ /**
362
+ * Name of the invoked subcommand (plugin namespace). When provided,
363
+ * only the matching plugin subtree runs afterResolve hooks.
364
+ * When omitted, all plugins run afterResolve (backward compatibility).
365
+ */
366
+ invokedSubcommand?: string;
361
367
  }
362
368
  /**
363
369
  * Structural public interface for the host exposed to plugins.
@@ -451,6 +457,11 @@ interface GetDotenvCliPlugin<TOptions extends GetDotenvOptions = GetDotenvOption
451
457
  * After the dotenv context is resolved, initialize any clients/secrets
452
458
  * or attach per-plugin state under ctx.plugins (by convention).
453
459
  * Runs parent → children (pre-order).
460
+ *
461
+ * **Scoping**: When the host provides an invoked subcommand filter,
462
+ * afterResolve only fires for plugins whose namespace matches the
463
+ * invoked command path. A plugin's afterResolve should never produce
464
+ * side effects for commands outside its subtree.
454
465
  */
455
466
  afterResolve?: (cli: GetDotenvCliPublic<TOptions, TArgs, TOpts, TGlobal>, ctx: GetDotenvCliCtx<TOptions>) => void | Promise<void>;
456
467
  /** Zod schema for this plugin's config slice (from config.plugins[…]). */
@@ -1,4 +1,4 @@
1
- import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-CraAnYdB.mjs';
1
+ import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-x80ltQO_.mjs';
2
2
  import 'execa';
3
3
  import { isObject } from 'radash';
4
4
  import 'node:buffer';
@@ -329,12 +329,13 @@ const resolveAwsContext = async ({ dotenv, cfg, }) => {
329
329
  };
330
330
 
331
331
  /**
332
- * Create the AWS plugin `afterResolve` hook.
332
+ * Create the AWS plugin afterResolve hook.
333
333
  *
334
- * This runs once per invocation after the host resolves dotenv context.
334
+ * This runs after the host resolves dotenv context, but only when the aws
335
+ * plugin (or a child of it) is in the invoked command path.
335
336
  *
336
337
  * @param plugin - The AWS plugin instance.
337
- * @returns An `afterResolve` hook function suitable for assigning to `plugin.afterResolve`.
338
+ * @returns An afterResolve hook function suitable for assigning to plugin.afterResolve.
338
339
  *
339
340
  * @internal
340
341
  */
@@ -358,6 +358,12 @@ interface ResolveAndLoadOptions {
358
358
  * @default true
359
359
  */
360
360
  runAfterResolve?: boolean;
361
+ /**
362
+ * Name of the invoked subcommand (plugin namespace). When provided,
363
+ * only the matching plugin subtree runs afterResolve hooks.
364
+ * When omitted, all plugins run afterResolve (backward compatibility).
365
+ */
366
+ invokedSubcommand?: string;
361
367
  }
362
368
  /**
363
369
  * Structural public interface for the host exposed to plugins.
@@ -451,6 +457,11 @@ interface GetDotenvCliPlugin<TOptions extends GetDotenvOptions = GetDotenvOption
451
457
  * After the dotenv context is resolved, initialize any clients/secrets
452
458
  * or attach per-plugin state under ctx.plugins (by convention).
453
459
  * Runs parent → children (pre-order).
460
+ *
461
+ * **Scoping**: When the host provides an invoked subcommand filter,
462
+ * afterResolve only fires for plugins whose namespace matches the
463
+ * invoked command path. A plugin's afterResolve should never produce
464
+ * side effects for commands outside its subtree.
454
465
  */
455
466
  afterResolve?: (cli: GetDotenvCliPublic<TOptions, TArgs, TOpts, TGlobal>, ctx: GetDotenvCliCtx<TOptions>) => void | Promise<void>;
456
467
  /** Zod schema for this plugin's config slice (from config.plugins[…]). */
@@ -1,4 +1,4 @@
1
- import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-CraAnYdB.mjs';
1
+ import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-x80ltQO_.mjs';
2
2
  import 'execa';
3
3
  import 'radash';
4
4
  import 'node:buffer';
@@ -358,6 +358,12 @@ interface ResolveAndLoadOptions {
358
358
  * @default true
359
359
  */
360
360
  runAfterResolve?: boolean;
361
+ /**
362
+ * Name of the invoked subcommand (plugin namespace). When provided,
363
+ * only the matching plugin subtree runs afterResolve hooks.
364
+ * When omitted, all plugins run afterResolve (backward compatibility).
365
+ */
366
+ invokedSubcommand?: string;
361
367
  }
362
368
  /**
363
369
  * Structural public interface for the host exposed to plugins.
@@ -451,6 +457,11 @@ interface GetDotenvCliPlugin<TOptions extends GetDotenvOptions = GetDotenvOption
451
457
  * After the dotenv context is resolved, initialize any clients/secrets
452
458
  * or attach per-plugin state under ctx.plugins (by convention).
453
459
  * Runs parent → children (pre-order).
460
+ *
461
+ * **Scoping**: When the host provides an invoked subcommand filter,
462
+ * afterResolve only fires for plugins whose namespace matches the
463
+ * invoked command path. A plugin's afterResolve should never produce
464
+ * side effects for commands outside its subtree.
454
465
  */
455
466
  afterResolve?: (cli: GetDotenvCliPublic<TOptions, TArgs, TOpts, TGlobal>, ctx: GetDotenvCliCtx<TOptions>) => void | Promise<void>;
456
467
  /** Zod schema for this plugin's config slice (from config.plugins[…]). */
@@ -1,5 +1,5 @@
1
1
  import 'radash';
2
- import './chunks/readMergedOptions-CraAnYdB.mjs';
2
+ import './chunks/readMergedOptions-x80ltQO_.mjs';
3
3
  import 'execa';
4
4
  import 'node:buffer';
5
5
  import 'fs-extra';
@@ -14,9 +14,9 @@ import './chunks/loader-V1vbmtyw.mjs';
14
14
  import 'package-directory';
15
15
  import 'yaml';
16
16
  import 'zod';
17
- export { c as cmdPlugin } from './chunks/index-Dd6S1nZ-.mjs';
17
+ export { c as cmdPlugin } from './chunks/index-BzoCat8h.mjs';
18
18
  import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
19
19
  import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
20
20
  import './chunks/spawnEnv-CKgnHGpr.mjs';
21
21
  import './chunks/invoke-DuRPU1oC.mjs';
22
- import './chunks/resolveCliOptions-BMBkWDYJ.mjs';
22
+ import './chunks/resolveCliOptions-CR-BEUmS.mjs';
@@ -358,6 +358,12 @@ interface ResolveAndLoadOptions {
358
358
  * @default true
359
359
  */
360
360
  runAfterResolve?: boolean;
361
+ /**
362
+ * Name of the invoked subcommand (plugin namespace). When provided,
363
+ * only the matching plugin subtree runs afterResolve hooks.
364
+ * When omitted, all plugins run afterResolve (backward compatibility).
365
+ */
366
+ invokedSubcommand?: string;
361
367
  }
362
368
  /**
363
369
  * Structural public interface for the host exposed to plugins.
@@ -451,6 +457,11 @@ interface GetDotenvCliPlugin<TOptions extends GetDotenvOptions = GetDotenvOption
451
457
  * After the dotenv context is resolved, initialize any clients/secrets
452
458
  * or attach per-plugin state under ctx.plugins (by convention).
453
459
  * Runs parent → children (pre-order).
460
+ *
461
+ * **Scoping**: When the host provides an invoked subcommand filter,
462
+ * afterResolve only fires for plugins whose namespace matches the
463
+ * invoked command path. A plugin's afterResolve should never produce
464
+ * side effects for commands outside its subtree.
454
465
  */
455
466
  afterResolve?: (cli: GetDotenvCliPublic<TOptions, TArgs, TOpts, TGlobal>, ctx: GetDotenvCliCtx<TOptions>) => void | Promise<void>;
456
467
  /** Zod schema for this plugin's config slice (from config.plugins[…]). */
@@ -1,4 +1,4 @@
1
- import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-CraAnYdB.mjs';
1
+ import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-x80ltQO_.mjs';
2
2
  import 'execa';
3
3
  import 'radash';
4
4
  import 'node:buffer';
package/dist/plugins.d.ts CHANGED
@@ -358,6 +358,12 @@ interface ResolveAndLoadOptions {
358
358
  * @default true
359
359
  */
360
360
  runAfterResolve?: boolean;
361
+ /**
362
+ * Name of the invoked subcommand (plugin namespace). When provided,
363
+ * only the matching plugin subtree runs afterResolve hooks.
364
+ * When omitted, all plugins run afterResolve (backward compatibility).
365
+ */
366
+ invokedSubcommand?: string;
361
367
  }
362
368
  /**
363
369
  * Structural public interface for the host exposed to plugins.
@@ -451,6 +457,11 @@ interface GetDotenvCliPlugin<TOptions extends GetDotenvOptions = GetDotenvOption
451
457
  * After the dotenv context is resolved, initialize any clients/secrets
452
458
  * or attach per-plugin state under ctx.plugins (by convention).
453
459
  * Runs parent → children (pre-order).
460
+ *
461
+ * **Scoping**: When the host provides an invoked subcommand filter,
462
+ * afterResolve only fires for plugins whose namespace matches the
463
+ * invoked command path. A plugin's afterResolve should never produce
464
+ * side effects for commands outside its subtree.
454
465
  */
455
466
  afterResolve?: (cli: GetDotenvCliPublic<TOptions, TArgs, TOpts, TGlobal>, ctx: GetDotenvCliCtx<TOptions>) => void | Promise<void>;
456
467
  /** Zod schema for this plugin's config slice (from config.plugins[…]). */
package/dist/plugins.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  export { awsPlugin, getAwsRegion } from './plugins-aws.mjs';
2
- export { R as awsWhoamiPlugin } from './chunks/index-BuxEK_Z4.mjs';
2
+ export { R as awsWhoamiPlugin } from './chunks/index-4kbkrHS9.mjs';
3
3
  export { batchPlugin } from './plugins-batch.mjs';
4
- export { c as cmdPlugin } from './chunks/index-Dd6S1nZ-.mjs';
4
+ export { c as cmdPlugin } from './chunks/index-BzoCat8h.mjs';
5
5
  export { initPlugin } from './plugins-init.mjs';
6
- import './chunks/readMergedOptions-CraAnYdB.mjs';
6
+ import './chunks/readMergedOptions-x80ltQO_.mjs';
7
7
  import 'zod';
8
8
  import '@commander-js/extra-typings';
9
9
  import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
@@ -31,6 +31,6 @@ import 'node:https';
31
31
  import 'node:process';
32
32
  import './chunks/invoke-DuRPU1oC.mjs';
33
33
  import 'globby';
34
- import './chunks/resolveCliOptions-BMBkWDYJ.mjs';
34
+ import './chunks/resolveCliOptions-CR-BEUmS.mjs';
35
35
  import 'readline/promises';
36
36
  import 'node:url';
package/package.json CHANGED
@@ -221,5 +221,5 @@
221
221
  },
222
222
  "type": "module",
223
223
  "types": "dist/index.d.ts",
224
- "version": "7.0.6"
224
+ "version": "7.0.7"
225
225
  }