@tailor-platform/sdk 1.25.2 → 1.25.4
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 +42 -0
- package/dist/{application-BGO3TtXi.mjs → application-91Th6tm6.mjs} +24 -67
- package/dist/application-91Th6tm6.mjs.map +1 -0
- package/dist/{application-C0lXqKBr.mjs → application-DegTCDd8.mjs} +1 -1
- package/dist/cli/index.mjs +7 -7
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.mjs +4 -24
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/configure/index.d.mts +1 -1
- package/dist/{index-DuZRAsc3.d.mts → index-Bu12qy3m.d.mts} +12 -12
- package/dist/{query-CRSZGUmD.mjs → query-kb_4EQp4.mjs} +62 -38
- package/dist/query-kb_4EQp4.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +1 -1
- package/package.json +9 -8
- package/postinstall.mjs +14 -39
- package/dist/application-BGO3TtXi.mjs.map +0 -1
- package/dist/query-CRSZGUmD.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.25.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#775](https://github.com/tailor-platform/sdk/pull/775) [`a7a99da`](https://github.com/tailor-platform/sdk/commit/a7a99da4d7c1dfcb80db4de5d4fe7e5161c23e64) Thanks [@toiroakr](https://github.com/toiroakr)! - Skip postinstall type generation when no tailor.config.ts is found instead of creating an empty tailor.d.ts
|
|
8
|
+
|
|
9
|
+
- [#717](https://github.com/tailor-platform/sdk/pull/717) [`cabb93b`](https://github.com/tailor-platform/sdk/commit/cabb93b0b0837122f958be4fadda0da164c527f2) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency @types/node to v24.12.0
|
|
10
|
+
|
|
11
|
+
- [#725](https://github.com/tailor-platform/sdk/pull/725) [`368a2fd`](https://github.com/tailor-platform/sdk/commit/368a2fdd2c1f28d12d5b010a1359322117e0c359) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency knip to v5.86.0
|
|
12
|
+
|
|
13
|
+
- [#732](https://github.com/tailor-platform/sdk/pull/732) [`0cb5d7f`](https://github.com/tailor-platform/sdk/commit/0cb5d7f296d30e14eeb55a60729583594fd138a4) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency aquaproj/aqua-registry to v4.485.0
|
|
14
|
+
|
|
15
|
+
- [#733](https://github.com/tailor-platform/sdk/pull/733) [`9543d3a`](https://github.com/tailor-platform/sdk/commit/9543d3a6c36396d6a29020edf15429fe1795bea3) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency oxlint-tsgolint to v0.16.0
|
|
16
|
+
|
|
17
|
+
- [#734](https://github.com/tailor-platform/sdk/pull/734) [`8460bdc`](https://github.com/tailor-platform/sdk/commit/8460bdc82a2da327a4436856b7a81be1636d1ff5) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency sonda to v0.11.1
|
|
18
|
+
|
|
19
|
+
- [#737](https://github.com/tailor-platform/sdk/pull/737) [`69fe62c`](https://github.com/tailor-platform/sdk/commit/69fe62c308c971256707953a12e972faf4220697) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency rolldown to v1.0.0-rc.9
|
|
20
|
+
|
|
21
|
+
- [#738](https://github.com/tailor-platform/sdk/pull/738) [`7db1d9a`](https://github.com/tailor-platform/sdk/commit/7db1d9a646c6833a82191249f7d0c6cd5c2f066b) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency turbo to v2.8.15
|
|
22
|
+
|
|
23
|
+
- [#740](https://github.com/tailor-platform/sdk/pull/740) [`e9fc3f6`](https://github.com/tailor-platform/sdk/commit/e9fc3f6a2472c230cb8015c3adb45d691b795737) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency typescript-eslint to v8.57.0
|
|
24
|
+
|
|
25
|
+
- [#747](https://github.com/tailor-platform/sdk/pull/747) [`72c14a7`](https://github.com/tailor-platform/sdk/commit/72c14a795dd60f28ebeae159f06908b88e9eed47) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update anthropics/claude-code-action action to v1.0.72
|
|
26
|
+
|
|
27
|
+
- [#754](https://github.com/tailor-platform/sdk/pull/754) [`cad764d`](https://github.com/tailor-platform/sdk/commit/cad764d28499466d4cd65786481eca6e0cebfe87) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update actions/create-github-app-token action to v2.2.2
|
|
28
|
+
|
|
29
|
+
- [#756](https://github.com/tailor-platform/sdk/pull/756) [`1e972a4`](https://github.com/tailor-platform/sdk/commit/1e972a463be48c23ffabf71194f785face7e32f3) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency lefthook to v2.1.4
|
|
30
|
+
|
|
31
|
+
- [#757](https://github.com/tailor-platform/sdk/pull/757) [`1ceb017`](https://github.com/tailor-platform/sdk/commit/1ceb017f86196c66e19572fb43e12a1989e5f432) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency tsdown to v0.21.2
|
|
32
|
+
|
|
33
|
+
- [#758](https://github.com/tailor-platform/sdk/pull/758) [`73a5684`](https://github.com/tailor-platform/sdk/commit/73a5684f04467a3eacdedfeb35dd2a3c17690a31) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dorny/paths-filter action to v3.0.3
|
|
34
|
+
|
|
35
|
+
- [#759](https://github.com/tailor-platform/sdk/pull/759) [`4690057`](https://github.com/tailor-platform/sdk/commit/4690057b4798e728c6dff8851415c62c3c6b0fc7) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update pnpm to v10.32.1
|
|
36
|
+
|
|
37
|
+
- [#770](https://github.com/tailor-platform/sdk/pull/770) [`6b93e7a`](https://github.com/tailor-platform/sdk/commit/6b93e7a5e673d8f2016f29f3fd4a1436d5ce119b) Thanks [@toiroakr](https://github.com/toiroakr)! - Fix seed and query bundlers to use `@tailor-platform/sdk/kysely` re-export instead of importing `kysely` and `@tailor-platform/function-kysely-tailordb` directly, so they work without users installing these as direct dependencies
|
|
38
|
+
|
|
39
|
+
## 1.25.3
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- [#749](https://github.com/tailor-platform/sdk/pull/749) [`5cf46ec`](https://github.com/tailor-platform/sdk/commit/5cf46ec88d7d7517300b916b02249d9ffaf8a083) Thanks [@toiroakr](https://github.com/toiroakr)! - Replace consola dependency with @inquirer/prompts for interactive prompts and direct stderr logging
|
|
44
|
+
|
|
3
45
|
## 1.25.2
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
|
@@ -12,9 +12,7 @@ import { formatWithOptions } from "node:util";
|
|
|
12
12
|
import * as path from "pathe";
|
|
13
13
|
import { join, resolve } from "pathe";
|
|
14
14
|
import chalk from "chalk";
|
|
15
|
-
import { createConsola } from "consola";
|
|
16
15
|
import { formatDistanceToNowStrict } from "date-fns";
|
|
17
|
-
import { isCI } from "std-env";
|
|
18
16
|
import { getBorderCharacters, table } from "table";
|
|
19
17
|
import { OAuth2Client } from "@badgateway/oauth2-client";
|
|
20
18
|
import { MethodOptions_IdempotencyLevel, file_google_protobuf_descriptor, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
@@ -103,26 +101,6 @@ const TYPE_COLORS = {
|
|
|
103
101
|
log: (text) => text
|
|
104
102
|
};
|
|
105
103
|
/**
|
|
106
|
-
* Parses a log tag in "mode:indent" format
|
|
107
|
-
* @param tag - Tag string (e.g., "default:4", "stream:2", "plain:0")
|
|
108
|
-
* @returns Parsed mode and indent values
|
|
109
|
-
*/
|
|
110
|
-
function parseLogTag(tag) {
|
|
111
|
-
const [mode, indentStr] = (tag || "default:0").split(":");
|
|
112
|
-
return {
|
|
113
|
-
mode,
|
|
114
|
-
indent: Number(indentStr) || 0
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Builds a log tag from LogOptions
|
|
119
|
-
* @param opts - Log options
|
|
120
|
-
* @returns Tag string in "mode:indent" format
|
|
121
|
-
*/
|
|
122
|
-
function buildLogTag(opts) {
|
|
123
|
-
return `${opts?.mode ?? "default"}:${opts?.indent ?? 0}`;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
104
|
* Formats a log line with the appropriate prefix and indentation
|
|
127
105
|
* @param opts - Formatting options
|
|
128
106
|
* @returns Formatted log line
|
|
@@ -137,39 +115,22 @@ function formatLogLine(opts) {
|
|
|
137
115
|
return `${indentPrefix}${timestamp ?? ""}${coloredOutput}\n`;
|
|
138
116
|
}
|
|
139
117
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* -
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
breakLength: stdout.columns || 80,
|
|
156
|
-
compact: formatOptions.compact
|
|
157
|
-
}, ...logObj.args);
|
|
158
|
-
const timestamp = mode === "stream" && logObj.date ? `${logObj.date.toLocaleTimeString()} ` : "";
|
|
159
|
-
const output = formatLogLine({
|
|
160
|
-
mode,
|
|
161
|
-
indent,
|
|
162
|
-
type: logObj.type,
|
|
163
|
-
message,
|
|
164
|
-
timestamp
|
|
165
|
-
});
|
|
166
|
-
stderr.write(output);
|
|
167
|
-
} };
|
|
118
|
+
* Writes a formatted log line to stderr.
|
|
119
|
+
* @param type - Log type (info, success, warn, error, log)
|
|
120
|
+
* @param message - Log message
|
|
121
|
+
* @param opts - Log options (mode and indent)
|
|
122
|
+
*/
|
|
123
|
+
function writeLog(type, message, opts) {
|
|
124
|
+
const mode = opts?.mode ?? "default";
|
|
125
|
+
const output = formatLogLine({
|
|
126
|
+
mode,
|
|
127
|
+
indent: opts?.indent ?? 0,
|
|
128
|
+
type,
|
|
129
|
+
message: formatWithOptions({ breakLength: process.stdout.columns || 80 }, message),
|
|
130
|
+
timestamp: mode === "stream" ? `${(/* @__PURE__ */ new Date()).toLocaleTimeString()} ` : ""
|
|
131
|
+
});
|
|
132
|
+
process.stderr.write(output);
|
|
168
133
|
}
|
|
169
|
-
const consola = createConsola({
|
|
170
|
-
reporters: [createReporter()],
|
|
171
|
-
formatOptions: { date: true }
|
|
172
|
-
});
|
|
173
134
|
const logger = {
|
|
174
135
|
get jsonMode() {
|
|
175
136
|
return _jsonMode;
|
|
@@ -178,25 +139,25 @@ const logger = {
|
|
|
178
139
|
_jsonMode = value;
|
|
179
140
|
},
|
|
180
141
|
info(message, opts) {
|
|
181
|
-
|
|
142
|
+
writeLog("info", message, opts);
|
|
182
143
|
},
|
|
183
144
|
success(message, opts) {
|
|
184
|
-
|
|
145
|
+
writeLog("success", message, opts);
|
|
185
146
|
},
|
|
186
147
|
warn(message, opts) {
|
|
187
|
-
|
|
148
|
+
writeLog("warn", message, opts);
|
|
188
149
|
},
|
|
189
150
|
error(message, opts) {
|
|
190
|
-
|
|
151
|
+
writeLog("error", message, opts);
|
|
191
152
|
},
|
|
192
153
|
log(message) {
|
|
193
|
-
|
|
154
|
+
writeLog("log", message, { mode: "plain" });
|
|
194
155
|
},
|
|
195
156
|
newline() {
|
|
196
|
-
|
|
157
|
+
process.stderr.write("\n");
|
|
197
158
|
},
|
|
198
159
|
debug(message) {
|
|
199
|
-
if (process.env.DEBUG === "true")
|
|
160
|
+
if (process.env.DEBUG === "true") writeLog("log", styles.dim(message), { mode: "plain" });
|
|
200
161
|
},
|
|
201
162
|
out(data, options) {
|
|
202
163
|
if (typeof data === "string") {
|
|
@@ -242,10 +203,6 @@ const logger = {
|
|
|
242
203
|
}
|
|
243
204
|
});
|
|
244
205
|
process.stdout.write(t);
|
|
245
|
-
},
|
|
246
|
-
prompt(message, options) {
|
|
247
|
-
if (isCI) throw new CIPromptError();
|
|
248
|
-
return consola.prompt(message, options);
|
|
249
206
|
}
|
|
250
207
|
};
|
|
251
208
|
|
|
@@ -5767,5 +5724,5 @@ async function loadApplication(params) {
|
|
|
5767
5724
|
}
|
|
5768
5725
|
|
|
5769
5726
|
//#endregion
|
|
5770
|
-
export { AuthSCIMAttribute_Uniqueness as $, userAgent as A, PipelineResolver_OperationType as B, fetchAll as C, initOperatorClient as D, initOAuth2Client as E, TailorDBGQLPermission_Operator as F, ExecutorTargetType as G, FunctionExecution_Status as H, TailorDBGQLPermission_Permit as I, AuthInvokerSchema$1 as J, ExecutorTriggerType as K, TailorDBType_Permission_Operator as L, WorkflowExecution_Status as M, WorkflowJobExecution_Status as N, platformBaseUrl as O, TailorDBGQLPermission_Action as P, AuthSCIMAttribute_Type as Q, TailorDBType_Permission_Permit as R, writePlatformConfig as S, fetchUserInfo as T, FunctionExecution_Type as U, IdPLang as V, ExecutorJobStatus as W, AuthOAuth2Client_GrantType as X, AuthOAuth2Client_ClientType as Y, AuthSCIMAttribute_Mutability as Z, hashFile as _, loadConfig as a, ConditionSchema as at, loadWorkspaceId as b, ExecutorSchema as c, PageDirection as ct, TailorDBTypeSchema as d,
|
|
5771
|
-
//# sourceMappingURL=application-
|
|
5727
|
+
export { AuthSCIMAttribute_Uniqueness as $, userAgent as A, PipelineResolver_OperationType as B, fetchAll as C, initOperatorClient as D, initOAuth2Client as E, TailorDBGQLPermission_Operator as F, ExecutorTargetType as G, FunctionExecution_Status as H, TailorDBGQLPermission_Permit as I, AuthInvokerSchema$1 as J, ExecutorTriggerType as K, TailorDBType_Permission_Operator as L, WorkflowExecution_Status as M, WorkflowJobExecution_Status as N, platformBaseUrl as O, TailorDBGQLPermission_Action as P, AuthSCIMAttribute_Type as Q, TailorDBType_Permission_Permit as R, writePlatformConfig as S, fetchUserInfo as T, FunctionExecution_Type as U, IdPLang as V, ExecutorJobStatus as W, AuthOAuth2Client_GrantType as X, AuthOAuth2Client_ClientType as Y, AuthSCIMAttribute_Mutability as Z, hashFile as _, loadConfig as a, ConditionSchema as at, loadWorkspaceId as b, ExecutorSchema as c, PageDirection as ct, TailorDBTypeSchema as d, CIPromptError as dt, AuthSCIMConfig_AuthorizationType as et, stringifyFunction as f, logger as ft, getDistDir as g, createBundleCache as h, resolveInlineSourcemap as i, GetApplicationSchemaHealthResponse_ApplicationSchemaHealthStatus as it, WorkspacePlatformUserRole as j, resolveStaticWebsiteUrls as k, OAuth2ClientSchema as l, ApplicationSchemaUpdateAttemptStatus as lt, loadFilesWithIgnores as m, symbols as mt, generatePluginFilesIfNeeded as n, TenantProviderConfig_TenantProviderType as nt, WorkflowJobSchema as o, Condition_Operator as ot, tailorUserMap as p, styles as pt, AuthIDPConfig_AuthType as q, loadApplication as r, UserProfileProviderConfig_UserProfileProviderType as rt, createExecutorService as s, FilterSchema as st, defineApplication as t, PATScope as tt, ResolverSchema as u, Subgraph_ServiceType as ut, fetchLatestToken as v, fetchMachineUserToken as w, readPlatformConfig as x, loadAccessToken as y, TailorDBType_PermitAction as z };
|
|
5728
|
+
//# sourceMappingURL=application-91Th6tm6.mjs.map
|