@orderful/droid 0.2.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.
Files changed (86) hide show
  1. package/.changeset/README.md +30 -0
  2. package/.changeset/config.json +14 -0
  3. package/.eslintrc.json +20 -0
  4. package/.github/PULL_REQUEST_TEMPLATE.md +9 -0
  5. package/.github/workflows/ci.yml +47 -0
  6. package/.github/workflows/release.yml +45 -0
  7. package/CHANGELOG.md +11 -0
  8. package/README.md +153 -0
  9. package/bun.lock +571 -0
  10. package/dist/bin/droid.d.ts +3 -0
  11. package/dist/bin/droid.d.ts.map +1 -0
  12. package/dist/bin/droid.js +48 -0
  13. package/dist/bin/droid.js.map +1 -0
  14. package/dist/commands/config.d.ts +8 -0
  15. package/dist/commands/config.d.ts.map +1 -0
  16. package/dist/commands/config.js +67 -0
  17. package/dist/commands/config.js.map +1 -0
  18. package/dist/commands/install.d.ts +2 -0
  19. package/dist/commands/install.d.ts.map +1 -0
  20. package/dist/commands/install.js +42 -0
  21. package/dist/commands/install.js.map +1 -0
  22. package/dist/commands/setup.d.ts +2 -0
  23. package/dist/commands/setup.d.ts.map +1 -0
  24. package/dist/commands/setup.js +132 -0
  25. package/dist/commands/setup.js.map +1 -0
  26. package/dist/commands/skills.d.ts +2 -0
  27. package/dist/commands/skills.d.ts.map +1 -0
  28. package/dist/commands/skills.js +135 -0
  29. package/dist/commands/skills.js.map +1 -0
  30. package/dist/commands/uninstall.d.ts +2 -0
  31. package/dist/commands/uninstall.d.ts.map +1 -0
  32. package/dist/commands/uninstall.js +17 -0
  33. package/dist/commands/uninstall.js.map +1 -0
  34. package/dist/commands/update.d.ts +7 -0
  35. package/dist/commands/update.d.ts.map +1 -0
  36. package/dist/commands/update.js +45 -0
  37. package/dist/commands/update.js.map +1 -0
  38. package/dist/index.d.ts +5 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +6 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/lib/config.d.ts +46 -0
  43. package/dist/lib/config.d.ts.map +1 -0
  44. package/dist/lib/config.js +133 -0
  45. package/dist/lib/config.js.map +1 -0
  46. package/dist/lib/skill-config.d.ts +6 -0
  47. package/dist/lib/skill-config.d.ts.map +1 -0
  48. package/dist/lib/skill-config.js +80 -0
  49. package/dist/lib/skill-config.js.map +1 -0
  50. package/dist/lib/skills.d.ts +56 -0
  51. package/dist/lib/skills.d.ts.map +1 -0
  52. package/dist/lib/skills.js +245 -0
  53. package/dist/lib/skills.js.map +1 -0
  54. package/dist/lib/types.d.ts +54 -0
  55. package/dist/lib/types.d.ts.map +1 -0
  56. package/dist/lib/types.js +31 -0
  57. package/dist/lib/types.js.map +1 -0
  58. package/dist/lib/version.d.ts +10 -0
  59. package/dist/lib/version.d.ts.map +1 -0
  60. package/dist/lib/version.js +41 -0
  61. package/dist/lib/version.js.map +1 -0
  62. package/dist/skills/comments/SKILL.md +65 -0
  63. package/dist/skills/comments/SKILL.yaml +18 -0
  64. package/dist/skills/comments/commands/comments.md +48 -0
  65. package/package.json +58 -0
  66. package/src/bin/droid.ts +58 -0
  67. package/src/commands/config.ts +86 -0
  68. package/src/commands/install.ts +48 -0
  69. package/src/commands/setup.ts +149 -0
  70. package/src/commands/skills.ts +159 -0
  71. package/src/commands/uninstall.ts +18 -0
  72. package/src/commands/update.ts +58 -0
  73. package/src/index.ts +5 -0
  74. package/src/lib/config.test.ts +99 -0
  75. package/src/lib/config.ts +154 -0
  76. package/src/lib/skill-config.ts +93 -0
  77. package/src/lib/skills.test.ts +138 -0
  78. package/src/lib/skills.ts +285 -0
  79. package/src/lib/types.test.ts +65 -0
  80. package/src/lib/types.ts +68 -0
  81. package/src/lib/version.test.ts +23 -0
  82. package/src/lib/version.ts +47 -0
  83. package/src/skills/comments/SKILL.md +65 -0
  84. package/src/skills/comments/SKILL.yaml +18 -0
  85. package/src/skills/comments/commands/comments.md +48 -0
  86. package/tsconfig.json +19 -0
@@ -0,0 +1,18 @@
1
+ name: comments
2
+ description: Inline conversation in any file via @droid/@user markers
3
+ version: 0.1.0
4
+ status: beta
5
+ dependencies: []
6
+ provides_output: false
7
+ config_schema:
8
+ user_mention:
9
+ type: string
10
+ description: Override the global user mention for this skill
11
+ ai_mentions:
12
+ type: string
13
+ description: Additional AI mentions to recognize (comma-separated, e.g., "@claude,@ai")
14
+ default: ""
15
+ preserve_comments:
16
+ type: boolean
17
+ description: Keep original comments after addressing (vs removing them)
18
+ default: false
@@ -0,0 +1,48 @@
1
+ # /comments - Check and respond to inline comments
2
+
3
+ Check for `> @droid` comments (and configured aliases like `@claude`) in files and address them.
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ /comments # Check all files in cwd
9
+ /comments check # Same as above
10
+ /comments check {path} # Check specific file or directory
11
+ /comments cleanup # Remove resolved comment threads
12
+ ```
13
+
14
+ ## Arguments
15
+
16
+ $ACTION - The action to perform: check (default) or cleanup
17
+ $PATH - Optional path to scope the search
18
+
19
+ ## Behavior
20
+
21
+ When you find a `> @droid` comment (or configured alias):
22
+
23
+ 1. **Read the context** - Understand what the comment is asking by reading surrounding code/text
24
+ 2. **Determine intent**:
25
+ - If it's an **action request** (e.g., "add error handling", "refactor this"):
26
+ - Execute the requested action
27
+ - Remove the comment (unless preserve_comments is true)
28
+ - If it's a **question** (e.g., "what do you think?", "is this approach good?"):
29
+ - Respond with `> @{user_mention}` on a new line below
30
+ - Keep the original comment for context
31
+ 3. **Check git diff first** - If there's uncommitted changes, prioritize checking those files
32
+
33
+ ## Response Format
34
+
35
+ When responding to questions, use the configured user tag:
36
+
37
+ ```markdown
38
+ > @droid Should we use async/await here?
39
+
40
+ > @fry Yes, async/await would be cleaner here because...
41
+ ```
42
+
43
+ ## Configuration
44
+
45
+ Check `~/.droid/skills/comments/overrides.yaml` for:
46
+ - `user_mention` - Your @mention for responses
47
+ - `ai_mentions` - Additional mentions to recognize (e.g., `@claude`)
48
+ - `preserve_comments` - Keep or remove addressed comments
package/tsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "outDir": "./dist",
7
+ "rootDir": "./src",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "declaration": true,
13
+ "declarationMap": true,
14
+ "sourceMap": true,
15
+ "resolveJsonModule": true
16
+ },
17
+ "include": ["src/**/*"],
18
+ "exclude": ["node_modules", "dist", "**/*.test.ts"]
19
+ }