@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,30 +2,16 @@
2
2
 
3
3
  Commands for managing executors and executor jobs.
4
4
 
5
- <!-- politty:command:executor:heading:start -->
6
-
7
5
  ## executor
8
6
 
9
- <!-- politty:command:executor:heading:end -->
10
-
11
- <!-- politty:command:executor:description:start -->
12
-
13
7
  Manage executors
14
8
 
15
- <!-- politty:command:executor:description:end -->
16
-
17
- <!-- politty:command:executor:usage:start -->
18
-
19
9
  **Usage**
20
10
 
21
11
  ```
22
12
  tailor-sdk executor [command]
23
13
  ```
24
14
 
25
- <!-- politty:command:executor:usage:end -->
26
-
27
- <!-- politty:command:executor:subcommands:start -->
28
-
29
15
  **Commands**
30
16
 
31
17
  | Command | Description |
@@ -36,38 +22,18 @@ tailor-sdk executor [command]
36
22
  | [`executor get`](#executor-get) | Get executor details |
37
23
  | [`executor webhook`](#executor-webhook) | Manage executor webhooks |
38
24
 
39
- <!-- politty:command:executor:subcommands:end -->
40
-
41
- <!-- politty:command:executor:global-options-link:start -->
42
-
43
25
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
44
26
 
45
- <!-- politty:command:executor:global-options-link:end -->
46
-
47
- <!-- politty:command:executor list:heading:start -->
48
-
49
27
  ### executor list
50
28
 
51
- <!-- politty:command:executor list:heading:end -->
52
-
53
- <!-- politty:command:executor list:description:start -->
54
-
55
29
  List all executors
56
30
 
57
- <!-- politty:command:executor list:description:end -->
58
-
59
- <!-- politty:command:executor list:usage:start -->
60
-
61
31
  **Usage**
62
32
 
63
33
  ```
64
34
  tailor-sdk executor list [options]
65
35
  ```
66
36
 
67
- <!-- politty:command:executor list:usage:end -->
68
-
69
- <!-- politty:command:executor list:options:start -->
70
-
71
37
  **Options**
72
38
 
73
39
  | Option | Alias | Description | Required | Default | Env |
@@ -77,48 +43,24 @@ tailor-sdk executor list [options]
77
43
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
78
44
  | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
79
45
 
80
- <!-- politty:command:executor list:options:end -->
81
-
82
- <!-- politty:command:executor list:global-options-link:start -->
83
-
84
46
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
85
47
 
86
- <!-- politty:command:executor list:global-options-link:end -->
87
-
88
- <!-- politty:command:executor get:heading:start -->
89
-
90
48
  ### executor get
91
49
 
92
- <!-- politty:command:executor get:heading:end -->
93
-
94
- <!-- politty:command:executor get:description:start -->
95
-
96
50
  Get executor details
97
51
 
98
- <!-- politty:command:executor get:description:end -->
99
-
100
- <!-- politty:command:executor get:usage:start -->
101
-
102
52
  **Usage**
103
53
 
104
54
  ```
105
55
  tailor-sdk executor get [options] <name>
106
56
  ```
107
57
 
108
- <!-- politty:command:executor get:usage:end -->
109
-
110
- <!-- politty:command:executor get:arguments:start -->
111
-
112
58
  **Arguments**
113
59
 
114
60
  | Argument | Description | Required |
115
61
  | -------- | ------------- | -------- |
116
62
  | `name` | Executor name | Yes |
117
63
 
118
- <!-- politty:command:executor get:arguments:end -->
119
-
120
- <!-- politty:command:executor get:options:start -->
121
-
122
64
  **Options**
123
65
 
124
66
  | Option | Alias | Description | Required | Default | Env |
@@ -126,38 +68,18 @@ tailor-sdk executor get [options] <name>
126
68
  | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
127
69
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
128
70
 
129
- <!-- politty:command:executor get:options:end -->
130
-
131
- <!-- politty:command:executor get:global-options-link:start -->
132
-
133
71
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
134
72
 
135
- <!-- politty:command:executor get:global-options-link:end -->
136
-
137
- <!-- politty:command:executor jobs:heading:start -->
138
-
139
73
  ### executor jobs
140
74
 
141
- <!-- politty:command:executor jobs:heading:end -->
142
-
143
- <!-- politty:command:executor jobs:description:start -->
144
-
145
75
  List or get executor jobs.
146
76
 
147
- <!-- politty:command:executor jobs:description:end -->
148
-
149
- <!-- politty:command:executor jobs:usage:start -->
150
-
151
77
  **Usage**
152
78
 
153
79
  ```
154
80
  tailor-sdk executor jobs [options] <executor-name> [job-id]
155
81
  ```
156
82
 
157
- <!-- politty:command:executor jobs:usage:end -->
158
-
159
- <!-- politty:command:executor jobs:arguments:start -->
160
-
161
83
  **Arguments**
162
84
 
163
85
  | Argument | Description | Required |
@@ -165,10 +87,6 @@ tailor-sdk executor jobs [options] <executor-name> [job-id]
165
87
  | `executor-name` | Executor name | Yes |
166
88
  | `job-id` | Job ID (if provided, shows job details) | No |
167
89
 
168
- <!-- politty:command:executor jobs:arguments:end -->
169
-
170
- <!-- politty:command:executor jobs:options:start -->
171
-
172
90
  **Options**
173
91
 
174
92
  | Option | Alias | Description | Required | Default | Env |
@@ -179,13 +97,12 @@ tailor-sdk executor jobs [options] <executor-name> [job-id]
179
97
  | `--attempts` | - | Show job attempts (only with job ID) (detail mode only) | No | `false` | - |
180
98
  | `--wait` | `-W` | Wait for job completion and downstream execution (workflow/function) if applicable (detail mode only) | No | `false` | - |
181
99
  | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
100
+ | `--timeout <TIMEOUT>` | `-t` | Maximum time to wait when using --wait (e.g., '30s', '5m') | No | `"5m"` | - |
182
101
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
183
102
  | `--limit <LIMIT>` | - | Maximum number of jobs to list (0: unlimited, default: 50) (list mode only) | No | `50` | - |
184
103
  | `--logs` | `-l` | Display function execution logs after completion (requires --wait) | No | `false` | - |
185
104
 
186
- <!-- politty:command:executor jobs:options:end -->
187
-
188
- <!-- politty:command:executor jobs:examples:start -->
105
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
189
106
 
190
107
  **Examples**
191
108
 
@@ -231,48 +148,22 @@ $ tailor-sdk executor jobs my-executor <job-id> -W
231
148
  $ tailor-sdk executor jobs my-executor <job-id> -W -l
232
149
  ```
233
150
 
234
- <!-- politty:command:executor jobs:examples:end -->
235
-
236
- <!-- politty:command:executor jobs:global-options-link:start -->
237
-
238
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
239
-
240
- <!-- politty:command:executor jobs:global-options-link:end -->
241
-
242
- <!-- politty:command:executor trigger:heading:start -->
243
-
244
151
  ### executor trigger
245
152
 
246
- <!-- politty:command:executor trigger:heading:end -->
247
-
248
- <!-- politty:command:executor trigger:description:start -->
249
-
250
153
  Trigger an executor manually.
251
154
 
252
- <!-- politty:command:executor trigger:description:end -->
253
-
254
- <!-- politty:command:executor trigger:usage:start -->
255
-
256
155
  **Usage**
257
156
 
258
157
  ```
259
158
  tailor-sdk executor trigger [options] <executor-name>
260
159
  ```
261
160
 
262
- <!-- politty:command:executor trigger:usage:end -->
263
-
264
- <!-- politty:command:executor trigger:arguments:start -->
265
-
266
161
  **Arguments**
267
162
 
268
163
  | Argument | Description | Required |
269
164
  | --------------- | ------------- | -------- |
270
165
  | `executor-name` | Executor name | Yes |
271
166
 
272
- <!-- politty:command:executor trigger:arguments:end -->
273
-
274
- <!-- politty:command:executor trigger:options:start -->
275
-
276
167
  **Options**
277
168
 
278
169
  | Option | Alias | Description | Required | Default | Env |
@@ -283,12 +174,9 @@ tailor-sdk executor trigger [options] <executor-name>
283
174
  | `--header <HEADER>` | `-H` | Request header (format: 'Key: Value', can be specified multiple times) | No | - | - |
284
175
  | `--wait` | `-W` | Wait for job completion and downstream execution (workflow/function) if applicable | No | `false` | - |
285
176
  | `--interval <INTERVAL>` | `-i` | Polling interval when using --wait (e.g., '3s', '500ms', '1m') | No | `"3s"` | - |
177
+ | `--timeout <TIMEOUT>` | `-t` | Maximum time to wait when using --wait (e.g., '30s', '5m') | No | `"5m"` | - |
286
178
  | `--logs` | `-l` | Display function execution logs after completion (requires --wait) | No | `false` | - |
287
179
 
288
- <!-- politty:command:executor trigger:options:end -->
289
-
290
- <!-- politty:command:executor trigger:examples:start -->
291
-
292
180
  **Examples**
293
181
 
294
182
  **Trigger an executor**
@@ -321,9 +209,56 @@ $ tailor-sdk executor trigger my-executor -W
321
209
  $ tailor-sdk executor trigger my-executor -W -l
322
210
  ```
323
211
 
324
- <!-- politty:command:executor trigger:examples:end -->
212
+ **Shell automation**
213
+
214
+ Trigger an executor and wait for the executor job plus any downstream workflow or
215
+ function execution:
216
+
217
+ ```bash
218
+ tailor-sdk executor trigger daily-workflow \
219
+ --wait \
220
+ --timeout 5m \
221
+ --interval 5s \
222
+ --json
223
+ ```
325
224
 
326
- <!-- politty:command:executor trigger:notes:start -->
225
+ Wait for an existing job when another process already captured the job ID:
226
+
227
+ ```bash
228
+ tailor-sdk executor jobs daily-workflow "$job_id" \
229
+ --wait \
230
+ --timeout 5m \
231
+ --logs \
232
+ --json
233
+ ```
234
+
235
+ **Programmatic API**
236
+
237
+ Import your executor definition and pass it to the typed API:
238
+
239
+ ```ts
240
+ import { triggerExecutor, watchExecutorJob } from "@tailor-platform/sdk/cli";
241
+ import dailyWorkflow from "../executors/dailyWorkflow";
242
+
243
+ const { jobId } = await triggerExecutor({
244
+ executor: dailyWorkflow,
245
+ });
246
+
247
+ if (!jobId) {
248
+ throw new Error("Executor trigger did not return a job ID");
249
+ }
250
+
251
+ const result = await watchExecutorJob({
252
+ executor: dailyWorkflow,
253
+ jobId,
254
+ timeout: 5 * 60 * 1000,
255
+ interval: 5000,
256
+ });
257
+
258
+ if (result.timedOut) {
259
+ throw new Error(`Executor job ${result.job.id} timed out at ${result.job.status}`);
260
+ }
261
+ ```
327
262
 
328
263
  **Notes**
329
264
 
@@ -342,37 +277,19 @@ When using `--wait`, the CLI tracks not only the executor job but also any downs
342
277
 
343
278
  The `--logs` option displays logs from the downstream execution when available.
344
279
 
345
- <!-- politty:command:executor trigger:notes:end -->
346
-
347
- <!-- politty:command:executor trigger:global-options-link:start -->
348
-
349
280
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
350
281
 
351
- <!-- politty:command:executor trigger:global-options-link:end -->
352
-
353
- <!-- politty:command:executor webhook:heading:start -->
354
-
355
282
  ### executor webhook
356
283
 
357
- <!-- politty:command:executor webhook:heading:end -->
358
-
359
- <!-- politty:command:executor webhook:description:start -->
360
-
361
284
  Manage executor webhooks
362
285
 
363
- <!-- politty:command:executor webhook:description:end -->
364
-
365
- <!-- politty:command:executor webhook:usage:start -->
366
-
367
286
  **Usage**
368
287
 
369
288
  ```
370
289
  tailor-sdk executor webhook [command]
371
290
  ```
372
291
 
373
- <!-- politty:command:executor webhook:usage:end -->
374
-
375
- <!-- politty:command:executor webhook:subcommands:start -->
292
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
376
293
 
377
294
  **Commands**
378
295
 
@@ -380,38 +297,16 @@ tailor-sdk executor webhook [command]
380
297
  | ------------------------------------------------- | --------------------------------------------- |
381
298
  | [`executor webhook list`](#executor-webhook-list) | List executors with incoming webhook triggers |
382
299
 
383
- <!-- politty:command:executor webhook:subcommands:end -->
384
-
385
- <!-- politty:command:executor webhook:global-options-link:start -->
386
-
387
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
388
-
389
- <!-- politty:command:executor webhook:global-options-link:end -->
390
-
391
- <!-- politty:command:executor webhook list:heading:start -->
392
-
393
300
  #### executor webhook list
394
301
 
395
- <!-- politty:command:executor webhook list:heading:end -->
396
-
397
- <!-- politty:command:executor webhook list:description:start -->
398
-
399
302
  List executors with incoming webhook triggers
400
303
 
401
- <!-- politty:command:executor webhook list:description:end -->
402
-
403
- <!-- politty:command:executor webhook list:usage:start -->
404
-
405
304
  **Usage**
406
305
 
407
306
  ```
408
307
  tailor-sdk executor webhook list [options]
409
308
  ```
410
309
 
411
- <!-- politty:command:executor webhook list:usage:end -->
412
-
413
- <!-- politty:command:executor webhook list:options:start -->
414
-
415
310
  **Options**
416
311
 
417
312
  | Option | Alias | Description | Required | Default | Env |
@@ -421,10 +316,4 @@ tailor-sdk executor webhook list [options]
421
316
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
422
317
  | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
423
318
 
424
- <!-- politty:command:executor webhook list:options:end -->
425
-
426
- <!-- politty:command:executor webhook list:global-options-link:start -->
427
-
428
319
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
429
-
430
- <!-- politty:command:executor webhook list:global-options-link:end -->
@@ -2,29 +2,17 @@
2
2
 
3
3
  Commands for managing function registries and viewing function execution logs.
4
4
 
5
- <!-- politty:command:function:heading:start -->
6
-
7
5
  ## function
8
6
 
9
- <!-- politty:command:function:heading:end -->
10
-
11
- <!-- politty:command:function:description:start -->
12
-
13
7
  Manage functions
14
8
 
15
- <!-- politty:command:function:description:end -->
16
-
17
- <!-- politty:command:function:usage:start -->
18
-
19
9
  **Usage**
20
10
 
21
11
  ```
22
12
  tailor-sdk function [command]
23
13
  ```
24
14
 
25
- <!-- politty:command:function:usage:end -->
26
-
27
- <!-- politty:command:function:subcommands:start -->
15
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
28
16
 
29
17
  **Commands**
30
18
 
@@ -35,37 +23,16 @@ tailor-sdk function [command]
35
23
  | [`function logs`](#function-logs) | List or get function execution logs. |
36
24
  | [`function test-run`](#function-test-run) | Run a function on the Tailor Platform server without deploying. |
37
25
 
38
- <!-- politty:command:function:subcommands:end -->
39
-
40
- <!-- politty:command:function:global-options-link:start -->
41
-
42
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
43
-
44
- <!-- politty:command:function:global-options-link:end -->
45
- <!-- politty:command:function get:heading:start -->
46
-
47
26
  ### function get
48
27
 
49
- <!-- politty:command:function get:heading:end -->
50
-
51
- <!-- politty:command:function get:description:start -->
52
-
53
28
  Get a function registry by name
54
29
 
55
- <!-- politty:command:function get:description:end -->
56
-
57
- <!-- politty:command:function get:usage:start -->
58
-
59
30
  **Usage**
60
31
 
61
32
  ```
62
33
  tailor-sdk function get [options]
63
34
  ```
64
35
 
65
- <!-- politty:command:function get:usage:end -->
66
-
67
- <!-- politty:command:function get:options:start -->
68
-
69
36
  **Options**
70
37
 
71
38
  | Option | Alias | Description | Required | Default | Env |
@@ -74,37 +41,18 @@ tailor-sdk function get [options]
74
41
  | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
75
42
  | `--name <NAME>` | `-n` | Function name | Yes | - | - |
76
43
 
77
- <!-- politty:command:function get:options:end -->
78
-
79
- <!-- politty:command:function get:global-options-link:start -->
80
-
81
44
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
82
45
 
83
- <!-- politty:command:function get:global-options-link:end -->
84
- <!-- politty:command:function list:heading:start -->
85
-
86
46
  ### function list
87
47
 
88
- <!-- politty:command:function list:heading:end -->
89
-
90
- <!-- politty:command:function list:description:start -->
91
-
92
48
  List function registries in a workspace
93
49
 
94
- <!-- politty:command:function list:description:end -->
95
-
96
- <!-- politty:command:function list:usage:start -->
97
-
98
50
  **Usage**
99
51
 
100
52
  ```
101
53
  tailor-sdk function list [options]
102
54
  ```
103
55
 
104
- <!-- politty:command:function list:usage:end -->
105
-
106
- <!-- politty:command:function list:options:start -->
107
-
108
56
  **Options**
109
57
 
110
58
  | Option | Alias | Description | Required | Default | Env |
@@ -114,48 +62,24 @@ tailor-sdk function list [options]
114
62
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
115
63
  | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
116
64
 
117
- <!-- politty:command:function list:options:end -->
118
-
119
- <!-- politty:command:function list:global-options-link:start -->
120
-
121
65
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
122
66
 
123
- <!-- politty:command:function list:global-options-link:end -->
124
-
125
- <!-- politty:command:function logs:heading:start -->
126
-
127
67
  ### function logs
128
68
 
129
- <!-- politty:command:function logs:heading:end -->
130
-
131
- <!-- politty:command:function logs:description:start -->
132
-
133
69
  List or get function execution logs.
134
70
 
135
- <!-- politty:command:function logs:description:end -->
136
-
137
- <!-- politty:command:function logs:usage:start -->
138
-
139
71
  **Usage**
140
72
 
141
73
  ```
142
74
  tailor-sdk function logs [options] [execution-id]
143
75
  ```
144
76
 
145
- <!-- politty:command:function logs:usage:end -->
146
-
147
- <!-- politty:command:function logs:arguments:start -->
148
-
149
77
  **Arguments**
150
78
 
151
79
  | Argument | Description | Required |
152
80
  | -------------- | --------------------------------------------------- | -------- |
153
81
  | `execution-id` | Execution ID (if provided, shows details with logs) | No |
154
82
 
155
- <!-- politty:command:function logs:arguments:end -->
156
-
157
- <!-- politty:command:function logs:options:start -->
158
-
159
83
  **Options**
160
84
 
161
85
  | Option | Alias | Description | Required | Default | Env |
@@ -165,16 +89,8 @@ tailor-sdk function logs [options] [execution-id]
165
89
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
166
90
  | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0: unlimited) | No | `50` | - |
167
91
 
168
- <!-- politty:command:function logs:options:end -->
169
-
170
- <!-- politty:command:function logs:global-options-link:start -->
171
-
172
92
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
173
93
 
174
- <!-- politty:command:function logs:global-options-link:end -->
175
-
176
- <!-- politty:command:function logs:examples:start -->
177
-
178
94
  **Examples**
179
95
 
180
96
  **List all function execution logs**
@@ -201,48 +117,28 @@ $ tailor-sdk function logs --json
201
117
  $ tailor-sdk function logs <execution-id> --json
202
118
  ```
203
119
 
204
- <!-- politty:command:function logs:examples:end -->
205
-
206
- <!-- politty:command:function logs:notes:start -->
207
-
208
120
  **Notes**
209
121
 
210
122
  When viewing a specific execution that failed, the command displays error details with the stack trace mapped back to your original source files (clickable file links and code snippets, matching `function test-run` output).
211
123
 
212
124
  Stack traces stay accurate even after later redeploys, because the trace is resolved against the exact build that produced the execution. If that build is no longer available, the command falls back to a plain-text error display.
213
125
 
214
- <!-- politty:command:function logs:notes:end -->
215
-
216
- <!-- politty:command:function test-run:heading:start -->
217
-
218
126
  ### function test-run
219
127
 
220
- <!-- politty:command:function test-run:heading:end -->
221
- <!-- politty:command:function test-run:description:start -->
222
-
223
128
  Run a function on the Tailor Platform server without deploying.
224
129
 
225
- <!-- politty:command:function test-run:description:end -->
226
- <!-- politty:command:function test-run:usage:start -->
227
-
228
130
  **Usage**
229
131
 
230
132
  ```
231
133
  tailor-sdk function test-run [options] <file>
232
134
  ```
233
135
 
234
- <!-- politty:command:function test-run:usage:end -->
235
- <!-- politty:command:function test-run:arguments:start -->
236
-
237
136
  **Arguments**
238
137
 
239
138
  | Argument | Description | Required |
240
139
  | -------- | ------------------------- | -------- |
241
140
  | `file` | Path to the function file | Yes |
242
141
 
243
- <!-- politty:command:function test-run:arguments:end -->
244
- <!-- politty:command:function test-run:options:start -->
245
-
246
142
  **Options**
247
143
 
248
144
  | Option | Alias | Description | Required | Default | Env |
@@ -254,8 +150,7 @@ tailor-sdk function test-run [options] <file>
254
150
  | `--machine-user <MACHINE_USER>` | `-m` | Machine user name for authentication. Falls back to the active profile's default machine user. | No | - | `TAILOR_PLATFORM_MACHINE_USER_NAME` |
255
151
  | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | - |
256
152
 
257
- <!-- politty:command:function test-run:options:end -->
258
- <!-- politty:command:function test-run:examples:start -->
153
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
259
154
 
260
155
  **Examples**
261
156
 
@@ -277,9 +172,6 @@ $ tailor-sdk function test-run workflows/sample.ts --name validate-order
277
172
  $ tailor-sdk function test-run build/resolvers/add.js --arg '{"a":1,"b":2}'
278
173
  ```
279
174
 
280
- <!-- politty:command:function test-run:examples:end -->
281
- <!-- politty:command:function test-run:notes:start -->
282
-
283
175
  **Notes**
284
176
 
285
177
  You can pass either a source file (`.ts`) or a pre-bundled file (`.js`).
@@ -288,11 +180,3 @@ When a `.js` file is provided, detection and bundling are skipped and the file i
288
180
  > [!WARNING]
289
181
  > Workflow job `.trigger()` calls do not work in test-run mode.
290
182
  > Triggered jobs are not executed; only the target job's `body` function runs in isolation.
291
-
292
- <!-- politty:command:function test-run:notes:end -->
293
-
294
- <!-- politty:command:function test-run:global-options-link:start -->
295
-
296
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
297
-
298
- <!-- politty:command:function test-run:global-options-link:end -->