@tailor-platform/sdk 1.25.0 → 1.25.2

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 (91) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/{application-CxDvCZts.mjs → application-BGO3TtXi.mjs} +110 -68
  3. package/dist/application-BGO3TtXi.mjs.map +1 -0
  4. package/dist/application-C0lXqKBr.mjs +9 -0
  5. package/dist/brand-GZnI4eYb.mjs +36 -0
  6. package/dist/brand-GZnI4eYb.mjs.map +1 -0
  7. package/dist/chunk-Cz-A8uMR.mjs +3 -0
  8. package/dist/cli/index.d.mts +2 -3
  9. package/dist/cli/index.mjs +167 -211
  10. package/dist/cli/index.mjs.map +1 -1
  11. package/dist/cli/lib.d.mts +706 -1109
  12. package/dist/cli/lib.mjs +28 -16
  13. package/dist/cli/lib.mjs.map +1 -1
  14. package/dist/cli/skills.mjs +2 -1
  15. package/dist/cli/skills.mjs.map +1 -1
  16. package/dist/configure/index.d.mts +5 -5
  17. package/dist/configure/index.mjs +7 -6
  18. package/dist/configure/index.mjs.map +1 -1
  19. package/dist/{enum-constants-BxdLbhsW.mjs → enum-constants-6uK0VI_s.mjs} +1 -1
  20. package/dist/{enum-constants-BxdLbhsW.mjs.map → enum-constants-6uK0VI_s.mjs.map} +1 -1
  21. package/dist/{env-jndw86T4.d.mts → env-uBeVwE9B.d.mts} +4 -7
  22. package/dist/{file-utils-C2r3AVbI.mjs → file-utils-2T9w20FP.mjs} +1 -1
  23. package/dist/{file-utils-C2r3AVbI.mjs.map → file-utils-2T9w20FP.mjs.map} +1 -1
  24. package/dist/{index-Do7zo7z-.d.mts → index-BD-K97-C.d.mts} +2 -2
  25. package/dist/{index-VZq4IAEK.d.mts → index-CT53egux.d.mts} +2 -2
  26. package/dist/{index-DZRZdh71.d.mts → index-D1J5SfyK.d.mts} +2 -2
  27. package/dist/{index-BUnLWUKQ.d.mts → index-DuZRAsc3.d.mts} +25 -22
  28. package/dist/{index-DoxGF8-i.d.mts → index-cZilKprY.d.mts} +2 -2
  29. package/dist/{interceptor-DVy32eIG.mjs → interceptor-BPiIBTk_.mjs} +2 -1
  30. package/dist/{interceptor-DVy32eIG.mjs.map → interceptor-BPiIBTk_.mjs.map} +1 -1
  31. package/dist/{job-CnLRQFrk.mjs → job-DdfW7vH3.mjs} +4 -4
  32. package/dist/{job-CnLRQFrk.mjs.map → job-DdfW7vH3.mjs.map} +1 -1
  33. package/dist/kysely/index.d.mts +3 -4
  34. package/dist/kysely/index.mjs +1 -0
  35. package/dist/kysely/index.mjs.map +1 -1
  36. package/dist/{kysely-type-DzLBuVp6.mjs → kysely-type-cMNbsQ6k.mjs} +1 -1
  37. package/dist/{kysely-type-DzLBuVp6.mjs.map → kysely-type-cMNbsQ6k.mjs.map} +1 -1
  38. package/dist/package-json-Bj76LPsV.mjs +4 -0
  39. package/dist/{package-json-DnbGCOkg.mjs → package-json-CVUv8Y9T.mjs} +1 -1
  40. package/dist/{package-json-DnbGCOkg.mjs.map → package-json-CVUv8Y9T.mjs.map} +1 -1
  41. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -2
  42. package/dist/plugin/builtin/enum-constants/index.mjs +2 -1
  43. package/dist/plugin/builtin/file-utils/index.d.mts +1 -2
  44. package/dist/plugin/builtin/file-utils/index.mjs +2 -1
  45. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -2
  46. package/dist/plugin/builtin/kysely-type/index.mjs +2 -1
  47. package/dist/plugin/builtin/seed/index.d.mts +1 -2
  48. package/dist/plugin/builtin/seed/index.mjs +2 -1
  49. package/dist/plugin/index.d.mts +2 -3
  50. package/dist/plugin/index.mjs +5 -4
  51. package/dist/plugin/index.mjs.map +1 -1
  52. package/dist/{plugin-3sT6Tcq0.d.mts → plugin-zY5wvV82.d.mts} +117 -225
  53. package/dist/{query-c9RCJduH.mjs → query-CRSZGUmD.mjs} +445 -509
  54. package/dist/query-CRSZGUmD.mjs.map +1 -0
  55. package/dist/{schema-DOx_W_s2.mjs → schema-BePzTFBV.mjs} +10 -10
  56. package/dist/schema-BePzTFBV.mjs.map +1 -0
  57. package/dist/seed/index.d.mts +1 -4
  58. package/dist/seed/index.mjs +1 -0
  59. package/dist/seed/index.mjs.map +1 -1
  60. package/dist/{seed-DkKAheSe.mjs → seed-CCVRLibh.mjs} +24 -10
  61. package/dist/seed-CCVRLibh.mjs.map +1 -0
  62. package/dist/{telemetry-d_lgTL33.mjs → telemetry-0w8OupuQ.mjs} +2 -2
  63. package/dist/{telemetry-d_lgTL33.mjs.map → telemetry-0w8OupuQ.mjs.map} +1 -1
  64. package/dist/telemetry-DDQZRqHK.mjs +4 -0
  65. package/dist/utils/test/index.d.mts +2 -3
  66. package/dist/utils/test/index.mjs +3 -2
  67. package/dist/utils/test/index.mjs.map +1 -1
  68. package/dist/{app-config-QzNOFnEy.d.mts → workflow.generated-v1LXRuB6.d.mts} +19 -22
  69. package/docs/cli/application.md +73 -33
  70. package/docs/cli/auth.md +56 -24
  71. package/docs/cli/completion.md +6 -0
  72. package/docs/cli/executor.md +73 -36
  73. package/docs/cli/function.md +30 -14
  74. package/docs/cli/secret.md +93 -41
  75. package/docs/cli/staticwebsite.md +38 -17
  76. package/docs/cli/tailordb.md +106 -48
  77. package/docs/cli/user.md +74 -10
  78. package/docs/cli/workflow.md +70 -39
  79. package/docs/cli/workspace.md +166 -60
  80. package/docs/cli-reference.md +22 -12
  81. package/docs/services/workflow.md +26 -0
  82. package/package.json +5 -5
  83. package/dist/application-CxDvCZts.mjs.map +0 -1
  84. package/dist/application-EQCsho6Z.mjs +0 -8
  85. package/dist/brand-j6C6_sGq.mjs +0 -28
  86. package/dist/brand-j6C6_sGq.mjs.map +0 -1
  87. package/dist/package-json-BKA36WTo.mjs +0 -3
  88. package/dist/query-c9RCJduH.mjs.map +0 -1
  89. package/dist/schema-DOx_W_s2.mjs.map +0 -1
  90. package/dist/seed-DkKAheSe.mjs.map +0 -1
  91. package/dist/telemetry-J6dpByo2.mjs +0 -3
