@514labs/moose-lib 0.6.239-ci-15-g75bf9613 → 0.6.239-ci-1-gf12f5383

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.
@@ -988,11 +988,6 @@ interface TransformConfig<T> {
988
988
  * unless a DeadLetterQueue is provided, or it is explicitly disabled with a null value
989
989
  */
990
990
  deadLetterQueue?: DeadLetterQueue<T> | null;
991
- /**
992
- * @internal Source file path where this transform was declared.
993
- * Automatically captured from stack trace.
994
- */
995
- sourceFile?: string;
996
991
  }
997
992
  /**
998
993
  * Configuration options for stream consumers.
@@ -1012,11 +1007,6 @@ interface ConsumerConfig<T> {
1012
1007
  * unless a DeadLetterQueue is provided, or it is explicitly disabled with a null value
1013
1008
  */
1014
1009
  deadLetterQueue?: DeadLetterQueue<T> | null;
1015
- /**
1016
- * @internal Source file path where this consumer was declared.
1017
- * Automatically captured from stack trace.
1018
- */
1019
- sourceFile?: string;
1020
1010
  }
1021
1011
  type SchemaRegistryEncoding = "JSON" | "AVRO" | "PROTOBUF";
1022
1012
  type SchemaRegistryReference = {
@@ -1806,8 +1796,6 @@ declare class SqlResource {
1806
1796
  pullsDataFrom: SqlObject[];
1807
1797
  /** List of OlapTables or Views that this resource writes data to. */
1808
1798
  pushesDataTo: SqlObject[];
1809
- /** @internal Source file path where this resource was defined */
1810
- sourceFile?: string;
1811
1799
  /**
1812
1800
  * Creates a new SqlResource instance.
1813
1801
  * @param name The name of the resource.
@@ -988,11 +988,6 @@ interface TransformConfig<T> {
988
988
  * unless a DeadLetterQueue is provided, or it is explicitly disabled with a null value
989
989
  */
990
990
  deadLetterQueue?: DeadLetterQueue<T> | null;
991
- /**
992
- * @internal Source file path where this transform was declared.
993
- * Automatically captured from stack trace.
994
- */
995
- sourceFile?: string;
996
991
  }
997
992
  /**
998
993
  * Configuration options for stream consumers.
@@ -1012,11 +1007,6 @@ interface ConsumerConfig<T> {
1012
1007
  * unless a DeadLetterQueue is provided, or it is explicitly disabled with a null value
1013
1008
  */
1014
1009
  deadLetterQueue?: DeadLetterQueue<T> | null;
1015
- /**
1016
- * @internal Source file path where this consumer was declared.
1017
- * Automatically captured from stack trace.
1018
- */
1019
- sourceFile?: string;
1020
1010
  }
1021
1011
  type SchemaRegistryEncoding = "JSON" | "AVRO" | "PROTOBUF";
