configproof 0.3.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.
Files changed (115) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +217 -0
  3. package/dist/adapters/dotenv.d.ts +3 -0
  4. package/dist/adapters/dotenv.js +277 -0
  5. package/dist/adapters/dotenv.js.map +1 -0
  6. package/dist/adapters/native-env.d.ts +7 -0
  7. package/dist/adapters/native-env.js +196 -0
  8. package/dist/adapters/native-env.js.map +1 -0
  9. package/dist/adapters/registry.d.ts +7 -0
  10. package/dist/adapters/registry.js +30 -0
  11. package/dist/adapters/registry.js.map +1 -0
  12. package/dist/agent/server.d.ts +15 -0
  13. package/dist/agent/server.js +254 -0
  14. package/dist/agent/server.js.map +1 -0
  15. package/dist/analysis/diagnose.d.ts +64 -0
  16. package/dist/analysis/diagnose.js +142 -0
  17. package/dist/analysis/diagnose.js.map +1 -0
  18. package/dist/analysis/history.d.ts +52 -0
  19. package/dist/analysis/history.js +119 -0
  20. package/dist/analysis/history.js.map +1 -0
  21. package/dist/analysis/policy.d.ts +161 -0
  22. package/dist/analysis/policy.js +192 -0
  23. package/dist/analysis/policy.js.map +1 -0
  24. package/dist/analysis/provenance.d.ts +45 -0
  25. package/dist/analysis/provenance.js +144 -0
  26. package/dist/analysis/provenance.js.map +1 -0
  27. package/dist/cli.d.ts +2 -0
  28. package/dist/cli.js +286 -0
  29. package/dist/cli.js.map +1 -0
  30. package/dist/core/analyze.d.ts +46 -0
  31. package/dist/core/analyze.js +168 -0
  32. package/dist/core/analyze.js.map +1 -0
  33. package/dist/core/collect.d.ts +5 -0
  34. package/dist/core/collect.js +147 -0
  35. package/dist/core/collect.js.map +1 -0
  36. package/dist/core/export.d.ts +53 -0
  37. package/dist/core/export.js +155 -0
  38. package/dist/core/export.js.map +1 -0
  39. package/dist/core/io.d.ts +13 -0
  40. package/dist/core/io.js +100 -0
  41. package/dist/core/io.js.map +1 -0
  42. package/dist/core/privacy.d.ts +25 -0
  43. package/dist/core/privacy.js +113 -0
  44. package/dist/core/privacy.js.map +1 -0
  45. package/dist/core/schema.d.ts +2149 -0
  46. package/dist/core/schema.js +181 -0
  47. package/dist/core/schema.js.map +1 -0
  48. package/dist/demo.d.ts +1 -0
  49. package/dist/demo.js +45 -0
  50. package/dist/demo.js.map +1 -0
  51. package/dist/index.d.ts +23 -0
  52. package/dist/index.js +63 -0
  53. package/dist/index.js.map +1 -0
  54. package/dist/launcher.d.ts +27 -0
  55. package/dist/launcher.js +122 -0
  56. package/dist/launcher.js.map +1 -0
  57. package/dist/report/html.d.ts +5 -0
  58. package/dist/report/html.js +109 -0
  59. package/dist/report/html.js.map +1 -0
  60. package/dist/runtime/api.d.ts +44 -0
  61. package/dist/runtime/api.js +29 -0
  62. package/dist/runtime/api.js.map +1 -0
  63. package/dist/runtime/callsite.d.ts +3 -0
  64. package/dist/runtime/callsite.js +61 -0
  65. package/dist/runtime/callsite.js.map +1 -0
  66. package/dist/runtime/children.d.ts +8 -0
  67. package/dist/runtime/children.js +69 -0
  68. package/dist/runtime/children.js.map +1 -0
  69. package/dist/runtime/environment.d.ts +3 -0
  70. package/dist/runtime/environment.js +53 -0
  71. package/dist/runtime/environment.js.map +1 -0
  72. package/dist/runtime/preload.d.ts +1 -0
  73. package/dist/runtime/preload.js +117 -0
  74. package/dist/runtime/preload.js.map +1 -0
  75. package/dist/runtime/recorder.d.ts +59 -0
  76. package/dist/runtime/recorder.js +254 -0
  77. package/dist/runtime/recorder.js.map +1 -0
  78. package/dist/runtime/workers.d.ts +12 -0
  79. package/dist/runtime/workers.js +127 -0
  80. package/dist/runtime/workers.js.map +1 -0
  81. package/docs/ARCHITECTURE.md +54 -0
  82. package/docs/COMPATIBILITY.md +24 -0
  83. package/docs/PRIVACY.md +17 -0
  84. package/docs/VALIDATION.md +42 -0
  85. package/fixtures/bypass/app.cjs +6 -0
  86. package/fixtures/bypass/early.cjs +2 -0
  87. package/fixtures/child-process/child.cjs +2 -0
  88. package/fixtures/child-process/parent.cjs +5 -0
  89. package/fixtures/custom-target/app.cjs +4 -0
  90. package/fixtures/custom-target/sample.env +1 -0
  91. package/fixtures/esm/app.mjs +5 -0
  92. package/fixtures/exit-code/app.cjs +4 -0
  93. package/fixtures/failure-boundary/app.cjs +7 -0
  94. package/fixtures/load-order/app.cjs +9 -0
  95. package/fixtures/load-order/first.env +1 -0
  96. package/fixtures/load-order/second.env +1 -0
  97. package/fixtures/manifest.json +16 -0
  98. package/fixtures/native-env/app.cjs +6 -0
  99. package/fixtures/native-env/failure.cjs +4 -0
  100. package/fixtures/native-env/sample.env +1 -0
  101. package/fixtures/native-env/startup.cjs +2 -0
  102. package/fixtures/runtime-mutation/app.cjs +12 -0
  103. package/fixtures/source-map/input.ts +5 -0
  104. package/fixtures/source-map/tsconfig.json +7 -0
  105. package/fixtures/stale-inheritance/app.cjs +4 -0
  106. package/fixtures/stale-inheritance/sample.env +1 -0
  107. package/fixtures/v03-manifest.json +32 -0
  108. package/fixtures/worker/parent.cjs +3 -0
  109. package/fixtures/worker/worker.cjs +2 -0
  110. package/fixtures/worker-modes/parent.cjs +17 -0
  111. package/fixtures/worker-modes/worker.cjs +4 -0
  112. package/package.json +64 -0
  113. package/policies/configtrace-policy.yaml +23 -0
  114. package/policies/issue-share.yaml +12 -0
  115. package/policies/minimal.yaml +8 -0
