@mark1russell7/service 0.8.5 → 0.8.7

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.
@@ -42,5 +42,4 @@ declare const backoffDelay: (policy: Backoff, attempt: number, random?: () => nu
42
42
  declare const backoffBand: (policy: Backoff, attempt?: number) => DelayBand;
43
43
  /** This function gives the problems of a policy: each value that the delays cannot use. */
44
44
  declare const backoffProblems: (policy: Backoff) => string[];
45
- export { backoffDelay as a, backoffBand as i, DelayBand as n, backoffProblems as o, Jitter as r, Backoff as t };
46
- //# sourceMappingURL=backoff-QTRGfkEK.d.ts.map
45
+ export { backoffDelay as a, backoffBand as i, DelayBand as n, backoffProblems as o, Jitter as r, Backoff as t };
@@ -202,5 +202,4 @@ interface ServiceBuilder {
202
202
  }
203
203
  /** This function starts the composition of a service. */
204
204
  declare const service: (name: string) => ServiceBuilder;
205
- export { WatchdogSpec as a, Profile as c, kubernetes as d, localDev as f, Watchdog as i, daemon as l, ServiceBuilder as n, watchdog as o, service as r, PodTiming as s, ControllerBuilder as t, ephemeral as u };
206
- //# sourceMappingURL=builder-zO48Vgoj.d.ts.map
205
+ export { WatchdogSpec as a, Profile as c, kubernetes as d, localDev as f, Watchdog as i, daemon as l, ServiceBuilder as n, watchdog as o, service as r, PodTiming as s, ControllerBuilder as t, ephemeral as u };
@@ -11,5 +11,4 @@ interface CallContext {
11
11
  /** This function gives the headers of the active context for an outgoing call, for example `traceparent`. */
12
12
  headers(): Record<string, string>;
13
13
  }
14
- export { IncomingHeaders as n, CallContext as t };
15
- //# sourceMappingURL=call-context-DDhcVvn5.d.ts.map
14
+ export { IncomingHeaders as n, CallContext as t };
@@ -159,5 +159,4 @@ export interface PreemptivePool {
159
159
  *
160
160
  * @throws RangeError when `max` is not an integer of 1 or more.
161
161
  */
162
- export declare const preemptivePool: (max: number) => PreemptivePool;
163
- //# sourceMappingURL=channel.d.ts.map
162
+ export declare const preemptivePool: (max: number) => PreemptivePool;
@@ -226,5 +226,4 @@ declare const retryProblems: (name: string, knobs: RetryKnobs) => string[];
226
226
  * It does not depend on a driver. The starting knobs of each driver fit it.
227
227
  */
228
228
  declare const STARTING_POLL: Poll;
229
- export { MANIFESTATIONS as C, firstDetector as D, Situation as E, unwatched as O, Detector as S, Meeting as T, Sent as _, ClientKnobs as a, retryProblems as b, ClientSpec as c, Factory as d, ReadyWait as f, SendOptions as g, STARTING_POLL as h, ClientJoin as i, ClientStep as l, RetrySchedule as m, CheckOptions as n, ClientOptions as o, RetryKnobs as p, Client as r, ClientSocket as s, Attempt as t, DialFn as u, readyWait as v, Manifestation as w, retrySchedule as x, retryBackoff as y };
230
- //# sourceMappingURL=core-BSzt4RI2.d.ts.map
229
+ export { MANIFESTATIONS as C, firstDetector as D, Situation as E, unwatched as O, Detector as S, Meeting as T, Sent as _, ClientKnobs as a, retryProblems as b, ClientSpec as c, Factory as d, ReadyWait as f, SendOptions as g, STARTING_POLL as h, ClientJoin as i, ClientStep as l, RetrySchedule as m, CheckOptions as n, ClientOptions as o, RetryKnobs as p, Client as r, ClientSocket as s, Attempt as t, DialFn as u, readyWait as v, Manifestation as w, retrySchedule as x, retryBackoff as y };
@@ -10,5 +10,4 @@ type Judge = (received: Buffer) => Error | null | "more";
10
10
  * The HTTP client accepts each status. The WebSocket client accepts only 101.
11
11
  */
12
12
  declare const statusLineJudge: (accept: (status: number, line: string) => Error | null) => Judge;
13
- export { statusLineJudge as n, Judge as t };
14
- //# sourceMappingURL=dial-ChwIcvd4.d.ts.map
13
+ export { statusLineJudge as n, Judge as t };
package/build/grpc.d.ts CHANGED
@@ -300,5 +300,4 @@ export declare const GRPC_CLIENT_STARTING_WITHOUT_CALLS: boolean;
300
300
  * - `retrans_giveup_time` 924.6 s: the give-up of Linux at `tcp_retries2 = 15`.
301
301
  */
302
302
  export declare const GRPC_CLIENT_STARTING_KNOBS: GrpcKnobs;
303
- export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, type GrpcCallHandle, type GrpcCallOptions, type GrpcChannel, type GrpcChannelOptions, type GrpcClient, type GrpcClientOptions, type GrpcClientSpec, type GrpcConnectOptions, type GrpcFactory, type GrpcIdempotencyLevel, type GrpcJoin, type GrpcKnobs, type GrpcServingStatus, type GrpcState, type GrpcStatus, type Judge, MANIFESTATIONS, type Manifestation, type Meeting, type ReadyWait, type RetryKnobs, STARTING_POLL, type SendOptions, type Sent, type Situation, firstDetector, readyWait, retryProblems, unwatched };
304
- //# sourceMappingURL=grpc.d.ts.map
303
+ export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, type GrpcCallHandle, type GrpcCallOptions, type GrpcChannel, type GrpcChannelOptions, type GrpcClient, type GrpcClientOptions, type GrpcClientSpec, type GrpcConnectOptions, type GrpcFactory, type GrpcIdempotencyLevel, type GrpcJoin, type GrpcKnobs, type GrpcServingStatus, type GrpcState, type GrpcStatus, type Judge, MANIFESTATIONS, type Manifestation, type Meeting, type ReadyWait, type RetryKnobs, STARTING_POLL, type SendOptions, type Sent, type Situation, firstDetector, readyWait, retryProblems, unwatched };
@@ -64,5 +64,4 @@ export declare const heartbeat: (options: HeartbeatOptions) => Heartbeat;
64
64
  *
