@orderful/droid 0.15.0 → 0.16.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 (149) hide show
  1. package/.claude/CLAUDE.md +19 -1
  2. package/CHANGELOG.md +13 -0
  3. package/dist/bin/droid.js +8 -8
  4. package/dist/bin/droid.js.map +1 -1
  5. package/dist/commands/config.js +1 -1
  6. package/dist/commands/config.js.map +1 -1
  7. package/dist/commands/install.js +3 -3
  8. package/dist/commands/install.js.map +1 -1
  9. package/dist/commands/setup.d.ts +1 -1
  10. package/dist/commands/setup.d.ts.map +1 -1
  11. package/dist/commands/setup.js +3 -3
  12. package/dist/commands/setup.js.map +1 -1
  13. package/dist/commands/skills.js +4 -4
  14. package/dist/commands/skills.js.map +1 -1
  15. package/dist/commands/tui/components/Badge.d.ts +13 -0
  16. package/dist/commands/tui/components/Badge.d.ts.map +1 -0
  17. package/dist/commands/tui/components/Badge.js +29 -0
  18. package/dist/commands/tui/components/Badge.js.map +1 -0
  19. package/dist/commands/tui/components/Markdown.d.ts +5 -0
  20. package/dist/commands/tui/components/Markdown.d.ts.map +1 -0
  21. package/dist/commands/tui/components/Markdown.js +42 -0
  22. package/dist/commands/tui/components/Markdown.js.map +1 -0
  23. package/dist/commands/tui/components/SettingsDetails.d.ts +5 -0
  24. package/dist/commands/tui/components/SettingsDetails.d.ts.map +1 -0
  25. package/dist/commands/tui/components/SettingsDetails.js +11 -0
  26. package/dist/commands/tui/components/SettingsDetails.js.map +1 -0
  27. package/dist/commands/tui/components/TabBar.d.ts +10 -0
  28. package/dist/commands/tui/components/TabBar.d.ts.map +1 -0
  29. package/dist/commands/tui/components/TabBar.js +7 -0
  30. package/dist/commands/tui/components/TabBar.js.map +1 -0
  31. package/dist/commands/tui/components/ToolDetails.d.ts +8 -0
  32. package/dist/commands/tui/components/ToolDetails.d.ts.map +1 -0
  33. package/dist/commands/tui/components/ToolDetails.js +35 -0
  34. package/dist/commands/tui/components/ToolDetails.js.map +1 -0
  35. package/dist/commands/tui/components/ToolItem.d.ts +9 -0
  36. package/dist/commands/tui/components/ToolItem.d.ts.map +1 -0
  37. package/dist/commands/tui/components/ToolItem.js +11 -0
  38. package/dist/commands/tui/components/ToolItem.js.map +1 -0
  39. package/dist/commands/tui/constants.d.ts +16 -0
  40. package/dist/commands/tui/constants.d.ts.map +1 -0
  41. package/dist/commands/tui/constants.js +17 -0
  42. package/dist/commands/tui/constants.js.map +1 -0
  43. package/dist/commands/tui/hooks/useAppUpdate.d.ts +13 -0
  44. package/dist/commands/tui/hooks/useAppUpdate.d.ts.map +1 -0
  45. package/dist/commands/tui/hooks/useAppUpdate.js +52 -0
  46. package/dist/commands/tui/hooks/useAppUpdate.js.map +1 -0
  47. package/dist/commands/tui/hooks/useToolUpdates.d.ts +22 -0
  48. package/dist/commands/tui/hooks/useToolUpdates.d.ts.map +1 -0
  49. package/dist/commands/tui/hooks/useToolUpdates.js +77 -0
  50. package/dist/commands/tui/hooks/useToolUpdates.js.map +1 -0
  51. package/dist/commands/tui/types.d.ts +5 -0
  52. package/dist/commands/tui/types.d.ts.map +1 -0
  53. package/dist/commands/tui/types.js +2 -0
  54. package/dist/commands/tui/types.js.map +1 -0
  55. package/dist/commands/tui/views/ReadmeViewer.d.ts +7 -0
  56. package/dist/commands/tui/views/ReadmeViewer.d.ts.map +1 -0
  57. package/dist/commands/tui/views/ReadmeViewer.js +56 -0
  58. package/dist/commands/tui/views/ReadmeViewer.js.map +1 -0
  59. package/dist/commands/tui/views/SetupScreen.d.ts +8 -0
  60. package/dist/commands/tui/views/SetupScreen.d.ts.map +1 -0
  61. package/dist/commands/tui/views/SetupScreen.js +114 -0
  62. package/dist/commands/tui/views/SetupScreen.js.map +1 -0
  63. package/dist/commands/tui/views/SkillConfigScreen.d.ts +8 -0
  64. package/dist/commands/tui/views/SkillConfigScreen.d.ts.map +1 -0
  65. package/dist/commands/tui/views/SkillConfigScreen.js +148 -0
  66. package/dist/commands/tui/views/SkillConfigScreen.js.map +1 -0
  67. package/dist/commands/tui/views/ToolExplorer.d.ts +8 -0
  68. package/dist/commands/tui/views/ToolExplorer.d.ts.map +1 -0
  69. package/dist/commands/tui/views/ToolExplorer.js +86 -0
  70. package/dist/commands/tui/views/ToolExplorer.js.map +1 -0
  71. package/dist/commands/tui/views/ToolUpdatePrompt.d.ts +10 -0
  72. package/dist/commands/tui/views/ToolUpdatePrompt.d.ts.map +1 -0
  73. package/dist/commands/tui/views/ToolUpdatePrompt.js +38 -0
  74. package/dist/commands/tui/views/ToolUpdatePrompt.js.map +1 -0
  75. package/dist/commands/tui/views/WelcomeScreen.d.ts +11 -0
  76. package/dist/commands/tui/views/WelcomeScreen.d.ts.map +1 -0
  77. package/dist/commands/tui/views/WelcomeScreen.js +46 -0
  78. package/dist/commands/tui/views/WelcomeScreen.js.map +1 -0
  79. package/dist/commands/tui.d.ts.map +1 -1
  80. package/dist/commands/tui.js +54 -755
  81. package/dist/commands/tui.js.map +1 -1
  82. package/dist/commands/uninstall.js +2 -2
  83. package/dist/commands/uninstall.js.map +1 -1
  84. package/dist/commands/update.js +1 -1
  85. package/dist/commands/update.js.map +1 -1
  86. package/dist/index.d.ts +4 -4
  87. package/dist/index.d.ts.map +1 -1
  88. package/dist/index.js +4 -4
  89. package/dist/index.js.map +1 -1
  90. package/dist/lib/agents.d.ts +1 -1
  91. package/dist/lib/agents.d.ts.map +1 -1
  92. package/dist/lib/agents.js +4 -4
  93. package/dist/lib/agents.js.map +1 -1
  94. package/dist/lib/config.d.ts +1 -1
  95. package/dist/lib/config.d.ts.map +1 -1
  96. package/dist/lib/config.js +1 -1
  97. package/dist/lib/config.js.map +1 -1
  98. package/dist/lib/platforms.d.ts +1 -1
  99. package/dist/lib/platforms.d.ts.map +1 -1
  100. package/dist/lib/platforms.js +1 -1
  101. package/dist/lib/platforms.js.map +1 -1
  102. package/dist/lib/skill-config.d.ts +1 -1
  103. package/dist/lib/skill-config.d.ts.map +1 -1
  104. package/dist/lib/skill-config.js +2 -2
  105. package/dist/lib/skill-config.js.map +1 -1
  106. package/dist/lib/skills.d.ts +1 -1
  107. package/dist/lib/skills.d.ts.map +1 -1
  108. package/dist/lib/skills.js +5 -5
  109. package/dist/lib/skills.js.map +1 -1
  110. package/dist/lib/tools.d.ts +1 -1
  111. package/dist/lib/tools.d.ts.map +1 -1
  112. package/dist/lib/tools.js +3 -3
  113. package/dist/lib/tools.js.map +1 -1
  114. package/package.json +3 -3
  115. package/src/bin/droid.ts +8 -8
  116. package/src/commands/config.ts +1 -1
  117. package/src/commands/install.ts +3 -3
  118. package/src/commands/setup.test.ts +1 -1
  119. package/src/commands/setup.ts +3 -3
  120. package/src/commands/skills.ts +4 -4
  121. package/src/commands/tui/components/Badge.tsx +86 -0
  122. package/src/commands/tui/components/Markdown.tsx +48 -0
  123. package/src/commands/tui/components/SettingsDetails.tsx +70 -0
  124. package/src/commands/tui/components/TabBar.tsx +26 -0
  125. package/src/commands/tui/components/ToolDetails.tsx +117 -0
  126. package/src/commands/tui/components/ToolItem.tsx +39 -0
  127. package/src/commands/tui/constants.ts +17 -0
  128. package/src/commands/tui/hooks/useAppUpdate.ts +67 -0
  129. package/src/commands/tui/hooks/useToolUpdates.ts +110 -0
  130. package/src/commands/tui/types.ts +4 -0
  131. package/src/commands/tui/views/ReadmeViewer.tsx +93 -0
  132. package/src/commands/tui/views/SetupScreen.tsx +242 -0
  133. package/src/commands/tui/views/SkillConfigScreen.tsx +278 -0
  134. package/src/commands/tui/views/ToolExplorer.tsx +190 -0
  135. package/src/commands/tui/views/ToolUpdatePrompt.tsx +109 -0
  136. package/src/commands/tui/views/WelcomeScreen.tsx +149 -0
  137. package/src/commands/tui.tsx +65 -1587
  138. package/src/commands/uninstall.ts +2 -2
  139. package/src/commands/update.ts +1 -1
  140. package/src/index.ts +4 -4
  141. package/src/lib/agents.ts +4 -4
  142. package/src/lib/config.ts +1 -1
  143. package/src/lib/platforms.ts +1 -1
  144. package/src/lib/skill-config.ts +2 -2
  145. package/src/lib/skills.test.ts +2 -2
  146. package/src/lib/skills.ts +5 -5
  147. package/src/lib/tools.ts +3 -3
  148. package/src/lib/types.test.ts +1 -1
  149. package/src/lib/version.test.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  import chalk from 'chalk';
