@tailor-platform/sdk 2.32.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 +102 -0
- package/dist/ai/index.d.mts +1 -3
- package/dist/application-CwpOIOTt.mjs +1 -0
- 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 +2 -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 +65 -50
- 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 -1
- 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 +56 -4
- 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/cli/ts-hook.d.mts +0 -2
- package/dist/cli/ts-hook.mjs +0 -113
- package/dist/completion/zsh-worker.zsh +26 -6
- 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 +6 -3
- 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/{kysely-type-CBwsdx16.mjs → kysely-type-DxyIWXc6.mjs} +3 -3
- package/dist/kysely-type-DxyIWXc6.mjs.map +1 -0
- 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/enum-constants/index.mjs +2 -2
- package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -1
- 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/kysely-type/index.mjs +1 -1
- 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 +3 -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/repl-editor-DkrCZmmg.mjs +2 -0
- package/dist/repl-editor-DkrCZmmg.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/service_pb-6EkMfdOb.mjs +2 -0
- package/dist/service_pb-6EkMfdOb.mjs.map +1 -0
- package/dist/service_pb-CsJKokDl.mjs +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 +6 -5
- 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 +211 -0
- package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +299 -0
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +201 -11
- 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 +201 -3
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +88 -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 +10 -4
- 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 +2 -4
- package/dist/vitest/index.mjs +1 -1
- package/dist/vitest/index.mjs.map +1 -1
- 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 +19 -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/dist/{workspace_resource_pb-CaoM2npP.mjs → workspace_resource_pb-C4CkoYww.mjs} +2 -2
- package/dist/workspace_resource_pb-C4CkoYww.mjs.map +1 -0
- 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/plugin/custom.md +34 -0
- package/docs/plugin/index.md +1 -0
- package/docs/services/secret.md +6 -0
- package/docs/services/staticwebsite.md +31 -1
- package/docs/services/tailordb/index.md +19 -0
- package/docs/services/tailordb/migration.md +35 -12
- package/docs/testing.md +2 -2
- package/package.json +16 -16
- package/dist/application-C2bPmmbh.mjs +0 -1
- package/dist/application-D0xNJbag.mjs +0 -199
- package/dist/application-D0xNJbag.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/kysely-type-CBwsdx16.mjs.map +0 -1
- package/dist/logger-RgtbhJ83.mjs.map +0 -1
- package/dist/manager-Bk-7vkwd.mjs +0 -2
- package/dist/manager-Bk-7vkwd.mjs.map +0 -1
- package/dist/register-ts-hook-_dHIREtU.mjs +0 -1050
- package/dist/register-ts-hook-_dHIREtU.mjs.map +0 -1
- package/dist/repl-editor-DGJBfIt1.mjs +0 -2
- package/dist/repl-editor-DGJBfIt1.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
- package/dist/service_pb-Bbu2QSIr.mjs +0 -2
- package/dist/service_pb-Bbu2QSIr.mjs.map +0 -1
- package/dist/service_pb-urxAIYHT.mjs +0 -1
- package/dist/workspace_resource_pb-CaoM2npP.mjs.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/query/index.d.ts
|
|
3
2
|
declare const queryOptionsSchema: z.ZodObject<{
|
|
4
3
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
5
4
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -34,5 +33,4 @@ type QueryDispatchResult = SQLQueryDispatchResult | GQLQueryDispatchResult;
|
|
|
34
33
|
* @returns Dispatch result
|
|
35
34
|
*/
|
|
36
35
|
export declare function query(options: QueryOptions): Promise<QueryDispatchResult>;
|
|
37
|
-
//#endregion
|
|
38
36
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import "../../plugin/manager.mjs";
|
|
2
|
-
import "./tailordb/service.mjs";
|
|
3
|
-
import "./auth/service.mjs";
|
|
4
1
|
import "../../configure/config/types.mjs";
|
|
5
|
-
import "
|
|
2
|
+
import "../shared/sourcemap-sources.mjs";
|
|
6
3
|
import "../cache/bundle-cache.mjs";
|
|
7
4
|
import "../shared/tsconfig-paths-plugin.mjs";
|
|
8
5
|
import "./http-adapter/bundler.mjs";
|
|
6
|
+
import "../../plugin/manager.mjs";
|
|
7
|
+
import "./tailordb/service.mjs";
|
|
8
|
+
import "./auth/service.mjs";
|
|
9
|
+
import "./executor/service.mjs";
|
|
9
10
|
import "./http-adapter/service.mjs";
|
|
10
11
|
import "./resolver/service.mjs";
|
|
11
12
|
import "../shared/start-context.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "../../../types
|
|
2
|
-
import "../../../
|
|
1
|
+
import "../../../configure/config/types.mjs";
|
|
2
|
+
import "../../../types/executor.generated.mjs";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../../configure/config/types.mjs";
|
|
2
|
+
import "../shared/sourcemap-sources.mjs";
|
|
3
|
+
import "../cache/bundle-cache.mjs";
|
|
4
|
+
import "../shared/tsconfig-paths-plugin.mjs";
|
|
5
|
+
import "../shared/platform-bundle-plugin.mjs";
|
|
6
|
+
import "../shared/start-context.mjs";
|
|
7
|
+
import "rolldown";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../../../configure/config/types.mjs";
|
|
2
2
|
import "../../cache/bundle-cache.mjs";
|
|
3
3
|
import "../../shared/tsconfig-paths-plugin.mjs";
|
|
4
|
-
import "../../../parser/service/http-adapter/index.mjs";
|
|
4
|
+
import "../../../parser/service/http-adapter/index.mjs";
|
|
5
|
+
export interface HttpAdapterBundleResult {
|
|
6
|
+
/** Adapter name → bundled input JS string. */
|
|
7
|
+
bundledInputs: Map<string, string>;
|
|
8
|
+
/** Adapter name → bundled output JS string. Only populated when the adapter has an output. */
|
|
9
|
+
bundledOutputs: Map<string, string>;
|
|
10
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import "../../../configure/config/types.mjs";
|
|
1
|
+
import "../../../configure/config/types.mjs";
|
|
2
|
+
import "../../../plugin/manager.mjs";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "../../tailor-proto/src/tailor/v1/resource_pb.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region src/cli/shared/args.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Schema for sort order (`asc` or `desc`).
|
|
6
5
|
*/
|
|
@@ -80,5 +79,4 @@ export declare const confirmationArgs: {
|
|
|
80
79
|
yes: z.ZodDefault<z.ZodBoolean>;
|
|
81
80
|
};
|
|
82
81
|
export type CommonArgsType = z.infer<z.ZodObject<typeof commonArgs>>;
|
|
83
|
-
//#endregion
|
|
84
82
|
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
//#region src/cli/shared/beta.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Warn that a feature is in beta.
|
|
4
3
|
* @param {string} featureName - Name of the beta feature (e.g., "tailordb migration")
|
|
5
4
|
*/
|
|
6
|
-
export declare function logBetaWarning(featureName: string): void;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare function logBetaWarning(featureName: string): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AddOrganizationTeamMemberRequestSchema, AddOrganizationTeamMemberResponseSchema, CreateOrganizationFolderRequestSchema, CreateOrganizationFolderResponseSchema, CreateOrganizationTeamRequestSchema, CreateOrganizationTeamResponseSchema, CreateWorkspaceRequestSchema, CreateWorkspaceResponseSchema, DeleteOrganizationFolderIPRestrictionRequestSchema, DeleteOrganizationFolderIPRestrictionResponseSchema, DeleteOrganizationFolderRequestSchema, DeleteOrganizationFolderResponseSchema, DeleteOrganizationIPRestrictionRequestSchema, DeleteOrganizationIPRestrictionResponseSchema, DeleteOrganizationTeamRequestSchema, DeleteOrganizationTeamResponseSchema, DeleteWorkspaceRequestSchema, DeleteWorkspaceResponseSchema, GetOrganizationAccessRequestSchema, GetOrganizationAccessResponseSchema, GetOrganizationFolderAccessRequestSchema, GetOrganizationFolderAccessResponseSchema, GetOrganizationFolderIPRestrictionRequestSchema, GetOrganizationFolderIPRestrictionResponseSchema, GetOrganizationFolderRequestSchema, GetOrganizationFolderResponseSchema, GetOrganizationIPRestrictionRequestSchema, GetOrganizationIPRestrictionResponseSchema, GetOrganizationRequestSchema, GetOrganizationResponseSchema, GetOrganizationTeamMemberRequestSchema, GetOrganizationTeamMemberResponseSchema, GetOrganizationTeamRequestSchema, GetOrganizationTeamResponseSchema, GetPlatformAccountPlanRequestSchema, GetPlatformAccountPlanResponseSchema, GetWorkspacePlatformUserRequestSchema, GetWorkspacePlatformUserResponseSchema, GetWorkspaceRequestSchema, GetWorkspaceResponseSchema, GetWorkspaceRoleRequestSchema, GetWorkspaceRoleResponseSchema, GrantOrganizationAccessRequestSchema, GrantOrganizationAccessResponseSchema, GrantOrganizationFolderAccessRequestSchema, GrantOrganizationFolderAccessResponseSchema, InviteWorkspacePlatformUserRequestSchema, InviteWorkspacePlatformUserResponseSchema, ListAvailableWorkspacePlatformUserRolesRequestSchema, ListAvailableWorkspacePlatformUserRolesResponseSchema, ListAvailableWorkspaceRegionsRequestSchema, ListAvailableWorkspaceRegionsResponseSchema, ListOrganizationAccessesRequestSchema, ListOrganizationAccessesResponseSchema, ListOrganizationFolderAccessesRequestSchema, ListOrganizationFolderAccessesResponseSchema, ListOrganizationFoldersRequestSchema, ListOrganizationFoldersResponseSchema, ListOrganizationTeamMembersRequestSchema, ListOrganizationTeamMembersResponseSchema, ListOrganizationTeamsRequestSchema, ListOrganizationTeamsResponseSchema, ListOrganizationWorkspacesRequestSchema, ListOrganizationWorkspacesResponseSchema, ListOrganizationsRequestSchema, ListOrganizationsResponseSchema, ListUserOrganizationsRequestSchema, ListUserOrganizationsResponseSchema, ListWorkspacePlatformUsersRequestSchema, ListWorkspacePlatformUsersResponseSchema, ListWorkspacesRequestSchema, ListWorkspacesResponseSchema, RemoveOrganizationTeamMemberRequestSchema, RemoveOrganizationTeamMemberResponseSchema, RemoveWorkspacePlatformUserRequestSchema, RemoveWorkspacePlatformUserResponseSchema, RestoreWorkspaceRequestSchema, RestoreWorkspaceResponseSchema, RevokeOrganizationAccessRequestSchema, RevokeOrganizationAccessResponseSchema, RevokeOrganizationFolderAccessRequestSchema, RevokeOrganizationFolderAccessResponseSchema, UpdateOrganizationAccessRequestSchema, UpdateOrganizationAccessResponseSchema, UpdateOrganizationFolderAccessRequestSchema, UpdateOrganizationFolderAccessResponseSchema, UpdateOrganizationFolderRequestSchema, UpdateOrganizationFolderResponseSchema, UpdateOrganizationRequestSchema, UpdateOrganizationResponseSchema, UpdateOrganizationTeamMemberRequestSchema, UpdateOrganizationTeamMemberResponseSchema, UpdateOrganizationTeamRequestSchema, UpdateOrganizationTeamResponseSchema, UpdateWorkspacePlatformUserRequestSchema, UpdateWorkspacePlatformUserResponseSchema, UpdateWorkspaceRequestSchema, UpdateWorkspaceResponseSchema, UpsertOrganizationFolderIPRestrictionRequestSchema, UpsertOrganizationFolderIPRestrictionResponseSchema, UpsertOrganizationIPRestrictionRequestSchema, UpsertOrganizationIPRestrictionResponseSchema } from "../../tailor-proto/src/tailor/v1/workspace_pb.mjs";
|
|
2
|
+
import { CreateOrganizationSecurityFindingMuteRequestSchema, CreateOrganizationSecurityFindingMuteResponseSchema, DeleteOrganizationSecurityFindingMuteRequestSchema, DeleteOrganizationSecurityFindingMuteResponseSchema, ListOrganizationSecurityChecksRequestSchema, ListOrganizationSecurityChecksResponseSchema, ListOrganizationSecurityFindingMutesRequestSchema, ListOrganizationSecurityFindingMutesResponseSchema, ListOrganizationSecurityFindingsRequestSchema, ListOrganizationSecurityFindingsResponseSchema } from "../../tailor-proto/src/tailor/v1/security_pb.mjs";
|
|
2
3
|
import { CloneApplicationDataRequestSchema, CloneApplicationDataResponseSchema, CreateApplicationRequestSchema, CreateApplicationResponseSchema, DeleteApplicationRequestSchema, DeleteApplicationResponseSchema, GetApplicationRequestSchema, GetApplicationResponseSchema, GetApplicationSchemaHealthRequestSchema, GetApplicationSchemaHealthResponseSchema, GetCloneApplicationDataOperationRequestSchema, GetCloneApplicationDataOperationResponseSchema, ListApplicationsRequestSchema, ListApplicationsResponseSchema, UpdateApplicationRequestSchema, UpdateApplicationResponseSchema } from "../../tailor-proto/src/tailor/v1/application_pb.mjs";
|
|
3
4
|
import { CreateAIGatewayRequestSchema, CreateAIGatewayResponseSchema, DeleteAIGatewayRequestSchema, DeleteAIGatewayResponseSchema, GetAIGatewayRequestSchema, GetAIGatewayResponseSchema, ListAIGatewaysRequestSchema, ListAIGatewaysResponseSchema, UpdateAIGatewayRequestSchema, UpdateAIGatewayResponseSchema } from "../../tailor-proto/src/tailor/v1/aigateway_pb.mjs";
|
|
4
5
|
import { ComposeTailorDBSDLRequestSchema, ComposeTailorDBSDLResponseSchema, CreateTailorDBGQLPermissionRequestSchema, CreateTailorDBGQLPermissionResponseSchema, CreateTailorDBServiceRequestSchema, CreateTailorDBServiceResponseSchema, CreateTailorDBTypeRequestSchema, CreateTailorDBTypeResponseSchema, DeleteTailorDBGQLPermissionRequestSchema, DeleteTailorDBGQLPermissionResponseSchema, DeleteTailorDBServiceRequestSchema, DeleteTailorDBServiceResponseSchema, DeleteTailorDBTypeRequestSchema, DeleteTailorDBTypeResponseSchema, GetTailorDBGQLPermissionRequestSchema, GetTailorDBGQLPermissionResponseSchema, GetTailorDBServiceRequestSchema, GetTailorDBServiceResponseSchema, GetTailorDBTypeRequestSchema, GetTailorDBTypeResponseSchema, ListTailorDBGQLPermissionsRequestSchema, ListTailorDBGQLPermissionsResponseSchema, ListTailorDBServicesRequestSchema, ListTailorDBServicesResponseSchema, ListTailorDBTypesRequestSchema, ListTailorDBTypesResponseSchema, TruncateTailorDBTypeRequestSchema, TruncateTailorDBTypeResponseSchema, TruncateTailorDBTypesRequestSchema, TruncateTailorDBTypesResponseSchema, UpdateTailorDBGQLPermissionRequestSchema, UpdateTailorDBGQLPermissionResponseSchema, UpdateTailorDBServiceRequestSchema, UpdateTailorDBServiceResponseSchema, UpdateTailorDBTypeRequestSchema, UpdateTailorDBTypeResponseSchema } from "../../tailor-proto/src/tailor/v1/tailordb_pb.mjs";
|
|
@@ -12,14 +13,13 @@ import { CancelJobFunctionExecutionRequestSchema, CancelJobFunctionExecutionResp
|
|
|
12
13
|
import { CreateFunctionRegistryRequestSchema, CreateFunctionRegistryResponseSchema, DeleteFunctionRegistryRequestSchema, DeleteFunctionRegistryResponseSchema, DownloadFunctionRegistryScriptRequestSchema, DownloadFunctionRegistryScriptResponseSchema, GetFunctionRegistryRequestSchema, GetFunctionRegistryResponseSchema, ListFunctionRegistriesRequestSchema, ListFunctionRegistriesResponseSchema, UpdateFunctionRegistryRequestSchema, UpdateFunctionRegistryResponseSchema } from "../../tailor-proto/src/tailor/v1/function_registry_pb.mjs";
|
|
13
14
|
import { ListMeterAITokenUsagesRequestSchema, ListMeterAITokenUsagesResponseSchema, ListMeterEventCountsRequestSchema, ListMeterEventCountsResponseSchema, ListMeterExecutionCountsRequestSchema, ListMeterExecutionCountsResponseSchema, ListMeterRequestCountsRequestSchema, ListMeterRequestCountsResponseSchema } from "../../tailor-proto/src/tailor/v1/meter_pb.mjs";
|
|
14
15
|
import { CreateIdPClientRequestSchema, CreateIdPClientResponseSchema, CreateIdPServiceRequestSchema, CreateIdPServiceResponseSchema, DeleteIdPClientRequestSchema, DeleteIdPClientResponseSchema, DeleteIdPServiceRequestSchema, DeleteIdPServiceResponseSchema, GetIdPClientRequestSchema, GetIdPClientResponseSchema, GetIdPServiceRequestSchema, GetIdPServiceResponseSchema, ListIdPClientsRequestSchema, ListIdPClientsResponseSchema, ListIdPServicesRequestSchema, ListIdPServicesResponseSchema, UpdateIdPServiceRequestSchema, UpdateIdPServiceResponseSchema } from "../../tailor-proto/src/tailor/v1/idp_pb.mjs";
|
|
15
|
-
import { AddCustomDomainRequestSchema, AddCustomDomainResponseSchema, CreateDeploymentRequestSchema, CreateDeploymentResponseSchema, CreateStaticWebsiteRequestSchema, CreateStaticWebsiteResponseSchema, DeleteStaticWebsiteRequestSchema, DeleteStaticWebsiteResponseSchema, GetCustomDomainRequestSchema, GetCustomDomainResponseSchema, GetStaticWebsiteRequestSchema, GetStaticWebsiteResponseSchema, ListCustomDomainsRequestSchema, ListCustomDomainsResponseSchema, ListStaticWebsitesRequestSchema, ListStaticWebsitesResponseSchema, PublishDeploymentRequestSchema, PublishDeploymentResponseSchema, RemoveCustomDomainRequestSchema, RemoveCustomDomainResponseSchema, UpdateStaticWebsiteRequestSchema, UpdateStaticWebsiteResponseSchema, UploadFileRequestSchema, UploadFileResponseSchema } from "../../tailor-proto/src/tailor/v1/staticwebsite_pb.mjs";
|
|
16
|
+
import { AcceptCustomDomainTransferRequestSchema, AcceptCustomDomainTransferResponseSchema, AddCustomDomainRequestSchema, AddCustomDomainResponseSchema, CancelCustomDomainTransferRequestSchema, CancelCustomDomainTransferResponseSchema, CreateDeploymentRequestSchema, CreateDeploymentResponseSchema, CreateStaticWebsiteRequestSchema, CreateStaticWebsiteResponseSchema, DeleteStaticWebsiteRequestSchema, DeleteStaticWebsiteResponseSchema, GetCustomDomainRequestSchema, GetCustomDomainResponseSchema, GetCustomDomainTransferRequestSchema, GetCustomDomainTransferResponseSchema, GetStaticWebsiteRequestSchema, GetStaticWebsiteResponseSchema, ListCustomDomainTransfersRequestSchema, ListCustomDomainTransfersResponseSchema, ListCustomDomainsRequestSchema, ListCustomDomainsResponseSchema, ListStaticWebsitesRequestSchema, ListStaticWebsitesResponseSchema, PublishDeploymentRequestSchema, PublishDeploymentResponseSchema, RemoveCustomDomainRequestSchema, RemoveCustomDomainResponseSchema, RequestCustomDomainTransferRequestSchema, RequestCustomDomainTransferResponseSchema, UpdateStaticWebsiteRequestSchema, UpdateStaticWebsiteResponseSchema, UploadFileRequestSchema, UploadFileResponseSchema } from "../../tailor-proto/src/tailor/v1/staticwebsite_pb.mjs";
|
|
16
17
|
import { CancelWorkflowExecutionRequestSchema, CancelWorkflowExecutionResponseSchema, CreateWorkflowJobFunctionExecutionPolicyRequestSchema, CreateWorkflowJobFunctionExecutionPolicyResponseSchema, CreateWorkflowJobFunctionRequestSchema, CreateWorkflowJobFunctionResponseSchema, CreateWorkflowRequestSchema, CreateWorkflowResponseSchema, DeleteWorkflowJobFunctionExecutionPolicyRequestSchema, DeleteWorkflowJobFunctionExecutionPolicyResponseSchema, DeleteWorkflowJobFunctionRequestSchema, DeleteWorkflowJobFunctionResponseSchema, DeleteWorkflowRequestSchema, DeleteWorkflowResponseSchema, GetWorkflowByNameRequestSchema, GetWorkflowByNameResponseSchema, GetWorkflowExecutionRequestSchema, GetWorkflowExecutionResponseSchema, GetWorkflowJobFunctionByNameRequestSchema, GetWorkflowJobFunctionByNameResponseSchema, GetWorkflowJobFunctionExecutionPolicyByKeyRequestSchema, GetWorkflowJobFunctionExecutionPolicyByKeyResponseSchema, GetWorkflowJobFunctionExecutionPolicyRequestSchema, GetWorkflowJobFunctionExecutionPolicyResponseSchema, GetWorkflowJobFunctionRequestSchema, GetWorkflowJobFunctionResponseSchema, GetWorkflowRequestSchema, GetWorkflowResponseSchema, ListWorkflowExecutionsRequestSchema, ListWorkflowExecutionsResponseSchema, ListWorkflowJobFunctionExecutionPoliciesRequestSchema, ListWorkflowJobFunctionExecutionPoliciesResponseSchema, ListWorkflowJobFunctionsRequestSchema, ListWorkflowJobFunctionsResponseSchema, ListWorkflowsRequestSchema, ListWorkflowsResponseSchema, ResumeWorkflowExecutionRequestSchema, ResumeWorkflowExecutionResponseSchema, StartWorkflowRequestSchema, StartWorkflowResponseSchema, TestResumeWorkflowRequestSchema, TestResumeWorkflowResponseSchema, TestStartWorkflowRequestSchema, TestStartWorkflowResponseSchema, UpdateWorkflowJobFunctionExecutionPolicyRequestSchema, UpdateWorkflowJobFunctionExecutionPolicyResponseSchema, UpdateWorkflowJobFunctionRequestSchema, UpdateWorkflowJobFunctionResponseSchema, UpdateWorkflowRequestSchema, UpdateWorkflowResponseSchema } from "../../tailor-proto/src/tailor/v1/workflow_pb.mjs";
|
|
17
18
|
import { BulkSetMetadataRequestSchema, BulkSetMetadataResponseSchema, GetMetadataRequestSchema, GetMetadataResponseSchema, ListMetadataRequestSchema, ListMetadataResponseSchema, SetMetadataRequestSchema, SetMetadataResponseSchema } from "../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
18
19
|
import { CreateOTLPExporterRequestSchema, CreateOTLPExporterResponseSchema, CreateResourceAttributesConfigRequestSchema, CreateResourceAttributesConfigResponseSchema, DeleteOTLPExporterRequestSchema, DeleteOTLPExporterResponseSchema, DeleteResourceAttributesConfigRequestSchema, DeleteResourceAttributesConfigResponseSchema, GetOTLPExporterRequestSchema, GetOTLPExporterResponseSchema, GetResourceAttributesConfigRequestSchema, GetResourceAttributesConfigResponseSchema, ListOTLPExportersRequestSchema, ListOTLPExportersResponseSchema, TestOTLPExporterRequestSchema, TestOTLPExporterResponseSchema, UpdateOTLPExporterRequestSchema, UpdateOTLPExporterResponseSchema, UpdateResourceAttributesConfigRequestSchema, UpdateResourceAttributesConfigResponseSchema } from "../../tailor-proto/src/tailor/v1/telemetryrouter_pb.mjs";
|
|
19
20
|
import { OperatorService, PingRequestSchema, PingResponseSchema } from "../../tailor-proto/src/tailor/v1/service_pb.mjs";
|
|
20
21
|
import "@badgateway/oauth2-client";
|
|
21
22
|
import { Client } from "@connectrpc/connect";
|
|
22
|
-
//#region src/cli/shared/client.d.ts
|
|
23
23
|
export type PlatformClientConfig = {
|
|
24
24
|
platformUrl?: string;
|
|
25
25
|
oauth2ClientId?: string;
|
|
@@ -28,6 +28,9 @@ export type PlatformClientConfig = {
|
|
|
28
28
|
export type OperatorClient = Client<typeof OperatorService>;
|
|
29
29
|
/**
|
|
30
30
|
* Initialize an Operator client with the given access token.
|
|
31
|
+
* A client created with a token that `loadAccessToken` returned for a browser login
|
|
32
|
+
* (`tailor login`) renews the token while it runs, so it keeps working past the token's
|
|
33
|
+
* lifetime; this can refresh and save the stored login. Other tokens are sent as given.
|
|
31
34
|
* @param accessToken - Access token for authentication
|
|
32
35
|
* @param config - Optional platform connection settings
|
|
33
36
|
* @returns Configured Operator client
|
|
@@ -238,6 +241,31 @@ export declare function initOperatorClient(accessToken: string, config?: Platfor
|
|
|
238
241
|
input: typeof DeleteOrganizationFolderIPRestrictionRequestSchema;
|
|
239
242
|
output: typeof DeleteOrganizationFolderIPRestrictionResponseSchema;
|
|
240
243
|
};
|
|
244
|
+
listOrganizationSecurityChecks: {
|
|
245
|
+
methodKind: "unary";
|
|
246
|
+
input: typeof ListOrganizationSecurityChecksRequestSchema;
|
|
247
|
+
output: typeof ListOrganizationSecurityChecksResponseSchema;
|
|
248
|
+
};
|
|
249
|
+
listOrganizationSecurityFindings: {
|
|
250
|
+
methodKind: "unary";
|
|
251
|
+
input: typeof ListOrganizationSecurityFindingsRequestSchema;
|
|
252
|
+
output: typeof ListOrganizationSecurityFindingsResponseSchema;
|
|
253
|
+
};
|
|
254
|
+
createOrganizationSecurityFindingMute: {
|
|
255
|
+
methodKind: "unary";
|
|
256
|
+
input: typeof CreateOrganizationSecurityFindingMuteRequestSchema;
|
|
257
|
+
output: typeof CreateOrganizationSecurityFindingMuteResponseSchema;
|
|
258
|
+
};
|
|
259
|
+
deleteOrganizationSecurityFindingMute: {
|
|
260
|
+
methodKind: "unary";
|
|
261
|
+
input: typeof DeleteOrganizationSecurityFindingMuteRequestSchema;
|
|
262
|
+
output: typeof DeleteOrganizationSecurityFindingMuteResponseSchema;
|
|
263
|
+
};
|
|
264
|
+
listOrganizationSecurityFindingMutes: {
|
|
265
|
+
methodKind: "unary";
|
|
266
|
+
input: typeof ListOrganizationSecurityFindingMutesRequestSchema;
|
|
267
|
+
output: typeof ListOrganizationSecurityFindingMutesResponseSchema;
|
|
268
|
+
};
|
|
241
269
|
createOrganizationTeam: {
|
|
242
270
|
methodKind: "unary";
|
|
243
271
|
input: typeof CreateOrganizationTeamRequestSchema;
|
|
@@ -1083,6 +1111,31 @@ export declare function initOperatorClient(accessToken: string, config?: Platfor
|
|
|
1083
1111
|
input: typeof RemoveCustomDomainRequestSchema;
|
|
1084
1112
|
output: typeof RemoveCustomDomainResponseSchema;
|
|
1085
1113
|
};
|
|
1114
|
+
requestCustomDomainTransfer: {
|
|
1115
|
+
methodKind: "unary";
|
|
1116
|
+
input: typeof RequestCustomDomainTransferRequestSchema;
|
|
1117
|
+
output: typeof RequestCustomDomainTransferResponseSchema;
|
|
1118
|
+
};
|
|
1119
|
+
cancelCustomDomainTransfer: {
|
|
1120
|
+
methodKind: "unary";
|
|
1121
|
+
input: typeof CancelCustomDomainTransferRequestSchema;
|
|
1122
|
+
output: typeof CancelCustomDomainTransferResponseSchema;
|
|
1123
|
+
};
|
|
1124
|
+
acceptCustomDomainTransfer: {
|
|
1125
|
+
methodKind: "unary";
|
|
1126
|
+
input: typeof AcceptCustomDomainTransferRequestSchema;
|
|
1127
|
+
output: typeof AcceptCustomDomainTransferResponseSchema;
|
|
1128
|
+
};
|
|
1129
|
+
getCustomDomainTransfer: {
|
|
1130
|
+
methodKind: "unary";
|
|
1131
|
+
input: typeof GetCustomDomainTransferRequestSchema;
|
|
1132
|
+
output: typeof GetCustomDomainTransferResponseSchema;
|
|
1133
|
+
};
|
|
1134
|
+
listCustomDomainTransfers: {
|
|
1135
|
+
methodKind: "unary";
|
|
1136
|
+
input: typeof ListCustomDomainTransfersRequestSchema;
|
|
1137
|
+
output: typeof ListCustomDomainTransfersResponseSchema;
|
|
1138
|
+
};
|
|
1086
1139
|
createDeployment: {
|
|
1087
1140
|
methodKind: "unary";
|
|
1088
1141
|
input: typeof CreateDeploymentRequestSchema;
|
|
@@ -1323,5 +1376,4 @@ export declare function initOperatorClient(accessToken: string, config?: Platfor
|
|
|
1323
1376
|
input: typeof DeleteResourceAttributesConfigRequestSchema;
|
|
1324
1377
|
output: typeof DeleteResourceAttributesConfigResponseSchema;
|
|
1325
1378
|
};
|
|
1326
|
-
}>>>;
|
|
1327
|
-
//#endregion
|
|
1379
|
+
}>>>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { CommonArgsType } from "./args.mjs";
|
|
2
|
-
import {
|
|
3
|
-
//#region src/cli/shared/command.d.ts
|
|
2
|
+
import { createDefineCommand } from "@politty/zod";
|
|
4
3
|
/**
|
|
5
4
|
* defineCommand with global args type (CommonArgsType).
|
|
6
5
|
* Use this for leaf commands with `run` to get type-safe access to global args.
|
|
7
6
|
* Parent commands with only `subCommands` can use `defineCommand` from politty directly.
|
|
8
7
|
*/
|
|
9
|
-
export declare const defineAppCommand: ReturnType<typeof createDefineCommand<CommonArgsType>>;
|
|
10
|
-
//#endregion
|
|
8
|
+
export declare const defineAppCommand: ReturnType<typeof createDefineCommand<CommonArgsType>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Plugin } from "../../plugin/types.mjs";
|
|
2
1
|
import { AppConfig, EnvValue } from "../../configure/config/types.mjs";
|
|
3
|
-
|
|
2
|
+
import { Plugin } from "../../plugin/types.mjs";
|
|
4
3
|
/**
|
|
5
4
|
* App config whose `env` entries have been resolved to the values that get
|
|
6
5
|
* deployed: the `{ value, allowSecretReason }` form accepted in `defineConfig`
|
|
@@ -27,5 +26,4 @@ export interface LoadConfigOptions {
|
|
|
27
26
|
export declare function loadConfig(configPath?: string, options?: LoadConfigOptions): Promise<{
|
|
28
27
|
config: LoadedConfig;
|
|
29
28
|
plugins: Plugin[];
|
|
30
|
-
}>;
|
|
31
|
-
//#endregion
|
|
29
|
+
}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LoadedConfig } from "./config-loader.mjs";
|
|
2
|
-
//#region src/cli/shared/config.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Extracts namespace keys under `config.db` that this app owns
|
|
5
4
|
* (i.e. not declared with `{ external: true }`). Use this for destructive
|
|
@@ -8,5 +7,4 @@ import { LoadedConfig } from "./config-loader.mjs";
|
|
|
8
7
|
* @param config - Loaded application configuration.
|
|
9
8
|
* @returns Owned namespace names in insertion order.
|
|
10
9
|
*/
|
|
11
|
-
export declare function extractOwnedNamespaces(config: LoadedConfig): string[];
|
|
12
|
-
//#endregion
|
|
10
|
+
export declare function extractOwnedNamespaces(config: LoadedConfig): string[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./args.mjs";
|
|
2
2
|
import "./client.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region src/cli/shared/context.d.ts
|
|
5
4
|
type LoadWorkspaceIdOptions = {
|
|
6
5
|
workspaceId?: string;
|
|
7
6
|
profile?: string;
|
|
@@ -25,5 +24,4 @@ export declare function loadWorkspaceId(opts?: LoadWorkspaceIdOptions): Promise<
|
|
|
25
24
|
* @returns Resolved access token
|
|
26
25
|
*/
|
|
27
26
|
export declare function loadAccessToken(opts?: LoadAccessTokenOptions): Promise<string>;
|
|
28
|
-
//#endregion
|
|
29
27
|
export {};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Jsonifiable } from "type-fest";
|
|
2
|
-
//#region src/cli/shared/error-diagnostics.d.ts
|
|
3
2
|
/** Where a failure originated, for tooling that links to source. */
|
|
4
3
|
export interface ErrorSourceLocation {
|
|
5
4
|
/** Absolute path to the file the failure points at. */
|
|
6
5
|
file: string;
|
|
7
6
|
/** 1-based line within `file`. */
|
|
8
7
|
line?: number;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
8
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Jsonifiable } from "type-fest";
|
|
2
|
-
//#region src/cli/shared/error-json.d.ts
|
|
3
2
|
export interface ErrorToJsonOptions {
|
|
4
3
|
/** Include the original stack trace in the error envelope. */
|
|
5
4
|
includeStack?: boolean;
|
|
@@ -40,5 +39,4 @@ export declare function errorToJson(error: unknown, options?: ErrorToJsonOptions
|
|
|
40
39
|
* @param options - JSON serialization options
|
|
41
40
|
* @returns Serialized JSON error envelope
|
|
42
41
|
*/
|
|
43
|
-
export declare function serializeError(error: unknown, options?: ErrorToJsonOptions): string;
|
|
44
|
-
//#endregion
|
|
42
|
+
export declare function serializeError(error: unknown, options?: ErrorToJsonOptions): string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "../../tailor-proto/src/tailor/v1/function_resource_pb.mjs";
|
|
2
|
-
//#region src/cli/shared/function-execution.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A structured log line recorded while a function execution ran.
|
|
5
4
|
*/
|
|
@@ -10,5 +9,4 @@ export interface FunctionLogEntryInfo {
|
|
|
10
9
|
severity: string;
|
|
11
10
|
/** When the line was logged, or null when unknown */
|
|
12
11
|
timestamp: Date | null;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
12
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ErrorSourceLocation } from "./error-diagnostics.mjs";
|
|
2
|
-
//#region src/cli/shared/github-actions.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Attach the source location a failure points at.
|
|
5
4
|
*
|
|
@@ -20,5 +19,4 @@ export declare function withSourceLocation<T extends Error>(error: T, location:
|
|
|
20
19
|
export declare function annotateTerminalError(error: unknown, options: {
|
|
21
20
|
jsonMode: boolean;
|
|
22
21
|
suggestion?: string;
|
|
23
|
-
}): void;
|
|
24
|
-
//#endregion
|
|
22
|
+
}): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StyleFn } from "../../shared/src/color.mjs";
|
|
2
|
-
//#region src/cli/shared/logger.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* What selected JSON output: an explicit `--json`, the environment, both, or
|
|
5
4
|
* the AI coding agent running the CLI.
|
|
@@ -62,7 +61,12 @@ export declare const logger: {
|
|
|
62
61
|
* @param source - What turned it on; omit when turning it off
|
|
63
62
|
*/
|
|
64
63
|
setJsonMode(value: boolean, source?: JsonModeSource): void;
|
|
65
|
-
verbose: boolean;
|
|
64
|
+
get verbose(): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Turn verbose output on or off, overriding `DEBUG` and `RUNNER_DEBUG`.
|
|
67
|
+
* @param value - Whether verbose output is on, or undefined to defer to `DEBUG` and `RUNNER_DEBUG`
|
|
68
|
+
*/
|
|
69
|
+
set verbose(value: boolean | undefined);
|
|
66
70
|
info(message: string, opts?: LogOptions): void;
|
|
67
71
|
success(message: string, opts?: LogOptions): void;
|
|
68
72
|
warn(message: string, opts?: LogOptions): void;
|
|
@@ -89,5 +93,4 @@ export declare const logger: {
|
|
|
89
93
|
*/
|
|
90
94
|
registerSecret(value: string): void;
|
|
91
95
|
out(data: string | object | object[], options?: OutOptions): void;
|
|
92
|
-
};
|
|
93
|
-
//#endregion
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "rolldown";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cli/shared/prompt.d.ts
|
|
2
1
|
/** Options accepted by {@link prompt.confirm}. */
|
|
3
2
|
export interface ConfirmConfig {
|
|
4
3
|
message: string;
|
|
@@ -48,5 +47,4 @@ export declare const prompt: {
|
|
|
48
47
|
text: (config: TextConfig) => Promise<string>;
|
|
49
48
|
password: (config: PasswordConfig) => Promise<string>;
|
|
50
49
|
select: <const Value>(config: SelectConfig<Value>) => Promise<Value>;
|
|
51
|
-
};
|
|
52
|
-
//#endregion
|
|
50
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cli/shared/readonly-guard.d.ts
|
|
2
1
|
interface AssertWritableOptions {
|
|
3
2
|
/** Explicit profile name from command args. Falls back to TAILOR_PLATFORM_PROFILE. */
|
|
4
3
|
profile?: string;
|
|
@@ -21,5 +20,4 @@ interface AssertWritableOptions {
|
|
|
21
20
|
* @param opts.profile - Optional explicit profile name from command args
|
|
22
21
|
*/
|
|
23
22
|
export declare function assertWritable(opts?: AssertWritableOptions): Promise<void>;
|
|
24
|
-
//#endregion
|
|
25
23
|
export {};
|
|
@@ -3,7 +3,6 @@ import { FunctionExecution_Status } from "../../tailor-proto/src/tailor/v1/funct
|
|
|
3
3
|
import { OperatorClient } from "./client.mjs";
|
|
4
4
|
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
5
5
|
import { Jsonifiable } from "type-fest";
|
|
6
|
-
//#region src/cli/shared/script-executor.d.ts
|
|
7
6
|
/** Authentication context for script execution, provided as a plain object. */
|
|
8
7
|
export type ScriptInvoker = MessageInitShape<typeof AuthInvokerSchema>;
|
|
9
8
|
/**
|
|
@@ -72,5 +71,4 @@ export declare function waitForExecution(client: OperatorClient, workspaceId: st
|
|
|
72
71
|
* @param {ScriptExecutionOptions} options - Execution options
|
|
73
72
|
* @returns {Promise<ScriptExecutionResult>} Execution result
|
|
74
73
|
*/
|
|
75
|
-
export declare function executeScript<T extends Jsonifiable = Jsonifiable>(options: ScriptExecutionOptions<T>): Promise<ScriptExecutionResult>;
|
|
76
|
-
//#endregion
|
|
74
|
+
export declare function executeScript<T extends Jsonifiable = Jsonifiable>(options: ScriptExecutionOptions<T>): Promise<ScriptExecutionResult>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JsonObject } from "type-fest";
|
|
2
|
-
//#region src/cli/shared/seed-chunker.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Seed data keyed by table name, with an array of records per table.
|
|
5
4
|
*/
|
|
@@ -40,5 +39,4 @@ export type ChunkSeedDataOptions = {
|
|
|
40
39
|
* @param options - Chunking options
|
|
41
40
|
* @returns Array of seed chunks
|
|
42
41
|
*/
|
|
43
|
-
export declare function chunkSeedData(options: ChunkSeedDataOptions): SeedChunk[];
|
|
44
|
-
//#endregion
|
|
42
|
+
export declare function chunkSeedData(options: ChunkSeedDataOptions): SeedChunk[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LoadedConfig } from "./config-loader.mjs";
|
|
2
2
|
import { SeedNamespaceConfig } from "../../plugin/builtin/seed/seed-type-processor.mjs";
|
|
3
|
-
//#region src/cli/shared/seed-context.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* IdP `_User` seeding context, present when the config uses the built-in IdP
|
|
6
5
|
* with a user profile type.
|
|
@@ -52,5 +51,4 @@ export interface LoadSeedContextOptions {
|
|
|
52
51
|
* @returns The seed context computed from the local config.
|
|
53
52
|
*/
|
|
54
53
|
export declare function loadSeedContext(options?: LoadSeedContextOptions): Promise<SeedContext>;
|
|
55
|
-
//#endregion
|
|
56
54
|
export type { SeedNamespaceConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../configure/config/types.mjs";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Plugin, TailorDBNamespaceData } from "../../plugin/types.mjs";
|
|
2
2
|
import { LoadedConfig } from "./config-loader.mjs";
|
|
3
3
|
import "../services/application.mjs";
|
|
4
|
-
//#region src/cli/shared/tailordb-namespaces.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Namespace selection for {@link loadTailorDBNamespaces}: explicit namespace
|
|
7
6
|
* names, or a selector deriving them from the loaded config and its plugins.
|
|
@@ -35,5 +34,4 @@ export interface LoadedTailorDBNamespaces {
|
|
|
35
34
|
* @param options - Namespace loading options.
|
|
36
35
|
* @returns The loaded config and TailorDB namespace data.
|
|
37
36
|
*/
|
|
38
|
-
export declare function loadTailorDBNamespaces(options?: LoadTailorDBNamespacesOptions): Promise<LoadedTailorDBNamespaces>;
|
|
39
|
-
//#endregion
|
|
37
|
+
export declare function loadTailorDBNamespaces(options?: LoadTailorDBNamespacesOptions): Promise<LoadedTailorDBNamespaces>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "../../configure/config/types.mjs";
|
|
2
2
|
import { ResolvedEnvAppConfig } from "./config-loader.mjs";
|
|
3
|
-
//#region src/cli/shared/type-generator.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Options for generating user type definitions
|
|
6
5
|
*/
|
|
@@ -16,5 +15,4 @@ interface GenerateUserTypesOptions {
|
|
|
16
15
|
* @returns Promise that resolves when types are generated
|
|
17
16
|
*/
|
|
18
17
|
export declare function generateUserTypes(options: GenerateUserTypesOptions): Promise<void>;
|
|
19
|
-
//#endregion
|
|
20
18
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/shared/workspace-name.d.ts
|
|
3
2
|
/** Maximum number of characters in a workspace name. */
|
|
4
3
|
export declare const WORKSPACE_NAME_MAX_LENGTH = 63;
|
|
5
4
|
/**
|
|
@@ -7,5 +6,4 @@ export declare const WORKSPACE_NAME_MAX_LENGTH = 63;
|
|
|
7
6
|
* lowercase alphanumeric or hyphen characters, not starting or ending with a
|
|
8
7
|
* hyphen.
|
|
9
8
|
*/
|
|
10
|
-
export declare const workspaceNameSchema: z.ZodString;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const workspaceNameSchema: z.ZodString;
|
package/dist/cli/ts-hook.d.mts
CHANGED
package/dist/cli/ts-hook.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
|
-
import { readFile } from "node:fs/promises";
|
|
3
2
|
import { dirname, join, resolve as resolvePath } from "node:path";
|
|
4
3
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
4
|
// Node.js module hook: TypeScript resolver + type stripper via amaro.
|
|
@@ -124,27 +123,6 @@ function matchTsconfigPaths(specifier, paths) {
|
|
|
124
123
|
return null;
|
|
125
124
|
}
|
|
126
125
|
|
|
127
|
-
async function tryResolveWithExtensions(base, context, nextResolve) {
|
|
128
|
-
if (!TS_EXTENSIONS.some((ext) => base.endsWith(ext))) {
|
|
129
|
-
for (const ext of TS_EXTENSIONS) {
|
|
130
|
-
for (const suffix of ["", "/index"]) {
|
|
131
|
-
try {
|
|
132
|
-
return await nextResolve(base + suffix + ext, context);
|
|
133
|
-
} catch (e) {
|
|
134
|
-
if (e?.code !== "ERR_MODULE_NOT_FOUND") throw e;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
try {
|
|
140
|
-
return await nextResolve(base, context);
|
|
141
|
-
} catch (e) {
|
|
142
|
-
const code = e?.code;
|
|
143
|
-
if (code !== "ERR_MODULE_NOT_FOUND" && code !== "ERR_UNSUPPORTED_DIR_IMPORT") throw e;
|
|
144
|
-
}
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
126
|
function tryResolveWithExtensionsSync(base, context, nextResolve) {
|
|
149
127
|
if (!TS_EXTENSIONS.some((ext) => base.endsWith(ext))) {
|
|
150
128
|
for (const ext of TS_EXTENSIONS) {
|
|
@@ -198,97 +176,6 @@ function isProjectLocalSpecifier(specifier) {
|
|
|
198
176
|
|
|
199
177
|
// --- module hooks ---
|
|
200
178
|
|
|
201
|
-
export async function resolve(specifier, context, nextResolve) {
|
|
202
|
-
const { parentURL } = context;
|
|
203
|
-
const resolved = await resolveTs(specifier, context, nextResolve);
|
|
204
|
-
return isProjectLocalSpecifier(specifier) ? propagateImportNonce(resolved, parentURL) : resolved;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
async function resolveTs(specifier, context, nextResolve) {
|
|
208
|
-
const { parentURL } = context;
|
|
209
|
-
try {
|
|
210
|
-
return await nextResolve(specifier, context);
|
|
211
|
-
} catch (err) {
|
|
212
|
-
if (err.code !== "ERR_MODULE_NOT_FOUND" && err.code !== "ERR_UNSUPPORTED_DIR_IMPORT") throw err;
|
|
213
|
-
|
|
214
|
-
if (
|
|
215
|
-
err.code === "ERR_UNSUPPORTED_DIR_IMPORT" &&
|
|
216
|
-
(specifier.startsWith(".") || specifier.startsWith("/"))
|
|
217
|
-
) {
|
|
218
|
-
for (const ext of TS_EXTENSIONS) {
|
|
219
|
-
try {
|
|
220
|
-
return await nextResolve(specifier + "/index" + ext, context);
|
|
221
|
-
} catch (e) {
|
|
222
|
-
if (e?.code !== "ERR_MODULE_NOT_FOUND") throw e;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
throw err;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
if (!specifier.startsWith(".") && !specifier.startsWith("/")) {
|
|
229
|
-
// Non-relative: try tsconfig path aliases
|
|
230
|
-
if (parentURL?.startsWith("file://")) {
|
|
231
|
-
const parentParsed = new URL(parentURL);
|
|
232
|
-
const parentNonce = parentParsed.searchParams.get(IMPORT_NONCE_PARAM) ?? "";
|
|
233
|
-
parentParsed.search = "";
|
|
234
|
-
parentParsed.hash = "";
|
|
235
|
-
const parentDir = dirname(fileURLToPath(parentParsed));
|
|
236
|
-
const tsconfigPaths = loadTsconfigPaths(parentDir, parentNonce);
|
|
237
|
-
const candidates = matchTsconfigPaths(specifier, tsconfigPaths);
|
|
238
|
-
if (candidates) {
|
|
239
|
-
for (const candidate of candidates) {
|
|
240
|
-
const result = await tryResolveWithExtensions(candidate, context, nextResolve);
|
|
241
|
-
if (result) return propagateImportNonce(result, parentURL);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
throw err;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
const lastSegment = specifier.split("/").pop() ?? "";
|
|
249
|
-
if (!KNOWN_EXTENSIONS.some((ext) => lastSegment.endsWith(ext))) {
|
|
250
|
-
for (const ext of TS_EXTENSIONS) {
|
|
251
|
-
try {
|
|
252
|
-
return await nextResolve(specifier + ext, context);
|
|
253
|
-
} catch (e) {
|
|
254
|
-
if (e?.code !== "ERR_MODULE_NOT_FOUND") throw e;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
for (const [jsExt, tsExt] of JS_TO_TS) {
|
|
260
|
-
if (specifier.endsWith(jsExt)) {
|
|
261
|
-
try {
|
|
262
|
-
return await nextResolve(specifier.slice(0, -jsExt.length) + tsExt, context);
|
|
263
|
-
} catch (e) {
|
|
264
|
-
if (e?.code !== "ERR_MODULE_NOT_FOUND") throw e;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
throw err;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export async function load(url, context, nextLoad) {
|
|
274
|
-
if (url.startsWith("file:")) {
|
|
275
|
-
const parsedUrl = new URL(url);
|
|
276
|
-
if (
|
|
277
|
-
TS_EXTENSIONS.some((ext) => parsedUrl.pathname.endsWith(ext)) &&
|
|
278
|
-
!parsedUrl.pathname.endsWith(".d.ts") &&
|
|
279
|
-
!parsedUrl.pathname.endsWith(".d.mts")
|
|
280
|
-
) {
|
|
281
|
-
parsedUrl.search = "";
|
|
282
|
-
parsedUrl.hash = "";
|
|
283
|
-
const filePath = fileURLToPath(parsedUrl);
|
|
284
|
-
const source = await readFile(filePath, "utf-8");
|
|
285
|
-
const { code } = transformSync(source, { mode: "transform", filename: filePath });
|
|
286
|
-
return { format: "module", shortCircuit: true, source: `${code}\n//# sourceURL=${url}` };
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
return nextLoad(url, context);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
179
|
// Sync hooks for module.registerHooks() (Node >= 22.15.0). Node < 22.18.0 crashes
|
|
293
180
|
// on require() of scheme-only builtins (node:sqlite, node:test, node:sea) once both
|
|
294
181
|
// resolve and load are registered — nodejs/node#58607, fixed by nodejs/node#58612.
|