65
65
  * The time holds when each tick sends a ping: with `overlap`, or with a timeout below the interval.
66
66
  */
67
- export declare const detectionTime: (interval: number, timeout: number, misses: number) => number;
68
- //# sourceMappingURL=heartbeat.d.ts.map
67
+ export declare const detectionTime: (interval: number, timeout: number, misses: number) => number;
package/build/host.d.ts CHANGED
@@ -1,3 +1,9 @@
1
+ /**
2
+ * The host entry keeps a program alive on the computer of a user. It installs a Windows task or a
3
+ * systemd user unit. It keeps a discovery file and the lock of one instance. It also supervises a group
4
+ * of programs that start in sequence. Each effect of the system goes through `HostPorts`.
5
+ * A test gives `fakeHost()` of `./testing`, and a program gives `nodeHostPorts()`.
6
+ */
1
7
  import { a as FilePort, c as ProcessMark, d as StopSignal, f as joinPath, i as CommandResult, l as ProcessesPort, n as CommandOptions, o as HostPorts, r as CommandPort, s as NetPort, t as ChildHandle, u as SpawnRequest } from "./ports-DZoipkSD.js";
2
8
  import { t as Backoff } from "./backoff-QTRGfkEK.js";
3
9
  import { Y as MessageShape, c as Logger } from "./logger-B6drv9w0.js";
@@ -534,5 +540,4 @@ interface NodeHostOptions {
534
540
  * Only a program uses it. A test gives `fakeHost()` of `./testing`, thus it starts no process and installs no task.
535
541
  */
536
542
  export declare const nodeHostPorts: (options?: NodeHostOptions) => HostPorts;
537
- export { type ChildHandle, type CommandOptions, type CommandPort, type CommandRecord, type CommandResult, type Discovery, type DiscoveryFields, type DiscoveryRead, type EnvFile, type FilePort, type GroupOptions, type GroupSpec, type GroupSupervisor, type HostPorts, type InstallOptions, type InstanceLock, type InstanceOptions, type LockOptions, type LockOwner, type LockResult, type LockState, type LogSpec, type NetPort, type NodeHostOptions, type ProbeResult, type ProcessMark, type ProcessesPort, type ProgramPhase, type ProgramRestart, type ProgramSpec, type ProgramState, type ReadDiscoveryOptions, type ReadyProbe, type ReadySpec, type RestartPolicy, type RotatingLog, type ServiceOutcome, type ServicePaths, type ServiceSpec, type ServiceStart, type ServiceStatus, type SpawnRequest, type StopSignal, type StopSpec, type TaskContext, type TreeStopOutcome, joinPath };
538
- //# sourceMappingURL=host.d.ts.map
543
+ export { type ChildHandle, type CommandOptions, type CommandPort, type CommandRecord, type CommandResult, type Discovery, type DiscoveryFields, type DiscoveryRead, type EnvFile, type FilePort, type GroupOptions, type GroupSpec, type GroupSupervisor, type HostPorts, type InstallOptions, type InstanceLock, type InstanceOptions, type LockOptions, type LockOwner, type LockResult, type LockState, type LogSpec, type NetPort, type NodeHostOptions, type ProbeResult, type ProcessMark, type ProcessesPort, type ProgramPhase, type ProgramRestart, type ProgramSpec, type ProgramState, type ReadDiscoveryOptions, type ReadyProbe, type ReadySpec, type RestartPolicy, type RotatingLog, type ServiceOutcome, type ServicePaths, type ServiceSpec, type ServiceStart, type ServiceStatus, type SpawnRequest, type StopSignal, type StopSpec, type TaskContext, type TreeStopOutcome, joinPath };
@@ -327,5 +327,4 @@ export declare const sessionCheckDetection: (knobs: SessionCheckKnobs) => Extent
327
327
  * above zero, because the check is the only bound of the PING.
328
328
  */
329
329
  export declare const sessionCheckProblems: (name: string, knobs: SessionCheckKnobs) => string[];
330
- export { type AgentEvents, type AgentExchange, type AgentFactory, type AgentRequest, type Attempt, type CheckOptions, type CheckRequest, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, type H2Session, type HttpAgent, type HttpAgentOptions, type HttpCall, type HttpClient, type HttpClientKnobs, type HttpClientOptions, type HttpClientSpec, type HttpResponse, type HttpSocket, MANIFESTATIONS, type Manifestation, type Meeting, STARTING_POLL, type SendOptions, type Sent, type SessionCheck, type SessionCheckKnobs, type SessionCheckOptions, type SessionClose, type Situation, firstDetector, unwatched };
331
- //# sourceMappingURL=http-client.d.ts.map
330
+ export { type AgentEvents, type AgentExchange, type AgentFactory, type AgentRequest, type Attempt, type CheckOptions, type CheckRequest, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, type H2Session, type HttpAgent, type HttpAgentOptions, type HttpCall, type HttpClient, type HttpClientKnobs, type HttpClientOptions, type HttpClientSpec, type HttpResponse, type HttpSocket, MANIFESTATIONS, type Manifestation, type Meeting, STARTING_POLL, type SendOptions, type Sent, type SessionCheck, type SessionCheckKnobs, type SessionCheckOptions, type SessionClose, type Situation, firstDetector, unwatched };
package/build/http.d.ts CHANGED
@@ -350,5 +350,4 @@ interface HandleOptions<T> extends Omit<OutcomeOptions<T>, "keepAlive" | "retryA
350
350
  * - The response is unary, or a stream with the option `stream`, as `writeOutcome` writes it.
351
351
  */
352
352
  export declare const handle: <T>(controller: string, route: HandledRoute, work: HandledWork<T>, options?: HandleOptions<T>) => RequestHandler;
353
- export type { EdgeServer, HandleOptions, HandledRoute, HandledWork, HealthSource, HttpKnobs, HttpTransport, HttpTransportKnobs, HttpTransportOptions, MountContext, MountOptions, MountStage, OutcomeOptions, OutcomeResponse, ProbeHandlerOptions, ProbeKind, ProbePaths, ProbeResponse, ProbeServer, ProbeServerOptions, RequestHandler, ResponsePart, StreamFormat, UpgradeHandler, UpgradeMatch, UpgradeSocket };
354
- //# sourceMappingURL=http.d.ts.map
353
+ export type { EdgeServer, HandleOptions, HandledRoute, HandledWork, HealthSource, HttpKnobs, HttpTransport, HttpTransportKnobs, HttpTransportOptions, MountContext, MountOptions, MountStage, OutcomeOptions, OutcomeResponse, ProbeHandlerOptions, ProbeKind, ProbePaths, ProbeResponse, ProbeServer, ProbeServerOptions, RequestHandler, ResponsePart, StreamFormat, UpgradeHandler, UpgradeMatch, UpgradeSocket };
package/build/index.d.ts CHANGED
@@ -411,5 +411,4 @@ export declare const capKnob: (phase: string) => string;
411
411
  export declare const drainMachine: (description: ServiceDescription) => Machine;
412
412
  /** These are the static machines of the runtime, by the name that their events carry. */
413
413
  export declare const MACHINES: Readonly<Record<Exclude<MachineName, "drain" | "client">, Machine>>;
414
- export { type Allowed, type Backoff, type Binding, type Bound, type CallContext, type Cancel, type CapacityRefused, type Change, type Check, type CheckFn, type CheckMetrics, type CheckVerdict, type Claim, type Clock, type Compressed, type Compression, type ConsoleLoggerOptions, type ConsoleTarget, type Controller, type ControllerBuilder, type CooperativeFloor, type Coupling, DRAIN_RULES, DURATION_FRACTIONS, type Decision, type DelayBand, type Dependency, type DependencyHandle, type DurationHistogram, EPISODES_KEPT, EXIT_SIGNALS, type EmbeddedProcess, type Episode, type Epochs, type Evaluated, type ExitCodes, type ExitSignal, type ExitTrigger, FORMAT, type FailsBy, type Finding, type Gate, type Health, type HealthMetrics, type HealthServer, type HealthVerdict, type Heartbeat, type HeartbeatOptions, type HostStream, type Idempotency, type IdentityType, type IncomingHeaders, type Inequality, type IterationContext, type Jitter, type JobAction, type JobContext, type JobFailure, type JobSettle, type JobSource, type KeyState, type KeyedLimiter, LOG_LEVELS, type Lifecycle, type LifecycleEvent, type LifecycleState, type LimitPolicy, type LimitRule, type Limiter, type LimiterEviction, type LimiterSpec, type LimiterState, type LimiterStore, type LimiterStoreSpec, type LocalLimiter, type LogEntry, type LogFields, type LogFormat, type LogLevel, type Logger, type MachineName, type MemoryStore, type MessageShape, type MessageTrigger, O04, O09, O10, O16, type Operation, type OperationOf, type Outcome, PROCESS_TRIGGERS, type Phase, type PhaseContext, type PhaseWork, type PlatformClockOptions, type PodTiming, type Poll, type ProbeAnswer, type ProbeKind, type ProcessHost, type ProcessPort, type ProcessTrigger, type Profile, type ProgressMarks, type QueueDrain, type QueueDrainOptions, type QueueKnobs, type Recorder, type RedeliveryPolicy, type RefusalCause, type Refused, type RepeatSignal, type RequestEnd, type RequestEvent, type RequestFn, type RequestOptions, type RequestStream, type RequestWork, type RequeueCause, type Result, type Retrier, type RetrierOptions, type RetryOptions, type RoutePattern, type RouteRequest, type Rule, type RunOptions, SLIDING_WINDOW_MACHINE, STAGES, type Scenario, type ScenarioValue, type ScopedChange, type ServiceBuilder, type ServiceDescription, type ShutdownOptions, type Side, type SlidingWindow, type Span, type Stage, type StartOptions, type Statistic, type Step, type Stop, type StopWay, type StoreFailure, TOKEN_BUCKET_MACHINE, type TakeRequest, type TakeStep, type Term, type TimerMark, type TimerMarks, type Timing, type TokenBucket, type TraceIds, type TraceIdsSource, type Transport, type TransportImpl, UNCAUGHT_ORIGINS, type UncaughtOptions, type UncaughtOrigin, type UnitRequest, type Verdict, type WaitCause, type WaitRefused, type Watchdog, type WatchdogSpec, type WorkerKnobs, type WorkerLoop, type WorkerLoopOptions, asDebounce, asWindow, atLeast, backoffBand, backoffDelay, backoffProblems, capacityOf, compress, compression, consoleLogger, cooperativeAbortAt, daemon, decide, detectionTime, embeddedProcess, ephemeral, evaluate, failSpan, freeAt, heartbeat, heartbeatDetection, idleSpan, inequalities, isExitCode, isExitSignal, isMessageShape, keyedLimiter, kubernetes, limitRule, limiterMachine, limiterProblems, limiterStateOf, localDev, logEvents, longestRetryAfter, matchesMessage, mayReissue, memoryStore, nodeProcess, overCapacity, platformClock, processPortOf, queueDrain, realClock, recoverSpan, redact, redeliverOnce, replay, retryAfterSeconds, service, stageRank, symbolsOf, unitsOf, verdictOf, watchdog };
415
- //# sourceMappingURL=index.d.ts.map
414
+ export { type Allowed, type Backoff, type Binding, type Bound, type CallContext, type Cancel, type CapacityRefused, type Change, type Check, type CheckFn, type CheckMetrics, type CheckVerdict, type Claim, type Clock, type Compressed, type Compression, type ConsoleLoggerOptions, type ConsoleTarget, type Controller, type ControllerBuilder, type CooperativeFloor, type Coupling, DRAIN_RULES, DURATION_FRACTIONS, type Decision, type DelayBand, type Dependency, type DependencyHandle, type DurationHistogram, EPISODES_KEPT, EXIT_SIGNALS, type EmbeddedProcess, type Episode, type Epochs, type Evaluated, type ExitCodes, type ExitSignal, type ExitTrigger, FORMAT, type FailsBy, type Finding, type Gate, type Health, type HealthMetrics, type HealthServer, type HealthVerdict, type Heartbeat, type HeartbeatOptions, type HostStream, type Idempotency, type IdentityType, type IncomingHeaders, type Inequality, type IterationContext, type Jitter, type JobAction, type JobContext, type JobFailure, type JobSettle, type JobSource, type KeyState, type KeyedLimiter, LOG_LEVELS, type Lifecycle, type LifecycleEvent, type LifecycleState, type LimitPolicy, type LimitRule, type Limiter, type LimiterEviction, type LimiterSpec, type LimiterState, type LimiterStore, type LimiterStoreSpec, type LocalLimiter, type LogEntry, type LogFields, type LogFormat, type LogLevel, type Logger, type MachineName, type MemoryStore, type MessageShape, type MessageTrigger, O04, O09, O10, O16, type Operation, type OperationOf, type Outcome, PROCESS_TRIGGERS, type Phase, type PhaseContext, type PhaseWork, type PlatformClockOptions, type PodTiming, type Poll, type ProbeAnswer, type ProbeKind, type ProcessHost, type ProcessPort, type ProcessTrigger, type Profile, type ProgressMarks, type QueueDrain, type QueueDrainOptions, type QueueKnobs, type Recorder, type RedeliveryPolicy, type RefusalCause, type Refused, type RepeatSignal, type RequestEnd, type RequestEvent, type RequestFn, type RequestOptions, type RequestStream, type RequestWork, type RequeueCause, type Result, type Retrier, type RetrierOptions, type RetryOptions, type RoutePattern, type RouteRequest, type Rule, type RunOptions, SLIDING_WINDOW_MACHINE, STAGES, type Scenario, type ScenarioValue, type ScopedChange, type ServiceBuilder, type ServiceDescription, type ShutdownOptions, type Side, type SlidingWindow, type Span, type Stage, type StartOptions, type Statistic, type Step, type Stop, type StopWay, type StoreFailure, TOKEN_BUCKET_MACHINE, type TakeRequest, type TakeStep, type Term, type TimerMark, type TimerMarks, type Timing, type TokenBucket, type TraceIds, type TraceIdsSource, type Transport, type TransportImpl, UNCAUGHT_ORIGINS, type UncaughtOptions, type UncaughtOrigin, type UnitRequest, type Verdict, type WaitCause, type WaitRefused, type Watchdog, type WatchdogSpec, type WorkerKnobs, type WorkerLoop, type WorkerLoopOptions, asDebounce, asWindow, atLeast, backoffBand, backoffDelay, backoffProblems, capacityOf, compress, compression, consoleLogger, cooperativeAbortAt, daemon, decide, detectionTime, embeddedProcess, ephemeral, evaluate, failSpan, freeAt, heartbeat, heartbeatDetection, idleSpan, inequalities, isExitCode, isExitSignal, isMessageShape, keyedLimiter, kubernetes, limitRule, limiterMachine, limiterProblems, limiterStateOf, localDev, logEvents, longestRetryAfter, matchesMessage, mayReissue, memoryStore, nodeProcess, overCapacity, platformClock, processPortOf, queueDrain, realClock, recoverSpan, redact, redeliverOnce, replay, retryAfterSeconds, service, stageRank, symbolsOf, unitsOf, verdictOf, watchdog };
@@ -371,5 +371,4 @@ interface Lifecycle {
371
371
  */
372
372
  keepAlive(): boolean;
373
373
  }
374
- export { DurationHistogram as A, HealthVerdict as C, CheckFn as D, StartOptions as E, Outcome as F, Result as I, Trace as L, Episode as M, HealthMetrics as N, CheckMetrics as O, redact as P, Health as S, ProbeKind as T, RequestFn as _, PhaseContext as a, RequestWork as b, STAGES as c, TransportImpl as d, UncaughtOptions as f, RequestEvent as g, RequestEnd as h, LifecycleState as i, EPISODES_KEPT as j, DURATION_FRACTIONS as k, ShutdownOptions as l, stageRank as m, HealthServer as n, PhaseWork as o, cooperativeAbortAt as p, Lifecycle as r, RunOptions as s, DependencyHandle as t, Stage as u, RequestOptions as v, ProbeAnswer as w, CheckVerdict as x, RequestStream as y };
375
- //# sourceMappingURL=lifecycle-D0J-zwZF.d.ts.map
374
+ export { DurationHistogram as A, HealthVerdict as C, CheckFn as D, StartOptions as E, Outcome as F, Result as I, Trace as L, Episode as M, HealthMetrics as N, CheckMetrics as O, redact as P, Health as S, ProbeKind as T, RequestFn as _, PhaseContext as a, RequestWork as b, STAGES as c, TransportImpl as d, UncaughtOptions as f, RequestEvent as g, RequestEnd as h, LifecycleState as i, EPISODES_KEPT as j, DURATION_FRACTIONS as k, ShutdownOptions as l, stageRank as m, HealthServer as n, PhaseWork as o, cooperativeAbortAt as p, Lifecycle as r, RunOptions as s, DependencyHandle as t, Stage as u, RequestOptions as v, ProbeAnswer as w, CheckVerdict as x, RequestStream as y };
@@ -39,5 +39,4 @@ declare const limiterMachine: (policy: LimitPolicy) => Machine;
39
39
  * nothing. A key equal to a new key is `new`, and a key whose next take `decide` refuses is `limited`.
40
40
  */
41
41
  declare const limiterStateOf: (rule: LimitRule, state: KeyState | undefined, now: number) => LimiterState;
42
- export { limiterStateOf as a, limiterMachine as i, SLIDING_WINDOW_MACHINE as n, TOKEN_BUCKET_MACHINE as r, LimiterState as t };
43
- //# sourceMappingURL=limiter-Djw39d_S.d.ts.map
42
+ export { limiterStateOf as a, limiterMachine as i, SLIDING_WINDOW_MACHINE as n, TOKEN_BUCKET_MACHINE as r, LimiterState as t };
@@ -485,5 +485,4 @@ declare const consoleLogger: (options?: ConsoleLoggerOptions) => Logger;
485
485
  * With the description, the entry of a phase also gives its cap. A failure of the logger does not stop the lifecycle.
486
486
  */
487
487
  declare const logEvents: (logger: Logger, description?: ServiceDescription) => Recorder;
488
- export { ProcessTrigger as $, Step as A, recoverSpan as B, FORMAT as C, ProgressMarks as D, Phase as E, Timing as F, EmbeddedProcess as G, RoutePattern as H, asDebounce as I, HostStream as J, ExitSignal as K, asWindow as L, FailsBy as M, Poll as N, RepeatSignal as O, Span as P, ProcessPort as Q, failSpan as R, ExitCodes as S, MessageTrigger as T, RouteRequest as U, OperationOf as V, EXIT_SIGNALS as W, PROCESS_TRIGGERS as X, MessageShape as Y, ProcessHost as Z, Check as _, LogFields as a, isMessageShape as at, Coupling as b, Logger as c, processPortOf as ct, atLeast as d, mayReissue as dt, UNCAUGHT_ORIGINS as et, consoleLogger as f, Recorder as g, MachineName as h, LogEntry as i, isExitSignal as it, Transport as j, ServiceDescription as k, TraceIds as l, Idempotency as lt, LifecycleEvent as m, ConsoleTarget as n, embeddedProcess as nt, LogFormat as o, matchesMessage as ot, logEvents as p, ExitTrigger as q, LOG_LEVELS as r, isExitCode as rt, LogLevel as s, nodeProcess as st, ConsoleLoggerOptions as t, UncaughtOrigin as tt, TraceIdsSource as u, Operation as ut, Controller as v, Gate as w, Dependency as x, CooperativeFloor as y, heartbeatDetection as z };
489
- //# sourceMappingURL=logger-B6drv9w0.d.ts.map
488
+ export { ProcessTrigger as $, Step as A, recoverSpan as B, FORMAT as C, ProgressMarks as D, Phase as E, Timing as F, EmbeddedProcess as G, RoutePattern as H, asDebounce as I, HostStream as J, ExitSignal as K, asWindow as L, FailsBy as M, Poll as N, RepeatSignal as O, Span as P, ProcessPort as Q, failSpan as R, ExitCodes as S, MessageTrigger as T, RouteRequest as U, OperationOf as V, EXIT_SIGNALS as W, PROCESS_TRIGGERS as X, MessageShape as Y, ProcessHost as Z, Check as _, LogFields as a, isMessageShape as at, Coupling as b, Logger as c, processPortOf as ct, atLeast as d, mayReissue as dt, UNCAUGHT_ORIGINS as et, consoleLogger as f, Recorder as g, MachineName as h, LogEntry as i, isExitSignal as it, Transport as j, ServiceDescription as k, TraceIds as l, Idempotency as lt, LifecycleEvent as m, ConsoleTarget as n, embeddedProcess as nt, LogFormat as o, matchesMessage as ot, logEvents as p, ExitTrigger as q, LOG_LEVELS as r, isExitCode as rt, LogLevel as s, nodeProcess as st, ConsoleLoggerOptions as t, UncaughtOrigin as tt, TraceIdsSource as u, Operation as ut, Controller as v, Gate as w, Dependency as x, CooperativeFloor as y, heartbeatDetection as z };
@@ -293,5 +293,4 @@ export declare const MONGO_STARTING_POLL: Poll;
293
293
  * - `retrans_giveup_time` 924.6 s: the give-up of Linux at `tcp_retries2 = 15`. The cells measured 12.936 s at `tcp_retries2 = 5`.
294
294
  */
295
295
  export declare const MONGO_STARTING_KNOBS: MongoKnobs;
296
- export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, MANIFESTATIONS, type Manifestation, type Meeting, type MongoClient, type MongoClientOptions, type MongoClientSpec, type MongoConnectOptions, type MongoDb, type MongoDocument, type MongoDriverClient, type MongoDriverOptions, type MongoEventName, type MongoEvents, type MongoFactory, type MongoJoin, type MongoKnobs, type MongoSeed, type MongoServer, type MongoStep, STARTING_POLL, type SendOptions, type Sent, type Situation, firstDetector, unwatched };
297
- //# sourceMappingURL=mongodb.d.ts.map
296
+ export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, MANIFESTATIONS, type Manifestation, type Meeting, type MongoClient, type MongoClientOptions, type MongoClientSpec, type MongoConnectOptions, type MongoDb, type MongoDocument, type MongoDriverClient, type MongoDriverOptions, type MongoEventName, type MongoEvents, type MongoFactory, type MongoJoin, type MongoKnobs, type MongoSeed, type MongoServer, type MongoStep, STARTING_POLL, type SendOptions, type Sent, type Situation, firstDetector, unwatched };
package/build/otel.d.ts CHANGED
@@ -7,5 +7,4 @@ export declare const traceIds: () => TraceIds | undefined;
7
7
  * context, thus it gets no value of the context that runs the server. A call that is not trusted loses its baggage.
8
8
  */
9
9
  export declare const callContext: CallContext;
10
- export type { CallContext, IncomingHeaders, TraceIds, TraceIdsSource };
11
- //# sourceMappingURL=otel.d.ts.map
10
+ export type { CallContext, IncomingHeaders, TraceIds, TraceIdsSource };
package/build/pg.d.ts CHANGED
@@ -216,5 +216,4 @@ export declare const PG_STARTING_POLL: Poll;
216
216
  * - `retrans_giveup_time` 924.6 s: the give-up of Linux at `tcp_retries2 = 15`. The cells measured 3.120 s at `tcp_retries2 = 3`.
217
217
  */
218
218
  export declare const PG_STARTING_KNOBS: PgKnobs;
219
- export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, MANIFESTATIONS, type Manifestation, type Meeting, type PgClient, type PgClientOptions, type PgClientSpec, type PgJoin, type PgKnobs, type PgPool, type PgPoolClient, type PgPoolOptions, type PgResult, type PgSocket, type PgStep, type PoolFactory, STARTING_POLL, type SendOptions, type Sent, type Situation, firstDetector, unwatched };
220
- //# sourceMappingURL=pg.d.ts.map
219
+ export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, MANIFESTATIONS, type Manifestation, type Meeting, type PgClient, type PgClientOptions, type PgClientSpec, type PgJoin, type PgKnobs, type PgPool, type PgPoolClient, type PgPoolOptions, type PgResult, type PgSocket, type PgStep, type PoolFactory, STARTING_POLL, type SendOptions, type Sent, type Situation, firstDetector, unwatched };
@@ -206,5 +206,4 @@ declare const overCapacity: (rule: LimitRule, units: number) => CapacityRefused
206
206
  * - A take of `units` units is the same as `units` takes of 1 at one time, when all of them are let in.
207
207
  */
208
208
  declare const decide: (rule: LimitRule, state: KeyState | undefined, now: number, units?: number) => TakeStep;
209
- export { limitRule as C, retryAfterSeconds as D, overCapacity as E, unitsOf as O, idleSpan as S, longestRetryAfter as T, WaitCause as _, LimitPolicy as a, decide as b, LimiterEviction as c, RefusalCause as d, Refused as f, TokenBucket as g, TakeStep as h, KeyState as i, LimiterSpec as l, StoreFailure as m, CapacityRefused as n, LimitRule as o, SlidingWindow as p, Decision as r, Limiter as s, Allowed as t, LimiterStoreSpec as u, WaitRefused as v, limiterProblems as w, freeAt as x, capacityOf as y };
210
- //# sourceMappingURL=policy-CBcK2XGg.d.ts.map
209
+ export { limitRule as C, retryAfterSeconds as D, overCapacity as E, unitsOf as O, idleSpan as S, longestRetryAfter as T, WaitCause as _, LimitPolicy as a, decide as b, LimiterEviction as c, RefusalCause as d, Refused as f, TokenBucket as g, TakeStep as h, KeyState as i, LimiterSpec as l, StoreFailure as m, CapacityRefused as n, LimitRule as o, SlidingWindow as p, Decision as r, Limiter as s, Allowed as t, LimiterStoreSpec as u, WaitRefused as v, limiterProblems as w, freeAt as x, capacityOf as y };
@@ -119,5 +119,4 @@ interface HostPorts {
119
119
  }
120
120
  /** This function joins the parts of a path with the separator of the platform. */
121
121
  declare const joinPath: (platform: string, ...parts: readonly string[]) => string;
122
- export { FilePort as a, ProcessMark as c, StopSignal as d, joinPath as f, CommandResult as i, ProcessesPort as l, CommandOptions as n, HostPorts as o, CommandPort as r, NetPort as s, ChildHandle as t, SpawnRequest as u };
123
- //# sourceMappingURL=ports-DZoipkSD.d.ts.map
122
+ export { FilePort as a, ProcessMark as c, StopSignal as d, joinPath as f, CommandResult as i, ProcessesPort as l, CommandOptions as n, HostPorts as o, CommandPort as r, NetPort as s, ChildHandle as t, SpawnRequest as u };
@@ -143,5 +143,4 @@ declare const redeliverOnce: <J>(then: JobAction | RedeliveryPolicy<J>, poison?:
143
143
  * that does not end in the bound gets `reject`.
144
144
  */
145
145
  declare const queueDrain: <J>(knobs: QueueKnobs, options: QueueDrainOptions<J>) => QueueDrain;
146
- export { JobSource as a, QueueKnobs as c, queueDrain as d, redeliverOnce as f, JobSettle as i, RedeliveryPolicy as l, JobContext as n, QueueDrain as o, UnitRequest as p, JobFailure as r, QueueDrainOptions as s, JobAction as t, RequeueCause as u };
147
- //# sourceMappingURL=queue-DXdw1vLO.d.ts.map
146
+ export { JobSource as a, QueueKnobs as c, queueDrain as d, redeliverOnce as f, JobSettle as i, RedeliveryPolicy as l, JobContext as n, QueueDrain as o, UnitRequest as p, JobFailure as r, QueueDrainOptions as s, JobAction as t, RequeueCause as u };
@@ -280,5 +280,4 @@ export declare const RABBIT_STARTING_POLL: Poll;
280
280
  * - `retrans_giveup_time` 924.6 s: the give-up of Linux at `tcp_retries2 = 15`.
281
281
  */
282
282
  export declare const RABBIT_STARTING_KNOBS: RabbitKnobs;
283
- export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, MANIFESTATIONS, type Manifestation, type Meeting, type RabbitChannel, type RabbitChannelEvent, type RabbitClient, type RabbitClientOptions, type RabbitClientSpec, type RabbitConnectOptions, type RabbitConnection, type RabbitConnectionEvent, type RabbitDelivery, type RabbitFactory, type RabbitJobs, type RabbitJoin, type RabbitKnobs, type RabbitMessage, type RabbitPublish, type RabbitPublishOptions, type RabbitSeed, type RabbitSocketOptions, type ReadyWait, type RetryKnobs, STARTING_POLL, type SendOptions, type Sent, type Situation, firstDetector, readyWait, retryBackoff, retryProblems, unwatched };
284
- //# sourceMappingURL=rabbitmq.d.ts.map
283
+ export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, MANIFESTATIONS, type Manifestation, type Meeting, type RabbitChannel, type RabbitChannelEvent, type RabbitClient, type RabbitClientOptions, type RabbitClientSpec, type RabbitConnectOptions, type RabbitConnection, type RabbitConnectionEvent, type RabbitDelivery, type RabbitFactory, type RabbitJobs, type RabbitJoin, type RabbitKnobs, type RabbitMessage, type RabbitPublish, type RabbitPublishOptions, type RabbitSeed, type RabbitSocketOptions, type ReadyWait, type RetryKnobs, STARTING_POLL, type SendOptions, type Sent, type Situation, firstDetector, readyWait, retryBackoff, retryProblems, unwatched };
package/build/redis.d.ts CHANGED
@@ -204,5 +204,4 @@ export declare const REDIS_CLIENT_MACHINE: Machine;
204
204
  export declare const REDIS_OPERATIONS: Readonly<Record<string, Operation>>;
205
205
  /** This function gives the name of a command as the table writes it: upper case, and CLIENT ID with its subcommand. */
206
206
  export declare const commandName: (command: string, args: readonly unknown[]) => string;
207
- export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type ConnectionFactory, type Detector, type DialFn, type Factory, type Join, MANIFESTATIONS, type Manifestation, type Meeting, type RedisClient, type RedisClientOptions, type RedisClientSpec, type RedisConnection, type RedisConnectionOptions, type RedisKnobs, type RedisLimiterOptions, type RedisSender, type RedisSocket, type Sent, type Situation, firstDetector, heartbeatDetection, retryBackoff, unwatched };
208
- //# sourceMappingURL=redis.d.ts.map
207
+ export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type ConnectionFactory, type Detector, type DialFn, type Factory, type Join, MANIFESTATIONS, type Manifestation, type Meeting, type RedisClient, type RedisClientOptions, type RedisClientSpec, type RedisConnection, type RedisConnectionOptions, type RedisKnobs, type RedisLimiterOptions, type RedisSender, type RedisSocket, type Sent, type Situation, firstDetector, heartbeatDetection, retryBackoff, unwatched };
@@ -137,5 +137,4 @@ declare const O16: Rule;
137
137
  * rules of this set that guard that way. `DRAIN_RULE_IDS` gives their identifiers.
138
138
  */
139
139
  declare const DRAIN_RULES: readonly Rule[];
