@m14i/sith 1.5.4 → 1.6.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 CHANGED
@@ -49,6 +49,35 @@ This will:
49
49
  - Make OpenCode CLI available
50
50
  - Pass your `GITHUB_TOKEN` environment variable
51
51
 
52
+ ## Authentication
53
+
54
+ To use GitHub Copilot models, set the `GITHUB_TOKEN` environment variable:
55
+
56
+ **Quick start (using GitHub CLI):**
57
+ ```bash
58
+ export GITHUB_TOKEN=$(gh auth token)
59
+ npx @m14i/sith shell
60
+ ```
61
+
62
+ **Or inline:**
63
+ ```bash
64
+ GITHUB_TOKEN=$(gh auth token) npx @m14i/sith shell
65
+ ```
66
+
67
+ **Manual token:**
68
+ 1. Create a token at https://github.com/settings/tokens
69
+ 2. Required scopes: `copilot`, `repo`, `read:org`
70
+ 3. Export it:
71
+ ```bash
72
+ export GITHUB_TOKEN=gho_your_token_here
73
+ npx @m14i/sith shell
74
+ ```
75
+
76
+ **Make it persistent (add to ~/.zshrc or ~/.bashrc):**
77
+ ```bash
78
+ export GITHUB_TOKEN=$(gh auth token)
79
+ ```
80
+
52
81
  ## Commands
53
82
 
54
83
  ### `npx @m14i/sith` (default)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m14i/sith",
3
- "version": "1.5.4",
3
+ "version": "1.6.1",
4
4
  "description": "Turn your context to the dark side. Standardize and share your OpenCode setup with a fully dockerized environment, designed for seamless collaboration and CI integration.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -1,52 +0,0 @@
1
- version: '3.8'
2
-
3
- services:
4
- opencode-ci:
5
- build:
6
- context: ..
7
- dockerfile: docker/Dockerfile
8
- image: opencode-ci:latest
9
- container_name: opencode-ci
10
- environment:
11
- - GITHUB_TOKEN=${GITHUB_TOKEN}
12
- - OPENCODE_MODEL=${OPENCODE_MODEL:-github-copilot/claude-sonnet-4.5}
13
- - PROJECT_PATH=/workspace
14
- - OPENCODE_OUTPUT=/workspace/opencode-output
15
- - OPENCODE_LOG_LEVEL=${OPENCODE_LOG_LEVEL:-INFO}
16
- volumes:
17
- - ./:/workspace
18
- - opencode-output:/workspace/opencode-output
19
- # Monte automatiquement votre auth.json local (si disponible)
20
- - ${HOME}/.local/share/opencode/auth.json:/config/auth.json:ro
21
- command: help
22
-
23
- # Service pour analyse continue
24
- opencode-analyzer:
25
- extends: opencode-ci
26
- container_name: opencode-analyzer
27
- command: analyze
28
- profiles:
29
- - analyze
30
-
31
- # Service pour génération de documentation
32
- opencode-documenter:
33
- extends: opencode-ci
34
- container_name: opencode-documenter
35
- command: document --output=docs
36
- profiles:
37
- - document
38
-
39
- # Service pour revue de PR
40
- opencode-reviewer:
41
- extends: opencode-ci
42
- container_name: opencode-reviewer
43
- environment:
44
- - GITHUB_TOKEN=${GITHUB_TOKEN}
45
- - OPENCODE_MODEL=${OPENCODE_MODEL:-github-copilot/claude-sonnet-4.5}
46
- - POST_TO_GITHUB=${POST_TO_GITHUB:-false}
47
- command: review-pr --pr-number=${PR_NUMBER}
48
- profiles:
49
- - review
50
-
51
- volumes:
52
- opencode-output: