feat(structure): add region/city structure model with validation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 15:19:49 +03:30
parent cfa23b6384
commit 614ea98825
4 changed files with 403 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
* was produced ships to the client.
*
* Exclusion rule (keep in sync with the "no docs/AI files in zips" preference):
* - any path segment: .git, .claude, .github, docs, build, node_modules
* - any path segment: .git, .claude, .github, docs, build, node_modules, tests
* - any *.md file
* - dotfiles at any level except .htaccess
*/
@@ -22,7 +22,7 @@ if ( '' === $src || '' === $out || ! is_dir( $src ) ) {
exit( 1 );
}
$excluded_dirs = array( '.git', '.claude', '.github', 'docs', 'build', 'node_modules' );
$excluded_dirs = array( '.git', '.claude', '.github', 'docs', 'build', 'node_modules', 'tests' );
function is_excluded( $rel, array $excluded_dirs ) {
$parts = explode( '/', $rel );