Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# sus Environment Configuration
# brin Environment Configuration

# Database
DATABASE_URL=postgres://sus:sus@localhost:5433/sus
DATABASE_URL=postgres://brin:brin@localhost:5433/brin

# Redis
REDIS_URL=redis://localhost:6379
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body:
attributes:
label: Steps to reproduce
placeholder: |
1. Run `sus add ...`
1. Run `brin add ...`
2. ...
- type: input
id: version
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
artifact: sus-linux-x86_64
artifact: brin-linux-x86_64
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
artifact: sus-linux-aarch64
artifact: brin-linux-aarch64
cross: true
- target: x86_64-apple-darwin
os: macos-15
artifact: sus-darwin-x86_64
artifact: brin-darwin-x86_64
- target: aarch64-apple-darwin
os: macos-latest
artifact: sus-darwin-aarch64
artifact: brin-darwin-aarch64

steps:
- uses: actions/checkout@v4
Expand All @@ -54,7 +54,7 @@ jobs:
shell: bash
run: |
cd target/${{ matrix.target }}/release
tar -czvf ../../../${{ matrix.artifact }}.tar.gz sus
tar -czvf ../../../${{ matrix.artifact }}.tar.gz brin
cd ../../..

- name: Upload artifact
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ Cargo.lock
# macOS
.DS_Store

# sus specific
.sus-watcher-seq
.sus/
# brin specific
.brin-watcher-seq
.brin/

# Logs
*.log

# Generated docs (in .sus-docs/, not root)
# Generated docs (in .brin-docs/, not root)
CLAUDE.md
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# sus — Agent Instructions
# brin — Agent Instructions

## Project Overview

sus is a secure package gateway for agents. It wraps npm/yarn/pnpm/bun. Before installing any package, it checks a database of pre-scanned results (CVE lookups, static analysis, threat detection). No scanning happens at install time, so there's no slowdown. If the package passes, sus hands off to your actual package manager.
brin is a secure package gateway for agents. It wraps npm/yarn/pnpm/bun. Before installing any package, it checks a database of pre-scanned results (CVE lookups, static analysis, threat detection). No scanning happens at install time, so there's no slowdown. If the package passes, brin hands off to your actual package manager.

## Legal & Communication Guidelines

Expand All @@ -15,7 +15,7 @@ Authoritative third-party data. State as fact.
- Cite source: "per GitHub Advisory GHSA-xxxx" or "CVE-2024-xxxxx (OSV)"
- OK: "lodash 4.17.20 has CVE-2021-23337 (GitHub Advisory)"

### sus-Detected Issues (agentic threats, capability analysis)
### brin-Detected Issues (agentic threats, capability analysis)

Automated assessment. Use cautious language.
- USE: "detected," "patterns consistent with," "risk indicators," "flagged," "assessed as"
Expand Down
16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to sus
# Contributing to brin

Thanks for your interest in contributing to sus! We welcome contributions of all kinds.
Thanks for your interest in contributing to brin! We welcome contributions of all kinds.

## Table of Contents

Expand All @@ -17,7 +17,7 @@ Thanks for your interest in contributing to sus! We welcome contributions of all
Before contributing, please:

