@tailor-platform/sdk 1.47.0 → 1.47.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 (64) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{actor-DhXSqWTW.d.mts → actor-jk4-f0yp.d.mts} +2 -2
  3. package/dist/{application-TasSqBTD.mjs → application-C7H7y0hS.mjs} +46 -64
  4. package/dist/application-C7H7y0hS.mjs.map +1 -0
  5. package/dist/application-Csq5jxYP.mjs +4 -0
  6. package/dist/{brand-Ll48SMXe.mjs → brand-D-d15jx3.mjs} +1 -1
  7. package/dist/{brand-Ll48SMXe.mjs.map → brand-D-d15jx3.mjs.map} +1 -1
  8. package/dist/cli/index.mjs +8 -8
  9. package/dist/cli/index.mjs.map +1 -1
  10. package/dist/cli/lib.mjs +3 -3
  11. package/dist/cli/lib.mjs.map +1 -1
  12. package/dist/cli/skills.mjs.map +1 -1
  13. package/dist/{client-DYSkSLRr.mjs → client-DCqdtFte.mjs} +1 -1
  14. package/dist/client-DbyKSN1F.mjs +1061 -0
  15. package/dist/client-DbyKSN1F.mjs.map +1 -0
  16. package/dist/configure/index.d.mts +2 -2
  17. package/dist/configure/index.mjs +5 -5
  18. package/dist/configure/index.mjs.map +1 -1
  19. package/dist/{crashreport-CKJwnWsX.mjs → crashreport-CNSw_BrJ.mjs} +2 -2
  20. package/dist/{crashreport-CKJwnWsX.mjs.map → crashreport-CNSw_BrJ.mjs.map} +1 -1
  21. package/dist/{crashreport-B8lVOx0U.mjs → crashreport-DXGFd16F.mjs} +1 -1
  22. package/dist/enum-constants-C3KSpsYj.mjs.map +1 -1
  23. package/dist/errors-wNQxQQBH.mjs.map +1 -1
  24. package/dist/{field-BY2vbJ8f.mjs → field-DLSIuMTu.mjs} +1 -1
  25. package/dist/{field-BY2vbJ8f.mjs.map → field-DLSIuMTu.mjs.map} +1 -1
  26. package/dist/file-utils-DjNi_3U_.mjs.map +1 -1
  27. package/dist/{index-BoU_52Du.d.mts → index-DB8EapT-.d.mts} +5 -13
  28. package/dist/interceptor-CBsqEWDK.mjs.map +1 -1
  29. package/dist/{job-BOvKyNdT.mjs → job-R5C2Hfcc.mjs} +2 -3
  30. package/dist/job-R5C2Hfcc.mjs.map +1 -0
  31. package/dist/kysely/index.mjs.map +1 -1
  32. package/dist/kysely-type-B8aRz_oC.mjs.map +1 -1
  33. package/dist/logger-DTNAMYGy.mjs.map +1 -1
  34. package/dist/mock-BP-9O5On.mjs.map +1 -1
  35. package/dist/multiline-e3IpANmS.mjs.map +1 -1
  36. package/dist/package-json-6Px8bDpG.mjs.map +1 -1
  37. package/dist/plugin/index.d.mts +1 -1
  38. package/dist/plugin/index.mjs.map +1 -1
  39. package/dist/repl-editor-CZpLlOBj.mjs.map +1 -1
  40. package/dist/{runtime-DDYL2Zf1.mjs → runtime-XjP6JMmP.mjs} +10 -7
  41. package/dist/{runtime-DDYL2Zf1.mjs.map → runtime-XjP6JMmP.mjs.map} +1 -1
  42. package/dist/seed/index.mjs.map +1 -1
  43. package/dist/seed-DrKY5yIF.mjs.map +1 -1
  44. package/dist/service-obEU5gSM.mjs.map +1 -1
  45. package/dist/{tailordb-Bg9-TZj1.mjs → tailordb-DjlNUV6u.mjs} +3 -3
  46. package/dist/{tailordb-Bg9-TZj1.mjs.map → tailordb-DjlNUV6u.mjs.map} +1 -1
  47. package/dist/telemetry-DcL8Fsm_.mjs.map +1 -1
  48. package/dist/types-DoIG6Nij.mjs +5 -0
  49. package/dist/{types-Duhhsx3R.mjs → types-sir9UPht.mjs} +2 -2
  50. package/dist/{types-Duhhsx3R.mjs.map → types-sir9UPht.mjs.map} +1 -1
  51. package/dist/utils/test/index.d.mts +1 -1
  52. package/dist/utils/test/index.mjs +1 -1
  53. package/dist/utils/test/index.mjs.map +1 -1
  54. package/dist/vitest/environment.mjs.map +1 -1
  55. package/dist/vitest/index.mjs.map +1 -1
  56. package/dist/vitest/setup.mjs.map +1 -1
  57. package/docs/services/workflow.md +0 -5
  58. package/package.json +6 -5
  59. package/dist/application-CN9Htzup.mjs +0 -4
  60. package/dist/application-TasSqBTD.mjs.map +0 -1
  61. package/dist/client-COfsXV69.mjs +0 -16447
  62. package/dist/client-COfsXV69.mjs.map +0 -1
  63. package/dist/job-BOvKyNdT.mjs.map +0 -1
  64. package/dist/types-BnphjkIJ.mjs +0 -5
