Skip to content

Releases: hidetzu/prism

v0.3.0

11 Apr 06:16
a065849

Choose a tag to compare

prism v0.3.0 — Public Library API

Highlights

  • Public library API at pkg/prismAnalyze, Prompt, and sentinel errors for client-side branching
  • CLI analyze unified with libraryprism analyze now calls pkg/prism.Analyze() internally; CLI JSON output is byte-identical to pkg/prism.Result
  • Foundation for prism-api — the upcoming HTTP service can now build on top of the same library
  • See ADR-0002 for the design rationale

Breaking changes

The CLI JSON output structure changed to align with pkg/prism.Result:

Field v0.2.x v0.3.0
provider top-level pull_request.provider
pull_request.description included removed (use prism fetch for raw description)
pull_request.url not present added
changed_files[].patch included excluded by default
Empty/zero fields always present omitted (omitempty)

These changes were made early in the project lifecycle. Impact is expected to be minimal. See docs/json-schema.md for migration guidance.

Install

go install github.com/hidetzu/prism/cmd/prism@v0.3.0

Library usage

import "github.com/hidetzu/prism/pkg/prism"

result, err := prism.Analyze(ctx, prism.AnalyzeOptions{
    PRURL:       "https://github.com/owner/repo/pull/123",
    GitHubToken: os.Getenv("GITHUB_TOKEN"),
})

See the Library Usage section in the README for more.

Full changelog

See CHANGELOG.md

v0.2.0

11 Apr 01:43
b21a435

Choose a tag to compare

prism v0.2.0 — Provider Plugin Architecture

What's new

  • Provider plugin architecture — External providers are distributed as separate binaries (prism-provider-<name>) discovered on PATH
  • --provider flag — Explicitly select a provider; auto-detected from URL if omitted
  • AWS CodeCommit support — Via prism-provider-codecommit plugin
  • Provider plugin protocol v1 — Versioned JSON contract for plugin implementers (spec)

Design

GitHub remains built-in (go install works immediately). External providers (CodeCommit, future GitLab/Bitbucket) are plugins that wrap provider-specific APIs and output standardized JSON. See ADR-0001 for details.

Install

go install github.com/hidetzu/prism/cmd/prism@v0.2.0

CodeCommit setup

go install github.com/hidetzu/prism-provider-codecommit/cmd/prism-provider-codecommit@v0.1.0
prism analyze <CodeCommit PR URL>

Usage

# GitHub (auto-detected)
prism analyze https://github.com/owner/repo/pull/123

# CodeCommit (auto-detected or explicit)
prism analyze <CodeCommit PR URL>
prism analyze <PR_URL> --provider codecommit

v0.1.0

10 Apr 23:21

Choose a tag to compare

prism v0.1.0 — Initial Release

prism (PR + insight + system) is a Review Context Compiler — a CLI tool that decomposes Pull Requests into structured, AI-review-ready input.

Features

  • GitHub provider with REST API integration (pagination, timeout)
  • prism analyze — structured PR analysis (JSON / Markdown / text)
  • prism prompt — AI review prompts (light / detailed / cross modes)
  • prism fetch — raw PR data output
  • Change type classification (feature, bugfix, refactor, test-only, docs-only, etc.)
  • Risk estimation (low / medium / high)
  • Review axes suggestion and related files detection
  • Configuration file (~/.config/prism/config.yaml) and GITHUB_TOKEN env var
  • Language support (English / Japanese prompts)
  • Custom template support (--template)
  • Exit codes (0–4) for CI/CD integration

Install

go install github.com/hidetzu/prism/cmd/prism@v0.1.0

Usage

export GITHUB_TOKEN=your-token
prism analyze https://github.com/owner/repo/pull/123 --format json
prism prompt https://github.com/owner/repo/pull/123 --mode detailed
prism analyze https://github.com/owner/repo/pull/123 | claude -p "Review this PR"