feat: basic cli support - #3
Conversation
- Set up semantic-release for automated versioning and GitHub releases. - Update release workflow to push git tags and create releases with release notes. - Add CLI commands for starting and stopping the server. - Modify build script to include CLI entry point. - Introduce .releaserc.json for semantic-release configuration. - Update package.json to reflect development version and add CLI binary. - Enhance server to handle stop command via API.
Ultraworked with Sisyphus Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with Sisyphus Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with Sisyphus Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…ode-pty.d.ts Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
There was a problem hiding this comment.
Pull request overview
Adds basic operational tooling around wtty by introducing a wtty CLI with start/stop behavior, a server shutdown HTTP endpoint, and an automated release workflow driven by semantic-release.
Changes:
- Introduces
src/cli.ts(wtty start/wtty stop) and addsPOST /api/server/stopto shut down the running server. - Adds Bun tests for the CLI and server shutdown behavior.
- Adds semantic-release configuration plus release workflow + packaging tweaks for npm publishing.
Reviewed changes
Copilot reviewed 17 out of 20 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.lint.json | Simplifies lint TS config overrides. |
| tsconfig.json | Updates TS compiler options (notably adds verbatimModuleSyntax). |
| src/server.ts | Adds POST /api/server/stop shutdown endpoint. |
| src/server.test.ts | Adds integration tests for server HTTP behavior + shutdown. |
| src/pty/node-pty.d.ts | Adds local type declarations for @lydell/node-pty. |
| src/cli.ts | Adds CLI entrypoint implementing start/stop. |
| src/cli.test.ts | Adds integration tests for CLI behavior. |
| scripts/clean-pkg-scripts.ts | Adds prepublish helper to strip scripts/devDependencies before publish. |
| scripts/build.ts | Builds both server + CLI into dist/. |
| package.json | Exposes bin, adjusts scripts, adds semantic-release, sets publishable version placeholder. |
| docs/specs/release-process.md | Documents semantic-release-based release pipeline. |
| docs/specs/cli.md | Links server lifecycle spec row to ADR 002. |
| docs/adrs/003.release-process.semantic-release.md | Adds ADR for semantic-release release strategy. |
| docs/adrs/002.cli.start-stop.md | Adds ADR for CLI start/stop and HTTP stop endpoint. |
| bun.lock | Locks new dependency tree for semantic-release. |
| .releaserc.json | Adds semantic-release configuration. |
| .npmignore | Adds npm ignore rules for source/docs/config. |
| .github/workflows/release.yml | Implements semantic-release + publish steps on main. |
| .github/workflows/copilot-review.yml | Removes Copilot Review workflow. |
| .github/pull_request_template.md | Adds PR template with ADR section. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 20 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 20 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 21 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ultraworked with Sisyphus Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 21 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 21 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 21 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 21 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
This PR implements basic CLI support for wtty, including:
Changes
src/cli.tssrc/server.ts.releaserc.json,release.yml)Related ADRs