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
6 changes: 3 additions & 3 deletions .github/actions/cora-review-simple/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
# Try up to 3 times with delay
for i in 1 2 3; do
VERSION=$(curl -sfL --connect-timeout 10 \
https://api.github.com/repos/ajianaz/cora-cli/releases/latest \
https://api.github.com/repos/codecoradev/cora-cli/releases/latest \
| python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('tag_name', ''))" 2>/dev/null)
if [ -n "$VERSION" ]; then
break
Expand Down Expand Up @@ -73,7 +73,7 @@ runs:
echo "Unsupported architecture: $ARCH"
exit 1
fi
curl -sL "https://github.com/ajianaz/cora-cli/releases/download/${{ steps.resolve.outputs.VERSION }}/${ASSET}-${{ steps.resolve.outputs.VERSION }}.tar.gz" | tar xz -C /usr/local/bin cora
curl -sL "https://github.com/codecoradev/cora-cli/releases/download/${{ steps.resolve.outputs.VERSION }}/${ASSET}-${{ steps.resolve.outputs.VERSION }}.tar.gz" | tar xz -C /usr/local/bin cora
chmod +x /usr/local/bin/cora
cora --version

Expand Down Expand Up @@ -154,7 +154,7 @@ runs:
hasWarnings ? '⚠️ **Review recommended** — warnings found.' :
'✅ **Passed** — only informational notes.';

body = `## 🔍 Cora AI Code Review\n\n${status}\n${table}\n---\n_Review powered by [cora-cli](https://github.com/ajianaz/cora-cli) · BYOK · MIT_`;
body = `## 🔍 Cora AI Code Review\n\n${status}\n${table}\n---\n_Review powered by [cora-cli](https://github.com/codecoradev/cora-cli) · BYOK · MIT_`;
}
}

Expand Down
49 changes: 17 additions & 32 deletions .github/actions/cora-review/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Cora AI Code Review'
description: 'Run cora AI code review on a PR diff — posts a PR comment. Uses Infisical OIDC for LLM secrets (zero keys in GitHub). SARIF upload is optional.'
description: 'Run cora AI code review on a PR diff. Posts PR comment with findings.'

inputs:
base-branch:
Expand All @@ -18,37 +18,22 @@ inputs:
description: 'Upload SARIF to GitHub Code Scanning (default: false)'
required: false
default: 'false'
infisical-identity-id:
description: 'Infisical OIDC identity ID (from secret INFISICAL_IDENTITY_ID)'
cora-api-key:
description: 'LLM API key'
required: true
infisical-project:
description: 'Infisical project slug'
cora-base-url:
description: 'LLM API base URL'
required: false
default: 'github-actions'
infisical-env:
description: 'Infisical environment slug'
cora-model:
description: 'LLM model ID'
required: false
default: 'prod'
infisical-domain:
description: 'Infisical domain URL'
required: false
default: 'https://infisical.ajianaz.dev'
github-token:
description: 'GitHub token for PR comments and SARIF upload'
required: true

runs:
using: 'composite'
steps:
- name: Fetch LLM secrets from Infisical
uses: Infisical/secrets-action@8a06c1bdcd5b8635d510c52d4b57a92c1ccef785 # v1.0.9
with:
method: 'oidc'
identity-id: ${{ inputs.infisical-identity-id }}
project-slug: ${{ inputs.infisical-project }}
env-slug: ${{ inputs.infisical-env }}
domain: ${{ inputs.infisical-domain }}

- name: Resolve cora-cli version
id: resolve
shell: bash
Expand All @@ -58,7 +43,7 @@ runs:
if [ "$INPUT_VERSION" = "latest" ]; then
for i in 1 2 3; do
VERSION=$(curl -sfL --connect-timeout 10 \
https://api.github.com/repos/ajianaz/cora-cli/releases/latest \
https://api.github.com/repos/codecoradev/cora-cli/releases/latest \
| python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('tag_name', ''))" 2>/dev/null)
if [ -n "$VERSION" ]; then
break
Expand Down Expand Up @@ -90,9 +75,9 @@ runs:
echo "Unsupported architecture: $ARCH"
exit 1
fi
curl -sL "https://github.com/ajianaz/cora-cli/releases/download/${CORA_VERSION}/${ASSET}-${CORA_VERSION}.tar.gz" \
curl -sL "https://github.com/codecoradev/cora-cli/releases/download/${CORA_VERSION}/${ASSET}-${CORA_VERSION}.tar.gz" \
-o /tmp/cora.tar.gz
curl -sL "https://github.com/ajianaz/cora-cli/releases/download/${CORA_VERSION}/checksums-sha256.txt" \
curl -sL "https://github.com/codecoradev/cora-cli/releases/download/${CORA_VERSION}/checksums-sha256.txt" \
-o /tmp/cora-checksums.txt || true
if [ -f /tmp/cora-checksums.txt ] && [ -s /tmp/cora-checksums.txt ]; then
EXPECTED=$(grep "${ASSET}-${CORA_VERSION}.tar.gz" /tmp/cora-checksums.txt | awk '{print $1}' || true)
Expand All @@ -118,9 +103,9 @@ runs:
id: review
shell: bash
env:
CORA_API_KEY: ${{ env.CORA_API_KEY }}
CORA_BASE_URL: ${{ env.CORA_BASE_URL }}
CORA_MODEL: ${{ env.CORA_MODEL }}
CORA_API_KEY: ${{ inputs.cora-api-key }}
CORA_BASE_URL: ${{ inputs.cora-base-url }}
CORA_MODEL: ${{ inputs.cora-model }}
INPUT_BASE: ${{ inputs.base-branch }}
INPUT_SEVERITY: ${{ inputs.severity }}
run: |
Expand Down Expand Up @@ -170,14 +155,14 @@ runs:
fileSize = 0;
}
if (fileSize < 10) {
body = `## 🔍 Cora AI Code Review\n\n⚠️ **Review could not complete.** Cora produced an empty result. Check the workflow logs for errors.\n\n---\n_Review powered by [cora-cli](https://github.com/ajianaz/cora-cli) · BYOK · MIT_`;
body = `## 🔍 Cora AI Code Review\n\n⚠️ **Review could not complete.** Cora produced an empty result. Check the workflow logs for errors.\n\n---\n_Review powered by [cora-cli](https://github.com/codecoradev/cora-cli) · BYOK · MIT_`;
} else {
body = `## 🔍 Cora AI Code Review\n\n✅ **No issues found.** Code looks good!\n\n---\n_Review powered by [cora-cli](https://github.com/ajianaz/cora-cli) · BYOK · MIT_`;
body = `## 🔍 Cora AI Code Review\n\n✅ **No issues found.** Code looks good!\n\n---\n_Review powered by [cora-cli](https://github.com/codecoradev/cora-cli) · BYOK · MIT_`;
}
} else {
const results = sarifContent.runs[0].results || [];
if (results.length === 0) {
body = `## 🔍 Cora AI Code Review\n\n✅ **No issues found.** Code looks good!\n\n---\n_Review powered by [cora-cli](https://github.com/ajianaz/cora-cli) · BYOK · MIT_`;
body = `## 🔍 Cora AI Code Review\n\n✅ **No issues found.** Code looks good!\n\n---\n_Review powered by [cora-cli](https://github.com/codecoradev/cora-cli) · BYOK · MIT_`;
} else {
const grouped = {};
for (const r of results) {
Expand Down Expand Up @@ -208,7 +193,7 @@ runs:
hasWarnings ? '⚠️ **Review recommended** — warnings found.' :
'✅ **Passed** — only informational notes.';

body = `## 🔍 Cora AI Code Review\n\n${status}\n${table}\n---\n_Review powered by [cora-cli](https://github.com/ajianaz/cora-cli) · BYOK · MIT_`;
body = `## 🔍 Cora AI Code Review\n\n${status}\n${table}\n---\n_Review powered by [cora-cli](https://github.com/codecoradev/cora-cli) · BYOK · MIT_`;
}
}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cora-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ jobs:
uses: ./.github/actions/cora-review
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
infisical-identity-id: ${{ secrets.INFISICAL_IDENTITY_ID }}
cora-api-key: ${{ secrets.CORA_API_KEY }}
cora-base-url: ${{ secrets.CORA_BASE_URL }}
cora-model: ${{ secrets.CORA_MODEL }}
13 changes: 2 additions & 11 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,10 @@ jobs:
exit 1
fi

- name: Fetch secrets from Infisical
uses: Infisical/secrets-action@v1.0.9
with:
method: "oidc"
identity-id: "${{ secrets.INFISICAL_IDENTITY_ID }}"
project-slug: "github-actions"
env-slug: "prod"
domain: "https://infisical.ajianaz.dev"

- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ env.CLOUDFLARE_API_TOKEN }}
accountId: ${{ env.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
preCommands: npx wrangler pages project create cora --production-branch=develop || true
command: pages deploy website/build/ --project-name=cora --commit-dirty=true --branch=develop
15 changes: 3 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,8 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- name: Fetch CARGO_REGISTRY_TOKEN from Infisical
uses: Infisical/secrets-action@v1.0.9
with:
method: "oidc"
identity-id: "${{ secrets.INFISICAL_IDENTITY_ID }}"
project-slug: "github-actions"
env-slug: "prod"
domain: "https://infisical.ajianaz.dev"

- name: Publish to crates.io
run: cargo publish --token ${{ env.CARGO_REGISTRY_TOKEN }} --allow-dirty
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --allow-dirty

release:
name: Create GitHub Release
Expand Down Expand Up @@ -163,15 +154,15 @@ jobs:
printf '# Install via cargo\n'
printf 'cargo install cora\n\n'
printf '# Or download binary (extracts as '\''cora'\'')\n'
printf 'curl -fsSL https://github.com/ajianaz/cora-cli/releases/latest/download/cora-x86_64-unknown-linux-gnu-%s.tar.gz | tar xz\n' "${{ steps.version.outputs.TAG }}"
printf 'curl -fsSL https://github.com/codecoradev/cora-cli/releases/latest/download/cora-x86_64-unknown-linux-gnu-%s.tar.gz | tar xz\n' "${{ steps.version.outputs.TAG }}"
printf 'chmod +x cora\n'
printf 'sudo mv cora /usr/local/bin/\n\n'
printf '# Init project\n'
printf 'cora init\n\n'
printf '# Review staged changes\n'
printf 'CORA_API_KEY=your-key cora review --staged\n'
printf '```\n\n'
printf '**Full changelog:** https://github.com/ajianaz/cora-cli/blob/develop/CHANGELOG.md\n'
printf '**Full changelog:** https://github.com/codecoradev/cora-cli/blob/develop/CHANGELOG.md\n'
} > release-notes.md

