@tailor-platform/sdk 1.68.0 → 1.70.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 (117) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/application-BakHtldG.mjs +4 -0
  3. package/dist/application-Df5_I83n.mjs +6432 -0
  4. package/dist/application-Df5_I83n.mjs.map +1 -0
  5. package/dist/cli/erd-viewer-assets/app.js +279 -36
  6. package/dist/cli/erd-viewer-assets/index.html +4 -0
  7. package/dist/cli/erd-viewer-assets/styles.css +252 -5
  8. package/dist/cli/index.mjs +650 -98
  9. package/dist/cli/index.mjs.map +1 -1
  10. package/dist/cli/lib.d.mts +247 -160
  11. package/dist/cli/lib.mjs +3 -3
  12. package/dist/cli/lib.mjs.map +1 -1
  13. package/dist/cli/skills.mjs +1 -1
  14. package/dist/completion/zsh-worker.zsh +175 -24
  15. package/dist/configure/index.d.mts +5 -5
  16. package/dist/configure/index.mjs +12 -6
  17. package/dist/configure/index.mjs.map +1 -1
  18. package/dist/{crashreport-u9y2npiy.mjs → crashreport-BqyvFk-_.mjs} +2 -2
  19. package/dist/{crashreport-u9y2npiy.mjs.map → crashreport-BqyvFk-_.mjs.map} +1 -1
  20. package/dist/{crashreport-6jpCceOF.mjs → crashreport-BwF8cHF0.mjs} +1 -1
  21. package/dist/enum-constants-C7DaWeQo.mjs.map +1 -1
  22. package/dist/field-C4zdJLW5.mjs.map +1 -1
  23. package/dist/file-utils-BHPxPXmn.mjs.map +1 -1
  24. package/dist/{idp-BlBPtXJ-.d.mts → idp-BmYwCXnJ.d.mts} +30 -3
  25. package/dist/{idp-BZPqpcYY.mjs → idp-ynUfzwpz.mjs} +9 -1
  26. package/dist/idp-ynUfzwpz.mjs.map +1 -0
  27. package/dist/{index-DvEUb3pX.d.mts → index-BAEaAqmz.d.mts} +112 -53
  28. package/dist/{index-CklcVeMG.d.mts → index-C-vsbx27.d.mts} +2 -2
  29. package/dist/{index-hXoO-AOC.d.mts → index-CKI0eZP6.d.mts} +2 -2
  30. package/dist/{index-DYhnxXYR.d.mts → index-CrqOgUF2.d.mts} +2 -2
  31. package/dist/{index-DlDRSzFZ.d.mts → index-DESLU9kI.d.mts} +2 -2
  32. package/dist/{index-DRhMpdnA.d.mts → index-dKNk8hjo.d.mts} +2 -2
  33. package/dist/job-BpsFXPbi.mjs.map +1 -1
  34. package/dist/{kysely-type-D1e0Vwkd.mjs → kysely-type-CSoZxVKN.mjs} +2 -2
  35. package/dist/{kysely-type-D1e0Vwkd.mjs.map → kysely-type-CSoZxVKN.mjs.map} +1 -1
  36. package/dist/{logger-DpJyJvNz.mjs → logger-DKF-JsAK.mjs} +3 -3
  37. package/dist/{logger-DpJyJvNz.mjs.map → logger-DKF-JsAK.mjs.map} +1 -1
  38. package/dist/{mock-DMgIygjE.mjs → mock-wf5qeZLi.mjs} +19 -9
  39. package/dist/mock-wf5qeZLi.mjs.map +1 -0
  40. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
  41. package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
  42. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
  43. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  44. package/dist/plugin/builtin/seed/index.d.mts +1 -1
  45. package/dist/plugin/index.d.mts +1 -1
  46. package/dist/plugin/index.mjs.map +1 -1
  47. package/dist/registry-D0uB0OrK.mjs.map +1 -1
  48. package/dist/{repl-editor-CJG3sz7A.mjs → repl-editor-DD5YP5mt.mjs} +4 -4
  49. package/dist/{repl-editor-CJG3sz7A.mjs.map → repl-editor-DD5YP5mt.mjs.map} +1 -1
  50. package/dist/runtime/globals.d.mts +3 -2
  51. package/dist/runtime/idp.d.mts +2 -2
  52. package/dist/runtime/idp.mjs +1 -1
  53. package/dist/runtime/index.d.mts +2 -2
  54. package/dist/runtime/index.mjs +1 -1
  55. package/dist/{runtime-DxaBq6U8.mjs → runtime-CSY0eD4_.mjs} +411 -221
  56. package/dist/runtime-CSY0eD4_.mjs.map +1 -0
  57. package/dist/{schema-1msIhXwA.mjs → schema-C4fkpWV_.mjs} +9 -15
  58. package/dist/schema-C4fkpWV_.mjs.map +1 -0
  59. package/dist/seed-YAbtMy65.mjs.map +1 -1
  60. package/dist/{service-wI3Hvrgx.mjs → service-B2Jd9CxS.mjs} +2 -2
  61. package/dist/service-B2Jd9CxS.mjs.map +1 -0
  62. package/dist/service-CRaa4Joe.mjs +4 -0
  63. package/dist/{service-DMohAx8a.mjs → service-DDWgZL_L2.mjs} +2 -2
  64. package/dist/service-DDWgZL_L2.mjs.map +1 -0
  65. package/dist/service_pb-DGSmn-aF.mjs +4 -0
  66. package/dist/{application-WpWwTyk9.mjs → service_pb-DSNjrcbW.mjs} +22 -6176
  67. package/dist/service_pb-DSNjrcbW.mjs.map +1 -0
  68. package/dist/telemetry-BQbbVo2t.mjs.map +1 -1
  69. package/dist/{types-2Be3wSMc.mjs → types-32lUMToj.mjs} +1 -1
  70. package/dist/{types-CmzfQP_m.mjs → types-D4QMmNWh.mjs} +1 -12
  71. package/dist/types-D4QMmNWh.mjs.map +1 -0
  72. package/dist/{types-Bzr0RQME.d.mts → types-Dynq4AJv.d.mts} +2 -2
  73. package/dist/{types-DZrtN6-H.d.mts → types-rj8YJcEe.d.mts} +5 -2
  74. package/dist/utils/test/index.d.mts +2 -2
  75. package/dist/utils/test/index.mjs.map +1 -1
  76. package/dist/vitest/environment.mjs +1 -1
  77. package/dist/vitest/environment.mjs.map +1 -1
  78. package/dist/vitest/index.mjs +4 -4
  79. package/dist/vitest/index.mjs.map +1 -1
  80. package/dist/vitest/setup.mjs +1 -1
  81. package/dist/{workflow.generated-1S50BhEb.d.mts → workflow.generated-DJULCuRr.d.mts} +274 -174
  82. package/docs/cli/application.md +39 -201
  83. package/docs/cli/auth.md +12 -256
  84. package/docs/cli/completion.md +0 -24
  85. package/docs/cli/crashreport.md +0 -58
  86. package/docs/cli/executor.md +2 -166
  87. package/docs/cli/function.md +2 -118
  88. package/docs/cli/organization.md +1 -211
  89. package/docs/cli/query.md +0 -20
  90. package/docs/cli/secret.md +70 -250
  91. package/docs/cli/setup.md +2 -41
  92. package/docs/cli/skills.md +0 -39
  93. package/docs/cli/staticwebsite.md +24 -172
  94. package/docs/cli/tailordb.md +25 -251
  95. package/docs/cli/upgrade.md +0 -20
  96. package/docs/cli/user.md +41 -246
  97. package/docs/cli/workflow.md +30 -189
  98. package/docs/cli/workspace.md +164 -537
  99. package/docs/cli-reference.md +61 -37
  100. package/docs/configuration.md +7 -1
  101. package/docs/github-actions.md +27 -0
  102. package/docs/multi-environment.md +22 -0
  103. package/docs/services/aigateway.md +4 -2
  104. package/docs/services/http-adapter.md +16 -1
  105. package/docs/services/idp.md +55 -2
  106. package/docs/services/staticwebsite.md +7 -1
  107. package/package.json +23 -18
  108. package/dist/application-Djeezk3m.mjs +0 -4
  109. package/dist/application-WpWwTyk9.mjs.map +0 -1
  110. package/dist/idp-BZPqpcYY.mjs.map +0 -1
  111. package/dist/mock-DMgIygjE.mjs.map +0 -1
  112. package/dist/runtime-DxaBq6U8.mjs.map +0 -1
  113. package/dist/schema-1msIhXwA.mjs.map +0 -1
  114. package/dist/service-BHQIerYh.mjs +0 -4
  115. package/dist/service-DMohAx8a.mjs.map +0 -1
  116. package/dist/service-wI3Hvrgx.mjs.map +0 -1
  117. package/dist/types-CmzfQP_m.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 |
