@orderful/droid 0.2.0 → 0.4.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 +41 -0
- package/.github/workflows/changeset-check.yml +43 -0
- package/.github/workflows/release.yml +6 -3
- package/CHANGELOG.md +43 -0
- package/bun.lock +357 -14
- package/dist/agents/README.md +137 -0
- package/dist/bin/droid.js +12 -1
- package/dist/bin/droid.js.map +1 -1
- package/dist/commands/setup.d.ts +8 -0
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +67 -0
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/tui.d.ts +2 -0
- package/dist/commands/tui.d.ts.map +1 -0
- package/dist/commands/tui.js +737 -0
- package/dist/commands/tui.js.map +1 -0
- package/dist/lib/agents.d.ts +53 -0
- package/dist/lib/agents.d.ts.map +1 -0
- package/dist/lib/agents.js +149 -0
- package/dist/lib/agents.js.map +1 -0
- package/dist/lib/skills.d.ts +20 -0
- package/dist/lib/skills.d.ts.map +1 -1
- package/dist/lib/skills.js +102 -0
- package/dist/lib/skills.js.map +1 -1
- package/dist/lib/types.d.ts +5 -0
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/version.d.ts +5 -0
- package/dist/lib/version.d.ts.map +1 -1
- package/dist/lib/version.js +19 -1
- package/dist/lib/version.js.map +1 -1
- package/dist/skills/README.md +85 -0
- package/dist/skills/comments/SKILL.md +8 -0
- package/dist/skills/comments/SKILL.yaml +32 -0
- package/dist/skills/comments/commands/README.md +58 -0
- package/package.json +15 -2
- package/src/agents/README.md +137 -0
- package/src/bin/droid.ts +12 -1
- package/src/commands/setup.ts +77 -0
- package/src/commands/tui.tsx +1535 -0
- package/src/lib/agents.ts +186 -0
- package/src/lib/skills.test.ts +75 -1
- package/src/lib/skills.ts +125 -0
- package/src/lib/types.ts +7 -0
- package/src/lib/version.test.ts +20 -1
- package/src/lib/version.ts +19 -1
- package/src/skills/README.md +85 -0
- package/src/skills/comments/SKILL.md +8 -0
- package/src/skills/comments/SKILL.yaml +32 -0
- package/src/skills/comments/commands/README.md +58 -0
- package/tsconfig.json +5 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
Project instructions for Claude Code when working in this repository.
|
|
4
|
+
|
|
5
|
+
## Project Overview
|
|
6
|
+
|
|
7
|
+
Droid is a TUI dashboard for managing AI skills, commands, and agents. It installs content to Claude Code (`~/.claude/`) and OpenCode (`~/.config/opencode/`).
|
|
8
|
+
|
|
9
|
+
## Build & Test
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm run build # Compile TypeScript and copy skills/agents to dist/
|
|
13
|
+
npm run dev # Watch mode
|
|
14
|
+
npm run test # Run tests
|
|
15
|
+
npm run start # Run the TUI (bun dist/bin/droid.js)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Git Rules
|
|
19
|
+
|
|
20
|
+
- **NEVER push to main** without explicit user permission
|
|
21
|
+
- Always create a feature branch and PR for changes
|
|
22
|
+
- Branch naming: `tf/<ticket-or-description>` (e.g., `tf/agents-commands-tui`)
|
|
23
|
+
- Use changesets for version bumps: `npm run changeset`
|
|
24
|
+
|
|
25
|
+
## Structure
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
src/
|
|
29
|
+
├── bin/ # CLI entry point
|
|
30
|
+
├── commands/ # CLI commands (tui.tsx is the main dashboard)
|
|
31
|
+
├── lib/ # Core logic (skills.ts, agents.ts, config.ts)
|
|
32
|
+
├── skills/ # Bundled skills (copied to dist on build)
|
|
33
|
+
└── agents/ # Bundled agents (copied to dist on build)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Key Patterns
|
|
37
|
+
|
|
38
|
+
- Skills install to `~/.claude/skills/` and register in CLAUDE.md
|
|
39
|
+
- Commands install to `~/.claude/commands/`
|
|
40
|
+
- Agents install to `~/.claude/agents/`
|
|
41
|
+
- TUI uses Ink (React for CLI)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Changeset Check
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
check:
|
|
9
|
+
name: Check for changeset
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
|
+
with:
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
|
|
17
|
+
- name: Check for changeset
|
|
18
|
+
run: |
|
|
19
|
+
# Skip check for version packages PRs
|
|
20
|
+
if [[ "${{ github.head_ref }}" == "changeset-release/main" ]]; then
|
|
21
|
+
echo "✅ This is a version packages PR, skipping changeset check"
|
|
22
|
+
exit 0
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
# Check if any changeset files exist (excluding README)
|
|
26
|
+
CHANGESETS=$(find .changeset -name "*.md" ! -name "README.md" 2>/dev/null | wc -l)
|
|
27
|
+
|
|
28
|
+
# Check if this PR adds a changeset
|
|
29
|
+
CHANGED_FILES=$(git diff --name-only origin/main...HEAD)
|
|
30
|
+
NEW_CHANGESET=$(echo "$CHANGED_FILES" | grep "^\.changeset/.*\.md$" | grep -v README.md || true)
|
|
31
|
+
|
|
32
|
+
if [ -n "$NEW_CHANGESET" ]; then
|
|
33
|
+
echo "✅ This PR includes a changeset"
|
|
34
|
+
exit 0
|
|
35
|
+
elif [ "$CHANGESETS" -gt 0 ]; then
|
|
36
|
+
echo "⚠️ No changeset in this PR, but unreleased changesets exist"
|
|
37
|
+
echo "::warning::No changeset added in this PR. If this PR should trigger a release, run 'npx changeset' to add one."
|
|
38
|
+
exit 0
|
|
39
|
+
else
|
|
40
|
+
echo "⚠️ No changeset found"
|
|
41
|
+
echo "::warning::No changeset found. If this PR should trigger a release, run 'npx changeset' to add one."
|
|
42
|
+
exit 0
|
|
43
|
+
fi
|
|
@@ -12,11 +12,13 @@ jobs:
|
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
permissions:
|
|
14
14
|
contents: write
|
|
15
|
-
pull-requests: write
|
|
16
15
|
id-token: write
|
|
16
|
+
pull-requests: write
|
|
17
17
|
steps:
|
|
18
18
|
- name: Checkout
|
|
19
19
|
uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
fetch-depth: 0
|
|
20
22
|
|
|
21
23
|
- name: Setup Bun
|
|
22
24
|
uses: oven-sh/setup-bun@v2
|
|
@@ -32,14 +34,15 @@ jobs:
|
|
|
32
34
|
- name: Test
|
|
33
35
|
run: bun test src/
|
|
34
36
|
|
|
35
|
-
- name: Create Release
|
|
37
|
+
- name: Create Release PR or Publish
|
|
36
38
|
id: changesets
|
|
37
39
|
uses: changesets/action@v1
|
|
38
40
|
with:
|
|
39
41
|
version: bun changeset version
|
|
40
42
|
publish: bun changeset publish
|
|
41
|
-
title: "chore: version packages"
|
|
42
43
|
commit: "chore: version packages"
|
|
44
|
+
title: "chore: version packages"
|
|
43
45
|
env:
|
|
44
46
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
45
47
|
NPM_TOKEN: ${{ secrets.ORDERFUL_NPM_TOKEN }}
|
|
48
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @orderful/droid
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e7686f1`](https://github.com/Orderful/droid/commit/e7686f18615ff4730efef1cfe9440c268d957500) Thanks [@frytyler](https://github.com/frytyler)! - Add agents and commands install/uninstall functionality
|
|
8
|
+
|
|
9
|
+
**Agents:**
|
|
10
|
+
- New Agents tab in TUI with install/uninstall support
|
|
11
|
+
- Agents install to `~/.claude/agents/{name}.md`
|
|
12
|
+
- New schema fields: `mode` (primary/subagent/all), `tools` (allowed tools list)
|
|
13
|
+
- Sample `code-reviewer` agent included
|
|
14
|
+
|
|
15
|
+
**Commands:**
|
|
16
|
+
- Commands can now be installed independently of their parent skill
|
|
17
|
+
- Install copies command to `~/.claude/commands/`
|
|
18
|
+
- Smart handling: commands installed via skill show "via skill" and can't be uninstalled independently
|
|
19
|
+
|
|
20
|
+
**TUI Improvements:**
|
|
21
|
+
- View action for skills, commands, and agents with markdown syntax highlighting
|
|
22
|
+
- Fixed Enter key navigation for commands and agents tabs
|
|
23
|
+
- Scrolling fixes in markdown viewer
|
|
24
|
+
- Contributor README files for skills, commands, and agents
|
|
25
|
+
|
|
26
|
+
## 0.3.0
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- [#9](https://github.com/Orderful/droid/pull/9) [`e5d0ab5`](https://github.com/Orderful/droid/commit/e5d0ab5ab6f48836eba04d08a6176ae4060e7ecb) Thanks [@frytyler](https://github.com/frytyler)! - Add interactive TUI dashboard with Ink
|
|
31
|
+
- New `droid` command launches interactive TUI with tabs for Skills, Commands, Agents, and Settings
|
|
32
|
+
- First-time setup wizard guides users through AI tool selection, @mention config, and output preferences
|
|
33
|
+
- Skills tab shows bundled skills with install/uninstall/configure actions
|
|
34
|
+
- Skill configuration screen for editing skill-specific overrides
|
|
35
|
+
- Auto-configures Claude Code permissions during setup so skills work without prompts
|
|
36
|
+
- Settings tab for viewing and editing config from within TUI
|
|
37
|
+
- Version check with update notification
|
|
38
|
+
- Migrated from OpenTUI to Ink for better Node.js compatibility
|
|
39
|
+
|
|
40
|
+
## 0.2.1
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- [`499c729`](https://github.com/Orderful/droid/commit/499c729be1b7f636292fd5666abb0cba0c5c07c9) Thanks [@frytyler](https://github.com/frytyler)! - Fix npm publish configuration to use public registry
|
|
45
|
+
|
|
3
46
|
## 0.2.0
|
|
4
47
|
|
|
5
48
|
### Minor Changes
|