@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 +1 @@
1
- {"version":3,"file":"delete-app.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/delete-app.ts"],"names":[],"mappings":"AAKA,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8B7D"}
1
+ {"version":3,"file":"delete-app.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/delete-app.ts"],"names":[],"mappings":"AAIA,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8B7D"}
@@ -5,11 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.deleteApp = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
- const logs_1 = require("../../../src/telemetry/logs");
9
8
  const cloudutils_1 = require("../cloudutils");
10
9
  const node_path_1 = __importDefault(require("node:path"));
11
10
  async function deleteApp(host) {
12
- const logger = new logs_1.GlobalLogger();
11
+ const logger = (0, cloudutils_1.getLogger)();
13
12
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
14
13
  const bearerToken = "Bearer " + userCredentials.token;
15
14
  // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -1 +1 @@
1
- {"version":3,"file":"delete-app.js","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/delete-app.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sDAA2D;AAC3D,8CAAoD;AACpD,0DAA6B;AAEtB,KAAK,UAAU,SAAS,CAAC,IAAY;IAC1C,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAA,gCAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,8DAA8D;IAC9D,MAAM,WAAW,GAAG,OAAO,CAAC,mBAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAqB,CAAC;IAC1F,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;IACjC,MAAM,CAAC,IAAI,CAAC,8CAA8C,OAAO,EAAE,CAAC,CAAA;IACpE,MAAM,CAAC,IAAI,CAAC,yBAAyB,OAAO,EAAE,CAAC,CAAA;IAE/C,IAAI,CAAC;QACH,MAAM,eAAK,CAAC,MAAM,CAAC,WAAW,IAAI,IAAI,eAAe,CAAC,QAAQ,gBAAgB,OAAO,EAAE,EAAE;YACvF,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,WAAW;aAC3B;SACF,C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,WAAW,IAAI,IAAI,eAAe,CAAC,QAAQ,gBAAgB,OAAO,EAAE,EAAE;YACvF,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,WAAW;aAC3B;SACF,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,qCAAqC,OAAO,EAAE,CAAC,CAAC;QAC5D,OAAO,CAAC,CAAC;IACX,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,eAAK,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;YACxC,MAAM,CAAC,KAAK,CAAC,gCAAgC,OAAO,KAAK,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YAC7E,OAAO,CAAC,CAAC;QACX,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,gCAAgC,OAAO,KAAM,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;YACjF,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;AACH,CAAC;AA9BD,8BA8BC"}
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-app-code.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/deploy-app-code.ts"],"names":[],"mappings":"AAgBA,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CA2FlF"}
1
+ {"version":3,"file":"deploy-app-code.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/deploy-app-code.ts"],"names":[],"mappings":"AAcA,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CA2FlF"}
@@ -7,20 +7,18 @@ exports.deployAppCode = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
8
  const child_process_1 = require("child_process");
9
9
  const fs_1 = require("fs");
10
- const logs_1 = require("../../../src/telemetry/logs");
11
10
  const cloudutils_1 = require("../cloudutils");
12
- const utils_1 = require("../../../src/utils");
13
11
  const path_1 = __importDefault(require("path"));
14
12
  const deployDirectoryName = "dbos_deploy";