- name: Create GitHub Release
Expand Down
2 changes: 1 addition & 1 deletion AGENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ no managed API, no cloud service. Runs locally against diffs, scans, or branches

- **License:** MIT
- **Edition:** Rust 2024 (MSRV 1.85)
- **Repo:** `ajianaz/cora-cli`
- **Repo:** `codecoradev/cora-cli`
- **Default branch:** `develop`

## Build & Development Commands
Expand Down
22 changes: 11 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Cross-platform** — Linux (x86_64, ARM64), macOS (Apple Silicon), Windows (x86_64)
- **MIT License** — fully open source

[Unreleased]: https://github.com/ajianaz/cora-cli/compare/v0.2.0...develop
[0.2.0]: https://github.com/ajianaz/cora-cli/compare/v0.1.8...v0.2.0
[0.1.8]: https://github.com/ajianaz/cora-cli/compare/v0.1.7...v0.1.8
[0.1.7]: https://github.com/ajianaz/cora-cli/compare/v0.1.6...v0.1.7
[0.1.6]: https://github.com/ajianaz/cora-cli/compare/v0.1.5...v0.1.6
[0.1.5]: https://github.com/ajianaz/cora-cli/compare/v0.1.4...v0.1.5
[0.1.4]: https://github.com/ajianaz/cora-cli/compare/v0.1.3...v0.1.4
[0.1.3]: https://github.com/ajianaz/cora-cli/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/ajianaz/cora-cli/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/ajianaz/cora-cli/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/ajianaz/cora-cli/releases/tag/v0.1.0
[Unreleased]: https://github.com/codecoradev/cora-cli/compare/v0.2.0...develop
[0.2.0]: https://github.com/codecoradev/cora-cli/compare/v0.1.8...v0.2.0
[0.1.8]: https://github.com/codecoradev/cora-cli/compare/v0.1.7...v0.1.8
[0.1.7]: https://github.com/codecoradev/cora-cli/compare/v0.1.6...v0.1.7
[0.1.6]: https://github.com/codecoradev/cora-cli/compare/v0.1.5...v0.1.6
[0.1.5]: https://github.com/codecoradev/cora-cli/compare/v0.1.4...v0.1.5
[0.1.4]: https://github.com/codecoradev/cora-cli/compare/v0.1.3...v0.1.4
[0.1.3]: https://github.com/codecoradev/cora-cli/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/codecoradev/cora-cli/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/codecoradev/cora-cli/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/codecoradev/cora-cli/releases/tag/v0.1.0
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Be respectful, constructive, and inclusive. We follow the [Rust Code of Conduct]

