Skip to content

Commit 7eb0b98

Browse files
committed
chore(release): 0.2.2
1 parent 94a6d7c commit 7eb0b98

7 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Publish to npm
22

33
on:
4+
push:
5+
tags:
6+
- "*"
47
workflow_dispatch:
58

69
jobs:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22

33
## Unreleased
44

5+
## 0.2.2 - 2026-01-22
6+
7+
### Added
8+
- CLI now supports `--version` output sourced from `package.json`.
9+
510
### Changed
611
- Logs viewer now renders ANSI color output via xterm.js when requested.
712
- Logs dialog is now centered, larger, and the log panel fills the available height.
813
- Service form now shows port only when port mode is static, with port mode listed first.
14+
- Publish workflow now runs automatically when tags are pushed.
915

1016
### Fixed
17+
- ANSI log stripping regex no longer trips the ESLint control regex rule.
1118
- Slow-starting services no longer flip to error unless logs show an error.
1219

1320
## 0.2.1 - 2026-01-20

apps/ui/src/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ const parseEnv = (value: string) => {
109109
const LOG_ERROR_PATTERN =
110110
/\b(error|failed|fatal|exception|panic|traceback|unhandled|eaddrinuse|segmentation fault)\b/i;
111111

112-
const stripAnsi = (value: string) => value.replace(/\x1b\[[0-9;]*m/g, "");
112+
// eslint-disable-next-line no-control-regex
113+
const ANSI_ESCAPE_PATTERN = new RegExp("\\u001b\\[[0-9;]*m", "g");
114+
const stripAnsi = (value: string) => value.replace(ANSI_ESCAPE_PATTERN, "");
113115

114116
const hasLogError = (value: string) => LOG_ERROR_PATTERN.test(stripAnsi(value));
115117

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@24letters/devservers",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"type": "module",
55
"description": "Local dev server manager CLI for macOS.",
66
"license": "MIT",

packages/cli/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { spawnSync } from "node:child_process";
2+
import { readFileSync } from "node:fs";
23
import { access, cp, mkdir, readFile, readdir, rename, stat, writeFile } from "node:fs/promises";
34
import { createRequire } from "node:module";
45
import os from "node:os";
@@ -120,6 +121,8 @@ const require = createRequire(import.meta.url);
120121
const daemonEntry = require.resolve("@24letters/devservers-daemon");
121122
const packageRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
122123
const skillsRoot = path.join(packageRoot, "skills");
124+
const packageJsonPath = fileURLToPath(new URL("../package.json", import.meta.url));
125+
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8")) as { version?: string };
123126

124127
const AGENT_HOME_ENV: Record<string, string> = {
125128
codex: "CODEX_HOME",
@@ -325,6 +328,7 @@ const program = new Command();
325328
program
326329
.name("devservers")
327330
.description("Local dev server manager")
331+
.version(packageJson.version ?? "0.0.0")
328332
.option("-c, --config <path>", "config path")
329333
.option("--daemon <url>", "daemon base URL", `http://127.0.0.1:${DAEMON_PORT}`);
330334

packages/daemon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@24letters/devservers-daemon",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"type": "module",
55
"description": "Fastify daemon for Devservers Manager.",
66
"license": "MIT",

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@24letters/devservers-shared",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"type": "module",
55
"description": "Shared types and schema for Devservers Manager.",
66
"license": "MIT",

0 commit comments

Comments
 (0)