@tailor-platform/create-sdk 2.0.0-next.2 → 2.0.0-next.3
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 +74 -4
- package/package.json +7 -6
- package/templates/executor/.oxlintrc.json +1 -1
- package/templates/executor/__dot__gitignore +1 -1
- package/templates/executor/package.json +8 -7
- package/templates/executor/tailor.d.ts +4 -2
- package/templates/generators/.oxlintrc.json +1 -1
- package/templates/generators/__dot__gitignore +1 -1
- package/templates/generators/package.json +8 -7
- package/templates/generators/tailor.d.ts +4 -2
- package/templates/hello-world/.oxlintrc.json +1 -1
- package/templates/hello-world/README.md +6 -6
- package/templates/hello-world/__dot__gitignore +1 -1
- package/templates/hello-world/package.json +7 -6
- package/templates/hello-world/tailor.d.ts +4 -2
- package/templates/inventory-management/.oxlintrc.json +1 -1
- package/templates/inventory-management/README.md +8 -8
- package/templates/inventory-management/__dot__gitignore +1 -1
- package/templates/inventory-management/package.json +7 -6
- package/templates/inventory-management/tailor.d.ts +4 -2
- package/templates/multi-application/.oxlintrc.json +1 -1
- package/templates/multi-application/README.md +2 -2
- package/templates/multi-application/__dot__gitignore +1 -1
- package/templates/multi-application/package.json +7 -6
- package/templates/resolver/.oxlintrc.json +1 -1
- package/templates/resolver/__dot__gitignore +1 -1
- package/templates/resolver/package.json +8 -7
- package/templates/resolver/tailor.d.ts +4 -2
- package/templates/static-web-site/.oxlintrc.json +1 -1
- package/templates/static-web-site/__dot__gitignore +1 -1
- package/templates/static-web-site/package.json +7 -6
- package/templates/static-web-site/tailor.d.ts +4 -2
- package/templates/tailordb/.oxlintrc.json +1 -1
- package/templates/tailordb/__dot__gitignore +1 -1
- package/templates/tailordb/package.json +8 -7
- package/templates/tailordb/tailor.d.ts +4 -2
- package/templates/workflow/.oxlintrc.json +1 -1
- package/templates/workflow/__dot__gitignore +1 -1
- package/templates/workflow/e2e/globalSetup.ts +1 -1
- package/templates/workflow/package.json +9 -8
- package/templates/workflow/src/workflow/approval.ts +2 -2
- package/templates/workflow/tailor.d.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,43 @@
|
|
|
1
1
|
# @tailor-platform/create-sdk
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.3
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#1684](https://github.com/tailor-platform/sdk/pull/1684) [`de3ef5e`](https://github.com/tailor-platform/sdk/commit/de3ef5e7421a998624154df5e90da62e17664524) Thanks [@dqn](https://github.com/dqn)! - Restore Tailor field outputs for UUID, date, datetime, time, and decimal fields to plain string-compatible types and remove the strict scalar string migration guidance.
|
|
8
|
+
|
|
9
|
+
- [#1556](https://github.com/tailor-platform/sdk/pull/1556) [`645949e`](https://github.com/tailor-platform/sdk/commit/645949ed64bda8b82fc44c0db54928698b12a2eb) Thanks [@toiroakr](https://github.com/toiroakr)! - Rename `defineWaitPoint` and `defineWaitPoints` to `createWaitPoint` and `createWaitPoints`.
|
|
10
|
+
|
|
11
|
+
These functions create runtime instances with `.wait()` and `.resolve()` methods that call the platform API at runtime, so the `create*` prefix is more accurate. Update any usages:
|
|
12
|
+
|
|
13
|
+
```diff
|
|
14
|
+
-import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk";
|
|
15
|
+
+import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk";
|
|
16
|
+
|
|
17
|
+
-export const approval = defineWaitPoint<Payload, Result>("approval");
|
|
18
|
+
+export const approval = createWaitPoint<Payload, Result>("approval");
|
|
19
|
+
|
|
20
|
+
-export const waitPoints = defineWaitPoints((define) => ({ ... }));
|
|
21
|
+
+export const waitPoints = createWaitPoints((define) => ({ ... }));
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [#1559](https://github.com/tailor-platform/sdk/pull/1559) [`ff8ef1c`](https://github.com/tailor-platform/sdk/commit/ff8ef1c1323daf81812c182e146fd53da20e676e) Thanks [@dqn](https://github.com/dqn)! - Rename auth attribute module augmentation from `AttributeMap` to `Attributes`.
|
|
27
|
+
|
|
28
|
+
- [#1563](https://github.com/tailor-platform/sdk/pull/1563) [`501e8bf`](https://github.com/tailor-platform/sdk/commit/501e8bfdd2bca7201a1c9b036bf72087476da416) Thanks [@dqn](https://github.com/dqn)! - Standardize SDK-owned environment variables on the `TAILOR_*` namespace.
|
|
29
|
+
|
|
30
|
+
Replace the removed SDK-specific environment variables with their new names: `TAILOR_CONFIG_PATH`, `TAILOR_DTS_PATH`, `TAILOR_CI_ALLOW_ID_INJECTION`, `TAILOR_DEPLOY_BUILD_ONLY`, `TAILOR_BUILD_OUTPUT_DIR`, `TAILOR_SKILLS_SOURCE`, `TAILOR_TEMPLATE_SDK_VERSION`, `TAILOR_PLATFORM_URL`, `TAILOR_PLATFORM_OAUTH2_CLIENT_ID`, `TAILOR_INLINE_SOURCEMAP`, `TAILOR_QUERY_NEWLINE_ON_ENTER`, and `TAILOR_APP_LOG_LEVEL`. The deprecated `TAILOR_TOKEN` fallback is removed; use `TAILOR_PLATFORM_TOKEN`. The v2 codemod rewrites unambiguous removed SDK environment variable names and flags generic names such as `LOG_LEVEL` and `PLATFORM_URL` for manual review.
|
|
31
|
+
|
|
3
32
|
## 2.0.0-next.2
|
|
4
33
|
### Major Changes
|
|
5
34
|
|
|
6
35
|
|
|
7
36
|
|
|
8
37
|
- [#1498](https://github.com/tailor-platform/sdk/pull/1498) [`83145db`](https://github.com/tailor-platform/sdk/commit/83145db9a0d243aa68c1b641c2b6026771a62188) Thanks [@dqn](https://github.com/dqn)! - Set `db.fields.timestamps()` `updatedAt` when records are created and make the generated field non-null. `createdAt` keeps its existing create-time behavior, while `updatedAt` keeps its update-time behavior and now also gets a create hook that preserves provided values and falls back to the current time.
|
|
9
|
-
|
|
38
|
+
|
|
10
39
|
Update create-sdk templates so scaffolded projects use the new non-null `updatedAt` Kysely types and seed schemas.
|
|
11
|
-
|
|
40
|
+
|
|
12
41
|
Existing TailorDB schemas that already use this helper will change `updatedAt` from optional to required. Backfill existing records that have `updatedAt: null` before applying the schema change.
|
|
13
42
|
|
|
14
43
|
### Patch Changes
|
|
@@ -16,12 +45,12 @@
|
|
|
16
45
|
|
|
17
46
|
|
|
18
47
|
- [#1509](https://github.com/tailor-platform/sdk/pull/1509) [`7cadaa7`](https://github.com/tailor-platform/sdk/commit/7cadaa7c4987b81130ca80ba80bc5d5b26276394) Thanks [@dqn](https://github.com/dqn)! - Rename resolver, executor, workflow trigger, and typed workflow start machine-user options from `authInvoker` to `invoker`.
|
|
19
|
-
|
|
48
|
+
|
|
20
49
|
Update create-sdk templates and the v2 auth invoker codemod to generate the new `invoker` option.
|
|
21
50
|
|
|
22
51
|
|
|
23
52
|
- [#1484](https://github.com/tailor-platform/sdk/pull/1484) [`a376dc8`](https://github.com/tailor-platform/sdk/commit/a376dc8cd053d20744c90104e8b44ed2729ffe8c) Thanks [@dqn](https://github.com/dqn)! - Remove the deprecated `openDownloadStream` file streaming API. Use `downloadStream` for streamed file downloads.
|
|
24
|
-
|
|
53
|
+
|
|
25
54
|
The generated file utilities now emit `downloadFileStream`, which calls `downloadStream` and returns `FileDownloadStreamResponse`, instead of the removed `openFileDownloadStream` helper.
|
|
26
55
|
|
|
27
56
|
## 2.0.0-next.1
|
|
@@ -30,6 +59,47 @@
|
|
|
30
59
|
|
|
31
60
|
## 1.66.0
|
|
32
61
|
|
|
62
|
+
## 1.71.0
|
|
63
|
+
|
|
64
|
+
## 1.74.1
|
|
65
|
+
|
|
66
|
+
## 1.74.0
|
|
67
|
+
|
|
68
|
+
## 1.73.3
|
|
69
|
+
|
|
70
|
+
## 1.73.2
|
|
71
|
+
|
|
72
|
+
## 1.73.1
|
|
73
|
+
|
|
74
|
+
## 1.73.0
|
|
75
|
+
|
|
76
|
+
## 1.72.0
|
|
77
|
+
|
|
78
|
+
## 1.70.1
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
- [#1569](https://github.com/tailor-platform/sdk/pull/1569) [`259dec9`](https://github.com/tailor-platform/sdk/commit/259dec92592c7927bcfb0e2d5dcbbd0e206eeba3) Thanks [@dqn](https://github.com/dqn)! - Fix TailorDB migration drift checks to normalize reconstructed snapshots and remote schemas through the same snapshot shape before comparison.
|
|
84
|
+
|
|
85
|
+
## 1.70.0
|
|
86
|
+
|
|
87
|
+
## 1.69.0
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
- [#1533](https://github.com/tailor-platform/sdk/pull/1533) [`e3bc2ce`](https://github.com/tailor-platform/sdk/commit/e3bc2ce65ab30ee53e5de0eb48ca6c24049fcd1b) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency politty to v0.9.2
|
|
93
|
+
|
|
94
|
+
## 1.68.0
|
|
95
|
+
|
|
96
|
+
## 1.67.1
|
|
97
|
+
|
|
98
|
+
## 1.67.0
|
|
99
|
+
|
|
100
|
+
## 1.66.1
|
|
101
|
+
|
|
102
|
+
## 1.66.0
|
|
33
103
|
## 1.65.0
|
|
34
104
|
|
|
35
105
|
## 1.64.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/create-sdk",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.3",
|
|
4
4
|
"description": "A CLI tool to quickly create a new Tailor Platform SDK project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,18 +17,19 @@
|
|
|
17
17
|
],
|
|
18
18
|
"type": "module",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@clack/prompts": "1.
|
|
20
|
+
"@clack/prompts": "1.6.0",
|
|
21
21
|
"execa": "9.6.1",
|
|
22
22
|
"picocolors": "1.1.1",
|
|
23
23
|
"pkg-types": "2.3.1",
|
|
24
|
-
"politty": "0.
|
|
24
|
+
"politty": "0.11.0",
|
|
25
25
|
"zod": "4.4.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "24.13.2",
|
|
29
|
-
"
|
|
30
|
-
"oxlint
|
|
31
|
-
"
|
|
29
|
+
"eslint-plugin-zod": "4.7.0",
|
|
30
|
+
"oxlint": "1.72.0",
|
|
31
|
+
"oxlint-tsgolint": "0.24.0",
|
|
32
|
+
"tsdown": "0.22.3",
|
|
32
33
|
"typescript": "6.0.3"
|
|
33
34
|
},
|
|
34
35
|
"scripts": {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
node_modules/
|
|
2
|
-
.tailor
|
|
2
|
+
.tailor/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "executor",
|
|
3
|
+
"version": "0.0.0",
|
|
3
4
|
"private": true,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
|
-
"generate": "tailor
|
|
7
|
-
"deploy": "tailor
|
|
7
|
+
"generate": "tailor generate",
|
|
8
|
+
"deploy": "tailor deploy",
|
|
8
9
|
"test": "vitest --project unit",
|
|
9
10
|
"test:unit": "vitest --project unit",
|
|
10
11
|
"format": "oxfmt --write .",
|
|
@@ -14,12 +15,12 @@
|
|
|
14
15
|
"typecheck": "tsc --noEmit"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
18
|
+
"@tailor-platform/sdk": "2.0.0-next.3",
|
|
18
19
|
"@types/node": "24.13.2",
|
|
19
|
-
"oxfmt": "0.
|
|
20
|
-
"oxlint": "1.
|
|
21
|
-
"oxlint-tsgolint": "0.
|
|
20
|
+
"oxfmt": "0.57.0",
|
|
21
|
+
"oxlint": "1.72.0",
|
|
22
|
+
"oxlint-tsgolint": "0.24.0",
|
|
22
23
|
"typescript": "6.0.3",
|
|
23
|
-
"vitest": "4.1.
|
|
24
|
+
"vitest": "4.1.9"
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is auto-generated by @tailor-platform/sdk
|
|
2
2
|
// Do not edit this file manually
|
|
3
|
-
// Regenerated automatically when running 'tailor
|
|
3
|
+
// Regenerated automatically when running 'tailor deploy' or 'tailor generate'
|
|
4
4
|
|
|
5
5
|
declare module "@tailor-platform/sdk" {
|
|
6
|
-
interface
|
|
6
|
+
interface Attributes {
|
|
7
7
|
role: string;
|
|
8
8
|
}
|
|
9
9
|
interface AttributeList {
|
|
@@ -16,6 +16,8 @@ declare module "@tailor-platform/sdk" {
|
|
|
16
16
|
interface IdpNameRegistry {
|
|
17
17
|
"main-idp": true;
|
|
18
18
|
}
|
|
19
|
+
interface ConnectionNameRegistry {}
|
|
20
|
+
interface AIGatewayNameRegistry {}
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export {};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"env": {
|
|
8
8
|
"builtin": true
|
|
9
9
|
},
|
|
10
|
-
"ignorePatterns": [".tailor
|
|
10
|
+
"ignorePatterns": [".tailor/", "src/generated/", "src/seed/", "tailor.d.ts"],
|
|
11
11
|
"rules": {
|
|
12
12
|
"no-case-declarations": "error",
|
|
13
13
|
"no-empty": "error",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
node_modules/
|
|
2
|
-
.tailor
|
|
2
|
+
.tailor/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generators",
|
|
3
|
+
"version": "0.0.0",
|
|
3
4
|
"private": true,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
|
-
"generate": "tailor
|
|
7
|
-
"deploy": "tailor
|
|
7
|
+
"generate": "tailor generate",
|
|
8
|
+
"deploy": "tailor deploy",
|
|
8
9
|
"test": "vitest --project unit",
|
|
9
10
|
"test:unit": "vitest --project unit",
|
|
10
11
|
"format": "oxfmt --write .",
|
|
@@ -14,12 +15,12 @@
|
|
|
14
15
|
"typecheck": "tsc --noEmit"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
18
|
+
"@tailor-platform/sdk": "2.0.0-next.3",
|
|
18
19
|
"@types/node": "24.13.2",
|
|
19
|
-
"oxfmt": "0.
|
|
20
|
-
"oxlint": "1.
|
|
21
|
-
"oxlint-tsgolint": "0.
|
|
20
|
+
"oxfmt": "0.57.0",
|
|
21
|
+
"oxlint": "1.72.0",
|
|
22
|
+
"oxlint-tsgolint": "0.24.0",
|
|
22
23
|
"typescript": "6.0.3",
|
|
23
|
-
"vitest": "4.1.
|
|
24
|
+
"vitest": "4.1.9"
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is auto-generated by @tailor-platform/sdk
|
|
2
2
|
// Do not edit this file manually
|
|
3
|
-
// Regenerated automatically when running 'tailor
|
|
3
|
+
// Regenerated automatically when running 'tailor deploy' or 'tailor generate'
|
|
4
4
|
|
|
5
5
|
declare module "@tailor-platform/sdk" {
|
|
6
|
-
interface
|
|
6
|
+
interface Attributes {
|
|
7
7
|
role: string;
|
|
8
8
|
}
|
|
9
9
|
interface AttributeList {
|
|
@@ -16,6 +16,8 @@ declare module "@tailor-platform/sdk" {
|
|
|
16
16
|
interface IdpNameRegistry {
|
|
17
17
|
"main-idp": true;
|
|
18
18
|
}
|
|
19
|
+
interface ConnectionNameRegistry {}
|
|
20
|
+
interface AIGatewayNameRegistry {}
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export {};
|
|
@@ -9,12 +9,12 @@ This project was bootstrapped with [Create Tailor Platform SDK](https://www.npmj
|
|
|
9
9
|
1. Create a new workspace:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx tailor
|
|
13
|
-
npx tailor
|
|
14
|
-
npx tailor
|
|
15
|
-
# For yarn: yarn tailor
|
|
16
|
-
# For pnpm: pnpm tailor
|
|
17
|
-
# For bun: bun tailor
|
|
12
|
+
npx tailor login
|
|
13
|
+
npx tailor workspace create --name <workspace-name> --region <workspace-region>
|
|
14
|
+
npx tailor workspace list
|
|
15
|
+
# For yarn: yarn tailor <command>
|
|
16
|
+
# For pnpm: pnpm tailor <command>
|
|
17
|
+
# For bun: bun tailor <command>
|
|
18
18
|
|
|
19
19
|
# OR
|
|
20
20
|
# Create a new workspace using Tailor Platform Console
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
node_modules/
|
|
2
|
-
.tailor
|
|
2
|
+
.tailor/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hello-world",
|
|
3
|
+
"version": "0.0.0",
|
|
3
4
|
"private": true,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
|
-
"deploy": "tailor
|
|
7
|
-
"generate": "tailor
|
|
7
|
+
"deploy": "tailor deploy",
|
|
8
|
+
"generate": "tailor generate",
|
|
8
9
|
"format": "oxfmt --write .",
|
|
9
10
|
"format:check": "oxfmt --check .",
|
|
10
11
|
"lint": "oxlint --type-aware .",
|
|
@@ -12,11 +13,11 @@
|
|
|
12
13
|
"typecheck": "tsc --noEmit"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
15
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
16
|
+
"@tailor-platform/sdk": "2.0.0-next.3",
|
|
16
17
|
"@types/node": "24.13.2",
|
|
17
|
-
"oxfmt": "0.
|
|
18
|
-
"oxlint": "1.
|
|
19
|
-
"oxlint-tsgolint": "0.
|
|
18
|
+
"oxfmt": "0.57.0",
|
|
19
|
+
"oxlint": "1.72.0",
|
|
20
|
+
"oxlint-tsgolint": "0.24.0",
|
|
20
21
|
"typescript": "6.0.3"
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
// This file is auto-generated by @tailor-platform/sdk
|
|
2
2
|
// Do not edit this file manually
|
|
3
|
-
// Regenerated automatically when running 'tailor
|
|
3
|
+
// Regenerated automatically when running 'tailor deploy' or 'tailor generate'
|
|
4
4
|
|
|
5
5
|
declare module "@tailor-platform/sdk" {
|
|
6
|
-
interface
|
|
6
|
+
interface Attributes {}
|
|
7
7
|
interface AttributeList {
|
|
8
8
|
__tuple?: [];
|
|
9
9
|
}
|
|
10
10
|
interface Env {}
|
|
11
11
|
interface MachineUserNameRegistry {}
|
|
12
12
|
interface IdpNameRegistry {}
|
|
13
|
+
interface ConnectionNameRegistry {}
|
|
14
|
+
interface AIGatewayNameRegistry {}
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
export {};
|
|
@@ -9,12 +9,12 @@ This project was bootstrapped with [Create Tailor Platform SDK](https://www.npmj
|
|
|
9
9
|
1. Create a new workspace:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx tailor
|
|
13
|
-
npx tailor
|
|
14
|
-
npx tailor
|
|
15
|
-
# For yarn: yarn tailor
|
|
16
|
-
# For pnpm: pnpm tailor
|
|
17
|
-
# For bun: bun tailor
|
|
12
|
+
npx tailor login
|
|
13
|
+
npx tailor workspace create --name <workspace-name> --region <workspace-region>
|
|
14
|
+
npx tailor workspace list
|
|
15
|
+
# For yarn: yarn tailor <command>
|
|
16
|
+
# For pnpm: pnpm tailor <command>
|
|
17
|
+
# For bun: bun tailor <command>
|
|
18
18
|
|
|
19
19
|
# OR
|
|
20
20
|
# Create a new workspace using Tailor Platform Console
|
|
@@ -36,9 +36,9 @@ npm run deploy -- --workspace-id <your-workspace-id>
|
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
# Get Manager's token
|
|
39
|
-
npx tailor
|
|
39
|
+
npx tailor machineuser token manager --workspace-id <your-workspace-id>
|
|
40
40
|
# Get Staff's token
|
|
41
|
-
npx tailor
|
|
41
|
+
npx tailor machineuser token staff --workspace-id <your-workspace-id>
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## Features
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
node_modules/
|
|
2
|
-
.tailor
|
|
2
|
+
.tailor/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inventory-management",
|
|
3
|
+
"version": "0.0.0",
|
|
3
4
|
"private": true,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
|
-
"deploy": "tailor
|
|
7
|
-
"generate": "tailor
|
|
7
|
+
"deploy": "tailor deploy",
|
|
8
|
+
"generate": "tailor generate",
|
|
8
9
|
"format": "oxfmt --write .",
|
|
9
10
|
"format:check": "oxfmt --check .",
|
|
10
11
|
"lint": "oxlint --type-aware .",
|
|
@@ -12,11 +13,11 @@
|
|
|
12
13
|
"typecheck": "tsc --noEmit"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
15
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
16
|
+
"@tailor-platform/sdk": "2.0.0-next.3",
|
|
16
17
|
"@types/node": "24.13.2",
|
|
17
|
-
"oxfmt": "0.
|
|
18
|
-
"oxlint": "1.
|
|
19
|
-
"oxlint-tsgolint": "0.
|
|
18
|
+
"oxfmt": "0.57.0",
|
|
19
|
+
"oxlint": "1.72.0",
|
|
20
|
+
"oxlint-tsgolint": "0.24.0",
|
|
20
21
|
"typescript": "6.0.3"
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is auto-generated by @tailor-platform/sdk
|
|
2
2
|
// Do not edit this file manually
|
|
3
|
-
// Regenerated automatically when running 'tailor
|
|
3
|
+
// Regenerated automatically when running 'tailor deploy' or 'tailor generate'
|
|
4
4
|
|
|
5
5
|
declare module "@tailor-platform/sdk" {
|
|
6
|
-
interface
|
|
6
|
+
interface Attributes {
|
|
7
7
|
role: "MANAGER" | "STAFF";
|
|
8
8
|
}
|
|
9
9
|
interface AttributeList {
|
|
@@ -15,6 +15,8 @@ declare module "@tailor-platform/sdk" {
|
|
|
15
15
|
staff: true;
|
|
16
16
|
}
|
|
17
17
|
interface IdpNameRegistry {}
|
|
18
|
+
interface ConnectionNameRegistry {}
|
|
19
|
+
interface AIGatewayNameRegistry {}
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export {};
|
|
@@ -16,8 +16,8 @@ This project contains two applications: `user` and `admin`.
|
|
|
16
16
|
1. Create a new workspace:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npx tailor
|
|
20
|
-
npx tailor
|
|
19
|
+
npx tailor login
|
|
20
|
+
npx tailor workspace create --name <workspace-name> --region <workspace-region>
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
2. Deploy the project:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
node_modules/
|
|
2
|
-
.tailor
|
|
2
|
+
.tailor/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "multi-application",
|
|
3
|
+
"version": "0.0.0",
|
|
3
4
|
"private": true,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"deploy": "pnpm run deploy:user && pnpm run deploy:admin",
|
|
7
|
-
"deploy:user": "tailor
|
|
8
|
-
"deploy:admin": "tailor
|
|
8
|
+
"deploy:user": "tailor deploy -c apps/user/tailor.config.ts",
|
|
9
|
+
"deploy:admin": "tailor deploy -c apps/admin/tailor.config.ts",
|
|
9
10
|
"format": "oxfmt --write .",
|
|
10
11
|
"format:check": "oxfmt --check .",
|
|
11
12
|
"lint": "oxlint --type-aware .",
|
|
@@ -13,11 +14,11 @@
|
|
|
13
14
|
"typecheck": "tsc --noEmit"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
17
|
+
"@tailor-platform/sdk": "2.0.0-next.3",
|
|
17
18
|
"@types/node": "24.13.2",
|
|
18
|
-
"oxfmt": "0.
|
|
19
|
-
"oxlint": "1.
|
|
20
|
-
"oxlint-tsgolint": "0.
|
|
19
|
+
"oxfmt": "0.57.0",
|
|
20
|
+
"oxlint": "1.72.0",
|
|
21
|
+
"oxlint-tsgolint": "0.24.0",
|
|
21
22
|
"typescript": "6.0.3"
|
|
22
23
|
}
|
|
23
24
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
node_modules/
|
|
2
|
-
.tailor
|
|
2
|
+
.tailor/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resolver",
|
|
3
|
+
"version": "0.0.0",
|
|
3
4
|
"private": true,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
|
-
"generate": "tailor
|
|
7
|
-
"deploy": "tailor
|
|
7
|
+
"generate": "tailor generate",
|
|
8
|
+
"deploy": "tailor deploy",
|
|
8
9
|
"test": "vitest --project unit",
|
|
9
10
|
"test:unit": "vitest --project unit",
|
|
10
11
|
"format": "oxfmt --write .",
|
|
@@ -14,12 +15,12 @@
|
|
|
14
15
|
"typecheck": "tsc --noEmit"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
18
|
+
"@tailor-platform/sdk": "2.0.0-next.3",
|
|
18
19
|
"@types/node": "24.13.2",
|
|
19
|
-
"oxfmt": "0.
|
|
20
|
-
"oxlint": "1.
|
|
21
|
-
"oxlint-tsgolint": "0.
|
|
20
|
+
"oxfmt": "0.57.0",
|
|
21
|
+
"oxlint": "1.72.0",
|
|
22
|
+
"oxlint-tsgolint": "0.24.0",
|
|
22
23
|
"typescript": "6.0.3",
|
|
23
|
-
"vitest": "4.1.
|
|
24
|
+
"vitest": "4.1.9"
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is auto-generated by @tailor-platform/sdk
|
|
2
2
|
// Do not edit this file manually
|
|
3
|
-
// Regenerated automatically when running 'tailor
|
|
3
|
+
// Regenerated automatically when running 'tailor deploy' or 'tailor generate'
|
|
4
4
|
|
|
5
5
|
declare module "@tailor-platform/sdk" {
|
|
6
|
-
interface
|
|
6
|
+
interface Attributes {
|
|
7
7
|
role: string;
|
|
8
8
|
}
|
|
9
9
|
interface AttributeList {
|
|
@@ -17,6 +17,8 @@ declare module "@tailor-platform/sdk" {
|
|
|
17
17
|
admin: true;
|
|
18
18
|
}
|
|
19
19
|
interface IdpNameRegistry {}
|
|
20
|
+
interface ConnectionNameRegistry {}
|
|
21
|
+
interface AIGatewayNameRegistry {}
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
node_modules/
|
|
2
|
-
.tailor
|
|
2
|
+
.tailor/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "static-web-site",
|
|
3
|
+
"version": "0.0.0",
|
|
3
4
|
"private": true,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
|
-
"deploy": "tailor
|
|
7
|
-
"generate": "tailor
|
|
7
|
+
"deploy": "tailor deploy",
|
|
8
|
+
"generate": "tailor generate",
|
|
8
9
|
"format": "oxfmt --write .",
|
|
9
10
|
"format:check": "oxfmt --check .",
|
|
10
11
|
"lint": "oxlint --type-aware .",
|
|
@@ -12,11 +13,11 @@
|
|
|
12
13
|
"typecheck": "tsc --noEmit"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
15
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
16
|
+
"@tailor-platform/sdk": "2.0.0-next.3",
|
|
16
17
|
"@types/node": "24.13.2",
|
|
17
|
-
"oxfmt": "0.
|
|
18
|
-
"oxlint": "1.
|
|
19
|
-
"oxlint-tsgolint": "0.
|
|
18
|
+
"oxfmt": "0.57.0",
|
|
19
|
+
"oxlint": "1.72.0",
|
|
20
|
+
"oxlint-tsgolint": "0.24.0",
|
|
20
21
|
"typescript": "6.0.3"
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is auto-generated by @tailor-platform/sdk
|
|
2
2
|
// Do not edit this file manually
|
|
3
|
-
// Regenerated automatically when running 'tailor
|
|
3
|
+
// Regenerated automatically when running 'tailor deploy' or 'tailor generate'
|
|
4
4
|
|
|
5
5
|
declare module "@tailor-platform/sdk" {
|
|
6
|
-
interface
|
|
6
|
+
interface Attributes {
|
|
7
7
|
role: "ADMIN" | "MEMBER";
|
|
8
8
|
}
|
|
9
9
|
interface AttributeList {
|
|
@@ -16,6 +16,8 @@ declare module "@tailor-platform/sdk" {
|
|
|
16
16
|
interface IdpNameRegistry {
|
|
17
17
|
"my-idp": true;
|
|
18
18
|
}
|
|
19
|
+
interface ConnectionNameRegistry {}
|
|
20
|
+
interface AIGatewayNameRegistry {}
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
node_modules/
|
|
2
|
-
.tailor
|
|
2
|
+
.tailor/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailordb",
|
|
3
|
+
"version": "0.0.0",
|
|
3
4
|
"private": true,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
|
-
"generate": "tailor
|
|
7
|
-
"deploy": "tailor
|
|
7
|
+
"generate": "tailor generate",
|
|
8
|
+
"deploy": "tailor deploy",
|
|
8
9
|
"test": "vitest --project unit",
|
|
9
10
|
"test:unit": "vitest --project unit",
|
|
10
11
|
"format": "oxfmt --write .",
|
|
@@ -14,12 +15,12 @@
|
|
|
14
15
|
"typecheck": "tsc --noEmit"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
18
|
+
"@tailor-platform/sdk": "2.0.0-next.3",
|
|
18
19
|
"@types/node": "24.13.2",
|
|
19
|
-
"oxfmt": "0.
|
|
20
|
-
"oxlint": "1.
|
|
21
|
-
"oxlint-tsgolint": "0.
|
|
20
|
+
"oxfmt": "0.57.0",
|
|
21
|
+
"oxlint": "1.72.0",
|
|
22
|
+
"oxlint-tsgolint": "0.24.0",
|
|
22
23
|
"typescript": "6.0.3",
|
|
23
|
-
"vitest": "4.1.
|
|
24
|
+
"vitest": "4.1.9"
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is auto-generated by @tailor-platform/sdk
|
|
2
2
|
// Do not edit this file manually
|
|
3
|
-
// Regenerated automatically when running 'tailor
|
|
3
|
+
// Regenerated automatically when running 'tailor deploy' or 'tailor generate'
|
|
4
4
|
|
|
5
5
|
declare module "@tailor-platform/sdk" {
|
|
6
|
-
interface
|
|
6
|
+
interface Attributes {
|
|
7
7
|
role: string;
|
|
8
8
|
}
|
|
9
9
|
interface AttributeList {
|
|
@@ -15,6 +15,8 @@ declare module "@tailor-platform/sdk" {
|
|
|
15
15
|
viewer: true;
|
|
16
16
|
}
|
|
17
17
|
interface IdpNameRegistry {}
|
|
18
|
+
interface ConnectionNameRegistry {}
|
|
19
|
+
interface AIGatewayNameRegistry {}
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
node_modules/
|
|
2
|
-
.tailor
|
|
2
|
+
.tailor/
|
|
@@ -55,7 +55,7 @@ export async function setup(project: TestProject): Promise<void> {
|
|
|
55
55
|
process.env.TAILOR_PLATFORM_WORKSPACE_ID = createdWorkspace.id;
|
|
56
56
|
// This pipeline deploys a fresh app into a per-run workspace, so let the
|
|
57
57
|
// SDK inject a missing app id even in CI (normally a hard error there).
|
|
58
|
-
process.env.
|
|
58
|
+
process.env.TAILOR_CI_ALLOW_ID_INJECTION = "true";
|
|
59
59
|
await deployApplication();
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow",
|
|
3
|
+
"version": "0.0.0",
|
|
3
4
|
"private": true,
|
|
4
5
|
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
|
-
"generate": "tailor
|
|
7
|
-
"deploy": "tailor
|
|
7
|
+
"generate": "tailor generate",
|
|
8
|
+
"deploy": "tailor deploy",
|
|
8
9
|
"test": "vitest --project unit",
|
|
9
10
|
"test:unit": "vitest --project unit",
|
|
10
11
|
"test:e2e": "vitest --project e2e",
|
|
@@ -15,14 +16,14 @@
|
|
|
15
16
|
"typecheck": "tsc --noEmit"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
19
|
+
"@tailor-platform/sdk": "2.0.0-next.3",
|
|
19
20
|
"@types/node": "24.13.2",
|
|
20
|
-
"graphql": "
|
|
21
|
+
"graphql": "17.0.1",
|
|
21
22
|
"graphql-request": "7.4.0",
|
|
22
|
-
"oxfmt": "0.
|
|
23
|
-
"oxlint": "1.
|
|
24
|
-
"oxlint-tsgolint": "0.
|
|
23
|
+
"oxfmt": "0.57.0",
|
|
24
|
+
"oxlint": "1.72.0",
|
|
25
|
+
"oxlint-tsgolint": "0.24.0",
|
|
25
26
|
"typescript": "6.0.3",
|
|
26
|
-
"vitest": "4.1.
|
|
27
|
+
"vitest": "4.1.9"
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createWorkflow, createWorkflowJob
|
|
1
|
+
import { createWaitPoints, createWorkflow, createWorkflowJob } from "@tailor-platform/sdk";
|
|
2
2
|
|
|
3
|
-
export const { approval } =
|
|
3
|
+
export const { approval } = createWaitPoints((define) => ({
|
|
4
4
|
/** Approval for order processing */
|
|
5
5
|
approval: define<{ message: string; orderId: string }, { approved: boolean }>(),
|
|
6
6
|
}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is auto-generated by @tailor-platform/sdk
|
|
2
2
|
// Do not edit this file manually
|
|
3
|
-
// Regenerated automatically when running 'tailor
|
|
3
|
+
// Regenerated automatically when running 'tailor deploy' or 'tailor generate'
|
|
4
4
|
|
|
5
5
|
declare module "@tailor-platform/sdk" {
|
|
6
|
-
interface
|
|
6
|
+
interface Attributes {
|
|
7
7
|
role: string;
|
|
8
8
|
}
|
|
9
9
|
interface AttributeList {
|
|
@@ -14,6 +14,8 @@ declare module "@tailor-platform/sdk" {
|
|
|
14
14
|
admin: true;
|
|
15
15
|
}
|
|
16
16
|
interface IdpNameRegistry {}
|
|
17
|
+
interface ConnectionNameRegistry {}
|
|
18
|
+
interface AIGatewayNameRegistry {}
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export {};
|