Skip to content

feat: basic cli support - #3

Merged
jesse23 merged 27 commits into
mainfrom
feat/basic-cli-support
Mar 22, 2026
Merged

feat: basic cli support#3
jesse23 merged 27 commits into
mainfrom
feat/basic-cli-support

Conversation

@jesse23

@jesse23 jesse23 commented Mar 22, 2026

Copy link
Copy Markdown
Owner

Summary

This PR implements basic CLI support for wtty, including:

  • ADR 002: CLI start/stop functionality with POST /api/server/stop endpoint
  • ADR 003: Automated release process using semantic-release with npm publishing

Changes

  • CLI implementation in src/cli.ts
  • Server stop endpoint in src/server.ts
  • Release configuration (.releaserc.json, release.yml)
  • Build and package configuration updates
  • Documentation and ADR updates

Related ADRs

  • ADR 002: CLI start/stop
  • ADR 003: Release process

jesse23 and others added 12 commits March 21, 2026 17:01
- 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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 adds POST /api/server/stop to 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.

Comment thread src/server.test.ts Outdated
Comment thread src/cli.ts Outdated
Comment thread src/cli.ts
Comment thread src/server.ts
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated
Comment thread src/cli.test.ts Outdated
jesse23 and others added 3 commits March 21, 2026 20:47
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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docs/adrs/002.cli.start-stop.md Outdated
Comment thread docs/adrs/003.release-process.semantic-release.md
Comment thread scripts/clean-pkg-scripts.ts Outdated
Comment thread package.json Outdated
Comment thread docs/adrs/002.cli.start-stop.md
jesse23 and others added 2 commits March 21, 2026 21:01
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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread scripts/clean-pkg-scripts.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/cli.ts Outdated
Comment thread src/server.test.ts Outdated
Comment thread src/cli.test.ts
Comment thread src/cli.test.ts
Ultraworked with Sisyphus

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/cli.test.ts
Comment thread src/cli.test.ts
Comment thread docs/adrs/003.release-process.semantic-release.md Outdated
Comment thread package.json
Comment thread src/server.test.ts
jesse23 and others added 3 commits March 21, 2026 21:58
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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/server.ts Outdated
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread scripts/build.ts Outdated
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/cli.ts
@jesse23 jesse23 assigned jesse23 and unassigned Copilot Mar 22, 2026
@jesse23
jesse23 merged commit 5671542 into main Mar 22, 2026
3 checks passed
jesse23 added a commit that referenced this pull request Mar 23, 2026
jesse23 added a commit that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants