Skip to content

Version Packages (next)#1545

Merged
toiroakr merged 1 commit into
v2from
changeset-release/v2
Jul 9, 2026
Merged

Version Packages (next)#1545
toiroakr merged 1 commit into
v2from
changeset-release/v2

Conversation

@tailor-platform-pr-trigger

@tailor-platform-pr-trigger tailor-platform-pr-trigger Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to v2, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

v2 is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on v2.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@tailor-platform/create-sdk@2.0.0-next.3

Major Changes

  • #1684 de3ef5e Thanks @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.

  • #1556 645949e Thanks @toiroakr! - Rename defineWaitPoint and defineWaitPoints to createWaitPoint and createWaitPoints.

    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:

    -import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk";
    +import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk";
    
    -export const approval = defineWaitPoint<Payload, Result>("approval");
    +export const approval = createWaitPoint<Payload, Result>("approval");
    
    -export const waitPoints = defineWaitPoints((define) => ({ ... }));
    +export const waitPoints = createWaitPoints((define) => ({ ... }));

Patch Changes

  • #1559 ff8ef1c Thanks @dqn! - Rename auth attribute module augmentation from AttributeMap to Attributes.

  • #1563 501e8bf Thanks @dqn! - Standardize SDK-owned environment variables on the TAILOR_* namespace.

    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.

@tailor-platform/sdk@2.0.0-next.3

