@tailor-platform/sdk 2.5.0 → 2.7.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 (104) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/bin/tailor.mjs +3 -2
  3. package/dist/application-D5lh2-_W.mjs +194 -0
  4. package/dist/application-D5lh2-_W.mjs.map +1 -0
  5. package/dist/application-o09L68wE.mjs +1 -0
  6. package/dist/cli/commands/api/index.d.mts +1 -1
  7. package/dist/cli/commands/deploy/config-id-injector.d.mts +16 -0
  8. package/dist/cli/commands/executor/trigger.d.mts +1 -1
  9. package/dist/cli/commands/workflow/start.d.mts +1 -1
  10. package/dist/cli/commands/workspace/create.d.mts +1 -1
  11. package/dist/cli/commands/workspace/list.d.mts +1 -1
  12. package/dist/cli/lib.d.mts +10 -1
  13. package/dist/cli/lib.mjs +1 -1
  14. package/dist/cli/lib.mjs.map +1 -1
  15. package/dist/cli/main.d.mts +2 -0
  16. package/dist/cli/main.mjs +42 -1137
  17. package/dist/cli/main.mjs.map +1 -1
  18. package/dist/cli/shared/args.d.mts +71 -1
  19. package/dist/cli/shared/beta.d.mts +8 -0
  20. package/dist/cli/shared/client.d.mts +11 -1
  21. package/dist/cli/shared/command.d.mts +11 -0
  22. package/dist/cli/shared/config.d.mts +13 -0
  23. package/dist/cli/shared/context.d.mts +1 -1
  24. package/dist/cli/shared/logger.d.mts +64 -0
  25. package/dist/cli/shared/prompt.d.mts +53 -0
  26. package/dist/cli/shared/script-executor.d.mts +2 -2
  27. package/dist/cli/shared/workspace-name.d.mts +10 -1
  28. package/dist/completion/zsh-worker.zsh +10 -206
  29. package/dist/configure/index.mjs +1 -1
  30. package/dist/configure/index.mjs.map +1 -1
  31. package/dist/configure/services/tailordb/schema.d.mts +18 -0
  32. package/dist/configure/services/tailordb/types.d.mts +1 -1
  33. package/dist/{crashreport-B-_HTKLr.mjs → crashreport-BN28xp5B.mjs} +2 -2
  34. package/dist/{crashreport-B-_HTKLr.mjs.map → crashreport-BN28xp5B.mjs.map} +1 -1
  35. package/dist/crashreport-By23O2k-.mjs +1 -0
  36. package/dist/errors-BlX4gUw5.mjs +4 -0
  37. package/dist/errors-BlX4gUw5.mjs.map +1 -0
  38. package/dist/es-builtins-BHCXINQp.mjs +2 -0
  39. package/dist/es-builtins-BHCXINQp.mjs.map +1 -0
  40. package/dist/field-column-type-QMtF6lUp.mjs +2 -0
  41. package/dist/field-column-type-QMtF6lUp.mjs.map +1 -0
  42. package/dist/{kysely-type-BTi3BMtL.mjs → kysely-type-CmvAz1Xj.mjs} +4 -4
  43. package/dist/kysely-type-CmvAz1Xj.mjs.map +1 -0
  44. package/dist/{logger-BcGy-u7G.mjs → logger-CCjs1DuH.mjs} +4 -4
  45. package/dist/logger-CCjs1DuH.mjs.map +1 -0
  46. package/dist/node-builtins-TQHhwNzG.mjs +2 -0
  47. package/dist/node-builtins-TQHhwNzG.mjs.map +1 -0
  48. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  49. package/dist/register-ts-hook-CL3Z3VP0.mjs +642 -0
  50. package/dist/register-ts-hook-CL3Z3VP0.mjs.map +1 -0
  51. package/dist/schema-AYG4OhXY.mjs +2 -0
  52. package/dist/{schema-Ze_dI5VX.mjs.map → schema-AYG4OhXY.mjs.map} +1 -1
  53. package/dist/service-COC9whur.mjs +1 -0
  54. package/dist/{service-DlgaUO4V.mjs → service-CqbQXFDp.mjs} +2 -2
  55. package/dist/{service-DlgaUO4V.mjs.map → service-CqbQXFDp.mjs.map} +1 -1
  56. package/dist/{service-BVe9u2Rt.mjs → service-DDon86tM.mjs} +4 -4
  57. package/dist/service-DDon86tM.mjs.map +1 -0
  58. package/dist/service_pb-BNxUPfP3.mjs +2 -0
  59. package/dist/service_pb-BNxUPfP3.mjs.map +1 -0
  60. package/dist/service_pb-D-xFu9Ub.mjs +1 -0
  61. package/dist/shared/src/color.d.mts +5 -0
  62. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +12 -0
  63. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +18 -1
  64. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +130 -1
  65. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +43 -4
  66. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +9 -0
  67. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +1 -1
  68. package/dist/vitest/environment.mjs +1 -1
  69. package/dist/vitest/environment.mjs.map +1 -1
  70. package/dist/vitest/index.mjs +1 -1
  71. package/dist/wait-point-registry-B-ESkTZX.mjs +2 -0
  72. package/dist/wait-point-registry-B-ESkTZX.mjs.map +1 -0
  73. package/dist/workspace_resource_pb-B7S-zx4Z.mjs +2 -0
  74. package/dist/workspace_resource_pb-B7S-zx4Z.mjs.map +1 -0
  75. package/docs/cli-reference.md +0 -16
  76. package/docs/github-actions.md +16 -3
  77. package/docs/migration/v2.md +5 -1
  78. package/docs/migration/v3.md +39 -0
  79. package/docs/services/tailordb-migration.md +12 -0
  80. package/docs/services/tailordb.md +11 -9
  81. package/package.json +13 -14
  82. package/dist/application-DFOUovmN.mjs +0 -1
  83. package/dist/application-D_4vg1KR.mjs +0 -192
  84. package/dist/application-D_4vg1KR.mjs.map +0 -1
  85. package/dist/crashreport-BmsRIdpy.mjs +0 -1
  86. package/dist/errors-DSEXKRVD.mjs +0 -2
  87. package/dist/errors-DSEXKRVD.mjs.map +0 -1
  88. package/dist/kysely-type-BTi3BMtL.mjs.map +0 -1
  89. package/dist/logger-BcGy-u7G.mjs.map +0 -1
  90. package/dist/node-builtins-oBl7EbyV.mjs +0 -2
  91. package/dist/node-builtins-oBl7EbyV.mjs.map +0 -1
  92. package/dist/register-ts-hook-Drnaproy.mjs +0 -640
  93. package/dist/register-ts-hook-Drnaproy.mjs.map +0 -1
  94. package/dist/schema-Ze_dI5VX.mjs +0 -2
  95. package/dist/service-BVe9u2Rt.mjs.map +0 -1
  96. package/dist/service-CpZELSBa.mjs +0 -1
  97. package/dist/service_pb-DGKCLuAs.mjs +0 -2
  98. package/dist/service_pb-DGKCLuAs.mjs.map +0 -1
  99. package/dist/service_pb-_aeFE-Nv.mjs +0 -1
  100. package/dist/wait-point-registry-BrkwfyjS.mjs +0 -2
  101. package/dist/wait-point-registry-BrkwfyjS.mjs.map +0 -1
  102. package/dist/workspace_resource_pb--GeYQPXu.mjs +0 -2
  103. package/dist/workspace_resource_pb--GeYQPXu.mjs.map +0 -1
  104. package/docs/cli/setup.md +0 -210