@@ -0,0 +1,2149 @@
1
+ import { z } from 'zod';
2
+ export declare const TOOL_VERSION = "0.3.0";
3
+ export declare const SCHEMA_VERSION = "configtrace/2";
4
+ export declare const MAX_ARTIFACT_BYTES: number;
5
+ export declare const MAX_EVENTS = 100000;
6
+ export declare const MAX_PROCESSES = 64;
7
+ export declare const ValueSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
8
+ state: z.ZodLiteral<"present">;
9
+ token: z.ZodString;
10
+ empty: z.ZodOptional<z.ZodBoolean>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ state: "present";
13
+ token: string;
14
+ empty?: boolean | undefined;
15
+ }, {
16
+ state: "present";
17
+ token: string;
18
+ empty?: boolean | undefined;
19
+ }>, z.ZodObject<{
20
+ state: z.ZodLiteral<"missing">;
21
+ }, "strict", z.ZodTypeAny, {
22
+ state: "missing";
23
+ }, {
24
+ state: "missing";
25
+ }>, z.ZodObject<{
26
+ state: z.ZodLiteral<"omitted">;
27
+ }, "strict", z.ZodTypeAny, {
28
+ state: "omitted";
29
+ }, {
30
+ state: "omitted";
31
+ }>]>;
32
+ export type SafeValue = z.infer<typeof ValueSchema>;
33
+ export declare const SiteSchema: z.ZodObject<{
34
+ file: z.ZodString;
35
+ line: z.ZodOptional<z.ZodNumber>;
36
+ column: z.ZodOptional<z.ZodNumber>;
37
+ mapping: z.ZodEnum<["source-map", "generated", "unavailable"]>;
38
+ }, "strict", z.ZodTypeAny, {
39
+ file: string;
40
+ mapping: "source-map" | "generated" | "unavailable";
41
+ line?: number | undefined;
42
+ column?: number | undefined;
43
+ }, {
44
+ file: string;
45
+ mapping: "source-map" | "generated" | "unavailable";
46
+ line?: number | undefined;
47
+ column?: number | undefined;
48
+ }>;
49
+ export type CallSite = z.infer<typeof SiteSchema>;
50
+ export declare const OriginSchema: z.ZodObject<{
51
+ kind: z.ZodEnum<["startup", "runtime", "dotenv", "native-env", "adapter", "unknown"]>;
52
+ confidence: z.ZodEnum<["observed", "derived", "inferred", "unknown"]>;
53
+ file: z.ZodOptional<z.ZodString>;
54
+ adapterId: z.ZodOptional<z.ZodString>;
55
+ }, "strict", z.ZodTypeAny, {
56
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
57
+ confidence: "unknown" | "observed" | "derived" | "inferred";
58
+ file?: string | undefined;
59
+ adapterId?: string | undefined;
60
+ }, {
61
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
62
+ confidence: "unknown" | "observed" | "derived" | "inferred";
63
+ file?: string | undefined;
64
+ adapterId?: string | undefined;
65
+ }>;
66
+ export type Origin = z.infer<typeof OriginSchema>;
67
+ export declare const NoticeSchema: z.ZodEnum<["startup_history_unknown", "native_access_unobserved", "workers_unsupported", "original_reference_bypass", "environment_replaced", "early_preloads_possible", "events_dropped", "event_limit", "byte_limit", "key_limit", "recorder_failed", "missing_footer", "invalid_stream", "process_limit", "aggregate_limit", "child_outlived_root", "children_disabled", "children_opt_in", "child_depth_limit", "child_count_limit", "child_shape_unsupported", "child_shell_or_non_node", "child_detached", "sync_children_unobserved", "dotenv_not_seen", "dotenv_attached", "dotenv_version_unverified", "dotenv_custom_target", "dotenv_source_unknown", "dotenv_options_unsupported", "dotenv_eager_load", "adapter_failed", "source_maps_opt_in", "source_maps_requested", "source_map_unavailable", "custom_adapter_loaded", "capture_unverified", "metadata_scrubbed", "comparison_removed", "loader_details_removed", "call_sites_removed", "native_env_attached", "native_env_disabled", "native_env_unavailable", "native_env_early", "native_env_candidates_inferred", "native_env_candidates_unavailable", "native_env_file_changed", "workers_opt_in", "workers_disabled", "worker_attached", "worker_shared_env", "worker_shape_unsupported", "worker_depth_limit", "worker_count_limit", "worker_unconfirmed", "worker_outlived_root", "adapter_manifest_unverified", "failure_boundary_recorded"]>;
68
+ export type Notice = z.infer<typeof NoticeSchema>;
69
+ export declare const CoverageSchema: z.ZodObject<{
70
+ feature: z.ZodEnum<["environment", "startup", "dotenv", "source-maps", "children", "native", "native-env", "workers", "adapters"]>;
71
+ status: z.ZodEnum<["active", "limited", "not-observed", "unsupported"]>;
72
+ reasons: z.ZodArray<z.ZodEnum<["startup_history_unknown", "native_access_unobserved", "workers_unsupported", "original_reference_bypass", "environment_replaced", "early_preloads_possible", "events_dropped", "event_limit", "byte_limit", "key_limit", "recorder_failed", "missing_footer", "invalid_stream", "process_limit", "aggregate_limit", "child_outlived_root", "children_disabled", "children_opt_in", "child_depth_limit", "child_count_limit", "child_shape_unsupported", "child_shell_or_non_node", "child_detached", "sync_children_unobserved", "dotenv_not_seen", "dotenv_attached", "dotenv_version_unverified", "dotenv_custom_target", "dotenv_source_unknown", "dotenv_options_unsupported", "dotenv_eager_load", "adapter_failed", "source_maps_opt_in", "source_maps_requested", "source_map_unavailable", "custom_adapter_loaded", "capture_unverified", "metadata_scrubbed", "comparison_removed", "loader_details_removed", "call_sites_removed", "native_env_attached", "native_env_disabled", "native_env_unavailable", "native_env_early", "native_env_candidates_inferred", "native_env_candidates_unavailable", "native_env_file_changed", "workers_opt_in", "workers_disabled", "worker_attached", "worker_shared_env", "worker_shape_unsupported", "worker_depth_limit", "worker_count_limit", "worker_unconfirmed", "worker_outlived_root", "adapter_manifest_unverified", "failure_boundary_recorded"]>, "many">;
73
+ }, "strict", z.ZodTypeAny, {
74
+ status: "active" | "limited" | "not-observed" | "unsupported";
75
+ feature: "startup" | "dotenv" | "native-env" | "environment" | "source-maps" | "children" | "native" | "workers" | "adapters";
76
+ reasons: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
77
+ }, {
78
+ status: "active" | "limited" | "not-observed" | "unsupported";
79
+ feature: "startup" | "dotenv" | "native-env" | "environment" | "source-maps" | "children" | "native" | "workers" | "adapters";
80
+ reasons: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
81
+ }>;
82
+ export type Coverage = z.infer<typeof CoverageSchema>;
83
+ export declare const EventSchema: z.ZodEffects<z.ZodObject<{
84
+ id: z.ZodString;
85
+ processId: z.ZodString;
86
+ seq: z.ZodNumber;
87
+ at: z.ZodNumber;
88
+ operation: z.ZodEnum<["baseline", "read", "write", "delete", "candidate", "skip", "load", "child-spawn", "worker-spawn", "boundary"]>;
89
+ key: z.ZodOptional<z.ZodString>;
90
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
91
+ state: z.ZodLiteral<"present">;
92
+ token: z.ZodString;
93
+ empty: z.ZodOptional<z.ZodBoolean>;
94
+ }, "strict", z.ZodTypeAny, {
95
+ state: "present";
96
+ token: string;
97
+ empty?: boolean | undefined;
98
+ }, {
99
+ state: "present";
100
+ token: string;
101
+ empty?: boolean | undefined;
102
+ }>, z.ZodObject<{
103
+ state: z.ZodLiteral<"missing">;
104
+ }, "strict", z.ZodTypeAny, {
105
+ state: "missing";
106
+ }, {
107
+ state: "missing";
108
+ }>, z.ZodObject<{
109
+ state: z.ZodLiteral<"omitted">;
110
+ }, "strict", z.ZodTypeAny, {
111
+ state: "omitted";
112
+ }, {
113
+ state: "omitted";
114
+ }>]>>;
115
+ before: z.ZodOptional<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
116
+ state: z.ZodLiteral<"present">;
117
+ token: z.ZodString;
118
+ empty: z.ZodOptional<z.ZodBoolean>;
119
+ }, "strict", z.ZodTypeAny, {
120
+ state: "present";
121
+ token: string;
122
+ empty?: boolean | undefined;
123
+ }, {
124
+ state: "present";
125
+ token: string;
126
+ empty?: boolean | undefined;
127
+ }>, z.ZodObject<{
128
+ state: z.ZodLiteral<"missing">;
129
+ }, "strict", z.ZodTypeAny, {
130
+ state: "missing";
131
+ }, {
132
+ state: "missing";
133
+ }>, z.ZodObject<{
134
+ state: z.ZodLiteral<"omitted">;
135
+ }, "strict", z.ZodTypeAny, {
136
+ state: "omitted";
137
+ }, {
138
+ state: "omitted";
139
+ }>]>>;
140
+ candidate: z.ZodOptional<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
141
+ state: z.ZodLiteral<"present">;
142
+ token: z.ZodString;
143
+ empty: z.ZodOptional<z.ZodBoolean>;
144
+ }, "strict", z.ZodTypeAny, {
145
+ state: "present";
146
+ token: string;
147
+ empty?: boolean | undefined;
148
+ }, {
149
+ state: "present";
150
+ token: string;
151
+ empty?: boolean | undefined;
152
+ }>, z.ZodObject<{
153
+ state: z.ZodLiteral<"missing">;
154
+ }, "strict", z.ZodTypeAny, {
155
+ state: "missing";
156
+ }, {
157
+ state: "missing";
158
+ }>, z.ZodObject<{
159
+ state: z.ZodLiteral<"omitted">;
160
+ }, "strict", z.ZodTypeAny, {
161
+ state: "omitted";
162
+ }, {
163
+ state: "omitted";
164
+ }>]>>;
165
+ site: z.ZodOptional<z.ZodObject<{
166
+ file: z.ZodString;
167
+ line: z.ZodOptional<z.ZodNumber>;
168
+ column: z.ZodOptional<z.ZodNumber>;
169
+ mapping: z.ZodEnum<["source-map", "generated", "unavailable"]>;
170
+ }, "strict", z.ZodTypeAny, {
171
+ file: string;
172
+ mapping: "source-map" | "generated" | "unavailable";
173
+ line?: number | undefined;
174
+ column?: number | undefined;
175
+ }, {
176
+ file: string;
177
+ mapping: "source-map" | "generated" | "unavailable";
178
+ line?: number | undefined;
179
+ column?: number | undefined;
180
+ }>>;
181
+ origin: z.ZodOptional<z.ZodObject<{
182
+ kind: z.ZodEnum<["startup", "runtime", "dotenv", "native-env", "adapter", "unknown"]>;
183
+ confidence: z.ZodEnum<["observed", "derived", "inferred", "unknown"]>;
184
+ file: z.ZodOptional<z.ZodString>;
185
+ adapterId: z.ZodOptional<z.ZodString>;
186
+ }, "strict", z.ZodTypeAny, {
187
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
188
+ confidence: "unknown" | "observed" | "derived" | "inferred";
189
+ file?: string | undefined;
190
+ adapterId?: string | undefined;
191
+ }, {
192
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
193
+ confidence: "unknown" | "observed" | "derived" | "inferred";
194
+ file?: string | undefined;
195
+ adapterId?: string | undefined;
196
+ }>>;
197
+ causedBy: z.ZodOptional<z.ZodString>;
198
+ purpose: z.ZodOptional<z.ZodEnum<["application", "loader"]>>;
199
+ outcome: z.ZodOptional<z.ZodEnum<["applied", "not-applied", "read-success", "read-failed", "spawned", "spawn-failed", "declared"]>>;
200
+ childId: z.ZodOptional<z.ZodString>;
201
+ environmentMode: z.ZodOptional<z.ZodEnum<["copied", "explicit", "shared", "unknown"]>>;
202
+ phase: z.ZodOptional<z.ZodEnum<["startup", "runtime"]>>;
203
+ loaderMethod: z.ZodOptional<z.ZodEnum<["process.loadEnvFile", "--env-file", "--env-file-if-exists"]>>;
204
+ boundaryKind: z.ZodOptional<z.ZodEnum<["manual", "uncaught-exception"]>>;
205
+ }, "strict", z.ZodTypeAny, {
206
+ at: number;
207
+ id: string;
208
+ processId: string;
209
+ seq: number;
210
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
211
+ value?: {
212
+ state: "present";
213
+ token: string;
214
+ empty?: boolean | undefined;
215
+ } | {
216
+ state: "missing";
217
+ } | {
218
+ state: "omitted";
219
+ } | undefined;
220
+ candidate?: {
221
+ state: "present";
222
+ token: string;
223
+ empty?: boolean | undefined;
224
+ } | {
225
+ state: "missing";
226
+ } | {
227
+ state: "omitted";
228
+ } | undefined;
229
+ key?: string | undefined;
230
+ before?: {
231
+ state: "present";
232
+ token: string;
233
+ empty?: boolean | undefined;
234
+ } | {
235
+ state: "missing";
236
+ } | {
237
+ state: "omitted";
238
+ } | undefined;
239
+ site?: {
240
+ file: string;
241
+ mapping: "source-map" | "generated" | "unavailable";
242
+ line?: number | undefined;
243
+ column?: number | undefined;
244
+ } | undefined;
245
+ origin?: {
246
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
247
+ confidence: "unknown" | "observed" | "derived" | "inferred";
248
+ file?: string | undefined;
249
+ adapterId?: string | undefined;
250
+ } | undefined;
251
+ causedBy?: string | undefined;
252
+ purpose?: "application" | "loader" | undefined;
253
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
254
+ childId?: string | undefined;
255
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
256
+ phase?: "startup" | "runtime" | undefined;
257
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
258
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
259
+ }, {
260
+ at: number;
261
+ id: string;
262
+ processId: string;
263
+ seq: number;
264
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
265
+ value?: {
266
+ state: "present";
267
+ token: string;
268
+ empty?: boolean | undefined;
269
+ } | {
270
+ state: "missing";
271
+ } | {
272
+ state: "omitted";
273
+ } | undefined;
274
+ candidate?: {
275
+ state: "present";
276
+ token: string;
277
+ empty?: boolean | undefined;
278
+ } | {
279
+ state: "missing";
280
+ } | {
281
+ state: "omitted";
282
+ } | undefined;
283
+ key?: string | undefined;
284
+ before?: {
285
+ state: "present";
286
+ token: string;
287
+ empty?: boolean | undefined;
288
+ } | {
289
+ state: "missing";
290
+ } | {
291
+ state: "omitted";
292
+ } | undefined;
293
+ site?: {
294
+ file: string;
295
+ mapping: "source-map" | "generated" | "unavailable";
296
+ line?: number | undefined;
297
+ column?: number | undefined;
298
+ } | undefined;
299
+ origin?: {
300
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
301
+ confidence: "unknown" | "observed" | "derived" | "inferred";
302
+ file?: string | undefined;
303
+ adapterId?: string | undefined;
304
+ } | undefined;
305
+ causedBy?: string | undefined;
306
+ purpose?: "application" | "loader" | undefined;
307
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
308
+ childId?: string | undefined;
309
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
310
+ phase?: "startup" | "runtime" | undefined;
311
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
312
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
313
+ }>, {
314
+ at: number;
315
+ id: string;
316
+ processId: string;
317
+ seq: number;
318
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
319
+ value?: {
320
+ state: "present";
321
+ token: string;
322
+ empty?: boolean | undefined;
323
+ } | {
324
+ state: "missing";
325
+ } | {
326
+ state: "omitted";
327
+ } | undefined;
328
+ candidate?: {
329
+ state: "present";
330
+ token: string;
331
+ empty?: boolean | undefined;
332
+ } | {
333
+ state: "missing";
334
+ } | {
335
+ state: "omitted";
336
+ } | undefined;
337
+ key?: string | undefined;
338
+ before?: {
339
+ state: "present";
340
+ token: string;
341
+ empty?: boolean | undefined;
342
+ } | {
343
+ state: "missing";
344
+ } | {
345
+ state: "omitted";
346
+ } | undefined;
347
+ site?: {
348
+ file: string;
349
+ mapping: "source-map" | "generated" | "unavailable";
350
+ line?: number | undefined;
351
+ column?: number | undefined;
352
+ } | undefined;
353
+ origin?: {
354
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
355
+ confidence: "unknown" | "observed" | "derived" | "inferred";
356
+ file?: string | undefined;
357
+ adapterId?: string | undefined;
358
+ } | undefined;
359
+ causedBy?: string | undefined;
360
+ purpose?: "application" | "loader" | undefined;
361
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
362
+ childId?: string | undefined;
363
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
364
+ phase?: "startup" | "runtime" | undefined;
365
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
366
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
367
+ }, {
368
+ at: number;
369
+ id: string;
370
+ processId: string;
371
+ seq: number;
372
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
373
+ value?: {
374
+ state: "present";
375
+ token: string;
376
+ empty?: boolean | undefined;
377
+ } | {
378
+ state: "missing";
379
+ } | {
380
+ state: "omitted";
381
+ } | undefined;
382
+ candidate?: {
383
+ state: "present";
384
+ token: string;
385
+ empty?: boolean | undefined;
386
+ } | {
387
+ state: "missing";
388
+ } | {
389
+ state: "omitted";
390
+ } | undefined;
391
+ key?: string | undefined;
392
+ before?: {
393
+ state: "present";
394
+ token: string;
395
+ empty?: boolean | undefined;
396
+ } | {
397
+ state: "missing";
398
+ } | {
399
+ state: "omitted";
400
+ } | undefined;
401
+ site?: {
402
+ file: string;
403
+ mapping: "source-map" | "generated" | "unavailable";
404
+ line?: number | undefined;
405
+ column?: number | undefined;
406
+ } | undefined;
407
+ origin?: {
408
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
409
+ confidence: "unknown" | "observed" | "derived" | "inferred";
410
+ file?: string | undefined;
411
+ adapterId?: string | undefined;
412
+ } | undefined;
413
+ causedBy?: string | undefined;
414
+ purpose?: "application" | "loader" | undefined;
415
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
416
+ childId?: string | undefined;
417
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
418
+ phase?: "startup" | "runtime" | undefined;
419
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
420
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
421
+ }>;
422
+ export type Observation = z.infer<typeof EventSchema>;
423
+ export declare const ProcessSchema: z.ZodObject<{
424
+ id: z.ZodString;
425
+ parentId: z.ZodOptional<z.ZodString>;
426
+ role: z.ZodEnum<["root", "child", "worker"]>;
427
+ threadId: z.ZodOptional<z.ZodNumber>;
428
+ environmentMode: z.ZodOptional<z.ZodEnum<["copied", "explicit", "shared", "unknown"]>>;
429
+ caseMode: z.ZodOptional<z.ZodEnum<["sensitive", "insensitive"]>>;
430
+ pid: z.ZodNullable<z.ZodNumber>;
431
+ ppid: z.ZodNullable<z.ZodNumber>;
432
+ node: z.ZodString;
433
+ platform: z.ZodString;
434
+ entry: z.ZodString;
435
+ startedAt: z.ZodOptional<z.ZodString>;
436
+ ended: z.ZodBoolean;
437
+ exitCode: z.ZodNullable<z.ZodNumber>;
438
+ eventsDropped: z.ZodNumber;
439
+ }, "strict", z.ZodTypeAny, {
440
+ id: string;
441
+ role: "root" | "child" | "worker";
442
+ pid: number | null;
443
+ ppid: number | null;
444
+ node: string;
445
+ platform: string;
446
+ entry: string;
447
+ ended: boolean;
448
+ exitCode: number | null;
449
+ eventsDropped: number;
450
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
451
+ parentId?: string | undefined;
452
+ threadId?: number | undefined;
453
+ caseMode?: "sensitive" | "insensitive" | undefined;
454
+ startedAt?: string | undefined;
455
+ }, {
456
+ id: string;
457
+ role: "root" | "child" | "worker";
458
+ pid: number | null;
459
+ ppid: number | null;
460
+ node: string;
461
+ platform: string;
462
+ entry: string;
463
+ ended: boolean;
464
+ exitCode: number | null;
465
+ eventsDropped: number;
466
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
467
+ parentId?: string | undefined;
468
+ threadId?: number | undefined;
469
+ caseMode?: "sensitive" | "insensitive" | undefined;
470
+ startedAt?: string | undefined;
471
+ }>;
472
+ export type ProcessInfo = z.infer<typeof ProcessSchema>;
473
+ export declare const AdapterManifestSchema: z.ZodObject<{
474
+ id: z.ZodString;
475
+ supportedVersions: z.ZodString;
476
+ capabilities: z.ZodArray<z.ZodString, "many">;
477
+ evidenceTypes: z.ZodArray<z.ZodString, "many">;
478
+ knownBypasses: z.ZodArray<z.ZodString, "many">;
479
+ confidenceRules: z.ZodArray<z.ZodString, "many">;
480
+ }, "strict", z.ZodTypeAny, {
481
+ id: string;
482
+ supportedVersions: string;
483
+ capabilities: string[];
484
+ evidenceTypes: string[];
485
+ knownBypasses: string[];
486
+ confidenceRules: string[];
487
+ }, {
488
+ id: string;
489
+ supportedVersions: string;
490
+ capabilities: string[];
491
+ evidenceTypes: string[];
492
+ knownBypasses: string[];
493
+ confidenceRules: string[];
494
+ }>;
495
+ export type AdapterManifest = z.infer<typeof AdapterManifestSchema>;
496
+ export declare const AdapterDeclarationSchema: z.ZodObject<{
497
+ processId: z.ZodString;
498
+ manifest: z.ZodObject<{
499
+ id: z.ZodString;
500
+ supportedVersions: z.ZodString;
501
+ capabilities: z.ZodArray<z.ZodString, "many">;
502
+ evidenceTypes: z.ZodArray<z.ZodString, "many">;
503
+ knownBypasses: z.ZodArray<z.ZodString, "many">;
504
+ confidenceRules: z.ZodArray<z.ZodString, "many">;
505
+ }, "strict", z.ZodTypeAny, {
506
+ id: string;
507
+ supportedVersions: string;
508
+ capabilities: string[];
509
+ evidenceTypes: string[];
510
+ knownBypasses: string[];
511
+ confidenceRules: string[];
512
+ }, {
513
+ id: string;
514
+ supportedVersions: string;
515
+ capabilities: string[];
516
+ evidenceTypes: string[];
517
+ knownBypasses: string[];
518
+ confidenceRules: string[];
519
+ }>;
520
+ installedVersion: z.ZodOptional<z.ZodString>;
521
+ validation: z.ZodLiteral<"unverified">;
522
+ }, "strict", z.ZodTypeAny, {
523
+ validation: "unverified";
524
+ processId: string;
525
+ manifest: {
526
+ id: string;
527
+ supportedVersions: string;
528
+ capabilities: string[];
529
+ evidenceTypes: string[];
530
+ knownBypasses: string[];
531
+ confidenceRules: string[];
532
+ };
533
+ installedVersion?: string | undefined;
534
+ }, {
535
+ validation: "unverified";
536
+ processId: string;
537
+ manifest: {
538
+ id: string;
539
+ supportedVersions: string;
540
+ capabilities: string[];
541
+ evidenceTypes: string[];
542
+ knownBypasses: string[];
543
+ confidenceRules: string[];
544
+ };
545
+ installedVersion?: string | undefined;
546
+ }>;
547
+ export type AdapterDeclaration = z.infer<typeof AdapterDeclarationSchema>;
548
+ export declare const TraceSchema: z.ZodEffects<z.ZodObject<{
549
+ schemaVersion: z.ZodEnum<["configtrace/1", "configtrace/2"]>;
550
+ toolVersion: z.ZodEnum<["0.2.0", "0.3.0"]>;
551
+ id: z.ZodString;
552
+ comparison: z.ZodObject<{
553
+ domainId: z.ZodString;
554
+ mode: z.ZodEnum<["hmac-sha256", "export-hmac", "none"]>;
555
+ }, "strict", z.ZodTypeAny, {
556
+ domainId: string;
557
+ mode: "hmac-sha256" | "export-hmac" | "none";
558
+ }, {
559
+ domainId: string;
560
+ mode: "hmac-sha256" | "export-hmac" | "none";
561
+ }>;
562
+ capture: z.ZodObject<{
563
+ status: z.ZodEnum<["complete", "partial", "failed"]>;
564
+ watch: z.ZodArray<z.ZodString, "many">;
565
+ caseMode: z.ZodEnum<["sensitive", "insensitive"]>;
566
+ maxEventsPerProcess: z.ZodNumber;
567
+ notices: z.ZodArray<z.ZodEnum<["startup_history_unknown", "native_access_unobserved", "workers_unsupported", "original_reference_bypass", "environment_replaced", "early_preloads_possible", "events_dropped", "event_limit", "byte_limit", "key_limit", "recorder_failed", "missing_footer", "invalid_stream", "process_limit", "aggregate_limit", "child_outlived_root", "children_disabled", "children_opt_in", "child_depth_limit", "child_count_limit", "child_shape_unsupported", "child_shell_or_non_node", "child_detached", "sync_children_unobserved", "dotenv_not_seen", "dotenv_attached", "dotenv_version_unverified", "dotenv_custom_target", "dotenv_source_unknown", "dotenv_options_unsupported", "dotenv_eager_load", "adapter_failed", "source_maps_opt_in", "source_maps_requested", "source_map_unavailable", "custom_adapter_loaded", "capture_unverified", "metadata_scrubbed", "comparison_removed", "loader_details_removed", "call_sites_removed", "native_env_attached", "native_env_disabled", "native_env_unavailable", "native_env_early", "native_env_candidates_inferred", "native_env_candidates_unavailable", "native_env_file_changed", "workers_opt_in", "workers_disabled", "worker_attached", "worker_shared_env", "worker_shape_unsupported", "worker_depth_limit", "worker_count_limit", "worker_unconfirmed", "worker_outlived_root", "adapter_manifest_unverified", "failure_boundary_recorded"]>, "many">;
568
+ }, "strict", z.ZodTypeAny, {
569
+ status: "complete" | "partial" | "failed";
570
+ caseMode: "sensitive" | "insensitive";
571
+ watch: string[];
572
+ maxEventsPerProcess: number;
573
+ notices: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
574
+ }, {
575
+ status: "complete" | "partial" | "failed";
576
+ caseMode: "sensitive" | "insensitive";
577
+ watch: string[];
578
+ maxEventsPerProcess: number;
579
+ notices: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
580
+ }>;
581
+ result: z.ZodObject<{
582
+ exitCode: z.ZodNullable<z.ZodNumber>;
583
+ signal: z.ZodNullable<z.ZodString>;
584
+ }, "strict", z.ZodTypeAny, {
585
+ exitCode: number | null;
586
+ signal: string | null;
587
+ }, {
588
+ exitCode: number | null;
589
+ signal: string | null;
590
+ }>;
591
+ processes: z.ZodArray<z.ZodObject<{
592
+ id: z.ZodString;
593
+ parentId: z.ZodOptional<z.ZodString>;
594
+ role: z.ZodEnum<["root", "child", "worker"]>;
595
+ threadId: z.ZodOptional<z.ZodNumber>;
596
+ environmentMode: z.ZodOptional<z.ZodEnum<["copied", "explicit", "shared", "unknown"]>>;
597
+ caseMode: z.ZodOptional<z.ZodEnum<["sensitive", "insensitive"]>>;
598
+ pid: z.ZodNullable<z.ZodNumber>;
599
+ ppid: z.ZodNullable<z.ZodNumber>;
600
+ node: z.ZodString;
601
+ platform: z.ZodString;
602
+ entry: z.ZodString;
603
+ startedAt: z.ZodOptional<z.ZodString>;
604
+ ended: z.ZodBoolean;
605
+ exitCode: z.ZodNullable<z.ZodNumber>;
606
+ eventsDropped: z.ZodNumber;
607
+ }, "strict", z.ZodTypeAny, {
608
+ id: string;
609
+ role: "root" | "child" | "worker";
610
+ pid: number | null;
611
+ ppid: number | null;
612
+ node: string;
613
+ platform: string;
614
+ entry: string;
615
+ ended: boolean;
616
+ exitCode: number | null;
617
+ eventsDropped: number;
618
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
619
+ parentId?: string | undefined;
620
+ threadId?: number | undefined;
621
+ caseMode?: "sensitive" | "insensitive" | undefined;
622
+ startedAt?: string | undefined;
623
+ }, {
624
+ id: string;
625
+ role: "root" | "child" | "worker";
626
+ pid: number | null;
627
+ ppid: number | null;
628
+ node: string;
629
+ platform: string;
630
+ entry: string;
631
+ ended: boolean;
632
+ exitCode: number | null;
633
+ eventsDropped: number;
634
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
635
+ parentId?: string | undefined;
636
+ threadId?: number | undefined;
637
+ caseMode?: "sensitive" | "insensitive" | undefined;
638
+ startedAt?: string | undefined;
639
+ }>, "many">;
640
+ coverage: z.ZodArray<z.ZodObject<{
641
+ feature: z.ZodEnum<["environment", "startup", "dotenv", "source-maps", "children", "native", "native-env", "workers", "adapters"]>;
642
+ status: z.ZodEnum<["active", "limited", "not-observed", "unsupported"]>;
643
+ reasons: z.ZodArray<z.ZodEnum<["startup_history_unknown", "native_access_unobserved", "workers_unsupported", "original_reference_bypass", "environment_replaced", "early_preloads_possible", "events_dropped", "event_limit", "byte_limit", "key_limit", "recorder_failed", "missing_footer", "invalid_stream", "process_limit", "aggregate_limit", "child_outlived_root", "children_disabled", "children_opt_in", "child_depth_limit", "child_count_limit", "child_shape_unsupported", "child_shell_or_non_node", "child_detached", "sync_children_unobserved", "dotenv_not_seen", "dotenv_attached", "dotenv_version_unverified", "dotenv_custom_target", "dotenv_source_unknown", "dotenv_options_unsupported", "dotenv_eager_load", "adapter_failed", "source_maps_opt_in", "source_maps_requested", "source_map_unavailable", "custom_adapter_loaded", "capture_unverified", "metadata_scrubbed", "comparison_removed", "loader_details_removed", "call_sites_removed", "native_env_attached", "native_env_disabled", "native_env_unavailable", "native_env_early", "native_env_candidates_inferred", "native_env_candidates_unavailable", "native_env_file_changed", "workers_opt_in", "workers_disabled", "worker_attached", "worker_shared_env", "worker_shape_unsupported", "worker_depth_limit", "worker_count_limit", "worker_unconfirmed", "worker_outlived_root", "adapter_manifest_unverified", "failure_boundary_recorded"]>, "many">;
644
+ }, "strict", z.ZodTypeAny, {
645
+ status: "active" | "limited" | "not-observed" | "unsupported";
646
+ feature: "startup" | "dotenv" | "native-env" | "environment" | "source-maps" | "children" | "native" | "workers" | "adapters";
647
+ reasons: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
648
+ }, {
649
+ status: "active" | "limited" | "not-observed" | "unsupported";
650
+ feature: "startup" | "dotenv" | "native-env" | "environment" | "source-maps" | "children" | "native" | "workers" | "adapters";
651
+ reasons: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
652
+ }>, "many">;
653
+ events: z.ZodArray<z.ZodEffects<z.ZodObject<{
654
+ id: z.ZodString;
655
+ processId: z.ZodString;
656
+ seq: z.ZodNumber;
657
+ at: z.ZodNumber;
658
+ operation: z.ZodEnum<["baseline", "read", "write", "delete", "candidate", "skip", "load", "child-spawn", "worker-spawn", "boundary"]>;
659
+ key: z.ZodOptional<z.ZodString>;
660
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
661
+ state: z.ZodLiteral<"present">;
662
+ token: z.ZodString;
663
+ empty: z.ZodOptional<z.ZodBoolean>;
664
+ }, "strict", z.ZodTypeAny, {
665
+ state: "present";
666
+ token: string;
667
+ empty?: boolean | undefined;
668
+ }, {
669
+ state: "present";
670
+ token: string;
671
+ empty?: boolean | undefined;
672
+ }>, z.ZodObject<{
673
+ state: z.ZodLiteral<"missing">;
674
+ }, "strict", z.ZodTypeAny, {
675
+ state: "missing";
676
+ }, {
677
+ state: "missing";
678
+ }>, z.ZodObject<{
679
+ state: z.ZodLiteral<"omitted">;
680
+ }, "strict", z.ZodTypeAny, {
681
+ state: "omitted";
682
+ }, {
683
+ state: "omitted";
684
+ }>]>>;
685
+ before: z.ZodOptional<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
686
+ state: z.ZodLiteral<"present">;
687
+ token: z.ZodString;
688
+ empty: z.ZodOptional<z.ZodBoolean>;
689
+ }, "strict", z.ZodTypeAny, {
690
+ state: "present";
691
+ token: string;
692
+ empty?: boolean | undefined;
693
+ }, {
694
+ state: "present";
695
+ token: string;
696
+ empty?: boolean | undefined;
697
+ }>, z.ZodObject<{
698
+ state: z.ZodLiteral<"missing">;
699
+ }, "strict", z.ZodTypeAny, {
700
+ state: "missing";
701
+ }, {
702
+ state: "missing";
703
+ }>, z.ZodObject<{
704
+ state: z.ZodLiteral<"omitted">;
705
+ }, "strict", z.ZodTypeAny, {
706
+ state: "omitted";
707
+ }, {
708
+ state: "omitted";
709
+ }>]>>;
710
+ candidate: z.ZodOptional<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
711
+ state: z.ZodLiteral<"present">;
712
+ token: z.ZodString;
713
+ empty: z.ZodOptional<z.ZodBoolean>;
714
+ }, "strict", z.ZodTypeAny, {
715
+ state: "present";
716
+ token: string;
717
+ empty?: boolean | undefined;
718
+ }, {
719
+ state: "present";
720
+ token: string;
721
+ empty?: boolean | undefined;
722
+ }>, z.ZodObject<{
723
+ state: z.ZodLiteral<"missing">;
724
+ }, "strict", z.ZodTypeAny, {
725
+ state: "missing";
726
+ }, {
727
+ state: "missing";
728
+ }>, z.ZodObject<{
729
+ state: z.ZodLiteral<"omitted">;
730
+ }, "strict", z.ZodTypeAny, {
731
+ state: "omitted";
732
+ }, {
733
+ state: "omitted";
734
+ }>]>>;
735
+ site: z.ZodOptional<z.ZodObject<{
736
+ file: z.ZodString;
737
+ line: z.ZodOptional<z.ZodNumber>;
738
+ column: z.ZodOptional<z.ZodNumber>;
739
+ mapping: z.ZodEnum<["source-map", "generated", "unavailable"]>;
740
+ }, "strict", z.ZodTypeAny, {
741
+ file: string;
742
+ mapping: "source-map" | "generated" | "unavailable";
743
+ line?: number | undefined;
744
+ column?: number | undefined;
745
+ }, {
746
+ file: string;
747
+ mapping: "source-map" | "generated" | "unavailable";
748
+ line?: number | undefined;
749
+ column?: number | undefined;
750
+ }>>;
751
+ origin: z.ZodOptional<z.ZodObject<{
752
+ kind: z.ZodEnum<["startup", "runtime", "dotenv", "native-env", "adapter", "unknown"]>;
753
+ confidence: z.ZodEnum<["observed", "derived", "inferred", "unknown"]>;
754
+ file: z.ZodOptional<z.ZodString>;
755
+ adapterId: z.ZodOptional<z.ZodString>;
756
+ }, "strict", z.ZodTypeAny, {
757
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
758
+ confidence: "unknown" | "observed" | "derived" | "inferred";
759
+ file?: string | undefined;
760
+ adapterId?: string | undefined;
761
+ }, {
762
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
763
+ confidence: "unknown" | "observed" | "derived" | "inferred";
764
+ file?: string | undefined;
765
+ adapterId?: string | undefined;
766
+ }>>;
767
+ causedBy: z.ZodOptional<z.ZodString>;
768
+ purpose: z.ZodOptional<z.ZodEnum<["application", "loader"]>>;
769
+ outcome: z.ZodOptional<z.ZodEnum<["applied", "not-applied", "read-success", "read-failed", "spawned", "spawn-failed", "declared"]>>;
770
+ childId: z.ZodOptional<z.ZodString>;
771
+ environmentMode: z.ZodOptional<z.ZodEnum<["copied", "explicit", "shared", "unknown"]>>;
772
+ phase: z.ZodOptional<z.ZodEnum<["startup", "runtime"]>>;
773
+ loaderMethod: z.ZodOptional<z.ZodEnum<["process.loadEnvFile", "--env-file", "--env-file-if-exists"]>>;
774
+ boundaryKind: z.ZodOptional<z.ZodEnum<["manual", "uncaught-exception"]>>;
775
+ }, "strict", z.ZodTypeAny, {
776
+ at: number;
777
+ id: string;
778
+ processId: string;
779
+ seq: number;
780
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
781
+ value?: {
782
+ state: "present";
783
+ token: string;
784
+ empty?: boolean | undefined;
785
+ } | {
786
+ state: "missing";
787
+ } | {
788
+ state: "omitted";
789
+ } | undefined;
790
+ candidate?: {
791
+ state: "present";
792
+ token: string;
793
+ empty?: boolean | undefined;
794
+ } | {
795
+ state: "missing";
796
+ } | {
797
+ state: "omitted";
798
+ } | undefined;
799
+ key?: string | undefined;
800
+ before?: {
801
+ state: "present";
802
+ token: string;
803
+ empty?: boolean | undefined;
804
+ } | {
805
+ state: "missing";
806
+ } | {
807
+ state: "omitted";
808
+ } | undefined;
809
+ site?: {
810
+ file: string;
811
+ mapping: "source-map" | "generated" | "unavailable";
812
+ line?: number | undefined;
813
+ column?: number | undefined;
814
+ } | undefined;
815
+ origin?: {
816
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
817
+ confidence: "unknown" | "observed" | "derived" | "inferred";
818
+ file?: string | undefined;
819
+ adapterId?: string | undefined;
820
+ } | undefined;
821
+ causedBy?: string | undefined;
822
+ purpose?: "application" | "loader" | undefined;
823
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
824
+ childId?: string | undefined;
825
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
826
+ phase?: "startup" | "runtime" | undefined;
827
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
828
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
829
+ }, {
830
+ at: number;
831
+ id: string;
832
+ processId: string;
833
+ seq: number;
834
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
835
+ value?: {
836
+ state: "present";
837
+ token: string;
838
+ empty?: boolean | undefined;
839
+ } | {
840
+ state: "missing";
841
+ } | {
842
+ state: "omitted";
843
+ } | undefined;
844
+ candidate?: {
845
+ state: "present";
846
+ token: string;
847
+ empty?: boolean | undefined;
848
+ } | {
849
+ state: "missing";
850
+ } | {
851
+ state: "omitted";
852
+ } | undefined;
853
+ key?: string | undefined;
854
+ before?: {
855
+ state: "present";
856
+ token: string;
857
+ empty?: boolean | undefined;
858
+ } | {
859
+ state: "missing";
860
+ } | {
861
+ state: "omitted";
862
+ } | undefined;
863
+ site?: {
864
+ file: string;
865
+ mapping: "source-map" | "generated" | "unavailable";
866
+ line?: number | undefined;
867
+ column?: number | undefined;
868
+ } | undefined;
869
+ origin?: {
870
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
871
+ confidence: "unknown" | "observed" | "derived" | "inferred";
872
+ file?: string | undefined;
873
+ adapterId?: string | undefined;
874
+ } | undefined;
875
+ causedBy?: string | undefined;
876
+ purpose?: "application" | "loader" | undefined;
877
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
878
+ childId?: string | undefined;
879
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
880
+ phase?: "startup" | "runtime" | undefined;
881
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
882
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
883
+ }>, {
884
+ at: number;
885
+ id: string;
886
+ processId: string;
887
+ seq: number;
888
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
889
+ value?: {
890
+ state: "present";
891
+ token: string;
892
+ empty?: boolean | undefined;
893
+ } | {
894
+ state: "missing";
895
+ } | {
896
+ state: "omitted";
897
+ } | undefined;
898
+ candidate?: {
899
+ state: "present";
900
+ token: string;
901
+ empty?: boolean | undefined;
902
+ } | {
903
+ state: "missing";
904
+ } | {
905
+ state: "omitted";
906
+ } | undefined;
907
+ key?: string | undefined;
908
+ before?: {
909
+ state: "present";
910
+ token: string;
911
+ empty?: boolean | undefined;
912
+ } | {
913
+ state: "missing";
914
+ } | {
915
+ state: "omitted";
916
+ } | undefined;
917
+ site?: {
918
+ file: string;
919
+ mapping: "source-map" | "generated" | "unavailable";
920
+ line?: number | undefined;
921
+ column?: number | undefined;
922
+ } | undefined;
923
+ origin?: {
924
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
925
+ confidence: "unknown" | "observed" | "derived" | "inferred";
926
+ file?: string | undefined;
927
+ adapterId?: string | undefined;
928
+ } | undefined;
929
+ causedBy?: string | undefined;
930
+ purpose?: "application" | "loader" | undefined;
931
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
932
+ childId?: string | undefined;
933
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
934
+ phase?: "startup" | "runtime" | undefined;
935
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
936
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
937
+ }, {
938
+ at: number;
939
+ id: string;
940
+ processId: string;
941
+ seq: number;
942
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
943
+ value?: {
944
+ state: "present";
945
+ token: string;
946
+ empty?: boolean | undefined;
947
+ } | {
948
+ state: "missing";
949
+ } | {
950
+ state: "omitted";
951
+ } | undefined;
952
+ candidate?: {
953
+ state: "present";
954
+ token: string;
955
+ empty?: boolean | undefined;
956
+ } | {
957
+ state: "missing";
958
+ } | {
959
+ state: "omitted";
960
+ } | undefined;
961
+ key?: string | undefined;
962
+ before?: {
963
+ state: "present";
964
+ token: string;
965
+ empty?: boolean | undefined;
966
+ } | {
967
+ state: "missing";
968
+ } | {
969
+ state: "omitted";
970
+ } | undefined;
971
+ site?: {
972
+ file: string;
973
+ mapping: "source-map" | "generated" | "unavailable";
974
+ line?: number | undefined;
975
+ column?: number | undefined;
976
+ } | undefined;
977
+ origin?: {
978
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
979
+ confidence: "unknown" | "observed" | "derived" | "inferred";
980
+ file?: string | undefined;
981
+ adapterId?: string | undefined;
982
+ } | undefined;
983
+ causedBy?: string | undefined;
984
+ purpose?: "application" | "loader" | undefined;
985
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
986
+ childId?: string | undefined;
987
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
988
+ phase?: "startup" | "runtime" | undefined;
989
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
990
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
991
+ }>, "many">;
992
+ exported: z.ZodBoolean;
993
+ adapters: z.ZodOptional<z.ZodArray<z.ZodObject<{
994
+ processId: z.ZodString;
995
+ manifest: z.ZodObject<{
996
+ id: z.ZodString;
997
+ supportedVersions: z.ZodString;
998
+ capabilities: z.ZodArray<z.ZodString, "many">;
999
+ evidenceTypes: z.ZodArray<z.ZodString, "many">;
1000
+ knownBypasses: z.ZodArray<z.ZodString, "many">;
1001
+ confidenceRules: z.ZodArray<z.ZodString, "many">;
1002
+ }, "strict", z.ZodTypeAny, {
1003
+ id: string;
1004
+ supportedVersions: string;
1005
+ capabilities: string[];
1006
+ evidenceTypes: string[];
1007
+ knownBypasses: string[];
1008
+ confidenceRules: string[];
1009
+ }, {
1010
+ id: string;
1011
+ supportedVersions: string;
1012
+ capabilities: string[];
1013
+ evidenceTypes: string[];
1014
+ knownBypasses: string[];
1015
+ confidenceRules: string[];
1016
+ }>;
1017
+ installedVersion: z.ZodOptional<z.ZodString>;
1018
+ validation: z.ZodLiteral<"unverified">;
1019
+ }, "strict", z.ZodTypeAny, {
1020
+ validation: "unverified";
1021
+ processId: string;
1022
+ manifest: {
1023
+ id: string;
1024
+ supportedVersions: string;
1025
+ capabilities: string[];
1026
+ evidenceTypes: string[];
1027
+ knownBypasses: string[];
1028
+ confidenceRules: string[];
1029
+ };
1030
+ installedVersion?: string | undefined;
1031
+ }, {
1032
+ validation: "unverified";
1033
+ processId: string;
1034
+ manifest: {
1035
+ id: string;
1036
+ supportedVersions: string;
1037
+ capabilities: string[];
1038
+ evidenceTypes: string[];
1039
+ knownBypasses: string[];
1040
+ confidenceRules: string[];
1041
+ };
1042
+ installedVersion?: string | undefined;
1043
+ }>, "many">>;
1044
+ }, "strict", z.ZodTypeAny, {
1045
+ id: string;
1046
+ schemaVersion: "configtrace/2" | "configtrace/1";
1047
+ toolVersion: "0.3.0" | "0.2.0";
1048
+ comparison: {
1049
+ domainId: string;
1050
+ mode: "hmac-sha256" | "export-hmac" | "none";
1051
+ };
1052
+ capture: {
1053
+ status: "complete" | "partial" | "failed";
1054
+ caseMode: "sensitive" | "insensitive";
1055
+ watch: string[];
1056
+ maxEventsPerProcess: number;
1057
+ notices: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
1058
+ };
1059
+ result: {
1060
+ exitCode: number | null;
1061
+ signal: string | null;
1062
+ };
1063
+ processes: {
1064
+ id: string;
1065
+ role: "root" | "child" | "worker";
1066
+ pid: number | null;
1067
+ ppid: number | null;
1068
+ node: string;
1069
+ platform: string;
1070
+ entry: string;
1071
+ ended: boolean;
1072
+ exitCode: number | null;
1073
+ eventsDropped: number;
1074
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1075
+ parentId?: string | undefined;
1076
+ threadId?: number | undefined;
1077
+ caseMode?: "sensitive" | "insensitive" | undefined;
1078
+ startedAt?: string | undefined;
1079
+ }[];
1080
+ coverage: {
1081
+ status: "active" | "limited" | "not-observed" | "unsupported";
1082
+ feature: "startup" | "dotenv" | "native-env" | "environment" | "source-maps" | "children" | "native" | "workers" | "adapters";
1083
+ reasons: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
1084
+ }[];
1085
+ events: {
1086
+ at: number;
1087
+ id: string;
1088
+ processId: string;
1089
+ seq: number;
1090
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1091
+ value?: {
1092
+ state: "present";
1093
+ token: string;
1094
+ empty?: boolean | undefined;
1095
+ } | {
1096
+ state: "missing";
1097
+ } | {
1098
+ state: "omitted";
1099
+ } | undefined;
1100
+ candidate?: {
1101
+ state: "present";
1102
+ token: string;
1103
+ empty?: boolean | undefined;
1104
+ } | {
1105
+ state: "missing";
1106
+ } | {
1107
+ state: "omitted";
1108
+ } | undefined;
1109
+ key?: string | undefined;
1110
+ before?: {
1111
+ state: "present";
1112
+ token: string;
1113
+ empty?: boolean | undefined;
1114
+ } | {
1115
+ state: "missing";
1116
+ } | {
1117
+ state: "omitted";
1118
+ } | undefined;
1119
+ site?: {
1120
+ file: string;
1121
+ mapping: "source-map" | "generated" | "unavailable";
1122
+ line?: number | undefined;
1123
+ column?: number | undefined;
1124
+ } | undefined;
1125
+ origin?: {
1126
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1127
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1128
+ file?: string | undefined;
1129
+ adapterId?: string | undefined;
1130
+ } | undefined;
1131
+ causedBy?: string | undefined;
1132
+ purpose?: "application" | "loader" | undefined;
1133
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
1134
+ childId?: string | undefined;
1135
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1136
+ phase?: "startup" | "runtime" | undefined;
1137
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
1138
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
1139
+ }[];
1140
+ exported: boolean;
1141
+ adapters?: {
1142
+ validation: "unverified";
1143
+ processId: string;
1144
+ manifest: {
1145
+ id: string;
1146
+ supportedVersions: string;
1147
+ capabilities: string[];
1148
+ evidenceTypes: string[];
1149
+ knownBypasses: string[];
1150
+ confidenceRules: string[];
1151
+ };
1152
+ installedVersion?: string | undefined;
1153
+ }[] | undefined;
1154
+ }, {
1155
+ id: string;
1156
+ schemaVersion: "configtrace/2" | "configtrace/1";
1157
+ toolVersion: "0.3.0" | "0.2.0";
1158
+ comparison: {
1159
+ domainId: string;
1160
+ mode: "hmac-sha256" | "export-hmac" | "none";
1161
+ };
1162
+ capture: {
1163
+ status: "complete" | "partial" | "failed";
1164
+ caseMode: "sensitive" | "insensitive";
1165
+ watch: string[];
1166
+ maxEventsPerProcess: number;
1167
+ notices: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
1168
+ };
1169
+ result: {
1170
+ exitCode: number | null;
1171
+ signal: string | null;
1172
+ };
1173
+ processes: {
1174
+ id: string;
1175
+ role: "root" | "child" | "worker";
1176
+ pid: number | null;
1177
+ ppid: number | null;
1178
+ node: string;
1179
+ platform: string;
1180
+ entry: string;
1181
+ ended: boolean;
1182
+ exitCode: number | null;
1183
+ eventsDropped: number;
1184
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1185
+ parentId?: string | undefined;
1186
+ threadId?: number | undefined;
1187
+ caseMode?: "sensitive" | "insensitive" | undefined;
1188
+ startedAt?: string | undefined;
1189
+ }[];
1190
+ coverage: {
1191
+ status: "active" | "limited" | "not-observed" | "unsupported";
1192
+ feature: "startup" | "dotenv" | "native-env" | "environment" | "source-maps" | "children" | "native" | "workers" | "adapters";
1193
+ reasons: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
1194
+ }[];
1195
+ events: {
1196
+ at: number;
1197
+ id: string;
1198
+ processId: string;
1199
+ seq: number;
1200
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1201
+ value?: {
1202
+ state: "present";
1203
+ token: string;
1204
+ empty?: boolean | undefined;
1205
+ } | {
1206
+ state: "missing";
1207
+ } | {
1208
+ state: "omitted";
1209
+ } | undefined;
1210
+ candidate?: {
1211
+ state: "present";
1212
+ token: string;
1213
+ empty?: boolean | undefined;
1214
+ } | {
1215
+ state: "missing";
1216
+ } | {
1217
+ state: "omitted";
1218
+ } | undefined;
1219
+ key?: string | undefined;
1220
+ before?: {
1221
+ state: "present";
1222
+ token: string;
1223
+ empty?: boolean | undefined;
1224
+ } | {
1225
+ state: "missing";
1226
+ } | {
1227
+ state: "omitted";
1228
+ } | undefined;
1229
+ site?: {
1230
+ file: string;
1231
+ mapping: "source-map" | "generated" | "unavailable";
1232
+ line?: number | undefined;
1233
+ column?: number | undefined;
1234
+ } | undefined;
1235
+ origin?: {
1236
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1237
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1238
+ file?: string | undefined;
1239
+ adapterId?: string | undefined;
1240
+ } | undefined;
1241
+ causedBy?: string | undefined;
1242
+ purpose?: "application" | "loader" | undefined;
1243
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
1244
+ childId?: string | undefined;
1245
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1246
+ phase?: "startup" | "runtime" | undefined;
1247
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
1248
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
1249
+ }[];
1250
+ exported: boolean;
1251
+ adapters?: {
1252
+ validation: "unverified";
1253
+ processId: string;
1254
+ manifest: {
1255
+ id: string;
1256
+ supportedVersions: string;
1257
+ capabilities: string[];
1258
+ evidenceTypes: string[];
1259
+ knownBypasses: string[];
1260
+ confidenceRules: string[];
1261
+ };
1262
+ installedVersion?: string | undefined;
1263
+ }[] | undefined;
1264
+ }>, {
1265
+ id: string;
1266
+ schemaVersion: "configtrace/2" | "configtrace/1";
1267
+ toolVersion: "0.3.0" | "0.2.0";
1268
+ comparison: {
1269
+ domainId: string;
1270
+ mode: "hmac-sha256" | "export-hmac" | "none";
1271
+ };
1272
+ capture: {
1273
+ status: "complete" | "partial" | "failed";
1274
+ caseMode: "sensitive" | "insensitive";
1275
+ watch: string[];
1276
+ maxEventsPerProcess: number;
1277
+ notices: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
1278
+ };
1279
+ result: {
1280
+ exitCode: number | null;
1281
+ signal: string | null;
1282
+ };
1283
+ processes: {
1284
+ id: string;
1285
+ role: "root" | "child" | "worker";
1286
+ pid: number | null;
1287
+ ppid: number | null;
1288
+ node: string;
1289
+ platform: string;
1290
+ entry: string;
1291
+ ended: boolean;
1292
+ exitCode: number | null;
1293
+ eventsDropped: number;
1294
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1295
+ parentId?: string | undefined;
1296
+ threadId?: number | undefined;
1297
+ caseMode?: "sensitive" | "insensitive" | undefined;
1298
+ startedAt?: string | undefined;
1299
+ }[];
1300
+ coverage: {
1301
+ status: "active" | "limited" | "not-observed" | "unsupported";
1302
+ feature: "startup" | "dotenv" | "native-env" | "environment" | "source-maps" | "children" | "native" | "workers" | "adapters";
1303
+ reasons: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
1304
+ }[];
1305
+ events: {
1306
+ at: number;
1307
+ id: string;
1308
+ processId: string;
1309
+ seq: number;
1310
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1311
+ value?: {
1312
+ state: "present";
1313
+ token: string;
1314
+ empty?: boolean | undefined;
1315
+ } | {
1316
+ state: "missing";
1317
+ } | {
1318
+ state: "omitted";
1319
+ } | undefined;
1320
+ candidate?: {
1321
+ state: "present";
1322
+ token: string;
1323
+ empty?: boolean | undefined;
1324
+ } | {
1325
+ state: "missing";
1326
+ } | {
1327
+ state: "omitted";
1328
+ } | undefined;
1329
+ key?: string | undefined;
1330
+ before?: {
1331
+ state: "present";
1332
+ token: string;
1333
+ empty?: boolean | undefined;
1334
+ } | {
1335
+ state: "missing";
1336
+ } | {
1337
+ state: "omitted";
1338
+ } | undefined;
1339
+ site?: {
1340
+ file: string;
1341
+ mapping: "source-map" | "generated" | "unavailable";
1342
+ line?: number | undefined;
1343
+ column?: number | undefined;
1344
+ } | undefined;
1345
+ origin?: {
1346
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1347
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1348
+ file?: string | undefined;
1349
+ adapterId?: string | undefined;
1350
+ } | undefined;
1351
+ causedBy?: string | undefined;
1352
+ purpose?: "application" | "loader" | undefined;
1353
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
1354
+ childId?: string | undefined;
1355
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1356
+ phase?: "startup" | "runtime" | undefined;
1357
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
1358
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
1359
+ }[];
1360
+ exported: boolean;
1361
+ adapters?: {
1362
+ validation: "unverified";
1363
+ processId: string;
1364
+ manifest: {
1365
+ id: string;
1366
+ supportedVersions: string;
1367
+ capabilities: string[];
1368
+ evidenceTypes: string[];
1369
+ knownBypasses: string[];
1370
+ confidenceRules: string[];
1371
+ };
1372
+ installedVersion?: string | undefined;
1373
+ }[] | undefined;
1374
+ }, {
1375
+ id: string;
1376
+ schemaVersion: "configtrace/2" | "configtrace/1";
1377
+ toolVersion: "0.3.0" | "0.2.0";
1378
+ comparison: {
1379
+ domainId: string;
1380
+ mode: "hmac-sha256" | "export-hmac" | "none";
1381
+ };
1382
+ capture: {
1383
+ status: "complete" | "partial" | "failed";
1384
+ caseMode: "sensitive" | "insensitive";
1385
+ watch: string[];
1386
+ maxEventsPerProcess: number;
1387
+ notices: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
1388
+ };
1389
+ result: {
1390
+ exitCode: number | null;
1391
+ signal: string | null;
1392
+ };
1393
+ processes: {
1394
+ id: string;
1395
+ role: "root" | "child" | "worker";
1396
+ pid: number | null;
1397
+ ppid: number | null;
1398
+ node: string;
1399
+ platform: string;
1400
+ entry: string;
1401
+ ended: boolean;
1402
+ exitCode: number | null;
1403
+ eventsDropped: number;
1404
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1405
+ parentId?: string | undefined;
1406
+ threadId?: number | undefined;
1407
+ caseMode?: "sensitive" | "insensitive" | undefined;
1408
+ startedAt?: string | undefined;
1409
+ }[];
1410
+ coverage: {
1411
+ status: "active" | "limited" | "not-observed" | "unsupported";
1412
+ feature: "startup" | "dotenv" | "native-env" | "environment" | "source-maps" | "children" | "native" | "workers" | "adapters";
1413
+ reasons: ("startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded")[];
1414
+ }[];
1415
+ events: {
1416
+ at: number;
1417
+ id: string;
1418
+ processId: string;
1419
+ seq: number;
1420
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1421
+ value?: {
1422
+ state: "present";
1423
+ token: string;
1424
+ empty?: boolean | undefined;
1425
+ } | {
1426
+ state: "missing";
1427
+ } | {
1428
+ state: "omitted";
1429
+ } | undefined;
1430
+ candidate?: {
1431
+ state: "present";
1432
+ token: string;
1433
+ empty?: boolean | undefined;
1434
+ } | {
1435
+ state: "missing";
1436
+ } | {
1437
+ state: "omitted";
1438
+ } | undefined;
1439
+ key?: string | undefined;
1440
+ before?: {
1441
+ state: "present";
1442
+ token: string;
1443
+ empty?: boolean | undefined;
1444
+ } | {
1445
+ state: "missing";
1446
+ } | {
1447
+ state: "omitted";
1448
+ } | undefined;
1449
+ site?: {
1450
+ file: string;
1451
+ mapping: "source-map" | "generated" | "unavailable";
1452
+ line?: number | undefined;
1453
+ column?: number | undefined;
1454
+ } | undefined;
1455
+ origin?: {
1456
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1457
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1458
+ file?: string | undefined;
1459
+ adapterId?: string | undefined;
1460
+ } | undefined;
1461
+ causedBy?: string | undefined;
1462
+ purpose?: "application" | "loader" | undefined;
1463
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
1464
+ childId?: string | undefined;
1465
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1466
+ phase?: "startup" | "runtime" | undefined;
1467
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
1468
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
1469
+ }[];
1470
+ exported: boolean;
1471
+ adapters?: {
1472
+ validation: "unverified";
1473
+ processId: string;
1474
+ manifest: {
1475
+ id: string;
1476
+ supportedVersions: string;
1477
+ capabilities: string[];
1478
+ evidenceTypes: string[];
1479
+ knownBypasses: string[];
1480
+ confidenceRules: string[];
1481
+ };
1482
+ installedVersion?: string | undefined;
1483
+ }[] | undefined;
1484
+ }>;
1485
+ export type Trace = z.infer<typeof TraceSchema>;
1486
+ export declare const StreamRecordSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1487
+ type: z.ZodLiteral<"start">;
1488
+ process: z.ZodObject<{
1489
+ id: z.ZodString;
1490
+ parentId: z.ZodOptional<z.ZodString>;
1491
+ role: z.ZodEnum<["root", "child", "worker"]>;
1492
+ threadId: z.ZodOptional<z.ZodNumber>;
1493
+ environmentMode: z.ZodOptional<z.ZodEnum<["copied", "explicit", "shared", "unknown"]>>;
1494
+ caseMode: z.ZodOptional<z.ZodEnum<["sensitive", "insensitive"]>>;
1495
+ pid: z.ZodNullable<z.ZodNumber>;
1496
+ ppid: z.ZodNullable<z.ZodNumber>;
1497
+ node: z.ZodString;
1498
+ platform: z.ZodString;
1499
+ entry: z.ZodString;
1500
+ startedAt: z.ZodOptional<z.ZodString>;
1501
+ ended: z.ZodBoolean;
1502
+ exitCode: z.ZodNullable<z.ZodNumber>;
1503
+ eventsDropped: z.ZodNumber;
1504
+ }, "strict", z.ZodTypeAny, {
1505
+ id: string;
1506
+ role: "root" | "child" | "worker";
1507
+ pid: number | null;
1508
+ ppid: number | null;
1509
+ node: string;
1510
+ platform: string;
1511
+ entry: string;
1512
+ ended: boolean;
1513
+ exitCode: number | null;
1514
+ eventsDropped: number;
1515
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1516
+ parentId?: string | undefined;
1517
+ threadId?: number | undefined;
1518
+ caseMode?: "sensitive" | "insensitive" | undefined;
1519
+ startedAt?: string | undefined;
1520
+ }, {
1521
+ id: string;
1522
+ role: "root" | "child" | "worker";
1523
+ pid: number | null;
1524
+ ppid: number | null;
1525
+ node: string;
1526
+ platform: string;
1527
+ entry: string;
1528
+ ended: boolean;
1529
+ exitCode: number | null;
1530
+ eventsDropped: number;
1531
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1532
+ parentId?: string | undefined;
1533
+ threadId?: number | undefined;
1534
+ caseMode?: "sensitive" | "insensitive" | undefined;
1535
+ startedAt?: string | undefined;
1536
+ }>;
1537
+ }, "strict", z.ZodTypeAny, {
1538
+ type: "start";
1539
+ process: {
1540
+ id: string;
1541
+ role: "root" | "child" | "worker";
1542
+ pid: number | null;
1543
+ ppid: number | null;
1544
+ node: string;
1545
+ platform: string;
1546
+ entry: string;
1547
+ ended: boolean;
1548
+ exitCode: number | null;
1549
+ eventsDropped: number;
1550
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1551
+ parentId?: string | undefined;
1552
+ threadId?: number | undefined;
1553
+ caseMode?: "sensitive" | "insensitive" | undefined;
1554
+ startedAt?: string | undefined;
1555
+ };
1556
+ }, {
1557
+ type: "start";
1558
+ process: {
1559
+ id: string;
1560
+ role: "root" | "child" | "worker";
1561
+ pid: number | null;
1562
+ ppid: number | null;
1563
+ node: string;
1564
+ platform: string;
1565
+ entry: string;
1566
+ ended: boolean;
1567
+ exitCode: number | null;
1568
+ eventsDropped: number;
1569
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1570
+ parentId?: string | undefined;
1571
+ threadId?: number | undefined;
1572
+ caseMode?: "sensitive" | "insensitive" | undefined;
1573
+ startedAt?: string | undefined;
1574
+ };
1575
+ }>, z.ZodObject<{
1576
+ type: z.ZodLiteral<"event">;
1577
+ event: z.ZodEffects<z.ZodObject<{
1578
+ id: z.ZodString;
1579
+ processId: z.ZodString;
1580
+ seq: z.ZodNumber;
1581
+ at: z.ZodNumber;
1582
+ operation: z.ZodEnum<["baseline", "read", "write", "delete", "candidate", "skip", "load", "child-spawn", "worker-spawn", "boundary"]>;
1583
+ key: z.ZodOptional<z.ZodString>;
1584
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
1585
+ state: z.ZodLiteral<"present">;
1586
+ token: z.ZodString;
1587
+ empty: z.ZodOptional<z.ZodBoolean>;
1588
+ }, "strict", z.ZodTypeAny, {
1589
+ state: "present";
1590
+ token: string;
1591
+ empty?: boolean | undefined;
1592
+ }, {
1593
+ state: "present";
1594
+ token: string;
1595
+ empty?: boolean | undefined;
1596
+ }>, z.ZodObject<{
1597
+ state: z.ZodLiteral<"missing">;
1598
+ }, "strict", z.ZodTypeAny, {
1599
+ state: "missing";
1600
+ }, {
1601
+ state: "missing";
1602
+ }>, z.ZodObject<{
1603
+ state: z.ZodLiteral<"omitted">;
1604
+ }, "strict", z.ZodTypeAny, {
1605
+ state: "omitted";
1606
+ }, {
1607
+ state: "omitted";
1608
+ }>]>>;
1609
+ before: z.ZodOptional<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
1610
+ state: z.ZodLiteral<"present">;
1611
+ token: z.ZodString;
1612
+ empty: z.ZodOptional<z.ZodBoolean>;
1613
+ }, "strict", z.ZodTypeAny, {
1614
+ state: "present";
1615
+ token: string;
1616
+ empty?: boolean | undefined;
1617
+ }, {
1618
+ state: "present";
1619
+ token: string;
1620
+ empty?: boolean | undefined;
1621
+ }>, z.ZodObject<{
1622
+ state: z.ZodLiteral<"missing">;
1623
+ }, "strict", z.ZodTypeAny, {
1624
+ state: "missing";
1625
+ }, {
1626
+ state: "missing";
1627
+ }>, z.ZodObject<{
1628
+ state: z.ZodLiteral<"omitted">;
1629
+ }, "strict", z.ZodTypeAny, {
1630
+ state: "omitted";
1631
+ }, {
1632
+ state: "omitted";
1633
+ }>]>>;
1634
+ candidate: z.ZodOptional<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
1635
+ state: z.ZodLiteral<"present">;
1636
+ token: z.ZodString;
1637
+ empty: z.ZodOptional<z.ZodBoolean>;
1638
+ }, "strict", z.ZodTypeAny, {
1639
+ state: "present";
1640
+ token: string;
1641
+ empty?: boolean | undefined;
1642
+ }, {
1643
+ state: "present";
1644
+ token: string;
1645
+ empty?: boolean | undefined;
1646
+ }>, z.ZodObject<{
1647
+ state: z.ZodLiteral<"missing">;
1648
+ }, "strict", z.ZodTypeAny, {
1649
+ state: "missing";
1650
+ }, {
1651
+ state: "missing";
1652
+ }>, z.ZodObject<{
1653
+ state: z.ZodLiteral<"omitted">;
1654
+ }, "strict", z.ZodTypeAny, {
1655
+ state: "omitted";
1656
+ }, {
1657
+ state: "omitted";
1658
+ }>]>>;
1659
+ site: z.ZodOptional<z.ZodObject<{
1660
+ file: z.ZodString;
1661
+ line: z.ZodOptional<z.ZodNumber>;
1662
+ column: z.ZodOptional<z.ZodNumber>;
1663
+ mapping: z.ZodEnum<["source-map", "generated", "unavailable"]>;
1664
+ }, "strict", z.ZodTypeAny, {
1665
+ file: string;
1666
+ mapping: "source-map" | "generated" | "unavailable";
1667
+ line?: number | undefined;
1668
+ column?: number | undefined;
1669
+ }, {
1670
+ file: string;
1671
+ mapping: "source-map" | "generated" | "unavailable";
1672
+ line?: number | undefined;
1673
+ column?: number | undefined;
1674
+ }>>;
1675
+ origin: z.ZodOptional<z.ZodObject<{
1676
+ kind: z.ZodEnum<["startup", "runtime", "dotenv", "native-env", "adapter", "unknown"]>;
1677
+ confidence: z.ZodEnum<["observed", "derived", "inferred", "unknown"]>;
1678
+ file: z.ZodOptional<z.ZodString>;
1679
+ adapterId: z.ZodOptional<z.ZodString>;
1680
+ }, "strict", z.ZodTypeAny, {
1681
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1682
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1683
+ file?: string | undefined;
1684
+ adapterId?: string | undefined;
1685
+ }, {
1686
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1687
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1688
+ file?: string | undefined;
1689
+ adapterId?: string | undefined;
1690
+ }>>;
1691
+ causedBy: z.ZodOptional<z.ZodString>;
1692
+ purpose: z.ZodOptional<z.ZodEnum<["application", "loader"]>>;
1693
+ outcome: z.ZodOptional<z.ZodEnum<["applied", "not-applied", "read-success", "read-failed", "spawned", "spawn-failed", "declared"]>>;
1694
+ childId: z.ZodOptional<z.ZodString>;
1695
+ environmentMode: z.ZodOptional<z.ZodEnum<["copied", "explicit", "shared", "unknown"]>>;
1696
+ phase: z.ZodOptional<z.ZodEnum<["startup", "runtime"]>>;
1697
+ loaderMethod: z.ZodOptional<z.ZodEnum<["process.loadEnvFile", "--env-file", "--env-file-if-exists"]>>;
1698
+ boundaryKind: z.ZodOptional<z.ZodEnum<["manual", "uncaught-exception"]>>;
1699
+ }, "strict", z.ZodTypeAny, {
1700
+ at: number;
1701
+ id: string;
1702
+ processId: string;
1703
+ seq: number;
1704
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1705
+ value?: {
1706
+ state: "present";
1707
+ token: string;
1708
+ empty?: boolean | undefined;
1709
+ } | {
1710
+ state: "missing";
1711
+ } | {
1712
+ state: "omitted";
1713
+ } | undefined;
1714
+ candidate?: {
1715
+ state: "present";
1716
+ token: string;
1717
+ empty?: boolean | undefined;
1718
+ } | {
1719
+ state: "missing";
1720
+ } | {
1721
+ state: "omitted";
1722
+ } | undefined;
1723
+ key?: string | undefined;
1724
+ before?: {
1725
+ state: "present";
1726
+ token: string;
1727
+ empty?: boolean | undefined;
1728
+ } | {
1729
+ state: "missing";
1730
+ } | {
1731
+ state: "omitted";
1732
+ } | undefined;
1733
+ site?: {
1734
+ file: string;
1735
+ mapping: "source-map" | "generated" | "unavailable";
1736
+ line?: number | undefined;
1737
+ column?: number | undefined;
1738
+ } | undefined;
1739
+ origin?: {
1740
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1741
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1742
+ file?: string | undefined;
1743
+ adapterId?: string | undefined;
1744
+ } | undefined;
1745
+ causedBy?: string | undefined;
1746
+ purpose?: "application" | "loader" | undefined;
1747
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
1748
+ childId?: string | undefined;
1749
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1750
+ phase?: "startup" | "runtime" | undefined;
1751
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
1752
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
1753
+ }, {
1754
+ at: number;
1755
+ id: string;
1756
+ processId: string;
1757
+ seq: number;
1758
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1759
+ value?: {
1760
+ state: "present";
1761
+ token: string;
1762
+ empty?: boolean | undefined;
1763
+ } | {
1764
+ state: "missing";
1765
+ } | {
1766
+ state: "omitted";
1767
+ } | undefined;
1768
+ candidate?: {
1769
+ state: "present";
1770
+ token: string;
1771
+ empty?: boolean | undefined;
1772
+ } | {
1773
+ state: "missing";
1774
+ } | {
1775
+ state: "omitted";
1776
+ } | undefined;
1777
+ key?: string | undefined;
1778
+ before?: {
1779
+ state: "present";
1780
+ token: string;
1781
+ empty?: boolean | undefined;
1782
+ } | {
1783
+ state: "missing";
1784
+ } | {
1785
+ state: "omitted";
1786
+ } | undefined;
1787
+ site?: {
1788
+ file: string;
1789
+ mapping: "source-map" | "generated" | "unavailable";
1790
+ line?: number | undefined;
1791
+ column?: number | undefined;
1792
+ } | undefined;
1793
+ origin?: {
1794
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1795
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1796
+ file?: string | undefined;
1797
+ adapterId?: string | undefined;
1798
+ } | undefined;
1799
+ causedBy?: string | undefined;
1800
+ purpose?: "application" | "loader" | undefined;
1801
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
1802
+ childId?: string | undefined;
1803
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1804
+ phase?: "startup" | "runtime" | undefined;
1805
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
1806
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
1807
+ }>, {
1808
+ at: number;
1809
+ id: string;
1810
+ processId: string;
1811
+ seq: number;
1812
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1813
+ value?: {
1814
+ state: "present";
1815
+ token: string;
1816
+ empty?: boolean | undefined;
1817
+ } | {
1818
+ state: "missing";
1819
+ } | {
1820
+ state: "omitted";
1821
+ } | undefined;
1822
+ candidate?: {
1823
+ state: "present";
1824
+ token: string;
1825
+ empty?: boolean | undefined;
1826
+ } | {
1827
+ state: "missing";
1828
+ } | {
1829
+ state: "omitted";
1830
+ } | undefined;
1831
+ key?: string | undefined;
1832
+ before?: {
1833
+ state: "present";
1834
+ token: string;
1835
+ empty?: boolean | undefined;
1836
+ } | {
1837
+ state: "missing";
1838
+ } | {
1839
+ state: "omitted";
1840
+ } | undefined;
1841
+ site?: {
1842
+ file: string;
1843
+ mapping: "source-map" | "generated" | "unavailable";
1844
+ line?: number | undefined;
1845
+ column?: number | undefined;
1846
+ } | undefined;
1847
+ origin?: {
1848
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1849
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1850
+ file?: string | undefined;
1851
+ adapterId?: string | undefined;
1852
+ } | undefined;
1853
+ causedBy?: string | undefined;
1854
+ purpose?: "application" | "loader" | undefined;
1855
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
1856
+ childId?: string | undefined;
1857
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1858
+ phase?: "startup" | "runtime" | undefined;
1859
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
1860
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
1861
+ }, {
1862
+ at: number;
1863
+ id: string;
1864
+ processId: string;
1865
+ seq: number;
1866
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1867
+ value?: {
1868
+ state: "present";
1869
+ token: string;
1870
+ empty?: boolean | undefined;
1871
+ } | {
1872
+ state: "missing";
1873
+ } | {
1874
+ state: "omitted";
1875
+ } | undefined;
1876
+ candidate?: {
1877
+ state: "present";
1878
+ token: string;
1879
+ empty?: boolean | undefined;
1880
+ } | {
1881
+ state: "missing";
1882
+ } | {
1883
+ state: "omitted";
1884
+ } | undefined;
1885
+ key?: string | undefined;
1886
+ before?: {
1887
+ state: "present";
1888
+ token: string;
1889
+ empty?: boolean | undefined;
1890
+ } | {
1891
+ state: "missing";
1892
+ } | {
1893
+ state: "omitted";
1894
+ } | undefined;
1895
+ site?: {
1896
+ file: string;
1897
+ mapping: "source-map" | "generated" | "unavailable";
1898
+ line?: number | undefined;
1899
+ column?: number | undefined;
1900
+ } | undefined;
1901
+ origin?: {
1902
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1903
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1904
+ file?: string | undefined;
1905
+ adapterId?: string | undefined;
1906
+ } | undefined;
1907
+ causedBy?: string | undefined;
1908
+ purpose?: "application" | "loader" | undefined;
1909
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
1910
+ childId?: string | undefined;
1911
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1912
+ phase?: "startup" | "runtime" | undefined;
1913
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
1914
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
1915
+ }>;
1916
+ }, "strict", z.ZodTypeAny, {
1917
+ type: "event";
1918
+ event: {
1919
+ at: number;
1920
+ id: string;
1921
+ processId: string;
1922
+ seq: number;
1923
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1924
+ value?: {
1925
+ state: "present";
1926
+ token: string;
1927
+ empty?: boolean | undefined;
1928
+ } | {
1929
+ state: "missing";
1930
+ } | {
1931
+ state: "omitted";
1932
+ } | undefined;
1933
+ candidate?: {
1934
+ state: "present";
1935
+ token: string;
1936
+ empty?: boolean | undefined;
1937
+ } | {
1938
+ state: "missing";
1939
+ } | {
1940
+ state: "omitted";
1941
+ } | undefined;
1942
+ key?: string | undefined;
1943
+ before?: {
1944
+ state: "present";
1945
+ token: string;
1946
+ empty?: boolean | undefined;
1947
+ } | {
1948
+ state: "missing";
1949
+ } | {
1950
+ state: "omitted";
1951
+ } | undefined;
1952
+ site?: {
1953
+ file: string;
1954
+ mapping: "source-map" | "generated" | "unavailable";
1955
+ line?: number | undefined;
1956
+ column?: number | undefined;
1957
+ } | undefined;
1958
+ origin?: {
1959
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
1960
+ confidence: "unknown" | "observed" | "derived" | "inferred";
1961
+ file?: string | undefined;
1962
+ adapterId?: string | undefined;
1963
+ } | undefined;
1964
+ causedBy?: string | undefined;
1965
+ purpose?: "application" | "loader" | undefined;
1966
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
1967
+ childId?: string | undefined;
1968
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
1969
+ phase?: "startup" | "runtime" | undefined;
1970
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
1971
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
1972
+ };
1973
+ }, {
1974
+ type: "event";
1975
+ event: {
1976
+ at: number;
1977
+ id: string;
1978
+ processId: string;
1979
+ seq: number;
1980
+ operation: "baseline" | "read" | "write" | "delete" | "candidate" | "skip" | "load" | "child-spawn" | "worker-spawn" | "boundary";
1981
+ value?: {
1982
+ state: "present";
1983
+ token: string;
1984
+ empty?: boolean | undefined;
1985
+ } | {
1986
+ state: "missing";
1987
+ } | {
1988
+ state: "omitted";
1989
+ } | undefined;
1990
+ candidate?: {
1991
+ state: "present";
1992
+ token: string;
1993
+ empty?: boolean | undefined;
1994
+ } | {
1995
+ state: "missing";
1996
+ } | {
1997
+ state: "omitted";
1998
+ } | undefined;
1999
+ key?: string | undefined;
2000
+ before?: {
2001
+ state: "present";
2002
+ token: string;
2003
+ empty?: boolean | undefined;
2004
+ } | {
2005
+ state: "missing";
2006
+ } | {
2007
+ state: "omitted";
2008
+ } | undefined;
2009
+ site?: {
2010
+ file: string;
2011
+ mapping: "source-map" | "generated" | "unavailable";
2012
+ line?: number | undefined;
2013
+ column?: number | undefined;
2014
+ } | undefined;
2015
+ origin?: {
2016
+ kind: "unknown" | "startup" | "runtime" | "dotenv" | "native-env" | "adapter";
2017
+ confidence: "unknown" | "observed" | "derived" | "inferred";
2018
+ file?: string | undefined;
2019
+ adapterId?: string | undefined;
2020
+ } | undefined;
2021
+ causedBy?: string | undefined;
2022
+ purpose?: "application" | "loader" | undefined;
2023
+ outcome?: "applied" | "not-applied" | "read-success" | "read-failed" | "spawned" | "spawn-failed" | "declared" | undefined;
2024
+ childId?: string | undefined;
2025
+ environmentMode?: "unknown" | "copied" | "explicit" | "shared" | undefined;
2026
+ phase?: "startup" | "runtime" | undefined;
2027
+ loaderMethod?: "process.loadEnvFile" | "--env-file" | "--env-file-if-exists" | undefined;
2028
+ boundaryKind?: "manual" | "uncaught-exception" | undefined;
2029
+ };
2030
+ }>, z.ZodObject<{
2031
+ type: z.ZodLiteral<"adapter">;
2032
+ declaration: z.ZodObject<{
2033
+ processId: z.ZodString;
2034
+ manifest: z.ZodObject<{
2035
+ id: z.ZodString;
2036
+ supportedVersions: z.ZodString;
2037
+ capabilities: z.ZodArray<z.ZodString, "many">;
2038
+ evidenceTypes: z.ZodArray<z.ZodString, "many">;
2039
+ knownBypasses: z.ZodArray<z.ZodString, "many">;
2040
+ confidenceRules: z.ZodArray<z.ZodString, "many">;
2041
+ }, "strict", z.ZodTypeAny, {
2042
+ id: string;
2043
+ supportedVersions: string;
2044
+ capabilities: string[];
2045
+ evidenceTypes: string[];
2046
+ knownBypasses: string[];
2047
+ confidenceRules: string[];
2048
+ }, {
2049
+ id: string;
2050
+ supportedVersions: string;
2051
+ capabilities: string[];
2052
+ evidenceTypes: string[];
2053
+ knownBypasses: string[];
2054
+ confidenceRules: string[];
2055
+ }>;
2056
+ installedVersion: z.ZodOptional<z.ZodString>;
2057
+ validation: z.ZodLiteral<"unverified">;
2058
+ }, "strict", z.ZodTypeAny, {
2059
+ validation: "unverified";
2060
+ processId: string;
2061
+ manifest: {
2062
+ id: string;
2063
+ supportedVersions: string;
2064
+ capabilities: string[];
2065
+ evidenceTypes: string[];
2066
+ knownBypasses: string[];
2067
+ confidenceRules: string[];
2068
+ };
2069
+ installedVersion?: string | undefined;
2070
+ }, {
2071
+ validation: "unverified";
2072
+ processId: string;
2073
+ manifest: {
2074
+ id: string;
2075
+ supportedVersions: string;
2076
+ capabilities: string[];
2077
+ evidenceTypes: string[];
2078
+ knownBypasses: string[];
2079
+ confidenceRules: string[];
2080
+ };
2081
+ installedVersion?: string | undefined;
2082
+ }>;
2083
+ }, "strict", z.ZodTypeAny, {
2084
+ type: "adapter";
2085
+ declaration: {
2086
+ validation: "unverified";
2087
+ processId: string;
2088
+ manifest: {
2089
+ id: string;
2090
+ supportedVersions: string;
2091
+ capabilities: string[];
2092
+ evidenceTypes: string[];
2093
+ knownBypasses: string[];
2094
+ confidenceRules: string[];
2095
+ };
2096
+ installedVersion?: string | undefined;
2097
+ };
2098
+ }, {
2099
+ type: "adapter";
2100
+ declaration: {
2101
+ validation: "unverified";
2102
+ processId: string;
2103
+ manifest: {
2104
+ id: string;
2105
+ supportedVersions: string;
2106
+ capabilities: string[];
2107
+ evidenceTypes: string[];
2108
+ knownBypasses: string[];
2109
+ confidenceRules: string[];
2110
+ };
2111
+ installedVersion?: string | undefined;
2112
+ };
2113
+ }>, z.ZodObject<{
2114
+ type: z.ZodLiteral<"notice">;
2115
+ notice: z.ZodEnum<["startup_history_unknown", "native_access_unobserved", "workers_unsupported", "original_reference_bypass", "environment_replaced", "early_preloads_possible", "events_dropped", "event_limit", "byte_limit", "key_limit", "recorder_failed", "missing_footer", "invalid_stream", "process_limit", "aggregate_limit", "child_outlived_root", "children_disabled", "children_opt_in", "child_depth_limit", "child_count_limit", "child_shape_unsupported", "child_shell_or_non_node", "child_detached", "sync_children_unobserved", "dotenv_not_seen", "dotenv_attached", "dotenv_version_unverified", "dotenv_custom_target", "dotenv_source_unknown", "dotenv_options_unsupported", "dotenv_eager_load", "adapter_failed", "source_maps_opt_in", "source_maps_requested", "source_map_unavailable", "custom_adapter_loaded", "capture_unverified", "metadata_scrubbed", "comparison_removed", "loader_details_removed", "call_sites_removed", "native_env_attached", "native_env_disabled", "native_env_unavailable", "native_env_early", "native_env_candidates_inferred", "native_env_candidates_unavailable", "native_env_file_changed", "workers_opt_in", "workers_disabled", "worker_attached", "worker_shared_env", "worker_shape_unsupported", "worker_depth_limit", "worker_count_limit", "worker_unconfirmed", "worker_outlived_root", "adapter_manifest_unverified", "failure_boundary_recorded"]>;
2116
+ }, "strict", z.ZodTypeAny, {
2117
+ type: "notice";
2118
+ notice: "startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded";
2119
+ }, {
2120
+ type: "notice";
2121
+ notice: "startup_history_unknown" | "native_access_unobserved" | "workers_unsupported" | "original_reference_bypass" | "environment_replaced" | "early_preloads_possible" | "events_dropped" | "event_limit" | "byte_limit" | "key_limit" | "recorder_failed" | "missing_footer" | "invalid_stream" | "process_limit" | "aggregate_limit" | "child_outlived_root" | "children_disabled" | "children_opt_in" | "child_depth_limit" | "child_count_limit" | "child_shape_unsupported" | "child_shell_or_non_node" | "child_detached" | "sync_children_unobserved" | "dotenv_not_seen" | "dotenv_attached" | "dotenv_version_unverified" | "dotenv_custom_target" | "dotenv_source_unknown" | "dotenv_options_unsupported" | "dotenv_eager_load" | "adapter_failed" | "source_maps_opt_in" | "source_maps_requested" | "source_map_unavailable" | "custom_adapter_loaded" | "capture_unverified" | "metadata_scrubbed" | "comparison_removed" | "loader_details_removed" | "call_sites_removed" | "native_env_attached" | "native_env_disabled" | "native_env_unavailable" | "native_env_early" | "native_env_candidates_inferred" | "native_env_candidates_unavailable" | "native_env_file_changed" | "workers_opt_in" | "workers_disabled" | "worker_attached" | "worker_shared_env" | "worker_shape_unsupported" | "worker_depth_limit" | "worker_count_limit" | "worker_unconfirmed" | "worker_outlived_root" | "adapter_manifest_unverified" | "failure_boundary_recorded";
2122
+ }>, z.ZodObject<{
2123
+ type: z.ZodLiteral<"end">;
2124
+ exitCode: z.ZodNumber;
2125
+ eventsDropped: z.ZodNumber;
2126
+ }, "strict", z.ZodTypeAny, {
2127
+ type: "end";
2128
+ exitCode: number;
2129
+ eventsDropped: number;
2130
+ }, {
2131
+ type: "end";
2132
+ exitCode: number;
2133
+ eventsDropped: number;
2134
+ }>]>;
2135
+ export type StreamRecord = z.infer<typeof StreamRecordSchema>;
2136
+ export declare const KeyFileSchema: z.ZodObject<{
2137
+ version: z.ZodLiteral<1>;
2138
+ domainId: z.ZodString;
2139
+ secret: z.ZodString;
2140
+ }, "strict", z.ZodTypeAny, {
2141
+ domainId: string;
2142
+ version: 1;
2143
+ secret: string;
2144
+ }, {
2145
+ domainId: string;
2146
+ version: 1;
2147
+ secret: string;
2148
+ }>;
2149
+ export type ComparisonKey = z.infer<typeof KeyFileSchema>;