15
13
  async function deployAppCode(host, docker) {
16
- const logger = new logs_1.GlobalLogger();
14
+ const logger = (0, cloudutils_1.getLogger)();
17
15
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
18
16
  const bearerToken = "Bearer " + userCredentials.token;
19
17
  // eslint-disable-next-line @typescript-eslint/no-var-requires
20
18
  const packageJson = require(path_1.default.join(process.cwd(), 'package.json'));
21
19
  const appName = packageJson.name;
22
20
  logger.info(`Loaded application name from package.json: ${appName}`);
23
- (0, utils_1.createDirectory)(deployDirectoryName);
21
+ (0, cloudutils_1.createDirectory)(deployDirectoryName);
24
22
  // Verify that package-lock.json exists
25
23
  if (!(0, fs_1.existsSync)(path_1.default.join(process.cwd(), 'package-lock.json'))) {
26
24
  logger.error("package-lock.json not found. Please run 'npm install' before deploying.");
@@ -39,7 +37,7 @@ async function deployAppCode(host, docker) {
39
37
  (0, child_process_1.execSync)(`zip -ry ${deployDirectoryName}/${appName}.zip ./* -x ${deployDirectoryName}/* > /dev/null`);
40
38
  }
41
39
  try {
42
- const zipData = (0, utils_1.readFileSync)(`${deployDirectoryName}/${appName}.zip`, "base64");
40
+ const zipData = (0, cloudutils_1.readFileSync)(`${deployDirectoryName}/${appName}.zip`, "base64");
43
41
  // Submit the deploy request
44
42
  logger.info(`Submitting deploy request for ${appName}`);
45
43
  const response = await axios_1.default.post(`https://${host}/${userCredentials.userName}/application/${appName}`, {
@@ -75,7 +73,7 @@ async function deployAppCode(host, docker) {
75
73
  applicationAvailable = true;
76
74
  }
77
75
  }
78
- await (0, utils_1.sleep)(1000);
76
+ await (0, cloudutils_1.sleep)(1000);
79
77
  }
80
78
  logger.info(`Application ${appName} successfuly deployed`);
81
79
  logger.info(`Access your application at https://${host}/${userCredentials.userName}/application/${appName}`);
@@ -94,7 +92,7 @@ async function deployAppCode(host, docker) {
94
92
  }
95
93
  exports.deployAppCode = deployAppCode;
96
94
  async function buildAppInDocker(appName) {
97
- const logger = new logs_1.GlobalLogger();
95
+ const logger = (0, cloudutils_1.getLogger)();
98
96
  // Verify Docker is running
99
97
  try {
100
98
  (0, child_process_1.execSync)(`docker > /dev/null 2>&1`);
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-app-code.js","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/deploy-app-code.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,iDAAyC;AACzC,2BAA+C;AAC/C,sDAA2D;AAC3D,8CAAgE;AAChE,8CAA0E;AAC1E,gDAAwB;AAGxB,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAOnC,KAAK,UAAU,aAAa,CAAC,IAAY,EAAE,MAAe;IAC/D,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAA,gCAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,8DAA8D;IAC9D,MAAM,WAAW,GAAG,OAAO,CAAC,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAqB,CAAC;IAC1F,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;IACjC,MAAM,CAAC,IAAI,CAAC,8CAA8C,OAAO,EAAE,CAAC,CAAA;IAEpE,IAAA,uBAAe,EAAC,mBAAmB,CAAC,CAAC;IAErC,uCAAuC;IACvC,IAAI,CAAC,IAAA,eAAU,EAAC,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC;QAC/D,MAAM,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAA;QACvF,OAAO,CAAC,CAAC;IACX,CAAC;IAED,IAAI,MAAM,EAAE,CAAC;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AA+B,OAAO,KAAM,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;QAChF,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-app-logs.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/get-app-logs.ts"],"names":[],"mappings":"AAKA,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8B9D"}
1
+ {"version":3,"file":"get-app-logs.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/get-app-logs.ts"],"names":[],"mappings":"AAIA,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8B9D"}
@@ -5,11 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getAppLogs = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
- const logs_1 = require("../../../src/telemetry/logs");
9
8
  const cloudutils_1 = require("../cloudutils");
10
9
  const node_path_1 = __importDefault(require("node:path"));
11
10
  async function getAppLogs(host) {
12
- const logger = new logs_1.GlobalLogger();
11
+ const logger = (0, cloudutils_1.getLogger)();
13
12
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
14
13
  const bearerToken = "Bearer " + userCredentials.token;
15
14
  // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -1 +1 @@
1
- {"version":3,"file":"get-app-logs.js","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/get-app-logs.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sDAA2D;AAC3D,8CAAoD;AACpD,0DAA6B;AAEtB,KAAK,UAAU,UAAU,CAAC,IAAY;IAC3C,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAA,gCAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,G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C;AACH,CAAC;AA9BD,gCA8BC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-apps.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/list-apps.ts"],"names":[],"mappings":"AAKA,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC5D"}
1
+ {"version":3,"file":"list-apps.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/list-apps.ts"],"names":[],"mappings":"AAIA,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC5D"}
@@ -5,10 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.listApps = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
- const logs_1 = require("../../../src/telemetry/logs");
9
8
  const cloudutils_1 = require("../cloudutils");
10
9
  async function listApps(host) {
11
- const logger = new logs_1.GlobalLogger();
10
+ const logger = (0, cloudutils_1.getLogger)();
12
11
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
13
12
  const bearerToken = "Bearer " + userCredentials.token;
14
13
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"list-apps.js","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/list-apps.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sDAA2D;AAC3D,8CAAoD;AAG7C,KAAK,UAAU,QAAQ,CAAC,IAAY;IACzC,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAA,gCAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,eAAK,CAAC,GAAG,CAC1B,WAAW,IAAI,IAAI,eAAe,CAAC,QAAQ,cAAc,EACzD;YAC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AO,CAAC,EAAE,CAAC;QACX,IAAI,eAAK,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;YACxC,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YACjE,OAAO,CAAC,CAAC;QACX,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,gCAAiC,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;YACrE,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;AACH,CAAC;AAnCD,4BAmCC"}
@@ -1 +1 @@
1
- {"version":3,"file":"register-app.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/register-app.ts"],"names":[],"mappings":"AAKA,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAuCjG"}
1
+ {"version":3,"file":"register-app.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/register-app.ts"],"names":[],"mappings":"AAIA,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAuCjG"}
@@ -5,11 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.registerApp = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
- const logs_1 = require("../../../src/telemetry/logs");
9
8
  const cloudutils_1 = require("../cloudutils");
10
9
  const node_path_1 = __importDefault(require("node:path"));
11
10
  async function registerApp(dbname, host, machines) {
12
- const logger = new logs_1.GlobalLogger();
11
+ const logger = (0, cloudutils_1.getLogger)();
13
12
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
14
13
  const bearerToken = "Bearer " + userCredentials.token;
15
14
  // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -1 +1 @@
1
- {"version":3,"file":"register-app.js","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/register-app.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sDAA2D;AAC3D,8CAAoD;AACpD,0DAA6B;AAEtB,KAAK,UAAU,WAAW,CAAC,MAAc,EAAE,IAAY,EAAE,QAAgB;IAC9E,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAA,gCAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,8DAA8D;IAC9D,MAAM,WAAW,GAAG,OAAO,CAAC,mBAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAqB,CAAC;IAC1F,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;IACjC,MAAM,CAAC,IAAI,CAAC,8CAA8C,OAAO,EAAE,CAAC,CAAA;IACpE,MAAM,CAAC,IAAI,CAAC,4BAA4B,OAAO,EAAE,CAAC,CAAA;IAElD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAC9B,WAAW,IAAI,IAAI,eAAe,CAAC,QAAQ,cAAc,EACzD;YACE,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,QAAQ;SAClB,EACD;YACE,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,WAAW;aAC3B;SACF,CACF,CAAC;QACF,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAc,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC,4BAA4B,OAAO,EAAE,CAAC,CAAC;QACnD,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,QAAQ,IAAI,EAAE,CAAC,CAAC;QACtC,OAA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c,EACzD;YACE,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,QAAQ;SAClB,EACD;YACE,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,WAAW;aAC3B;SACF,CACF,CAAC;QACF,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAc,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC,4BAA4B,OAAO,EAAE,CAAC,CAAC;QACnD,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,QAAQ,IAAI,EAAE,CAAC,CAAC;QACtC,OAAO,CAAC,CAAC;IACX,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,eAAK,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;YACxC,MAAM,CAAC,KAAK,CAAC,kCAAkC,OAAO,KAAK,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YAC/E,OAAO,CAAC,CAAC;QACX,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,kCAAkC,OAAO,KAAM,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;YACnF,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;AACH,CAAC;AAvCD,kCAuCC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-app.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/update-app.ts"],"names":[],"mappings":"AAMA,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAwC/E"}
1
+ {"version":3,"file":"update-app.d.ts","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/update-app.ts"],"names":[],"mappings":"AAKA,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAwC/E"}
@@ -5,11 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.updateApp = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
- const logs_1 = require("../../../src/telemetry/logs");
9
8
  const cloudutils_1 = require("../cloudutils");
10
9
  const node_path_1 = __importDefault(require("node:path"));
11
10
  async function updateApp(host, machines) {
12
- const logger = new logs_1.GlobalLogger();
11
+ const logger = (0, cloudutils_1.getLogger)();
13
12
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
14
13
  const bearerToken = "Bearer " + userCredentials.token;
15
14
  // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -1 +1 @@
1
- {"version":3,"file":"update-app.js","sourceRoot":"","sources":["../../../../packages/dbos-cloud/applications/update-app.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sDAA2D;AAC3D,8CAAoD;AAEpD,0DAA6B;AAEtB,KAAK,UAAU,SAAS,CAAC,IAAY,EAAE,QAAgB;IAC5D,MAAM,MAAM,GAAI,IAAI,mBAAY,EAAE,CAAC;IACnC,MAAM,eAAe,GAAG,IAAA,gCAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,8DAA8D;IAC9D,MAAM,WAAW,GAAG,OAAO,CAAC,mBAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAqB,CAAC;IAC1F,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;IACjC,MAAM,CAAC,IAAI,CAAC,8CAA8C,OAAO,EAAE,CAAC,CAAA;IACpE,MAAM,CAAC,IAAI,CAAC,yBAAyB,OAAO,EAAE,CAAC,CAAA;IAE/C,IAAI,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,wBAAwB,OAAO,OAAO,QAAQ,WAAW,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,M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AC9I,OAAO,CAAC,CAAC;IACX,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,eAAK,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;YACxC,MAAM,CAAC,KAAK,CAAC,gCAAgC,OAAO,KAAK,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YAC7E,OAAO,CAAC,CAAC;QACX,CAAC;aAAM,CAAC;YACL,CAAW,CAAC,OAAO,GAAG,gCAAgC,OAAO,KAAM,CAAW,CAAC,OAAO,EAAE,CAAC;YAC1F,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAChB,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;AACH,CAAC;AAxCD,8BAwCC"}
@@ -129,18 +129,6 @@ userdbCommands
129
129
  const { host } = userdbCommands.opts();
130
130
  await (0, userdb_1.deleteUserDb)(host, dbname);
131
131
  }));
