Skip to content

Releases

v0.4.4

Choose a tag to compare

@NARUBROWN NARUBROWN released this 11 Nov 22:25
3a5ed8f

Spine CLI v0.4.4

Spine 코어 v0.7.5의 명시적 HTTP 입력을 검사하고 생성하는 핫픽스입니다. 새 HTTP 프로젝트의 기본 채널에서 코어 v0.7.5와 Echo 플랫폼 v0.2.1 조합을 검증합니다.

주요 변경

  • 명시적 계약을 사용하는 프로젝트에서 래퍼 없는 포인터 DTO 인자를 진단합니다.
  • input.Body[T]의 본문과 폼 입력을 검사하고 OpenAPI에 반영합니다.
  • input.Header[T]의 헤더 입력을 검사하고 OpenAPI에 반영합니다.
  • 생성기가 프로젝트의 코어 버전에 맞춰 경로와 본문 인자에 input.Path[T], input.Body[T]를 사용합니다.

설치

Go 1.25.5 이상에서 다음 명령을 실행하세요.

go install github.com/NARUBROWN/spine-cli/cmd/spine@v0.4.4
spine version

Spine CLI v0.4.3

Choose a tag to compare

@NARUBROWN NARUBROWN released this 09 Nov 14:24
b87deae

Spine CLI v0.4.3은 새 프로젝트를 만들 때 코어와 선택한 플랫폼의 최신 공개 정식 버전을 기본으로 사용합니다.

주요 변경

  • spine new의 기본 의존성 채널을 main으로 변경했습니다. 현재 기본 생성은 Spine v0.7.1 정식을 선택합니다.
  • --channel preview, --channel rc, --channel main으로 의존성 채널을 선택할 수 있습니다. 생성한 프로젝트의 spine update는 저장된 채널을 유지합니다.
  • 채널이 기록되지 않은 기존 platform-contracts-preview 프로젝트는 기존처럼 Preview 채널로 해석합니다.
  • input.Path DTO의 정적 계약 인식을 수정하고, 다중 스칼라 경로 입력에 필요한 최소 Spine 버전을 v0.7.1로 확인합니다.
  • 런타임 OpenAPI 내보내기와 React CSR 프론트엔드 구성을 지원합니다.

설치

Go 1.25.5 이상이 필요합니다. playground 검증기를 선택하는 프로젝트는 Go 1.26.0 이상이 필요합니다.

go install github.com/NARUBROWN/spine-cli/cmd/spine@v0.4.3
spine version
spine new todo-api --module github.com/example/todo-api

일반 설치에는 @v0.4.3 대신 @latest를 사용할 수 있습니다. 생성된 프로젝트의 실제 Spine 버전은 go.mod에서 확인하세요.

v0.4.2 - Spine v0.6.5 플랫폼 조립과 정식 버전 레시피

Choose a tag to compare

@NARUBROWN NARUBROWN released this 03 Nov 05:03
e12a8bc

Spine CLI v0.4.2

생성 앱을 spine.New(...)로 조립하고 HTTP·WebSocket·이벤트·검증 구현을 선택할 수 있습니다. 새 platform-contracts-v0.6.5 레시피는 Spine v0.6.5와 각 구현의 v0.1.0 정식 태그를 고정합니다.

  • HTTP echo|none, --websocket-platform none|gorilla, 반복 가능한 --event-platform [name:]kafka|rabbitmq, --validator none|playground를 지원합니다.
  • 이벤트 factory·validator 생성 오류와 환경 설정을 함께 생성합니다. 선택한 구현만 설치하며 생성 중 앱·factory·listener·브로커를 실행하지 않습니다.
  • inspect, context, contract check와 semantic snapshot/diff가 HTTP·WS·이벤트·검증 조립을 분석합니다. 정적 해석이 불가능한 구성은 실행하지 않고 진단합니다.
  • new의 dry-run/base_hash/if-match, 임시 설치와 실패 시 롤백을 유지합니다. 이전 레시피의 의존성 버전은 보존하며 update는 앱 소스를 재작성하지 않습니다.