Major Changes

  • #1559 ff8ef1c Thanks @dqn! - Rename auth attribute module augmentation from AttributeMap to Attributes.

  • #1529 9ecb380 Thanks @dqn! - Reject unknown keys in SDK parser schemas instead of silently dropping them from application definitions.

  • #1686 aecaf8c Thanks @dqn! - Replace tailor skills install with project-local tailor skills add, list, remove, and sync commands for bundled Tailor SDK agent skills.

  • #1622 0fe8bad Thanks @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.

  • #1620 1d71a52 Thanks @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.

  • #1536 84d9aba Thanks @toiroakr! - Minimum Node.js version raised to 22.15.0; TypeScript loading switched from tsx to amaro

    Removes tsx (which pulled in esbuild's native binaries, ~10.5 MB) from
    dependencies and replaces it with amaro (~3.8 MB, zero transitive deps).

    A small ts-hook.mjs provides the Node.js module hook with both a resolver
    and a load hook (amaro for full TypeScript support including enums).
    The resolver handles .ts extension fallback, directory barrel imports
    (./models./models/index.ts), and tsconfig paths aliases (reads
    tsconfig.json following extends chains).
    Dev-only scripts now use node --experimental-strip-types instead.

    Raises the minimum Node.js version to 22.15.0 (from >=22) to use
    module.registerHooks(), which allows synchronous hook registration directly
    in the main thread without a worker thread.

  • #1557 7ff575f Thanks @toiroakr! - Rename the CLI binary from tailor-sdk to tailor.

    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.

    Run the v2/rename-bin codemod to migrate tailor-sdk invocations in package.json scripts, shell scripts, CI workflows, and documentation:

    npx @tailor-platform/sdk-codemod --from 1.x --to 2.0.0
  • #1563 501e8bf Thanks @dqn! - Standardize SDK-owned environment variables on the TAILOR_* namespace.

    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.

  • #1684 de3ef5e Thanks @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.

  • #1556 645949e Thanks @toiroakr! - Rename defineWaitPoint and defineWaitPoints to createWaitPoint and createWaitPoints.

    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:

    -import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk";
    +import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk";
    
    -export const approval = defineWaitPoint<Payload, Result>("approval");
    +export const approval = createWaitPoint<Payload, Result>("approval");
    
    -export const waitPoints = defineWaitPoints((define) => ({ ... }));
    +export const waitPoints = createWaitPoints((define) => ({ ... }));

Minor Changes

  • #1501 1e34d7a Thanks @toiroakr! - Add CLI plugin support (beta). Running tailor <name> for an unknown subcommand now executes an external tailor-<name> executable found on your PATH or in node_modules/.bin (project-local takes precedence), forwarding all following arguments. This also works for unknown subcommands nested under a known command — e.g. tailor tailordb erd dispatches to tailor-tailordb-erd. Builtins always take precedence, matching stops at the first unknown segment, and a command that takes its own arguments is never replaced by a plugin. The plugin receives the current Tailor Platform context via environment variables (TAILOR_PLATFORM_TOKEN, TAILOR_PLATFORM_URL, TAILOR_PLATFORM_OAUTH2_CLIENT_ID, TAILOR_PLATFORM_WORKSPACE_ID, TAILOR_PLATFORM_USER, TAILOR_CONFIG_PATH, TAILOR_VERSION, TAILOR_BIN); token, workspace, and user are best-effort, so auth-free plugins still run when you are not logged in.

    Also adds:

    • tailor auth token — print a valid access token (refreshing it if expired) for use by plugins and scripts.
    • tailor plugin list — list discovered plugins and their executable paths.

Patch Changes

  • ee35251 Thanks @toiroakr! - Remove the openDownloadStream method from mockFile() (@tailor-platform/sdk/vitest), matching the runtime file API, which no longer exposes it. Use downloadStream instead.

  • #1629 a0bc8e7 Thanks @dqn! - Validate auth user profile TailorDB types with the strict TailorDB parser schema.

@tailor-platform/sdk-codemod@0.3.0-next.3

Patch Changes

  • #1559 ff8ef1c Thanks @dqn! - Rename auth attribute module augmentation from AttributeMap to Attributes.

  • #1584 7faff07 Thanks @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.

  • #1599 b88f6a2 Thanks @dqn! - Apply the v2 rename-bin codemod to SDK CLI command strings in TypeScript and JavaScript source files.

  • #1578 579cb47 Thanks @dqn! - Run v2 codemods when the target version is a v2 prerelease.

  • #1686 aecaf8c Thanks @dqn! - Replace tailor skills install with project-local tailor skills add, list, remove, and sync commands for bundled Tailor SDK agent skills.

  • #1585 1c1ca49 Thanks @dqn! - Report precise file-local findings for principal-unify review follow-ups, including nullable caller call sites and context.user helper adapters.

  • #1601 144f3e3 Thanks @dqn! - Fix v2/principal-unify review findings for nested SDK field parser invoker values and destructured context helper messages.

  • #1622 0fe8bad Thanks @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.

  • #1557 7ff575f Thanks @toiroakr! - Rename the CLI binary from tailor-sdk to tailor.

    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.

    Run the v2/rename-bin codemod to migrate tailor-sdk invocations in package.json scripts, shell scripts, CI workflows, and documentation:

    npx @tailor-platform/sdk-codemod --from 1.x --to 2.0.0
  • #1563 501e8bf Thanks @dqn! - Standardize SDK-owned environment variables on the TAILOR_* namespace.

    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.

  • #1684 de3ef5e Thanks @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.

  • #1582 b8b48a3 Thanks @dqn! - Flag JavaScript files and embedded code strings that still reference ambient Tailor runtime globals during v2 migration review.

  • #1583 006a588 Thanks @dqn! - Automatically migrate simple direct tailor.idp.Client runtime global usage to the typed idp.Client wrapper during v2 upgrades.

  • #1639 6616674 Thanks @dqn! - Keep v2 codemods from reusing type-only runtime helper imports when adding runtime value imports.

  • #1581 79780bc Thanks @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.

  • #1556 645949e Thanks @toiroakr! - Rename defineWaitPoint and defineWaitPoints to createWaitPoint and createWaitPoints.

    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:

    -import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk";
    +import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk";
    
    -export const approval = defineWaitPoint<Payload, Result>("approval");
    +export const approval = createWaitPoint<Payload, Result>("approval");
    
    -export const waitPoints = defineWaitPoints((define) => ({ ... }));
    +export const waitPoints = createWaitPoints((define) => ({ ... }));

@tailor-platform-pr-trigger tailor-platform-pr-trigger Bot requested review from a team as code owners June 24, 2026 03:11
@pkg-pr-new

pkg-pr-new Bot commented Jun 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@tailor-platform/create-sdk@ad83d8f
pnpm add https://pkg.pr.new/@tailor-platform/sdk@ad83d8f

commit: ad83d8f

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@tailor-platform-pr-trigger tailor-platform-pr-trigger Bot force-pushed the changeset-release/v2 branch 2 times, most recently from 0f47af8 to 908a690 Compare June 25, 2026 02:34
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@tailor-platform-pr-trigger tailor-platform-pr-trigger Bot force-pushed the changeset-release/v2 branch 3 times, most recently from 65c6614 to 74e5631 Compare July 3, 2026 01:25
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@tailor-platform-pr-trigger tailor-platform-pr-trigger Bot force-pushed the changeset-release/v2 branch 2 times, most recently from 0f98c53 to 49b665c Compare July 8, 2026 13:27
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Code Metrics Report (packages/sdk)

main (4ad365f) #1545 (1848252) +/-
Coverage 72.6% 74.0% +1.3%
Code to Test Ratio 1:0.4 1:0.4 +0.0
Details
  |                    | main (4ad365f) | #1545 (1848252) |  +/-  |
  |--------------------|----------------|-----------------|-------|
+ | Coverage           |          72.6% |           74.0% | +1.3% |
  |   Files            |            447 |             444 |    -3 |
  |   Lines            |          16306 |           16370 |   +64 |
+ |   Covered          |          11850 |           12120 |  +270 |
+ | Code to Test Ratio |          1:0.4 |           1:0.4 |  +0.0 |
  |   Code             |         109435 |          111960 | +2525 |
+ |   Test             |          48215 |           49736 | +1521 |

Code coverage of files in pull request scope (77.9% → 83.1%)

Details
Files Coverage +/- Status
packages/sdk/example/tailordb/user.ts 0.0% -100.0% affected
packages/sdk/llm-challenge/src/types.ts 0.0% -100.0% affected
packages/sdk/packages/sdk-codemod/src/registry.ts 0.0% -60.0% affected
packages/sdk/src/cli/commands/auth/index.ts 100.0% +100.0% affected
packages/sdk/src/cli/commands/auth/token.ts 33.3% +33.3% affected
packages/sdk/src/cli/commands/deploy/test_fixtures/tailor.config.generators-compat.ts 0.0% -100.0% affected
packages/sdk/src/cli/commands/deploy/test_fixtures/tailor.config.plugins-compat.ts 0.0% -100.0% affected
packages/sdk/src/cli/commands/deploy/auth-invoker.ts 0.0% -100.0% affected
packages/sdk/src/cli/commands/deploy/deploy.ts 89.5% -0.1% affected
packages/sdk/src/cli/commands/deploy/invoker.ts 100.0% +100.0% affected
packages/sdk/src/cli/commands/deploy/validate-plan.ts 95.9% +0.8% affected
packages/sdk/src/cli/commands/deploy/workflow-execution-policy.ts 0.0% -39.2% affected
packages/sdk/src/cli/commands/function/logs.ts 39.7% -4.6% affected
packages/sdk/src/cli/commands/function/test-run.ts 56.8% -3.4% affected
packages/sdk/src/cli/commands/generate/service.ts 58.3% -9.9% affected
packages/sdk/src/cli/commands/login.ts 37.3% -0.6% affected
packages/sdk/src/cli/commands/plugin/index.ts 50.0% +50.0% affected
packages/sdk/src/cli/commands/plugin/list.ts 6.6% +6.6% affected
packages/sdk/src/cli/commands/profile/create.ts 77.2% +72.7% affected
packages/sdk/src/cli/commands/profile/update.ts 92.3% +0.2% affected
packages/sdk/src/cli/commands/skills/install.ts 0.0% -57.2% affected
packages/sdk/src/cli/commands/tailordb/migrate/db-types-generator.ts 95.8% -1.4% affected
packages/sdk/src/cli/commands/user/switch.ts 88.2% +0.7% affected
packages/sdk/src/cli/commands/workflow/start.ts 83.6% +12.5% affected
packages/sdk/src/cli/commands/workspace/create.ts 86.7% +0.2% affected
packages/sdk/src/cli/crashreport/report.ts 88.0% +2.2% affected
packages/sdk/src/cli/index.ts 61.7% +11.7% affected
packages/sdk/src/cli/query/type-field-order.ts 85.7% +85.7% affected
packages/sdk/src/cli/services/application.ts 84.1% +3.3% affected
packages/sdk/src/cli/services/executor/loader.ts 84.6% +1.2% affected
packages/sdk/src/cli/services/workflow/service.ts 83.7% +3.7% affected
packages/sdk/src/cli/services/workflow/source-transformer.ts 96.2% -0.1% affected
packages/sdk/src/cli/services/workflow/trigger-transformer.ts 89.6% -0.1% affected
packages/sdk/src/cli/shared/args.ts 98.0% +6.0% affected
packages/sdk/src/cli/shared/auth-namespace.ts 100.0% +100.0% affected
packages/sdk/src/cli/shared/builtin-commands.ts 100.0% +100.0% affected
packages/sdk/src/cli/shared/config-loader.ts 74.1% -8.2% affected
packages/sdk/src/cli/shared/context.ts 94.4% +15.5% affected
packages/sdk/src/cli/shared/plugin.ts 82.2% +82.2% affected
packages/sdk/src/cli/shared/register-ts-hook.ts 100.0% +100.0% affected
packages/sdk/src/cli/shared/skills-installer.ts 0.0% -93.4% affected
packages/sdk/src/cli/ts-hook.mjs 84.4% +84.4% affected
packages/sdk/src/configure/services/auth/index.ts 100.0% +25.0% affected
packages/sdk/src/configure/services/staticwebsite/index.ts 100.0% +100.0% affected
packages/sdk/src/configure/services/tailordb/schema.ts 85.0% +4.8% affected
packages/sdk/src/configure/services/workflow/execution-policy.ts 0.0% -100.0% affected
packages/sdk/src/configure/services/workflow/job.ts 90.0% +4.2% affected
packages/sdk/src/configure/services/workflow/registry.ts 95.0% +10.6% affected
packages/sdk/src/configure/services/workflow/test-env-key.ts 100.0% +6.6% affected
packages/sdk/src/configure/services/workflow/workflow.ts 66.6% +6.6% affected
packages/sdk/src/parser/service/auth/schema.ts 92.3% +5.1% affected
packages/sdk/src/parser/service/tailordb/builder-helpers.ts 100.0% +100.0% affected
packages/sdk/src/parser/service/workflow/schema.ts 52.9% -7.1% affected
packages/sdk/src/plugin/builtin/kysely-type/type-processor.ts 91.9% +0.1% affected
packages/sdk/src/plugin/builtin/seed/index.ts 0.0% -1.6% affected
packages/sdk/src/vitest/mocks/file.ts 91.1% +7.8% affected
packages/sdk/src/vitest/mocks/workflow.ts 98.2% +4.6% affected
packages/sdk/src/vitest/workflow-local.ts 76.5% +76.5% affected
packages/sdk/src/vitest/workflow-runtime.ts 57.1% +23.8% affected

SDK Configure Bundle Size

main (4ad365f) #1545 (1848252) +/-
configure-index-size 25.14KB 21.31KB -3.83KB
dependency-chunks-size 46.46KB 34.01KB -12.45KB
total-bundle-size 71.6KB 55.32KB -16.28KB

Runtime Performance

main (4ad365f) #1545 (1848252) +/-
Generate Median 2,995ms 3,031ms 36ms
Generate Max 3,021ms 3,056ms 35ms
Apply Build Median 3,049ms 3,077ms 28ms
Apply Build Max 3,069ms 3,126ms 57ms

Type Performance (instantiations)

main (4ad365f) #1545 (1848252) +/-
tailordb-basic 40,227 39,503 -724
tailordb-optional 4,521 4,521 0
tailordb-relation 5,152 5,152 0
tailordb-validate 742 742 0
tailordb-hooks 5,404 5,404 0
tailordb-object 12,567 12,567 0
tailordb-enum 1,507 1,507 0
resolver-basic 9,272 9,247 -25
resolver-nested 26,139 26,114 -25
resolver-array 18,078 18,053 -25
executor-schedule 4,310 4,297 -13
executor-webhook 949 936 -13
executor-record 5,695 5,682 -13
executor-resolver 4,108 4,092 -16
executor-operation-function 937 924 -13
executor-operation-gql 945 932 -13
executor-operation-webhook 956 943 -13
executor-operation-workflow 1,798 1,768 -30

Reported by octocov

@toiroakr toiroakr merged commit 5db6e36 into v2 Jul 9, 2026
43 checks passed
@toiroakr toiroakr deleted the changeset-release/v2 branch July 9, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant