@dbos-inc/dbos-sdk 0.7.21-preview → 0.7.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/dist/src/cloud-cli/applications/deploy-app-code.d.ts.map +1 -1
  2. package/dist/src/cloud-cli/applications/deploy-app-code.js +1 -0
  3. package/dist/src/cloud-cli/applications/deploy-app-code.js.map +1 -1
  4. package/dist/src/cloud-cli/cli.js +19 -7
  5. package/dist/src/cloud-cli/cli.js.map +1 -1
  6. package/dist/src/cloud-cli/userdb.d.ts +2 -0
  7. package/dist/src/cloud-cli/userdb.d.ts.map +1 -1
  8. package/dist/src/cloud-cli/userdb.js +78 -5
  9. package/dist/src/cloud-cli/userdb.js.map +1 -1
  10. package/dist/src/communicator.d.ts +2 -1
  11. package/dist/src/communicator.d.ts.map +1 -1
  12. package/dist/src/communicator.js.map +1 -1
  13. package/dist/src/context.d.ts +3 -2
  14. package/dist/src/context.d.ts.map +1 -1
  15. package/dist/src/context.js +7 -7
  16. package/dist/src/context.js.map +1 -1
  17. package/dist/src/dbos-executor.d.ts +7 -1
  18. package/dist/src/dbos-executor.d.ts.map +1 -1
  19. package/dist/src/dbos-executor.js +110 -35
  20. package/dist/src/dbos-executor.js.map +1 -1
  21. package/dist/src/dbos-runtime/cli.d.ts +1 -0
  22. package/dist/src/dbos-runtime/cli.d.ts.map +1 -1
  23. package/dist/src/dbos-runtime/cli.js +1 -0
  24. package/dist/src/dbos-runtime/cli.js.map +1 -1
  25. package/dist/src/dbos-runtime/config.d.ts +3 -0
  26. package/dist/src/dbos-runtime/config.d.ts.map +1 -1
  27. package/dist/src/dbos-runtime/config.js +1 -0
  28. package/dist/src/dbos-runtime/config.js.map +1 -1
  29. package/dist/src/dbos-runtime/runtime.d.ts +1 -1
  30. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  31. package/dist/src/dbos-runtime/runtime.js +9 -9
  32. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  33. package/dist/src/debugger/debug_workflow.d.ts +38 -0
  34. package/dist/src/debugger/debug_workflow.d.ts.map +1 -0
  35. package/dist/src/debugger/debug_workflow.js +192 -0
  36. package/dist/src/debugger/debug_workflow.js.map +1 -0
  37. package/dist/src/error.d.ts +3 -0
  38. package/dist/src/error.d.ts.map +1 -1
  39. package/dist/src/error.js +8 -1
  40. package/dist/src/error.js.map +1 -1
  41. package/dist/src/httpServer/handler.d.ts +2 -1
  42. package/dist/src/httpServer/handler.d.ts.map +1 -1
  43. package/dist/src/httpServer/handler.js +27 -15
  44. package/dist/src/httpServer/handler.js.map +1 -1
  45. package/dist/src/httpServer/server.d.ts +3 -3
  46. package/dist/src/httpServer/server.d.ts.map +1 -1
  47. package/dist/src/httpServer/server.js +19 -17
  48. package/dist/src/httpServer/server.js.map +1 -1
  49. package/dist/src/system_database.d.ts +2 -0
  50. package/dist/src/system_database.d.ts.map +1 -1
  51. package/dist/src/system_database.js +9 -2
  52. package/dist/src/system_database.js.map +1 -1
  53. package/dist/src/telemetry/collector.d.ts +2 -2
  54. package/dist/src/telemetry/collector.d.ts.map +1 -1
  55. package/dist/src/telemetry/collector.js.map +1 -1
  56. package/dist/src/telemetry/exporters.d.ts +5 -6
  57. package/dist/src/telemetry/exporters.d.ts.map +1 -1
  58. package/dist/src/telemetry/exporters.js +2 -42
  59. package/dist/src/telemetry/exporters.js.map +1 -1
  60. package/dist/src/telemetry/signals.d.ts +0 -10
  61. package/dist/src/telemetry/signals.d.ts.map +1 -1
  62. package/dist/src/telemetry/signals.js.map +1 -1
  63. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  64. package/dist/src/testing/testing_runtime.js +7 -1
  65. package/dist/src/testing/testing_runtime.js.map +1 -1
  66. package/dist/src/transaction.d.ts +2 -1
  67. package/dist/src/transaction.d.ts.map +1 -1
  68. package/dist/src/transaction.js.map +1 -1
  69. package/dist/src/workflow.d.ts +15 -2
  70. package/dist/src/workflow.d.ts.map +1 -1
  71. package/dist/src/workflow.js +92 -56
  72. package/dist/src/workflow.js.map +1 -1
  73. package/examples/hello/README.md +1 -1
  74. package/examples/hello/dbos-config.yaml +3 -0
  75. package/package.json +2 -2
  76. package/dist/src/provenance/provenance_daemon.d.ts +0 -34
  77. package/dist/src/provenance/provenance_daemon.d.ts.map +0 -1
  78. package/dist/src/provenance/provenance_daemon.js +0 -86
  79. package/dist/src/provenance/provenance_daemon.js.map +0 -1
