@tailor-platform/sdk 1.13.0 → 1.14.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#587](https://github.com/tailor-platform/sdk/pull/587) [`014d8db`](https://github.com/tailor-platform/sdk/commit/014d8db10d2fb8a19ffff4a5c2d3c76c4f24f72d) Thanks [@toiroakr](https://github.com/toiroakr)! - Use tailor.idp.Client for IDP user seeding and truncation in seed generator
8
+
9
+ ## 1.14.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#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.
14
+
15
+ - [#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
16
+
17
+ - Extend snapshot schema (v2) to include relationships, permissions, files, hooks, and validation rules
18
+ - Generate proto manifests directly from snapshots for migration-based deployments
19
+ - Add support for index, file, relationship, and permission diff kinds
20
+ - Separate migration e2e test templates from example app migrations
21
+
3
22
  ## 1.13.0
4
23
 
5
24
  ### Minor Changes
@@ -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-CUvANRhs.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-2eb6jz9o.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 mainCommand = defineCommand({
2156
- name: Object.keys(packageJson.bin ?? {})[0] || "tailor-sdk",
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