@@ -184,9 +102,7 @@ tailor-sdk executor jobs [options] <executor-name> [job-id]
184
102
  | `--limit <LIMIT>` | - | Maximum number of jobs to list (0: unlimited, default: 50) (list mode only) | No | `50` | - |
185
103
  | `--logs` | `-l` | Display function execution logs after completion (requires --wait) | No | `false` | - |
186
104
 
187
- <!-- politty:command:executor jobs:options:end -->
188
-
189
- <!-- politty:command:executor jobs:examples:start -->
105
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
190
106
 
191
107
  **Examples**
192
108
 
@@ -232,48 +148,22 @@ $ tailor-sdk executor jobs my-executor <job-id> -W
232
148
  $ tailor-sdk executor jobs my-executor <job-id> -W -l
233
149
  ```
234
150
 
235
- <!-- politty:command:executor jobs:examples:end -->
236
-
237
- <!-- politty:command:executor jobs:global-options-link:start -->
238
-
239
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
240
-
241
- <!-- politty:command:executor jobs:global-options-link:end -->
242
-
243
- <!-- politty:command:executor trigger:heading:start -->
244
-
245
151
  ### executor trigger
246
152
 
247
- <!-- politty:command:executor trigger:heading:end -->
248
-
249
- <!-- politty:command:executor trigger:description:start -->
250
-
251
153
  Trigger an executor manually.
252
154
 
253
- <!-- politty:command:executor trigger:description:end -->
254
-
255
- <!-- politty:command:executor trigger:usage:start -->
256
-
257
155
  **Usage**
258
156
 
259
157
  ```
