@gitlink-ai/gitlink-code 0.0.1

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 ADDED
@@ -0,0 +1,131 @@
1
+ # GitLink Code
2
+
3
+ AI-powered coding agent CLI for DevOps. Interactive TUI, non-interactive mode, slash commands, multi-agent workflows.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g gitlink-code
9
+ ```
10
+
11
+ Requires Node.js >= 18.
12
+
13
+ ## Getting Started
14
+
15
+ ### 1. Configure your API key
16
+
17
+ **Option A — Environment variable (quickest):**
18
+ ```bash
19
+ export DEEPSEEK_API_KEY="sk-your-key-here"
20
+ ```
21
+
22
+ **Option B — User config file (recommended):**
23
+ ```bash
24
+ mkdir -p ~/.gc
25
+ cat > ~/.gc/settings.json << 'EOF'
26
+ {
27
+ "providers": {
28
+ "deepseek": {
29
+ "apiKey": "sk-your-key-here",
30
+ "model": "deepseek-v4-pro"
31
+ }
32
+ }
33
+ }
34
+ EOF
35
+ ```
36
+
37
+ **Option C — Project config (team-shared):**
38
+
39
+ Place `.gc/settings.json` in your project root. Same format as above.
40
+
41
+ ### 2. Start coding
42
+
43
+ ```bash
44
+ gc # Interactive TUI mode
45
+ gc --print "explain this code" # Non-interactive mode
46
+ ```
47
+
48
+ ## CLI Entry Points
49
+
50
+ | Command | Behavior |
51
+ |---------|----------|
52
+ | `gc` | Interactive AI coding agent |
53
+ | `gitlink code` | Same as `gc` (subcommand form) |
54
+ | `gitlinkcode` | Same as `gc` (alias) |
55
+ | `gitlink --help` | Show all available commands |
56
+
57
+ ## Configuration
58
+
59
+ ### Config file locations
60
+
61
+ | File | Scope | Priority |
62
+ |------|-------|----------|
63
+ | `~/.gc/settings.json` | User-level (all projects) | Lower |
64
+ | `.gc/settings.json` | Project-level (single project) | Higher |
65
+ | `DEEPSEEK_API_KEY` env var | Session-level | Highest |
66
+ | CLI flags (`--model`, `--permission-mode`) | One-off | Highest |
67
+
68
+ ### Full config format
69
+
70
+ ```json
71
+ {
72
+ "model": "deepseek-v4-pro",
73
+ "permissionMode": "default",
74
+ "providers": {
75
+ "deepseek": {
76
+ "apiKey": "",
77
+ "baseUrl": "https://api.deepseek.com",
78
+ "model": "deepseek-v4-pro",
79
+ "maxTokens": 8192
80
+ }
81
+ }
82
+ }
83
+ ```
84
+
85
+ ### Permission modes
86
+
87
+ | Mode | Behavior |
88
+ |------|----------|
89
+ | `default` | Ask before tools that modify files or run commands |
90
+ | `acceptEdits` | Auto-approve Read/Write/Edit, ask for Bash |
91
+ | `bypassPermissions` | Auto-approve all tools |
92
+
93
+ ## CLI Options
94
+
95
+ ```
96
+ gc [options]
97
+
98
+ Options:
99
+ -m, --model <model> Model to use
100
+ -p, --print <query> Non-interactive mode
101
+ --permission-mode <mode> default | acceptEdits | bypassPermissions
102
+ --project <path> Project directory
103
+ --max-turns <n> Max conversation turns (default: 25)
104
+ ```
105
+
106
+ ## Slash Commands
107
+
108
+ | Command | Description |
109
+ |---------|-------------|
110
+ | `/help` | Show available commands |
111
+ | `/specify` | Generate SPEC.md from feature description |
112
+ | `/plan` | Generate PLAN.md + TASKS.md |
113
+ | `/implement` | Execute tasks from TASKS.md |
114
+ | `/validate` | Validate implementation against SPEC |
115
+ | `/pr-list` | List pull requests |
116
+ | `/pr-review` | Review a PR |
117
+ | `/ci-status` | List CI builds |
118
+ | `/ci-debug` | Diagnose CI failure |
119
+ | `/release-notes` | Generate release notes |
120
+ | `/sprint-status` | Generate sprint status report |
121
+
122
+ ## Project Configuration
123
+
124
+ Place a `CLAUDE.md` or `.gc/config.md` in your project root. Its content is injected into the AI's system prompt as project-specific context.
125
+
126
+ ## Uninstall
127
+
128
+ ```bash
129
+ npm uninstall -g gitlink-code
130
+ rm -rf ~/.gc
131
+ ```
package/bin/gc ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ // gc — GitLink Code CLI
3
+ import('../dist/gc.js');
package/bin/gitlink ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ // gitlink — GitLink DevOps Platform (AI-powered development tools)
3
+ import('../dist/gc.js');
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ // gitlinkcode — GitLink Code CLI
3
+ import('../dist/gc.js');