@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.
Files changed (73) hide show
  1. package/.claude/CLAUDE.md +3 -43
  2. package/AGENTS.md +75 -0
  3. package/CHANGELOG.md +12 -0
  4. package/dist/bin/droid.js +3064 -54
  5. package/dist/index.js +952 -6
  6. package/package.json +2 -2
  7. package/scripts/build.ts +78 -0
  8. package/dist/bin/droid.js.map +0 -1
  9. package/dist/commands/config.js +0 -67
  10. package/dist/commands/config.js.map +0 -1
  11. package/dist/commands/install.js +0 -45
  12. package/dist/commands/install.js.map +0 -1
  13. package/dist/commands/setup.js +0 -269
  14. package/dist/commands/setup.js.map +0 -1
  15. package/dist/commands/skills.js +0 -144
  16. package/dist/commands/skills.js.map +0 -1
  17. package/dist/commands/tui/components/Badge.js +0 -29
  18. package/dist/commands/tui/components/Badge.js.map +0 -1
  19. package/dist/commands/tui/components/Markdown.js +0 -42
  20. package/dist/commands/tui/components/Markdown.js.map +0 -1
  21. package/dist/commands/tui/components/SettingsDetails.js +0 -11
  22. package/dist/commands/tui/components/SettingsDetails.js.map +0 -1
  23. package/dist/commands/tui/components/TabBar.js +0 -7
  24. package/dist/commands/tui/components/TabBar.js.map +0 -1
  25. package/dist/commands/tui/components/ToolDetails.js +0 -35
  26. package/dist/commands/tui/components/ToolDetails.js.map +0 -1
  27. package/dist/commands/tui/components/ToolItem.js +0 -11
  28. package/dist/commands/tui/components/ToolItem.js.map +0 -1
  29. package/dist/commands/tui/constants.js +0 -17
  30. package/dist/commands/tui/constants.js.map +0 -1
  31. package/dist/commands/tui/hooks/useAppUpdate.js +0 -52
  32. package/dist/commands/tui/hooks/useAppUpdate.js.map +0 -1
  33. package/dist/commands/tui/hooks/useToolUpdates.js +0 -77
  34. package/dist/commands/tui/hooks/useToolUpdates.js.map +0 -1
  35. package/dist/commands/tui/types.js +0 -2
  36. package/dist/commands/tui/types.js.map +0 -1
  37. package/dist/commands/tui/views/ReadmeViewer.js +0 -56
  38. package/dist/commands/tui/views/ReadmeViewer.js.map +0 -1
  39. package/dist/commands/tui/views/SetupScreen.js +0 -114
  40. package/dist/commands/tui/views/SetupScreen.js.map +0 -1
  41. package/dist/commands/tui/views/SkillConfigScreen.js +0 -148
  42. package/dist/commands/tui/views/SkillConfigScreen.js.map +0 -1
  43. package/dist/commands/tui/views/ToolExplorer.js +0 -86
  44. package/dist/commands/tui/views/ToolExplorer.js.map +0 -1
  45. package/dist/commands/tui/views/ToolUpdatePrompt.js +0 -38
  46. package/dist/commands/tui/views/ToolUpdatePrompt.js.map +0 -1
  47. package/dist/commands/tui/views/WelcomeScreen.js +0 -46
  48. package/dist/commands/tui/views/WelcomeScreen.js.map +0 -1
  49. package/dist/commands/tui.js +0 -307
  50. package/dist/commands/tui.js.map +0 -1
  51. package/dist/commands/uninstall.js +0 -26
  52. package/dist/commands/uninstall.js.map +0 -1
  53. package/dist/commands/update.js +0 -45
  54. package/dist/commands/update.js.map +0 -1
  55. package/dist/index.js.map +0 -1
  56. package/dist/lib/agents.js +0 -248
  57. package/dist/lib/agents.js.map +0 -1
  58. package/dist/lib/config.js +0 -196
  59. package/dist/lib/config.js.map +0 -1
  60. package/dist/lib/platforms.js +0 -52
  61. package/dist/lib/platforms.js.map +0 -1
  62. package/dist/lib/quotes.js +0 -24
  63. package/dist/lib/quotes.js.map +0 -1
  64. package/dist/lib/skill-config.js +0 -80
  65. package/dist/lib/skill-config.js.map +0 -1
  66. package/dist/lib/skills.js +0 -582
  67. package/dist/lib/skills.js.map +0 -1
  68. package/dist/lib/tools.js +0 -145
  69. package/dist/lib/tools.js.map +0 -1
  70. package/dist/lib/types.js +0 -50
  71. package/dist/lib/types.js.map +0 -1
  72. package/dist/lib/version.js +0 -100
  73. package/dist/lib/version.js.map +0 -1
package/.claude/CLAUDE.md CHANGED
@@ -1,22 +1,10 @@
1
1
  # CLAUDE.md
2
2
 
3
- Project instructions for Claude Code when working in this repository.
3
+ @../AGENTS.md
4
4
 
5
- ## Project Overview
5
+ ## Claude-Specific Instructions
6
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
- ## 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