@fuzdev/fuz_gitops 0.66.0 → 0.67.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.
@@ -1 +1 @@
1
- {"version":3,"file":"gitops_run.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gitops_run.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,IAAI,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAStB,eAAO,MAAM,IAAI;;;;;;;;kBAaf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAaxC,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAoL3B,CAAC"}
1
+ {"version":3,"file":"gitops_run.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gitops_run.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,IAAI,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAStB,eAAO,MAAM,IAAI;;;;;;;;kBAaf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAaxC,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAgL3B,CAAC"}
@@ -34,7 +34,7 @@ export const task = {
34
34
  log.info(`Running ${st('cyan', command)} across ${repos.length} repos (concurrency: ${concurrency})`);
35
35
  const start_time = performance.now();
36
36
  // Run command in parallel across all repos
37
- const results = await map_concurrent_settled(repos, async (repo) => {
37
+ const results = await map_concurrent_settled(repos, concurrency, async (repo) => {
38
38
  const repo_start = performance.now();
39
39
  const repo_name = repo.name;
40
40
  const repo_dir = repo.path;
@@ -70,7 +70,7 @@ export const task = {
70
70
  error: String(error),
71
71
  };
72
72
  }
73
- }, concurrency);
73
+ });
74
74
  const total_duration_ms = performance.now() - start_time;
75
75
  // Process results
76
76
  const successes = [];
@@ -174,9 +174,9 @@ export const local_repos_load = async ({ local_repo_paths, log, git_ops = defaul
174
174
  return loaded;
175
175
  }
176
176
  // Parallel loading with concurrency limit
177
- const results = await map_concurrent_settled(local_repo_paths, async (local_repo_path) => {
177
+ const results = await map_concurrent_settled(local_repo_paths, concurrency, async (local_repo_path) => {
178
178
  return local_repo_load({ local_repo_path, log, git_ops, npm_ops });
179
- }, concurrency);
179
+ });
180
180
  // Check for failures and collect successes
181
181
  const loaded = [];
182
182
  const errors = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_gitops",
3
- "version": "0.66.0",
3
+ "version": "0.67.0",
4
4
  "description": "a tool for managing many repos",
5
5
  "glyph": "🪄",
6
6
  "logo": "logo.svg",
@@ -29,10 +29,10 @@
29
29
  "node": ">=22.15"
30
30
  },
31
31
  "peerDependencies": {
32
- "@fuzdev/fuz_css": ">=0.44.1",
33
- "@fuzdev/fuz_ui": ">=0.179.0",
34
- "@fuzdev/fuz_util": ">=0.45.3",
35
- "@fuzdev/gro": "^0.194.0",
32
+ "@fuzdev/fuz_css": ">=0.53.0",
33
+ "@fuzdev/fuz_ui": ">=0.184.0",
34
+ "@fuzdev/fuz_util": ">=0.52.0",
35
+ "@fuzdev/gro": ">=0.195.0",
36
36
  "@sveltejs/kit": "^2",
37
37
  "svelte": "^5",
38
38
  "zod": "^4.1.13"
@@ -40,10 +40,10 @@
40
40
  "devDependencies": {
41
41
  "@changesets/changelog-git": "^0.2.1",
42
42
  "@fuzdev/fuz_code": "^0.45.1",
43
- "@fuzdev/fuz_css": "^0.50.0",
44
- "@fuzdev/fuz_ui": "^0.183.2",
45
- "@fuzdev/fuz_util": "^0.50.1",
46
- "@fuzdev/gro": "^0.194.0",
43
+ "@fuzdev/fuz_css": "^0.53.0",
44
+ "@fuzdev/fuz_ui": "^0.185.0",
45
+ "@fuzdev/fuz_util": "^0.52.0",
46
+ "@fuzdev/gro": "^0.195.0",
47
47
  "@jridgewell/trace-mapping": "^0.3.31",
48
48
  "@ryanatkn/eslint-config": "^0.9.0",
49
49
  "@sveltejs/adapter-static": "^3.0.10",
@@ -56,50 +56,46 @@ export const task: Task<Args> = {
56
56
  const start_time = performance.now();
57
57
 
58
58
  // Run command in parallel across all repos
59
- const results = await map_concurrent_settled(
60
- repos,
61
- async (repo) => {
62
- const repo_start = performance.now();
63
- const repo_name = repo.name;
64
- const repo_dir = repo.path;
65
-
66
- try {
67
- // Parse command into cmd + args for spawn
68
- // For now, we use shell mode to support pipes/redirects/etc
69
- const spawned = await spawn_out('sh', ['-c', command], {
70
- cwd: repo_dir,
71
- });
72
-
73
- const duration_ms = performance.now() - repo_start;
74
- const success = spawned.result.ok;
75
-
76
- const result: RunResult = {
77
- repo_name,
78
- repo_dir,
79
- status: success ? 'success' : 'failure',
80
- exit_code: spawned.result.code ?? 0,
81
- stdout: spawned.stdout || '',
82
- stderr: spawned.stderr || '',
83
- duration_ms,
84
- };
85
-
86
- return result;
87
- } catch (error) {
88
- const duration_ms = performance.now() - repo_start;
89
- return {
90
- repo_name,
91
- repo_dir,
92
- status: 'failure' as const,
93
- exit_code: -1,
94
- stdout: '',
95
- stderr: '',
96
- duration_ms,
97
- error: String(error),
98
- };
99
- }
100
- },
101
- concurrency,
102
- );
59
+ const results = await map_concurrent_settled(repos, concurrency, async (repo) => {
60
+ const repo_start = performance.now();
61
+ const repo_name = repo.name;
62
+ const repo_dir = repo.path;
63
+
64
+ try {
65
+ // Parse command into cmd + args for spawn
66
+ // For now, we use shell mode to support pipes/redirects/etc
67
+ const spawned = await spawn_out('sh', ['-c', command], {
68
+ cwd: repo_dir,
69
+ });
70
+
71
+ const duration_ms = performance.now() - repo_start;
72
+ const success = spawned.result.ok;
73
+
74
+ const result: RunResult = {
75
+ repo_name,
76
+ repo_dir,
77
+ status: success ? 'success' : 'failure',
78
+ exit_code: spawned.result.code ?? 0,
79
+ stdout: spawned.stdout || '',
80
+ stderr: spawned.stderr || '',
81
+ duration_ms,
82
+ };
83
+
84
+ return result;
85
+ } catch (error) {
86
+ const duration_ms = performance.now() - repo_start;
87
+ return {
88
+ repo_name,
89
+ repo_dir,
90
+ status: 'failure' as const,
91
+ exit_code: -1,
92
+ stdout: '',
93
+ stderr: '',
94
+ duration_ms,
95
+ error: String(error),
96
+ };
97
+ }
98
+ });
103
99
 
104
100
  const total_duration_ms = performance.now() - start_time;
105
101
 
@@ -304,10 +304,10 @@ export const local_repos_load = async ({
304
304
  // Parallel loading with concurrency limit
305
305
  const results = await map_concurrent_settled(
306
306
  local_repo_paths,
307
+ concurrency,
307
308
  async (local_repo_path) => {
308
309
  return local_repo_load({local_repo_path, log, git_ops, npm_ops});
309
310
  },
310
- concurrency,
311
311
  );
312
312
 
313
313
  // Check for failures and collect successes