@tailor-platform/sdk 2.29.2 → 2.30.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 +22 -0
- package/dist/aigateway-DsWDjzk4.mjs.map +1 -1
- package/dist/{application-Dm_21z-i.mjs → application-C2bPmmbh.mjs} +1 -1
- package/dist/{application-D8jruzwo.mjs → application-D0xNJbag.mjs} +32 -32
- package/dist/{application-D8jruzwo.mjs.map → application-D0xNJbag.mjs.map} +1 -1
- package/dist/assert-WeXvmG4j.mjs.map +1 -1
- package/dist/authconnection-CynFBIv8.mjs.map +1 -1
- package/dist/brand-C8nMKhJC.mjs.map +1 -1
- package/dist/cli/commands/machineuser/list.d.mts +2 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.mjs +16 -16
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/shared/error-json.d.mts +2 -0
- package/dist/completion/zsh-worker.zsh +1 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/context-D0QjfxzD.mjs.map +1 -1
- package/dist/{crashreport-BAG8c7hB.mjs → crashreport-BCIy33Cz.mjs} +2 -2
- package/dist/{crashreport-BAG8c7hB.mjs.map → crashreport-BCIy33Cz.mjs.map} +1 -1
- package/dist/crashreport-IN6H7GX3.mjs +1 -0
- package/dist/date-CgP7gMG_.mjs.map +1 -1
- package/dist/date-representation-Cr7W7Pn2.mjs.map +1 -1
- package/dist/errors-BOF68LJ5.mjs +5 -0
- package/dist/errors-BOF68LJ5.mjs.map +1 -0
- package/dist/es-builtins-SfvXRVoG.mjs.map +1 -1
- package/dist/field-parse-C41e3UAF.mjs.map +1 -1
- package/dist/file-DKBOj5q4.mjs.map +1 -1
- package/dist/globals-BCmGX05J.mjs.map +1 -1
- package/dist/guards-yDXyKC9F.mjs.map +1 -1
- package/dist/iconv-DlFMt2gW.mjs.map +1 -1
- package/dist/idp-G_ojPBB5.mjs.map +1 -1
- package/dist/interceptor-DQg3cR_9.mjs.map +1 -1
- package/dist/kysely/index.mjs.map +1 -1
- package/dist/kysely-type-BWMfV301.mjs.map +1 -1
- package/dist/logger-DP2BjQ93.mjs.map +1 -1
- package/dist/{logger-DuaT2zY3.mjs → logger-RgtbhJ83.mjs} +3 -3
- package/dist/logger-RgtbhJ83.mjs.map +1 -0
- package/dist/manager-Bk-7vkwd.mjs.map +1 -1
- package/dist/migration-steps-C6F3zNdQ.mjs.map +1 -1
- package/dist/multiline-EyzjEwn9.mjs.map +1 -1
- package/dist/node-builtins-DYfhPBnz.mjs.map +1 -1
- package/dist/package-json-C690ceex.mjs.map +1 -1
- package/dist/platform-serialize-DkiTdHOt.mjs.map +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs.map +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{register-ts-hook-B5ZbbJwS.mjs → register-ts-hook-CDnN_Jx2.mjs} +65 -65
- package/dist/register-ts-hook-CDnN_Jx2.mjs.map +1 -0
- package/dist/registry-BijIDRVA.mjs.map +1 -1
- package/dist/repl-editor-DGJBfIt1.mjs.map +1 -1
- package/dist/schema-B6hJQWp6.mjs.map +1 -1
- package/dist/secret-file-C9wp_FCX.mjs.map +1 -1
- package/dist/secretmanager-vHQoXdQz.mjs.map +1 -1
- package/dist/seed/idp-user-password.d.mts +15 -0
- package/dist/seed/index.d.mts +19 -1
- package/dist/seed/index.mjs +6 -6
- package/dist/seed/index.mjs.map +1 -1
- package/dist/{seed-C3P_T_Eh.mjs → seed-Cn-3JApy.mjs} +12 -8
- package/dist/seed-Cn-3JApy.mjs.map +1 -0
- package/dist/{service-l_tEI8sS.mjs → service-9SBPNpK8.mjs} +2 -2
- package/dist/{service-l_tEI8sS.mjs.map → service-9SBPNpK8.mjs.map} +1 -1
- package/dist/{service-b1g22NN9.mjs → service-9rwi_I4d.mjs} +2 -2
- package/dist/{service-b1g22NN9.mjs.map → service-9rwi_I4d.mjs.map} +1 -1
- package/dist/service-Ca1WwyIt.mjs +1 -0
- package/dist/service_pb-Bbu2QSIr.mjs.map +1 -1
- package/dist/telemetry-Xk7J829P.mjs.map +1 -1
- package/dist/type-source--ZNcV8RJ.mjs.map +1 -1
- package/dist/user-agent-vdHYF3QL.mjs.map +1 -1
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/vitest/environment.mjs.map +1 -1
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/setup.mjs.map +1 -1
- package/dist/wait-point-invoker-eiP-IIux.mjs.map +1 -1
- package/dist/wait-point-registry-B-ESkTZX.mjs.map +1 -1
- package/dist/workflow-Cs9ISw6j.mjs.map +1 -1
- package/dist/workspace_resource_pb-CaoM2npP.mjs.map +1 -1
- package/docs/cli/application.md +4 -0
- package/docs/cli/auth.md +4 -0
- package/docs/cli/completion.md +4 -0
- package/docs/cli/crashreport.md +4 -0
- package/docs/cli/data.md +4 -0
- package/docs/cli/executor.md +4 -0
- package/docs/cli/function.md +4 -0
- package/docs/cli/organization.md +4 -0
- package/docs/cli/plugin.md +4 -0
- package/docs/cli/query.md +4 -0
- package/docs/cli/secret.md +4 -0
- package/docs/cli/skills.md +4 -0
- package/docs/cli/staticwebsite.md +4 -0
- package/docs/cli/tailordb.md +4 -0
- package/docs/cli/upgrade.md +4 -0
- package/docs/cli/user.md +4 -0
- package/docs/cli/workflow.md +4 -0
- package/docs/cli/workspace.md +4 -0
- package/docs/cli-reference.md +4 -0
- package/docs/configuration.md +4 -0
- package/docs/data-clone.md +4 -0
- package/docs/github-actions.md +10 -0
- package/docs/migration/v2.md +4 -0
- package/docs/multi-environment.md +4 -0
- package/docs/plugin/custom.md +4 -0
- package/docs/plugin/frontend.md +4 -0
- package/docs/plugin/index.md +4 -0
- package/docs/quickstart.md +4 -0
- package/docs/runtime.md +4 -0
- package/docs/services/aigateway.md +4 -0
- package/docs/services/auth.md +4 -0
- package/docs/services/executor.md +4 -0
- package/docs/services/http-adapter.md +4 -0
- package/docs/services/idp.md +4 -0
- package/docs/services/resolver.md +4 -0
- package/docs/services/secret.md +4 -0
- package/docs/services/staticwebsite.md +4 -0
- package/docs/services/tailordb/index.md +4 -0
- package/docs/services/tailordb/migration.md +4 -0
- package/docs/services/workflow.md +4 -0
- package/docs/testing.md +4 -0
- package/package.json +3 -3
- package/dist/crashreport-BcXuocwI.mjs +0 -1
- package/dist/errors-D3qpNHR6.mjs +0 -7
- package/dist/errors-D3qpNHR6.mjs.map +0 -1
- package/dist/logger-DuaT2zY3.mjs.map +0 -1
- package/dist/register-ts-hook-B5ZbbJwS.mjs.map +0 -1
- package/dist/seed-C3P_T_Eh.mjs.map +0 -1
- package/dist/service-C_CogLQr.mjs +0 -1
- package/docs/migration/v3.md +0 -277
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 2.30.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#2686](https://github.com/tailor-platform/sdk/pull/2686) [`b77ebdd`](https://github.com/tailor-platform/sdk/commit/b77ebddfebc3e7472f17c31bb03f340ba4f21ce6) Thanks [@toiroakr](https://github.com/toiroakr)! - `tailor machineuser list` no longer outputs `clientSecret`, and `MachineUserInfo.clientSecret` returned by `listMachineUsers` is now an optional property that is never set and is marked `@deprecated`. The Platform is moving to return a machine user's secret only from the single-user get call, so that a read-only credential can list machine users. TypeScript code that reads `MachineUserInfo.clientSecret` keeps compiling but receives `undefined`; scripts that read `clientSecret` from the JSON output of `machineuser list` no longer find the key. Use `tailor machineuser token <name>` to obtain an access token for a machine user instead.
|
|
8
|
+
|
|
9
|
+
- [#2647](https://github.com/tailor-platform/sdk/pull/2647) [`e45ca2b`](https://github.com/tailor-platform/sdk/commit/e45ca2b23835ba8e86f8707f270ade8039ec30c6) Thanks [@toiroakr](https://github.com/toiroakr)! - The password of IdP users (`_User`) can now come from the `SEED_USER_PASSWORD` environment variable. A `_User` row without a `password` gets it from the variable: a plain string is used for every such user, and a JSON object such as `{"alice@example.com":"..."}` sets it per user name. A password written in `_User.jsonl` is kept, and with `--upsert` the variable only sets the password of users that do not exist yet. `tailor seed validate` and `tailor seed apply` both apply it, and the generated `_User.schema.ts` calls it from its `hook`, so run `tailor generate` to update existing projects. The workflows `tailor setup ci` generates pass the `SEED_USER_PASSWORD` secret to the seed steps; run `tailor setup update` to regenerate them.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#2683](https://github.com/tailor-platform/sdk/pull/2683) [`2905c85`](https://github.com/tailor-platform/sdk/commit/2905c85821d7371ccda4c467460a2b1bd1364009) Thanks [@dqn](https://github.com/dqn)! - Hide secrets that contain a line break or a quote in CLI errors and suggested commands. Values the CLI masks as `<redacted>`, such as client secrets and access tokens, appeared unmasked in multi-line error details and suggestions, in suggested commands, and in the matching GitHub Actions annotation.
|
|
14
|
+
|
|
15
|
+
- [#2668](https://github.com/tailor-platform/sdk/pull/2668) [`ad679fa`](https://github.com/tailor-platform/sdk/commit/ad679fa432e9d50a714529bb68239dca495acabc) Thanks [@dqn](https://github.com/dqn)! - Hide secrets in CLI log output and `--json` error output when only part of the value is highlighted, and in progress spinner lines. Values the CLI masks as `<redacted>`, such as client secrets and access tokens, appeared unmasked in these cases. `--json` error output no longer includes color codes in its string values.
|
|
16
|
+
|
|
17
|
+
- [#2689](https://github.com/tailor-platform/sdk/pull/2689) [`9bffa6e`](https://github.com/tailor-platform/sdk/commit/9bffa6ed8a44d12c2ab8bdc607f8fcd53921e037) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency lines-db to v0.18.0
|
|
18
|
+
|
|
19
|
+
- [#2699](https://github.com/tailor-platform/sdk/pull/2699) [`ae44247`](https://github.com/tailor-platform/sdk/commit/ae44247178e8fabb21762f552e50525da046a2e0) Thanks [@haru0017](https://github.com/haru0017)! - Revert "fix(deps): update dependency rolldown to v1.2.14"
|
|
20
|
+
|
|
21
|
+
rolldown 1.2.14 can emit a malformed source map (a negative source line) for bundled functions, which can crash the platform runtime on debug builds while source-mapping a thrown error's stack trace. Downgrade to 1.2.13 as a temporary measure until the rolldown regression is resolved.
|
|
22
|
+
|
|
23
|
+
- [#2693](https://github.com/tailor-platform/sdk/pull/2693) [`373dafd`](https://github.com/tailor-platform/sdk/commit/373dafdac2b5da3bcf172f9a48a6c530b410f21b) Thanks [@toiroakr](https://github.com/toiroakr)! - Stop `tailor deploy` from reporting `Table '<name>' scripts differ between remote and snapshot` when machines with different system locales deploy the same schema. The TailorDB script hash ordered field names by the machine's default locale (for example, Czech sorts `ch` after `h`), so the same schema could hash differently and fail the deploy with remote schema drift. Hashes from en-US, ja-JP and C locales are unchanged. A table with scripts that was last deployed from a locale that orders its field names differently from English (for example cs-CZ, sk-SK, lt-LT or et-EE) may report this drift after upgrading, because the hash stored on the remote was computed in that locale's order.
|
|
24
|
+
|
|
3
25
|
## 2.29.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aigateway-DsWDjzk4.mjs","names":["aigateway","args"],"sources":["../src/runtime/aigateway.ts"],"sourcesContent":["/**\n * AI Gateway utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.aigateway` runtime API.\n * At runtime this delegates to `globalThis.tailor.aigateway`. Use `mockAigateway`\n * from `@tailor-platform/sdk/vitest` to mock these calls in unit tests.\n *\n * `name` is narrowed to the AI Gateway names defined via `defineAIGateway()`\n * once `tailor.d.ts` has been generated (via `tailor deploy`/`generate`).\n * @example\n * import { aigateway } from \"@tailor-platform/sdk/runtime\";\n *\n * const { url } = await aigateway.get(\"my-aigateway\");\n */\n\n// Import from the public entry (not `#/configure/types/aigateway-name`) so this d.ts\n// references `@tailor-platform/sdk` externally instead of inlining the registry — the\n// same generated `declare module \"@tailor-platform/sdk\"` that narrows\n// `authconnection.getConnectionToken` then also narrows this entry.\nimport type { AIGatewayName } from \"@tailor-platform/sdk\";\n\n/** Result of {@link TailorAigatewayAPI.get}. */\nexport interface GetAIGatewayResult {\n /** The platform-assigned URL of the AI Gateway. */\n url: string;\n}\n\n/**\n * Platform API surface for `tailor.aigateway`. Describes the shape the\n * platform runtime injects on `globalThis.tailor.aigateway`.\n */\nexport interface TailorAigatewayAPI {\n /**\n * Resolves an AI Gateway defined in the caller's own workspace.\n * @param name - AI Gateway name, as passed to `defineAIGateway()`\n * @returns The resolved AI Gateway's platform-assigned URL\n */\n get(name: AIGatewayName): Promise<GetAIGatewayResult>;\n}\n\nconst api = (): TailorAigatewayAPI =>\n (globalThis as unknown as { tailor: { aigateway: TailorAigatewayAPI } }).tailor.aigateway;\n\nconst get: TailorAigatewayAPI[\"get\"] = (...args) => api().get(...args);\n\n/** Runtime wrapper namespace for `tailor.aigateway`. */\nexport const aigateway = { get } as const satisfies TailorAigatewayAPI;\n"],"mappings":"AAwCA,MAAM,QACH,WAAwE,OAAO,UAKrEA,EAAY,CAAE,KAHa,GAAGC,IAAS,IAAI,CAAC,CAAC,IAAI,GAAGA,CAAI,CAGtC
|
|
1
|
+
{"version":3,"file":"aigateway-DsWDjzk4.mjs","names":["aigateway","args"],"sources":["../src/runtime/aigateway.ts"],"sourcesContent":["/**\n * AI Gateway utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.aigateway` runtime API.\n * At runtime this delegates to `globalThis.tailor.aigateway`. Use `mockAigateway`\n * from `@tailor-platform/sdk/vitest` to mock these calls in unit tests.\n *\n * `name` is narrowed to the AI Gateway names defined via `defineAIGateway()`\n * once `tailor.d.ts` has been generated (via `tailor deploy`/`generate`).\n * @example\n * import { aigateway } from \"@tailor-platform/sdk/runtime\";\n *\n * const { url } = await aigateway.get(\"my-aigateway\");\n */\n\n// Import from the public entry (not `#/configure/types/aigateway-name`) so this d.ts\n// references `@tailor-platform/sdk` externally instead of inlining the registry — the\n// same generated `declare module \"@tailor-platform/sdk\"` that narrows\n// `authconnection.getConnectionToken` then also narrows this entry.\nimport type { AIGatewayName } from \"@tailor-platform/sdk\";\n\n/** Result of {@link TailorAigatewayAPI.get}. */\nexport interface GetAIGatewayResult {\n /** The platform-assigned URL of the AI Gateway. */\n url: string;\n}\n\n/**\n * Platform API surface for `tailor.aigateway`. Describes the shape the\n * platform runtime injects on `globalThis.tailor.aigateway`.\n */\nexport interface TailorAigatewayAPI {\n /**\n * Resolves an AI Gateway defined in the caller's own workspace.\n * @param name - AI Gateway name, as passed to `defineAIGateway()`\n * @returns The resolved AI Gateway's platform-assigned URL\n */\n get(name: AIGatewayName): Promise<GetAIGatewayResult>;\n}\n\nconst api = (): TailorAigatewayAPI =>\n (globalThis as unknown as { tailor: { aigateway: TailorAigatewayAPI } }).tailor.aigateway;\n\nconst get: TailorAigatewayAPI[\"get\"] = (...args) => api().get(...args);\n\n/** Runtime wrapper namespace for `tailor.aigateway`. */\nexport const aigateway = { get } as const satisfies TailorAigatewayAPI;\n"],"mappings":"AAwCA,MAAM,QACH,WAAwE,OAAO,UAKrEA,EAAY,CAAE,KAHa,GAAGC,IAAS,IAAI,CAAC,CAAC,IAAI,GAAGA,CAAI,CAGtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{t as defineApplication,n as generatePluginFilesIfNeeded}from"./application-
|
|
1
|
+
export{t as defineApplication,n as generatePluginFilesIfNeeded}from"./application-D0xNJbag.mjs";
|