@gravity-ui/aikit 2.28.1-beta.e6784c2de37a2b0f12acfbb3fa0523d29cbf2511.0 → 2.28.1

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.
@@ -1 +1 @@
1
- {"version":"2.28.1-beta.e6784c2de37a2b0f12acfbb3fa0523d29cbf2511.0","type":"commonjs","sideEffects":["*.css","*.scss"]}
1
+ {"version":"2.28.1","type":"commonjs","sideEffects":["*.css","*.scss"]}
@@ -82,6 +82,7 @@ function App() {
82
82
  - [Playwright Commands Quick Reference](./guides/PLAYWRIGHT.md)
83
83
  - [Quick Start](./guides/GETTING_STARTED.md) — This guide walks you through installing @gravity-ui/aikit and rendering your first chat.
84
84
  - [README Documentation](./guides/guidelines/readme.md) — Every component must have a comprehensive README.md file documenting its purpose, usage, and API.
85
+ - [Releasing AIKit 2 and 3](./guides/releasing.md)
85
86
  - [Storybook Files Creation](./guides/guidelines/storybook.md) — All components should have Storybook stories for documentation and testing purposes. Stories are located in the __stories__ directory within each component folder.
86
87
  - [Testing Guide](./guides/TESTING.md) — This project uses Playwright Component Testing for visual regression testing and component validation.
87
88
  - [Testing Guidelines](./guides/guidelines/testing.md) — Tests should be created based on Storybook stories to ensure consistency between documentation and functionality. We use Playwright Component Testing for visual regression testing and interaction testing.
@@ -0,0 +1,45 @@
1
+ # Releasing AIKit 2 and 3
2
+
3
+ | Branch | Stable npm tag | PR preview tag | Dependencies |
4
+ | ------------ | -------------- | -------------- | ------------ |
5
+ | `main` | `latest` | `beta-v3` | UIKit 8 |
6
+ | `release/v2` | `v2` | `beta-v2` | UIKit 7 |
7
+
8
+ Versions and changelogs advance independently. A shared feature can ship as 3.1.0 and 2.29.0. Releases are not an atomic operation across branches.
9
+
10
+ ## One-time setup
11
+
12
+ 1. Apply the workflow changes to the current `main` (AIKit 3), not the old 2.28.0 checkout.
13
+ 2. Create `release/v2` from `v2.28.0`. Copy the release infrastructure changes to it, including `scripts/release/check-major.cjs`. Keep its package manifests, changelog, source code and UIKit 7 dependencies. Do not merge `main` into this branch. On `main`, keep the UIKit matrix `[locked, '8.0.0']`; on `release/v2`, use `[locked]` to test its UIKit 7 lockfile. Keep the aggregate `Tests` job on both branches so branch protection uses the same check name.
14
+ 3. Create the `backport-v2` label. Enable squash merging and GitHub's **Allow auto-merge** repository setting.
15
+ 4. Protect both branches. Inspect active repository rulesets as well as classic branch protection; preserve existing review and merge-queue requirements. Require `Release Major`, `Verify Files`, `Tests`, `Visual Tests` and `Lint PR Title`, with checks against the latest base branch. Do not allow the automation app to bypass checks. Additional required human reviews will still require human approval; auto-merge does not bypass them.
16
+ 5. Ensure the existing Gravity UI app has contents and pull request write permissions on this repository. Its installation token creates PRs so their CI workflows run.
17
+ 6. Set repository variable `RELEASE_BOT_LOGIN` to the exact login of the app account that creates release-please PRs (including `[bot]` when present). The verified author of release PR #288 is `gravity-ui[bot]`; recheck the author if the app installation changes.
18
+ 7. Verify that all five required check names have reported on a PR into each branch, including the aggregate `Tests` job. Only after branch protection is configured, set repository variable `RELEASE_AUTOMERGE` to `true`. Until then backport and release PRs require manual merging.
19
+ 8. Test one compatible fix end to end. Verify that the backport checks run against UIKit 7 and that publishing 2.x leaves npm `latest` pointing to 3.x.
20
+
21
+ ## Daily workflow
22
+
23
+ - Develop changes in a PR targeting `main`, using a conventional `feat:` or `fix:` title and squash merge.
24
+ - Add `backport-v2` when the change should also ship in AIKit 2. The label can be added before or after merging.
25
+ - After merging, release-please prepares the 3.x release PR. Backport automation separately creates a PR into `release/v2`, preserving the original title for version calculation.
26
+ - With auto-merge enabled, compatible backports and release PRs merge once required checks and reviews pass. Each branch then publishes its own release.
27
+ - Do not label release PRs for backport. Version bumps, changelogs, breaking changes and UIKit 8 migrations must not be copied to 2.x.
28
+
29
+ The privileged backport workflow checks out the trusted base branch and never installs dependencies or runs PR scripts. PR validation runs in normal pull request workflows.
30
+
31
+ ## Conflicts and compatibility
32
+
33
+ A clean cherry-pick is not proof of UIKit 7 compatibility. Both branches must run build, type, unit and visual checks. Visual tests use the existing Playwright container workflow.
34
+
35
+ If cherry-picking fails, the backport workflow fails and the action reports the conflict on the original PR. Manually cherry-pick/adapt the change into a branch based on `release/v2` and open a normal PR with a conventional title. The 3.x release continues independently. Never resolve conflicts by copying the 3.x package manifest or lockfile over 2.x.
36
+
37
+ `Release Major` rejects prereleases, mismatched lockfile versions and unexpected majors. A breaking change intended for a new major needs an explicit update of the branch policy; it cannot silently turn `release/v2` into 3.x or `main` into 4.x.
38
+
39
+ ## Operational notes
40
+
41
+ - The existing release action remains responsible for version calculation, changelog generation and publication. Only release PRs from the configured bot, with the expected branch prefix and release label, changing only manifests and changelog are eligible for automatic merging.
42
+ - Publishing runs are serialized per branch. A failure in one release line does not block the other.
43
+ - PR prereleases validate the base branch and stable package/lockfile versions before changing the version or publishing. Only PRs into `main` and `release/v2` publish previews. PR prereleases use separate `beta-v2` and `beta-v3` tags. Install the exact version from the PR for reproducible testing; each tag points to the most recently published preview in that release line.
44
+ - If npm publication fails after a GitHub release was created, inspect npm before retrying. The existing release action does not guarantee a retry will republish an already-created release. Publish the missing version from its exact release tag through the project's authorized recovery process; never bump merely to retry or republish an existing version.
45
+ - To pause automatic merging, set `RELEASE_AUTOMERGE` to `false`. This does not cancel already-enabled GitHub auto-merge requests; disable those on the affected PRs as well.
@@ -1 +1 @@
1
- {"version":"2.28.1-beta.e6784c2de37a2b0f12acfbb3fa0523d29cbf2511.0","type":"module","sideEffects":["*.css","*.scss"]}
1
+ {"version":"2.28.1","type":"module","sideEffects":["*.css","*.scss"]}
@@ -0,0 +1,45 @@
1
+ # Releasing AIKit 2 and 3
2
+
3
+ | Branch | Stable npm tag | PR preview tag | Dependencies |
4
+ | ------------ | -------------- | -------------- | ------------ |
5
+ | `main` | `latest` | `beta-v3` | UIKit 8 |
6
+ | `release/v2` | `v2` | `beta-v2` | UIKit 7 |
7
+
8
+ Versions and changelogs advance independently. A shared feature can ship as 3.1.0 and 2.29.0. Releases are not an atomic operation across branches.
9
+
10
+ ## One-time setup
11
+
12
+ 1. Apply the workflow changes to the current `main` (AIKit 3), not the old 2.28.0 checkout.
13
+ 2. Create `release/v2` from `v2.28.0`. Copy the release infrastructure changes to it, including `scripts/release/check-major.cjs`. Keep its package manifests, changelog, source code and UIKit 7 dependencies. Do not merge `main` into this branch. On `main`, keep the UIKit matrix `[locked, '8.0.0']`; on `release/v2`, use `[locked]` to test its UIKit 7 lockfile. Keep the aggregate `Tests` job on both branches so branch protection uses the same check name.
14
+ 3. Create the `backport-v2` label. Enable squash merging and GitHub's **Allow auto-merge** repository setting.
15
+ 4. Protect both branches. Inspect active repository rulesets as well as classic branch protection; preserve existing review and merge-queue requirements. Require `Release Major`, `Verify Files`, `Tests`, `Visual Tests` and `Lint PR Title`, with checks against the latest base branch. Do not allow the automation app to bypass checks. Additional required human reviews will still require human approval; auto-merge does not bypass them.
16
+ 5. Ensure the existing Gravity UI app has contents and pull request write permissions on this repository. Its installation token creates PRs so their CI workflows run.
17
+ 6. Set repository variable `RELEASE_BOT_LOGIN` to the exact login of the app account that creates release-please PRs (including `[bot]` when present). The verified author of release PR #288 is `gravity-ui[bot]`; recheck the author if the app installation changes.
18
+ 7. Verify that all five required check names have reported on a PR into each branch, including the aggregate `Tests` job. Only after branch protection is configured, set repository variable `RELEASE_AUTOMERGE` to `true`. Until then backport and release PRs require manual merging.
19
+ 8. Test one compatible fix end to end. Verify that the backport checks run against UIKit 7 and that publishing 2.x leaves npm `latest` pointing to 3.x.
20
+
21
+ ## Daily workflow
22
+
23
+ - Develop changes in a PR targeting `main`, using a conventional `feat:` or `fix:` title and squash merge.
24
+ - Add `backport-v2` when the change should also ship in AIKit 2. The label can be added before or after merging.
25
+ - After merging, release-please prepares the 3.x release PR. Backport automation separately creates a PR into `release/v2`, preserving the original title for version calculation.
26
+ - With auto-merge enabled, compatible backports and release PRs merge once required checks and reviews pass. Each branch then publishes its own release.
27
+ - Do not label release PRs for backport. Version bumps, changelogs, breaking changes and UIKit 8 migrations must not be copied to 2.x.
28
+
29
+ The privileged backport workflow checks out the trusted base branch and never installs dependencies or runs PR scripts. PR validation runs in normal pull request workflows.
30
+
31
+ ## Conflicts and compatibility
32
+
33
+ A clean cherry-pick is not proof of UIKit 7 compatibility. Both branches must run build, type, unit and visual checks. Visual tests use the existing Playwright container workflow.
34
+
35
+ If cherry-picking fails, the backport workflow fails and the action reports the conflict on the original PR. Manually cherry-pick/adapt the change into a branch based on `release/v2` and open a normal PR with a conventional title. The 3.x release continues independently. Never resolve conflicts by copying the 3.x package manifest or lockfile over 2.x.
36
+
37
+ `Release Major` rejects prereleases, mismatched lockfile versions and unexpected majors. A breaking change intended for a new major needs an explicit update of the branch policy; it cannot silently turn `release/v2` into 3.x or `main` into 4.x.
38
+
39
+ ## Operational notes
40
+
41
+ - The existing release action remains responsible for version calculation, changelog generation and publication. Only release PRs from the configured bot, with the expected branch prefix and release label, changing only manifests and changelog are eligible for automatic merging.
42
+ - Publishing runs are serialized per branch. A failure in one release line does not block the other.
43
+ - PR prereleases validate the base branch and stable package/lockfile versions before changing the version or publishing. Only PRs into `main` and `release/v2` publish previews. PR prereleases use separate `beta-v2` and `beta-v3` tags. Install the exact version from the PR for reproducible testing; each tag points to the most recently published preview in that release line.
44
+ - If npm publication fails after a GitHub release was created, inspect npm before retrying. The existing release action does not guarantee a retry will republish an already-created release. Publish the missing version from its exact release tag through the project's authorized recovery process; never bump merely to retry or republish an existing version.
45
+ - To pause automatic merging, set `RELEASE_AUTOMERGE` to `false`. This does not cancel already-enabled GitHub auto-merge requests; disable those on the affected PRs as well.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/aikit",
3
- "version": "2.28.1-beta.e6784c2de37a2b0f12acfbb3fa0523d29cbf2511.0",
3
+ "version": "2.28.1",
4
4
  "description": "Gravity UI base kit for building ai assistant chats",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",