@tailor-platform/sdk 2.33.0 → 2.34.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 +58 -0
- package/dist/ai/index.d.mts +1 -3
- package/dist/{application-Bet1K5C4.mjs → application-CwpOIOTt.mjs} +1 -1
- package/dist/application-Nce5z46R.mjs +207 -0
- package/dist/application-Nce5z46R.mjs.map +1 -0
- package/dist/cli/cache/bundle-cache.d.mts +1 -0
- package/dist/cli/commands/api/api-call.d.mts +1 -3
- package/dist/cli/commands/deploy/aigateway.d.mts +1 -0
- package/dist/cli/commands/deploy/app-id-lock.d.mts +1 -3
- package/dist/cli/commands/deploy/application.d.mts +1 -0
- package/dist/cli/commands/deploy/auth.d.mts +1 -0
- package/dist/cli/commands/deploy/config-id-injector.d.mts +1 -3
- package/dist/cli/commands/deploy/confirm.d.mts +1 -0
- package/dist/cli/commands/deploy/deploy.d.mts +4 -3
- package/dist/cli/commands/deploy/executor.d.mts +1 -0
- package/dist/cli/commands/deploy/function-registry-types.d.mts +1 -3
- package/dist/cli/commands/deploy/function-registry.d.mts +1 -0
- package/dist/cli/commands/deploy/idp.d.mts +1 -0
- package/dist/cli/commands/deploy/owned-resource.d.mts +3 -0
- package/dist/cli/commands/deploy/resolver.d.mts +1 -0
- package/dist/cli/commands/deploy/secret-manager.d.mts +1 -0
- package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
- package/dist/cli/commands/deploy/tailordb/plan.d.mts +1 -0
- package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +2 -1
- package/dist/cli/commands/deploy/workflow.d.mts +1 -0
- package/dist/cli/commands/executor/get.d.mts +0 -2
- package/dist/cli/commands/executor/jobs.d.mts +0 -2
- package/dist/cli/commands/executor/list.d.mts +1 -3
- package/dist/cli/commands/executor/transform.d.mts +1 -3
- package/dist/cli/commands/executor/trigger.d.mts +0 -2
- package/dist/cli/commands/executor/webhook.d.mts +1 -3
- package/dist/cli/commands/function/get.d.mts +0 -2
- package/dist/cli/commands/function/list.d.mts +0 -2
- package/dist/cli/commands/function/transform.d.mts +1 -3
- package/dist/cli/commands/generate/options.d.mts +1 -3
- package/dist/cli/commands/generate/seed/bundler.d.mts +1 -3
- package/dist/cli/commands/generate/service.d.mts +1 -3
- package/dist/cli/commands/machineuser/list.d.mts +1 -3
- package/dist/cli/commands/machineuser/token.d.mts +1 -3
- package/dist/cli/commands/oauth2client/get.d.mts +1 -3
- package/dist/cli/commands/oauth2client/list.d.mts +1 -3
- package/dist/cli/commands/oauth2client/transform.d.mts +1 -3
- package/dist/cli/commands/organization/folder/create.d.mts +0 -2
- package/dist/cli/commands/organization/folder/delete.d.mts +0 -2
- package/dist/cli/commands/organization/folder/get.d.mts +0 -2
- package/dist/cli/commands/organization/folder/list.d.mts +0 -2
- package/dist/cli/commands/organization/folder/update.d.mts +0 -2
- package/dist/cli/commands/organization/get.d.mts +0 -2
- package/dist/cli/commands/organization/list.d.mts +1 -3
- package/dist/cli/commands/organization/transform.d.mts +1 -3
- package/dist/cli/commands/organization/tree.d.mts +0 -2
- package/dist/cli/commands/organization/update.d.mts +0 -2
- package/dist/cli/commands/remove.d.mts +1 -3
- package/dist/cli/commands/show.d.mts +0 -2
- package/dist/cli/commands/staticwebsite/deploy.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/bundler.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/config.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -2
- package/dist/cli/commands/tailordb/migrate/generate.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/rename-detection.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +0 -2
- package/dist/cli/commands/tailordb/migrate/types.d.mts +1 -3
- package/dist/cli/commands/tailordb/truncate.d.mts +1 -3
- package/dist/cli/commands/workflow/executions.d.mts +0 -2
- package/dist/cli/commands/workflow/get.d.mts +0 -2
- package/dist/cli/commands/workflow/list.d.mts +1 -3
- package/dist/cli/commands/workflow/resume.d.mts +1 -3
- package/dist/cli/commands/workflow/start.d.mts +0 -2
- package/dist/cli/commands/workflow/status.d.mts +1 -3
- package/dist/cli/commands/workflow/transform.d.mts +1 -3
- package/dist/cli/commands/workflow/wait.d.mts +1 -3
- package/dist/cli/commands/workflow/waiter.d.mts +1 -3
- package/dist/cli/commands/workspace/app/health.d.mts +0 -2
- package/dist/cli/commands/workspace/app/list.d.mts +0 -2
- package/dist/cli/commands/workspace/app/transform.d.mts +1 -3
- package/dist/cli/commands/workspace/create.d.mts +0 -2
- package/dist/cli/commands/workspace/delete.d.mts +0 -2
- package/dist/cli/commands/workspace/expiry.d.mts +1 -3
- package/dist/cli/commands/workspace/get.d.mts +0 -2
- package/dist/cli/commands/workspace/list.d.mts +1 -3
- package/dist/cli/commands/workspace/restore.d.mts +0 -2
- package/dist/cli/commands/workspace/transform.d.mts +1 -3
- package/dist/cli/commands/workspace/user/invite.d.mts +0 -2
- package/dist/cli/commands/workspace/user/list.d.mts +0 -2
- package/dist/cli/commands/workspace/user/remove.d.mts +0 -2
- package/dist/cli/commands/workspace/user/transform.d.mts +1 -3
- package/dist/cli/commands/workspace/user/update.d.mts +0 -2
- package/dist/cli/lib.d.mts +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.d.mts +1 -3
- package/dist/cli/main.mjs +55 -51
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/query/index.d.mts +0 -2
- package/dist/cli/services/application.d.mts +5 -4
- package/dist/cli/services/executor/service.d.mts +2 -2
- package/dist/cli/services/function-bundle.d.mts +7 -0
- package/dist/cli/services/http-adapter/bundler.d.mts +7 -1
- package/dist/cli/services/resolver/service.d.mts +2 -2
- package/dist/cli/services/workflow/bundler.d.mts +2 -3
- package/dist/cli/shared/args.d.mts +0 -2
- package/dist/cli/shared/beta.d.mts +1 -3
- package/dist/cli/shared/client.d.mts +4 -3
- package/dist/cli/shared/command.d.mts +2 -4
- package/dist/cli/shared/config-loader.d.mts +2 -4
- package/dist/cli/shared/config.d.mts +1 -3
- package/dist/cli/shared/context.d.mts +0 -2
- package/dist/cli/shared/error-diagnostics.d.mts +1 -3
- package/dist/cli/shared/error-json.d.mts +1 -3
- package/dist/cli/shared/function-execution.d.mts +1 -3
- package/dist/cli/shared/github-actions.d.mts +1 -3
- package/dist/cli/shared/logger.d.mts +7 -4
- package/dist/cli/shared/platform-bundle-plugin.d.mts +1 -0
- package/dist/cli/shared/prompt.d.mts +1 -3
- package/dist/cli/shared/readonly-guard.d.mts +0 -2
- package/dist/cli/shared/script-executor.d.mts +1 -3
- package/dist/cli/shared/seed-chunker.d.mts +1 -3
- package/dist/cli/shared/seed-context.d.mts +0 -2
- package/dist/cli/shared/sourcemap-sources.d.mts +1 -0
- package/dist/cli/shared/tailordb-namespaces.d.mts +1 -3
- package/dist/cli/shared/type-generator.d.mts +0 -2
- package/dist/cli/shared/workspace-name.d.mts +1 -3
- package/dist/completion/zsh-worker.zsh +2 -2
- package/dist/configure/config/index.d.mts +2 -4
- package/dist/configure/config/types.d.mts +27 -4
- package/dist/configure/index.d.mts +7 -9
- package/dist/configure/index.mjs +1 -1
- package/dist/configure/services/aigateway/index.d.mts +0 -2
- package/dist/configure/services/aigateway/types.d.mts +0 -2
- package/dist/configure/services/auth/index.d.mts +0 -2
- package/dist/configure/services/auth/types.d.mts +0 -2
- package/dist/configure/services/executor/executor.d.mts +0 -2
- package/dist/configure/services/executor/operation.d.mts +0 -2
- package/dist/configure/services/executor/trigger/event.d.mts +0 -2
- package/dist/configure/services/executor/trigger/index.d.mts +0 -2
- package/dist/configure/services/executor/trigger/schedule.d.mts +0 -2
- package/dist/configure/services/executor/trigger/webhook.d.mts +1 -3
- package/dist/configure/services/http-adapter/http-adapter.d.mts +0 -2
- package/dist/configure/services/idp/index.d.mts +0 -2
- package/dist/configure/services/idp/permission.d.mts +0 -2
- package/dist/configure/services/idp/types.d.mts +0 -2
- package/dist/configure/services/index.d.mts +5 -5
- package/dist/configure/services/resolver/index.d.mts +1 -1
- package/dist/configure/services/resolver/permission.d.mts +0 -2
- package/dist/configure/services/resolver/resolver.d.mts +1 -3
- package/dist/configure/services/resolver/types.d.mts +1 -3
- package/dist/configure/services/secrets/index.d.mts +0 -2
- package/dist/configure/services/secrets/types.d.mts +0 -2
- package/dist/configure/services/staticwebsite/index.d.mts +0 -2
- package/dist/configure/services/staticwebsite/types.d.mts +0 -2
- package/dist/configure/services/tailordb/permission.d.mts +0 -2
- package/dist/configure/services/tailordb/schema.d.mts +0 -2
- package/dist/configure/services/tailordb/types.d.mts +0 -2
- package/dist/configure/services/workflow/execution-policy.d.mts +0 -2
- package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -2
- package/dist/configure/services/workflow/job.d.mts +0 -2
- package/dist/configure/services/workflow/wait-point.d.mts +0 -2
- package/dist/configure/services/workflow/workflow.d.mts +0 -2
- package/dist/configure/types/aigateway-name.d.mts +1 -3
- package/dist/configure/types/auth-namespace-name.d.mts +1 -3
- package/dist/configure/types/connection-name.d.mts +1 -3
- package/dist/configure/types/field.d.mts +1 -3
- package/dist/configure/types/field.types.d.mts +0 -2
- package/dist/configure/types/idp-name.d.mts +1 -3
- package/dist/configure/types/permission-operand.types.d.mts +0 -2
- package/dist/configure/types/secret-vault-name.d.mts +1 -3
- package/dist/configure/types/type.d.mts +0 -2
- package/dist/{crashreport-BCIy33Cz.mjs → crashreport-DGU6lwiX.mjs} +2 -2
- package/dist/{crashreport-BCIy33Cz.mjs.map → crashreport-DGU6lwiX.mjs.map} +1 -1
- package/dist/crashreport-WsYAWARW.mjs +1 -0
- package/dist/{logger-RgtbhJ83.mjs → errors-BXmGBX-7.mjs} +6 -3
- package/dist/errors-BXmGBX-7.mjs.map +1 -0
- package/dist/field-parse-BQhUAbpM.mjs +2 -0
- package/dist/{field-parse-C41e3UAF.mjs.map → field-parse-BQhUAbpM.mjs.map} +1 -1
- package/dist/guards-CiFVxoXR.mjs +2 -0
- package/dist/guards-CiFVxoXR.mjs.map +1 -0
- package/dist/kysely/index.d.mts +0 -2
- package/dist/manager-B813m43t.mjs +2 -0
- package/dist/manager-B813m43t.mjs.map +1 -0
- package/dist/parser/service/idp/types.d.mts +1 -3
- package/dist/parser/service/tailordb/type-source.d.mts +1 -3
- package/dist/parser/service/tailordb/types.d.mts +0 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +0 -2
- package/dist/plugin/builtin/file-utils/index.d.mts +0 -2
- package/dist/plugin/builtin/kysely-type/index.d.mts +0 -2
- package/dist/plugin/builtin/seed/index.d.mts +0 -2
- package/dist/plugin/builtin/seed/seed-type-processor.d.mts +1 -3
- package/dist/plugin/get-generated-table.d.mts +1 -3
- package/dist/plugin/index.mjs +1 -1
- package/dist/plugin/types.d.mts +0 -2
- package/dist/plugin/with-context.d.mts +1 -3
- package/dist/register-ts-hook-CtWJL3EO.mjs +1054 -0
- package/dist/register-ts-hook-CtWJL3EO.mjs.map +1 -0
- package/dist/runtime/aigateway.d.mts +1 -3
- package/dist/runtime/authconnection.d.mts +1 -3
- package/dist/runtime/context.d.mts +0 -2
- package/dist/runtime/date.d.mts +0 -2
- package/dist/runtime/field-parse.d.mts +0 -2
- package/dist/runtime/file.d.mts +0 -2
- package/dist/runtime/globals.d.mts +0 -2
- package/dist/runtime/iconv.d.mts +1 -3
- package/dist/runtime/idp.d.mts +1 -3
- package/dist/runtime/index.d.mts +1 -3
- package/dist/runtime/index.mjs +1 -1
- package/dist/runtime/logger.d.mts +1 -3
- package/dist/runtime/secretmanager.d.mts +1 -3
- package/dist/runtime/temporal.d.mts +0 -2
- package/dist/runtime/types.d.mts +0 -2
- package/dist/runtime/workflow.d.mts +0 -2
- package/dist/{schema-B6hJQWp6.mjs → schema-BU1aIQ63.mjs} +2 -2
- package/dist/{schema-B6hJQWp6.mjs.map → schema-BU1aIQ63.mjs.map} +1 -1
- package/dist/secret-file-BxZ-J_Nz.mjs +2 -0
- package/dist/secret-file-BxZ-J_Nz.mjs.map +1 -0
- package/dist/seed/idp-user-password.d.mts +0 -2
- package/dist/seed/index.d.mts +0 -2
- package/dist/service-CaGmqg0r.mjs +2 -0
- package/dist/{service-9rwi_I4d.mjs.map → service-CaGmqg0r.mjs.map} +1 -1
- package/dist/service-DEq_hdht.mjs +1 -0
- package/dist/{service-9SBPNpK8.mjs → service-eeXdVrDK.mjs} +4 -4
- package/dist/service-eeXdVrDK.mjs.map +1 -0
- package/dist/shared/src/color.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/security_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +1 -3
- package/dist/types/aigateway.generated.d.mts +1 -3
- package/dist/types/app-config.generated.d.mts +1 -3
- package/dist/types/auth-connection.generated.d.mts +1 -3
- package/dist/types/auth.generated.d.mts +1 -3
- package/dist/types/executor.generated.d.mts +1 -3
- package/dist/types/field.generated.d.mts +1 -3
- package/dist/types/helpers.d.mts +1 -3
- package/dist/types/http-adapter.generated.d.mts +1 -3
- package/dist/types/idp.generated.d.mts +1 -3
- package/dist/types/resolver.generated.d.mts +1 -3
- package/dist/types/secrets.generated.d.mts +1 -3
- package/dist/types/staticwebsite.generated.d.mts +1 -3
- package/dist/types/tailordb.generated.d.mts +1 -3
- package/dist/types/workflow.generated.d.mts +1 -3
- package/dist/utils/test/index.d.mts +1 -3
- package/dist/utils/test/index.mjs +1 -1
- package/dist/vitest/date-representation.d.mts +1 -3
- package/dist/vitest/environment.d.mts +0 -2
- package/dist/vitest/index.d.mts +0 -2
- package/dist/vitest/migration-steps.d.mts +1 -3
- package/dist/vitest/mock-kysely.d.mts +0 -2
- package/dist/vitest/mocks/aigateway.d.mts +0 -2
- package/dist/vitest/mocks/authconnection.d.mts +0 -2
- package/dist/vitest/mocks/file.d.mts +0 -2
- package/dist/vitest/mocks/iconv.d.mts +0 -2
- package/dist/vitest/mocks/idp.d.mts +0 -2
- package/dist/vitest/mocks/logger.d.mts +0 -2
- package/dist/vitest/mocks/secretmanager.d.mts +0 -2
- package/dist/vitest/mocks/tailordb-pglite.d.mts +0 -2
- package/dist/vitest/mocks/tailordb.d.mts +0 -2
- package/dist/vitest/mocks/workflow.d.mts +0 -2
- package/dist/vitest/pglite-kysely.d.mts +0 -2
- package/dist/vitest/pglite-temporal.d.mts +1 -3
- package/dist/vitest/setup.d.mts +0 -2
- package/dist/vitest/workflow-local.d.mts +0 -2
- package/docs/cli/application.md +2 -1
- package/docs/cli/tailordb.md +1 -1
- package/docs/cli/user.md +5 -5
- package/docs/cli/workspace.md +1 -1
- package/docs/cli-reference.md +26 -25
- package/docs/configuration.md +13 -2
- package/docs/github-actions.md +33 -10
- package/docs/services/secret.md +6 -0
- package/docs/services/tailordb/index.md +19 -0
- package/docs/services/tailordb/migration.md +2 -2
- package/docs/testing.md +2 -2
- package/package.json +12 -12
- package/dist/application-B9_NHiUC.mjs +0 -207
- package/dist/application-B9_NHiUC.mjs.map +0 -1
- package/dist/crashreport-IN6H7GX3.mjs +0 -1
- package/dist/errors-BOF68LJ5.mjs +0 -5
- package/dist/errors-BOF68LJ5.mjs.map +0 -1
- package/dist/field-parse-C41e3UAF.mjs +0 -2
- package/dist/guards-yDXyKC9F.mjs +0 -2
- package/dist/guards-yDXyKC9F.mjs.map +0 -1
- package/dist/logger-RgtbhJ83.mjs.map +0 -1
- package/dist/manager-DTRhIupk.mjs +0 -2
- package/dist/manager-DTRhIupk.mjs.map +0 -1
- package/dist/register-ts-hook-Dp9reSRG.mjs +0 -1053
- package/dist/register-ts-hook-Dp9reSRG.mjs.map +0 -1
- package/dist/secret-file-C9wp_FCX.mjs +0 -2
- package/dist/secret-file-C9wp_FCX.mjs.map +0 -1
- package/dist/service-9SBPNpK8.mjs.map +0 -1
- package/dist/service-9rwi_I4d.mjs +0 -2
- package/dist/service-Ca1WwyIt.mjs +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types/staticwebsite.generated.d.ts
|
|
2
1
|
export type StaticWebsite = {
|
|
3
2
|
/** Static website name */
|
|
4
3
|
name: string;
|
|
@@ -17,5 +16,4 @@ export type StaticWebsite = {
|
|
|
17
16
|
};
|
|
18
17
|
})[] | undefined;
|
|
19
18
|
};
|
|
20
|
-
export type StaticWebsiteInput = StaticWebsite;
|
|
21
|
-
//#endregion
|
|
19
|
+
export type StaticWebsiteInput = StaticWebsite;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types/tailordb.generated.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Configuration for GraphQL operations on a TailorDB table.
|
|
4
3
|
* All operations are enabled by default (undefined or true = enabled, false = disabled).
|
|
@@ -465,5 +464,4 @@ export type TailorDBServiceConfigInput = {
|
|
|
465
464
|
/** Enable read queries - get, list, aggregation (default: true) */
|
|
466
465
|
read?: boolean | undefined;
|
|
467
466
|
} | undefined;
|
|
468
|
-
};
|
|
469
|
-
//#endregion
|
|
467
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types/workflow.generated.d.ts
|
|
2
1
|
export type RetryPolicy = {
|
|
3
2
|
/** Maximum number of retries (1-10) */
|
|
4
3
|
maxRetries: number;
|
|
@@ -12,5 +11,4 @@ export type RetryPolicy = {
|
|
|
12
11
|
export type ConcurrencyPolicy = {
|
|
13
12
|
/** Maximum number of concurrent executions (1-1000) */
|
|
14
13
|
maxConcurrentExecutions: number;
|
|
15
|
-
};
|
|
16
|
-
//#endregion
|
|
14
|
+
};
|
|
@@ -2,7 +2,6 @@ import { TailorDBType } from "../../configure/services/tailordb/schema.mjs";
|
|
|
2
2
|
import { TailorField } from "../../configure/types/type.mjs";
|
|
3
3
|
import { output } from "../../configure/index.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
|
-
//#region src/utils/test/index.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Creates a hook function that processes TailorDB table fields
|
|
8
7
|
* - Uses existing id from data if provided, otherwise generates UUID for id fields
|
|
@@ -37,5 +36,4 @@ export declare function createStandardSchema<T = Record<string, unknown>>(schema
|
|
|
37
36
|
readonly vendor: "@tailor-platform/sdk";
|
|
38
37
|
readonly validate: (value: unknown) => StandardSchemaV1.Result<T>;
|
|
39
38
|
};
|
|
40
|
-
};
|
|
41
|
-
//#endregion
|
|
39
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"../../field-parse-
|
|
1
|
+
import{t as e}from"../../field-parse-BQhUAbpM.mjs";function setField(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0,configurable:!0})}function createTailorDBHook(t){return(n,r=/* @__PURE__ */ new Date)=>{let i=n&&typeof n==`object`?n:void 0,a=Object.entries(t.fields).reduce((t,[n,a])=>{let o=a,s=i&&Object.hasOwn(i,n)?i[n]:void 0,c;if(n===`id`)c=s??crypto.randomUUID();else if(o.type===`nested`){let t=createTailorDBHook({fields:o.fields});c=o.metadata.array?Array.isArray(s)?s.map(n=>e(n)?t(n,r):n):s:e(s)?t(s,r):s}else o.metadata.hooks?.create?(c=o.metadata.hooks.create({input:s,invoker:null,now:r}),c instanceof Date&&(c=c.toISOString())):c=s;if(c==null&&o.metadata.default!==void 0){let e=o.type===`datetime`||o.type===`date`||o.type===`time`;c=o.metadata.default===`now`&&e?r.toISOString():o.metadata.default}return setField(t,n,c),t},{});if(t.metadata?.typeHook?.create){let{id:e,...n}=a,i=t.metadata.typeHook.create({input:n,invoker:null,now:r});if(i&&typeof i==`object`)for(let[e,t]of Object.entries(i))setField(a,e,t instanceof Date?t.toISOString():t)}return a}}function typeLevelIssues(e,t){let n=e?.metadata?.typeValidate;if(!n)return[];let{id:r,...i}=t,a=[];return n({newRecord:i,oldRecord:null,invoker:null},(e,t)=>{a.push({message:t,path:[e]})}),a}function undeclaredFieldMessage(e){return`Field "${e}" is not declared by the table. Remove it from the row, or add it to the table definition and run \`tailor generate\`.`}function isRecord(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function collectUndeclaredFieldIssues(e,t,n,r){if(isRecord(e))for(let i of Object.keys(e)){if(!Object.hasOwn(t,i)){r.push({message:undeclaredFieldMessage(i),path:n.concat(i)});continue}let a=t[i];if(a?.type!==`nested`)continue;let o=e[i],s=a.fields;a.metadata.array?Array.isArray(o)&&o.forEach((e,t)=>{collectUndeclaredFieldIssues(e,s,n.concat(i,`[${t}]`),r)}):collectUndeclaredFieldIssues(o,s,n.concat(i),r)}}function createStandardSchema(e,t,n){let validateHooked=t=>{let r=typeLevelIssues(n,t);if(r.length>0)return{issues:r};let i=e.parse({value:t,data:t,invoker:null});return i.issues?i:{value:t}};return{"~standard":{version:1,vendor:`@tailor-platform/sdk`,validate:e=>{let r=t(e),i=[];n&&collectUndeclaredFieldIssues(e,n.fields,[],i);let a=validateHooked(r),o=[...i,...a.issues??[]];return o.length>0?{issues:o}:a}}}}export{createStandardSchema,createTailorDBHook};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DateRepresentationOption } from "../configure/types/field.types.mjs";
|
|
2
2
|
import { EffectiveDateDefault } from "../runtime/types.mjs";
|
|
3
|
-
//#region src/vitest/date-representation.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Expose the date default to `t` date fields in this worker, the way the
|
|
6
5
|
* define plugin folds it into deployed bundles.
|
|
@@ -19,5 +18,4 @@ export declare function applyDateDefault(dateDefault: EffectiveDateDefault): ()
|
|
|
19
18
|
* @param representation - The representation to apply, as `as` names it
|
|
20
19
|
* @returns A function that restores the previous representation
|
|
21
20
|
*/
|
|
22
|
-
export declare function applyDateRepresentation(representation: DateRepresentationOption): () => void;
|
|
23
|
-
//#endregion
|
|
21
|
+
export declare function applyDateRepresentation(representation: DateRepresentationOption): () => void;
|
package/dist/vitest/index.d.mts
CHANGED
|
@@ -16,7 +16,6 @@ import { applyDateRepresentation } from "./date-representation.mjs";
|
|
|
16
16
|
import { ExecutedQuery, KyselyMock, createKyselyMock } from "./mock-kysely.mjs";
|
|
17
17
|
import { MigrationStepError, RunMigrationStepsOptions, RunnableMigrationStep, runMigrationSteps } from "./migration-steps.mjs";
|
|
18
18
|
import { Plugin } from "vitest/config";
|
|
19
|
-
//#region src/vitest/index.d.ts
|
|
20
19
|
/**
|
|
21
20
|
* Creates Vitest plugins that emulate the Tailor Platform function runtime environment.
|
|
22
21
|
*
|
|
@@ -74,5 +73,4 @@ import { Plugin } from "vitest/config";
|
|
|
74
73
|
export declare function tailorRuntime(options?: {
|
|
75
74
|
config?: string;
|
|
76
75
|
}): Plugin[];
|
|
77
|
-
//#endregion
|
|
78
76
|
export { type CreateKyselyPGliteOptions, type ExecutedPGliteQuery, type ExecutedQuery, type KyselyMock, MigrationStepError, type MockAigatewayOptions, type MockAuthconnectionOptions, type MockFileOptions, type MockIconvOptions, type MockIdpOptions, type MockLoggerOptions, type MockSecretmanagerOptions, type MockTailordbOptions, type MockTailordbPGliteOptions, type PGliteClient, type PGliteField, type PGliteQueryResult, type QueryBehavior, type QueryMatch, type QueryMatcher, type RunMigrationStepsOptions, type RunWorkflowLocallyOptions, type RunnableMigrationStep, type Unmigrated, applyDateRepresentation, createKyselyMock, createKyselyPGlite, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockLogger, mockSecretmanager, mockTailordb, mockTailordbWithPGlite, mockWorkflow, prepareFixtures, runMigrationSteps, runWorkflowLocally };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/vitest/migration-steps.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Run a multi-step migration script's `steps` in tests the way `tailor deploy`
|
|
4
3
|
* does: in dependency order, each step in its own transaction.
|
|
@@ -41,5 +40,4 @@ export declare class MigrationStepError extends Error {
|
|
|
41
40
|
*/
|
|
42
41
|
export declare function runMigrationSteps<Trx, Context extends {
|
|
43
42
|
env: unknown;
|
|
44
|
-
}>(steps: Readonly<Record<string, RunnableMigrationStep<Trx, Context>>>, options: RunMigrationStepsOptions<Trx, Context>): Promise<string[]>;
|
|
45
|
-
//#endregion
|
|
43
|
+
}>(steps: Readonly<Record<string, RunnableMigrationStep<Trx, Context>>>, options: RunMigrationStepsOptions<Trx, Context>): Promise<string[]>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Kysely, OperationNode, OperationNodeKind, Transaction } from "kysely";
|
|
2
|
-
//#region src/vitest/mock-kysely.d.ts
|
|
3
2
|
/** A single statement executed against the mock, captured in order. */
|
|
4
3
|
export interface ExecutedQuery {
|
|
5
4
|
/** The Kysely operation node kind, e.g. `"SelectQueryNode"`. */
|
|
@@ -57,5 +56,4 @@ export interface KyselyMock<DB> {
|
|
|
57
56
|
* @returns A {@link KyselyMock} with the mock `db`, recorded queries, and result staging.
|
|
58
57
|
*/
|
|
59
58
|
export declare function createKyselyMock<DB = Record<string, never>>(): KyselyMock<DB>;
|
|
60
|
-
//#endregion
|
|
61
59
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AIGatewayName } from "@tailor-platform/sdk";
|
|
2
|
-
//#region src/vitest/mocks/aigateway.d.ts
|
|
3
2
|
interface AigatewayCall {
|
|
4
3
|
name: AIGatewayName;
|
|
5
4
|
}
|
|
@@ -36,5 +35,4 @@ export declare function mockAigateway(options?: MockAigatewayOptions): {
|
|
|
36
35
|
clear(): void;
|
|
37
36
|
reset(): void;
|
|
38
37
|
} & Disposable;
|
|
39
|
-
//#endregion
|
|
40
38
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AuthConnectionTokenResult, ConnectionName } from "@tailor-platform/sdk";
|
|
2
|
-
//#region src/vitest/mocks/authconnection.d.ts
|
|
3
2
|
interface AuthConnectionCall {
|
|
4
3
|
connectionName: ConnectionName;
|
|
5
4
|
}
|
|
@@ -34,5 +33,4 @@ export declare function mockAuthconnection(options?: MockAuthconnectionOptions):
|
|
|
34
33
|
clear(): void;
|
|
35
34
|
reset(): void;
|
|
36
35
|
} & Disposable;
|
|
37
|
-
//#endregion
|
|
38
36
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FileDownloadAsBase64Response, FileDownloadResponse, FileDownloadStreamResponse, FileMetadata, FileUploadBytes, FileUploadOptions, FileUploadResponse, FileUploadStreamOptions } from "../../runtime/file.mjs";
|
|
2
2
|
import { Mock } from "vitest";
|
|
3
|
-
//#region src/vitest/mocks/file.d.ts
|
|
4
3
|
type FileResolver = (method: string, call: FileCall) => unknown;
|
|
5
4
|
interface FileCall {
|
|
6
5
|
method: string;
|
|
@@ -54,5 +53,4 @@ export declare function mockFile(options?: MockFileOptions): {
|
|
|
54
53
|
uploadStream: Mock<(namespace: string, tableName: string, fieldName: string, recordId: string, readableStream: ReadableStream<Uint8Array | ArrayBuffer>, options?: FileUploadStreamOptions) => Promise<FileUploadResponse>>;
|
|
55
54
|
upload: Mock<(namespace: string, tableName: string, fieldName: string, recordId: string, data: string | FileUploadBytes, options?: Omit<FileUploadOptions, "encoding">) => Promise<FileUploadResponse>>;
|
|
56
55
|
} & Disposable;
|
|
57
|
-
//#endregion
|
|
58
56
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MockInstance } from "vitest";
|
|
2
|
-
//#region src/vitest/mocks/iconv.d.ts
|
|
3
2
|
type IconvResolver = (method: string, args: unknown[]) => unknown;
|
|
4
3
|
type IconvMethod = "convert" | "convertBuffer" | "decode" | "encode" | "encodings";
|
|
5
4
|
interface IconvCall {
|
|
@@ -47,5 +46,4 @@ export declare function mockIconv(options?: MockIconvOptions): {
|
|
|
47
46
|
clear: () => void;
|
|
48
47
|
reset(): void;
|
|
49
48
|
} & Disposable;
|
|
50
|
-
//#endregion
|
|
51
49
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IdpClientConstructor, IdpClientInstance } from "../../runtime/idp.mjs";
|
|
2
2
|
import { Mock } from "vitest";
|
|
3
|
-
//#region src/vitest/mocks/idp.d.ts
|
|
4
3
|
type IdpMethod = keyof IdpClientInstance;
|
|
5
4
|
type IdpResolver = (method: string, args: unknown[], namespace: string) => unknown;
|
|
6
5
|
interface IdpCall {
|
|
@@ -57,5 +56,4 @@ export declare function mockIdp(options?: MockIdpOptions): {
|
|
|
57
56
|
clear(): void;
|
|
58
57
|
reset(): void;
|
|
59
58
|
} & Disposable;
|
|
60
|
-
//#endregion
|
|
61
59
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LogAttributes } from "../../runtime/logger.mjs";
|
|
2
|
-
//#region src/vitest/mocks/logger.d.ts
|
|
3
2
|
type LogSeverity = "debug" | "info" | "warn" | "error";
|
|
4
3
|
/** A recorded `debug`/`info`/`warn`/`error` call. */
|
|
5
4
|
interface LogCall {
|
|
@@ -41,5 +40,4 @@ export declare function mockLogger(_options?: MockLoggerOptions): {
|
|
|
41
40
|
clear(): void;
|
|
42
41
|
reset(): void;
|
|
43
42
|
} & Disposable;
|
|
44
|
-
//#endregion
|
|
45
43
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/vitest/mocks/secretmanager.d.ts
|
|
2
1
|
interface SecretCall {
|
|
3
2
|
method: "getSecret" | "getSecrets";
|
|
4
3
|
vault: string;
|
|
@@ -40,5 +39,4 @@ export declare function mockSecretmanager(options?: MockSecretmanagerOptions): {
|
|
|
40
39
|
clear(): void;
|
|
41
40
|
reset(): void;
|
|
42
41
|
} & Disposable;
|
|
43
|
-
//#endregion
|
|
44
42
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PGliteClient } from "../pglite-kysely.mjs";
|
|
2
|
-
//#region src/vitest/mocks/tailordb-pglite.d.ts
|
|
3
2
|
/** A query executed through the PGlite-backed TailorDB client. */
|
|
4
3
|
export interface ExecutedPGliteQuery {
|
|
5
4
|
/** Namespace of the `getDB` call that issued the query. */
|
|
@@ -86,5 +85,4 @@ export declare function mockTailordbWithPGlite(options: MockTailordbPGliteOption
|
|
|
86
85
|
*/
|
|
87
86
|
reset(): void;
|
|
88
87
|
} & Disposable;
|
|
89
|
-
//#endregion
|
|
90
88
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/vitest/mocks/tailordb.d.ts
|
|
2
1
|
type QueryResolver = (query: string, params: unknown[]) => unknown[] | undefined;
|
|
3
2
|
/** Controls how unmatched TailorDB queries are handled. */
|
|
4
3
|
export interface MockTailordbOptions {
|
|
@@ -111,5 +110,4 @@ export declare function mockTailordb(options?: MockTailordbOptions): {
|
|
|
111
110
|
/** Reset query responses and recorded calls (keeps the mock installed). */
|
|
112
111
|
reset(): void;
|
|
113
112
|
} & Disposable;
|
|
114
|
-
//#endregion
|
|
115
113
|
export {};
|
|
@@ -4,7 +4,6 @@ import { WorkflowJob } from "../../configure/services/workflow/job.mjs";
|
|
|
4
4
|
import { Workflow } from "../../configure/services/workflow/workflow.mjs";
|
|
5
5
|
import { ParameterizedWaitPointInstance, WaitPointInstance } from "../../configure/services/workflow/wait-point.mjs";
|
|
6
6
|
import { Mock } from "vitest";
|
|
7
|
-
//#region src/vitest/mocks/workflow.d.ts
|
|
8
7
|
type JobHandler = (jobName: string, args: unknown, options?: ExecJobFunctionOptions) => unknown;
|
|
9
8
|
type StartHandlerFn = (workflowName: string, args: unknown, options?: StartWorkflowOptions) => string;
|
|
10
9
|
type ResumeHandlerFn = (executionId: string) => string;
|
|
@@ -157,5 +156,4 @@ export declare function mockWorkflow(): {
|
|
|
157
156
|
/** Reset all workflow responses and recorded calls (keeps the mock installed). */
|
|
158
157
|
reset(): void;
|
|
159
158
|
} & Disposable;
|
|
160
|
-
//#endregion
|
|
161
159
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PGliteField } from "./pglite-temporal.mjs";
|
|
2
2
|
import { ColumnType, Kysely } from "kysely";
|
|
3
|
-
//#region src/vitest/pglite-kysely.d.ts
|
|
4
3
|
/** Result of a {@link PGliteClient.query} call. */
|
|
5
4
|
export interface PGliteQueryResult {
|
|
6
5
|
/** Rows returned by the statement. */
|
|
@@ -101,5 +100,4 @@ export declare function createKyselyPGlite<DB = Record<string, never>>(client: P
|
|
|
101
100
|
* ```
|
|
102
101
|
*/
|
|
103
102
|
export declare function prepareFixtures<T>(client: PGliteClient, prepare: () => Promise<T>): Promise<T>;
|
|
104
|
-
//#endregion
|
|
105
103
|
export {};
|
package/dist/vitest/setup.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { applyDateDefault } from "./date-representation.mjs";
|
|
2
|
-
//#region src/vitest/setup.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Extract a vault store from a secrets-shaped value.
|
|
5
4
|
*
|
|
@@ -22,5 +21,4 @@ export declare function extractVaultStore(secrets: unknown): Record<string, Reco
|
|
|
22
21
|
* @returns Vault store keyed by vault name, or null if unavailable
|
|
23
22
|
*/
|
|
24
23
|
export declare function loadSecretsFromConfig(configPath: string): Promise<Record<string, Record<string, string>> | null>;
|
|
25
|
-
//#endregion
|
|
26
24
|
export { applyDateDefault };
|
|
@@ -2,7 +2,6 @@ import { TailorEnv } from "../runtime/types.mjs";
|
|
|
2
2
|
import { WorkflowJob } from "../configure/services/workflow/job.mjs";
|
|
3
3
|
import { Workflow } from "../configure/services/workflow/workflow.mjs";
|
|
4
4
|
import "../configure/services/workflow/index.mjs";
|
|
5
|
-
//#region src/vitest/workflow-local.d.ts
|
|
6
5
|
type AnyWorkflowJob = WorkflowJob<string, any, any>;
|
|
7
6
|
type AnyWorkflow = Workflow<AnyWorkflowJob>;
|
|
8
7
|
type WorkflowInput<W extends AnyWorkflow> = W["mainJob"] extends WorkflowJob<string, infer I, any> ? I : never;
|
|
@@ -37,5 +36,4 @@ export declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string
|
|
|
37
36
|
* @returns The main job output
|
|
38
37
|
*/
|
|
39
38
|
export declare function runWorkflowLocally<W extends AnyWorkflow>(workflow: W, args: WorkflowInput<W>, options?: RunWorkflowLocallyOptions): Promise<WorkflowOutput<W>>;
|
|
40
|
-
//#endregion
|
|
41
39
|
export {};
|
package/docs/cli/application.md
CHANGED
|
@@ -270,7 +270,8 @@ Pass the global `--json` / `-j` flag to get machine-readable output.
|
|
|
270
270
|
|
|
271
271
|
- `summary` — counts of each change type. `forcedBySdkVersion` counts the updates forced by the SDK version, which are also included in `update`.
|
|
272
272
|
- `changes` — planned resource changes, each with `action`, `name`, and optional `labels` / `namespace`. An update forced by the SDK version also has `forcedBySdkVersion: true`.
|
|
273
|
-
- `warnings` — resources not in config (`type: "unmanaged"`)
|
|
273
|
+
- `warnings` — resources not in config (`type: "unmanaged"`), secrets with missing values (`type: "skippedSecret"`), or applications recorded as depending on this deploy but missing from it (`type: "missingDependentApp"`). Unmanaged resources and missing dependent applications require confirmation in apply mode (apply is cancelled if declined); skipped secrets are non-blocking.
|
|
274
|
+
- A `missingDependentApp` entry names the missing application's `appId`, the `reason` it depends on this deploy, and the resource whose event publishing turns off when applying without it (`resourceType` and `name`, plus `namespace` for a TailorDB table or resolver). An entry about a workflow's jobs rather than the workflow itself has `scope: "jobs"`.
|
|
274
275
|
- `conflicts` — resources owned by another application that conflict with the current config. Require confirmation in apply mode; apply is cancelled if declined.
|
|
275
276
|
- `resourceType` in `warnings` and `conflicts` is a stable identifier of the resource kind, such as `executor`, `tailordb.service`, or `secret.secret`. The human-readable plan shows a display name instead.
|
|
276
277
|
|
package/docs/cli/tailordb.md
CHANGED
|
@@ -286,7 +286,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
286
286
|
|
|
287
287
|
**Notes**
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
Local migration files are checked for a valid layout (numbering and required files in each migration directory) and a compatible format version, and deployed migration history IDs must match the local baseline. Invalid or incompatible files, history mismatches, and metadata lookup failures are reported per namespace and make the command exit non-zero; only a not-yet-deployed namespace is treated as having no applied migrations.
|
|
290
290
|
|
|
291
291
|
#### tailordb migration sync
|
|
292
292
|
|
package/docs/cli/user.md
CHANGED
|
@@ -70,10 +70,10 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
70
70
|
|
|
71
71
|
**Commands**
|
|
72
72
|
|
|
73
|
-
| Command | Description
|
|
74
|
-
| ----------------------------- |
|
|
75
|
-
| [`auth status`](#auth-status) | Show the active Tailor Platform authentication status without printing tokens.
|
|
76
|
-
| [`auth token`](#auth-token) | Print a valid Tailor Platform access token to stdout, refreshing it first if
|
|
73
|
+
| Command | Description |
|
|
74
|
+
| ----------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
75
|
+
| [`auth status`](#auth-status) | Show the active Tailor Platform authentication status without printing tokens. |
|
|
76
|
+
| [`auth token`](#auth-token) | Print a valid Tailor Platform access token to stdout, refreshing it first if it expires within five minutes. |
|
|
77
77
|
|
|
78
78
|
### auth status
|
|
79
79
|
|
|
@@ -95,7 +95,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
95
95
|
|
|
96
96
|
### auth token
|
|
97
97
|
|
|
98
|
-
Print a valid Tailor Platform access token to stdout, refreshing it first if
|
|
98
|
+
Print a valid Tailor Platform access token to stdout, refreshing it first if it expires within five minutes.
|
|
99
99
|
|
|
100
100
|
**Usage**
|
|
101
101
|
|
package/docs/cli/workspace.md
CHANGED
package/docs/cli-reference.md
CHANGED
|
@@ -20,8 +20,8 @@ tailor <command> [options]
|
|
|
20
20
|
| ------------------------------------------- | ----- | --------------------------------------------------- | -------- | ------- | -------------------- |
|
|
21
21
|
| `--env-file <ENV_FILE>` | `-e` | Path to the environment file (error if not found) | No | - | - |
|
|
22
22
|
| `--env-file-if-exists <ENV_FILE_IF_EXISTS>` | - | Path to the environment file (ignored if not found) | No | - | - |
|
|
23
|
-
| `--verbose`
|
|
24
|
-
| `--json`
|
|
23
|
+
| `--verbose` / `--no-verbose` | - | Enable verbose logging | No | `false` | - |
|
|
24
|
+
| `--json` / `--no-json` | `-j` | Output as JSON | No | `false` | `TAILOR_JSON_OUTPUT` |
|
|
25
25
|
|
|
26
26
|
### Progress and Detailed Logs
|
|
27
27
|
|
|
@@ -82,13 +82,13 @@ unexpected argument, or an option value that fails validation (including one set
|
|
|
82
82
|
environment variable), and `1` for other failures, including checks a command makes after reading
|
|
83
83
|
its arguments. A command that only warns about an unknown option or an extra argument keeps
|
|
84
84
|
running. Cancelling an interactive prompt exits with `130`, and a CLI plugin exits with its own
|
|
85
|
-
code.
|
|
86
|
-
with `0` after printing its help or a warning even when an option is unknown or its value is
|
|
87
|
-
invalid, so name the subcommand to rely on `2`.
|
|
85
|
+
code.
|
|
88
86
|
|
|
89
87
|
Authentication failures distinguish missing credentials (`AUTH_TOKEN_NOT_FOUND`), a missing saved
|
|
90
88
|
user (`AUTH_USER_NOT_FOUND`), an expired token (`AUTH_TOKEN_EXPIRED`), and a failed token refresh
|
|
91
|
-
(`AUTH_TOKEN_REFRESH_FAILED`).
|
|
89
|
+
(`AUTH_TOKEN_REFRESH_FAILED`). `CONFIG_LOCK_TIMEOUT` means another `tailor` command kept the saved
|
|
90
|
+
credentials locked for too long; `error.context.lockPath` names the lock file to delete if no other
|
|
91
|
+
command is running. Login recovery preserves the selected profile. For saved identities,
|
|
92
92
|
the next step opens login help so you can reuse the original browser or machine-user login method. Permission and
|
|
93
93
|
connection failures include guidance in `error.suggestion`; API failures also identify the operation
|
|
94
94
|
and affected resources in `error.context`.
|
|
@@ -107,7 +107,8 @@ excluded from that list.
|
|
|
107
107
|
Use `--verbose` to include debug diagnostics and error stack traces. `DEBUG=true` or
|
|
108
108
|
`RUNNER_DEBUG=1` also enables verbose output, including stacks in JSON errors. GitHub Actions
|
|
109
109
|
sets `RUNNER_DEBUG=1` when debug logging is enabled, so the same command automatically includes
|
|
110
|
-
these details in a debug run.
|
|
110
|
+
these details in a debug run. `--no-verbose` turns verbose output off even when these are set.
|
|
111
|
+
These settings do not enable JSON output; pass `--json` separately.
|
|
111
112
|
|
|
112
113
|
Capture the original failure's stderr and exit code before retrying. Failures before the CLI starts,
|
|
113
114
|
a rejected `--json` or `TAILOR_JSON_OUTPUT` value, argument errors in the bundled CLI plugins, and
|
|
@@ -300,7 +301,7 @@ the plugin does not need to re-implement authentication or re-resolve the active
|
|
|
300
301
|
The token, workspace ID, and user are best-effort: whatever the current context can resolve is injected,
|
|
301
302
|
and auth-free plugins still run when you are not logged in. A long-running plugin (or one started on its
|
|
302
303
|
own) can obtain a fresh token at any time with `tailor auth token`, which prints a valid access token to
|
|
303
|
-
stdout, refreshing it first if it
|
|
304
|
+
stdout, refreshing it first if it expires within five minutes.
|
|
304
305
|
|
|
305
306
|
## Commands
|
|
306
307
|
|
|
@@ -362,23 +363,23 @@ Run ad-hoc SQL/GraphQL queries or enter the interactive REPL.
|
|
|
362
363
|
|
|
363
364
|
Commands for authentication and user management.
|
|
364
365
|
|
|
365
|
-
| Command | Description
|
|
366
|
-
| ------------------------------------------------ |
|
|
367
|
-
| [login](./cli/user.md#login) | Login to Tailor Platform.
|
|
368
|
-
| [logout](./cli/user.md#logout) | Logout from Tailor Platform.
|
|
369
|
-
| [auth](./cli/user.md#auth) | Authentication helpers for scripts and plugins.
|
|
370
|
-
| [auth status](./cli/user.md#auth-status) | Show the active Tailor Platform authentication status without printing tokens.
|
|
371
|
-
| [auth token](./cli/user.md#auth-token) | Print a valid Tailor Platform access token to stdout, refreshing it first if
|
|
372
|
-
| [user](./cli/user.md#user) | Manage Tailor Platform users.
|
|
373
|
-
| [user current](./cli/user.md#user-current) | Show current user.
|
|
374
|
-
| [user list](./cli/user.md#user-list) | List all users.
|
|
375
|
-
| [user pat](./cli/user.md#user-pat) | Manage personal access tokens.
|
|
376
|
-
| [user pat create](./cli/user.md#user-pat-create) | Create a new personal access token.
|
|
377
|
-
| [user pat delete](./cli/user.md#user-pat-delete) | Delete a personal access token.
|
|
378
|
-
| [user pat list](./cli/user.md#user-pat-list) | List all personal access tokens.
|
|
379
|
-
| [user pat update](./cli/user.md#user-pat-update) | Update a personal access token (delete and recreate).
|
|
380
|
-
| [user switch](./cli/user.md#user-switch) | Set current user.
|
|
381
|
-
| [user update](./cli/user.md#user-update) | Set the current user's default organization and folder for new workspaces.
|
|
366
|
+
| Command | Description |
|
|
367
|
+
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
|
|
368
|
+
| [login](./cli/user.md#login) | Login to Tailor Platform. |
|
|
369
|
+
| [logout](./cli/user.md#logout) | Logout from Tailor Platform. |
|
|
370
|
+
| [auth](./cli/user.md#auth) | Authentication helpers for scripts and plugins. |
|
|
371
|
+
| [auth status](./cli/user.md#auth-status) | Show the active Tailor Platform authentication status without printing tokens. |
|
|
372
|
+
| [auth token](./cli/user.md#auth-token) | Print a valid Tailor Platform access token to stdout, refreshing it first if it expires within five minutes. |
|
|
373
|
+
| [user](./cli/user.md#user) | Manage Tailor Platform users. |
|
|
374
|
+
| [user current](./cli/user.md#user-current) | Show current user. |
|
|
375
|
+
| [user list](./cli/user.md#user-list) | List all users. |
|
|
376
|
+
| [user pat](./cli/user.md#user-pat) | Manage personal access tokens. |
|
|
377
|
+
| [user pat create](./cli/user.md#user-pat-create) | Create a new personal access token. |
|
|
378
|
+
| [user pat delete](./cli/user.md#user-pat-delete) | Delete a personal access token. |
|
|
379
|
+
| [user pat list](./cli/user.md#user-pat-list) | List all personal access tokens. |
|
|
380
|
+
| [user pat update](./cli/user.md#user-pat-update) | Update a personal access token (delete and recreate). |
|
|
381
|
+
| [user switch](./cli/user.md#user-switch) | Set current user. |
|
|
382
|
+
| [user update](./cli/user.md#user-update) | Set the current user's default organization and folder for new workspaces. |
|
|
382
383
|
|
|
383
384
|
### [Organization Commands](./cli/organization.md)
|
|
384
385
|
|
package/docs/configuration.md
CHANGED
|
@@ -64,9 +64,9 @@ export default defineConfig({
|
|
|
64
64
|
|
|
65
65
|
Entries are only added or overwritten. An entry removed from the config keeps its last deployed value on the platform, and labels the config does not name are left untouched. Because those retained labels count towards the platform's limit of 20 labels per resource, `deploy` reports the overflow and stops before changing the application when the labels it would leave behind exceed that limit. The labels are written when the application itself is deployed, so a config with no TailorDB, Resolver, IdP, or Auth service has no application to carry them.
|
|
66
66
|
|
|
67
|
-
**Build Options**: `buildOptions` groups the settings that control how resolvers, executors, workflow jobs, and other functions are bundled: `logLevel` (below), `inlineSourcemap` (whether bundled functions embed an inline sourcemap for readable error stack traces; default `true`), `inlineSourcemapDependencySources` (below), `allowedRuntimeGlobals` (see [Node-only globals](#node-only-globals)), and `treeshake` (see [Removing unused code](#removing-unused-code)). The top-level `logLevel` and `inlineSourcemap` fields still work but are deprecated; `tailor upgrade` moves them into `buildOptions`. Setting the same option both at the top level and in `buildOptions` is rejected.
|
|
67
|
+
**Build Options**: `buildOptions` groups the settings that control how resolvers, executors, workflow jobs, and other functions are bundled: `logLevel` (below), `inlineSourcemap` (whether bundled functions embed an inline sourcemap for readable error stack traces; default `true`), `inlineSourcemapDependencySources` and `inlineSourcemapProjectSources` (below), `allowedRuntimeGlobals` (see [Node-only globals](#node-only-globals)), and `treeshake` (see [Removing unused code](#removing-unused-code)). The top-level `logLevel` and `inlineSourcemap` fields still work but are deprecated; `tailor upgrade` moves them into `buildOptions`. Setting the same option both at the top level and in `buildOptions` is rejected.
|
|
68
68
|
|
|
69
|
-
**Sourcemap Sources** (`buildOptions.inlineSourcemapDependencySources`): Whether the inline sourcemap embeds the source text of installed packages, that is, everything under `node_modules`. The default is `false`: only your own source files are embedded, which makes bundled functions much smaller. Error positions in stack traces resolve to the original files and lines either way. With the default, `tailor function run` and `tailor function logs` show the code snippet for a frame inside an installed package from the package's file on your machine, so the snippet is missing when that file is not installed locally (for `tailor function logs`, run it from the project directory you deployed from). Set it to `true` to embed the source text of installed packages as well, or to a list of package names such as `["kysely", "@scope/lib"]` to embed only those packages. A listed package's own dependencies are not embedded unless they are listed too. It has no effect when `inlineSourcemap` is `false`.
|
|
69
|
+
**Sourcemap Sources** (`buildOptions.inlineSourcemapDependencySources`): Whether the inline sourcemap embeds the source text of installed packages, that is, everything under `node_modules`. The default is `false`: only your own source files are embedded, which makes bundled functions much smaller. Error positions in stack traces resolve to the original files and lines either way. With the default, `tailor function run` and `tailor function logs` show the code snippet for a frame inside an installed package from the package's file on your machine, so the snippet is missing when that file is not installed locally (for `tailor function logs`, run it from the project directory you deployed from). Set it to `true` to embed the source text of installed packages as well, or to a list of package names such as `["kysely", "@scope/lib"]` to embed only those packages. A listed package's own dependencies are not embedded unless they are listed too. Files under `node_modules` that belong to no package, such as a generated client in `node_modules/.prisma`, are embedded only when the option is `true`. It has no effect when `inlineSourcemap` is `false`.
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
72
|
export default defineConfig({
|
|
@@ -79,6 +79,17 @@ export default defineConfig({
|
|
|
79
79
|
|
|
80
80
|
This is a bundle-time setting. It affects newly bundled deployments; already deployed functions keep the sourcemap they were deployed with until they are redeployed.
|
|
81
81
|
|
|
82
|
+
**Project Sourcemap Sources** (`buildOptions.inlineSourcemapProjectSources`): Which of your own source files embed their text in the inline sourcemap. By default all of them do. `include` and `exclude` are globs relative to the directory containing your config file, written without a leading `./` (a `./` prefix is ignored). Only files matching `include` (all files when omitted) and not matching `exclude` keep their text. `**` does not match a dot-directory such as `src/.cache`. Files under `node_modules` are controlled by `inlineSourcemapDependencySources` instead. Error positions still resolve to the original files and lines, but `tailor function run` shows no code snippet for a frame in a file whose text is left out. It has no effect when `inlineSourcemap` is `false`.
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
export default defineConfig({
|
|
86
|
+
name: "my-app",
|
|
87
|
+
buildOptions: {
|
|
88
|
+
inlineSourcemapProjectSources: { exclude: ["src/generated/**"] },
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
82
93
|
**Log Level** (`buildOptions.logLevel`): Controls which `console.*` and `logger.*` (from `@tailor-platform/sdk/runtime`) calls are kept when deployment functions are bundled. Supported values are `"DEBUG"`, `"INFO"`, `"WARN"`, `"ERROR"`, and `"SILENT"`. The default is `"DEBUG"` and keeps all calls. `console.log` is treated as a DEBUG-level call (matching the platform's OpenTelemetry severity mapping), so it is dropped at `"INFO"` and above, alongside `console.debug` and `logger.debug`. `logger.setAttributes` has no severity and is never dropped, regardless of `logLevel`. For production deployments, use `"WARN"` to keep warn/error calls while dropping debug, log, and info calls:
|
|
83
94
|
|
|
84
95
|
```typescript
|
package/docs/github-actions.md
CHANGED
|
@@ -249,6 +249,29 @@ For a preview target, the name can be at most 50 characters: each pull request
|
|
|
249
249
|
gets its own workspace named `<name>-pr-<number>`, which must fit in 63
|
|
250
250
|
characters.
|
|
251
251
|
|
|
252
|
+
### Preview target (per-pull-request workspace)
|
|
253
|
+
|
|
254
|
+
The preview target deploys each pull request to its own workspace and deletes
|
|
255
|
+
that workspace when the pull request is closed:
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
tailor setup ci preview --name my-app --region asia-northeast
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Fork pull requests are skipped. Every other pull request gets a preview, draft
|
|
262
|
+
pull requests included. `--require` narrows that to one of:
|
|
263
|
+
|
|
264
|
+
- `--require ready` skips draft pull requests. The preview is deployed when the
|
|
265
|
+
draft is marked ready for review.
|
|
266
|
+
- `--require label` deploys only pull requests labeled `tailor:preview`. A
|
|
267
|
+
labeled draft deploys too, because the label asks for the preview.
|
|
268
|
+
|
|
269
|
+
When `tailor setup update` regenerates a preview target generated before
|
|
270
|
+
`--require` existed, it reads the target as `--require ready`, or as
|
|
271
|
+
`--require label` if it required the label. The first keeps skipping drafts; the
|
|
272
|
+
second now also deploys a labeled draft. To deploy drafts as well, run
|
|
273
|
+
`tailor setup ci preview` again without `--require`.
|
|
274
|
+
|
|
252
275
|
## Targeting a workspace
|
|
253
276
|
|
|
254
277
|
The generated `plan` and `deploy` jobs target a workspace by **id**, read from
|
|
@@ -385,8 +408,8 @@ A job that runs `tailor` against the workspace needs the machine-user
|
|
|
385
408
|
that only uses `app-url`, such as end-to-end tests, does not.
|
|
386
409
|
|
|
387
410
|
The job is skipped whenever `tailor-preview-deploy` is skipped: when a pull
|
|
388
|
-
request is closed, for
|
|
389
|
-
`--require
|
|
411
|
+
request is closed, for fork pull requests, for draft pull requests with
|
|
412
|
+
`--require ready`, and for unlabeled ones with `--require label`.
|
|
390
413
|
|
|
391
414
|
A preview workspace expires 7 days (`ttl: 7d` on `tailor-preview-deploy`) after
|
|
392
415
|
the last push to its pull request. When a pull request is closed,
|
|
@@ -476,11 +499,11 @@ failed also counts as passing, so list every job of yours whose failure should
|
|
|
476
499
|
block merging, not only the last one: above, `seed` is listed because `e2e`
|
|
477
500
|
needs it.
|
|
478
501
|
|
|
479
|
-
With `--require
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
and marking it ready for review
|
|
483
|
-
|
|
502
|
+
With `--require label`, the preview workflow does not start when a pull request
|
|
503
|
+
is opened, so its check is not reported until the pull request is labeled,
|
|
504
|
+
reopened, or pushed to. With `--require ready`, a draft pull request skips the
|
|
505
|
+
preview deploy and its check passes; marking it ready for review starts the
|
|
506
|
+
workflow, so the deploy and its check follow right away. Tag workflows have no
|
|
484
507
|
such job: they run on tags, not on pull requests.
|
|
485
508
|
|
|
486
509
|
### `.github/tailor.lock`
|
|
@@ -758,7 +781,7 @@ Before enabling it, note that:
|
|
|
758
781
|
and validation run, `updatedAt` changes, and executors with
|
|
759
782
|
`recordUpdatedTrigger` fire once per seeded row on every deploy.
|
|
760
783
|
- Every preview deploy deletes the data reviewers added to the preview
|
|
761
|
-
workspace. That is every push, and with `--require
|
|
784
|
+
workspace. That is every push, and with `--require label` also every
|
|
762
785
|
label added to the pull request, since each one redeploys the preview.
|
|
763
786
|
- A seed failure fails the deploy job and its notification, although the deploy
|
|
764
787
|
itself went through.
|
|
@@ -1016,8 +1039,8 @@ targets it reports.
|
|
|
1016
1039
|
Workflows generated by `setup ci branch`, `setup ci tag`, and `setup ci preview`
|
|
1017
1040
|
self-audit: each contains a `tailor-drift-check` step that
|
|
1018
1041
|
runs the check in CI. Preview workflows run it alongside each preview deploy,
|
|
1019
|
-
so pull requests that deploy no preview (drafts
|
|
1020
|
-
|
|
1042
|
+
so pull requests that deploy no preview (drafts with `--require ready`, fork
|
|
1043
|
+
PRs, and unlabeled PRs with `--require label`) skip the check. A single run audits every target
|
|
1021
1044
|
recorded in `.github/tailor.lock`.
|
|
1022
1045
|
|
|
1023
1046
|
Drift findings are advisory by default. Set the repository variable
|
package/docs/services/secret.md
CHANGED
|
@@ -32,6 +32,12 @@ workspace/
|
|
|
32
32
|
└── analytics-connection-string
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
### Reserved Vault Names
|
|
36
|
+
|
|
37
|
+
Vault names that start with `tailor--` (two hyphens) are reserved in advance for the platform and have no use today. Declaring such a vault in `defineSecretManager()` prints a warning on `tailor deploy` and will become an error in v3. A name that starts with a single `tailor-`, such as `tailor-reports`, is not reserved.
|
|
38
|
+
|
|
39
|
+
`tailor deploy` also creates a vault named `idp-<namespace>-<client>` for each IdP client of your application. A declared vault with exactly that name is an error, because both would write to the same vault.
|
|
40
|
+
|
|
35
41
|
### Secrets
|
|
36
42
|
|
|
37
43
|
Secrets are key-value pairs stored within a vault. Secret values are encrypted at rest and only accessible at runtime by authorized services.
|