@kurrent/kcap 0.11.18 → 0.11.20
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/kcap/.codex-mcp.json
CHANGED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: work-items
|
|
3
|
+
description: >-
|
|
4
|
+
This skill should be used when you are planning or discovering the SHAPE of a
|
|
5
|
+
work item — that it breaks into sub-tasks (a parent and its parts), or that
|
|
6
|
+
one piece must land before another (a blocks / blocked-by dependency) — and
|
|
7
|
+
you want that structure recorded so it shows up in Kurrent Capacitor's Home
|
|
8
|
+
"Blockers & dependencies" view and progress figures. Use the `kcap mcp
|
|
9
|
+
workitems` MCP tools to DECLARE the breakdown and relations. Do NOT use this
|
|
10
|
+
skill for ordinary "attach this session to issue X" correlation alone (a
|
|
11
|
+
single `declare_work_item` call, no structure) or when the work is a single
|
|
12
|
+
indivisible task with no parts and no dependencies.
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Work items — declaring breakdown and dependencies
|
|
16
|
+
|
|
17
|
+
A work item's **breakdown** (a parent broken into parts) and its **dependencies**
|
|
18
|
+
(one item blocks / is blocked by another) are things you **declare** through the
|
|
19
|
+
`kcap mcp workitems` tools. The server never infers them — if you don't declare
|
|
20
|
+
the structure, the work item has an empty topology and Home renders no blockers,
|
|
21
|
+
no dependency graph, and no `n/m parts` progress figure for it.
|
|
22
|
+
|
|
23
|
+
Only declare structure that is **real and you are confident of**. Fabricated or
|
|
24
|
+
speculative parts/relations are worse than none. A single indivisible task needs
|
|
25
|
+
no breakdown.
|
|
26
|
+
|
|
27
|
+
## When to use these tools
|
|
28
|
+
|
|
29
|
+
- You've planned a work item as several sub-tasks → create the part items and
|
|
30
|
+
declare the parent→parts breakdown.
|
|
31
|
+
- You know one item must be finished before another can start → declare the
|
|
32
|
+
dependency.
|
|
33
|
+
- The structure changed (a part was dropped, a dependency no longer holds) →
|
|
34
|
+
retract it.
|
|
35
|
+
- You want to see the current structure → read the topology.
|
|
36
|
+
|
|
37
|
+
## The flow
|
|
38
|
+
|
|
39
|
+
1. **Attach the session to its work item** (if it isn't already). `declare_work_item`
|
|
40
|
+
with exactly one of `issue_key`, `pr_number`, `work_item_id`, or `new_title`.
|
|
41
|
+
Check `get_session_work_items` first if unsure what the session is attached to.
|
|
42
|
+
2. **Create the part items.** Each part is itself a work item — create one per
|
|
43
|
+
sub-task with `declare_work_item` (`new_title`), keeping the id each returns.
|
|
44
|
+
3. **Declare the breakdown.** `declare_work_breakdown` with `parent_id` and the
|
|
45
|
+
`part_ids`. It is idempotent — re-declaring an existing part is accepted, not
|
|
46
|
+
an error.
|
|
47
|
+
4. **Declare dependencies** where they exist. `declare_work_relation` with
|
|
48
|
+
`from_id`, `to_id`, and `relation_kind` `"blocks"` (from_id blocks to_id) or
|
|
49
|
+
`"blocked_by"` (from_id is blocked by to_id).
|
|
50
|
+
5. **Verify** with `get_work_item_topology` (pass the parent's `work_item_id`) —
|
|
51
|
+
it returns the parent, parts, and dependencies you can see.
|
|
52
|
+
|
|
53
|
+
## Rules the server enforces
|
|
54
|
+
|
|
55
|
+
- **Same repository.** A parent and its parts, and both ends of a relation, must
|
|
56
|
+
live in the same repository. Cross-repo structure is rejected.
|
|
57
|
+
- **One parent per part.** A part can belong to at most one parent breakdown.
|
|
58
|
+
- **No self-relation.** An item cannot block or be blocked by itself.
|
|
59
|
+
- **Idempotent declares.** Re-declaring an existing part or relation is fine.
|
|
60
|
+
- **Server-assigned attribution.** These tools take no `source`/`declared_by` —
|
|
61
|
+
the server resolves the caller. Don't look for such arguments.
|
|
62
|
+
- **Retract, don't delete.** Use `retract_work_breakdown` / `retract_work_relation`
|
|
63
|
+
when the structure changes.
|
|
64
|
+
|
|
65
|
+
## Tool reference
|
|
66
|
+
|
|
67
|
+
| Tool | Required args | Purpose |
|
|
68
|
+
|---|---|---|
|
|
69
|
+
| `declare_work_item` | exactly one of `issue_key` \| `pr_number` \| `work_item_id` \| `new_title` | Attach the session to a work item (or create one). `session_id` defaults to `KCAP_SESSION_ID`. |
|
|
70
|
+
| `get_session_work_items` | — | List what the current session is attached to. |
|
|
71
|
+
| `declare_work_breakdown` | `parent_id`, `part_ids` | Declare parent → parts. |
|
|
72
|
+
| `retract_work_breakdown` | `parent_id`, `part_ids` | Detach parts from the parent. |
|
|
73
|
+
| `declare_work_relation` | `from_id`, `to_id`, `relation_kind` (`blocks`\|`blocked_by`) | Declare a dependency. |
|
|
74
|
+
| `retract_work_relation` | `from_id`, `to_id`, `relation_kind` | Retract a dependency. |
|
|
75
|
+
| `get_work_item_topology` | `work_item_id` | Read parent, parts, and dependencies (visibility-scoped). |
|
|
76
|
+
|
|
77
|
+
## Requirements
|
|
78
|
+
|
|
79
|
+
Requires `kcap login`. The `kcap-workitems` MCP server is auto-registered for
|
|
80
|
+
Claude Code by `kcap setup`; it is not offered for Cursor or Codex.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kurrent/kcap",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.20",
|
|
4
4
|
"description": "CLI companion for Kurrent Capacitor — records and visualizes Claude Code sessions",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"repository": {
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"postinstall": "node bin/postinstall.js"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@kurrent/kcap-darwin-arm64": "0.11.
|
|
18
|
-
"@kurrent/kcap-linux-arm64": "0.11.
|
|
19
|
-
"@kurrent/kcap-linux-musl-arm64": "0.11.
|
|
20
|
-
"@kurrent/kcap-linux-musl-x64": "0.11.
|
|
21
|
-
"@kurrent/kcap-linux-x64": "0.11.
|
|
22
|
-
"@kurrent/kcap-win-x64": "0.11.
|
|
17
|
+
"@kurrent/kcap-darwin-arm64": "0.11.20",
|
|
18
|
+
"@kurrent/kcap-linux-arm64": "0.11.20",
|
|
19
|
+
"@kurrent/kcap-linux-musl-arm64": "0.11.20",
|
|
20
|
+
"@kurrent/kcap-linux-musl-x64": "0.11.20",
|
|
21
|
+
"@kurrent/kcap-linux-x64": "0.11.20",
|
|
22
|
+
"@kurrent/kcap-win-x64": "0.11.20"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"bin/",
|
|
26
26
|
"kcap/"
|
|
27
27
|
],
|
|
28
|
-
"kcapReleaseCommit": "
|
|
29
|
-
"kcapReleaseTag": "v0.11.
|
|
28
|
+
"kcapReleaseCommit": "57e4031916c2d3ca53cae101f9367f1fd48d26cc",
|
|
29
|
+
"kcapReleaseTag": "v0.11.20"
|
|
30
30
|
}
|