@dbos-inc/dbos-sdk 0.8.45-preview.g56ba028de5 → 0.8.48-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. package/dist/packages/dbos-cloud/applications/delete-app.d.ts.map +1 -1
  2. package/dist/packages/dbos-cloud/applications/delete-app.js +1 -2
  3. package/dist/packages/dbos-cloud/applications/delete-app.js.map +1 -1
  4. package/dist/packages/dbos-cloud/applications/deploy-app-code.d.ts.map +1 -1
  5. package/dist/packages/dbos-cloud/applications/deploy-app-code.js +5 -7
  6. package/dist/packages/dbos-cloud/applications/deploy-app-code.js.map +1 -1
  7. package/dist/packages/dbos-cloud/applications/get-app-logs.d.ts.map +1 -1
  8. package/dist/packages/dbos-cloud/applications/get-app-logs.js +1 -2
  9. package/dist/packages/dbos-cloud/applications/get-app-logs.js.map +1 -1
  10. package/dist/packages/dbos-cloud/applications/list-apps.d.ts.map +1 -1
  11. package/dist/packages/dbos-cloud/applications/list-apps.js +1 -2
  12. package/dist/packages/dbos-cloud/applications/list-apps.js.map +1 -1
  13. package/dist/packages/dbos-cloud/applications/register-app.d.ts.map +1 -1
  14. package/dist/packages/dbos-cloud/applications/register-app.js +1 -2
  15. package/dist/packages/dbos-cloud/applications/register-app.js.map +1 -1
  16. package/dist/packages/dbos-cloud/applications/update-app.d.ts.map +1 -1
  17. package/dist/packages/dbos-cloud/applications/update-app.js +1 -2
  18. package/dist/packages/dbos-cloud/applications/update-app.js.map +1 -1
  19. package/dist/packages/dbos-cloud/cli.js +0 -12
  20. package/dist/packages/dbos-cloud/cli.js.map +1 -1
  21. package/dist/packages/dbos-cloud/cloudutils.d.ts +7 -0
  22. package/dist/packages/dbos-cloud/cloudutils.d.ts.map +1 -1
  23. package/dist/packages/dbos-cloud/cloudutils.js +44 -3
  24. package/dist/packages/dbos-cloud/cloudutils.js.map +1 -1
  25. package/dist/packages/dbos-cloud/login.d.ts.map +1 -1
  26. package/dist/packages/dbos-cloud/login.js +3 -4
  27. package/dist/packages/dbos-cloud/login.js.map +1 -1
  28. package/dist/packages/dbos-cloud/register.d.ts.map +1 -1
  29. package/dist/packages/dbos-cloud/register.js +1 -2
  30. package/dist/packages/dbos-cloud/register.js.map +1 -1
  31. package/dist/packages/dbos-cloud/userdb.d.ts +0 -2
  32. package/dist/packages/dbos-cloud/userdb.d.ts.map +1 -1
  33. package/dist/packages/dbos-cloud/userdb.js +4 -177
  34. package/dist/packages/dbos-cloud/userdb.js.map +1 -1
  35. package/dist/src/context.d.ts +1 -0
  36. package/dist/src/context.d.ts.map +1 -1
  37. package/dist/src/dbos-executor.d.ts +0 -1
  38. package/dist/src/dbos-executor.d.ts.map +1 -1
  39. package/dist/src/dbos-executor.js +4 -8
  40. package/dist/src/dbos-executor.js.map +1 -1
  41. package/dist/src/dbos-runtime/cli.d.ts.map +1 -1
  42. package/dist/src/dbos-runtime/cli.js +15 -2
  43. package/dist/src/dbos-runtime/cli.js.map +1 -1
  44. package/dist/src/dbos-runtime/migrate.d.ts +3 -0
  45. package/dist/src/dbos-runtime/migrate.d.ts.map +1 -0
  46. package/dist/src/dbos-runtime/migrate.js +175 -0
  47. package/dist/src/dbos-runtime/migrate.js.map +1 -0
  48. package/dist/src/dbos-runtime/runtime.d.ts +7 -9
  49. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  50. package/dist/src/dbos-runtime/runtime.js +35 -21
  51. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  52. package/dist/src/httpServer/handler.d.ts.map +1 -1
  53. package/dist/src/httpServer/handler.js +3 -2
  54. package/dist/src/httpServer/handler.js.map +1 -1
  55. package/dist/src/httpServer/server.d.ts +10 -7
  56. package/dist/src/httpServer/server.d.ts.map +1 -1
  57. package/dist/src/httpServer/server.js +23 -29
  58. package/dist/src/httpServer/server.js.map +1 -1
  59. package/dist/src/index.d.ts +0 -1
  60. package/dist/src/index.d.ts.map +1 -1
  61. package/dist/src/index.js +1 -3
  62. package/dist/src/index.js.map +1 -1
  63. package/dist/src/system_database.d.ts +2 -0
  64. package/dist/src/system_database.d.ts.map +1 -1
  65. package/dist/src/system_database.js +31 -16
  66. package/dist/src/system_database.js.map +1 -1
  67. package/dist/src/telemetry/collector.d.ts.map +1 -1
  68. package/dist/src/telemetry/collector.js +1 -0
  69. package/dist/src/telemetry/collector.js.map +1 -1
  70. package/dist/src/telemetry/exporters.d.ts +2 -0
  71. package/dist/src/telemetry/exporters.d.ts.map +1 -1
  72. package/dist/src/telemetry/exporters.js +4 -0
  73. package/dist/src/telemetry/exporters.js.map +1 -1
  74. package/dist/src/telemetry/logs.d.ts.map +1 -1
  75. package/dist/src/telemetry/logs.js +15 -33
  76. package/dist/src/telemetry/logs.js.map +1 -1
  77. package/dist/src/telemetry/traces.js +2 -2
  78. package/dist/src/telemetry/traces.js.map +1 -1
  79. package/dist/src/testing/testing_runtime.d.ts +4 -1
  80. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  81. package/dist/src/testing/testing_runtime.js +6 -0
  82. package/dist/src/testing/testing_runtime.js.map +1 -1
  83. package/dist/src/utils.d.ts +1 -1
  84. package/dist/src/utils.d.ts.map +1 -1
  85. package/dist/src/utils.js +20 -4
  86. package/dist/src/utils.js.map +1 -1
  87. package/dist/tsconfig.build.tsbuildinfo +1 -1
  88. package/examples/hello/start_postgres_docker.sh +1 -1
  89. package/migrations/20240123182943_schema.js +8 -0
  90. package/migrations/20240123183021_tables.js +48 -0
  91. package/migrations/20240123183025_indexes.js +14 -0
  92. package/migrations/20240123183030_triggers.js +39 -0
  93. package/migrations/20240124015239_status_timestamp.js +22 -0
  94. package/package.json +1 -1
  95. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/delete-app.d.ts.map +1 -1
  96. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/delete-app.js +1 -2
  97. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/delete-app.js.map +1 -1
  98. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/deploy-app-code.d.ts.map +1 -1
  99. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/deploy-app-code.js +5 -7
  100. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/deploy-app-code.js.map +1 -1
  101. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/get-app-logs.d.ts.map +1 -1
  102. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/get-app-logs.js +1 -2
  103. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/get-app-logs.js.map +1 -1
  104. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/list-apps.d.ts.map +1 -1
  105. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/list-apps.js +1 -2
  106. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/list-apps.js.map +1 -1
  107. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/register-app.d.ts.map +1 -1
  108. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/register-app.js +1 -2
  109. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/register-app.js.map +1 -1
  110. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/update-app.d.ts.map +1 -1
  111. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/update-app.js +1 -2
  112. package/packages/dbos-cloud/dist/packages/dbos-cloud/applications/update-app.js.map +1 -1
  113. package/packages/dbos-cloud/dist/packages/dbos-cloud/cli.js +0 -12
  114. package/packages/dbos-cloud/dist/packages/dbos-cloud/cli.js.map +1 -1
  115. package/packages/dbos-cloud/dist/packages/dbos-cloud/cloudutils.d.ts +7 -0
  116. package/packages/dbos-cloud/dist/packages/dbos-cloud/cloudutils.d.ts.map +1 -1
  117. package/packages/dbos-cloud/dist/packages/dbos-cloud/cloudutils.js +44 -3
  118. package/packages/dbos-cloud/dist/packages/dbos-cloud/cloudutils.js.map +1 -1
  119. package/packages/dbos-cloud/dist/packages/dbos-cloud/login.d.ts.map +1 -1
  120. package/packages/dbos-cloud/dist/packages/dbos-cloud/login.js +3 -4
  121. package/packages/dbos-cloud/dist/packages/dbos-cloud/login.js.map +1 -1
  122. package/packages/dbos-cloud/dist/packages/dbos-cloud/register.d.ts.map +1 -1
  123. package/packages/dbos-cloud/dist/packages/dbos-cloud/register.js +1 -2
  124. package/packages/dbos-cloud/dist/packages/dbos-cloud/register.js.map +1 -1
  125. package/packages/dbos-cloud/dist/packages/dbos-cloud/userdb.d.ts +0 -2
  126. package/packages/dbos-cloud/dist/packages/dbos-cloud/userdb.d.ts.map +1 -1
  127. package/packages/dbos-cloud/dist/packages/dbos-cloud/userdb.js +4 -177
  128. package/packages/dbos-cloud/dist/packages/dbos-cloud/userdb.js.map +1 -1
  129. package/packages/dbos-cloud/dist/src/utils.d.ts +1 -1
  130. package/packages/dbos-cloud/dist/src/utils.d.ts.map +1 -1
  131. package/packages/dbos-cloud/dist/src/utils.js +20 -4
  132. package/packages/dbos-cloud/dist/src/utils.js.map +1 -1
  133. package/packages/dbos-cloud/package.json +1 -1
  134. package/packages/dbos-openapi/package.json +1 -1
  135. package/packages/dbos-cloud/dist/schemas/system_db_schema.d.ts +0 -34
  136. package/packages/dbos-cloud/dist/schemas/system_db_schema.d.ts.map +0 -1
  137. package/packages/dbos-cloud/dist/schemas/system_db_schema.js +0 -77
  138. package/packages/dbos-cloud/dist/schemas/system_db_schema.js.map +0 -1
  139. package/packages/dbos-cloud/dist/schemas/user_db_schema.d.ts +0 -11
  140. package/packages/dbos-cloud/dist/schemas/user_db_schema.d.ts.map +0 -1
  141. package/packages/dbos-cloud/dist/schemas/user_db_schema.js +0 -16
  142. package/packages/dbos-cloud/dist/schemas/user_db_schema.js.map +0 -1
  143. package/packages/dbos-cloud/dist/src/communicator.d.ts +0 -25
  144. package/packages/dbos-cloud/dist/src/communicator.d.ts.map +0 -1
  145. package/packages/dbos-cloud/dist/src/communicator.js +0 -26
  146. package/packages/dbos-cloud/dist/src/communicator.js.map +0 -1
  147. package/packages/dbos-cloud/dist/src/context.d.ts +0 -64
  148. package/packages/dbos-cloud/dist/src/context.d.ts.map +0 -1
  149. package/packages/dbos-cloud/dist/src/context.js +0 -96
  150. package/packages/dbos-cloud/dist/src/context.js.map +0 -1
  151. package/packages/dbos-cloud/dist/src/data_validation.d.ts +0 -3
  152. package/packages/dbos-cloud/dist/src/data_validation.d.ts.map +0 -1
  153. package/packages/dbos-cloud/dist/src/data_validation.js +0 -168
  154. package/packages/dbos-cloud/dist/src/data_validation.js.map +0 -1
  155. package/packages/dbos-cloud/dist/src/dbos-executor.d.ts +0 -102
  156. package/packages/dbos-cloud/dist/src/dbos-executor.d.ts.map +0 -1
  157. package/packages/dbos-cloud/dist/src/dbos-executor.js +0 -631
  158. package/packages/dbos-cloud/dist/src/dbos-executor.js.map +0 -1
  159. package/packages/dbos-cloud/dist/src/dbos-runtime/applicationVersion.d.ts +0 -3
  160. package/packages/dbos-cloud/dist/src/dbos-runtime/applicationVersion.d.ts.map +0 -1
  161. package/packages/dbos-cloud/dist/src/dbos-runtime/applicationVersion.js +0 -13
  162. package/packages/dbos-cloud/dist/src/dbos-runtime/applicationVersion.js.map +0 -1
  163. package/packages/dbos-cloud/dist/src/dbos-runtime/cli.d.ts +0 -8
  164. package/packages/dbos-cloud/dist/src/dbos-runtime/cli.d.ts.map +0 -1
  165. package/packages/dbos-cloud/dist/src/dbos-runtime/cli.js +0 -47
  166. package/packages/dbos-cloud/dist/src/dbos-runtime/cli.js.map +0 -1
  167. package/packages/dbos-cloud/dist/src/dbos-runtime/config.d.ts +0 -29
  168. package/packages/dbos-cloud/dist/src/dbos-runtime/config.d.ts.map +0 -1
  169. package/packages/dbos-cloud/dist/src/dbos-runtime/config.js +0 -111
  170. package/packages/dbos-cloud/dist/src/dbos-runtime/config.js.map +0 -1
  171. package/packages/dbos-cloud/dist/src/dbos-runtime/debug.d.ts +0 -4
  172. package/packages/dbos-cloud/dist/src/dbos-runtime/debug.d.ts.map +0 -1
  173. package/packages/dbos-cloud/dist/src/dbos-runtime/debug.js +0 -21
  174. package/packages/dbos-cloud/dist/src/dbos-runtime/debug.js.map +0 -1
  175. package/packages/dbos-cloud/dist/src/dbos-runtime/init.d.ts +0 -7
  176. package/packages/dbos-cloud/dist/src/dbos-runtime/init.d.ts.map +0 -1
  177. package/packages/dbos-cloud/dist/src/dbos-runtime/init.js +0 -51
  178. package/packages/dbos-cloud/dist/src/dbos-runtime/init.js.map +0 -1
  179. package/packages/dbos-cloud/dist/src/dbos-runtime/runtime.d.ts +0 -28
  180. package/packages/dbos-cloud/dist/src/dbos-runtime/runtime.d.ts.map +0 -1
  181. package/packages/dbos-cloud/dist/src/dbos-runtime/runtime.js +0 -95
  182. package/packages/dbos-cloud/dist/src/dbos-runtime/runtime.js.map +0 -1
  183. package/packages/dbos-cloud/dist/src/debugger/debug_workflow.d.ts +0 -38
  184. package/packages/dbos-cloud/dist/src/debugger/debug_workflow.d.ts.map +0 -1
  185. package/packages/dbos-cloud/dist/src/debugger/debug_workflow.js +0 -211
  186. package/packages/dbos-cloud/dist/src/debugger/debug_workflow.js.map +0 -1
  187. package/packages/dbos-cloud/dist/src/decorators.d.ts +0 -118
  188. package/packages/dbos-cloud/dist/src/decorators.d.ts.map +0 -1
  189. package/packages/dbos-cloud/dist/src/decorators.js +0 -467
  190. package/packages/dbos-cloud/dist/src/decorators.js.map +0 -1
  191. package/packages/dbos-cloud/dist/src/error.d.ts +0 -47
  192. package/packages/dbos-cloud/dist/src/error.d.ts.map +0 -1
  193. package/packages/dbos-cloud/dist/src/error.js +0 -171
  194. package/packages/dbos-cloud/dist/src/error.js.map +0 -1
  195. package/packages/dbos-cloud/dist/src/httpServer/handler.d.ts +0 -54
  196. package/packages/dbos-cloud/dist/src/httpServer/handler.d.ts.map +0 -1
  197. package/packages/dbos-cloud/dist/src/httpServer/handler.js +0 -175
  198. package/packages/dbos-cloud/dist/src/httpServer/handler.js.map +0 -1
  199. package/packages/dbos-cloud/dist/src/httpServer/handlerTypes.d.ts +0 -11
  200. package/packages/dbos-cloud/dist/src/httpServer/handlerTypes.d.ts.map +0 -1
  201. package/packages/dbos-cloud/dist/src/httpServer/handlerTypes.js +0 -19
  202. package/packages/dbos-cloud/dist/src/httpServer/handlerTypes.js.map +0 -1
  203. package/packages/dbos-cloud/dist/src/httpServer/middleware.d.ts +0 -56
  204. package/packages/dbos-cloud/dist/src/httpServer/middleware.d.ts.map +0 -1
  205. package/packages/dbos-cloud/dist/src/httpServer/middleware.js +0 -57
  206. package/packages/dbos-cloud/dist/src/httpServer/middleware.js.map +0 -1
  207. package/packages/dbos-cloud/dist/src/httpServer/server.d.ts +0 -45
  208. package/packages/dbos-cloud/dist/src/httpServer/server.d.ts.map +0 -1
  209. package/packages/dbos-cloud/dist/src/httpServer/server.js +0 -253
  210. package/packages/dbos-cloud/dist/src/httpServer/server.js.map +0 -1
  211. package/packages/dbos-cloud/dist/src/system_database.d.ts +0 -89
  212. package/packages/dbos-cloud/dist/src/system_database.d.ts.map +0 -1
  213. package/packages/dbos-cloud/dist/src/system_database.js +0 -447
  214. package/packages/dbos-cloud/dist/src/system_database.js.map +0 -1
  215. package/packages/dbos-cloud/dist/src/telemetry/collector.d.ts +0 -16
  216. package/packages/dbos-cloud/dist/src/telemetry/collector.d.ts.map +0 -1
  217. package/packages/dbos-cloud/dist/src/telemetry/collector.js +0 -65
  218. package/packages/dbos-cloud/dist/src/telemetry/collector.js.map +0 -1
  219. package/packages/dbos-cloud/dist/src/telemetry/exporters.d.ts +0 -15
  220. package/packages/dbos-cloud/dist/src/telemetry/exporters.d.ts.map +0 -1
  221. package/packages/dbos-cloud/dist/src/telemetry/exporters.js +0 -59
  222. package/packages/dbos-cloud/dist/src/telemetry/exporters.js.map +0 -1
  223. package/packages/dbos-cloud/dist/src/telemetry/index.d.ts +0 -11
  224. package/packages/dbos-cloud/dist/src/telemetry/index.d.ts.map +0 -1
  225. package/packages/dbos-cloud/dist/src/telemetry/index.js +0 -19
  226. package/packages/dbos-cloud/dist/src/telemetry/index.js.map +0 -1
  227. package/packages/dbos-cloud/dist/src/telemetry/logs.d.ts +0 -47
  228. package/packages/dbos-cloud/dist/src/telemetry/logs.d.ts.map +0 -1
  229. package/packages/dbos-cloud/dist/src/telemetry/logs.js +0 -195
  230. package/packages/dbos-cloud/dist/src/telemetry/logs.js.map +0 -1
  231. package/packages/dbos-cloud/dist/src/telemetry/traces.d.ts +0 -14
  232. package/packages/dbos-cloud/dist/src/telemetry/traces.d.ts.map +0 -1
  233. package/packages/dbos-cloud/dist/src/telemetry/traces.js +0 -52
  234. package/packages/dbos-cloud/dist/src/telemetry/traces.js.map +0 -1
  235. package/packages/dbos-cloud/dist/src/transaction.d.ts +0 -29
  236. package/packages/dbos-cloud/dist/src/transaction.d.ts.map +0 -1
  237. package/packages/dbos-cloud/dist/src/transaction.js +0 -27
  238. package/packages/dbos-cloud/dist/src/transaction.js.map +0 -1
  239. package/packages/dbos-cloud/dist/src/user_database.d.ts +0 -132
  240. package/packages/dbos-cloud/dist/src/user_database.d.ts.map +0 -1
  241. package/packages/dbos-cloud/dist/src/user_database.js +0 -332
  242. package/packages/dbos-cloud/dist/src/user_database.js.map +0 -1
  243. package/packages/dbos-cloud/dist/src/workflow.d.ts +0 -195
  244. package/packages/dbos-cloud/dist/src/workflow.d.ts.map +0 -1
  245. package/packages/dbos-cloud/dist/src/workflow.js +0 -498
  246. package/packages/dbos-cloud/dist/src/workflow.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"dbos-executor.js","sourceRoot":"","sources":["../../../../src/dbos-executor.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAuD;AACvD,mCAMiB;AACjB,yCAYoB;AAIpB,qDAA2D;AAC3D,+CAA4C;AAC5C,2CAA0D;AAC1D,qDAA0D;AAG1D,uDAAmG;AACnG,+BAAoC;AACpC,mDAOyB;AACzB,6CAAiI;AACjI,4CAAoD;AACpD,gDAAkC;AAClC,uCAAyD;AAEzD,8DAAiE;AACjE,qDAAiD;AAGpC,QAAA,QAAQ,GAAa,EAAE,CAAC;AACxB,QAAA,oBAAoB,GAAG,kBAAkB,CAAC;AA6B1C,QAAA,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K,CAAC,KAAK,CAAC,CAAC;YACzB,sGAAsG;YACtG,KAAK,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,IAAI,WAAW,EAAE,CAAC;gBACnD,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;oBACjD,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;gBACvD,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,qBAAqB;QACnB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC9C,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,mBAAmB,EAAE,EAAE;YACxD,MAAM,EAAE,GAAG,mBAAuE,CAAC;YACnF,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC;gBACd,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC;gBACtE,MAAM,KAAK,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;gBACpC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,0BAA0B,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;gBACvE,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AA1nBH,oCA2nBC"}
