@hir4ta/memoria 0.3.1 → 0.3.3

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "memoria",
3
3
  "description": "Claude Codeに長期記憶を与えるプラグイン。auto-compactで失われるコンテキストを自動保存し、セッション復元、設計決定の記録、開発者パターンの学習機能を提供。",
4
- "version": "0.2.0",
4
+ "version": "0.3.3",
5
5
  "author": {
6
6
  "name": "hir4ta"
7
7
  },
package/README.md CHANGED
@@ -8,23 +8,13 @@ Claude Codeの長期記憶を実現するプラグイン。
8
8
 
9
9
  - **セッション自動保存**: SessionEnd/PreCompact時に会話履歴を自動保存
10
10
  - **セッション再開**: `/memoria:resume` で過去のセッションを再開
11
- - **設計決定の記録**: プロジェクトの設計決定を保存・検索
11
+ - **設計決定の自動検出**: セッション終了時に設計決定を自動検出・保存(手動記録も可能)
12
12
  - **開発者パターン**: good/badパターンを収集・学習
13
13
  - **コーディングルール**: プロジェクト固有のルールを管理
14
14
  - **Webダッシュボード**: セッション・決定・パターン・ルールの閲覧・編集
15
15
 
16
16
  ## インストール
17
17
 
18
- ### Claude Code プラグインとしてインストール
19
-
20
- ```bash
21
- # マーケットプレースを追加
22
- /plugin marketplace add hir4ta/memoria-marketplace
23
-
24
- # memoriaをインストール
25
- /plugin install memoria@memoria-marketplace
26
- ```
27
-
28
18
  ### 前提条件
29
19
 
30
20
  - **jq**: フックでJSON処理に使用します
@@ -34,7 +24,26 @@ Claude Codeの長期記憶を実現するプラグイン。
34
24
  brew install jq
35
25
 
36
26
  # Ubuntu/Debian
37
- apt-get install jq
27
+ sudo apt-get install jq
28
+
29
+ # Windows (Chocolatey)
30
+ choco install jq
31
+
32
+ # Windows (Scoop)
33
+ scoop install jq
34
+
35
+ # Windows (winget)
36
+ winget install jqlang.jq
37
+ ```
38
+
39
+ ### Claude Code プラグインとしてインストール
40
+
41
+ ```bash
42
+ # マーケットプレースを追加
43
+ /plugin marketplace add hir4ta/memoria-marketplace
44
+
45
+ # memoriaをインストール
46
+ /plugin install memoria@memoria-marketplace
38
47
  ```
39
48
 
40
49
  ## 使い方
@@ -43,8 +52,8 @@ apt-get install jq
43
52
 
44
53
  | Hook | タイミング | 動作 |
45
54
  |------|-----------|------|
46
- | session-start | セッション開始時 | 関連セッションの提案、memoriaの使い方を注入 |
47
- | session-end | セッション終了時 | 会話履歴を自動保存、要約生成 |
55
+ | session-start | セッション開始時 | 関連セッションの提案、未レビュー決定の通知 |
56
+ | session-end | セッション終了時 | 会話履歴を保存、設計決定を自動検出 |
48
57
  | pre-compact | 圧縮前 | 進行中のセッションを保存 |
49
58
 
50
59
  ### Skills(コマンド)
@@ -55,30 +64,28 @@ apt-get install jq
55
64
  | `/memoria:save` | 現在のセッションを手動保存 |
56
65
  | `/memoria:decision "タイトル"` | 設計決定を記録 |
57
66
  | `/memoria:search "クエリ"` | セッション・決定を検索 |
58
- | `/memoria:dashboard` | ダッシュボードURLを表示 |
59
67
 
60
68
  ### ダッシュボード
61
69
 
70
+ プロジェクトディレクトリで以下を実行:
71
+
62
72
  ```bash
63
- # プラグインディレクトリに移動
64
- cd ~/.claude/plugins/cache/memoria-marketplace/memoria/<version>
73
+ npx @hir4ta/memoria --dashboard
74
+ ```
65
75
 
66
- # 依存関係をインストール
67
- npm install
76
+ ブラウザで http://localhost:7777 を開く。
68
77
 
69
- # 開発サーバーを起動
70
- npm run dev
78
+ ポート変更:
79
+ ```bash
80
+ npx @hir4ta/memoria --dashboard --port 8080
71
81
  ```
72
82
 
73
- ブラウザで http://localhost:3000 を開く。
74
-
75
83
  #### 画面一覧
76
84
 
77
85
  - **Sessions**: セッション一覧・詳細・編集・削除
78
86
  - **Decisions**: 設計決定の一覧・作成・編集・削除
79
87
  - **Patterns**: 開発者パターンの一覧・追加・削除
80
88
  - **Rules**: コーディングルールの一覧・追加・編集・削除
81
- - **Settings**: 設定情報の表示
82
89
 
83
90
  ## データ保存
84
91
 
@@ -108,31 +115,39 @@ cd memoria
108
115
  # 依存関係をインストール
109
116
  npm install
110
117
 
111
- # ダッシュボード開発サーバー
118
+ # フロントエンド開発サーバー (localhost:5173)
112
119
  npm run dev
113
120
 
121
+ # API開発サーバー (localhost:7777)
122
+ npm run dev:server
123
+
114
124
  # ビルド
115
125
  npm run build
126
+
127
+ # プレビュー
128
+ npm run preview
116
129
  ```
117
130
 
118
131
  ## 技術スタック
119
132
 
120
- - **ダッシュボード**: Next.js 16, React 19, TypeScript, Tailwind CSS v4, shadcn/ui
133
+ - **Server**: Hono (Node.js)
134
+ - **Frontend**: React 18, Vite, React Router v7
135
+ - **UI**: shadcn/ui, Tailwind CSS v4
121
136
  - **Hooks**: Bash, jq
122
137
  - **Skills**: Markdown
123
138
 
124
139
  ## アーキテクチャ
125
140
 
126
141
  ```
127
- [Claude Code] → [hooks (bash)] → [.memoria/*.json]
128
-
129
- [/memoria:* commands] → [skills] ───────┘
130
-
131
- [dashboard] ← [.memoria/*.json]
142
+ [Claude Code] → [hooks (bash/jq)] → [.memoria/*.json]
143
+
144
+ [/memoria:* commands] → [skills] ─────────┘
145
+
146
+ [dashboard (Hono)] ← [.memoria/*.json]
132
147
  ```
133
148
 
134
149
  - **ビルド不要**: フックはbash、スキルはmarkdown
135
- - **外部依存なし**: MCPサーバー不要、jqのみ必要
150
+ - **外部依存なし**: jqのみ必要、ダッシュボードはnpxで実行
136
151
  - **Git互換**: すべてのデータをJSONで保存、バージョン管理可能
137
152
 
138
153
  ## ライセンス