@tailor-platform/sdk 1.31.0 → 1.32.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 (85) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/application-Cwt_ifTT.mjs +12 -0
  3. package/dist/{application-CASjzt3W.mjs → application-p2GujXmg.mjs} +14 -16
  4. package/dist/{application-CASjzt3W.mjs.map → application-p2GujXmg.mjs.map} +1 -1
  5. package/dist/{brand-GZnI4eYb.mjs → brand-0SscafcY.mjs} +2 -1
  6. package/dist/{brand-GZnI4eYb.mjs.map → brand-0SscafcY.mjs.map} +1 -1
  7. package/dist/{chunk-DEt8GZDa.mjs → chunk-COzJYswC.mjs} +1 -0
  8. package/dist/cli/index.d.mts +1 -0
  9. package/dist/cli/index.mjs +31 -33
  10. package/dist/cli/index.mjs.map +1 -1
  11. package/dist/cli/lib.d.mts +7 -6
  12. package/dist/cli/lib.mjs +14 -13
  13. package/dist/cli/lib.mjs.map +1 -1
  14. package/dist/cli/skills.d.mts +1 -0
  15. package/dist/cli/skills.mjs +2 -1
  16. package/dist/cli/skills.mjs.map +1 -1
  17. package/dist/{client-DfdgRZlQ.mjs → client-D5P1myz0.mjs} +6 -5
  18. package/dist/{client-DfdgRZlQ.mjs.map → client-D5P1myz0.mjs.map} +1 -1
  19. package/dist/{client-B0wrLUVK.mjs → client-gpRgZl1b.mjs} +5 -4
  20. package/dist/configure/index.d.mts +5 -4
  21. package/dist/configure/index.mjs +5 -4
  22. package/dist/configure/index.mjs.map +1 -1
  23. package/dist/crash-report-Cm9vFmTN.mjs +7 -0
  24. package/dist/{crash-report-wNxS0IUJ.mjs → crash-report-DnwITWeV.mjs} +5 -4
  25. package/dist/{crash-report-wNxS0IUJ.mjs.map → crash-report-DnwITWeV.mjs.map} +1 -1
  26. package/dist/{enum-constants-D1nfn0qD.mjs → enum-constants-CkKARYb7.mjs} +2 -1
  27. package/dist/{enum-constants-D1nfn0qD.mjs.map → enum-constants-CkKARYb7.mjs.map} +1 -1
  28. package/dist/{env-BgdHfWDn.d.mts → env-BZLTIlIo.d.mts} +3 -2
  29. package/dist/{file-utils-Bctuzn3x.mjs → file-utils-D2TxR_kj.mjs} +2 -1
  30. package/dist/{file-utils-Bctuzn3x.mjs.map → file-utils-D2TxR_kj.mjs.map} +1 -1
  31. package/dist/{index-D4Y81vh1.d.mts → index-BQKAzTPA.d.mts} +3 -2
  32. package/dist/{index-RXv15__b.d.mts → index-BYk_9R3S.d.mts} +5 -4
  33. package/dist/{index-CxgBnxKM.d.mts → index-CgMytw2A.d.mts} +3 -2
  34. package/dist/{index-CdDzh-T2.d.mts → index-CoReoodF.d.mts} +3 -2
  35. package/dist/{index-FZMBoUWm.d.mts → index-vVGamLOw.d.mts} +3 -2
  36. package/dist/{interceptor-DgQNmwWJ.mjs → interceptor-1LL1gBsF.mjs} +3 -2
  37. package/dist/{interceptor-DgQNmwWJ.mjs.map → interceptor-1LL1gBsF.mjs.map} +1 -1
  38. package/dist/{job-DdfW7vH3.mjs → job-CPKYCk_e.mjs} +3 -2
  39. package/dist/{job-DdfW7vH3.mjs.map → job-CPKYCk_e.mjs.map} +1 -1
  40. package/dist/kysely/index.d.mts +1 -0
  41. package/dist/kysely/index.mjs +2 -1
  42. package/dist/kysely/index.mjs.map +1 -1
  43. package/dist/{kysely-type-B_IecdK9.mjs → kysely-type-BK0b4Rqt.mjs} +2 -1
  44. package/dist/{kysely-type-B_IecdK9.mjs.map → kysely-type-BK0b4Rqt.mjs.map} +1 -1
  45. package/dist/{logger-CqezTedh.mjs → logger-qz-Y4sBV.mjs} +2 -1
  46. package/dist/{logger-CqezTedh.mjs.map → logger-qz-Y4sBV.mjs.map} +1 -1
  47. package/dist/package-json-88x7bPKC.mjs +5 -0
  48. package/dist/{package-json-D3x2nBPB.mjs → package-json-VqyFvGiP.mjs} +2 -1
  49. package/dist/{package-json-D3x2nBPB.mjs.map → package-json-VqyFvGiP.mjs.map} +1 -1
  50. package/dist/plugin/builtin/enum-constants/index.d.mts +2 -1
  51. package/dist/plugin/builtin/enum-constants/index.mjs +3 -2
  52. package/dist/plugin/builtin/file-utils/index.d.mts +2 -1
  53. package/dist/plugin/builtin/file-utils/index.mjs +3 -2
  54. package/dist/plugin/builtin/kysely-type/index.d.mts +2 -1
  55. package/dist/plugin/builtin/kysely-type/index.mjs +3 -2
  56. package/dist/plugin/builtin/seed/index.d.mts +2 -1
  57. package/dist/plugin/builtin/seed/index.mjs +3 -2
  58. package/dist/plugin/index.d.mts +3 -2
  59. package/dist/plugin/index.mjs +2 -1
  60. package/dist/plugin/index.mjs.map +1 -1
  61. package/dist/{plugin-DyVYXZWz.d.mts → plugin-IIDZW9GG.d.mts} +2 -1
  62. package/dist/{runtime-Ofe7nHEG.mjs → runtime-7DOyTTxR.mjs} +23 -23
  63. package/dist/runtime-7DOyTTxR.mjs.map +1 -0
  64. package/dist/{schema-CNWt2FKQ.mjs → schema-BITbkmq3.mjs} +3 -2
  65. package/dist/{schema-CNWt2FKQ.mjs.map → schema-BITbkmq3.mjs.map} +1 -1
  66. package/dist/seed/index.d.mts +1 -0
  67. package/dist/seed/index.mjs +2 -1
  68. package/dist/seed/index.mjs.map +1 -1
  69. package/dist/{seed-CWkIDWMb.mjs → seed-BXrSEJbv.mjs} +2 -1
  70. package/dist/{seed-CWkIDWMb.mjs.map → seed-BXrSEJbv.mjs.map} +1 -1
  71. package/dist/{telemetry-BSUlYTs-.mjs → telemetry-B4sp-dD2.mjs} +3 -2
  72. package/dist/{telemetry-BSUlYTs-.mjs.map → telemetry-B4sp-dD2.mjs.map} +1 -1
  73. package/dist/telemetry-DXIGGa6A.mjs +5 -0
  74. package/dist/utils/test/index.d.mts +9 -3
  75. package/dist/utils/test/index.mjs +19 -4
  76. package/dist/utils/test/index.mjs.map +1 -1
  77. package/dist/{workflow.generated-DMQ-cjyT.d.mts → workflow.generated-C2A5Ye0m.d.mts} +3 -2
  78. package/docs/generator/builtin.md +0 -8
  79. package/docs/services/resolver.md +13 -0
  80. package/package.json +12 -11
  81. package/dist/application-B2-PymMz.mjs +0 -11
  82. package/dist/crash-report-BMEhRxeg.mjs +0 -6
  83. package/dist/package-json-DiZWrkIA.mjs +0 -4
  84. package/dist/runtime-Ofe7nHEG.mjs.map +0 -1
  85. package/dist/telemetry-BtN2l0f1.mjs +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.32.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#826](https://github.com/tailor-platform/sdk/pull/826) [`72c2842`](https://github.com/tailor-platform/sdk/commit/72c2842046b2841571e095e10187339fdf66acd5) Thanks [@toiroakr](https://github.com/toiroakr)! - Bundle `@tailor-platform/function-types` as a dependency of `@tailor-platform/sdk`. Users no longer need to install `@tailor-platform/function-types` separately or add it to their `tsconfig.json` types array. The ambient types are automatically available when importing from `@tailor-platform/sdk`.
