@ship-cli/core 0.0.2 → 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 (49) hide show
  1. package/README.md +90 -0
  2. package/dist/bin.js +43263 -30230
  3. package/package.json +47 -23
  4. package/.tsbuildinfo/src.tsbuildinfo +0 -1
  5. package/.tsbuildinfo/test.tsbuildinfo +0 -1
  6. package/LICENSE +0 -21
  7. package/src/adapters/driven/auth/AuthServiceLive.ts +0 -125
  8. package/src/adapters/driven/config/ConfigRepositoryLive.ts +0 -366
  9. package/src/adapters/driven/linear/IssueRepositoryLive.ts +0 -499
  10. package/src/adapters/driven/linear/LinearClient.ts +0 -33
  11. package/src/adapters/driven/linear/Mapper.ts +0 -142
  12. package/src/adapters/driven/linear/ProjectRepositoryLive.ts +0 -98
  13. package/src/adapters/driven/linear/TeamRepositoryLive.ts +0 -101
  14. package/src/adapters/driving/cli/commands/block.ts +0 -63
  15. package/src/adapters/driving/cli/commands/blocked.ts +0 -61
  16. package/src/adapters/driving/cli/commands/create.ts +0 -83
  17. package/src/adapters/driving/cli/commands/done.ts +0 -82
  18. package/src/adapters/driving/cli/commands/init.ts +0 -194
  19. package/src/adapters/driving/cli/commands/list.ts +0 -87
  20. package/src/adapters/driving/cli/commands/login.ts +0 -46
  21. package/src/adapters/driving/cli/commands/prime.ts +0 -83
  22. package/src/adapters/driving/cli/commands/project.ts +0 -155
  23. package/src/adapters/driving/cli/commands/ready.ts +0 -73
  24. package/src/adapters/driving/cli/commands/show.ts +0 -94
  25. package/src/adapters/driving/cli/commands/start.ts +0 -101
  26. package/src/adapters/driving/cli/commands/team.ts +0 -135
  27. package/src/adapters/driving/cli/commands/unblock.ts +0 -63
  28. package/src/adapters/driving/cli/main.ts +0 -70
  29. package/src/bin.ts +0 -12
  30. package/src/domain/Config.ts +0 -42
  31. package/src/domain/Errors.ts +0 -89
  32. package/src/domain/Task.ts +0 -124
  33. package/src/domain/index.ts +0 -3
  34. package/src/infrastructure/Layers.ts +0 -45
  35. package/src/ports/AuthService.ts +0 -19
  36. package/src/ports/ConfigRepository.ts +0 -20
  37. package/src/ports/IssueRepository.ts +0 -69
  38. package/src/ports/PrService.ts +0 -52
  39. package/src/ports/ProjectRepository.ts +0 -19
  40. package/src/ports/TeamRepository.ts +0 -17
  41. package/src/ports/VcsService.ts +0 -87
  42. package/src/ports/index.ts +0 -7
  43. package/test/Dummy.test.ts +0 -7
  44. package/tsconfig.base.json +0 -45
  45. package/tsconfig.json +0 -7
  46. package/tsconfig.src.json +0 -11
  47. package/tsconfig.test.json +0 -10
  48. package/tsup.config.ts +0 -14
  49. package/vitest.config.ts +0 -12
package/README.md ADDED
@@ -0,0 +1,90 @@
1
+ # @ship-cli/core
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@ship-cli/core)](https://www.npmjs.com/package/@ship-cli/core)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](../../LICENSE)
5
+
6
+ **Linear + jj workflow CLI for AI coding agents.**
7
+
8
+ This is the core CLI package for [Ship](https://github.com/EduSantosBrito/ship-cli). See the [main README](../../README.md) for full documentation.
9
+
10
+ ## Installation
11
+
12
+ ```sh
13
+ # npm
14
+ npm install -g @ship-cli/core
15
+
16
+ # pnpm
17
+ pnpm add -g @ship-cli/core
18
+
19
+ # npx (one-off)
20
+ npx @ship-cli/core init
21
+ ```
22
+
23
+ ## Quick Start
24
+
25
+ ```sh
26
+ # Initialize in your project
27
+ ship init
28
+
29
+ # See what's ready to work on
30
+ ship task ready
31
+
32
+ # Start working on a task
33
+ ship task start BRI-123
34
+
35
+ # Create a workspace and change
36
+ ship stack create
37
+
38
+ # Submit your changes
39
+ ship stack submit
40
+
41
+ # Mark task complete
42
+ ship task done BRI-123
43
+ ```
44
+
45
+ ## Requirements
46
+
47
+ - Node.js 20, 22, or 24 (LTS versions)
48
+ - [Linear](https://linear.app) account
49
+ - [jj](https://martinvonz.github.io/jj) (for VCS features)
50
+
51
+ ## Commands
52
+
53
+ ### Task Management
54
+
55
+ | Command | Description |
56
+ |---------|-------------|
57
+ | `ship init` | Initialize ship (authenticate + select team/project) |
58
+ | `ship task ready` | List tasks with no blockers |
59
+ | `ship task list` | List all tasks |
60
+ | `ship task blocked` | List blocked tasks |
61
+ | `ship task show <id>` | Show task details |
62
+ | `ship task start <id>` | Start working on a task |
63
+ | `ship task done <id>` | Mark task as complete |
64
+ | `ship task create "<title>"` | Create a new task |
65
+
66
+ ### Stacked Changes (jj)
67
+
68
+ | Command | Description |
69
+ |---------|-------------|
70
+ | `ship stack log` | Show stack of changes |
71
+ | `ship stack status` | Show current change status |
72
+ | `ship stack create` | Create a new change in the stack |
73
+ | `ship stack sync` | Sync with remote (fetch + rebase) |
74
+ | `ship stack submit` | Push changes and create/update PRs |
75
+
76
+ See [full command reference](../../README.md#commands) in the main documentation.
77
+
78
+ ## OpenCode Integration
79
+
80
+ For AI agent integration, install the [@ship-cli/opencode](https://www.npmjs.com/package/@ship-cli/opencode) plugin:
81
+
82
+ ```json
83
+ {
84
+ "plugins": ["@ship-cli/opencode"]
85
+ }
86
+ ```
87
+
88
+ ## License
89
+
90
+ [MIT](../../LICENSE)