@tailor-platform/sdk 0.21.2 → 0.21.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 CHANGED
@@ -1,5 +1,49 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 0.21.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#245](https://github.com/tailor-platform/sdk/pull/245) [`f4d4c8e`](https://github.com/tailor-platform/sdk/commit/f4d4c8e5f0df6161376c4e02af90f76aecb5ec01) Thanks [@toiroakr](https://github.com/toiroakr)! - fix: throw error for prompts in CI environments
8
+
9
+ In CI environments, interactive prompts cause the CLI to hang indefinitely. This change detects CI environments using `std-env` and throws a `CIPromptError` when `logger.prompt` is called, instructing users to use the `--yes` flag to skip confirmation prompts.
10
+
11
+ - [#243](https://github.com/tailor-platform/sdk/pull/243) [`2084c68`](https://github.com/tailor-platform/sdk/commit/2084c68be83fe5693b3df838e5c780d79d7d06fa) Thanks [@toiroakr](https://github.com/toiroakr)! - Fix deletion of resolvers that conflict with system-generated ones
12
+
13
+ When a TailorDB type is created (e.g., `User`), the system auto-generates resolvers like `deleteUser`, `createUser`, etc. If a user created a custom resolver with the same name, it could not be deleted because the Application update (SDL composition) failed before the deletion phase.
14
+
15
+ This fix reorders the apply phases to delete subgraph services before updating the Application:
16
+ 1. Create/Update services that Application depends on (subgraphs + StaticWebsite)
17
+ 2. Delete subgraph services (before Application update to avoid SDL conflicts)
18
+ 3. Create/Update Application
19
+ 4. Create/Update services that depend on Application (Executor, Workflow)
20
+ 5. Delete services that depend on Application, then Application itself
21
+
22
+ ## 0.21.3
23
+
24
+ ### Patch Changes
25
+
26
+ - [#238](https://github.com/tailor-platform/sdk/pull/238) [`36639c6`](https://github.com/tailor-platform/sdk/commit/36639c6e1efee873eff89e61c59c60b8b22531a8) Thanks [@toiroakr](https://github.com/toiroakr)! - Improve Connect error messages in CLI
27
+ - Add `errorHandlingInterceptor` to enhance error messages from Connect protocol
28
+ - Error messages now include operation type, resource type, and request parameters
29
+ - Makes it easier to identify which resource caused validation errors
30
+
31
+ Before:
32
+
33
+ ```
34
+ ERROR [invalid_argument] validation error: namespace_name: value does not match regex pattern...
35
+ ```
36
+
37
+ After:
38
+
39
+ ```
40
+ ERROR [invalid_argument] Failed to list TailorDBTypes: validation error: namespace_name: value does not match regex pattern...
41
+ Request: {
42
+ "namespaceName": "db",
43
+ ...
44
+ }
45
+ ```
46
+
3
47
  ## 0.21.2
4
48
 
5
49
  ## 0.21.1
package/dist/cli/api.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as listOAuth2Clients, E as getMachineUserToken, G as loadWorkspaceId, H as loadConfig, N as apply, T as getOAuth2Client, V as generateUserTypes, W as loadAccessToken, _ as listWorkflowExecutions, b as remove, c as resumeWorkflow, f as listWorkflows, g as getWorkflowExecution, i as deleteWorkspace, j as generate, k as listMachineUsers, m as getWorkflow, n as listWorkspaces, o as createWorkspace, u as startWorkflow, v as show } from "../list-D_TfcRMd.mjs";
1
+ import { C as listOAuth2Clients, E as getMachineUserToken, G as loadWorkspaceId, H as loadConfig, N as apply, T as getOAuth2Client, V as generateUserTypes, W as loadAccessToken, _ as listWorkflowExecutions, b as remove, c as resumeWorkflow, f as listWorkflows, g as getWorkflowExecution, i as deleteWorkspace, j as generate, k as listMachineUsers, m as getWorkflow, n as listWorkspaces, o as createWorkspace, u as startWorkflow, v as show } from "../list-CQ-V5Ddn.mjs";
2
2
  import "../config-BGY8v5d7.mjs";
3
3
  import { register } from "node:module";
4
4
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as PATScope, A as printData, B as workspaceArgs, D as tokenCommand, F as commonArgs, G as loadWorkspaceId, H as loadConfig, I as confirmationArgs, J as fetchAll, K as readPlatformConfig, L as deploymentArgs, M as generateCommand, O as listCommand$8, P as applyCommand, Q as readPackageJson, R as jsonArgs, S as listCommand$7, U as fetchLatestToken, W as loadAccessToken, X as initOAuth2Client, Y as fetchUserInfo, Z as initOperatorClient, a as createCommand, d as listCommand$1, et as logger, h as executionsCommand, l as startCommand, p as getCommand, q as writePlatformConfig, r as deleteCommand, s as resumeCommand, t as listCommand, w as getCommand$2, x as removeCommand, y as showCommand, z as withCommonArgs } from "../list-D_TfcRMd.mjs";
2
+ import { $ as PATScope, A as printData, B as workspaceArgs, D as tokenCommand, F as commonArgs, G as loadWorkspaceId, H as loadConfig, I as confirmationArgs, J as fetchAll, K as readPlatformConfig, L as deploymentArgs, M as generateCommand, O as listCommand$8, P as applyCommand, Q as readPackageJson, R as jsonArgs, S as listCommand$7, U as fetchLatestToken, W as loadAccessToken, X as initOAuth2Client, Y as fetchUserInfo, Z as initOperatorClient, a as createCommand, d as listCommand$1, et as logger, h as executionsCommand, l as startCommand, p as getCommand, q as writePlatformConfig, r as deleteCommand, s as resumeCommand, t as listCommand, w as getCommand$2, x as removeCommand, y as showCommand, z as withCommonArgs } from "../list-CQ-V5Ddn.mjs";
3
3
  import "../config-BGY8v5d7.mjs";
4
4
  import { register } from "node:module";
5
5
  import { defineCommand, runCommand, runMain } from "citty";