CLI와 검증기 없는 앱은 Go 1.25.5 이상, playground 선택 앱은 Go 1.26 이상이 필요합니다. Gorilla WS는 HTTP Echo와 함께 선택합니다.

설치

go install github.com/NARUBROWN/spine-cli/cmd/spine@v0.4.2
spine version

검증

CLI 전체 race/vet, 두 layout의 생성 matrix 14개, 실제 WS 조합 4개와 Kafka/RabbitMQ 브로커 조합 12개를 검사했습니다. 공개 모듈만 사용하고 로컬 replace 없이 실행했으며, 생성한 BuildApplication 원본을 보존했습니다. 실제 Go 1.25.5 최소 버전 검사도 포함합니다.

재현 방법 · Spine v0.6.5 · PR #28

English: generated applications now compose the selected HTTP, WebSocket, event and validator implementations through spine.New. The release recipe pins Spine v0.6.5 and platform v0.1.0 tags, preserves earlier recipes, and keeps dependency updates separate from application source changes.

v0.4.1 - Official CLI Installation and Migration Guide | 공식 CLI 설치와 마이그레이션 가이드

Choose a tag to compare

@NARUBROWN NARUBROWN released this 02 Nov 06:28
cbeb004
Spine

🦴 Spine CLI v0.4.1

Official CLI Installation and Migration Guide | 공식 CLI 설치와 마이그레이션 가이드

Spine CLI v0.4.1은 공식 설치 경로를 github.com/NARUBROWN/spine-cli/cmd/spine으로, 호출 명령을 spine으로 명확히 안내하는 패치입니다. 기존 앱을 CLI가 검사하는 구조로 옮기는 가이드와 오프라인 계약 검사의 모듈 캐시 복구 안내를 추가합니다.

Spine CLI v0.4.1 clarifies the official installation path, github.com/NARUBROWN/spine-cli/cmd/spine, and the executable command, spine. It adds guidance for adapting existing applications to the CLI and preparing the module cache for offline contract inspection.

이 릴리스 노트는 v0.4.0 태그 이후의 최종 변경을 정리합니다. 기존 CLI 명령, 생성 동작과 HTTP/DI 계약은 유지합니다.

These release notes cover the final changes since the v0.4.0 tag. Existing CLI commands, generation behavior, and HTTP/DI contracts are preserved.


✨ 주요 변경 사항 | Highlights

  • 공식 설치 경로 cmd/spine과 호출 명령 spine으로 README와 에이전트 안내 통일
  • 일반 설치에는 @latest, CI와 버전별 재현에는 고정 태그를 사용하는 기준 명시
  • 기존 앱을 위한 CLI v0.4.0 호환 워크스페이스 마이그레이션 가이드 추가
  • MODULE_GRAPH_UNAVAILABLE 발생 시 전체 모듈 메타데이터를 준비하는 절차 문서화
  • Aligned the README and agent guidance around installation through cmd/spine and invocation through spine
  • Clarified the use of @latest for general installation and pinned tags for CI and reproducibility
  • Added the CLI v0.4.0-compatible workspace migration guide for existing applications
  • Documented full module metadata preparation when inspection reports MODULE_GRAPH_UNAVAILABLE

🚀 주요 변경 사항 상세 | Detailed Changes

설치 경로와 호출 명령 | Installation Path and Command Name

공식 설치 경로는 github.com/NARUBROWN/spine-cli/cmd/spine이며 실행 파일 이름은 spine입니다. 도움말, 생성 README, 첫 API 예제와 자동화의 다음 명령도 spine을 사용합니다.

프로젝트 이름은 spine-cli입니다. spine version은 기존 출력 형식으로 spine-cli 0.4.1을 반환합니다.

The official installation path is github.com/NARUBROWN/spine-cli/cmd/spine, which installs the spine executable. Help, generated READMEs, the first API example, and suggested automation commands use spine.

The project name remains spine-cli. spine version retains the existing output format and returns spine-cli 0.4.1.

기존 프로젝트의 마이그레이션 | Existing Project Migration

새 워크스페이스 마이그레이션 가이드는 기존 앱의 설정, 레이아웃, 명시적 앱 구성과 HTTP API를 조사하고 전환하는 절차를 설명합니다. 고정 CLI 버전으로 재현할 수 있도록 가이드의 v0.4.0 기준을 유지합니다.

spine update는 프로젝트 의존성 갱신 명령입니다. 소스, 설정과 레이아웃 전환은 가이드에 따라 별도로 적용합니다.

The new workspace migration guide explains how to inspect and adapt configuration, layouts, explicit application composition, and HTTP APIs in existing projects. It retains the pinned v0.4.0 CLI baseline for reproducibility.

spine update updates project dependencies. Apply source, configuration, and layout changes separately using the guide.

오프라인 모듈 검사 복구 | Offline Module Inspection Recovery

정적 계약 검사는 모듈 그래프를 오프라인으로 읽습니다. 의존성을 직접 변경했거나 MODULE_GRAPH_UNAVAILABLE이 발생하면 다음 명령으로 전체 모듈 메타데이터를 준비한 뒤 다시 검사합니다.

Static contract inspection reads the module graph offline. After changing dependencies manually, or when inspection reports MODULE_GRAPH_UNAVAILABLE, prepare the full module metadata before checking again.

go mod tidy
go mod download all
spine contract check --json
spine verify --json

🧩 호환성 메모 | Compatibility Notes

Spine v0.6.0, Echo 플랫폼 v0.1.0, Echo v5.4.4의 검증 레시피를 유지합니다. 기존 CLI 명령과 생성 규칙, Go API, 설정 파일 이름 및 JSON 프로토콜 스키마도 유지합니다. v0.4.0에서 생성한 앱은 이 패치 때문에 업무 Go 소스를 이동하거나 마이그레이션할 필요가 없습니다.

The verified recipe remains Spine v0.6.0, Echo platform v0.1.0, and Echo v5.4.4. Existing CLI commands, generation rules, Go APIs, configuration file names, and JSON protocol schemas are preserved. Applications generated with v0.4.0 do not need source relocation or migration for this patch.


🧪 테스트 범위 | Test Coverage Boundary

  • CLI 전체 go test -race ./... -count=1, vet, gofmt와 diff 검사 통과
  • Windows amd64 공식 패키지 빌드 통과
  • 공개 cmd/spine@v0.4.1과 cmd/spine@latest 설치 및 spine-cli 0.4.1 출력 확인
  • 별도 GOBIN에 spine만 설치되고 spine-cli가 없는 PATH에서 discovery 명령 통과
  • 공개 CLI로 new dry-run/if-match, Echo 플랫폼 설치 6단계와 contract check/verify 통과
  • 수동 tidy나 업무 Go 소스 수정 없이 실제 /health 200, 정상 종료와 포트 반환 확인
  • 생성 README와 next_actions가 spine을 사용함을 확인
  • Passed the full CLI race suite, vet, gofmt, and diff checks
  • Passed the Windows amd64 build of the official package
  • Installed the public cmd/spine@v0.4.1 and cmd/spine@latest packages and confirmed spine-cli 0.4.1
  • Confirmed that the isolated GOBIN contains only spine and discovery works without spine-cli on PATH
  • Passed guarded project creation, all six Echo installation stages, and contract check/verify using the public CLI
  • Observed real /health HTTP 200, normal shutdown, and port release without manual tidy or application Go edits
  • Verified spine commands in the generated README and next_actions

검증은 로컬 Go 검사와 공개 태그를 설치한 CLI의 실제 로컬 HTTP 실행 범위입니다. Windows 실행, 외부 DB, 브로커와 운영 애플리케이션 배포는 포함하지 않습니다.

These results cover local Go checks and real local HTTP execution with the CLI installed from the public tag. Windows execution, live databases, brokers, and production application deployment are outside this validation.


📦 설치 | Installation

Go 1.25.5 이상에서 다음 명령으로 설치합니다.

Install with Go 1.25.5 or later.

