@tailor-platform/sdk 2.34.0 → 2.36.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 (49) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/{application-Nce5z46R.mjs → application-BbORWCj-.mjs} +27 -27
  3. package/dist/application-BbORWCj-.mjs.map +1 -0
  4. package/dist/{application-CwpOIOTt.mjs → application-DaJbleMi.mjs} +1 -1
  5. package/dist/cli/commands/deploy/tailordb/migration-validation.d.mts +1 -2
  6. package/dist/cli/commands/tailordb/migrate/generate.d.mts +1 -1
  7. package/dist/cli/commands/workspace/create.d.mts +4 -2
  8. package/dist/cli/lib.mjs +1 -1
  9. package/dist/cli/lib.mjs.map +1 -1
  10. package/dist/cli/main.mjs +49 -49
  11. package/dist/cli/main.mjs.map +1 -1
  12. package/dist/cli/services/application.d.mts +1 -0
  13. package/dist/cli/services/function-bundle.d.mts +1 -0
  14. package/dist/cli/shared/sdk-builder-pure-plugin.d.mts +1 -0
  15. package/dist/completion/zsh-worker.zsh +4 -4
  16. package/dist/configure/index.mjs.map +1 -1
  17. package/dist/configure/services/executor/trigger/webhook.d.mts +1 -0
  18. package/dist/configure/services/tailordb/schema.d.mts +6 -2
  19. package/dist/{kysely-type-DxyIWXc6.mjs → kysely-type-B0ri1-Xs.mjs} +9 -7
  20. package/dist/kysely-type-B0ri1-Xs.mjs.map +1 -0
  21. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  22. package/dist/register-ts-hook-iAcG1dfz.mjs +1057 -0
  23. package/dist/register-ts-hook-iAcG1dfz.mjs.map +1 -0
  24. package/dist/schema-BU1aIQ63.mjs.map +1 -1
  25. package/dist/service-DTrVVaDJ.mjs +1 -0
  26. package/dist/{service-eeXdVrDK.mjs → service-hIarp2Gl.mjs} +3 -3
  27. package/dist/service-hIarp2Gl.mjs.map +1 -0
  28. package/dist/vitest/index.mjs +1 -1
  29. package/dist/vitest/index.mjs.map +1 -1
  30. package/dist/vitest/mocks/file.d.mts +1 -1
  31. package/dist/vitest/pglite-kysely.d.mts +5 -0
  32. package/docs/cli/application.md +1 -1
  33. package/docs/cli/tailordb.md +9 -7
  34. package/docs/cli/user.md +1 -1
  35. package/docs/cli/workspace.md +1 -1
  36. package/docs/cli-reference.md +6 -4
  37. package/docs/configuration.md +2 -0
  38. package/docs/services/executor.md +12 -5
  39. package/docs/services/tailordb/index.md +8 -0
  40. package/docs/services/tailordb/migration.md +30 -14
  41. package/docs/testing.md +2 -2
  42. package/package.json +10 -10
  43. package/dist/application-Nce5z46R.mjs.map +0 -1
  44. package/dist/cli/commands/tailordb/migrate/remote-state.d.mts +0 -1
  45. package/dist/kysely-type-DxyIWXc6.mjs.map +0 -1
  46. package/dist/register-ts-hook-CtWJL3EO.mjs +0 -1054
  47. package/dist/register-ts-hook-CtWJL3EO.mjs.map +0 -1
  48. package/dist/service-DEq_hdht.mjs +0 -1
  49. package/dist/service-eeXdVrDK.mjs.map +0 -1
@@ -9,6 +9,7 @@ import "./auth/service.mjs";
9
9
  import "./executor/service.mjs";
10
10
  import "./http-adapter/service.mjs";
11
11
  import "./resolver/service.mjs";
12
+ import "../shared/sdk-builder-pure-plugin.mjs";
12
13
  import "../shared/start-context.mjs";
13
14
  import "./workflow/bundler.mjs";
14
15
  import "./workflow/service.mjs";
@@ -3,5 +3,6 @@ import "../shared/sourcemap-sources.mjs";
3
3
  import "../cache/bundle-cache.mjs";
4
4
  import "../shared/tsconfig-paths-plugin.mjs";
5
5
  import "../shared/platform-bundle-plugin.mjs";
6
+ import "../shared/sdk-builder-pure-plugin.mjs";
6
7
  import "../shared/start-context.mjs";
7
8
  import "rolldown";
