Параметры следует брать из одноименной задачи или операции в шаблоне#14
Merged
ideav merged 3 commits intoideav:mainfrom Dec 4, 2025
Merged
Параметры следует брать из одноименной задачи или операции в шаблоне#14ideav merged 3 commits intoideav:mainfrom
ideav merged 3 commits intoideav:mainfrom
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: ideav/orbits#13
This commit implements the solution for issue #13, which requires
parameters to be taken from the template task or operation with the
same name, with proper fallback logic.
Changes:
1. Updated buildTemplateLookup() to store template parameters for both
tasks and operations from the template project
2. Added new function getItemParameters() with priority-based parameter
resolution:
- For operations: template operation params → template task params →
current operation params → current task params
- For tasks: template task params → current task params
3. Simplified scheduleTasks() to use the new getItemParameters() function
4. Updated test-parameter-fallback.js to test all parameter resolution
scenarios with template lookup
The code in project-scheduler.js that accesses template parameters is:
- Lines 128-216: buildTemplateLookup() builds Maps with template parameters
- Lines 241-305: getItemParameters() retrieves parameters with proper fallback
- Line 800: scheduleTasks() calls getItemParameters() to determine parameters
All 8 test cases pass successfully.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit e9face0.
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Описание
Эта PR реализует решение для issue #13: параметры теперь берутся из одноименных задач или операций в шаблоне проекта, с правильной логикой fallback.
Fixes #13
🔍 Код доступа к шаблонным параметрам
В
project-scheduler.jsследующий код обращается к шаблонным параметрам:Строки 128-216: функция
buildTemplateLookup()taskParametersиoperationParametersв templateMapСтроки 241-305: функция
getItemParameters()Строка 800: функция
scheduleTasks()getItemParameters()для определения параметров✨ Изменения
1. Расширение buildTemplateLookup()
taskParametersиoperationParameters2. Новая функция getItemParameters()
3. Упрощение scheduleTasks()
getItemParameters()4. Обновление тестов
experiments/test-parameter-fallback.jsполностью переписан🧪 Тестирование
$ node experiments/test-parameter-fallback.js === Testing Parameter Fallback Logic with Template Lookup === Test 1: Operation with template operation parameters - ✓ PASSED Test 2: Operation with no template operation params - ✓ PASSED Test 3: Operation with template operation params overriding - ✓ PASSED Test 4: Operation with no template, fallback to current - ✓ PASSED Test 5: Operation fallback to current task params - ✓ PASSED Test 6: Task with template parameters - ✓ PASSED Test 7: Task with no template, use current - ✓ PASSED Test 8: All parameters empty - ✓ PASSED Total: 8, Passed: 8, Failed: 0 ✓ All tests passed!📝 Примеры использования
Пример 1: Операция с параметрами из шаблона
740:%(-)740:%(-)из шаблонаПример 2: Операция без параметров в шаблоне
115:849(-),2673:(4-)🤖 Generated with Claude Code