cdk-insights 1.44.0 → 1.44.1

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.
@@ -1,6 +1,18 @@
1
1
  import type { CommandModule } from 'yargs';
2
2
  import type { IssueGroup } from '../../types/analysis.types';
3
3
  import type { AnalyzeCommandArgs } from '../types/cli.types';
4
+ /**
5
+ * Recover a stack name passed after the `--` separator.
6
+ *
7
+ * yargs 17 routes tokens after `--` into `argv._` but does NOT bind them to a
8
+ * named positional, so `scan -- MyStack` (the injection-safe form the GitHub
9
+ * Action and the usual CLI convention use) leaves `stackName` undefined — and
10
+ * in CI that silently falls back to scanning every stack. When the positional
11
+ * didn't bind and exactly one extra token sits in `argv._` (besides the `scan`
12
+ * command word), treat it as the stack name. Anything ambiguous (zero or
13
+ * multiple leftover tokens) is left alone.
14
+ */
15
+ export declare const recoverPositionalStackName: (stackName: string | undefined, underscore: ReadonlyArray<string | number>) => string | undefined;
4
16
  export declare function runStackAnalysis(finalConfig: AnalyzeCommandArgs, fingerprint?: string, authToken?: string, licenseInfo?: any, usageData?: any, _project?: string, licenseKey?: string, forceLocal?: boolean, sensitiveDataConfig?: {
5
17
  enabled?: boolean;
6
18
  warnOnly?: boolean;