generated from coulomb/repo-seed
baseline repo characteristics no longer crowd the candidate graph
This commit is contained in:
@@ -163,3 +163,62 @@ def write_dependency_only_repo(root: Path) -> Path:
|
||||
encoding="utf-8",
|
||||
)
|
||||
return repo
|
||||
|
||||
|
||||
def write_ops_bridge_like_repo(root: Path) -> Path:
|
||||
repo = root / "ops-bridge-like"
|
||||
repo.mkdir()
|
||||
(repo / "INTENT.md").write_text(
|
||||
"# INTENT\n\n"
|
||||
"## Purpose\n\n"
|
||||
"This repository exists to provide a **reliable, inspectable, and controllable "
|
||||
"connectivity layer** between distributed dev, build, test and execution "
|
||||
"environments for dev and ops personal human and agentic.\n\n"
|
||||
"## Primary Utility\n\n"
|
||||
"The repository provides a **managed SSH reverse tunneling system** that:\n\n"
|
||||
"* Maintains continuous connectivity between remote systems and a central hub\n"
|
||||
"* Makes connectivity **observable, auditable, and controllable**\n"
|
||||
"* Exposes this capability as both a **CLI tool and an MCP-accessible service**\n\n"
|
||||
"## Intended Users\n\n"
|
||||
"* Human operators managing infrastructure and connectivity\n"
|
||||
"* LLM-based agents requiring stable access to local services\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
(repo / "SCOPE.md").write_text(
|
||||
"# SCOPE\n\nSSH reverse tunnel lifecycle manager for remote execution environments.\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
(repo / "README.txt").write_text(
|
||||
"# Ops Bridge\n\n"
|
||||
"Manages named SSH reverse tunnels with auto-reconnect, health checks, "
|
||||
"audit logging, and an MCP server so Claude Code can start and inspect tunnels.\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
(repo / "pyproject.toml").write_text(
|
||||
"[project]\ndependencies = ['typer', 'pytest']\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
(repo / "scripts").mkdir()
|
||||
(repo / "scripts" / "register_mcp.py").write_text(
|
||||
'"""Register the ops-bridge MCP server with Claude MCP."""\n'
|
||||
"from pathlib import Path\n"
|
||||
"CLAUDE_JSON = Path.home() / '.claude.json'\n"
|
||||
"def main():\n"
|
||||
" return CLAUDE_JSON.exists()\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
(repo / "bridge").mkdir()
|
||||
(repo / "bridge" / "cli.py").write_text(
|
||||
"import typer\n"
|
||||
"app = typer.Typer()\n"
|
||||
"@app.command()\n"
|
||||
"def up(name: str):\n"
|
||||
" return name\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
(repo / "workplans").mkdir()
|
||||
(repo / "workplans" / "BRIDGE-WP-0003.md").write_text(
|
||||
"# MCP skill work\n\nClaude Code sessions can call bridge_status().\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
return repo
|
||||
|
||||
Reference in New Issue
Block a user