@tailor-platform/sdk 1.51.2 → 1.53.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.
- package/CHANGELOG.md +61 -0
- package/dist/{actor-Nag62ZDM.d.mts → actor-DwAh0Dij.d.mts} +3 -8
- package/dist/application-Cmz1Y7X_.mjs +4 -0
- package/dist/{application-Z-fNwyZB.mjs → application-DF74unzA.mjs} +11 -11
- package/dist/{application-Z-fNwyZB.mjs.map → application-DF74unzA.mjs.map} +1 -1
- package/dist/{authconnection-BUko4V6H.mjs → authconnection-D8SJGMpj.mjs} +2 -2
- package/dist/{authconnection-BUko4V6H.mjs.map → authconnection-D8SJGMpj.mjs.map} +1 -1
- package/dist/{authconnection-BDFTabLQ.d.mts → authconnection-TsdLYaLs.d.mts} +1 -1
- package/dist/{brand-Ll48SMXe.mjs → brand-DlnJ375c.mjs} +1 -1
- package/dist/{brand-Ll48SMXe.mjs.map → brand-DlnJ375c.mjs.map} +1 -1
- package/dist/cli/index.d.mts +1 -3
- package/dist/cli/index.mjs +16 -16
- package/dist/cli/lib.d.mts +8 -9
- package/dist/cli/lib.mjs +8 -8
- package/dist/cli/skills.mjs +1 -1
- package/dist/client-CGO7gniI.mjs +1061 -0
- package/dist/{client-BwV17byk.mjs.map → client-CGO7gniI.mjs.map} +1 -1
- package/dist/{client-D_a50aIg.mjs → client-yfFdZU9s.mjs} +1 -1
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +4 -4
- package/dist/{context-BXDgEQK9.d.mts → context-CUBwSBq4.d.mts} +1 -1
- package/dist/{context-BP5BUdcq.mjs → context-s0lxhu8_.mjs} +2 -2
- package/dist/{context-BP5BUdcq.mjs.map → context-s0lxhu8_.mjs.map} +1 -1
- package/dist/{crashreport-DauPOrKn.mjs → crashreport-DGdAgX8Y.mjs} +5 -5
- package/dist/{crashreport-DauPOrKn.mjs.map → crashreport-DGdAgX8Y.mjs.map} +1 -1
- package/dist/{crashreport-C4EbRoku.mjs → crashreport-DnwIxpzF.mjs} +1 -1
- package/dist/{enum-constants-DI85-fPE.mjs → enum-constants-C7DaWeQo.mjs} +1 -1
- package/dist/{enum-constants-DI85-fPE.mjs.map → enum-constants-C7DaWeQo.mjs.map} +1 -1
- package/dist/env-B-g-qgE4.d.mts +7 -0
- package/dist/{errors-C4cJ0M2K.mjs → errors-EsY4XO6O.mjs} +1 -1
- package/dist/{errors-C4cJ0M2K.mjs.map → errors-EsY4XO6O.mjs.map} +1 -1
- package/dist/{field-BY2vbJ8f.mjs → field-C4zdJLW5.mjs} +1 -1
- package/dist/{field-BY2vbJ8f.mjs.map → field-C4zdJLW5.mjs.map} +1 -1
- package/dist/{file-BE5Sy7lP.mjs → file-B58Dm-2P.mjs} +19 -4
- package/dist/file-B58Dm-2P.mjs.map +1 -0
- package/dist/{file-Dc4_QrlQ.d.mts → file-VTJbbOL3.d.mts} +49 -5
- package/dist/{file-utils-BM8t5jCy.mjs → file-utils-BHPxPXmn.mjs} +2 -2
- package/dist/{file-utils-BM8t5jCy.mjs.map → file-utils-BHPxPXmn.mjs.map} +1 -1
- package/dist/{iconv-BFNfdlIS.d.mts → iconv-Chu6Hit2.d.mts} +1 -1
- package/dist/{iconv-D0yL88Il.mjs → iconv-DreIffeM.mjs} +2 -2
- package/dist/{iconv-D0yL88Il.mjs.map → iconv-DreIffeM.mjs.map} +1 -1
- package/dist/{idp-B1b4O7ia.d.mts → idp-CbxR6A_0.d.mts} +1 -1
- package/dist/{idp-CM7N7iID.mjs → idp-Ch95ag8h.mjs} +2 -2
- package/dist/{idp-CM7N7iID.mjs.map → idp-Ch95ag8h.mjs.map} +1 -1
- package/dist/{index-CYAZkd4b.d.mts → index-BCJtNXKo.d.mts} +2 -2
- package/dist/{index-aiIbrFGw.d.mts → index-BIbKrme4.d.mts} +2 -2
- package/dist/{index-BXwAT_oE.d.mts → index-BL5LQnBX.d.mts} +2 -2
- package/dist/{index-CfSjuxzK.d.mts → index-DW6gAGmC.d.mts} +2 -2
- package/dist/{index-Dy3ZH5Wm.d.mts → index-ECerapTN.d.mts} +8 -8
- package/dist/{index-BD99GoHO.d.mts → index-UySZfxON.d.mts} +8 -6
- package/dist/{interceptor-Cr3kZWMc.mjs → interceptor-DOqRkCya.mjs} +1 -1
- package/dist/{interceptor-Cr3kZWMc.mjs.map → interceptor-DOqRkCya.mjs.map} +1 -1
- package/dist/{job-4GOnasfT.mjs → job-CEAJLiGp.mjs} +8 -5
- package/dist/job-CEAJLiGp.mjs.map +1 -0
- package/dist/kysely/index.mjs.map +1 -1
- package/dist/{kysely-type-BUoVDC5r.mjs → kysely-type-D1e0Vwkd.mjs} +2 -2
- package/dist/{kysely-type-BUoVDC5r.mjs.map → kysely-type-D1e0Vwkd.mjs.map} +1 -1
- package/dist/{logger-B1g4I9wT.mjs → logger-DpJyJvNz.mjs} +1 -1
- package/dist/{logger-B1g4I9wT.mjs.map → logger-DpJyJvNz.mjs.map} +1 -1
- package/dist/{mock-B2t5gDMl.mjs → mock-B6PI49C_.mjs} +44 -2
- package/dist/mock-B6PI49C_.mjs.map +1 -0
- package/dist/{multiline-G1yF18OH.mjs → multiline-Cf9ODpr1.mjs} +1 -1
- package/dist/{multiline-G1yF18OH.mjs.map → multiline-Cf9ODpr1.mjs.map} +1 -1
- package/dist/{package-json-ZL0MkZOO.mjs → package-json-DcQApfPQ.mjs} +1 -1
- package/dist/{package-json-ZL0MkZOO.mjs.map → package-json-DcQApfPQ.mjs.map} +1 -1
- package/dist/package-json-wzO6nV9O.mjs +4 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.d.mts +3 -2
- package/dist/{repl-editor-yAjwS5_M.mjs → repl-editor-ihh8koiR.mjs} +1 -1
- package/dist/{repl-editor-yAjwS5_M.mjs.map → repl-editor-ihh8koiR.mjs.map} +1 -1
- package/dist/runtime/authconnection.d.mts +1 -1
- package/dist/runtime/authconnection.mjs +1 -1
- package/dist/runtime/context.d.mts +1 -1
- package/dist/runtime/context.mjs +1 -1
- package/dist/runtime/file.d.mts +2 -2
- package/dist/runtime/file.mjs +2 -2
- package/dist/runtime/globals.d.mts +6 -6
- package/dist/runtime/iconv.d.mts +1 -1
- package/dist/runtime/iconv.mjs +1 -1
- package/dist/runtime/idp.d.mts +1 -1
- package/dist/runtime/idp.mjs +1 -1
- package/dist/runtime/index.d.mts +8 -8
- package/dist/runtime/index.mjs +7 -7
- package/dist/runtime/secretmanager.d.mts +1 -1
- package/dist/runtime/secretmanager.mjs +1 -1
- package/dist/runtime/workflow.d.mts +1 -1
- package/dist/runtime/workflow.mjs +1 -1
- package/dist/{runtime-1NlbDNN0.mjs → runtime-D-3AE1x-.mjs} +264 -42
- package/dist/runtime-D-3AE1x-.mjs.map +1 -0
- package/dist/{schema-DBq6hr6h.mjs → schema-CQrYG_55.mjs} +3 -3
- package/dist/{schema-DBq6hr6h.mjs.map → schema-CQrYG_55.mjs.map} +1 -1
- package/dist/{secret-file-DnbmTWec.mjs → secret-file-CWzF8rry.mjs} +1 -1
- package/dist/{secret-file-DnbmTWec.mjs.map → secret-file-CWzF8rry.mjs.map} +1 -1
- package/dist/{secretmanager-CQTTuCmn.mjs → secretmanager-B9h-U_8U.mjs} +2 -2
- package/dist/{secretmanager-CQTTuCmn.mjs.map → secretmanager-B9h-U_8U.mjs.map} +1 -1
- package/dist/{secretmanager-Cjq3s2aU.d.mts → secretmanager-BhpDmxwT.d.mts} +1 -1
- package/dist/{seed-kNk-xLoB.mjs → seed-DfLyRh63.mjs} +2 -2
- package/dist/{seed-kNk-xLoB.mjs.map → seed-DfLyRh63.mjs.map} +1 -1
- package/dist/{service-DHgJ4YEF.mjs → service-aPT0fx3y.mjs} +3 -3
- package/dist/{service-DHgJ4YEF.mjs.map → service-aPT0fx3y.mjs.map} +1 -1
- package/dist/{tailor-db-field-BhWvOyky.d.mts → tailor-db-field-Y_zEoGu1.d.mts} +1 -1
- package/dist/{telemetry-C8xKz3GM.mjs → telemetry-BQbbVo2t.mjs} +2 -2
- package/dist/{telemetry-C8xKz3GM.mjs.map → telemetry-BQbbVo2t.mjs.map} +1 -1
- package/dist/telemetry-w92bvGdC.mjs +4 -0
- package/dist/test-env-key-CSnK4W1Y.mjs +30 -0
- package/dist/test-env-key-CSnK4W1Y.mjs.map +1 -0
- package/dist/{types-Duhhsx3R.mjs → types-BinLwXM9.mjs} +2 -2
- package/dist/{types-Duhhsx3R.mjs.map → types-BinLwXM9.mjs.map} +1 -1
- package/dist/types-UeXbHFXW.mjs +5 -0
- package/dist/utils/test/index.d.mts +3 -3
- package/dist/utils/test/index.mjs +1 -1
- package/dist/vitest/environment.mjs +1 -1
- package/dist/vitest/index.d.mts +7 -7
- package/dist/vitest/index.mjs +1 -1
- package/dist/vitest/setup.mjs +1 -1
- package/dist/{workflow-DJRr-0nl.mjs → workflow--aPbA8Uq.mjs} +2 -2
- package/dist/{workflow-DJRr-0nl.mjs.map → workflow--aPbA8Uq.mjs.map} +1 -1
- package/dist/{workflow-DV_88JEf.d.mts → workflow-dYYH7QFa.d.mts} +1 -1
- package/dist/{workflow.generated-DV87DJfO.d.mts → workflow.generated-BIY41La-.d.mts} +2 -2
- package/docs/cli/application.md +15 -6
- package/docs/cli/completion.md +5 -3
- package/docs/runtime.md +1 -1
- package/docs/testing.md +34 -14
- package/package.json +14 -14
- package/dist/application-Bcx-FbDE.mjs +0 -4
- package/dist/client-BwV17byk.mjs +0 -1061
- package/dist/file-BE5Sy7lP.mjs.map +0 -1
- package/dist/job-4GOnasfT.mjs.map +0 -1
- package/dist/mock-B2t5gDMl.mjs.map +0 -1
- package/dist/package-json-CAGKAJff.mjs +0 -4
- package/dist/runtime-1NlbDNN0.mjs.map +0 -1
- package/dist/telemetry-DQl47E1s.mjs +0 -4
- package/dist/types-BnphjkIJ.mjs +0 -5
- /package/dist/{chunk-DLeslSnM.mjs → chunk-BkoGK1jX.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { t as __exportAll } from "./chunk-
|
|
2
|
+
import { t as __exportAll } from "./chunk-BkoGK1jX.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/runtime/authconnection.ts
|
|
5
5
|
var authconnection_exports = /* @__PURE__ */ __exportAll({ getConnectionToken: () => getConnectionToken });
|
|
@@ -13,4 +13,4 @@ const getConnectionToken = (...args) => api().getConnectionToken(...args);
|
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { getConnectionToken as n, authconnection_exports as t };
|
|
16
|
-
//# sourceMappingURL=authconnection-
|
|
16
|
+
//# sourceMappingURL=authconnection-D8SJGMpj.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authconnection-
|
|
1
|
+
{"version":3,"file":"authconnection-D8SJGMpj.mjs","names":[],"sources":["../src/runtime/authconnection.ts"],"sourcesContent":["/**\n * Auth connection utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.authconnection` runtime API.\n * At runtime this delegates to `globalThis.tailor.authconnection`. Use\n * `authconnectionMock` from `@tailor-platform/sdk/vitest` to mock in unit tests.\n * @example\n * import { authconnection } from \"@tailor-platform/sdk/runtime\";\n *\n * const token = await authconnection.getConnectionToken(\"my-connection\");\n */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/**\n * Platform API surface for `tailor.authconnection`. Describes the shape the\n * platform runtime injects on `globalThis.tailor.authconnection`.\n *\n * Each method below is also re-exported as a top-level named export from this\n * module so callers can either `import * as authconnection from\n * \"@tailor-platform/sdk/runtime/authconnection\"` or pick individual methods.\n */\nexport interface TailorAuthconnectionAPI {\n /**\n * Returns the access token for the given auth connection.\n * @param connectionName - Auth connection name as defined in tailor.config\n * @returns Token payload (provider-specific shape)\n */\n getConnectionToken(connectionName: string): Promise<any>;\n}\n\nconst api = (): TailorAuthconnectionAPI =>\n (globalThis as { tailor: { authconnection: TailorAuthconnectionAPI } }).tailor.authconnection;\n\n/**\n * See {@link TailorAuthconnectionAPI.getConnectionToken}.\n * @param args - Forwarded to {@link TailorAuthconnectionAPI.getConnectionToken}\n * @returns Token payload (provider-specific shape)\n */\nexport const getConnectionToken: TailorAuthconnectionAPI[\"getConnectionToken\"] = (...args) =>\n api().getConnectionToken(...args);\n"],"mappings":";;;;;AA+BA,MAAM,YACH,WAAuE,OAAO;;;;;;AAOjF,MAAa,sBAAqE,GAAG,SACnF,IAAI,EAAE,mBAAmB,GAAG,IAAI"}
|
|
@@ -36,4 +36,4 @@ interface TailorAuthconnectionAPI {
|
|
|
36
36
|
declare const getConnectionToken: TailorAuthconnectionAPI["getConnectionToken"];
|
|
37
37
|
//#endregion
|
|
38
38
|
export { authconnection_d_exports as n, getConnectionToken as r, TailorAuthconnectionAPI as t };
|
|
39
|
-
//# sourceMappingURL=authconnection-
|
|
39
|
+
//# sourceMappingURL=authconnection-TsdLYaLs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-
|
|
1
|
+
{"version":3,"file":"brand-DlnJ375c.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,qBAAqB;;;;;;;;;AAkBxE,SAAgB,WAA6B,OAAU,MAAuB;CAC5E,OAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;CACZ,CAAC;CACD,OAAO;AACT;;;;;;;;;AAUA,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,IAAI,IAAI,KAAK,SAAS,MAAsB,IAAI,WAAW;AAE9E"}
|
package/dist/cli/index.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as _$politty from "politty";
|
|
2
|
-
|
|
3
1
|
//#region src/cli/index.d.ts
|
|
4
|
-
declare const mainCommand:
|
|
2
|
+
declare const mainCommand: import("politty").NonRunnableCommand<undefined, Record<string, never>>;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { mainCommand };
|
|
7
5
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
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-
|
|
4
|
-
import { n as logger, r as styles } from "../logger-
|
|
5
|
-
import { $ as listCommand$10, An as workspaceArgs, At as startCommand, B as logBetaWarning, C as listCommand$13, Cn as configArg, Dn as pagedLogArgs, Dt as jobsCommand, E as resumeCommand, En as isVerbose, F as writeDbTypesFile, Gt as parseMigrationLabelNumber, H as removeCommand$1, Ht as executeScript, I as getConfiguredEditorCommand, K as treeCommand, L as openInConfiguredEditor, Lt as functionExecutionStatusToString, Mt as getCommand$6, N as generateCommand$1, O as listCommand$12, On as paginationArgs, P as generateMigrationScript, Pt as executionsCommand, Rt as formatKeyValueTable, Sn as commonArgs, St as triggerCommand, T as healthCommand, Tn as deploymentArgs, U as updateCommand$3, Vt as deploy, Y as getCommand$5, Yt as INITIAL_SCHEMA_NUMBER, Z as updateCommand$2, _n as prompt, an as getMigrationFiles, at as createCommand$3, b as createCommand$4, bn as assertWritable, c as listCommand$14, cn as loadDiff, f as restoreCommand, ft as tokenCommand, g as getCommand$7, gt as listCommand$7, hn as trnPrefix, ht as generate, i as updateCommand$4, in as getMigrationFilePath, j as truncateCommand, kn as toPageDirection, ln as reconstructSnapshotFromMigrations, lt as getCommand$3, m as listCommand$15, mn as sdkNameLabelKey, o as removeCommand, pn as getNamespacesWithMigrations, pt as listCommand$8, q as listCommand$11, r as queryCommand, rt as deleteCommand$3, sn as isValidMigrationNumber, st as listCommand$9, t as isNativeTypeScriptRuntime, tn as formatMigrationNumber, tt as getCommand$4, u as inviteCommand, v as deleteCommand$4, vn as apiCommand, vt as getCommand$2, wn as confirmationArgs, wt as listCommand$6, xn as defineAppCommand, xt as webhookCommand, z as showCommand, zt as getCommand$1 } from "../runtime-
|
|
6
|
-
import { D as saveUserTokens, E as resolveTokens, O as writePlatformConfig, S as loadAccessToken, T as readPlatformConfig, _ as getDistDir, a as WorkflowJobSchema, b as deleteUserTokens, c as ExecutorSchema, i as resolveInlineSourcemap, l as INVOKER_EXPR, o as ResolverSchema, w as loadWorkspaceId, x as fetchLatestToken, y as loadConfig } from "../application-
|
|
7
|
-
import { t as multiline } from "../multiline-
|
|
8
|
-
import { t as readPackageJson } from "../package-json-
|
|
9
|
-
import { n as isCLIError } from "../errors-
|
|
10
|
-
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crashreport-
|
|
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-CGO7gniI.mjs";
|
|
4
|
+
import { n as logger, r as styles } from "../logger-DpJyJvNz.mjs";
|
|
5
|
+
import { $ as listCommand$10, An as workspaceArgs, At as startCommand, B as logBetaWarning, C as listCommand$13, Cn as configArg, Dn as pagedLogArgs, Dt as jobsCommand, E as resumeCommand, En as isVerbose, F as writeDbTypesFile, Gt as parseMigrationLabelNumber, H as removeCommand$1, Ht as executeScript, I as getConfiguredEditorCommand, K as treeCommand, L as openInConfiguredEditor, Lt as functionExecutionStatusToString, Mt as getCommand$6, N as generateCommand$1, O as listCommand$12, On as paginationArgs, P as generateMigrationScript, Pt as executionsCommand, Rt as formatKeyValueTable, Sn as commonArgs, St as triggerCommand, T as healthCommand, Tn as deploymentArgs, U as updateCommand$3, Vt as deploy, Y as getCommand$5, Yt as INITIAL_SCHEMA_NUMBER, Z as updateCommand$2, _n as prompt, an as getMigrationFiles, at as createCommand$3, b as createCommand$4, bn as assertWritable, c as listCommand$14, cn as loadDiff, f as restoreCommand, ft as tokenCommand, g as getCommand$7, gt as listCommand$7, hn as trnPrefix, ht as generate, i as updateCommand$4, in as getMigrationFilePath, j as truncateCommand, kn as toPageDirection, ln as reconstructSnapshotFromMigrations, lt as getCommand$3, m as listCommand$15, mn as sdkNameLabelKey, o as removeCommand, pn as getNamespacesWithMigrations, pt as listCommand$8, q as listCommand$11, r as queryCommand, rt as deleteCommand$3, sn as isValidMigrationNumber, st as listCommand$9, t as isNativeTypeScriptRuntime, tn as formatMigrationNumber, tt as getCommand$4, u as inviteCommand, v as deleteCommand$4, vn as apiCommand, vt as getCommand$2, wn as confirmationArgs, wt as listCommand$6, xn as defineAppCommand, xt as webhookCommand, z as showCommand, zt as getCommand$1 } from "../runtime-D-3AE1x-.mjs";
|
|
6
|
+
import { D as saveUserTokens, E as resolveTokens, O as writePlatformConfig, S as loadAccessToken, T as readPlatformConfig, _ as getDistDir, a as WorkflowJobSchema, b as deleteUserTokens, c as ExecutorSchema, i as resolveInlineSourcemap, l as INVOKER_EXPR, o as ResolverSchema, w as loadWorkspaceId, x as fetchLatestToken, y as loadConfig } from "../application-DF74unzA.mjs";
|
|
7
|
+
import { t as multiline } from "../multiline-Cf9ODpr1.mjs";
|
|
8
|
+
import { t as readPackageJson } from "../package-json-DcQApfPQ.mjs";
|
|
9
|
+
import { n as isCLIError } from "../errors-EsY4XO6O.mjs";
|
|
10
|
+
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crashreport-DGdAgX8Y.mjs";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import { arg, defineCommand, runCommand, runMain } from "politty";
|
|
13
13
|
import { withCompletionCommand } from "politty/completion";
|
|
14
14
|
import { z } from "zod";
|
|
15
|
+
import { create } from "@bufbuild/protobuf";
|
|
15
16
|
import * as fs$1 from "node:fs";
|
|
16
17
|
import { timestampDate } from "@bufbuild/protobuf/wkt";
|
|
17
18
|
import * as path from "pathe";
|
|
@@ -20,7 +21,6 @@ import { pathToFileURL } from "node:url";
|
|
|
20
21
|
import { generateCodeVerifier } from "@badgateway/oauth2-client";
|
|
21
22
|
import { Code, ConnectError } from "@connectrpc/connect";
|
|
22
23
|
import { resolvePackageJSON, resolveTSConfig } from "pkg-types";
|
|
23
|
-
import { create } from "@bufbuild/protobuf";
|
|
24
24
|
import * as crypto from "node:crypto";
|
|
25
25
|
import * as http from "node:http";
|
|
26
26
|
import open from "open";
|
|
@@ -392,7 +392,7 @@ const deployCommand$1 = defineAppCommand({
|
|
|
392
392
|
}).strict(),
|
|
393
393
|
run: async (args) => {
|
|
394
394
|
await assertWritable({ profile: args.profile });
|
|
395
|
-
const { initTelemetry } = await import("../telemetry-
|
|
395
|
+
const { initTelemetry } = await import("../telemetry-w92bvGdC.mjs");
|
|
396
396
|
await initTelemetry();
|
|
397
397
|
await deploy({
|
|
398
398
|
workspaceId: args["workspace-id"],
|
|
@@ -1196,7 +1196,7 @@ async function detectFunctionType(options) {
|
|
|
1196
1196
|
const rawInput = module.default.input;
|
|
1197
1197
|
let inputSchema;
|
|
1198
1198
|
if (rawInput) {
|
|
1199
|
-
const { t } = await import("../types-
|
|
1199
|
+
const { t } = await import("../types-UeXbHFXW.mjs");
|
|
1200
1200
|
inputSchema = t.object(rawInput);
|
|
1201
1201
|
}
|
|
1202
1202
|
return {
|
|
@@ -1569,7 +1569,7 @@ const generateCommand = defineAppCommand({
|
|
|
1569
1569
|
})
|
|
1570
1570
|
}).strict(),
|
|
1571
1571
|
run: async (args) => {
|
|
1572
|
-
const { initTelemetry } = await import("../telemetry-
|
|
1572
|
+
const { initTelemetry } = await import("../telemetry-w92bvGdC.mjs");
|
|
1573
1573
|
await initTelemetry();
|
|
1574
1574
|
await generate({
|
|
1575
1575
|
configPath: args.config,
|
|
@@ -3880,9 +3880,9 @@ const upgradeCommand = defineAppCommand({
|
|
|
3880
3880
|
})
|
|
3881
3881
|
}).strict(),
|
|
3882
3882
|
run: async (args) => {
|
|
3883
|
-
const { initTelemetry } = await import("../telemetry-
|
|
3883
|
+
const { initTelemetry } = await import("../telemetry-w92bvGdC.mjs");
|
|
3884
3884
|
await initTelemetry();
|
|
3885
|
-
const { upgrade } = await import("../service-
|
|
3885
|
+
const { upgrade } = await import("../service-aPT0fx3y.mjs");
|
|
3886
3886
|
await upgrade({
|
|
3887
3887
|
from: args.from,
|
|
3888
3888
|
dryRun: args["dry-run"],
|
|
@@ -4301,11 +4301,11 @@ runMain(mainCommand, {
|
|
|
4301
4301
|
if (isVerbose() && error.stack) logger.debug(`\nStack trace:\n${error.stack}`);
|
|
4302
4302
|
} else logger.error(`Unknown error: ${error}`);
|
|
4303
4303
|
if (!isCLIError(error) && (!(error instanceof Error) || error instanceof TypeError || error instanceof RangeError)) {
|
|
4304
|
-
const { reportCrash } = await import("../crashreport-
|
|
4304
|
+
const { reportCrash } = await import("../crashreport-DnwIxpzF.mjs");
|
|
4305
4305
|
await reportCrash(error, "handledError");
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
|
-
const { shutdownTelemetry } = await import("../telemetry-
|
|
4308
|
+
const { shutdownTelemetry } = await import("../telemetry-w92bvGdC.mjs");
|
|
4309
4309
|
await shutdownTelemetry();
|
|
4310
4310
|
}
|
|
4311
4311
|
});
|
package/dist/cli/lib.d.mts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { N as TailorDBType, P as TypeSourceInfoEntry, Q as Resolver, _t as IdProvider, ct as IncomingWebhookTrigger, o as Plugin, rt as Executor, s as PluginAttachment, ut as ScheduleTriggerInput, vt as OAuth2ClientInput } from "../tailor-db-field-
|
|
2
|
-
import { r as AppConfig } from "../workflow.generated-
|
|
3
|
-
import { n as kyselyTypePlugin } from "../index-
|
|
4
|
-
import { n as enumConstantsPlugin } from "../index-
|
|
5
|
-
import { n as fileUtilsPlugin } from "../index-
|
|
6
|
-
import { n as seedPlugin } from "../index-
|
|
1
|
+
import { N as TailorDBType, P as TypeSourceInfoEntry, Q as Resolver, _t as IdProvider, ct as IncomingWebhookTrigger, o as Plugin, rt as Executor, s as PluginAttachment, ut as ScheduleTriggerInput, vt as OAuth2ClientInput } from "../tailor-db-field-Y_zEoGu1.mjs";
|
|
2
|
+
import { r as AppConfig } from "../workflow.generated-BIY41La-.mjs";
|
|
3
|
+
import { n as kyselyTypePlugin } from "../index-BIbKrme4.mjs";
|
|
4
|
+
import { n as enumConstantsPlugin } from "../index-DW6gAGmC.mjs";
|
|
5
|
+
import { n as fileUtilsPlugin } from "../index-BL5LQnBX.mjs";
|
|
6
|
+
import { n as seedPlugin } from "../index-BCJtNXKo.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
|
-
import
|
|
8
|
+
import { JsonObject, Message } from "@bufbuild/protobuf";
|
|
9
9
|
import { GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
10
10
|
import { Duration, FieldMask, Timestamp, Value } from "@bufbuild/protobuf/wkt";
|
|
11
11
|
import { OAuth2Client } from "@badgateway/oauth2-client";
|
|
12
12
|
import { Client } from "@connectrpc/connect";
|
|
13
|
-
import { JsonObject, Message } from "@bufbuild/protobuf";
|
|
14
13
|
import { Jsonifiable } from "type-fest";
|
|
15
14
|
|
|
16
15
|
//#region ../tailor-proto/src/tailor/v1/workspace_resource_pb.d.ts
|
|
@@ -16434,7 +16433,7 @@ type OperatorClient = Client<typeof OperatorService>;
|
|
|
16434
16433
|
* @param accessToken - Access token for authentication
|
|
16435
16434
|
* @returns Configured Operator client
|
|
16436
16435
|
*/
|
|
16437
|
-
declare function initOperatorClient(accessToken: string): Promise<Client<
|
|
16436
|
+
declare function initOperatorClient(accessToken: string): Promise<Client<import("@bufbuild/protobuf/codegenv2").GenService<{
|
|
16438
16437
|
ping: {
|
|
16439
16438
|
methodKind: "unary";
|
|
16440
16439
|
input: typeof PingRequestSchema;
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { d as initOperatorClient } from "../client-
|
|
3
|
-
import { $t as compareSnapshots, A as truncate, Bt as getExecutor, Ct as triggerExecutor, D as resumeWorkflow, Et as getExecutorJob, Ft as getWorkflowExecution, G as organizationTree, Ht as executeScript, It as listWorkflowExecutions, J as listOrganizations, Jt as DIFF_FILE_NAME, Kt as bundleMigrationScript, M as generate$1, Nt as getWorkflow, Ot as listExecutorJobs, Q as updateFolder, Qt as compareLocalTypesWithSnapshot, R as show, S as listApps, Tt as listExecutors, Ut as waitForExecution, V as remove, Vt as deploy, W as updateOrganization, Wt as MIGRATION_LABEL_KEY, X as getOrganization, Xt as MIGRATE_FILE_NAME, Yt as INITIAL_SCHEMA_NUMBER, Zt as SCHEMA_FILE_NAME, _ as getWorkspace, _t as listFunctionRegistries, a as updateUser, an as getMigrationFiles, bt as listWebhookExecutors, ct as listOAuth2Clients, d as inviteUser, dn as formatMigrationDiff, dt as getMachineUserToken, en as createSnapshotFromLocalTypes, et as listFolders, fn as hasChanges, gn as generateUserTypes, h as listWorkspaces, ht as generate, in as getMigrationFilePath, it as deleteFolder, jt as startWorkflow, k as listWorkflows, kt as watchExecutorJob, l as listUsers, ln as reconstructSnapshotFromMigrations, mt as listMachineUsers, n as query, nn as getLatestMigrationNumber, nt as getFolder, on as getNextMigrationNumber, ot as createFolder, p as restoreWorkspace, pn as getNamespacesWithMigrations, qt as DB_TYPES_FILE_NAME, rn as getMigrationDirPath, s as removeUser, t as isNativeTypeScriptRuntime, un as formatDiffSummary, ut as getOAuth2Client, w as getAppHealth, x as createWorkspace, y as deleteWorkspace, yn as apiCall, yt as getFunctionRegistry } from "../runtime-
|
|
4
|
-
import { S as loadAccessToken, _ as getDistDir, w as loadWorkspaceId, y as loadConfig } from "../application-
|
|
5
|
-
import { n as enumConstantsPlugin } from "../enum-constants-
|
|
6
|
-
import { t as multiline } from "../multiline-
|
|
7
|
-
import { n as fileUtilsPlugin } from "../file-utils-
|
|
8
|
-
import { n as kyselyTypePlugin } from "../kysely-type-
|
|
9
|
-
import { n as seedPlugin } from "../seed-
|
|
2
|
+
import { d as initOperatorClient } from "../client-CGO7gniI.mjs";
|
|
3
|
+
import { $t as compareSnapshots, A as truncate, Bt as getExecutor, Ct as triggerExecutor, D as resumeWorkflow, Et as getExecutorJob, Ft as getWorkflowExecution, G as organizationTree, Ht as executeScript, It as listWorkflowExecutions, J as listOrganizations, Jt as DIFF_FILE_NAME, Kt as bundleMigrationScript, M as generate$1, Nt as getWorkflow, Ot as listExecutorJobs, Q as updateFolder, Qt as compareLocalTypesWithSnapshot, R as show, S as listApps, Tt as listExecutors, Ut as waitForExecution, V as remove, Vt as deploy, W as updateOrganization, Wt as MIGRATION_LABEL_KEY, X as getOrganization, Xt as MIGRATE_FILE_NAME, Yt as INITIAL_SCHEMA_NUMBER, Zt as SCHEMA_FILE_NAME, _ as getWorkspace, _t as listFunctionRegistries, a as updateUser, an as getMigrationFiles, bt as listWebhookExecutors, ct as listOAuth2Clients, d as inviteUser, dn as formatMigrationDiff, dt as getMachineUserToken, en as createSnapshotFromLocalTypes, et as listFolders, fn as hasChanges, gn as generateUserTypes, h as listWorkspaces, ht as generate, in as getMigrationFilePath, it as deleteFolder, jt as startWorkflow, k as listWorkflows, kt as watchExecutorJob, l as listUsers, ln as reconstructSnapshotFromMigrations, mt as listMachineUsers, n as query, nn as getLatestMigrationNumber, nt as getFolder, on as getNextMigrationNumber, ot as createFolder, p as restoreWorkspace, pn as getNamespacesWithMigrations, qt as DB_TYPES_FILE_NAME, rn as getMigrationDirPath, s as removeUser, t as isNativeTypeScriptRuntime, un as formatDiffSummary, ut as getOAuth2Client, w as getAppHealth, x as createWorkspace, y as deleteWorkspace, yn as apiCall, yt as getFunctionRegistry } from "../runtime-D-3AE1x-.mjs";
|
|
4
|
+
import { S as loadAccessToken, _ as getDistDir, w as loadWorkspaceId, y as loadConfig } from "../application-DF74unzA.mjs";
|
|
5
|
+
import { n as enumConstantsPlugin } from "../enum-constants-C7DaWeQo.mjs";
|
|
6
|
+
import { t as multiline } from "../multiline-Cf9ODpr1.mjs";
|
|
7
|
+
import { n as fileUtilsPlugin } from "../file-utils-BHPxPXmn.mjs";
|
|
8
|
+
import { n as kyselyTypePlugin } from "../kysely-type-D1e0Vwkd.mjs";
|
|
9
|
+
import { n as seedPlugin } from "../seed-DfLyRh63.mjs";
|
|
10
10
|
import * as fs from "node:fs";
|
|
11
11
|
import * as path from "pathe";
|
|
12
12
|
import { resolveTSConfig } from "pkg-types";
|
package/dist/cli/skills.mjs
CHANGED