pkg.soopen package index

brew / 順位 8747

srgn を Homebrew, MacPorts, Nix, pacman でインストール

srgn のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install srgn

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install srgn

MacPorts ports tree · devel/srgn/Portfile · ソース: api.github.com

概要

パッケージ概要

Code surgeon for precise text and code transplantation

コマンドとエイリアス

  • srgn

履歴

プロジェクトの歴史と使われ方

srgn is a Rust command-line search and transformation tool that combines regular-expression scopes with optional syntax-aware scopes based on programming-language grammars. Its author characterizes it as a mix of `tr`, `sed`, `ripgrep`, and tree-sitter.

プロジェクトの歴史

The public repository was created in 2023 and released v0.1.0 that October. The README records that its earliest core was a Rust rewrite of a tool devoted to German character substitutions; it then expanded into a general code-aware search and transformation utility.

採用の歴史

The official installation guide documents release binaries, cargo-binstall, Homebrew, Nix and a repository flake, MacPorts, and compilation through Cargo. The package metadata additionally records a Pacman package, giving srgn unusually broad distribution for a focused refactoring CLI.

使われ方

srgn can search or transform stdin and files with regular expressions, then narrow operations to syntax-aware language scopes. Actions include replacement, case conversion, deletion, squeezing, and language-specific transformations, and shell completions are built into the CLI.

パッケージ好きにとっての重要性

srgn sits between traditional Unix text filters and IDE refactoring: it preserves a composable command-line interface while using parsers to select structural code regions. Its prebuilt binaries and presence across Cargo, Homebrew, Nix, MacPorts, and Pacman make it especially accessible to polyglot CLI users.

タイムライン

  • 2023: Official repository created.
  • 2023: v0.1.0 published.
  • 2025: v0.14.0 changed replacement syntax to reduce accidental destructive use.
  • 2026: v0.14.2 published.

Related projects

  • The README positions srgn alongside tr, sed, ripgrep, and tree-sitter while distinguishing its combination of regex actions and grammar-aware scopes.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • Homebrew bottle メタデータは記録されていません。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
srgn実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-08-03
マネージャ版0.14.2
マネージャ更新日
ローカルデータ不明
上流利用不可
検出された最新未検出
  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:srgn
バージョン0.14.2
パッケージマネージャHomebrew
ホームページhttps://github.com/alexpovel/srgn
リポジトリhttps://github.com/alexpovel/srgn
Bottle未記録
サービス宣言なし

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

srgn

nix profile install nixpkgs#srgn
  • normalized package name match
  • 一致条件: Srgn
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sr/srgn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

srgn 0.14.2-1

A code surgeon for precise text and code transplantation

https://github.com/alexpovel/srgn

sudo pacman -S srgn
  • License: MIT
  • Architecture: x86_64
  • 2 依存関係
  • normalized package name match
  • 一致条件: Srgn
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: srgn from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

srgn

sudo port install srgn
  • normalized package name match
  • 一致条件: Srgn
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/srgn/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation