@ship-cli/core 0.0.3 → 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.
- package/README.md +90 -0
- package/dist/bin.js +43263 -30230
- package/package.json +47 -23
- package/.tsbuildinfo/src.tsbuildinfo +0 -1
- package/.tsbuildinfo/test.tsbuildinfo +0 -1
- package/LICENSE +0 -21
- package/src/adapters/driven/auth/AuthServiceLive.ts +0 -125
- package/src/adapters/driven/config/ConfigRepositoryLive.ts +0 -366
- package/src/adapters/driven/linear/IssueRepositoryLive.ts +0 -528
- package/src/adapters/driven/linear/LinearClient.ts +0 -33
- package/src/adapters/driven/linear/Mapper.ts +0 -142
- package/src/adapters/driven/linear/ProjectRepositoryLive.ts +0 -98
- package/src/adapters/driven/linear/TeamRepositoryLive.ts +0 -101
- package/src/adapters/driving/cli/commands/block.ts +0 -63
- package/src/adapters/driving/cli/commands/blocked.ts +0 -61
- package/src/adapters/driving/cli/commands/create.ts +0 -83
- package/src/adapters/driving/cli/commands/done.ts +0 -82
- package/src/adapters/driving/cli/commands/init.ts +0 -194
- package/src/adapters/driving/cli/commands/list.ts +0 -87
- package/src/adapters/driving/cli/commands/login.ts +0 -46
- package/src/adapters/driving/cli/commands/prime.ts +0 -123
- package/src/adapters/driving/cli/commands/project.ts +0 -155
- package/src/adapters/driving/cli/commands/ready.ts +0 -73
- package/src/adapters/driving/cli/commands/relate.ts +0 -56
- package/src/adapters/driving/cli/commands/show.ts +0 -94
- package/src/adapters/driving/cli/commands/start.ts +0 -101
- package/src/adapters/driving/cli/commands/team.ts +0 -135
- package/src/adapters/driving/cli/commands/unblock.ts +0 -63
- package/src/adapters/driving/cli/commands/update.ts +0 -125
- package/src/adapters/driving/cli/main.ts +0 -76
- package/src/bin.ts +0 -12
- package/src/domain/Config.ts +0 -42
- package/src/domain/Errors.ts +0 -89
- package/src/domain/Task.ts +0 -124
- package/src/domain/index.ts +0 -3
- package/src/infrastructure/Layers.ts +0 -45
- package/src/ports/AuthService.ts +0 -19
- package/src/ports/ConfigRepository.ts +0 -20
- package/src/ports/IssueRepository.ts +0 -75
- package/src/ports/PrService.ts +0 -52
- package/src/ports/ProjectRepository.ts +0 -19
- package/src/ports/TeamRepository.ts +0 -17
- package/src/ports/VcsService.ts +0 -87
- package/src/ports/index.ts +0 -7
- package/test/Dummy.test.ts +0 -7
- package/tsconfig.base.json +0 -45
- package/tsconfig.json +0 -7
- package/tsconfig.src.json +0 -11
- package/tsconfig.test.json +0 -10
- package/tsconfig.tsbuildinfo +0 -1
- package/tsup.config.ts +0 -14
- package/vitest.config.ts +0 -12
package/README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# @ship-cli/core
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@ship-cli/core)
|
|
4
|
+
[](../../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)
|