1022
1012
  type SchemaRegistryReference = {
@@ -1806,8 +1796,6 @@ declare class SqlResource {
1806
1796
  pullsDataFrom: SqlObject[];
1807
1797
  /** List of OlapTables or Views that this resource writes data to. */
1808
1798
  pushesDataTo: SqlObject[];
1809
- /** @internal Source file path where this resource was defined */
1810
- sourceFile?: string;
1811
1799
  /**
1812
1800
  * Creates a new SqlResource instance.
1813
1801
  * @param name The name of the resource.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-bG7qUssc.mjs';
2
- import { K as ApiUtil, a4 as MooseClient } from './index-DtHRzX8Z.mjs';
3
- export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aa as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-DtHRzX8Z.mjs';
1
+ export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-BRa8sgXw.mjs';
2
+ import { K as ApiUtil, a4 as MooseClient } from './index-BG2HP0xG.mjs';
3
+ export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aa as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-BG2HP0xG.mjs';
4
4
  import * as _clickhouse_client from '@clickhouse/client';
5
5
  import { KafkaJS } from '@confluentinc/kafka-javascript';
6
6
  import http from 'http';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-mRmtV1to.js';
2
- import { K as ApiUtil, a4 as MooseClient } from './index-DtHRzX8Z.js';
3
- export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aa as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-DtHRzX8Z.js';
1
+ export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-CMLITD0_.js';
2
+ import { K as ApiUtil, a4 as MooseClient } from './index-BG2HP0xG.js';
3
+ export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aa as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-BG2HP0xG.js';
4
4
  import * as _clickhouse_client from '@clickhouse/client';
5
5
  import { KafkaJS } from '@confluentinc/kafka-javascript';
6
6
  import http from 'http';
package/dist/index.js CHANGED
@@ -460,39 +460,24 @@ __export(index_exports, {
460
460
  });
461
461
  module.exports = __toCommonJS(index_exports);
462
462
 
463
- // src/dmv2/utils/stackTrace.ts
464
- function shouldSkipStackLine(line) {
465
- return line.includes("node_modules") || // Skip npm installed packages (prod)
466
- line.includes("internal/modules") || // Skip Node.js internals
467
- line.includes("ts-node") || // Skip TypeScript execution
468
- line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
469
- line.includes("\\ts-moose-lib\\");
470
- }
471
- function parseStackLine(line) {
472
- const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
473
- if (match && match[1]) {
474
- return {
475
- file: match[1],
476
- line: match[2]
477
- };
478
- }
479
- return void 0;
480
- }
481
- function getSourceFileInfo(stack) {
463
+ // src/dmv2/typedBase.ts
464
+ function getInstantiationFileInfo(stack) {
482
465
  if (!stack) return {};
483
466
  const lines = stack.split("\n");
484
467
  for (const line of lines) {
485
- if (shouldSkipStackLine(line)) continue;
486
- const info = parseStackLine(line);
487
- if (info) return info;
468
+ if (line.includes("node_modules") || line.includes("internal/modules") || line.includes("ts-node"))
469
+ continue;
470
+ const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
471
+ if (match && match[1]) {
472
+ return {
473
+ file: match[1],
474
+ line: match[2]
475
+ // Only the line number
476
+ };
477
+ }
488
478
  }
489
479
  return {};
490
480
  }
491
- function getSourceFileFromStack(stack) {
492
- return getSourceFileInfo(stack).file;
493
- }
494
-
495
- // src/dmv2/typedBase.ts
496
481
  var TypedBase = class {
497
482
  /** The JSON schema representation of type T. Injected by the compiler plugin. */
498
483
  schema;
@@ -536,7 +521,7 @@ var TypedBase = class {
536
521
  this.metadata = config?.metadata ? { ...config.metadata } : {};
537
522
  const stack = new Error().stack;
538
523
  if (stack) {
539
- const info = getSourceFileInfo(stack);
524
+ const info = getInstantiationFileInfo(stack);
540
525
  this.metadata.source = { file: info.file, line: info.line };
541
526
  } else {
542
527
  this.metadata.source = void 0;
@@ -1786,10 +1771,8 @@ var Stream = class extends TypedBase {
1786
1771
  * @param config Optional configuration for this specific transformation step, like a version.
1787
1772
  */
1788
1773
  addTransform(destination, transformation, config) {
1789
- const sourceFile = getSourceFileFromStack(new Error().stack);
1790
1774
  const transformConfig = {
1791
- ...config ?? {},
1792
- sourceFile
1775
+ ...config ?? {}
1793
1776
  };
1794
1777
  if (transformConfig.deadLetterQueue === void 0) {
1795
1778
  transformConfig.deadLetterQueue = this.defaultDeadLetterQueue;
@@ -1816,10 +1799,8 @@ var Stream = class extends TypedBase {
1816
1799
  * @param config Optional configuration for this specific consumer, like a version.
1817
1800
  */
1818
1801
  addConsumer(consumer, config) {
1819
- const sourceFile = getSourceFileFromStack(new Error().stack);
1820
1802
  const consumerConfig = {
1821
- ...config ?? {},
1822
- sourceFile
1803
+ ...config ?? {}
1823
1804
  };
1824
1805
  if (consumerConfig.deadLetterQueue === void 0) {
1825
1806
  consumerConfig.deadLetterQueue = this.defaultDeadLetterQueue;
@@ -2406,8 +2387,6 @@ var SqlResource = class {
2406
2387
  pullsDataFrom;
2407
2388
  /** List of OlapTables or Views that this resource writes data to. */
2408
2389
  pushesDataTo;
2409
- /** @internal Source file path where this resource was defined */
2410
- sourceFile;
2411
2390
  /**
2412
2391
  * Creates a new SqlResource instance.
2413
2392
  * @param name The name of the resource.
@@ -2432,8 +2411,6 @@ var SqlResource = class {
2432
2411
  );
2433
2412
  this.pullsDataFrom = options?.pullsDataFrom ?? [];
2434
2413
  this.pushesDataTo = options?.pushesDataTo ?? [];
2435
- const stack = new Error().stack;
2436
- this.sourceFile = getSourceFileFromStack(stack);
2437
2414
  }
2438
2415
  };
2439
2416