@hypequery/cli 1.22.0 → 1.23.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 (156) hide show
  1. package/dist/bin/cli.js +77 -12
  2. package/dist/cli.d.ts.map +1 -1
  3. package/dist/cli.js +20 -15
  4. package/dist/commands/dev.d.ts.map +1 -1
  5. package/dist/commands/dev.js +25 -5
  6. package/dist/commands/generate-datasets.d.ts +0 -6
  7. package/dist/commands/generate-datasets.d.ts.map +1 -1
  8. package/dist/commands/generate-datasets.js +17 -1
  9. package/dist/commands/generate-manifest.d.ts.map +1 -1
  10. package/dist/commands/generate-manifest.js +4 -0
  11. package/dist/commands/generate.d.ts.map +1 -1
  12. package/dist/commands/generate.js +14 -1
  13. package/dist/commands/init.d.ts.map +1 -1
  14. package/dist/commands/init.js +80 -55
  15. package/dist/commands/mcp.d.ts.map +1 -1
  16. package/dist/commands/mcp.js +47 -10
  17. package/dist/commands/telemetry.d.ts +3 -0
  18. package/dist/commands/telemetry.d.ts.map +1 -0
  19. package/dist/commands/telemetry.js +19 -0
  20. package/dist/generators/chdb.d.ts +3 -0
  21. package/dist/generators/chdb.d.ts.map +1 -1
  22. package/dist/generators/chdb.js +2 -0
  23. package/dist/generators/clickhouse.d.ts +3 -1
  24. package/dist/generators/clickhouse.d.ts.map +1 -1
  25. package/dist/generators/clickhouse.js +2 -0
  26. package/dist/typegen/generate-types.d.ts +3 -0
  27. package/dist/typegen/generate-types.d.ts.map +1 -1
  28. package/dist/typegen/generate-types.js +5 -1
  29. package/dist/typegen/type-parsing.d.ts +1 -1
  30. package/dist/typegen/type-parsing.d.ts.map +1 -1
  31. package/dist/typegen/type-parsing.js +11 -7
  32. package/dist/utils/chdb-gitignore-entry.d.ts +2 -0
  33. package/dist/utils/chdb-gitignore-entry.d.ts.map +1 -0
  34. package/dist/utils/chdb-gitignore-entry.js +17 -0
  35. package/dist/utils/cli-version.d.ts +2 -0
  36. package/dist/utils/cli-version.d.ts.map +1 -0
  37. package/dist/utils/cli-version.js +11 -0
  38. package/dist/utils/cloud-credential-store.d.ts.map +1 -1
  39. package/dist/utils/cloud-credential-store.js +2 -13
  40. package/dist/utils/command-exit.d.ts +13 -0
  41. package/dist/utils/command-exit.d.ts.map +1 -0
  42. package/dist/utils/command-exit.js +31 -0
  43. package/dist/utils/config-directory.d.ts +3 -0
  44. package/dist/utils/config-directory.d.ts.map +1 -0
  45. package/dist/utils/config-directory.js +14 -0
  46. package/dist/utils/detect-database-environment.d.ts +3 -0
  47. package/dist/utils/detect-database-environment.d.ts.map +1 -0
  48. package/dist/utils/detect-database-environment.js +8 -0
  49. package/dist/utils/detect-database.d.ts.map +1 -1
  50. package/dist/utils/detect-database.js +4 -8
  51. package/dist/utils/init-options.d.ts +11 -0
  52. package/dist/utils/init-options.d.ts.map +1 -0
  53. package/dist/utils/init-options.js +28 -0
  54. package/dist/utils/load-api.d.ts +2 -0
  55. package/dist/utils/load-api.d.ts.map +1 -1
  56. package/dist/utils/load-api.js +50 -51
  57. package/dist/utils/load-env-files.d.ts +10 -0
  58. package/dist/utils/load-env-files.d.ts.map +1 -0
  59. package/dist/utils/load-env-files.js +27 -0
  60. package/dist/utils/project-root.d.ts +14 -0
  61. package/dist/utils/project-root.d.ts.map +1 -0
  62. package/dist/utils/project-root.js +41 -0
  63. package/dist/utils/telemetry/buckets.d.ts +5 -0
  64. package/dist/utils/telemetry/buckets.d.ts.map +1 -0
  65. package/dist/utils/telemetry/buckets.js +23 -0
  66. package/dist/utils/telemetry/catalog-docs.d.ts +3 -0
  67. package/dist/utils/telemetry/catalog-docs.d.ts.map +1 -0
  68. package/dist/utils/telemetry/catalog-docs.js +52 -0
  69. package/dist/utils/telemetry/catalog.d.ts +1124 -0
  70. package/dist/utils/telemetry/catalog.d.ts.map +1 -0
  71. package/dist/utils/telemetry/catalog.js +154 -0
  72. package/dist/utils/telemetry/command-context.d.ts +17 -0
  73. package/dist/utils/telemetry/command-context.d.ts.map +1 -0
  74. package/dist/utils/telemetry/command-context.js +30 -0
  75. package/dist/utils/telemetry/config-schema.d.ts +12 -0
  76. package/dist/utils/telemetry/config-schema.d.ts.map +1 -0
  77. package/dist/utils/telemetry/config-schema.js +33 -0
  78. package/dist/utils/telemetry/config-store.d.ts +35 -0
  79. package/dist/utils/telemetry/config-store.d.ts.map +1 -0
  80. package/dist/utils/telemetry/config-store.js +147 -0
  81. package/dist/utils/telemetry/delivery.d.ts +13 -0
  82. package/dist/utils/telemetry/delivery.d.ts.map +1 -0
  83. package/dist/utils/telemetry/delivery.js +26 -0
  84. package/dist/utils/telemetry/detached-dispatch.d.ts +12 -0
  85. package/dist/utils/telemetry/detached-dispatch.d.ts.map +1 -0
  86. package/dist/utils/telemetry/detached-dispatch.js +33 -0
  87. package/dist/utils/telemetry/detached-sender.d.ts +2 -0
  88. package/dist/utils/telemetry/detached-sender.d.ts.map +1 -0
  89. package/dist/utils/telemetry/detached-sender.js +31 -0
  90. package/dist/utils/telemetry/dev-session.d.ts +15 -0
  91. package/dist/utils/telemetry/dev-session.d.ts.map +1 -0
  92. package/dist/utils/telemetry/dev-session.js +25 -0
  93. package/dist/utils/telemetry/domains.d.ts +69 -0
  94. package/dist/utils/telemetry/domains.d.ts.map +1 -0
  95. package/dist/utils/telemetry/domains.js +64 -0
  96. package/dist/utils/telemetry/endpoint.d.ts +3 -0
  97. package/dist/utils/telemetry/endpoint.d.ts.map +1 -0
  98. package/dist/utils/telemetry/endpoint.js +15 -0
  99. package/dist/utils/telemetry/environment.d.ts +27 -0
  100. package/dist/utils/telemetry/environment.d.ts.map +1 -0
  101. package/dist/utils/telemetry/environment.js +95 -0
  102. package/dist/utils/telemetry/error-code.d.ts +4 -0
  103. package/dist/utils/telemetry/error-code.d.ts.map +1 -0
  104. package/dist/utils/telemetry/error-code.js +57 -0
  105. package/dist/utils/telemetry/flags.d.ts +5 -0
  106. package/dist/utils/telemetry/flags.d.ts.map +1 -0
  107. package/dist/utils/telemetry/flags.js +41 -0
  108. package/dist/utils/telemetry/generation-metrics.d.ts +15 -0
  109. package/dist/utils/telemetry/generation-metrics.d.ts.map +1 -0
  110. package/dist/utils/telemetry/generation-metrics.js +35 -0
  111. package/dist/utils/telemetry/identity.d.ts +12 -0
  112. package/dist/utils/telemetry/identity.d.ts.map +1 -0
  113. package/dist/utils/telemetry/identity.js +42 -0
  114. package/dist/utils/telemetry/init-funnel.d.ts +15 -0
  115. package/dist/utils/telemetry/init-funnel.d.ts.map +1 -0
  116. package/dist/utils/telemetry/init-funnel.js +25 -0
  117. package/dist/utils/telemetry/invocation.d.ts +22 -0
  118. package/dist/utils/telemetry/invocation.d.ts.map +1 -0
  119. package/dist/utils/telemetry/invocation.js +46 -0
  120. package/dist/utils/telemetry/lifecycle.d.ts +32 -0
  121. package/dist/utils/telemetry/lifecycle.d.ts.map +1 -0
  122. package/dist/utils/telemetry/lifecycle.js +99 -0
  123. package/dist/utils/telemetry/mcp-session.d.ts +10 -0
  124. package/dist/utils/telemetry/mcp-session.d.ts.map +1 -0
  125. package/dist/utils/telemetry/mcp-session.js +36 -0
  126. package/dist/utils/telemetry/notice.d.ts +11 -0
  127. package/dist/utils/telemetry/notice.d.ts.map +1 -0
  128. package/dist/utils/telemetry/notice.js +24 -0
  129. package/dist/utils/telemetry/opt-out.d.ts +16 -0
  130. package/dist/utils/telemetry/opt-out.d.ts.map +1 -0
  131. package/dist/utils/telemetry/opt-out.js +32 -0
  132. package/dist/utils/telemetry/post-json.d.ts +13 -0
  133. package/dist/utils/telemetry/post-json.d.ts.map +1 -0
  134. package/dist/utils/telemetry/post-json.js +32 -0
  135. package/dist/utils/telemetry/project-context.d.ts +15 -0
  136. package/dist/utils/telemetry/project-context.d.ts.map +1 -0
  137. package/dist/utils/telemetry/project-context.js +86 -0
  138. package/dist/utils/telemetry/schema.d.ts +72 -0
  139. package/dist/utils/telemetry/schema.d.ts.map +1 -0
  140. package/dist/utils/telemetry/schema.js +17 -0
  141. package/dist/utils/telemetry/session-config.d.ts +6 -0
  142. package/dist/utils/telemetry/session-config.d.ts.map +1 -0
  143. package/dist/utils/telemetry/session-config.js +17 -0
  144. package/dist/utils/telemetry/settings-lock.d.ts +36 -0
  145. package/dist/utils/telemetry/settings-lock.d.ts.map +1 -0
  146. package/dist/utils/telemetry/settings-lock.js +102 -0
  147. package/dist/utils/telemetry/transport.d.ts +25 -0
  148. package/dist/utils/telemetry/transport.d.ts.map +1 -0
  149. package/dist/utils/telemetry/transport.js +76 -0
  150. package/dist/utils/telemetry/validation.d.ts +10 -0
  151. package/dist/utils/telemetry/validation.d.ts.map +1 -0
  152. package/dist/utils/telemetry/validation.js +77 -0
  153. package/dist/utils/telemetry/value-formats.d.ts +30 -0
  154. package/dist/utils/telemetry/value-formats.d.ts.map +1 -0
  155. package/dist/utils/telemetry/value-formats.js +13 -0
  156. package/package.json +12 -8
