Refactor machine implementation and improve type safety#3
Merged
Conversation
- Updated all import statements to use single quotes instead of double quotes. - Modified string literals in tests and helper functions to use single quotes for consistency. - Introduced a new constants file for guard types to improve code organization. - Added new types and utility functions for extracting actions, delays, and guards from configurations. - Enhanced type definitions for better type safety and clarity in the pipeline implementation.
…ons to devcontainer
- Migrate pipe functionality to a new machine structure, removing the old pipe.ts file. - Introduce machine.helpers.ts for utility functions related to guards and context management. - Implement machine.ts to handle the new machine logic, including action and condition resolution. - Update type definitions in machine.types.ts to support the new machine structure. - Remove deprecated types and tests related to the old pipe implementation. - Ensure type safety and improve clarity in type definitions across the codebase. _NO_CI
- Moved type definitions from `src/types.ts` to `src/types/common.ts` and `src/types/config.ts` for improved clarity and organization. - Updated imports in `src/index.ts`, `src/machine.ts`, and `src/machine.types.ts` to reflect the new structure. - Removed unused type definitions and test files related to strict types. - Enhanced type extraction utilities in `src/types/config.ts` for better guard and action management. - Added new tests for the updated type utilities in `src/types/config.test-d.ts` and `src/types/strict.test-d.ts`. - Updated `tsconfig.json` and `vitest.config.ts` for improved type checking and test coverage.
…orer la gestion des actions asynchrones dans la machine _NO_CI
…ine, mettre à jour la documentation et les tests _NO_CI
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.
Standardize string quotes across the codebase, restructure the machine and pipe implementation for better maintainability, and enhance type definitions for improved clarity and safety. Remove deprecated files and types, and introduce new utility functions and constants for better organization. Update the devcontainer configuration and add TypeScript Native Preview and Anthropic Claude Code extensions. Improve documentation and tests related to the new structure.