@systemfsoftware/effect-daemon-spec 5.1.0 → 6.0.3

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/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-D3KUYPsf.mjs";
2
2
  import { Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
3
3
  import { Array, Cause, Clock, Context, Deferred, Duration, Effect, Exit, Fiber, HashMap, Layer, Match, Number as Number$1, Option, Predicate, PubSub, Queue, Ref, Result, Schema, Scope } from "effect";
4
4
  import * as Result$1 from "effect/Result";
5
5
  import { absurd, dual } from "effect/Function";
6
6
  import * as Stream from "effect/Stream";
7
7
  import { Prototype } from "effect/Pipeable";
8
- //#region src/kernel/SupervisionLimits.schema.ts
8
+ // src/kernel/SupervisionLimits.schema.ts
9
9
  /**
10
10
  * Generation-only bound: the production domains below span the whole
11
11
  * non-negative safe-integer range, but unbounded generation would draw
12
12
  * astronomically large counters and times in property tests
13
- * (compound-packs/schema-laws/arbitrary-filter-floors.md). An
13
+ * (compound-packs/schema-modelling/generation-constraints-the-derivation-reads.md). An
14
14
  * annotation-only check never rejects a value; it only steers the derived
15
15
  * fast-check integer generator into a small range.
16
16
  */
@@ -54,8 +54,7 @@ const Ordinal = NonNegativeSafeInt.pipe(Schema.check(generatedBetween(0, 1024)))
54
54
  const ChildId = Schema.String;
55
55
  const RequestId = Schema.String;
56
56
  Schema.decodeResult(Ceiling);
57
- //#endregion
58
- //#region src/kernel/TerminationReport.schema.ts
57
+ // src/kernel/TerminationReport.schema.ts
59
58
  /**
60
59
  * What a medium can say about why a child died (R16): a fiber supplies a cause, a process
61
60
  * supplies an exit status and signal, and a remote runner's death is inferred. No event
@@ -103,8 +102,7 @@ const abnormalReasonOfCause = (cause) => ({
103
102
  }
104
103
  });
105
104
  const terminationReasonOfCause = (cause) => Option.getOrElse(Cause.findErrorOption(cause), () => abnormalReasonOfCause(cause));
106
- //#endregion
107
- //#region src/Supervisor/ChildExitDecision.schema.ts
105
+ // src/Supervisor/ChildExitDecision.schema.ts
108
106
  const ChildExitTypeId = Symbol.for("@systemfsoftware/effect-daemon-spec/ChildExitDecision");
109
107
  /** The child ended on its own success. */
110
108
  var NormalExit = class extends Schema.TaggedClass()("Normal", {}) {
@@ -127,8 +125,7 @@ const NORMAL = { _tag: "Normal" };
127
125
  const SHUTDOWN = { _tag: "Shutdown" };
128
126
  const causeOf = (exit) => exit.pipe(Exit.getCause, Option.getOrElse(() => Cause.empty));
129
127
  const terminationReasonOf = (bearing) => Match.value(bearing.decision).pipe(Match.tag("Normal", () => NORMAL), Match.tag("Shutdown", () => SHUTDOWN), Match.tag("Abnormal", () => bearing.exit.pipe(causeOf, abnormalReasonOfCause)), Match.exhaustive);
130
- //#endregion
131
- //#region src/Supervisor/classify-child-exit.workflow.ts
128
+ // src/Supervisor/classify-child-exit.workflow.ts
132
129
  var ClassifyChildExit = class extends Schema.TaggedClass()("ClassifyChildExit", {
133
130
  stopping: Schema.Boolean,
134
131
  exit: Schema.Exit(Schema.Void, Schema.Unknown, Schema.Unknown)
@@ -147,8 +144,7 @@ const classifyChildExit = Workflow.make({
147
144
  error: Schema.Never,
148
145
  decide: (command) => Result$1.succeed(decisionOf$1(command))
149
146
  });
150
- //#endregion
151
- //#region src/kernel/SupervisorPolicy.schema.ts
147
+ // src/kernel/SupervisorPolicy.schema.ts
152
148
  const RestartStrategy = Schema.Literals([
153
149
  "one_for_one",
154
150
  "one_for_all",
@@ -263,8 +259,7 @@ const workerShutdown = {
263
259
  };
264
260
  const supervisorShutdown = { _tag: "Infinity" };
265
261
  const childShutdownOf = (nested) => Match.value(nested).pipe(Match.when(true, () => supervisorShutdown), Match.when(false, () => workerShutdown), Match.exhaustive);
266
- //#endregion
267
- //#region src/Supervisor/MediumDeclaration.schema.ts
262
+ // src/Supervisor/MediumDeclaration.schema.ts
268
263
  /**
269
264
  * What a medium can say about why a child died (R16, KTD8): the in-process fiber
270
265
  * medium reports a full `Cause`, a process, socket or microVM medium reports the
@@ -292,8 +287,7 @@ const MediumDeclaration = Schema.Struct({
292
287
  reporting: MediumReporting,
293
288
  groupStop: GroupStopGuarantee
294
289
  });
295
- //#endregion
296
- //#region src/Supervisor/Medium.ts
290
+ // src/Supervisor/Medium.ts
297
291
  var Medium_exports = /* @__PURE__ */ __exportAll({
298
292
  AbnormalTermination: () => AbnormalTermination,
299
293
  BrutalShutdown: () => BrutalShutdown,
@@ -338,8 +332,7 @@ const make$1 = (options) => ({
338
332
  });
339
333
  /** Declare a medium port keyed to the program type it interprets (KTD9). */
340
334
  const MediumPort = (key) => Context.Service(key);
341
- //#endregion
342
- //#region src/Supervisor/FiberMedium.ts
335
+ // src/Supervisor/FiberMedium.ts
343
336
  var FiberMedium_exports = /* @__PURE__ */ __exportAll({
344
337
  failureCauseOf: () => failureCauseOf,
345
338
  fiberPort: () => fiberPort,
@@ -350,12 +343,11 @@ var FiberMedium_exports = /* @__PURE__ */ __exportAll({
350
343
  const readyOnStart = (program) => (ready) => Effect.andThen(ready, program);
351
344
  const fiberPort = MediumPort("FiberMedium");
352
345
  const FiberStartedTypeId = Symbol.for("@systemfsoftware/effect-daemon-spec/FiberMedium/Started");
353
- const fiberStarted = (fiber, scope, ready) => ({
346
+ const fiberStarted = (fiber, ready) => ({
354
347
  [StartedTypeId]: StartedTypeId,
355
348
  [FiberStartedTypeId]: FiberStartedTypeId,
356
349
  fiber,
357
- ready,
358
- scope
350
+ ready
359
351
  });
360
352
  const isFiberStarted = (evidence) => FiberStartedTypeId in evidence;
361
353
  const fiberOf = (evidence) => Option.liftPredicate(evidence, isFiberStarted);
@@ -371,15 +363,9 @@ const terminationOf$1 = (exit) => terminationReasonOf({
371
363
  decision: decisionOf(exit),
372
364
  exit
373
365
  });
374
- const closedChild = (self) => Scope.close(self.scope, Exit.void);
375
366
  const forcedChild = (self) => Fiber.interrupt(self.fiber);
376
- /**
377
- * OTP's timed shutdown: the signal (interruption) goes out at once, and the window
378
- * bounds only how long the stop waits for the child's finalizers before closing its
379
- * scope.
380
- */
381
- const signalledWithin = (self, millis) => Effect.andThen(Effect.timeoutOption(forcedChild(self), Duration.millis(millis)), closedChild(self));
382
- const stopOf = (self, mode) => Match.value(mode).pipe(Match.tag("Brutal", () => Effect.andThen(forcedChild(self), closedChild(self))), Match.tag("Graceful", (graceful) => signalledWithin(self, graceful.millis)), Match.tag("Infinity", () => Effect.andThen(forcedChild(self), closedChild(self))), Match.exhaustive);
367
+ const signalledWithin = (self, millis) => Effect.asVoid(Effect.timeoutOption(forcedChild(self), Duration.millis(millis)));
368
+ const stopOf = (self, mode) => Match.value(mode).pipe(Match.tag("Brutal", () => forcedChild(self)), Match.tag("Graceful", (graceful) => signalledWithin(self, graceful.millis)), Match.tag("Infinity", () => forcedChild(self)), Match.exhaustive);
383
369
  const failureCauseOf = (evidence) => Option.map(fiberOf(evidence), (self) => Effect.map(Fiber.await(self.fiber), Exit.getCause));
384
370
  const mediumFor = () => make$1({
385
371
  declaration: {
@@ -390,7 +376,7 @@ const mediumFor = () => make$1({
390
376
  const scope = yield* Effect.scope;
391
377
  const signalled = yield* Deferred.make();
392
378
  const fiber = yield* Effect.forkIn(program(Deferred.succeed(signalled, void 0)), scope);
393
- return fiberStarted(fiber, scope, Deferred.await(signalled));
379
+ return fiberStarted(fiber, Deferred.await(signalled));
394
380
  }),
395
381
  report: (evidence) => Option.match(fiberOf(evidence), {
396
382
  onNone: () => Effect.succeed(shutdownTermination),
@@ -406,8 +392,7 @@ const mediumFor = () => make$1({
406
392
  })
407
393
  });
408
394
  const medium = mediumFor();
409
- //#endregion
410
- //#region src/Supervisor/bound-child.ts
395
+ // src/Supervisor/bound-child.ts
411
396
  const rendered = (failure) => abnormalReasonOfCause(Cause.fail(failure));
412
397
  const startOf = (program, medium, context) => Effect.gen(function* () {
413
398
  const parent = yield* Effect.scope;
@@ -415,25 +400,21 @@ const startOf = (program, medium, context) => Effect.gen(function* () {
415
400
  const scoped = Context.add(context, Scope.Scope, child);
416
401
  const outcome = yield* Effect.exit(Effect.setContext(Effect.mapError(medium.start(program), rendered), scoped));
417
402
  return yield* Exit.match(outcome, {
418
- onSuccess: (evidence) => Effect.succeed(evidence),
403
+ onSuccess: (evidence) => Effect.succeed({
404
+ evidence,
405
+ scope: child
406
+ }),
419
407
  onFailure: (cause) => Effect.andThen(Scope.close(child, Exit.void), Effect.fail(terminationReasonOfCause(cause)))
420
408
  });
421
409
  });
422
410
  const bind = (program, medium, context) => ({
423
411
  start: startOf(program, medium, context),
424
- report: (evidence) => Effect.setContext(medium.report(evidence), context),
425
- probe: (evidence) => Effect.setContext(medium.probe(evidence), context),
426
- stop: (evidence, mode) => Effect.setContext(medium.stop(evidence, mode), context)
412
+ report: (incarnation) => Effect.setContext(medium.report(incarnation.evidence), context),
413
+ probe: (incarnation) => Effect.setContext(medium.probe(incarnation.evidence), context),
414
+ stop: (incarnation, mode) => Effect.ensuring(Effect.setContext(medium.stop(incarnation.evidence, mode), context), Scope.close(incarnation.scope, Exit.void))
427
415
  });
428
- /**
429
- * Binds a program to the medium that interprets it, capturing the services
430
- * resolved at acquisition: the medium's own requirements are read from
431
- * `context` once, and `start` forks a fresh child scope so closing that scope
432
- * owns the child's shutdown (KTD9).
433
- */
434
416
  const Binder = { bind };
435
- //#endregion
436
- //#region src/Supervisor/DynamicOutcome.schema.ts
417
+ // src/Supervisor/DynamicOutcome.schema.ts
437
418
  const DynamicStartAccepted = Schema.Struct({
438
419
  outcome: Schema.Literal("accepted"),
439
420
  childId: ChildId,
@@ -451,8 +432,7 @@ const outcomeOf = (reply) => Match.value(reply).pipe(Match.tag("ReplyStartAccept
451
432
  generation: accepted.generation
452
433
  })), Match.tag("ReplyStartRefused", () => ({ outcome: "refused" })), Match.tag("ReplyStopped", () => ({ outcome: "stopped" })), Match.exhaustive);
453
434
  const staleOf = (event) => Match.value(event).pipe(Match.when({ _tag: "DynamicStartRequested" }, () => ({ outcome: "refused" })), Match.orElse(() => ({ outcome: "missed" })));
454
- //#endregion
455
- //#region src/Supervisor/running-supervisor.handle.ts
435
+ // src/Supervisor/running-supervisor.handle.ts
456
436
  /** Brands a running supervisor handle. */
457
437
  const TypeId = Symbol.for("@systemfsoftware/effect-daemon-spec/RunningSupervisor");
458
438
  const RunningSupervisorDef = Handle.make()(TypeId);
@@ -542,8 +522,7 @@ const Ops = {
542
522
  resolveWaiting,
543
523
  staleOf
544
524
  };
545
- //#endregion
546
- //#region src/kernel/SupervisorState.schema.ts
525
+ // src/kernel/SupervisorState.schema.ts
547
526
  const StateTypeId = Symbol.for("@systemfsoftware/effect-daemon/SupervisorState");
548
527
  const ChildStatus = Schema.Literals([
549
528
  "starting",
@@ -633,8 +612,7 @@ const evolved = dual(2, (state, decision) => Match.value(decision).pipe(Match.ta
633
612
  reason: stopping.reason,
634
613
  exit: stopping.exit
635
614
  })), Match.tag("Terminate", (terminated) => new Terminated({ reason: terminated.reason })), Match.exhaustive));
636
- //#endregion
637
- //#region src/kernel/SupervisionEvent.schema.ts
615
+ // src/kernel/SupervisionEvent.schema.ts
638
616
  const TimerKind = Schema.Literals([
639
617
  "start_deadline",
640
618
  "backoff",
@@ -711,8 +689,7 @@ const SupervisionEvent = Schema.Union([
711
689
  DynamicStopRequested,
712
690
  ShutdownRequested
713
691
  ]);
714
- //#endregion
715
- //#region src/kernel/SupervisorCommand.schema.ts
692
+ // src/kernel/SupervisorCommand.schema.ts
716
693
  const StartChild = Schema.TaggedStruct("StartChild", {
717
694
  childId: ChildId,
718
695
  generation: Generation
@@ -766,20 +743,18 @@ const SupervisorCommands = Schema.Struct({
766
743
  replies: Schema.Array(SupervisorReply),
767
744
  terminates: Schema.Array(TerminateSupervisor)
768
745
  });
769
- //#endregion
770
- //#region src/Supervisor/SupervisorTerminated.schema.ts
746
+ // src/Supervisor/SupervisorTerminated.schema.ts
771
747
  const firstLine = (text) => text.split("\n")[0] ?? "";
772
748
  var SupervisorTerminated = class extends Schema.TaggedError()("SupervisorTerminated", {
773
- name: Schema.String,
749
+ supervisor: Schema.String,
774
750
  reason: TerminationReason,
775
751
  cause: Schema.Cause(Schema.Unknown, Schema.Unknown)
776
752
  }) {
777
753
  get message() {
778
- return `Supervisor "${this.name}" terminated (${this.reason._tag}): ${firstLine(Cause.pretty(this.cause))}`;
754
+ return `Supervisor "${this.supervisor}" terminated (${this.reason._tag}): ${firstLine(Cause.pretty(this.cause))}`;
779
755
  }
780
756
  };
781
- //#endregion
782
- //#region src/Supervisor/supervisor-commands.ts
757
+ // src/Supervisor/supervisor-commands.ts
783
758
  const Steps = { runtimeOf: (acquired) => ({ acquired }) };
784
759
  const stampedNow = (handle, event) => Effect.flatMap(Clock.currentTimeMillis, (now) => offerEvent(handle, {
785
760
  ...event,
@@ -834,10 +809,10 @@ const supervisorTimerEventOf = (kind) => ({
834
809
  target: { _tag: "SupervisorTimer" }
835
810
  });
836
811
  const evidenceKeyOf = (childId, generation) => `${childId}#${generation}`;
837
- const registerStarted = (handle, childId, generation, evidence) => Ref.update(evidenceOf(handle), (known) => HashMap.set(known, evidenceKeyOf(childId, generation), evidence));
812
+ const registerStarted = (handle, childId, generation, incarnation) => Ref.update(evidenceOf(handle), (known) => HashMap.set(known, evidenceKeyOf(childId, generation), incarnation));
838
813
  const knownStarted = (handle, childId, generation) => Effect.map(Ref.get(evidenceOf(handle)), (known) => HashMap.get(known, evidenceKeyOf(childId, generation)));
839
814
  const watchReadiness = (handle, evidence, childId, generation) => Effect.asVoid(Effect.forkIn(Effect.asVoid(Effect.andThen(evidence.ready, stampedNow(handle, readyEventOf(childId, generation)))), ownerScopeOf(handle)));
840
- const watchReport = (handle, child, evidence, childId, generation) => Effect.asVoid(Effect.forkIn(Effect.flatMap(child.report(evidence), (reason) => stampedNow(handle, terminatedEventOf(childId, generation, reason))), ownerScopeOf(handle)));
815
+ const watchReport = (handle, child, incarnation, childId, generation) => Effect.asVoid(Effect.forkIn(Effect.flatMap(child.report(incarnation), (reason) => stampedNow(handle, terminatedEventOf(childId, generation, reason))), ownerScopeOf(handle)));
841
816
  /**
842
817
  * The child bound to an id. Declared children are bound at acquisition and dynamic
843
818
  * ones by `bindDynamicPrograms` before their start runs, so a missing binding is a
@@ -848,7 +823,7 @@ const executeStart = (acquired, command) => Effect.gen(function* () {
848
823
  const child = yield* boundChildFor(acquired.handle, command.childId);
849
824
  const outcome = yield* Effect.exit(child.start);
850
825
  yield* Exit.match(outcome, {
851
- onSuccess: (evidence) => Effect.andThen(registerStarted(acquired.handle, command.childId, command.generation, evidence), Effect.andThen(stampedNow(acquired.handle, startedEventOf(command.childId, command.generation)), Effect.andThen(watchReadiness(acquired.handle, evidence, command.childId, command.generation), watchReport(acquired.handle, child, evidence, command.childId, command.generation)))),
826
+ onSuccess: (incarnation) => Effect.andThen(registerStarted(acquired.handle, command.childId, command.generation, incarnation), Effect.andThen(stampedNow(acquired.handle, startedEventOf(command.childId, command.generation)), Effect.andThen(watchReadiness(acquired.handle, incarnation.evidence, command.childId, command.generation), watchReport(acquired.handle, child, incarnation, command.childId, command.generation)))),
852
827
  onFailure: (cause) => stampedNow(acquired.handle, terminatedEventOf(command.childId, command.generation, terminationReasonOfCause(cause)))
853
828
  });
854
829
  });
@@ -862,7 +837,7 @@ const executeStop = (acquired, command) => Effect.gen(function* () {
862
837
  const found = yield* knownStarted(acquired.handle, command.childId, command.generation);
863
838
  yield* Option.match(found, {
864
839
  onNone: () => Effect.void,
865
- onSome: (evidence) => Effect.asVoid(child.stop(evidence, command.shutdown))
840
+ onSome: (incarnation) => Effect.asVoid(child.stop(incarnation, command.shutdown))
866
841
  });
867
842
  yield* stampedNow(acquired.handle, stoppedEventOf(command.childId, command.generation));
868
843
  });
@@ -871,14 +846,14 @@ const executeArm = (acquired, arm) => Match.value(arm).pipe(Match.tag("ArmChildT
871
846
  const executeReply = (acquired, reply) => Ops.resolveWaiting(repliesOf(acquired.handle), reply.requestId, outcomeOf(reply));
872
847
  const giveUpCauseOf = (handle, exit, reason) => Effect.flatMap(Ref.get(evidenceOf(handle)), (evidence) => Option.match(HashMap.get(evidence, evidenceKeyOf(exit.childId, exit.generation)), {
873
848
  onNone: () => Effect.succeed(Cause.fail(reason)),
874
- onSome: (started) => Option.match(failureCauseOf(started), {
849
+ onSome: (incarnation) => Option.match(failureCauseOf(incarnation.evidence), {
875
850
  onNone: () => Effect.succeed(Cause.fail(reason)),
876
851
  onSome: (awaited) => Effect.map(awaited, (cause) => Option.getOrElse(cause, () => Cause.fail(reason)))
877
852
  })
878
853
  }));
879
854
  const clearEvidence = (handle) => Ref.update(evidenceOf(handle), () => HashMap.empty());
880
855
  const executeTerminate = (acquired, command) => Match.value(command.exit).pipe(Match.tag("RequestedExit", () => Effect.andThen(clearEvidence(acquired.handle), Effect.asVoid(Deferred.succeed(terminatedLatchOf(acquired.handle), void 0)))), Match.tag("IntensityExceededExit", (exit) => Effect.flatMap(giveUpCauseOf(acquired.handle, exit, command.reason), (cause) => Effect.andThen(clearEvidence(acquired.handle), Effect.asVoid(Deferred.fail(terminatedLatchOf(acquired.handle), new SupervisorTerminated({
881
- name: acquired.handle.name,
856
+ supervisor: acquired.handle.name,
882
857
  reason: command.reason,
883
858
  cause
884
859
  })))))), Match.exhaustive);
@@ -904,7 +879,7 @@ const probeOnce = (acquired, childId, generation) => Effect.gen(function* () {
904
879
  const found = yield* knownStarted(acquired.handle, childId, generation);
905
880
  const alive = yield* Option.match(found, {
906
881
  onNone: () => Effect.succeed(false),
907
- onSome: (evidence) => child.probe(evidence)
882
+ onSome: (incarnation) => child.probe(incarnation)
908
883
  });
909
884
  yield* stampedNow(acquired.handle, probeEventOf(childId, generation, alive));
910
885
  });
@@ -913,8 +888,7 @@ const answerStale = (acquired, event) => {
913
888
  const requestId = requestIdOf(event);
914
889
  return requestId === void 0 ? Effect.void : Ops.resolveWaiting(repliesOf(acquired.handle), requestId, Ops.staleOf(event));
915
890
  };
916
- //#endregion
917
- //#region src/kernel/interpret-supervision-event.workflow.ts
891
+ // src/kernel/interpret-supervision-event.workflow.ts
918
892
  const DecisionTypeId = Symbol.for("@systemfsoftware/effect-daemon/SupervisionDecision");
919
893
  var Stale = class extends Schema.TaggedClass()("Stale", {}) {
920
894
  [DecisionTypeId] = DecisionTypeId;
@@ -1056,7 +1030,7 @@ const withStamps = (core, restartStamps) => ({
1056
1030
  restartStamps
1057
1031
  });
1058
1032
  const prunedStamps = (core, at) => Array.filter(core.restartStamps, (stamp) => at - stamp <= core.policy.periodMillis);
1059
- const backoffDelay = (schedule, consecutiveRestarts) => Match.value(schedule.baseMillis).pipe(Match.when(0, () => 0), Match.orElse((baseMillis) => Number$1.min(schedule.capMillis, baseMillis * schedule.multiplier ** consecutiveRestarts)));
1033
+ const backoffDelay = (schedule, consecutiveRestarts) => Match.value(schedule.baseMillis === 0).pipe(Match.when(true, () => 0), Match.when(false, () => Number$1.min(schedule.capMillis, schedule.baseMillis * schedule.multiplier ** consecutiveRestarts)), Match.exhaustive);
1060
1034
  const startCommandOf = (start) => ({
1061
1035
  _tag: "StartChild",
1062
1036
  childId: start.childId,
@@ -1120,10 +1094,13 @@ const holdOf = (core) => new Continue({
1120
1094
  });
1121
1095
  const terminatedReason = { _tag: "Shutdown" };
1122
1096
  const requestedExit = { _tag: "RequestedExit" };
1123
- const failureReportOf = (reason) => Match.value(reason).pipe(Match.tag("Abnormal", (abnormal) => abnormal.report), Match.orElse(() => ({
1097
+ const failureReportOf = (reason) => Match.value(reason).pipe(Match.tag("Abnormal", (abnormal) => abnormal.report), Match.tag("Normal", () => ({
1124
1098
  _tag: "CauseReport",
1125
1099
  cause: Cause.pretty(Cause.fail(reason))
1126
- })));
1100
+ })), Match.tag("Shutdown", () => ({
1101
+ _tag: "CauseReport",
1102
+ cause: Cause.pretty(Cause.fail(reason))
1103
+ })), Match.exhaustive);
1127
1104
  const giveUpReasonOf = (termination) => ({
1128
1105
  _tag: "Abnormal",
1129
1106
  report: failureReportOf(termination.reason)
@@ -1163,8 +1140,8 @@ const restartScopeOf = (core, failedIndex, termination) => {
1163
1140
  stops: Array.map(Array.reverse(group), (child) => stopCommandOf(core.policy, child))
1164
1141
  };
1165
1142
  };
1166
- const restartedChildrenOf = (core, scope) => Array.flatMap(core.children, (child) => Match.value(Array.contains(scope.comingIds, child.childId)).pipe(Match.when(true, () => [restartingOf(child, child.generation + 1)]), Match.orElse(() => removalRemnant(scope.removedIds, child))));
1167
- const removalRemnant = (removedIds, child) => Match.value(Array.contains(removedIds, child.childId)).pipe(Match.when(true, () => []), Match.orElse(() => [child]));
1143
+ const restartedChildrenOf = (core, scope) => Array.flatMap(core.children, (child) => Match.value(Array.contains(scope.comingIds, child.childId)).pipe(Match.when(true, () => [restartingOf(child, child.generation + 1)]), Match.when(false, () => removalRemnant(scope.removedIds, child)), Match.exhaustive));
1144
+ const removalRemnant = (removedIds, child) => Match.value(Array.contains(removedIds, child.childId)).pipe(Match.when(true, () => []), Match.when(false, () => [child]), Match.exhaustive);
1168
1145
  const phasedCommands = (core, at, coming) => {
1169
1146
  const steps = Array.map(coming, (child) => {
1170
1147
  return {
@@ -1254,7 +1231,8 @@ const restartSplitOf = (core, failedIndex, termination) => Match.value(failedCom
1254
1231
  outcome: restartOutcomeOf(core, restartScopeOf(core, failedIndex, termination), termination.at)
1255
1232
  })), Match.when(false, () => quietSplitOf(core, failedIndex)), Match.exhaustive);
1256
1233
  const terminatedIndexed = (core, failedIndex, termination) => Match.value(restartSplitOf(core, failedIndex, termination)).pipe(Match.tag("Restarted", (restarted) => restartedDecisionOf(core, restarted.outcome, termination)), Match.tag("Quiet", (quiet) => shutdownOrContinue(core, Array.filter(core.children, (child) => Array.contains(quiet.removedIds, child.childId)), quiet.remaining)), Match.exhaustive);
1257
- const terminatedCurrent = (core, child, termination) => Match.value(child.status).pipe(Match.when("stopping", () => removalContinue(core, termination)), Match.orElse(() => Match.value(indexOfChild(core, child.childId)).pipe(Match.tag("Some", (index) => terminatedIndexed(core, index.value, termination)), Match.tag("None", () => new Stale({})), Match.exhaustive)));
1234
+ const terminatedIfIndexed = (core, child, termination) => Match.value(indexOfChild(core, child.childId)).pipe(Match.tag("Some", (index) => terminatedIndexed(core, index.value, termination)), Match.tag("None", () => new Stale({})), Match.exhaustive);
1235
+ const terminatedCurrent = (core, child, termination) => Match.value(child.status).pipe(Match.when("starting", () => terminatedIfIndexed(core, child, termination)), Match.when("ready", () => terminatedIfIndexed(core, child, termination)), Match.when("stopping", () => removalContinue(core, termination)), Match.exhaustive);
1258
1236
  const removalOf = (core, childId, generation) => withChildren(core, Array.filter(core.children, (child) => incarnationMatches(childId, generation)(child) === false));
1259
1237
  const removalContinue = (core, termination) => new Continue({
1260
1238
  core: removalOf(core, termination.childId, termination.generation),
@@ -1269,7 +1247,7 @@ const becomingReady = (core, child, at) => Match.value(child.status).pipe(Match.
1269
1247
  core: withChildren(core, Array.map(core.children, replacing(next))),
1270
1248
  commands: commandsIn({ arms: [tickCommandOf(next, at + core.policy.livenessTickMillis)] })
1271
1249
  });
1272
- }), Match.orElse(() => holdOf(core)));
1250
+ }), Match.when("ready", () => holdOf(core)), Match.when("stopping", () => holdOf(core)), Match.exhaustive);
1273
1251
  const stoppedInShuttingDown = (core, reason, exit, childId, generation) => {
1274
1252
  const next = removalOf(core, childId, generation);
1275
1253
  return Match.value(Array.every(next.children, (child) => child.status !== "stopping")).pipe(Match.when(true, () => terminateDecisionOf(reason, exit)), Match.when(false, () => new Continue({
@@ -1278,7 +1256,7 @@ const stoppedInShuttingDown = (core, reason, exit, childId, generation) => {
1278
1256
  })), Match.exhaustive);
1279
1257
  };
1280
1258
  const probedInRunning = (core, childId, generation, alive, at) => Match.value(currentIncarnation(core, childId, generation)).pipe(Match.tag("None", () => new Stale({})), Match.tag("Some", (found) => probedOutcomeOf(core, found.value, alive, at)), Match.exhaustive);
1281
- const probedOutcomeOf = (core, child, alive, at) => Match.value(child.status).pipe(Match.when("ready", () => probedReadyOutcomeOf(core, child, alive, at)), Match.orElse(() => holdOf(core)));
1259
+ const probedOutcomeOf = (core, child, alive, at) => Match.value(child.status).pipe(Match.when("ready", () => probedReadyOutcomeOf(core, child, alive, at)), Match.when("starting", () => holdOf(core)), Match.when("stopping", () => holdOf(core)), Match.exhaustive);
1282
1260
  const probedReadyOutcomeOf = (core, child, alive, at) => Match.value(alive).pipe(Match.when(true, () => new Continue({
1283
1261
  core: withChildren(core, Array.map(core.children, replacing(probedAs(child, true)))),
1284
1262
  commands: noCommands
@@ -1305,11 +1283,11 @@ const deadlineInRunning = (core, child, at) => Match.value(child.status).pipe(Ma
1305
1283
  }
1306
1284
  },
1307
1285
  at
1308
- })), Match.orElse(() => new Stale({})));
1286
+ })), Match.when("ready", () => new Stale({})), Match.when("stopping", () => new Stale({})), Match.exhaustive);
1309
1287
  const tickInRunning = (core, child, at) => Match.value(child.status).pipe(Match.when("ready", () => new Continue({
1310
1288
  core,
1311
1289
  commands: commandsIn({ arms: [tickCommandOf(child, at + core.policy.livenessTickMillis)] })
1312
- })), Match.orElse(() => new Stale({})));
1290
+ })), Match.when("starting", () => new Stale({})), Match.when("stopping", () => new Stale({})), Match.exhaustive);
1313
1291
  const timerInRunning = (core, childId, generation, kind, at) => Match.value(currentIncarnation(core, childId, generation)).pipe(Match.tag("None", () => new Stale({})), Match.tag("Some", (found) => namedTimerInRunning(core, found.value, kind, at)), Match.exhaustive);
1314
1292
  const fireBackoffOf = (core, pending, childId, generation, at) => {
1315
1293
  const start = {
@@ -1330,7 +1308,7 @@ const fireBackoffOf = (core, pending, childId, generation, at) => {
1330
1308
  commands
1331
1309
  })), Match.exhaustive);
1332
1310
  };
1333
- const backoffInRestarting = (core, pending, childId, generation, kind, at) => Match.value(kind).pipe(Match.when("backoff", () => Match.value(Array.findFirst(pending, planMatches(childId, generation))).pipe(Match.tag("None", () => new Stale({})), Match.tag("Some", () => fireBackoffOf(core, pending, childId, generation, at)), Match.exhaustive)), Match.orElse(() => new Stale({})));
1311
+ const backoffInRestarting = (core, pending, childId, generation, kind, at) => Match.value(kind).pipe(Match.when("backoff", () => Match.value(Array.findFirst(pending, planMatches(childId, generation))).pipe(Match.tag("None", () => new Stale({})), Match.tag("Some", () => fireBackoffOf(core, pending, childId, generation, at)), Match.exhaustive)), Match.when("start_deadline", () => new Stale({})), Match.when("liveness_tick", () => new Stale({})), Match.when("cool_down", () => new Stale({})), Match.exhaustive);
1334
1312
  const cooledStartsOf = (core, at) => {
1335
1313
  const fresh = Array.map(core.children, (child) => ({
1336
1314
  ...child,
@@ -1422,15 +1400,12 @@ const onChildTerminated = (state, termination) => Match.value(state).pipe(Match.
1422
1400
  generation: termination.generation,
1423
1401
  reason: termination.reason,
1424
1402
  at: termination.at
1425
- })), Match.tag("Restarting", () => new Stale({})), Match.tag("CoolingDown", ({ core }) => holdOf(core)), Match.tag("ShuttingDown", ({ core }) => terminatedShuttingDown(core, ShuttingDownReasonOf(state), ShuttingDownExitOf(state), termination)), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
1426
- const ShuttingDownReasonOf = (state) => Match.value(state).pipe(Match.tag("ShuttingDown", ({ reason }) => reason), Match.orElse(() => terminatedReason));
1427
- const ShuttingDownExitOf = (state) => Match.value(state).pipe(Match.tag("ShuttingDown", ({ exit }) => exit), Match.orElse(() => requestedExit));
1428
- const terminatedShuttingDown = (core, reason, exit, termination) => stoppedInShuttingDown(core, reason, exit, termination.childId, termination.generation);
1403
+ })), Match.tag("Restarting", () => new Stale({})), Match.tag("CoolingDown", ({ core }) => holdOf(core)), Match.tag("ShuttingDown", ({ core, reason, exit }) => stoppedInShuttingDown(core, reason, exit, termination.childId, termination.generation)), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
1429
1404
  const stoppedInRunning = (core, childId, generation) => Match.value(currentIncarnation(core, childId, generation)).pipe(Match.tag("Some", () => removalContinue(core, terminationOf(childId, generation, terminatedReason, 0))), Match.tag("None", () => new Stale({})), Match.exhaustive);
1430
1405
  const onChildStopped = (state, childId, generation) => Match.value(state).pipe(Match.tag("Running", ({ core }) => stoppedInRunning(core, childId, generation)), Match.tag("Restarting", () => new Stale({})), Match.tag("CoolingDown", ({ core }) => holdOf(core)), Match.tag("ShuttingDown", ({ core, reason, exit }) => stoppedInShuttingDown(core, reason, exit, childId, generation)), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
1431
1406
  const onProbeResult = (state, childId, generation, alive, at) => Match.value(state).pipe(Match.tag("Running", ({ core }) => probedInRunning(core, childId, generation, alive, at)), Match.tag("Restarting", () => new Stale({})), Match.tag("CoolingDown", ({ core }) => holdOf(core)), Match.tag("ShuttingDown", ({ core }) => holdOf(core)), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
1432
- const onTimerElapsed = (state, kind, childId, generation, at) => Match.value(state).pipe(Match.tag("Running", ({ core }) => timerInRunning(core, childId, generation, kind, at)), Match.tag("Restarting", ({ core, pending }) => Match.value(childId).pipe(Match.when("", () => new Stale({})), Match.orElse((named) => backoffInRestarting(core, pending, named, generation, kind, at)))), Match.tag("CoolingDown", ({ core }) => coolDownElapsedOf(core, kind, at)), Match.tag("ShuttingDown", ({ core }) => holdOf(core)), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
1433
- const coolDownElapsedOf = (core, kind, at) => Match.value(kind).pipe(Match.when("cool_down", () => cooledRestartOf(core, at)), Match.orElse(() => new Stale({})));
1407
+ const onTimerElapsed = (state, kind, target, at) => Match.value(state).pipe(Match.tag("Running", ({ core }) => Match.value(target).pipe(Match.tag("ChildTimer", (child) => timerInRunning(core, child.childId, child.generation, kind, at)), Match.tag("SupervisorTimer", () => new Stale({})), Match.exhaustive)), Match.tag("Restarting", ({ core, pending }) => Match.value(target).pipe(Match.tag("ChildTimer", (child) => backoffInRestarting(core, pending, child.childId, child.generation, kind, at)), Match.tag("SupervisorTimer", () => new Stale({})), Match.exhaustive)), Match.tag("CoolingDown", ({ core }) => coolDownElapsedOf(core, kind, at)), Match.tag("ShuttingDown", ({ core }) => holdOf(core)), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
1408
+ const coolDownElapsedOf = (core, kind, at) => Match.value(kind).pipe(Match.when("cool_down", () => cooledRestartOf(core, at)), Match.when("start_deadline", () => new Stale({})), Match.when("backoff", () => new Stale({})), Match.when("liveness_tick", () => new Stale({})), Match.exhaustive);
1434
1409
  const onDynamicStartRequested = (state, requestId, at) => Match.value(state).pipe(Match.tag("Running", ({ core }) => dynamicStartOf(core, requestId, at)), Match.tag("Restarting", () => refusedStartOf(requestId)), Match.tag("CoolingDown", () => refusedStartOf(requestId)), Match.tag("ShuttingDown", () => refusedStartOf(requestId)), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
1435
1410
  const onDynamicStopRequested = (state, requestId, childId, generation) => Match.value(state).pipe(Match.tag("Running", ({ core }) => dynamicStopOf(core, requestId, childId, generation)), Match.tag("Restarting", () => new Stale({})), Match.tag("CoolingDown", () => new Stale({})), Match.tag("ShuttingDown", () => new Stale({})), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
1436
1411
  const onShutdownRequested = (state, reason) => Match.value(state).pipe(Match.tag("Running", ({ core }) => stopEverything(core, reason, requestedExit)), Match.tag("Restarting", ({ core }) => stopEverything(core, reason, requestedExit)), Match.tag("CoolingDown", ({ core }) => stopEverything(core, reason, requestedExit)), Match.tag("ShuttingDown", ({ core }) => holdOf(core)), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
@@ -1449,15 +1424,14 @@ const bootedChildrenOf = (core, at) => {
1449
1424
  });
1450
1425
  };
1451
1426
  const onSupervisorStarted = (state, at) => Match.value(state).pipe(Match.tag("Running", ({ core }) => bootedChildrenOf(core, at)), Match.tag("Restarting", () => new Stale({})), Match.tag("CoolingDown", () => new Stale({})), Match.tag("ShuttingDown", () => new Stale({})), Match.tag("Terminated", () => new Stale({})), Match.exhaustive);
1452
- const decided = (state, event) => Match.value(event).pipe(Match.tag("SupervisorStarted", (started) => onSupervisorStarted(state, started.at)), Match.tag("ChildStarted", (started) => onChildStarted(state, started.childId, started.generation)), Match.tag("ChildReady", (ready) => onChildReady(state, ready.childId, ready.generation, ready.at)), Match.tag("ChildTerminated", (terminated) => onChildTerminated(state, terminationOf(terminated.childId, terminated.generation, terminated.reason, terminated.at))), Match.tag("ChildStopped", (stopped) => onChildStopped(state, stopped.childId, stopped.generation)), Match.tag("ProbeResult", (probe) => onProbeResult(state, probe.childId, probe.generation, probe.alive, probe.at)), Match.tag("TimerElapsed", (elapsed) => Match.value(elapsed.target).pipe(Match.tag("ChildTimer", (target) => onTimerElapsed(state, elapsed.kind, target.childId, target.generation, elapsed.at)), Match.tag("SupervisorTimer", () => onTimerElapsed(state, elapsed.kind, "", 0, elapsed.at)), Match.exhaustive)), Match.tag("DynamicStartRequested", (requested) => onDynamicStartRequested(state, requested.requestId, requested.at)), Match.tag("DynamicStopRequested", (requested) => onDynamicStopRequested(state, requested.requestId, requested.childId, requested.generation)), Match.tag("ShutdownRequested", (requested) => onShutdownRequested(state, requested.reason)), Match.exhaustive);
1427
+ const decided = (state, event) => Match.value(event).pipe(Match.tag("SupervisorStarted", (started) => onSupervisorStarted(state, started.at)), Match.tag("ChildStarted", (started) => onChildStarted(state, started.childId, started.generation)), Match.tag("ChildReady", (ready) => onChildReady(state, ready.childId, ready.generation, ready.at)), Match.tag("ChildTerminated", (terminated) => onChildTerminated(state, terminationOf(terminated.childId, terminated.generation, terminated.reason, terminated.at))), Match.tag("ChildStopped", (stopped) => onChildStopped(state, stopped.childId, stopped.generation)), Match.tag("ProbeResult", (probe) => onProbeResult(state, probe.childId, probe.generation, probe.alive, probe.at)), Match.tag("TimerElapsed", (elapsed) => onTimerElapsed(state, elapsed.kind, elapsed.target, elapsed.at)), Match.tag("DynamicStartRequested", (requested) => onDynamicStartRequested(state, requested.requestId, requested.at)), Match.tag("DynamicStopRequested", (requested) => onDynamicStopRequested(state, requested.requestId, requested.childId, requested.generation)), Match.tag("ShutdownRequested", (requested) => onShutdownRequested(state, requested.reason)), Match.exhaustive);
1453
1428
  const interpretSupervisionEvent = Workflow.make({
1454
1429
  command: SupervisionStep,
1455
1430
  decision: SupervisionDecision,
1456
1431
  error: Schema.Never,
1457
1432
  decide: (step) => Result.succeed(decided(step.state, step.event))
1458
1433
  });
1459
- //#endregion
1460
- //#region src/kernel/evolve-supervisor.workflow.ts
1434
+ // src/kernel/evolve-supervisor.workflow.ts
1461
1435
  var SupervisionEvolution = class extends Schema.TaggedClass()("SupervisionEvolution", {
1462
1436
  state: SupervisorState,
1463
1437
  decision: SupervisionDecision
@@ -1470,8 +1444,7 @@ const evolveSupervisor = Workflow.make({
1470
1444
  error: Schema.Never,
1471
1445
  decide: (step) => Result.succeed(evolved(step.state, step.decision))
1472
1446
  });
1473
- //#endregion
1474
- //#region src/Supervisor/supervisor-step.cell.ts
1447
+ // src/Supervisor/supervisor-step.cell.ts
1475
1448
  const readStep = (runtime, event) => Effect.map(Effect.zip(Clock.currentTimeMillis, Ref.get(stateOf(runtime.acquired.handle))), ([now, state]) => new SupervisionStep({
1476
1449
  state,
1477
1450
  event: {
@@ -1503,8 +1476,7 @@ const supervisorStepFor = (runtime) => Sandwich.named("supervisor.step")((event)
1503
1476
  RefuseDynamicStart: (decision, command) => Effect.andThen(persistStep(runtime, command.event, command.state, decision), runBucketsOf(runtime, decision.commands)),
1504
1477
  CommandRejected: (_rejected, command) => Effect.andThen(persistCommandRejection(runtime, command.event), Commands.answerStale(runtime.acquired, command.event))
1505
1478
  });
1506
- //#endregion
1507
- //#region src/Supervisor/Supervisor.ts
1479
+ // src/Supervisor/Supervisor.ts
1508
1480
  const SpecTypeId = Symbol.for("@systemfsoftware/effect-daemon-spec/SupervisorSpec");
1509
1481
  const hasSpecTag = Predicate.hasProperty(SpecTypeId);
1510
1482
  const isSupervisorSpec = (value) => hasSpecTag(value) && value[SpecTypeId] === SpecTypeId;
@@ -1667,8 +1639,7 @@ const children = dual(2, (self, specs) => specOf({
1667
1639
  }))]
1668
1640
  }));
1669
1641
  const child = dual((args) => isSupervisorSpec(args[0]), (self, childId, program, options) => children(self, [childSpecMake(childId, program, options)]));
1670
- //#endregion
1671
- //#region src/Supervisor/mod.ts
1642
+ // src/Supervisor/mod.ts
1672
1643
  var Supervisor_exports = /* @__PURE__ */ __exportAll({
1673
1644
  ChildSpecs: () => ChildSpecs,
1674
1645
  ClassifyChildExit: () => ClassifyChildExit,
@@ -1698,5 +1669,4 @@ var Supervisor_exports = /* @__PURE__ */ __exportAll({
1698
1669
  strategy: () => strategy,
1699
1670
  traceOf: () => traceOf
1700
1671
  });
1701
- //#endregion
1702
1672
  export { Supervisor_exports as Supervisor };
@@ -0,0 +1,12 @@
1
+ // \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, flags) => {
4
+ let target = Object.setPrototypeOf({}, null);
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return flags & 2 ? target : Object.preventExtensions(target);
11
+ };
12
+ export { __exportAll as t };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@systemfsoftware/effect-daemon-spec",
3
3
  "license": "Apache-2.0",
4
- "version": "5.1.0",
4
+ "version": "6.0.3",
5
5
  "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
9
- "directory": "packages/daemon/effect-daemon-spec"
8
+ "url": "git+https://github.com/systemfsoftware/effect-daemon.git",
9
+ "directory": "packages/effect-daemon-spec"
10
10
  },
11
- "homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/daemon/effect-daemon-spec#readme",
12
- "bugs": "https://github.com/systemfsoftware/systemfsoftware/issues",
11
+ "homepage": "https://github.com/systemfsoftware/effect-daemon/tree/main/packages/effect-daemon-spec#readme",
12
+ "bugs": "https://github.com/systemfsoftware/effect-daemon/issues",
13
13
  "description": "Supervision-tree daemons for Effect-TS — leader election, distributed locks, restart-intensity backoff, dynamic children, and health latches as a pure typed core.",
14
14
  "keywords": [
15
15
  "effect",
@@ -37,42 +37,41 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@systemfsoftware/effect-cell-types": "^11.0.0"
40
+ "@systemfsoftware/effect-cell-types": "^12.0.2"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.59.1",
43
+ "@microsoft/api-extractor": "^7.59.4",
44
44
  "@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
45
- "@systemfsoftware/conformance-spec": "^0.2.0",
46
- "@systemfsoftware/effect-gherkin-spec": "^6.0.1",
47
- "@systemfsoftware/effect-schema-law": "^4.0.1",
48
- "@systemfsoftware/effect-schema-vite": "^2.3.0",
49
- "@systemfsoftware/effect-spec-runtime": "^0.3.2",
50
- "@systemfsoftware/oxlint-config-recommended": "^3.3.0",
51
- "@systemfsoftware/stryker-config": "^0.1.0",
45
+ "@systemfsoftware/conformance-spec": "^1.0.1",
46
+ "@systemfsoftware/effect-gherkin-spec": "^8.0.0",
47
+ "@systemfsoftware/effect-schema-law": "^6.1.0",
48
+ "@systemfsoftware/effect-schema-vite": "^3.1.1",
49
+ "@systemfsoftware/effect-spec-runtime": "^1.1.0",
50
+ "@systemfsoftware/oxlint-config-recommended": "^5.0.0",
51
+ "@systemfsoftware/stryker-config": "^0.2.0",
52
52
  "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "latest",
53
53
  "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "latest",
54
54
  "@systemfsoftware/stryker-js": "latest",
55
55
  "@systemfsoftware/stryker-js-typescript-checker": "latest",
56
56
  "@systemfsoftware/stryker-js-vitest-runner": "latest",
57
- "@systemfsoftware/stryker-test-contribution": "latest",
58
- "@systemfsoftware/tsconfig": "^2.0.1",
59
- "@systemfsoftware/tsdown-config": "^0.1.0",
60
- "@systemfsoftware/vitest": "^0.3.0",
61
- "@systemfsoftware/vitest-config": "^0.1.0",
62
- "@types/node": "^26",
63
- "@vitest/coverage-v8": "^5",
64
- "effect": "4.0.0-rc.117",
65
- "fast-check": "^4",
66
- "oxlint": "~1.82.0",
57
+ "@systemfsoftware/tsconfig": "^2.0.2",
58
+ "@systemfsoftware/tsdown-config": "^0.1.1",
59
+ "@systemfsoftware/vitest": "^3.0.0",
60
+ "@systemfsoftware/vitest-config": "^0.1.1",
61
+ "@types/node": "^26.6.5",
62
+ "@vitest/coverage-v8": "^5.0.5",
63
+ "effect": "4.1.2",
64
+ "fast-check": "^4.10.2",
65
+ "oxlint": "~1.90.0",
67
66
  "rimraf": "^6.1.3",
68
67
  "tsdown": "^0.23.0",
69
68
  "tstyche": "^7.2.5",
70
- "typescript": "^7",
71
- "vitest": "^5"
69
+ "typescript": "^7.0.2",
70
+ "vitest": "^5.0.5"
72
71
  },
73
72
  "peerDependencies": {
74
- "@systemfsoftware/conformance-spec": "^0.2.0",
75
- "effect": "4.0.0-rc.117"
73
+ "@systemfsoftware/conformance-spec": "^1.0.1",
74
+ "effect": "^4.1.2"
76
75
  },
77
76
  "peerDependenciesMeta": {
78
77
  "@systemfsoftware/conformance-spec": {
@@ -90,7 +89,6 @@
90
89
  "test": "vitest run",
91
90
  "test:types": "TSTYCHE_TYPESCRIPT_MODULE=tstyche-typescript tstyche",
92
91
  "mutation": "stryker run",
93
- "mutation:full": "stryker run --force",
94
92
  "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
95
93
  "api:check": "api-extractor-quiet run",
96
94
  "api:update": "api-extractor run --local",