go install github.com/NARUBROWN/spine-cli/cmd/spine@v0.4.1
spine version
# spine-cli 0.4.1

spine new todo-api --module github.com/acme/todo-api
cd todo-api
spine dev

일반 설치에서는 최신 공개 태그를 선택하는 @latest를 사용할 수 있습니다.

For general installation, use @latest to select the latest published tag.

go install github.com/NARUBROWN/spine-cli/cmd/spine@latest

다른 터미널에서 기본 health 응답을 확인합니다. 200 OK와 {"status":"ok"}가 반환됩니다.

Check the default health response in another terminal. It returns 200 OK and {"status":"ok"}.

curl http://localhost:8080/health

관련 PR / Pull request: #26

Full Changelog: v0.4.0...v0.4.1

v0.4.0 - Spine v0.6.0 and Echo Platform v0.1.0 | Spine v0.6.0과 Echo 플랫폼 v0.1.0 지원

Choose a tag to compare

@NARUBROWN NARUBROWN released this 02 Nov 03:28
bf2ac43
Spine

🦴 Spine CLI v0.4.0

Spine v0.6.0, Echo Platform v0.1.0, HTTP Adapter v2 | Spine v0.6.0, Echo 플랫폼 v0.1.0, HTTP 어댑터 v2

Spine CLI v0.4.0은 new와 update가 Spine v0.6.0과 Echo 플랫폼 v0.1.0의 공개 릴리스 조합을 사용하도록 갱신합니다. 새 프로젝트는 플랫폼 연결, 의존성 설치, 정적 계약 검사와 빌드를 마친 뒤 생성되며, spine dev로 실행할 수 있습니다.

이 릴리스 노트는 CLI v0.3.0 태그 이후의 변경을 정리합니다. HTTP 어댑터 v2 구성 분석, typed Echo 설정 인식과 제거된 API 진단을 포함합니다.

Spine CLI v0.4.0 updates new and update to use the public releases of Spine v0.6.0 and Echo platform v0.1.0. New projects are created after platform configuration, dependency installation, static contract checks, and compilation, and can then be started with spine dev.

These release notes cover changes since CLI v0.3.0: HTTP adapter v2 composition analysis, recognition of typed Echo configuration, and diagnostics for removed APIs.


✨ 주요 변경 사항 | Highlights

  • new/update의 기본 조합을 Spine v0.6.0, Echo 플랫폼 v0.1.0, Echo v5.4.4로 갱신
  • spine.http-adapter/v2 지원과 선택된 Spine 버전에 따른 기존 v1 정적 분석 유지
  • platform.New, platform.Option, platform.NewFactory의 알려진 WithEcho 옵션 인식
  • 제거된 NewWithHTTPAdapter와 App.Transport에 구체적인 전환 진단 제공
  • app.Prepare, 실제 HTTP/WS와 종료 동작을 공개 모듈 조합으로 재검증
  • Set the default new/update combination to Spine v0.6.0, Echo platform v0.1.0, and Echo v5.4.4
  • Added spine.http-adapter/v2 support while retaining v1 static analysis according to the selected Spine version
  • Recognize known WithEcho options in platform.New, platform.Option, and platform.NewFactory
  • Added migration diagnostics for removed NewWithHTTPAdapter and App.Transport APIs
  • Revalidated app.Prepare, real HTTP/WS behavior, and shutdown against the public module releases

🚀 주요 변경 사항 상세 | Detailed Changes

공개 릴리스로 프로젝트 생성과 갱신 | Project Creation and Updates with Public Releases

기본 레시피는 이전 개발 의사버전에서 echo-v0.1.0-spine-v0.6.0으로 바뀝니다. 생성한 go.mod와 Go가 실제 선택한 모듈 그래프에서 아래 조합을 검사합니다.

The default recipe changes from the previous development pseudo-versions to echo-v0.1.0-spine-v0.6.0. The CLI checks the generated go.mod and the versions actually selected by Go against this combination.

모듈 / Module 버전 / Version
github.com/NARUBROWN/spine v0.6.0
github.com/NARUBROWN/spine-echo-platform v0.1.0
github.com/labstack/echo/v5 v5.4.4

