Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ This file is the canonical source for unreleased changes and published release n

## [Unreleased]

### Internal

- The `codework tui` E2E artifact now records the CLI version as `<version>`, so it no longer goes stale on every version bump.

## [@codeworksh/cli@0.2.0] - 2026-10-12

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/codework/test/__artifacts__/tui.managed.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"serviceJson": {
"pid": "<pid>",
"version": "0.1.0",
"version": "<version>",
"url": "ws://127.0.0.1:7601/rpc/v1",
"port": 7601
},
Expand Down
5 changes: 4 additions & 1 deletion packages/codework/test/tui.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { afterEach, describe, expect, it } from "vite-plus/test";

const cli = fileURLToPath(new URL("../src/index.ts", import.meta.url));
const models = fileURLToPath(new URL("../../../models.gen.json", import.meta.url));
const { version } = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")) as {
version: string;
};

/**
* A stand-in for the Rust TUI. It writes what the launcher gave it to its own
Expand Down Expand Up @@ -192,7 +195,7 @@ describe("codework tui", () => {
await expect(
JSON.stringify(
{
serviceJson: { ...info, pid: "<pid>" },
serviceJson: { ...info, pid: "<pid>", version: info.version === version ? "<version>" : info.version },
tui: {
...message,
home: message.home === dir ? "<home>" : message.home,
Expand Down
Loading