@dbos-inc/dbos-sdk 0.8.22-preview → 0.8.26-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/src/cloud-cli/applications/delete-app.d.ts +1 -1
  2. package/dist/src/cloud-cli/applications/delete-app.d.ts.map +1 -1
  3. package/dist/src/cloud-cli/applications/delete-app.js +7 -1
  4. package/dist/src/cloud-cli/applications/delete-app.js.map +1 -1
  5. package/dist/src/cloud-cli/applications/deploy-app-code.d.ts +1 -1
  6. package/dist/src/cloud-cli/applications/deploy-app-code.d.ts.map +1 -1
  7. package/dist/src/cloud-cli/applications/deploy-app-code.js +11 -7
  8. package/dist/src/cloud-cli/applications/deploy-app-code.js.map +1 -1
  9. package/dist/src/cloud-cli/applications/get-app-logs.d.ts +1 -1
  10. package/dist/src/cloud-cli/applications/get-app-logs.d.ts.map +1 -1
  11. package/dist/src/cloud-cli/applications/get-app-logs.js +6 -1
  12. package/dist/src/cloud-cli/applications/get-app-logs.js.map +1 -1
  13. package/dist/src/cloud-cli/applications/list-apps.d.ts.map +1 -1
  14. package/dist/src/cloud-cli/applications/list-apps.js +2 -1
  15. package/dist/src/cloud-cli/applications/list-apps.js.map +1 -1
  16. package/dist/src/cloud-cli/applications/register-app.d.ts +1 -1
  17. package/dist/src/cloud-cli/applications/register-app.d.ts.map +1 -1
  18. package/dist/src/cloud-cli/applications/register-app.js +7 -1
  19. package/dist/src/cloud-cli/applications/register-app.js.map +1 -1
  20. package/dist/src/cloud-cli/applications/types.d.ts +1 -0
  21. package/dist/src/cloud-cli/applications/types.d.ts.map +1 -1
  22. package/dist/src/cloud-cli/applications/update-app.d.ts +1 -1
  23. package/dist/src/cloud-cli/applications/update-app.d.ts.map +1 -1
  24. package/dist/src/cloud-cli/applications/update-app.js +7 -1
  25. package/dist/src/cloud-cli/applications/update-app.js.map +1 -1
  26. package/dist/src/cloud-cli/cli.js +8 -13
  27. package/dist/src/cloud-cli/cli.js.map +1 -1
  28. package/dist/src/staticAnalysis/TypeParser.d.ts.map +1 -1
  29. package/dist/src/staticAnalysis/TypeParser.js +5 -1
  30. package/dist/src/staticAnalysis/TypeParser.js.map +1 -1
  31. package/dist/src/testing/testing_runtime.d.ts +1 -1
  32. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  33. package/dist/src/testing/testing_runtime.js +14 -12
  34. package/dist/src/testing/testing_runtime.js.map +1 -1
  35. package/examples/hello/dbos-config.yaml +0 -1
  36. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- export declare function deleteApp(appName: string, host: string): Promise<number>;
1
+ export declare function deleteApp(host: string): Promise<number>;
2
2
  //# sourceMappingURL=delete-app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-app.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/delete-app.ts"],"names":[],"mappings":"AAIA,wBAAsB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAwB9E"}
1
+ {"version":3,"file":"delete-app.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/delete-app.ts"],"names":[],"mappings":"AAKA,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8B7D"}
@@ -7,10 +7,16 @@ exports.deleteApp = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
8
  const logs_1 = require("../../telemetry/logs");
9
9
  const utils_1 = require("../utils");
