@tailor-platform/sdk 1.12.0 → 1.14.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 +24 -0
- package/dist/cli/index.mjs +6 -4
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +119 -4
- package/dist/cli/lib.mjs +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-Bid18Opo.d.mts → index-Bw_huFr7.d.mts} +7 -7
- package/dist/{index-BBr_q3vB.d.mts → index-DMoFYBhB.d.mts} +2 -2
- package/dist/{update-B_W-UQnS.mjs → update-BnKKm4aR.mjs} +504 -120
- package/dist/update-BnKKm4aR.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/cli/application.md +38 -38
- package/docs/cli/auth.md +24 -24
- package/docs/cli/completion.md +27 -0
- package/docs/cli/executor.md +36 -36
- package/docs/cli/secret.md +41 -41
- package/docs/cli/staticwebsite.md +17 -17
- package/docs/cli/tailordb.md +48 -48
- package/docs/cli/user.md +17 -17
- package/docs/cli/workflow.md +39 -39
- package/docs/cli/workspace.md +76 -76
- package/docs/cli-reference.md +8 -0
- package/docs/generator/builtin.md +24 -19
- package/package.json +2 -2
- package/dist/update-B_W-UQnS.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#557](https://github.com/tailor-platform/sdk/pull/557) [`e5dfa62`](https://github.com/tailor-platform/sdk/commit/e5dfa6263dba4644e79f1bfaf03a71ab40421019) Thanks [@dqn](https://github.com/dqn)! - Add a new `completion` subcommand to the CLI so users can generate shell completion scripts for their environment.
|
|
8
|
+
|
|
9
|
+
- [#577](https://github.com/tailor-platform/sdk/pull/577) [`1d969ac`](https://github.com/tailor-platform/sdk/commit/1d969ac5b6b2fd26919ef1ad5dcb4ce97c6734fe) Thanks [@toiroakr](https://github.com/toiroakr)! - feat: snapshot-based migration apply
|
|
10
|
+
|
|
11
|
+
- Extend snapshot schema (v2) to include relationships, permissions, files, hooks, and validation rules
|
|
12
|
+
- Generate proto manifests directly from snapshots for migration-based deployments
|
|
13
|
+
- Add support for index, file, relationship, and permission diff kinds
|
|
14
|
+
- Separate migration e2e test templates from example app migrations
|
|
15
|
+
|
|
16
|
+
## 1.13.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [#580](https://github.com/tailor-platform/sdk/pull/580) [`74c2dfc`](https://github.com/tailor-platform/sdk/commit/74c2dfcb3e33d8d2548d7a948e5e322745e4a54c) Thanks [@toiroakr](https://github.com/toiroakr)! - Always generate exec.mjs for seed generator and add --machine-user option
|
|
21
|
+
|
|
22
|
+
- exec.mjs is now generated regardless of whether `machineUserName` is configured
|
|
23
|
+
- Added `--machine-user` (`-m`) CLI option to specify machine user at runtime
|
|
24
|
+
- CLI argument takes precedence over config default, allowing override
|
|
25
|
+
- Shows clear error message when machine user is not specified and not configured
|
|
26
|
+
|
|
3
27
|
## 1.12.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "../chunk-C3Kl5s5P.mjs";
|
|
3
3
|
import "../schema-BmKdDzr1.mjs";
|
|
4
|
-
import { $ as jobsCommand, $t as initOperatorClient, A as generateCommand, At as getMigrationFiles, C as resumeCommand, Et as formatMigrationNumber, F as removeCommand$1, G as generateCommand$1, Gt as fetchLatestToken, H as listCommand$6, I as listCommand$7, J as triggerCommand, Jt as readPlatformConfig, Kt as loadAccessToken, Mt as isValidMigrationNumber, N as showCommand, Nt as loadDiff, O as truncateCommand, Qt as initOAuth2Client, R as getCommand$2, Rt as getNamespacesWithMigrations, S as healthCommand, T as listCommand$8, V as tokenCommand, Vt as loadConfig, Wt as apiCommand, X as listCommand$5, Xt as fetchAll, Yt as writePlatformConfig, Zt as fetchUserInfo, _ as createCommand$3, a as listCommand$10, an as jsonArgs, b as listCommand$9, d as listCommand$11, en as readPackageJson, ft as applyCommand, gt as parseMigrationLabelNumber, h as deleteCommand$3, in as deploymentArgs, it as getCommand$3, j as logBetaWarning, kt as getMigrationFilePath, l as restoreCommand, lt as getCommand$1, nn as commonArgs, nt as startCommand, on as withCommonArgs, ot as executionsCommand, p as getCommand$4, q as webhookCommand, qt as loadWorkspaceId, r as removeCommand, rn as confirmationArgs, s as inviteCommand, sn as workspaceArgs, t as updateCommand$2, tn as PATScope, zt as trnPrefix } from "../update-
|
|
4
|
+
import { $ as jobsCommand, $t as initOperatorClient, A as generateCommand, At as getMigrationFiles, C as resumeCommand, Et as formatMigrationNumber, F as removeCommand$1, G as generateCommand$1, Gt as fetchLatestToken, H as listCommand$6, I as listCommand$7, J as triggerCommand, Jt as readPlatformConfig, Kt as loadAccessToken, Mt as isValidMigrationNumber, N as showCommand, Nt as loadDiff, O as truncateCommand, Qt as initOAuth2Client, R as getCommand$2, Rt as getNamespacesWithMigrations, S as healthCommand, T as listCommand$8, V as tokenCommand, Vt as loadConfig, Wt as apiCommand, X as listCommand$5, Xt as fetchAll, Yt as writePlatformConfig, Zt as fetchUserInfo, _ as createCommand$3, a as listCommand$10, an as jsonArgs, b as listCommand$9, d as listCommand$11, en as readPackageJson, ft as applyCommand, gt as parseMigrationLabelNumber, h as deleteCommand$3, in as deploymentArgs, it as getCommand$3, j as logBetaWarning, kt as getMigrationFilePath, l as restoreCommand, lt as getCommand$1, nn as commonArgs, nt as startCommand, on as withCommonArgs, ot as executionsCommand, p as getCommand$4, q as webhookCommand, qt as loadWorkspaceId, r as removeCommand, rn as confirmationArgs, s as inviteCommand, sn as workspaceArgs, t as updateCommand$2, tn as PATScope, zt as trnPrefix } from "../update-BnKKm4aR.mjs";
|
|
5
5
|
import { d as logger, f as styles } from "../application-DnWZVbDO.mjs";
|
|
6
6
|
import { createRequire, register } from "node:module";
|
|
7
7
|
import { arg, defineCommand, runCommand, runMain } from "politty";
|
|
8
|
+
import { withCompletionCommand } from "politty/completion";
|
|
8
9
|
import { z } from "zod";
|
|
9
10
|
import * as fs$1 from "node:fs";
|
|
10
11
|
import * as path from "pathe";
|
|
@@ -2152,8 +2153,9 @@ const workspaceCommand = defineCommand({
|
|
|
2152
2153
|
//#region src/cli/index.ts
|
|
2153
2154
|
register("tsx", import.meta.url, { data: {} });
|
|
2154
2155
|
const packageJson = await readPackageJson();
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2156
|
+
const cliName = Object.keys(packageJson.bin ?? {})[0] || "tailor-sdk";
|
|
2157
|
+
const mainCommand = withCompletionCommand(defineCommand({
|
|
2158
|
+
name: cliName,
|
|
2157
2159
|
description: packageJson.description || "Tailor CLI for managing Tailor Platform SDK applications",
|
|
2158
2160
|
subCommands: {
|
|
2159
2161
|
api: apiCommand,
|
|
@@ -2176,7 +2178,7 @@ const mainCommand = defineCommand({
|
|
|
2176
2178
|
workflow: workflowCommand,
|
|
2177
2179
|
workspace: workspaceCommand
|
|
2178
2180
|
}
|
|
2179
|
-
});
|
|
2181
|
+
}));
|
|
2180
2182
|
runMain(mainCommand, { version: packageJson.version });
|
|
2181
2183
|
|
|
2182
2184
|
//#endregion
|