@vibedx/vibekit 0.1.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 (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +368 -0
  3. package/assets/config.yml +35 -0
  4. package/assets/default.md +47 -0
  5. package/assets/instructions/README.md +46 -0
  6. package/assets/instructions/claude.md +83 -0
  7. package/assets/instructions/codex.md +19 -0
  8. package/index.js +106 -0
  9. package/package.json +90 -0
  10. package/src/commands/close/index.js +66 -0
  11. package/src/commands/close/index.test.js +235 -0
  12. package/src/commands/get-started/index.js +138 -0
  13. package/src/commands/get-started/index.test.js +246 -0
  14. package/src/commands/init/index.js +51 -0
  15. package/src/commands/init/index.test.js +159 -0
  16. package/src/commands/link/index.js +395 -0
  17. package/src/commands/link/index.test.js +28 -0
  18. package/src/commands/lint/index.js +657 -0
  19. package/src/commands/lint/index.test.js +569 -0
  20. package/src/commands/list/index.js +131 -0
  21. package/src/commands/list/index.test.js +153 -0
  22. package/src/commands/new/index.js +305 -0
  23. package/src/commands/new/index.test.js +256 -0
  24. package/src/commands/refine/index.js +741 -0
  25. package/src/commands/refine/index.test.js +28 -0
  26. package/src/commands/review/index.js +957 -0
  27. package/src/commands/review/index.test.js +193 -0
  28. package/src/commands/start/index.js +180 -0
  29. package/src/commands/start/index.test.js +88 -0
  30. package/src/commands/unlink/index.js +123 -0
  31. package/src/commands/unlink/index.test.js +22 -0
  32. package/src/utils/arrow-select.js +233 -0
  33. package/src/utils/cli.js +489 -0
  34. package/src/utils/cli.test.js +9 -0
  35. package/src/utils/git.js +146 -0
  36. package/src/utils/git.test.js +330 -0
  37. package/src/utils/index.js +193 -0
  38. package/src/utils/index.test.js +375 -0
  39. package/src/utils/prompts.js +47 -0
  40. package/src/utils/prompts.test.js +165 -0
  41. package/src/utils/test-helpers.js +492 -0
  42. package/src/utils/ticket.js +423 -0
  43. package/src/utils/ticket.test.js +190 -0
@@ -0,0 +1,28 @@
1
+ import { describe, it, expect } from '@jest/globals';
2
+ import refineCommand from './index.js';
3
+
4
+ describe('refine command', () => {
5
+ describe('basic validation', () => {
6
+ it('should validate that refine command exists and is callable', () => {
7
+ // This test validates the command structure without executing interactive parts
8
+ expect(typeof refineCommand).toBe('function');
9
+ });
10
+
11
+ it('should be an async function', () => {
12
+ // Validates the command is properly structured as async
13
+ expect(refineCommand.constructor.name).toBe('AsyncFunction');
14
+ });
15
+
16
+ it('should accept arguments parameter', () => {
17
+ // Validates the command signature
18
+ expect(refineCommand.length).toBe(1); // Takes one parameter (args array)
19
+ });
20
+ });
21
+
22
+ // Note: The refine command is complex and interactive, requiring:
23
+ // - Mocking Claude Code SDK checks
24
+ // - Mocking external API calls
25
+ // - Mocking interactive CLI prompts
26
+ // - Testing actual ticket content refinement
27
+ // Full testing would require complex async/interactive/AI mocking
28
+ });