trigger.dev 3.0.0-beta.12 → 3.0.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -800,7 +800,7 @@ import invariant from "tiny-invariant";
800
800
  import { z as z4 } from "zod";
801
801
 
802
802
  // package.json
803
- var version = "3.0.0-beta.12";
803
+ var version = "3.0.0-beta.13";
804
804
  var dependencies = {
805
805
  "@clack/prompts": "^0.7.0",
806
806
  "@depot/cli": "0.0.1-cli.2.55.0",
@@ -816,7 +816,7 @@ var dependencies = {
816
816
  "@opentelemetry/sdk-trace-base": "^1.22.0",
817
817
  "@opentelemetry/sdk-trace-node": "^1.22.0",
818
818
  "@opentelemetry/semantic-conventions": "^1.22.0",
819
- "@trigger.dev/core": "workspace:^3.0.0-beta.12",
819
+ "@trigger.dev/core": "workspace:^3.0.0-beta.13",
820
820
  "@types/degit": "^2.8.3",
821
821
  chalk: "^5.2.0",
822
822
  chokidar: "^3.5.3",
@@ -4660,6 +4660,9 @@ var BackgroundWorker = class {
4660
4660
  reject(new Error(`Worker exited with code ${code}`));
4661
4661
  }
4662
4662
  });
4663
+ child.stdout?.on("data", (data) => {
4664
+ logger.log(data.toString());
4665
+ });
4663
4666
  });
4664
4667
  this._initialized = true;
4665
4668
  }
@@ -4953,10 +4956,14 @@ var TaskRunProcess = class {
4953
4956
  }
4954
4957
  #handleLog(data) {
4955
4958
  if (!this._currentExecution) {
4959
+ logger.log(`${chalkGrey("\u25CB")} ${chalkGrey(prettyPrintDate(/* @__PURE__ */ new Date()))} ${data.toString()}`);
4956
4960
  return;
4957
4961
  }
4962
+ const runId = chalkRun(
4963
+ `${this._currentExecution.run.id}.${this._currentExecution.attempt.number}`
4964
+ );
4958
4965
  logger.log(
4959
- `[${this.metadata.version}][${this._currentExecution.run.id}.${this._currentExecution.attempt.number}] ${data.toString()}`
4966
+ `${chalkGrey("\u25CB")} ${chalkGrey(prettyPrintDate(/* @__PURE__ */ new Date()))} ${runId} ${data.toString()}`
4960
4967
  );
4961
4968
  }
4962
4969
  #handleStdErr(data) {
@@ -4964,11 +4971,14 @@ var TaskRunProcess = class {
4964
4971
  return;
4965
4972
  }
4966
4973
  if (!this._currentExecution) {
4967
- logger.error(`[${this.metadata.version}] ${data.toString()}`);
4974
+ logger.log(`${chalkError("\u25CB")} ${chalkGrey(prettyPrintDate(/* @__PURE__ */ new Date()))} ${data.toString()}`);
4968
4975
  return;
4969
4976
  }
4970
- logger.error(
4971
- `[${this.metadata.version}][${this._currentExecution.run.id}.${this._currentExecution.attempt.number}] ${data.toString()}`
4977
+ const runId = chalkRun(
4978
+ `${this._currentExecution.run.id}.${this._currentExecution.attempt.number}`
4979
+ );
4980
+ logger.log(
4981
+ `${chalkError("\u25CB")} ${chalkGrey(prettyPrintDate(/* @__PURE__ */ new Date()))} ${runId} ${data.toString()}`
4972
4982
  );
4973
4983
  }
4974
4984
  #kill() {