# 使用 Homebrew 安装 statesmith

查看 statesmith 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:statesmith
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install statesmith
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:statesmith
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/statesmith>
- **版本:** 0.22.2
- **来源摘要:** State machine code generation tool suitable for bare metal, embedded and more
- **主页:** <https://github.com/StateSmith/StateSmith>
- **仓库:** <https://github.com/StateSmith/StateSmith>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/StateSmith/StateSmith/archive/refs/tags/v0.22.2.tar.gz>
- **最后更新:** 2026-05-24T03:37:42Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ss.cli (cli)
- ss.cli (别名)

## 依赖

- dotnet@9

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.22.2
- 管理器更新时间: 2026-05-24
- 本地数据: OK
- 上游仓库: https://github.com/StateSmith/StateSmith
- 检测到的最新版本: v0.22.2 (当前)
## 项目历史与用法

StateSmith is an open-source state-machine code generator with a CLI, aimed especially at embedded and bare-metal workflows where generated code should be readable, dependency-free, and allocation-conscious.

### 项目历史

The README describes StateSmith as a cross-platform tool for generating state machines in multiple programming languages, with generated code suitable for tiny bare-metal microcontrollers, games, apps, web projects, and computers.

The official About wiki explains the author's motivation: he could not find a state-machine code generator suitable for low-level embedded application use, with an attractive license and enjoyable workflow. It also explains the C# implementation choice as a way to use the open-source Roslyn compiler for parsing and code generation.

### 采用历史

The project moved from earlier C# script-oriented examples toward a packaged CLI. The CLI install wiki documents `ss.cli`, installable globally as a .NET tool or downloadable as a standalone binary.

The README states that the author uses StateSmith in production projects and that other companies use it in production as well, while the repository page shows ongoing releases and a sizable GitHub audience for a specialized embedded-code tool.

### 使用方式

Users model state machines with diagram tools such as PlantUML or draw.io, then run the CLI to generate source code for supported languages. Tutorials and examples are the main documented entry points.

The project is designed for teams that want diagrams and implementation to stay synchronized: generated code comes from the diagram-backed model rather than from hand-maintained state-machine code.

### 为什么软件包爱好者会关心

StateSmith is notable because it packages a traditionally GUI-heavy modeling niche into a command-line generator that can be installed, versioned, and run in build scripts.

For package managers, `ss.cli` is the useful unit: it turns state-machine diagrams into source artifacts without requiring an IDE plugin or proprietary modeling tool.

### 时间线

- 2023: Official About wiki documents the project motivation and platform goals.
- 2025: CLI install wiki documents standalone binaries and .NET tool installation for `ss.cli`.
- 2026: GitHub repository page lists v0.22.2 as the latest release on May 11, 2026.

### Related projects

- Related tools and formats include PlantUML, draw.io, UML2 state machines, Roslyn, and .NET global tools.
- StateSmith also maintains examples and tutorials that show the older C# script method and newer CLI-oriented workflows.

### 来源

- <https://github.com/StateSmith/StateSmith#readme>
- <https://github.com/StateSmith/StateSmith/wiki/About>
- <https://github.com/StateSmith/StateSmith/wiki/CLI%3A-download-or-install>
- source_facts.executables
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** statesmith
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [dotnet@9](https://pkg.so/zh-hans/brew/dotnet-9/) - Runtime dependency declared by Homebrew.
- [nanopb](https://pkg.so/zh-hans/brew/nanopb/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, embedded.
- [fbthrift](https://pkg.so/zh-hans/brew/fbthrift/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [swig](https://pkg.so/zh-hans/brew/swig/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [swiftgen](https://pkg.so/zh-hans/brew/swiftgen/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [sourcery](https://pkg.so/zh-hans/brew/sourcery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [buf](https://pkg.so/zh-hans/brew/buf/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [dtc](https://pkg.so/zh-hans/brew/dtc/) - Shares pkgdb curated category or tags: cli, developer-tools, embedded.
- [thrift](https://pkg.so/zh-hans/brew/thrift/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [sequelize-auto](https://pkg.so/zh-hans/npm/sequelize-auto/) - Local package facts share a topical domain. Shared terms: bare, cli, code, code-generation, developer.
- [autorest](https://pkg.so/zh-hans/brew/autorest/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.
- [buffa](https://pkg.so/zh-hans/brew/buffa/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/statesmith.yml](https://github.com/mxcl/pkgdb/blob/main/combined/statesmith.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
