Skip to content

Refactor machine implementation and improve type safety#3

Merged
chlbri merged 10 commits into
mainfrom
machine-simplified
May 13, 2026
Merged

Refactor machine implementation and improve type safety#3
chlbri merged 10 commits into
mainfrom
machine-simplified

Conversation

@chlbri
Copy link
Copy Markdown
Owner

@chlbri chlbri commented May 13, 2026

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.

chlbri added 10 commits May 12, 2026 15:26
- 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.
- 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
@chlbri chlbri merged commit 08efb3d into main May 13, 2026
1 check passed
@chlbri chlbri deleted the machine-simplified branch May 13, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant