@ultimat3/core 30.8.0 → 31.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +54 -58
- package/README.md +70 -27
- package/package.json +3 -2
- package/src/adapter-slot.ts +42 -0
- package/src/adapter.ts +24 -0
- package/src/audit.ts +31 -14
- package/src/aws-sigv4.ts +9 -3
- package/src/cache-vocabulary.ts +1 -1
- package/src/client-problem.ts +10 -3
- package/src/clock.ts +68 -14
- package/src/config-defaults.ts +4 -4
- package/src/config-keys.ts +1 -1
- package/src/config-removed.ts +11 -1
- package/src/config.ts +16 -20
- package/src/context.ts +2 -2
- package/src/cursor.ts +3 -11
- package/src/der.ts +65 -0
- package/src/error-render.ts +27 -1
- package/src/error-reporter-chain.ts +1 -1
- package/src/error-reporter-sentry-hooks.ts +85 -0
- package/src/error-reporter-sentry.ts +99 -7
- package/src/error-reporter.ts +39 -11
- package/src/errors.ts +3 -1
- package/src/exports/error-contract.ts +4 -14
- package/src/exports/observability.ts +57 -17
- package/src/exports/secrets.ts +4 -18
- package/src/failure-capture.ts +22 -13
- package/src/gate-shapes.ts +88 -0
- package/src/host-rules.ts +13 -1
- package/src/html-escape.ts +7 -1
- package/src/ids.ts +59 -10
- package/src/image/png-pixels.ts +14 -8
- package/src/index.ts +123 -136
- package/src/instrument-events.ts +272 -0
- package/src/instrument-semconv.ts +65 -0
- package/src/instrument-stacks.ts +38 -0
- package/src/instrument.ts +194 -0
- package/src/keyed-fingerprint.ts +7 -11
- package/src/lifecycle-signals.ts +5 -3
- package/src/lifecycle.ts +27 -0
- package/src/logger-record.ts +35 -0
- package/src/logger.ts +24 -16
- package/src/mcp-exposure.ts +17 -0
- package/src/metrics-semconv.ts +124 -0
- package/src/metrics.ts +19 -16
- package/src/otlp-batch.ts +78 -0
- package/src/otlp-log-exporter.ts +180 -0
- package/src/otlp-metric-exporter.ts +2 -1
- package/src/otlp-post.ts +22 -2
- package/src/otlp-span-exporter.ts +10 -59
- package/src/otlp.ts +27 -9
- package/src/outbound-instrument.ts +82 -0
- package/src/outbound.ts +5 -4
- package/src/page-meta.ts +6 -0
- package/src/page.ts +23 -5
- package/src/registrar.ts +269 -0
- package/src/route-vocabulary.ts +11 -2
- package/src/safe-url.ts +10 -8
- package/src/seal-errors.ts +14 -4
- package/src/seal-keys.ts +11 -7
- package/src/secret-source.ts +125 -0
- package/src/secrets-errors.ts +32 -12
- package/src/secrets-store.ts +30 -26
- package/src/sleep-clock.ts +70 -0
- package/src/telemetry.ts +90 -31
- package/src/type-pins.ts +19 -16
- package/src/log-tee.ts +0 -73
package/src/index.ts
CHANGED
|
@@ -29,11 +29,9 @@ export type {
|
|
|
29
29
|
ActorOrigin,
|
|
30
30
|
} from './actor';
|
|
31
31
|
export {
|
|
32
|
-
ACTOR_KINDS,
|
|
33
32
|
actorFact,
|
|
34
33
|
actorLabel,
|
|
35
34
|
actorOf,
|
|
36
|
-
actorOrigin,
|
|
37
35
|
agentActor,
|
|
38
36
|
anonymousActor,
|
|
39
37
|
grantCovers,
|
|
@@ -54,7 +52,7 @@ export {
|
|
|
54
52
|
} from './address-class';
|
|
55
53
|
/** Test support: the one name a live suite gives the database it creates (`probe-databases`). */
|
|
56
54
|
export { APP_CONFIG_FILE, APP_STATE_DIR, appDirOf, appStatePath } from './app-dir';
|
|
57
|
-
export {
|
|
55
|
+
export { appVersion, DEFAULT_APP_VERSION } from './app-version';
|
|
58
56
|
export { type AssertCodedOptions, assert, assertCoded, assertNever } from './assert';
|
|
59
57
|
export { type AsyncContext, asyncContext } from './async-context';
|
|
60
58
|
/** The four shapes an async region can be in — produced by `realtime`, rendered by `ui`. */
|
|
@@ -68,12 +66,8 @@ export type {
|
|
|
68
66
|
AuditSink,
|
|
69
67
|
AuditSurface,
|
|
70
68
|
} from './audit';
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
getAuditSink,
|
|
74
|
-
resetAuditSink,
|
|
75
|
-
setAuditSink,
|
|
76
|
-
} from './audit';
|
|
69
|
+
// The installer and its reset are `@ultimat3/core/adapter`'s: the boot is the one caller.
|
|
70
|
+
export { AUDIT_RECORD_FIELDS, getAuditSink } from './audit';
|
|
77
71
|
export type {
|
|
78
72
|
AwsCredentials,
|
|
79
73
|
AwsPayload,
|
|
@@ -100,7 +94,7 @@ export type {
|
|
|
100
94
|
export { breaker, settleWith } from './breaker';
|
|
101
95
|
export { isCompiledBundle } from './bunfs';
|
|
102
96
|
export type { CacheEvictionOptions } from './cache-eviction';
|
|
103
|
-
export {
|
|
97
|
+
export { evictCacheFiles } from './cache-eviction';
|
|
104
98
|
export { CACHE_TIERS, type CacheTierName } from './cache-vocabulary';
|
|
105
99
|
export { canonicalJson, fingerprint } from './canonical-json';
|
|
106
100
|
export type { FetchLike, TransportRequest } from './client-dispatch';
|
|
@@ -158,7 +152,14 @@ export { clientTransport } from './client-transport';
|
|
|
158
152
|
export type { WireAnswer } from './client-wire';
|
|
159
153
|
export { FRAMEWORK_CODE, problemOf, retryForStatus, traceHeaders } from './client-wire';
|
|
160
154
|
export { notifyClientWrite, onClientWrite } from './client-writes';
|
|
161
|
-
export {
|
|
155
|
+
export {
|
|
156
|
+
type Clock,
|
|
157
|
+
type FrozenClock,
|
|
158
|
+
frozenClock,
|
|
159
|
+
liveClock,
|
|
160
|
+
type SleepClock,
|
|
161
|
+
systemClock,
|
|
162
|
+
} from './clock';
|
|
162
163
|
export type {
|
|
163
164
|
AppConfig,
|
|
164
165
|
AppConfigInput,
|
|
@@ -170,39 +171,24 @@ export type {
|
|
|
170
171
|
NotifyConfig,
|
|
171
172
|
PwaConfigInput,
|
|
172
173
|
RealtimeConfig,
|
|
173
|
-
RealtimeTransport,
|
|
174
174
|
ThemeConfig,
|
|
175
175
|
ThemeMode,
|
|
176
176
|
} from './config';
|
|
177
|
-
export { defineConfig
|
|
177
|
+
export { defineConfig } from './config';
|
|
178
178
|
export type { AiConfig, AiConfigInput, McpConfig } from './config-ai';
|
|
179
|
-
export type {
|
|
180
|
-
AssetsConfig,
|
|
181
|
-
AssetsRetainConfig,
|
|
182
|
-
AssetsSection,
|
|
183
|
-
AssetsSectionInput,
|
|
184
|
-
} from './config-assets';
|
|
179
|
+
export type { AssetsConfig, AssetsRetainConfig, AssetsSectionInput } from './config-assets';
|
|
185
180
|
export type {
|
|
186
181
|
ClientErrorsConfig,
|
|
187
|
-
ClientErrorsSection,
|
|
188
182
|
ClientErrorsSectionInput,
|
|
189
183
|
ClientVitalsConfig,
|
|
190
184
|
ClientVitalsSurface,
|
|
191
185
|
} from './config-client-errors';
|
|
192
|
-
export {
|
|
193
|
-
|
|
194
|
-
CLIENT_VITALS_DEFAULTS,
|
|
195
|
-
CLIENT_VITALS_SURFACES,
|
|
196
|
-
} from './config-client-errors';
|
|
197
|
-
export type {
|
|
198
|
-
FailureCaptureConfig,
|
|
199
|
-
FailureCaptureSection,
|
|
200
|
-
FailureCaptureSectionInput,
|
|
201
|
-
} from './config-failure-capture';
|
|
186
|
+
export { CLIENT_ERRORS_DEFAULTS, CLIENT_VITALS_DEFAULTS } from './config-client-errors';
|
|
187
|
+
export type { FailureCaptureConfig, FailureCaptureSectionInput } from './config-failure-capture';
|
|
202
188
|
export { FAILURE_CAPTURE_DEFAULTS } from './config-failure-capture';
|
|
203
189
|
export type { DrainConfig, HealthConfig, ReadinessMode } from './config-health';
|
|
204
190
|
export { READINESS_MODES } from './config-health';
|
|
205
|
-
export type { IslandsConfig,
|
|
191
|
+
export type { IslandsConfig, IslandsSectionInput } from './config-islands';
|
|
206
192
|
export {
|
|
207
193
|
JOBS_CONCURRENCY_DEFAULT,
|
|
208
194
|
JOBS_DEAD_RETENTION_MS_DEFAULT,
|
|
@@ -210,25 +196,15 @@ export {
|
|
|
210
196
|
JOBS_OUTBOX_RETENTION_MS_DEFAULT,
|
|
211
197
|
type JobsConcurrency,
|
|
212
198
|
} from './config-jobs';
|
|
213
|
-
export type {
|
|
214
|
-
MailConfig,
|
|
215
|
-
MailRetainMimeConfig,
|
|
216
|
-
MailSection,
|
|
217
|
-
MailSectionInput,
|
|
218
|
-
} from './config-mail';
|
|
199
|
+
export type { MailConfig, MailRetainMimeConfig, MailSectionInput } from './config-mail';
|
|
219
200
|
export type {
|
|
220
201
|
NavigationConfig,
|
|
221
|
-
NavigationSection,
|
|
222
202
|
NavigationSectionInput,
|
|
223
203
|
NavigationSurface,
|
|
224
204
|
SpeculationConfig,
|
|
225
205
|
SpeculationEagerness,
|
|
226
206
|
} from './config-navigation';
|
|
227
|
-
export {
|
|
228
|
-
DEFAULT_SPECULATION,
|
|
229
|
-
NAVIGATION_SURFACES,
|
|
230
|
-
SPECULATION_EAGERNESS,
|
|
231
|
-
} from './config-navigation';
|
|
207
|
+
export { DEFAULT_SPECULATION, NAVIGATION_SURFACES } from './config-navigation';
|
|
232
208
|
export type {
|
|
233
209
|
PwaColors,
|
|
234
210
|
PwaConfig,
|
|
@@ -240,13 +216,7 @@ export type {
|
|
|
240
216
|
PwaText,
|
|
241
217
|
PwaVapidConfig,
|
|
242
218
|
} from './config-pwa';
|
|
243
|
-
export {
|
|
244
|
-
isSameOriginPath,
|
|
245
|
-
PWA_COLOR_KEYS,
|
|
246
|
-
PWA_PUSH_FIX,
|
|
247
|
-
PWA_SCHEMES,
|
|
248
|
-
pushWired,
|
|
249
|
-
} from './config-pwa';
|
|
219
|
+
export { isSameOriginPath, PWA_PUSH_FIX, pushWired } from './config-pwa';
|
|
250
220
|
export type {
|
|
251
221
|
SeoConfig,
|
|
252
222
|
SeoConfigInput,
|
|
@@ -256,7 +226,6 @@ export type {
|
|
|
256
226
|
SiteConfig,
|
|
257
227
|
SiteFavicon,
|
|
258
228
|
SitemapLastmod,
|
|
259
|
-
SiteSections,
|
|
260
229
|
SiteSectionsInput,
|
|
261
230
|
} from './config-site';
|
|
262
231
|
export { SITEMAP_LASTMOD_SOURCES } from './config-site';
|
|
@@ -267,7 +236,7 @@ export {
|
|
|
267
236
|
sectionPatterns,
|
|
268
237
|
sitemapSectionIssues,
|
|
269
238
|
} from './config-sitemap';
|
|
270
|
-
export type { AppTimeConfig,
|
|
239
|
+
export type { AppTimeConfig, TimeSectionInput } from './config-time';
|
|
271
240
|
export { TIME_DEFAULTS } from './config-time';
|
|
272
241
|
export type { ConflictPolicy, ResolveConflictOptions, Row } from './conflict-policy';
|
|
273
242
|
export { resolveConflict } from './conflict-policy';
|
|
@@ -324,7 +293,7 @@ export {
|
|
|
324
293
|
withDeclaredErrors,
|
|
325
294
|
} from './declared-errors';
|
|
326
295
|
export type { DeclaredResponsesWire } from './declared-errors-openapi';
|
|
327
|
-
export {
|
|
296
|
+
export { withDeclaredResponses } from './declared-errors-openapi';
|
|
328
297
|
export type { SourceReader } from './declared-errors-scan';
|
|
329
298
|
export { definedErrorClassCodes, scanHandlerSource } from './declared-errors-scan';
|
|
330
299
|
export { DEFAULT_LOCALE, DEFAULT_TIME_ZONE } from './default-locale';
|
|
@@ -335,6 +304,7 @@ export {
|
|
|
335
304
|
successorLink,
|
|
336
305
|
successorPathOf,
|
|
337
306
|
} from './deprecation';
|
|
307
|
+
export { x509Spki } from './der';
|
|
338
308
|
export type { DevSecretsOptions } from './dev-secrets';
|
|
339
309
|
export {
|
|
340
310
|
assertNoDevSecretsOutsideLocal,
|
|
@@ -343,7 +313,6 @@ export {
|
|
|
343
313
|
} from './dev-secrets';
|
|
344
314
|
export {
|
|
345
315
|
DRAIN_DEADLINE_DEFAULT_MS,
|
|
346
|
-
DRAIN_DEADLINE_MAX_MS,
|
|
347
316
|
WORKER_DRAIN_DEADLINE_MAX_MS,
|
|
348
317
|
WORKER_RETIRE_DEFAULT_MS,
|
|
349
318
|
} from './drain-deadline';
|
|
@@ -358,10 +327,8 @@ export type {
|
|
|
358
327
|
EnvSchema,
|
|
359
328
|
EnvStringVar,
|
|
360
329
|
EnvVarDecl,
|
|
361
|
-
EnvVarSummary,
|
|
362
|
-
EnvVarType,
|
|
363
330
|
} from './env';
|
|
364
|
-
export { checkEnv, defineEnv,
|
|
331
|
+
export { checkEnv, defineEnv, maskedEnvValues } from './env';
|
|
365
332
|
export type { EnvExampleOptions, EnvExampleReport } from './env-example';
|
|
366
333
|
export {
|
|
367
334
|
checkEnvExample,
|
|
@@ -382,9 +349,8 @@ export {
|
|
|
382
349
|
resolveEnvironment,
|
|
383
350
|
tryResolveEnvironment,
|
|
384
351
|
} from './environment';
|
|
385
|
-
export { ExerciseEnvironmentError, ExerciseUnscopedError } from './exercise-errors';
|
|
386
|
-
// The `input:` every exercise fix pastes, owed fields named: one renderer for action, query and testing.
|
|
387
352
|
export type { DrawnBinding } from './exercise-hint';
|
|
353
|
+
// The `input:` every exercise fix pastes, owed fields named: one renderer for action, query and testing.
|
|
388
354
|
export { renderDrawnInput, renderExerciseKey, sampleGapBinding } from './exercise-hint';
|
|
389
355
|
// A contract exercise's one loop: `@ultimat3/action`'s and `@ultimat3/query`'s, one tier apart from neither.
|
|
390
356
|
export type {
|
|
@@ -415,12 +381,12 @@ export type {
|
|
|
415
381
|
ErrorCodeDescriptor,
|
|
416
382
|
ErrorCodeEntry,
|
|
417
383
|
ErrorRetry,
|
|
418
|
-
ErrorText,
|
|
419
384
|
FormatErrorOptions,
|
|
420
385
|
UltimateErrorInit,
|
|
421
386
|
UltimateErrorJSON,
|
|
422
387
|
} from './exports/error-contract';
|
|
423
388
|
export {
|
|
389
|
+
boundedCause,
|
|
424
390
|
CORE_ERROR_CODES,
|
|
425
391
|
ConfigInvalidError,
|
|
426
392
|
classifyThrown,
|
|
@@ -437,15 +403,13 @@ export {
|
|
|
437
403
|
errorRetry,
|
|
438
404
|
failureStack,
|
|
439
405
|
fixFor,
|
|
440
|
-
formatError,
|
|
441
406
|
hasErrorCode,
|
|
442
407
|
InternalError,
|
|
443
|
-
isErrorRetry,
|
|
444
408
|
isFixShellSafe,
|
|
445
409
|
isThrownError,
|
|
446
410
|
isUltimateError,
|
|
447
411
|
listErrorCodes,
|
|
448
|
-
|
|
412
|
+
MAX_CAUSE_LENGTH,
|
|
449
413
|
NotImplementedError,
|
|
450
414
|
notImplemented,
|
|
451
415
|
registerErrorCodes,
|
|
@@ -466,33 +430,52 @@ export {
|
|
|
466
430
|
UltimateError,
|
|
467
431
|
} from './exports/error-contract';
|
|
468
432
|
export type {
|
|
433
|
+
ActionInvokeEvent,
|
|
434
|
+
AiLlmEvent,
|
|
469
435
|
AttributeValue,
|
|
436
|
+
CacheInvalidateEvent,
|
|
437
|
+
CacheLookupEvent,
|
|
438
|
+
CacheTierFailureEvent,
|
|
470
439
|
CapturedValue,
|
|
471
440
|
Counter,
|
|
441
|
+
DbStatementEvent,
|
|
442
|
+
EntityBulkEvent,
|
|
443
|
+
EntityCrossTenantEvent,
|
|
444
|
+
EntityRowEvent,
|
|
445
|
+
EntityRowOp,
|
|
472
446
|
ErrorReport,
|
|
473
447
|
ErrorReporter,
|
|
474
448
|
ErrorReportingOptions,
|
|
475
449
|
ErrorScope,
|
|
476
450
|
ErrorSeverity,
|
|
477
451
|
ErrorSource,
|
|
478
|
-
FailureActor,
|
|
479
452
|
FailureBundle,
|
|
480
|
-
FailureCaptureLimits,
|
|
481
453
|
FailureFact,
|
|
482
454
|
FailurePrimitive,
|
|
483
455
|
FailureRead,
|
|
484
456
|
FailureStore,
|
|
485
457
|
Gauge,
|
|
486
458
|
GaugeOptions,
|
|
487
|
-
HeldFailure,
|
|
488
459
|
Histogram,
|
|
489
460
|
HistogramOptions,
|
|
490
461
|
HistogramPoint,
|
|
462
|
+
HttpRequestEvent,
|
|
463
|
+
InstrumentEvent,
|
|
464
|
+
InstrumentEventMap,
|
|
465
|
+
InstrumentEventSpec,
|
|
466
|
+
InstrumentHandler,
|
|
467
|
+
InstrumentName,
|
|
491
468
|
InstrumentOptions,
|
|
469
|
+
InstrumentPattern,
|
|
470
|
+
InstrumentSpan,
|
|
471
|
+
JobEnqueueEvent,
|
|
472
|
+
JobPerformEvent,
|
|
492
473
|
LogFields,
|
|
493
474
|
Logger,
|
|
494
475
|
LoggerOptions,
|
|
495
476
|
LogLevel,
|
|
477
|
+
MailDeliverEvent,
|
|
478
|
+
MatchedName,
|
|
496
479
|
MemoryErrorReporter,
|
|
497
480
|
MemoryExporter,
|
|
498
481
|
MemoryMetricExporter,
|
|
@@ -504,20 +487,26 @@ export type {
|
|
|
504
487
|
MetricKind,
|
|
505
488
|
MetricPoint,
|
|
506
489
|
MetricsOptions,
|
|
507
|
-
|
|
508
|
-
|
|
490
|
+
OtlpLogExporter,
|
|
491
|
+
OtlpLogExporterOptions,
|
|
509
492
|
OtlpMetricExporter,
|
|
510
493
|
OtlpMetricExporterOptions,
|
|
511
494
|
OtlpSignal,
|
|
512
495
|
OtlpSpanExporter,
|
|
513
496
|
OtlpSpanExporterOptions,
|
|
497
|
+
PolicyDecisionEvent,
|
|
498
|
+
QueryReadEvent,
|
|
514
499
|
ReadableMetric,
|
|
515
500
|
ReadableSpan,
|
|
501
|
+
RenderHoleEvent,
|
|
502
|
+
RenderPageEvent,
|
|
516
503
|
ReportErrorOptions,
|
|
517
504
|
RequestSample,
|
|
518
505
|
Sampler,
|
|
519
506
|
SentryDsn,
|
|
520
507
|
SentryEnvelopeOptions,
|
|
508
|
+
SentryEvent,
|
|
509
|
+
SentryReporterHooks,
|
|
521
510
|
SentryReporterOptions,
|
|
522
511
|
Span,
|
|
523
512
|
SpanAttributes,
|
|
@@ -529,11 +518,16 @@ export type {
|
|
|
529
518
|
SpanStatus,
|
|
530
519
|
SpanStatusCode,
|
|
531
520
|
StartSpanOptions,
|
|
521
|
+
StatementAttribution,
|
|
522
|
+
StorageEvent,
|
|
532
523
|
TelemetryOptions,
|
|
524
|
+
TimedEvent,
|
|
533
525
|
} from './exports/observability';
|
|
534
526
|
export {
|
|
535
527
|
alwaysOffSampler,
|
|
536
528
|
alwaysOnSampler,
|
|
529
|
+
callerStack,
|
|
530
|
+
captureStatementStacks,
|
|
537
531
|
captureValue,
|
|
538
532
|
chainErrorReporters,
|
|
539
533
|
collectMetrics,
|
|
@@ -546,9 +540,6 @@ export {
|
|
|
546
540
|
currentSpan,
|
|
547
541
|
currentSpanContext,
|
|
548
542
|
DEFAULT_HISTOGRAM_BOUNDS,
|
|
549
|
-
DEFAULT_MAX_SERIES,
|
|
550
|
-
DEFAULT_SAMPLE_RATIO,
|
|
551
|
-
defaultSampler,
|
|
552
543
|
ERROR_SOURCES,
|
|
553
544
|
ErrorReporterDsnInvalidError,
|
|
554
545
|
errorFingerprint,
|
|
@@ -556,16 +547,21 @@ export {
|
|
|
556
547
|
errorReportersOf,
|
|
557
548
|
exportMetrics,
|
|
558
549
|
failureCaptureActive,
|
|
559
|
-
failureCaptureLimits,
|
|
560
550
|
gauge,
|
|
561
551
|
histogram,
|
|
552
|
+
INSTRUMENT_EVENTS,
|
|
562
553
|
installedErrorReporter,
|
|
563
554
|
installedFailureStore,
|
|
555
|
+
instrument,
|
|
556
|
+
isLocalErrorSink,
|
|
564
557
|
isRedactedKey,
|
|
558
|
+
isSentryErrorReporter,
|
|
565
559
|
jobs,
|
|
566
560
|
LOG_LEVELS,
|
|
567
561
|
leasesLost,
|
|
562
|
+
localErrorSink,
|
|
568
563
|
logger,
|
|
564
|
+
MAX_SPAN_EVENTS,
|
|
569
565
|
METRICS_CONTENT_TYPE,
|
|
570
566
|
METRICS_PATH,
|
|
571
567
|
MetricCardinalityError,
|
|
@@ -576,14 +572,13 @@ export {
|
|
|
576
572
|
memoryMetricExporter,
|
|
577
573
|
metricsText,
|
|
578
574
|
noopErrorReporter,
|
|
579
|
-
noopExporter,
|
|
580
|
-
noopMetricExporter,
|
|
581
575
|
OTLP_RETRY_STATUSES,
|
|
582
576
|
OtlpEndpointInvalidError,
|
|
583
577
|
OtlpHeadersInvalidError,
|
|
584
578
|
OtlpProtocolUnsupportedError,
|
|
585
|
-
|
|
579
|
+
otlpEndpointLabel,
|
|
586
580
|
otlpHeaders,
|
|
581
|
+
otlpLogExporter,
|
|
587
582
|
otlpMetricExporter,
|
|
588
583
|
otlpMetricsRequest,
|
|
589
584
|
otlpSpanExporter,
|
|
@@ -593,7 +588,6 @@ export {
|
|
|
593
588
|
parseTraceparent,
|
|
594
589
|
queueDepth,
|
|
595
590
|
REDACTED,
|
|
596
|
-
ratioSampler,
|
|
597
591
|
recordConnection,
|
|
598
592
|
recordFailureFact,
|
|
599
593
|
recordFailureInput,
|
|
@@ -606,33 +600,38 @@ export {
|
|
|
606
600
|
requestDuration,
|
|
607
601
|
requests,
|
|
608
602
|
resetErrorReporting,
|
|
609
|
-
|
|
603
|
+
resetInstrumentation,
|
|
610
604
|
resetMetrics,
|
|
605
|
+
resetStatementStacks,
|
|
611
606
|
resetTelemetry,
|
|
612
607
|
SCALING_METRICS,
|
|
613
|
-
|
|
608
|
+
SEMCONV,
|
|
609
|
+
SEMCONV_METRICS,
|
|
610
|
+
SEMCONV_VALUES,
|
|
614
611
|
sentryEnvelope,
|
|
615
612
|
sentryErrorReporter,
|
|
616
|
-
|
|
617
|
-
|
|
613
|
+
sentryEvent,
|
|
614
|
+
sentryTransport,
|
|
618
615
|
setLoggerContextFields,
|
|
619
616
|
setLogStream,
|
|
620
617
|
settleFailureCaptures,
|
|
621
618
|
startMetricExport,
|
|
622
619
|
startSpan,
|
|
623
620
|
structuredLogger,
|
|
621
|
+
subscribe,
|
|
622
|
+
subscribed,
|
|
623
|
+
subscriberCount,
|
|
624
|
+
subscriberFailures,
|
|
625
|
+
subscribeSemconvMetrics,
|
|
624
626
|
traceparent,
|
|
625
627
|
tryOtlpEndpoint,
|
|
626
628
|
withFailureCapture,
|
|
627
629
|
withSpan,
|
|
628
|
-
withSpanContext,
|
|
629
630
|
} from './exports/observability';
|
|
630
631
|
export type {
|
|
631
632
|
MasterKeyRef,
|
|
632
|
-
MasterKeySource,
|
|
633
633
|
Secret,
|
|
634
634
|
SecretSummary,
|
|
635
|
-
SecretsEnvelope,
|
|
636
635
|
SecretsErrorCode,
|
|
637
636
|
SecretsInstallOptions,
|
|
638
637
|
SecretsInstallReport,
|
|
@@ -656,11 +655,9 @@ export {
|
|
|
656
655
|
requireMasterKey,
|
|
657
656
|
revealOptionalSecret,
|
|
658
657
|
revealSecret,
|
|
659
|
-
SECRETS_ERROR_CODES,
|
|
660
658
|
SECRETS_FILE,
|
|
661
659
|
SECRETS_KEY_ENV,
|
|
662
660
|
SECRETS_KEY_FILE,
|
|
663
|
-
SECRETS_KEY_MODE,
|
|
664
661
|
SecretsFileInvalidError,
|
|
665
662
|
SecretsFileMissingError,
|
|
666
663
|
SecretsKeyAclError,
|
|
@@ -672,7 +669,6 @@ export {
|
|
|
672
669
|
sealSecrets,
|
|
673
670
|
secret,
|
|
674
671
|
secretsFileExists,
|
|
675
|
-
secretsPath,
|
|
676
672
|
serializeSecretValues,
|
|
677
673
|
stagedMasterKeyPath,
|
|
678
674
|
stageMasterKeyFile,
|
|
@@ -691,20 +687,29 @@ export type {
|
|
|
691
687
|
export { flightGate, gateOverloaded } from './flight-gate';
|
|
692
688
|
export { fnv1a } from './fnv1a';
|
|
693
689
|
export { formatBytes } from './format-bytes';
|
|
690
|
+
export type { GateRateLimit, RateLimitSubject } from './gate-shapes';
|
|
691
|
+
export {
|
|
692
|
+
AUDIT_SINK_FAILED_EVENT,
|
|
693
|
+
auditFailureOf,
|
|
694
|
+
auditOutcomeOf,
|
|
695
|
+
fixedRateLimitOf,
|
|
696
|
+
rateLimitScopeOf,
|
|
697
|
+
rateLimitSpendsOn,
|
|
698
|
+
rateLimitSubjectOf,
|
|
699
|
+
resolvedRateLimitOf,
|
|
700
|
+
} from './gate-shapes';
|
|
694
701
|
export type { GenerationFence } from './generation-fence';
|
|
695
702
|
export { generationFence, isSuperseded } from './generation-fence';
|
|
696
703
|
export type { PublicHealthBody } from './health-disclosure';
|
|
697
704
|
export { DEFAULT_HEALTH_DETAIL_PEERS, healthBody, healthPeerListed } from './health-disclosure';
|
|
698
|
-
// The ONE keyed hash: every HMAC in the framework (`bun run keyed-hasher`).
|
|
699
705
|
export type { HmacAlgorithm, HmacEncoding, HmacInput } from './hmac';
|
|
706
|
+
// The ONE keyed hash: every HMAC in the framework (`bun run keyed-hasher`).
|
|
700
707
|
export { hmac } from './hmac';
|
|
701
708
|
export type { HostDecision, HostRule } from './host-rules';
|
|
702
709
|
export { ANY_HOST, hostDecision, hostMatches } from './host-rules';
|
|
703
710
|
export { escapeHtml } from './html-escape';
|
|
704
711
|
export type { Brand, Id } from './ids';
|
|
705
712
|
export {
|
|
706
|
-
isSpanId,
|
|
707
|
-
isTraceId,
|
|
708
713
|
isUuid,
|
|
709
714
|
nanoid,
|
|
710
715
|
parseId,
|
|
@@ -717,28 +722,20 @@ export {
|
|
|
717
722
|
uuidV7,
|
|
718
723
|
} from './ids';
|
|
719
724
|
export type { ImageFit, ResizeSpec } from './image/canvas';
|
|
720
|
-
export { parseColor } from './image/color';
|
|
721
725
|
export {
|
|
722
726
|
ImageDecodeFailedError,
|
|
723
727
|
ImageTooLargeError,
|
|
724
728
|
ImageUnsupportedError,
|
|
725
729
|
imageDecodeFailed,
|
|
726
|
-
imageFromBunError,
|
|
727
|
-
imageTooLarge,
|
|
728
730
|
imageUnsupported,
|
|
729
731
|
} from './image/errors';
|
|
730
|
-
export type {
|
|
731
|
-
DecodableFormat,
|
|
732
|
-
EncodableFormat,
|
|
733
|
-
ImageTransformSpec,
|
|
734
|
-
} from './image/pipeline';
|
|
732
|
+
export type { DecodableFormat, EncodableFormat, ImageTransformSpec } from './image/pipeline';
|
|
735
733
|
export {
|
|
736
734
|
assertFiniteImageQuality,
|
|
737
735
|
blurDataUrl,
|
|
738
736
|
canDecode,
|
|
739
737
|
canEncode,
|
|
740
738
|
DECODABLE_FORMATS,
|
|
741
|
-
DEFAULT_IMAGE_QUALITY,
|
|
742
739
|
dataUrl,
|
|
743
740
|
ENCODABLE_FORMATS,
|
|
744
741
|
transformImageBytes,
|
|
@@ -752,7 +749,7 @@ export {
|
|
|
752
749
|
hasAlpha,
|
|
753
750
|
MAX_IMAGE_PIXELS,
|
|
754
751
|
} from './image/raster';
|
|
755
|
-
export { impersonate,
|
|
752
|
+
export { impersonate, isImpersonating } from './impersonate';
|
|
756
753
|
export { withInProcessFetch } from './in-process-fetch';
|
|
757
754
|
export {
|
|
758
755
|
assertLocale,
|
|
@@ -785,8 +782,10 @@ export type {
|
|
|
785
782
|
export {
|
|
786
783
|
beginWork,
|
|
787
784
|
configureLifecycle,
|
|
785
|
+
DRAIN_TIMEOUT_EXIT_CODE,
|
|
788
786
|
drain,
|
|
789
787
|
drainDeadlineMs,
|
|
788
|
+
drainExitCode,
|
|
790
789
|
healthReport,
|
|
791
790
|
healthzPayload,
|
|
792
791
|
idleWaiterCount,
|
|
@@ -803,14 +802,9 @@ export {
|
|
|
803
802
|
readyzPayload,
|
|
804
803
|
registerReadinessCheck,
|
|
805
804
|
resetLifecycle,
|
|
806
|
-
SHUTDOWN_PHASES,
|
|
807
805
|
shutdownHookCount,
|
|
808
806
|
} from './lifecycle';
|
|
809
|
-
export {
|
|
810
|
-
defaultReadinessGraceMs,
|
|
811
|
-
READINESS_GRACE_DEFAULT_MS,
|
|
812
|
-
READINESS_GRACE_MAX_MS,
|
|
813
|
-
} from './lifecycle-grace';
|
|
807
|
+
export { defaultReadinessGraceMs, READINESS_GRACE_DEFAULT_MS } from './lifecycle-grace';
|
|
814
808
|
export type {
|
|
815
809
|
ReadinessCheck,
|
|
816
810
|
ReadinessCheckOptions,
|
|
@@ -818,17 +812,16 @@ export type {
|
|
|
818
812
|
} from './lifecycle-readiness';
|
|
819
813
|
export type { SignalHandlerOptions } from './lifecycle-signals';
|
|
820
814
|
export { drainSignals, installSignalHandlers } from './lifecycle-signals';
|
|
821
|
-
export { isSelfOrigin,
|
|
815
|
+
export { isSelfOrigin, markListening, resetListeners } from './listeners';
|
|
822
816
|
export type { Direction } from './locale-direction';
|
|
823
817
|
export { directionOf, isRtl } from './locale-direction';
|
|
824
818
|
export type { LocalePathSplit } from './locale-path';
|
|
825
819
|
export { localeSegment, localizePath, splitLocalePath } from './locale-path';
|
|
826
|
-
// The supported tee: every default-writer line, after redaction, beside the streams.
|
|
827
|
-
export { addLogSink } from './log-tee';
|
|
828
820
|
// The process logger's test seam, beside nothing it groups with: where a default-writer line goes.
|
|
829
821
|
export type { LogSink } from './logger';
|
|
830
|
-
export {
|
|
822
|
+
export { installLogSink } from './logger';
|
|
831
823
|
export {
|
|
824
|
+
isAgentOffered,
|
|
832
825
|
isMcpExposed,
|
|
833
826
|
type McpAnnotationHints,
|
|
834
827
|
type McpEffect,
|
|
@@ -849,7 +842,7 @@ export { nearestName } from './nearest-name';
|
|
|
849
842
|
export type { OutageLog, OutageLogOptions } from './outage-log';
|
|
850
843
|
export { isOutageMilestone, outageLog } from './outage-log';
|
|
851
844
|
/** The message pwa's `sw.js` posts and realtime's outbox listens for. */
|
|
852
|
-
export { OUTBOX_DRAIN_MESSAGE
|
|
845
|
+
export { OUTBOX_DRAIN_MESSAGE } from './outbox-drain';
|
|
853
846
|
/** The `<meta name>`s render writes and the page client, realtime and pwa read. */
|
|
854
847
|
export {
|
|
855
848
|
APP_UPDATE_MESSAGE,
|
|
@@ -858,6 +851,7 @@ export {
|
|
|
858
851
|
CLIENT_NAVIGATION_LOCATION_HEADER,
|
|
859
852
|
CLIENT_NAVIGATION_SCOPE_HEADER,
|
|
860
853
|
CLIENT_NAVIGATION_SURFACE_HEADER,
|
|
854
|
+
CLIENT_OUTBOX_MAX_META,
|
|
861
855
|
CLIENT_PATH_STYLE_META,
|
|
862
856
|
CLIENT_PERSIST_META,
|
|
863
857
|
CLIENT_PINS_META,
|
|
@@ -869,30 +863,30 @@ export {
|
|
|
869
863
|
/** The structural Postgres seam http, auth, action and jobs share without a `@ultimat3/db` edge. */
|
|
870
864
|
export type { PgExecutor } from './pg-executor';
|
|
871
865
|
export type { ProbeDatabaseEntropy } from './probe-database';
|
|
872
|
-
export {
|
|
866
|
+
export { probeDatabaseName } from './probe-database';
|
|
873
867
|
export type { ProbeDatabaseSweepOptions } from './probe-database-sweep';
|
|
874
|
-
export {
|
|
875
|
-
PROBE_DATABASE_MIN_AGE_MS,
|
|
876
|
-
probeDatabaseAlive,
|
|
877
|
-
sweepProbeDatabases,
|
|
878
|
-
sweepStaleProbeDatabases,
|
|
879
|
-
} from './probe-database-sweep';
|
|
868
|
+
export { sweepProbeDatabases, sweepStaleProbeDatabases } from './probe-database-sweep';
|
|
880
869
|
export type { ProcessMetricsOptions, ProcessReading } from './process-metrics';
|
|
881
|
-
export {
|
|
870
|
+
export { startProcessMetrics } from './process-metrics';
|
|
882
871
|
export { hasPublicCause, registerPublicCause, resetPublicCauses } from './public-cause';
|
|
883
|
-
export {
|
|
872
|
+
export type { CappedBody } from './read-capped';
|
|
873
|
+
export { readWithinLimit } from './read-capped';
|
|
884
874
|
export type { RecordEnvelope, RecordRows } from './record-envelope';
|
|
885
875
|
export { decodeRecordEnvelope, encodeRecordEnvelope, RECORDS_HEADER } from './record-envelope';
|
|
886
876
|
export { RECORDS_OPENAPI_HEADER, recordEnvelopeSchema } from './record-envelope-openapi';
|
|
887
877
|
export type { PageClient, RecordSink } from './record-sink';
|
|
888
878
|
export { pageClient } from './record-sink';
|
|
889
879
|
export type {
|
|
880
|
+
AdapterPort,
|
|
881
|
+
AdapterPortName,
|
|
890
882
|
ModuleRegistrar,
|
|
891
883
|
PrimitiveFactory,
|
|
892
884
|
PrimitiveKind,
|
|
893
885
|
RegisteredPrimitive,
|
|
894
886
|
} from './registrar';
|
|
895
887
|
export {
|
|
888
|
+
ADAPTER_PORT_NAMES,
|
|
889
|
+
ADAPTER_PORTS,
|
|
896
890
|
hasPrimitiveRegistrar,
|
|
897
891
|
PRIMITIVE_FACTORIES,
|
|
898
892
|
PRIMITIVE_KINDS,
|
|
@@ -900,18 +894,14 @@ export {
|
|
|
900
894
|
registerPrimitiveRegistrar,
|
|
901
895
|
resetPrimitiveRegistrars,
|
|
902
896
|
} from './registrar';
|
|
903
|
-
export {
|
|
904
|
-
budgetHeaders,
|
|
905
|
-
REQUEST_TIMEOUT_HEADER,
|
|
906
|
-
remainingBudgetMs,
|
|
907
|
-
} from './request-budget';
|
|
897
|
+
export { REQUEST_TIMEOUT_HEADER, remainingBudgetMs } from './request-budget';
|
|
908
898
|
export type { RetryDeps } from './retry';
|
|
909
899
|
export { retry } from './retry';
|
|
910
900
|
export type { RetryDecision, RetryPolicy, RetryStopReason } from './retry-loop';
|
|
911
901
|
export { retryDecision } from './retry-loop';
|
|
912
902
|
export { isRetryableStatus, RETRYABLE_STATUSES } from './retryable-status';
|
|
913
903
|
export type { ResolveRoleOptions, Role, RoleInfo, ScalingSignal } from './roles';
|
|
914
|
-
export {
|
|
904
|
+
export { isRole, ROLE_INFO, ROLES, resolveRole } from './roles';
|
|
915
905
|
export { HttpPathInputConflictError, mergePathParams } from './route-path-merge';
|
|
916
906
|
export type { FilledTemplate, TemplateKeyNode } from './route-path-template';
|
|
917
907
|
export {
|
|
@@ -922,17 +912,13 @@ export {
|
|
|
922
912
|
toOpenApiPath,
|
|
923
913
|
} from './route-path-template';
|
|
924
914
|
export { routeRank } from './route-rank';
|
|
925
|
-
export type { HydrateStrategy, OfflineStrategy, RenderMode } from './route-vocabulary';
|
|
926
|
-
export { HYDRATE_STRATEGIES, OFFLINE_STRATEGIES, RENDER_MODES } from './route-vocabulary';
|
|
915
|
+
export type { HydrateStrategy, OfflineStrategy, RenderMode, Surface } from './route-vocabulary';
|
|
916
|
+
export { HYDRATE_STRATEGIES, OFFLINE_STRATEGIES, RENDER_MODES, SURFACES } from './route-vocabulary';
|
|
927
917
|
export { safeUrl, URL_ATTRIBUTES } from './safe-url';
|
|
928
|
-
export {
|
|
929
|
-
|
|
930
|
-
type OriginVerdict,
|
|
931
|
-
proveSameOrigin,
|
|
932
|
-
} from './same-origin';
|
|
918
|
+
export type { OriginEvidence } from './same-origin';
|
|
919
|
+
export { type OriginVerdict, proveSameOrigin } from './same-origin';
|
|
933
920
|
export type { SealOptions, SealPurposeOptions } from './seal';
|
|
934
|
-
export { isSealed, open, openText,
|
|
935
|
-
export type { SealInvalidReason } from './seal-errors';
|
|
921
|
+
export { isSealed, open, openText, seal, sealAll, sealedKeyId } from './seal';
|
|
936
922
|
export { SealInvalidError, SealKeyMissingError, SealKeyUnknownError } from './seal-errors';
|
|
937
923
|
export type { SealKeyRing, SealKeySource } from './seal-keys';
|
|
938
924
|
export {
|
|
@@ -954,13 +940,14 @@ export {
|
|
|
954
940
|
export { onSessionLost, sessionIsLost } from './session-lost';
|
|
955
941
|
export type { FlightJoin, Scheduler, SingleFlight, SingleFlightOptions } from './single-flight';
|
|
956
942
|
export { singleFlight } from './single-flight';
|
|
943
|
+
export { ambientClock, noWaitClock } from './sleep-clock';
|
|
957
944
|
export { endOfLiteral, maskLiterals, QUOTES, stripComments } from './source-mask';
|
|
958
945
|
export type { StoreMode } from './store-mode';
|
|
959
|
-
export {
|
|
946
|
+
export { storeMode } from './store-mode';
|
|
960
947
|
export { THEME_STORAGE_KEY } from './theme-storage';
|
|
961
948
|
export { timingSafeEqual } from './timing-safe-equal';
|
|
962
|
-
// A projected tool's description: `@ultimat3/mcp`'s and `@ultimat3/ai`'s, one tier apart from neither.
|
|
963
949
|
export type { ToolDescriptionSource } from './tool-description';
|
|
950
|
+
// A projected tool's description: `@ultimat3/mcp`'s and `@ultimat3/ai`'s, one tier apart from neither.
|
|
964
951
|
export { toolDescription } from './tool-description';
|
|
965
952
|
export {
|
|
966
953
|
frameworkVersion,
|