@@ -1,3 +0,0 @@
1
- export declare function getApplicationVersion(): string | undefined;
2
- export declare function setApplicationVersion(version: string): void;
3
- //# sourceMappingURL=applicationVersion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicationVersion.d.ts","sourceRoot":"","sources":["../../../../../src/dbos-runtime/applicationVersion.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAE1D;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3D"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setApplicationVersion = exports.getApplicationVersion = void 0;
4
- function getApplicationVersion() {
5
- return applicationVersion;
6
- }
7
- exports.getApplicationVersion = getApplicationVersion;
8
- function setApplicationVersion(version) {
9
- applicationVersion = version;
10
- }
11
- exports.setApplicationVersion = setApplicationVersion;
12
- let applicationVersion = undefined;
13
- //# sourceMappingURL=applicationVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicationVersion.js","sourceRoot":"","sources":["../../../../../src/dbos-runtime/applicationVersion.ts"],"names":[],"mappings":";;;AAAA,SAAgB,qBAAqB;IACjC,OAAO,kBAAkB,CAAC;AAC9B,CAAC;AAFD,sDAEC;AAED,SAAgB,qBAAqB,CAAC,OAAe;IACjD,kBAAkB,GAAG,OAAO,CAAC;AACjC,CAAC;AAFD,sDAEC;AAED,IAAI,kBAAkB,GAAuB,SAAS,CAAC"}
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
- export interface DBOSCLIStartOptions {
3
- port?: number;
4
- loglevel?: string;
5
- configfile?: string;
6
- entrypoint?: string;
7
- }
8
- //# sourceMappingURL=cli.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";AAgBA,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -1,47 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const config_1 = require("./config");
5
- const runtime_1 = require("./runtime");
6
- const commander_1 = require("commander");
7
- const init_1 = require("./init");
8
- const debug_1 = require("./debug");
9
- const program = new commander_1.Command();
10
- program
11
- .command('start')
12
- .description('Start the server')
13
- .option('-p, --port <number>', 'Specify the port number')
14
- .option('-l, --loglevel <string>', 'Specify log level')
15
- .option('-c, --configfile <string>', 'Specify the config file path', config_1.dbosConfigFilePath)
16
- .option('-e, --entrypoint <string>', 'Specify the entrypoint file path')
17
- .action(async (options) => {
18
- const [dbosConfig, runtimeConfig] = (0, config_1.parseConfigFile)(options);
19
- const runtime = new runtime_1.DBOSRuntime(dbosConfig, runtimeConfig);
20
- await runtime.init();
21
- runtime.startServer();
22
- });
23
- program
24
- .command('debug')
25
- .description('Debug a workflow')
26
- .requiredOption('-x, --proxy <string>', 'Specify the debugger proxy URL')
27
- .requiredOption('-u, --uuid <string>', 'Specify the workflow UUID to debug')
28
- .option('-l, --loglevel <string>', 'Specify log level')
29
- .option('-c, --configfile <string>', 'Specify the config file path', config_1.dbosConfigFilePath)
30
- .option('-e, --entrypoint <string>', 'Specify the entrypoint file path')
31
- .action(async (options) => {
32
- const [dbosConfig, runtimeConfig] = (0, config_1.parseConfigFile)(options);
33
- await (0, debug_1.debugWorkflow)(dbosConfig, runtimeConfig, options.proxy, options.uuid);
34
- });
35
- program
36
- .command('init')
37
- .description('Init a DBOS application')
38
- .option('-n, --appName <application-name>', 'Application name', 'dbos-hello-app')
39
- .action(async (options) => {
40
- await (0, init_1.init)(options.appName);
41
- });
42
- program.parse(process.argv);
43
- // If no arguments provided, display help by default
44
- if (!process.argv.slice(2).length) {
45
- program.outputHelp();
46
- }
47
- //# sourceMappingURL=cli.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";;;AAEA,qCAA+D;AAC/D,uCAA2D;AAE3D,yCAAoC;AAEpC,iCAA8B;AAC9B,mCAAwC;AAExC,MAAM,OA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EL,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,yBAAyB,CAAC;KACtC,MAAM,CAAC,kCAAkC,EAAE,kBAAkB,EAAE,gBAAgB,CAAC;KAChF,MAAM,CAAC,KAAK,EAAE,OAA4B,EAAE,EAAE;IAC7C,MAAM,IAAA,WAAI,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5B,oDAAoD;AACpD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,OAAO,CAAC,UAAU,EAAE,CAAC;AACvB,CAAC"}
@@ -1,29 +0,0 @@
1
- import { DBOSConfig } from "../dbos-executor";
2
- import { DBOSRuntimeConfig } from "./runtime";
3
- import { UserDatabaseName } from "../user_database";
4
- import { DBOSCLIStartOptions } from "./cli";
5
- import { TelemetryConfig } from "../telemetry";
6
- export declare const dbosConfigFilePath = "dbos-config.yaml";
7
- export interface ConfigFile {
8
- version: string;
9
- database: {
10
- hostname: string;
11
- port: number;
12
- username: string;
13
- password?: string;
14
- connectionTimeoutMillis?: number;
15
- user_database: string;
16
- ssl_ca?: string;
17
- observability_database?: string;
18
- user_dbclient?: UserDatabaseName;
19
- migrate?: string[];
20
- rollback?: string[];
21
- };
22
- telemetry?: TelemetryConfig;
23
- application: any;
24
- runtimeConfig?: DBOSRuntimeConfig;
25
- dbClientMetadata?: any;
26
- }
27
- export declare function loadConfigFile(configFilePath: string): ConfigFile | undefined;
28
- export declare function parseConfigFile(cliOptions?: DBOSCLIStartOptions): [DBOSConfig, DBOSRuntimeConfig];
29
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/dbos-runtime/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAErD,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,aAAa,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,sBAAsB,CAAC,EAAE,MAAM,CAAC;QAChC,aAAa,CAAC,EAAE,gBAAgB,CAAC;QACjC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IACF,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B,WAAW,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAElC,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB;AAcD,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAa7E;AAMD,wBAAgB,eAAe,CAAC,UAAU,CAAC,EAAE,mBAAmB,GAAG,CAAC,UAAU,EAAE,iBAAiB,CAAC,CA0EjG"}
@@ -1,111 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.parseConfigFile = exports.loadConfigFile = exports.dbosConfigFilePath = void 0;
7
- const error_1 = require("../error");
8
- const utils_1 = require("../utils");
9
- const yaml_1 = __importDefault(require("yaml"));
10
- const user_database_1 = require("../user_database");
11
- const applicationVersion_1 = require("./applicationVersion");
12
- exports.dbosConfigFilePath = "dbos-config.yaml";
13
- /*
14
- * Substitute environment variables using a regex for matching.
15
- * Will find anything in curly braces.
16
- * TODO: Use a more robust solution.
17
- */
18
- function substituteEnvVars(content) {
19
- const regex = /\${([^}]+)}/g; // Regex to match ${VAR_NAME} style placeholders
20
- return content.replace(regex, (_, g1) => {
21
- return process.env[g1] || ""; // If the env variable is not set, return an empty string.
22
- });
23
- }
24
- function loadConfigFile(configFilePath) {
25
- let configFile;
26
- try {
27
- const configFileContent = (0, utils_1.readFileSync)(configFilePath);
28
- const interpolatedConfig = substituteEnvVars(configFileContent);
29
- configFile = yaml_1.default.parse(interpolatedConfig);
30
- }
31
- catch (e) {
32
- if (e instanceof Error) {
33
- throw new error_1.DBOSInitializationError(`Failed to load config from ${configFilePath}: ${e.message}`);
34
- }
35
- }
36
- return configFile;
37
- }
38
- exports.loadConfigFile = loadConfigFile;
39
- /*
40
- * Parse `dbosConfigFilePath` and return DBOSConfig and DBOSRuntimeConfig
41
- * Considers DBOSCLIStartOptions if provided, which takes precedence over config file
42
- * */
43
- function parseConfigFile(cliOptions) {
44
- const configFilePath = cliOptions?.configfile ?? exports.dbosConfigFilePath;
45
- const configFile = loadConfigFile(configFilePath);
46
- if (!configFile) {
47
- throw new error_1.DBOSInitializationError(`DBOS configuration file ${configFilePath} is empty`);
48
- }
49
- (0, applicationVersion_1.setApplicationVersion)(configFile.version);
50
- /*******************************/
51
- /* Handle user database config */
52
- /*******************************/
53
- if (!configFile.database) {
54
- throw new error_1.DBOSInitializationError(`DBOS configuration ${configFilePath} does not contain database config`);
55
- }
56
- const poolConfig = {
57
- host: configFile.database.hostname,
58
- port: configFile.database.port,
59
- user: configFile.database.username,
60
- password: configFile.database.password,
61
- connectionTimeoutMillis: configFile.database.connectionTimeoutMillis || 3000,
62
- database: configFile.database.user_database,
63
- };
64
- if (!poolConfig.password) {
65
- throw new error_1.DBOSInitializationError(`DBOS configuration ${configFilePath} does not contain database password`);
66
- }
67
- if (configFile.database.ssl_ca) {
68
- poolConfig.ssl = { ca: [(0, utils_1.readFileSync)(configFile.database.ssl_ca)], rejectUnauthorized: true };
69
- }
70
- /***************************/
71
- /* Handle telemetry config */
72
- /***************************/
73
- // Consider CLI --loglevel flag. A bit verbose because everything is optional.
74
- if (cliOptions?.loglevel) {
75
- if (!configFile.telemetry) {
76
- configFile.telemetry = { logs: { logLevel: cliOptions.loglevel } };
77
- }
78
- else if (!configFile.telemetry.logs) {
79
- configFile.telemetry.logs = { logLevel: cliOptions.loglevel };
80
- }
81
- else {
82
- configFile.telemetry.logs.logLevel = cliOptions.loglevel;
83
- }
84
- }
85
- /************************************/
86
- /* Build final DBOS configuration */
87
- /************************************/
88
- const dbosConfig = {
89
- poolConfig: poolConfig,
90
- userDbclient: configFile.database.user_dbclient || user_database_1.UserDatabaseName.KNEX,
91
- telemetry: configFile.telemetry || undefined,
92
- system_database: `${poolConfig.database}_dbos_sys`,
93
- observability_database: configFile.database.observability_database || undefined,
94
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
95
- application: configFile.application || undefined,
96
- dbClientMetadata: {
97
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
98
- entities: configFile.dbClientMetadata?.entities,
99
- },
100
- };
101
- /*************************************/
102
- /* Build final runtime Configuration */
103
- /*************************************/
104
- const runtimeConfig = {
105
- entrypoint: cliOptions?.entrypoint || configFile.runtimeConfig?.entrypoint || "dist/operations.js",
106
- port: cliOptions?.port || configFile.runtimeConfig?.port || 3000,
107
- };
108
- return [dbosConfig, runtimeConfig];
109
- }
110
- exports.parseConfigFile = parseConfigFile;
111
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"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kflow(dbosConfig: DBOSConfig, runtimeConfig: DBOSRuntimeConfig, proxy: string, workflowUUID: string): Promise<void>;
4
- //# sourceMappingURL=debug.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../../src/dbos-runtime/debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgB,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAe,iBAAiB,EAAI,MAAM,WAAW,CAAC;AAE7D,wBAAsB,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,iBAgBhI"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.debugWorkflow = void 0;
4
- const dbos_executor_1 = require("../dbos-executor");
5
- const runtime_1 = require("./runtime");
6
- async function debugWorkflow(dbosConfig, runtimeConfig, proxy, workflowUUID) {
7
- const provDB = `${dbosConfig.poolConfig.database}_prov`;
8
- dbosConfig = { ...dbosConfig, debugProxy: proxy, system_database: provDB };
9
- dbosConfig.poolConfig.database = provDB;
10
- // Load classes
11
- const classes = await runtime_1.DBOSRuntime.loadClasses(runtimeConfig.entrypoint);
12
- const dbosExec = new dbos_executor_1.DBOSExecutor(dbosConfig);
13
- await dbosExec.init(...classes);
14
- // Invoke the workflow in debug mode.
15
- const handle = await dbosExec.executeWorkflowUUID(workflowUUID);
16
- await handle.getResult();
17
- // Destroy testing runtime.
18
- await dbosExec.destroy();
19
- }
20
- exports.debugWorkflow = debugWorkflow;
21
- //# sourceMappingURL=debug.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../../../src/dbos-runtime/debug.ts"],"names":[],"mappings":";;;AAAA,oDAA4D;AAC5D,uCAA6D;AAEtD,KAAK,UAAU,aAAa,CAAC,UAAsB,EAAE,aAAgC,EAAE,KAAa,EAAE,YAAoB;IAC/H,MAAM,MAAM,GAAG,GAAG,UAAU,CAAC,UAAU,CAAC,QAAQ,OAAO,CAAC;IACxD,UAAU,GAAG,EAAC,GAAG,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1E,UAAU,CAAC,UAAU,CAAC,QAAQ,GAAG,MAAM,CAAC;IAExC,eAAe;IACf,MAAM,OAAO,GAAG,MAAM,qBAAW,CAAC,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACxE,MAAM,QAAQ,GAAG,IAAI,4BAAY,CAAC,UAAU,CAAC,CAAC;IAC9C,MAAM,QAAQ,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;IAEhC,qCAAqC;IACrC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAChE,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;IAEzB,2BAA2B;IAC3B,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;AAC3B,CAAC;AAhBD,sCAgBC"}
@@ -1,7 +0,0 @@
1
- interface CopyOption {
2
- rename?: (basename: string) => string;
3
- }
4
- export declare const copy: (src: string, targets: string[], dest: string, { rename }?: CopyOption) => Promise<void[]>;
5
- export declare function init(appName: string): Promise<void>;
6
- export {};
7
- //# sourceMappingURL=init.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../src/dbos-runtime/init.ts"],"names":[],"mappings":"AAMA,UAAU,UAAU;IAClB,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;CACtC;AAID,eAAO,MAAM,IAAI,QACV,MAAM,WACF,MAAM,EAAE,QACX,MAAM,eACW,UAAU,oBA6BlC,CAAA;AAED,wBAAsB,IAAI,CAAC,OAAO,EAAE,MAAM,iBAiBzC"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.init = exports.copy = void 0;
7
- const fast_glob_1 = require("fast-glob");
8
- const path_1 = __importDefault(require("path"));
9
- const fs_1 = __importDefault(require("fs"));
10
- const child_process_1 = require("child_process");
11
- const error_1 = require("../error");
12
- const identity = (x) => x;
13
- const copy = async (src, targets, dest, { rename = identity } = {}) => {
14
- if (targets.length === 0 || !dest) {
15
- throw new TypeError('`src` and `dest` are required');
16
- }
17
- const sourceFiles = await (0, fast_glob_1.async)(targets, {
18
- cwd: src,
19
- dot: true,
20
- absolute: false,
21
- stats: false,
22
- ignore: ['**/node_modules/**', '**/dist/**']
23
- });
24
- return Promise.all(sourceFiles.map(async (p) => {
25
- const dirname = path_1.default.dirname(p);
26
- const basename = rename(path_1.default.basename(p));
27
- const from = path_1.default.resolve(src, p);
28
- const to = path_1.default.join(dest, dirname, basename);
29
- // Ensure the destination directory exists
30
- await fs_1.default.promises.mkdir(path_1.default.dirname(to), { recursive: true });
31
- return fs_1.default.promises.copyFile(from, to);
32
- }));
33
- };
34
- exports.copy = copy;
35
- async function init(appName) {
36
- if (fs_1.default.existsSync(appName)) {
37
- throw new error_1.DBOSError(`Directory ${appName} already exists, exiting...`);
38
- }
39
- const templatePath = path_1.default.resolve(__dirname, '..', '..', '..', 'examples', 'hello');
40
- const targets = ["**"];
41
- await (0, exports.copy)(templatePath, targets, appName);
42
- const packageJsonName = path_1.default.resolve(appName, 'package.json');
43
- const content = fs_1.default.readFileSync(packageJsonName, 'utf-8');
44
- let updatedContent = content.replace('"name": "dbos-hello"', `"name": "${appName}"`);
45
- updatedContent = updatedContent.replace('"@dbos-inc/dbos-sdk": "../..",', ``);
46
- fs_1.default.writeFileSync(packageJsonName, updatedContent, 'utf-8');
47
- (0, child_process_1.execSync)("npm i", { cwd: appName, stdio: 'inherit' });
48
- (0, child_process_1.execSync)("npm install --save @dbos-inc/dbos-sdk", { cwd: appName, stdio: 'inherit' });
49
- }
50
- exports.init = init;
51
- //# sourceMappingURL=init.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../src/dbos-runtime/init.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAyC;AACzC,gDAAuB;AACvB,4CAAmB;AACnB,iDAAwC;AACxC,oCAAoC;AAMpC,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAA;AAE1B,MAAM,IAAI,GAAG,KAAK,EACvB,GAAW,EACX,OAAiB,EACjB,IAAY,EACZ,EAAE,MAAM,GAAG,QAAQ,KAAiB,EAAE,EACtC,EAAE;IAEF,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC,+BAA+B,CAAC,CAAA;IACtD,CAAC;IAED,MAAM,WAAW,GAAG,MAAM,IAAA,iBAAI,EAAC,OAAO,EAAE;QACtC,GAAG,EAAE,GAAG;QACR,GAAG,EAAE,IAAI;QACT,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,CAAC,oBAAoB,EAAE,YAAY,CAAC;KAC7C,CAAC,CAAA;IAEF,OAAO,OAAO,CAAC,GAAG,CAChB,WAAW,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;QAC1B,MAAM,OAAO,GAAG,cAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;QAC/B,MAAM,QAAQ,GAAG,MAAM,CAAC,cAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;QAEzC,MAAM,IAAI,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAClC,MAAM,EAAE,GAAG,cAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;QAE9C,0C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wBAAQ,EAAC,uCAAuC,EAAE,EAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAC,CAAC,CAAA;AACrF,CAAC;AAjBD,oBAiBC"}
@@ -1,28 +0,0 @@
1
- import { DBOSConfig } from '../dbos-executor';
2
- export interface DBOSRuntimeConfig {
3
- entrypoint: string;
4
- port: number;
5
- }
6
- export declare class DBOSRuntime {
7
- private readonly runtimeConfig;
8
- private dbosExec;
9
- private server;
10
- constructor(dbosConfig: DBOSConfig, runtimeConfig: DBOSRuntimeConfig);
11
- /**
12
- * Initialize the runtime by loading user functions and initializing the workflow executor object
13
- */
14
- init(): Promise<void>;
15
- /**
16
- * Load an application's workflow functions, assumed to be in src/operations.ts (which is compiled to dist/operations.js).
17
- */
18
- static loadClasses(entrypoint: string): Promise<object[]>;
19
- /**
20
- * Start an HTTP server hosting an application's functions.
21
- */
22
- startServer(): void;
23
- /**
24
- * Shut down the HTTP server and destroy workflow executor.
25
- */
26
- destroy(): Promise<void>;
27
- }
28
- //# sourceMappingURL=runtime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../src/dbos-runtime/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAa5D,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,WAAW;IAIc,OAAO,CAAC,QAAQ,CAAC,aAAa;IAHlE,OAAO,CAAC,QAAQ,CAAe;IAC/B,OAAO,CAAC,MAAM,CAAuB;gBAEzB,UAAU,EAAE,UAAU,EAAmB,aAAa,EAAE,iBAAiB;IAKrF;;OAEG;IACG,IAAI;IASV;;OAEG;WACU,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAmB/D;;OAEG;IACH,WAAW;IASX;;OAEG;IACG,OAAO;CAId"}
@@ -1,95 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DBOSRuntime = void 0;
30
- const dbos_executor_1 = require("../dbos-executor");
31
- const server_1 = require("../httpServer/server");
32
- const fs = __importStar(require("fs"));
33
- const lodash_1 = require("lodash");
34
- const error_1 = require("../error");
35
- const node_path_1 = __importDefault(require("node:path"));
36
- class DBOSRuntime {
37
- runtimeConfig;
38
- dbosExec;
39
- server = null;
40
- constructor(dbosConfig, runtimeConfig) {
41
- this.runtimeConfig = runtimeConfig;
42
- // Initialize workflow executor.
43
- this.dbosExec = new dbos_executor_1.DBOSExecutor(dbosConfig);
44
- }
45
- /**
46
- * Initialize the runtime by loading user functions and initializing the workflow executor object
47
- */
48
- async init() {
49
- const classes = await DBOSRuntime.loadClasses(this.runtimeConfig.entrypoint);
50
- if (classes.length === 0) {
51
- this.dbosExec.logger.error("operations not found");
52
- throw new error_1.DBOSError("operations not found");
53
- }
54
- await this.dbosExec.init(...classes);
55
- }
56
- /**
57
- * Load an application's workflow functions, assumed to be in src/operations.ts (which is compiled to dist/operations.js).
58
- */
59
- static async loadClasses(entrypoint) {
60
- const operations = node_path_1.default.isAbsolute(entrypoint) ? entrypoint : node_path_1.default.join(process.cwd(), entrypoint);
61
- let exports;
62
- if (fs.existsSync(operations)) {
63
- /* eslint-disable-next-line @typescript-eslint/no-var-requires */
64
- exports = (await Promise.resolve(`${operations}`).then(s => __importStar(require(s))));
65
- }
66
- else {
67
- throw new error_1.DBOSError(`Failed to load operations from the entrypoint ${entrypoint}`);
68
- }
69
- const classes = [];
70
- for (const key in exports) {
71
- if ((0, lodash_1.isObject)(exports[key])) {
72
- classes.push(exports[key]);
73
- }
74
- }
75
- return classes;
76
- }
77
- /**
78
- * Start an HTTP server hosting an application's functions.
79
- */
80
- startServer() {
81
- // CLI takes precedence over config file, which takes precedence over default config.
82
- const server = new server_1.DBOSHttpServer(this.dbosExec);
83
- this.server = server.listen(this.runtimeConfig.port);
84
- this.dbosExec.logRegisteredHTTPUrls();
85
- }
86
- /**
87
- * Shut down the HTTP server and destroy workflow executor.
88
- */
89
- async destroy() {
90
- this.server?.close();
91
- await this.dbosExec?.destroy();
92
- }
93
- }
94
- exports.DBOSRuntime = DBOSRuntime;
95
- //# sourceMappingURL=runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../../../src/dbos-runtime/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4D;AAC5D,iDAAsD;AACtD,uCAAyB;AACzB,mCAAkC;AAElC,oCAAqC;AACrC,0DAA6B;AAY7B,MAAa,WAAW;IAI+B;IAH7C,QAAQ,CAAe;IACvB,MAAM,GAAkB,IAAI,CAAC;IAErC,YAAY,UAAsB,EAAmB,aAAgC;QAAhC,kBAAa,GA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AW,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;OAEG;IACH,WAAW;QACT,qFAAqF;QAErF,MAAM,MAAM,GAAmB,IAAI,uBAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAEhE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;QACrB,MAAM,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACjC,CAAC;CACF;AA9DD,kCA8DC"}
@@ -1,38 +0,0 @@
1
- import { DBOSExecutor } from "../dbos-executor";
2
- import { Transaction } from "../transaction";
3
- import { Communicator } from "../communicator";
4
- import { UserDatabaseClient } from "../user_database";
5
- import { DBOSContextImpl } from "../context";
6
- import { WFInvokeFuncs, Workflow, WorkflowConfig, WorkflowContext, WorkflowHandle } from "../workflow";
7
- interface RecordedResult<R> {
8
- output: R;
9
- txn_snapshot: string;
10
- txn_id: string;
11
- }
12
- /**
13
- * Context used for debugging a workflow
14
- */
15
- export declare class WorkflowContextDebug extends DBOSContextImpl implements WorkflowContext {
16
- #private;
17
- readonly workflowConfig: WorkflowConfig;
18
- functionID: number;
19
- readonly isTempWorkflow: boolean;
20
- constructor(dbosExec: DBOSExecutor, parentCtx: DBOSContextImpl | undefined, workflowUUID: string, workflowConfig: WorkflowConfig, workflowName: string);
21
- functionIDGetIncrement(): number;
22
- invoke<T extends object>(object: T): WFInvokeFuncs<T>;
23
- checkExecution<R>(client: UserDatabaseClient, funcID: number): Promise<RecordedResult<R>>;
24
- /**
25
- * Execute a transactional function in debug mode.
26
- * It connects to a debug proxy and everything should be read-only.
27
- */
28
- transaction<T extends any[], R>(txn: Transaction<T, R>, ...args: T): Promise<R>;
29
- external<T extends any[], R>(commFn: Communicator<T, R>, ..._args: T): Promise<R>;
30
- childWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
31
- send<T extends NonNullable<any>>(_destinationUUID: string, _message: T, _topic?: string | undefined): Promise<void>;
32
- recv<T extends NonNullable<any>>(_topic?: string | undefined, _timeoutSeconds?: number | undefined): Promise<T | null>;
33
- setEvent<T extends NonNullable<any>>(_key: string, _value: T): Promise<void>;
34
- getEvent<T extends NonNullable<any>>(_workflowUUID: string, _key: string, _timeoutSeconds?: number | undefined): Promise<T | null>;
35
- retrieveWorkflow<R>(targetUUID: string): WorkflowHandle<R>;
36
- }
37
- export {};
38
- //# sourceMappingURL=debug_workflow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug_workflow.d.ts","sourceRoot":"","sources":["../../../../../src/debugger/debug_workflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqC,MAAM,kBAAkB,CAAC;AAEnF,OAAO,EAAE,WAAW,EAA0B,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAkB,MAAM,aAAa,CAAC;AAEvH,UAAU,cAAc,CAAC,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC;IACV,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,eAAgB,YAAW,eAAe;;IAKgB,QAAQ,CAAC,cAAc,EAAE,cAAc;IAJzI,UAAU,EAAE,MAAM,CAAK;IAEvB,QAAQ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