@tailor-platform/sdk 1.4.0 → 1.4.2

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,29 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#470](https://github.com/tailor-platform/sdk/pull/470) [`2e56c13`](https://github.com/tailor-platform/sdk/commit/2e56c13377d713463a993bf8e1999b942ad9236c) Thanks [@riku99](https://github.com/riku99)! - Create profile when create workspace
8
+
9
+ - [#461](https://github.com/tailor-platform/sdk/pull/461) [`1843602`](https://github.com/tailor-platform/sdk/commit/184360246de148baab96c8984da4f8b281ff4821) Thanks [@riku99](https://github.com/riku99)! - Add CLI command to open tailor platform console via `pnpm tailor-sdk open`
10
+
11
+ ## 1.4.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#464](https://github.com/tailor-platform/sdk/pull/464) [`eecb5a4`](https://github.com/tailor-platform/sdk/commit/eecb5a476befde51fcc11d6e2d1edb4c48aa97f3) Thanks [@toiroakr](https://github.com/toiroakr)! - fix(cli): improve error message when workflow mainJob is not found
16
+
17
+ - [#457](https://github.com/tailor-platform/sdk/pull/457) [`43c3ba5`](https://github.com/tailor-platform/sdk/commit/43c3ba545e43a4ccd8a8b6b01722066adfd3e73c) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency aquaproj/aqua-registry to v4.460.1
18
+
19
+ - [#459](https://github.com/tailor-platform/sdk/pull/459) [`3e596c5`](https://github.com/tailor-platform/sdk/commit/3e596c5e16896d998544efb2d6574750be61a1dc) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency @typescript/native-preview to v7.0.0-dev.20260118.1
20
+
21
+ - [#460](https://github.com/tailor-platform/sdk/pull/460) [`6b71d69`](https://github.com/tailor-platform/sdk/commit/6b71d693dcffe64be56b94e045afcc9766baf591) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency kysely to v0.28.10
22
+
23
+ - [#465](https://github.com/tailor-platform/sdk/pull/465) [`fe91cfd`](https://github.com/tailor-platform/sdk/commit/fe91cfd63ed57901c0985a1cb58bcf610c12f22f) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update changesets/action action to v1.6.0
24
+
25
+ - [#466](https://github.com/tailor-platform/sdk/pull/466) [`f13544e`](https://github.com/tailor-platform/sdk/commit/f13544eeb1d550421a951e82869aa589de1c849a) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency knip to v5.82.0
26
+
3
27
  ## 1.4.0
4
28
 
5
29
  ### Minor Changes
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import "../chunk-CIV_ash9.mjs";
3
3
  import "../config-CBpYlVa-.mjs";
4
- import { $ as deploymentArgs, A as listCommand$5, B as fetchLatestToken, C as removeCommand, E as getCommand$1, F as applyCommand, G as fetchAll, H as loadWorkspaceId, J as initOperatorClient, K as fetchUserInfo, L as loadConfig, N as generateCommand, Q as confirmationArgs, U as readPlatformConfig, V as loadAccessToken, W as writePlatformConfig, X as PATScope, Y as readPackageJson, Z as commonArgs, a as createCommand$3, d as listCommand$7, et as jsonArgs, h as executionsCommand, k as tokenCommand, l as startCommand, nt as workspaceArgs, p as getCommand$2, q as initOAuth2Client, r as deleteCommand$3, rt as logger, s as resumeCommand, t as listCommand$8, tt as withCommonArgs, w as listCommand$6, x as showCommand, y as truncateCommand, z as apiCommand } from "../list-1cs_CGF8.mjs";
4
+ import { $ as deploymentArgs, A as listCommand$5, B as fetchLatestToken, C as removeCommand, E as getCommand$1, F as applyCommand, G as fetchAll, H as loadWorkspaceId, J as initOperatorClient, K as fetchUserInfo, L as loadConfig, N as generateCommand, Q as confirmationArgs, U as readPlatformConfig, V as loadAccessToken, W as writePlatformConfig, X as PATScope, Y as readPackageJson, Z as commonArgs, a as createCommand$3, d as listCommand$7, et as jsonArgs, h as executionsCommand, k as tokenCommand, l as startCommand, nt as workspaceArgs, p as getCommand$2, q as initOAuth2Client, r as deleteCommand$3, rt as logger, s as resumeCommand, t as listCommand$8, tt as withCommonArgs, w as listCommand$6, x as showCommand, y as truncateCommand, z as apiCommand } from "../list-QT92XcP3.mjs";
5
5
  import { createRequire, register } from "node:module";
6
6
  import { defineCommand, runCommand, runMain } from "citty";
7
7
  import * as fs$1 from "node:fs";
@@ -214,6 +214,39 @@ const oauth2clientCommand = defineCommand({
214
214
  }
215
215
  });
216
216
 
217
+ //#endregion
218
+ //#region src/cli/open.ts
219
+ const consoleBaseUrl = "https://console.tailor.tech";
220
+ const openCommand = defineCommand({
221
+ meta: {
222
+ name: "open",
223
+ description: "Open Tailor Platform Console for the application"
224
+ },
225
+ args: {
226
+ ...commonArgs,
227
+ ...deploymentArgs
228
+ },
229
+ run: withCommonArgs(async (args) => {
230
+ const workspaceId = loadWorkspaceId({
231
+ workspaceId: args["workspace-id"],
232
+ profile: args.profile
233
+ });
234
+ const { config } = await loadConfig(args.config);
235
+ const applicationName = config.name;
236
+ const consolePath = `/workspaces/${workspaceId}/applications/${encodeURIComponent(applicationName)}/overview`;
237
+ const consoleUrl = new URL(consolePath, consoleBaseUrl).toString();
238
+ logger.info("Opening Tailor Platform Console...");
239
+ try {
240
+ await open(consoleUrl);
241
+ logger.out(`Console URL: ${consoleUrl}`);
242
+ logger.out(`Workspace ID: ${workspaceId}`);
243
+ logger.out(`Application Name: ${applicationName}`);
244
+ } catch {
245
+ logger.warn(`Failed to open browser automatically. Please open this URL manually:\n${consoleUrl}`);
246
+ }
247
+ })
248
+ });
249
+
217
250
  //#endregion
218
251
  //#region src/cli/profile/create.ts
219
252
  const createCommand$2 = defineCommand({
@@ -1995,6 +2028,7 @@ const mainCommand = defineCommand({
1995
2028
  subCommands: {
1996
2029
  api: apiCommand,
1997
2030
  apply: applyCommand,
2031
+ open: openCommand,
1998
2032
  generate: generateCommand,
1999
2033
  init: initCommand,
2000
2034
  login: loginCommand,