@tailor-platform/sdk 1.67.1 → 1.69.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +98 -1
  2. package/dist/application-Br48NXBD.mjs +4 -0
  3. package/dist/application-Cr-limKC.mjs +6192 -0
  4. package/dist/application-Cr-limKC.mjs.map +1 -0
  5. package/dist/cli/index.mjs +147 -34
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/cli/lib.d.mts +297 -157
  8. package/dist/cli/lib.mjs +4 -4
  9. package/dist/cli/lib.mjs.map +1 -1
  10. package/dist/cli/skills.mjs +1 -1
  11. package/dist/completion/zsh-worker.zsh +127 -48
  12. package/dist/configure/index.d.mts +2 -2
  13. package/dist/configure/index.mjs +4 -0
  14. package/dist/configure/index.mjs.map +1 -1
  15. package/dist/{crashreport-u9y2npiy.mjs → crashreport-BqyvFk-_.mjs} +2 -2
  16. package/dist/{crashreport-u9y2npiy.mjs.map → crashreport-BqyvFk-_.mjs.map} +1 -1
  17. package/dist/{crashreport-6jpCceOF.mjs → crashreport-BwF8cHF0.mjs} +1 -1
  18. package/dist/enum-constants-C7DaWeQo.mjs.map +1 -1
  19. package/dist/field-C4zdJLW5.mjs.map +1 -1
  20. package/dist/file-utils-BHPxPXmn.mjs.map +1 -1
  21. package/dist/{idp-BlBPtXJ-.d.mts → idp-BmYwCXnJ.d.mts} +30 -3
  22. package/dist/{idp-BZPqpcYY.mjs → idp-ynUfzwpz.mjs} +9 -1
  23. package/dist/idp-ynUfzwpz.mjs.map +1 -0
  24. package/dist/{index-DvEUb3pX.d.mts → index-B7VbJm0_.d.mts} +25 -16
  25. package/dist/{index-DRhMpdnA.d.mts → index-dKNk8hjo.d.mts} +2 -2
  26. package/dist/job-BpsFXPbi.mjs.map +1 -1
  27. package/dist/{kysely-type-D1e0Vwkd.mjs → kysely-type-CSoZxVKN.mjs} +2 -2
  28. package/dist/{kysely-type-D1e0Vwkd.mjs.map → kysely-type-CSoZxVKN.mjs.map} +1 -1
  29. package/dist/{logger-DpJyJvNz.mjs → logger-DKF-JsAK.mjs} +3 -3
  30. package/dist/{logger-DpJyJvNz.mjs.map → logger-DKF-JsAK.mjs.map} +1 -1
  31. package/dist/{mock-DMgIygjE.mjs → mock-wf5qeZLi.mjs} +19 -9
  32. package/dist/mock-wf5qeZLi.mjs.map +1 -0
  33. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  34. package/dist/plugin/index.mjs.map +1 -1
  35. package/dist/registry-D0uB0OrK.mjs.map +1 -1
  36. package/dist/{repl-editor-CJG3sz7A.mjs → repl-editor-DD5YP5mt.mjs} +4 -4
  37. package/dist/{repl-editor-CJG3sz7A.mjs.map → repl-editor-DD5YP5mt.mjs.map} +1 -1
  38. package/dist/runtime/globals.d.mts +3 -2
  39. package/dist/runtime/idp.d.mts +2 -2
  40. package/dist/runtime/idp.mjs +1 -1
  41. package/dist/runtime/index.d.mts +2 -2
  42. package/dist/runtime/index.mjs +1 -1
  43. package/dist/{runtime-BU6KtCvk.mjs → runtime-jowoN6qC.mjs} +803 -226
  44. package/dist/runtime-jowoN6qC.mjs.map +1 -0
  45. package/dist/schema-1msIhXwA.mjs.map +1 -1
  46. package/dist/seed-YAbtMy65.mjs.map +1 -1
  47. package/dist/{service-wI3Hvrgx.mjs → service-B2Jd9CxS.mjs} +2 -2
  48. package/dist/service-B2Jd9CxS.mjs.map +1 -0
  49. package/dist/service-CRaa4Joe.mjs +4 -0
  50. package/dist/{service-DMohAx8a.mjs → service-DDWgZL_L2.mjs} +2 -2
  51. package/dist/service-DDWgZL_L2.mjs.map +1 -0
  52. package/dist/service_pb-DGSmn-aF.mjs +4 -0
  53. package/dist/{application-WpWwTyk9.mjs → service_pb-DSNjrcbW.mjs} +22 -6176
  54. package/dist/service_pb-DSNjrcbW.mjs.map +1 -0
  55. package/dist/telemetry-BQbbVo2t.mjs.map +1 -1
  56. package/dist/types-CmzfQP_m.mjs.map +1 -1
  57. package/dist/utils/test/index.d.mts +2 -2
  58. package/dist/utils/test/index.mjs.map +1 -1
  59. package/dist/vitest/environment.mjs +1 -1
  60. package/dist/vitest/environment.mjs.map +1 -1
  61. package/dist/vitest/index.mjs +4 -4
  62. package/dist/vitest/index.mjs.map +1 -1
  63. package/dist/vitest/setup.mjs +1 -1
  64. package/dist/{workflow.generated-1S50BhEb.d.mts → workflow.generated-Br9bmLdX.d.mts} +98 -3
  65. package/docs/cli/application.md +5 -202
  66. package/docs/cli/auth.md +12 -256
  67. package/docs/cli/completion.md +0 -24
  68. package/docs/cli/crashreport.md +0 -58
  69. package/docs/cli/executor.md +53 -164
  70. package/docs/cli/function.md +2 -118
  71. package/docs/cli/organization.md +1 -211
  72. package/docs/cli/query.md +0 -20
  73. package/docs/cli/secret.md +70 -250
  74. package/docs/cli/setup.md +21 -59
  75. package/docs/cli/skills.md +0 -39
  76. package/docs/cli/staticwebsite.md +24 -172
  77. package/docs/cli/tailordb.md +5 -255
  78. package/docs/cli/upgrade.md +0 -20
  79. package/docs/cli/user.md +32 -247
  80. package/docs/cli/workflow.md +139 -161
  81. package/docs/cli/workspace.md +158 -537
  82. package/docs/cli-reference.md +59 -40
  83. package/docs/configuration.md +7 -1
  84. package/docs/github-actions.md +27 -14
  85. package/docs/services/idp.md +55 -2
  86. package/docs/services/staticwebsite.md +7 -1
  87. package/package.json +23 -18
  88. package/dist/application-Djeezk3m.mjs +0 -4
  89. package/dist/application-WpWwTyk9.mjs.map +0 -1
  90. package/dist/idp-BZPqpcYY.mjs.map +0 -1
  91. package/dist/mock-DMgIygjE.mjs.map +0 -1
  92. package/dist/runtime-BU6KtCvk.mjs.map +0 -1
  93. package/dist/service-BHQIerYh.mjs +0 -4
  94. package/dist/service-DMohAx8a.mjs.map +0 -1
  95. package/dist/service-wI3Hvrgx.mjs.map +0 -1
