@capxul/observability 2.3.2 → 2.5.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.
@@ -3,7 +3,8 @@ import { OtlpExporter } from "effect/unstable/observability";
3
3
 
4
4
  //#region src/engineering.d.ts
5
5
  type EngineeringProducer = "browser" | "server";
6
- type EngineeringCapxulEnv = "development" | "staging" | "production";
6
+ declare const ENGINEERING_CAPXUL_ENVS: readonly ["development", "staging", "production", "local"];
7
+ type EngineeringCapxulEnv = (typeof ENGINEERING_CAPXUL_ENVS)[number];
7
8
  interface EngineeringTelemetryConfig {
8
9
  readonly host: string;
9
10
  readonly headers: Readonly<Record<string, string>>;
@@ -22,4 +23,4 @@ declare const makeLeakSafeEngineeringTracer: (delegate: Tracer.Tracer) => Tracer
22
23
  /** Shared browser/server OTLP layer. OtlpLogger merges with incumbent loggers once. */
23
24
  declare const makeEngineeringTelemetryLayer: (config: EngineeringTelemetryConfig) => Layer.Layer<OtlpExporter.Flusher, never, never>;
24
25
  //#endregion
25
- export { EngineeringCapxulEnv, EngineeringProducer, EngineeringTelemetryConfig, makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
26
+ export { ENGINEERING_CAPXUL_ENVS, EngineeringCapxulEnv, EngineeringProducer, EngineeringTelemetryConfig, makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
@@ -2,6 +2,12 @@ import { Cause, Effect, Exit, Layer, Tracer } from "effect";
2
2
  import { FetchHttpClient, Headers, HttpClient } from "effect/unstable/http";
3
3
  import { OtlpExporter, OtlpLogger, OtlpSerialization, OtlpTracer } from "effect/unstable/observability";
4
4
  //#region src/engineering.ts
5
+ const ENGINEERING_CAPXUL_ENVS = [
6
+ "development",
7
+ "staging",
8
+ "production",
9
+ "local"
10
+ ];
5
11
  const SAFE_TRACED_HEADER_NAMES = [
6
12
  "content-length",
7
13
  "content-type",
@@ -24,11 +30,7 @@ const postHogOtlpEndpoints = (host) => {
24
30
  traces: `${base}/i/v1/traces`
25
31
  };
26
32
  };
27
- const ENGINEERING_CAPXUL_ENVS = new Set([
28
- "development",
29
- "staging",
30
- "production"
31
- ]);
33
+ const ENGINEERING_CAPXUL_ENV_SET = new Set(ENGINEERING_CAPXUL_ENVS);
32
34
  const ENGINEERING_PRODUCERS = new Set(["browser", "server"]);
33
35
  const PUBLIC_POSTHOG_AUTHORIZATION = /^Bearer phc_[A-Za-z0-9_-]{1,191}$/u;
34
36
  const SAFE_RESOURCE_VALUE = /^[A-Za-z0-9][A-Za-z0-9._+@/-]{0,127}$/u;
@@ -40,7 +42,7 @@ const validateEngineeringTelemetryConfig = (config) => {
40
42
  throw new TypeError("engineering telemetry host must be an absolute HTTPS URL");
41
43
  }
42
44
  if (url.protocol !== "https:" || url.username.length > 0 || url.password.length > 0 || url.pathname !== "/" || url.search.length > 0 || url.hash.length > 0 || !(url.hostname === "posthog.com" || url.hostname.endsWith(".posthog.com"))) throw new TypeError("engineering telemetry host must be a credential-free HTTPS origin");
43
- if (!ENGINEERING_CAPXUL_ENVS.has(config.capxulEnv)) throw new TypeError("engineering telemetry capxulEnv is not canonical");
45
+ if (!ENGINEERING_CAPXUL_ENV_SET.has(config.capxulEnv)) throw new TypeError("engineering telemetry capxulEnv is not canonical");
44
46
  if (!ENGINEERING_PRODUCERS.has(config.producer)) throw new TypeError("engineering telemetry producer is not canonical");
45
47
  if (!SAFE_RESOURCE_VALUE.test(config.sdkVersion)) throw new TypeError("engineering telemetry sdkVersion must be a bounded safe value");
46
48
  if (config.serviceName !== void 0 && !SAFE_RESOURCE_VALUE.test(config.serviceName)) throw new TypeError("engineering telemetry serviceName must be a bounded safe value");
@@ -103,4 +105,4 @@ const makeEngineeringTelemetryLayer = (config) => {
103
105
  return Layer.mergeAll(tracing, logging, headerPolicy).pipe(Layer.provide(OtlpSerialization.layerJson), Layer.provide(FetchHttpClient.layer));
104
106
  };
105
107
  //#endregion
106
- export { makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
108
+ export { ENGINEERING_CAPXUL_ENVS, makeEngineeringTelemetryLayer, makeLeakSafeEngineeringTracer, postHogOtlpEndpoints, traceHeaderFilter };
package/dist/index.d.mts CHANGED
@@ -284,9 +284,12 @@ type PII = Schema.Schema.Type<typeof PII>;
284
284
  * a present `unknown` is loud), and sync v2 never synthesizes an artifact for
285
285
  * it.
286
286
  */
287
- declare const CAPXUL_ENVS: readonly ["development", "staging", "production", "unknown"];
287
+ declare const CAPXUL_ENVS: readonly ["development", "staging", "production", "unknown", "local"];
288
288
  type CapxulEnv = (typeof CAPXUL_ENVS)[number];
289
- /** Environments a synced product surface may be built for (`unknown` cannot). */
289
+ /**
290
+ * Environments a synced product surface may be built for. `unknown` and
291
+ * `local` cannot. This list is deliberately narrower than `CAPXUL_ENVS`.
292
+ */
290
293
  declare const SYNCABLE_CAPXUL_ENVS: readonly ["development", "staging", "production"];
291
294
  /**
292
295
  * Which half of the system emitted the event. REQUIRED alongside `capxul_env`
@@ -308,7 +311,7 @@ declare function stampTelemetryEnvelope(event: TelemetryEvent, defaults: Telemet
308
311
  declare const AuthOtpRequestedTelemetryEventSchema: Schema.Struct<{
309
312
  readonly name: Schema.Literal<"auth_otp_requested">;
310
313
  readonly props: Schema.Struct<{
311
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
314
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
312
315
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
313
316
  readonly journey_id: Schema.optional<Schema.String>;
314
317
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -320,7 +323,7 @@ declare const AuthOtpRequestedTelemetryEventSchema: Schema.Struct<{
320
323
  declare const AuthOtpDeliveredTelemetryEventSchema: Schema.Struct<{
321
324
  readonly name: Schema.Literal<"auth_otp_delivered">;
322
325
  readonly props: Schema.Struct<{
323
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
326
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
324
327
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
325
328
  readonly journey_id: Schema.optional<Schema.String>;
326
329
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -334,7 +337,7 @@ declare const AuthOtpDeliveredTelemetryEventSchema: Schema.Struct<{
334
337
  declare const AuthOtpExpiredTelemetryEventSchema: Schema.Struct<{
335
338
  readonly name: Schema.Literal<"auth_otp_expired">;
336
339
  readonly props: Schema.Struct<{
337
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
340
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
338
341
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
339
342
  readonly journey_id: Schema.optional<Schema.String>;
340
343
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -346,7 +349,7 @@ declare const AuthOtpExpiredTelemetryEventSchema: Schema.Struct<{
346
349
  declare const AuthVerifiedTelemetryEventSchema: Schema.Struct<{
347
350
  readonly name: Schema.Literal<"auth_verified">;
348
351
  readonly props: Schema.Struct<{
349
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
352
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
350
353
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
351
354
  readonly journey_id: Schema.optional<Schema.String>;
352
355
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -357,7 +360,7 @@ declare const AuthVerifiedTelemetryEventSchema: Schema.Struct<{
357
360
  declare const AuthFailedTelemetryEventSchema: Schema.Struct<{
358
361
  readonly name: Schema.Literal<"auth_failed">;
359
362
  readonly props: Schema.Struct<{
360
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
363
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
361
364
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
362
365
  readonly journey_id: Schema.optional<Schema.String>;
363
366
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -370,7 +373,7 @@ declare const AuthFailedTelemetryEventSchema: Schema.Struct<{
370
373
  declare const AuthSignedOutTelemetryEventSchema: Schema.Struct<{
371
374
  readonly name: Schema.Literal<"auth_signed_out">;
372
375
  readonly props: Schema.Struct<{
373
- capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
376
+ capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
374
377
  producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
375
378
  journey_id: Schema.optional<Schema.String>;
376
379
  correlation_id: Schema.optional<Schema.String>;
@@ -380,7 +383,7 @@ declare const AuthSignedOutTelemetryEventSchema: Schema.Struct<{
380
383
  declare const OnboardingIntentSelectedTelemetryEventSchema: Schema.Struct<{
381
384
  readonly name: Schema.Literal<"onboarding_intent_selected">;
382
385
  readonly props: Schema.Struct<{
383
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
386
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
384
387
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
385
388
  readonly correlation_id: Schema.optional<Schema.String>;
386
389
  readonly sdk_version: Schema.optional<Schema.String>;
@@ -392,7 +395,7 @@ declare const OnboardingIntentSelectedTelemetryEventSchema: Schema.Struct<{
392
395
  declare const OnboardingProfileSubmittedTelemetryEventSchema: Schema.Struct<{
393
396
  readonly name: Schema.Literal<"onboarding_profile_submitted">;
394
397
  readonly props: Schema.Struct<{
395
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
398
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
396
399
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
397
400
  readonly correlation_id: Schema.optional<Schema.String>;
398
401
  readonly sdk_version: Schema.optional<Schema.String>;
@@ -403,7 +406,7 @@ declare const OnboardingProfileSubmittedTelemetryEventSchema: Schema.Struct<{
403
406
  declare const OnboardingOrganizationSubmittedTelemetryEventSchema: Schema.Struct<{
404
407
  readonly name: Schema.Literal<"onboarding_organization_submitted">;
405
408
  readonly props: Schema.Struct<{
406
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
409
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
407
410
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
408
411
  readonly correlation_id: Schema.optional<Schema.String>;
409
412
  readonly sdk_version: Schema.optional<Schema.String>;
@@ -413,7 +416,7 @@ declare const OnboardingOrganizationSubmittedTelemetryEventSchema: Schema.Struct
413
416
  declare const OnboardingDashboardReachedTelemetryEventSchema: Schema.Struct<{
414
417
  readonly name: Schema.Literal<"onboarding_dashboard_reached">;
415
418
  readonly props: Schema.Struct<{
416
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
419
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
417
420
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
418
421
  readonly correlation_id: Schema.optional<Schema.String>;
419
422
  readonly sdk_version: Schema.optional<Schema.String>;
@@ -425,7 +428,7 @@ declare const OnboardingDashboardReachedTelemetryEventSchema: Schema.Struct<{
425
428
  declare const ProvisioningSafeCreatedTelemetryEventSchema: Schema.Struct<{
426
429
  readonly name: Schema.Literal<"provisioning_safe_created">;
427
430
  readonly props: Schema.Struct<{
428
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
431
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
429
432
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
430
433
  readonly journey_id: Schema.optional<Schema.String>;
431
434
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -436,7 +439,7 @@ declare const ProvisioningSafeCreatedTelemetryEventSchema: Schema.Struct<{
436
439
  declare const ProvisioningSafeConfirmedTelemetryEventSchema: Schema.Struct<{
437
440
  readonly name: Schema.Literal<"provisioning_safe_confirmed">;
438
441
  readonly props: Schema.Struct<{
439
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
442
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
440
443
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
441
444
  readonly journey_id: Schema.optional<Schema.String>;
442
445
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -453,7 +456,7 @@ declare const ProvisioningSafeConfirmedTelemetryEventSchema: Schema.Struct<{
453
456
  declare const BootstrapResolvedTelemetryEventSchema: Schema.Struct<{
454
457
  readonly name: Schema.Literal<"bootstrap_resolved">;
455
458
  readonly props: Schema.Struct<{
456
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
459
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
457
460
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
458
461
  readonly journey_id: Schema.optional<Schema.String>;
459
462
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -468,7 +471,7 @@ declare const BootstrapResolvedTelemetryEventSchema: Schema.Struct<{
468
471
  declare const BootstrapFailedTelemetryEventSchema: Schema.Struct<{
469
472
  readonly name: Schema.Literal<"bootstrap_failed">;
470
473
  readonly props: Schema.Struct<{
471
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
474
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
472
475
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
473
476
  readonly journey_id: Schema.optional<Schema.String>;
474
477
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -482,7 +485,7 @@ declare const BootstrapFailedTelemetryEventSchema: Schema.Struct<{
482
485
  declare const MemberActivationStartedTelemetryEventSchema: Schema.Struct<{
483
486
  readonly name: Schema.Literal<"member_activation_started">;
484
487
  readonly props: Schema.Struct<{
485
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
488
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
486
489
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
487
490
  readonly journey_id: Schema.optional<Schema.String>;
488
491
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -493,7 +496,7 @@ declare const MemberActivationStartedTelemetryEventSchema: Schema.Struct<{
493
496
  declare const MemberActivationReadyTelemetryEventSchema: Schema.Struct<{
494
497
  readonly name: Schema.Literal<"member_activation_ready">;
495
498
  readonly props: Schema.Struct<{
496
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
499
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
497
500
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
498
501
  readonly journey_id: Schema.optional<Schema.String>;
499
502
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -505,7 +508,7 @@ declare const MemberActivationReadyTelemetryEventSchema: Schema.Struct<{
505
508
  declare const MemberActivationFailedTelemetryEventSchema: Schema.Struct<{
506
509
  readonly name: Schema.Literal<"member_activation_failed">;
507
510
  readonly props: Schema.Struct<{
508
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
511
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
509
512
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
510
513
  readonly journey_id: Schema.optional<Schema.String>;
511
514
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -519,7 +522,7 @@ declare const MemberActivationFailedTelemetryEventSchema: Schema.Struct<{
519
522
  declare const OrganizationCreationStartedTelemetryEventSchema: Schema.Struct<{
520
523
  readonly name: Schema.Literal<"organization_creation_started">;
521
524
  readonly props: Schema.Struct<{
522
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
525
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
523
526
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
524
527
  readonly journey_id: Schema.optional<Schema.String>;
525
528
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -532,7 +535,7 @@ declare const OrganizationCreationStartedTelemetryEventSchema: Schema.Struct<{
532
535
  declare const OrganizationCreationReadyTelemetryEventSchema: Schema.Struct<{
533
536
  readonly name: Schema.Literal<"organization_creation_ready">;
534
537
  readonly props: Schema.Struct<{
535
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
538
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
536
539
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
537
540
  readonly journey_id: Schema.optional<Schema.String>;
538
541
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -546,7 +549,7 @@ declare const OrganizationCreationReadyTelemetryEventSchema: Schema.Struct<{
546
549
  declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
547
550
  readonly name: Schema.Literal<"organization_creation_failed">;
548
551
  readonly props: Schema.Struct<{
549
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
552
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
550
553
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
551
554
  readonly journey_id: Schema.optional<Schema.String>;
552
555
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -563,7 +566,7 @@ declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
563
566
  declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
564
567
  readonly name: Schema.Literal<"account_balance_read">;
565
568
  readonly props: Schema.Struct<{
566
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
569
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
567
570
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
568
571
  readonly journey_id: Schema.optional<Schema.String>;
569
572
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -577,7 +580,7 @@ declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
577
580
  declare const AccountBalanceFailedTelemetryEventSchema: Schema.Struct<{
578
581
  readonly name: Schema.Literal<"account_balance_failed">;
579
582
  readonly props: Schema.Struct<{
580
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
583
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
581
584
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
582
585
  readonly journey_id: Schema.optional<Schema.String>;
583
586
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -588,7 +591,7 @@ declare const AccountBalanceFailedTelemetryEventSchema: Schema.Struct<{
588
591
  declare const FaucetRequestedTelemetryEventSchema: Schema.Struct<{
589
592
  readonly name: Schema.Literal<"faucet_requested">;
590
593
  readonly props: Schema.Struct<{
591
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
594
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
592
595
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
593
596
  readonly journey_id: Schema.optional<Schema.String>;
594
597
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -600,7 +603,7 @@ declare const FaucetRequestedTelemetryEventSchema: Schema.Struct<{
600
603
  declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
601
604
  readonly name: Schema.Literal<"faucet_confirmed">;
602
605
  readonly props: Schema.Struct<{
603
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
606
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
604
607
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
605
608
  readonly journey_id: Schema.optional<Schema.String>;
606
609
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -614,7 +617,7 @@ declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
614
617
  declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
615
618
  readonly name: Schema.Literal<"faucet_failed">;
616
619
  readonly props: Schema.Struct<{
617
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
620
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
618
621
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
619
622
  readonly journey_id: Schema.optional<Schema.String>;
620
623
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -625,7 +628,7 @@ declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
625
628
  declare const OrgCreateStartedTelemetryEventSchema: Schema.Struct<{
626
629
  readonly name: Schema.Literal<"org_create_started">;
627
630
  readonly props: Schema.Struct<{
628
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
631
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
629
632
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
630
633
  readonly journey_id: Schema.optional<Schema.String>;
631
634
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -638,7 +641,7 @@ declare const OrgCreateStartedTelemetryEventSchema: Schema.Struct<{
638
641
  declare const OrgSafeCreatedTelemetryEventSchema: Schema.Struct<{
639
642
  readonly name: Schema.Literal<"org_safe_created">;
640
643
  readonly props: Schema.Struct<{
641
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
644
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
642
645
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
643
646
  readonly journey_id: Schema.optional<Schema.String>;
644
647
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -651,7 +654,7 @@ declare const OrgSafeCreatedTelemetryEventSchema: Schema.Struct<{
651
654
  declare const OrgSafeConfirmedTelemetryEventSchema: Schema.Struct<{
652
655
  readonly name: Schema.Literal<"org_safe_confirmed">;
653
656
  readonly props: Schema.Struct<{
654
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
657
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
655
658
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
656
659
  readonly journey_id: Schema.optional<Schema.String>;
657
660
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -665,7 +668,7 @@ declare const OrgSafeConfirmedTelemetryEventSchema: Schema.Struct<{
665
668
  declare const OrgRolesSeededTelemetryEventSchema: Schema.Struct<{
666
669
  readonly name: Schema.Literal<"org_roles_seeded">;
667
670
  readonly props: Schema.Struct<{
668
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
671
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
669
672
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
670
673
  readonly journey_id: Schema.optional<Schema.String>;
671
674
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -679,7 +682,7 @@ declare const OrgRolesSeededTelemetryEventSchema: Schema.Struct<{
679
682
  declare const OrgCreatedTelemetryEventSchema: Schema.Struct<{
680
683
  readonly name: Schema.Literal<"org_created">;
681
684
  readonly props: Schema.Struct<{
682
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
685
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
683
686
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
684
687
  readonly journey_id: Schema.optional<Schema.String>;
685
688
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -693,7 +696,7 @@ declare const OrgCreatedTelemetryEventSchema: Schema.Struct<{
693
696
  declare const OrgCreateFailedTelemetryEventSchema: Schema.Struct<{
694
697
  readonly name: Schema.Literal<"org_create_failed">;
695
698
  readonly props: Schema.Struct<{
696
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
699
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
697
700
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
698
701
  readonly journey_id: Schema.optional<Schema.String>;
699
702
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -705,7 +708,7 @@ declare const OrgCreateFailedTelemetryEventSchema: Schema.Struct<{
705
708
  declare const OrgInviteSentTelemetryEventSchema: Schema.Struct<{
706
709
  readonly name: Schema.Literal<"org_invite_sent">;
707
710
  readonly props: Schema.Struct<{
708
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
711
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
709
712
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
710
713
  readonly journey_id: Schema.optional<Schema.String>;
711
714
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -719,7 +722,7 @@ declare const OrgInviteSentTelemetryEventSchema: Schema.Struct<{
719
722
  declare const OrgInviteAcceptedTelemetryEventSchema: Schema.Struct<{
720
723
  readonly name: Schema.Literal<"org_invite_accepted">;
721
724
  readonly props: Schema.Struct<{
722
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
725
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
723
726
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
724
727
  readonly journey_id: Schema.optional<Schema.String>;
725
728
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -732,7 +735,7 @@ declare const OrgInviteAcceptedTelemetryEventSchema: Schema.Struct<{
732
735
  declare const OrgInviteExpiredTelemetryEventSchema: Schema.Struct<{
733
736
  readonly name: Schema.Literal<"org_invite_expired">;
734
737
  readonly props: Schema.Struct<{
735
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
738
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
736
739
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
737
740
  readonly journey_id: Schema.optional<Schema.String>;
738
741
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -747,7 +750,7 @@ declare const OrgInviteExpiredTelemetryEventSchema: Schema.Struct<{
747
750
  declare const PaymentInitiatedTelemetryEventSchema: Schema.Struct<{
748
751
  readonly name: Schema.Literal<"payment_initiated">;
749
752
  readonly props: Schema.Struct<{
750
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
753
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
751
754
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
752
755
  readonly journey_id: Schema.optional<Schema.String>;
753
756
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -759,7 +762,7 @@ declare const PaymentInitiatedTelemetryEventSchema: Schema.Struct<{
759
762
  declare const PaymentSettledTelemetryEventSchema: Schema.Struct<{
760
763
  readonly name: Schema.Literal<"payment_settled">;
761
764
  readonly props: Schema.Struct<{
762
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
765
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
763
766
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
764
767
  readonly journey_id: Schema.optional<Schema.String>;
765
768
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -772,7 +775,7 @@ declare const PaymentSettledTelemetryEventSchema: Schema.Struct<{
772
775
  declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
773
776
  readonly name: Schema.Literal<"payment_failed">;
774
777
  readonly props: Schema.Struct<{
775
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
778
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
776
779
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
777
780
  readonly journey_id: Schema.optional<Schema.String>;
778
781
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -785,7 +788,7 @@ declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
785
788
  declare const DepositInitiatedTelemetryEventSchema: Schema.Struct<{
786
789
  readonly name: Schema.Literal<"deposit_initiated">;
787
790
  readonly props: Schema.Struct<{
788
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
791
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
789
792
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
790
793
  readonly journey_id: Schema.optional<Schema.String>;
791
794
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -795,7 +798,7 @@ declare const DepositInitiatedTelemetryEventSchema: Schema.Struct<{
795
798
  declare const DepositSettledTelemetryEventSchema: Schema.Struct<{
796
799
  readonly name: Schema.Literal<"deposit_settled">;
797
800
  readonly props: Schema.Struct<{
798
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
801
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
799
802
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
800
803
  readonly journey_id: Schema.optional<Schema.String>;
801
804
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -808,7 +811,7 @@ declare const DepositSettledTelemetryEventSchema: Schema.Struct<{
808
811
  declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
809
812
  readonly name: Schema.Literal<"permission_mirror_verification">;
810
813
  readonly props: Schema.Struct<{
811
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
814
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
812
815
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
813
816
  readonly journey_id: Schema.optional<Schema.String>;
814
817
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -822,7 +825,7 @@ declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
822
825
  declare const MovementScanWindowTelemetryEventSchema: Schema.Struct<{
823
826
  readonly name: Schema.Literal<"movement_scan_window">;
824
827
  readonly props: Schema.Struct<{
825
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
828
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
826
829
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
827
830
  readonly journey_id: Schema.optional<Schema.String>;
828
831
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -839,7 +842,7 @@ declare const MovementScanWindowTelemetryEventSchema: Schema.Struct<{
839
842
  declare const MovementScanCheckpointTelemetryEventSchema: Schema.Struct<{
840
843
  readonly name: Schema.Literal<"movement_scan_checkpoint">;
841
844
  readonly props: Schema.Struct<{
842
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
845
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
843
846
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
844
847
  readonly journey_id: Schema.optional<Schema.String>;
845
848
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -853,7 +856,7 @@ declare const MovementScanCheckpointTelemetryEventSchema: Schema.Struct<{
853
856
  declare const MovementScanIncidentTelemetryEventSchema: Schema.Struct<{
854
857
  readonly name: Schema.Literal<"movement_scan_incident">;
855
858
  readonly props: Schema.Struct<{
856
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
859
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
857
860
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
858
861
  readonly journey_id: Schema.optional<Schema.String>;
859
862
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -868,7 +871,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
868
871
  readonly auth_otp_requested: Schema.Struct<{
869
872
  readonly name: Schema.Literal<"auth_otp_requested">;
870
873
  readonly props: Schema.Struct<{
871
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
874
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
872
875
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
873
876
  readonly journey_id: Schema.optional<Schema.String>;
874
877
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -880,7 +883,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
880
883
  readonly auth_otp_delivered: Schema.Struct<{
881
884
  readonly name: Schema.Literal<"auth_otp_delivered">;
882
885
  readonly props: Schema.Struct<{
883
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
886
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
884
887
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
885
888
  readonly journey_id: Schema.optional<Schema.String>;
886
889
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -894,7 +897,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
894
897
  readonly auth_otp_expired: Schema.Struct<{
895
898
  readonly name: Schema.Literal<"auth_otp_expired">;
896
899
  readonly props: Schema.Struct<{
897
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
900
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
898
901
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
899
902
  readonly journey_id: Schema.optional<Schema.String>;
900
903
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -906,7 +909,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
906
909
  readonly auth_verified: Schema.Struct<{
907
910
  readonly name: Schema.Literal<"auth_verified">;
908
911
  readonly props: Schema.Struct<{
909
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
912
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
910
913
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
911
914
  readonly journey_id: Schema.optional<Schema.String>;
912
915
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -917,7 +920,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
917
920
  readonly auth_failed: Schema.Struct<{
918
921
  readonly name: Schema.Literal<"auth_failed">;
919
922
  readonly props: Schema.Struct<{
920
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
923
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
921
924
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
922
925
  readonly journey_id: Schema.optional<Schema.String>;
923
926
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -930,7 +933,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
930
933
  readonly auth_signed_out: Schema.Struct<{
931
934
  readonly name: Schema.Literal<"auth_signed_out">;
932
935
  readonly props: Schema.Struct<{
933
- capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
936
+ capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
934
937
  producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
935
938
  journey_id: Schema.optional<Schema.String>;
936
939
  correlation_id: Schema.optional<Schema.String>;
@@ -940,7 +943,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
940
943
  readonly onboarding_intent_selected: Schema.Struct<{
941
944
  readonly name: Schema.Literal<"onboarding_intent_selected">;
942
945
  readonly props: Schema.Struct<{
943
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
946
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
944
947
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
945
948
  readonly correlation_id: Schema.optional<Schema.String>;
946
949
  readonly sdk_version: Schema.optional<Schema.String>;
@@ -952,7 +955,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
952
955
  readonly onboarding_profile_submitted: Schema.Struct<{
953
956
  readonly name: Schema.Literal<"onboarding_profile_submitted">;
954
957
  readonly props: Schema.Struct<{
955
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
958
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
956
959
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
957
960
  readonly correlation_id: Schema.optional<Schema.String>;
958
961
  readonly sdk_version: Schema.optional<Schema.String>;
@@ -963,7 +966,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
963
966
  readonly onboarding_organization_submitted: Schema.Struct<{
964
967
  readonly name: Schema.Literal<"onboarding_organization_submitted">;
965
968
  readonly props: Schema.Struct<{
966
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
969
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
967
970
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
968
971
  readonly correlation_id: Schema.optional<Schema.String>;
969
972
  readonly sdk_version: Schema.optional<Schema.String>;
@@ -973,7 +976,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
973
976
  readonly onboarding_dashboard_reached: Schema.Struct<{
974
977
  readonly name: Schema.Literal<"onboarding_dashboard_reached">;
975
978
  readonly props: Schema.Struct<{
976
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
979
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
977
980
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
978
981
  readonly correlation_id: Schema.optional<Schema.String>;
979
982
  readonly sdk_version: Schema.optional<Schema.String>;
@@ -985,7 +988,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
985
988
  readonly provisioning_safe_created: Schema.Struct<{
986
989
  readonly name: Schema.Literal<"provisioning_safe_created">;
987
990
  readonly props: Schema.Struct<{
988
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
991
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
989
992
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
990
993
  readonly journey_id: Schema.optional<Schema.String>;
991
994
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -996,7 +999,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
996
999
  readonly provisioning_safe_confirmed: Schema.Struct<{
997
1000
  readonly name: Schema.Literal<"provisioning_safe_confirmed">;
998
1001
  readonly props: Schema.Struct<{
999
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1002
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1000
1003
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1001
1004
  readonly journey_id: Schema.optional<Schema.String>;
1002
1005
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1013,7 +1016,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1013
1016
  readonly bootstrap_resolved: Schema.Struct<{
1014
1017
  readonly name: Schema.Literal<"bootstrap_resolved">;
1015
1018
  readonly props: Schema.Struct<{
1016
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1019
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1017
1020
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1018
1021
  readonly journey_id: Schema.optional<Schema.String>;
1019
1022
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1028,7 +1031,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1028
1031
  readonly bootstrap_failed: Schema.Struct<{
1029
1032
  readonly name: Schema.Literal<"bootstrap_failed">;
1030
1033
  readonly props: Schema.Struct<{
1031
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1034
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1032
1035
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1033
1036
  readonly journey_id: Schema.optional<Schema.String>;
1034
1037
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1042,7 +1045,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1042
1045
  readonly member_activation_started: Schema.Struct<{
1043
1046
  readonly name: Schema.Literal<"member_activation_started">;
1044
1047
  readonly props: Schema.Struct<{
1045
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1048
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1046
1049
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1047
1050
  readonly journey_id: Schema.optional<Schema.String>;
1048
1051
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1053,7 +1056,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1053
1056
  readonly member_activation_ready: Schema.Struct<{
1054
1057
  readonly name: Schema.Literal<"member_activation_ready">;
1055
1058
  readonly props: Schema.Struct<{
1056
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1059
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1057
1060
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1058
1061
  readonly journey_id: Schema.optional<Schema.String>;
1059
1062
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1065,7 +1068,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1065
1068
  readonly member_activation_failed: Schema.Struct<{
1066
1069
  readonly name: Schema.Literal<"member_activation_failed">;
1067
1070
  readonly props: Schema.Struct<{
1068
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1071
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1069
1072
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1070
1073
  readonly journey_id: Schema.optional<Schema.String>;
1071
1074
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1079,7 +1082,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1079
1082
  readonly organization_creation_started: Schema.Struct<{
1080
1083
  readonly name: Schema.Literal<"organization_creation_started">;
1081
1084
  readonly props: Schema.Struct<{
1082
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1085
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1083
1086
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1084
1087
  readonly journey_id: Schema.optional<Schema.String>;
1085
1088
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1092,7 +1095,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1092
1095
  readonly organization_creation_ready: Schema.Struct<{
1093
1096
  readonly name: Schema.Literal<"organization_creation_ready">;
1094
1097
  readonly props: Schema.Struct<{
1095
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1098
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1096
1099
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1097
1100
  readonly journey_id: Schema.optional<Schema.String>;
1098
1101
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1106,7 +1109,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1106
1109
  readonly organization_creation_failed: Schema.Struct<{
1107
1110
  readonly name: Schema.Literal<"organization_creation_failed">;
1108
1111
  readonly props: Schema.Struct<{
1109
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1112
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1110
1113
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1111
1114
  readonly journey_id: Schema.optional<Schema.String>;
1112
1115
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1123,7 +1126,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1123
1126
  readonly account_balance_read: Schema.Struct<{
1124
1127
  readonly name: Schema.Literal<"account_balance_read">;
1125
1128
  readonly props: Schema.Struct<{
1126
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1129
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1127
1130
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1128
1131
  readonly journey_id: Schema.optional<Schema.String>;
1129
1132
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1137,7 +1140,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1137
1140
  readonly account_balance_failed: Schema.Struct<{
1138
1141
  readonly name: Schema.Literal<"account_balance_failed">;
1139
1142
  readonly props: Schema.Struct<{
1140
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1143
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1141
1144
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1142
1145
  readonly journey_id: Schema.optional<Schema.String>;
1143
1146
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1148,7 +1151,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1148
1151
  readonly faucet_requested: Schema.Struct<{
1149
1152
  readonly name: Schema.Literal<"faucet_requested">;
1150
1153
  readonly props: Schema.Struct<{
1151
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1154
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1152
1155
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1153
1156
  readonly journey_id: Schema.optional<Schema.String>;
1154
1157
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1160,7 +1163,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1160
1163
  readonly faucet_confirmed: Schema.Struct<{
1161
1164
  readonly name: Schema.Literal<"faucet_confirmed">;
1162
1165
  readonly props: Schema.Struct<{
1163
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1166
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1164
1167
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1165
1168
  readonly journey_id: Schema.optional<Schema.String>;
1166
1169
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1174,7 +1177,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1174
1177
  readonly faucet_failed: Schema.Struct<{
1175
1178
  readonly name: Schema.Literal<"faucet_failed">;
1176
1179
  readonly props: Schema.Struct<{
1177
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1180
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1178
1181
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1179
1182
  readonly journey_id: Schema.optional<Schema.String>;
1180
1183
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1185,7 +1188,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1185
1188
  readonly org_create_started: Schema.Struct<{
1186
1189
  readonly name: Schema.Literal<"org_create_started">;
1187
1190
  readonly props: Schema.Struct<{
1188
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1191
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1189
1192
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1190
1193
  readonly journey_id: Schema.optional<Schema.String>;
1191
1194
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1198,7 +1201,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1198
1201
  readonly org_safe_created: Schema.Struct<{
1199
1202
  readonly name: Schema.Literal<"org_safe_created">;
1200
1203
  readonly props: Schema.Struct<{
1201
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1204
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1202
1205
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1203
1206
  readonly journey_id: Schema.optional<Schema.String>;
1204
1207
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1211,7 +1214,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1211
1214
  readonly org_safe_confirmed: Schema.Struct<{
1212
1215
  readonly name: Schema.Literal<"org_safe_confirmed">;
1213
1216
  readonly props: Schema.Struct<{
1214
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1217
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1215
1218
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1216
1219
  readonly journey_id: Schema.optional<Schema.String>;
1217
1220
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1225,7 +1228,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1225
1228
  readonly org_roles_seeded: Schema.Struct<{
1226
1229
  readonly name: Schema.Literal<"org_roles_seeded">;
1227
1230
  readonly props: Schema.Struct<{
1228
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1231
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1229
1232
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1230
1233
  readonly journey_id: Schema.optional<Schema.String>;
1231
1234
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1239,7 +1242,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1239
1242
  readonly org_created: Schema.Struct<{
1240
1243
  readonly name: Schema.Literal<"org_created">;
1241
1244
  readonly props: Schema.Struct<{
1242
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1245
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1243
1246
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1244
1247
  readonly journey_id: Schema.optional<Schema.String>;
1245
1248
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1253,7 +1256,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1253
1256
  readonly org_create_failed: Schema.Struct<{
1254
1257
  readonly name: Schema.Literal<"org_create_failed">;
1255
1258
  readonly props: Schema.Struct<{
1256
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1259
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1257
1260
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1258
1261
  readonly journey_id: Schema.optional<Schema.String>;
1259
1262
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1265,7 +1268,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1265
1268
  readonly org_invite_sent: Schema.Struct<{
1266
1269
  readonly name: Schema.Literal<"org_invite_sent">;
1267
1270
  readonly props: Schema.Struct<{
1268
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1271
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1269
1272
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1270
1273
  readonly journey_id: Schema.optional<Schema.String>;
1271
1274
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1279,7 +1282,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1279
1282
  readonly org_invite_accepted: Schema.Struct<{
1280
1283
  readonly name: Schema.Literal<"org_invite_accepted">;
1281
1284
  readonly props: Schema.Struct<{
1282
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1285
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1283
1286
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1284
1287
  readonly journey_id: Schema.optional<Schema.String>;
1285
1288
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1292,7 +1295,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1292
1295
  readonly org_invite_expired: Schema.Struct<{
1293
1296
  readonly name: Schema.Literal<"org_invite_expired">;
1294
1297
  readonly props: Schema.Struct<{
1295
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1298
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1296
1299
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1297
1300
  readonly journey_id: Schema.optional<Schema.String>;
1298
1301
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1307,7 +1310,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1307
1310
  readonly payment_initiated: Schema.Struct<{
1308
1311
  readonly name: Schema.Literal<"payment_initiated">;
1309
1312
  readonly props: Schema.Struct<{
1310
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1313
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1311
1314
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1312
1315
  readonly journey_id: Schema.optional<Schema.String>;
1313
1316
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1319,7 +1322,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1319
1322
  readonly payment_settled: Schema.Struct<{
1320
1323
  readonly name: Schema.Literal<"payment_settled">;
1321
1324
  readonly props: Schema.Struct<{
1322
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1325
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1323
1326
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1324
1327
  readonly journey_id: Schema.optional<Schema.String>;
1325
1328
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1332,7 +1335,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1332
1335
  readonly payment_failed: Schema.Struct<{
1333
1336
  readonly name: Schema.Literal<"payment_failed">;
1334
1337
  readonly props: Schema.Struct<{
1335
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1338
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1336
1339
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1337
1340
  readonly journey_id: Schema.optional<Schema.String>;
1338
1341
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1345,7 +1348,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1345
1348
  readonly deposit_initiated: Schema.Struct<{
1346
1349
  readonly name: Schema.Literal<"deposit_initiated">;
1347
1350
  readonly props: Schema.Struct<{
1348
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1351
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1349
1352
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1350
1353
  readonly journey_id: Schema.optional<Schema.String>;
1351
1354
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1355,7 +1358,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1355
1358
  readonly deposit_settled: Schema.Struct<{
1356
1359
  readonly name: Schema.Literal<"deposit_settled">;
1357
1360
  readonly props: Schema.Struct<{
1358
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1361
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1359
1362
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1360
1363
  readonly journey_id: Schema.optional<Schema.String>;
1361
1364
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1368,7 +1371,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1368
1371
  readonly permission_mirror_verification: Schema.Struct<{
1369
1372
  readonly name: Schema.Literal<"permission_mirror_verification">;
1370
1373
  readonly props: Schema.Struct<{
1371
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1374
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1372
1375
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1373
1376
  readonly journey_id: Schema.optional<Schema.String>;
1374
1377
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1382,7 +1385,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1382
1385
  readonly movement_scan_window: Schema.Struct<{
1383
1386
  readonly name: Schema.Literal<"movement_scan_window">;
1384
1387
  readonly props: Schema.Struct<{
1385
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1388
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1386
1389
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1387
1390
  readonly journey_id: Schema.optional<Schema.String>;
1388
1391
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1399,7 +1402,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1399
1402
  readonly movement_scan_checkpoint: Schema.Struct<{
1400
1403
  readonly name: Schema.Literal<"movement_scan_checkpoint">;
1401
1404
  readonly props: Schema.Struct<{
1402
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1405
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1403
1406
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1404
1407
  readonly journey_id: Schema.optional<Schema.String>;
1405
1408
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1413,7 +1416,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1413
1416
  readonly movement_scan_incident: Schema.Struct<{
1414
1417
  readonly name: Schema.Literal<"movement_scan_incident">;
1415
1418
  readonly props: Schema.Struct<{
1416
- readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown"]>;
1419
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1417
1420
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1418
1421
  readonly journey_id: Schema.optional<Schema.String>;
1419
1422
  readonly correlation_id: Schema.optional<Schema.String>;
@@ -1484,13 +1487,10 @@ interface PostHogBrowserCapture {
1484
1487
  */
1485
1488
  declare function sanitizePostHogBrowserEvent<T extends PostHogBrowserCapture | null>(event: T): T;
1486
1489
  /**
1487
- * Sanitize AND stamp. Every browser event leaves with `capxul_env` and
1488
- * `producer: "browser"` on it, because the browser half has no transport of
1489
- * its own to stamp at — `before_send` is the one funnel every capture,
1490
- * pageview, exception and replay-meta event passes through. Forgetting to
1491
- * register a super-property is therefore not a failure mode.
1490
+ * Drop local events before transport. Sanitize and stamp every other browser
1491
+ * event with `capxul_env` and `producer: "browser"`.
1492
1492
  */
1493
- declare function createCapxulBeforeSend(capxulEnv: CapxulEnv): <T extends PostHogBrowserCapture | null>(event: T) => T;
1493
+ declare function createCapxulBeforeSend(capxulEnv: CapxulEnv): <T extends PostHogBrowserCapture | null>(event: T) => T | null;
1494
1494
  type PostHogBeforeSend = ReturnType<typeof createCapxulBeforeSend>;
1495
1495
  /**
1496
1496
  * ADR-0016 posture, unchanged: capability-URL utility apps (approval links,
package/dist/index.mjs CHANGED
@@ -332,9 +332,13 @@ const CAPXUL_ENVS = [
332
332
  "development",
333
333
  "staging",
334
334
  "production",
335
- "unknown"
335
+ "unknown",
336
+ "local"
336
337
  ];
337
- /** Environments a synced product surface may be built for (`unknown` cannot). */
338
+ /**
339
+ * Environments a synced product surface may be built for. `unknown` and
340
+ * `local` cannot. This list is deliberately narrower than `CAPXUL_ENVS`.
341
+ */
338
342
  const SYNCABLE_CAPXUL_ENVS = [
339
343
  "development",
340
344
  "staging",
@@ -947,14 +951,12 @@ function sanitizePostHogBrowserEvent(event) {
947
951
  return event;
948
952
  }
949
953
  /**
950
- * Sanitize AND stamp. Every browser event leaves with `capxul_env` and
951
- * `producer: "browser"` on it, because the browser half has no transport of
952
- * its own to stamp at — `before_send` is the one funnel every capture,
953
- * pageview, exception and replay-meta event passes through. Forgetting to
954
- * register a super-property is therefore not a failure mode.
954
+ * Drop local events before transport. Sanitize and stamp every other browser
955
+ * event with `capxul_env` and `producer: "browser"`.
955
956
  */
956
957
  function createCapxulBeforeSend(capxulEnv) {
957
958
  return (event) => {
959
+ if (capxulEnv === "local") return null;
958
960
  const sanitized = sanitizePostHogBrowserEvent(event);
959
961
  if (sanitized === null) return sanitized;
960
962
  sanitized.properties.capxul_env = capxulEnv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "2.3.2",
3
+ "version": "2.5.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,8 +37,8 @@
37
37
  "vite-plus": "0.1.23",
38
38
  "vitest": "npm:@voidzero-dev/vite-plus-test@0.1.23",
39
39
  "@capxul/errors": "0.0.1",
40
- "@capxul/types": "0.2.0",
41
- "@capxul/typescript-config": "0.0.0"
40
+ "@capxul/typescript-config": "0.0.0",
41
+ "@capxul/types": "0.2.0"
42
42
  },
43
43
  "scripts": {
44
44
  "check-types": "vp exec ../../node_modules/@typescript/native/bin/tsc -p tsconfig.json --noEmit",