2
- import { uninstallSkill } from '../lib/skills.js';
3
- import { getBundledTools, isToolInstalled } from '../lib/tools.js';
2
+ import { uninstallSkill } from '../lib/skills';
3
+ import { getBundledTools, isToolInstalled } from '../lib/tools';
4
4
 
5
5
  export async function uninstallCommand(toolName: string): Promise<void> {
6
6
  const tools = getBundledTools();
@@ -1,6 +1,6 @@
1
1
  import chalk from 'chalk';
2
2
  import { execSync } from 'child_process';
3
- import { getVersion } from '../lib/version.js';
3
+ import { getVersion } from '../lib/version';
4
4
 
5
5
  interface UpdateOptions {
6
6
  tools?: boolean;
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Re-export types and utilities for potential programmatic usage
2
- export * from './lib/types.js';
3
- export * from './lib/config.js';
4
- export * from './lib/skills.js';
5
- export * from './lib/version.js';
2
+ export * from './lib/types';
3
+ export * from './lib/config';
4
+ export * from './lib/skills';
5
+ export * from './lib/version';
package/src/lib/agents.ts CHANGED
@@ -2,10 +2,10 @@ import { existsSync, readdirSync, readFileSync, writeFileSync, unlinkSync, mkdir
2
2
  import { join, dirname } from 'path';
3
3
  import { fileURLToPath } from 'url';
4
4
  import YAML from 'yaml';
5
- import { loadConfig } from './config.js';
6
- import { Platform } from './types.js';
7
- import { getAgentsPath } from './platforms.js';
8
- import { loadToolManifest } from './tools.js';
5
+ import { loadConfig } from './config';
6
+ import { Platform } from './types';
7
+ import { getAgentsPath } from './platforms';
8
+ import { loadToolManifest } from './tools';
9
9
 
10
10
  const __dirname = dirname(fileURLToPath(import.meta.url));
11
11
  const BUNDLED_TOOLS_DIR = join(__dirname, '../tools');
package/src/lib/config.ts CHANGED
@@ -2,7 +2,7 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
2
2
  import { homedir } from 'os';
3
3
  import { join } from 'path';
4
4
  import YAML from 'yaml';
5
- import { Platform, BuiltInOutput, type DroidConfig, type LegacyDroidConfig, type SkillOverrides, type AutoUpdateConfig } from './types.js';
5
+ import { Platform, BuiltInOutput, type DroidConfig, type LegacyDroidConfig, type SkillOverrides, type AutoUpdateConfig } from './types';
6
6
 
7
7
  const CONFIG_DIR = join(homedir(), '.droid');
8
8
  const CONFIG_FILE = join(CONFIG_DIR, 'config.yaml');
@@ -1,6 +1,6 @@
1
1
  import { join } from 'path';
2
2
  import { homedir } from 'os';
3
- import { Platform } from './types.js';
3
+ import { Platform } from './types';
4
4
 
5
5
  /**
6
6
  * Platform-specific paths configuration
@@ -1,7 +1,7 @@
1
1
  import chalk from 'chalk';
2
2
  import inquirer from 'inquirer';
3
- import { saveSkillOverrides, loadConfig, loadSkillOverrides } from './config.js';
4
- import { ConfigOptionType, type SkillOverrides, type ConfigOption } from './types.js';
3
+ import { saveSkillOverrides, loadConfig, loadSkillOverrides } from './config';
4
+ import { ConfigOptionType, type SkillOverrides, type ConfigOption } from './types';
5
5
 
6
6
  /**
7
7
  * Prompt user to configure a skill after install
@@ -4,7 +4,7 @@ import { join } from 'path';
4
4
  import { tmpdir } from 'os';
5
5
  import { homedir } from 'os';
6
6
  import YAML from 'yaml';
7
- import { Platform, SkillStatus } from './types.js';
7
+ import { Platform, SkillStatus } from './types';
8
8
  import {
9
9
  getSkillsInstallPath,
10
10
  getCommandsInstallPath,
@@ -12,7 +12,7 @@ import {
12
12
  getSkillStatusDisplay,
13
13
  getBundledSkillsDir,
14
14
  loadSkillManifest,
15
- } from './skills.js';
15
+ } from './skills';
16
16
 
17
17
  /**
18
18
  * Parse YAML frontmatter from markdown content
package/src/lib/skills.ts CHANGED
@@ -2,11 +2,11 @@ import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, rmSync
2
2
  import { join, dirname } from 'path';
3
3
  import { fileURLToPath } from 'url';
4
4
  import YAML from 'yaml';
5
- import { loadConfig, saveConfig } from './config.js';
6
- import { Platform, SkillStatus, type SkillManifest, type InstalledSkill, getPlatformTools, setPlatformTools } from './types.js';
7
- import { getInstalledAgentsDir, installAgentFromPath, uninstallAgent, isAgentInstalled } from './agents.js';
8
- import { getSkillsPath, getCommandsPath, getConfigPath } from './platforms.js';
9
- import { loadToolManifest } from './tools.js';
5
+ import { loadConfig, saveConfig } from './config';
6
+ import { Platform, SkillStatus, type SkillManifest, type InstalledSkill, getPlatformTools, setPlatformTools } from './types';
7
+ import { getInstalledAgentsDir, installAgentFromPath, uninstallAgent, isAgentInstalled } from './agents';
8
+ import { getSkillsPath, getCommandsPath, getConfigPath } from './platforms';
9
+ import { loadToolManifest } from './tools';
10
10
 
11
11
  // Marker comments for CLAUDE.md skill registration
12
12
  const DROID_SKILLS_START = '<!-- droid-skills-start -->';
package/src/lib/tools.ts CHANGED
@@ -2,9 +2,9 @@ import { existsSync, readdirSync, readFileSync } from 'fs';
2
2
  import { join, dirname } from 'path';
3
3
  import { fileURLToPath } from 'url';
4
4
  import YAML from 'yaml';
5
- import { loadConfig } from './config.js';
6
- import { type ToolManifest, type ToolIncludes, getPlatformTools } from './types.js';
7
- import { compareSemver } from './version.js';
5
+ import { loadConfig } from './config';
6
+ import { type ToolManifest, type ToolIncludes, getPlatformTools } from './types';
7
+ import { compareSemver } from './version';
8
8
 
9
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
10
10
  const BUNDLED_TOOLS_DIR = join(__dirname, '../tools');
@@ -6,7 +6,7 @@ import {
6
6
  SkillStatus,
7
7
  ConfigOptionType,
8
8
  getAITag,
9
- } from './types.js';
9
+ } from './types';
10
10
 
11
11
  describe('Platform enum', () => {
12
12
  it('should have correct values', () => {
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'bun:test';
2
- import { getVersion, compareSemver } from './version.js';
2
+ import { getVersion, compareSemver } from './version';
3
3
 
4
4
  describe('getVersion', () => {
5
5
  it('should return a version string', () => {