mantisai-cli 2.0.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/.claude-plugin/marketplace.json +14 -0
- package/.claude-plugin/plugin.json +18 -0
- package/.mcp.json +11 -0
- package/LICENSE +21 -0
- package/README.md +125 -0
- package/bin/mantis-list-spaces.js +32 -0
- package/bin/mantis-list-threads.js +32 -0
- package/bin/mantis-mcp-headers.js +9 -0
- package/bin/mantis-pick-space.js +5 -0
- package/bin/mantis-pick-thread.js +5 -0
- package/bin/mantis-resolve-space.js +25 -0
- package/bin/mantis-select.js +7 -0
- package/bin/mantis-set-space.js +31 -0
- package/bin/mantis-set-thread.js +34 -0
- package/bin/mantis-setup.js +59 -0
- package/bin/mantis-status.js +15 -0
- package/bin/mantis.js +111 -0
- package/lib/api.js +100 -0
- package/lib/claude-plugin.js +150 -0
- package/lib/codebase-csv.js +115 -0
- package/lib/config.js +65 -0
- package/lib/csv.js +10 -0
- package/lib/fetch.js +36 -0
- package/lib/fields.js +61 -0
- package/lib/list-cli.js +55 -0
- package/lib/map-create.js +128 -0
- package/lib/mcp-config.js +50 -0
- package/lib/picker.js +150 -0
- package/lib/space-id.js +13 -0
- package/lib/spaces.js +48 -0
- package/lib/ui.js +73 -0
- package/package.json +49 -0
- package/skills/codebase/SKILL.md +75 -0
- package/skills/connect/SKILL.md +42 -0
- package/skills/createmap/SKILL.md +62 -0
- package/skills/mantis/SKILL.md +52 -0
- package/skills/select/SKILL.md +17 -0
- package/skills/space/SKILL.md +62 -0
- package/skills/status/SKILL.md +20 -0
- package/skills/thread/SKILL.md +43 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Select your Mantis thread / space state (arrow-key menu in Claude Code). Use after /mantis:space.
|
|
3
|
+
argument-hint: [filter]
|
|
4
|
+
allowed-tools: AskUserQuestion, Bash
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Select Mantis thread
|
|
9
|
+
|
|
10
|
+
Use **AskUserQuestion** for the arrow-key menu inside Claude Code (shell pickers have no TTY in slash commands).
|
|
11
|
+
|
|
12
|
+
## Steps
|
|
13
|
+
|
|
14
|
+
1. Run:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
node "${CLAUDE_PLUGIN_ROOT}/bin/mantis-list-threads.js" $ARGUMENTS
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
If error mentions space, tell user to run **`/mantis:space`** first.
|
|
21
|
+
|
|
22
|
+
2. **AskUserQuestion**:
|
|
23
|
+
- `header`: `Thread`
|
|
24
|
+
- `question`: `Which thread in this space?`
|
|
25
|
+
- One option per thread (`label`: name, `description`: full `id`)
|
|
26
|
+
- Always include (if room under 4 options):
|
|
27
|
+
- `label`: `New thread`
|
|
28
|
+
- `description`: `Create a new space state for Claude Code`
|
|
29
|
+
- If `hasMore`, add `More threads…` like `/mantis:space` (paginate with `--offset`)
|
|
30
|
+
|
|
31
|
+
3. On selection:
|
|
32
|
+
- **New thread** → `node "${CLAUDE_PLUGIN_ROOT}/bin/mantis-set-thread.js" --new "Claude Code"`
|
|
33
|
+
- Otherwise → `node "${CLAUDE_PLUGIN_ROOT}/bin/mantis-set-thread.js" <uuid> "<name>"`
|
|
34
|
+
|
|
35
|
+
4. After a successful `mantis-set-thread.js`, tell the user to run **`/reload-plugins`**. Claude Code exposes `/reload-plugins` as a user command, not a Skill tool, so do not try to invoke it yourself.
|
|
36
|
+
|
|
37
|
+
5. Confirm with one line: space name, thread name, and that MCP is ready after `/reload-plugins`.
|
|
38
|
+
|
|
39
|
+
## Terminal fallback
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
mantis select thread
|
|
43
|
+
```
|