@orderful/droid 0.16.0 → 0.16.1
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 +3 -43
- package/AGENTS.md +75 -0
- package/CHANGELOG.md +12 -0
- package/dist/bin/droid.js +3064 -54
- package/dist/index.js +952 -6
- package/package.json +2 -2
- package/scripts/build.ts +78 -0
- package/dist/bin/droid.js.map +0 -1
- package/dist/commands/config.js +0 -67
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/install.js +0 -45
- package/dist/commands/install.js.map +0 -1
- package/dist/commands/setup.js +0 -269
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/skills.js +0 -144
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/tui/components/Badge.js +0 -29
- package/dist/commands/tui/components/Badge.js.map +0 -1
- package/dist/commands/tui/components/Markdown.js +0 -42
- package/dist/commands/tui/components/Markdown.js.map +0 -1
- package/dist/commands/tui/components/SettingsDetails.js +0 -11
- package/dist/commands/tui/components/SettingsDetails.js.map +0 -1
- package/dist/commands/tui/components/TabBar.js +0 -7
- package/dist/commands/tui/components/TabBar.js.map +0 -1
- package/dist/commands/tui/components/ToolDetails.js +0 -35
- package/dist/commands/tui/components/ToolDetails.js.map +0 -1
- package/dist/commands/tui/components/ToolItem.js +0 -11
- package/dist/commands/tui/components/ToolItem.js.map +0 -1
- package/dist/commands/tui/constants.js +0 -17
- package/dist/commands/tui/constants.js.map +0 -1
- package/dist/commands/tui/hooks/useAppUpdate.js +0 -52
- package/dist/commands/tui/hooks/useAppUpdate.js.map +0 -1
- package/dist/commands/tui/hooks/useToolUpdates.js +0 -77
- package/dist/commands/tui/hooks/useToolUpdates.js.map +0 -1
- package/dist/commands/tui/types.js +0 -2
- package/dist/commands/tui/types.js.map +0 -1
- package/dist/commands/tui/views/ReadmeViewer.js +0 -56
- package/dist/commands/tui/views/ReadmeViewer.js.map +0 -1
- package/dist/commands/tui/views/SetupScreen.js +0 -114
- package/dist/commands/tui/views/SetupScreen.js.map +0 -1
- package/dist/commands/tui/views/SkillConfigScreen.js +0 -148
- package/dist/commands/tui/views/SkillConfigScreen.js.map +0 -1
- package/dist/commands/tui/views/ToolExplorer.js +0 -86
- package/dist/commands/tui/views/ToolExplorer.js.map +0 -1
- package/dist/commands/tui/views/ToolUpdatePrompt.js +0 -38
- package/dist/commands/tui/views/ToolUpdatePrompt.js.map +0 -1
- package/dist/commands/tui/views/WelcomeScreen.js +0 -46
- package/dist/commands/tui/views/WelcomeScreen.js.map +0 -1
- package/dist/commands/tui.js +0 -307
- package/dist/commands/tui.js.map +0 -1
- package/dist/commands/uninstall.js +0 -26
- package/dist/commands/uninstall.js.map +0 -1
- package/dist/commands/update.js +0 -45
- package/dist/commands/update.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/agents.js +0 -248
- package/dist/lib/agents.js.map +0 -1
- package/dist/lib/config.js +0 -196
- package/dist/lib/config.js.map +0 -1
- package/dist/lib/platforms.js +0 -52
- package/dist/lib/platforms.js.map +0 -1
- package/dist/lib/quotes.js +0 -24
- package/dist/lib/quotes.js.map +0 -1
- package/dist/lib/skill-config.js +0 -80
- package/dist/lib/skill-config.js.map +0 -1
- package/dist/lib/skills.js +0 -582
- package/dist/lib/skills.js.map +0 -1
- package/dist/lib/tools.js +0 -145
- package/dist/lib/tools.js.map +0 -1
- package/dist/lib/types.js +0 -50
- package/dist/lib/types.js.map +0 -1
- package/dist/lib/version.js +0 -100
- package/dist/lib/version.js.map +0 -1
package/.claude/CLAUDE.md
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
# CLAUDE.md
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@../AGENTS.md
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Claude-Specific Instructions
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## Build & Test
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
bun run build # Compile TypeScript and copy tools to dist/
|
|
13
|
-
bun run dev # Watch mode
|
|
14
|
-
bun run test # Run tests
|
|
15
|
-
bun run lint # Run ESLint
|
|
16
|
-
bun run start # Run the TUI (bun dist/bin/droid.js)
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Git Rules
|
|
7
|
+
### Git Rules
|
|
20
8
|
|
|
21
9
|
- **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.
|
|
22
10
|
- Branch naming: `tf/<ticket-or-description>` (e.g., `tf/tools-architecture`)
|
|
@@ -40,31 +28,3 @@ EOF
|
|
|
40
28
|
- **patch**: Bug fixes, small improvements, internal refactors
|
|
41
29
|
- **minor**: New features, new tools/skills/commands
|
|
42
30
|
- **major**: Breaking changes
|
|
43
|
-
|
|
44
|
-
## Structure
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
src/
|
|
48
|
-
├── bin/ # CLI entry point
|
|
49
|
-
├── commands/ # CLI commands (tui.tsx is the main dashboard)
|
|
50
|
-
├── lib/ # Core logic (tools.ts, skills.ts, agents.ts, config.ts)
|
|
51
|
-
└── tools/ # Bundled tools
|
|
52
|
-
└── {tool}/
|
|
53
|
-
├── TOOL.yaml # Tool manifest (version, includes, config)
|
|
54
|
-
├── skills/{skill}/
|
|
55
|
-
│ ├── SKILL.md # Frontmatter + instructions
|
|
56
|
-
│ └── references/ # Optional context files
|
|
57
|
-
├── commands/
|
|
58
|
-
│ └── {command}.md # Frontmatter + instructions
|
|
59
|
-
└── agents/
|
|
60
|
-
└── {agent}.md # Frontmatter + instructions
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## Key Patterns
|
|
64
|
-
|
|
65
|
-
- Tools are the user-facing abstraction over skills, commands, and agents
|
|
66
|
-
- `TOOL.yaml` defines tool-level metadata and lists what's included (just names)
|
|
67
|
-
- Each artifact (.md file) owns its metadata in YAML frontmatter
|
|
68
|
-
- Skills use folders (can have `references/` subdir), commands/agents are flat files
|
|
69
|
-
- Install targets: `~/.claude/skills/`, `~/.claude/commands/`, `~/.claude/agents/`
|
|
70
|
-
- TUI uses Ink (React for CLI)
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
Project instructions for AI coding assistants.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
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
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun install # Install dependencies
|
|
13
|
+
bun run build # Compile TypeScript and copy tools to dist/
|
|
14
|
+
bun run dev # Watch mode
|
|
15
|
+
bun run test # Run tests
|
|
16
|
+
bun run lint # Run ESLint
|
|
17
|
+
bun run start # Run the TUI (bun dist/bin/droid.js)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Structure
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
src/
|
|
24
|
+
├── bin/ # CLI entry point
|
|
25
|
+
├── commands/ # CLI commands
|
|
26
|
+
│ ├── tui.tsx # Main TUI dashboard (Ink/React)
|
|
27
|
+
│ └── tui/ # TUI components, views, hooks
|
|
28
|
+
├── lib/ # Core logic (tools.ts, skills.ts, agents.ts, config.ts)
|
|
29
|
+
└── tools/ # Bundled tools
|
|
30
|
+
└── {tool}/
|
|
31
|
+
├── TOOL.yaml # Tool manifest (version, includes, config)
|
|
32
|
+
├── skills/{skill}/
|
|
33
|
+
│ ├── SKILL.md # Frontmatter + instructions
|
|
34
|
+
│ └── references/ # Optional context files
|
|
35
|
+
├── commands/
|
|
36
|
+
│ └── {command}.md # Frontmatter + instructions
|
|
37
|
+
└── agents/
|
|
38
|
+
└── {agent}.md # Frontmatter + instructions
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Key Patterns
|
|
42
|
+
|
|
43
|
+
- Tools are the user-facing abstraction over skills, commands, and agents
|
|
44
|
+
- `TOOL.yaml` defines tool-level metadata and lists what's included (just names)
|
|
45
|
+
- Each artifact (.md file) owns its metadata in YAML frontmatter
|
|
46
|
+
- Skills use folders (can have `references/` subdir), commands/agents are flat files
|
|
47
|
+
- Install targets: `~/.claude/skills/`, `~/.claude/commands/`, `~/.claude/agents/`
|
|
48
|
+
|
|
49
|
+
## UI Libraries
|
|
50
|
+
|
|
51
|
+
We use **two** terminal UI libraries for different purposes:
|
|
52
|
+
|
|
53
|
+
| Library | Purpose | Used In |
|
|
54
|
+
|---------|---------|---------|
|
|
55
|
+
| **Ink** | Full React-based TUI dashboard | `tui.tsx`, `tui/components/`, `tui/views/` |
|
|
56
|
+
| **Inquirer** | Simple CLI prompts (select, confirm, input) | `skills.ts`, `setup.ts`, `skill-config.ts` |
|
|
57
|
+
|
|
58
|
+
**Why both?**
|
|
59
|
+
- **Ink** is for the interactive dashboard—stateful, component-based, keyboard navigation
|
|
60
|
+
- **Inquirer** is for quick sequential prompts ("Which tool?", "Configure now? y/n")
|
|
61
|
+
|
|
62
|
+
Don't consolidate them. Using Ink for simple prompts would be overkill.
|
|
63
|
+
|
|
64
|
+
## Do Not Touch
|
|
65
|
+
|
|
66
|
+
- `.env` files and secrets
|
|
67
|
+
- `node_modules/`, `dist/`
|
|
68
|
+
- User config files (`~/.droid/`)
|
|
69
|
+
|
|
70
|
+
## Code Style
|
|
71
|
+
|
|
72
|
+
- TypeScript strict mode
|
|
73
|
+
- Prefer `const` over `let`
|
|
74
|
+
- Use Canadian/British spelling (behaviour, colour, favourite)
|
|
75
|
+
- Use "allow list/deny list" not "whitelist/blacklist"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @orderful/droid
|
|
2
2
|
|
|
3
|
+
## 0.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83](https://github.com/Orderful/droid/pull/83) [`023660a`](https://github.com/Orderful/droid/commit/023660a951ae1674989ae69d16b29e432a198300) Thanks [@frytyler](https://github.com/frytyler)! - Add AGENTS.md standard for cross-AI-tool compatibility
|
|
8
|
+
|
|
9
|
+
Introduces AGENTS.md at repo root with shared project instructions that work across Claude Code, Cursor, Copilot, and other AI coding assistants. CLAUDE.md now imports AGENTS.md and only contains Claude-specific instructions (git rules, changesets).
|
|
10
|
+
|
|
11
|
+
- [#85](https://github.com/Orderful/droid/pull/85) [`d5a1637`](https://github.com/Orderful/droid/commit/d5a1637974805ffb35d93726ec56db4580c556b5) Thanks [@frytyler](https://github.com/frytyler)! - Fix ESM module resolution for npm global installs
|
|
12
|
+
|
|
13
|
+
Switches build from tsc to esbuild bundling. This fixes the ERR_MODULE_NOT_FOUND error when running droid after npm install -g, caused by Node ESM requiring explicit .js extensions that TypeScript doesn't add.
|
|
14
|
+
|
|
3
15
|
## 0.16.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|