new의 생성, 의존성 설치, 모듈 조합 검사, 정적 계약 검사, 빌드와 최종 게시의 6단계는 유지합니다. update는 임시 복사본에서 검증한 뒤 go.mod/go.sum만 반영합니다. 두 명령 모두 앱 초기화, 테스트나 listener를 실행하지 않습니다.

new retains its six stages: scaffold, dependencies, module checks, static contract checks, build, and publish. update validates a temporary project copy before applying only go.mod/go.sum. Neither command runs application initialization, tests, or a listener.

HTTP 어댑터 v2 구성 분석 | HTTP Adapter v2 Composition Analysis

CLI는 선택된 Spine 버전으로 기대하는 어댑터 계약을 결정합니다. Spine v0.6.0부터는 spine.http-adapter/v2를 기대하며, 이전 HTTP v1 개발 조합의 정적 분석도 유지합니다.

다음 생성식과 각각에 들어가는 알려진 platform.WithEcho(...) 옵션을 인식합니다. 아래 코드는 분석 가능한 생성식의 예시입니다.

The expected adapter contract follows the selected Spine version. Spine v0.6.0 uses spine.http-adapter/v2; static analysis of the previous HTTP v1 development combination remains available.

The analyzer recognizes these construction forms and known platform.WithEcho(...) options within them. The following expressions illustrate supported composition forms.

platform.New()
spine.New(platform.Option())
spine.New(spine.WithHTTPAdapter(platform.NewFactory()))

platform.New(platform.WithEcho(func(e *echo.Echo) {
    e.GET("/native", func(ctx *echo.Context) error {
        return ctx.String(200, "native")
    })
}))

정적 분석은 Echo 설정 콜백을 실행하거나 콜백 내부의 native route를 Spine 계약에 추가하지 않습니다. 임의 옵션과 options... 같은 가변 목록은 미해결로 남깁니다.

Static analysis does not execute Echo configuration callbacks or add native routes inside them to the Spine contract. Arbitrary options and expanded lists such as options... remain unresolved.


🧩 호환성/마이그레이션 메모 | Compatibility Notes

기존 프로젝트 갱신 | Updating Existing Projects

CLI v0.3.0은 이전 HTTP v1 개발 조합을 생성합니다. CLI v0.4.0으로 바꿔도 기존 프로젝트의 의존성이나 업무 소스는 자동으로 변경되지 않습니다.

spine update는 의존성을 갱신하며 소스를 마이그레이션하지 않습니다. 다음 API를 사용하는 프로젝트는 소스를 먼저 수정해야 합니다.

CLI v0.3.0 generates the previous HTTP v1 development combination. Installing CLI v0.4.0 does not automatically change an existing project's dependencies or application source.

spine update updates dependencies and does not migrate source code. Projects using these APIs must update their source first.

이전 API / Previous API 전환 / Replacement CLI 진단 / Diagnostic
spine.NewWithHTTPAdapter(factory) spine.New(spine.WithHTTPAdapter(factory)) HTTP_ADAPTER_API_REMOVED
app.Transport(func(any)) platform.WithEcho(func(*echo.Echo)) HTTP_NATIVE_HOOK_API_REMOVED
spine.Prepare(ctx, app, options) app.Prepare(ctx, options) Go 빌드 검사 / Go build check

선택된 Spine이 v0.6.0일 때 제거된 생성자와 native hook API를 진단합니다. 검증이 실패한 update는 원본 go.mod/go.sum을 유지합니다. 호환되는 프로젝트는 계획을 검토한 뒤 갱신할 수 있습니다.

The removed constructor and native hook APIs are diagnosed when the selected Spine version is v0.6.0. If update validation fails, the original go.mod/go.sum remain unchanged. Compatible projects can review and apply the update plan.

spine update --dry-run --json
spine update --if-match <base_hash> --json
spine contract check --json
spine verify --json