@@ -0,0 +1 @@
1
+ import "rolldown";
@@ -1,5 +1,5 @@
1
1
  # politty-completion-version: 1
2
- # politty-bin-sig: 1793014971
2
+ # politty-bin-sig: 1793177272
3
3
  # politty-bin-path: /home/runner/work/sdk/sdk/node_modules/.bin/tailor
4
4
  # program: tailor
5
5
  # shell: zsh
@@ -3502,9 +3502,9 @@ __tailor_worker_complete_tailordb_migration_generate() {
3502
3502
  __tailor_worker_not_used "--yes" "-y" "--y" && _opts+=("--yes:Skip confirmation prompts")
3503
3503
  __tailor_worker_not_used "--config" "-c" "--c" && _opts+=("--config:Path to Tailor config file")
3504
3504
  __tailor_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Optional description for the migration")
3505
- __tailor_worker_not_used "--init" && _opts+=("--init:Delete existing migrations and start fresh")
3505
+ __tailor_worker_not_used "--init" && _opts+=("--init:Delete existing migrations and start fresh (all namespaces with migrations configured, or only the one given by --namespace)")
3506
3506
  __tailor_worker_not_used "--data-only" "--dataOnly" && _opts+=("--data-only:Create a migration with no schema changes whose migration script runs a standalone data transformation")
3507
- __tailor_worker_not_used "--namespace" && _opts+=("--namespace:Target TailorDB namespace for --data-only (required if multiple namespaces exist)")
3507
+ __tailor_worker_not_used "--namespace" && _opts+=("--namespace:Target TailorDB namespace for --data-only (required if multiple namespaces exist), or the only namespace --init resets")
3508
3508
  _opts+=("--rename:Record a field, table, or nested member rename instead of remove + add (format\: \"Table.oldField\:newField\", \"OldTable\:NewTable\", or \"Table.field.oldMember\:newMember\"; repeatable). Renames require a migration script that copies the data.")
3509
3509
  _opts+=("--drop:Confirm that a removed field, table, or nested member is a genuine removal, not a rename (format\: \"Table.field\", \"Table\", or \"Table.field.member\"; repeatable). Required in non-interactive runs for a removal with rename candidates.")
3510
3510
  _opts+=("--expand-contract:Convert a field type, or a single value into an array, through a temporary field (format\: \"Table.field\"; repeatable). Generates two migrations.")
@@ -3994,7 +3994,7 @@ __tailor_worker_complete_tailordb_migration() {
3994
3994
  __tailor_worker_cdescribe 'options' _opts
3995
3995
  return 0
3996
3996
  fi
3997
- local -a _subs=("generate:Generate migration files by detecting schema differences between current local tables and the previous migration snapshot." "rebaseline:Collapse the full migration history into a new 0000 baseline." "resolve:Settle a migration that a failed deploy left partially applied." "script:Add a migration script (migrate.ts) template to an existing migration directory, or record with --no-script that a migration intentionally has none." "set:Set migration checkpoint to a specific number." "status:Show the current migration status for TailorDB namespaces, including applied and pending migrations." "sync:Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift)." "test:Test pending migrations with seed fixtures or cloned data in a temporary workspace." "validate:Validate the full migration history, unreviewed generated migration scripts, and schema drift (local tables vs. migration snapshot, remote schema vs. migration checkpoint) without deploying. This includes the migration and schema-drift checks used by 'deploy' and exits with a non-zero code when issues are found.")
3997
+ local -a _subs=("generate:Generate migration files by detecting schema differences between current local tables and the previous migration snapshot." "rebaseline:Collapse the full migration history into a new 0000 baseline." "resolve:Settle a migration that a failed deploy left partially applied, or whose run a deploy could not confirm." "script:Add a migration script (migrate.ts) template to an existing migration directory, or record with --no-script that a migration intentionally has none." "set:Set migration checkpoint to a specific number." "status:Show the current migration status for TailorDB namespaces, including applied and pending migrations." "sync:Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift)." "test:Test pending migrations with seed fixtures or cloned data in a temporary workspace." "validate:Validate the full migration history, unreviewed generated migration scripts, and schema drift (local tables vs. migration snapshot, remote schema vs. migration checkpoint) without deploying. This includes the migration and schema-drift checks used by 'deploy' and exits with a non-zero code when issues are found.")
3998
3998
  __tailor_worker_cdescribe 'subcommands' _subs
3999
3999
  }
4000
4000