agent-claw: automated task changes

This commit is contained in:
daniel
2026-05-06 18:55:16 -05:00
parent 38905bb1e9
commit 732b00fb66
8494 changed files with 2018127 additions and 4 deletions

View File

@@ -0,0 +1 @@
export * from './init';

18
cdk/node_modules/aws-cdk/lib/commands/init/index.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./init"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEseUNBQXVCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbml0JztcbiJdfQ==

View File

@@ -0,0 +1,41 @@
import type { IoHelper } from '../../api-private';
export type SubstitutePlaceholders = (...fileNames: string[]) => Promise<void>;
/**
* Helpers passed to hook functions
*/
export interface HookContext {
/**
* Callback function to replace placeholders on arbitrary files
*
* This makes token substitution available to non-`.template` files.
*/
readonly substitutePlaceholdersIn: SubstitutePlaceholders;
/**
* Return a single placeholder
*/
placeholder(name: string): string;
}
export type InvokeHook = (targetDirectory: string, context: HookContext) => Promise<void>;
export interface HookTarget {
readonly targetDirectory: string;
readonly templateName: string;
readonly language: string;
}
/**
* Invoke hooks for the given init template
*
* Sometimes templates need more complex logic than just replacing tokens. A 'hook' can be
* used to do additional processing other than copying files.
*
* Hooks used to be defined externally to the CLI, by running arbitrarily
* substituted shell scripts in the target directory.
*
* In practice, they're all TypeScript files and all the same, and the dynamism
* that the original solution allowed wasn't used at all. Worse, since the CLI
* is now bundled the hooks can't even reuse code from the CLI libraries at all
* anymore, so all shared code would have to be copy/pasted.
*
* Bundle hooks as built-ins into the CLI, so they get bundled and can take advantage
* of all shared code.
*/
export declare function invokeBuiltinHooks(ioHelper: IoHelper, target: HookTarget, context: HookContext): Promise<void>;

File diff suppressed because one or more lines are too long

139
cdk/node_modules/aws-cdk/lib/commands/init/init.d.ts generated vendored Normal file
View File

