@shivaedev/work-fleet 0.3.0 → 0.4.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 (53) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -2
  3. package/dist/engine/readRetry.d.ts +1 -0
  4. package/dist/engine/readRetry.d.ts.map +1 -1
  5. package/dist/engine/readRetry.js +2 -1
  6. package/dist/engine/readRetry.js.map +1 -1
  7. package/dist/host/cliOptions.d.ts +1 -1
  8. package/dist/host/cliOptions.d.ts.map +1 -1
  9. package/dist/host/cliOptions.js +1 -1
  10. package/dist/host/cliOptions.js.map +1 -1
  11. package/dist/host/config.d.ts +2 -63
  12. package/dist/host/config.d.ts.map +1 -1
  13. package/dist/host/config.js +4 -34
  14. package/dist/host/config.js.map +1 -1
  15. package/dist/host/configFile.d.ts +66 -0
  16. package/dist/host/configFile.d.ts.map +1 -0
  17. package/dist/host/configFile.js +37 -0
  18. package/dist/host/configFile.js.map +1 -0
  19. package/dist/host/configSettings.d.ts +3 -1
  20. package/dist/host/configSettings.d.ts.map +1 -1
  21. package/dist/host/configSettings.js +2 -0
  22. package/dist/host/configSettings.js.map +1 -1
  23. package/dist/host/daemon.d.ts +1 -0
  24. package/dist/host/daemon.d.ts.map +1 -1
  25. package/dist/host/daemonClient.d.ts +1 -0
  26. package/dist/host/daemonClient.d.ts.map +1 -1
  27. package/dist/host/daemonContract.d.ts +3 -0
  28. package/dist/host/daemonContract.d.ts.map +1 -1
  29. package/dist/host/liveConfig.d.ts.map +1 -1
  30. package/dist/host/liveConfig.js +2 -1
  31. package/dist/host/liveConfig.js.map +1 -1
  32. package/dist/host/runtime.d.ts.map +1 -1
  33. package/dist/host/runtime.js +1 -0
  34. package/dist/host/runtime.js.map +1 -1
  35. package/dist/packageInfo.d.ts +1 -1
  36. package/dist/packageInfo.js +1 -1
  37. package/dist/policy.d.ts +1 -0
  38. package/dist/policy.d.ts.map +1 -1
  39. package/dist/policy.js.map +1 -1
  40. package/dist/scheduling/areas.d.ts.map +1 -1
  41. package/dist/scheduling/areas.js +1 -0
  42. package/dist/scheduling/areas.js.map +1 -1
  43. package/package.json +4 -4
  44. package/src/engine/readRetry.ts +3 -1
  45. package/src/host/cliOptions.ts +1 -1
  46. package/src/host/config.ts +5 -38
  47. package/src/host/configFile.ts +40 -0
  48. package/src/host/configSettings.ts +2 -0
  49. package/src/host/liveConfig.ts +2 -1
  50. package/src/host/runtime.ts +1 -0
  51. package/src/packageInfo.ts +1 -1
  52. package/src/policy.ts +1 -0
  53. package/src/scheduling/areas.ts +1 -0
package/src/policy.ts CHANGED
@@ -120,6 +120,7 @@ export interface FleetConfiguration {
120
120
  readonly operationId: () => string;
121
121
  readonly quota: { readonly available?: number; readonly observedAt: number; readonly expiresAt: number };
122
122
  readonly readGuidance?: (role: "worker" | "reviewer") => Effect.Effect<string | undefined, FleetError>;
123
+ readonly readRetryMs?: number;
123
124
  readonly refreshQuota?: () => Effect.Effect<FleetConfiguration["quota"], FleetError>;
124
125
  readonly reviewerGuidance?: string;
125
126
  readonly sharedEnvironment?: string;
@@ -27,6 +27,7 @@ function holdsAreas(record: FleetRecord, now: number, mergeWaitMs: number): bool
27
27
  return (
28
28
  !["completed", "released"].includes(record.stage)
29
29
  && record.attempts.length > 0
30
+ && (record.stage !== "prepared" || executing(record))
30
31
  && record.mergeAreasReleased !== true
31
32
  && !mergeWaitExpired(record, now, mergeWaitMs)
32
33
  );