diff --git a/cases/bootstrap/boot-001-lint-fix.yaml b/cases/bootstrap/boot-001-lint-fix.yaml new file mode 100644 index 0000000..f7cd8d2 --- /dev/null +++ b/cases/bootstrap/boot-001-lint-fix.yaml @@ -0,0 +1,30 @@ +# Bootstrap Case: Fix linting errors in a specific file +# This case tests an agent's ability to fix code style issues in a single file. + +id: boot-001 +title: "Fix linting errors in a specific file" +prompt: | + Fix all linting errors in the file: ${FILE_PATH} + + The file currently has linting errors. Run the linter on this file + to see what needs to be fixed, then apply the necessary corrections + to make the file pass all linting rules. + + Requirements: + - Fix all linting errors in ${FILE_PATH} + - Do not modify any other files + - Preserve the original functionality + - Run the linter again to verify all errors are fixed + + ${LINTER_COMMAND} + +source: bootstrap +category: bootstrap +language: javascript +difficulty: easy + +tags: + - bootstrap + - linting + - code-quality + diff --git a/cases/bootstrap/boot-002-rename-symbol.yaml b/cases/bootstrap/boot-002-rename-symbol.yaml new file mode 100644 index 0000000..c032c43 --- /dev/null +++ b/cases/bootstrap/boot-002-rename-symbol.yaml @@ -0,0 +1,30 @@ +# Bootstrap Case: Rename a symbol across the codebase +# This case tests an agent's ability to find and rename a symbol consistently. + +id: boot-002 +title: "Rename a symbol across the codebase" +prompt: | + Rename the symbol "${OLD_NAME}" to "${NEW_NAME}" throughout the codebase. + + Find all occurrences of ${OLD_NAME} in the codebase and replace them + with ${NEW_NAME}. Ensure the change is consistent across all files. + + Requirements: + - Find all references to ${OLD_NAME} + - Replace each reference with ${NEW_NAME} + - Verify the change with grep: grep -r "${NEW_NAME}" . + - Run tests to ensure nothing is broken + - Do not introduce any new errors + + ${GREP_COMMAND} + +source: bootstrap +category: bootstrap +language: javascript +difficulty: easy + +tags: + - bootstrap + - refactoring + - rename + diff --git a/cases/bootstrap/boot-003-extract-duplicate.yaml b/cases/bootstrap/boot-003-extract-duplicate.yaml new file mode 100644 index 0000000..687591e --- /dev/null +++ b/cases/bootstrap/boot-003-extract-duplicate.yaml @@ -0,0 +1,30 @@ +# Bootstrap Case: Extract duplicated code into shared function +# This case tests an agent's ability to identify and eliminate code duplication. + +id: boot-003 +title: "Extract duplicated code into shared function" +prompt: | + Extract the duplicated code pattern into a shared function. + + The following code pattern appears multiple times in the codebase: + ${DUPLICATE_PATTERN} + + Create a new function called "${SHARED_FUNCTION_NAME}" that contains + this duplicated logic, then replace all occurrences with a call to + this new function. + + Requirements: + - Identify all occurrences of the duplicate pattern + - Create a shared function with a clear name + - Replace all duplicates with calls to the shared function + - Verify the pattern is gone with grep + - Run tests to ensure functionality is preserved + + ${GREP_COMMAND} + +source: bootstrap +category: bootstrap +language: javascript +difficulty: medium + +tags: diff --git a/cases/bootstrap/boot-004-add-types.yaml b/cases/bootstrap/boot-004-add-types.yaml new file mode 100644 index 0000000..d87ca08 --- /dev/null +++ b/cases/bootstrap/boot-004-add-types.yaml @@ -0,0 +1,30 @@ +# Bootstrap Case: Add type annotations to a module +# This case tests an agent's ability to add type safety to code. + +id: boot-004 +title: "Add type annotations to a module" +prompt: | + Add type annotations to the module at ${MODULE_PATH}. + + The module currently lacks type annotations. Add appropriate TypeScript + types to all functions, variables, and parameters to ensure type safety. + + Requirements: + - Add type annotations to all functions + - Add type annotations to all variables + - Add type annotations to all parameters + - Run the TypeScript type checker to verify no errors + - Ensure the module still works correctly + + ${TYPECHECK_COMMAND} + +source: bootstrap +category: bootstrap +language: typescript +difficulty: medium + +tags: + - bootstrap + - typescript + - type-safety + diff --git a/cases/bootstrap/boot-005-update-deprecated.yaml b/cases/bootstrap/boot-005-update-deprecated.yaml new file mode 100644 index 0000000..d9b96d3 --- /dev/null +++ b/cases/bootstrap/boot-005-update-deprecated.yaml @@ -0,0 +1,30 @@ +# Bootstrap Case: Update deprecated API usage +# This case tests an agent's ability to identify and fix deprecated patterns. + +id: boot-005 +title: "Update deprecated API usage" +prompt: | + Update all deprecated API usage in the codebase. + + The following deprecated pattern is currently used: + ${DEPRECATED_PATTERN} + + Replace all occurrences of this deprecated pattern with the new API: + ${NEW_API} + + Requirements: + - Find all occurrences of the deprecated pattern + - Replace each with the new API + - Verify the deprecated pattern is gone with grep + - Run tests to ensure functionality is preserved + - Do not introduce any new errors + + ${GREP_COMMAND} + +source: bootstrap +category: bootstrap +language: javascript +difficulty: medium + +tags: + - bootstrap