@fuzdev/fuz_gitops 0.67.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ModulesDetail.svelte +14 -14
- package/dist/ModulesNav.svelte +2 -2
- package/dist/PageFooter.svelte +1 -1
- package/dist/ReposTable.svelte +1 -1
- package/dist/ReposTree.svelte +6 -6
- package/dist/ReposTreeNav.svelte +1 -1
- package/dist/TablePage.svelte +1 -7
- package/dist/TreeItemPage.svelte +3 -3
- package/dist/TreePage.svelte +3 -3
- package/dist/changeset_generator.d.ts +4 -4
- package/dist/changeset_generator.js +5 -5
- package/dist/changeset_reader.d.ts +6 -4
- package/dist/changeset_reader.d.ts.map +1 -1
- package/dist/changeset_reader.js +7 -5
- package/dist/dependency_graph.d.ts +3 -3
- package/dist/dependency_graph.js +3 -3
- package/dist/dependency_updater.d.ts +4 -4
- package/dist/dependency_updater.js +5 -5
- package/dist/fetch_repo_data.d.ts +4 -4
- package/dist/fetch_repo_data.d.ts.map +1 -1
- package/dist/fetch_repo_data.js +4 -5
- package/dist/fs_fetch_value_cache.d.ts +4 -4
- package/dist/fs_fetch_value_cache.js +4 -4
- package/dist/git_operations.d.ts +5 -5
- package/dist/git_operations.d.ts.map +1 -1
- package/dist/git_operations.js +18 -18
- package/dist/github.d.ts +1 -1
- package/dist/gitops_plan.task.d.ts +3 -3
- package/dist/gitops_plan.task.js +3 -3
- package/dist/gitops_run.task.js +1 -1
- package/dist/gitops_task_helpers.d.ts +5 -5
- package/dist/gitops_task_helpers.js +5 -5
- package/dist/graph_validation.d.ts +5 -5
- package/dist/graph_validation.js +5 -5
- package/dist/local_repo.d.ts +6 -6
- package/dist/local_repo.js +12 -9
- package/dist/multi_repo_publisher.d.ts.map +1 -1
- package/dist/multi_repo_publisher.js +4 -4
- package/dist/npm_install_helpers.d.ts +3 -3
- package/dist/npm_install_helpers.js +3 -3
- package/dist/npm_registry.d.ts +4 -4
- package/dist/npm_registry.js +5 -6
- package/dist/operations.d.ts +19 -17
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +1 -1
- package/dist/operations_defaults.d.ts.map +1 -1
- package/dist/operations_defaults.js +49 -14
- package/dist/output_helpers.d.ts +2 -2
- package/dist/output_helpers.js +2 -2
- package/dist/paths.d.ts +1 -1
- package/dist/paths.js +1 -1
- package/dist/preflight_checks.d.ts +2 -2
- package/dist/preflight_checks.js +7 -7
- package/dist/publishing_plan.js +4 -4
- package/dist/publishing_plan_helpers.d.ts +1 -1
- package/dist/publishing_plan_helpers.js +1 -1
- package/dist/repo.svelte.d.ts +3 -3
- package/dist/repo.svelte.js +2 -2
- package/dist/repo_ops.d.ts +6 -6
- package/dist/repo_ops.js +7 -7
- package/dist/version_utils.d.ts +2 -2
- package/dist/version_utils.js +2 -2
- package/package.json +18 -16
- package/src/lib/changeset_generator.ts +5 -5
- package/src/lib/changeset_reader.ts +7 -5
- package/src/lib/dependency_graph.ts +3 -3
- package/src/lib/dependency_updater.ts +5 -5
- package/src/lib/fetch_repo_data.ts +4 -6
- package/src/lib/fs_fetch_value_cache.ts +4 -4
- package/src/lib/git_operations.ts +32 -18
- package/src/lib/github.ts +1 -1
- package/src/lib/gitops_plan.task.ts +3 -3
- package/src/lib/gitops_run.task.ts +1 -1
- package/src/lib/gitops_task_helpers.ts +5 -5
- package/src/lib/graph_validation.ts +5 -5
- package/src/lib/local_repo.ts +18 -11
- package/src/lib/multi_repo_publisher.ts +4 -6
- package/src/lib/npm_install_helpers.ts +3 -3
- package/src/lib/npm_registry.ts +6 -6
- package/src/lib/operations.ts +19 -17
- package/src/lib/operations_defaults.ts +47 -16
- package/src/lib/output_helpers.ts +2 -2
- package/src/lib/paths.ts +1 -1
- package/src/lib/preflight_checks.ts +7 -7
- package/src/lib/publishing_plan.ts +4 -4
- package/src/lib/publishing_plan_helpers.ts +1 -1
- package/src/lib/repo.svelte.ts +3 -3
- package/src/lib/repo_ops.ts +7 -7
- package/src/lib/version_utils.ts +2 -2
package/dist/git_operations.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spawn_out, spawn_result_to_message } from '@fuzdev/fuz_util/process.js';
|
|
2
2
|
import { git_check_clean_workspace as gro_git_check_clean_workspace, git_checkout as gro_git_checkout, git_pull as gro_git_pull, git_current_branch_name as gro_git_current_branch_name, git_current_commit_hash as gro_git_current_commit_hash, } from '@fuzdev/fuz_util/git.js';
|
|
3
3
|
/**
|
|
4
4
|
* Adds files to git staging area and throws if anything goes wrong.
|
|
5
5
|
*/
|
|
6
6
|
export const git_add = async (files, options) => {
|
|
7
7
|
const file_list = Array.isArray(files) ? files : [files];
|
|
8
|
-
const result = await
|
|
8
|
+
const { result, stderr } = await spawn_out('git', ['add', ...file_list], options);
|
|
9
9
|
if (!result.ok) {
|
|
10
|
-
throw Error(`git_add failed with
|
|
10
|
+
throw Error(`git_add failed with ${spawn_result_to_message(result)}${stderr ? ': ' + stderr.trim() : ''}`);
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* Commits staged changes with a message and throws if anything goes wrong.
|
|
15
15
|
*/
|
|
16
16
|
export const git_commit = async (message, options) => {
|
|
17
|
-
const result = await
|
|
17
|
+
const { result, stderr } = await spawn_out('git', ['commit', '-m', message], options);
|
|
18
18
|
if (!result.ok) {
|
|
19
|
-
throw Error(`git_commit failed with
|
|
19
|
+
throw Error(`git_commit failed with ${spawn_result_to_message(result)}${stderr ? ': ' + stderr.trim() : ''}`);
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
@@ -31,18 +31,18 @@ export const git_add_and_commit = async (files, message, options) => {
|
|
|
31
31
|
*/
|
|
32
32
|
export const git_tag = async (tag_name, message, options) => {
|
|
33
33
|
const args = message ? ['tag', '-a', tag_name, '-m', message] : ['tag', tag_name];
|
|
34
|
-
const result = await
|
|
34
|
+
const { result, stderr } = await spawn_out('git', args, options);
|
|
35
35
|
if (!result.ok) {
|
|
36
|
-
throw Error(`git_tag failed for tag '${tag_name}' with
|
|
36
|
+
throw Error(`git_tag failed for tag '${tag_name}' with ${spawn_result_to_message(result)}${stderr ? ': ' + stderr.trim() : ''}`);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
* Pushes a tag to origin and throws if anything goes wrong.
|
|
41
41
|
*/
|
|
42
42
|
export const git_push_tag = async (tag_name, origin = 'origin', options) => {
|
|
43
|
-
const result = await
|
|
43
|
+
const { result, stderr } = await spawn_out('git', ['push', origin, tag_name], options);
|
|
44
44
|
if (!result.ok) {
|
|
45
|
-
throw Error(`git_push_tag failed for tag '${tag_name}' with
|
|
45
|
+
throw Error(`git_push_tag failed for tag '${tag_name}' with ${spawn_result_to_message(result)}${stderr ? ': ' + stderr.trim() : ''}`);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
export const git_has_changes = async (options) => {
|
|
@@ -50,9 +50,9 @@ export const git_has_changes = async (options) => {
|
|
|
50
50
|
return stdout ? stdout.trim().length > 0 : false;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Lists uncommitted files in the working tree (`git diff --name-only HEAD`).
|
|
54
54
|
*/
|
|
55
|
-
export const
|
|
55
|
+
export const git_list_uncommitted_files = async (options) => {
|
|
56
56
|
const { stdout } = await spawn_out('git', ['diff', '--name-only', 'HEAD'], options);
|
|
57
57
|
if (!stdout)
|
|
58
58
|
return [];
|
|
@@ -70,18 +70,18 @@ export const git_has_file_changed = async (from_commit, to_commit, file_path, op
|
|
|
70
70
|
*/
|
|
71
71
|
export const git_stash = async (message, options) => {
|
|
72
72
|
const args = message ? ['stash', 'push', '-m', message] : ['stash', 'push'];
|
|
73
|
-
const result = await
|
|
73
|
+
const { result, stderr } = await spawn_out('git', args, options);
|
|
74
74
|
if (!result.ok) {
|
|
75
|
-
throw Error(`git_stash failed with
|
|
75
|
+
throw Error(`git_stash failed with ${spawn_result_to_message(result)}${stderr ? ': ' + stderr.trim() : ''}`);
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
79
|
* Applies stashed changes and throws if anything goes wrong.
|
|
80
80
|
*/
|
|
81
81
|
export const git_stash_pop = async (options) => {
|
|
82
|
-
const result = await
|
|
82
|
+
const { result, stderr } = await spawn_out('git', ['stash', 'pop'], options);
|
|
83
83
|
if (!result.ok) {
|
|
84
|
-
throw Error(`git_stash_pop failed with
|
|
84
|
+
throw Error(`git_stash_pop failed with ${spawn_result_to_message(result)}${stderr ? ': ' + stderr.trim() : ''}`);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
/**
|
|
@@ -106,7 +106,7 @@ export const git_switch_branch = async (branch, pull = true, options) => {
|
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
|
-
* Wrapper for gro's git_current_branch_name that throws if null.
|
|
109
|
+
* Wrapper for gro's `git_current_branch_name` that throws if null.
|
|
110
110
|
*/
|
|
111
111
|
export const git_current_branch_name_required = async (options) => {
|
|
112
112
|
const branch = await gro_git_current_branch_name(options);
|
|
@@ -116,7 +116,7 @@ export const git_current_branch_name_required = async (options) => {
|
|
|
116
116
|
return branch;
|
|
117
117
|
};
|
|
118
118
|
/**
|
|
119
|
-
* Wrapper for gro's git_current_commit_hash that throws if null.
|
|
119
|
+
* Wrapper for gro's `git_current_commit_hash` that throws if null.
|
|
120
120
|
*/
|
|
121
121
|
export const git_current_commit_hash_required = async (branch, options) => {
|
|
122
122
|
const hash = await gro_git_current_commit_hash(branch, options);
|
|
@@ -126,7 +126,7 @@ export const git_current_commit_hash_required = async (branch, options) => {
|
|
|
126
126
|
return hash;
|
|
127
127
|
};
|
|
128
128
|
/**
|
|
129
|
-
* Wrapper for gro's git_check_clean_workspace that returns a boolean.
|
|
129
|
+
* Wrapper for gro's `git_check_clean_workspace` that returns a boolean.
|
|
130
130
|
*/
|
|
131
131
|
export const git_check_clean_workspace_as_boolean = async (options) => {
|
|
132
132
|
const error = await gro_git_check_clean_workspace(options);
|
package/dist/github.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Logger } from '@fuzdev/fuz_util/log.js';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { type FetchValueCache } from '@fuzdev/fuz_util/fetch.js';
|
|
4
4
|
/**
|
|
5
|
-
* Minimal interface for GitHub API calls - works with both Pkg and Repo
|
|
5
|
+
* Minimal interface for GitHub API calls - works with both `Pkg` and `Repo`.
|
|
6
6
|
*/
|
|
7
7
|
export interface GithubRepoInfo {
|
|
8
8
|
owner_name: string | null;
|
|
@@ -18,9 +18,9 @@ export type Args = z.infer<typeof Args>;
|
|
|
18
18
|
* Shows version changes, dependency updates, and breaking change cascades.
|
|
19
19
|
*
|
|
20
20
|
* Usage:
|
|
21
|
-
* gro gitops_plan
|
|
22
|
-
* gro gitops_plan --dir ../repos
|
|
23
|
-
* gro gitops_plan --config ./custom.config.ts
|
|
21
|
+
* `gro gitops_plan`
|
|
22
|
+
* `gro gitops_plan --dir ../repos`
|
|
23
|
+
* `gro gitops_plan --config ./custom.config.ts`
|
|
24
24
|
*
|
|
25
25
|
* @nodocs
|
|
26
26
|
*/
|
package/dist/gitops_plan.task.js
CHANGED
|
@@ -26,9 +26,9 @@ export const Args = z.strictObject({
|
|
|
26
26
|
* Shows version changes, dependency updates, and breaking change cascades.
|
|
27
27
|
*
|
|
28
28
|
* Usage:
|
|
29
|
-
* gro gitops_plan
|
|
30
|
-
* gro gitops_plan --dir ../repos
|
|
31
|
-
* gro gitops_plan --config ./custom.config.ts
|
|
29
|
+
* `gro gitops_plan`
|
|
30
|
+
* `gro gitops_plan --dir ../repos`
|
|
31
|
+
* `gro gitops_plan --config ./custom.config.ts`
|
|
32
32
|
*
|
|
33
33
|
* @nodocs
|
|
34
34
|
*/
|
package/dist/gitops_run.task.js
CHANGED
|
@@ -50,7 +50,7 @@ export const task = {
|
|
|
50
50
|
repo_name,
|
|
51
51
|
repo_dir,
|
|
52
52
|
status: success ? 'success' : 'failure',
|
|
53
|
-
exit_code: spawned.result.code
|
|
53
|
+
exit_code: spawned.result.kind === 'exited' ? spawned.result.code : 0,
|
|
54
54
|
stdout: spawned.stdout || '',
|
|
55
55
|
stderr: spawned.stderr || '',
|
|
56
56
|
duration_ms,
|
|
@@ -36,17 +36,17 @@ export interface GetGitopsReadyOptions {
|
|
|
36
36
|
* 1. Loads and normalizes config from `gitops.config.ts`
|
|
37
37
|
* 2. Resolves local repo paths (creates missing with `--download`)
|
|
38
38
|
* 3. Switches branches and pulls latest changes (in parallel by default)
|
|
39
|
-
* 4. Auto-installs deps if package.json changed during pull
|
|
39
|
+
* 4. Auto-installs deps if `package.json` changed during pull
|
|
40
40
|
*
|
|
41
41
|
* Priority for path resolution:
|
|
42
42
|
* - `dir` argument (explicit override)
|
|
43
43
|
* - Config `repos_dir` setting
|
|
44
44
|
* - `DEFAULT_REPOS_DIR` constant
|
|
45
45
|
*
|
|
46
|
-
* @param options.git_ops for testing (defaults to real git operations)
|
|
47
|
-
* @param options.npm_ops for testing (defaults to real npm operations)
|
|
48
|
-
* @param options.parallel whether to load repos in parallel (default: true)
|
|
49
|
-
* @param options.concurrency max concurrent repo loads (default: 5)
|
|
46
|
+
* @param options.git_ops - for testing (defaults to real git operations)
|
|
47
|
+
* @param options.npm_ops - for testing (defaults to real npm operations)
|
|
48
|
+
* @param options.parallel - whether to load repos in parallel (default: true)
|
|
49
|
+
* @param options.concurrency - max concurrent repo loads (default: 5)
|
|
50
50
|
* @returns initialized config and fully loaded repos ready for operations
|
|
51
51
|
* @throws {TaskError} if config loading or repo resolution fails
|
|
52
52
|
*/
|
|
@@ -30,17 +30,17 @@ import { DEFAULT_REPOS_DIR } from './paths.js';
|
|
|
30
30
|
* 1. Loads and normalizes config from `gitops.config.ts`
|
|
31
31
|
* 2. Resolves local repo paths (creates missing with `--download`)
|
|
32
32
|
* 3. Switches branches and pulls latest changes (in parallel by default)
|
|
33
|
-
* 4. Auto-installs deps if package.json changed during pull
|
|
33
|
+
* 4. Auto-installs deps if `package.json` changed during pull
|
|
34
34
|
*
|
|
35
35
|
* Priority for path resolution:
|
|
36
36
|
* - `dir` argument (explicit override)
|
|
37
37
|
* - Config `repos_dir` setting
|
|
38
38
|
* - `DEFAULT_REPOS_DIR` constant
|
|
39
39
|
*
|
|
40
|
-
* @param options.git_ops for testing (defaults to real git operations)
|
|
41
|
-
* @param options.npm_ops for testing (defaults to real npm operations)
|
|
42
|
-
* @param options.parallel whether to load repos in parallel (default: true)
|
|
43
|
-
* @param options.concurrency max concurrent repo loads (default: 5)
|
|
40
|
+
* @param options.git_ops - for testing (defaults to real git operations)
|
|
41
|
+
* @param options.npm_ops - for testing (defaults to real npm operations)
|
|
42
|
+
* @param options.parallel - whether to load repos in parallel (default: true)
|
|
43
|
+
* @param options.concurrency - max concurrent repo loads (default: 5)
|
|
44
44
|
* @returns initialized config and fully loaded repos ready for operations
|
|
45
45
|
* @throws {TaskError} if config loading or repo resolution fails
|
|
46
46
|
*/
|
|
@@ -24,13 +24,13 @@ export interface GraphValidationResult {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Shared utility for building dependency graph, detecting cycles, and computing publishing order.
|
|
27
|
-
* This centralizes logic that was duplicated across multi_repo_publisher
|
|
27
|
+
* This centralizes logic that was duplicated across `multi_repo_publisher`, `publishing_plan`, and `gitops_analyze`.
|
|
28
28
|
*
|
|
29
|
-
* @param options.throw_on_prod_cycles whether to throw an error if production cycles are detected (default: true)
|
|
30
|
-
* @param options.log_cycles whether to log cycle information (default: true)
|
|
31
|
-
* @param options.log_order whether to log publishing order (default: true)
|
|
29
|
+
* @param options.throw_on_prod_cycles - whether to throw an error if production cycles are detected (default: true)
|
|
30
|
+
* @param options.log_cycles - whether to log cycle information (default: true)
|
|
31
|
+
* @param options.log_order - whether to log publishing order (default: true)
|
|
32
32
|
* @returns graph validation result with graph, publishing order, and detected cycles
|
|
33
|
-
* @throws {TaskError} if production cycles detected and throw_on_prod_cycles is true
|
|
33
|
+
* @throws {TaskError} if production cycles detected and `throw_on_prod_cycles` is true
|
|
34
34
|
*/
|
|
35
35
|
export declare const validate_dependency_graph: (repos: Array<LocalRepo>, options?: {
|
|
36
36
|
log?: Logger;
|
package/dist/graph_validation.js
CHANGED
|
@@ -17,13 +17,13 @@ import { styleText as st } from 'node:util';
|
|
|
17
17
|
import { DependencyGraph, DependencyGraphBuilder } from './dependency_graph.js';
|
|
18
18
|
/**
|
|
19
19
|
* Shared utility for building dependency graph, detecting cycles, and computing publishing order.
|
|
20
|
-
* This centralizes logic that was duplicated across multi_repo_publisher
|
|
20
|
+
* This centralizes logic that was duplicated across `multi_repo_publisher`, `publishing_plan`, and `gitops_analyze`.
|
|
21
21
|
*
|
|
22
|
-
* @param options.throw_on_prod_cycles whether to throw an error if production cycles are detected (default: true)
|
|
23
|
-
* @param options.log_cycles whether to log cycle information (default: true)
|
|
24
|
-
* @param options.log_order whether to log publishing order (default: true)
|
|
22
|
+
* @param options.throw_on_prod_cycles - whether to throw an error if production cycles are detected (default: true)
|
|
23
|
+
* @param options.log_cycles - whether to log cycle information (default: true)
|
|
24
|
+
* @param options.log_order - whether to log publishing order (default: true)
|
|
25
25
|
* @returns graph validation result with graph, publishing order, and detected cycles
|
|
26
|
-
* @throws {TaskError} if production cycles detected and throw_on_prod_cycles is true
|
|
26
|
+
* @throws {TaskError} if production cycles detected and `throw_on_prod_cycles` is true
|
|
27
27
|
*/
|
|
28
28
|
export const validate_dependency_graph = (repos, options = {}) => {
|
|
29
29
|
const { log, throw_on_prod_cycles = true, log_cycles = true, log_order = true } = options;
|
package/dist/local_repo.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import type { GitOperations, NpmOperations } from './operations.js';
|
|
|
5
5
|
import type { GitopsConfig, GitopsRepoConfig } from './gitops_config.js';
|
|
6
6
|
import type { ResolvedGitopsConfig } from './resolved_gitops_config.js';
|
|
7
7
|
/**
|
|
8
|
-
* Fully loaded local repo with Library and extracted dependency data.
|
|
9
|
-
* Does not extend LocalRepoPath - Library is source of truth for name/repo_url/etc.
|
|
8
|
+
* Fully loaded local repo with `Library` and extracted dependency data.
|
|
9
|
+
* Does not extend `LocalRepoPath` - `Library` is source of truth for name/repo_url/etc.
|
|
10
10
|
*/
|
|
11
11
|
export interface LocalRepo {
|
|
12
12
|
library: Library;
|
|
@@ -48,14 +48,14 @@ export interface LocalRepoMissing {
|
|
|
48
48
|
* 2. Switches to target branch if needed (requires clean workspace)
|
|
49
49
|
* 3. Pulls latest changes from remote (skipped for local-only repos)
|
|
50
50
|
* 4. Validates workspace is clean after pull
|
|
51
|
-
* 5. Auto-installs dependencies if package.json changed
|
|
52
|
-
* 6. Imports library_json from src/routes/library.ts
|
|
53
|
-
* 7. Creates Library and extracts dependency maps
|
|
51
|
+
* 5. Auto-installs dependencies if `package.json` changed
|
|
52
|
+
* 6. Imports `library_json` from `src/routes/library.ts`
|
|
53
|
+
* 7. Creates `Library` and extracts dependency maps
|
|
54
54
|
*
|
|
55
55
|
* This ensures repos are always in sync with their configured branch
|
|
56
56
|
* before being used by gitops commands.
|
|
57
57
|
*
|
|
58
|
-
* @throws {TaskError} if workspace dirty, branch switch fails, install fails, or library.ts missing
|
|
58
|
+
* @throws {TaskError} if workspace dirty, branch switch fails, install fails, or `library.ts` missing
|
|
59
59
|
*/
|
|
60
60
|
export declare const local_repo_load: ({ local_repo_path, log: _log, git_ops, npm_ops, }: {
|
|
61
61
|
local_repo_path: LocalRepoPath;
|
package/dist/local_repo.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Library } from '@fuzdev/fuz_ui/library.svelte.js';
|
|
|
3
3
|
import { existsSync } from 'node:fs';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
import { TaskError } from '@fuzdev/gro';
|
|
6
|
-
import {
|
|
6
|
+
import { spawn_out } from '@fuzdev/fuz_util/process.js';
|
|
7
7
|
import { map_concurrent_settled } from '@fuzdev/fuz_util/async.js';
|
|
8
8
|
import { default_git_operations, default_npm_operations } from './operations_defaults.js';
|
|
9
9
|
import { GITOPS_CONCURRENCY_DEFAULT } from './gitops_constants.js';
|
|
@@ -15,14 +15,14 @@ import { GITOPS_CONCURRENCY_DEFAULT } from './gitops_constants.js';
|
|
|
15
15
|
* 2. Switches to target branch if needed (requires clean workspace)
|
|
16
16
|
* 3. Pulls latest changes from remote (skipped for local-only repos)
|
|
17
17
|
* 4. Validates workspace is clean after pull
|
|
18
|
-
* 5. Auto-installs dependencies if package.json changed
|
|
19
|
-
* 6. Imports library_json from src/routes/library.ts
|
|
20
|
-
* 7. Creates Library and extracts dependency maps
|
|
18
|
+
* 5. Auto-installs dependencies if `package.json` changed
|
|
19
|
+
* 6. Imports `library_json` from `src/routes/library.ts`
|
|
20
|
+
* 7. Creates `Library` and extracts dependency maps
|
|
21
21
|
*
|
|
22
22
|
* This ensures repos are always in sync with their configured branch
|
|
23
23
|
* before being used by gitops commands.
|
|
24
24
|
*
|
|
25
|
-
* @throws {TaskError} if workspace dirty, branch switch fails, install fails, or library.ts missing
|
|
25
|
+
* @throws {TaskError} if workspace dirty, branch switch fails, install fails, or `library.ts` missing
|
|
26
26
|
*/
|
|
27
27
|
export const local_repo_load = async ({ local_repo_path, log: _log, git_ops = default_git_operations, npm_ops = default_npm_operations, }) => {
|
|
28
28
|
const { repo_config, repo_dir, repo_name, repo_git_ssh_url } = local_repo_path;
|
|
@@ -169,7 +169,7 @@ export const local_repos_load = async ({ local_repo_paths, log, git_ops = defaul
|
|
|
169
169
|
// Sequential loading (original behavior)
|
|
170
170
|
const loaded = [];
|
|
171
171
|
for (const local_repo_path of local_repo_paths) {
|
|
172
|
-
loaded.push(await local_repo_load({ local_repo_path, log, git_ops, npm_ops }));
|
|
172
|
+
loaded.push(await local_repo_load({ local_repo_path, log, git_ops, npm_ops }));
|
|
173
173
|
}
|
|
174
174
|
return loaded;
|
|
175
175
|
}
|
|
@@ -227,14 +227,17 @@ const download_repos = async ({ repos_dir, local_repos_missing, log, npm_ops = d
|
|
|
227
227
|
const resolved = [];
|
|
228
228
|
for (const { repo_config, repo_git_ssh_url } of local_repos_missing) {
|
|
229
229
|
log?.info(`cloning repo ${repo_git_ssh_url} to ${repos_dir}`);
|
|
230
|
-
await
|
|
230
|
+
const clone_result = await spawn_out('git', ['clone', repo_git_ssh_url], { cwd: repos_dir });
|
|
231
|
+
if (!clone_result.result.ok) {
|
|
232
|
+
throw new TaskError(`Failed to clone repo ${repo_git_ssh_url} to ${repos_dir}${clone_result.stderr ? ': ' + clone_result.stderr.trim() : ''}`);
|
|
233
|
+
}
|
|
231
234
|
const local_repo = local_repo_locate({ repo_config, repos_dir });
|
|
232
235
|
if (local_repo.type === 'local_repo_missing') {
|
|
233
|
-
throw new TaskError(`Failed to clone repo ${repo_git_ssh_url} to ${repos_dir}`);
|
|
236
|
+
throw new TaskError(`Failed to clone repo ${repo_git_ssh_url} to ${repos_dir}: directory not found after clone`);
|
|
234
237
|
}
|
|
235
238
|
// Always install dependencies after cloning
|
|
236
239
|
log?.info(`installing dependencies for newly cloned repo ${local_repo.repo_dir}`);
|
|
237
|
-
const install_result = await npm_ops.install({ cwd: local_repo.repo_dir });
|
|
240
|
+
const install_result = await npm_ops.install({ cwd: local_repo.repo_dir });
|
|
238
241
|
if (!install_result.ok) {
|
|
239
242
|
throw new TaskError(`Failed to install dependencies in ${local_repo.repo_dir}: ${install_result.message}${install_result.stderr ? `\n${install_result.stderr}` : ''}`);
|
|
240
243
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi_repo_publisher.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/multi_repo_publisher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAKpD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAsB,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAIlF,OAAO,KAAK,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,GACzB,OAAO,KAAK,CAAC,SAAS,CAAC,EACvB,SAAS,iBAAiB,KACxB,OAAO,CAAC,gBAAgB,CAqU1B,CAAC"}
|
|
@@ -254,7 +254,7 @@ export const publish_repos = async (repos, options) => {
|
|
|
254
254
|
const deploy_result = await ops.process.spawn({
|
|
255
255
|
cmd: 'gro',
|
|
256
256
|
args: ['deploy', '--no-build'],
|
|
257
|
-
|
|
257
|
+
cwd: repo.repo_dir,
|
|
258
258
|
});
|
|
259
259
|
if (deploy_result.ok) {
|
|
260
260
|
log?.info(st('green', ` ✅ Deployed ${repo.library.name}`));
|
|
@@ -291,11 +291,11 @@ export const publish_repos = async (repos, options) => {
|
|
|
291
291
|
};
|
|
292
292
|
};
|
|
293
293
|
/**
|
|
294
|
-
* Publishes a single repo using gro publish
|
|
294
|
+
* Publishes a single repo using `gro publish`.
|
|
295
295
|
*
|
|
296
296
|
* Dry run mode: Predicts version from changesets without side effects.
|
|
297
297
|
* Real mode: Runs `gro publish --no-build` (builds already validated in preflight),
|
|
298
|
-
* reads new version from package.json
|
|
298
|
+
* reads new version from `package.json`, and returns metadata.
|
|
299
299
|
*
|
|
300
300
|
* @throws {Error} if changeset prediction fails (dry run) or publish fails (real)
|
|
301
301
|
*/
|
|
@@ -329,7 +329,7 @@ const publish_single_repo = async (repo, options, ops = default_gitops_operation
|
|
|
329
329
|
const publish_result = await ops.process.spawn({
|
|
330
330
|
cmd: 'gro',
|
|
331
331
|
args: ['publish', '--no-build'],
|
|
332
|
-
|
|
332
|
+
cwd: repo.repo_dir,
|
|
333
333
|
});
|
|
334
334
|
if (!publish_result.ok) {
|
|
335
335
|
throw new Error(`Failed to publish ${repo.library.name}: ${publish_result.message}`);
|
|
@@ -14,9 +14,9 @@ import type { GitopsOperations } from './operations.js';
|
|
|
14
14
|
* npm's local cache may still have stale "404" metadata. This healing
|
|
15
15
|
* strategy clears the cache to force fresh metadata fetch.
|
|
16
16
|
*
|
|
17
|
-
* @param repo -
|
|
18
|
-
* @param ops -
|
|
19
|
-
* @param log -
|
|
17
|
+
* @param repo - the repository to install dependencies for
|
|
18
|
+
* @param ops - gitops operations (for dependency injection)
|
|
19
|
+
* @param log - optional logger
|
|
20
20
|
* @throws Error if install fails (with details about cache healing attempts)
|
|
21
21
|
*/
|
|
22
22
|
export declare const install_with_cache_healing: (repo: LocalRepo, ops: GitopsOperations, log?: Logger) => Promise<void>;
|
|
@@ -26,9 +26,9 @@ const is_etarget_error = (message, stderr) => {
|
|
|
26
26
|
* npm's local cache may still have stale "404" metadata. This healing
|
|
27
27
|
* strategy clears the cache to force fresh metadata fetch.
|
|
28
28
|
*
|
|
29
|
-
* @param repo -
|
|
30
|
-
* @param ops -
|
|
31
|
-
* @param log -
|
|
29
|
+
* @param repo - the repository to install dependencies for
|
|
30
|
+
* @param ops - gitops operations (for dependency injection)
|
|
31
|
+
* @param log - optional logger
|
|
32
32
|
* @throws Error if install fails (with details about cache healing attempts)
|
|
33
33
|
*/
|
|
34
34
|
export const install_with_cache_healing = async (repo, ops, log) => {
|
package/dist/npm_registry.d.ts
CHANGED
|
@@ -22,10 +22,10 @@ export declare const check_package_available: (pkg: string, version: string, opt
|
|
|
22
22
|
* Critical for multi-repo publishing: ensures published packages are available
|
|
23
23
|
* before updating dependent packages.
|
|
24
24
|
*
|
|
25
|
-
* @param options.max_attempts max poll attempts (default 30)
|
|
26
|
-
* @param options.initial_delay starting delay in ms (default 1000)
|
|
27
|
-
* @param options.max_delay max delay between attempts (default 60000)
|
|
28
|
-
* @param options.timeout total timeout in ms (default 300000 = 5min)
|
|
25
|
+
* @param options.max_attempts - max poll attempts (default 30)
|
|
26
|
+
* @param options.initial_delay - starting delay in ms (default 1000)
|
|
27
|
+
* @param options.max_delay - max delay between attempts (default 60000)
|
|
28
|
+
* @param options.timeout - total timeout in ms (default 300000 = 5min)
|
|
29
29
|
* @throws {Error} if timeout reached or max attempts exceeded
|
|
30
30
|
*/
|
|
31
31
|
export declare const wait_for_package: (pkg: string, version: string, options?: WaitOptions) => Promise<void>;
|
package/dist/npm_registry.js
CHANGED
|
@@ -27,10 +27,10 @@ export const check_package_available = async (pkg, version, options = {}) => {
|
|
|
27
27
|
* Critical for multi-repo publishing: ensures published packages are available
|
|
28
28
|
* before updating dependent packages.
|
|
29
29
|
*
|
|
30
|
-
* @param options.max_attempts max poll attempts (default 30)
|
|
31
|
-
* @param options.initial_delay starting delay in ms (default 1000)
|
|
32
|
-
* @param options.max_delay max delay between attempts (default 60000)
|
|
33
|
-
* @param options.timeout total timeout in ms (default 300000 = 5min)
|
|
30
|
+
* @param options.max_attempts - max poll attempts (default 30)
|
|
31
|
+
* @param options.initial_delay - starting delay in ms (default 1000)
|
|
32
|
+
* @param options.max_delay - max delay between attempts (default 60000)
|
|
33
|
+
* @param options.timeout - total timeout in ms (default 300000 = 5min)
|
|
34
34
|
* @throws {Error} if timeout reached or max attempts exceeded
|
|
35
35
|
*/
|
|
36
36
|
export const wait_for_package = async (pkg, version, options = {}) => {
|
|
@@ -46,7 +46,6 @@ export const wait_for_package = async (pkg, version, options = {}) => {
|
|
|
46
46
|
throw new Error(`Timeout waiting for ${pkg}@${version} after ${timeout}ms`);
|
|
47
47
|
}
|
|
48
48
|
// Check if package is available
|
|
49
|
-
// eslint-disable-next-line no-await-in-loop
|
|
50
49
|
if (await check_package_available(pkg, version, { log })) {
|
|
51
50
|
log?.info(st('green', ` ✓ ${pkg}@${version} is now available on NPM`));
|
|
52
51
|
return;
|
|
@@ -58,7 +57,7 @@ export const wait_for_package = async (pkg, version, options = {}) => {
|
|
|
58
57
|
// Wait with exponential backoff + jitter
|
|
59
58
|
const jitter = Math.random() * delay * 0.1; // 10% jitter
|
|
60
59
|
const actual_delay = Math.min(delay + jitter, max_delay);
|
|
61
|
-
await wait(actual_delay);
|
|
60
|
+
await wait(actual_delay);
|
|
62
61
|
// Exponential backoff
|
|
63
62
|
delay = Math.min(delay * 1.5, max_delay);
|
|
64
63
|
}
|
package/dist/operations.d.ts
CHANGED
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
* ```
|
|
30
30
|
*
|
|
31
31
|
* See `operations_defaults.ts` for real implementations.
|
|
32
|
-
* See test files (
|
|
32
|
+
* See test files (`*.test.ts`) for mock implementations.
|
|
33
33
|
*
|
|
34
34
|
* @module
|
|
35
35
|
*/
|
|
36
36
|
import type { Result } from '@fuzdev/fuz_util/result.js';
|
|
37
|
+
import type { FsError } from '@fuzdev/fuz_util/fs.js';
|
|
37
38
|
import type { Logger } from '@fuzdev/fuz_util/log.js';
|
|
38
|
-
import type { SpawnOptions } from 'node:child_process';
|
|
39
39
|
import type { LocalRepo } from './local_repo.js';
|
|
40
40
|
import type { ChangesetInfo } from './changeset_reader.js';
|
|
41
41
|
import type { BumpType } from './semver.js';
|
|
@@ -71,7 +71,7 @@ export interface ChangesetOperations {
|
|
|
71
71
|
/**
|
|
72
72
|
* Predicts the next version based on changesets.
|
|
73
73
|
* Returns null if no changesets found (expected, not an error).
|
|
74
|
-
* Returns error Result if changesets exist but can't be read/parsed.
|
|
74
|
+
* Returns error `Result` if changesets exist but can't be read/parsed.
|
|
75
75
|
*/
|
|
76
76
|
predict_next_version: (options: {
|
|
77
77
|
repo: LocalRepo;
|
|
@@ -198,9 +198,13 @@ export interface GitOperations {
|
|
|
198
198
|
message: string;
|
|
199
199
|
}>>;
|
|
200
200
|
/**
|
|
201
|
-
*
|
|
201
|
+
* Lists uncommitted files in the working tree (`git diff --name-only HEAD`).
|
|
202
|
+
*
|
|
203
|
+
* Renamed from `get_changed_files` in 2026-04 because "changed files" collided
|
|
204
|
+
* with mageguild's `get_changed_files` which diffs two refs. This one reports
|
|
205
|
+
* uncommitted working-tree changes relative to HEAD.
|
|
202
206
|
*/
|
|
203
|
-
|
|
207
|
+
list_uncommitted_files: (options?: {
|
|
204
208
|
cwd?: string;
|
|
205
209
|
}) => Promise<Result<{
|
|
206
210
|
value: Array<string>;
|
|
@@ -268,7 +272,7 @@ export interface ProcessOperations {
|
|
|
268
272
|
spawn: (options: {
|
|
269
273
|
cmd: string;
|
|
270
274
|
args: Array<string>;
|
|
271
|
-
|
|
275
|
+
cwd?: string;
|
|
272
276
|
}) => Promise<Result<{
|
|
273
277
|
stdout?: string;
|
|
274
278
|
stderr?: string;
|
|
@@ -282,7 +286,7 @@ export interface ProcessOperations {
|
|
|
282
286
|
*/
|
|
283
287
|
export interface BuildOperations {
|
|
284
288
|
/**
|
|
285
|
-
* Builds a package using gro build
|
|
289
|
+
* Builds a package using `gro build`.
|
|
286
290
|
*/
|
|
287
291
|
build_package: (options: {
|
|
288
292
|
repo: LocalRepo;
|
|
@@ -372,6 +376,10 @@ export interface PreflightOperations {
|
|
|
372
376
|
}
|
|
373
377
|
/**
|
|
374
378
|
* File system operations for reading and writing files.
|
|
379
|
+
*
|
|
380
|
+
* Errors are typed via `FsError` (`not_found | permission_denied |
|
|
381
|
+
* already_exists | io_error`) so callers can branch on `kind` instead of
|
|
382
|
+
* regex-matching `message`. See `@fuzdev/fuz_util/fs.js`.
|
|
375
383
|
*/
|
|
376
384
|
export interface FsOperations {
|
|
377
385
|
/**
|
|
@@ -382,33 +390,27 @@ export interface FsOperations {
|
|
|
382
390
|
encoding: BufferEncoding;
|
|
383
391
|
}) => Promise<Result<{
|
|
384
392
|
value: string;
|
|
385
|
-
},
|
|
386
|
-
message: string;
|
|
387
|
-
}>>;
|
|
393
|
+
}, FsError>>;
|
|
388
394
|
/**
|
|
389
395
|
* Writes a file to the file system.
|
|
390
396
|
*/
|
|
391
397
|
writeFile: (options: {
|
|
392
398
|
path: string;
|
|
393
399
|
content: string;
|
|
394
|
-
}) => Promise<Result<object,
|
|
395
|
-
message: string;
|
|
396
|
-
}>>;
|
|
400
|
+
}) => Promise<Result<object, FsError>>;
|
|
397
401
|
/**
|
|
398
402
|
* Creates a directory, optionally with recursive creation.
|
|
399
403
|
*/
|
|
400
404
|
mkdir: (options: {
|
|
401
405
|
path: string;
|
|
402
406
|
recursive?: boolean;
|
|
403
|
-
}) => Promise<Result<object,
|
|
404
|
-
message: string;
|
|
405
|
-
}>>;
|
|
407
|
+
}) => Promise<Result<object, FsError>>;
|
|
406
408
|
/**
|
|
407
409
|
* Checks if a path exists on the file system.
|
|
408
410
|
*/
|
|
409
411
|
exists: (options: {
|
|
410
412
|
path: string;
|
|
411
|
-
}) => boolean
|
|
413
|
+
}) => Promise<boolean>;
|
|
412
414
|
}
|
|
413
415
|
/**
|
|
414
416
|
* Combined operations interface grouping all gitops functionality.
|
package/dist/operations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAC,gBAAgB,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;OAGG;IACH,cAAc,EAA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AE,CAAC,OAAO,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,cAAc,CAAC;KACzB,KAAK,OAAO,CAAC,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IAEhD;;OAEG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAE1F;;OAEG;IACH,KAAK,EAAE,CAAC,OAAO,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAC,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAE1F;;OAEG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACtD;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,GAAG,EAAE,aAAa,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,GAAG,EAAE,aAAa,CAAC;IACnB,SAAS,EAAE,mBAAmB,CAAC;IAC/B,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,eAAe,CAAC;CACvB"}
|
package/dist/operations.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations_defaults.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/operations_defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA4BH,OAAO,KAAK,EACX,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,MAAM,iBAAiB,CAAC;AA0BzB,eAAO,MAAM,4BAA4B,EAAE,mBAuB1C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,
|
|
1
|
+
{"version":3,"file":"operations_defaults.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/operations_defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA4BH,OAAO,KAAK,EACX,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,MAAM,iBAAiB,CAAC;AA0BzB,eAAO,MAAM,4BAA4B,EAAE,mBAuB1C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,aA0GpC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,iBAsBxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,aAqEpC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,mBAI1C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAuCnC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,eAmBtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,gBAQvC,CAAC"}
|