260
158
  tailor-sdk executor trigger [options] <executor-name>
261
159
  ```
262
160
 
263
- <!-- politty:command:executor trigger:usage:end -->
264
-
265
- <!-- politty:command:executor trigger:arguments:start -->
266
-
267
161
  **Arguments**
268
162
 
269
163
  | Argument | Description | Required |
270
164
  | --------------- | ------------- | -------- |
271
165
  | `executor-name` | Executor name | Yes |
272
166
 
273
- <!-- politty:command:executor trigger:arguments:end -->
274
-
275
- <!-- politty:command:executor trigger:options:start -->
276
-
277
167
  **Options**
278
168
 
279
169
  | Option | Alias | Description | Required | Default | Env |
@@ -287,10 +177,6 @@ tailor-sdk executor trigger [options] <executor-name>
287
177
  | `--timeout <TIMEOUT>` | `-t` | Maximum time to wait when using --wait (e.g., '30s', '5m') | No | `"5m"` | - |
288
178
  | `--logs` | `-l` | Display function execution logs after completion (requires --wait) | No | `false` | - |
289
179
 
290
- <!-- politty:command:executor trigger:options:end -->
291
-
292
- <!-- politty:command:executor trigger:examples:start -->
293
-
294
180
  **Examples**
295
181
 
296
182
  **Trigger an executor**
@@ -323,8 +209,6 @@ $ tailor-sdk executor trigger my-executor -W
323
209
  $ tailor-sdk executor trigger my-executor -W -l
324
210
  ```
