agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk/lib/commands/flags/flags.d.ts
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk/lib/commands/flags/flags.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { FeatureFlag, Toolkit } from '@aws-cdk/toolkit-lib';
|
||||
import type { FlagOperationsParams } from './types';
|
||||
import type { IoHelper } from '../../api-private';
|
||||
export declare class FlagCommandHandler {
|
||||
private readonly flags;
|
||||
private readonly router;
|
||||
private readonly options;
|
||||
private readonly ioHelper;
|
||||
/** Main component that sets up all flag operation components */
|
||||
constructor(flagData: FeatureFlag[], ioHelper: IoHelper, options: FlagOperationsParams, toolkit: Toolkit, cliContextValues?: Record<string, any>);
|
||||
/** Main entry point that processes the flags command */
|
||||
processFlagsCommand(): Promise<void>;
|
||||
}
|
||||
30
cdk/node_modules/aws-cdk/lib/commands/flags/flags.js
generated
vendored
Normal file
30
cdk/node_modules/aws-cdk/lib/commands/flags/flags.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FlagCommandHandler = void 0;
|
||||
const interactive_handler_1 = require("./interactive-handler");
|
||||
const obsolete_flags_1 = require("./obsolete-flags");
|
||||
const operations_1 = require("./operations");
|
||||
const router_1 = require("./router");
|
||||
const validator_1 = require("./validator");
|
||||
class FlagCommandHandler {
|
||||
/** Main component that sets up all flag operation components */
|
||||
constructor(flagData, ioHelper, options, toolkit, cliContextValues = {}) {
|
||||
this.flags = flagData.filter(flag => !obsolete_flags_1.OBSOLETE_FLAGS.includes(flag.name));
|
||||
this.options = { ...options, concurrency: options.concurrency ?? 4 };
|
||||
this.ioHelper = ioHelper;
|
||||
const validator = new validator_1.FlagValidator(ioHelper);
|
||||
const flagOperations = new operations_1.FlagOperations(this.flags, toolkit, ioHelper, cliContextValues);
|
||||
const interactiveHandler = new interactive_handler_1.InteractiveHandler(this.flags, flagOperations);
|
||||
this.router = new router_1.FlagOperationRouter(validator, interactiveHandler, flagOperations);
|
||||
}
|
||||
/** Main entry point that processes the flags command */
|
||||
async processFlagsCommand() {
|
||||
if (this.flags.length === 0) {
|
||||
await this.ioHelper.defaults.error('The \'cdk flags\' command is not compatible with the AWS CDK library used by your application. Please upgrade to 2.212.0 or above.');
|
||||
return;
|
||||
}
|
||||
await this.router.route(this.options);
|
||||
}
|
||||
}
|
||||
exports.FlagCommandHandler = FlagCommandHandler;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmbGFncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwrREFBMkQ7QUFDM0QscURBQWtEO0FBQ2xELDZDQUE4QztBQUM5QyxxQ0FBK0M7QUFFL0MsMkNBQTRDO0FBRzVDLE1BQWEsa0JBQWtCO0lBTTdCLGdFQUFnRTtJQUNoRSxZQUNFLFFBQXVCLEVBQ3ZCLFFBQWtCLEVBQ2xCLE9BQTZCLEVBQzdCLE9BQWdCLEVBQ2hCLG1CQUF3QyxFQUFFO1FBRTFDLElBQUksQ0FBQyxLQUFLLEdBQUcsUUFBUSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUMsK0JBQWMsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7UUFDMUUsSUFBSSxDQUFDLE9BQU8sR0FBRyxFQUFFLEdBQUcsT0FBTyxFQUFFLFdBQVcsRUFBRSxPQUFPLENBQUMsV0FBVyxJQUFJLENBQUMsRUFBRSxDQUFDO1FBQ3JFLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO1FBRXpCLE1BQU0sU0FBUyxHQUFHLElBQUkseUJBQWEsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUM5Qy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active-handler.d.ts
generated
vendored
Normal file
16
cdk/node_modules/aws-cdk/lib/commands/flags/interactive-handler.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { FeatureFlag } from '@aws-cdk/toolkit-lib';
|
||||
import type { FlagOperations } from './operations';
|
||||
import { type FlagOperationsParams } from './types';
|
||||
export declare class InteractiveHandler {
|
||||
private readonly flags;
|
||||
private readonly flagOperations;
|
||||
constructor(flags: FeatureFlag[], flagOperations: FlagOperations);
|
||||
/** Displays flags that have differences between user and recommended values */
|
||||
private displayFlagsWithDifferences;
|
||||
/** Checks if user value matches recommended value */
|
||||
private isUserValueEqualToRecommended;
|
||||
/** Main interactive mode handler that shows menu and processes user selection */
|
||||
handleInteractiveMode(): Promise<FlagOperationsParams | null>;
|
||||
/** Handles the specific flag selection flow with flag and value prompts */
|
||||
private handleSpecificFlagSelection;
|
||||
}
|
||||
71
cdk/node_modules/aws-cdk/lib/commands/flags/interactive-handler.js
generated
vendored
Normal file
71
cdk/node_modules/aws-cdk/lib/commands/flags/interactive-handler.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
cdk/node_modules/aws-cdk/lib/commands/flags/obsolete-flags.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk/lib/commands/flags/obsolete-flags.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const OBSOLETE_FLAGS: string[];
|
||||
9
cdk/node_modules/aws-cdk/lib/commands/flags/obsolete-flags.js
generated
vendored
Normal file
9
cdk/node_modules/aws-cdk/lib/commands/flags/obsolete-flags.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.OBSOLETE_FLAGS = void 0;
|
||||
exports.OBSOLETE_FLAGS = [
|
||||
'@aws-cdk/core:enableStackNameDuplicates',
|
||||
'@aws-cdk/aws-s3:grantWriteWithoutAcl',
|
||||
'@aws-cdk/aws-kms:defaultKeyPolicies',
|
||||
];
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2Jzb2xldGUtZmxhZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJvYnNvbGV0ZS1mbGFncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLGNBQWMsR0FBRztJQUM1Qix5Q0FBeUM7SUFDekMsc0NBQXNDO0lBQ3RDLHFDQUFxQztDQUN0QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IE9CU09MRVRFX0ZMQUdTID0gW1xuICAnQGF3cy1jZGsvY29yZTplbmFibGVTdGFja05hbWVEdXBsaWNhdGVzJyxcbiAgJ0Bhd3MtY2RrL2F3cy1zMzpncmFudFdyaXRlV2l0aG91dEFjbCcsXG4gICdAYXdzLWNkay9hd3Mta21zOmRlZmF1bHRLZXlQb2xpY2llcycsXG5dO1xuIl19
|
||||
80
cdk/node_modules/aws-cdk/lib/commands/flags/operations.d.ts
generated
vendored
Normal file
80
cdk/node_modules/aws-cdk/lib/commands/flags/operations.d.ts
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
import type { FeatureFlag, Toolkit } from '@aws-cdk/toolkit-lib';
|
||||
import type { FlagOperationsParams } from './types';
|
||||
import type { IoHelper } from '../../api-private';
|
||||
export declare class FlagOperations {
|
||||
private readonly flags;
|
||||
private readonly toolkit;
|
||||
private readonly ioHelper;
|
||||
private readonly cliContextValues;
|
||||
/**
|
||||
* Returns only those feature flags that need configuration
|
||||
*
|
||||
* That is those flags:
|
||||
* - That are unconfigured
|
||||
* - That are not obsolete
|
||||
* - Whose default value is different from the recommended value
|
||||
*
|
||||
* The default value being equal to the recommended value sounds odd, but
|
||||
* crops up in a number of situtations:
|
||||
*
|
||||
* - Security-related fixes that we want to force on people, but want to
|
||||
* give them a flag to back out of the changes if they really need to.
|
||||
* - Flags that changed their default value in the most recent major
|
||||
* version.
|
||||
* - Flags that we've introduced at some point in the past, but have gone
|
||||
* back on.
|
||||
*/
|
||||
static filterNeedsAttention(flags: FeatureFlag[]): FeatureFlag[];
|
||||
private app;
|
||||
private baseContextValues;
|
||||
private allStacks;
|
||||
private queue;
|
||||
private baselineTempDir?;
|
||||
constructor(flags: FeatureFlag[], toolkit: Toolkit, ioHelper: IoHelper, cliContextValues?: Record<string, any>);
|
||||
/** Main entry point that routes to either flag setting or display operations */
|
||||
execute(params: FlagOperationsParams): Promise<void>;
|
||||
/** Sets a single specific flag with validation and user confirmation */
|
||||
setFlag(params: FlagOperationsParams): Promise<void>;
|
||||
/** Sets multiple flags (all or unconfigured) with validation and user confirmation */
|
||||
setMultipleFlags(params: FlagOperationsParams): Promise<void>;
|
||||
/** Determines which flags should be set based on the provided parameters */
|
||||
private getFlagsToSet;
|
||||
/** Sets flags that don't cause template changes */
|
||||
setSafeFlags(params: FlagOperationsParams): Promise<void>;
|
||||
/** Initializes the safety check by reading context and synthesizing baseline templates */
|
||||
private initializeSafetyCheck;
|
||||
/** Cleans up temporary directories created during safety checks */
|
||||
private cleanupSafetyCheck;
|
||||
/** Tests multiple flags together and isolates unsafe ones using binary search */
|
||||
private batchTestFlags;
|
||||
/** Tests if a set of context values causes template changes by synthesizing and diffing */
|
||||
private testBatch;
|
||||
/** Uses binary search to isolate which flags are safe to set without template changes */
|
||||
private isolateUnsafeFlags;
|
||||
/** Prototypes flag changes by synthesizing templates and showing diffs to the user */
|
||||
private prototypeChanges;
|
||||
/** Displays a summary of flag changes showing old and new values */
|
||||
private displayFlagChanges;
|
||||
/** Builds the update object with new flag values based on parameters and current context */
|
||||
private buildUpdateObject;
|
||||
/** Prompts user for confirmation and applies changes if accepted */
|
||||
private handleUserResponse;
|
||||
/** Removes temporary directories created during flag operations */
|
||||
private cleanupTempDirectories;
|
||||
/** Actually modifies the cdk.json file with the new flag values */
|
||||
private modifyValues;
|
||||
/** Displays flags in a table format, either specific flags or filtered by criteria */
|
||||
displayFlags(params: FlagOperationsParams): Promise<void>;
|
||||
/** Displays detailed information for specific flags matching the given names */
|
||||
private displaySpecificFlags;
|
||||
/** Returns sort order for flags */
|
||||
private getFlagSortOrder;
|
||||
/** Displays flags in a formatted table grouped by module and sorted */
|
||||
displayFlagTable(flags: FeatureFlag[]): Promise<void>;
|
||||
/** Checks if a flag has a boolean recommended value */
|
||||
isBooleanFlag(flag: FeatureFlag): boolean;
|
||||
/** Shows helpful usage examples and available command options */
|
||||
displayHelpMessage(): Promise<void>;
|
||||
}
|
||||
/** Checks if the flags current effective value matches the recommended value */
|
||||
export declare function isEffectiveValueEqualToRecommended(flag: FeatureFlag): boolean;
|
||||
467
cdk/node_modules/aws-cdk/lib/commands/flags/operations.js
generated
vendored
Normal file
467
cdk/node_modules/aws-cdk/lib/commands/flags/operations.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
18
cdk/node_modules/aws-cdk/lib/commands/flags/router.d.ts
generated
vendored
Normal file
18
cdk/node_modules/aws-cdk/lib/commands/flags/router.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { InteractiveHandler } from './interactive-handler';
|
||||
import type { FlagOperations } from './operations.ts';
|
||||
import type { FlagOperationsParams } from './types';
|
||||
import type { FlagValidator } from './validator';
|
||||
export declare class FlagOperationRouter {
|
||||
private readonly validator;
|
||||
private readonly interactiveHandler;
|
||||
private readonly flagOperations;
|
||||
constructor(validator: FlagValidator, interactiveHandler: InteractiveHandler, flagOperations: FlagOperations);
|
||||
/** Routes flag operations to appropriate handlers based on parameters */
|
||||
route(params: FlagOperationsParams): Promise<void>;
|
||||
/** Handles flag setting operations, routing to single or multiple flag methods */
|
||||
private handleSetOperations;
|
||||
/** Manages interactive mode */
|
||||
private handleInteractiveMode;
|
||||
/** Shows help message when no specific options are provided */
|
||||
private showHelpMessage;
|
||||
}
|
||||
60
cdk/node_modules/aws-cdk/lib/commands/flags/router.js
generated
vendored
Normal file
60
cdk/node_modules/aws-cdk/lib/commands/flags/router.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
12
cdk/node_modules/aws-cdk/lib/commands/flags/types.d.ts
generated
vendored
Normal file
12
cdk/node_modules/aws-cdk/lib/commands/flags/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { FlagsOptions } from '../../cli/user-input';
|
||||
export declare enum FlagsMenuOptions {
|
||||
ALL_TO_RECOMMENDED = "Set all flags to recommended values",
|
||||
UNCONFIGURED_TO_RECOMMENDED = "Set unconfigured flags to recommended values",
|
||||
UNCONFIGURED_TO_DEFAULT = "Set unconfigured flags to their implied configuration (record current behavior)",
|
||||
MODIFY_SPECIFIC_FLAG = "Modify a specific flag",
|
||||
EXIT = "Exit"
|
||||
}
|
||||
export interface FlagOperationsParams extends FlagsOptions {
|
||||
/** User provided --app option */
|
||||
app?: string;
|
||||
}
|
||||
12
cdk/node_modules/aws-cdk/lib/commands/flags/types.js
generated
vendored
Normal file
12
cdk/node_modules/aws-cdk/lib/commands/flags/types.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FlagsMenuOptions = void 0;
|
||||
var FlagsMenuOptions;
|
||||
(function (FlagsMenuOptions) {
|
||||
FlagsMenuOptions["ALL_TO_RECOMMENDED"] = "Set all flags to recommended values";
|
||||
FlagsMenuOptions["UNCONFIGURED_TO_RECOMMENDED"] = "Set unconfigured flags to recommended values";
|
||||
FlagsMenuOptions["UNCONFIGURED_TO_DEFAULT"] = "Set unconfigured flags to their implied configuration (record current behavior)";
|
||||
FlagsMenuOptions["MODIFY_SPECIFIC_FLAG"] = "Modify a specific flag";
|
||||
FlagsMenuOptions["EXIT"] = "Exit";
|
||||
})(FlagsMenuOptions || (exports.FlagsMenuOptions = FlagsMenuOptions = {}));
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2V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aws-cdk/lib/commands/flags/validator.d.ts
generated
vendored
Normal file
22
cdk/node_modules/aws-cdk/lib/commands/flags/validator.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { FlagOperationsParams } from './types';
|
||||
import type { IoHelper } from '../../api-private';
|
||||
export declare class FlagValidator {
|
||||
private readonly ioHelper;
|
||||
constructor(ioHelper: IoHelper);
|
||||
/** Shows error message when CDK version is incompatible with flags command */
|
||||
showIncompatibleVersionError(): Promise<void>;
|
||||
/** Validates all parameters and returns true if valid, false if any validation fails */
|
||||
validateParams(params: FlagOperationsParams): Promise<boolean>;
|
||||
/** Validates that --all and specific flag names are not used together */
|
||||
private validateFlagNameAndAll;
|
||||
/** Validates that modification options require --set flag */
|
||||
private validateSetRequirement;
|
||||
/** Validates that --value requires a specific flag name */
|
||||
private validateValueRequirement;
|
||||
/** Validates that mutually exclusive options are not used together */
|
||||
private validateMutuallyExclusive;
|
||||
/** Validates that --unconfigured is not used with specific flag names */
|
||||
private validateUnconfiguredUsage;
|
||||
/** Validates that --set operations have required accompanying options */
|
||||
private validateSetWithFlags;
|
||||
}
|
||||
95
cdk/node_modules/aws-cdk/lib/commands/flags/validator.js
generated
vendored
Normal file
95
cdk/node_modules/aws-cdk/lib/commands/flags/validator.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user