@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.
- package/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/dist/engine/readRetry.d.ts +1 -0
- package/dist/engine/readRetry.d.ts.map +1 -1
- package/dist/engine/readRetry.js +2 -1
- package/dist/engine/readRetry.js.map +1 -1
- package/dist/host/cliOptions.d.ts +1 -1
- package/dist/host/cliOptions.d.ts.map +1 -1
- package/dist/host/cliOptions.js +1 -1
- package/dist/host/cliOptions.js.map +1 -1
- package/dist/host/config.d.ts +2 -63
- package/dist/host/config.d.ts.map +1 -1
- package/dist/host/config.js +4 -34
- package/dist/host/config.js.map +1 -1
- package/dist/host/configFile.d.ts +66 -0
- package/dist/host/configFile.d.ts.map +1 -0
- package/dist/host/configFile.js +37 -0
- package/dist/host/configFile.js.map +1 -0
- package/dist/host/configSettings.d.ts +3 -1
- package/dist/host/configSettings.d.ts.map +1 -1
- package/dist/host/configSettings.js +2 -0
- package/dist/host/configSettings.js.map +1 -1
- package/dist/host/daemon.d.ts +1 -0
- package/dist/host/daemon.d.ts.map +1 -1
- package/dist/host/daemonClient.d.ts +1 -0
- package/dist/host/daemonClient.d.ts.map +1 -1
- package/dist/host/daemonContract.d.ts +3 -0
- package/dist/host/daemonContract.d.ts.map +1 -1
- package/dist/host/liveConfig.d.ts.map +1 -1
- package/dist/host/liveConfig.js +2 -1
- package/dist/host/liveConfig.js.map +1 -1
- package/dist/host/runtime.d.ts.map +1 -1
- package/dist/host/runtime.js +1 -0
- package/dist/host/runtime.js.map +1 -1
- package/dist/packageInfo.d.ts +1 -1
- package/dist/packageInfo.js +1 -1
- package/dist/policy.d.ts +1 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js.map +1 -1
- package/dist/scheduling/areas.d.ts.map +1 -1
- package/dist/scheduling/areas.js +1 -0
- package/dist/scheduling/areas.js.map +1 -1
- package/package.json +4 -4
- package/src/engine/readRetry.ts +3 -1
- package/src/host/cliOptions.ts +1 -1
- package/src/host/config.ts +5 -38
- package/src/host/configFile.ts +40 -0
- package/src/host/configSettings.ts +2 -0
- package/src/host/liveConfig.ts +2 -1
- package/src/host/runtime.ts +1 -0
- package/src/packageInfo.ts +1 -1
- package/src/policy.ts +1 -0
- 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;
|
package/src/scheduling/areas.ts
CHANGED
|
@@ -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
|
);
|