@@ -13,6 +13,7 @@ export interface SystemDatabase {
13
13
  flushWorkflowStatusBuffer(): Promise<Array<string>>;
14
14
  recordWorkflowError(workflowUUID: string, error: Error): Promise<void>;
15
15
  getPendingWorkflows(executorID: string): Promise<Array<string>>;
16
+ setWorkflowInputs<T extends any[]>(workflowUUID: string, args: T): Promise<void>;
16
17
  getWorkflowInputs<T extends any[]>(workflowUUID: string): Promise<T | null>;
17
18
  checkOperationOutput<R>(workflowUUID: string, functionID: number): Promise<DBOSNull | R>;
18
19
  recordOperationOutput<R>(workflowUUID: string, functionID: number, output: R): Promise<void>;
@@ -45,6 +46,7 @@ export declare class PostgresSystemDatabase implements SystemDatabase {
45
46
  flushWorkflowStatusBuffer(): Promise<string[]>;
46
47
  recordWorkflowError(workflowUUID: string, error: Error): Promise<void>;
47
48
  getPendingWorkflows(executorID: string): Promise<Array<string>>;
49
+ setWorkflowInputs<T extends any[]>(workflowUUID: string, args: T): Promise<void>;
48
50
  getWorkflowInputs<T extends any[]>(workflowUUID: string): Promise<T | null>;
49
51
  checkOperationOutput<R>(workflowUUID: string, functionID: number): Promise<DBOSNull | R>;
50
52
  recordOperationOutput<R>(workflowUUID: string, functionID: number, output: R): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"system_database.d.ts","sourceRoot":"","sources":["../../src/system_database.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAiB,IAAI,EAAE,UAAU,EAAgB,UAAU,EAAU,MAAM,IAAI,CAAC;AAEvF,OAAO,EAAgB,cAAc,EAAE,MAAM,YAAY,CAAC;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AAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBtH,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAiD5J,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IA6BjH,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAkB5D;;;OAGG;IACG,sBAAsB;CAiB7B"}
@@ -31,10 +31,14 @@ class PostgresSystemDatabase {
31
31
  const pgSystemClient = new pg_1.Client(this.pgPoolConfig);
32
32
  await pgSystemClient.connect();
33
33
  // Create the system database and load tables.
34
- const dbExists = await pgSystemClient.query(`SELECT FROM pg_database WHERE datname = '${this.systemDatabaseName}'`);
35
- if (dbExists.rows.length === 0) {
34
+ const dbExists = await pgSystemClient.query(`SELECT EXISTS (SELECT FROM pg_database WHERE datname = '${this.systemDatabaseName}')`);
35
+ if (!dbExists.rows[0].exists) {
36
36
  // Create the DBOS system database.
37
37
  await pgSystemClient.query(`CREATE DATABASE "${this.systemDatabaseName}"`);
38
+ }
39
+ // Check if the system schema exist.
40
+ const schemaExists = await this.pool.query(`SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'workflow_status')`);
41
+ if (!schemaExists.rows[0].exists) {
38
42
  // Load the DBOS system schemas.
39
43
  await this.pool.query(system_db_schema_1.systemDBSchema);
40
44
  }
@@ -108,6 +112,9 @@ class PostgresSystemDatabase {
108
112
  const { rows } = await this.pool.query(`SELECT workflow_uuid FROM workflow_status WHERE status=$1 AND executor_id=$2`, [workflow_1.StatusString.PENDING, executorID]);
109
113
  return rows.map(i => i.workflow_uuid);
110
114
  }
115
+ async setWorkflowInputs(workflowUUID, args) {
116
+ await this.pool.query(`INSERT INTO workflow_inputs (workflow_uuid, inputs) VALUES($1, $2) ON CONFLICT (workflow_uuid) DO NOTHING`, [workflowUUID, JSON.stringify(args)]);
117
+ }
111
118
  async getWorkflowInputs(workflowUUID) {
112
119
  const { rows } = await this.pool.query(`SELECT inputs FROM workflow_inputs WHERE workflow_uuid=$1`, [workflowUUID]);
113
120
  if (rows.length === 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"system_database.js","sourceRoot":"","sources":["../../src/system_database.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;AAEvD,qDAAmE;AACnE,mDAAmE;AACnE,2BAAuF;AACvF,mCAAqF;AACrF,yCAA0D;AAC1D,kEAAkJ;AAClJ,mCAAgC;AAInB,QAAA,oBAAoB,GAAG,kBAAkB,CAAC;AA6BvD,MAAa,sBAAsB;IASZ;IAAmC;IAAqC;IARpF,IAAI,CAAO;IAEpB,mBAAmB,GAAsB,IAAI,CAAC;IACrC,gBAAgB,GAA+B,EAAE,CAAC;IAClD,iBAAiB,GAA+B,EAAE,CAAC;IAEnD,oBAAoB,GAAqB,IAAI,GAAG,EAAE,CAAC;IAE5D,YAAqB,YAAwB,EAAW,kBAA0B,EAAW,MAAc;QAAtF,iBAAY,GAAZ,YAAY,CAAY;QAAW,uBAAkB,GAAlB,kBAAkB,CAAQ;QAAW,WAAM,GAAN,MAAM,CAAQ;QACzG,MAAM,UAAU,GAAG,EAAE,GAAG,YAAY,EAAE,CAAC;QACvC,UAAU,CAAC,QAAQ,GAAG,kBAAkB,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,SAAI,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,IAAI;QACR,MAAM,cAAc,GAAG,IAAI,WAAM,CAAC,IAAI,CA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AG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,IAAI,IAAI,CAAC,iBAAiB,EAAE;oBACxD,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;iBACvC;aACF;QACH,CAAC,CAAC;QACF,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;CACF;AAtaD,wDAsaC"}
@@ -1,6 +1,6 @@
1
1
  import { MethodRegistrationBase } from "../decorators";
2
2
  import { ITelemetryExporter } from "./exporters";
3
- import { DBOSSignal } from "./signals";
3
+ import { TelemetrySignal } from "./signals";
4
4
  export declare class TelemetryCollector {
5
5
  readonly exporters: ITelemetryExporter<any, any>[];
6
6
  private readonly signals;
@@ -10,7 +10,7 @@ export declare class TelemetryCollector {
10
10
  constructor(exporters: ITelemetryExporter<any, any>[]);
11
11
  init(registeredOperations?: Array<MethodRegistrationBase>): Promise<void>;
12
12
  destroy(): Promise<void>;
13
- push(signal: DBOSSignal): void;
13
+ push(signal: TelemetrySignal): void;
14
14
  private pop;
15
15
  processAndExportSignals(): Promise<void>;
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../src/telemetry/collector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAmBvC,qBAAa,kBAAkB;IAQjB,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;IAN9D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAC5D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAQ;IAC1D,OAAO,CAAC,QAAQ,CAAC,mCAAmC,CAAM;gBAGrC,SAAS,EAAE,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;IAMxD,IAAI,CAAC,oBAAoB,GAAE,KAAK,CAAC,sBAAsB,CAAM;IAQ7D,OAAO;IAUb,IAAI,CAAC,MAAM,EAAE,UAAU;IAIvB,OAAO,CAAC,GAAG;IAIL,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;CAqB/C"}
1
+ {"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../src/telemetry/collector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAmB5C,qBAAa,kBAAkB;IAQjB,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;IAN9D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAC5D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAQ;IAC1D,OAAO,CAAC,QAAQ,CAAC,mCAAmC,CAAM;gBAGrC,SAAS,EAAE,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;IAMxD,IAAI,CAAC,oBAAoB,GAAE,KAAK,CAAC,sBAAsB,CAAM;IAQ7D,OAAO;IAUb,IAAI,CAAC,MAAM,EAAE,eAAe;IAI5B,OAAO,CAAC,GAAG;IAIL,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;CAqB/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"collector.js","sourceRoot":"","sources":["../../../src/telemetry/collector.ts"],"names":[],"mappings":";;;AAIA,MAAM,YAAY;IAChB,IAAI,GAAiB,EAAE,CAAC;IAExB,IAAI,CAAC,MAAkB;QACrB,IAAI,CAAC,IAAI,CAAC,IA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M,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAC1B,IAAI,CAAC,MAAM,EAAE;gBACX,MAAM;aACP;YACD,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACpB;QACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,MAAM,OAAO,GAAG,EAAE,CAAC;YACnB,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE;gBACrC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;aACtC;YACD,IAAI;gBACF,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;aAC5B;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAC;aACrC;SACF;IACH,CAAC;CACF;AA7DD,gDA6DC"}
@@ -1,9 +1,9 @@
1
1
  import { Client, QueryConfig, QueryArrayResult, PoolConfig } from "pg";
2
2
  import { DBOSDataType, MethodRegistrationBase } from "./../decorators";
3
- import { DBOSSignal, ProvenanceSignal, TelemetrySignal } from "./signals";
3
+ import { TelemetrySignal } from "./signals";
4
4
  export interface ITelemetryExporter<T, U> {
5
- export(signal: DBOSSignal[]): Promise<T>;
6
- process?(signal: DBOSSignal[]): U;
5
+ export(signal: TelemetrySignal[]): Promise<T>;
6
+ process?(signal: TelemetrySignal[]): U;
7
7
  init?(registeredOperations?: ReadonlyArray<MethodRegistrationBase>): Promise<void>;
8
8
  destroy?(): Promise<void>;
9
9
  }
@@ -11,7 +11,7 @@ export declare const JAEGER_EXPORTER = "JaegerExporter";
11
11
  export declare class JaegerExporter implements ITelemetryExporter<void, undefined> {
12
12
  private readonly exporter;
13
13
  constructor(endpoint?: string);
14
- export(rawSignals: DBOSSignal[]): Promise<void>;
14
+ export(signals: TelemetrySignal[]): Promise<void>;
15
15
  }
16
16
  export declare const POSTGRES_EXPORTER = "PostgresExporter";
17
17
  export declare class PostgresExporter implements ITelemetryExporter<QueryArrayResult[], QueryConfig[]> {
@@ -23,7 +23,6 @@ export declare class PostgresExporter implements ITelemetryExporter<QueryArrayRe
23
23
  init(registeredOperations?: ReadonlyArray<MethodRegistrationBase>): Promise<void>;
24
24
  destroy(): Promise<void>;
25
25
  process(signals: TelemetrySignal[]): QueryConfig[];
26
- processProvenance(signals: ProvenanceSignal[]): QueryConfig;
27
- export(signals: DBOSSignal[]): Promise<QueryArrayResult[]>;
26
+ export(telemetrySignals: TelemetrySignal[]): Promise<QueryArrayResult[]>;
28
27
  }
29
28
  //# sourceMappingURL=exporters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exporters.d.ts","sourceRoot":"","sources":["../../../src/telemetry/exporters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEvE,OAAO,EAAY,YAAY,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEjF,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM1E,MAAM,WAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC;IACtC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACzC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC;IAClC,IAAI,CAAC,CAAC,oBAAoB,CAAC,EAAE,aAAa,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnF,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,qBAAa,cAAe,YAAW,kBAAkB,CAAC,IAAI,EAAE,SAAS,CAAC;IACxE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CA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M,EAAE,eAAe,EAAE,GAAG,CAAC,CAAC;IACvC,IAAI,CAAC,CAAC,oBAAoB,CAAC,EAAE,aAAa,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnF,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,qBAAa,cAAe,YAAW,kBAAkB,CAAC,IAAI,EAAE,SAAS,CAAC;IACxE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;gBACjC,QAAQ,GAAE,MAA0C;IAM1D,MAAM,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAgBxD;AAED,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AACpD,qBAAa,gBAAiB,YAAW,kBAAkB,CAAC,gBAAgB,EAAE,EAAE,WAAW,EAAE,CAAC;IAGhF,OAAO,CAAC,QAAQ,CAAC,UAAU;IAAc,QAAQ,CAAC,mBAAmB,EAAE,MAAM;IAFzF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAEG,UAAU,EAAE,UAAU,EAAW,mBAAmB,GAAE,MAA6B;IAMhH,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,GAAG,MAAM;IAOvC,IAAI,CAAC,oBAAoB,GAAE,aAAa,CAAC,sBAAsB,CAAM;IA2CrE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,OAAO,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,WAAW,EAAE;IAkC5C,MAAM,CAAC,gBAAgB,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAiB/E"}
@@ -16,9 +16,7 @@ class JaegerExporter {
16
16
  url: endpoint,
17
17
  });
18
18
  }
19
- async export(rawSignals) {
20
- // Note: it is not compatible with provenance signal.
21
- const signals = rawSignals;
19
+ async export(signals) {
22
20
  return await new Promise((resolve) => {
23
21
  const exportSpans = [];
24
22
  signals.forEach((signal) => {
@@ -93,18 +91,7 @@ class PostgresExporter {
93
91
  // Trim last comma and line feed
94
92
  createSignalTableQuery = createSignalTableQuery.slice(0, -2).concat("\n);");
95
93
  await this.pgClient.query(createSignalTableQuery);
96
- // Create a table for provenance logs.
97
- // TODO: create a secondary index.
98
94
  }
99
- await this.pgClient.query(`CREATE TABLE IF NOT EXISTS provenance_logs (
100
- transaction_id TEXT NOT NULL,
101
- kind TEXT,
102
- schema_name TEXT,
103
- table_name TEXT,
104
- columnnames TEXT,
105
- columntypes TEXT,
106
- columnvalues TEXT
107
- );`);
108
95
  }
109
96
  async destroy() {
110
97
  await this.pgClient.end();
@@ -137,42 +124,15 @@ class PostgresExporter {
137
124
  }
138
125
  return queries;
139
126
  }
140
- processProvenance(signals) {
141
- const query = `
142
- INSERT INTO provenance_logs
143
- SELECT * FROM jsonb_to_recordset($1::jsonb) AS tmp (
144
- transaction_id text, kind text, schema_name text, table_name text,
145
- columnnames text, columntypes text, columnvalues text);
146
- `;
147
- const values = JSON.stringify(signals.map((signal) => {
148
- return {
149
- transaction_id: signal.provTransactionID,
150
- kind: signal.kind,
151
- schema_name: signal.schema,
152
- table_name: signal.table,
153
- columnnames: signal.columnnames,
154
- columntypes: signal.columntypes,
155
- columnvalues: signal.columnvalues
156
- };
157
- }));
158
- return { name: `insert-provenance-log`, text: query, values: [values] };
159
- }
160
- async export(signals) {
127
+ async export(telemetrySignals) {
161
128
  const results = [];
162
129
  // Find all telemetry signals and process.
163
- const telemetrySignals = signals.filter(obj => obj.workflowUUID !== undefined);
164
130
  if (telemetrySignals.length > 0) {
165
131
  const queries = this.process(telemetrySignals);
166
132
  for (const query of queries) {
167
133
  results.push(this.pgClient.query(query));
168
134
  }
169
135
  }
170
- // Find all provenance signals and process.
171
- const provenanceSignals = signals.filter((obj) => obj.provTransactionID !== undefined);
172
- if (provenanceSignals.length > 0) {
173
- const provQuery = this.processProvenance(provenanceSignals);
174
- results.push(this.pgClient.query(provQuery));
175
- }
176
136
  try {
177
137
  // We do await here so we can catch and format PostgresExporter specific errors
178
138
  return await Promise.all(results);
@@ -1 +1 @@
1
- {"version":3,"file":"exporters.js","sourceRoot":"","sources":["../../../src/telemetry/exporters.ts"],"names":[],"mappings":";;;AAAA,2BAAuE;AACvE,mCAAiC;AACjC,gDAAiF;AACjF,sCAAuD;AAEvD,sFAA4E;AAE5E,8CAAqE;AACrE,qCAAwC;AAS3B,QAAA,eAAe,GAAG,gBAAgB,CAAC;AAChD,MAAa,cAAc;IACR,QAAQ,CAAoB;IAC7C,YAAY,WAAmB,iCAAiC;QAC9D,IAAI,CAAC,QAAQ,GAAG,IAAI,4CAAiB,CAAC;YACpC,GAAG,EAAE,QAAQ;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,UAAwB;QACnC,qDAAqD;QACrD,MAAM,OAAO,GAAG,UAA+B,CAAC;QAChD,OAAO,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;YACzC,MAAM,WAAW,GAAmB,EAAE,CAAC;YACvC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACzB,IAAI,MAAM,CAAC,SAAS,EAAE;oBACpB,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;iBACpC;YACH,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,OAAqB,EAAE,EAAE;gBAC1D,IAAI,OAAO,CAAC,IAAI,KAAK,uBAAgB,CAAC,OAAO,EAAE;oBAC7C,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;iBACtC;YACH,CAAC,CAAC,CAAC;YACH,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA1BD,wCA0BC;AAEY,QAAA,iBAAiB,GAAG,kBAAkB,CAAC;AACpD,MAAa,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-1,6 +1,5 @@
1
1
  import { ReadableSpan } from "@opentelemetry/sdk-trace-base";
2
2
  import { ValuesOf } from "../utils";
3
- export type DBOSSignal = TelemetrySignal | ProvenanceSignal;
4
3
  export declare const LogSeverity: {
5
4
  readonly Debug: "DEBUG";
6
5
  readonly Info: "INFO";
@@ -18,13 +17,4 @@ export interface TelemetrySignal {
18
17
  traceID?: string;
19
18
  traceSpan?: ReadableSpan;
20
19
  }
21
- export interface ProvenanceSignal {
22
- provTransactionID: string;
23
- kind: string;
24
- schema: string;
25
- table: string;
26
- columnnames: string[];
27
- columntypes: string[];
28
- columnvalues: string[];
29
- }
30
20
  //# sourceMappingURL=signals.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,gBAAgB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB"}
1
+ {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":";;;AAKa,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC"}
1
+ {"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":";;;AAGa,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"testing_runtime.d.ts","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM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CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7H,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,GAAE,MAAmD,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAIrK,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC;IAItD,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAK3D,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;OAEG;IACH,WAAW,IAAI,YAAY;CAM5B"}
@@ -44,6 +44,7 @@ exports.createInternalTestRuntime = createInternalTestRuntime;
44
44
  class TestingRuntimeImpl {
45
45
  #server = null;
46
46
  #applicationConfig = undefined;
47
+ #isInitialized = false;
47
48
  /**
48
49
  * Initialize the testing runtime by loading user functions specified in classes and using the specified config.
49
50
  * This should be the first function call before any subsequent calls.
@@ -54,12 +55,17 @@ class TestingRuntimeImpl {
54
55
  await dbosExec.init(...userClasses);
55
56
  this.#server = new server_1.DBOSHttpServer(dbosExec);
56
57
  this.#applicationConfig = dbosExec.config.application;
58
+ this.#isInitialized = true;
57
59
  }
58
60
  /**
59
61
  * Release resources after tests.
60
62
  */
61
63
  async destroy() {
62
- await this.#server?.dbosExec.destroy();
64
+ // Only release once.
65
+ if (this.#isInitialized) {
66
+ await this.#server?.dbosExec.destroy();
67
+ this.#isInitialized = false;
68
+ }
63
69
  }
64
70
  getConfig(key, defaultValue) {
65
71
  if (!this.#applicationConfig || !(0, lodash_1.has)(this.#applicationConfig, key)) {
@@ -1 +1 @@
1
- {"version":3,"file":"testing_runtime.js","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AAGA,wCAA0D;AAC1D,8CAAwD;AACxD,oCAA6D;AAE7D,iDAAsD;AACtD,oDAA4D;AAC5D,mDAA6E;AAM7E,mCAAkC;AAClC,2BAA4B;AAE5B;;GAEG;AACI,KAAK,UAAU,oBAAoB,CAAC,WAAqB,EAAE,iBAAyB,2BAAkB;IAC3G,MAAM,CAAE,UAAU,CAAE,GAAG,IAAA,wBAAe,EAAC,EAAC,UAAU,EAAE,cAAc,EAAC,CAAC,CAAC;IAErE,gFAAgF;IAChF,MAAM,cAAc,GAAG,IAAI,WAAM,CAAC;QAChC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI;QAChC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI;QAChC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI;QAChC,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,QAAQ;QACxC,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,QAAQ;KACzC,CAAC,CAAC;IACH,MAAM,cAAc,CAAC,OAAO,EAAE,CAAC;IAC/B,MAAM,cAAc,CAAC,KAAK,CAAC,2BAA2B,UAAU,CAAC,eAAe,GAAG,CAAC,CAAC;IACrF,MAAM,cAAc,CAAC,GAAG,EAAE,CAAC;IAE3B,MAAM,GAAG,GAAG,yBAAyB,CAAC,WAAW,EAAE,UAAU,EAAE,SAAS,CAAC,CAAA;IACzE,OAAO,GAAG,CAAC;AACb,CAAC;AAjBD,oDAiBC;AA2BD;;GAEG;AACI,KAAK,UAAU,yBAAyB,CAAC,WAAqB,EAAE,UAAsB,EAAE,QAAyB;IACtH,MAAM,GAAG,GAAG,IAAI,kBAAkB,EAAE,CAAC;IACrC,MAAM,GAAG,CAAC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AoB,EAAE,GAAW,EAAE,iBAAyB,4BAAY,CAAC,6BAA6B;QAC/I,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB,CAAI,YAAoB;QACtC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,WAAW,CAAI,GAAW,EAAE,GAAG,MAAa;QAChD,iEAAiE;QACjE,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IACxD,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,iBAAS,CAAC,qEAAqE,CAAC,CAAC;SAC5F;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC/B,CAAC;CACF;AAhID,gDAgIC"}
@@ -4,6 +4,7 @@ import { Span } from "@opentelemetry/sdk-trace-base";
4
4
  import { DBOSContext, DBOSContextImpl } from "./context";
5
5
  import { ValuesOf } from "./utils";
6
6
  import { WinstonLogger as Logger } from "./telemetry/logs";
7
+ import { WorkflowContextDebug } from "./debugger/debug_workflow";
7
8
  export type Transaction<T extends any[], R> = (ctxt: TransactionContext<any>, ...args: T) => Promise<R>;
8
9
  export interface TransactionConfig {
9
10
  isolationLevel?: IsolationLevel;
@@ -23,6 +24,6 @@ export declare class TransactionContextImpl<T extends UserDatabaseClient> extend
23
24
  readonly clientKind: UserDatabaseName;
24
25
  readonly client: T;
25
26
  readonly functionID: number;
26
- constructor(clientKind: UserDatabaseName, client: T, workflowContext: WorkflowContextImpl, span: Span, logger: Logger, functionID: number, operationName: string);
27
+ constructor(clientKind: UserDatabaseName, client: T, workflowContext: WorkflowContextImpl | WorkflowContextDebug, span: Span, logger: Logger, functionID: number, operationName: string);
27
28
  }
28
29
  //# sourceMappingURL=transaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG3D,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAExG,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,kBAAkB,CAAE,SAAQ,WAAW;IACnF,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;CACpB;AAED,qBAAa,sBAAsB,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;CACF;AAhBD,wDAgBC"}
1
+ {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/transaction.ts"],"names":[],"mappings":";;;AAIA,uCAAyD;AAa5C,QAAA,cAAc,GAAG;IAC5B,eAAe,EAAE,kBAAkB;IACnC,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,YAAY,EAAE,cAAc;CACpB,CAAC;AAOX,MAAa,sBAAqD,SAAQ,yBAAe;IAE5E;IACA;IAIA;IANX,YACW,UAA4B,EAC5B,MAAS,EAClB,eAA2D,EAC3D,IAAU,EACV,MAAc,EACL,UAAkB,EAC3B,aAAqB;QAErB,KAAK,CAAC,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;QAR3C,eAAU,GAAV,UAAU,CAAkB;QAC5B,WAAM,GAAN,MAAM,CAAG;QAIT,eAAU,GAAV,UAAU,CAAQ;QAI3B,IAAI,eAAe,CAAC,iBAAiB,EAAE;YACrC,mEAAmE;YACnE,IAAI,CAAC,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC;SAC5D;IACH,CAAC;CACF;AAhBD,wDAgBC"}
@@ -49,14 +49,19 @@ export interface WorkflowContext extends DBOSContext {
49
49
  export declare class WorkflowContextImpl extends DBOSContextImpl implements WorkflowContext {
50
50
  #private;
51
51
  readonly workflowConfig: WorkflowConfig;
52
+ readonly presetUUID: boolean;
52
53
  functionID: number;
53
54
  readonly resultBuffer: Map<number, BufferedResult>;
54
55
  readonly isTempWorkflow: boolean;
55
- constructor(wfe: DBOSExecutor, parentCtx: DBOSContextImpl | undefined, workflowUUID: string, workflowConfig: WorkflowConfig, workflowName: string);
56
+ constructor(dbosExec: DBOSExecutor, parentCtx: DBOSContextImpl | undefined, workflowUUID: string, workflowConfig: WorkflowConfig, workflowName: string, presetUUID: boolean);
56
57
  functionIDGetIncrement(): number;
58
+ /**
59
+ * Retrieve the transaction snapshot information of the current transaction
60
+ */
61
+ retrieveSnapshot(client: UserDatabaseClient): Promise<string>;
57
62
  /**
58
63
  * Check if an operation has already executed in a workflow.
59
- * If it previously executed succesfully, return its output.
64
+ * If it previously executed successfully, return its output.
60
65
  * If it previously executed and threw an error, throw that error.
61
66
  * Otherwise, return DBOSNull.
62
67
  * Also return the transaction snapshot information of this current transaction.
@@ -75,10 +80,18 @@ export declare class WorkflowContextImpl extends DBOSContextImpl implements Work
75
80
  * Write a guarded operation's output to the database.
76
81
  */
77
82
  recordGuardedOutput<R>(client: UserDatabaseClient, funcID: number, output: R): Promise<string>;
83
+ /**
84
+ * Write an unguarded operation's output to the database.
85
+ */
86
+ recordUnguardedOutput<R>(client: UserDatabaseClient, funcID: number, output: R): Promise<string>;
78
87
  /**
79
88
  * Record an error in a guarded operation to the database.
80
89
  */
81
90
  recordGuardedError(client: UserDatabaseClient, funcID: number, err: Error): Promise<void>;
91
+ /**
92
+ * Record an error in an unguarded operation to the database.
93
+ */
94
+ recordUnguardedError(client: UserDatabaseClient, funcID: number, err: Error): Promise<string>;
82
95
  /**
83
96
  * Invoke another workflow as its child workflow and return a workflow handle.
84
97
  * The child workflow is guaranteed to be executed exactly once, even if the workflow is retried with the same UUID.
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/workflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,iBAAiB,CAAC;AAEnE,OAAO,EAAkB,WAAW,EAAE,kBAAkB,EAA0B,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAA2B,MAAM,gBAAgB,CAAC;AAI5F,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGtE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,GAAG,EAAE,EA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