@@ -0,0 +1,1124 @@
1
+ import { COMMAND_FLAGS, GLOBAL_FLAGS } from './domains.js';
2
+ import { type Fields, type Properties } from './schema.js';
3
+ export declare const EVENT_SCHEMA_VERSION = 1;
4
+ export declare const COMMON_PROPERTIES: {
5
+ readonly schema_version: {
6
+ readonly kind: "enum";
7
+ readonly description: string;
8
+ readonly values: readonly [1];
9
+ };
10
+ readonly cli_version: {
11
+ readonly kind: "format";
12
+ readonly description: string;
13
+ readonly format: "version";
14
+ };
15
+ readonly node_version: {
16
+ readonly kind: "format";
17
+ readonly description: string;
18
+ readonly format: "node_version";
19
+ };
20
+ readonly os: {
21
+ readonly kind: "enum";
22
+ readonly description: string;
23
+ readonly values: readonly ["darwin", "linux", "win32", "aix", "freebsd", "openbsd", "sunos", "android", "unknown"];
24
+ };
25
+ readonly arch: {
26
+ readonly kind: "enum";
27
+ readonly description: string;
28
+ readonly values: readonly ["arm", "arm64", "ia32", "x64", "loong64", "mips", "mipsel", "ppc", "ppc64", "riscv64", "s390", "s390x", "unknown"];
29
+ };
30
+ readonly is_ci: {
31
+ readonly kind: "boolean";
32
+ readonly description: string;
33
+ };
34
+ readonly ci_name: {
35
+ readonly kind: "enum";
36
+ readonly description: string;
37
+ readonly values: readonly ["none", "github_actions", "gitlab", "circleci", "buildkite", "jenkins", "vercel", "netlify", "azure", "bitbucket", "teamcity", "travis", "codebuild", "unknown"];
38
+ };
39
+ readonly is_tty: {
40
+ readonly kind: "boolean";
41
+ readonly description: string;
42
+ };
43
+ readonly is_docker: {
44
+ readonly kind: "boolean";
45
+ readonly description: string;
46
+ };
47
+ readonly is_wsl: {
48
+ readonly kind: "boolean";
49
+ readonly description: string;
50
+ };
51
+ readonly package_manager: {
52
+ readonly kind: "enum";
53
+ readonly description: string;
54
+ readonly values: readonly ["npm", "pnpm", "yarn", "bun", "unknown"];
55
+ };
56
+ readonly package_manager_major: {
57
+ readonly kind: "format";
58
+ readonly description: string;
59
+ readonly format: "major_version";
60
+ } & {
61
+ readonly optional: true;
62
+ };
63
+ readonly invoked_via: {
64
+ readonly kind: "enum";
65
+ readonly description: string;
66
+ readonly values: readonly ["npx", "pnpm_dlx", "bunx", "global", "local_bin", "unknown"];
67
+ };
68
+ readonly install_id: {
69
+ readonly kind: "format";
70
+ readonly description: string;
71
+ readonly format: "uuid";
72
+ };
73
+ readonly project_id: {
74
+ readonly kind: "format";
75
+ readonly description: string;
76
+ readonly format: "hash";
77
+ } & {
78
+ readonly optional: true;
79
+ };
80
+ readonly session_id: {
81
+ readonly kind: "format";
82
+ readonly description: string;
83
+ readonly format: "uuid";
84
+ };
85
+ readonly is_first_run: {
86
+ readonly kind: "boolean";
87
+ readonly description: string;
88
+ };
89
+ readonly hypequery_packages: {
90
+ readonly kind: "record";
91
+ readonly description: string;
92
+ readonly fields: Record<"@hypequery/clickhouse" | "@hypequery/datasets" | "@hypequery/serve" | "@hypequery/react" | "@hypequery/cli" | "@hypequery/mcp" | "@hypequery/protocol" | "@hypequery/protocol-conformance" | "@hypequery/deployment", {
93
+ readonly kind: "format";
94
+ readonly description: string;
95
+ readonly format: "version";
96
+ } & {
97
+ readonly optional: true;
98
+ }>;
99
+ } & {
100
+ readonly optional: true;
101
+ };
102
+ readonly database: {
103
+ readonly kind: "enum";
104
+ readonly description: string;
105
+ readonly values: readonly ["clickhouse", "chdb", "bigquery", "unknown"];
106
+ };
107
+ };
108
+ /** Command-specific completion fields; absence means that stage was not reached. */
109
+ export declare const COMMAND_PROPERTIES: {
110
+ readonly help: {
111
+ readonly help_topic: {
112
+ readonly kind: "enum";
113
+ readonly description: string;
114
+ readonly values: readonly ["root", "init", "dev", "mcp", "generate", "generate:types", "generate:datasets", "generate:manifest", "login", "logout", "deploy", "deployment:build", "deployment:validate", "deployment:release", "deployment:submit", "deployment:status", "pull", "diff", "help", "version", "telemetry", "unknown"];
115
+ } & {
116
+ readonly optional: true;
117
+ };
118
+ };
119
+ readonly unknown: Record<string, never>;
120
+ readonly login: Record<string, never>;
121
+ readonly logout: Record<string, never>;
122
+ readonly deploy: Record<string, never>;
123
+ readonly "deployment:build": Record<string, never>;
124
+ readonly "deployment:validate": Record<string, never>;
125
+ readonly "deployment:release": Record<string, never>;
126
+ readonly "deployment:submit": Record<string, never>;
127
+ readonly "deployment:status": Record<string, never>;
128
+ readonly pull: Record<string, never>;
129
+ readonly diff: Record<string, never>;
130
+ readonly version: Record<string, never>;
131
+ readonly telemetry: Record<string, never>;
132
+ readonly init: {
133
+ readonly stage_reached: {
134
+ readonly kind: "enum";
135
+ readonly description: string;
136
+ readonly values: readonly ["started", "database_selected", "connection_tested", "style_selected", "files_written", "dependencies_installed", "completed"];
137
+ } & {
138
+ readonly optional: true;
139
+ };
140
+ readonly failed_stage: {
141
+ readonly kind: "enum";
142
+ readonly description: string;
143
+ readonly values: readonly ["started", "database_selected", "connection_tested", "style_selected", "files_written", "dependencies_installed", "completed"];
144
+ } & {
145
+ readonly optional: true;
146
+ };
147
+ readonly style: {
148
+ readonly kind: "enum";
149
+ readonly description: string;
150
+ readonly values: readonly ["queries", "datasets"];
151
+ } & {
152
+ readonly optional: true;
153
+ };
154
+ readonly auth: {
155
+ readonly kind: "enum";
156
+ readonly description: string;
157
+ readonly values: readonly ["none", "context"];
158
+ } & {
159
+ readonly optional: true;
160
+ };
161
+ readonly interactive: {
162
+ readonly kind: "boolean";
163
+ readonly description: string;
164
+ } & {
165
+ readonly optional: true;
166
+ };
167
+ readonly force: {
168
+ readonly kind: "boolean";
169
+ readonly description: string;
170
+ } & {
171
+ readonly optional: true;
172
+ };
173
+ readonly example: {
174
+ readonly kind: "boolean";
175
+ readonly description: string;
176
+ } & {
177
+ readonly optional: true;
178
+ };
179
+ readonly skip_connection: {
180
+ readonly kind: "boolean";
181
+ readonly description: string;
182
+ } & {
183
+ readonly optional: true;
184
+ };
185
+ readonly connection_result: {
186
+ readonly kind: "enum";
187
+ readonly description: string;
188
+ readonly values: readonly ["ok", "failed", "skipped"];
189
+ } & {
190
+ readonly optional: true;
191
+ };
192
+ readonly chdb_failure_reason: {
193
+ readonly kind: "enum";
194
+ readonly description: string;
195
+ readonly values: readonly ["not_installed", "engine_error"];
196
+ } & {
197
+ readonly optional: true;
198
+ };
199
+ readonly table_count_bucket: {
200
+ readonly kind: "enum";
201
+ readonly description: string;
202
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
203
+ } & {
204
+ readonly optional: true;
205
+ };
206
+ readonly datasets_generated_bucket: {
207
+ readonly kind: "enum";
208
+ readonly description: string;
209
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
210
+ } & {
211
+ readonly optional: true;
212
+ };
213
+ readonly table_selection: {
214
+ readonly kind: "enum";
215
+ readonly description: string;
216
+ readonly values: readonly ["all", "list", "exclude", "prompt"];
217
+ } & {
218
+ readonly optional: true;
219
+ };
220
+ readonly env_file: {
221
+ readonly kind: "enum";
222
+ readonly description: string;
223
+ readonly values: readonly ["created", "updated", "unchanged", "skipped"];
224
+ } & {
225
+ readonly optional: true;
226
+ };
227
+ readonly gitignore: {
228
+ readonly kind: "enum";
229
+ readonly description: string;
230
+ readonly values: readonly ["created", "updated", "unchanged", "skipped"];
231
+ } & {
232
+ readonly optional: true;
233
+ };
234
+ readonly package_json_present: {
235
+ readonly kind: "boolean";
236
+ readonly description: string;
237
+ } & {
238
+ readonly optional: true;
239
+ };
240
+ readonly analytics_directory_present: {
241
+ readonly kind: "boolean";
242
+ readonly description: string;
243
+ } & {
244
+ readonly optional: true;
245
+ };
246
+ };
247
+ readonly dev: {};
248
+ readonly mcp: {
249
+ readonly mode: {
250
+ readonly kind: "enum";
251
+ readonly description: string;
252
+ readonly values: readonly ["self_test", "serve"];
253
+ } & {
254
+ readonly optional: true;
255
+ };
256
+ readonly hosted: {
257
+ readonly kind: "boolean";
258
+ readonly description: string;
259
+ } & {
260
+ readonly optional: true;
261
+ };
262
+ readonly dataset_count_bucket: {
263
+ readonly kind: "enum";
264
+ readonly description: string;
265
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
266
+ } & {
267
+ readonly optional: true;
268
+ };
269
+ readonly tenant_used: {
270
+ readonly kind: "boolean";
271
+ readonly description: string;
272
+ } & {
273
+ readonly optional: true;
274
+ };
275
+ readonly tenant_dataset_count_bucket: {
276
+ readonly kind: "enum";
277
+ readonly description: string;
278
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
279
+ } & {
280
+ readonly optional: true;
281
+ };
282
+ };
283
+ readonly generate: {
284
+ readonly chdb_path_given: {
285
+ readonly kind: "boolean";
286
+ readonly description: string;
287
+ } & {
288
+ readonly optional: true;
289
+ };
290
+ readonly tables_filter_used: {
291
+ readonly kind: "boolean";
292
+ readonly description: string;
293
+ } & {
294
+ readonly optional: true;
295
+ };
296
+ readonly table_count_bucket: {
297
+ readonly kind: "enum";
298
+ readonly description: string;
299
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
300
+ } & {
301
+ readonly optional: true;
302
+ };
303
+ readonly column_count_bucket: {
304
+ readonly kind: "enum";
305
+ readonly description: string;
306
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
307
+ } & {
308
+ readonly optional: true;
309
+ };
310
+ readonly unsupported_type_count_bucket: {
311
+ readonly kind: "enum";
312
+ readonly description: string;
313
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
314
+ } & {
315
+ readonly optional: true;
316
+ };
317
+ readonly unsupported_type_families: {
318
+ readonly kind: "enum_list";
319
+ readonly description: string;
320
+ readonly values: readonly ["AggregateFunction", "SimpleAggregateFunction", "Variant", "Dynamic", "Object", "JSON", "Nested", "Tuple", "Map", "Array", "Nullable", "LowCardinality", "Decimal", "Enum", "DateTime", "DateTime64", "unknown"];
321
+ } & {
322
+ readonly optional: true;
323
+ };
324
+ readonly custom_output: {
325
+ readonly kind: "boolean";
326
+ readonly description: string;
327
+ } & {
328
+ readonly optional: true;
329
+ };
330
+ };
331
+ readonly 'generate:types': {
332
+ readonly chdb_path_given: {
333
+ readonly kind: "boolean";
334
+ readonly description: string;
335
+ } & {
336
+ readonly optional: true;
337
+ };
338
+ readonly tables_filter_used: {
339
+ readonly kind: "boolean";
340
+ readonly description: string;
341
+ } & {
342
+ readonly optional: true;
343
+ };
344
+ readonly table_count_bucket: {
345
+ readonly kind: "enum";
346
+ readonly description: string;
347
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
348
+ } & {
349
+ readonly optional: true;
350
+ };
351
+ readonly column_count_bucket: {
352
+ readonly kind: "enum";
353
+ readonly description: string;
354
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
355
+ } & {
356
+ readonly optional: true;
357
+ };
358
+ readonly unsupported_type_count_bucket: {
359
+ readonly kind: "enum";
360
+ readonly description: string;
361
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
362
+ } & {
363
+ readonly optional: true;
364
+ };
365
+ readonly unsupported_type_families: {
366
+ readonly kind: "enum_list";
367
+ readonly description: string;
368
+ readonly values: readonly ["AggregateFunction", "SimpleAggregateFunction", "Variant", "Dynamic", "Object", "JSON", "Nested", "Tuple", "Map", "Array", "Nullable", "LowCardinality", "Decimal", "Enum", "DateTime", "DateTime64", "unknown"];
369
+ } & {
370
+ readonly optional: true;
371
+ };
372
+ readonly custom_output: {
373
+ readonly kind: "boolean";
374
+ readonly description: string;
375
+ } & {
376
+ readonly optional: true;
377
+ };
378
+ };
379
+ readonly 'generate:datasets': {
380
+ readonly mode: {
381
+ readonly kind: "enum";
382
+ readonly description: string;
383
+ readonly values: readonly ["write", "check", "diff"];
384
+ } & {
385
+ readonly optional: true;
386
+ };
387
+ readonly check_result: {
388
+ readonly kind: "enum";
389
+ readonly description: string;
390
+ readonly values: readonly ["up_to_date", "out_of_date", "missing"];
391
+ } & {
392
+ readonly optional: true;
393
+ };
394
+ readonly force: {
395
+ readonly kind: "boolean";
396
+ readonly description: string;
397
+ } & {
398
+ readonly optional: true;
399
+ };
400
+ readonly tenant_column_used: {
401
+ readonly kind: "boolean";
402
+ readonly description: string;
403
+ } & {
404
+ readonly optional: true;
405
+ };
406
+ readonly tables_filter_used: {
407
+ readonly kind: "boolean";
408
+ readonly description: string;
409
+ } & {
410
+ readonly optional: true;
411
+ };
412
+ readonly exclude_filter_used: {
413
+ readonly kind: "boolean";
414
+ readonly description: string;
415
+ } & {
416
+ readonly optional: true;
417
+ };
418
+ readonly datasets_generated_bucket: {
419
+ readonly kind: "enum";
420
+ readonly description: string;
421
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
422
+ } & {
423
+ readonly optional: true;
424
+ };
425
+ readonly warning_counts: {
426
+ readonly kind: "record";
427
+ readonly description: string;
428
+ readonly fields: Record<"tenant-key-candidate" | "tenant-column-missing", {
429
+ readonly kind: "enum";
430
+ readonly description: string;
431
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
432
+ } & {
433
+ readonly optional: true;
434
+ }>;
435
+ } & {
436
+ readonly optional: true;
437
+ };
438
+ };
439
+ readonly 'generate:manifest': {
440
+ readonly query_count_bucket: {
441
+ readonly kind: "enum";
442
+ readonly description: string;
443
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
444
+ } & {
445
+ readonly optional: true;
446
+ };
447
+ readonly endpoint_count_bucket: {
448
+ readonly kind: "enum";
449
+ readonly description: string;
450
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
451
+ } & {
452
+ readonly optional: true;
453
+ };
454
+ readonly custom_output: {
455
+ readonly kind: "boolean";
456
+ readonly description: string;
457
+ } & {
458
+ readonly optional: true;
459
+ };
460
+ };
461
+ };
462
+ export declare const SESSION_START_PROPERTIES: {
463
+ readonly dev: {
464
+ readonly entry_type: {
465
+ readonly kind: "enum";
466
+ readonly description: string;
467
+ readonly values: readonly ["hypequery.ts", "api.ts", "queries.ts", "explicit_file", "unknown"];
468
+ };
469
+ readonly watch: {
470
+ readonly kind: "boolean";
471
+ readonly description: string;
472
+ };
473
+ readonly cache_provider: {
474
+ readonly kind: "enum";
475
+ readonly description: string;
476
+ readonly values: readonly ["none", "memory", "redis", "unknown"];
477
+ };
478
+ readonly cors: {
479
+ readonly kind: "boolean";
480
+ readonly description: string;
481
+ };
482
+ readonly open: {
483
+ readonly kind: "boolean";
484
+ readonly description: string;
485
+ };
486
+ readonly custom_port: {
487
+ readonly kind: "boolean";
488
+ readonly description: string;
489
+ };
490
+ readonly quiet: {
491
+ readonly kind: "boolean";
492
+ readonly description: string;
493
+ };
494
+ };
495
+ readonly mcp: {
496
+ readonly entry_type: {
497
+ readonly kind: "enum";
498
+ readonly description: string;
499
+ readonly values: readonly ["hypequery.ts", "api.ts", "queries.ts", "explicit_file", "unknown"];
500
+ };
501
+ readonly mode: {
502
+ readonly kind: "enum";
503
+ readonly description: string;
504
+ readonly values: readonly ["self_test", "serve"];
505
+ };
506
+ readonly dataset_count_bucket: {
507
+ readonly kind: "enum";
508
+ readonly description: string;
509
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
510
+ };
511
+ readonly tenant_used: {
512
+ readonly kind: "boolean";
513
+ readonly description: string;
514
+ };
515
+ readonly tenant_dataset_count_bucket: {
516
+ readonly kind: "enum";
517
+ readonly description: string;
518
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
519
+ };
520
+ };
521
+ };
522
+ export declare const SESSION_END_PROPERTIES: {
523
+ readonly dev: {
524
+ readonly reload_count_bucket: {
525
+ readonly kind: "enum";
526
+ readonly description: string;
527
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
528
+ };
529
+ readonly reload_error_count_bucket: {
530
+ readonly kind: "enum";
531
+ readonly description: string;
532
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
533
+ };
534
+ readonly load_failures: {
535
+ readonly kind: "record";
536
+ readonly description: string;
537
+ readonly fields: Record<"unknown" | "connection_failed" | "auth_failed" | "entrypoint_not_found" | "compile_error" | "prompt_cancelled" | "validation_failed" | "cloud_network_error" | "cloud_rejected" | "not_installed" | "engine_error" | "no_tables" | "no_datasets" | "tenant_required" | "load_error" | "output_missing" | "output_out_of_date" | "unknown_command" | "unknown_option", {
538
+ readonly kind: "enum";
539
+ readonly description: string;
540
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
541
+ } & {
542
+ readonly optional: true;
543
+ }>;
544
+ };
545
+ };
546
+ readonly mcp: {
547
+ readonly tool_call_counts: {
548
+ readonly kind: "record";
549
+ readonly description: string;
550
+ readonly fields: Record<"list" | "query" | "describe", {
551
+ readonly kind: "enum";
552
+ readonly description: string;
553
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
554
+ }>;
555
+ };
556
+ readonly error_count_bucket: {
557
+ readonly kind: "enum";
558
+ readonly description: string;
559
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
560
+ };
561
+ };
562
+ };
563
+ export declare const EVENT_CATALOG: {
564
+ readonly cli_command_completed: {
565
+ readonly purpose: "Measure command adoption, onboarding drop-off and release reliability. Exactly once per invocation; never emit for telemetry disable.";
566
+ readonly properties: {
567
+ readonly command: {
568
+ readonly kind: "enum";
569
+ readonly description: string;
570
+ readonly values: readonly ["init", "dev", "mcp", "generate", "generate:types", "generate:datasets", "generate:manifest", "login", "logout", "deploy", "deployment:build", "deployment:validate", "deployment:release", "deployment:submit", "deployment:status", "pull", "diff", "help", "version", "telemetry", "unknown"];
571
+ };
572
+ readonly flags_used: {
573
+ readonly kind: "enum_list";
574
+ readonly description: string;
575
+ readonly values: readonly ("--path" | "--style" | "--database" | "--chdb-path" | "--auth" | "--all-tables" | "--tables" | "--exclude-tables" | "--no-example" | "--no-interactive" | "--force" | "--skip-connection" | "--port" | "--hostname" | "--no-watch" | "--no-cache" | "--cache" | "--redis-url" | "--open" | "--cors" | "--quiet" | "--tenant" | "--self-test" | "--url" | "--output" | "--tenant-column" | "--check" | "--diff" | "--cloud-url" | "--environment" | "--bundle-output" | "--release-output" | "--project" | "--no-source" | "--endpoint" | "--replace-restored" | "--mcp-config" | "--release" | "--no-telemetry" | "--help" | "--version")[];
576
+ };
577
+ readonly outcome: {
578
+ readonly kind: "enum";
579
+ readonly description: string;
580
+ readonly values: readonly ["success", "failure", "cancelled", "interrupted"];
581
+ };
582
+ readonly duration_bucket: {
583
+ readonly kind: "enum";
584
+ readonly description: string;
585
+ readonly values: readonly ["<100ms", "100ms-1s", "1s-10s", "10s-1m", "1m-10m", "10m-1h", "1h+"];
586
+ };
587
+ readonly error_code: {
588
+ readonly kind: "enum";
589
+ readonly description: string;
590
+ readonly values: readonly ["unknown", "connection_failed", "auth_failed", "entrypoint_not_found", "compile_error", "prompt_cancelled", "validation_failed", "cloud_network_error", "cloud_rejected", "not_installed", "engine_error", "no_tables", "no_datasets", "tenant_required", "load_error", "output_missing", "output_out_of_date", "unknown_command", "unknown_option"];
591
+ } & {
592
+ readonly optional: true;
593
+ };
594
+ };
595
+ readonly variants: {
596
+ readonly help: {
597
+ readonly help_topic: {
598
+ readonly kind: "enum";
599
+ readonly description: string;
600
+ readonly values: readonly ["root", "init", "dev", "mcp", "generate", "generate:types", "generate:datasets", "generate:manifest", "login", "logout", "deploy", "deployment:build", "deployment:validate", "deployment:release", "deployment:submit", "deployment:status", "pull", "diff", "help", "version", "telemetry", "unknown"];
601
+ } & {
602
+ readonly optional: true;
603
+ };
604
+ };
605
+ readonly unknown: Record<string, never>;
606
+ readonly login: Record<string, never>;
607
+ readonly logout: Record<string, never>;
608
+ readonly deploy: Record<string, never>;
609
+ readonly "deployment:build": Record<string, never>;
610
+ readonly "deployment:validate": Record<string, never>;
611
+ readonly "deployment:release": Record<string, never>;
612
+ readonly "deployment:submit": Record<string, never>;
613
+ readonly "deployment:status": Record<string, never>;
614
+ readonly pull: Record<string, never>;
615
+ readonly diff: Record<string, never>;
616
+ readonly version: Record<string, never>;
617
+ readonly telemetry: Record<string, never>;
618
+ readonly init: {
619
+ readonly stage_reached: {
620
+ readonly kind: "enum";
621
+ readonly description: string;
622
+ readonly values: readonly ["started", "database_selected", "connection_tested", "style_selected", "files_written", "dependencies_installed", "completed"];
623
+ } & {
624
+ readonly optional: true;
625
+ };
626
+ readonly failed_stage: {
627
+ readonly kind: "enum";
628
+ readonly description: string;
629
+ readonly values: readonly ["started", "database_selected", "connection_tested", "style_selected", "files_written", "dependencies_installed", "completed"];
630
+ } & {
631
+ readonly optional: true;
632
+ };
633
+ readonly style: {
634
+ readonly kind: "enum";
635
+ readonly description: string;
636
+ readonly values: readonly ["queries", "datasets"];
637
+ } & {
638
+ readonly optional: true;
639
+ };
640
+ readonly auth: {
641
+ readonly kind: "enum";
642
+ readonly description: string;
643
+ readonly values: readonly ["none", "context"];
644
+ } & {
645
+ readonly optional: true;
646
+ };
647
+ readonly interactive: {
648
+ readonly kind: "boolean";
649
+ readonly description: string;
650
+ } & {
651
+ readonly optional: true;
652
+ };
653
+ readonly force: {
654
+ readonly kind: "boolean";
655
+ readonly description: string;
656
+ } & {
657
+ readonly optional: true;
658
+ };
659
+ readonly example: {
660
+ readonly kind: "boolean";
661
+ readonly description: string;
662
+ } & {
663
+ readonly optional: true;
664
+ };
665
+ readonly skip_connection: {
666
+ readonly kind: "boolean";
667
+ readonly description: string;
668
+ } & {
669
+ readonly optional: true;
670
+ };
671
+ readonly connection_result: {
672
+ readonly kind: "enum";
673
+ readonly description: string;
674
+ readonly values: readonly ["ok", "failed", "skipped"];
675
+ } & {
676
+ readonly optional: true;
677
+ };
678
+ readonly chdb_failure_reason: {
679
+ readonly kind: "enum";
680
+ readonly description: string;
681
+ readonly values: readonly ["not_installed", "engine_error"];
682
+ } & {
683
+ readonly optional: true;
684
+ };
685
+ readonly table_count_bucket: {
686
+ readonly kind: "enum";
687
+ readonly description: string;
688
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
689
+ } & {
690
+ readonly optional: true;
691
+ };
692
+ readonly datasets_generated_bucket: {
693
+ readonly kind: "enum";
694
+ readonly description: string;
695
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
696
+ } & {
697
+ readonly optional: true;
698
+ };
699
+ readonly table_selection: {
700
+ readonly kind: "enum";
701
+ readonly description: string;
702
+ readonly values: readonly ["all", "list", "exclude", "prompt"];
703
+ } & {
704
+ readonly optional: true;
705
+ };
706
+ readonly env_file: {
707
+ readonly kind: "enum";
708
+ readonly description: string;
709
+ readonly values: readonly ["created", "updated", "unchanged", "skipped"];
710
+ } & {
711
+ readonly optional: true;
712
+ };
713
+ readonly gitignore: {
714
+ readonly kind: "enum";
715
+ readonly description: string;
716
+ readonly values: readonly ["created", "updated", "unchanged", "skipped"];
717
+ } & {
718
+ readonly optional: true;
719
+ };
720
+ readonly package_json_present: {
721
+ readonly kind: "boolean";
722
+ readonly description: string;
723
+ } & {
724
+ readonly optional: true;
725
+ };
726
+ readonly analytics_directory_present: {
727
+ readonly kind: "boolean";
728
+ readonly description: string;
729
+ } & {
730
+ readonly optional: true;
731
+ };
732
+ };
733
+ readonly dev: {};
734
+ readonly mcp: {
735
+ readonly mode: {
736
+ readonly kind: "enum";
737
+ readonly description: string;
738
+ readonly values: readonly ["self_test", "serve"];
739
+ } & {
740
+ readonly optional: true;
741
+ };
742
+ readonly hosted: {
743
+ readonly kind: "boolean";
744
+ readonly description: string;
745
+ } & {
746
+ readonly optional: true;
747
+ };
748
+ readonly dataset_count_bucket: {
749
+ readonly kind: "enum";
750
+ readonly description: string;
751
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
752
+ } & {
753
+ readonly optional: true;
754
+ };
755
+ readonly tenant_used: {
756
+ readonly kind: "boolean";
757
+ readonly description: string;
758
+ } & {
759
+ readonly optional: true;
760
+ };
761
+ readonly tenant_dataset_count_bucket: {
762
+ readonly kind: "enum";
763
+ readonly description: string;
764
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
765
+ } & {
766
+ readonly optional: true;
767
+ };
768
+ };
769
+ readonly generate: {
770
+ readonly chdb_path_given: {
771
+ readonly kind: "boolean";
772
+ readonly description: string;
773
+ } & {
774
+ readonly optional: true;
775
+ };
776
+ readonly tables_filter_used: {
777
+ readonly kind: "boolean";
778
+ readonly description: string;
779
+ } & {
780
+ readonly optional: true;
781
+ };
782
+ readonly table_count_bucket: {
783
+ readonly kind: "enum";
784
+ readonly description: string;
785
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
786
+ } & {
787
+ readonly optional: true;
788
+ };
789
+ readonly column_count_bucket: {
790
+ readonly kind: "enum";
791
+ readonly description: string;
792
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
793
+ } & {
794
+ readonly optional: true;
795
+ };
796
+ readonly unsupported_type_count_bucket: {
797
+ readonly kind: "enum";
798
+ readonly description: string;
799
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
800
+ } & {
801
+ readonly optional: true;
802
+ };
803
+ readonly unsupported_type_families: {
804
+ readonly kind: "enum_list";
805
+ readonly description: string;
806
+ readonly values: readonly ["AggregateFunction", "SimpleAggregateFunction", "Variant", "Dynamic", "Object", "JSON", "Nested", "Tuple", "Map", "Array", "Nullable", "LowCardinality", "Decimal", "Enum", "DateTime", "DateTime64", "unknown"];
807
+ } & {
808
+ readonly optional: true;
809
+ };
810
+ readonly custom_output: {
811
+ readonly kind: "boolean";
812
+ readonly description: string;
813
+ } & {
814
+ readonly optional: true;
815
+ };
816
+ };
817
+ readonly 'generate:types': {
818
+ readonly chdb_path_given: {
819
+ readonly kind: "boolean";
820
+ readonly description: string;
821
+ } & {
822
+ readonly optional: true;
823
+ };
824
+ readonly tables_filter_used: {
825
+ readonly kind: "boolean";
826
+ readonly description: string;
827
+ } & {
828
+ readonly optional: true;
829
+ };
830
+ readonly table_count_bucket: {
831
+ readonly kind: "enum";
832
+ readonly description: string;
833
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
834
+ } & {
835
+ readonly optional: true;
836
+ };
837
+ readonly column_count_bucket: {
838
+ readonly kind: "enum";
839
+ readonly description: string;
840
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
841
+ } & {
842
+ readonly optional: true;
843
+ };
844
+ readonly unsupported_type_count_bucket: {
845
+ readonly kind: "enum";
846
+ readonly description: string;
847
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
848
+ } & {
849
+ readonly optional: true;
850
+ };
851
+ readonly unsupported_type_families: {
852
+ readonly kind: "enum_list";
853
+ readonly description: string;
854
+ readonly values: readonly ["AggregateFunction", "SimpleAggregateFunction", "Variant", "Dynamic", "Object", "JSON", "Nested", "Tuple", "Map", "Array", "Nullable", "LowCardinality", "Decimal", "Enum", "DateTime", "DateTime64", "unknown"];
855
+ } & {
856
+ readonly optional: true;
857
+ };
858
+ readonly custom_output: {
859
+ readonly kind: "boolean";
860
+ readonly description: string;
861
+ } & {
862
+ readonly optional: true;
863
+ };
864
+ };
865
+ readonly 'generate:datasets': {
866
+ readonly mode: {
867
+ readonly kind: "enum";
868
+ readonly description: string;
869
+ readonly values: readonly ["write", "check", "diff"];
870
+ } & {
871
+ readonly optional: true;
872
+ };
873
+ readonly check_result: {
874
+ readonly kind: "enum";
875
+ readonly description: string;
876
+ readonly values: readonly ["up_to_date", "out_of_date", "missing"];
877
+ } & {
878
+ readonly optional: true;
879
+ };
880
+ readonly force: {
881
+ readonly kind: "boolean";
882
+ readonly description: string;
883
+ } & {
884
+ readonly optional: true;
885
+ };
886
+ readonly tenant_column_used: {
887
+ readonly kind: "boolean";
888
+ readonly description: string;
889
+ } & {
890
+ readonly optional: true;
891
+ };
892
+ readonly tables_filter_used: {
893
+ readonly kind: "boolean";
894
+ readonly description: string;
895
+ } & {
896
+ readonly optional: true;
897
+ };
898
+ readonly exclude_filter_used: {
899
+ readonly kind: "boolean";
900
+ readonly description: string;
901
+ } & {
902
+ readonly optional: true;
903
+ };
904
+ readonly datasets_generated_bucket: {
905
+ readonly kind: "enum";
906
+ readonly description: string;
907
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
908
+ } & {
909
+ readonly optional: true;
910
+ };
911
+ readonly warning_counts: {
912
+ readonly kind: "record";
913
+ readonly description: string;
914
+ readonly fields: Record<"tenant-key-candidate" | "tenant-column-missing", {
915
+ readonly kind: "enum";
916
+ readonly description: string;
917
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
918
+ } & {
919
+ readonly optional: true;
920
+ }>;
921
+ } & {
922
+ readonly optional: true;
923
+ };
924
+ };
925
+ readonly 'generate:manifest': {
926
+ readonly query_count_bucket: {
927
+ readonly kind: "enum";
928
+ readonly description: string;
929
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
930
+ } & {
931
+ readonly optional: true;
932
+ };
933
+ readonly endpoint_count_bucket: {
934
+ readonly kind: "enum";
935
+ readonly description: string;
936
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
937
+ } & {
938
+ readonly optional: true;
939
+ };
940
+ readonly custom_output: {
941
+ readonly kind: "boolean";
942
+ readonly description: string;
943
+ } & {
944
+ readonly optional: true;
945
+ };
946
+ };
947
+ };
948
+ };
949
+ readonly cli_session_started: {
950
+ readonly purpose: "Measure development-server and MCP session configuration; never emit on every reload or request.";
951
+ readonly properties: {
952
+ readonly command: {
953
+ readonly kind: "enum";
954
+ readonly description: string;
955
+ readonly values: readonly ["dev", "mcp"];
956
+ };
957
+ };
958
+ readonly variants: {
959
+ readonly dev: {
960
+ readonly entry_type: {
961
+ readonly kind: "enum";
962
+ readonly description: string;
963
+ readonly values: readonly ["hypequery.ts", "api.ts", "queries.ts", "explicit_file", "unknown"];
964
+ };
965
+ readonly watch: {
966
+ readonly kind: "boolean";
967
+ readonly description: string;
968
+ };
969
+ readonly cache_provider: {
970
+ readonly kind: "enum";
971
+ readonly description: string;
972
+ readonly values: readonly ["none", "memory", "redis", "unknown"];
973
+ };
974
+ readonly cors: {
975
+ readonly kind: "boolean";
976
+ readonly description: string;
977
+ };
978
+ readonly open: {
979
+ readonly kind: "boolean";
980
+ readonly description: string;
981
+ };
982
+ readonly custom_port: {
983
+ readonly kind: "boolean";
984
+ readonly description: string;
985
+ };
986
+ readonly quiet: {
987
+ readonly kind: "boolean";
988
+ readonly description: string;
989
+ };
990
+ };
991
+ readonly mcp: {
992
+ readonly entry_type: {
993
+ readonly kind: "enum";
994
+ readonly description: string;
995
+ readonly values: readonly ["hypequery.ts", "api.ts", "queries.ts", "explicit_file", "unknown"];
996
+ };
997
+ readonly mode: {
998
+ readonly kind: "enum";
999
+ readonly description: string;
1000
+ readonly values: readonly ["self_test", "serve"];
1001
+ };
1002
+ readonly dataset_count_bucket: {
1003
+ readonly kind: "enum";
1004
+ readonly description: string;
1005
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
1006
+ };
1007
+ readonly tenant_used: {
1008
+ readonly kind: "boolean";
1009
+ readonly description: string;
1010
+ };
1011
+ readonly tenant_dataset_count_bucket: {
1012
+ readonly kind: "enum";
1013
+ readonly description: string;
1014
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
1015
+ };
1016
+ };
1017
+ };
1018
+ };
1019
+ readonly cli_session_ended: {
1020
+ readonly purpose: "Measure session duration and aggregated usage on shutdown, without individual requests or tool arguments.";
1021
+ readonly properties: {
1022
+ readonly command: {
1023
+ readonly kind: "enum";
1024
+ readonly description: string;
1025
+ readonly values: readonly ["dev", "mcp"];
1026
+ };
1027
+ readonly outcome: {
1028
+ readonly kind: "enum";
1029
+ readonly description: string;
1030
+ readonly values: readonly ["success", "failure", "cancelled", "interrupted"];
1031
+ };
1032
+ readonly duration_bucket: {
1033
+ readonly kind: "enum";
1034
+ readonly description: string;
1035
+ readonly values: readonly ["<100ms", "100ms-1s", "1s-10s", "10s-1m", "1m-10m", "10m-1h", "1h+"];
1036
+ };
1037
+ };
1038
+ readonly variants: {
1039
+ readonly dev: {
1040
+ readonly reload_count_bucket: {
1041
+ readonly kind: "enum";
1042
+ readonly description: string;
1043
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
1044
+ };
1045
+ readonly reload_error_count_bucket: {
1046
+ readonly kind: "enum";
1047
+ readonly description: string;
1048
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
1049
+ };
1050
+ readonly load_failures: {
1051
+ readonly kind: "record";
1052
+ readonly description: string;
1053
+ readonly fields: Record<"unknown" | "connection_failed" | "auth_failed" | "entrypoint_not_found" | "compile_error" | "prompt_cancelled" | "validation_failed" | "cloud_network_error" | "cloud_rejected" | "not_installed" | "engine_error" | "no_tables" | "no_datasets" | "tenant_required" | "load_error" | "output_missing" | "output_out_of_date" | "unknown_command" | "unknown_option", {
1054
+ readonly kind: "enum";
1055
+ readonly description: string;
1056
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
1057
+ } & {
1058
+ readonly optional: true;
1059
+ }>;
1060
+ };
1061
+ };
1062
+ readonly mcp: {
1063
+ readonly tool_call_counts: {
1064
+ readonly kind: "record";
1065
+ readonly description: string;
1066
+ readonly fields: Record<"list" | "query" | "describe", {
1067
+ readonly kind: "enum";
1068
+ readonly description: string;
1069
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
1070
+ }>;
1071
+ };
1072
+ readonly error_count_bucket: {
1073
+ readonly kind: "enum";
1074
+ readonly description: string;
1075
+ readonly values: readonly ["0", "1", "2-5", "6-20", "21-100", "101+"];
1076
+ };
1077
+ };
1078
+ };
1079
+ };
1080
+ readonly cli_crash: {
1081
+ readonly purpose: "Measure uncaught failures by stable class and code, with no messages or stacks.";
1082
+ readonly properties: {
1083
+ readonly command: {
1084
+ readonly kind: "enum";
1085
+ readonly description: string;
1086
+ readonly values: readonly ["init", "dev", "mcp", "generate", "generate:types", "generate:datasets", "generate:manifest", "login", "logout", "deploy", "deployment:build", "deployment:validate", "deployment:release", "deployment:submit", "deployment:status", "pull", "diff", "help", "version", "telemetry", "unknown"];
1087
+ };
1088
+ readonly exception_class: {
1089
+ readonly kind: "enum";
1090
+ readonly description: string;
1091
+ readonly values: readonly ["Error", "TypeError", "RangeError", "SyntaxError", "ReferenceError", "URIError", "EvalError", "AggregateError", "unknown"];
1092
+ };
1093
+ readonly error_code: {
1094
+ readonly kind: "enum";
1095
+ readonly description: string;
1096
+ readonly values: readonly ["unknown", "connection_failed", "auth_failed", "entrypoint_not_found", "compile_error", "prompt_cancelled", "validation_failed", "cloud_network_error", "cloud_rejected", "not_installed", "engine_error", "no_tables", "no_datasets", "tenant_required", "load_error", "output_missing", "output_out_of_date", "unknown_command", "unknown_option"];
1097
+ };
1098
+ };
1099
+ };
1100
+ };
1101
+ export type TelemetryEventName = keyof typeof EVENT_CATALOG;
1102
+ type Definition<N extends TelemetryEventName> = typeof EVENT_CATALOG[N];
1103
+ type VariantProperties<V extends Record<string, Fields>> = {
1104
+ [C in keyof V]: {
1105
+ command: C;
1106
+ } & Properties<V[C]>;
1107
+ }[keyof V];
1108
+ type CompletionFlags = {
1109
+ [C in keyof typeof COMMAND_FLAGS]: {
1110
+ command: C;
1111
+ flags_used: readonly (typeof COMMAND_FLAGS[C][number] | typeof GLOBAL_FLAGS[number])[];
1112
+ };
1113
+ }[keyof typeof COMMAND_FLAGS];
1114
+ export type TelemetryProperties<N extends TelemetryEventName> = Properties<typeof COMMON_PROPERTIES> & Properties<Definition<N>['properties']> & (Definition<N> extends {
1115
+ variants: infer V extends Record<string, Fields>;
1116
+ } ? VariantProperties<V> : unknown) & (N extends 'cli_command_completed' ? CompletionFlags : unknown);
1117
+ export type TelemetryEvent = {
1118
+ [N in TelemetryEventName]: {
1119
+ readonly event: N;
1120
+ readonly properties: TelemetryProperties<N>;
1121
+ };
1122
+ }[TelemetryEventName];
1123
+ export {};
1124
+ //# sourceMappingURL=catalog.d.ts.map