@orderful/droid 0.10.5 → 0.11.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/CLAUDE.md +13 -6
- package/CHANGELOG.md +13 -0
- package/README.md +23 -24
- package/dist/bin/droid.js +9 -9
- package/dist/bin/droid.js.map +1 -1
- package/dist/commands/install.d.ts +1 -1
- package/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/install.js +24 -23
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/setup.d.ts +3 -3
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +32 -28
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/skills.d.ts.map +1 -1
- package/dist/commands/skills.js +60 -53
- package/dist/commands/skills.js.map +1 -1
- package/dist/commands/tui.d.ts.map +1 -1
- package/dist/commands/tui.js +213 -319
- package/dist/commands/tui.js.map +1 -1
- package/dist/commands/uninstall.d.ts +1 -1
- package/dist/commands/uninstall.d.ts.map +1 -1
- package/dist/commands/uninstall.js +15 -6
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/commands/update.d.ts +2 -2
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +9 -9
- package/dist/commands/update.js.map +1 -1
- package/dist/lib/agents.d.ts +11 -10
- package/dist/lib/agents.d.ts.map +1 -1
- package/dist/lib/agents.js +52 -54
- package/dist/lib/agents.js.map +1 -1
- package/dist/lib/config.d.ts +1 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +42 -5
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/platforms.d.ts +41 -0
- package/dist/lib/platforms.d.ts.map +1 -0
- package/dist/lib/platforms.js +52 -0
- package/dist/lib/platforms.js.map +1 -0
- package/dist/lib/skills.d.ts +19 -11
- package/dist/lib/skills.d.ts.map +1 -1
- package/dist/lib/skills.js +125 -99
- package/dist/lib/skills.js.map +1 -1
- package/dist/lib/tools.d.ts +30 -0
- package/dist/lib/tools.d.ts.map +1 -0
- package/dist/lib/tools.js +116 -0
- package/dist/lib/tools.js.map +1 -0
- package/dist/lib/types.d.ts +45 -2
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/types.js +24 -5
- package/dist/lib/types.js.map +1 -1
- package/dist/tools/brain/TOOL.yaml +27 -0
- package/dist/tools/coach/TOOL.yaml +21 -0
- package/dist/tools/code-review/TOOL.yaml +18 -0
- package/dist/tools/comments/TOOL.yaml +27 -0
- package/dist/tools/project/TOOL.yaml +26 -0
- package/package.json +2 -2
- package/src/bin/droid.ts +9 -9
- package/src/commands/install.ts +24 -23
- package/src/commands/setup.test.ts +2 -2
- package/src/commands/setup.ts +33 -29
- package/src/commands/skills.ts +63 -64
- package/src/commands/tui.tsx +432 -578
- package/src/commands/uninstall.ts +17 -6
- package/src/commands/update.ts +10 -10
- package/src/lib/agents.ts +58 -58
- package/src/lib/config.test.ts +0 -10
- package/src/lib/config.ts +47 -5
- package/src/lib/platforms.ts +59 -0
- package/src/lib/skills.test.ts +53 -28
- package/src/lib/skills.ts +134 -101
- package/src/lib/tools.ts +140 -0
- package/src/lib/types.test.ts +15 -7
- package/src/lib/types.ts +63 -2
- package/src/tools/brain/TOOL.yaml +27 -0
- package/src/tools/coach/TOOL.yaml +21 -0
- package/src/tools/code-review/TOOL.yaml +18 -0
- package/src/tools/comments/TOOL.yaml +27 -0
- package/src/tools/project/TOOL.yaml +26 -0
- package/dist/agents/README.md +0 -137
- package/src/agents/README.md +0 -137
- /package/dist/{skills → tools}/README.md +0 -0
- /package/dist/{skills → tools}/brain/commands/README.md +0 -0
- /package/dist/{skills → tools}/brain/commands/brain.md +0 -0
- /package/dist/{skills → tools}/brain/commands/scratchpad.md +0 -0
- /package/dist/{skills → tools/brain/skills}/brain/SKILL.md +0 -0
- /package/dist/{skills → tools/brain/skills}/brain/SKILL.yaml +0 -0
- /package/dist/{skills → tools/brain/skills}/brain/references/metadata.md +0 -0
- /package/dist/{skills → tools/brain/skills}/brain/references/naming.md +0 -0
- /package/dist/{skills → tools/brain/skills}/brain/references/templates.md +0 -0
- /package/dist/{skills → tools/brain/skills}/brain/references/workflows.md +0 -0
- /package/dist/{skills → tools/brain/skills}/brain-obsidian/SKILL.md +0 -0
- /package/dist/{skills → tools/brain/skills}/brain-obsidian/SKILL.yaml +0 -0
- /package/dist/{skills → tools/brain/skills}/brain-obsidian/references/templates.md +0 -0
- /package/dist/{skills → tools/brain/skills}/brain-obsidian/references/workflows.md +0 -0
- /package/dist/{skills → tools}/coach/commands/README.md +0 -0
- /package/dist/{skills → tools}/coach/commands/coach.md +0 -0
- /package/dist/{skills → tools/coach/skills}/coach/SKILL.md +0 -0
- /package/dist/{skills → tools/coach/skills}/coach/SKILL.yaml +0 -0
- /package/dist/{skills → tools}/code-review/agents/edi-standards-reviewer/AGENT.md +0 -0
- /package/dist/{skills → tools}/code-review/agents/edi-standards-reviewer/AGENT.yaml +0 -0
- /package/dist/{skills → tools}/code-review/agents/error-handling-reviewer/AGENT.md +0 -0
- /package/dist/{skills → tools}/code-review/agents/error-handling-reviewer/AGENT.yaml +0 -0
- /package/dist/{skills → tools}/code-review/agents/test-coverage-analyzer/AGENT.md +0 -0
- /package/dist/{skills → tools}/code-review/agents/test-coverage-analyzer/AGENT.yaml +0 -0
- /package/dist/{skills → tools}/code-review/agents/type-reviewer/AGENT.md +0 -0
- /package/dist/{skills → tools}/code-review/agents/type-reviewer/AGENT.yaml +0 -0
- /package/dist/{skills → tools}/code-review/commands/code-review.md +0 -0
- /package/dist/{skills → tools/code-review/skills}/code-review/SKILL.md +0 -0
- /package/dist/{skills → tools/code-review/skills}/code-review/SKILL.yaml +0 -0
- /package/dist/{skills → tools}/comments/commands/README.md +0 -0
- /package/dist/{skills → tools}/comments/commands/comments.md +0 -0
- /package/dist/{skills → tools/comments/skills}/comments/SKILL.md +0 -0
- /package/dist/{skills → tools/comments/skills}/comments/SKILL.yaml +0 -0
- /package/dist/{skills → tools}/project/commands/README.md +0 -0
- /package/dist/{skills → tools}/project/commands/project.md +0 -0
- /package/dist/{skills → tools/project/skills}/project/SKILL.md +0 -0
- /package/dist/{skills → tools/project/skills}/project/SKILL.yaml +0 -0
- /package/dist/{skills → tools/project/skills}/project/references/changelog.md +0 -0
- /package/dist/{skills → tools/project/skills}/project/references/creating.md +0 -0
- /package/dist/{skills → tools/project/skills}/project/references/loading.md +0 -0
- /package/dist/{skills → tools/project/skills}/project/references/templates.md +0 -0
- /package/dist/{skills → tools/project/skills}/project/references/updating.md +0 -0
- /package/dist/{skills → tools/project/skills}/project/references/versioning.md +0 -0
- /package/src/{skills → tools}/README.md +0 -0
- /package/src/{skills → tools}/brain/commands/README.md +0 -0
- /package/src/{skills → tools}/brain/commands/brain.md +0 -0
- /package/src/{skills → tools}/brain/commands/scratchpad.md +0 -0
- /package/src/{skills → tools/brain/skills}/brain/SKILL.md +0 -0
- /package/src/{skills → tools/brain/skills}/brain/SKILL.yaml +0 -0
- /package/src/{skills → tools/brain/skills}/brain/references/metadata.md +0 -0
- /package/src/{skills → tools/brain/skills}/brain/references/naming.md +0 -0
- /package/src/{skills → tools/brain/skills}/brain/references/templates.md +0 -0
- /package/src/{skills → tools/brain/skills}/brain/references/workflows.md +0 -0
- /package/src/{skills → tools/brain/skills}/brain-obsidian/SKILL.md +0 -0
- /package/src/{skills → tools/brain/skills}/brain-obsidian/SKILL.yaml +0 -0
- /package/src/{skills → tools/brain/skills}/brain-obsidian/references/templates.md +0 -0
- /package/src/{skills → tools/brain/skills}/brain-obsidian/references/workflows.md +0 -0
- /package/src/{skills → tools}/coach/commands/README.md +0 -0
- /package/src/{skills → tools}/coach/commands/coach.md +0 -0
- /package/src/{skills → tools/coach/skills}/coach/SKILL.md +0 -0
- /package/src/{skills → tools/coach/skills}/coach/SKILL.yaml +0 -0
- /package/src/{skills → tools}/code-review/agents/edi-standards-reviewer/AGENT.md +0 -0
- /package/src/{skills → tools}/code-review/agents/edi-standards-reviewer/AGENT.yaml +0 -0
- /package/src/{skills → tools}/code-review/agents/error-handling-reviewer/AGENT.md +0 -0
- /package/src/{skills → tools}/code-review/agents/error-handling-reviewer/AGENT.yaml +0 -0
- /package/src/{skills → tools}/code-review/agents/test-coverage-analyzer/AGENT.md +0 -0
- /package/src/{skills → tools}/code-review/agents/test-coverage-analyzer/AGENT.yaml +0 -0
- /package/src/{skills → tools}/code-review/agents/type-reviewer/AGENT.md +0 -0
- /package/src/{skills → tools}/code-review/agents/type-reviewer/AGENT.yaml +0 -0
- /package/src/{skills → tools}/code-review/commands/code-review.md +0 -0
- /package/src/{skills → tools/code-review/skills}/code-review/SKILL.md +0 -0
- /package/src/{skills → tools/code-review/skills}/code-review/SKILL.yaml +0 -0
- /package/src/{skills → tools}/comments/commands/README.md +0 -0
- /package/src/{skills → tools}/comments/commands/comments.md +0 -0
- /package/src/{skills → tools/comments/skills}/comments/SKILL.md +0 -0
- /package/src/{skills → tools/comments/skills}/comments/SKILL.yaml +0 -0
- /package/src/{skills → tools}/project/commands/README.md +0 -0
- /package/src/{skills → tools}/project/commands/project.md +0 -0
- /package/src/{skills → tools/project/skills}/project/SKILL.md +0 -0
- /package/src/{skills → tools/project/skills}/project/SKILL.yaml +0 -0
- /package/src/{skills → tools/project/skills}/project/references/changelog.md +0 -0
- /package/src/{skills → tools/project/skills}/project/references/creating.md +0 -0
- /package/src/{skills → tools/project/skills}/project/references/loading.md +0 -0
- /package/src/{skills → tools/project/skills}/project/references/templates.md +0 -0
- /package/src/{skills → tools/project/skills}/project/references/updating.md +0 -0
- /package/src/{skills → tools/project/skills}/project/references/versioning.md +0 -0
package/.claude/CLAUDE.md
CHANGED
|
@@ -4,21 +4,22 @@ Project instructions for Claude Code when working in this repository.
|
|
|
4
4
|
|
|
5
5
|
## Project Overview
|
|
6
6
|
|
|
7
|
-
Droid is a TUI dashboard for managing AI skills, commands, and agents.
|
|
7
|
+
Droid is a TUI dashboard for managing AI tools. Each tool bundles related skills, commands, and agents. Installs to Claude Code (`~/.claude/`) and OpenCode (`~/.config/opencode/`).
|
|
8
8
|
|
|
9
9
|
## Build & Test
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
bun run build # Compile TypeScript and copy
|
|
12
|
+
bun run build # Compile TypeScript and copy tools to dist/
|
|
13
13
|
bun run dev # Watch mode
|
|
14
14
|
bun run test # Run tests
|
|
15
|
+
bun run lint # Run ESLint
|
|
15
16
|
bun run start # Run the TUI (bun dist/bin/droid.js)
|
|
16
17
|
```
|
|
17
18
|
|
|
18
19
|
## Git Rules
|
|
19
20
|
|
|
20
21
|
- **NEVER push directly to main**. Always create a branch and PR, even for small changes. The only exception is if the user explicitly says "push to main" in their message.
|
|
21
|
-
- Branch naming: `tf/<ticket-or-description>` (e.g., `tf/
|
|
22
|
+
- Branch naming: `tf/<ticket-or-description>` (e.g., `tf/tools-architecture`)
|
|
22
23
|
- Use changesets for version bumps: `npx changeset`
|
|
23
24
|
- **Changeset package name must be `"@orderful/droid"`** (not `"droid"`)
|
|
24
25
|
|
|
@@ -28,13 +29,19 @@ bun run start # Run the TUI (bun dist/bin/droid.js)
|
|
|
28
29
|
src/
|
|
29
30
|
├── bin/ # CLI entry point
|
|
30
31
|
├── commands/ # CLI commands (tui.tsx is the main dashboard)
|
|
31
|
-
├── lib/ # Core logic (skills.ts, agents.ts, config.ts)
|
|
32
|
-
|
|
33
|
-
└──
|
|
32
|
+
├── lib/ # Core logic (tools.ts, skills.ts, agents.ts, config.ts)
|
|
33
|
+
└── tools/ # Bundled tools
|
|
34
|
+
└── {tool}/
|
|
35
|
+
├── TOOL.yaml # Tool manifest
|
|
36
|
+
├── skills/{skill}/ # Skills included in tool
|
|
37
|
+
├── commands/ # Commands included in tool
|
|
38
|
+
└── agents/{agent}/ # Agents included in tool
|
|
34
39
|
```
|
|
35
40
|
|
|
36
41
|
## Key Patterns
|
|
37
42
|
|
|
43
|
+
- Tools are the user-facing abstraction over skills, commands, and agents
|
|
44
|
+
- `TOOL.yaml` defines what a tool includes and its metadata
|
|
38
45
|
- Skills install to `~/.claude/skills/` and register in CLAUDE.md
|
|
39
46
|
- Commands install to `~/.claude/commands/`
|
|
40
47
|
- Agents install to `~/.claude/agents/`
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @orderful/droid
|
|
2
2
|
|
|
3
|
+
## 0.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#67](https://github.com/Orderful/droid/pull/67) [`a99f5b4`](https://github.com/Orderful/droid/commit/a99f5b46cc3bc09bd0e48b19489e81c8cb0735ca) Thanks [@frytyler](https://github.com/frytyler)! - Introduce tools-based architecture with enhanced TUI
|
|
8
|
+
- Refactor to use "tools" abstraction over skills, commands, and agents
|
|
9
|
+
- Add TOOL.yaml manifests defining tool contents
|
|
10
|
+
- Simplify TUI from 3 tabs to 2 tabs (Tools/Settings)
|
|
11
|
+
- Add colored circle indicators for component types (skills/commands/agents)
|
|
12
|
+
- Add interactive Tool Explorer for browsing tool contents
|
|
13
|
+
- Show platform in sidebar header
|
|
14
|
+
- Update CLI commands to use tool terminology
|
|
15
|
+
|
|
3
16
|
## 0.10.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**"Droid, teaching your AI new tricks"**
|
|
6
6
|
|
|
7
|
-
AI workflow toolkit for sharing
|
|
7
|
+
AI workflow toolkit for sharing tools, commands, and agents across the engineering team.
|
|
8
8
|
|
|
9
9
|
### Why Droid?
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ npm install -g @orderful/droid
|
|
|
19
19
|
droid
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
That's it. The TUI guides you through setup and
|
|
22
|
+
That's it. The TUI guides you through setup and tool installation.
|
|
23
23
|
|
|
24
24
|
> **Note for nodenv/nvm/asdf users:** After global install, run `nodenv rehash` (or equivalent) to update your shims.
|
|
25
25
|
|
|
@@ -32,19 +32,17 @@ Run `droid` to launch the interactive dashboard:
|
|
|
32
32
|
│ @orderful/droid │
|
|
33
33
|
│ "Droid, teaching your AI new tricks" │
|
|
34
34
|
├─────────────────────────────────────────┤
|
|
35
|
-
│ >
|
|
36
|
-
│
|
|
37
|
-
│ Update Check for updates │
|
|
38
|
-
│ Setup Re-run setup wizard │
|
|
35
|
+
│ > Tools Browse and install tools │
|
|
36
|
+
│ Settings View/edit configuration │
|
|
39
37
|
└─────────────────────────────────────────┘
|
|
40
38
|
```
|
|
41
39
|
|
|
42
|
-
Browse available
|
|
40
|
+
Browse available tools, see what's installed, and manage everything from one place.
|
|
43
41
|
|
|
44
|
-
## Available
|
|
42
|
+
## Available Tools
|
|
45
43
|
|
|
46
|
-
|
|
|
47
|
-
|
|
44
|
+
| Tool | Description | Status |
|
|
45
|
+
|------|-------------|--------|
|
|
48
46
|
| **comments** | Inline `@droid`/`@user` conversations in any file | beta |
|
|
49
47
|
| **project** | Persistent project context across sessions | beta |
|
|
50
48
|
| **brain** | Collaborative scratch pad for planning & research | beta |
|
|
@@ -97,14 +95,14 @@ Config lives in `~/.droid/`:
|
|
|
97
95
|
```
|
|
98
96
|
~/.droid/
|
|
99
97
|
├── config.yaml # Global config
|
|
100
|
-
└──
|
|
101
|
-
└── {
|
|
102
|
-
└── overrides.yaml # Per-
|
|
98
|
+
└── tools/
|
|
99
|
+
└── {tool}/
|
|
100
|
+
└── overrides.yaml # Per-tool overrides
|
|
103
101
|
```
|
|
104
102
|
|
|
105
|
-
|
|
106
|
-
- **Claude Code**: `~/.claude/skills
|
|
107
|
-
- **OpenCode**: `~/.config/opencode/skills
|
|
103
|
+
Tools install to your AI platform's location:
|
|
104
|
+
- **Claude Code**: `~/.claude/skills/`, `~/.claude/commands/`, `~/.claude/agents/`
|
|
105
|
+
- **OpenCode**: `~/.config/opencode/skills/`, `~/.config/opencode/commands/`
|
|
108
106
|
|
|
109
107
|
## CLI Reference
|
|
110
108
|
|
|
@@ -114,9 +112,9 @@ While the TUI is the primary interface, direct commands are available:
|
|
|
114
112
|
|---------|-------------|
|
|
115
113
|
| `droid` | Launch TUI dashboard |
|
|
116
114
|
| `droid setup` | Run setup wizard |
|
|
117
|
-
| `droid install <
|
|
118
|
-
| `droid uninstall <
|
|
119
|
-
| `droid update` | Update droid and
|
|
115
|
+
| `droid install <tool>` | Install a tool |
|
|
116
|
+
| `droid uninstall <tool>` | Remove a tool |
|
|
117
|
+
| `droid update` | Update droid and tools |
|
|
120
118
|
| `droid config` | View/edit config |
|
|
121
119
|
|
|
122
120
|
## Development
|
|
@@ -132,12 +130,13 @@ bun link
|
|
|
132
130
|
bun unlink
|
|
133
131
|
```
|
|
134
132
|
|
|
135
|
-
### Adding
|
|
133
|
+
### Adding Tools
|
|
136
134
|
|
|
137
|
-
1. Create `src/
|
|
138
|
-
2.
|
|
139
|
-
3. Add commands in `src/
|
|
140
|
-
4.
|
|
135
|
+
1. Create `src/tools/{name}/TOOL.yaml` (manifest)
|
|
136
|
+
2. Add skills in `src/tools/{name}/skills/{skill}/SKILL.yaml` and `SKILL.md`
|
|
137
|
+
3. Add commands in `src/tools/{name}/commands/*.md`
|
|
138
|
+
4. Add agents in `src/tools/{name}/agents/{agent}/AGENT.yaml` and `AGENT.md`
|
|
139
|
+
5. Submit a PR
|
|
141
140
|
|
|
142
141
|
## License
|
|
143
142
|
|
package/dist/bin/droid.js
CHANGED
|
@@ -25,23 +25,23 @@ program
|
|
|
25
25
|
.option('-s, --set <key=value>', 'Set a config value')
|
|
26
26
|
.action(configCommand);
|
|
27
27
|
program
|
|
28
|
-
.command('
|
|
29
|
-
.description('Browse and manage available
|
|
28
|
+
.command('tools')
|
|
29
|
+
.description('Browse and manage available tools')
|
|
30
30
|
.action(skillsCommand);
|
|
31
31
|
program
|
|
32
|
-
.command('install <
|
|
33
|
-
.description('Install a
|
|
32
|
+
.command('install <tool>')
|
|
33
|
+
.description('Install a tool and run its setup wizard')
|
|
34
34
|
.action(installCommand);
|
|
35
35
|
program
|
|
36
|
-
.command('uninstall <
|
|
37
|
-
.description('Uninstall a
|
|
36
|
+
.command('uninstall <tool>')
|
|
37
|
+
.description('Uninstall a tool')
|
|
38
38
|
.action(uninstallCommand);
|
|
39
39
|
program
|
|
40
40
|
.command('update')
|
|
41
|
-
.description('Update droid and installed
|
|
42
|
-
.option('--
|
|
41
|
+
.description('Update droid and installed tools')
|
|
42
|
+
.option('--tools', 'Only update tools')
|
|
43
43
|
.option('--cli', 'Only update the CLI')
|
|
44
|
-
.argument('[
|
|
44
|
+
.argument('[tool]', 'Update a specific tool')
|
|
45
45
|
.action(updateCommand);
|
|
46
46
|
program
|
|
47
47
|
.command('tui')
|
package/dist/bin/droid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"droid.js","sourceRoot":"","sources":["../../src/bin/droid.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEhE,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;AAE7B,OAAO;KACJ,IAAI,CAAC,OAAO,CAAC;KACb,WAAW,CAAC,oCAAoC,CAAC;KACjD,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,OAAO;KACJ,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,6CAA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
2
|
//# sourceMappingURL=install.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAKA,wBAAsB,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAKA,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA+CpE"}
|
package/dist/commands/install.js
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { installSkill } from '../lib/skills.js';
|
|
3
|
+
import { getBundledTools, isToolInstalled } from '../lib/tools.js';
|
|
4
4
|
import { promptForSkillConfig } from '../lib/skill-config.js';
|
|
5
|
-
export async function installCommand(
|
|
6
|
-
// Check if
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
if (!
|
|
10
|
-
console.error(chalk.red(`\n✗
|
|
11
|
-
console.log(chalk.gray('\nAvailable
|
|
12
|
-
for (const
|
|
13
|
-
console.log(chalk.gray(` - ${
|
|
5
|
+
export async function installCommand(toolName) {
|
|
6
|
+
// Check if tool exists
|
|
7
|
+
const tools = getBundledTools();
|
|
8
|
+
const tool = tools.find((t) => t.name === toolName);
|
|
9
|
+
if (!tool) {
|
|
10
|
+
console.error(chalk.red(`\n✗ Tool '${toolName}' not found`));
|
|
11
|
+
console.log(chalk.gray('\nAvailable tools:'));
|
|
12
|
+
for (const t of tools) {
|
|
13
|
+
console.log(chalk.gray(` - ${t.name}`));
|
|
14
14
|
}
|
|
15
15
|
process.exit(1);
|
|
16
16
|
}
|
|
17
17
|
// Check if already installed
|
|
18
|
-
if (
|
|
19
|
-
console.log(chalk.yellow(`\n⚠
|
|
18
|
+
if (isToolInstalled(toolName)) {
|
|
19
|
+
console.log(chalk.yellow(`\n⚠ Tool '${toolName}' is already installed`));
|
|
20
20
|
console.log(chalk.gray('Use `droid update` to update it, or uninstall first.'));
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
console.log(chalk.bold(`\n🤖 Installing ${
|
|
24
|
-
|
|
23
|
+
console.log(chalk.bold(`\n🤖 Installing ${toolName}...\n`));
|
|
24
|
+
// Install via primary skill
|
|
25
|
+
const primarySkill = tool.includes.skills.find(s => s.required)?.name || toolName;
|
|
26
|
+
const result = installSkill(primarySkill);
|
|
25
27
|
if (result.success) {
|
|
26
|
-
console.log(chalk.green(`✓ ${
|
|
27
|
-
// Check if
|
|
28
|
-
|
|
29
|
-
if (manifest?.config_schema && Object.keys(manifest.config_schema).length > 0) {
|
|
28
|
+
console.log(chalk.green(`✓ Installed ${toolName}`));
|
|
29
|
+
// Check if tool has configurable options
|
|
30
|
+
if (tool.config_schema && Object.keys(tool.config_schema).length > 0) {
|
|
30
31
|
// If any config option lacks a default, go straight to config (it's required)
|
|
31
|
-
const hasRequiredConfig = Object.values(
|
|
32
|
-
await promptForSkillConfig(
|
|
32
|
+
const hasRequiredConfig = Object.values(tool.config_schema).some((option) => option.default === undefined);
|
|
33
|
+
await promptForSkillConfig(primarySkill, tool.config_schema, !hasRequiredConfig);
|
|
33
34
|
}
|
|
34
35
|
// Show next steps
|
|
35
36
|
console.log(chalk.gray('\nNext steps:'));
|
|
36
|
-
console.log(chalk.gray(' - Run your AI tool to start using
|
|
37
|
-
console.log(chalk.gray(` - Reconfigure anytime with \`droid
|
|
37
|
+
console.log(chalk.gray(' - Run your AI tool to start using it'));
|
|
38
|
+
console.log(chalk.gray(` - Reconfigure anytime with \`droid\` → Configure`));
|
|
38
39
|
}
|
|
39
40
|
else {
|
|
40
41
|
console.error(chalk.red(`✗ ${result.message}`));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CA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C,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
package/dist/commands/setup.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Platform } from '../lib/types.js';
|
|
2
2
|
/**
|
|
3
|
-
* Configure
|
|
3
|
+
* Configure platform permissions for droid
|
|
4
4
|
*/
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function configurePlatformPermissions(platform: Platform): {
|
|
6
6
|
added: string[];
|
|
7
7
|
alreadyPresent: boolean;
|
|
8
8
|
error?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAA0D,MAAM,iBAAiB,CAAC;AAoDnG;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,cAAc,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAmG7H;AAyBD,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CA8GlD"}
|
package/dist/commands/setup.js
CHANGED
|
@@ -6,7 +6,7 @@ import { join } from 'path';
|
|
|
6
6
|
import { homedir } from 'os';
|
|
7
7
|
import { loadConfig, saveConfig, configExists } from '../lib/config.js';
|
|
8
8
|
import { getBundledSkills } from '../lib/skills.js';
|
|
9
|
-
import {
|
|
9
|
+
import { Platform, BuiltInOutput } from '../lib/types.js';
|
|
10
10
|
/**
|
|
11
11
|
* Permissions droid needs to operate without constant prompts
|
|
12
12
|
*/
|
|
@@ -18,19 +18,19 @@ const DROID_PERMISSIONS = [
|
|
|
18
18
|
'Grep(~/.droid/**)',
|
|
19
19
|
];
|
|
20
20
|
/**
|
|
21
|
-
* Detect which
|
|
21
|
+
* Detect which platform is installed
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function detectPlatform() {
|
|
24
24
|
try {
|
|
25
25
|
execSync('claude --version', { stdio: 'ignore' });
|
|
26
|
-
return
|
|
26
|
+
return Platform.ClaudeCode;
|
|
27
27
|
}
|
|
28
28
|
catch {
|
|
29
29
|
// Claude Code not found
|
|
30
30
|
}
|
|
31
31
|
try {
|
|
32
32
|
execSync('opencode --version', { stdio: 'ignore' });
|
|
33
|
-
return
|
|
33
|
+
return Platform.OpenCode;
|
|
34
34
|
}
|
|
35
35
|
catch {
|
|
36
36
|
// OpenCode not found
|
|
@@ -55,11 +55,11 @@ function detectGitUsername() {
|
|
|
55
55
|
*/
|
|
56
56
|
const OPENCODE_SKILLS_PLUGIN = 'opencode-skills';
|
|
57
57
|
/**
|
|
58
|
-
* Configure
|
|
58
|
+
* Configure platform permissions for droid
|
|
59
59
|
*/
|
|
60
|
-
export function
|
|
60
|
+
export function configurePlatformPermissions(platform) {
|
|
61
61
|
const added = [];
|
|
62
|
-
if (
|
|
62
|
+
if (platform === Platform.ClaudeCode) {
|
|
63
63
|
const settingsPath = join(homedir(), '.claude', 'settings.json');
|
|
64
64
|
// Ensure .claude directory exists
|
|
65
65
|
const claudeDir = join(homedir(), '.claude');
|
|
@@ -103,7 +103,7 @@ export function configureAIToolPermissions(aiTool) {
|
|
|
103
103
|
}
|
|
104
104
|
return { added, alreadyPresent: added.length === 0 };
|
|
105
105
|
}
|
|
106
|
-
if (
|
|
106
|
+
if (platform === Platform.OpenCode) {
|
|
107
107
|
// OpenCode uses opencode.json for config
|
|
108
108
|
// Check global config location: ~/.config/opencode/opencode.json
|
|
109
109
|
const globalConfigDir = join(homedir(), '.config', 'opencode');
|
|
@@ -168,8 +168,8 @@ function getOutputOptions() {
|
|
|
168
168
|
}
|
|
169
169
|
export async function setupCommand() {
|
|
170
170
|
console.log(chalk.bold('\n🤖 Droid Setup\n'));
|
|
171
|
-
const
|
|
172
|
-
if (
|
|
171
|
+
const hasExistingConfig = configExists();
|
|
172
|
+
if (hasExistingConfig) {
|
|
173
173
|
const { overwrite } = await inquirer.prompt([
|
|
174
174
|
{
|
|
175
175
|
type: 'confirm',
|
|
@@ -183,13 +183,13 @@ export async function setupCommand() {
|
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
// Detect
|
|
187
|
-
const
|
|
188
|
-
if (
|
|
189
|
-
console.log(chalk.green(`✓ Detected ${
|
|
186
|
+
// Detect platform
|
|
187
|
+
const detectedPlatform = detectPlatform();
|
|
188
|
+
if (detectedPlatform) {
|
|
189
|
+
console.log(chalk.green(`✓ Detected ${detectedPlatform}\n`));
|
|
190
190
|
}
|
|
191
191
|
else {
|
|
192
|
-
console.log(chalk.yellow('⚠ No
|
|
192
|
+
console.log(chalk.yellow('⚠ No platform detected (Claude Code or OpenCode)\n'));
|
|
193
193
|
}
|
|
194
194
|
// Detect git username
|
|
195
195
|
const detectedGitUsername = detectGitUsername();
|
|
@@ -198,13 +198,13 @@ export async function setupCommand() {
|
|
|
198
198
|
const answers = await inquirer.prompt([
|
|
199
199
|
{
|
|
200
200
|
type: 'list',
|
|
201
|
-
name: '
|
|
202
|
-
message: 'Which
|
|
201
|
+
name: 'platform',
|
|
202
|
+
message: 'Which platform are you using?',
|
|
203
203
|
choices: [
|
|
204
|
-
{ name: 'Claude Code', value:
|
|
205
|
-
{ name: 'OpenCode', value:
|
|
204
|
+
{ name: 'Claude Code', value: Platform.ClaudeCode },
|
|
205
|
+
{ name: 'OpenCode', value: Platform.OpenCode },
|
|
206
206
|
],
|
|
207
|
-
default:
|
|
207
|
+
default: detectedPlatform || Platform.ClaudeCode,
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
type: 'input',
|
|
@@ -230,19 +230,23 @@ export async function setupCommand() {
|
|
|
230
230
|
default: detectedGitUsername || '',
|
|
231
231
|
},
|
|
232
232
|
]);
|
|
233
|
+
const existingConfig = loadConfig();
|
|
233
234
|
const config = {
|
|
234
|
-
...
|
|
235
|
-
|
|
235
|
+
...existingConfig,
|
|
236
|
+
platform: answers.platform,
|
|
237
|
+
user_mention: answers.user_mention,
|
|
238
|
+
output_preference: answers.output_preference,
|
|
239
|
+
git_username: answers.git_username,
|
|
236
240
|
};
|
|
237
241
|
saveConfig(config);
|
|
238
242
|
console.log(chalk.green('\n✓ Config saved to ~/.droid/config.yaml'));
|
|
239
|
-
// Configure
|
|
240
|
-
const { added, alreadyPresent, error } =
|
|
243
|
+
// Configure platform permissions/plugins
|
|
244
|
+
const { added, alreadyPresent, error } = configurePlatformPermissions(answers.platform);
|
|
241
245
|
if (error) {
|
|
242
246
|
console.log(chalk.red(`✗ ${error}`));
|
|
243
|
-
console.log(chalk.yellow(' You may need to manually configure your
|
|
247
|
+
console.log(chalk.yellow(' You may need to manually configure your platform'));
|
|
244
248
|
}
|
|
245
|
-
else if (answers.
|
|
249
|
+
else if (answers.platform === Platform.ClaudeCode) {
|
|
246
250
|
if (added.length > 0) {
|
|
247
251
|
console.log(chalk.green(`✓ Added droid permissions to Claude Code settings`));
|
|
248
252
|
}
|
|
@@ -250,7 +254,7 @@ export async function setupCommand() {
|
|
|
250
254
|
console.log(chalk.gray(` Droid permissions already configured in Claude Code`));
|
|
251
255
|
}
|
|
252
256
|
}
|
|
253
|
-
else if (answers.
|
|
257
|
+
else if (answers.platform === Platform.OpenCode) {
|
|
254
258
|
if (added.length > 0) {
|
|
255
259
|
console.log(chalk.green(`✓ Added opencode-skills plugin to OpenCode config`));
|
|
256
260
|
console.log(chalk.gray(` This enables Claude Code-style skills in OpenCode`));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO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
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/commands/skills.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/commands/skills.ts"],"names":[],"mappings":"AAgCA,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAiInD"}
|