@@ -2,29 +2,17 @@
2
2
 
3
3
  Commands for managing workflows and workflow executions.
4
4
 
5
- <!-- politty:command:workflow:heading:start -->
6
-
7
5
  ## workflow
8
6
 
9
- <!-- politty:command:workflow:heading:end -->
10
-
11
- <!-- politty:command:workflow:description:start -->
12
-
13
7
  Manage workflows and workflow executions.
14
8
 
15
- <!-- politty:command:workflow:description:end -->
16
-
17
- <!-- politty:command:workflow:usage:start -->
18
-
19
9
  **Usage**
20
10
 
21
11
  ```
22
12
  tailor-sdk workflow [command]
23
13
  ```
24
14
 
25
- <!-- politty:command:workflow:usage:end -->
26
-
27
- <!-- politty:command:workflow:subcommands:start -->
15
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
28
16
 
29
17
  **Commands**
30
18
 
@@ -33,40 +21,20 @@ tailor-sdk workflow [command]
33
21
  | [`workflow list`](#workflow-list) | List all workflows in the workspace. |
34
22
  | [`workflow get`](#workflow-get) | Get workflow details. |
35
23
  | [`workflow start`](#workflow-start) | Start a workflow execution. |
24
+ | [`workflow wait`](#workflow-wait) | Wait for a workflow execution. |
36
25
  | [`workflow executions`](#workflow-executions) | List or get workflow executions. |
37
26
  | [`workflow resume`](#workflow-resume) | Resume a failed or pending workflow execution. |
38
27
 
39
- <!-- politty:command:workflow:subcommands:end -->
40
-
41
- <!-- politty:command:workflow:global-options-link:start -->
42
-
43
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
44
-
45
- <!-- politty:command:workflow:global-options-link:end -->
46
- <!-- politty:command:workflow list:heading:start -->
47
-
48
28
  ### workflow list
49
29
 
50
- <!-- politty:command:workflow list:heading:end -->
51
-
52
- <!-- politty:command:workflow list:description:start -->
53
-
54
30
  List all workflows in the workspace.
55
31
 
56
- <!-- politty:command:workflow list:description:end -->
57
-
58
- <!-- politty:command:workflow list:usage:start -->
59
-
60
32
  **Usage**
61
33
 
62
34
  ```
63
35
  tailor-sdk workflow list [options]
64
36
  ```
65
37
 
66
- <!-- politty:command:workflow list:usage:end -->
67
-
68
- <!-- politty:command:workflow list:options:start -->
69
-
70
38
  **Options**
71
39
 
72
40
  | Option | Alias | Description | Required | Default | Env |
@@ -76,47 +44,24 @@ tailor-sdk workflow list [options]
76
44
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
77
45
  | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
78
46
 
79
- <!-- politty:command:workflow list:options:end -->
80
-
81
- <!-- politty:command:workflow list:global-options-link:start -->
82
-
83
47
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
84
48
 
85
- <!-- politty:command:workflow list:global-options-link:end -->
86
- <!-- politty:command:workflow get:heading:start -->
87
-
88
49
  ### workflow get
89
50
 
90
- <!-- politty:command:workflow get:heading:end -->
91
-
92
- <!-- politty:command:workflow get:description:start -->
93
-
94
51
  Get workflow details.
95
52
 
96
- <!-- politty:command:workflow get:description:end -->
97
-
98
- <!-- politty:command:workflow get:usage:start -->
99
-
100
53
  **Usage**
101
54
 
102
55
  ```
103
56
  tailor-sdk workflow get [options] <name>
104
57
  ```
105
58
 
106
- <!-- politty:command:workflow get:usage:end -->
107
-
108
- <!-- politty:command:workflow get:arguments:start -->
109
-
110
59
  **Arguments**
111
60
 
112
61
  | Argument | Description | Required |
113
62
  | -------- | ------------- | -------- |
114
63
  | `name` | Workflow name | Yes |
115
64
 
116
- <!-- politty:command:workflow get:arguments:end -->
117
-
118
- <!-- politty:command:workflow get:options:start -->
119
-
120
65
  **Options**
121
66
 
122
67
  | Option | Alias | Description | Required | Default | Env |
@@ -124,47 +69,24 @@ tailor-sdk workflow get [options] <name>
124
69
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
125
70
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
126
71
 
127
- <!-- politty:command:workflow get:options:end -->
128
-
129
- <!-- politty:command:workflow get:global-options-link:start -->
130
-
131
72
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
132
73
 
133
- <!-- politty:command:workflow get:global-options-link:end -->
134
- <!-- politty:command:workflow start:heading:start -->
135
-
136
74
  ### workflow start
137
75
 
138
- <!-- politty:command:workflow start:heading:end -->
139
-
140
- <!-- politty:command:workflow start:description:start -->
141
-
142
76
  Start a workflow execution.
143
77
 
144
- <!-- politty:command:workflow start:description:end -->
145
-
146
- <!-- politty:command:workflow start:usage:start -->
147
-
148
78
  **Usage**
149
79
 
150
80
  ```
151
81
  tailor-sdk workflow start [options] <name>
152
82
  ```
153
83
 
154
- <!-- politty:command:workflow start:usage:end -->
155
-
156
- <!-- politty:command:workflow start:arguments:start -->
157
-
158
84
  **Arguments**
159
85
 
160
86
  | Argument | Description | Required |
161
87
  | -------- | ------------- | -------- |
162
88
  | `name` | Workflow name | Yes |
163
89
 
164
- <!-- politty:command:workflow start:arguments:end -->
165
-
166
- <!-- politty:command:workflow start:options:start -->
167
-
168
90
  **Options**
169
91
 
170
92
  | Option | Alias | Description | Required | Default | Env |
@@ -175,135 +97,161 @@ tailor-sdk workflow start [options] <name>
175
97
  | `--machine-user <MACHINE_USER>` | `-m` | Machine user name. Falls back to the active profile's default machine user. | No | - | `TAILOR_PLATFORM_MACHINE_USER_NAME` |
176
98
  | `--arg <ARG>` | `-a` | Workflow argument (JSON string) | No | - | - |
177
99
  | `--wait` | `-W` | Wait for execution to complete | No | `false` | - |
178
- | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
179
- | `--logs` | `-l` | Display job execution logs after completion (requires --wait) | No | `false` | - |
180
-
181
- <!-- politty:command:workflow start:options:end -->
182
-
183
- <!-- politty:command:workflow start:global-options-link:start -->
100
+ | `--interval <INTERVAL>` | `-i` | Polling interval when waiting (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
101
+ | `--timeout <TIMEOUT>` | `-t` | Maximum time to wait (e.g., '30s', '10m') | No | `"10m"` | - |
102
+ | `--until <UNTIL>` | `-u` | Wait target (success, suspended, terminal) | No | `"terminal"` | - |
103
+ | `--logs` | `-l` | Display job execution logs after completion | No | `false` | - |
184
104
 
185
105
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
186
106
 
187
- <!-- politty:command:workflow start:global-options-link:end -->
188
- <!-- politty:command:workflow executions:heading:start -->
189
-
190
- ### workflow executions
107
+ **Usage Examples:**
191
108
 
192
- <!-- politty:command:workflow executions:heading:end -->
109
+ ```bash
110
+ # Start a workflow
111
+ tailor-sdk workflow start my-workflow -m admin-machine-user
193
112
 
194
- <!-- politty:command:workflow executions:description:start -->
113
+ # Start with argument
114
+ tailor-sdk workflow start my-workflow -m admin -a '{"userId": "123"}'
195
115
 
196
- List or get workflow executions.
116
+ # Start and wait for completion
117
+ tailor-sdk workflow start my-workflow -m admin -W
118
+ ```
197
119
 
198
- <!-- politty:command:workflow executions:description:end -->
120
+ ### workflow wait
199
121
 
200
- <!-- politty:command:workflow executions:usage:start -->
122
+ Wait for a workflow execution.
201
123
 
202
124
  **Usage**
203
125
 
204
126
  ```
205
- tailor-sdk workflow executions [options] [execution-id]
127
+ tailor-sdk workflow wait [options] <execution-id>
206
128
  ```
207
129
 
208
- <!-- politty:command:workflow executions:usage:end -->
209
-
210
- <!-- politty:command:workflow executions:arguments:start -->
211
-
212
130
  **Arguments**
213
131
 
214
- | Argument | Description | Required |
215
- | -------------- | ----------------------------------------- | -------- |
216
- | `execution-id` | Execution ID (if provided, shows details) | No |
217
-
218
- <!-- politty:command:workflow executions:arguments:end -->
219
-
220
- <!-- politty:command:workflow executions:options:start -->
132
+ | Argument | Description | Required |
133
+ | -------------- | ------------ | -------- |
134
+ | `execution-id` | Execution ID | Yes |
221
135
 
222
136
  **Options**
223
137
 
224
- | Option | Alias | Description | Required | Default | Env |
225
- | --------------------------------- | ----- | -------------------------------------------------------------- | -------- | -------- | ------------------------------ |
226
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
227
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
228
- | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
229
- | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0: unlimited) | No | `50` | - |
230
- | `--workflow-name <WORKFLOW_NAME>` | `-n` | Filter by workflow name (list mode only) | No | - | - |
231
- | `--status <STATUS>` | `-s` | Filter by status (list mode only) | No | - | - |
232
- | `--wait` | `-W` | Wait for execution to complete | No | `false` | - |
233
- | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
234
- | `--logs` | - | Display job execution logs (detail mode only) | No | `false` | - |
235
-
236
- <!-- politty:command:workflow executions:options:end -->
237
-
238
- <!-- politty:command:workflow executions:global-options-link:start -->
138
+ | Option | Alias | Description | Required | Default | Env |
139
+ | ------------------------------- | ----- | --------------------------------------------------------- | -------- | ------------ | ------------------------------ |
140
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
141
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
142
+ | `--interval <INTERVAL>` | `-i` | Polling interval when waiting (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
143
+ | `--timeout <TIMEOUT>` | `-t` | Maximum time to wait (e.g., '30s', '10m') | No | `"10m"` | - |
144
+ | `--until <UNTIL>` | `-u` | Wait target (success, suspended, terminal) | No | `"terminal"` | - |
145
+ | `--logs` | `-l` | Display job execution logs after completion | No | `false` | - |
239
146
 
240
147
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
241
148
 
242
- <!-- politty:command:workflow executions:global-options-link:end -->
243
- <!-- politty:command:workflow resume:heading:start -->
149
+ **Examples**
244
150
 
245
- ### workflow resume
151
+ **Wait for workflow success**
246
152
 
247
- <!-- politty:command:workflow resume:heading:end -->
153
+ ```bash
154
+ $ tailor-sdk workflow wait execution-id --until success --timeout 10m --json
155
+ ```
248
156
 
249
- <!-- politty:command:workflow resume:description:start -->
157
+ **Wait for a workflow wait point**
250
158
 
251
- Resume a failed or pending workflow execution.
159
+ ```bash
160
+ $ tailor-sdk workflow wait execution-id --until suspended --timeout 6m --logs --json
161
+ ```
252
162
 
253
- <!-- politty:command:workflow resume:description:end -->
163
+ **Wait for success, failure, or suspension**
164
+
165
+ ```bash
166
+ $ tailor-sdk workflow wait execution-id --until terminal
167
+ ```
254
168
 
255
- <!-- politty:command:workflow resume:usage:start -->
169
+ **Shell automation**
256
170
 
257
- **Usage**
171
+ Capture the execution ID from `workflow start` and wait for the same run from a
172
+ separate command:
258
173
 
174
+ ```bash
175
+ execution_id="$(
176
+ tailor-sdk workflow start order-workflow --json | jq -r '.executionId'
177
+ )"
178
+
179
+ tailor-sdk workflow wait "$execution_id" \
180
+ --until success \
181
+ --timeout 10m \
182
+ --interval 5s \
183
+ --json
259
184
  ```
260
- tailor-sdk workflow resume [options] <execution-id>
185
+
186
+ Wait until a workflow reaches a wait point, such as an approval step:
187
+
188
+ ```bash
189
+ tailor-sdk workflow wait "$execution_id" \
190
+ --until suspended \
191
+ --timeout 6m \
192
+ --logs \
193
+ --json
261
194
  ```
262
195
 
263
- <!-- politty:command:workflow resume:usage:end -->
196
+ **Programmatic API**
264
197
 
265
- <!-- politty:command:workflow resume:arguments:start -->
198
+ Use `waitWorkflowExecution` when a script already has an execution ID and needs
199
+ the same waiter behavior as the CLI:
266
200
 
267
- **Arguments**
201
+ ```ts
202
+ import { waitWorkflowExecution } from "@tailor-platform/sdk/cli";
268
203
 
269
- | Argument | Description | Required |
270
- | -------------- | ------------------- | -------- |
271
- | `execution-id` | Failed execution ID | Yes |
204
+ const executionId = process.env.EXECUTION_ID;
272
205
 
273
- <!-- politty:command:workflow resume:arguments:end -->
206
+ if (!executionId) {
207
+ throw new Error("EXECUTION_ID is required");
208
+ }
274
209
 
275
- <!-- politty:command:workflow resume:options:start -->
210
+ const result = await waitWorkflowExecution({
211
+ executionId,
212
+ until: "success",
213
+ timeout: 10 * 60 * 1000,
214
+ interval: 5000,
215
+ });
276
216
 
277
- **Options**
217
+ if (result.timedOut) {
218
+ throw new Error(`Workflow ${result.id} timed out at ${result.status}`);
219
+ }
220
+ ```
278
221
 
279
- | Option | Alias | Description | Required | Default | Env |
280
- | ------------------------------- | ----- | -------------------------------------------------------------- | -------- | ------- | ------------------------------ |
281
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
282
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
283
- | `--wait` | `-W` | Wait for execution to complete | No | `false` | - |
284
- | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
285
- | `--logs` | `-l` | Display job execution logs after completion (requires --wait) | No | `false` | - |
222
+ ### workflow executions
286
223
 
287
- <!-- politty:command:workflow resume:options:end -->
224
+ List or get workflow executions.
288
225
 
289
- <!-- politty:command:workflow resume:global-options-link:start -->
226
+ **Usage**
290
227
 
291
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
228
+ ```
229
+ tailor-sdk workflow executions [options] [execution-id]
230
+ ```
292
231
 
293
- <!-- politty:command:workflow resume:global-options-link:end -->
232
+ **Arguments**
294
233
 
295
- **Usage Examples:**
234
+ | Argument | Description | Required |
235
+ | -------------- | ----------------------------------------- | -------- |
236
+ | `execution-id` | Execution ID (if provided, shows details) | No |
296
237
 
297
- ```bash
298
- # Start a workflow
299
- tailor-sdk workflow start my-workflow -m admin-machine-user
238
+ **Options**
300
239
 
301
- # Start with argument
302
- tailor-sdk workflow start my-workflow -m admin -a '{"userId": "123"}'
240
+ | Option | Alias | Description | Required | Default | Env |
241
+ | --------------------------------- | ----- | --------------------------------------------------------- | -------- | ------------ | ------------------------------ |
242
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
243
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
244
+ | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
245
+ | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0: unlimited) | No | `50` | - |
246
+ | `--workflow-name <WORKFLOW_NAME>` | `-n` | Filter by workflow name (list mode only) | No | - | - |
247
+ | `--status <STATUS>` | `-s` | Filter by status (list mode only) | No | - | - |
248
+ | `--wait` | `-W` | Wait for execution to complete | No | `false` | - |
249
+ | `--interval <INTERVAL>` | `-i` | Polling interval when waiting (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
250
+ | `--timeout <TIMEOUT>` | `-t` | Maximum time to wait (e.g., '30s', '10m') | No | `"10m"` | - |
251
+ | `--until <UNTIL>` | `-u` | Wait target (success, suspended, terminal) | No | `"terminal"` | - |
252
+ | `--logs` | - | Display job execution logs (detail mode only) | No | `false` | - |
303
253
 
304
- # Start and wait for completion
305
- tailor-sdk workflow start my-workflow -m admin -W
306
- ```
254
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
307
255
 
308
256
  **Usage Examples:**
309
257
 
@@ -326,3 +274,33 @@ tailor-sdk workflow executions <execution-id> --logs
326
274
  # Wait for execution to complete
327
275
  tailor-sdk workflow executions <execution-id> -W
328
276
  ```
277
+
278
+ ### workflow resume
279
+
280
+ Resume a failed or pending workflow execution.
281
+
282
+ **Usage**
283
+
284
+ ```
285
+ tailor-sdk workflow resume [options] <execution-id>
286
+ ```
287
+
288
+ **Arguments**
289
+
290
+ | Argument | Description | Required |
291
+ | -------------- | ------------------- | -------- |
292
+ | `execution-id` | Failed execution ID | Yes |
293
+
294
+ **Options**
295
+
296
+ | Option | Alias | Description | Required | Default | Env |
297
+ | ------------------------------- | ----- | --------------------------------------------------------- | -------- | ------------ | ------------------------------ |
298
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
299
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
300
+ | `--wait` | `-W` | Wait for execution to complete | No | `false` | - |
301
+ | `--interval <INTERVAL>` | `-i` | Polling interval when waiting (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
302
+ | `--timeout <TIMEOUT>` | `-t` | Maximum time to wait (e.g., '30s', '10m') | No | `"10m"` | - |
303
+ | `--until <UNTIL>` | `-u` | Wait target (success, suspended, terminal) | No | `"terminal"` | - |
304
+ | `--logs` | `-l` | Display job execution logs after completion | No | `false` | - |
305
+
306
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.