@tailor-platform/sdk 1.81.0 → 1.82.0

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/CHANGELOG.md +10 -0
  2. package/dist/application-CP0W2sQo.mjs +3 -0
  3. package/dist/{application-DDe0er6L.mjs → application-CVeA53ok.mjs} +24 -8
  4. package/dist/application-CVeA53ok.mjs.map +1 -0
  5. package/dist/cli/index.mjs +9 -9
  6. package/dist/cli/lib.mjs +2 -2
  7. package/dist/cli/skills.mjs +1 -1
  8. package/dist/completion/zsh-worker.zsh +1 -1
  9. package/dist/configure/config/types.d.mts +3 -1
  10. package/dist/{crashreport-BNWUM6Kf.mjs → crashreport-DMYuHnBN.mjs} +2 -2
  11. package/dist/{crashreport-BNWUM6Kf.mjs.map → crashreport-DMYuHnBN.mjs.map} +1 -1
  12. package/dist/{crashreport-BafWvjjX.mjs → crashreport-ecqnz51B.mjs} +1 -1
  13. package/dist/{logger-BwS4ppwO.mjs → logger-CXQq9YIp.mjs} +110 -13
  14. package/dist/logger-CXQq9YIp.mjs.map +1 -0
  15. package/dist/{logger-B-fqZe2W.mjs → logger-t5ASCDZm.mjs} +6 -7
  16. package/dist/{logger-B-fqZe2W.mjs.map → logger-t5ASCDZm.mjs.map} +1 -1
  17. package/dist/{register-typescript-runtime-QAWucsg0.mjs → register-typescript-runtime-O7zQNif0.mjs} +7 -11
  18. package/dist/{register-typescript-runtime-QAWucsg0.mjs.map → register-typescript-runtime-O7zQNif0.mjs.map} +1 -1
  19. package/dist/runtime/index.mjs +1 -1
  20. package/dist/runtime/logger.mjs +1 -1
  21. package/dist/{service-CDPatibu.mjs → service-B0MaodSg.mjs} +2 -2
  22. package/dist/{service-CDPatibu.mjs.map → service-B0MaodSg.mjs.map} +1 -1
  23. package/dist/{service-Cp0I7ZFe.mjs → service-CIGSGg9I.mjs} +2 -2
  24. package/dist/{service-Cp0I7ZFe.mjs.map → service-CIGSGg9I.mjs.map} +1 -1
  25. package/dist/service-KnAiVofD.mjs +3 -0
  26. package/dist/vitest/mocks/file.d.mts +1 -1
  27. package/docs/configuration.md +3 -1
  28. package/package.json +2 -2
  29. package/dist/application-B1_7Wm37.mjs +0 -3
  30. package/dist/application-DDe0er6L.mjs.map +0 -1
  31. package/dist/logger-BwS4ppwO.mjs.map +0 -1
  32. package/dist/service-Cg7Qibit.mjs +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.82.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1866](https://github.com/tailor-platform/sdk/pull/1866) [`1ae2485`](https://github.com/tailor-platform/sdk/commit/1ae24854f049ac51036842bacf4f35eb74ecd50c) Thanks [@toiroakr](https://github.com/toiroakr)! - `logLevel` now also controls `logger.*` calls (from `@tailor-platform/sdk/runtime`) in bundled functions, in addition to `console.*`. `logger.debug`/`logger.info`/`logger.warn`/`logger.error` are dropped at the same thresholds as their `console` counterparts.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#1848](https://github.com/tailor-platform/sdk/pull/1848) [`6f16760`](https://github.com/tailor-platform/sdk/commit/6f167606f01d3eacf157e81f7b7f4c6026b2dc99) Thanks [@toiroakr](https://github.com/toiroakr)! - Replaced the `table` dependency (heavy transitive deps, low OpenSSF Scorecard) with an in-house single-line box-drawing table renderer used by the CLI's tabular output (`logger.out`, `formatTable`/`formatKeyValueTable`/`formatTableWithHeaders`). Column width calculation now uses the small, dependency-free `get-east-asian-width` package for correct alignment with full-width (CJK) characters. No user-facing behavior change is expected.
12
+
3
13
  ## 1.81.0
4
14
 
5
15
  ### Minor Changes
@@ -0,0 +1,3 @@
1
+ import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-CVeA53ok.mjs";
2
+
3
+ export { defineApplication, generatePluginFilesIfNeeded };
@@ -1,7 +1,7 @@
1
1
  import { n as isSdkBranded } from "./brand-Eo4pLXPJ.mjs";
2
2
  import { t as assertDefined } from "./assert-DBxo8jPo.mjs";
3
- import { a as parseBoolean, n as logger, r as styles } from "./logger-BwS4ppwO.mjs";
4
- import { a as TailorFieldSchema, i as AuthInvokerSchema, n as ExecutorSchema, o as loadFilesWithIgnores, r as AuthConfigSchema, s as functionSchema, t as createExecutorService } from "./service-CDPatibu.mjs";
3
+ import { a as parseBoolean, n as logger, r as styles } from "./logger-CXQq9YIp.mjs";
4
+ import { a as TailorFieldSchema, i as AuthInvokerSchema, n as ExecutorSchema, o as loadFilesWithIgnores, r as AuthConfigSchema, s as functionSchema, t as createExecutorService } from "./service-B0MaodSg.mjs";
5
5
  import { t as multiline } from "./multiline-sfHpTZZK.mjs";
6
6
  import { t as isPluginGeneratedType } from "./type-source-DH_LH20p.mjs";
7
7
  import { t as userAgent } from "./user-agent-DX2Jnw0-.mjs";
@@ -260,7 +260,7 @@ function retryInterceptor() {
260
260
  logger.debug(`retry: ${req.method.name} returned AlreadyExists on attempt ${i + 1}; treating as success (prior attempt likely committed)`);
261
261
  return synthesizeEmptyUnaryResponse(req);
262
262
  }
263
- const { reportCrash } = await import("./crashreport-BafWvjjX.mjs");
263
+ const { reportCrash } = await import("./crashreport-ecqnz51B.mjs");
264
264
  await reportCrash(error, "handledError");
265
265
  }
266
266
  if (req.method.name !== "CreateWorkspace" && isRetirable(error, req.method.idempotency)) {
@@ -2057,20 +2057,36 @@ const DEBUG_LEVEL_CONSOLE_METHODS = [
2057
2057
  ];
2058
2058
  const WARN_LEVEL_CONSOLE_METHODS = ["console.warn"];
2059
2059
  const ERROR_LEVEL_CONSOLE_METHODS = ["console.error"];
2060
+ const DEBUG_LEVEL_LOGGER_METHODS = ["globalThis.tailor.logger.debug"];
2061
+ const INFO_LEVEL_LOGGER_METHODS = ["globalThis.tailor.logger.info"];
2062
+ const WARN_LEVEL_LOGGER_METHODS = ["globalThis.tailor.logger.warn"];
2063
+ const ERROR_LEVEL_LOGGER_METHODS = ["globalThis.tailor.logger.error"];
2060
2064
  const MANUAL_PURE_FUNCTIONS_BY_LOG_LEVEL = {
2061
2065
  DEBUG: [],
2062
- INFO: DEBUG_LEVEL_CONSOLE_METHODS,
2063
- WARN: [...DEBUG_LEVEL_CONSOLE_METHODS, ...INFO_LEVEL_CONSOLE_METHODS],
2066
+ INFO: [...DEBUG_LEVEL_CONSOLE_METHODS, ...DEBUG_LEVEL_LOGGER_METHODS],
2067
+ WARN: [
2068
+ ...DEBUG_LEVEL_CONSOLE_METHODS,
2069
+ ...INFO_LEVEL_CONSOLE_METHODS,
2070
+ ...DEBUG_LEVEL_LOGGER_METHODS,
2071
+ ...INFO_LEVEL_LOGGER_METHODS
2072
+ ],
2064
2073
  ERROR: [
2065
2074
  ...DEBUG_LEVEL_CONSOLE_METHODS,
2066
2075
  ...INFO_LEVEL_CONSOLE_METHODS,
2067
- ...WARN_LEVEL_CONSOLE_METHODS
2076
+ ...WARN_LEVEL_CONSOLE_METHODS,
2077
+ ...DEBUG_LEVEL_LOGGER_METHODS,
2078
+ ...INFO_LEVEL_LOGGER_METHODS,
2079
+ ...WARN_LEVEL_LOGGER_METHODS
2068
2080
  ],
2069
2081
  SILENT: [
2070
2082
  ...DEBUG_LEVEL_CONSOLE_METHODS,
2071
2083
  ...INFO_LEVEL_CONSOLE_METHODS,
2072
2084
  ...WARN_LEVEL_CONSOLE_METHODS,
2073
- ...ERROR_LEVEL_CONSOLE_METHODS
2085
+ ...ERROR_LEVEL_CONSOLE_METHODS,
2086
+ ...DEBUG_LEVEL_LOGGER_METHODS,
2087
+ ...INFO_LEVEL_LOGGER_METHODS,
2088
+ ...WARN_LEVEL_LOGGER_METHODS,
2089
+ ...ERROR_LEVEL_LOGGER_METHODS
2074
2090
  ]
2075
2091
  };
2076
2092
  function normalizeBundleLogLevel(value) {
@@ -5741,4 +5757,4 @@ async function loadApplication(params) {
5741
5757
 
5742
5758
  //#endregion
5743
5759
  export { defaultPlatformBaseUrl as A, getPlatformBaseUrl as B, getPluginGenerationDependencies as C, hashContent as D, getDistDir as E, fetchPlatformMachineUserToken as F, rememberPlatformConfigForToken as G, initOperatorClient as H, fetchUserInfo as I, createApplyLimiter as J, resolveStaticWebsiteUrls as K, getConsoleBaseUrl as L, fetchAllTolerant as M, fetchMachineUserToken as N, hashFile as O, fetchPaged as P, getOAuth2ClientId as R, resolveBundleLogLevel as S, createBundleCache as T, isDefaultPlatform as U, initOAuth2Client as V, normalizeBaseUrl as W, LOG_LEVELS as Y, stringifyFunction as _, resolveInlineSourcemap as a, composeFunctionTreeshakeOptions as b, ResolverSchema as c, buildExecutorArgsExpr as d, buildResolverOperationHookExpr as f, TailorDBTypeSchema as g, assertUniqueTailorDBTypeNamesWithExternal as h, resolverBundleKey as i, fetchAll as j, closeConnectionPool as k, HTTP_METHODS as l, assertUniqueLocalTailorDBTypeNames as m, generatePluginFilesIfNeeded as n, WorkflowJobFunctionExecutionPolicySchema as o, buildResolverPermissionAndInputCheckExpr as p, byName as q, loadApplication as r, WorkflowJobSchema as s, defineApplication as t, INVOKER_EXPR as u, resolveTSConfigWithFallback as v, hasGenerationHooks as w, createLogLevelTreeshakeOptions as x, platformBundleDefinePlugin as y, getOrNull as z };
5744
- //# sourceMappingURL=application-DDe0er6L.mjs.map
5760
+ //# sourceMappingURL=application-CVeA53ok.mjs.map