@koda-sl/baker-cli 0.132.0-dev.cad5e0bc7 → 0.132.1

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.
Files changed (32) hide show
  1. package/README.md +95 -271
  2. package/dist/chunk-7I2POXSJ.js +153 -0
  3. package/dist/chunk-7I2POXSJ.js.map +1 -0
  4. package/dist/{chunk-AVJ3B6LC.js → chunk-BFZELBTE.js} +4 -4
  5. package/dist/{chunk-5LCTMZJ5.js → chunk-MWR25ZMU.js} +28 -5
  6. package/dist/chunk-MWR25ZMU.js.map +1 -0
  7. package/dist/{chunk-ISFSUDEQ.js → chunk-PEBP6G74.js} +3 -3
  8. package/dist/chunk-RK67WL4O.js +72 -0
  9. package/dist/{chunk-YTEAWSEM.js.map → chunk-RK67WL4O.js.map} +1 -1
  10. package/dist/{chunk-K47Q73CK.js → chunk-SCI57ZZ6.js} +40 -4
  11. package/dist/chunk-SCI57ZZ6.js.map +1 -0
  12. package/dist/cli.js +2596 -2139
  13. package/dist/cli.js.map +1 -1
  14. package/dist/client-N7XWYCHT.js +15 -0
  15. package/dist/engine/index.js +3 -2
  16. package/dist/env-3JMYIH25.js +11 -0
  17. package/dist/{output-2LGBISBQ.js → output-7M5VQPTZ.js} +5 -5
  18. package/dist/{shared-CQC3YRBA.js → shared-6SZHAUM2.js} +6 -6
  19. package/package.json +1 -1
  20. package/dist/chunk-5LCTMZJ5.js.map +0 -1
  21. package/dist/chunk-5WRI5ZAA.js +0 -31
  22. package/dist/chunk-K47Q73CK.js.map +0 -1
  23. package/dist/chunk-YTEAWSEM.js +0 -39
  24. package/dist/client-PGOTU24X.js +0 -15
  25. package/dist/env-TD4VXCQ7.js +0 -10
  26. package/dist/shared-CQC3YRBA.js.map +0 -1
  27. /package/dist/{chunk-AVJ3B6LC.js.map → chunk-BFZELBTE.js.map} +0 -0
  28. /package/dist/{chunk-ISFSUDEQ.js.map → chunk-PEBP6G74.js.map} +0 -0
  29. /package/dist/{chunk-5WRI5ZAA.js.map → client-N7XWYCHT.js.map} +0 -0
  30. /package/dist/{client-PGOTU24X.js.map → env-3JMYIH25.js.map} +0 -0
  31. /package/dist/{env-TD4VXCQ7.js.map → output-7M5VQPTZ.js.map} +0 -0
  32. /package/dist/{output-2LGBISBQ.js.map → shared-6SZHAUM2.js.map} +0 -0
@@ -1,11 +1,15 @@
1
+ import {
2
+ debugLogHttp,
3
+ readBodyForLog
4
+ } from "./chunk-7I2POXSJ.js";
1
5
  import {
2
6
  __commonJS,
3
7
  __toESM
4
- } from "./chunk-5WRI5ZAA.js";
8
+ } from "./chunk-RK67WL4O.js";
5
9
 
6
- // ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/810146e81bae4e3a061fe487864f2fde80c4b03b886877dc0f1fffbc6480b67e/node_modules/safe-stable-stringify/index.js
10
+ // ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js
7
11
  var require_safe_stable_stringify = __commonJS({
8
- "../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/810146e81bae4e3a061fe487864f2fde80c4b03b886877dc0f1fffbc6480b67e/node_modules/safe-stable-stringify/index.js"(exports, module) {
12
+ "../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js"(exports, module) {
9
13
  "use strict";
10
14
  var { hasOwnProperty } = Object.prototype;
11
15
  var stringify = configure2();
@@ -679,6 +683,7 @@ var HttpClient = class {
679
683
  else signal.addEventListener("abort", onAbort, { once: true });
680
684
  }
681
685
  const timer = setTimeout(() => controller.abort(new Error("timeout")), this.timeoutMs);
686
+ const startedAt = Date.now();
682
687
  try {
683
688
  const res = await this.fetchFn(url, {
684
689
  method,
@@ -686,11 +691,29 @@ var HttpClient = class {
686
691
  body: method === "GET" ? void 0 : JSON.stringify(body),
687
692
  signal: controller.signal
688
693
  });
694
+ debugLogHttp({
695
+ source: "canvas",
696
+ method,
697
+ url,
698
+ requestBody: method === "GET" ? void 0 : body,
699
+ status: res.status,
700
+ ok: res.ok,
701
+ responseBody: await readBodyForLog(res),
702
+ durationMs: Date.now() - startedAt
703
+ });
689
704
  if (res.ok) return { kind: "value", value: await res.json() };
690
705
  const err = await parseErrorBody(res);
691
706
  if (attempt < this.maxRetries && shouldRetry(err)) return { kind: "retry" };
692
707
  return { kind: "throw", error: new BackendHttpError(err) };
693
708
  } catch (e) {
709
+ debugLogHttp({
710
+ source: "canvas",
711
+ method,
712
+ url,
713
+ requestBody: method === "GET" ? void 0 : body,
714
+ durationMs: Date.now() - startedAt,
715
+ error: e
716
+ });
694
717
  return this.handleAttemptException(e, attempt, signal, method);
695
718
  } finally {
696
719
  clearTimeout(timer);
@@ -979,7 +1002,7 @@ function describeCause(c) {
979
1002
  }
980
1003
  }
981
1004
 
982
- // ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/810146e81bae4e3a061fe487864f2fde80c4b03b886877dc0f1fffbc6480b67e/node_modules/safe-stable-stringify/esm/wrapper.js
1005
+ // ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/esm/wrapper.js
983
1006
  var import__ = __toESM(require_safe_stable_stringify(), 1);
984
1007
  var configure = import__.default.configure;
985
1008
  var wrapper_default = import__.default;
@@ -7696,4 +7719,4 @@ export {
7696
7719
  defaultRegistry,
7697
7720
  createEngineFromEnv
7698
7721
  };
7699
- //# sourceMappingURL=chunk-5LCTMZJ5.js.map
7722
+ //# sourceMappingURL=chunk-MWR25ZMU.js.map