Add generate-package-template and validate-package commands#58
Draft
zdburrage wants to merge 1 commit into
Draft
Add generate-package-template and validate-package commands#58zdburrage wants to merge 1 commit into
zdburrage wants to merge 1 commit into
Conversation
Phase 12 of the provider-parity plan. Adds the generic/manual package path so unsupported providers (or scripted exports) can target the same package contract every dedicated exporter writes. - New \`generate-package-template\` CLI scaffolds an empty migration package skeleton with all canonical CSV files (header-only) and a manifest. Supports \`--provider\`, \`--entities\`, \`--source-tenant\`, and \`--force\`. - New \`validate-package <dir>\` CLI wraps \`validateMigrationPackage\` from src/package/validator.ts. Surfaces manifest schema errors, missing files, header mismatches, count mismatches, and JSONL parse errors. Supports \`--no-counts\`, \`--no-headers\`, \`--quiet\`, and \`--json\`. - Registered both commands in the CLI index. - Tests cover skeleton generation, validation pass + count mismatch, and header mismatch detection — kept at the orchestration layer to avoid commander's process.exit side effects. - README documents the manual-CSV migration path and lists the new commands in the command table.
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.
Summary
Phase 12 of the provider-parity execution plan. Adds the generic/manual CSV package path so unsupported providers (or scripted exports) can target the same package contract every dedicated exporter writes.
generate-package-template --output-dir <dir>scaffolds an empty migration package skeleton with all canonical CSV files (header-only) and a manifest. Supports--provider,--entities,--source-tenant,--force.validate-package <dir>wrapsvalidateMigrationPackagefromsrc/package/validator.ts. Surfaces manifest schema errors, missing files, header mismatches, count mismatches, and JSONL parse errors. Supports--no-counts,--no-headers,--quiet, and--json.Test Plan
npm run lintnpm run format:checknpm run typechecknpm run buildnpm test— 272 passing across 24 suites.🤖 Generated with Claude Code