132
- userdbCommands
133
- .command('migrate')
134
- .action((async () => {
135
- const exitCode = await (0, userdb_1.migrate)();
136
- process.exit(exitCode);
137
- }));
138
- userdbCommands
139
- .command('rollbackmigration')
140
- .action((() => {
141
- const exitCode = (0, userdb_1.rollbackMigration)();
142
- process.exit(exitCode);
143
- }));
144
132
  program.parse(process.argv);
145
133
  // If no arguments provided, display help by default
146
134
  if (!process.argv.slice(2).length) {
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../packages/dbos-cloud/cli.ts"],"names":[],"mappings":";;;AAEA,iDAOwB;AACxB,yCAAoC;AACpC,mCAAgC;AAChC,yCAA0C;AAC1C,qCAA6F;AAC7F,6CAAgD;AAEhD,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,2EAA2E;AAEzH,8DAA8D;AAC9D,MAAM,WAAW,GAAG,OAAO,CAAC,uBAAuB,C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AI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,OAAO,CAAC,UAAU,EAAE,CAAC;AACvB,CAAC"}
@@ -1,5 +1,12 @@
1
+ /// <reference types="node" />
1
2
  import { DBOSCloudCredentials } from "./login";
3
+ import { Logger } from "winston";
4
+ export declare function getLogger(): Logger;
2
5
  export declare function getCloudCredentials(): DBOSCloudCredentials;
3
6
  export declare function credentialsExist(): boolean;
4
7
  export declare function runCommand(command: string, args?: string[]): Promise<number>;
8
+ export declare function readFileSync(path: string, encoding?: BufferEncoding): string | Buffer;
9
+ export declare const sleep: (ms: number) => Promise<unknown>;
10
+ export type ValuesOf<T> = T[keyof T];
11
+ export declare function createDirectory(path: string): string | undefined;
5
12
  //# sourceMappingURL=cloudutils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloudutils.d.ts","sourceRoot":"","sources":["../../../packages/dbos-cloud/cloudutils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAe,MAAM,SAAS,CAAC;AAK5D,wBAAgB,mBAAmB,IAAI,oBAAoB,CAW1D;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C;AAGD,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBhF"}
1
+ {"version":3,"file":"cloudutils.d.ts","sourceRoot":"","sources":["../../../packages/dbos-cloud/cloudutils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAe,MAAM,SAAS,CAAC;AAI5D,OAAO,EAAoC,MAAM,EAAE,MAAM,SAAS,CAAC;AAEnE,wBAAgB,SAAS,IAAI,MAAM,CASlC;AAqBD,wBAAgB,mBAAmB,IAAI,oBAAoB,CAW1D;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C;AAGD,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBhF;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,cAAuB,GAAG,MAAM,GAAG,MAAM,CAa7F;AAED,eAAO,MAAM,KAAK,OAAQ,MAAM,qBAA0C,CAAC;AAE3E,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAGrC,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhE"}
@@ -3,13 +3,33 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.runCommand = exports.credentialsExist = exports.getCloudCredentials = void 0;
6
+ exports.createDirectory = exports.sleep = exports.readFileSync = exports.runCommand = exports.credentialsExist = exports.getCloudCredentials = exports.getLogger = void 0;
7
7
  const login_1 = require("./login");
8
8
  const fs_1 = __importDefault(require("fs"));
9
9
  const child_process_1 = require("child_process");
10
- const logs_1 = require("../../src/telemetry/logs");
10
+ const winston_1 = require("winston");
11
+ function getLogger() {
12
+ const winstonTransports = [];
13
+ winstonTransports.push(new winston_1.transports.Console({
14
+ format: consoleFormat,
15
+ level: "info",
16
+ }));
17
+ return (0, winston_1.createLogger)({ transports: winstonTransports });
18
+ }
19
+ exports.getLogger = getLogger;
20
+ const consoleFormat = winston_1.format.combine(winston_1.format.errors({ stack: true }), winston_1.format.timestamp(), winston_1.format.colorize(), winston_1.format.printf((info) => {
21
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
22
+ const { timestamp, level, message, stack } = info;
23
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-assignment
24
+ const ts = timestamp.slice(0, 19).replace("T", " ");
25
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-assignment
26
+ const formattedStack = stack?.split("\n").slice(1).join("\n");
27
+ const messageString = typeof message === "string" ? message : JSON.stringify(message);
28
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
29
+ return `${ts} [${level}]: ${messageString} ${stack ? "\n" + formattedStack : ""}`;
30
+ }));
11
31
  function getCloudCredentials() {
12
- const logger = new logs_1.GlobalLogger();
32
+ const logger = getLogger();
13
33
  if (!credentialsExist()) {
14
34
  logger.error("Error: not logged in");
15
35
  process.exit(1);
@@ -44,4 +64,25 @@ function runCommand(command, args = []) {
44
64
  });
45
65
  }
46
66
  exports.runCommand = runCommand;
67
+ function readFileSync(path, encoding = "utf8") {
68
+ // First, check the file
69
+ fs_1.default.stat(path, (error, stats) => {
70
+ if (error) {
71
+ throw new Error(`checking on ${path}. ${error.code}: ${error.errno}`);
72
+ }
73
+ else if (!stats.isFile()) {
74
+ throw new Error(`config file ${path} is not a file`);
75
+ }
76
+ });
77
+ // Then, read its content
78
+ const fileContent = fs_1.default.readFileSync(path, { encoding });
79
+ return fileContent;
80
+ }
81
+ exports.readFileSync = readFileSync;
82
+ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
83
+ exports.sleep = sleep;
84
+ function createDirectory(path) {
85
+ return fs_1.default.mkdirSync(path, { recursive: true });
86
+ }
87
+ exports.createDirectory = createDirectory;
47
88
  //# sourceMappingURL=cloudutils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloudutils.js","sourceRoot":"","sources":["../../../packages/dbos-cloud/cloudutils.ts"],"names":[],"mappings":";;;;;;AAAA,mCAA4D;AAC5D,4CAAoB;AACpB,iDAAoD;AACpD,mDAAwD;AAExD,SAAgB,mBAAmB;IACjC,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,IAAI,CAAC,gBAAgB,EAAE,EAAE,CAAC;QACxB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,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@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../packages/dbos-cloud/login.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM,YAAY,qCAAqC,CAAA;AAC9D,eAAO,MAAM,mBAAmB,mBAAmB,CAAA;AAEnD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AA8CD,wBAAsB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA4D7D"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../packages/dbos-cloud/login.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM,YAAY,qCAAqC,CAAA;AAC9D,eAAO,MAAM,mBAAmB,mBAAmB,CAAA;AAEnD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AA8CD,wBAAsB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA4D7D"}
@@ -4,13 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.login = exports.DBOSCloudIdentifier = exports.DBOSClientID = exports.dbosEnvPath = void 0;
7
- const logs_1 = require("../../src/telemetry/logs");
8
7
  const axios_1 = __importDefault(require("axios"));
9
- const utils_1 = require("../../src/utils");
10
8
  const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
11
9
  const jwks_rsa_1 = __importDefault(require("jwks-rsa"));
12
10
  const child_process_1 = require("child_process");
13
11
  const fs_1 = __importDefault(require("fs"));
12
+ const cloudutils_1 = require("./cloudutils");
14
13
  exports.dbosEnvPath = ".dbos";
15
14
  exports.DBOSClientID = 'G38fLmVErczEo9ioCFjVIHea6yd0qMZu';
16
15
  exports.DBOSCloudIdentifier = 'dbos-cloud-api';
@@ -39,7 +38,7 @@ async function verifyToken(token) {
39
38
  });
40
39
  }