@@ -0,0 +1,9 @@
1
+ import "./chunk-Cz-A8uMR.mjs";
2
+ import "./brand-GZnI4eYb.mjs";
3
+ import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-BGO3TtXi.mjs";
4
+ import "./package-json-CVUv8Y9T.mjs";
5
+ import "./seed-CCVRLibh.mjs";
6
+ import "./file-utils-2T9w20FP.mjs";
7
+ import "./kysely-type-cMNbsQ6k.mjs";
8
+
9
+ export { defineApplication };
@@ -0,0 +1,36 @@
1
+ //#region src/utils/brand.ts
2
+ const SDK_BRAND = Symbol.for("tailor-platform/sdk");
3
+ /**
4
+ * Adds a non-enumerable SDK brand symbol to the given object (in-place).
5
+ * The brand stores the kind so service loaders can distinguish between
6
+ * different SDK object types (e.g. a type loader skips executors).
7
+ * @param value - The object to brand
8
+ * @param kind - The kind of SDK object
9
+ * @returns The same object with the brand applied
10
+ */
11
+ function brandValue(value, kind) {
12
+ Object.defineProperty(value, SDK_BRAND, {
13
+ value: kind,
14
+ enumerable: false,
15
+ configurable: false,
16
+ writable: false
17
+ });
18
+ return value;
19
+ }
20
+ /**
21
+ * Checks whether the given value has been branded by the SDK.
22
+ * When kind is specified, only returns true if the brand matches that kind.
23
+ * Accepts a single kind or an array of kinds for multi-kind matching.
24
+ * @param value - The value to check
25
+ * @param kind - Optional kind or kinds to match against
26
+ * @returns True if the value has the SDK brand symbol (and matches kind if specified)
27
+ */
28
+ function isSdkBranded(value, kind) {
29
+ if (value === null || typeof value !== "object" || !(SDK_BRAND in value)) return false;
30
+ const stored = value[SDK_BRAND];
31
+ return kind === void 0 || stored === true || (Array.isArray(kind) ? kind.includes(stored) : stored === kind);
32
+ }
33
+
34
+ //#endregion
35
+ export { isSdkBranded as n, brandValue as t };
36
+ //# sourceMappingURL=brand-GZnI4eYb.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand-GZnI4eYb.mjs","names":[],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\nexport type SdkBrandKind = \"tailordb-type\" | \"resolver\" | \"executor\" | \"workflow\" | \"workflow-job\";\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * The brand stores the kind so service loaders can distinguish between\n * different SDK object types (e.g. a type loader skips executors).\n * @param value - The object to brand\n * @param kind - The kind of SDK object\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T, kind: SdkBrandKind): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: kind,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * When kind is specified, only returns true if the brand matches that kind.\n * Accepts a single kind or an array of kinds for multi-kind matching.\n * @param value - The value to check\n * @param kind - Optional kind or kinds to match against\n * @returns True if the value has the SDK brand symbol (and matches kind if specified)\n */\nexport function isSdkBranded(\n value: unknown,\n kind?: SdkBrandKind | readonly SdkBrandKind[],\n): boolean {\n if (value === null || typeof value !== \"object\" || !(SDK_BRAND in value)) return false;\n const stored = (value as Record<symbol, unknown>)[SDK_BRAND];\n // No kind filter → any brand matches. Legacy `true` brand → matches any kind.\n return (\n kind === undefined ||\n stored === true ||\n (Array.isArray(kind) ? kind.includes(stored as SdkBrandKind) : stored === kind)\n );\n}\n"],"mappings":";AAEA,MAAa,YAA2B,OAAO,IAAI,sBAAsB;;;;;;;;;AAYzE,SAAgB,WAA6B,OAAU,MAAuB;AAC5E,QAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;EACX,CAAC;AACF,QAAO;;;;;;;;;;AAWT,SAAgB,aACd,OACA,MACS;AACT,KAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,EAAE,aAAa,OAAQ,QAAO;CACjF,MAAM,SAAU,MAAkC;AAElD,QACE,SAAS,UACT,WAAW,SACV,MAAM,QAAQ,KAAK,GAAG,KAAK,SAAS,OAAuB,GAAG,WAAW"}
@@ -0,0 +1,3 @@
1
+ import { createRequire } from "node:module";
2
+
3
+ export { };
@@ -1,8 +1,7 @@
1
- #!/usr/bin/env node
2
- import * as politty0 from "politty";
1
+ import * as politty from "politty";
3
2
 
4
3
  //#region src/cli/index.d.ts
5
- declare const mainCommand: politty0.NonRunnableCommand<undefined, Record<string, never>>;
4
+ declare const mainCommand: politty.NonRunnableCommand<undefined, Record<string, never>>;
6
5
  //#endregion
7
6
  export { mainCommand };
8
7
  //# sourceMappingURL=index.d.mts.map