Skip to content

Commit 3d785dd

Browse files
authored
Merge branch 'main' into feat/search-bar-overview
Signed-off-by: Denis Davydkov <[email protected]>
2 parents 1f2a10d + 258a340 commit 3d785dd

File tree

117 files changed

+1848
-1044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1848
-1044
lines changed
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
---
2+
name: changeset-generator
3+
description: Generate changeset based on current branch changes or staged files
4+
---
5+
6+
# Changeset Generator for LikeC4
7+
8+
Generate changeset files based on current branch changes or staged files.
9+
10+
## 1. Identify Changes
11+
12+
**Step 1: Check for staged changes**
13+
14+
```bash
15+
git diff --staged --name-only
16+
```
17+
18+
If there are staged files, use only staged changes and skip to Step 3.
19+
20+
**Step 2: Find commits since main branch** (if no staged changes)
21+
22+
```bash
23+
# Get all changed files compared to main
24+
git diff --name-only main...HEAD
25+
26+
# List commits since diverging from main
27+
git log --oneline main..HEAD
28+
```
29+
30+
**Step 3: Gather context from commit messages**
31+
32+
```bash
33+
git log --format="%s%n%b" main..HEAD
34+
```
35+
36+
- Use commit messages to understand intent behind changes
37+
- Conventional Commits hints:
38+
- `feat:` / `fix:` - Usually needs changeset
39+
- `chore:` / `test:` / `refactor:` - Usually skip unless user-facing
40+
41+
## 2. Map Files to Packages
42+
43+
Group changed files by their package folder:
44+
45+
- `packages/<name>/*` - Read `packages/<name>/package.json`
46+
- `apps/<name>/*` - Read `apps/<name>/package.json`
47+
- `styled-system/<name>/*` - Read `styled-system/<name>/package.json`
48+
49+
**Skip packages** with only:
50+
51+
- Test files (`*.spec.ts`, `__tests__/*`, `__snapshots__/*`)
52+
- Generated files (in `.gitignore`)
53+
- Internal packages: `@likec4/icons`, `@likec4/tsconfig`
54+
55+
## 3. Generate Summary
56+
57+
For each affected package:
58+
59+
- Focus on **user-facing changes** only
60+
- Write from user's perspective: what they can now do, what was fixed
61+
- Be concise: 1-3 bullet points or a single sentence
62+
- **DO NOT mention**: test changes, internal refactors, type-only changes, code cleanup
63+
64+
## 4. Create Changeset File
65+
66+
**Always use `patch`** - versioning is handled manually.
67+
68+
Create file at `.changeset/<random-readable-name>.md`:
69+
70+
```markdown
71+
---
72+
'<package-name>': patch
73+
'<another-package>': patch
74+
---
75+
76+
<summary>
77+
```
78+
79+
## Examples
80+
81+
### Good:
82+
83+
```markdown
84+
---
85+
'@likec4/diagram': patch
86+
---
87+
88+
Add reset manual layout button with tooltip guidance
89+
```
90+
91+
```markdown
92+
---
93+
'@likec4/core': patch
94+
'@likec4/diagram': patch
95+
---
96+
97+
First iteration of element notes feature:
98+
99+
- Add notes property to elements
100+
- Display visual indicator on diagrams
101+
```
102+
103+
### Bad (avoid):
104+
105+
- "Refactored XyzService to use DI" (internal)
106+
- "Fixed failing tests" (tests are internal)
107+
- "Updated types for better inference" (internal)
108+
109+
## Notes
110+
111+
- Combine multiple packages in one changeset if they're part of the same feature
112+
- File names: lowercase with hyphens (e.g., `add-notes-feature.md`)
113+
- Link issues when relevant: `Fixes [#123](https://github.com/likec4/likec4/issues/123)`

.github/agents/changeset-generator.agent.md

Lines changed: 0 additions & 113 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./.claude/agents/changeset-generator.agent.md

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ test-mcp-local.ts
1616
test-mcp-local.js
1717

1818
panda.buildinfo.json
19+
.claude/settings.local.json
1920

