patchwork-os 1.2.0-beta.2.canary.772 → 1.2.0-beta.2.canary.774

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 (36) hide show
  1. package/dist/approvalHttp.d.ts +7 -0
  2. package/dist/approvalHttp.js +6 -0
  3. package/dist/approvalHttp.js.map +1 -1
  4. package/dist/approvalPersistence.d.ts +32 -1
  5. package/dist/approvalPersistence.js +56 -1
  6. package/dist/approvalPersistence.js.map +1 -1
  7. package/dist/approvalQueue.d.ts +16 -20
  8. package/dist/approvalQueue.js +4 -1
  9. package/dist/approvalQueue.js.map +1 -1
  10. package/dist/claudeOrchestrator.js +7 -0
  11. package/dist/claudeOrchestrator.js.map +1 -1
  12. package/dist/index.js +22 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/privacy/shadowLog.d.ts +52 -0
  15. package/dist/privacy/shadowLog.js +32 -0
  16. package/dist/privacy/shadowLog.js.map +1 -1
  17. package/dist/recipeOrchestration.d.ts +7 -0
  18. package/dist/recipeOrchestration.js +29 -3
  19. package/dist/recipeOrchestration.js.map +1 -1
  20. package/dist/recipes/approvalRequest.d.ts +33 -2
  21. package/dist/recipes/approvalRequest.js +4 -1
  22. package/dist/recipes/approvalRequest.js.map +1 -1
  23. package/dist/recipes/chainedRunner.js +13 -6
  24. package/dist/recipes/chainedRunner.js.map +1 -1
  25. package/dist/recipes/haltCategory.d.ts +32 -0
  26. package/dist/recipes/haltCategory.js +46 -0
  27. package/dist/recipes/haltCategory.js.map +1 -1
  28. package/dist/recipes/yamlRunner.js +51 -11
  29. package/dist/recipes/yamlRunner.js.map +1 -1
  30. package/dist/workers/workerRecipeHealth.d.ts +62 -0
  31. package/dist/workers/workerRecipeHealth.js +118 -0
  32. package/dist/workers/workerRecipeHealth.js.map +1 -0
  33. package/dist/workers/workersCli.d.ts +49 -0
  34. package/dist/workers/workersCli.js +103 -10
  35. package/dist/workers/workersCli.js.map +1 -1
  36. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4514,7 +4514,7 @@ if (process.argv[2] === "workers") {
4514
4514
  const dirIdx = args.indexOf("--workers-dir");
4515
4515
  const workersDir = dirIdx !== -1 ? args[dirIdx + 1] : undefined;
4516
4516
  if (sub === "list" || sub === "validate") {
4517
- const { scanWorkers, validateWorkers, formatWorkersList, formatWorkersValidate, defaultWorkersDir, defaultRecipesDir, } = await import("./workers/workersCli.js");
4517
+ const { scanWorkers, validateWorkersWithRecipeHealth, formatWorkersList, formatWorkersValidate, defaultWorkersDir, defaultRecipesDir, } = await import("./workers/workersCli.js");
4518
4518
  const dir = workersDir ?? defaultWorkersDir();
4519
4519
  const json = args.includes("--json");
4520
4520
  if (sub === "list") {
@@ -4539,10 +4539,30 @@ if (process.argv[2] === "workers") {
4539
4539
  const tIdx = args.indexOf("--templates-dir");
4540
4540
  const templatesDir = tIdx !== -1 ? args[tIdx + 1] : undefined;
4541
4541
  const rIdx = args.indexOf("--recipes-dir");
4542
- const result = validateWorkers({
4542
+ // Composes the structural check with `recipe doctor`'s static half,
4543
+ // once per bound recipe. A manifest that binds perfectly to a recipe
4544
+ // that cannot run reported "no problems found" before this.
4545
+ // A worker bound to a DISABLED recipe never runs at all. The list
4546
+ // is read here rather than inside the validator so that stays a pure
4547
+ // function of its inputs.
4548
+ let disabledRecipes = [];
4549
+ try {
4550
+ const { loadConfig } = await import("./patchworkConfig.js");
4551
+ // The SAME reader the scheduler consults, not a second read of the
4552
+ // same field. Two notions of "disabled" drift, and the drift here
4553
+ // reports a worker as live that no trigger will ever fire.
4554
+ const { getConfigDisabledNames } = await import("./recipes/disabledMarkers.js");
4555
+ disabledRecipes = [...getConfigDisabledNames(loadConfig())];
4556
+ }
4557
+ catch {
4558
+ // No config / unreadable → nothing is known to be disabled. Fail
4559
+ // soft: this can only drop a warning, never invent one.
4560
+ }
4561
+ const result = await validateWorkersWithRecipeHealth({
4543
4562
  workersDir: dir,
4544
4563
  recipesDir: rIdx !== -1 ? args[rIdx + 1] : defaultRecipesDir(),
4545
4564
  ...(templatesDir ? { templatesDir } : {}),
4565
+ disabledRecipes,
4546
4566
  });
4547
4567
  process.stdout.write(json
4548
4568
  ? `${JSON.stringify(result, null, 2)}\n`