edsger 0.42.0 → 0.43.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.
Files changed (50) hide show
  1. package/dist/api/web-deploy.d.ts +8 -1
  2. package/dist/api/web-deploy.js +2 -1
  3. package/dist/commands/workflow/phase-orchestrator.js +3 -1
  4. package/dist/phases/app-store-generation/__tests__/screenshot-composer.test.js +1 -0
  5. package/dist/phases/app-store-generation/index.js +3 -1
  6. package/dist/phases/app-store-generation/screenshot-composer.js +34 -10
  7. package/dist/phases/branch-planning/index.js +3 -1
  8. package/dist/phases/bug-fixing/analyzer.js +3 -1
  9. package/dist/phases/code-implementation/index.js +3 -1
  10. package/dist/phases/code-refine/index.js +3 -1
  11. package/dist/phases/code-review/__tests__/diff-utils.test.js +11 -11
  12. package/dist/phases/code-review/index.js +3 -1
  13. package/dist/phases/code-testing/analyzer.js +3 -1
  14. package/dist/phases/feature-analysis/index.js +3 -1
  15. package/dist/phases/functional-testing/analyzer.js +3 -1
  16. package/dist/phases/growth-analysis/index.js +3 -1
  17. package/dist/phases/intelligence-analysis/__tests__/orchestration.test.js +12 -12
  18. package/dist/phases/intelligence-analysis/agent.js +2 -0
  19. package/dist/phases/intelligence-analysis/index.js +1 -0
  20. package/dist/phases/intelligence-analysis/prompts.js +11 -1
  21. package/dist/phases/output-contracts.js +1 -0
  22. package/dist/phases/pr-execution/__tests__/file-assigner.test.js +22 -13
  23. package/dist/phases/pr-execution/context.js +4 -2
  24. package/dist/phases/pr-execution/file-assigner.js +1 -0
  25. package/dist/phases/pr-resolve/__tests__/checklist-learner.test.js +11 -11
  26. package/dist/phases/pr-resolve/__tests__/prompts.test.js +12 -12
  27. package/dist/phases/pr-resolve/__tests__/resolve-mapping.test.js +6 -6
  28. package/dist/phases/pr-resolve/__tests__/types.test.js +11 -11
  29. package/dist/phases/pr-resolve/__tests__/workspace.test.js +13 -13
  30. package/dist/phases/pr-resolve/checklist-learner.js +34 -9
  31. package/dist/phases/pr-resolve/index.js +45 -12
  32. package/dist/phases/pr-resolve/prompts.js +2 -1
  33. package/dist/phases/pr-resolve/workspace.d.ts +18 -2
  34. package/dist/phases/pr-resolve/workspace.js +43 -14
  35. package/dist/phases/pr-review/__tests__/prompts.test.js +9 -9
  36. package/dist/phases/pr-review/__tests__/review-comments.test.js +6 -6
  37. package/dist/phases/pr-review/index.js +1 -0
  38. package/dist/phases/pr-shared/__tests__/agent-utils.test.js +17 -17
  39. package/dist/phases/pr-shared/__tests__/context.test.js +12 -12
  40. package/dist/phases/pr-splitting/import-dep-validator.js +14 -6
  41. package/dist/phases/pr-splitting/index.js +3 -1
  42. package/dist/phases/technical-design/index.js +3 -1
  43. package/dist/phases/test-cases-analysis/index.js +3 -1
  44. package/dist/phases/user-stories-analysis/index.js +3 -1
  45. package/dist/services/phase-hooks/__tests__/hook-executor.test.js +7 -4
  46. package/dist/services/phase-hooks/__tests__/hook-runner.test.js +22 -21
  47. package/dist/services/phase-hooks/hook-executor.js +1 -0
  48. package/dist/services/phase-hooks/plugin-loader.js +3 -0
  49. package/dist/services/video/screenshot-generator.js +8 -2
  50. package/package.json +1 -1
@@ -96,10 +96,12 @@ async function findPluginRootForName(pluginName, cacheDir) {
96
96
  try {
97
97
  const subEntries = await fs.readdir(entryDir, { withFileTypes: true });
98
98
  for (const sub of subEntries) {
99
+ // eslint-disable-next-line max-depth
99
100
  if (!sub.isDirectory() || sub.name !== pluginName) {
100
101
  continue;
101
102
  }
102
103
  const found = await findPluginRoot(path.join(entryDir, sub.name));
104
+ // eslint-disable-next-line max-depth
103
105
  if (found) {
104
106
  return found;
105
107
  }
@@ -116,6 +118,7 @@ async function findPluginRootForName(pluginName, cacheDir) {
116
118
  try {
117
119
  const manifestPath = path.join(root, '.claude-plugin', 'plugin.json');
118
120
  const rawJson = JSON.parse(await fs.readFile(manifestPath, 'utf-8'));
121
+ // eslint-disable-next-line max-depth
119
122
  if (typeof rawJson === 'object' &&
120
123
  rawJson !== null &&
121
124
  rawJson.name === pluginName) {
@@ -103,7 +103,10 @@ async function applyDeviceFrame(screenshotPath, scene, browser, verbose) {
103
103
  */
104
104
  export async function captureScreenshots(scenes, options, verbose) {
105
105
  await ensurePlaywright(isPlaywrightAvailable);
106
- const chromium = (await loadChromium());
106
+ const chromium = await loadChromium();
107
+ if (!chromium) {
108
+ throw new Error('Failed to load chromium');
109
+ }
107
110
  const { baseUrl, outputDir, viewportWidth = 1280, viewportHeight = 720, fullPage = false, } = options;
108
111
  // Ensure output directory exists
109
112
  await mkdir(outputDir, { recursive: true });
@@ -194,7 +197,10 @@ export async function captureScreenshots(scenes, options, verbose) {
194
197
  */
195
198
  export async function captureStaticScreenshots(scenes, outputDir, htmlTemplates, verbose) {
196
199
  await ensurePlaywright(isPlaywrightAvailable);
197
- const chromium = (await loadChromium());
200
+ const chromium = await loadChromium();
201
+ if (!chromium) {
202
+ throw new Error('Failed to load chromium');
203
+ }
198
204
  await mkdir(outputDir, { recursive: true });
199
205
  if (verbose) {
200
206
  logInfo(`Rendering ${scenes.length} static HTML scenes`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edsger",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "edsger": "dist/index.js"