fabro/docker/entrypoint.ts
Bryan Helmkamp 28884ae093 rename Arc to Fabro in all Rust crates, symbols, env vars, and supporting files
- Rename 20 crate directories lib/crates/arc-* → fabro-*
- Update all Cargo.toml: crate names, dep paths, feature flags, bin name
- Rename arc_server module → fabro_server in fabro-llm
- ArcError → FabroError across 30+ files
- ARC_VERSION/ARC_GIT_SHA/ARC_BUILD_DATE → FABRO_* constants
- All use/qualified paths: arc_agent:: → fabro_agent::, etc. (~1500 occurrences)
- Env vars ARC_* → FABRO_* in string literals and shell scripts
- String literals: X-Arc-Demo, arc-bot, arc@local, arc-web, arc-mcp, etc.
- Path strings: .arc/ → .fabro/, arc.toml → fabro.toml, refs/arc/ → refs/fabro/
- arc-api.yaml → fabro-api.yaml (OpenAPI spec)
- skills/arc-create-workflow → fabro-create-workflow
- trycmd fixtures: $ arc → $ fabro
- Inline snapshots (insta) updated
- CI, Docker, install.sh, scripts, CLAUDE.md, AGENTS.md
- TypeScript app: env vars, headers, JWT issuer
- Docs: page slugs, git refs, config paths, sandbox names, repo URLs
- Repo references: brynary/arc → fabro-sh/fabro

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 12:25:58 -04:00

44 lines
919 B
TypeScript

const service = process.argv[2];
type ServiceConfig = {
command: string[];
cwd?: string;
};
const services: Record<string, ServiceConfig> = {
api: {
command: ["fabro", "serve", "--host", "0.0.0.0"],
},
web: {
command: ["bun", "run", "dev", "--host", "0.0.0.0"],
cwd: "apps/fabro-web",
},
docs: {
command: ["mintlify", "dev", "--port", "3333", "--host", "0.0.0.0"],
cwd: "docs",
},
};
const validServices = Object.keys(services).join("|");
if (!service) {
console.error(`Usage: docker run fabro <${validServices}>`);
process.exit(1);
}
const config = services[service];
if (!config) {
console.error(
`Unknown service: ${service}. Use one of: ${Object.keys(services).join(", ")}`,
);
process.exit(1);
}
const child = Bun.spawn(config.command, {
stdout: "inherit",
stderr: "inherit",
stdin: "inherit",
cwd: config.cwd,
});
process.exit(await child.exited);