|
159 | 159 | "kind": "function", |
160 | 160 | "doc_comment": "Creates a changeset file for dependency updates.\nReturns the path to the created changeset file.", |
161 | 161 | "source_line": 30, |
162 | | - "type_signature": "(repo: LocalRepo, updates: DependencyVersionChange[], options?: { log?: Logger | undefined; }): Promise<string>", |
| 162 | + "type_signature": "(repo: LocalRepo, updates: DependencyVersionChange[], options?: { log?: Logger | undefined; fs_ops?: FsOperations | undefined; }): Promise<...>", |
163 | 163 | "return_type": "Promise<string>", |
164 | 164 | "parameters": [ |
165 | 165 | { |
|
172 | 172 | }, |
173 | 173 | { |
174 | 174 | "name": "options", |
175 | | - "type": "{ log?: Logger | undefined; }", |
| 175 | + "type": "{ log?: Logger | undefined; fs_ops?: FsOperations | undefined; }", |
176 | 176 | "default_value": "{}" |
177 | 177 | } |
178 | 178 | ] |
|
181 | 181 | "name": "generate_changeset_content", |
182 | 182 | "kind": "function", |
183 | 183 | "doc_comment": "Generates markdown changeset content for dependency updates.\n\nCreates properly formatted changeset with YAML frontmatter, summary,\nand categorized list of breaking vs regular updates. Output format\nmatches changesets CLI for consistency.", |
184 | | - "source_line": 97, |
| 184 | + "source_line": 103, |
185 | 185 | "type_signature": "(package_name: string, updates: DependencyVersionChange[], bump_type: \"major\" | \"minor\" | \"patch\"): string", |
186 | 186 | "return_type": "string", |
187 | 187 | "return_description": "markdown content ready to write to .changeset/*.md file", |
|
206 | 206 | { |
207 | 207 | "name": "create_dependency_updates", |
208 | 208 | "kind": "function", |
209 | | - "source_line": 141, |
| 209 | + "source_line": 147, |
210 | 210 | "type_signature": "(dependencies: Map<string, string>, published_versions: Map<string, PublishedVersion>): DependencyVersionChange[]", |
211 | 211 | "return_type": "DependencyVersionChange[]", |
212 | 212 | "parameters": [ |
|
222 | 222 | } |
223 | 223 | ], |
224 | 224 | "module_comment": "Auto-generation of changesets for dependency updates during publishing.\n\nCreates changesets when packages need to republish due to updated dependencies.\nFor parsing existing changesets, see `changeset_reader.ts`.", |
225 | | - "dependencies": ["version_utils.ts"], |
| 225 | + "dependencies": ["operations_defaults.ts", "version_utils.ts"], |
226 | 226 | "dependents": ["dependency_updater.ts"] |
227 | 227 | }, |
228 | 228 | { |
|
2591 | 2591 | { |
2592 | 2592 | "name": "default_changeset_operations", |
2593 | 2593 | "kind": "variable", |
2594 | | - "source_line": 70, |
| 2594 | + "source_line": 71, |
2595 | 2595 | "type_signature": "ChangesetOperations" |
2596 | 2596 | }, |
2597 | 2597 | { |
2598 | 2598 | "name": "default_git_operations", |
2599 | 2599 | "kind": "variable", |
2600 | | - "source_line": 95, |
| 2600 | + "source_line": 96, |
2601 | 2601 | "type_signature": "GitOperations" |
2602 | 2602 | }, |
2603 | 2603 | { |
2604 | 2604 | "name": "default_process_operations", |
2605 | 2605 | "kind": "variable", |
2606 | | - "source_line": 192, |
| 2606 | + "source_line": 193, |
2607 | 2607 | "type_signature": "ProcessOperations" |
2608 | 2608 | }, |
2609 | 2609 | { |
2610 | 2610 | "name": "default_npm_operations", |
2611 | 2611 | "kind": "variable", |
2612 | | - "source_line": 216, |
| 2612 | + "source_line": 217, |
2613 | 2613 | "type_signature": "NpmOperations" |
2614 | 2614 | }, |
2615 | 2615 | { |
2616 | 2616 | "name": "default_preflight_operations", |
2617 | 2617 | "kind": "variable", |
2618 | | - "source_line": 287, |
| 2618 | + "source_line": 288, |
2619 | 2619 | "type_signature": "PreflightOperations" |
2620 | 2620 | }, |
2621 | 2621 | { |
2622 | 2622 | "name": "default_fs_operations", |
2623 | 2623 | "kind": "variable", |
2624 | | - "source_line": 293, |
| 2624 | + "source_line": 294, |
2625 | 2625 | "type_signature": "FsOperations" |
2626 | 2626 | }, |
2627 | 2627 | { |
2628 | 2628 | "name": "default_build_operations", |
2629 | 2629 | "kind": "variable", |
2630 | | - "source_line": 305, |
| 2630 | + "source_line": 315, |
2631 | 2631 | "type_signature": "BuildOperations" |
2632 | 2632 | }, |
2633 | 2633 | { |
2634 | 2634 | "name": "default_gitops_operations", |
2635 | 2635 | "kind": "variable", |
2636 | 2636 | "doc_comment": "Combined default operations for all gitops functionality.", |
2637 | | - "source_line": 329, |
| 2637 | + "source_line": 339, |
2638 | 2638 | "type_signature": "GitopsOperations" |
2639 | 2639 | } |
2640 | 2640 | ], |
|
2646 | 2646 | "preflight_checks.ts" |
2647 | 2647 | ], |
2648 | 2648 | "dependents": [ |
| 2649 | + "changeset_generator.ts", |
2649 | 2650 | "dependency_updater.ts", |
2650 | 2651 | "local_repo.ts", |
2651 | 2652 | "multi_repo_publisher.ts", |
|
2902 | 2903 | "kind": "variable", |
2903 | 2904 | "type_signature": "(options: {\n\t\tpath: string;\n\t\tcontent: string;\n\t}) => Promise<Result<object, {message: string}>>", |
2904 | 2905 | "doc_comment": "Writes a file to the file system." |
| 2906 | + }, |
| 2907 | + { |
| 2908 | + "name": "mkdir", |
| 2909 | + "kind": "variable", |
| 2910 | + "type_signature": "(options: {\n\t\tpath: string;\n\t\trecursive?: boolean;\n\t}) => Promise<Result<object, {message: string}>>", |
| 2911 | + "doc_comment": "Creates a directory, optionally with recursive creation." |
| 2912 | + }, |
| 2913 | + { |
| 2914 | + "name": "exists", |
| 2915 | + "kind": "variable", |
| 2916 | + "type_signature": "(options: {path: string}) => boolean", |
| 2917 | + "doc_comment": "Checks if a path exists on the file system." |
2905 | 2918 | } |
2906 | 2919 | ] |
2907 | 2920 | }, |
2908 | 2921 | { |
2909 | 2922 | "name": "GitopsOperations", |
2910 | 2923 | "kind": "type", |
2911 | 2924 | "doc_comment": "Combined operations interface grouping all gitops functionality.\nThis is the main interface injected into publishing and validation workflows.", |
2912 | | - "source_line": 328, |
| 2925 | + "source_line": 341, |
2913 | 2926 | "type_signature": "GitopsOperations", |
2914 | 2927 | "properties": [ |
2915 | 2928 | { |
|
0 commit comments