@k2works/claude-code-booster 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/lib/assets/.claude/agent-memory/xp-programmer/MEMORY.md +0 -6
- package/lib/assets/.claude/agent-memory/xp-programmer/project_cargo_tracker.md +0 -11
- package/lib/assets/.claude/agent-memory/xp-programmer/project_ddd_patterns.md +0 -27
- package/lib/assets/.claude/agent-memory/xp-programmer/project_us07_route_assignment.md +0 -19
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# Agent Memory Index
|
|
2
|
-
|
|
3
|
-
## Project memories
|
|
4
|
-
- [project_cargo_tracker.md](project_cargo_tracker.md) — cargo-tracker のプロジェクト構成と gradlew 実行場所、既存テスト失敗状況
|
|
5
|
-
- [project_ddd_patterns.md](project_ddd_patterns.md) — cargo-tracker の DDD パターン(集約・値オブジェクト・ドメインイベントの実装規約)
|
|
6
|
-
- [project_us07_route_assignment.md](project_us07_route_assignment.md) — US07 route assignment: H2-compatible Flyway migrations, insert/update switching in repository, WebMvcTest mock requirements
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: cargo-tracker-project-context
|
|
3
|
-
description: case-study-cargo-tracker プロジェクトの基本構成と開発上の注意点
|
|
4
|
-
type: project
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Spring Boot 3.4.x / Java 25 / Gradle プロジェクト。`apps/cargo-tracker/` 配下に gradlew.bat がある。
|
|
8
|
-
|
|
9
|
-
**Why:** リポジトリルートではなく `apps/cargo-tracker/` でコマンドを実行する必要がある。また既存の統合テスト(BookingRepository 統合テスト、ShipperRepository 統合テスト、Spring コンテキストテスト)は現時点で失敗しており、これらは既存の事前失敗であることが確認済み。
|
|
10
|
-
|
|
11
|
-
**How to apply:** テスト実行コマンドは `Set-Location "C:\Users\PC202411-1\IdeaProjects\case-study-cargo-tracker\apps\cargo-tracker"; & ".\gradlew.bat" "test"` を使う。全テスト実行時に既存失敗があっても quote コンテキストが Green ならば問題なし。
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: cargo-tracker-ddd-patterns
|
|
3
|
-
description: case-study-cargo-tracker の DDD パターン(集約、値オブジェクト、ドメインイベント)の実装規約
|
|
4
|
-
type: project
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 集約ルート(Aggregate Root)パターン
|
|
8
|
-
- `register()`/`issue()` ファクトリメソッドでドメインイベントを発行し集約を生成
|
|
9
|
-
- `reconstitute()` ファクトリメソッドはドメインイベントを発行せず永続化ストアから再構成
|
|
10
|
-
- 全フィールドは `final`(イミュータブル)
|
|
11
|
-
- `domainEvents` は `List<DomainEvent>` で内部に持ち、`getDomainEvents()` で `unmodifiableList` を返す
|
|
12
|
-
|
|
13
|
-
## 値オブジェクト(Value Object)パターン
|
|
14
|
-
- コンストラクタで全バリデーション(null/blank チェック、正数チェック)
|
|
15
|
-
- `equals()/hashCode()` を実装
|
|
16
|
-
- `BigDecimal` の `equals` では精度差異が出るため `compareTo()==0` と `stripTrailingZeros()` を使う
|
|
17
|
-
|
|
18
|
-
## ドメインイベント
|
|
19
|
-
- `DomainEvent` はマーカーインターフェース
|
|
20
|
-
- イベントは Java `record` で実装(例: `record QuoteIssuedEvent(QuoteId quoteId, QuoteNumber quoteNumber) implements DomainEvent`)
|
|
21
|
-
|
|
22
|
-
## package-info.java
|
|
23
|
-
- コンテキストルートに `@NonNullApi` アノテーション付きの package-info.java を作成
|
|
24
|
-
|
|
25
|
-
**Why:** booking コンテキストが確立したパターン。quote コンテキスト実装時に同一パターンを踏襲した。
|
|
26
|
-
|
|
27
|
-
**How to apply:** 新しいコンテキスト実装時に同様のパターンを使う。
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: US07 route assignment implementation
|
|
3
|
-
description: Implementation patterns and notes for US07 (route selection and booking assignment)
|
|
4
|
-
type: project
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
US07 implemented on 2026-04-02. All 253 tests pass with inside-out TDD.
|
|
8
|
-
|
|
9
|
-
**Key patterns:**
|
|
10
|
-
- Added AssignedRoute value object (record), BookingRouteAssignedEvent, Booking.assignRoute() to domain layer
|
|
11
|
-
- Added AssignRouteCommand + AssignRouteCommandService to application layer
|
|
12
|
-
- Flyway V006 adds 3 columns to bookings table; H2-compatible: one ALTER TABLE per column
|
|
13
|
-
- BookingRecord record added 3 fields (after status, before createdAt)
|
|
14
|
-
- BookingMapper.java: added update() method; BookingRepositoryImpl.save() switches insert/update via findById check
|
|
15
|
-
- WebMvcTest: must add @MockitoBean for AssignRouteCommandService in BookingRestControllerTest and BookingWebControllerTest
|
|
16
|
-
|
|
17
|
-
**Why:** H2 does not support ADD COLUMN c1, c2 in one statement. Must split into separate ALTER TABLE statements.
|
|
18
|
-
|
|
19
|
-
**How to apply:** When creating Flyway migrations, use H2-compatible syntax. Split multi-column additions into separate ALTER TABLE statements.
|