325
211
 
326
- <!-- politty:command:executor trigger:examples:end -->
327
-
328
212
  **Shell automation**
329
213
 
330
214
  Trigger an executor and wait for the executor job plus any downstream workflow or
@@ -376,8 +260,6 @@ if (result.timedOut) {
376
260
  }
377
261
  ```
378
262
 
379
- <!-- politty:command:executor trigger:notes:start -->
380
-
381
263
  **Notes**
382
264
 
383
265
  Only executors with `INCOMING_WEBHOOK` or `SCHEDULE` trigger types can be triggered manually.
@@ -395,37 +277,19 @@ When using `--wait`, the CLI tracks not only the executor job but also any downs
395
277
 
396
278
  The `--logs` option displays logs from the downstream execution when available.
397
279
 
398
- <!-- politty:command:executor trigger:notes:end -->
399
-
400
- <!-- politty:command:executor trigger:global-options-link:start -->
401
-
402
280
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
403
281
 
404
- <!-- politty:command:executor trigger:global-options-link:end -->
405
-
406
- <!-- politty:command:executor webhook:heading:start -->
407
-
408
282
  ### executor webhook
409
283
 
410
- <!-- politty:command:executor webhook:heading:end -->
411
-
412
- <!-- politty:command:executor webhook:description:start -->
413
-
414
284
  Manage executor webhooks
415
285
 
416
- <!-- politty:command:executor webhook:description:end -->
417
-
418
- <!-- politty:command:executor webhook:usage:start -->
419
-
420
286
  **Usage**
421
287
 
422
288
  ```
423
289
  tailor-sdk executor webhook [command]
424
290
  ```
425
291
 
426
- <!-- politty:command:executor webhook:usage:end -->
427
-
428
- <!-- politty:command:executor webhook:subcommands:start -->
292
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
429
293
 
430
294
  **Commands**
431
295
 
@@ -433,38 +297,16 @@ tailor-sdk executor webhook [command]
433
297
  | ------------------------------------------------- | --------------------------------------------- |
434
298
  | [`executor webhook list`](#executor-webhook-list) | List executors with incoming webhook triggers |
435
299
 
436
- <!-- politty:command:executor webhook:subcommands:end -->
437
-
438
- <!-- politty:command:executor webhook:global-options-link:start -->
439
-
440
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
441
-
442
- <!-- politty:command:executor webhook:global-options-link:end -->
443
-
444
- <!-- politty:command:executor webhook list:heading:start -->
445
-
446
300
  #### executor webhook list
447
301
 
448
- <!-- politty:command:executor webhook list:heading:end -->
449
-
450
- <!-- politty:command:executor webhook list:description:start -->
451
-
452
302
  List executors with incoming webhook triggers
453
303
 
454
- <!-- politty:command:executor webhook list:description:end -->
455
-
456
- <!-- politty:command:executor webhook list:usage:start -->
457
-
458
304
  **Usage**
459
305
 
460
306
  ```
461
307
  tailor-sdk executor webhook list [options]
462
308
  ```
463
309
 
464
- <!-- politty:command:executor webhook list:usage:end -->
465
-
466
- <!-- politty:command:executor webhook list:options:start -->
467
-
468
310
  **Options**
469
311
 
470
312
  | Option | Alias | Description | Required | Default | Env |
@@ -474,10 +316,4 @@ tailor-sdk executor webhook list [options]
474
316
  | `--order <ORDER>` | - | Sort order (asc or desc) | No | `"desc"` | - |
475
317
  | `--limit <LIMIT>` | `-l` | Maximum number of items to return (0 or omit: unlimited) | No | - | - |
476
318
 
477
- <!-- politty:command:executor webhook list:options:end -->
478
-
479
- <!-- politty:command:executor webhook list:global-options-link:start -->
480
-
481
319
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
482
-
483
- <!-- 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 -->