Skip to content

Commit 74e5631

Browse files
Version Packages (next)
1 parent 232f1d4 commit 74e5631

7 files changed

Lines changed: 213 additions & 6 deletions

File tree

.changeset/pre.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,53 @@
44
"initialVersions": {
55
"@tailor-platform/create-sdk": "1.64.0",
66
"@tailor-platform/sdk": "1.64.0",
7-
"@tailor-platform/sdk-codemod": "0.2.7"
7+
"@tailor-platform/sdk-codemod": "0.2.7",
8+
"@tailor-platform/tailor-proto": "0.0.0"
89
},
910
"changesets": [
1011
"apply-deploy-source-strings",
12+
"auth-attributes-rename",
1113
"codemod-llm-review",
1214
"codemod-migration-docs",
1315
"codemod-residual-matching",
16+
"codemod-runner-metadata",
1417
"execute-script-json-arg",
1518
"execute-script-review-scope",
19+
"fix-rename-bin-source-files",
20+
"fix-v2-prerelease-codemods",
1621
"invoker-option-rename",
1722
"keyring-default-storage",
23+
"machine-user-token-error-detail",
1824
"open-download-review-scope",
25+
"parser-schema-strict",
1926
"principal-followup-review",
2027
"principal-unify-codemod",
28+
"principal-unify-review-findings",
29+
"principal-unify-review-followup",
30+
"remove-auth-connection-token",
2131
"remove-auth-invoker-helper",
2232
"remove-define-generators",
2333
"remove-function-test-run-input-wrapper",
2434
"remove-open-download-stream",
2535
"remove-runtime-globals-compatibility",
2636
"remove-tailor-sdk-skills-shim",
37+
"remove-tailorctl-config-migration",
38+
"remove-tsx",
2739
"remove-v2-cli-aliases",
2840
"remove-workflow-test-env-fallback",
29-
"renovate-1516",
30-
"renovate-1525",
41+
"rename-bin-command",
42+
"rename-tailor-cli-env",
3143
"require-function-log-content-hash",
44+
"runtime-global-source-strings",
3245
"runtime-globals-import",
46+
"runtime-idp-wrapper",
47+
"runtime-workflow-resume",
3348
"store-cli-users-by-subject",
49+
"tailor-output-ignore-dir",
3450
"tailor-principal-type",
3551
"timestamps-updated-at-create",
3652
"v2-baseline",
53+
"wait-point-rename",
3754
"workflow-trigger-dispatch"
3855
]
3956
}

packages/create-sdk/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# @tailor-platform/create-sdk
22

3+
## 2.0.0-next.3
4+
### Major Changes
5+
6+
7+
8+
- [#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`.
9+
10+
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:
11+
12+
```diff
13+
-import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk";
14+
+import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk";
15+
16+
-export const approval = defineWaitPoint<Payload, Result>("approval");
17+
+export const approval = createWaitPoint<Payload, Result>("approval");
18+
19+
-export const waitPoints = defineWaitPoints((define) => ({ ... }));
20+
+export const waitPoints = createWaitPoints((define) => ({ ... }));
21+
```
22+
23+
### Patch Changes
24+
25+
26+
27+
- [#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`.
28+
29+
30+
31+
- [#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.
32+
33+
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.
34+
335
## 2.0.0-next.2
436
### Major Changes
537

packages/create-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tailor-platform/create-sdk",
3-
"version": "2.0.0-next.2",
3+
"version": "2.0.0-next.3",
44
"description": "A CLI tool to quickly create a new Tailor Platform SDK project",
55
"license": "MIT",
66
"repository": {

packages/sdk-codemod/CHANGELOG.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,81 @@
11
# @tailor-platform/sdk-codemod
22

3+
## 0.3.0-next.3
4+
### Patch Changes
5+
6+
7+
8+
- [#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`.
9+
10+
11+
12+
- [#1584](https://github.com/tailor-platform/sdk/pull/1584) [`7faff07`](https://github.com/tailor-platform/sdk/commit/7faff07982909b63b87185dc1186e2919a06d4bb) Thanks [@dqn](https://github.com/dqn)! - Report the codemod runner identity in the JSON summary, including the source checkout commit and local build command when run from a branch build, so prerelease migration validation can distinguish exact npm packages from branch-head behavior.
13+
14+
15+
16+
- [#1599](https://github.com/tailor-platform/sdk/pull/1599) [`b88f6a2`](https://github.com/tailor-platform/sdk/commit/b88f6a2e1c6d8e25a797bec6ca90428f5be3b1b9) Thanks [@dqn](https://github.com/dqn)! - Apply the v2 `rename-bin` codemod to SDK CLI command strings in TypeScript and JavaScript source files.
17+
18+
19+
20+
- [#1578](https://github.com/tailor-platform/sdk/pull/1578) [`579cb47`](https://github.com/tailor-platform/sdk/commit/579cb4705cb295c1fcf9bff948d205fb245ff4e5) Thanks [@dqn](https://github.com/dqn)! - Run v2 codemods when the target version is a v2 prerelease.
21+
22+
23+
24+
- [#1585](https://github.com/tailor-platform/sdk/pull/1585) [`1c1ca49`](https://github.com/tailor-platform/sdk/commit/1c1ca499b4fd55a616b1531ec7ab280ceed531d3) Thanks [@dqn](https://github.com/dqn)! - Report precise file-local findings for `principal-unify` review follow-ups, including nullable caller call sites and `context.user` helper adapters.
25+
26+
27+
28+
- [#1601](https://github.com/tailor-platform/sdk/pull/1601) [`144f3e3`](https://github.com/tailor-platform/sdk/commit/144f3e30f2b0c5dac1a3288ff65c9dc5ca82c13b) Thanks [@dqn](https://github.com/dqn)! - Fix `v2/principal-unify` review findings for nested SDK field parser invoker values and destructured context helper messages.
29+
30+
31+
32+
- [#1622](https://github.com/tailor-platform/sdk/pull/1622) [`0fe8bad`](https://github.com/tailor-platform/sdk/commit/0fe8bad9afbb7702bc067ac9635b77c0438497a6) Thanks [@dqn](https://github.com/dqn)! - Remove the deprecated `auth.getConnectionToken()` helper from values returned by `defineAuth()`. Use `authconnection.getConnectionToken(...)` from `@tailor-platform/sdk/runtime` in resolvers, executors, and workflows instead. The v2 codemod rewrites direct `auth.getConnectionToken(...)` calls when the `auth` binding is imported from `tailor.config`.
33+
34+
35+
36+
- [#1557](https://github.com/tailor-platform/sdk/pull/1557) [`7ff575f`](https://github.com/tailor-platform/sdk/commit/7ff575fdfa15c00b5fc6282b28c0cb50bfdf927b) Thanks [@toiroakr](https://github.com/toiroakr)! - Rename the CLI binary from `tailor-sdk` to `tailor`.
37+
38+
The output directory default changes from `.tailor-sdk` to `.tailor`, and the GitHub Actions lock file path changes from `.github/tailor-sdk.lock` to `.github/tailor.lock`.
39+
40+
Run the `v2/rename-bin` codemod to migrate `tailor-sdk` invocations in package.json scripts, shell scripts, CI workflows, and documentation:
41+
42+
```sh
43+
npx @tailor-platform/sdk-codemod --from 1.x --to 2.0.0
44+
```
45+
46+
47+
- [#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.
48+
49+
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.
50+
51+
52+
- [#1582](https://github.com/tailor-platform/sdk/pull/1582) [`b8b48a3`](https://github.com/tailor-platform/sdk/commit/b8b48a379a73314c26fbf53c74c2181e77f0565b) Thanks [@dqn](https://github.com/dqn)! - Flag JavaScript files and embedded code strings that still reference ambient Tailor runtime globals during v2 migration review.
53+
54+
55+
56+
- [#1583](https://github.com/tailor-platform/sdk/pull/1583) [`006a588`](https://github.com/tailor-platform/sdk/commit/006a5884583f23fc6852714c41e58a7ab6d65a5a) Thanks [@dqn](https://github.com/dqn)! - Automatically migrate simple direct `tailor.idp.Client` runtime global usage to the typed `idp.Client` wrapper during v2 upgrades.
57+
58+
59+
60+
- [#1581](https://github.com/tailor-platform/sdk/pull/1581) [`79780bc`](https://github.com/tailor-platform/sdk/commit/79780bce19864a238602f4dd7a82fcc84e9f8501) Thanks [@dqn](https://github.com/dqn)! - Add the `v2/tailor-output-ignore-dir` codemod so SDK upgrades rewrite exact `.tailor-sdk/` ignore-file entries to `.tailor/` while leaving other `.tailor-sdk` paths unchanged.
61+
62+
63+
64+
- [#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`.
65+
66+
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:
67+
68+
```diff
69+
-import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk";
70+
+import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk";
71+
72+
-export const approval = defineWaitPoint<Payload, Result>("approval");
73+
+export const approval = createWaitPoint<Payload, Result>("approval");
74+
75+
-export const waitPoints = defineWaitPoints((define) => ({ ... }));
76+
+export const waitPoints = createWaitPoints((define) => ({ ... }));
77+
```
78+
379
## 0.3.0-next.2
480
### Minor Changes
581

packages/sdk-codemod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tailor-platform/sdk-codemod",
3-
"version": "0.3.0-next.2",
3+
"version": "0.3.0-next.3",
44
"description": "Codemod runner for Tailor Platform SDK upgrades",
55
"license": "MIT",
66
"repository": {

packages/sdk/CHANGELOG.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,87 @@
11
# @tailor-platform/sdk
22

3+
## 2.0.0-next.3
4+
### Major Changes
5+
6+
7+
8+
- [#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`.
9+
10+
11+
12+
- [#1529](https://github.com/tailor-platform/sdk/pull/1529) [`9ecb380`](https://github.com/tailor-platform/sdk/commit/9ecb380acdc1b37578c23c628ab46958663b4001) Thanks [@dqn](https://github.com/dqn)! - Reject unknown keys in SDK parser schemas instead of silently dropping them from application definitions.
13+
14+
15+
16+
- [#1622](https://github.com/tailor-platform/sdk/pull/1622) [`0fe8bad`](https://github.com/tailor-platform/sdk/commit/0fe8bad9afbb7702bc067ac9635b77c0438497a6) Thanks [@dqn](https://github.com/dqn)! - Remove the deprecated `auth.getConnectionToken()` helper from values returned by `defineAuth()`. Use `authconnection.getConnectionToken(...)` from `@tailor-platform/sdk/runtime` in resolvers, executors, and workflows instead. The v2 codemod rewrites direct `auth.getConnectionToken(...)` calls when the `auth` binding is imported from `tailor.config`.
17+
18+
19+
20+
- [#1620](https://github.com/tailor-platform/sdk/pull/1620) [`1d71a52`](https://github.com/tailor-platform/sdk/commit/1d71a528ac57dd6fc0de2ab9b898b538608ac13e) Thanks [@dqn](https://github.com/dqn)! - Stop importing credentials and profiles from legacy `~/.tailorctl/config` when the platform config is missing. New CLI configs now start empty in the current platform config format.
21+
22+
23+
24+
- [#1536](https://github.com/tailor-platform/sdk/pull/1536) [`84d9aba`](https://github.com/tailor-platform/sdk/commit/84d9aba843f14e8a7a43f0baff92dfc8afdf2821) Thanks [@toiroakr](https://github.com/toiroakr)! - Minimum Node.js version raised to 22.15.0; TypeScript loading switched from tsx to amaro
25+
26+
Removes `tsx` (which pulled in esbuild's native binaries, ~10.5 MB) from
27+
`dependencies` and replaces it with `amaro` (~3.8 MB, zero transitive deps).
28+
29+
A small `ts-hook.mjs` provides the Node.js module hook with both a resolver
30+
and a load hook (`amaro` for full TypeScript support including enums).
31+
The resolver handles `.ts` extension fallback, directory barrel imports
32+
(`./models``./models/index.ts`), and tsconfig `paths` aliases (reads
33+
`tsconfig.json` following `extends` chains).
34+
Dev-only scripts now use `node --experimental-strip-types` instead.
35+
36+
Raises the minimum Node.js version to 22.15.0 (from >=22) to use
37+
`module.registerHooks()`, which allows synchronous hook registration directly
38+
in the main thread without a worker thread.
39+
40+
41+
- [#1557](https://github.com/tailor-platform/sdk/pull/1557) [`7ff575f`](https://github.com/tailor-platform/sdk/commit/7ff575fdfa15c00b5fc6282b28c0cb50bfdf927b) Thanks [@toiroakr](https://github.com/toiroakr)! - Rename the CLI binary from `tailor-sdk` to `tailor`.
42+
43+
The output directory default changes from `.tailor-sdk` to `.tailor`, and the GitHub Actions lock file path changes from `.github/tailor-sdk.lock` to `.github/tailor.lock`.
44+
45+
Run the `v2/rename-bin` codemod to migrate `tailor-sdk` invocations in package.json scripts, shell scripts, CI workflows, and documentation:
46+
47+
```sh
48+
npx @tailor-platform/sdk-codemod --from 1.x --to 2.0.0
49+
```
50+
51+
52+
- [#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.
53+
54+
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.
55+
56+
57+
- [#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`.
58+
59+
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:
60+
61+
```diff
62+
-import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk";
63+
+import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk";
64+
65+
-export const approval = defineWaitPoint<Payload, Result>("approval");
66+
+export const approval = createWaitPoint<Payload, Result>("approval");
67+
68+
-export const waitPoints = defineWaitPoints((define) => ({ ... }));
69+
+export const waitPoints = createWaitPoints((define) => ({ ... }));
70+
```
71+
72+
### Minor Changes
73+
74+
75+
76+
- [#1608](https://github.com/tailor-platform/sdk/pull/1608) [`89a29a2`](https://github.com/tailor-platform/sdk/commit/89a29a2700f69d27cc27816a02cb7abcc6c731d4) Thanks [@k1LoW](https://github.com/k1LoW)! - Add `workflow.resumeWorkflow(executionId)` to `@tailor-platform/sdk/runtime` for resuming a failed or pending-retry workflow execution from user code. `mockWorkflow()` in `@tailor-platform/sdk/vitest` gains a matching `resumeWorkflow` `vi.fn` and `setResumeHandler` helper for tests.
77+
78+
79+
### Patch Changes
80+
81+
82+
83+
- [#1615](https://github.com/tailor-platform/sdk/pull/1615) [`5e1023c`](https://github.com/tailor-platform/sdk/commit/5e1023c4fca7e2b5b2251b7f44aa3de5d42da716) Thanks [@dqn](https://github.com/dqn)! - Include the HTTP status, status text, and response body when a machine user token request fails, instead of a fixed generic message.
84+
385
## 2.0.0-next.2
486
### Major Changes
587

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tailor-platform/sdk",
3-
"version": "2.0.0-next.2",
3+
"version": "2.0.0-next.3",
44
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)