@tailor-platform/sdk 2.21.0 → 2.22.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 +34 -0
- package/agent-skills/tailor/SKILL.md +3 -1
- package/dist/application-BE4vehXW.mjs +1 -0
- package/dist/{application-D4913edS.mjs → application-BzO9ywXQ.mjs} +29 -29
- package/dist/application-BzO9ywXQ.mjs.map +1 -0
- package/dist/cli/commands/deploy/app-id-lock.d.mts +31 -0
- package/dist/cli/lib.d.mts +2 -2
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.mjs +39 -39
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/shared/logger.d.mts +9 -0
- package/dist/cli/shared/tailordb-namespaces.d.mts +1 -1
- package/dist/completion/zsh-worker.zsh +1 -1
- package/dist/configure/config/index.d.mts +2 -0
- package/dist/configure/index.mjs.map +1 -1
- package/dist/crashreport-CBaRJl5h.mjs +1 -0
- package/dist/{crashreport-BAz-ph5O.mjs → crashreport-DFpRn-LS.mjs} +4 -4
- package/dist/{crashreport-BAz-ph5O.mjs.map → crashreport-DFpRn-LS.mjs.map} +1 -1
- package/dist/{errors-sNtg2Mv3.mjs → errors-C9zGf4nz.mjs} +2 -2
- package/dist/{errors-sNtg2Mv3.mjs.map → errors-C9zGf4nz.mjs.map} +1 -1
- package/dist/guards-yDXyKC9F.mjs +2 -0
- package/dist/{guards-DsX7dJCP.mjs.map → guards-yDXyKC9F.mjs.map} +1 -1
- package/dist/logger-Db-YRTwK.mjs +9 -0
- package/dist/logger-Db-YRTwK.mjs.map +1 -0
- package/dist/{manager-C0dE7pd0.mjs → manager-8-JOvuLl.mjs} +2 -2
- package/dist/{manager-C0dE7pd0.mjs.map → manager-8-JOvuLl.mjs.map} +1 -1
- package/dist/plugin/index.mjs +1 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{register-ts-hook-YtsAGTMD.mjs → register-ts-hook-z7ggXQy4.mjs} +71 -70
- package/dist/register-ts-hook-z7ggXQy4.mjs.map +1 -0
- package/dist/seed/index.mjs +7 -6
- package/dist/seed/index.mjs.map +1 -1
- package/dist/service-Bx-7Lz06.mjs +1 -0
- package/dist/{service-BrGSi2IQ.mjs → service-CL1Bp4It.mjs} +3 -3
- package/dist/{service-BrGSi2IQ.mjs.map → service-CL1Bp4It.mjs.map} +1 -1
- package/dist/{service-8xznUrPU.mjs → service-DHVuH7-X.mjs} +2 -2
- package/dist/{service-8xznUrPU.mjs.map → service-DHVuH7-X.mjs.map} +1 -1
- package/dist/vitest/mocks/file.d.mts +1 -1
- package/docs/cli-reference.md +22 -12
- package/docs/configuration.md +1 -1
- package/docs/github-actions.md +90 -24
- package/docs/migration/v2.md +70 -5
- package/docs/plugin/index.md +1 -1
- package/package.json +8 -8
- package/dist/application-D4913edS.mjs.map +0 -1
- package/dist/application-DBHaxmJE.mjs +0 -1
- package/dist/crashreport-BfOkOFgc.mjs +0 -1
- package/dist/guards-DsX7dJCP.mjs +0 -2
- package/dist/logger-Cp5U2IDI.mjs +0 -9
- package/dist/logger-Cp5U2IDI.mjs.map +0 -1
- package/dist/register-ts-hook-YtsAGTMD.mjs.map +0 -1
- package/dist/service-DWMm-4Vm.mjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 2.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#2346](https://github.com/tailor-platform/sdk/pull/2346) [`87a6579`](https://github.com/tailor-platform/sdk/commit/87a65793bb8d8c6d5335f69d672db4ce4bc6ab9c) Thanks [@dqn](https://github.com/dqn)! - Add the `TAILOR_JSON_OUTPUT` environment variable to default CLI output to JSON without passing `--json` on every call, for agents, scripts, and CI. Set it to `true` or `1` to enable JSON; `false` or `0` keeps table output. An explicit `--json` still wins, and with the variable unset every command keeps its current output, so existing pipes and CI steps are unaffected. Dispatched CLI plugins inherit the variable from the environment.
|
|
8
|
+
|
|
9
|
+
- [#2403](https://github.com/tailor-platform/sdk/pull/2403) [`7c3e1cc`](https://github.com/tailor-platform/sdk/commit/7c3e1cc540230173e3f699085019879781bd309e) Thanks [@toiroakr](https://github.com/toiroakr)! - `@tailor-platform/sdk/cli` now exports `appIdLockKey` and `resolveAppId`, so a CLI plugin can read a config's application id the same way `deploy` does — preferring the id recorded in `.github/tailor.lock`, falling back to the id the config module evaluates to. `resolveAppId` never writes the lock, edits the config, or prompts, and resolves to `undefined` without warning when neither source has an id. A config id that disagrees with the lock, or that already belongs to a different, still-existing config, throws `APP_ID_CONFLICT` instead of guessing.
|
|
10
|
+
|
|
11
|
+
- [#2339](https://github.com/tailor-platform/sdk/pull/2339) [`1d60b6a`](https://github.com/tailor-platform/sdk/commit/1d60b6ab84089d4b645fbcc4b96fbceb59b3ce6f) Thanks [@toiroakr](https://github.com/toiroakr)! - Lock the beta plugin config export name to `plugins`. `definePlugins()` must be assigned to `export const plugins` in `tailor.config.ts`; any other export name (`plugins2`, `generator`, `generators`, etc.) is no longer read for plugins, matching the documented convention. A `plugins` export that is not an array, or that contains an item that is not a valid plugin, now fails config loading with a descriptive error instead of being silently dropped. A duplicate plugin ID within `plugins` now fails config loading in every code path instead of silently keeping only the last one.
|
|
12
|
+
|
|
13
|
+
Provide a v2 minor-release upgrade codemod for existing `generator`/`generators` exports. Preserve unrelated imports and shadowed variables, and leave imports unchanged when their config cannot be safely renamed. Include `.mts` and `.cts` imports and report remaining split exports or multiple plugin arrays for manual migration.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#2428](https://github.com/tailor-platform/sdk/pull/2428) [`1f18ce8`](https://github.com/tailor-platform/sdk/commit/1f18ce802e65f2e49958696d9bd3ff09b50f8cbf) Thanks [@toiroakr](https://github.com/toiroakr)! - Fix `FORBIDDEN_RUNTIME_GLOBAL` wrongly rejecting workflow jobs and executors whose dependencies detect the environment with `typeof` ternaries such as `typeof global !== "undefined" ? global : ...` or `typeof window === "undefined" ? {} : window`, including after the bundle is minified
|
|
18
|
+
|
|
19
|
+
Fix TailorDB hooks and validators dropping a constant from the same file when they read it behind a `typeof` check such as `typeof DEFAULT_VALUE !== "undefined" && DEFAULT_VALUE`
|
|
20
|
+
|
|
21
|
+
- [#2426](https://github.com/tailor-platform/sdk/pull/2426) [`3ebdc0c`](https://github.com/tailor-platform/sdk/commit/3ebdc0ca1eac2c1c0f2c02d7eb2ce43dffe5a715) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @toiroakr/lines-db to v0.13.0
|
|
22
|
+
|
|
23
|
+
- [#2429](https://github.com/tailor-platform/sdk/pull/2429) [`214e199`](https://github.com/tailor-platform/sdk/commit/214e199c48d4cfeecfaf1766186a9a2805cdbeb4) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency get-east-asian-width to v1.7.0
|
|
24
|
+
|
|
25
|
+
- [#2430](https://github.com/tailor-platform/sdk/pull/2430) [`b6a0146`](https://github.com/tailor-platform/sdk/commit/b6a014646bc7ff8ca540cb1ae1ce5ce7efdd10ce) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency type-fest to v5.10.0
|
|
26
|
+
|
|
27
|
+
- [#2431](https://github.com/tailor-platform/sdk/pull/2431) [`716c337`](https://github.com/tailor-platform/sdk/commit/716c3373cfd30a1535a2396594f6a95d4f97e6c9) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update oxc
|
|
28
|
+
|
|
29
|
+
- [#2444](https://github.com/tailor-platform/sdk/pull/2444) [`c4fcd01`](https://github.com/tailor-platform/sdk/commit/c4fcd01d68e7c266d2232fc89f7b6a9d58cc4f5f) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): lock file maintenance
|
|
30
|
+
|
|
31
|
+
- [#2426](https://github.com/tailor-platform/sdk/pull/2426) [`f3a0671`](https://github.com/tailor-platform/sdk/commit/f3a067173226f5eced1b24ca544a02da7607762f) Thanks [@renovate](https://github.com/apps/renovate)! - `tailor seed validate` now reports a JSONL line that is not valid JSON with its file and line, and points the GitHub Actions annotation at that line.
|
|
32
|
+
|
|
33
|
+
- [#2419](https://github.com/tailor-platform/sdk/pull/2419) [`c984ba0`](https://github.com/tailor-platform/sdk/commit/c984ba08adb6effa9717645f7fe836be63476ff7) Thanks [@dqn](https://github.com/dqn)! - Re-running `tailor setup ci` now keeps your own jobs, steps, and top-level keys in generated workflows and composite actions, along with `runs-on` / `timeout-minutes` / `container` / `env` on managed jobs and the documented editable inputs (such as `user-mapping` on `tailor-notify`). `tailor setup check` only reports edits to SDK-managed parts, and `--force` resets those parts without discarding your additions. Files generated by an older version need one `--force` re-run if you had edited them.
|
|
34
|
+
|
|
35
|
+
`setup ci branch`, `setup ci tag`, and `setup ci coordinate` accept `--restrict-dispatch`, which lets a manual `workflow_dispatch` deploy only the target branch (branch targets) or a tag, which must also pass the reachability guard when `--branch` is set (tag targets). Dry runs stay available from any ref.
|
|
36
|
+
|
|
3
37
|
## 2.21.0
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
|
@@ -26,7 +26,9 @@ Use these files as the single source of truth:
|
|
|
26
26
|
1. Prefer SDK docs above assumptions. If behavior is unclear, cite the exact doc path used.
|
|
27
27
|
2. Keep examples compatible with Node.js 22+.
|
|
28
28
|
3. For CLI questions, verify command and option names from `docs/cli-reference.md` and `docs/cli/*.md`.
|
|
29
|
-
4.
|
|
29
|
+
4. When running CLI commands, set `TAILOR_JSON_OUTPUT=true` (or pass `--json`) and parse the JSON
|
|
30
|
+
instead of the table output, which is formatted for humans and may change.
|
|
31
|
+
5. For configuration questions, validate examples against `docs/configuration.md` and related service docs.
|
|
30
32
|
|
|
31
33
|
## Quick Navigation
|
|
32
34
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./application-BzO9ywXQ.mjs";export{t as defineApplication,e as generatePluginFilesIfNeeded};
|