contrib(common-utilities): add docx-conversion and parallel-combinator utilities#73
Open
rogelsm wants to merge 4 commits intoa5c-ai:stagingfrom
Conversation
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.
Library Contribution
Type: process (reusable task definitions)
Name: common-utilities
Specialization: common-utilities
Location:
plugins/babysitter/skills/babysit/process/specializations/common-utilities/Description
Two reusable library modules extracted from a retrospective analysis of essay-critique, extract-oral-prep, and essay-grading processes:
1. docx-conversion.js
A shared HTML-to-DOCX conversion task using pandoc with graceful fallback. This identical pattern was duplicated across multiple process files and has been extracted into a reusable module.
defineTaskwithkind: 'shell'2. parallel-combinator.js
Utility functions for parallel task execution with fan-out/fan-in patterns:
fanOutFanIn(ctx, sharedArgs, taskSpecs)- Run multiple tasks in parallel with shared inputpipeline(ctx, initialInput, phases)- Sequential phases with optional parallel steps, accumulating results3. index.js
Re-exports all modules for clean importing.
4. README.md
Documentation with usage examples for both modules.
Files Added
plugins/babysitter/skills/babysit/process/specializations/common-utilities/docx-conversion.jsplugins/babysitter/skills/babysit/process/specializations/common-utilities/parallel-combinator.jsplugins/babysitter/skills/babysit/process/specializations/common-utilities/index.jsplugins/babysitter/skills/babysit/process/specializations/common-utilities/README.mdQuality Checks
Origin
Identified during retrospective analysis of babysitter orchestration runs. The docx-conversion task was duplicated identically in 2 process files. The parallel combinator pattern was used manually via Promise.all but benefits from standardization.