@tailor-platform/sdk 2.6.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.
- package/CHANGELOG.md +49 -0
- package/dist/{application-CmXOqTaK.mjs → application-D5lh2-_W.mjs} +27 -25
- package/dist/application-D5lh2-_W.mjs.map +1 -0
- package/dist/application-o09L68wE.mjs +1 -0
- package/dist/cli/commands/deploy/config-id-injector.d.mts +16 -0
- package/dist/cli/commands/workspace/create.d.mts +1 -1
- package/dist/cli/lib.d.mts +7 -2
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.mjs +41 -1136
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/shared/args.d.mts +7 -1
- package/dist/cli/shared/beta.d.mts +8 -0
- package/dist/cli/shared/client.d.mts +11 -1
- package/dist/cli/shared/config.d.mts +13 -0
- package/dist/cli/shared/prompt.d.mts +53 -0
- package/dist/cli/shared/script-executor.d.mts +1 -1
- package/dist/cli/shared/workspace-name.d.mts +10 -1
- package/dist/completion/zsh-worker.zsh +10 -206
- package/dist/errors-BlX4gUw5.mjs +4 -0
- package/dist/errors-BlX4gUw5.mjs.map +1 -0
- package/dist/es-builtins-BHCXINQp.mjs +2 -0
- package/dist/es-builtins-BHCXINQp.mjs.map +1 -0
- package/dist/field-column-type-QMtF6lUp.mjs +2 -0
- package/dist/field-column-type-QMtF6lUp.mjs.map +1 -0
- package/dist/{kysely-type-BTi3BMtL.mjs → kysely-type-CmvAz1Xj.mjs} +4 -4
- package/dist/kysely-type-CmvAz1Xj.mjs.map +1 -0
- package/dist/node-builtins-TQHhwNzG.mjs +2 -0
- package/dist/node-builtins-TQHhwNzG.mjs.map +1 -0
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/register-ts-hook-CL3Z3VP0.mjs +642 -0
- package/dist/register-ts-hook-CL3Z3VP0.mjs.map +1 -0
- package/dist/service-COC9whur.mjs +1 -0
- package/dist/{service-CLPMoj9n.mjs → service-CqbQXFDp.mjs} +2 -2
- package/dist/{service-CLPMoj9n.mjs.map → service-CqbQXFDp.mjs.map} +1 -1
- package/dist/{service-YqDsHmlK.mjs → service-DDon86tM.mjs} +2 -2
- package/dist/service-DDon86tM.mjs.map +1 -0
- package/dist/service_pb-BNxUPfP3.mjs +2 -0
- package/dist/service_pb-BNxUPfP3.mjs.map +1 -0
- package/dist/service_pb-D-xFu9Ub.mjs +1 -0
- package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +12 -0
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +18 -1
- package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +130 -1
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +43 -4
- package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +9 -0
- package/dist/vitest/environment.mjs +1 -1
- package/dist/vitest/index.mjs +1 -1
- package/dist/workspace_resource_pb-B7S-zx4Z.mjs +2 -0
- package/dist/workspace_resource_pb-B7S-zx4Z.mjs.map +1 -0
- package/docs/cli-reference.md +0 -16
- package/docs/github-actions.md +12 -0
- package/docs/services/tailordb-migration.md +12 -0
- package/docs/services/tailordb.md +2 -2
- package/package.json +11 -13
- package/dist/application-CNeOcaLc.mjs +0 -1
- package/dist/application-CmXOqTaK.mjs.map +0 -1
- package/dist/errors-DLsQ_-ol.mjs +0 -2
- package/dist/errors-DLsQ_-ol.mjs.map +0 -1
- package/dist/es-builtins-n3wBv4Sv.mjs +0 -2
- package/dist/es-builtins-n3wBv4Sv.mjs.map +0 -1
- package/dist/kysely-type-BTi3BMtL.mjs.map +0 -1
- package/dist/node-builtins-oBl7EbyV.mjs +0 -2
- package/dist/node-builtins-oBl7EbyV.mjs.map +0 -1
- package/dist/register-ts-hook-oDA2JLp2.mjs +0 -640
- package/dist/register-ts-hook-oDA2JLp2.mjs.map +0 -1
- package/dist/service-D7iXk0BT.mjs +0 -1
- package/dist/service-YqDsHmlK.mjs.map +0 -1
- package/dist/service_pb-DGKCLuAs.mjs +0 -2
- package/dist/service_pb-DGKCLuAs.mjs.map +0 -1
- package/dist/service_pb-_aeFE-Nv.mjs +0 -1
- package/dist/workspace_resource_pb--GeYQPXu.mjs +0 -2
- package/dist/workspace_resource_pb--GeYQPXu.mjs.map +0 -1
- package/docs/cli/setup.md +0 -210
package/docs/cli-reference.md
CHANGED
|
@@ -386,22 +386,6 @@ Commands for managing crash reports.
|
|
|
386
386
|
| [crashreport list](./cli/crashreport.md#crashreport-list) | List local crash report files. |
|
|
387
387
|
| [crashreport send](./cli/crashreport.md#crashreport-send) | Submit a crash report to help improve the SDK. |
|
|
388
388
|
|
|
389
|
-
### [Setup Commands](./cli/setup.md)
|
|
390
|
-
|
|
391
|
-
Commands for setting up project infrastructure.
|
|
392
|
-
|
|
393
|
-
| Command | Description |
|
|
394
|
-
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
|
|
395
|
-
| [setup](./cli/setup.md#setup) | Set up repository automation for your project. (beta) |
|
|
396
|
-
| [setup action](./cli/setup.md#setup-action) | Generate a per-app composite action for use with setup coordinate (monorepo multi-app deploys). |
|
|
397
|
-
| [setup branch](./cli/setup.md#setup-branch) | Generate a branch-target deploy workflow (push to branch triggers deploy). |
|
|
398
|
-
| [setup check](./cli/setup.md#setup-check) | Audit generated workflows for drift against the current config/repo (read-only). |
|
|
399
|
-
| [setup coordinate](./cli/setup.md#setup-coordinate) | Generate a coordinator workflow that orchestrates multiple --action-generated composite actions. |
|
|
400
|
-
| [setup delete](./cli/setup.md#setup-delete) | Delete managed workflow/action file(s) and their .github/tailor.lock entries. |
|
|
401
|
-
| [setup deps](./cli/setup.md#setup-deps) | Generate a dependency update config for Tailor dependency and workflow updates. |
|
|
402
|
-
| [setup preview](./cli/setup.md#setup-preview) | Generate a preview workflow (PR open/sync triggers deploy to a per-PR workspace). |
|
|
403
|
-
| [setup tag](./cli/setup.md#setup-tag) | Generate a tag-target deploy workflow (tag push triggers deploy). |
|
|
404
|
-
|
|
405
389
|
### [Upgrade Commands](./cli/upgrade.md)
|
|
406
390
|
|
|
407
391
|
Commands for upgrading SDK versions with automated code migration.
|
package/docs/github-actions.md
CHANGED
|
@@ -7,6 +7,18 @@ application, including deploy workflows and Renovate configuration.
|
|
|
7
7
|
> workflow, and the `.github/tailor.lock` schema may change before general
|
|
8
8
|
> availability.
|
|
9
9
|
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
The `setup` commands are provided by the `@tailor-platform/sdk-plugin-setup` CLI
|
|
13
|
+
plugin. Install it next to the SDK:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -D @tailor-platform/sdk-plugin-setup
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The Tailor CLI discovers the plugin automatically from `node_modules/.bin` (or
|
|
20
|
+
your `PATH`). Run `tailor plugin list` to confirm it resolves.
|
|
21
|
+
|
|
10
22
|
## Quick start
|
|
11
23
|
|
|
12
24
|
Run the command from the root of your SDK project (where `tailor.config.ts`
|
|
@@ -757,6 +757,18 @@ The migration script runs in a single transaction. For tables with many rows:
|
|
|
757
757
|
- Long-running transactions can hit platform timeouts and hold locks. For very large backfills, consider splitting the work across multiple migrations, each operating on a subset.
|
|
758
758
|
- Add `LIMIT` and resumability (idempotent `where` clauses) so a re-run after a transient failure converges.
|
|
759
759
|
|
|
760
|
+
### Migrations that take longer than a minute
|
|
761
|
+
|
|
762
|
+
Migration scripts run as workflow jobs, so they are not bound by the 60-second
|
|
763
|
+
limit that applies to synchronous script execution. `tailor deploy` waits for
|
|
764
|
+
the migration and reports its logs as usual. Execution time is still bounded —
|
|
765
|
+
a workflow job has its own, far longer, execution-time limit.
|
|
766
|
+
|
|
767
|
+
The script still runs in a single transaction, so the guidance above about
|
|
768
|
+
locks and transaction size continues to apply — prefer splitting a very large
|
|
769
|
+
backfill across several migrations over holding one transaction open for a
|
|
770
|
+
long time.
|
|
771
|
+
|
|
760
772
|
## Testing Migrations Locally
|
|
761
773
|
|
|
762
774
|
### Unit-testing migrate.ts
|
|
@@ -69,8 +69,8 @@ db.table("User", "User in the system", {
|
|
|
69
69
|
| `db.float()` | Float | number |
|
|
70
70
|
| [`db.decimal()`](#decimal-fields) | Decimal | string |
|
|
71
71
|
| `db.bool()` | Boolean | boolean |
|
|
72
|
-
| `db.date()` | Date | string
|
|
73
|
-
| `db.datetime()` | DateTime |
|
|
72
|
+
| `db.date()` | Date | Date \| string |
|
|
73
|
+
| `db.datetime()` | DateTime | Date \| string |
|
|
74
74
|
| `db.time()` | Time | string |
|
|
75
75
|
| `db.uuid()` | UUID | string |
|
|
76
76
|
| [`db.enum()`](#enum-fields) | Enum | string |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -149,15 +149,14 @@
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
"dependencies": {
|
|
152
|
-
"@0no-co/graphql.web": "1.3.
|
|
152
|
+
"@0no-co/graphql.web": "1.3.4",
|
|
153
153
|
"@badgateway/oauth2-client": "3.3.1",
|
|
154
154
|
"@bufbuild/protobuf": "2.14.0",
|
|
155
155
|
"@bufbuild/protovalidate": "1.2.0",
|
|
156
156
|
"@connectrpc/connect": "2.1.2",
|
|
157
157
|
"@connectrpc/connect-node": "2.1.2",
|
|
158
|
-
"@
|
|
159
|
-
"@inquirer/
|
|
160
|
-
"@inquirer/prompts": "8.5.2",
|
|
158
|
+
"@inquirer/core": "12.0.0",
|
|
159
|
+
"@inquirer/prompts": "8.6.0",
|
|
161
160
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
162
161
|
"@napi-rs/keyring": "1.3.0",
|
|
163
162
|
"@opentelemetry/api": "1.9.1",
|
|
@@ -165,7 +164,7 @@
|
|
|
165
164
|
"@opentelemetry/resources": "2.10.0",
|
|
166
165
|
"@opentelemetry/sdk-trace-node": "2.10.0",
|
|
167
166
|
"@opentelemetry/semantic-conventions": "1.43.0",
|
|
168
|
-
"@oxc-project/types": "0.
|
|
167
|
+
"@oxc-project/types": "0.146.0",
|
|
169
168
|
"@secretlint/core": "13.0.4",
|
|
170
169
|
"@secretlint/secretlint-rule-preset-recommend": "13.0.4",
|
|
171
170
|
"@standard-schema/spec": "1.1.0",
|
|
@@ -183,17 +182,16 @@
|
|
|
183
182
|
"globals": "17.11.0",
|
|
184
183
|
"graphql": "17.0.2",
|
|
185
184
|
"inflection": "3.0.2",
|
|
186
|
-
"json5": "2.2.3",
|
|
187
185
|
"kysely": "0.29.5",
|
|
188
186
|
"mime-types": "3.0.2",
|
|
189
187
|
"open": "11.0.1",
|
|
190
|
-
"oxc-parser": "0.
|
|
188
|
+
"oxc-parser": "0.146.0",
|
|
191
189
|
"p-limit": "7.3.1",
|
|
192
190
|
"pathe": "2.0.3",
|
|
193
191
|
"pgsql-ast-parser": "12.0.2",
|
|
194
192
|
"pkg-types": "2.3.1",
|
|
195
193
|
"politty": "0.11.9",
|
|
196
|
-
"rolldown": "1.2.
|
|
194
|
+
"rolldown": "1.2.5",
|
|
197
195
|
"semver": "7.8.5",
|
|
198
196
|
"sql-highlight": "6.1.0",
|
|
199
197
|
"std-env": "4.2.0",
|
|
@@ -208,15 +206,15 @@
|
|
|
208
206
|
"@types/node": "24.13.3",
|
|
209
207
|
"@types/semver": "7.8.0",
|
|
210
208
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
211
|
-
"@vitest/coverage-v8": "4.1.
|
|
209
|
+
"@vitest/coverage-v8": "4.1.11",
|
|
212
210
|
"eslint-plugin-zod": "4.9.1",
|
|
213
|
-
"oxfmt": "0.
|
|
214
|
-
"oxlint": "1.
|
|
211
|
+
"oxfmt": "0.64.0",
|
|
212
|
+
"oxlint": "1.79.0",
|
|
215
213
|
"oxlint-tsgolint": "7.0.2001",
|
|
216
214
|
"sonda": "0.14.0",
|
|
217
215
|
"tsdown": "0.22.14",
|
|
218
216
|
"typescript": "6.0.3",
|
|
219
|
-
"vitest": "4.1.
|
|
217
|
+
"vitest": "4.1.11",
|
|
220
218
|
"zinfer": "0.2.8",
|
|
221
219
|
"@tailor-platform/shared": "^0.0.0",
|
|
222
220
|
"@tailor-platform/tailor-proto": "^0.0.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./application-CmXOqTaK.mjs";export{t as defineApplication,e as generatePluginFilesIfNeeded};
|