@@ -0,0 +1,139 @@
import type { IoHelper } from '../../api-private';
import { type JsPackageManager } from './package-manager';
export interface CliInitOptions {
/**
* Template name to initialize
* @default undefined
*/
readonly type?: string;
/**
* Programming language for the project
* @default - Optional/auto-detected if template supports only one language, otherwise required
*/
readonly language?: string;
/**
* @default true
*/
readonly canUseNetwork?: boolean;
/**
* @default false
*/
readonly generateOnly?: boolean;
/**
* @default process.cwd()
*/
readonly workDir?: string;
/**
* @default undefined
*/
readonly projectName?: string;
/**
* @default undefined
*/
readonly stackName?: string;
/**
* @default undefined
*/
readonly migrate?: boolean;
/**
* Override the built-in CDK version
* @default undefined
*/
readonly libVersion?: string;
/**
* Path to a local custom template directory
* @default undefined
*/
readonly fromPath?: string;
/**
* Path to a specific template within a multi-template repository.
* This parameter requires --from-path to be specified.
* @default undefined
*/
readonly templatePath?: string;
/**
* The package manager to use for installing dependencies. Only applicable for TypeScript and JavaScript projects.
* @default - If specified language is 'typescript' or 'javascript', 'npm' is selected. Otherwise, no package manager is used.
*/
readonly packageManager?: JsPackageManager;
readonly ioHelper: IoHelper;
}
/**
* Initialize a CDK package in the current directory
*/
export declare function cliInit(options: CliInitOptions): Promise<void>;
interface TemplateInitInfo {
readonly description: string;
readonly aliases?: string[];
}
declare enum TemplateType {
BUILT_IN = "builtin",
CUSTOM = "custom"
}
export declare class InitTemplate {
private readonly basePath;
readonly name: string;
readonly languages: string[];
static fromName(templatesDir: string, name: string): Promise<InitTemplate>;
static fromPath(templatePath: string): Promise<InitTemplate>;
readonly description?: string;
readonly aliases: Set<string>;
readonly templateType: TemplateType;
constructor(basePath: string, name: string, languages: string[], initInfo: TemplateInitInfo | null, templateType: TemplateType);
/**
* @param name - the name that is being checked
* @returns ``true`` if ``name`` is the name of this template or an alias of it.
*/
hasName(name: string): boolean;
/**
* Creates a new instance of this ``InitTemplate`` for a given language to a specified folder.
*
* @param language - the language to instantiate this template with
* @param targetDirectory - the directory where the template is to be instantiated into
* @param stackName - the name of the stack to create
* @default undefined
* @param libVersion - the version of the CDK library to use
* @default undefined
*/
install(ioHelper: IoHelper, language: string, targetDirectory: string, projectName?: string, stackName?: string, libVersion?: string, packageManager?: JsPackageManager): Promise<void>;
private installFiles;
private installProcessed;
/**
* Copy template files without processing placeholders (for custom templates)
*/
private installFilesWithoutProcessing;
/**
* Adds context variables to `cdk.json` in the generated project directory to
* enable future behavior for new projects.
*/
private applyFutureFlags;
addMigrateContext(projectDir: string): Promise<void>;
}
export declare function expandPlaceholders(template: string, language: string, project: ProjectInfo, packageManager?: JsPackageManager): string;
interface ProjectInfo {
/** The value used for %name% */
readonly name: string;
readonly stackName?: string;
readonly versions: Versions;
}
export declare function availableInitTemplates(): Promise<InitTemplate[]>;
export declare function availableInitLanguages(): Promise<string[]>;
/**
* Print available templates to the user
* @param ioHelper - IO helper for user interaction
* @param language - Programming language filter
* @default undefined
*/
export declare function printAvailableTemplates(ioHelper: IoHelper, language?: string): Promise<void>;
interface Versions {
['aws-cdk']: string;
['aws-cdk-lib']: string;
constructs: string;
}
/**
* Return the currently recommended flags for `aws-cdk-lib`.
*
* These have been built into the CLI at build time.
*/
export declare function currentlyRecommendedAwsCdkLibFlags(): Promise<any>;
export {};

788
cdk/node_modules/aws-cdk/lib/commands/init/init.js generated vendored Normal file

File diff suppressed because one or more lines are too long

8
cdk/node_modules/aws-cdk/lib/commands/init/os.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
import type { IoHelper } from '../../api-private';
/**
* OS helpers
*
* Shell function which both prints to stdout and collects the output into a
* string.
*/
export declare function shell(ioHelper: IoHelper, command: string[]): Promise<string>;

91
cdk/node_modules/aws-cdk/lib/commands/init/os.js generated vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,15 @@
export declare const JS_PACKAGE_MANAGERS: readonly [{
readonly name: "npm";
readonly commandPrefix: "npm run";
}, {
readonly name: "yarn";
readonly commandPrefix: "yarn";
}, {
readonly name: "pnpm";
readonly commandPrefix: "pnpm";
}, {
readonly name: "bun";
readonly commandPrefix: "bun run";
}];
export type JsPackageManager = (typeof JS_PACKAGE_MANAGERS)[number]['name'];
export declare const getPmCmdPrefix: (packageManager: JsPackageManager) => string;

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPmCmdPrefix = exports.JS_PACKAGE_MANAGERS = void 0;
exports.JS_PACKAGE_MANAGERS = [
{ name: 'npm', commandPrefix: 'npm run' },
{ name: 'yarn', commandPrefix: 'yarn' },
{ name: 'pnpm', commandPrefix: 'pnpm' },
{ name: 'bun', commandPrefix: 'bun run' },
];
const getPmCmdPrefix = (packageManager) => {
return exports.JS_PACKAGE_MANAGERS.find(pm => pm.name === packageManager).commandPrefix;
};
exports.getPmCmdPrefix = getPmCmdPrefix;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFja2FnZS1tYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicGFja2FnZS1tYW5hZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFhLFFBQUEsbUJBQW1CLEdBQUc7SUFDakMsRUFBRSxJQUFJLEVBQUUsS0FBSyxFQUFFLGFBQ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