10
- async function deleteApp(appName, host) {
10
+ const node_path_1 = __importDefault(require("node:path"));
11
+ async function deleteApp(host) {
11
12
  const logger = new logs_1.GlobalLogger();
12
13
  const userCredentials = (0, utils_1.getCloudCredentials)();
13
14
  const bearerToken = "Bearer " + userCredentials.token;
15
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
16
+ const packageJson = require(node_path_1.default.join(process.cwd(), 'package.json'));
17
+ const appName = packageJson.name;
18
+ logger.info(`Loaded application name from package.json: ${appName}`);
19
+ logger.info(`Deleting application: ${appName}`);
14
20
  try {
15
21
  await axios_1.default.delete(`https://${host}/${userCredentials.userName}/application/${appName}`, {
16
22
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-app.js","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/delete-app.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAAoD;AACpD,oCAA+C;AAExC,KAAK,UAAU,SAAS,CAAC,OAAe,EAAE,IAAY;IAC3D,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAA,2BAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,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,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;AAxBD,8BAwBC"}
1
+ {"version":3,"file":"delete-app.js","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/del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AAO,EAAE,CAAC,CAAC;YACjF,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;AACH,CAAC;AA9BD,8BA8BC"}
@@ -1,2 +1,2 @@
1
- export declare function deployAppCode(appName: string, host: string): Promise<number>;
1
+ export declare function deployAppCode(host: string): Promise<number>;
2
2
  //# sourceMappingURL=deploy-app-code.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-app-code.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/deploy-app-code.ts"],"names":[],"mappings":"AAWA,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA+DlF"}
1
+ {"version":3,"file":"deploy-app-code.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/deploy-app-code.ts"],"names":[],"mappings":"AAiBA,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkEjE"}
@@ -12,11 +12,17 @@ const logs_1 = require("../../telemetry/logs");
12
12
  const utils_1 = require("../utils");
13
13
  const utils_2 = require("../../utils");
14
14
  const config_1 = require("../../dbos-runtime/config");
15
+ const path_1 = __importDefault(require("path"));
15
16
  const deployDirectoryName = "dbos_deploy";
16
- async function deployAppCode(appName, host) {
17
+ async function deployAppCode(host) {
17
18
  const logger = new logs_1.GlobalLogger();
18
19
  const userCredentials = (0, utils_1.getCloudCredentials)();
19
20
  const bearerToken = "Bearer " + userCredentials.token;
21
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
22
+ const packageJson = require(path_1.default.join(process.cwd(), 'package.json'));
23
+ const appName = packageJson.name;
24
+ logger.info(`Loaded application name from package.json: ${appName}`);
25
+ logger.info(`Deploying application: ${appName}`);
20
26
  try {
21
27
  (0, utils_2.createDirectory)(deployDirectoryName);
22
28
  const configFile = (0, config_1.loadConfigFile)(config_1.dbosConfigFilePath);
@@ -24,9 +30,6 @@ async function deployAppCode(appName, host) {
24
30
  logger.error(`failed to parse ${config_1.dbosConfigFilePath}`);
25
31
  return 1;
26
32
  }
27
- // Parse version from config file. If missing, use current epoch
28
- const version = configFile.version ?? Date.now().toString();
29
- configFile.version = version;
30
33
  // Inject OTel export configuration
31
34
  if (!configFile.telemetry) {
32
35
  configFile.telemetry = {};
@@ -46,8 +49,7 @@ async function deployAppCode(appName, host) {
46
49
  (0, child_process_1.execSync)(`zip -ry ${deployDirectoryName}/${appName}.zip ./* -x ${deployDirectoryName}/* ${config_1.dbosConfigFilePath} > /dev/null`);
47
50
  (0, child_process_1.execSync)(`zip -j ${deployDirectoryName}/${appName}.zip ${deployDirectoryName}/${config_1.dbosConfigFilePath} > /dev/null`);
48
51
  const zipData = (0, utils_2.readFileSync)(`${deployDirectoryName}/${appName}.zip`, "base64");
49
- await axios_1.default.post(`https://${host}/${userCredentials.userName}/application/${appName}`, {
50
- application_version: version,
52
+ const response = await axios_1.default.post(`https://${host}/${userCredentials.userName}/application/${appName}`, {
51
53
  application_archive: zipData,
52
54
  }, {
53
55
  headers: {
@@ -55,7 +57,9 @@ async function deployAppCode(appName, host) {
55
57
  Authorization: bearerToken,
56
58
  },
57
59
  });
58
- logger.info(`Successfully deployed ${appName} with version ${version}`);
60
+ const deployOutput = response.data;
61
+ logger.info(`Successfully deployed ${appName} with version ${deployOutput.ApplicationVersion}`);
62
+ logger.info(`Access your application at https://${host}/${userCredentials.userName}/application/${appName}`);
59
63
  return 0;
60
64
  }
61
65
  catch (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-app-code.js","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/deploy-app-code.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,gDAAwB;AACxB,iDAAyC;AACzC,4CAAoB;AACpB,+CAAoD;AACpD,oCAA+C;AAC/C,uCAA4D;AAC5D,sDAA2F;AAE3F,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAEnC,KAAK,UAAU,aAAa,CAAC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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;AAlED,sCAkEC"}
@@ -1,2 +1,2 @@
1
- export declare function getAppLogs(appName: string, host: string): Promise<number>;
1
+ export declare function getAppLogs(host: string): Promise<number>;
2
2
  //# sourceMappingURL=get-app-logs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-app-logs.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/get-app-logs.ts"],"names":[],"mappings":"AAIA,wBAAsB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyB/E"}
1
+ {"version":3,"file":"get-app-logs.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/get-app-logs.ts"],"names":[],"mappings":"AAKA,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8B9D"}
@@ -7,10 +7,15 @@ exports.getAppLogs = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
8
  const logs_1 = require("../../telemetry/logs");
9
9
  const utils_1 = require("../utils");
10
- async function getAppLogs(appName, host) {
10
+ const node_path_1 = __importDefault(require("node:path"));
11
+ async function getAppLogs(host) {
11
12
  const logger = new logs_1.GlobalLogger();
12
13
  const userCredentials = (0, utils_1.getCloudCredentials)();
13
14
  const bearerToken = "Bearer " + userCredentials.token;
15
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
16
+ const packageJson = require(node_path_1.default.join(process.cwd(), 'package.json'));
17
+ const appName = packageJson.name;
18
+ logger.info(`Retrieving logs for application: ${appName}`);
14
19
  try {
15
20
  const res = await axios_1.default.get(`https://${host}/${userCredentials.userName}/logs/application/${appName}`, {
16
21
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"get-app-logs.js","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/get-app-logs.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAAoD;AACpD,oCAA+C;AAExC,KAAK,UAAU,UAAU,CAAC,OAAe,EAAE,IAAY;IAC5D,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAA,2BAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,eAAe,CAAC,QAAQ,qBAAqB,OAAO,EAAE,EAAE;YACrG,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,WAAW;aAC3B;SACF,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,+CAA+C,OAAO,EAAE,CAAC,CAAC;QACtE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACrB,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,0CAA0C,OAAO,KAAK,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YACvF,OAAO,CAAC,CAAC;QACX,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,0CAA0C,OAAO,KAAM,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;YAC3F,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;AACH,CAAC;AAzBD,gCAyBC"}
1
+ {"version":3,"file":"get-app-logs.js","sourceRoot":"","sources":["../../../../src/cloud-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AAO,KAAM,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;YAC3F,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;AACH,CAAC;AA9BD,gCA8BC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-apps.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/list-apps.ts"],"names":[],"mappings":"AAKA,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkC5D"}
1
+ {"version":3,"file":"list-apps.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/list-apps.ts"],"names":[],"mappings":"AAKA,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC5D"}
@@ -24,8 +24,9 @@ async function listApps(host) {
24
24
  }
25
25
  const formattedData = [];
26
26
  for (const application of data) {
27
- formattedData.push({ "Name": application.Name, "ID": application.ID, "Version": application.Version, "DatabaseName": application.DatabaseName, "MaxVMs": application.MaxVMs });
27
+ formattedData.push({ "Name": application.Name, "ID": application.ID, "Version": application.Version, "DatabaseName": application.DatabaseName, "MaxVMs": application.MaxVMs, "Status": application.Status });
28
28
  }
29
+ logger.info(`Listing applications for ${userCredentials.userName}`);
29
30
  console.log(JSON.stringify(formattedData));
30
31
  return 0;
31
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"list-apps.js","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/list-apps.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAAoD;AACpD,oCAA+C;AAGxC,KAAK,UAAU,QAAQ,CAAC,IAAY;IACzC,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAA,2BAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAA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X,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,2 +1,2 @@
1
- export declare function registerApp(appName: string, dbname: string, host: string, machines: number): Promise<number>;
1
+ export declare function registerApp(dbname: string, host: string, machines: number): Promise<number>;
2
2
  //# sourceMappingURL=register-app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register-app.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/register-app.ts"],"names":[],"mappings":"AAIA,wBAAsB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAiClH"}
1
+ {"version":3,"file":"register-app.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/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"}
@@ -7,10 +7,16 @@ exports.registerApp = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
8
  const logs_1 = require("../../telemetry/logs");
9
9
  const utils_1 = require("../utils");
10
- async function registerApp(appName, dbname, host, machines) {
10
+ const node_path_1 = __importDefault(require("node:path"));
11
+ async function registerApp(dbname, host, machines) {
11
12
  const logger = new logs_1.GlobalLogger();
12
13
  const userCredentials = (0, utils_1.getCloudCredentials)();
13
14
  const bearerToken = "Bearer " + userCredentials.token;
15
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
16
+ const packageJson = require(node_path_1.default.join(process.cwd(), 'package.json'));
17
+ const appName = packageJson.name;
18
+ logger.info(`Loaded application name from package.json: ${appName}`);
19
+ logger.info(`Registering application: ${appName}`);
14
20
  try {
15
21
  const register = await axios_1.default.put(`https://${host}/${userCredentials.userName}/application`, {
16
22
  name: appName,
@@ -1 +1 @@
1
- {"version":3,"file":"register-app.js","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/register-app.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAAoD;AACpD,oCAA+C;AAExC,KAAK,UAAU,WAAW,CAAC,OAAe,EAAE,MAAc,EAAE,IAAY,EAAE,QAAgB;IAC/F,MAAM,MAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAA,2BAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,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,OAAO,CAAC,CAAC;IACX,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,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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"}
@@ -2,6 +2,7 @@ export type Application = {
2
2
  Name: string;
3
3
  ID: string;
4
4
  DatabaseName: string;
5
+ Status: string;
5
6
  Version: string;
6
7
  MaxVMs: string;
7
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare function updateApp(appName: string, host: string, machines: number): Promise<number>;
1
+ export declare function updateApp(host: string, machines: number): Promise<number>;
2
2
  //# sourceMappingURL=update-app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-app.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/update-app.ts"],"names":[],"mappings":"AAKA,wBAAsB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkChG"}
1
+ {"version":3,"file":"update-app.d.ts","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/update-app.ts"],"names":[],"mappings":"AAMA,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAwC/E"}
@@ -7,10 +7,16 @@ exports.updateApp = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
8
  const logs_1 = require("../../telemetry/logs");
9
9
  const utils_1 = require("../utils");
10
- async function updateApp(appName, host, machines) {
10
+ const node_path_1 = __importDefault(require("node:path"));
11
+ async function updateApp(host, machines) {
11
12
  const logger = new logs_1.GlobalLogger();
12
13
  const userCredentials = (0, utils_1.getCloudCredentials)();
13
14
  const bearerToken = "Bearer " + userCredentials.token;
15
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
16
+ const packageJson = require(node_path_1.default.join(process.cwd(), 'package.json'));
17
+ const appName = packageJson.name;
18
+ logger.info(`Loaded application name from package.json: ${appName}`);
19
+ logger.info(`Updating application: ${appName}`);
14
20
  try {
15
21
  logger.info(`Updating application ${appName} to ${machines} machines`);
16
22
  const update = await axios_1.default.patch(`https://${host}/${userCredentials.userName}/application/${appName}`, {
@@ -1 +1 @@
1
- {"version":3,"file":"update-app.js","sourceRoot":"","sources":["../../../../src/cloud-cli/applications/update-app.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAAoD;AACpD,oCAA+C;AAGxC,KAAK,UAAU,SAAS,CAAC,OAAe,EAAE,IAAY,EAAE,QAAgB;IAC7E,MAAM,MAAM,GAAI,IAAI,mBAAY,EAAE,CAAC;IACnC,MAAM,eAAe,GAAG,IAAA,2BAAmB,GAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;IAEtD,IAAI,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,wBAAwB,OAAO,OAAO,QAAQ,WAAW,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,eAAK,CAAC,KAAK,CAC9B,WAAW,IAAI,IAAI,eAAe,CAAC,QAAQ,gBAAgB,OAAO,EAAE,EACpE;YACE,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,QAAQ;SAClB,EACD;YACE,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,WAAW;aAC3B;SACF,CACF,CAAC;QACF,MAAM,WAAW,GAAgB,MAAM,CAAC,IAAmB,CAAC;QAC5D,MAAM,CAAC,IAAI,CAAC,yBAAyB,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAC9I,OAAO,C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WAAW,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,eAAK,CAAC,KAAK,CAC9B,WAAW,IAAI,IAAI,eAAe,CAAC,QAAQ,gBAAgB,OAAO,EAAE,EACpE;YACE,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,QAAQ;SAClB,EACD;YACE,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,WAAW;aAC3B;SACF,CACF,CAAC;QACF,MAAM,WAAW,GAAgB,MAAM,CAAC,IAAmB,CAAC;QAC5D,MAAM,CAAC,IAAI,CAAC,yBAAyB,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAC9I,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"}
@@ -49,40 +49,36 @@ const applicationCommands = program
49
49
  applicationCommands
50
50
  .command('register')
51
51
  .description('Register a new application')
52
- .requiredOption('-n, --name <string>', 'Specify the app name')
53
52
  .requiredOption('-d, --database <string>', 'Specify the app database name')
54
53
  .option('-m, --machines <string>', 'Number of VMs to deploy', '1')
55
54
  .action(async (options) => {
56
55
  const { host } = applicationCommands.opts();
57
- const exitCode = await (0, applications_1.registerApp)(options.name, options.database, host, parseInt(options.machines));
56
+ const exitCode = await (0, applications_1.registerApp)(options.database, host, parseInt(options.machines));
58
57
  process.exit(exitCode);
59
58
  });
60
59
  applicationCommands
61
60
  .command('update')
62
61
  .description('Update an application')
63
- .requiredOption('-n, --name <string>', 'Specify the app name')
64
62
  .requiredOption('-m, --machines <string>', 'Number of VMs to deploy')
65
63
  .action(async (options) => {
66
64
  const { host } = applicationCommands.opts();
67
- const exitCode = await (0, applications_1.updateApp)(options.name, host, parseInt(options.machines));
65
+ const exitCode = await (0, applications_1.updateApp)(host, parseInt(options.machines));
68
66
  process.exit(exitCode);
69
67
  });
70
68
  applicationCommands
71
69
  .command('deploy')
72
70
  .description('Deploy an application code to the cloud')
73
- .requiredOption('-n, --name <string>', 'Specify the app name')
74
- .action(async (options) => {
71
+ .action(async () => {
75
72
  const { host } = applicationCommands.opts();
76
- const exitCode = await (0, applications_1.deployAppCode)(options.name, host);
73
+ const exitCode = await (0, applications_1.deployAppCode)(host);
77
74
  process.exit(exitCode);
78
75
  });
79
76
  applicationCommands
80
77
  .command('delete')
81
78
  .description('Delete a previously deployed application')
82
- .requiredOption('-n, --name <string>', 'Specify the app name')
83
- .action(async (options) => {
79
+ .action(async () => {
84
80
  const { host } = applicationCommands.opts();
85
- const exitCode = await (0, applications_1.deleteApp)(options.name, host);
81
+ const exitCode = await (0, applications_1.deleteApp)(host);
86
82
  process.exit(exitCode);
87
83
  });
88
84
  applicationCommands
@@ -96,10 +92,9 @@ applicationCommands
96
92
  applicationCommands
97
93
  .command('logs')
98
94
  .description('Print the microVM logs of a deployed application')
99
- .requiredOption('-n, --name <string>', 'Specify the app name')
100
- .action(async (options) => {
95
+ .action(async () => {
101
96
  const { host } = applicationCommands.opts();
102
- const exitCode = await (0, applications_1.getAppLogs)(options.name, host);
97
+ const exitCode = await (0, applications_1.getAppLogs)(host);
103
98
  process.exit(exitCode);
104
99
  });
105
100
  //////////////////////////////
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/cloud-cli/cli.ts"],"names":[],"mappings":";;;AAEA,kDAOyB;AACzB,yCAAoC;AACpC,mCAAgC;AAChC,yCAA0C;AAC1C,qCAA6F;AAC7F,mCAA2C;AAE3C,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,CAAwB,CAAC;AAC5E,OAAO;IACL,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAE/B,qBAAqB;AACrB,qBAAqB;AACrB,qBAAqB;AAErB,OAAO;KACJ,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,sBAAsB,CAAC;KACnC,cAAc,CAAC,yBAAyB,EAAE,UAAU,CAAC;KACrD,MAAM,CAAC,KAAK,EAAE,OAA6B,EAAE,EAAE;IAC9C,MAAM,QAAQ,GAAG,MAAM,IAAA,aAAK,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/C,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACzB,CAAC,CAAC,CAAC;AAEL,OAAO;KACJ,OAAO,CAAC,UAAU,CAAC;KACnB,WAAW,CAAC,0CAA0C,CAAC;KACvD,cAAc,CAAC,yBAAyB,EAAE,UAAU,CAAC;KACrD,MAAM,CAAC,qBAAqB,EAAE,kBAAkB,EAAE,YAAY,CAAC;KAC/D,MAAM,CAAC,KAAK,EAAE,OAA0C,EAAE,EAAE;IAC3D,IAAI,CAAC,IAAA,wBAAgB,GAAE,EAAE,CAAC;QACxB,M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AAK,6BAAgC;gBAE7B,OAAO,EAAE,EAAE,CAAC,OAAO;IAK/B,KAAK,IAAI,SAAS,SAAS,EAAE,GAAG,SAAS;CAsH1C;AAED,wBAAsB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CA4BvG"}
@@ -70,6 +70,11 @@ class TypeParser {
70
70
  const module = decl.parent.parent.moduleSpecifier;
71
71
  return { name: name.getText(), module: module.text };
72
72
  }
73
+ if (typescript_1.default.isImportClause(decl)) {
74
+ const name = pae.name;
75
+ const module = decl.parent.moduleSpecifier;
76
+ return { name: name.getText(), module: module.text };
77
+ }
73
78
  }
74
79
  return undefined;
75
80
  }
@@ -79,7 +84,6 @@ class TypeParser {
79
84
  const pae = node.expression.expression;
80
85
  // Let's imagine a module is the expression
81
86
  const { name, module } = this.#getImportSpecifierFromPAE(pae, this.#checker) ?? {};
82
- //console.log("PROPERTY ACCESS: "+printAst(pae) + " ---- "+`${mod?.module}.${mod?.name}`);
83
87
  return { name, module, args: node.expression.arguments };
84
88
  }
85
89
  if (typescript_1.default.isIdentifier(node.expression.expression)) {
@@ -1 +1 @@
1
- {"version":3,"file":"TypeParser.js","sourceRoot":"","sources":["../../../src/staticAnalysis/TypeParser.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA4B;AAC5B,6CAAgE;AAChE,0DAA6B;AAC7B,gEAAkC;AA8BlC,SAAS,cAAc,CAAC,IAA0B;IAChD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC;IAClC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,oBAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAChE,CAAC;AAED,MAAa,UAAU;IACZ,QAAQ,CAAa;IACrB,QAAQ,CAAiB;IACzB,MAAM,GAAG,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;YACpD,CAAC;YACD,OAAO,GAAG,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AACjD,CAAC;AA5BD,0CA4BC"}
@@ -13,7 +13,7 @@ import { SystemDatabase } from "../system_database";
13
13
  /**
14
14
  * Create a testing runtime. Warn: this function will drop the existing system DB and create a clean new one. Don't run tests against your production database!
15
15
  */
16
- export declare function createTestingRuntime(userClasses: object[], configFilePath?: string): Promise<TestingRuntime>;
16
+ export declare function createTestingRuntime(userClasses: object[], configFilePath?: string, dropSysDB?: boolean): Promise<TestingRuntime>;
17
17
  export interface WorkflowInvokeParams {
18
18
  readonly authenticatedUser?: string;
19
19
  readonly authenticatedRoles?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"testing_runtime.d.ts","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;;AACA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAmB,MAAM,YAAY,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAY,cAAc,EAAkB,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,cAAc,GAAE,MAA2B,GAAG,OAAO,CAAC,cAAc,CAAC,CAiBtI;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,iBAAiB,C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E,CAAC;IAK3D,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;OAEG;IACH,WAAW,IAAI,YAAY;CAM5B"}
@@ -12,19 +12,21 @@ const pg_1 = require("pg");
12
12
  /**
13
13
  * Create a testing runtime. Warn: this function will drop the existing system DB and create a clean new one. Don't run tests against your production database!
14
14
  */
15
- async function createTestingRuntime(userClasses, configFilePath = config_1.dbosConfigFilePath) {
15
+ async function createTestingRuntime(userClasses, configFilePath = config_1.dbosConfigFilePath, dropSysDB = true) {
16
16
  const [dbosConfig] = (0, config_1.parseConfigFile)({ configfile: configFilePath });
17
- // Drop system database. Testing runtime always uses Postgres for local testing.
18
- const pgSystemClient = new pg_1.Client({
19
- user: dbosConfig.poolConfig.user,
20
- port: dbosConfig.poolConfig.port,
21
- host: dbosConfig.poolConfig.host,
22
- password: dbosConfig.poolConfig.password,
23
- database: dbosConfig.poolConfig.database,
24
- });
25
- await pgSystemClient.connect();
26
- await pgSystemClient.query(`DROP DATABASE IF EXISTS ${dbosConfig.system_database};`);
27
- await pgSystemClient.end();
17
+ if (dropSysDB) {
18
+ // Drop system database. Testing runtime always uses Postgres for local testing.
19
+ const pgSystemClient = new pg_1.Client({
20
+ user: dbosConfig.poolConfig.user,
21
+ port: dbosConfig.poolConfig.port,
22
+ host: dbosConfig.poolConfig.host,
23
+ password: dbosConfig.poolConfig.password,
24
+ database: dbosConfig.poolConfig.database,
25
+ });
26
+ await pgSystemClient.connect();
27
+ await pgSystemClient.query(`DROP DATABASE IF EXISTS ${dbosConfig.system_database};`);
28
+ await pgSystemClient.end();
29
+ }
28
30
  const otr = createInternalTestRuntime(userClasses, dbosConfig, undefined);
29
31
  return otr;
30
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"testing_runtime.js","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AAGA,wCAA0D;AAC1D,8CAAwD;AACxD,oC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AU,EAAE,KAAc,EAAE,cAAuB;QACjH,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;IAClF,CAAC;IAED,KAAK,CAAC,QAAQ,CAA6B,YAAoB,EAAE,GAAW,EAAE,iBAAyB,4BAAY,CAAC,6BAA6B;QAC/I,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB,CAAI,YAAoB;QACtC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,WAAW,CAAI,GAAW,EAAE,GAAG,MAAa;QAChD,iEAAiE;QACjE,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IACxD,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,IAAI,iBAAS,CAAC,qEAAqE,CAAC,CAAC;QAC7F,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC/B,CAAC;CACF;AAhID,gDAgIC"}
@@ -14,4 +14,3 @@ database:
14
14
  user_dbclient: 'knex'
15
15
  migrate: ['migrate:latest']
16
16
  rollback: ['migrate:rollback']
17
- version: "1.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "0.8.22-preview",
3
+ "version": "0.8.26-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {