@selvajs/solve 1.3.0-beta.3 → 2.0.0-beta.11

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/server.d.cts DELETED
@@ -1,468 +0,0 @@
1
- import { t as SolveInput } from "./solve-input-BDv_JdvS.cjs";
2
- import { SchemaInput } from "@selvajs/schemas";
3
- import { DataTree, DefinitionRef as DefinitionRef$1, GrasshopperClient, GrasshopperComputeResponse, InputParam, SelvaEventTarget, SolveScheduler } from "@selvajs/compute/grasshopper";
4
- import { DefinitionRef, SolveDefinition, SolveDefinition as SolveDefinition$1, isDefinitionRef } from "@selvajs/compute/core";
5
- import { ILogger } from "@selvajs/platform";
6
- //#region src/server/client-cache.d.ts
7
- /**
8
- * Opaque identity of a compute server — construct only via `serverIdentity()`.
9
- * Kept opaque so "a server is now a pool of URLs behind one id" stays additive.
10
- */
11
- type ServerIdentity = string & {
12
- readonly __brand: 'ServerIdentity';
13
- };
14
- /** Minimal resolved-server shape the cache needs (a subset of the app's `ComputeServerConfig`). */
15
- interface ResolvedServer {
16
- id: string;
17
- serverUrl: string;
18
- /** Sent as the `RhinoComputeKey` header. */
19
- apiKey?: string;
20
- }
21
- export declare function serverIdentity(server: Pick<ResolvedServer, 'id'>): ServerIdentity;
22
- interface CachedClient {
23
- client: GrasshopperClient;
24
- scheduler: SolveScheduler;
25
- /**
26
- * Last Server-Timing decode/solve/encode, written by `onServerTiming`. The
27
- * scheduler runs up to `maxConcurrent` solves at once, so `last` alone can't
28
- * be trusted per-request: callers snapshot `seq` before their solve and only
29
- * attribute `last` to themselves if exactly one write happened since (see
30
- * the guard in `runSolvePipeline`), dropping it otherwise rather than risk
31
- * misattributing another request's timing.
32
- */
33
- rhinoTiming: {
34
- last: {
35
- decode: number;
36
- solve: number;
37
- encode: number;
38
- } | null;
39
- seq: number;
40
- };
41
- /**
42
- * Same snapshot-and-attribute pattern as `rhinoTiming`, for the scheduler's
43
- * `onSettle` cache verdict. `seq` increments on every settle (success or
44
- * error); `last` is written only on success.
45
- */
46
- solveMeta: {
47
- last: {
48
- fromCache: boolean;
49
- definitionReuploaded?: boolean;
50
- } | null;
51
- seq: number;
52
- };
53
- }
54
- /**
55
- * Debug verbosity: `false` is silent, `true` gives concise cache/timing logs
56
- * (`onDebugLog`), `'verbose'` also enables full lib-level request/response
57
- * dumps (incl. geometry) — a superset of `true`, not an independent setting.
58
- */
59
- type ClientCacheDebug = boolean | 'verbose';
60
- /** Config injected by the consuming app, so this module stays env-agnostic and testable. */
61
- interface ClientCacheConfig {
62
- /** Per-solve timeout forwarded to the scheduler (`ComputeLimits.solveDeadlineMs`). */
63
- solveDeadlineMs: number;
64
- cachesolve: boolean;
65
- /** Only meaningful with `cachesolve`. */
66
- cacheerroredsolves: boolean;
67
- /** Reference large definitions by server cache key instead of re-uploading. */
68
- reuseServerDefinitionCache: boolean;
69
- /**
70
- * Max solves that may wait in the FIFO queue, excluding in-flight solves
71
- * (capped at `maxConcurrent`, itself driven by the server's probed child
72
- * count). `0` = unbounded (`ComputeLimits.computeMaxQueueDepth`); a full
73
- * queue rejects new solves with `QUEUE_FULL`.
74
- */
75
- maxQueueDepth: number;
76
- /**
77
- * Max ms a solve may sit queued before executing; `0` = no deadline
78
- * (`ComputeLimits.computeQueueWaitMs`). Too long a wait rejects with
79
- * `QUEUE_TIMEOUT`.
80
- */
81
- queueWaitMs: number;
82
- /**
83
- * Byte budget for this client's in-process solve cache. Applies per warm
84
- * client — worst-case heap is this × `maxWarmComputeServers`. `0` disables
85
- * the cache (`ComputeLimits.computeSolveCacheBytes`, env `COMPUTE_SOLVE_CACHE_MB`).
86
- */
87
- responseCacheMaxBytes: number;
88
- debug: ClientCacheDebug;
89
- /** Max distinct warm compute servers before the LRU evicts the oldest. Default 16. */
90
- maxWarmComputeServers?: number;
91
- /** Sink for the debug lines. `onDebugLog` only fires when `debug` is not `false`. */
92
- onDebugLog?: (message: string) => void;
93
- }
94
- interface ClientCache {
95
- /**
96
- * Get (or create) the warm client + scheduler for a resolved compute server,
97
- * keyed by its `id`. `definitionGuid`, when present, is stamped as the
98
- * `X-Selva-Definition` header on this client's outbound solve/IO requests —
99
- * inert routing/telemetry metadata until a pool router exists.
100
- */
101
- getClient(server: ResolvedServer, opts?: {
102
- definitionGuid?: string;
103
- }): Promise<CachedClient>;
104
- /** Dispose and drop the warm client for `id`, so the next request rebuilds against fresh connection details. */
105
- evict(id: string | ServerIdentity): void;
106
- /** Solve-cache counters summed across every warm client. Counters die with the client that owns them, so totals can fall over time. */
107
- solveCacheStats(): SolveCacheStats;
108
- /**
109
- * Drop every retained solve result, keeping the warm clients (and their
110
- * connections and server-side definition pointers) intact. Nothing expires
111
- * these on its own — the byte budget is the only other pressure — so this is
112
- * the operator's release valve when a definition's inputs no longer describe
113
- * its output, e.g. it reads an external source that has since changed.
114
- */
115
- clearSolveCaches(): void;
116
- /** Dispose every warm client. Test seam / shutdown hook. */
117
- disposeAll(): void;
118
- }
119
- interface SolveCacheStats {
120
- warmClients: number;
121
- entries: number;
122
- bytes: number;
123
- hits: number;
124
- misses: number;
125
- /** Entries dropped under size/byte pressure (not replacement or manual clears). */
126
- evictions: number;
127
- }
128
- export declare function createClientCache(config: ClientCacheConfig): ClientCache;
129
- //#endregion
130
- //#region src/server/definition-byte-cache.d.ts
131
- /**
132
- * In-process cache of `.gh` definition bytes, keyed by immutable **version id**.
133
- *
134
- * Turns an eager `storage.get(fileKey)` on every solve request into a lazy
135
- * `DefinitionRef.load()`: the scheduler calls `load()` only when an upload is
136
- * unavoidable (a pointer-known re-solve never touches storage or this cache).
137
- *
138
- * The key MUST be the version id, never a `fileKey` — a delete-latest-then-
139
- * reupload can reuse a `fileKey` for different content, which would silently
140
- * serve one version's bytes for another with no diagnostic. Callers pass
141
- * `version.id`, and the returned `DefinitionRef.key` is that same id, so the
142
- * scheduler's own result/pointer cache keys on the same immutable identity.
143
- *
144
- * Eviction is LRU by total byte budget, not entry count — definitions range
145
- * from tens of KB to hundreds of MB, so a count cap would either pin
146
- * gigabytes or evict uselessly. `COMPUTE_DEFINITION_CACHE_MB` sets the
147
- * budget (see `createDefinitionByteCache`). No TTL: version ids are
148
- * immutable, so a cached entry can never go stale. An entry larger than the
149
- * whole budget is served but never retained.
150
- */
151
- /**
152
- * Per-`getOrLoad` outcome, observable after the scheduler has (or hasn't)
153
- * called `load()` — lets the solve pipeline emit a `def_bytes` Server-Timing
154
- * verdict (`skipped` / `hit` / `miss`).
155
- */
156
- interface ByteRefOutcome {
157
- loaded: boolean;
158
- fromCache: boolean;
159
- }
160
- /** A definition reference shaped for `@selvajs/compute`'s `DefinitionRef`. */
161
- interface ByteCacheRef {
162
- key: string;
163
- load: () => Promise<Uint8Array>;
164
- outcome: ByteRefOutcome;
165
- }
166
- interface ByteCacheStats {
167
- hits: number;
168
- misses: number;
169
- evictions: number;
170
- entries: number;
171
- bytes: number;
172
- }
173
- interface DefinitionByteCache {
174
- getOrLoad(versionId: string, load: () => Promise<Uint8Array>): ByteCacheRef;
175
- stats(): ByteCacheStats;
176
- clear(): void;
177
- }
178
- /**
179
- * @param maxBytes total retained-byte budget; `0` (or negative) disables caching
180
- * entirely — every `load()` calls the loader and nothing is retained.
181
- */
182
- export declare function createDefinitionByteCache(maxBytes: number): DefinitionByteCache;
183
- //#endregion
184
- //#region src/server/solve-pipeline.d.ts
185
- /** Compute-response contract version. Bump (and document the change) whenever the envelope's shape changes in a way a consumer could observe. */
186
- export declare const COMPUTE_CONTRACT_VERSION: 1;
187
- export declare const COMPUTE_VERSION_HEADER = "X-Selva-Compute-Version";
188
- type PipelineInput = SchemaInput & {
189
- minimum?: number;
190
- maximum?: number;
191
- stepSize?: number;
192
- };
193
- interface SolvePipelineArgs {
194
- /**
195
- * Raw `.gh` bytes, or a byte-cache `DefinitionRef` whose bytes the scheduler
196
- * materializes only when an upload is unavoidable — a pointer-known solve
197
- * moves zero bytes.
198
- */
199
- definitionSource: SolveDefinition$1;
200
- /** Mutable load outcome for a `DefinitionRef` source, so the `def_bytes` Server-Timing verdict can be emitted. Omit for raw-bytes solves. */
201
- byteRefOutcome?: ByteRefOutcome;
202
- /** Persisted input params; only those with a `paramType` are sent to the solve. */
203
- inputs: PipelineInput[];
204
- /**
205
- * A tree the caller already built with {@link buildSolveInputTree}; skips the
206
- * pipeline's own build and solves this object directly.
207
- *
208
- * A caller coalescing concurrent solves needs this: a single-flight key
209
- * derived from raw `{inputs, values}` would split two requests that transform
210
- * to the same tree, which is the identity the scheduler actually caches on.
211
- */
212
- inputTree?: DataTree[];
213
- /** User-chosen values keyed by input id; missing keys fall back to the schema default. */
214
- values: Record<string, unknown>;
215
- client: CachedClient;
216
- responseMaxBytes: number;
217
- /** Only phrases the timeout message — the scheduler enforces the deadline itself. */
218
- solveDeadlineMs: number;
219
- /** Client's `Accept-Encoding`; gzip is applied only when it advertises `gzip`. */
220
- acceptEncoding: string;
221
- /** Per-solve live-event callback the compute server hands to the definition; absent when the caller opened no stream. */
222
- selvaEvents?: SelvaEventTarget;
223
- /**
224
- * Forwarded to the scheduler so a client disconnect cancels the upstream
225
- * compute call. Its `aborted` flag also distinguishes a client disconnect
226
- * from the scheduler's own deadline firing.
227
- */
228
- signal: AbortSignal;
229
- /** Wall-clock origin (`performance.now()` at the top of the request) so `load`/`total` phase timings line up with the caller's pre-solve prep. */
230
- loadStartMs: number;
231
- /** Pre-solve "load" phase duration the caller already measured (auth + DB + fetch). */
232
- defLoadMs: number;
233
- /** Pre-solve prep sub-phase marks (`[label, ms]`), surfaced verbatim as `p_*` Server-Timing entries. */
234
- prepMarks?: [string, number][];
235
- }
236
- /** Phase timings the pipeline measured; the caller uses them for debug logging. */
237
- interface SolvePhaseMetrics {
238
- treeBuildMs: number;
239
- solveMs: number;
240
- serializeMs: number;
241
- gzipMs: number;
242
- serverTotalMs: number;
243
- serializedBytes: number;
244
- /** Null when compression was skipped. */
245
- compressedBytes: number | null;
246
- }
247
- /** A ready-to-send response: body + headers + the solve result + phase metrics. */
248
- interface SolveEnvelope {
249
- /** A gzip `Uint8Array` when `encoding === 'gzip'`, else the JSON string. */
250
- body: string | Uint8Array;
251
- encoding?: 'gzip';
252
- headers: Record<string, string>;
253
- result: GrasshopperComputeResponse;
254
- metrics: SolvePhaseMetrics;
255
- }
256
- /**
257
- * `ok` carries the envelope; every other variant names an expected failure the
258
- * calling route maps to a status code (timeout→504, client_abort→499,
259
- * too_large→413, shed→503+Retry-After, compute_error→generic 500/503).
260
- * `durationMs` on error variants is the solve wall time up to the failure, for
261
- * the metric record.
262
- */
263
- type SolveOutcome = {
264
- kind: 'ok';
265
- envelope: SolveEnvelope;
266
- solveMs: number;
267
- errorCount: number;
268
- warningCount: number;
269
- } | {
270
- kind: 'timeout';
271
- durationMs: number;
272
- message: string;
273
- } | {
274
- kind: 'client_abort';
275
- durationMs: number;
276
- } | {
277
- kind: 'too_large';
278
- } |
279
- /** Scheduler backpressure rejected the solve before it ran: queue was full (`queue_full`) or the wait exceeded the deadline (`queue_timeout`). Retryable — `retryAfterSeconds` is a backoff hint. */
280
- {
281
- kind: 'shed';
282
- durationMs: number;
283
- reason: 'queue_full' | 'queue_timeout';
284
- retryAfterSeconds: number;
285
- message: string;
286
- } | {
287
- kind: 'compute_error';
288
- durationMs: number;
289
- error: unknown;
290
- };
291
- /** The transformed input tree exactly as handed to the scheduler; `runSolvePipeline` calls this itself unless the caller supplies {@link SolvePipelineArgs.inputTree}. */
292
- export declare function buildSolveInputTree(inputs: PipelineInput[], values: Record<string, unknown>): DataTree[];
293
- export declare function runSolvePipeline(args: SolvePipelineArgs): Promise<SolveOutcome>;
294
- /**
295
- * Re-key a coalesced envelope to a single waiter's `Accept-Encoding`.
296
- *
297
- * The single-flight coalescer runs ONE pipeline execution for N identical
298
- * concurrent solves and hands every waiter the same {@link SolveEnvelope},
299
- * baked from the FIRST caller's `Accept-Encoding`. A later waiter with a
300
- * different `Accept-Encoding` would otherwise get a body labelled with the
301
- * wrong encoding — `Vary` can't help here, since it's one shared object, not a
302
- * cache lookup. Encoding is deliberately left out of the coalesce key so mixed
303
- * clients still coalesce; this adapts the shared result to each waiter instead.
304
- *
305
- * Only the correctness-critical direction is adapted: a gzip envelope served to
306
- * a non-gzip waiter is gunzipped back to JSON. The reverse (plain JSON to a
307
- * gzip-capable waiter) is left uncompressed — correct, just not maximally small.
308
- */
309
- export declare function adaptEnvelopeToEncoding(envelope: SolveEnvelope, acceptEncoding: string): {
310
- body: string | Uint8Array;
311
- headers: Record<string, string>;
312
- };
313
- //#endregion
314
- //#region src/server/transform-input.d.ts
315
- /**
316
- * `SchemaInput` has no `values`/`acceptedFormats` (those live on the layout item's config), so
317
- * valueList/file inputs here carry just the selected value with no option list.
318
- */
319
- export declare function transformInputParameter(input: SchemaInput & {
320
- minimum?: number;
321
- maximum?: number;
322
- stepSize?: number;
323
- }, value: unknown): InputParam;
324
- //#endregion
325
- //#region src/server/solve-cache-single-flight.d.ts
326
- /**
327
- * In-process single-flight — dogpile protection for every solve.
328
- *
329
- * Always on, not gated behind a result cache being configured: the dogpile is worst
330
- * when nothing else is caching, since N concurrent identical solves each pay a full
331
- * Rhino round trip (the scheduler doesn't coalesce in-flight requests itself, and
332
- * Rhino's `cachesolve` still costs a round trip per repeat). An earlier version
333
- * gated this on cache config and so disabled it in exactly the deployments most
334
- * exposed to a cold-key stampede — hot public definition plus a deploy.
335
- *
336
- * Per app instance, above `ISolveResultCache`. No cross-instance lease (Redis
337
- * `SET NX`) yet.
338
- *
339
- * The shared promise resolves to one value for every waiter, so `work` must return
340
- * something safe to share by reference — the solve pipeline's envelope qualifies
341
- * because the app serializes it per response.
342
- */
343
- interface SolveCacheSingleFlight {
344
- /**
345
- * Coalesces concurrent calls under the same key: the first caller runs `work`,
346
- * later callers for that key await the same promise, and the key frees as soon
347
- * as it settles.
348
- *
349
- * `onWaiterJoined` fires only on the owner's call, only while `work` is still
350
- * running, each time another caller joins. Ownership changes what the owner's
351
- * abort signal should mean: a solo run can cancel on its own client's
352
- * disconnect, but a shared run can't without 499-ing every waiter.
353
- */
354
- run<T>(key: string, work: () => Promise<T>, onWaiterJoined?: () => void): Promise<T>;
355
- inFlight(): number;
356
- }
357
- interface SolveCacheSingleFlightOptions {
358
- onJoin?: (key: string) => void;
359
- }
360
- export declare function createSolveCacheSingleFlight(options?: SolveCacheSingleFlightOptions): SolveCacheSingleFlight;
361
- //#endregion
362
- //#region src/server/solve-engine.d.ts
363
- /**
364
- * Subset of `ComputeLimits` (`@selvajs/server/compute`) the engine needs.
365
- * Pass the resolved object through as-is — extra fields are ignored.
366
- */
367
- interface SolveEngineLimits {
368
- solveDeadlineMs: number;
369
- computeResponseMaxBytes: number;
370
- computeReuseDefinitionCache: boolean;
371
- computeServerCachesolve: boolean;
372
- computeCacheErroredSolves: boolean;
373
- computeMaxQueueDepth: number;
374
- computeQueueWaitMs: number;
375
- computeDefinitionCacheBytes: number;
376
- computeSolveCacheBytes: number;
377
- }
378
- interface SolveEngineOptions {
379
- limits: SolveEngineLimits;
380
- logger?: ILogger;
381
- /** Max distinct warm compute servers before the LRU evicts the oldest. Default 16. */
382
- maxWarmComputeServers?: number;
383
- /** Concise cache/timing logs when truthy; `'verbose'` also dumps full lib-level requests/responses. Default off. */
384
- debug?: ClientCacheDebug;
385
- onDebugLog?: (message: string) => void;
386
- /** Fired when a caller joins an already-in-flight solve instead of running its own. */
387
- onSolveCoalesced?: (key: string) => void;
388
- }
389
- /**
390
- * Accepts every form `runSolvePipeline` does, plus `{versionId, load}` sugar
391
- * that builds (and caches) a `ByteCacheRef` internally. A `ByteCacheRef`
392
- * obtained ahead of time from `engine.definitionRef()` (e.g. to read bytes for
393
- * schema extraction before solving) is passed through as-is — detected by its
394
- * `outcome` field, which a plain `DefinitionRef` never has.
395
- */
396
- type SolveEngineDefinitionSource = Uint8Array | string | DefinitionRef$1 | ByteCacheRef | {
397
- versionId: string;
398
- load: () => Promise<Uint8Array>;
399
- };
400
- interface SolveEngineSolveArgs {
401
- server: ResolvedServer;
402
- definitionSource: SolveEngineDefinitionSource;
403
- /**
404
- * Coalesce-key identity for a raw `Uint8Array`/`string` source, which has
405
- * no natural identity the way a `DefinitionRef`'s `.key` does. Required in
406
- * that case — `solve()` throws rather than silently hashing the bytes.
407
- * Ignored for the other source forms.
408
- */
409
- definitionKey?: string;
410
- inputs: PipelineInput[];
411
- values: Record<string, unknown>;
412
- signal: AbortSignal;
413
- acceptEncoding?: string;
414
- /** Stamped as `X-Selva-Definition` on this solve's client. */
415
- definitionGuid?: string;
416
- loadStartMs?: number;
417
- defLoadMs?: number;
418
- prepMarks?: [string, number][];
419
- /**
420
- * Per-solve live-event callback. A coalesced waiter shares the first caller's
421
- * compute call, so only that caller's target reaches the definition; the
422
- * others still get the server-emitted start/end events on their own stream.
423
- */
424
- selvaEvents?: SelvaEventTarget;
425
- }
426
- interface FrameworkAgnosticResponse {
427
- status: number;
428
- headers: Record<string, string>;
429
- body: string | Uint8Array;
430
- }
431
- interface SolveEngineStats {
432
- client: SolveCacheStats;
433
- definitionBytes: ByteCacheStats;
434
- coalescing: {
435
- inFlight: number;
436
- };
437
- }
438
- export declare class SolveEngine {
439
- private readonly limits;
440
- private readonly clientCache;
441
- private readonly byteCache;
442
- private readonly singleFlight;
443
- constructor(options: SolveEngineOptions);
444
- getClient(server: ResolvedServer, opts?: {
445
- definitionGuid?: string;
446
- }): Promise<CachedClient>;
447
- definitionRef(versionId: string, load: () => Promise<Uint8Array>): ByteCacheRef;
448
- evictServer(id: string): void;
449
- clearSolveCaches(): void;
450
- /**
451
- * Drop every retained `.gh` byte entry. Safe at any time: entries key on an
452
- * immutable version id, so clearing costs a storage re-read and nothing else.
453
- */
454
- clearDefinitionCache(): void;
455
- stats(): SolveEngineStats;
456
- solve(args: SolveEngineSolveArgs): Promise<SolveOutcome>;
457
- toResponse(outcome: SolveOutcome, opts?: {
458
- onError?: (status: number, body: {
459
- message: string;
460
- retryAfter?: number;
461
- }) => never;
462
- }): FrameworkAgnosticResponse;
463
- toWebResponse(outcome: SolveOutcome): Response;
464
- private resolveDefinitionSource;
465
- }
466
- //#endregion
467
- export { type ByteCacheRef, type ByteCacheStats, type ByteRefOutcome, type CachedClient, type ClientCache, type ClientCacheConfig, type DefinitionByteCache, type DefinitionRef, type FrameworkAgnosticResponse, type PipelineInput, type ResolvedServer, type ServerIdentity, type SolveCacheSingleFlight, type SolveCacheSingleFlightOptions, type SolveCacheStats, type SolveDefinition, type SolveEngineDefinitionSource, type SolveEngineLimits, type SolveEngineOptions, type SolveEngineSolveArgs, type SolveEngineStats, type SolveEnvelope, type SolveInput, type SolveOutcome, type SolvePhaseMetrics, type SolvePipelineArgs, isDefinitionRef };
468
- //# sourceMappingURL=server.d.cts.map
package/dist/shared.cjs DELETED
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./outcome-DdbgqiIG.cjs");exports.SOLVE_BLOCKED_MARKER=e.i,exports.decodeOutcome=e.t,exports.finalizeResult=e.n,exports.outcomeFromComputeMessages=e.r;
package/dist/shared.d.cts DELETED
@@ -1,3 +0,0 @@
1
- import { a as SOLVE_BLOCKED_MARKER, c as SolveResult, i as outcomeFromComputeMessages, n as decodeOutcome, o as SolveDiagnostic, r as finalizeResult, s as SolveFn, t as SolveOutcome } from "./outcome-ePNabW7y.cjs";
2
- import { t as SolveInput } from "./solve-input-BDv_JdvS.cjs";
3
- export { SOLVE_BLOCKED_MARKER, type SolveDiagnostic, type SolveFn, type SolveInput, type SolveOutcome, type SolveResult, decodeOutcome, finalizeResult, outcomeFromComputeMessages };
@@ -1,15 +0,0 @@
1
- import { SchemaInput } from "@selvajs/schemas";
2
- //#region src/shared/solve-input.d.ts
3
- /**
4
- * A schema input carrying the optional numeric bounds the input transform reads. Bounds are optional
5
- * because they're only meaningful for numeric params (slider min/max/step) — text or geometry inputs
6
- * carry none.
7
- */
8
- type SolveInput = SchemaInput & {
9
- minimum?: number;
10
- maximum?: number;
11
- stepSize?: number;
12
- };
13
- //#endregion
14
- export { SolveInput as t };
15
- //# sourceMappingURL=solve-input-BDv_JdvS.d.cts.map
@@ -1,15 +0,0 @@
1
- import { SchemaInput } from "@selvajs/schemas";
2
- //#region src/shared/solve-input.d.ts
3
- /**
4
- * A schema input carrying the optional numeric bounds the input transform reads. Bounds are optional
5
- * because they're only meaningful for numeric params (slider min/max/step) — text or geometry inputs
6
- * carry none.
7
- */
8
- type SolveInput = SchemaInput & {
9
- minimum?: number;
10
- maximum?: number;
11
- stepSize?: number;
12
- };
13
- //#endregion
14
- export { SolveInput as t };
15
- //# sourceMappingURL=solve-input-BDv_JdvS.d.ts.map