```bash
# Clone the repository
git clone https://github.com/ajianaz/cora-cli.git
git clone https://github.com/codecoradev/cora-cli.git
cd cora-cli

# Build in debug mode
Expand Down Expand Up @@ -137,7 +137,7 @@ mod tests {

## Reporting Bugs

Please open a [GitHub Issue](https://github.com/ajianaz/cora-cli/issues/new) with:
Please open a [GitHub Issue](https://github.com/codecoradev/cora-cli/issues/new) with:

- **Description** — What happened vs. what you expected
- **Steps to reproduce** — Minimal reproduction steps
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.2.0"
edition = "2024"
description = "CLI-first AI code review — BYOK, diff/scan/branch, pre-commit hooks"
license = "MIT"
repository = "https://github.com/ajianaz/cora-cli"
repository = "https://github.com/codecoradev/cora-cli"
readme = "README.md"
keywords = ["cli", "code-review", "ai", "git", "pre-commit"]
categories = ["command-line-utilities", "development-tools"]
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**AI-Powered Code Review CLI**

[![CI](https://github.com/ajianaz/cora-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/ajianaz/cora-cli/actions/workflows/ci.yml)
[![CI](https://github.com/codecoradev/cora-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/codecoradev/cora-cli/actions/workflows/ci.yml)
[![Crates.io](https://img.shields.io/crates/v/cora-cli.svg)](https://crates.io/crates/cora-cli)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Rust](https://img.shields.io/badge/Rust-1.85+-orange.svg)](https://www.rust-lang.org/)
Expand Down Expand Up @@ -42,7 +42,7 @@ cargo install cora-cli

### Binary Download

Download the latest release from [GitHub Releases](https://github.com/ajianaz/cora-cli/releases):
Download the latest release from [GitHub Releases](https://github.com/codecoradev/cora-cli/releases):

```bash
# Determine your platform tag from the releases page, e.g.:
Expand All @@ -52,12 +52,12 @@ Download the latest release from [GitHub Releases](https://github.com/ajianaz/co
# cora-x86_64-pc-windows-msvc-v0.2.0.zip

# Example: Linux aarch64
VERSION=$(curl -s https://api.github.com/repos/ajianaz/cora-cli/releases/latest | grep tag_name | cut -d'"' -f4)
curl -L "https://github.com/ajianaz/cora-cli/releases/download/${VERSION}/cora-aarch64-unknown-linux-gnu-${VERSION}.tar.gz" | tar xz
VERSION=$(curl -s https://api.github.com/repos/codecoradev/cora-cli/releases/latest | grep tag_name | cut -d'"' -f4)
curl -L "https://github.com/codecoradev/cora-cli/releases/download/${VERSION}/cora-aarch64-unknown-linux-gnu-${VERSION}.tar.gz" | tar xz
sudo mv cora /usr/local/bin/
```

> **Tip:** Visit the [Releases page](https://github.com/ajianaz/cora-cli/releases) to find the correct asset name for your platform.
> **Tip:** Visit the [Releases page](https://github.com/codecoradev/cora-cli/releases) to find the correct asset name for your platform.

### Homebrew

Expand All @@ -68,7 +68,7 @@ sudo mv cora /usr/local/bin/
Requires **Rust 1.85+**.

```bash
git clone https://github.com/ajianaz/cora-cli.git
git clone https://github.com/codecoradev/cora-cli.git
cd cora-cli
cargo install --path .
```
Expand Down Expand Up @@ -351,7 +351,7 @@ Or install manually:
# Manual install in CI
- name: Install cora-cli
run: |
curl -fsSL https://github.com/ajianaz/cora-cli/releases/latest/download/cora-x86_64-unknown-linux-gnu.tar.gz | tar xz
curl -fsSL https://github.com/codecoradev/cora-cli/releases/latest/download/cora-x86_64-unknown-linux-gnu.tar.gz | tar xz
sudo mv cora /usr/local/bin/
```

Expand Down
2 changes: 1 addition & 1 deletion src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use tracing::debug;

/// Example .cora.yaml template content.
const CONFIG_TEMPLATE: &str = r#"# Cora Code Review Configuration
# See: https://github.com/ajianaz/cora-cli
# See: https://github.com/codecoradev/cora-cli

# Provider settings
provider:
Expand Down
2 changes: 1 addition & 1 deletion website/src/routes/docs/changelog/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
categories: { type: string; items: string[] }[];
}

const REPO = 'https://github.com/ajianaz/cora-cli';
const REPO = 'https://github.com/codecoradev/cora-cli';

function parseChangelog(md: string): ChangelogSection[] {
const sections: ChangelogSection[] = [];
Expand Down
6 changes: 3 additions & 3 deletions website/src/routes/docs/installation/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

<div class="docs-section scroll-reveal">
<h2>Download Binary</h2>
<p>Pre-built binaries are available from the <a href="https://github.com/ajianaz/cora-cli/releases" target="_blank" rel="noopener">GitHub Releases</a> page.</p>
<p>Pre-built binaries are available from the <a href="https://github.com/codecoradev/cora-cli/releases" target="_blank" rel="noopener">GitHub Releases</a> page.</p>

<div class="text-sm text-[var(--muted-foreground)] mb-4">
<p>Supported platforms:</p>
Expand All @@ -80,7 +80,7 @@
</div>
<div class="terminal-body">
<div><span class="syntax-comment"># Download and extract</span></div>
<div><span class="syntax-cmd">$</span> <span class="syntax-highlight">curl</span> -sL https://github.com/ajianaz/cora-cli/releases/latest/download/cora-linux-x86_64.tar.gz | <span class="syntax-highlight">tar</span> xz</div>
<div><span class="syntax-cmd">$</span> <span class="syntax-highlight">curl</span> -sL https://github.com/codecoradev/cora-cli/releases/latest/download/cora-linux-x86_64.tar.gz | <span class="syntax-highlight">tar</span> xz</div>
<div><span class="syntax-cmd">$</span> <span class="syntax-highlight">mv</span> cora ~/.local/bin/cora</div>
</div>
</div>
Expand All @@ -97,7 +97,7 @@
<span class="terminal-dot-green"></span>
</div>
<div class="terminal-body">
<div><span class="syntax-cmd">$</span> <span class="syntax-highlight">git clone</span> <span class="syntax-string">https://github.com/ajianaz/cora-cli.git</span></div>
<div><span class="syntax-cmd">$</span> <span class="syntax-highlight">git clone</span> <span class="syntax-string">https://github.com/codecoradev/cora-cli.git</span></div>
<div><span class="syntax-cmd">$</span> <span class="syntax-highlight">cd</span> cora-cli</div>
<div><span class="syntax-cmd">$</span> <span class="syntax-highlight">cargo build</span> <span class="syntax-flag">--release</span></div>
<div><span class="syntax-comment"># Binary at target/release/cora</span></div>
Expand Down
Loading