2021
apps/*/dist
2122
apps/*/lib

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nodejs 22.22.0
2-
dprint 0.51.1
2+
dprint 0.52.0
33
pnpm 10.30.1

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## [1.51.0](https://github.com/likec4/likec4/compare/v1.50.0...v1.51.0) (2026-03-04)
2+
3+
### 🚀 Features
4+
5+
- **`likec4 lsp` CLI Command**:\
6+
Added new `likec4 lsp` command to start the LikeC4 language server directly from the CLI. The standalone `likec4-language-server` binary is now deprecated. [#2681](https://github.com/likec4/likec4/pull/2681)
7+
8+
- **Improved `?theme=` URL Parameter**:\
9+
Theme preferences specified via the `?theme=` URL parameter are no longer persisted to localStorage — the forced color scheme applies only while the parameter is present in the URL. Thanks [@m9810223](https://github.com/m9810223), [#2645](https://github.com/likec4/likec4/pull/2645)
10+
11+
### 🐞 Bug Fixes
12+
13+
- Fixed "View title cannot contain newlines" error when using implicit views with elements that have multi-line titles, closes [#2669](https://github.com/likec4/likec4/issues/2669), [#2672](https://github.com/likec4/likec4/issues/2672)
14+
15+
- Fixed LikeC4 tag color being broken, closes [#2637](https://github.com/likec4/likec4/issues/2637)
16+
17+
18+
119
## [1.50.0](https://github.com/likec4/likec4/compare/v1.49.0...v1.50.0) (2026-02-21)
220

321
### 🚀 Features

apps/docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @likec4/docs-astro
22

3+
## 1.51.0
4+
35
## 1.50.0
46

57
### Patch Changes

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@likec4/docs-astro",
33
"type": "module",
4-
"version": "1.50.0",
4+
"version": "1.51.0",
55
"private": true,
66
"scripts": {
77
"update-theme-c4": "tsx scripts/generate-theme-c4.mts",

apps/docs/src/content/docs/tooling/cli.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,26 @@ This command checks for:
245245
- Layout drift (outdated manual layout)
246246

247247
If any errors are found, the command exits with a non-zero return code.
248+
249+
### Language Server (LSP)
250+
251+
Start the LikeC4 language server for use with editors that support the Language Server Protocol:
252+
253+
```sh
254+
likec4 lsp --stdio
255+
likec4 lsp --node-ipc
256+
likec4 lsp --socket 3000
257+
likec4 lsp --pipe /tmp/likec4.pipe
258+
```
259+
260+
One of the transport options (`--stdio`, `--node-ipc`, `--socket`, `--pipe`) is required.
261+
262+
| Option | Description |
263+
| ------------------- | ----------------------------------------------------------- |
264+
| `--stdio` | Use stdio transport |
265+
| `--node-ipc` | Use node-ipc transport |
266+
| `--socket <port>` | Use socket transport on specified port |
267+
| `--pipe <name>` | Use pipe transport with specified pipe name |
268+
| `--watch, -w` | Enable built-in watcher (disabled by default) |
269+
| `--no-manual-layouts` | Disable manual layouts (enabled by default) |
270+
| `--use-dot` | Use local Graphviz (`dot`) for layout instead of bundled WASM |

apps/playground/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @likec4/playground
22

3+
## 1.51.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`70e0f7d`](https://github.com/likec4/likec4/commit/70e0f7db20c0945d37a6b2f77ad9722abf4706ce), [`026ef4a`](https://github.com/likec4/likec4/commit/026ef4ab673f07669f460d4b075918f5045ecddd), [`41ff551`](https://github.com/likec4/likec4/commit/41ff551974838696fdf4adfcd92edc30afd245c5)]:
8+
- @likec4/language-server@1.51.0
9+
- @likec4/styles@1.51.0
10+
- @likec4/core@1.51.0
11+
- @likec4/diagram@1.51.0
12+
- @likec4/generators@1.51.0
13+
- @likec4/log@1.51.0
14+
- @likec4/tsconfig@1.51.0
15+
316
## 1.50.0
417

518
### Patch Changes

0 commit comments

Comments
 (0)