1. Read the [README](README.md) to understand the project
2. Check [existing issues](https://github.com/superagent-ai/sus/issues) to avoid duplicates
2. Check [existing issues](https://github.com/superagent-ai/brin/issues) to avoid duplicates
3. For major changes, open an issue first to discuss

## Development Setup
Expand All @@ -32,8 +32,8 @@ Before contributing, please:

```bash
# Clone the repo
git clone https://github.com/superagent-ai/sus
cd sus
git clone https://github.com/superagent-ai/brin
cd brin

# Set up git hooks
make setup
Expand Down Expand Up @@ -74,7 +74,7 @@ make check # Run all checks (fmt + lint + test)

### Reporting Bugs

Use the [bug report template](https://github.com/superagent-ai/sus/issues/new?template=bug.yml) and include:
Use the [bug report template](https://github.com/superagent-ai/brin/issues/new?template=bug.yml) and include:

- Steps to reproduce
- Expected vs actual behavior
Expand All @@ -83,7 +83,7 @@ Use the [bug report template](https://github.com/superagent-ai/sus/issues/new?te

### Suggesting Features

Use the [feature request template](https://github.com/superagent-ai/sus/issues/new?template=feature.yml) and describe:
Use the [feature request template](https://github.com/superagent-ai/brin/issues/new?template=feature.yml) and describe:

- The problem you're trying to solve
- Your proposed solution
Expand Down Expand Up @@ -167,7 +167,7 @@ PRs are squash-merged to keep history clean.

- [Discord](https://discord.gg/spZ7MnqFT4) — chat with the team
- [Twitter/X](https://x.com/superagent_ai) — follow for updates
- [GitHub Issues](https://github.com/superagent-ai/sus/issues) — bugs and features
- [GitHub Issues](https://github.com/superagent-ai/brin/issues) — bugs and features

---

Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ members = [
]

[workspace.package]
version = "0.1.8"
version = "0.1.9"
edition = "2021"
authors = ["sus contributors"]
authors = ["brin contributors"]
license = "MIT"
repository = "https://github.com/sus-dev/sus"
repository = "https://github.com/superagent-ai/brin"

[workspace.dependencies]
# Async runtime
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.api
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ RUN apk add --no-cache ca-certificates
WORKDIR /app

# Copy binary and migrations
COPY --from=builder /app/target/release/sus-api /usr/local/bin/
COPY --from=builder /app/target/release/brin-api /usr/local/bin/
COPY --from=builder /app/migrations ./migrations

# Create non-root user
RUN adduser -D -u 1000 sus
USER sus
RUN adduser -D -u 1000 brin
USER brin

EXPOSE 3000

ENV RUST_LOG=info

CMD ["sus-api"]
CMD ["brin-api"]
8 changes: 4 additions & 4 deletions Dockerfile.cve
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ RUN apk add --no-cache ca-certificates
WORKDIR /app

# Copy binary
COPY --from=builder /app/target/release/sus-cve /usr/local/bin/
COPY --from=builder /app/target/release/brin-cve /usr/local/bin/

# Create non-root user
RUN adduser -D -u 1000 sus
USER sus
RUN adduser -D -u 1000 brin
USER brin

ENV RUST_LOG=info

CMD ["sus-cve"]
CMD ["brin-cve"]
8 changes: 4 additions & 4 deletions Dockerfile.watcher
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ RUN apk add --no-cache ca-certificates
WORKDIR /app

# Copy binary
COPY --from=builder /app/target/release/sus-watcher /usr/local/bin/
COPY --from=builder /app/target/release/brin-watcher /usr/local/bin/

# Create non-root user
RUN adduser -D -u 1000 sus
USER sus
RUN adduser -D -u 1000 brin
USER brin

ENV RUST_LOG=info

CMD ["sus-watcher"]
CMD ["brin-watcher"]
16 changes: 8 additions & 8 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ RUN apk add --no-cache ca-certificates curl bash libstdc++ libgcc
WORKDIR /app

# Copy binary
COPY --from=builder /app/target/release/sus-worker /usr/local/bin/
COPY --from=builder /app/target/release/brin-worker /usr/local/bin/

# Create non-root user and install OpenCode as that user
RUN adduser -D -u 1000 sus
RUN adduser -D -u 1000 brin

# Install OpenCode as sus user (installs to ~/.opencode/bin/)
USER sus
# Install OpenCode as brin user (installs to ~/.opencode/bin/)
USER brin
RUN curl -fsSL https://opencode.ai/install | bash && \
/home/sus/.opencode/bin/opencode upgrade
/home/brin/.opencode/bin/opencode upgrade

# Explicitly set HOME and PATH for Cloud Run
ENV HOME="/home/sus"
ENV PATH="/home/sus/.opencode/bin:/usr/local/bin:/usr/bin:/bin"
ENV HOME="/home/brin"
ENV PATH="/home/brin/.opencode/bin:/usr/local/bin:/usr/bin:/bin"
ENV RUST_LOG=info

CMD ["sus-worker"]
CMD ["brin-worker"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 sus contributors
Copyright (c) 2026 Superagent Technologies Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ all: check build
dev:
docker-compose up -d db redis
@echo "Starting API and worker..."
@trap 'kill 0' INT; cargo run --bin sus-api & cargo run --bin sus-worker & wait
@trap 'kill 0' INT; cargo run --bin brin-api & cargo run --bin brin-worker & wait

# Start only the API
dev-api:
docker-compose up -d db redis
cargo run --bin sus-api
cargo run --bin brin-api

# Start only the worker
dev-worker:
docker-compose up -d db redis
cargo run --bin sus-worker
cargo run --bin brin-worker
28 changes: 14 additions & 14 deletions NPM_PUBLISHING.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# NPM Publishing Guide

This document explains how to publish the `sus` package to npm.
This document explains how to publish the `brin` package to npm.

## Prerequisites

1. **npm account**: You need an npm account with publishing rights for the `sus` package
1. **npm account**: You need an npm account with publishing rights for the `brin` package
2. **npm authentication**: Run `npm login` to authenticate
3. **Release binaries**: Ensure GitHub releases exist for the version you're publishing

Expand All @@ -19,7 +19,7 @@ npm pack --dry-run
```

This should show:
- `bin/sus.js` - CLI wrapper script
- `bin/brin.js` - CLI wrapper script
- `scripts/postinstall.js` - Installation script
- `index.js` - Main entry point
- `package.json` - Package metadata
Expand All @@ -35,10 +35,10 @@ You can test the package locally before publishing:
npm pack

# Install it globally from the tarball
npm install -g ./sus-0.1.8.tgz
npm install -g ./brin-0.1.8.tgz

# Test the installation
sus --version
brin --version
```

### 3. Publish to npm
Expand All @@ -47,10 +47,10 @@ sus --version

1. Update the version in `package.json` and `Cargo.toml` (workspace.package.version)
2. Ensure GitHub releases are created with binaries for:
- `sus-linux-x86_64.tar.gz`
- `sus-linux-aarch64.tar.gz`
- `sus-darwin-x86_64.tar.gz`
- `sus-darwin-aarch64.tar.gz`
- `brin-linux-x86_64.tar.gz`
- `brin-linux-aarch64.tar.gz`
- `brin-darwin-x86_64.tar.gz`
- `brin-darwin-aarch64.tar.gz`
3. Publish to npm:

```bash
Expand All @@ -63,11 +63,11 @@ After publishing, verify the package:

```bash
# Check on npm
npm view sus
npm view brin

# Test installation
npm install -g sus
sus --version
npm install -g brin
brin --version
```

## Version Management
Expand All @@ -91,7 +91,7 @@ When bumping versions:
The postinstall script downloads pre-built binaries from GitHub releases. The binary naming convention is:

```
sus-{os}-{arch}.tar.gz
brin-{os}-{arch}.tar.gz
```

Where:
Expand All @@ -101,7 +101,7 @@ Where:
The postinstall script will:
1. Detect the user's platform and architecture
2. Download the appropriate binary from GitHub releases
3. Extract it to `node_modules/sus/bin/`
3. Extract it to `node_modules/brin/bin/`
4. Make it executable

## Troubleshooting
Expand Down
Loading