package/docs/cli/setup.md DELETED
@@ -1,210 +0,0 @@
1
- # Setup Commands
2
-
3
- Commands for setting up project infrastructure.
4
-
5
- ## setup
6
-
7
- Set up repository automation for your project. (beta)
8
-
9
- **Usage**
10
-
11
- ```
12
- tailor setup <command>
13
- ```
14
-
15
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
16
-
17
- **Commands**
18
-
19
- | Command | Description |
20
- | --------------------------------------- | ------------------------------------------------------------------------------------------------ |
21
- | [`setup branch`](#setup-branch) | Generate a branch-target deploy workflow (push to branch triggers deploy). |
22
- | [`setup tag`](#setup-tag) | Generate a tag-target deploy workflow (tag push triggers deploy). |
23
- | [`setup preview`](#setup-preview) | Generate a preview workflow (PR open/sync triggers deploy to a per-PR workspace). |
24
- | [`setup action`](#setup-action) | Generate a per-app composite action for use with setup coordinate (monorepo multi-app deploys). |
25
- | [`setup coordinate`](#setup-coordinate) | Generate a coordinator workflow that orchestrates multiple --action-generated composite actions. |
26
- | [`setup deps`](#setup-deps) | Generate a dependency update config for Tailor dependency and workflow updates. |
27
- | [`setup check`](#setup-check) | Audit generated workflows for drift against the current config/repo (read-only). |
28
- | [`setup delete`](#setup-delete) | Delete managed workflow/action file(s) and their .github/tailor.lock entries. |
29
-
30
- ### setup action
31
-
32
- Generate a per-app composite action for use with setup coordinate (monorepo multi-app deploys).
33
-
34
- **Usage**
35
-
36
- ```
37
- tailor setup action [options]
38
- ```
39
-
40
- **Options**
41
-
42
- | Option | Alias | Description | Required | Default |
43
- | ----------------------------- | ----- | --------------------------------------------------- | -------- | ------- |
44
- | `--name <NAME>` | `-n` | Name (defaults to the config 'name') | No | - |
45
- | `--dir <DIR>` | `-d` | App directory | No | `"."` |
46
- | `--environment <ENVIRONMENT>` | - | GitHub Environment (defaults to the workspace name) | No | - |
47
- | `--force` | - | Discard hand edits and regenerate | No | `false` |
48
-
49
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
50
-
51
- ### setup branch
52
-
53
- Generate a branch-target deploy workflow (push to branch triggers deploy).
54
-
55
- **Usage**
56
-
57
- ```
58
- tailor setup branch [options]
59
- ```
60
-
61
- **Options**
62
-
63
- | Option | Alias | Description | Required | Default |
64
- | ----------------------------- | ----- | ------------------------------------------------------------------------------ | -------- | ------- |
65
- | `--name <NAME>` | `-n` | Name (defaults to the config 'name') | No | - |
66
- | `--target <TARGET>` | - | Deploy trigger branch (defaults to the detected default branch) | No | - |
67
- | `--environment <ENVIRONMENT>` | - | GitHub Environment for the plan/deploy jobs (defaults to the workspace name) | No | - |
68
- | `--erd-preview` | - | Add PR ERD viewer artifacts with current/diff previews for TailorDB namespaces | No | `false` |
69
- | `--dir <DIR>` | `-d` | App directory (for monorepo setups) | No | `"."` |
70
- | `--force` | - | Discard hand edits / take over unmanaged files and regenerate | No | `false` |
71
-
72
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
73
-
74
- **Notes**
75
-
76
- `--branch` is a deprecated alias of `--target` and will be removed in v3.
77
-
78
- ### setup check
79
-
80
- Audit generated workflows for drift against the current config/repo (read-only).
81
-
82
- **Usage**
83
-
84
- ```
85
- tailor setup check [options]
86
- ```
87
-
88
- **Options**
89
-
90
- | Option | Alias | Description | Required | Default |
91
- | ------ | ----- | ------------------------------------------------------------------------------------------------ | -------- | ------- |
92
- | `--ci` | - | Run in CI mode: skip checks that are handled by the runtime (e.g. TAILOR_PLATFORM_WORKSPACE_ID). | No | `false` |
93
-
94
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
95
-
96
- ### setup coordinate
97
-
98
- Generate a coordinator workflow that orchestrates multiple --action-generated composite actions.
99
-
100
- **Usage**
101
-
102
- ```
103
- tailor setup coordinate [options]
104
- ```
105
-
106
- **Options**
107
-
108
- | Option | Alias | Description | Required | Default |
109
- | ----------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |
110
- | `--name <NAME>` | `-n` | Coordinator name (used in the generated workflow file name and job names) | Yes | - |
111
- | `--action <ACTION>` | - | Composite action to include. Repeat for separate deploy steps, or use commas to deploy actions as one multi-config group. tailor- prefix optional. | Yes | - |
112
- | `--branch <BRANCH>` | - | Branch target: deploy trigger branch (defaults to the detected default branch) | No | - |
113
- | `--tag` | - | Generate a tag target coordinator | No | `false` |
114
- | `--environment <ENVIRONMENT>` | - | GitHub Environment for the plan/deploy jobs | No | - |
115
- | `--force` | - | Discard hand edits and regenerate | No | `false` |
116
-
117
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
118
-
119
- ### setup delete
120
-
121
- Delete managed workflow/action file(s) and their .github/tailor.lock entries.
122
-
123
- **Usage**
124
-
125
- ```
126
- tailor setup delete [options] <files>
127
- ```
128
-
129
- **Arguments**
130
-
131
- | Argument | Description | Required |
132
- | -------- | ------------------------------------------------------------------------------------------ | -------- |
133
- | `files` | Workflow/action file(s) to delete, as generated under .github/workflows or .github/actions | Yes |
134
-
135
- **Options**
136
-
137
- | Option | Alias | Description | Required | Default |
138
- | ------- | ----- | ------------------------- | -------- | ------- |
139
- | `--yes` | `-y` | Skip confirmation prompts | No | `false` |
140
-
141
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
142
-
143
- ### setup deps
144
-
145
- Generate a dependency update config for Tailor dependency and workflow updates.
146
-
147
- **Usage**
148
-
149
- ```
150
- tailor setup deps [options]
151
- ```
152
-
153
- **Options**
154
-
155
- | Option | Alias | Description | Required | Default |
156
- | ----------------------- | ----- | --------------------------------------- | -------- | ------------ |
157
- | `--provider <PROVIDER>` | - | Dependency update provider to configure | No | `"renovate"` |
158
-
159
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
160
-
161
- ### setup preview
162
-
163
- Generate a preview workflow (PR open/sync triggers deploy to a per-PR workspace).
164
-
165
- **Usage**
166
-
167
- ```
168
- tailor setup preview [options]
169
- ```
170
-
171
- **Options**
172
-
173
- | Option | Alias | Description | Required | Default |
174
- | ----------------------------- | ----- | ------------------------------------------------------------------------- | -------- | ------- |
175
- | `--name <NAME>` | `-n` | Name (defaults to the config 'name') | No | - |
176
- | `--branch <BRANCH>` | - | Branch to filter PRs by (defaults to the detected default branch) | No | - |
177
- | `--region <REGION>` | - | Workspace region for preview workspace creation (e.g. us-west). Required. | Yes | - |
178
- | `--require-preview-label` | - | Deploy preview only for PRs labeled `tailor:preview` instead of all PRs. | No | `false` |
179
- | `--environment <ENVIRONMENT>` | - | GitHub Environment for the preview jobs (defaults to the workspace name) | No | - |
180
- | `--dir <DIR>` | `-d` | App directory (for monorepo setups) | No | `"."` |
181
- | `--force` | - | Discard hand edits / take over unmanaged files and regenerate | No | `false` |
182
-
183
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
184
-
185
- ### setup tag
186
-
187
- Generate a tag-target deploy workflow (tag push triggers deploy).
188
-
189
- **Usage**
190
-
191
- ```
192
- tailor setup tag [options]
193
- ```
194
-
195
- **Options**
196
-
197
- | Option | Alias | Description | Required | Default |
198
- | ----------------------------- | ----- | ---------------------------------------------------------------------------- | -------- | ------- |
199
- | `--name <NAME>` | `-n` | Name (defaults to the config 'name') | No | - |
200
- | `--tag-pattern <TAG_PATTERN>` | - | Tag glob to match (defaults to v*) | No | `"v*"` |
201
- | `--branch <BRANCH>` | - | Tag-reachability guard branch (no guard when omitted) | No | - |
202
- | `--environment <ENVIRONMENT>` | - | GitHub Environment for the plan/deploy jobs (defaults to the workspace name) | No | - |
203
- | `--dir <DIR>` | `-d` | App directory (for monorepo setups) | No | `"."` |
204
- | `--force` | - | Discard hand edits / take over unmanaged files and regenerate | No | `false` |
205
-
206
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
207
-
208
- ## Further reading
209
-
210
- - [GitHub Actions Integration](../github-actions.md) — usage guide: targets, generated files, secrets, approval gates, and rollback.