task-memory 0.3.0
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/LICENSE +21 -0
- package/README.md +158 -0
- package/dist/index.js +2708 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 tomo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# task-memory (tm)
|
|
2
|
+
|
|
3
|
+
AIエージェント(および人間)がタスクの状態とコンテキストを管理し、長時間のセッションにおける「記憶喪失」を防ぐためのCLIツールです。
|
|
4
|
+
|
|
5
|
+
## 特徴
|
|
6
|
+
|
|
7
|
+
- **状態の永続化**: タスクの状態を `~/.task-memory.json` に保存します。
|
|
8
|
+
- **コンテキストスイッチ**: `tm update` コマンドで複数のタスクを一度に更新できます。
|
|
9
|
+
- **LLMフレンドリー**: AIエージェントが理解しやすいJSON形式で出力します。
|
|
10
|
+
|
|
11
|
+
## インストール
|
|
12
|
+
|
|
13
|
+
### ローカルインストール
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
git clone <repository-url> task-memory
|
|
17
|
+
cd task-memory
|
|
18
|
+
bun install
|
|
19
|
+
bun link
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
これで `tm` コマンドが使用可能になります。
|
|
23
|
+
|
|
24
|
+
## 使い方
|
|
25
|
+
|
|
26
|
+
詳細な使い方は [docs/usage/index.md](docs/usage/index.md) を参照してください。
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
### Create a Task
|
|
31
|
+
```bash
|
|
32
|
+
tm new "Refactor auth" --status wip --body "Starting now" --priority high --goal "Complete by Friday"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**進行順序の設定:**
|
|
36
|
+
```bash
|
|
37
|
+
# 基本的な順序
|
|
38
|
+
tm new "Task 1" --order 1
|
|
39
|
+
tm new "Task 2" --order 2
|
|
40
|
+
|
|
41
|
+
# 階層的な順序(親子関係)
|
|
42
|
+
tm new "Parent Task" --order 1
|
|
43
|
+
tm new "Child Task 1" --order 1-1
|
|
44
|
+
tm new "Child Task 2" --order 1-2
|
|
45
|
+
tm new "Grandchild Task" --order 1-2-1
|
|
46
|
+
|
|
47
|
+
# 小数での挿入(保存時に自動正規化)
|
|
48
|
+
tm new "Insert Task" --order 1.5
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Aliases: `tm n` (not yet impl), `tm new`
|
|
52
|
+
|
|
53
|
+
### List Tasks
|
|
54
|
+
```bash
|
|
55
|
+
tm list
|
|
56
|
+
# or
|
|
57
|
+
tm ls
|
|
58
|
+
tm l
|
|
59
|
+
```
|
|
60
|
+
By default, shows `todo` and `wip` tasks.
|
|
61
|
+
|
|
62
|
+
**Filtering Options:**
|
|
63
|
+
```bash
|
|
64
|
+
# すべてのタスク(done/closed含む)を表示
|
|
65
|
+
tm list --status-all
|
|
66
|
+
tm ls -a
|
|
67
|
+
|
|
68
|
+
# オープンなタスク(todo, wip, pending, long)を表示
|
|
69
|
+
tm list --open
|
|
70
|
+
|
|
71
|
+
# ステータスでフィルタリング
|
|
72
|
+
tm list --status pending
|
|
73
|
+
tm ls -s wip
|
|
74
|
+
|
|
75
|
+
# 優先度でフィルタリング
|
|
76
|
+
tm list --priority high
|
|
77
|
+
|
|
78
|
+
# バージョンでフィルタリング
|
|
79
|
+
tm list --version 1.0.0
|
|
80
|
+
tm list --tbd # version が tbd のタスク
|
|
81
|
+
tm list --released # リリース済み(version が tbd 以外)のタスク
|
|
82
|
+
|
|
83
|
+
# 表示件数を制限
|
|
84
|
+
tm list --head 5 # 最初の5件
|
|
85
|
+
tm list --tail 10 # 最後の10件
|
|
86
|
+
tm list --head # 最初の10件(デフォルト)
|
|
87
|
+
|
|
88
|
+
# ソート順の指定
|
|
89
|
+
tm list --sort order # 進行順序でソート(デフォルト)
|
|
90
|
+
tm list --sort id # タスクID順
|
|
91
|
+
tm list --sort created # 作成日時順
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Update a Task
|
|
95
|
+
```bash
|
|
96
|
+
tm update 1 --status done
|
|
97
|
+
# or
|
|
98
|
+
tm up 1 -s done
|
|
99
|
+
tm u 1 -s done
|
|
100
|
+
```
|
|
101
|
+
Supports context switching:
|
|
102
|
+
```bash
|
|
103
|
+
tm up 1 -s done 2 -s wip
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Update version:
|
|
107
|
+
```bash
|
|
108
|
+
tm update 1 --version 1.0.0
|
|
109
|
+
# or
|
|
110
|
+
tm u 1 -v 1.0.0
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Update order:
|
|
114
|
+
```bash
|
|
115
|
+
tm update 1 --order 1-2
|
|
116
|
+
# or
|
|
117
|
+
tm u 1 -o 1-2
|
|
118
|
+
|
|
119
|
+
# order を解除
|
|
120
|
+
tm update 1 --order null
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Get Task Details
|
|
124
|
+
```bash
|
|
125
|
+
tm get 1
|
|
126
|
+
# or
|
|
127
|
+
tm g 1
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Finish a Task
|
|
131
|
+
```bash
|
|
132
|
+
tm finish 1
|
|
133
|
+
# or
|
|
134
|
+
tm fin 1
|
|
135
|
+
tm f 1
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Reviews
|
|
139
|
+
```bash
|
|
140
|
+
tm review new "Design Review" --body "Check this out"
|
|
141
|
+
# or
|
|
142
|
+
tm rev new ...
|
|
143
|
+
tm tmr new ...
|
|
144
|
+
```
|
|
145
|
+
Subcommands: `new`, `list`, `get`, `update`, `return`, `accept`, `reject`.
|
|
146
|
+
|
|
147
|
+
### Environment
|
|
148
|
+
```bash
|
|
149
|
+
tm env
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## 開発
|
|
153
|
+
|
|
154
|
+
開発者向けの情報は [docs/dev/index.md](docs/dev/index.md) を参照してください。
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
bun test
|
|
158
|
+
```
|