140
- export { symbolsOf as C, inequalities as S, TimerMarks as _, O16 as a, compression as b, Change as c, Evaluated as d, Inequality as f, TimerMark as g, Term as h, O10 as i, Compressed as l, Side as m, O04 as n, Binding as o, Rule as p, O09 as r, Bound as s, DRAIN_RULES as t, Compression as u, Verdict as v, verdictOf as w, evaluate as x, compress as y };
141
- //# sourceMappingURL=rules-HyFCBStQ.d.ts.map
140
+ export { symbolsOf as C, inequalities as S, TimerMarks as _, O16 as a, compression as b, Change as c, Evaluated as d, Inequality as f, TimerMark as g, Term as h, O10 as i, Compressed as l, Side as m, O04 as n, Binding as o, Rule as p, O09 as r, Bound as s, DRAIN_RULES as t, Compression as u, Verdict as v, verdictOf as w, evaluate as x, compress as y };
@@ -88,5 +88,4 @@ interface LocalLimiter extends KeyedLimiter {
88
88
  */
89
89
  declare function keyedLimiter(name: string, spec: LimiterSpec, store: MemoryStore): LocalLimiter;
90
90
  declare function keyedLimiter(name: string, spec: LimiterSpec, store: LimiterStore): KeyedLimiter;
91
- export { TakeRequest as a, MemoryStore as i, LimiterStore as n, keyedLimiter as o, LocalLimiter as r, memoryStore as s, KeyedLimiter as t };
92
- //# sourceMappingURL=store-DFwFKrsB.d.ts.map
91
+ export { TakeRequest as a, MemoryStore as i, LimiterStore as n, keyedLimiter as o, LocalLimiter as r, memoryStore as s, KeyedLimiter as t };
@@ -315,5 +315,4 @@ export interface QuietServer {
315
315
  * and a black hole that keeps the connection look the same.
316
316
  */
317
317
  export declare const quietServer: () => Promise<QuietServer>;
318
- export { type CallerView, type ConformanceOptions, type ConformanceRecord, type ContractCase, type ContractOptions, type FakeChild, type FakeClock, type FakeHost, type FakeHostOptions, type FakeProcess, type FakeProcessOptions, type HeldWork, type RecordedCommand, type RecordedSignal, type SeenEnd, type StreamCall, type SubjectFactory, type TransportSubject, fakeClock };
319
- //# sourceMappingURL=testing.d.ts.map
318
+ export { type CallerView, type ConformanceOptions, type ConformanceRecord, type ContractCase, type ContractOptions, type FakeChild, type FakeClock, type FakeHost, type FakeHostOptions, type FakeProcess, type FakeProcessOptions, type HeldWork, type RecordedCommand, type RecordedSignal, type SeenEnd, type StreamCall, type SubjectFactory, type TransportSubject, fakeClock };
@@ -261,5 +261,4 @@ export declare const WS_CLIENT_STARTING_MISSES = 1;
261
261
  * - `retrans_giveup_time` 924.6 s: the give-up of Linux at `tcp_retries2 = 15`.
262
262
  */
263
263
  export declare const WS_CLIENT_STARTING_KNOBS: WsKnobs;
264
- export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, type Judge, MANIFESTATIONS, type Manifestation, type Meeting, type ReadyWait, type RetryKnobs, type RetrySchedule, STARTING_POLL, type SendOptions, type Sent, type Situation, type WsClient, type WsClientOptions, type WsClientSpec, type WsConnectOptions, type WsConnection, type WsDriverOptions, type WsFactory, type WsJoin, type WsKnobs, type WsListeners, type WsMessageListener, type WsReplies, type WsReply, type WsRequest, type WsResponse, firstDetector, readyWait, retryBackoff, retryProblems, retrySchedule, statusLineJudge, unwatched };
265
- //# sourceMappingURL=websocket.d.ts.map
264
+ export { type Attempt, type CheckOptions, type Client, type ClientJoin, type ClientKnobs, type ClientOptions, type ClientSocket, type ClientSpec, type ClientStep, type Detector, type DialFn, type Factory, type Judge, MANIFESTATIONS, type Manifestation, type Meeting, type ReadyWait, type RetryKnobs, type RetrySchedule, STARTING_POLL, type SendOptions, type Sent, type Situation, type WsClient, type WsClientOptions, type WsClientSpec, type WsConnectOptions, type WsConnection, type WsDriverOptions, type WsFactory, type WsJoin, type WsKnobs, type WsListeners, type WsMessageListener, type WsReplies, type WsReply, type WsRequest, type WsResponse, firstDetector, readyWait, retryBackoff, retryProblems, retrySchedule, statusLineJudge, unwatched };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@mark1russell7/service",
4
- "version": "0.8.5",
4
+ "version": "0.8.7",
5
5
  "description": "A service declared as data before it starts, and its runtime: checks on jittered loops, a latch for each policy, probes from the cache, the startup in its sequence, and a staged, capped drain. The timer-ordering law checks the declaration. Its clock, heartbeat and backoff also work alone, in a browser too.",
6
6
  "keywords": [
7
7
  "service",
@@ -113,11 +113,11 @@
113
113
  "node": ">=22.19"
114
114
  },
115
115
  "dependencies": {
116
- "@mark1russell7/algebra": "^0.8.3",
116
+ "@mark1russell7/algebra": "^0.8.4",
117
117
  "@mark1russell7/collections": "^0.10.0",
118
- "@mark1russell7/quantity": "^0.3.3",
118
+ "@mark1russell7/quantity": "^0.3.5",
119
119
  "@mark1russell7/rigor-generators": "^0.1.0",
120
- "@mark1russell7/text": "^0.0.2"
120
+ "@mark1russell7/text": "^0.0.4"
121
121
  },
122
122
  "peerDependencies": {
123
123
  "@grpc/grpc-js": "^1.14.6",
@@ -158,14 +158,14 @@
158
158
  "devDependencies": {
159
159
  "@grpc/grpc-js": "1.14.6",
160
160
  "@mark1russell7/cue": "github:mark1russell7/cue#da04dd56699a2ae806ab64da5b1d677476afe69e",
161
- "@mark1russell7/harness": "^0.15.5",
162
- "@mark1russell7/otel-ts": "^0.4.0",
163
- "@mark1russell7/rigor-testkit": "^0.1.1",
161
+ "@mark1russell7/harness": "^0.15.6",
162
+ "@mark1russell7/otel-ts": "^0.7.4",
163
+ "@mark1russell7/rigor-testkit": "^0.1.2",
164
164
  "@opentelemetry/api": "^1.10.0",
165
- "@opentelemetry/api-logs": "^0.213.0",
165
+ "@opentelemetry/api-logs": "^0.223.0",
166
166
  "@opentelemetry/context-async-hooks": "^2.12.0",
167
167
  "@opentelemetry/core": "^2.12.0",
168
- "@opentelemetry/sdk-logs": "^0.213.0",
168
+ "@opentelemetry/sdk-logs": "^0.223.0",
169
169
  "@opentelemetry/sdk-metrics": "^2.12.0",
170
170
  "@opentelemetry/sdk-node": "~0.223.0",
171
171
  "@opentelemetry/sdk-trace-base": "^2.12.0",
@@ -173,7 +173,7 @@
173
173
  "@vitest/coverage-v8": "^5.0.3",
174
174
  "ioredis": "6.0.0",
175
175
  "testcontainers": "12.2.0",
176
- "tsdown": "^0.23.4",
176
+ "tsdown": "^0.23.7",
177
177
  "typescript": "^7.0.2",
178
178
  "vitest": "^5.0.3",
179
179
  "zod": "^4.6.6"