41
40
  async function login(username) {
42
- const logger = new logs_1.GlobalLogger();
41
+ const logger = (0, cloudutils_1.getLogger)();
43
42
  logger.info(`Logging in!`);
44
43
  const deviceCodeRequest = {
45
44
  method: 'POST',
@@ -74,7 +73,7 @@ async function login(username) {
74
73
  let elapsedTimeSec = 0;
75
74
  while (elapsedTimeSec < deviceCodeResponse.expires_in) {
76
75
  try {
77
- await (0, utils_1.sleep)(deviceCodeResponse.interval * 1000);
76
+ await (0, cloudutils_1.sleep)(deviceCodeResponse.interval * 1000);
78
77
  elapsedTimeSec += deviceCodeResponse.interval;
79
78
  const response = await axios_1.default.request(tokenRequest);
80
79
  tokenResponse = response.data;
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../packages/dbos-cloud/login.ts"],"names":[],"mappings":";;;;;;AAAA,mDAAwD;AACxD,kDAA0B;AAC1B,2CAAwC;AACxC,gEAA+C;AAC/C,wDAAkC;AAClC,iDAAyC;AACzC,4CAAoB;AAEP,QAAA,WAAW,GAAG,OAAO,CAAC;AACtB,QAAA,YAAY,GAAG,kCAAkC,CAAA;AACjD,QAAA,mBAAmB,GAAG,gBAAgB,CAAA;AAsBnD,MAAM,MAAM,GAAG,IAAA,kBAAU,EAAC;IACxB,OAAO,EAAE,qDAAqD;CAC/D,CAAC,CAAC;AAEH,KAAK,UAAU,aAAa,CAAC,GAAW;IACtC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,GAAG,CAAC,YAAY,EAAE,CAAC;AAC5B,CAAC;AAED,KAAK,UAAU,WAAW,CAAC,KAAa;IACtC,MAAM,OAAO,GAAG,sBAAG,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAA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,CAAC;IACpC,YAAE,CAAC,aAAa,CAAC,GAAG,mBAAW,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC;IACrF,MAAM,CAAC,IAAI,CAAC,mCAAmC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IACvE,MAAM,CAAC,IAAI,CAAC,uCAAuC,mBAAW,cAAc,CAAC,CAAC;IAC9E,OAAO,CAAC,CAAC;AACX,CAAC;AA5DD,sBA4DC"}
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../packages/dbos-cloud/register.ts"],"names":[],"mappings":"AAIA,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BlF"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../packages/dbos-cloud/register.ts"],"names":[],"mappings":"AAGA,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BlF"}
@@ -5,13 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.registerUser = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
- const logs_1 = require("../../src/telemetry/logs");
9
8
  const cloudutils_1 = require("./cloudutils");
10
9
  async function registerUser(username, host) {
11
10
  const userCredentials = (0, cloudutils_1.getCloudCredentials)();
12
11
  const bearerToken = "Bearer " + userCredentials.token;
13
12
  const userName = userCredentials.userName;
14
- const logger = new logs_1.GlobalLogger();
13
+ const logger = (0, cloudutils_1.getLogger)();
15
14
  try {
16
15
  // First, register the user.
17
16
  const register = await axios_1.default.put(`https://${host}/user`, {
@@ -1 +1 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../../../packages/dbos-cloud/register.ts"],"names":[],"mappings":";;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D,KAAK,UAAU,YAAY,CAAC,QAAgB,EAAE,IAAY;IAC/D,MAAM,eAAe,GAAG,IAAA,gCAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IACtD,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC;IAC1C,MAAM,MAAM,GAAG,IAAA,sBAAS,GAAE,CAAC;IAC3B,IAAI,CAAC;QACH,4BAA4B;QAC5B,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAC9B,WAAW,IAAI,OAAO,EACtB;YACE,IAAI,EAAE,QAAQ;SACf,EACD;YACE,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,WAAW;aAC3B;SACF,CACF,CAAC;QACF,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAc,CAAC;QACzC,MAAM,CAAC,IAAI,CAAC,mBAAmB,QAAQ,WAAW,QAAQ,EAAE,CAAC,CAAC;IAChE,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,eAAK,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;YACxC,MAAM,CAAC,KAAK,CAAC,2BAA2B,QAAQ,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QAC1E,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,2BAA2B,QAAQ,KAAM,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;QAC/E,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC;AA9BD,oCA8BC"}
@@ -7,7 +7,5 @@ export interface UserDBInstance {
7
7
  export declare function createUserDb(host: string, dbName: string, adminName: string, adminPassword: string, sync: boolean): Promise<void>;
8
8
  export declare function deleteUserDb(host: string, dbName: string): Promise<void>;
9
9
  export declare function getUserDb(host: string, dbName: string): Promise<void>;
10
- export declare function migrate(): Promise<number>;
11
- export declare function rollbackMigration(): number;
12
10
  export declare function getUserDBInfo(host: string, dbName: string): Promise<UserDBInstance>;
13
11
  //# sourceMappingURL=userdb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"userdb.d.ts","sourceRoot":"","sources":["../../../packages/dbos-cloud/userdb.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,iBAmCvH;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAoB9D;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAa3D;AAED,wBAAsB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAiF/C;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CA4B1C;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAYzF"}
1
+ {"version":3,"file":"userdb.d.ts","sourceRoot":"","sources":["../../../packages/dbos-cloud/userdb.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,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