@tailor-platform/sdk 1.28.0 → 1.29.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 +18 -0
- package/dist/{application-CBJFUKrU.mjs → application-Clwpv84E.mjs} +9 -5
- package/dist/application-Clwpv84E.mjs.map +1 -0
- package/dist/{application-WyZetOky.mjs → application-Dl1d7w-b.mjs} +3 -3
- package/dist/chunk-DEt8GZDa.mjs +8 -0
- package/dist/cli/index.mjs +54 -19
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.mjs +5 -5
- package/dist/cli/skills.mjs +1 -1
- package/dist/client-CW4Oh3iz.mjs +6 -0
- package/dist/client-CZmQBXAY.mjs +16294 -0
- package/dist/client-CZmQBXAY.mjs.map +1 -0
- package/dist/configure/index.mjs +1 -1
- package/dist/{crash-report-Cot_9Esm.mjs → crash-report-CYrETw1c.mjs} +2 -2
- package/dist/{crash-report-Ju8cQF-l.mjs → crash-report-DizNMVnm.mjs} +3 -3
- package/dist/{crash-report-Ju8cQF-l.mjs.map → crash-report-DizNMVnm.mjs.map} +1 -1
- package/dist/{interceptor-B0d_GrI5.mjs → interceptor-DgQNmwWJ.mjs} +2 -2
- package/dist/{interceptor-B0d_GrI5.mjs.map → interceptor-DgQNmwWJ.mjs.map} +1 -1
- package/dist/kysely/index.mjs +1 -1
- package/dist/{package-json-DHfTiUCS.mjs → package-json-DiZWrkIA.mjs} +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.mjs +1 -1
- package/dist/{query-WYq8RvYp.mjs → query-B1-hq2Hm.mjs} +69 -27
- package/dist/query-B1-hq2Hm.mjs.map +1 -0
- package/dist/seed/index.mjs +1 -1
- package/dist/{telemetry-VvNfsyEE.mjs → telemetry-BSUlYTs-.mjs} +2 -2
- package/dist/{telemetry-VvNfsyEE.mjs.map → telemetry-BSUlYTs-.mjs.map} +1 -1
- package/dist/telemetry-BtN2l0f1.mjs +4 -0
- package/dist/utils/test/index.mjs +1 -1
- package/docs/cli/user.md +21 -22
- package/docs/cli/workspace.md +0 -7
- package/docs/cli-reference.md +12 -10
- package/docs/services/executor.md +46 -0
- package/package.json +8 -8
- package/dist/application-CBJFUKrU.mjs.map +0 -1
- package/dist/chunk-Cz-A8uMR.mjs +0 -3
- package/dist/client-C2_wgujH.mjs +0 -6
- package/dist/client-bTbnbQbB.mjs +0 -957
- package/dist/client-bTbnbQbB.mjs.map +0 -1
- package/dist/query-WYq8RvYp.mjs.map +0 -1
- package/dist/telemetry-BevrwWwF.mjs +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.29.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#702](https://github.com/tailor-platform/sdk/pull/702) [`9b25f08`](https://github.com/tailor-platform/sdk/commit/9b25f084abfcb05262aece4f4624111c3d18ebdb) Thanks [@toiroakr](https://github.com/toiroakr)! - Add `login --machineuser` flag for platform machine user authentication. Token is stored in platform config for automatic use by subsequent commands. Supports `--client-id` and `--client-secret` options with environment variable fallback (`TAILOR_PLATFORM_MACHINE_USER_CLIENT_ID` / `TAILOR_PLATFORM_MACHINE_USER_CLIENT_SECRET`). Client secret is prompted securely when omitted.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#781](https://github.com/tailor-platform/sdk/pull/781) [`2de7b3e`](https://github.com/tailor-platform/sdk/commit/2de7b3ef369870a96c2d20696168f5267aa3de9b) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update anthropics/claude-code-action action to v1.0.75
|
|
12
|
+
|
|
13
|
+
- [#786](https://github.com/tailor-platform/sdk/pull/786) [`38ef630`](https://github.com/tailor-platform/sdk/commit/38ef6309e257fc2fa0c831b2c3b9bff7dd797c74) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency p-limit to v7.3.0
|
|
14
|
+
|
|
15
|
+
- [#788](https://github.com/tailor-platform/sdk/pull/788) [`bbeaf1e`](https://github.com/tailor-platform/sdk/commit/bbeaf1e1ff4ed6838e1edf35e366f531aebb1c2b) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update oxlint monorepo
|
|
16
|
+
|
|
17
|
+
- [#796](https://github.com/tailor-platform/sdk/pull/796) [`17808f4`](https://github.com/tailor-platform/sdk/commit/17808f4b11fc59aa714eb92cea7955bc559b4178) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency kysely to v0.28.14 [security]
|
|
18
|
+
|
|
19
|
+
- [#779](https://github.com/tailor-platform/sdk/pull/779) [`b234487`](https://github.com/tailor-platform/sdk/commit/b234487f5787f540035657d11aa2759847de4177) Thanks [@dragon3](https://github.com/dragon3)! - Use typed event configs for executor triggers instead of deprecated eventType/condition fields
|
|
20
|
+
|
|
3
21
|
## 1.28.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as isSdkBranded } from "./brand-GZnI4eYb.mjs";
|
|
2
2
|
import { n as logger, r as styles } from "./logger-CqezTedh.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { c as initOAuth2Client } from "./client-CZmQBXAY.mjs";
|
|
4
4
|
import { n as seedPlugin, r as isPluginGeneratedType, t as SeedGeneratorID } from "./seed-CWkIDWMb.mjs";
|
|
5
5
|
import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "./enum-constants-D1nfn0qD.mjs";
|
|
6
6
|
import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "./file-utils-Bctuzn3x.mjs";
|
|
@@ -11,17 +11,17 @@ import * as fs$1 from "node:fs";
|
|
|
11
11
|
import { mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
12
12
|
import * as path from "pathe";
|
|
13
13
|
import { join, resolve } from "pathe";
|
|
14
|
+
import * as crypto from "node:crypto";
|
|
15
|
+
import { pathToFileURL } from "node:url";
|
|
14
16
|
import { resolveTSConfig } from "pkg-types";
|
|
15
17
|
import * as os from "node:os";
|
|
16
18
|
import { parseTOML, parseYAML, stringifyYAML } from "confbox";
|
|
17
19
|
import { findUpSync } from "find-up-simple";
|
|
18
20
|
import ml from "multiline-ts";
|
|
19
21
|
import { xdgConfig } from "xdg-basedir";
|
|
20
|
-
import * as crypto from "node:crypto";
|
|
21
22
|
import * as rolldown from "rolldown";
|
|
22
23
|
import * as fs from "node:fs/promises";
|
|
23
24
|
import { parseSync } from "oxc-parser";
|
|
24
|
-
import { pathToFileURL } from "node:url";
|
|
25
25
|
import * as inflection from "inflection";
|
|
26
26
|
import * as globals from "globals";
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@ const pfConfigSchema = z.object({
|
|
|
30
30
|
version: z.literal(1),
|
|
31
31
|
users: z.partialRecord(z.string(), z.object({
|
|
32
32
|
access_token: z.string(),
|
|
33
|
-
refresh_token: z.string(),
|
|
33
|
+
refresh_token: z.string().optional(),
|
|
34
34
|
token_expires_at: z.string()
|
|
35
35
|
})),
|
|
36
36
|
profiles: z.partialRecord(z.string(), z.object({
|
|
@@ -184,6 +184,10 @@ async function fetchLatestToken(config, user) {
|
|
|
184
184
|
Please verify your user name and login using 'tailor-sdk login' command.
|
|
185
185
|
`);
|
|
186
186
|
if (new Date(tokens.token_expires_at) > /* @__PURE__ */ new Date()) return tokens.access_token;
|
|
187
|
+
if (!tokens.refresh_token) throw new Error(ml`
|
|
188
|
+
Token expired.
|
|
189
|
+
Please run 'tailor-sdk login' and try again.
|
|
190
|
+
`);
|
|
187
191
|
const client = initOAuth2Client();
|
|
188
192
|
let resp;
|
|
189
193
|
try {
|
|
@@ -4698,4 +4702,4 @@ async function loadApplication(params) {
|
|
|
4698
4702
|
|
|
4699
4703
|
//#endregion
|
|
4700
4704
|
export { writePlatformConfig as S, hashFile as _, loadConfig as a, loadWorkspaceId 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, fetchLatestToken as v, readPlatformConfig as x, loadAccessToken as y };
|
|
4701
|
-
//# sourceMappingURL=application-
|
|
4705
|
+
//# sourceMappingURL=application-Clwpv84E.mjs.map
|