8
+
9
+ - [#824](https://github.com/tailor-platform/sdk/pull/824) [`f4794c4`](https://github.com/tailor-platform/sdk/commit/f4794c4fed2cf1bec9e472d1ff29ca7748b78881) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency type-fest to v5.5.0
10
+
11
+ - [#825](https://github.com/tailor-platform/sdk/pull/825) [`9e0dc71`](https://github.com/tailor-platform/sdk/commit/9e0dc71bf094ea123f6484a31fb7929579896294) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update oxlint monorepo
12
+
13
+ - [#827](https://github.com/tailor-platform/sdk/pull/827) [`b13e31c`](https://github.com/tailor-platform/sdk/commit/b13e31c981fe368d1bec664c320a02c20e4eb083) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update actions/create-github-app-token action to v3
14
+
15
+ - [#829](https://github.com/tailor-platform/sdk/pull/829) [`e0f68c0`](https://github.com/tailor-platform/sdk/commit/e0f68c054b248086060dd2e22ef8e6af10ef5e95) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dorny/paths-filter action to v4
16
+
17
+ - [#830](https://github.com/tailor-platform/sdk/pull/830) [`cb0c357`](https://github.com/tailor-platform/sdk/commit/cb0c357432bd121c7bb9ebbfc8f711a18b6a4f25) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update eslint monorepo to v10 (major)
18
+
19
+ - [#831](https://github.com/tailor-platform/sdk/pull/831) [`a567c70`](https://github.com/tailor-platform/sdk/commit/a567c70dc22661536e3a2314c6839899cb72a391) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update anthropics/claude-code-action action to v1.0.79
20
+
21
+ - [#836](https://github.com/tailor-platform/sdk/pull/836) [`77cdf5e`](https://github.com/tailor-platform/sdk/commit/77cdf5ed8de3cef96df7587c689c83a6b627381e) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update github artifact actions (major)
22
+
23
+ - [#837](https://github.com/tailor-platform/sdk/pull/837) [`47b3e56`](https://github.com/tailor-platform/sdk/commit/47b3e56300c6df2c1eccbaafa4e320f13d176194) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update pnpm/action-setup action to v5
24
+
25
+ - [#841](https://github.com/tailor-platform/sdk/pull/841) [`c8a9ed6`](https://github.com/tailor-platform/sdk/commit/c8a9ed67bd102caacf155b8a107e468d007c81ab) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency std-env to v4
26
+
27
+ ## 1.32.0
28
+
29
+ ### Minor Changes
30
+
31
+ - [#805](https://github.com/tailor-platform/sdk/pull/805) [`d283a78`](https://github.com/tailor-platform/sdk/commit/d283a7802e2a0aaa6fc31c4ac2c7c3d4dc9654e6) Thanks [@toiroakr](https://github.com/toiroakr)! - Use TailorErrors for resolver input validation errors instead of generic Error, enabling the PF runtime to expand validation issues into individual GraphQL errors with field-level paths.
32
+
33
+ ### Patch Changes
34
+
35
+ - [#813](https://github.com/tailor-platform/sdk/pull/813) [`34b525f`](https://github.com/tailor-platform/sdk/commit/34b525f69b1929394a2b246e4252308710032ee7) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @inquirer/core to v11.1.7
36
+
37
+ - [#828](https://github.com/tailor-platform/sdk/pull/828) [`d42bd97`](https://github.com/tailor-platform/sdk/commit/d42bd979085c800e3a46d73e76cc7c7e8251ecbb) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency knip to v6
38
+
3
39
  ## 1.31.0
4
40
 
5
41
  ### Minor Changes
@@ -0,0 +1,12 @@
1
+
2
+ import "./chunk-COzJYswC.mjs";
3
+ import "./brand-0SscafcY.mjs";
4
+ import "./logger-qz-Y4sBV.mjs";
5
+ import "./client-D5P1myz0.mjs";
6
+ import "./package-json-VqyFvGiP.mjs";
7
+ import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-p2GujXmg.mjs";
8
+ import "./seed-BXrSEJbv.mjs";
9
+ import "./file-utils-D2TxR_kj.mjs";
10
+ import "./kysely-type-BK0b4Rqt.mjs";
11
+
12
+ export { defineApplication };
@@ -1,11 +1,12 @@
1
- import { n as isSdkBranded } from "./brand-GZnI4eYb.mjs";
2
- import { n as logger, r as styles } from "./logger-CqezTedh.mjs";
3
- import { l as initOAuth2Client } from "./client-DfdgRZlQ.mjs";
4
- import { t as readPackageJson } from "./package-json-D3x2nBPB.mjs";
5
- import { n as seedPlugin, r as isPluginGeneratedType, t as SeedGeneratorID } from "./seed-CWkIDWMb.mjs";
6
- import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "./enum-constants-D1nfn0qD.mjs";
7
- import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "./file-utils-Bctuzn3x.mjs";
8
- import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "./kysely-type-B_IecdK9.mjs";
1
+
2
+ import { n as isSdkBranded } from "./brand-0SscafcY.mjs";
3
+ import { n as logger, r as styles } from "./logger-qz-Y4sBV.mjs";
4
+ import { l as initOAuth2Client } from "./client-D5P1myz0.mjs";
5
+ import { t as readPackageJson } from "./package-json-VqyFvGiP.mjs";
6
+ import { n as seedPlugin, r as isPluginGeneratedType, t as SeedGeneratorID } from "./seed-BXrSEJbv.mjs";
7
+ import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "./enum-constants-CkKARYb7.mjs";
8
+ import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "./file-utils-D2TxR_kj.mjs";
9
+ import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "./kysely-type-BK0b4Rqt.mjs";
9
10
  import { createRequire } from "node:module";
10
11
  import { z } from "zod";
11
12
  import * as fs$1 from "node:fs";
@@ -3789,13 +3790,10 @@ async function bundleSingleResolver(resolver, outputDir, tsconfig, triggerContex
3789
3790
  });
3790
3791
 
3791
3792
  if (result.issues) {
3792
- const errorMessages = result.issues
3793
- .map(issue => {
3794
- const path = issue.path ? issue.path.join('.') : '';
3795
- return path ? \` \${path}: \${issue.message}\` : issue.message;
3796
- })
3797
- .join('\\n');
3798
- throw new Error(\`Failed to input validation:\\n\${errorMessages}\`);
3793
+ throw new TailorErrors(result.issues.map(issue => ({
3794
+ message: issue.message,
3795
+ path: issue.path ?? [],
3796
+ })));
3799
3797
  }
3800
3798
  }
3801
3799
 
@@ -4936,4 +4934,4 @@ async function loadApplication(params) {
4936
4934
 
4937
4935
  //#endregion
4938
4936
  export { resolveTokens as C, readPlatformConfig as S, writePlatformConfig as T, hashFile as _, loadConfig as a, loadAccessToken as b, ExecutorSchema as c, TailorDBTypeSchema as d, stringifyFunction as f, getDistDir as g, createBundleCache as h, resolveInlineSourcemap as i, OAuth2ClientSchema as l, loadFilesWithIgnores as m, generatePluginFilesIfNeeded as n, WorkflowJobSchema as o, tailorUserMap as p, loadApplication as r, createExecutorService as s, defineApplication as t, ResolverSchema as u, deleteUserTokens as v, saveUserTokens as w, loadWorkspaceId as x, fetchLatestToken as y };
4939
- //# sourceMappingURL=application-CASjzt3W.mjs.map
4937
+ //# sourceMappingURL=application-p2GujXmg.mjs.map