@@ -0,0 +1,4 @@
1
+
2
+ import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-C7H7y0hS.mjs";
3
+
4
+ export { defineApplication };
@@ -34,4 +34,4 @@ function isSdkBranded(value, kind) {
34
34
 
35
35
  //#endregion
36
36
  export { isSdkBranded as n, brandValue as t };
37
- //# sourceMappingURL=brand-Ll48SMXe.mjs.map
37
+ //# sourceMappingURL=brand-D-d15jx3.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand-Ll48SMXe.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 =\n | \"tailordb-type\"\n | \"resolver\"\n | \"executor\"\n | \"workflow\"\n | \"workflow-job\"\n | \"wait-point\";\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;;;;;;;;;AAkBzE,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"}
1
+ {"version":3,"file":"brand-D-d15jx3.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 =\n | \"tailordb-type\"\n | \"resolver\"\n | \"executor\"\n | \"workflow\"\n | \"workflow-job\"\n | \"wait-point\";\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;;;;;;;;;AAkBzE,SAAgB,WAA6B,OAAU,MAAuB;CAC5E,OAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;EACX,CAAC;CACF,OAAO;;;;;;;;;;AAWT,SAAgB,aACd,OACA,MACS;CACT,IAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,EAAE,aAAa,QAAQ,OAAO;CACjF,MAAM,SAAU,MAAkC;CAElD,OACE,SAAS,UACT,WAAW,SACV,MAAM,QAAQ,KAAK,GAAG,KAAK,SAAS,OAAuB,GAAG,WAAW"}
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { G as PATScope, R as AuthInvokerSchema, c as fetchUserInfo, d as initOperatorClient, h as userAgent, i as fetchAll, j as FunctionExecution_Type, n as closeConnectionPool, o as fetchPaged, s as fetchPlatformMachineUserToken, u as initOAuth2Client } from "../client-COfsXV69.mjs";
3
+ import { G as PATScope, R as AuthInvokerSchema, c as fetchUserInfo, d as initOperatorClient, h as userAgent, i as fetchAll, j as FunctionExecution_Type, n as closeConnectionPool, o as fetchPaged, s as fetchPlatformMachineUserToken, u as initOAuth2Client } from "../client-DbyKSN1F.mjs";
4
4
  import { n as logger, r as styles } from "../logger-DTNAMYGy.mjs";
5
- import { $ as deleteCommand$3, At as executionsCommand, C as listCommand$13, Cn as toPageDirection, Ct as jobsCommand, E as resumeCommand, Et as startCommand, F as showCommand, Ft as getCommand$1, G as getCommand$5, H as treeCommand, I as logBetaWarning, Lt as deploy, N as generateCommand$1, Nt as functionExecutionStatusToString, O as listCommand$12, Ot as getCommand$6, Pt as formatKeyValueTable, R as removeCommand$1, Rt as executeScript, Sn as paginationArgs, T as healthCommand, U as listCommand$11, Vt as parseMigrationLabelNumber, Y as listCommand$10, Z as getCommand$4, Zt as formatMigrationNumber, _n as commonArgs, _t as webhookCommand, at as getCommand$3, b as createCommand$4, bn as isVerbose, bt as listCommand$6, c as listCommand$14, ct as tokenCommand, dn as trnPrefix, dt as generate, en as getMigrationFilePath, f as restoreCommand, ft as listCommand$7, g as getCommand$7, gn as defineAppCommand, i as updateCommand$4, in as loadDiff, j as truncateCommand, ln as getNamespacesWithMigrations, lt as listCommand$8, m as listCommand$15, mn as apiCommand, mt as getCommand$2, o as removeCommand, pn as prompt, q as updateCommand$2, r as queryCommand, rn as isValidMigrationNumber, rt as listCommand$9, t as isNativeTypeScriptRuntime, tn as getMigrationFiles, tt as createCommand$3, u as inviteCommand, un as sdkNameLabelKey, v as deleteCommand$4, vn as confirmationArgs, vt as triggerCommand, wn as workspaceArgs, xn as pagedLogArgs, yn as deploymentArgs, z as updateCommand$3 } from "../runtime-DDYL2Zf1.mjs";
6
- import { C as loadWorkspaceId, D as writePlatformConfig, E as saveUserTokens, S as loadAccessToken, T as resolveTokens, _ as getDistDir, a as WorkflowJobSchema, b as deleteUserTokens, c as ExecutorSchema, i as resolveInlineSourcemap, l as INVOKER_EXPR, o as ResolverSchema, w as readPlatformConfig, x as fetchLatestToken, y as loadConfig } from "../application-TasSqBTD.mjs";
5
+ import { $ as deleteCommand$3, At as executionsCommand, C as listCommand$13, Cn as toPageDirection, Ct as jobsCommand, E as resumeCommand, Et as startCommand, F as showCommand, Ft as getCommand$1, G as getCommand$5, H as treeCommand, I as logBetaWarning, Lt as deploy, N as generateCommand$1, Nt as functionExecutionStatusToString, O as listCommand$12, Ot as getCommand$6, Pt as formatKeyValueTable, R as removeCommand$1, Rt as executeScript, Sn as paginationArgs, T as healthCommand, U as listCommand$11, Vt as parseMigrationLabelNumber, Y as listCommand$10, Z as getCommand$4, Zt as formatMigrationNumber, _n as commonArgs, _t as webhookCommand, at as getCommand$3, b as createCommand$4, bn as isVerbose, bt as listCommand$6, c as listCommand$14, ct as tokenCommand, dn as trnPrefix, dt as generate, en as getMigrationFilePath, f as restoreCommand, ft as listCommand$7, g as getCommand$7, gn as defineAppCommand, i as updateCommand$4, in as loadDiff, j as truncateCommand, ln as getNamespacesWithMigrations, lt as listCommand$8, m as listCommand$15, mn as apiCommand, mt as getCommand$2, o as removeCommand, pn as prompt, q as updateCommand$2, r as queryCommand, rn as isValidMigrationNumber, rt as listCommand$9, t as isNativeTypeScriptRuntime, tn as getMigrationFiles, tt as createCommand$3, u as inviteCommand, un as sdkNameLabelKey, v as deleteCommand$4, vn as confirmationArgs, vt as triggerCommand, wn as workspaceArgs, xn as pagedLogArgs, yn as deploymentArgs, z as updateCommand$3 } from "../runtime-XjP6JMmP.mjs";
6
+ import { C as loadWorkspaceId, D as writePlatformConfig, E as saveUserTokens, S as loadAccessToken, T as resolveTokens, _ as getDistDir, a as WorkflowJobSchema, b as deleteUserTokens, c as ExecutorSchema, i as resolveInlineSourcemap, l as INVOKER_EXPR, o as ResolverSchema, w as readPlatformConfig, x as fetchLatestToken, y as loadConfig } from "../application-C7H7y0hS.mjs";
7
7
  import { t as multiline } from "../multiline-e3IpANmS.mjs";
8
8
  import { t as readPackageJson } from "../package-json-6Px8bDpG.mjs";
9
9
  import { n as isCLIError } from "../errors-wNQxQQBH.mjs";
10
- import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crashreport-CKJwnWsX.mjs";
10
+ import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crashreport-CNSw_BrJ.mjs";
11
11
  import { createRequire } from "node:module";
12
12
  import { arg, defineCommand, runCommand, runMain } from "politty";
13
13
  import { withCompletionCommand } from "politty/completion";
@@ -19,10 +19,10 @@ import { dirname, resolve } from "pathe";
19
19
  import { pathToFileURL } from "node:url";
20
20
  import { generateCodeVerifier } from "@badgateway/oauth2-client";
21
21
  import { Code, ConnectError } from "@connectrpc/connect";
22
- import * as http from "node:http";
23
- import * as crypto from "node:crypto";
24
22
  import { resolvePackageJSON, resolveTSConfig } from "pkg-types";
25
23
  import { create } from "@bufbuild/protobuf";
24
+ import * as crypto from "node:crypto";
25
+ import * as http from "node:http";
26
26
  import open from "open";
27
27
  import * as rolldown from "rolldown";
28
28
  import { TraceMap, generatedPositionFor, originalPositionFor } from "@jridgewell/trace-mapping";
@@ -1192,7 +1192,7 @@ async function detectFunctionType(options) {
1192
1192
  const rawInput = module.default.input;
1193
1193
  let inputSchema;
1194
1194
  if (rawInput) {
1195
- const { t } = await import("../types-BnphjkIJ.mjs");
1195
+ const { t } = await import("../types-DoIG6Nij.mjs");
1196
1196
  inputSchema = t.object(rawInput);
1197
1197
  }
1198
1198
  return {
@@ -4189,7 +4189,7 @@ runMain(mainCommand, {
4189
4189
  if (isVerbose() && error.stack) logger.debug(`\nStack trace:\n${error.stack}`);
4190
4190
  } else logger.error(`Unknown error: ${error}`);
4191
4191
  if (!isCLIError(error) && (!(error instanceof Error) || error instanceof TypeError || error instanceof RangeError)) {
4192
- const { reportCrash } = await import("../crashreport-B8lVOx0U.mjs");
4192
+ const { reportCrash } = await import("../crashreport-DXGFd16F.mjs");
4193
4193
  await reportCrash(error, "handledError");
4194
4194
  }
4195
4195
  }