<base_hash>에는 검토한 dry-run 결과의 result.base_hash를 사용합니다. HTTP 요청, WebSocket과 외부 인프라 검증은 갱신 후 별도로 수행하세요.

Replace <base_hash> with result.base_hash from the reviewed dry run. Verify HTTP requests, WebSockets, and external infrastructure separately after updating.

상세 전환 안내 / Migration details: Spine HTTP 플랫폼 전환 가이드 / HTTP platform migration guide.


🧪 테스트 범위 | Test Coverage Boundary

이번 호환 수정은 정식 공개 태그 조합으로 다음 항목을 검증했습니다.

  • CLI 전체 go test -race ./... -count=1과 go vet ./...
  • 별도의 빈 Go 모듈 캐시와 빈 빌드 캐시에서 new의 6단계 통과
  • 수동 go mod tidy나 앱 Go 소스 수정 없이 dev와 최초 /health의 200 OK
  • 생성 앱의 HTTP 입력과 응답, WebSocket 왕복, 열린 연결의 종료와 포트 반환
  • app.Prepare, typed native hook, Close 후 503과 외부 listener 소유권
  • 재고 API HTTP 회귀 단언 54/54와 추가 생성/갱신/실패/실행 사례 8/8
  • 기존 v1 프로젝트의 업무 Go 소스 해시를 유지한 의존성 갱신과 실제 HTTP 201
  • CLI와 생성 앱의 Windows amd64 빌드

검증은 로컬 Go 검사와 실제 로컬 HTTP/WS 실행 범위입니다. 재고 앱은 기존 업무 fixture를 재사용한 회귀 검사이며 새 독립 휴먼 실험이 아닙니다. Windows 실행, 실제 DB와 Kafka/RabbitMQ 브로커, 운영 배포는 포함하지 않습니다.

The compatibility changes were validated against the public release tags with:

  • The full CLI go test -race ./... -count=1 suite and go vet ./...
  • All six new stages with separate, initially empty Go module and build caches
  • dev and the first /health response returning 200 OK without manual go mod tidy or application Go source edits
  • Generated-app HTTP input/output, WebSocket round trips, open-connection shutdown, and port release
  • app.Prepare, typed native hooks, 503 after Close, and external listener ownership
  • 54/54 inventory HTTP regression assertions and 8/8 additional creation, update, failure, and runtime cases
  • A dependency update of an existing v1 project preserving application Go source hashes and returning a real HTTP 201
  • Windows amd64 builds of the CLI and a generated application

These results cover local Go checks and real local HTTP/WS execution. The inventory app reuses an existing business fixture for regression testing; it is not a new independent human study. Windows execution, live databases, Kafka/RabbitMQ brokers, and production deployments are outside this validation.


📦 설치 | Installation

최소 Go 버전은 1.25.5입니다. spine 명령으로 설치하려면 다음 경로를 사용합니다.

The minimum Go version is 1.25.5. Install the spine command with:

go install github.com/NARUBROWN/spine-cli/cmd/spine@v0.4.0
spine version
# spine-cli 0.4.0

spine new todo-api --module github.com/acme/todo-api
cd todo-api
spine dev

다른 터미널에서 기본 health endpoint를 확인합니다. 200 OK와 {"status":"ok"}가 반환됩니다.

In another terminal, check the default health endpoint. It returns 200 OK and {"status":"ok"}.

curl http://localhost:8080/health

기존 spine-cli 실행 파일 이름으로 설치하려면 루트 경로를 사용합니다.

To keep the spine-cli executable name, install from the module root.

go install github.com/NARUBROWN/spine-cli@v0.4.0
spine-cli version
# spine-cli 0.4.0

new는 설치와 빌드를 완료한 뒤 프로젝트를 생성합니다. --skip-install로 파일만 생성한 경우에는 go mod tidy를 별도로 실행하세요. 설치, 생성과 갱신의 상세 동작은 README를 참고하세요.

new creates the project after installation and compilation succeed. If you generate files only with --skip-install, run go mod tidy separately. See the README for installation, generation, and update details.

관련 PR / Pull request: #24

Full Changelog: v0.3.0...v0.4.0